jason-neal/eniric

View on GitHub
scripts/precision_four_panel.py

Summary

Maintainability
F
5 days
Test Coverage

File precision_four_panel.py has 465 lines of code (exceeds 400 allowed). Consider refactoring.
Open

"""
precision_four_panel.py
-----------------------
Plot a Figueira et al. (2016) Figure 1 like plot.

Severity: Minor
Found in scripts/precision_four_panel.py - About 3 hrs to fix

    Cyclomatic complexity is too high in function cumulative_plot. (12)
    Open

    def cumulative_plot(
        precision_file,
        teffs=None,
        logg=4.5,
        fe_h=0.0,
    Severity: Minor
    Found in scripts/precision_four_panel.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Cyclomatic complexity is too high in function plot_precision. (11)
    Open

    def plot_precision(
        precision_file, teffs=None, logg=4.5, fe_h=0.0, vsini=1.0, sampling=3
    ):
        """Plot precision 4 panel with RV  precision.
    
    
    Severity: Minor
    Found in scripts/precision_four_panel.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    Function cumulative_plot has a Cognitive Complexity of 16 (exceeds 10 allowed). Consider refactoring.
    Open

    def cumulative_plot(
        precision_file,
        teffs=None,
        logg=4.5,
        fe_h=0.0,
    Severity: Minor
    Found in scripts/precision_four_panel.py - About 1 hr to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function cumulative_plot has 7 arguments (exceeds 6 allowed). Consider refactoring.
    Open

    def cumulative_plot(
    Severity: Major
    Found in scripts/precision_four_panel.py - About 35 mins to fix

      Function plot_precision has a Cognitive Complexity of 12 (exceeds 10 allowed). Consider refactoring.
      Open

      def plot_precision(
          precision_file, teffs=None, logg=4.5, fe_h=0.0, vsini=1.0, sampling=3
      ):
          """Plot precision 4 panel with RV  precision.
      
      
      Severity: Minor
      Found in scripts/precision_four_panel.py - About 35 mins to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

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

              maximums.append(
                  np.max(
                      [
                          df_ii_60k[["Cond. 1", "Cond. 2", "Cond. 3"]].max(),
                          df_ii_80k[["Cond. 1", "Cond. 2", "Cond. 3"]].max(),
      Severity: Major
      Found in scripts/precision_four_panel.py and 3 other locations - About 2 hrs to fix
      scripts/precision_four_panel.py on lines 121..126
      scripts/precision_four_panel.py on lines 362..367
      scripts/precision_four_panel.py on lines 371..376

      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 61.

      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 4 locations. Consider refactoring.
      Open

              minimums.append(
                  np.min(
                      [
                          df_ii_60k[["Cond. 1", "Cond. 2", "Cond. 3"]].min(),
                          df_ii_80k[["Cond. 1", "Cond. 2", "Cond. 3"]].min(),
      Severity: Major
      Found in scripts/precision_four_panel.py and 3 other locations - About 2 hrs to fix
      scripts/precision_four_panel.py on lines 112..117
      scripts/precision_four_panel.py on lines 121..126
      scripts/precision_four_panel.py on lines 362..367

      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 61.

      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 4 locations. Consider refactoring.
      Open

              minimums.append(
                  np.min(
                      [
                          df_ii_60k[["Cond. 1", "Cond. 2", "Cond. 3"]].min(),
                          df_ii_80k[["Cond. 1", "Cond. 2", "Cond. 3"]].min(),
      Severity: Major
      Found in scripts/precision_four_panel.py and 3 other locations - About 2 hrs to fix
      scripts/precision_four_panel.py on lines 112..117
      scripts/precision_four_panel.py on lines 362..367
      scripts/precision_four_panel.py on lines 371..376

      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 61.

      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 4 locations. Consider refactoring.
      Open

              maximums.append(
                  np.max(
                      [
                          df_ii_60k[["Cond. 1", "Cond. 2", "Cond. 3"]].max(),
                          df_ii_80k[["Cond. 1", "Cond. 2", "Cond. 3"]].max(),
      Severity: Major
      Found in scripts/precision_four_panel.py and 3 other locations - About 2 hrs to fix
      scripts/precision_four_panel.py on lines 112..117
      scripts/precision_four_panel.py on lines 121..126
      scripts/precision_four_panel.py on lines 371..376

      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 61.

      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 7 locations. Consider refactoring.
      Open

              ax[ii].fill_between(
                  df_ii_60k.index,
                  df_ii_60k["Cond. 2"].values,
                  df_ii_60k["Cond. 3"].values,
      Severity: Major
      Found in scripts/precision_four_panel.py and 6 other locations - About 1 hr to fix
      scripts/precision_four_panel.py on lines 138..141
      scripts/precision_four_panel.py on lines 145..148
      scripts/precision_four_panel.py on lines 381..384
      scripts/precision_four_panel.py on lines 388..391
      scripts/precision_four_panel.py on lines 395..398
      scripts/precision_four_panel.py on lines 458..461

      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 42.

      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 7 locations. Consider refactoring.
      Open

              ax[ii].fill_between(
                  df_ii_80k.index,
                  df_ii_80k["Cond. 2"].values,
                  df_ii_80k["Cond. 3"].values,
      Severity: Major
      Found in scripts/precision_four_panel.py and 6 other locations - About 1 hr to fix
      scripts/precision_four_panel.py on lines 131..134
      scripts/precision_four_panel.py on lines 145..148
      scripts/precision_four_panel.py on lines 381..384
      scripts/precision_four_panel.py on lines 388..391
      scripts/precision_four_panel.py on lines 395..398
      scripts/precision_four_panel.py on lines 458..461

      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 42.

      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 7 locations. Consider refactoring.
      Open

              ax[ii].fill_between(
                  df_ii_80k.index,
                  df_ii_80k["Cond. 2"].values,
                  df_ii_80k["Cond. 3"].values,
      Severity: Major
      Found in scripts/precision_four_panel.py and 6 other locations - About 1 hr to fix
      scripts/precision_four_panel.py on lines 131..134
      scripts/precision_four_panel.py on lines 138..141
      scripts/precision_four_panel.py on lines 145..148
      scripts/precision_four_panel.py on lines 381..384
      scripts/precision_four_panel.py on lines 395..398
      scripts/precision_four_panel.py on lines 458..461

      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 42.

      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 7 locations. Consider refactoring.
      Open

              ax[ii].fill_between(
                  df_ii_100k.index,
                  df_ii_100k["Cond. 2"].values,
                  df_ii_100k["Cond. 3"].values,
      Severity: Major
      Found in scripts/precision_four_panel.py and 6 other locations - About 1 hr to fix
      scripts/precision_four_panel.py on lines 131..134
      scripts/precision_four_panel.py on lines 138..141
      scripts/precision_four_panel.py on lines 145..148
      scripts/precision_four_panel.py on lines 381..384
      scripts/precision_four_panel.py on lines 388..391
      scripts/precision_four_panel.py on lines 458..461

      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 42.

      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 7 locations. Consider refactoring.
      Open

              ax[ii].fill_between(
                  df_ii_100k.index,
                  df_ii_100k["Cond. 2"].values,
                  df_ii_100k["Cond. 3"].values,
      Severity: Major
      Found in scripts/precision_four_panel.py and 6 other locations - About 1 hr to fix
      scripts/precision_four_panel.py on lines 131..134
      scripts/precision_four_panel.py on lines 138..141
      scripts/precision_four_panel.py on lines 145..148
      scripts/precision_four_panel.py on lines 381..384
      scripts/precision_four_panel.py on lines 388..391
      scripts/precision_four_panel.py on lines 395..398

      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 42.

      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 7 locations. Consider refactoring.
      Open

              ax[ii].fill_between(
                  df_ii_100k.index,
                  df_ii_100k["Cond. 2"].values,
                  df_ii_100k["Cond. 3"].values,
      Severity: Major
      Found in scripts/precision_four_panel.py and 6 other locations - About 1 hr to fix
      scripts/precision_four_panel.py on lines 131..134
      scripts/precision_four_panel.py on lines 138..141
      scripts/precision_four_panel.py on lines 381..384
      scripts/precision_four_panel.py on lines 388..391
      scripts/precision_four_panel.py on lines 395..398
      scripts/precision_four_panel.py on lines 458..461

      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 42.

      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 7 locations. Consider refactoring.
      Open

              ax[ii].fill_between(
                  df_ii_60k.index,
                  df_ii_60k["Cond. 2"].values,
                  df_ii_60k["Cond. 3"].values,
      Severity: Major
      Found in scripts/precision_four_panel.py and 6 other locations - About 1 hr to fix
      scripts/precision_four_panel.py on lines 131..134
      scripts/precision_four_panel.py on lines 138..141
      scripts/precision_four_panel.py on lines 145..148
      scripts/precision_four_panel.py on lines 388..391
      scripts/precision_four_panel.py on lines 395..398
      scripts/precision_four_panel.py on lines 458..461

      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 42.

      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

              ax[jj].set_ylim(ymin - 0.1 * delta_y, ymax + 0.15 * delta_y)
      Severity: Major
      Found in scripts/precision_four_panel.py and 1 other location - About 1 hr to fix
      scripts/precision_four_panel.py on lines 215..215

      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 40.

      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

              ax[jj].set_ylim(ymin - 0.11 * delta_y, ymax + 0.11 * delta_y)
      Severity: Major
      Found in scripts/precision_four_panel.py and 1 other location - About 1 hr to fix
      scripts/precision_four_panel.py on lines 474..474

      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 40.

      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 12 locations. Consider refactoring.
      Open

              ax[ii].scatter(
                  df_ii_100k.index,
                  df_ii_100k["Cond. 3"].values,
      Severity: Major
      Found in scripts/precision_four_panel.py and 11 other locations - About 50 mins to fix
      scripts/precision_four_panel.py on lines 163..165
      scripts/precision_four_panel.py on lines 170..172
      scripts/precision_four_panel.py on lines 178..180
      scripts/precision_four_panel.py on lines 185..187
      scripts/precision_four_panel.py on lines 193..195
      scripts/precision_four_panel.py on lines 200..202
      scripts/precision_four_panel.py on lines 413..415
      scripts/precision_four_panel.py on lines 420..422
      scripts/precision_four_panel.py on lines 428..430
      scripts/precision_four_panel.py on lines 435..437
      scripts/precision_four_panel.py on lines 450..452

      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 36.

      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 12 locations. Consider refactoring.
      Open

              ax[ii].scatter(
                  df_ii_100k.index,
                  df_ii_100k["Cond. 2"].values,
      Severity: Major
      Found in scripts/precision_four_panel.py and 11 other locations - About 50 mins to fix
      scripts/precision_four_panel.py on lines 163..165
      scripts/precision_four_panel.py on lines 170..172
      scripts/precision_four_panel.py on lines 178..180
      scripts/precision_four_panel.py on lines 185..187
      scripts/precision_four_panel.py on lines 193..195
      scripts/precision_four_panel.py on lines 200..202
      scripts/precision_four_panel.py on lines 413..415
      scripts/precision_four_panel.py on lines 420..422
      scripts/precision_four_panel.py on lines 428..430
      scripts/precision_four_panel.py on lines 435..437
      scripts/precision_four_panel.py on lines 443..445

      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 36.

      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 12 locations. Consider refactoring.
      Open

              ax[ii].scatter(
                  df_ii_100k.index,
                  df_ii_100k["Cond. 2"].values,
      Severity: Major
      Found in scripts/precision_four_panel.py and 11 other locations - About 50 mins to fix
      scripts/precision_four_panel.py on lines 163..165
      scripts/precision_four_panel.py on lines 170..172
      scripts/precision_four_panel.py on lines 178..180
      scripts/precision_four_panel.py on lines 185..187
      scripts/precision_four_panel.py on lines 193..195
      scripts/precision_four_panel.py on lines 413..415
      scripts/precision_four_panel.py on lines 420..422
      scripts/precision_four_panel.py on lines 428..430
      scripts/precision_four_panel.py on lines 435..437
      scripts/precision_four_panel.py on lines 443..445
      scripts/precision_four_panel.py on lines 450..452

      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 36.

      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 4 locations. Consider refactoring.
      Open

              if (jj == 0) or (jj == 1):
                  ax[jj].set_xticklabels([])
      Severity: Major
      Found in scripts/precision_four_panel.py and 3 other locations - About 50 mins to fix
      scripts/precision_four_panel.py on lines 222..223
      scripts/precision_four_panel.py on lines 224..225
      scripts/precision_four_panel.py on lines 486..487

      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 36.

      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 12 locations. Consider refactoring.
      Open

              ax[ii].scatter(
                  df_ii_60k.index,
                  df_ii_60k["Cond. 3"].values,
      Severity: Major
      Found in scripts/precision_four_panel.py and 11 other locations - About 50 mins to fix
      scripts/precision_four_panel.py on lines 163..165
      scripts/precision_four_panel.py on lines 178..180
      scripts/precision_four_panel.py on lines 185..187
      scripts/precision_four_panel.py on lines 193..195
      scripts/precision_four_panel.py on lines 200..202
      scripts/precision_four_panel.py on lines 413..415
      scripts/precision_four_panel.py on lines 420..422
      scripts/precision_four_panel.py on lines 428..430
      scripts/precision_four_panel.py on lines 435..437
      scripts/precision_four_panel.py on lines 443..445
      scripts/precision_four_panel.py on lines 450..452

      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 36.

      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 4 locations. Consider refactoring.
      Open

              if (jj == 1) or (jj == 3):
                  ax[jj].set_yticklabels([])
      Severity: Major
      Found in scripts/precision_four_panel.py and 3 other locations - About 50 mins to fix
      scripts/precision_four_panel.py on lines 222..223
      scripts/precision_four_panel.py on lines 224..225
      scripts/precision_four_panel.py on lines 488..489

      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 36.

      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 12 locations. Consider refactoring.
      Open

              ax[ii].scatter(
                  df_ii_80k.index,
                  df_ii_80k["Cond. 3"].values,
      Severity: Major
      Found in scripts/precision_four_panel.py and 11 other locations - About 50 mins to fix
      scripts/precision_four_panel.py on lines 163..165
      scripts/precision_four_panel.py on lines 170..172
      scripts/precision_four_panel.py on lines 178..180
      scripts/precision_four_panel.py on lines 185..187
      scripts/precision_four_panel.py on lines 193..195
      scripts/precision_four_panel.py on lines 200..202
      scripts/precision_four_panel.py on lines 413..415
      scripts/precision_four_panel.py on lines 420..422
      scripts/precision_four_panel.py on lines 435..437
      scripts/precision_four_panel.py on lines 443..445
      scripts/precision_four_panel.py on lines 450..452

      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 36.

      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 4 locations. Consider refactoring.
      Open

              if (jj == 1) or (jj == 3):
                  ax[jj].set_yticklabels([])
      Severity: Major
      Found in scripts/precision_four_panel.py and 3 other locations - About 50 mins to fix
      scripts/precision_four_panel.py on lines 224..225
      scripts/precision_four_panel.py on lines 486..487
      scripts/precision_four_panel.py on lines 488..489

      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 36.

      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 12 locations. Consider refactoring.
      Open

              ax[ii].scatter(
                  df_ii_80k.index,
                  df_ii_80k["Cond. 3"].values,
      Severity: Major
      Found in scripts/precision_four_panel.py and 11 other locations - About 50 mins to fix
      scripts/precision_four_panel.py on lines 163..165
      scripts/precision_four_panel.py on lines 170..172
      scripts/precision_four_panel.py on lines 185..187
      scripts/precision_four_panel.py on lines 193..195
      scripts/precision_four_panel.py on lines 200..202
      scripts/precision_four_panel.py on lines 413..415
      scripts/precision_four_panel.py on lines 420..422
      scripts/precision_four_panel.py on lines 428..430
      scripts/precision_four_panel.py on lines 435..437
      scripts/precision_four_panel.py on lines 443..445
      scripts/precision_four_panel.py on lines 450..452

      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 36.

      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 12 locations. Consider refactoring.
      Open

              ax[ii].scatter(
                  df_ii_100k.index,
                  df_ii_100k["Cond. 3"].values,
      Severity: Major
      Found in scripts/precision_four_panel.py and 11 other locations - About 50 mins to fix
      scripts/precision_four_panel.py on lines 163..165
      scripts/precision_four_panel.py on lines 170..172
      scripts/precision_four_panel.py on lines 178..180
      scripts/precision_four_panel.py on lines 185..187
      scripts/precision_four_panel.py on lines 200..202
      scripts/precision_four_panel.py on lines 413..415
      scripts/precision_four_panel.py on lines 420..422
      scripts/precision_four_panel.py on lines 428..430
      scripts/precision_four_panel.py on lines 435..437
      scripts/precision_four_panel.py on lines 443..445
      scripts/precision_four_panel.py on lines 450..452

      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 36.

      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 12 locations. Consider refactoring.
      Open

              ax[ii].scatter(
                  df_ii_80k.index,
                  df_ii_80k["Cond. 2"].values,
      Severity: Major
      Found in scripts/precision_four_panel.py and 11 other locations - About 50 mins to fix
      scripts/precision_four_panel.py on lines 163..165
      scripts/precision_four_panel.py on lines 170..172
      scripts/precision_four_panel.py on lines 178..180
      scripts/precision_four_panel.py on lines 193..195
      scripts/precision_four_panel.py on lines 200..202
      scripts/precision_four_panel.py on lines 413..415
      scripts/precision_four_panel.py on lines 420..422
      scripts/precision_four_panel.py on lines 428..430
      scripts/precision_four_panel.py on lines 435..437
      scripts/precision_four_panel.py on lines 443..445
      scripts/precision_four_panel.py on lines 450..452

      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 36.

      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 4 locations. Consider refactoring.
      Open

              if (jj == 0) or (jj == 1):
                  ax[jj].set_xticklabels([])
      Severity: Major
      Found in scripts/precision_four_panel.py and 3 other locations - About 50 mins to fix
      scripts/precision_four_panel.py on lines 222..223
      scripts/precision_four_panel.py on lines 486..487
      scripts/precision_four_panel.py on lines 488..489

      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 36.

      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 12 locations. Consider refactoring.
      Open

              ax[ii].scatter(
                  df_ii_60k.index,
                  df_ii_60k["Cond. 2"].values,
      Severity: Major
      Found in scripts/precision_four_panel.py and 11 other locations - About 50 mins to fix
      scripts/precision_four_panel.py on lines 163..165
      scripts/precision_four_panel.py on lines 170..172
      scripts/precision_four_panel.py on lines 178..180
      scripts/precision_four_panel.py on lines 185..187
      scripts/precision_four_panel.py on lines 193..195
      scripts/precision_four_panel.py on lines 200..202
      scripts/precision_four_panel.py on lines 420..422
      scripts/precision_four_panel.py on lines 428..430
      scripts/precision_four_panel.py on lines 435..437
      scripts/precision_four_panel.py on lines 443..445
      scripts/precision_four_panel.py on lines 450..452

      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 36.

      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 12 locations. Consider refactoring.
      Open

              ax[ii].scatter(
                  df_ii_60k.index,
                  df_ii_60k["Cond. 3"].values,
      Severity: Major
      Found in scripts/precision_four_panel.py and 11 other locations - About 50 mins to fix
      scripts/precision_four_panel.py on lines 163..165
      scripts/precision_four_panel.py on lines 170..172
      scripts/precision_four_panel.py on lines 178..180
      scripts/precision_four_panel.py on lines 185..187
      scripts/precision_four_panel.py on lines 193..195
      scripts/precision_four_panel.py on lines 200..202
      scripts/precision_four_panel.py on lines 413..415
      scripts/precision_four_panel.py on lines 428..430
      scripts/precision_four_panel.py on lines 435..437
      scripts/precision_four_panel.py on lines 443..445
      scripts/precision_four_panel.py on lines 450..452

      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 36.

      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 12 locations. Consider refactoring.
      Open

              ax[ii].scatter(
                  df_ii_60k.index,
                  df_ii_60k["Cond. 2"].values,
      Severity: Major
      Found in scripts/precision_four_panel.py and 11 other locations - About 50 mins to fix
      scripts/precision_four_panel.py on lines 170..172
      scripts/precision_four_panel.py on lines 178..180
      scripts/precision_four_panel.py on lines 185..187
      scripts/precision_four_panel.py on lines 193..195
      scripts/precision_four_panel.py on lines 200..202
      scripts/precision_four_panel.py on lines 413..415
      scripts/precision_four_panel.py on lines 420..422
      scripts/precision_four_panel.py on lines 428..430
      scripts/precision_four_panel.py on lines 435..437
      scripts/precision_four_panel.py on lines 443..445
      scripts/precision_four_panel.py on lines 450..452

      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 36.

      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 12 locations. Consider refactoring.
      Open

              ax[ii].scatter(
                  df_ii_80k.index,
                  df_ii_80k["Cond. 2"].values,
      Severity: Major
      Found in scripts/precision_four_panel.py and 11 other locations - About 50 mins to fix
      scripts/precision_four_panel.py on lines 163..165
      scripts/precision_four_panel.py on lines 170..172
      scripts/precision_four_panel.py on lines 178..180
      scripts/precision_four_panel.py on lines 185..187
      scripts/precision_four_panel.py on lines 193..195
      scripts/precision_four_panel.py on lines 200..202
      scripts/precision_four_panel.py on lines 413..415
      scripts/precision_four_panel.py on lines 420..422
      scripts/precision_four_panel.py on lines 428..430
      scripts/precision_four_panel.py on lines 443..445
      scripts/precision_four_panel.py on lines 450..452

      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 36.

      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 6 locations. Consider refactoring.
      Open

              ax[ii].plot(
                  df_ii_60k.index, df_ii_60k["Cond. 1"].values, color="b", linestyle="--"
      Severity: Major
      Found in scripts/precision_four_panel.py and 5 other locations - About 35 mins to fix
      scripts/precision_four_panel.py on lines 153..154
      scripts/precision_four_panel.py on lines 156..157
      scripts/precision_four_panel.py on lines 159..160
      scripts/precision_four_panel.py on lines 406..407
      scripts/precision_four_panel.py on lines 409..410

      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 33.

      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

              ax[jj].text(0, ymax, "{} K".format(teffs[jj]), size=14)
      Severity: Minor
      Found in scripts/precision_four_panel.py and 1 other location - About 35 mins to fix
      scripts/precision_four_panel.py on lines 473..473

      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 33.

      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 6 locations. Consider refactoring.
      Open

              ax[ii].plot(
                  df_ii_100k.index, df_ii_100k["Cond. 1"].values, color="r", linestyle="--"
      Severity: Major
      Found in scripts/precision_four_panel.py and 5 other locations - About 35 mins to fix
      scripts/precision_four_panel.py on lines 153..154
      scripts/precision_four_panel.py on lines 156..157
      scripts/precision_four_panel.py on lines 403..404
      scripts/precision_four_panel.py on lines 406..407
      scripts/precision_four_panel.py on lines 409..410

      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 33.

      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 6 locations. Consider refactoring.
      Open

              ax[ii].plot(
                  df_ii_60k.index, df_ii_60k["Cond. 1"].values, color="b", linestyle="--"
      Severity: Major
      Found in scripts/precision_four_panel.py and 5 other locations - About 35 mins to fix
      scripts/precision_four_panel.py on lines 156..157
      scripts/precision_four_panel.py on lines 159..160
      scripts/precision_four_panel.py on lines 403..404
      scripts/precision_four_panel.py on lines 406..407
      scripts/precision_four_panel.py on lines 409..410

      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 33.

      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 6 locations. Consider refactoring.
      Open

              ax[ii].plot(
                  df_ii_100k.index, df_ii_100k["Cond. 1"].values, color="r", linestyle="--"
      Severity: Major
      Found in scripts/precision_four_panel.py and 5 other locations - About 35 mins to fix
      scripts/precision_four_panel.py on lines 153..154
      scripts/precision_four_panel.py on lines 156..157
      scripts/precision_four_panel.py on lines 159..160
      scripts/precision_four_panel.py on lines 403..404
      scripts/precision_four_panel.py on lines 406..407

      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 33.

      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 6 locations. Consider refactoring.
      Open

              ax[ii].plot(
                  df_ii_80k.index, df_ii_80k["Cond. 1"].values, color="g", linestyle="--"
      Severity: Major
      Found in scripts/precision_four_panel.py and 5 other locations - About 35 mins to fix
      scripts/precision_four_panel.py on lines 153..154
      scripts/precision_four_panel.py on lines 159..160
      scripts/precision_four_panel.py on lines 403..404
      scripts/precision_four_panel.py on lines 406..407
      scripts/precision_four_panel.py on lines 409..410

      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 33.

      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 6 locations. Consider refactoring.
      Open

              ax[ii].plot(
                  df_ii_80k.index, df_ii_80k["Cond. 1"].values, color="g", linestyle="--"
      Severity: Major
      Found in scripts/precision_four_panel.py and 5 other locations - About 35 mins to fix
      scripts/precision_four_panel.py on lines 153..154
      scripts/precision_four_panel.py on lines 156..157
      scripts/precision_four_panel.py on lines 159..160
      scripts/precision_four_panel.py on lines 403..404
      scripts/precision_four_panel.py on lines 409..410

      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 33.

      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

              ax[jj].text(0, ymax, "{} K".format(teffs[jj]), size=14)
      Severity: Minor
      Found in scripts/precision_four_panel.py and 1 other location - About 35 mins to fix
      scripts/precision_four_panel.py on lines 214..214

      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 33.

      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

      There are no issues that match your filters.

      Category
      Status