Datasets:
Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 37 new columns ({'num_file_navigations', 'hour_of_day', 'primary_file_extension', 'lines_changed', 'fix_quality', 'external_resources_used', 'day_of_week', 'compile_attempts', 'files_modified', 'num_web_searches', 'error_type', 'regression_introduced', 'fix_strategy', 'experience_level', 'programming_language', 'operating_system', 'codebase_size_loc', 'timestamp_end', 'error_message_length', 'timestamp_start', 'test_added', 'keystrokes_per_minute', 'resolution_time_minutes', 'editor_used', 'company_size', 'team_context', 'took_break', 'years_experience', 'project_type', 'asked_colleague', 'similar_bug_before', 'stack_trace_depth', 'outcome', 'error_severity', 'ai_assistant_used', 'resolution_time_seconds', 'is_weekend'}) and 8 missing columns ({'event_duration_seconds', 'is_final_event', 'event_type', 'event_timestamp', 'event_detail', 'event_sequence', 'session_stage', 'elapsed_seconds'}).
This happened while the csv dataset builder was generating data using
hf://datasets/pyofpython/debugtraj-50k/code_debugging_sessions_fixed.csv (at revision 1d6920f1bd6119a2ddd65d94318d6eea45e5fc25), ['hf://datasets/pyofpython/debugtraj-50k@1d6920f1bd6119a2ddd65d94318d6eea45e5fc25/code_debugging_events_fixed.csv', 'hf://datasets/pyofpython/debugtraj-50k@1d6920f1bd6119a2ddd65d94318d6eea45e5fc25/code_debugging_sessions_fixed.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1837, in _prepare_split_single
writer.write_table(table)
~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 765, in write_table
self._write_table(pa_table, writer_batch_size=writer_batch_size)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 773, in _write_table
pa_table = table_cast(pa_table, self._schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
session_id: string
timestamp_start: string
timestamp_end: string
day_of_week: string
hour_of_day: int64
is_weekend: bool
years_experience: double
experience_level: string
editor_used: string
operating_system: string
company_size: string
team_context: string
programming_language: string
project_type: string
codebase_size_loc: int64
files_modified: int64
primary_file_extension: string
error_type: string
error_severity: int64
error_message_length: int64
stack_trace_depth: int64
similar_bug_before: bool
resolution_time_seconds: int64
resolution_time_minutes: double
compile_attempts: int64
num_web_searches: int64
external_resources_used: string
ai_assistant_used: bool
asked_colleague: bool
num_file_navigations: int64
lines_changed: int64
keystrokes_per_minute: int64
took_break: bool
fix_strategy: string
outcome: string
fix_quality: string
regression_introduced: bool
test_added: bool
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 5162
to
{'session_id': Value('string'), 'event_sequence': Value('int64'), 'event_type': Value('string'), 'event_detail': Value('string'), 'event_timestamp': Value('string'), 'event_duration_seconds': Value('int64'), 'elapsed_seconds': Value('int64'), 'session_stage': Value('string'), 'is_final_event': Value('bool')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1683, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1839, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
...<4 lines>...
)
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 37 new columns ({'num_file_navigations', 'hour_of_day', 'primary_file_extension', 'lines_changed', 'fix_quality', 'external_resources_used', 'day_of_week', 'compile_attempts', 'files_modified', 'num_web_searches', 'error_type', 'regression_introduced', 'fix_strategy', 'experience_level', 'programming_language', 'operating_system', 'codebase_size_loc', 'timestamp_end', 'error_message_length', 'timestamp_start', 'test_added', 'keystrokes_per_minute', 'resolution_time_minutes', 'editor_used', 'company_size', 'team_context', 'took_break', 'years_experience', 'project_type', 'asked_colleague', 'similar_bug_before', 'stack_trace_depth', 'outcome', 'error_severity', 'ai_assistant_used', 'resolution_time_seconds', 'is_weekend'}) and 8 missing columns ({'event_duration_seconds', 'is_final_event', 'event_type', 'event_timestamp', 'event_detail', 'event_sequence', 'session_stage', 'elapsed_seconds'}).
This happened while the csv dataset builder was generating data using
hf://datasets/pyofpython/debugtraj-50k/code_debugging_sessions_fixed.csv (at revision 1d6920f1bd6119a2ddd65d94318d6eea45e5fc25), ['hf://datasets/pyofpython/debugtraj-50k@1d6920f1bd6119a2ddd65d94318d6eea45e5fc25/code_debugging_events_fixed.csv', 'hf://datasets/pyofpython/debugtraj-50k@1d6920f1bd6119a2ddd65d94318d6eea45e5fc25/code_debugging_sessions_fixed.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
session_id string | event_sequence int64 | event_type string | event_detail string | event_timestamp string | event_duration_seconds int64 | elapsed_seconds int64 | session_stage string | is_final_event bool |
|---|---|---|---|---|---|---|---|---|
DBG_0000000 | 0 | test_run | partial | 2025-07-11 17:37:01 | 14 | 0 | early | false |
DBG_0000000 | 1 | web_search | language docs | 2025-07-11 17:37:15 | 84 | 14 | early | false |
DBG_0000000 | 2 | web_search | language docs | 2025-07-11 17:38:39 | 158 | 98 | early | false |
DBG_0000000 | 3 | web_search | framework docs | 2025-07-11 17:41:17 | 26 | 256 | early | false |
DBG_0000000 | 4 | edit_code | applied suggestion | 2025-07-11 17:41:43 | 20 | 282 | middle | false |
DBG_0000000 | 5 | pause_think | general | 2025-07-11 17:42:03 | 9 | 302 | middle | true |
DBG_0000001 | 0 | edit_code | renamed variable | 2025-08-01 08:56:39 | 16 | 0 | early | false |
DBG_0000001 | 1 | web_search | language docs | 2025-08-01 08:56:55 | 122 | 16 | early | false |
DBG_0000001 | 2 | ai_chat_query | asked for explanation/fix suggestion | 2025-08-01 08:58:57 | 47 | 138 | early | false |
DBG_0000001 | 3 | cursor_move | jumped to line 324 | 2025-08-01 08:59:44 | 2 | 185 | middle | false |
DBG_0000001 | 4 | pause_think | general | 2025-08-01 08:59:46 | 5 | 187 | middle | false |
DBG_0000001 | 5 | ai_chat_query | asked for explanation/fix suggestion | 2025-08-01 08:59:51 | 2 | 192 | middle | true |
DBG_0000002 | 0 | console_log_added | logged variable: p_debug | 2025-08-19 12:29:36 | 10 | 0 | early | false |
DBG_0000002 | 1 | compile_error | TS2349: line 362 | 2025-08-19 12:29:46 | 3 | 10 | early | false |
DBG_0000002 | 2 | pause_think | general | 2025-08-19 12:29:49 | 13 | 13 | early | false |
DBG_0000002 | 3 | stackoverflow_visit | general | 2025-08-19 12:30:02 | 138 | 26 | middle | true |
DBG_0000003 | 0 | breakpoint_hit | general | 2025-04-23 09:01:02 | 4 | 0 | early | false |
DBG_0000003 | 1 | web_search | stackoverflow | 2025-04-23 09:01:06 | 75 | 4 | early | false |
DBG_0000003 | 2 | compile_error | SyntaxError: line 180 | 2025-04-23 09:02:21 | 2 | 79 | early | false |
DBG_0000003 | 3 | edit_code | extracted method | 2025-04-23 09:02:23 | 17 | 81 | middle | false |
DBG_0000003 | 4 | edit_code | added comment | 2025-04-23 09:02:40 | 79 | 98 | middle | true |
DBG_0000004 | 0 | cursor_move | jumped to line 466 | 2025-10-31 12:48:01 | 1 | 0 | early | false |
DBG_0000004 | 1 | edit_code | refactored loop | 2025-10-31 12:48:02 | 53 | 1 | early | false |
DBG_0000004 | 2 | compile_error | Lifetime_Error: line 371 | 2025-10-31 12:48:55 | 6 | 54 | early | false |
DBG_0000004 | 3 | compile_error | Lifetime_Error: line 461 | 2025-10-31 12:49:01 | 8 | 60 | early | false |
DBG_0000004 | 4 | compile_error | Lifetime_Error: line 255 | 2025-10-31 12:49:09 | 8 | 68 | early | false |
DBG_0000004 | 5 | stackoverflow_visit | general | 2025-10-31 12:49:17 | 73 | 76 | early | false |
DBG_0000004 | 6 | edit_code | applied suggestion | 2025-10-31 12:50:30 | 12 | 149 | early | false |
DBG_0000004 | 7 | compile_success | general | 2025-10-31 12:50:42 | 4 | 161 | early | false |
DBG_0000004 | 8 | edit_code | removed dead code | 2025-10-31 12:50:46 | 52 | 165 | early | false |
DBG_0000004 | 9 | compile_error | Lifetime_Error: line 31 | 2025-10-31 12:51:38 | 1 | 217 | early | false |
DBG_0000004 | 10 | breakpoint_set | breakpoint at line 202 | 2025-10-31 12:51:39 | 1 | 218 | early | false |
DBG_0000004 | 11 | compile_error | Lifetime_Error: line 454 | 2025-10-31 12:51:40 | 11 | 219 | early | false |
DBG_0000004 | 12 | web_search | github issues | 2025-10-31 12:51:51 | 14 | 230 | early | false |
DBG_0000004 | 13 | file_open | opened rs file #2 | 2025-10-31 12:52:05 | 2 | 244 | early | false |
DBG_0000004 | 14 | web_search | framework docs | 2025-10-31 12:52:07 | 46 | 246 | early | false |
DBG_0000004 | 15 | web_search | google | 2025-10-31 12:52:53 | 84 | 292 | early | false |
DBG_0000004 | 16 | compile_error | Lifetime_Error: line 306 | 2025-10-31 12:54:17 | 5 | 376 | early | false |
DBG_0000004 | 17 | compile_error | Lifetime_Error: line 307 | 2025-10-31 12:54:22 | 2 | 381 | early | false |
DBG_0000004 | 18 | test_run | passed | 2025-10-31 12:54:24 | 7 | 383 | early | false |
DBG_0000004 | 19 | compile_success | general | 2025-10-31 12:54:31 | 1 | 390 | early | false |
DBG_0000004 | 20 | compile_error | Lifetime_Error: line 25 | 2025-10-31 12:54:32 | 1 | 391 | early | false |
DBG_0000004 | 21 | compile_success | general | 2025-10-31 12:54:33 | 3 | 392 | middle | false |
DBG_0000004 | 22 | edit_code | removed dead code | 2025-10-31 12:54:36 | 31 | 395 | middle | false |
DBG_0000004 | 23 | edit_code | added validation | 2025-10-31 12:55:07 | 71 | 426 | middle | false |
DBG_0000004 | 24 | edit_code | updated import | 2025-10-31 12:56:18 | 18 | 497 | middle | false |
DBG_0000004 | 25 | breakpoint_set | breakpoint at line 118 | 2025-10-31 12:56:36 | 2 | 515 | middle | false |
DBG_0000004 | 26 | console_log_added | logged variable: p_debug | 2025-10-31 12:56:38 | 4 | 517 | middle | false |
DBG_0000004 | 27 | web_search | stackoverflow | 2025-10-31 12:56:42 | 62 | 521 | middle | false |
DBG_0000004 | 28 | compile_error | Lifetime_Error: line 269 | 2025-10-31 12:57:44 | 6 | 583 | middle | false |
DBG_0000004 | 29 | edit_code | reverted change | 2025-10-31 12:57:50 | 30 | 589 | middle | false |
DBG_0000004 | 30 | edit_code | removed dead code | 2025-10-31 12:58:20 | 12 | 619 | middle | false |
DBG_0000004 | 31 | test_run | crashed | 2025-10-31 12:58:32 | 23 | 631 | middle | false |
DBG_0000004 | 32 | compile_error | Lifetime_Error: line 376 | 2025-10-31 12:58:55 | 12 | 654 | middle | false |
DBG_0000004 | 33 | pause_think | general | 2025-10-31 12:59:07 | 7 | 666 | middle | false |
DBG_0000004 | 34 | file_open | opened rs file #5 | 2025-10-31 12:59:14 | 2 | 673 | middle | false |
DBG_0000004 | 35 | pause_think | general | 2025-10-31 12:59:16 | 23 | 675 | middle | false |
DBG_0000004 | 36 | breakpoint_set | breakpoint at line 290 | 2025-10-31 12:59:39 | 2 | 698 | middle | false |
DBG_0000004 | 37 | compile_error | Lifetime_Error: line 351 | 2025-10-31 12:59:41 | 4 | 700 | middle | false |
DBG_0000004 | 38 | compile_error | Lifetime_Error: line 240 | 2025-10-31 12:59:45 | 2 | 704 | middle | false |
DBG_0000004 | 39 | compile_error | Lifetime_Error: line 461 | 2025-10-31 12:59:47 | 5 | 706 | middle | false |
DBG_0000004 | 40 | variable_inspect | general | 2025-10-31 12:59:52 | 7 | 711 | middle | false |
DBG_0000004 | 41 | breakpoint_set | breakpoint at line 12 | 2025-10-31 12:59:59 | 3 | 718 | middle | false |
DBG_0000004 | 42 | variable_inspect | general | 2025-10-31 13:00:02 | 5 | 721 | middle | false |
DBG_0000004 | 43 | test_run | crashed | 2025-10-31 13:00:07 | 7 | 726 | middle | false |
DBG_0000004 | 44 | stackoverflow_visit | general | 2025-10-31 13:00:14 | 145 | 733 | middle | false |
DBG_0000004 | 45 | console_log_added | logged variable: q_debug | 2025-10-31 13:02:39 | 17 | 878 | middle | false |
DBG_0000004 | 46 | cursor_move | jumped to line 409 | 2025-10-31 13:02:56 | 5 | 895 | middle | false |
DBG_0000004 | 47 | stackoverflow_visit | general | 2025-10-31 13:03:01 | 224 | 900 | middle | false |
DBG_0000004 | 48 | stackoverflow_visit | general | 2025-10-31 13:06:45 | 107 | 1,124 | late | false |
DBG_0000004 | 49 | edit_code | applied suggestion | 2025-10-31 13:08:32 | 20 | 1,231 | late | false |
DBG_0000004 | 50 | compile_error | Lifetime_Error: line 76 | 2025-10-31 13:08:52 | 3 | 1,251 | late | false |
DBG_0000004 | 51 | cursor_move | jumped to line 441 | 2025-10-31 13:08:55 | 2 | 1,254 | late | false |
DBG_0000004 | 52 | web_search | github issues | 2025-10-31 13:08:57 | 59 | 1,256 | late | false |
DBG_0000004 | 53 | edit_code | refactored loop | 2025-10-31 13:09:56 | 10 | 1,315 | late | false |
DBG_0000004 | 54 | cursor_move | jumped to line 435 | 2025-10-31 13:10:06 | 1 | 1,325 | late | false |
DBG_0000004 | 55 | edit_code | renamed variable | 2025-10-31 13:10:07 | 39 | 1,326 | late | false |
DBG_0000004 | 56 | breakpoint_hit | general | 2025-10-31 13:10:46 | 3 | 1,365 | late | false |
DBG_0000004 | 57 | console_log_added | logged variable: s_debug | 2025-10-31 13:10:49 | 13 | 1,368 | late | false |
DBG_0000004 | 58 | compile_error | Lifetime_Error: line 150 | 2025-10-31 13:11:02 | 3 | 1,381 | late | false |
DBG_0000004 | 59 | test_run | partial | 2025-10-31 13:11:05 | 12 | 1,384 | late | false |
DBG_0000004 | 60 | file_open | opened rs file #1 | 2025-10-31 13:11:17 | 4 | 1,396 | late | false |
DBG_0000004 | 61 | console_log_added | logged variable: c_debug | 2025-10-31 13:11:21 | 2 | 1,400 | late | false |
DBG_0000004 | 62 | compile_success | general | 2025-10-31 13:11:23 | 4 | 1,402 | late | false |
DBG_0000004 | 63 | pause_think | general | 2025-10-31 13:11:27 | 74 | 1,406 | late | false |
DBG_0000004 | 64 | git_commit | commit: Type cast / conversion applied | 2025-10-31 13:12:41 | 16 | 1,480 | late | false |
DBG_0000004 | 65 | git_commit | commit: Type cast / conversion applied | 2025-10-31 13:12:57 | 12 | 1,496 | late | false |
DBG_0000004 | 66 | edit_code | applied suggestion | 2025-10-31 13:13:09 | 27 | 1,508 | late | false |
DBG_0000004 | 67 | edit_code | added validation | 2025-10-31 13:13:36 | 55 | 1,535 | late | true |
DBG_0000005 | 0 | edit_code | removed dead code | 2025-01-06 21:28:45 | 40 | 0 | early | false |
DBG_0000005 | 1 | variable_inspect | general | 2025-01-06 21:29:25 | 2 | 40 | early | false |
DBG_0000005 | 2 | edit_code | added validation | 2025-01-06 21:29:27 | 28 | 42 | early | false |
DBG_0000005 | 3 | pause_think | general | 2025-01-06 21:29:55 | 21 | 70 | early | false |
DBG_0000005 | 4 | cursor_move | jumped to line 403 | 2025-01-06 21:30:16 | 1 | 91 | early | false |
DBG_0000005 | 5 | compile_success | general | 2025-01-06 21:30:17 | 2 | 92 | middle | false |
DBG_0000005 | 6 | cursor_move | jumped to line 297 | 2025-01-06 21:30:19 | 4 | 94 | middle | false |
DBG_0000005 | 7 | compile_error | Channel_Close: line 485 | 2025-01-06 21:30:23 | 2 | 98 | middle | false |
DBG_0000005 | 8 | variable_inspect | general | 2025-01-06 21:30:25 | 2 | 100 | middle | false |
DBG_0000005 | 9 | compile_error | Channel_Close: line 132 | 2025-01-06 21:30:27 | 5 | 102 | middle | false |
DBG_0000005 | 10 | web_search | framework docs | 2025-01-06 21:30:32 | 15 | 107 | late | false |
End of preview.
DebugTraj-50K: Developer Debugging Trajectory Dataset
50,000 debugging sessions with 665,364 step-by-step behavioral events across 8 programming languages and 71 error types.
Load in one line
import pandas as pd
sessions = pd.read_csv("hf://datasets/pyofpython/debugtraj-50k/code_debugging_sessions_fixed.csv")
events = pd.read_csv("hf://datasets/pyofpython/debugtraj-50k/code_debugging_events_fixed.csv")
What makes this unique
Most bug datasets only say "bug was fixed in 23 minutes." This dataset records every step taken during those 23 minutes — every compile, edit, search, test, and commit.
Files
| File | Rows | Description |
|---|---|---|
| code_debugging_sessions_fixed.csv | 50,000 | Session features (38 columns) |
| code_debugging_events_fixed.csv | 665,364 | Event trajectories (9 columns) |
| DATA_DICTIONARY_updated.md | — | Full column documentation |
Use cases
- Predict debugging time from early session features
- Classify whether a session will succeed or be abandoned
- Next-action prediction for AI coding assistants
- Study junior vs senior developer behavior patterns
Citation
@dataset{singh2026debugtraj,
author = {Abhishek Singh},
title = {DebugTraj-50K: Developer Debugging Trajectory Dataset},
year = {2026},
publisher = {HuggingFace},
url = {https://huggingface.co/datasets/pyofpython/debugtraj-50k}
}
- Downloads last month
- 24