Dataset Preview
Duplicate
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 2 new columns ({'url', 'nombre'}) and 22 missing columns ({'comment_ratio', 'days_since_change', 'avg_function_len', 'is_tested', 'churn_rate', 'label', 'max_nesting_depth', 'max_complexity', 'bug_fix_commits', 'author_count', 'refactor_commits', 'blank_ratio', 'sloc', 'loc', 'commit_count', 'num_functions', 'maintainability_index', 'repo', 'dependency_count', 'file name', 'halstead_effort', 'cyclomatic_complexity'}).

This happened while the csv dataset builder was generating data using

hf://datasets/ChilliPeep/techdebt-ml-dataset/source_repos.csv (at revision 55d2340c08f21d0eeb21aab9024dc5e5072438c3), ['hf://datasets/ChilliPeep/techdebt-ml-dataset@55d2340c08f21d0eeb21aab9024dc5e5072438c3/dataset.csv', 'hf://datasets/ChilliPeep/techdebt-ml-dataset@55d2340c08f21d0eeb21aab9024dc5e5072438c3/source_repos.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
              nombre: string
              url: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 496
              to
              {'file name': Value('string'), 'loc': Value('int64'), 'sloc': Value('int64'), 'comment_ratio': Value('float64'), 'blank_ratio': Value('float64'), 'cyclomatic_complexity': Value('float64'), 'max_complexity': Value('float64'), 'maintainability_index': Value('float64'), 'halstead_effort': Value('float64'), 'num_functions': Value('int64'), 'avg_function_len': Value('float64'), 'max_nesting_depth': Value('int64'), 'is_tested': Value('int64'), 'dependency_count': Value('int64'), 'commit_count': Value('float64'), 'author_count': Value('float64'), 'days_since_change': Value('float64'), 'churn_rate': Value('float64'), 'bug_fix_commits': Value('int64'), 'refactor_commits': Value('int64'), 'repo': Value('string'), 'label': Value('int64')}
              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 2 new columns ({'url', 'nombre'}) and 22 missing columns ({'comment_ratio', 'days_since_change', 'avg_function_len', 'is_tested', 'churn_rate', 'label', 'max_nesting_depth', 'max_complexity', 'bug_fix_commits', 'author_count', 'refactor_commits', 'blank_ratio', 'sloc', 'loc', 'commit_count', 'num_functions', 'maintainability_index', 'repo', 'dependency_count', 'file name', 'halstead_effort', 'cyclomatic_complexity'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/ChilliPeep/techdebt-ml-dataset/source_repos.csv (at revision 55d2340c08f21d0eeb21aab9024dc5e5072438c3), ['hf://datasets/ChilliPeep/techdebt-ml-dataset@55d2340c08f21d0eeb21aab9024dc5e5072438c3/dataset.csv', 'hf://datasets/ChilliPeep/techdebt-ml-dataset@55d2340c08f21d0eeb21aab9024dc5e5072438c3/source_repos.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.

file name
string
loc
int64
sloc
int64
comment_ratio
float64
blank_ratio
float64
cyclomatic_complexity
float64
max_complexity
float64
maintainability_index
float64
halstead_effort
float64
num_functions
int64
avg_function_len
float64
max_nesting_depth
int64
is_tested
int64
dependency_count
int64
commit_count
float64
author_count
float64
days_since_change
float64
churn_rate
float64
bug_fix_commits
int64
refactor_commits
int64
repo
string
label
int64
wicked-garden/scripts\reset.py
222
169
0.085586
0.135135
9.666667
35
46.07707
1,517.398123
6
25.666667
6
0
6
1
1
1.122951
0.931646
1
1
wicked-garden
0
wicked-garden/scripts\resolve_path.py
22
8
0.363636
0.272727
0
0
98.817997
2.377444
0
0
1
0
3
1
1
1.131148
0.060759
2
0
wicked-garden
1
wicked-garden/scripts\_agents.py
357
179
0.285714
0.19888
4.733333
20
50.826472
7,470.287739
15
24.733333
6
0
5
1.5
1
1.057377
1.521519
2
2
wicked-garden
1
wicked-garden/scripts\_capability_registry.py
226
196
0.106195
0.061947
1
1
100
0
2
8
1
0
2
0.5
1
1.057377
0.572152
1
1
wicked-garden
0
wicked-garden/scripts\_capability_resolver.py
322
196
0.217391
0.180124
14.4
27
49.128629
4,896.134033
5
55
8
0
9
0.5
1
1.057377
0.81519
1
1
wicked-garden
0
wicked-garden/scripts\_domain_store.py
567
283
0.340388
0.171076
4.45
14
44.910632
5,140.567801
20
39.05
7
0
16
2.5
1
0.893443
1.460759
3
1
wicked-garden
1
wicked-garden/scripts\_event_store.py
397
260
0.166247
0.163728
5
13
49.404572
3,088.134857
10
41.4
6
0
11
0.5
1
1
1.005063
0
0
wicked-garden
0
wicked-garden/scripts\_integration_resolver.py
321
145
0.342679
0.205607
5.75
17
56.426663
3,829.28461
8
30.875
9
0
11
1.5
1
0.868852
1.136709
2
0
wicked-garden
1
wicked-garden/scripts\_logger.py
151
74
0.337748
0.198675
4.25
7
71.493301
799.484872
4
26.25
4
0
6
1
1
1.04918
0.392405
2
0
wicked-garden
1
wicked-garden/scripts\_paths.py
133
60
0.285714
0.240602
2.875
8
70.509425
478.221507
8
11.375
3
0
3
1.5
1
0.901639
0.524051
3
1
wicked-garden
1
wicked-garden/scripts\_run.py
137
81
0.145985
0.226277
3.166667
6
68.334799
203.900521
6
15.333333
3
0
4
1
1
0.868852
0.362025
2
0
wicked-garden
1
wicked-garden/scripts\_session.py
337
119
0.412463
0.222552
2.4
4
54.556402
2,135.828365
10
36.2
4
0
8
11
1
0.877049
1.070886
17
4
wicked-garden
1
wicked-garden/tests\test_change_type_detector.py
295
192
0.074576
0.19322
1.394737
3
52.463957
153.434249
38
11.921053
3
1
5
0.5
1
1.122951
0.746835
1
0
wicked-garden
0
wicked-garden/tests\test_evidence_validation.py
276
198
0.047101
0.141304
1.222222
2
52.868728
27
27
16.777778
2
1
4
0.5
1
1.122951
0.698734
1
0
wicked-garden
0
wicked-garden/tests\test_logger.py
542
349
0.138376
0.158672
1.568966
4
40.33665
1,442.595814
58
14.189655
4
1
10
0.5
1
1.139344
1.372152
1
0
wicked-garden
0
wicked-garden/tests\test_stub_audit.py
154
96
0.188312
0.162338
4.571429
7
63.034045
3,677.874788
7
28.571429
7
1
3
0.5
1
1.122951
0.389873
1
0
wicked-garden
0
wicked-garden/tests\test_test_task_factory.py
317
232
0.044164
0.192429
1.434783
3
44.296357
348.289214
46
10.717391
3
1
6
0.5
1
1.122951
0.802532
1
0
wicked-garden
0
wicked-garden/tests\crew\test_gate_enforcement.py
362
266
0.049724
0.143646
1.736842
5
37.234642
1,532.015416
38
15.157895
5
1
12
0.5
1
1
0.916456
0
0
wicked-garden
0
wicked-garden/tests\hooks\test_hot_continuation_accumulation.py
180
122
0.1
0.183333
2.111111
4
57.537849
853.037625
9
25.555556
3
1
11
0.5
1
1.122951
0.455696
1
0
wicked-garden
0
wicked-garden/tests\hooks\test_hot_path_fast_exit.py
204
128
0.156863
0.161765
3.5
10
58.873703
1,847.941495
14
15.857143
4
1
6
0.5
1
1.122951
0.516456
1
0
wicked-garden
0
wicked-garden/tests\hooks\test_prompt_submit_refactor.py
666
434
0.102102
0.184685
1.4625
5
33.553135
3,237.777778
80
12.1
4
1
21
1.5
1
1.122951
1.701266
3
1
wicked-garden
1
wicked-garden/tests\hooks\test_prompt_submit_routing.py
353
217
0.249292
0.15864
2.5
7
57.649631
1,822.461448
20
17.25
5
1
6
0.5
1
1.131148
0.893671
1
1
wicked-garden
0
wicked-garden/tests\hooks\test_stop_memory_promotion.py
376
252
0.12766
0.164894
1.631579
5
53.254118
1,009.82232
19
31.368421
3
1
14
0.5
1
1.147541
0.951899
1
0
wicked-garden
0
wicked-garden/tests\smaht\test_adapter_registry.py
546
366
0.047619
0.232601
1.428571
2
41.616533
428.327429
28
34.035714
5
1
27
0.5
1
1.106557
1.382278
1
0
wicked-garden
0
wicked-garden/tests\smaht\test_assembler_registry.py
328
219
0.07622
0.195122
1.409091
3
51.670199
199.734855
22
23.727273
3
1
22
0.5
1
1.106557
0.83038
1
0
wicked-garden
0
wicked-garden/tests\smaht\test_orchestrator_metrics.py
340
217
0.129412
0.194118
1.115385
2
55.058982
199.734855
26
19.384615
4
1
8
0.5
1
1.106557
0.860759
1
0
wicked-garden
0
wicked-garden/tests\smaht\__init__.py
0
0
0
0
0
0
100
0
0
0
0
0
0
0.5
1
1.106557
0
1
0
wicked-garden
0
wicked-garden/skills\product\imagery\scripts\provider.py
787
614
0.063532
0.138501
3.036364
10
17.401352
3,137.881972
55
21.636364
5
0
13
0.5
1
1
1.992405
1
1
wicked-garden
0
wicked-garden/skills\platform\glab-cli\scripts\glab_ops.py
313
217
0.086262
0.191693
5.454545
11
43.610362
2,267.383232
11
21.818182
7
0
7
0.5
1
1.188525
0.792405
0
1
wicked-garden
0
wicked-garden/skills\platform\github-actions\scripts\workflow_gen.py
215
169
0.051163
0.148837
5.25
8
54.678149
688.779418
4
29.5
3
0
7
0.5
1
1.188525
0.544304
0
1
wicked-garden
0
wicked-garden/skills\platform\gh-cli\scripts\gh_ops.py
454
310
0.101322
0.189427
6.214286
12
37.668462
7,202.795968
14
24.571429
8
0
7
0.5
1
1.188525
1.149367
0
1
wicked-garden
0
wicked-garden/scripts\agentic\analyze_agents.py
391
298
0.056266
0.161125
7.3125
27
27.746985
8,742.992017
16
19.8125
7
0
8
0.5
1
1.188525
0.989873
0
1
wicked-garden
0
wicked-garden/scripts\agentic\detect_framework.py
420
344
0.052381
0.116667
6.444444
9
41.617332
2,732.683122
9
22.888889
6
0
8
0.5
1
1.188525
1.063291
0
1
wicked-garden
0
wicked-garden/scripts\agentic\issue_taxonomy.py
332
260
0.063253
0.14759
10.666667
21
38.803965
2,568.118548
6
47
6
0
5
1
1
1.122951
0.850633
1
1
wicked-garden
0
wicked-garden/scripts\agentic\pattern_scorer.py
434
374
0.02765
0.108295
5.8
9
28.624253
6,698.885763
15
18.666667
5
0
6
0.5
1
1.188525
1.098734
0
1
wicked-garden
0
wicked-garden/scripts\ci\validate.py
206
155
0.150485
0.097087
40
40
53.869754
2,559.884522
1
178
8
0
5
0.5
1
0.901639
0.521519
1
0
wicked-garden
0
wicked-garden/scripts\crew\artifact_state.py
530
300
0.218868
0.201887
3.75
12
50.336584
3,887.403255
16
25
8
0
8
0.5
1
0.893443
1.341772
0
0
wicked-garden
0
wicked-garden/scripts\crew\build_dependency_analyzer.py
269
147
0.267658
0.189591
6.4
9
62.7353
3,077.79678
5
37.2
3
0
6
0.5
1
1.139344
0.681013
0
0
wicked-garden
0
wicked-garden/scripts\crew\config.py
128
60
0.304688
0.265625
1.833333
3
77.892718
294.666667
6
10.166667
2
0
3
0.5
1
1.188525
0.324051
0
1
wicked-garden
0
wicked-garden/scripts\crew\consensus_gate.py
437
289
0.196796
0.141876
9.2
19
53.562432
3,700.090361
5
66.8
6
0
10
1
1
0.893443
1.339241
1
1
wicked-garden
0
wicked-garden/scripts\crew\crew.py
166
111
0.114458
0.210843
9.75
13
54.220103
1,605.339123
4
33.5
6
0
6
3.5
1
1.122951
0.896203
6
1
wicked-garden
1
wicked-garden/scripts\crew\impact_analyzer.py
379
247
0.197889
0.153034
9.285714
34
47.230326
6,814.468206
7
42.285714
7
0
7
1
1
0.893443
0.989873
1
0
wicked-garden
0
wicked-garden/scripts\crew\phase_manager.py
1,810
1,320
0.10663
0.153591
7.860465
42.98
0
53,602.202589
43
37.860465
13
0
19
13.5
1
0.877049
5.665823
19
5
wicked-garden
1
wicked-garden/scripts\crew\project_registry.py
575
295
0.253913
0.224348
4.75
19
47.946608
3,738.353549
16
28.75
12
0
10
1
1
0.893443
1.470886
1
0
wicked-garden
0
wicked-garden/scripts\crew\signal_library.py
260
183
0.107692
0.169231
4.333333
10
47.07434
3,547.089964
12
28.25
6
0
7
2
1
1.122951
0.749367
3
1
wicked-garden
1
wicked-garden/scripts\crew\smart_decisioning.py
2,050
1,402
0.196098
0.136098
8.34375
42.98
3.124038
55,111.134964
32
41.40625
5
0
15
9.5
1
0.860656
5.908861
11
3
wicked-garden
1
wicked-garden/scripts\crew\specialist_discovery.py
540
350
0.155556
0.17963
6.9375
19
36.669169
5,085.093154
16
27.875
7
0
8
3.5
2
1.106557
1.95443
6
3
wicked-garden
1
wicked-garden/scripts\crew\traceability.py
456
264
0.223684
0.210526
6.181818
14
49.217115
3,437.434063
11
32.363636
9
0
10
2
1
0.893443
1.197468
0
0
wicked-garden
0
wicked-garden/scripts\crew\traceability_generator.py
316
210
0.132911
0.189873
6.714286
11
50.774139
5,683.41298
7
34.285714
5
0
8
1
1
1.122951
0.805063
1
0
wicked-garden
0
wicked-garden/scripts\crew\verification_protocol.py
907
625
0.124587
0.174201
6.458333
15
24.12904
17,734.954112
24
29.583333
5
0
15
1
1
0.893443
2.301266
1
0
wicked-garden
0
wicked-garden/scripts\crew\worktree_manager.py
411
222
0.23601
0.211679
5.5
23
50.97415
2,249.942036
12
28.416667
8
0
8
1
1
1.04918
1.04557
1
0
wicked-garden
0
wicked-garden/scripts\data\data_profiler.py
271
165
0.177122
0.217712
9
17
52.047818
4,789.036439
6
37.333333
4
0
10
1
1
1.122951
0.701266
1
1
wicked-garden
0
wicked-garden/scripts\data\ontology_recommender.py
231
197
0.012987
0.116883
8.75
19
42.803649
2,201.370101
4
29
6
0
6
0.5
1
1.188525
0.58481
0
1
wicked-garden
0
wicked-garden/scripts\data\schema_validator.py
267
182
0.146067
0.194757
9.142857
22
47.95377
6,624.645122
7
34.428571
8
0
7
0.5
1
1.188525
0.675949
0
1
wicked-garden
0
wicked-garden/scripts\jam\consensus.py
553
366
0.184448
0.164557
4.888889
20
42.657994
4,931.004061
18
24.555556
7
0
9
0.5
1
0.893443
1.4
0
0
wicked-garden
0
wicked-garden/scripts\jam\jam.py
283
201
0.091873
0.176678
9
25
43.604321
2,961.983293
7
32.714286
7
0
5
2.5
1
1.131148
0.944304
2
2
wicked-garden
1
wicked-garden/scripts\jam\save_transcript.py
171
97
0.192982
0.22807
5
8
65.567812
698.911895
5
23.6
3
0
6
1
1
1.131148
0.448101
1
0
wicked-garden
0
wicked-garden/scripts\jam\test_thinking_field.py
376
262
0.095745
0.170213
2.571429
7
44.178112
889.766198
28
11.107143
3
1
9
1.5
1
1
0.987342
2
0
wicked-garden
1
wicked-garden/scripts\jam\__init__.py
0
0
0
0
0
0
100
0
0
0
0
0
0
0.5
1
0.893443
0
0
0
wicked-garden
0
wicked-garden/scripts\kanban\kanban.py
1,200
879
0.064167
0.164167
4.4
42.98
2.057501
19,047.817646
50
36.26
21
0
12
3
1
0.860656
4.020253
4
2
wicked-garden
1
wicked-garden/scripts\kanban\kanban_initiative.py
183
128
0.076503
0.202186
4
7
54.853037
278.83183
7
20
5
0
7
3.5
1
1.122951
0.95443
5
1
wicked-garden
1
wicked-garden/scripts\kanban\migrate.py
264
187
0.083333
0.193182
4.857143
14
48.280849
2,685.657489
7
31.142857
5
0
7
1
1
1.180328
0.673418
1
1
wicked-garden
0
wicked-garden/scripts\kanban\__init__.py
0
0
0
0
0
0
100
0
0
0
0
0
0
0.5
1
1.188525
0
0
1
wicked-garden
0
wicked-garden/scripts\persona\registry.py
708
583
0.062147
0.094633
4.294118
13
36.656208
1,617.140715
17
23.352941
6
0
11
1
1
1.008197
1.807595
1
0
wicked-garden
0
wicked-garden/scripts\persona\__init__.py
0
0
0
0
0
0
100
0
0
0
0
0
0
0.5
1
1.008197
0
0
0
wicked-garden
0
wicked-garden/scripts\platform\prereq_doctor.py
537
467
0.046555
0.07635
6
9
39.985348
4,398.631293
8
22.5
5
0
8
0.5
1
1.122951
1.359494
1
0
wicked-garden
0
wicked-garden/scripts\qe\cli_discovery.py
248
191
0.100806
0.108871
7
16
49.706871
2,147.607522
6
22.833333
5
0
7
0.5
1
1
0.627848
0
1
wicked-garden
0
wicked-garden/scripts\qe\discover_scenarios.py
238
148
0.226891
0.155462
11.6
20
54.084868
3,801.829545
5
41.4
6
0
5
1
1
1.122951
0.612658
1
1
wicked-garden
0
wicked-garden/scripts\qe\registry_lookup.py
80
48
0.1875
0.2125
3
3
86.571781
11.60964
1
52
3
0
5
1
1
1.131148
0.217722
2
0
wicked-garden
1
wicked-garden/scripts\qe\registry_store.py
116
76
0.181034
0.163793
10
10
76.58915
67.458917
1
85
4
0
5
1
1
1.131148
0.308861
2
0
wicked-garden
1
wicked-garden/scripts\smaht\cheatsheet_store.py
236
167
0.105932
0.165254
6.375
17
48.033148
2,011.937694
8
24.25
5
0
7
1.5
1
0.901639
0.688608
2
0
wicked-garden
1
wicked-garden/scripts\smaht\context_package.py
359
235
0.181058
0.158774
6.75
23
52.479515
1,602.944995
8
31.875
4
0
10
3.5
1
1.106557
1.116456
4
3
wicked-garden
1
wicked-garden/scripts\smaht\knowledge_graph.py
395
300
0.093671
0.146835
3.894737
10
38.266633
5,807.448624
19
25.789474
8
0
10
0.5
1
0.893443
1
0
0
wicked-garden
0
wicked-garden/scripts\smaht\test_cheatsheet_store.py
428
300
0.074766
0.228972
3.4375
7
34.215737
3,752.830189
32
8.34375
3
1
9
1.5
1
0.901639
1.134177
2
0
wicked-garden
1
wicked-garden/scripts\smaht\test_context7_cheatsheet.py
262
164
0.114504
0.267176
2
3
52.98312
1,075.422593
20
9.2
2
1
9
1
1
1.131148
0.708861
2
0
wicked-garden
1
wicked-garden/scripts\_adapters\jira_adapter.py
18
5
0.388889
0.277778
1
1
100
0
1
4
1
0
2
0.5
1
1.131148
0.04557
1
0
wicked-garden
0
wicked-garden/scripts\_adapters\linear_adapter.py
18
5
0.388889
0.277778
1
1
100
0
1
4
1
0
2
0.5
1
1.131148
0.04557
1
0
wicked-garden
0
wicked-garden/scripts\_adapters\miro_adapter.py
18
5
0.388889
0.277778
1
1
100
0
1
4
1
0
2
0.5
1
1.131148
0.04557
1
0
wicked-garden
0
wicked-garden/scripts\_adapters\notion_adapter.py
18
5
0.388889
0.277778
1
1
100
0
1
4
1
0
2
0.5
1
1.131148
0.04557
1
0
wicked-garden
0
wicked-garden/scripts\_adapters\__init__.py
166
61
0.361446
0.246988
2.3
10
68.194755
553.683983
10
13.5
4
0
6
0.5
1
1.131148
0.420253
1
0
wicked-garden
0
wicked-garden/scripts\smaht\adapters\brain_adapter.py
248
159
0.241935
0.149194
8.333333
14
55.894569
4,111.204795
6
33.166667
4
0
11
3
1
0.868852
0.921519
4
0
wicked-garden
1
wicked-garden/scripts\smaht\adapters\context7_adapter.py
521
302
0.216891
0.195777
3.941176
16
48.968259
3,835.764706
17
35.588235
4
0
11
4
1
0.901639
1.389873
6
3
wicked-garden
1
wicked-garden/scripts\smaht\adapters\delegation_adapter.py
105
81
0.104762
0.133333
6
6
80.210022
15.509775
1
58
2
0
3
1
1
1.106557
0.331646
1
1
wicked-garden
0
wicked-garden/scripts\smaht\adapters\domain_adapter.py
217
122
0.271889
0.175115
7.5
14
64.750082
1,948.305796
4
28
4
0
8
2.5
1
0.860656
0.589873
5
0
wicked-garden
1
wicked-garden/scripts\smaht\adapters\events_adapter.py
185
124
0.151351
0.194595
8
24
56.279056
3,456.77262
5
27.2
4
0
7
1.5
1
0.860656
0.508861
1
0
wicked-garden
0
wicked-garden/scripts\smaht\adapters\startah_adapter.py
49
35
0.020408
0.204082
2.5
3
73.185377
2.377444
2
16.5
2
0
2
3.5
1
1
0.281013
3
5
wicked-garden
1
wicked-garden/scripts\smaht\adapters\__init__.py
83
50
0.180723
0.204819
1.25
2
80.887964
21.671329
4
12
2
0
9
1.5
1
1.131148
0.270886
1
2
wicked-garden
0
wicked-garden/scripts\smaht\v2\adapter_registry.py
139
65
0.323741
0.194245
3
7
72.509375
886.956983
6
21.666667
4
0
5
1.5
1
0.868852
0.356962
1
0
wicked-garden
0
wicked-garden/scripts\smaht\v2\budget_enforcer.py
166
88
0.373494
0.174699
5
10
65.235975
2,295.346857
6
40.333333
5
0
1
2.5
1
0.868852
0.536709
2
2
wicked-garden
1
wicked-garden/scripts\smaht\v2\context_pressure.py
153
100
0.156863
0.150327
1.928571
4
60.960453
1,274.112272
14
14.785714
4
0
5
1
1
1.122951
0.397468
1
1
wicked-garden
0
wicked-garden/scripts\smaht\v2\fact_extractor.py
236
154
0.127119
0.194915
3.357143
6
53.965221
1,741.240482
14
18.857143
6
0
7
2.5
1
1.122951
0.622785
4
1
wicked-garden
1
wicked-garden/scripts\smaht\v2\fast_path.py
304
197
0.157895
0.180921
7.555556
17
48.699742
3,249.669577
9
52.444444
6
0
12
5
1
0.868852
1.437975
4
4
wicked-garden
1
wicked-garden/scripts\smaht\v2\history_condenser.py
683
471
0.140556
0.144949
5.966667
15
20.321533
14,559.077023
30
39.3
6
0
15
2.5
1
1.122951
1.8
4
1
wicked-garden
1
wicked-garden/scripts\smaht\v2\lane_tracker.py
296
208
0.087838
0.168919
5.055556
12
37.358464
5,026.316432
18
27.222222
6
0
9
2.5
1
1.122951
0.774684
4
1
wicked-garden
1
wicked-garden/scripts\smaht\v2\memory_promoter.py
230
148
0.165217
0.169565
3.3
8
57.57339
1,589.65803
10
27.4
4
0
9
1.5
1
0.868852
0.627848
1
1
wicked-garden
0
wicked-garden/scripts\smaht\v2\orchestrator.py
289
201
0.134948
0.152249
3.8
8
50.769264
1,819.797644
10
42.8
6
0
13
4
1
1.106557
1.060759
6
2
wicked-garden
1
wicked-garden/scripts\smaht\v2\router.py
442
279
0.205882
0.151584
3.782609
11
43.717674
9,575.879862
23
23.608696
5
0
6
2.5
1
1.122951
1.16962
4
2
wicked-garden
1
wicked-garden/scripts\smaht\v2\slow_path.py
241
159
0.153527
0.178423
6
21
58.574185
719.652589
7
47.714286
5
0
10
4
1
0.868852
1.293671
3
4
wicked-garden
1
wicked-garden/scripts\smaht\v2\__init__.py
19
1
0
0.157895
0
0
100
0
0
0
0
0
0
0.5
1
1.188525
0.048101
0
1
wicked-garden
0
wicked-garden/scripts\platform\observability\assert_contracts.py
433
272
0.163972
0.207852
8
18
44.099432
9,436.257142
9
36.555556
4
0
8
0.5
1
1
1.096203
1
1
wicked-garden
0
End of preview.

TechDebt ML Dataset

Features extracted from 22 public Python repositories, used to train a Random Forest classifier that predicts technical debt risk per file. Companion dataset to the TechDebt ML project.

Content

Each row is one Python file. Columns include:

  • Code-quality metrics (via Radon): loc, sloc, comment_ratio, blank_ratio, cyclomatic_complexity, max_complexity, maintainability_index, halstead_effort, num_functions, avg_function_len
  • Structural metrics (via Python's ast): dependency_count, max_nesting_depth, is_tested
  • Git activity (normalized relative to each file's own repo — see Preprocessing below): commit_count, author_count, churn_rate, days_since_change
  • Metadata: file name, repo
  • label: 1 if the file had 2+ bug-fix commits in its git history, 0 otherwise
  • bug_fix_commits, refactor_commits: kept for reference only — do not use these as model features, they were excluded from training due to label leakage (see below)

2,503 rows total. Label balance: 62% (0) / 38% (1).

Preprocessing applied

Git-activity features (commit_count, author_count, churn_rate, days_since_change) were normalized relative to each file's own repository (divided by that repo's median), since their absolute values are not comparable across repos with different overall activity levels.

Three columns were additionally clipped at the 99th percentile to control extreme outliers:

  • max_complexity: clipped at 42.98
  • churn_rate: clipped at 27.05
  • commit_count: clipped at 20.97

Known limitations

This dataset inherits every limitation already documented in the source project:

  • Label leakage (resolved): an early version leaked the label into the features via bug_fix_commits/refactor_commits. Details
  • No temporal split: features and label are both computed from a file's entire git history, without a strict past-predicts-future split. Details
  • Git-activity bias (partially mitigated): earlier model versions over-relied on commit and author counts rather than actual code complexity. Relative normalization improved this substantially but did not fully resolve it. Details
  • Small-sample repos: three of the 22 source repos have very few files (flow: 2, Discord-OTP-Forcer: 11, ibet-Network: 12). Per-repo medians used for git-activity normalization are less reliable for these repos. They were kept rather than excluded, given the small number of files affected.
  • Median computed pre-split: per-repo medians for normalization were computed over the full dataset (train + test combined) rather than fit only on the training partition. Likely low impact, but a known methodological gap.

Source repositories

See source_repos.csv for the full list of the 22 public GitHub repositories this dataset was derived from, with their URLs. Only aggregate numeric metrics are included here — no source code, commit messages, or author names are redistributed.

License

The derived metrics in this dataset are released under CC-BY 4.0. The original source code of each repository remains under its own respective license.

Downloads last month
35