aws / amazon-redshift-python-driver
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
  • 18% duplication:
    • 5,661 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,026 duplicated lines
  • 48 duplicates
system18% (1,026 lines)
Duplication per Extension
py18% (1,026 lines)
Duplication per Component (primary)
redshift_connector20% (801 lines)
redshift_connector/plugin18% (180 lines)
redshift_connector/utils7% (45 lines)
redshift_connector/auth0% (0 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G redshift_connector redshift_connector redshift_connector/utils redshift_connector/utils redshift_connector--redshift_connector/utils 62

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 48 duplicates...
Size#FoldersFilesLinesCode
39 x 2 redshift_connector
redshift_connector
cursor.py
cursor.py
1788:1826 (2%)
1901:1939 (2%)
view
39 x 2 redshift_connector
redshift_connector
cursor.py
cursor.py
1841:1879 (2%)
1942:1980 (2%)
view
39 x 2 redshift_connector
redshift_connector
cursor.py
cursor.py
1610:1648 (2%)
1711:1749 (2%)
view
36 x 2 redshift_connector
redshift_connector
cursor.py
cursor.py
1555:1590 (1%)
1670:1705 (1%)
view
33 x 2 redshift_connector
redshift_connector
cursor.py
cursor.py
1144:1176 (1%)
1243:1275 (1%)
view
29 x 2 redshift_connector
redshift_connector
cursor.py
cursor.py
1365:1393 (1%)
1468:1496 (1%)
view
25 x 2 redshift_connector
redshift_connector
cursor.py
cursor.py
2016:2040 (1%)
2127:2151 (1%)
view
21 x 2 redshift_connector/plugin
redshift_connector/plugin
jwt_credentials_provider.py
saml_credentials_provider.py
110:130 (14%)
145:165 (10%)
view
20 x 2 redshift_connector
redshift_connector
cursor.py
cursor.py
1179:1198 (1%)
1278:1297 (1%)
view
17 x 2 redshift_connector
redshift_connector
cursor.py
cursor.py
2042:2058 (<1%)
2153:2169 (<1%)
view
16 x 2 redshift_connector
redshift_connector/utils
core.py
__init__.py
58:73 (1%)
16:31 (41%)
view
14 x 2 redshift_connector/plugin
redshift_connector/plugin
adfs_credentials_provider.py
ping_credentials_provider.py
96:110 (16%)
115:129 (13%)
view
13 x 2 redshift_connector/plugin
redshift_connector/plugin
adfs_credentials_provider.py
ping_credentials_provider.py
49:61 (14%)
54:66 (12%)
view
11 x 2 redshift_connector
redshift_connector
cursor.py
cursor.py
614:627 (<1%)
745:756 (<1%)
view
10 x 2 redshift_connector
redshift_connector
cursor.py
cursor.py
616:627 (<1%)
694:703 (<1%)
view
10 x 2 redshift_connector/plugin
redshift_connector/plugin
azure_credentials_provider.py
browser_azure_credentials_provider.py
92:101 (11%)
140:149 (6%)
view
10 x 2 redshift_connector
redshift_connector
cursor.py
cursor.py
694:703 (<1%)
747:756 (<1%)
view
9 x 2 redshift_connector
redshift_connector
cursor.py
cursor.py
1355:1363 (<1%)
1458:1466 (<1%)
view
9 x 2 redshift_connector
redshift_connector
__init__.py
core.py
13:21 (3%)
38:46 (<1%)
view
8 x 2 redshift_connector
redshift_connector/utils
__init__.py
type_utils.py
31:39 (2%)
23:32 (1%)
view