Implement a rate-limiting script that processes a log of timestamped requests and determines which ones are…
Implement a rate-limiting script that processes a log of timestamped requests and determines which ones are…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). INPUT: - A CSV file with headers: timestamp,user id,requests - timestamp : ISO-8601 UTC string (may have…
The task
INPUT: - A CSV file with headers: `timestamp,user_id,requests` - `timestamp`: ISO-8601 UTC string (may have 'Z' suffix OR '+00:00' OR fractional seconds, but always UTC) - `user_id`: non-empty string (may contain quotes, commas, unicode) - `requests`: positive integer (may be zero? handle it) - The file may have…
Part of ai-and/termgrade-environments.