HF RL Explorer

Task: Create a String to Valid Filename Converter

Task: Create a String to Valid Filename Converter: a task in Terminal-Lego-15k (Harbor dataset). Create a Python script that converts arbitrary strings into valid filenames that work across multiple operating systems (Windows, Linux, and Mac OS). The script should sanitize input strings by…

The task

Create a Python script that converts arbitrary strings into valid filenames that work across multiple operating systems (Windows, Linux, and Mac OS). The script should sanitize input strings by removing or replacing characters that are not allowed in filenames, retaining only letters, digits, and a safe set of…

Part of PrimeIntellect/Terminal-Lego-15k.