firebase / firebase-admin-python
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
  • 7% duplication:
    • 6,499 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 493 duplicated lines
  • 48 duplicates
system7% (493 lines)
Duplication per Extension
py7% (493 lines)
Duplication per Component (primary)
firebase_admin4% (259 lines)
snippets/auth31% (216 lines)
snippets/messaging10% (18 lines)
ROOT0% (0 lines)
snippets0% (0 lines)
snippets/database0% (0 lines)
integration0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 48 duplicates...
Size#FoldersFilesLinesCode
14 x 2 snippets/auth
snippets/auth
index.py
index.py
458:471 (2%)
923:936 (2%)
view
14 x 2 firebase_admin
firebase_admin
_user_mgt.py
_user_mgt.py
147:184 (3%)
466:483 (3%)
view
13 x 2 firebase_admin
firebase_admin
_auth_providers.py
_auth_providers.py
207:219 (4%)
244:256 (4%)
view
13 x 2 firebase_admin
firebase_admin
_user_import.py
_user_import.py
65:81 (4%)
150:166 (4%)
view
12 x 2 snippets/auth
snippets/auth
index.py
index.py
676:688 (1%)
813:825 (1%)
view
11 x 2 snippets/auth
snippets/auth
index.py
index.py
597:607 (1%)
949:959 (1%)
view
9 x 2 snippets/messaging
snippets/messaging
cloud_messaging.py
cloud_messaging.py
252:262 (5%)
272:282 (5%)
view
9 x 2 firebase_admin
firebase_admin
_user_import.py
messaging.py
507:520 (3%)
242:255 (3%)
view
9 x 2 firebase_admin
firebase_admin
_user_mgt.py
messaging.py
410:433 (2%)
242:255 (3%)
view
9 x 2 firebase_admin
firebase_admin
_user_import.py
_user_mgt.py
507:520 (3%)
410:433 (2%)
view
9 x 2 snippets/auth
snippets/auth
index.py
index.py
627:635 (1%)
1069:1078 (1%)
view
8 x 2 snippets/auth
snippets/auth
index.py
index.py
509:516 (1%)
529:536 (1%)
view
8 x 2 snippets/auth
snippets/auth
index.py
index.py
509:516 (1%)
570:577 (1%)
view
8 x 2 firebase_admin
firebase_admin
_auth_providers.py
_auth_providers.py
231:238 (2%)
327:334 (2%)
view
8 x 2 snippets/auth
snippets/auth
index.py
index.py
529:536 (1%)
550:557 (1%)
view
8 x 2 firebase_admin
firebase_admin
_auth_providers.py
tenant_mgt.py
121:138 (2%)
373:389 (3%)
view
8 x 2 snippets/auth
snippets/auth
index.py
index.py
509:516 (1%)
550:557 (1%)
view
8 x 2 snippets/auth
snippets/auth
index.py
index.py
489:496 (1%)
509:516 (1%)
view
8 x 2 snippets/auth
snippets/auth
index.py
index.py
550:557 (1%)
570:577 (1%)
view
8 x 2 firebase_admin
firebase_admin
_user_mgt.py
tenant_mgt.py
361:377 (1%)
373:389 (3%)
view