microsoft / jupyter-Kqlmagic
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 10% duplication:
    • 10,131 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,068 duplicated lines
  • 57 duplicates
system10% (1,068 lines)
Duplication per Extension
py10% (1,068 lines)
Duplication per Component (primary)
azure/Kqlmagic10% (1,052 lines)
ROOT2% (16 lines)
azure0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 57 duplicates...
Size#FoldersFilesLinesCode
53 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
751:814 (9%)
1118:1181 (6%)
view
45 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
521:578 (7%)
763:819 (5%)
view
42 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
831:881 (7%)
1201:1250 (4%)
view
30 x 2 azure/Kqlmagic
azure/Kqlmagic
parser.py
parser.py
188:236 (2%)
285:333 (2%)
view
23 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
49:80 (3%)
142:173 (2%)
view
21 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
582:606 (3%)
823:847 (2%)
view
18 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
254:275 (3%)
371:392 (2%)
view
18 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
366:427 (3%)
549:613 (2%)
view
16 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
312:330 (2%)
450:468 (1%)
view
16 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
331:351 (2%)
471:491 (1%)
view
13 x 2 azure/Kqlmagic
azure/Kqlmagic
display.py
display.py
432:446 (3%)
597:611 (3%)
view
10 x 2 azure/Kqlmagic
azure/Kqlmagic
kql_response.py
kql_response.py
317:326 (3%)
345:354 (3%)
view
10 x 2 azure/Kqlmagic
azure/Kqlmagic
draft_client.py
kusto_client.py
203:216 (6%)
255:270 (5%)
view
10 x 2 azure/Kqlmagic
azure/Kqlmagic
draft_client.py
kusto_client.py
258:269 (6%)
293:304 (5%)
view
10 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
692:703 (1%)
1039:1050 (1%)
view
9 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
483:497 (1%)
702:716 (1%)
view
9 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
221:230 (1%)
331:340 (1%)
view
9 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
130:155 (1%)
99:124 (1%)
view
9 x 2 azure/Kqlmagic
azure/Kqlmagic
draft_client.py
kusto_client.py
187:196 (5%)
244:252 (4%)
view
9 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
110:120 (1%)
228:238 (1%)
view
Duplicated Units
The list of top 10 duplicated units.
See data for all 10 unit duplicates...
Size#FoldersFilesLinesCode
28 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
0:0 
0:0 
view
22 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
0:0 
0:0 
view
16 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
0:0 
0:0 
view
12 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
0:0 
0:0 
view
10 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
0:0 
0:0 
view
8 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
0:0 
0:0 
view
7 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
0:0 
0:0 
view
7 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
0:0 
0:0 
view
7 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
0:0 
0:0 
view
6 x 2 azure/Kqlmagic
azure/Kqlmagic
my_aad_helper.py
my_aad_helper_msal.py
0:0 
0:0 
view