microsoft / jupyter-core
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
  • 2% duplication:
    • 2,440 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 71 duplicated lines
  • 6 duplicates
system2% (71 lines)
Duplication per Extension
cs1% (43 lines)
yml12% (28 lines)
Duplication per Component (primary)
ci12% (28 lines)
src/Engines2% (18 lines)
src/Servers7% (13 lines)
src/Extensions3% (6 lines)
src1% (6 lines)
src/Data0% (0 lines)
src/Properties0% (0 lines)
src/ResultEncoding0% (0 lines)
src/ShellRouting0% (0 lines)
src/Symbols0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
8 x 2 ci
ci
ci.yml
signed.yml
13:20 (29%)
4:11 (33%)
view
6 x 2 src/Engines
src/Servers
ExecuteRequestHandler.cs
ShellServer.cs
185:193 (4%)
207:215 (4%)
view
6 x 2 src/Servers
src/Servers
ShellServer.cs
ShellServer.cs
173:180 (4%)
206:213 (4%)
view
6 x 2 src/Extensions
src
Extensions.cs
KernelApplication.cs
45:52 (16%)
636:643 (1%)
view
6 x 2 src/Engines
src/Engines
ExecuteRequestHandler.cs
ExecuteRequestHandler.cs
140:146 (4%)
165:171 (4%)
view
6 x 2 ci
ci
ci.yml
signed.yml
24:29 (22%)
16:21 (25%)
view