facebookresearch / fbpcp
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
  • 6% duplication:
    • 3,137 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 210 duplicated lines
  • 35 duplicates
system6% (210 lines)
Duplication per Extension
py6% (210 lines)
Duplication per Component (primary)
fbpcp/service8% (79 lines)
pce/validator10% (55 lines)
fbpcp/gateway8% (44 lines)
pce/gateway33% (18 lines)
onedocker/script4% (14 lines)
ROOT0% (0 lines)
pce/entity0% (0 lines)
pce/mapper0% (0 lines)
pce0% (0 lines)
onedocker/repository0% (0 lines)
onedocker/entity0% (0 lines)
onedocker0% (0 lines)
onedocker/common0% (0 lines)
scripts0% (0 lines)
fbpcp/metrics0% (0 lines)
fbpcp/repository0% (0 lines)
fbpcp/decorator0% (0 lines)
fbpcp/util0% (0 lines)
fbpcp/entity0% (0 lines)
fbpcp/mapper0% (0 lines)
fbpcp0% (0 lines)
fbpcp/cloud0% (0 lines)
fbpcp/error0% (0 lines)

Duplication Between Components (50+ lines)

G fbpcp/gateway fbpcp/gateway fbpcp/service fbpcp/service fbpcp/gateway--fbpcp/service 54 pce/gateway pce/gateway fbpcp/gateway--pce/gateway 50

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 35 duplicates...
Size#FoldersFilesLinesCode
10 x 2 fbpcp/gateway
pce/gateway
ec2.py
ec2.py
29:39 (12%)
14:25 (62%)
view
8 x 2 fbpcp/gateway
pce/gateway
s3.py
ec2.py
19:26 (8%)
15:22 (50%)
view
8 x 2 fbpcp/gateway
fbpcp/gateway
cloudwatch.py
ec2.py
19:26 (32%)
30:37 (10%)
view
8 x 2 fbpcp/gateway
pce/gateway
cloudwatch.py
iam.py
19:26 (32%)
22:29 (21%)
view
8 x 2 pce/gateway
pce/gateway
ec2.py
iam.py
15:22 (50%)
22:29 (21%)
view
8 x 2 fbpcp/gateway
pce/gateway
s3.py
iam.py
19:26 (8%)
22:29 (21%)
view
8 x 2 fbpcp/gateway
pce/gateway
ec2.py
iam.py
30:37 (10%)
22:29 (21%)
view
8 x 2 fbpcp/gateway
fbpcp/gateway
cloudwatch.py
s3.py
19:26 (32%)
19:26 (8%)
view
8 x 2 fbpcp/gateway
pce/gateway
cloudwatch.py
ec2.py
19:26 (32%)
15:22 (50%)
view
8 x 2 fbpcp/gateway
fbpcp/gateway
ec2.py
s3.py
30:37 (10%)
19:26 (8%)
view
7 x 2 fbpcp/service
pce/gateway
pce_aws.py
ec2.py
25:31 (11%)
15:21 (43%)
view
7 x 2 fbpcp/gateway
fbpcp/service
s3.py
pce_aws.py
19:25 (7%)
25:31 (11%)
view
7 x 2 fbpcp/gateway
fbpcp/service
ec2.py
pce_aws.py
30:36 (8%)
25:31 (11%)
view
7 x 2 fbpcp/service
fbpcp/service
storage_gcs.py
storage_s3.py
177:183 (4%)
147:153 (4%)
view
7 x 2 fbpcp/service
pce/gateway
pce_aws.py
iam.py
25:31 (11%)
22:28 (18%)
view
7 x 2 onedocker/script/cli
onedocker/script/runner
onedocker_cli.py
onedocker_runner.py
180:187 (4%)
204:212 (4%)
view
7 x 2 pce/validator
pce/validator
validation_suite.py
validation_suite.py
210:216 (1%)
259:265 (1%)
view
7 x 2 fbpcp/service
fbpcp/service
mpc.py
mpc.py
124:130 (3%)
138:144 (3%)
view
7 x 2 fbpcp/gateway
fbpcp/service
cloudwatch.py
pce_aws.py
19:25 (28%)
25:31 (11%)
view
6 x 2 fbpcp/gateway
fbpcp/gateway
cloudwatch.py
ecs.py
19:24 (24%)
34:39 (3%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 2 fbpcp/service
fbpcp/service
mpc_game.py
mpc_game.py
0:0 
0:0 
view