Models
FileData
Bases: BaseModel
TrainingData
Bases: BaseModel
ExtractionResult
Bases: BaseModel
Methods:
| Name | Description |
|---|---|
save_log |
Save extraction results to a timestamped JSON log file. |
a_save_log |
Save extraction results to a timestamped JSON log file asynchronously. |
save_log
Save extraction results to a timestamped JSON log file.
Creates a JSON file containing all extraction results in a structured format, organized by repository name and timestamp for easy tracking and analysis.
Returns:
| Name | Type | Description |
|---|---|---|
Path |
Path
|
Path to the created log file. |
Source code in src/swebenchv2/typings/models.py
a_save_log
Save extraction results to a timestamped JSON log file asynchronously.
Asynchronously creates a JSON file containing all extraction results, running the file I/O operations in a separate thread to avoid blocking.
Returns:
| Name | Type | Description |
|---|---|---|
Path |
Path
|
Path to the created log file. |