hackedteam/vector-edk

View on GitHub

Showing 3,985 of 13,510 total issues

Similar blocks of code found in 92 locations. Consider refactoring.
Open

AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp037.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1006.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1026.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1140.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1250.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1251.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1252.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1253.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1254.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1255.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1256.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1257.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1258.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp424.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp500.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp720.py on lines 0..309
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp856.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp874.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp875.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_1.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_10.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_11.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_13.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_14.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_15.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_16.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_2.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_3.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_4.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_5.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_6.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_7.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_8.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_9.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_r.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_u.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_centeuro.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_croatian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_cyrillic.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_farsi.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_greek.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_iceland.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_roman.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_romanian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_turkish.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/tis_620.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp037.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1006.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1140.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1250.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1251.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1252.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1253.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1254.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1255.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1256.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1257.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1258.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp424.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp500.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp720.py on lines 0..309
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp856.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp874.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp875.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_1.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_10.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_11.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_13.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_14.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_15.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_16.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_2.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_3.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_4.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_5.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_6.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_7.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_8.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_9.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_r.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_u.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_centeuro.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_croatian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_cyrillic.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_farsi.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_greek.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_iceland.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_roman.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_romanian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_turkish.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/tis_620.py on lines 0..307

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 198.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 92 locations. Consider refactoring.
Open

AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp037.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1006.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1026.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1140.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1250.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1251.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1252.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1253.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1254.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1255.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1256.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1257.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1258.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp424.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp500.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp720.py on lines 0..309
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp856.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp874.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp875.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_1.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_10.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_11.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_13.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_14.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_15.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_16.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_2.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_3.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_4.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_5.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_6.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_7.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_8.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_9.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_r.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_u.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_centeuro.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_croatian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_cyrillic.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_farsi.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_greek.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_iceland.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_roman.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_romanian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_turkish.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/tis_620.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp037.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1006.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1026.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1140.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1250.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1251.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1252.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1254.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1255.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1256.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1257.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1258.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp424.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp500.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp720.py on lines 0..309
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp856.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp874.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp875.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_1.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_10.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_11.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_13.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_14.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_15.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_16.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_2.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_3.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_4.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_5.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_6.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_7.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_8.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_9.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_r.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_u.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_centeuro.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_croatian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_cyrillic.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_farsi.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_greek.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_iceland.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_roman.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_romanian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_turkish.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/tis_620.py on lines 0..307

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 198.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 92 locations. Consider refactoring.
Open

AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp037.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1006.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1026.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1140.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1250.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1251.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1252.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1253.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1254.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1255.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1256.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1257.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1258.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp424.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp500.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp720.py on lines 0..309
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp856.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp874.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp875.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_1.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_10.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_11.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_13.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_14.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_15.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_16.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_2.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_3.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_4.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_5.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_6.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_7.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_8.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_9.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_r.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_u.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_centeuro.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_croatian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_cyrillic.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_farsi.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_greek.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_iceland.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_roman.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_romanian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_turkish.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/tis_620.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp037.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1006.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1026.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1140.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1250.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1251.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1252.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1253.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1254.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1255.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1256.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1257.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1258.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp424.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp500.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp720.py on lines 0..309
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp856.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp874.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp875.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_1.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_10.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_11.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_14.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_15.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_16.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_2.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_3.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_4.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_5.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_6.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_7.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_8.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_9.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_r.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_u.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_centeuro.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_croatian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_cyrillic.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_farsi.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_greek.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_iceland.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_roman.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_romanian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_turkish.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/tis_620.py on lines 0..307

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 198.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 92 locations. Consider refactoring.
Open

AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp037.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1006.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1026.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1140.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1250.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1251.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1252.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1253.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1254.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1255.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1256.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1257.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1258.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp424.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp500.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp720.py on lines 0..309
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp856.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp874.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp875.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_1.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_10.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_11.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_13.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_14.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_15.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_16.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_2.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_3.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_4.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_5.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_6.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_7.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_8.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_9.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_r.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_u.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_centeuro.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_croatian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_cyrillic.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_farsi.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_greek.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_iceland.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_roman.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_romanian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_turkish.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/tis_620.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp037.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1006.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1026.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1250.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1251.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1252.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1253.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1254.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1255.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1256.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1257.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1258.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp424.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp500.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp720.py on lines 0..309
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp856.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp874.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp875.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_1.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_10.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_11.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_13.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_14.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_15.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_16.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_2.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_3.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_4.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_5.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_6.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_7.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_8.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_9.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_r.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_u.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_centeuro.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_croatian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_cyrillic.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_farsi.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_greek.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_iceland.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_roman.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_romanian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_turkish.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/tis_620.py on lines 0..307

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 198.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 92 locations. Consider refactoring.
Open

AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp037.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1006.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1026.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1140.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1250.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1251.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1252.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1253.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1254.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1255.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1256.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1257.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1258.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp424.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp500.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp720.py on lines 0..309
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp856.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp874.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp875.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_1.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_10.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_11.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_13.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_14.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_15.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_16.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_2.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_3.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_4.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_5.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_6.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_7.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_8.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_9.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_r.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_u.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_centeuro.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_croatian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_cyrillic.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_farsi.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_greek.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_iceland.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_roman.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_romanian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_turkish.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/tis_620.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp037.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1006.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1026.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1140.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1250.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1251.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1252.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1253.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1254.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1255.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1256.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1258.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp424.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp500.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp720.py on lines 0..309
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp856.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp874.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp875.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_1.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_10.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_11.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_13.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_14.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_15.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_16.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_2.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_3.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_4.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_5.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_6.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_7.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_8.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_9.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_r.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_u.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_centeuro.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_croatian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_cyrillic.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_farsi.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_greek.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_iceland.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_roman.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_romanian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_turkish.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/tis_620.py on lines 0..307

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 198.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 92 locations. Consider refactoring.
Open

AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1006.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1026.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1140.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1250.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1251.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1252.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1253.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1254.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1255.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1256.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1257.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1258.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp424.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp500.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp720.py on lines 0..309
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp856.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp874.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp875.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_1.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_10.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_11.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_13.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_14.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_15.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_16.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_2.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_3.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_4.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_5.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_6.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_7.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_8.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_9.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_r.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_u.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_centeuro.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_croatian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_cyrillic.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_farsi.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_greek.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_iceland.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_roman.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_romanian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_turkish.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/tis_620.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp037.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1006.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1026.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1140.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1250.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1251.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1252.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1253.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1254.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1255.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1256.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1257.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1258.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp424.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp500.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp720.py on lines 0..309
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp856.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp874.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp875.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_1.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_10.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_11.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_13.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_14.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_15.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_16.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_2.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_3.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_4.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_5.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_6.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_7.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_8.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_9.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_r.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_u.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_centeuro.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_croatian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_cyrillic.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_farsi.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_greek.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_iceland.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_roman.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_romanian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_turkish.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/tis_620.py on lines 0..307

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 198.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 92 locations. Consider refactoring.
Open

Severity: Major
Found in vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp424.py and 91 other locations - About 1 day to fix
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp037.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1006.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1026.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1140.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1250.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1251.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1252.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1253.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1254.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1255.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1256.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1257.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1258.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp424.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp500.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp720.py on lines 0..309
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp856.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp874.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp875.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_1.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_10.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_11.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_13.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_14.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_15.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_16.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_2.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_3.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_4.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_5.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_6.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_7.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_8.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_9.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_r.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_u.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_centeuro.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_croatian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_cyrillic.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_farsi.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_greek.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_iceland.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_roman.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_romanian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_turkish.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/tis_620.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp037.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1006.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1026.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1140.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1250.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1251.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1252.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1253.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1254.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1255.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1256.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1257.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1258.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp500.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp720.py on lines 0..309
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp856.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp874.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp875.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_1.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_10.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_11.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_13.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_14.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_15.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_16.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_2.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_3.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_4.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_5.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_6.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_7.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_8.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_9.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_r.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_u.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_centeuro.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_croatian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_cyrillic.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_farsi.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_greek.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_iceland.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_roman.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_romanian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_turkish.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/tis_620.py on lines 0..307

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 198.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 92 locations. Consider refactoring.
Open

AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp037.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1006.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1026.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1140.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1250.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1251.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1252.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1253.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1254.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1255.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1256.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1257.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1258.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp424.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp500.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp720.py on lines 0..309
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp856.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp874.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp875.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_1.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_10.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_11.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_13.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_14.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_15.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_16.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_2.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_3.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_4.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_5.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_6.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_7.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_8.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_9.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_r.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_u.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_centeuro.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_croatian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_cyrillic.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_farsi.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_greek.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_iceland.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_roman.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_romanian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_turkish.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/tis_620.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp037.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1006.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1026.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1140.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1250.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1251.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1252.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1253.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1254.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1255.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1256.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1257.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1258.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp424.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp500.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp720.py on lines 0..309
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp856.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp874.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp875.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_1.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_10.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_11.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_13.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_14.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_15.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_16.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_2.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_3.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_4.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_6.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_7.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_8.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_9.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_r.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_u.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_centeuro.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_croatian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_cyrillic.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_farsi.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_greek.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_iceland.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_roman.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_romanian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_turkish.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/tis_620.py on lines 0..307

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 198.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 92 locations. Consider refactoring.
Open

AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp037.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1006.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1026.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1140.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1250.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1251.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1252.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1253.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1254.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1255.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1256.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1257.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1258.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp424.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp500.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp720.py on lines 0..309
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp856.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp874.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp875.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_1.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_10.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_11.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_13.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_14.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_15.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_16.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_2.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_3.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_4.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_5.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_6.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_7.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_8.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_9.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_r.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_u.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_centeuro.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_croatian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_cyrillic.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_farsi.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_greek.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_iceland.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_roman.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_romanian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_turkish.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/tis_620.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp037.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1006.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1026.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1140.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1250.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1251.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1252.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1253.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1254.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1255.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1256.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1257.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1258.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp424.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp500.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp720.py on lines 0..309
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp856.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp874.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp875.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_1.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_10.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_13.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_14.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_15.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_16.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_2.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_3.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_4.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_5.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_6.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_7.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_8.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_9.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_r.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_u.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_centeuro.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_croatian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_cyrillic.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_farsi.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_greek.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_iceland.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_roman.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_romanian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_turkish.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/tis_620.py on lines 0..307

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 198.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 92 locations. Consider refactoring.
Open

AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp037.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1006.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1026.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1140.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1250.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1251.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1252.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1253.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1254.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1255.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1256.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1257.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1258.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp424.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp500.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp720.py on lines 0..309
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp856.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp874.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp875.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_1.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_10.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_11.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_13.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_14.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_15.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_16.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_2.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_3.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_4.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_5.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_6.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_7.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_8.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_9.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_r.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_u.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_centeuro.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_croatian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_cyrillic.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_farsi.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_greek.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_iceland.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_roman.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_romanian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_turkish.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/tis_620.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp037.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1006.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1026.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1140.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1250.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1251.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1252.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1253.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1254.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1255.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1256.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1257.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1258.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp424.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp500.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp720.py on lines 0..309
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp856.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp874.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp875.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_1.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_10.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_11.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_13.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_14.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_15.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_16.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_2.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_3.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_4.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_5.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_7.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_8.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_9.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_r.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_u.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_centeuro.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_croatian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_cyrillic.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_farsi.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_greek.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_iceland.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_roman.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_romanian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_turkish.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/tis_620.py on lines 0..307

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 198.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 92 locations. Consider refactoring.
Open

AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp037.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1006.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1026.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1140.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1250.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1251.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1252.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1253.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1254.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1255.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1256.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1257.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1258.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp424.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp500.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp720.py on lines 0..309
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp856.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp874.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp875.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_1.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_10.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_11.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_13.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_14.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_15.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_16.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_2.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_3.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_4.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_5.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_6.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_7.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_8.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_9.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_r.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_u.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_centeuro.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_croatian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_cyrillic.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_farsi.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_greek.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_iceland.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_roman.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_romanian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_turkish.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/tis_620.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp037.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1006.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1026.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1140.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1250.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1251.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1252.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1253.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1255.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1256.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1257.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1258.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp424.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp500.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp720.py on lines 0..309
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp856.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp874.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp875.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_1.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_10.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_11.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_13.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_14.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_15.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_16.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_2.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_3.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_4.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_5.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_6.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_7.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_8.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_9.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_r.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_u.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_centeuro.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_croatian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_cyrillic.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_farsi.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_greek.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_iceland.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_roman.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_romanian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_turkish.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/tis_620.py on lines 0..307

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 198.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 92 locations. Consider refactoring.
Open

AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp037.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1006.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1026.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1140.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1250.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1251.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1252.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1253.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1254.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1255.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1256.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1257.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp1258.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp424.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp500.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp720.py on lines 0..309
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp856.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp874.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/cp875.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_1.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_10.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_11.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_13.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_14.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_15.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_16.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_2.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_3.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_4.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_5.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_6.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_7.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_8.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/iso8859_9.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_r.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/koi8_u.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_centeuro.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_croatian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_cyrillic.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_farsi.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_greek.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_iceland.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_roman.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_romanian.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/mac_turkish.py on lines 0..307
AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/tis_620.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp037.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1006.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1026.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1140.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1250.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1251.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1252.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1253.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1254.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1255.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1256.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1257.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp1258.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp424.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp500.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp720.py on lines 0..309
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp856.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp874.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/cp875.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_1.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_11.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_13.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_14.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_15.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_16.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_2.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_3.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_4.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_5.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_6.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_7.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_8.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/iso8859_9.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_r.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/koi8_u.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_centeuro.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_croatian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_cyrillic.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_farsi.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_greek.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_iceland.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_roman.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_romanian.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/mac_turkish.py on lines 0..307
vector-uefi/fd/efi/StdLib/lib/python.27/encodings/tis_620.py on lines 0..307

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 198.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 4 locations. Consider refactoring.
Open

def recursedown(dirname):
    dbg('recursedown(%r)\n' % (dirname,))
    bad = 0
    try:
        names = os.listdir(dirname)
AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/eqfix.py on lines 60..80
AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/methfix.py on lines 57..77
AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/pathfix.py on lines 66..86

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 196.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 4 locations. Consider refactoring.
Open

def recursedown(dirname):
    dbg('recursedown(%r)\n' % (dirname,))
    bad = 0
    try:
        names = os.listdir(dirname)
AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/eqfix.py on lines 60..80
AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/classfix.py on lines 60..80
AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/pathfix.py on lines 66..86

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 196.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 4 locations. Consider refactoring.
Open

def recursedown(dirname):
    dbg('recursedown(%r)\n' % (dirname,))
    bad = 0
    try:
        names = os.listdir(dirname)
AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/eqfix.py on lines 60..80
AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/classfix.py on lines 60..80
AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/methfix.py on lines 57..77

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 196.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 4 locations. Consider refactoring.
Open

def recursedown(dirname):
    dbg('recursedown(%r)\n' % (dirname,))
    bad = 0
    try:
        names = os.listdir(dirname)
AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/classfix.py on lines 60..80
AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/methfix.py on lines 57..77
AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/pathfix.py on lines 66..86

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 196.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    for Item in Module.GetSourceFileList():
        File = Item.GetSourceFile()
        if File.startswith("\\") or File.startswith("/"):
            File = File[1:]
            
Severity: Major
Found in BaseTools/Source/Python/UPT/InstallPkg.py and 1 other location - About 1 day to fix
BaseTools/Source/Python/UPT/InstallPkg.py on lines 534..550

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 196.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

        for FileName in FileNameList:              
            File = FileName.GetFilename()          
            if File.startswith("\\") or File.startswith("/"):
                File = File[1:]
                
Severity: Major
Found in BaseTools/Source/Python/UPT/InstallPkg.py and 1 other location - About 1 day to fix
BaseTools/Source/Python/UPT/InstallPkg.py on lines 515..531

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 196.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    def __IsKeyword(self, KeyWord, IgnoreCase = False):
        self.__SkipWhiteSpace()

        # Only consider the same line, no multi-line token allowed
        StartPos = self.CurrentOffsetWithinLine
Severity: Major
Found in BaseTools/Source/Python/Common/FdfParserLite.py and 1 other location - About 1 day to fix
BaseTools/Source/Python/GenFds/FdfParser.py on lines 913..930

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 195.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    def __IsKeyword(self, KeyWord, IgnoreCase = False):
        self.__SkipWhiteSpace()

        # Only consider the same line, no multi-line token allowed
        StartPos = self.CurrentOffsetWithinLine
Severity: Major
Found in BaseTools/Source/Python/GenFds/FdfParser.py and 1 other location - About 1 day to fix
BaseTools/Source/Python/Common/FdfParserLite.py on lines 803..820

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 195.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language