-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsamples.json
More file actions
3105 lines (3105 loc) · 88.7 KB
/
Copy pathsamples.json
File metadata and controls
3105 lines (3105 loc) · 88.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"types": [
{
"name": "algorithm",
"description": "Algorithm duplication occurs when the same algorithmic pattern is applied to different data with different thresholds and adjustments. Each variant maintains the same computational structure while applying different business rules.",
"sample_count": 20,
"samples": [
{
"id": 1,
"source_file": "type_algorithm_duplication_1.md"
},
{
"id": 2,
"source_file": "type_algorithm_duplication_2.md"
},
{
"id": 3,
"source_file": "type_algorithm_duplication_3.md"
},
{
"id": 4,
"source_file": "type_algorithm_duplication_4.md"
},
{
"id": 5,
"source_file": "type_algorithm_duplication_5.md"
},
{
"id": 6,
"source_file": "type_algorithm_duplication_6.md"
},
{
"id": 7,
"source_file": "type_algorithm_duplication_7.md"
},
{
"id": 8,
"source_file": "type_algorithm_duplication_8.md"
},
{
"id": 9,
"source_file": "type_algorithm_duplication_9.md"
},
{
"id": 10,
"source_file": "type_algorithm_duplication_10.md"
},
{
"id": 11,
"source_file": "type_algorithm_duplication_21.md"
},
{
"id": 12,
"source_file": "type_algorithm_duplication_22.md"
},
{
"id": 13,
"source_file": "type_algorithm_duplication_23.md"
},
{
"id": 14,
"source_file": "type_algorithm_duplication_24.md"
},
{
"id": 15,
"source_file": "type_algorithm_duplication_25.md"
},
{
"id": 16,
"source_file": "type_algorithm_duplication_26.md"
},
{
"id": 17,
"source_file": "type_algorithm_duplication_27.md"
},
{
"id": 18,
"source_file": "type_algorithm_duplication_28.md"
},
{
"id": 19,
"source_file": "type_algorithm_duplication_29.md"
},
{
"id": 20,
"source_file": "type_algorithm_duplication_30.md"
}
]
},
{
"name": "architectural",
"description": "Three ETL importers (CSV contacts, JSON inventory, XML invoices) each reimplement the parser \u2192 transformer \u2192 loader pipeline. Each module ships a Parser that yields raw rows, a Transformer that normalizes them into module DTOs, and a Loader that batches inserts in a transaction with `flush()`. The architecture is duplicated; only parse format and target schema differ.",
"sample_count": 10,
"samples": [
{
"id": 1,
"source_file": "type_architectural_duplication_1.md"
},
{
"id": 2,
"source_file": "type_architectural_duplication_2.md"
},
{
"id": 3,
"source_file": "type_architectural_duplication_3.md"
},
{
"id": 4,
"source_file": "type_architectural_duplication_4.md"
},
{
"id": 5,
"source_file": "type_architectural_duplication_5.md"
},
{
"id": 6,
"source_file": "type_architectural_duplication_6.md"
},
{
"id": 7,
"source_file": "type_architectural_duplication_7.md"
},
{
"id": 8,
"source_file": "type_architectural_duplication_8.md"
},
{
"id": 9,
"source_file": "type_architectural_duplication_9.md"
},
{
"id": 10,
"source_file": "type_architectural_duplication_10.md"
}
]
},
{
"name": "behavioral",
"description": "Repeated permission and capability verification logic across different modules. Each module implements role-based access control with identical patterns.",
"sample_count": 20,
"samples": [
{
"id": 1,
"source_file": "type_behavioral_duplication_1.md"
},
{
"id": 2,
"source_file": "type_behavioral_duplication_2.md"
},
{
"id": 3,
"source_file": "type_behavioral_duplication_3.md"
},
{
"id": 4,
"source_file": "type_behavioral_duplication_4.md"
},
{
"id": 5,
"source_file": "type_behavioral_duplication_5.md"
},
{
"id": 6,
"source_file": "type_behavioral_duplication_6.md"
},
{
"id": 7,
"source_file": "type_behavioral_duplication_7.md"
},
{
"id": 8,
"source_file": "type_behavioral_duplication_8.md"
},
{
"id": 9,
"source_file": "type_behavioral_duplication_9.md"
},
{
"id": 10,
"source_file": "type_behavioral_duplication_10.md"
},
{
"id": 11,
"source_file": "type_behavioral_duplication_31.md"
},
{
"id": 12,
"source_file": "type_behavioral_duplication_32.md"
},
{
"id": 13,
"source_file": "type_behavioral_duplication_33.md"
},
{
"id": 14,
"source_file": "type_behavioral_duplication_34.md"
},
{
"id": 15,
"source_file": "type_behavioral_duplication_35.md"
},
{
"id": 16,
"source_file": "type_behavioral_duplication_36.md"
},
{
"id": 17,
"source_file": "type_behavioral_duplication_37.md"
},
{
"id": 18,
"source_file": "type_behavioral_duplication_38.md"
},
{
"id": 19,
"source_file": "type_behavioral_duplication_39.md"
},
{
"id": 20,
"source_file": "type_behavioral_duplication_40.md"
}
]
},
{
"name": "build",
"description": "Build duplication occurs when identical deployment configuration patterns (health checks, readiness probes, environment variable setup, resource limits) are duplicated across multiple container or service deployment configurations. This anti-pattern emerges in microservices architectures where each service needs similar operational concerns but lacks a shared configuration template or base spec, leading to copy-pasted YAML or JSON deployment manifests.",
"sample_count": 9,
"samples": [
{
"id": 1,
"source_file": "type_build_duplication_1.md"
},
{
"id": 2,
"source_file": "type_build_duplication_3.md"
},
{
"id": 3,
"source_file": "type_build_duplication_4.md"
},
{
"id": 4,
"source_file": "type_build_duplication_5.md"
},
{
"id": 5,
"source_file": "type_build_duplication_6.md"
},
{
"id": 6,
"source_file": "type_build_duplication_7.md"
},
{
"id": 7,
"source_file": "type_build_duplication_8.md"
},
{
"id": 8,
"source_file": "type_build_duplication_9.md"
},
{
"id": 9,
"source_file": "type_build_duplication_10.md"
}
]
},
{
"name": "caching",
"description": "Caching duplication occurs when identical cache management patterns - invalidation logic, refresh strategies, TTL handling, and cache warming - are implemented repeatedly for different data types. Each cache handler follows the same architectural template while only the domain data and keys differ, creating code duplication across the caching layer.",
"sample_count": 10,
"samples": [
{
"id": 1,
"source_file": "type_caching_duplication_1.md"
},
{
"id": 2,
"source_file": "type_caching_duplication_2.md"
},
{
"id": 3,
"source_file": "type_caching_duplication_3.md"
},
{
"id": 4,
"source_file": "type_caching_duplication_4.md"
},
{
"id": 5,
"source_file": "type_caching_duplication_5.md"
},
{
"id": 6,
"source_file": "type_caching_duplication_6.md"
},
{
"id": 7,
"source_file": "type_caching_duplication_7.md"
},
{
"id": 8,
"source_file": "type_caching_duplication_8.md"
},
{
"id": 9,
"source_file": "type_caching_duplication_9.md"
},
{
"id": 10,
"source_file": "type_caching_duplication_10.md"
}
]
},
{
"name": "clone_type_1",
"description": "Type 1 duplication occurs when developers copy and paste code with only comments changed. This is common in rate limiting implementations where different algorithms (fixed window, sliding window, token bucket) are implemented with nearly identical surrounding infrastructure code.",
"sample_count": 20,
"samples": [
{
"id": 1,
"source_file": "type_clone_type_1_duplication_1.md"
},
{
"id": 2,
"source_file": "type_clone_type_1_duplication_2.md"
},
{
"id": 3,
"source_file": "type_clone_type_1_duplication_3.md"
},
{
"id": 4,
"source_file": "type_clone_type_1_duplication_4.md"
},
{
"id": 5,
"source_file": "type_clone_type_1_duplication_5.md"
},
{
"id": 6,
"source_file": "type_clone_type_1_duplication_6.md"
},
{
"id": 7,
"source_file": "type_clone_type_1_duplication_7.md"
},
{
"id": 8,
"source_file": "type_clone_type_1_duplication_8.md"
},
{
"id": 9,
"source_file": "type_clone_type_1_duplication_9.md"
},
{
"id": 10,
"source_file": "type_clone_type_1_duplication_10.md"
},
{
"id": 11,
"source_file": "type_clone_type_1_duplication_1.md"
},
{
"id": 12,
"source_file": "type_clone_type_1_duplication_2.md"
},
{
"id": 13,
"source_file": "type_clone_type_1_duplication_3.md"
},
{
"id": 14,
"source_file": "type_clone_type_1_duplication_4.md"
},
{
"id": 15,
"source_file": "type_clone_type_1_duplication_5.md"
},
{
"id": 16,
"source_file": "type_clone_type_1_duplication_6.md"
},
{
"id": 17,
"source_file": "type_clone_type_1_duplication_7.md"
},
{
"id": 18,
"source_file": "type_clone_type_1_duplication_8.md"
},
{
"id": 19,
"source_file": "type_clone_type_1_duplication_9.md"
},
{
"id": 20,
"source_file": "type_clone_type_1_duplication_10.md"
}
]
},
{
"name": "clone_type_2",
"description": "Type 2 duplication occurs when identical logic is implemented multiple times with only variable and method names changed. The code structure, control flow, and algorithmic approach remain the same. This often happens in billing/invoicing systems where the same calculation and generation logic is applied to different billing entities.",
"sample_count": 10,
"samples": [
{
"id": 1,
"source_file": "type_clone_type_2_duplication_4.md"
},
{
"id": 2,
"source_file": "type_clone_type_2_duplication_5.md"
},
{
"id": 3,
"source_file": "type_clone_type_2_duplication_6.md"
},
{
"id": 4,
"source_file": "type_clone_type_2_duplication_7.md"
},
{
"id": 5,
"source_file": "type_clone_type_2_duplication_8.md"
},
{
"id": 6,
"source_file": "type_clone_type_2_duplication_9.md"
},
{
"id": 7,
"source_file": "type_clone_type_2_duplication_10.md"
},
{
"id": 8,
"source_file": "type_clone_type_2_duplication_11.md"
},
{
"id": 9,
"source_file": "type_clone_type_2_duplication_12.md"
},
{
"id": 10,
"source_file": "type_clone_type_2_duplication_13.md"
}
]
},
{
"name": "clone_type_3",
"description": "Type 3 duplication occurs when code blocks are similar but have differences in variable names, literals, and minor structural variations. The overall logic flow is preserved but with adaptations. This commonly happens in router/dispatcher classes.",
"sample_count": 15,
"samples": [
{
"id": 1,
"source_file": "type_clone_type_3_duplication_7.md"
},
{
"id": 2,
"source_file": "type_clone_type_3_duplication_8.md"
},
{
"id": 3,
"source_file": "type_clone_type_3_duplication_9.md"
},
{
"id": 4,
"source_file": "type_clone_type_3_duplication_10.md"
},
{
"id": 5,
"source_file": "type_clone_type_3_duplication_11.md"
},
{
"id": 6,
"source_file": "type_clone_type_3_duplication_12.md"
},
{
"id": 7,
"source_file": "type_clone_type_3_duplication_13.md"
},
{
"id": 8,
"source_file": "type_clone_type_3_duplication_14.md"
},
{
"id": 9,
"source_file": "type_clone_type_3_duplication_15.md"
},
{
"id": 10,
"source_file": "type_clone_type_3_duplication_16.md"
},
{
"id": 11,
"source_file": "type_clone_type_3_duplication_17.md"
},
{
"id": 12,
"source_file": "type_clone_type_3_duplication_18.md"
},
{
"id": 13,
"source_file": "type_clone_type_3_duplication_19.md"
},
{
"id": 14,
"source_file": "type_clone_type_3_duplication_20.md"
},
{
"id": 15,
"source_file": "type_clone_type_3_duplication_21.md"
}
]
},
{
"name": "clone_type_4",
"description": "Type 4 duplication occurs when logically equivalent operations are implemented through different algorithmic approaches. Caching strategies (LRU vs LFU vs TTL-based), memory management approaches, or retry mechanisms all accomplish the same goals. This duplication type is important because different algorithms have different performance and resource tradeoffs.",
"sample_count": 10,
"samples": [
{
"id": 1,
"source_file": "type_clone_type_4_duplication_11.md"
},
{
"id": 2,
"source_file": "type_clone_type_4_duplication_12.md"
},
{
"id": 3,
"source_file": "type_clone_type_4_duplication_13.md"
},
{
"id": 4,
"source_file": "type_clone_type_4_duplication_14.md"
},
{
"id": 5,
"source_file": "type_clone_type_4_duplication_15.md"
},
{
"id": 6,
"source_file": "type_clone_type_4_duplication_16.md"
},
{
"id": 7,
"source_file": "type_clone_type_4_duplication_17.md"
},
{
"id": 8,
"source_file": "type_clone_type_4_duplication_18.md"
},
{
"id": 9,
"source_file": "type_clone_type_4_duplication_19.md"
},
{
"id": 10,
"source_file": "type_clone_type_4_duplication_20.md"
}
]
},
{
"name": "configuration",
"description": "Configuration duplication occurs when identical retry policies, circuit breaker thresholds, and fallback behaviors are scattered across multiple external service clients. When the same backoff strategy, timeout values, or failure thresholds need to be updated, developers must find and modify every copy, risking inconsistent behavior and potential outages when some copies are forgotten.",
"sample_count": 20,
"samples": [
{
"id": 1,
"source_file": "type_configuration_duplication_1.md"
},
{
"id": 2,
"source_file": "type_configuration_duplication_2.md"
},
{
"id": 3,
"source_file": "type_configuration_duplication_3.md"
},
{
"id": 4,
"source_file": "type_configuration_duplication_4.md"
},
{
"id": 5,
"source_file": "type_configuration_duplication_5.md"
},
{
"id": 6,
"source_file": "type_configuration_duplication_6.md"
},
{
"id": 7,
"source_file": "type_configuration_duplication_7.md"
},
{
"id": 8,
"source_file": "type_configuration_duplication_8.md"
},
{
"id": 9,
"source_file": "type_configuration_duplication_9.md"
},
{
"id": 10,
"source_file": "type_configuration_duplication_10.md"
},
{
"id": 11,
"source_file": "type_configuration_duplication_1.md"
},
{
"id": 12,
"source_file": "type_configuration_duplication_2.md"
},
{
"id": 13,
"source_file": "type_configuration_duplication_3.md"
},
{
"id": 14,
"source_file": "type_configuration_duplication_4.md"
},
{
"id": 15,
"source_file": "type_configuration_duplication_5.md"
},
{
"id": 16,
"source_file": "type_configuration_duplication_6.md"
},
{
"id": 17,
"source_file": "type_configuration_duplication_7.md"
},
{
"id": 18,
"source_file": "type_configuration_duplication_8.md"
},
{
"id": 19,
"source_file": "type_configuration_duplication_9.md"
},
{
"id": 20,
"source_file": "type_configuration_duplication_10.md"
}
]
},
{
"name": "copy_paste",
"description": "Copy Paste Duplication duplication examples",
"sample_count": 60,
"samples": [
{
"id": 1,
"source_file": "type_copy_paste_duplication_1.md"
},
{
"id": 2,
"source_file": "type_copy_paste_duplication_2.md"
},
{
"id": 3,
"source_file": "type_copy_paste_duplication_3.md"
},
{
"id": 4,
"source_file": "type_copy_paste_duplication_4.md"
},
{
"id": 5,
"source_file": "type_copy_paste_duplication_5.md"
},
{
"id": 6,
"source_file": "type_copy_paste_duplication_6.md"
},
{
"id": 7,
"source_file": "type_copy_paste_duplication_7.md"
},
{
"id": 8,
"source_file": "type_copy_paste_duplication_8.md"
},
{
"id": 9,
"source_file": "type_copy_paste_duplication_9.md"
},
{
"id": 10,
"source_file": "type_copy_paste_duplication_10.md"
},
{
"id": 11,
"source_file": "type_copy_paste_duplication_1.md"
},
{
"id": 12,
"source_file": "type_copy_paste_duplication_2.md"
},
{
"id": 13,
"source_file": "type_copy_paste_duplication_3.md"
},
{
"id": 14,
"source_file": "type_copy_paste_duplication_4.md"
},
{
"id": 15,
"source_file": "type_copy_paste_duplication_5.md"
},
{
"id": 16,
"source_file": "type_copy_paste_duplication_6.md"
},
{
"id": 17,
"source_file": "type_copy_paste_duplication_7.md"
},
{
"id": 18,
"source_file": "type_copy_paste_duplication_8.md"
},
{
"id": 19,
"source_file": "type_copy_paste_duplication_9.md"
},
{
"id": 20,
"source_file": "type_copy_paste_duplication_10.md"
},
{
"id": 21,
"source_file": "type_copy_paste_duplication_11.md"
},
{
"id": 22,
"source_file": "type_copy_paste_duplication_12.md"
},
{
"id": 23,
"source_file": "type_copy_paste_duplication_13.md"
},
{
"id": 24,
"source_file": "type_copy_paste_duplication_14.md"
},
{
"id": 25,
"source_file": "type_copy_paste_duplication_15.md"
},
{
"id": 26,
"source_file": "type_copy_paste_duplication_16.md"
},
{
"id": 27,
"source_file": "type_copy_paste_duplication_17.md"
},
{
"id": 28,
"source_file": "type_copy_paste_duplication_18.md"
},
{
"id": 29,
"source_file": "type_copy_paste_duplication_19.md"
},
{
"id": 30,
"source_file": "type_copy_paste_duplication_20.md"
},
{
"id": 31,
"source_file": "type_copy_paste_duplication_21.md"
},
{
"id": 32,
"source_file": "type_copy_paste_duplication_22.md"
},
{
"id": 33,
"source_file": "type_copy_paste_duplication_23.md"
},
{
"id": 34,
"source_file": "type_copy_paste_duplication_24.md"
},
{
"id": 35,
"source_file": "type_copy_paste_duplication_25.md"
},
{
"id": 36,
"source_file": "type_copy_paste_duplication_26.md"
},
{
"id": 37,
"source_file": "type_copy_paste_duplication_27.md"
},
{
"id": 38,
"source_file": "type_copy_paste_duplication_28.md"
},
{
"id": 39,
"source_file": "type_copy_paste_duplication_29.md"
},
{
"id": 40,
"source_file": "type_copy_paste_duplication_30.md"
},
{
"id": 41,
"source_file": "type_copy_paste_duplication_31.md"
},
{
"id": 42,
"source_file": "type_copy_paste_duplication_32.md"
},
{
"id": 43,
"source_file": "type_copy_paste_duplication_33.md"
},
{
"id": 44,
"source_file": "type_copy_paste_duplication_34.md"
},
{
"id": 45,
"source_file": "type_copy_paste_duplication_35.md"
},
{
"id": 46,
"source_file": "type_copy_paste_duplication_36.md"
},
{
"id": 47,
"source_file": "type_copy_paste_duplication_37.md"
},
{
"id": 48,
"source_file": "type_copy_paste_duplication_38.md"
},
{
"id": 49,
"source_file": "type_copy_paste_duplication_39.md"
},
{
"id": 50,
"source_file": "type_copy_paste_duplication_40.md"
},
{
"id": 51,
"source_file": "type_copy_paste_duplication_41.md"
},
{
"id": 52,
"source_file": "type_copy_paste_duplication_42.md"
},
{
"id": 53,
"source_file": "type_copy_paste_duplication_43.md"
},
{
"id": 54,
"source_file": "type_copy_paste_duplication_44.md"
},
{
"id": 55,
"source_file": "type_copy_paste_duplication_45.md"
},
{
"id": 56,
"source_file": "type_copy_paste_duplication_46.md"
},
{
"id": 57,
"source_file": "type_copy_paste_duplication_47.md"
},
{
"id": 58,
"source_file": "type_copy_paste_duplication_48.md"
},
{
"id": 59,
"source_file": "type_copy_paste_duplication_49.md"
},
{
"id": 60,
"source_file": "type_copy_paste_duplication_50.md"
}
]
},
{
"name": "cross_service",
"description": "Inventory reservation rules (effective stock = on-hand minus reserved minus safety-stock, with backorder allowance for tier-1 SKUs) are independently coded in the cart service, the warehouse service, and the order service. Each service answers \"is X reservable\" differently, leading to oversells when the cart and warehouse disagree.",
"sample_count": 10,
"samples": [
{
"id": 1,
"source_file": "type_cross_service_duplication_1.md"
},
{
"id": 2,
"source_file": "type_cross_service_duplication_2.md"
},
{
"id": 3,
"source_file": "type_cross_service_duplication_3.md"
},
{
"id": 4,
"source_file": "type_cross_service_duplication_4.md"
},
{
"id": 5,
"source_file": "type_cross_service_duplication_5.md"
},
{
"id": 6,
"source_file": "type_cross_service_duplication_6.md"
},
{
"id": 7,
"source_file": "type_cross_service_duplication_7.md"
},
{
"id": 8,
"source_file": "type_cross_service_duplication_8.md"
},
{
"id": 9,
"source_file": "type_cross_service_duplication_9.md"
},
{
"id": 10,
"source_file": "type_cross_service_duplication_10.md"
}
]
},
{
"name": "data",
"description": "Data duplication occurs when error codes, message formats, and logging configurations are repeated across multiple error handling classes. This makes it difficult to maintain consistent error handling and can lead to inconsistent user-facing messages.",
"sample_count": 20,
"samples": [
{
"id": 1,
"source_file": "type_data_duplication_1.md"
},
{
"id": 2,
"source_file": "type_data_duplication_2.md"
},
{
"id": 3,
"source_file": "type_data_duplication_3.md"
},
{
"id": 4,
"source_file": "type_data_duplication_4.md"
},
{
"id": 5,
"source_file": "type_data_duplication_5.md"
},
{
"id": 6,
"source_file": "type_data_duplication_6.md"
},
{
"id": 7,
"source_file": "type_data_duplication_7.md"
},
{
"id": 8,
"source_file": "type_data_duplication_8.md"
},
{
"id": 9,
"source_file": "type_data_duplication_9.md"
},
{
"id": 10,
"source_file": "type_data_duplication_10.md"
},
{
"id": 11,
"source_file": "type_data_duplication_1.md"
},
{
"id": 12,
"source_file": "type_data_duplication_2.md"
},
{
"id": 13,
"source_file": "type_data_duplication_3.md"
},
{