Implement a program that reads a stream of timestamped events from stdin and enforces a dual token-bucket +…
Implement a program that reads a stream of timestamped events from stdin and enforces a dual token-bucket +…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): One event per line, sorted by timestamp ascending: YYYY-MM-DD HH:MM:SS.mmm operation…
The task
**Input format (stdin):** One event per line, sorted by timestamp ascending: ``` YYYY-MM-DD HH:MM:SS.mmm operation_id user_id ``` - `operation_id`: non-empty alphanumeric string (case-sensitive) - `user_id`: non-empty alphanumeric string (case-sensitive) - Fields separated by exactly one space - Timestamps have…
Part of ai-and/termgrade-environments.