openai / tiktoken
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
  • 1% duplication:
    • 1,434 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 27 duplicated lines
  • 3 duplicates
system1% (27 lines)
dependency graphs: 2D graph | 2D graph (with duplicates)... | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
py3% (27 lines)
Duplication per Component (primary)
tiktoken4% (27 lines)
scripts0% (0 lines)
src0% (0 lines)
tiktoken_ext0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 3 longest duplicates.
See data for all 3 duplicates...
Size#FoldersFilesLinesCode
9 x 2 tiktoken
tiktoken
116:124 (4%)
233:241 (4%)
view
9 x 2 tiktoken
tiktoken
149:157 (4%)
233:241 (4%)
view
9 x 2 tiktoken
tiktoken
116:124 (4%)
149:157 (4%)
view
Most Frequent Duplicates
The list of 4 most frequently found duplicates.
Size#FoldersFilesLinesCode
6 x 3 tiktoken
tiktoken
tiktoken
118:123 (3%)
151:156 (3%)
235:240 (3%)
view
6 x 3 tiktoken
tiktoken
tiktoken
117:122 (3%)
150:155 (3%)
234:239 (3%)
view
6 x 3 tiktoken
tiktoken
tiktoken
119:124 (3%)
152:157 (3%)
236:241 (3%)
view
6 x 3 tiktoken
tiktoken
tiktoken
116:121 (3%)
149:154 (3%)
233:238 (3%)
view