tensorflow / lattice
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
  • 14% duplication:
    • 8,236 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,168 duplicated lines
  • 94 duplicates
system14% (1,168 lines)
Duplication per Extension
py14% (1,168 lines)
Duplication per Component (primary)
tensorflow_lattice/python14% (1,168 lines)
tensorflow_lattice/layers0% (0 lines)
tensorflow_lattice/sonnet_modules0% (0 lines)
tensorflow_lattice0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 94 duplicates...
Size#FoldersFilesLinesCode
46 x 2 tensorflow_lattice/python
tensorflow_lattice/python
pwl_calibration_layer.py
pwl_calibration_sonnet_module.py
693:757 (8%)
444:508 (17%)
view
30 x 2 tensorflow_lattice/python
tensorflow_lattice/python
estimators.py
estimators.py
833:866 (2%)
1005:1038 (2%)
view
20 x 2 tensorflow_lattice/python
tensorflow_lattice/python
estimators.py
estimators.py
1017:1038 (1%)
1170:1191 (1%)
view
20 x 2 tensorflow_lattice/python
tensorflow_lattice/python
estimators.py
estimators.py
845:866 (1%)
1170:1191 (1%)
view
17 x 2 tensorflow_lattice/python
tensorflow_lattice/python
estimators.py
estimators.py
601:622 (1%)
645:666 (1%)
view
16 x 2 tensorflow_lattice/python
tensorflow_lattice/python
estimators.py
estimators.py
580:597 (1%)
624:641 (1%)
view
15 x 2 tensorflow_lattice/python
tensorflow_lattice/python
pwl_calibration_layer.py
pwl_calibration_sonnet_module.py
474:490 (2%)
347:363 (5%)
view
15 x 2 tensorflow_lattice/python
tensorflow_lattice/python
estimators.py
estimators.py
559:577 (1%)
604:622 (1%)
view
15 x 2 tensorflow_lattice/python
tensorflow_lattice/python
estimators.py
estimators.py
559:577 (1%)
648:666 (1%)
view
15 x 2 tensorflow_lattice/python
tensorflow_lattice/python
pwl_calibration_layer.py
pwl_calibration_sonnet_module.py
220:235 (2%)
182:197 (5%)
view
13 x 2 tensorflow_lattice/python
tensorflow_lattice/python
pwl_calibration_layer.py
pwl_calibration_sonnet_module.py
365:378 (2%)
255:268 (5%)
view
12 x 2 tensorflow_lattice/python
tensorflow_lattice/python
pwl_calibration_layer.py
pwl_calibration_sonnet_module.py
203:214 (2%)
169:180 (4%)
view
11 x 2 tensorflow_lattice/python
tensorflow_lattice/python
premade.py
premade.py
262:272 (3%)
501:511 (3%)
view
11 x 2 tensorflow_lattice/python
tensorflow_lattice/python
premade.py
premade.py
379:389 (3%)
501:511 (3%)
view
11 x 2 tensorflow_lattice/python
tensorflow_lattice/python
premade.py
premade.py
148:158 (3%)
379:389 (3%)
view
11 x 2 tensorflow_lattice/python
tensorflow_lattice/python
lattice_layer.py
lattice_layer.py
475:485 (2%)
915:925 (2%)
view
11 x 2 tensorflow_lattice/python
tensorflow_lattice/python
estimators.py
estimators.py
912:987 (<1%)
1082:1151 (<1%)
view
11 x 2 tensorflow_lattice/python
tensorflow_lattice/python
premade.py
premade.py
148:158 (3%)
262:272 (3%)
view
11 x 2 tensorflow_lattice/python
tensorflow_lattice/python
premade.py
premade.py
148:158 (3%)
501:511 (3%)
view
11 x 2 tensorflow_lattice/python
tensorflow_lattice/python
lattice_layer.py
lattice_layer.py
371:381 (2%)
418:428 (2%)
view
Duplicated Units
The list of top 7 duplicated units.
See data for all 7 unit duplicates...
Size#FoldersFilesLinesCode
49 x 2 tensorflow_lattice/python
tensorflow_lattice/python
pwl_calibration_layer.py
pwl_calibration_sonnet_module.py
0:0 
0:0 
view
11 x 2 tensorflow_lattice/python
tensorflow_lattice/python
pwl_calibration_layer.py
pwl_calibration_sonnet_module.py
0:0 
0:0 
view
8 x 2 tensorflow_lattice/python
tensorflow_lattice/python
kronecker_factored_lattice_layer.py
lattice_layer.py
0:0 
0:0 
view
6 x 2 tensorflow_lattice/python
tensorflow_lattice/python
kronecker_factored_lattice_layer.py
kronecker_factored_lattice_layer.py
0:0 
0:0 
view
6 x 2 tensorflow_lattice/python
tensorflow_lattice/python
pwl_calibration_layer.py
categorical_calibration_layer.py
0:0 
0:0 
view
6 x 2 tensorflow_lattice/python
tensorflow_lattice/python
pwl_calibration_layer.py
pwl_calibration_sonnet_module.py
0:0 
0:0 
view
6 x 2 tensorflow_lattice/python
tensorflow_lattice/python
pwl_calibration_layer.py
pwl_calibration_layer.py
0:0 
0:0 
view