dart-lang / crypto
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
  • 11% duplication:
    • 1,055 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 118 duplicated lines
  • 10 duplicates
system11% (118 lines)
Duplication per Extension
dart11% (118 lines)
Duplication per Component (primary)
lib/src12% (118 lines)
lib0% (0 lines)
example0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
8 x 2 lib/src
lib/src
hash.dart
hmac.dart
24:33 (53%)
40:49 (15%)
view
8 x 2 lib/src
lib/src
sha256.dart
sha512_fastsinks.dart
107:114 (7%)
65:72 (3%)
view
7 x 2 lib/src
lib/src
sha512_fastsinks.dart
sha512_slowsinks.dart
168:181 (3%)
352:365 (2%)
view
7 x 2 lib/src
lib/src
md5.dart
sha1.dart
79:86 (9%)
56:63 (11%)
view
7 x 2 lib/src
lib/src
sha512_fastsinks.dart
sha512_slowsinks.dart
119:132 (3%)
303:316 (2%)
view
7 x 2 lib/src
lib/src
sha512_fastsinks.dart
sha512_slowsinks.dart
144:157 (3%)
328:341 (2%)
view
6 x 2 lib/src
lib/src
md5.dart
sha1.dart
5:11 (8%)
5:11 (9%)
view
6 x 2 lib/src
lib/src
md5.dart
sha256.dart
5:11 (8%)
5:11 (5%)
view
6 x 2 lib/src
lib/src
sha512_fastsinks.dart
sha512_slowsinks.dart
103:109 (2%)
279:285 (2%)
view
6 x 2 lib/src
lib/src
sha1.dart
sha256.dart
5:11 (9%)
5:11 (5%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 2 lib/src
lib/src
hmac.dart
hash.dart
41:47 
25:31 
view