Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,18 @@ python export.py

The script will create a directory at the specified output path containing the dataset in Parquet format. If `--output_dir` is not provided, it will save to `dataset` in the current working directory.

## Tests
The deduplication scripts can be tested by running
```bash
python test_dedup.py
# if you have pytest you can run
python -m pytest test_dedup.py -v
```
To test things we actually create a fake dataset. Here are the features of it
The test creates a 50-entry dataset with:
- **Exact duplicates**: First 5 entries use identical code
- **Fuzzy duplicates**: Next 5 entries use similar code with small variations
- **Multiple run modes**: `leaderboard`, `test`, `benchmark`
- **Mixed success states**: Both `True` and `False` values for `run_passed`
- **Realistic struct data**: Complex nested structures for `run_result`, `run_compilation`, `run_meta`, and `run_system_info`
- **Proper timestamps**: All timestamp fields include timezone information
Loading