petspats/pyha

View on GitHub

Showing 56 of 164 total issues

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

                self.y[i + 1] = self.y[i] - (self.x[i] >> i)
Severity: Major
Found in pyha/cores/cordic/core.py and 1 other location - About 1 hr to fix
pyha/cores/cordic/core.py on lines 78..78

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

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

                self.x[i + 1] = self.x[i] + (self.y[i] >> i)
Severity: Major
Found in pyha/cores/cordic/core.py and 1 other location - About 1 hr to fix
pyha/cores/cordic/core.py on lines 79..79

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

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

                self.x[i + 1] = self.x[i] - (self.y[i] >> i)
Severity: Major
Found in pyha/cores/cordic/core.py and 1 other location - About 1 hr to fix
pyha/cores/cordic/core.py on lines 83..83

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

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

        out1[4], out1[6] = butterfly(out0[4], out0[6], W(1, 4))
Severity: Major
Found in pyha/cores/fft/fft_core/dev/reference.py and 16 other locations - About 1 hr to fix
pyha/cores/fft/fft_core/dev/reference.py on lines 41..42
pyha/cores/fft/fft_core/dev/reference.py on lines 45..45
pyha/cores/fft/fft_core/dev/reference.py on lines 46..46
pyha/cores/fft/fft_core/dev/reference.py on lines 49..49
pyha/cores/fft/fft_core/dev/reference.py on lines 50..50
pyha/cores/fft/fft_core/dev/reference.py on lines 55..55
pyha/cores/fft/fft_core/dev/reference.py on lines 56..56
pyha/cores/fft/fft_core/dev/reference.py on lines 57..57
pyha/cores/fft/fft_core/dev/reference.py on lines 58..58
pyha/cores/fft/fft_core/dev/reference.py on lines 61..61
pyha/cores/fft/fft_core/dev/reference.py on lines 62..62
pyha/cores/fft/fft_core/dev/reference.py on lines 64..64
pyha/cores/fft/fft_core/dev/reference.py on lines 67..67
pyha/cores/fft/fft_core/dev/reference.py on lines 68..68
pyha/cores/fft/fft_core/dev/reference.py on lines 69..69
pyha/cores/fft/fft_core/dev/reference.py on lines 70..70

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

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

        out0[0], out0[1] = butterfly(inp[0], inp[1], W(0, 4))
Severity: Major
Found in pyha/cores/fft/fft_core/dev/reference.py and 16 other locations - About 1 hr to fix
pyha/cores/fft/fft_core/dev/reference.py on lines 41..42
pyha/cores/fft/fft_core/dev/reference.py on lines 46..46
pyha/cores/fft/fft_core/dev/reference.py on lines 49..49
pyha/cores/fft/fft_core/dev/reference.py on lines 50..50
pyha/cores/fft/fft_core/dev/reference.py on lines 55..55
pyha/cores/fft/fft_core/dev/reference.py on lines 56..56
pyha/cores/fft/fft_core/dev/reference.py on lines 57..57
pyha/cores/fft/fft_core/dev/reference.py on lines 58..58
pyha/cores/fft/fft_core/dev/reference.py on lines 61..61
pyha/cores/fft/fft_core/dev/reference.py on lines 62..62
pyha/cores/fft/fft_core/dev/reference.py on lines 63..63
pyha/cores/fft/fft_core/dev/reference.py on lines 64..64
pyha/cores/fft/fft_core/dev/reference.py on lines 67..67
pyha/cores/fft/fft_core/dev/reference.py on lines 68..68
pyha/cores/fft/fft_core/dev/reference.py on lines 69..69
pyha/cores/fft/fft_core/dev/reference.py on lines 70..70

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

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

        out2[1], out2[5] = butterfly(out1[1], out1[5], W(0, 2))
Severity: Major
Found in pyha/cores/fft/fft_core/dev/reference.py and 16 other locations - About 1 hr to fix
pyha/cores/fft/fft_core/dev/reference.py on lines 41..42
pyha/cores/fft/fft_core/dev/reference.py on lines 45..45
pyha/cores/fft/fft_core/dev/reference.py on lines 46..46
pyha/cores/fft/fft_core/dev/reference.py on lines 49..49
pyha/cores/fft/fft_core/dev/reference.py on lines 50..50
pyha/cores/fft/fft_core/dev/reference.py on lines 55..55
pyha/cores/fft/fft_core/dev/reference.py on lines 56..56
pyha/cores/fft/fft_core/dev/reference.py on lines 57..57
pyha/cores/fft/fft_core/dev/reference.py on lines 58..58
pyha/cores/fft/fft_core/dev/reference.py on lines 61..61
pyha/cores/fft/fft_core/dev/reference.py on lines 62..62
pyha/cores/fft/fft_core/dev/reference.py on lines 63..63
pyha/cores/fft/fft_core/dev/reference.py on lines 64..64
pyha/cores/fft/fft_core/dev/reference.py on lines 67..67
pyha/cores/fft/fft_core/dev/reference.py on lines 69..69
pyha/cores/fft/fft_core/dev/reference.py on lines 70..70

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

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

        out2[0], out2[4] = butterfly(out1[0], out1[4], W(0, 2))
Severity: Major
Found in pyha/cores/fft/fft_core/dev/reference.py and 16 other locations - About 1 hr to fix
pyha/cores/fft/fft_core/dev/reference.py on lines 41..42
pyha/cores/fft/fft_core/dev/reference.py on lines 45..45
pyha/cores/fft/fft_core/dev/reference.py on lines 46..46
pyha/cores/fft/fft_core/dev/reference.py on lines 49..49
pyha/cores/fft/fft_core/dev/reference.py on lines 50..50
pyha/cores/fft/fft_core/dev/reference.py on lines 55..55
pyha/cores/fft/fft_core/dev/reference.py on lines 56..56
pyha/cores/fft/fft_core/dev/reference.py on lines 57..57
pyha/cores/fft/fft_core/dev/reference.py on lines 58..58
pyha/cores/fft/fft_core/dev/reference.py on lines 61..61
pyha/cores/fft/fft_core/dev/reference.py on lines 62..62
pyha/cores/fft/fft_core/dev/reference.py on lines 63..63
pyha/cores/fft/fft_core/dev/reference.py on lines 64..64
pyha/cores/fft/fft_core/dev/reference.py on lines 68..68
pyha/cores/fft/fft_core/dev/reference.py on lines 69..69
pyha/cores/fft/fft_core/dev/reference.py on lines 70..70

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

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

        out1[1], out1[3] = butterfly(out0[1], out0[3], W(0, 4))
Severity: Major
Found in pyha/cores/fft/fft_core/dev/reference.py and 16 other locations - About 1 hr to fix
pyha/cores/fft/fft_core/dev/reference.py on lines 41..42
pyha/cores/fft/fft_core/dev/reference.py on lines 45..45
pyha/cores/fft/fft_core/dev/reference.py on lines 46..46
pyha/cores/fft/fft_core/dev/reference.py on lines 49..49
pyha/cores/fft/fft_core/dev/reference.py on lines 50..50
pyha/cores/fft/fft_core/dev/reference.py on lines 55..55
pyha/cores/fft/fft_core/dev/reference.py on lines 56..56
pyha/cores/fft/fft_core/dev/reference.py on lines 57..57
pyha/cores/fft/fft_core/dev/reference.py on lines 58..58
pyha/cores/fft/fft_core/dev/reference.py on lines 61..61
pyha/cores/fft/fft_core/dev/reference.py on lines 63..63
pyha/cores/fft/fft_core/dev/reference.py on lines 64..64
pyha/cores/fft/fft_core/dev/reference.py on lines 67..67
pyha/cores/fft/fft_core/dev/reference.py on lines 68..68
pyha/cores/fft/fft_core/dev/reference.py on lines 69..69
pyha/cores/fft/fft_core/dev/reference.py on lines 70..70

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

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

        out1[0], out1[2] = butterfly(out0[0], out0[2], W(0, 4))
Severity: Major
Found in pyha/cores/fft/fft_core/dev/reference.py and 16 other locations - About 1 hr to fix
pyha/cores/fft/fft_core/dev/reference.py on lines 41..42
pyha/cores/fft/fft_core/dev/reference.py on lines 45..45
pyha/cores/fft/fft_core/dev/reference.py on lines 46..46
pyha/cores/fft/fft_core/dev/reference.py on lines 49..49
pyha/cores/fft/fft_core/dev/reference.py on lines 50..50
pyha/cores/fft/fft_core/dev/reference.py on lines 55..55
pyha/cores/fft/fft_core/dev/reference.py on lines 56..56
pyha/cores/fft/fft_core/dev/reference.py on lines 57..57
pyha/cores/fft/fft_core/dev/reference.py on lines 58..58
pyha/cores/fft/fft_core/dev/reference.py on lines 62..62
pyha/cores/fft/fft_core/dev/reference.py on lines 63..63
pyha/cores/fft/fft_core/dev/reference.py on lines 64..64
pyha/cores/fft/fft_core/dev/reference.py on lines 67..67
pyha/cores/fft/fft_core/dev/reference.py on lines 68..68
pyha/cores/fft/fft_core/dev/reference.py on lines 69..69
pyha/cores/fft/fft_core/dev/reference.py on lines 70..70

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

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

        out0[2], out0[3] = butterfly(inp[2], inp[3], W(2, 8))
Severity: Major
Found in pyha/cores/fft/fft_core/dev/reference.py and 16 other locations - About 1 hr to fix
pyha/cores/fft/fft_core/dev/reference.py on lines 41..42
pyha/cores/fft/fft_core/dev/reference.py on lines 45..45
pyha/cores/fft/fft_core/dev/reference.py on lines 46..46
pyha/cores/fft/fft_core/dev/reference.py on lines 49..49
pyha/cores/fft/fft_core/dev/reference.py on lines 50..50
pyha/cores/fft/fft_core/dev/reference.py on lines 55..55
pyha/cores/fft/fft_core/dev/reference.py on lines 57..57
pyha/cores/fft/fft_core/dev/reference.py on lines 58..58
pyha/cores/fft/fft_core/dev/reference.py on lines 61..61
pyha/cores/fft/fft_core/dev/reference.py on lines 62..62
pyha/cores/fft/fft_core/dev/reference.py on lines 63..63
pyha/cores/fft/fft_core/dev/reference.py on lines 64..64
pyha/cores/fft/fft_core/dev/reference.py on lines 67..67
pyha/cores/fft/fft_core/dev/reference.py on lines 68..68
pyha/cores/fft/fft_core/dev/reference.py on lines 69..69
pyha/cores/fft/fft_core/dev/reference.py on lines 70..70

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

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

        out1[5], out1[7] = butterfly(out0[5], out0[7], W(1, 4))
Severity: Major
Found in pyha/cores/fft/fft_core/dev/reference.py and 16 other locations - About 1 hr to fix
pyha/cores/fft/fft_core/dev/reference.py on lines 41..42
pyha/cores/fft/fft_core/dev/reference.py on lines 45..45
pyha/cores/fft/fft_core/dev/reference.py on lines 46..46
pyha/cores/fft/fft_core/dev/reference.py on lines 49..49
pyha/cores/fft/fft_core/dev/reference.py on lines 50..50
pyha/cores/fft/fft_core/dev/reference.py on lines 55..55
pyha/cores/fft/fft_core/dev/reference.py on lines 56..56
pyha/cores/fft/fft_core/dev/reference.py on lines 57..57
pyha/cores/fft/fft_core/dev/reference.py on lines 58..58
pyha/cores/fft/fft_core/dev/reference.py on lines 61..61
pyha/cores/fft/fft_core/dev/reference.py on lines 62..62
pyha/cores/fft/fft_core/dev/reference.py on lines 63..63
pyha/cores/fft/fft_core/dev/reference.py on lines 67..67
pyha/cores/fft/fft_core/dev/reference.py on lines 68..68
pyha/cores/fft/fft_core/dev/reference.py on lines 69..69
pyha/cores/fft/fft_core/dev/reference.py on lines 70..70

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

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

        out2[3], out2[7] = butterfly(out1[3], out1[7], W(0, 2))
Severity: Major
Found in pyha/cores/fft/fft_core/dev/reference.py and 16 other locations - About 1 hr to fix
pyha/cores/fft/fft_core/dev/reference.py on lines 41..42
pyha/cores/fft/fft_core/dev/reference.py on lines 45..45
pyha/cores/fft/fft_core/dev/reference.py on lines 46..46
pyha/cores/fft/fft_core/dev/reference.py on lines 49..49
pyha/cores/fft/fft_core/dev/reference.py on lines 50..50
pyha/cores/fft/fft_core/dev/reference.py on lines 55..55
pyha/cores/fft/fft_core/dev/reference.py on lines 56..56
pyha/cores/fft/fft_core/dev/reference.py on lines 57..57
pyha/cores/fft/fft_core/dev/reference.py on lines 58..58
pyha/cores/fft/fft_core/dev/reference.py on lines 61..61
pyha/cores/fft/fft_core/dev/reference.py on lines 62..62
pyha/cores/fft/fft_core/dev/reference.py on lines 63..63
pyha/cores/fft/fft_core/dev/reference.py on lines 64..64
pyha/cores/fft/fft_core/dev/reference.py on lines 67..67
pyha/cores/fft/fft_core/dev/reference.py on lines 68..68
pyha/cores/fft/fft_core/dev/reference.py on lines 69..69

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

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

        out0[0], out0[1] = butterfly(inp[0], inp[1], W(0, 8))
Severity: Major
Found in pyha/cores/fft/fft_core/dev/reference.py and 16 other locations - About 1 hr to fix
pyha/cores/fft/fft_core/dev/reference.py on lines 41..42
pyha/cores/fft/fft_core/dev/reference.py on lines 45..45
pyha/cores/fft/fft_core/dev/reference.py on lines 46..46
pyha/cores/fft/fft_core/dev/reference.py on lines 49..49
pyha/cores/fft/fft_core/dev/reference.py on lines 50..50
pyha/cores/fft/fft_core/dev/reference.py on lines 56..56
pyha/cores/fft/fft_core/dev/reference.py on lines 57..57
pyha/cores/fft/fft_core/dev/reference.py on lines 58..58
pyha/cores/fft/fft_core/dev/reference.py on lines 61..61
pyha/cores/fft/fft_core/dev/reference.py on lines 62..62
pyha/cores/fft/fft_core/dev/reference.py on lines 63..63
pyha/cores/fft/fft_core/dev/reference.py on lines 64..64
pyha/cores/fft/fft_core/dev/reference.py on lines 67..67
pyha/cores/fft/fft_core/dev/reference.py on lines 68..68
pyha/cores/fft/fft_core/dev/reference.py on lines 69..69
pyha/cores/fft/fft_core/dev/reference.py on lines 70..70

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

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

        out0[2], out0[3] = butterfly(inp[2], inp[3], W(1, 4))
Severity: Major
Found in pyha/cores/fft/fft_core/dev/reference.py and 16 other locations - About 1 hr to fix
pyha/cores/fft/fft_core/dev/reference.py on lines 41..42
pyha/cores/fft/fft_core/dev/reference.py on lines 45..45
pyha/cores/fft/fft_core/dev/reference.py on lines 49..49
pyha/cores/fft/fft_core/dev/reference.py on lines 50..50
pyha/cores/fft/fft_core/dev/reference.py on lines 55..55
pyha/cores/fft/fft_core/dev/reference.py on lines 56..56
pyha/cores/fft/fft_core/dev/reference.py on lines 57..57
pyha/cores/fft/fft_core/dev/reference.py on lines 58..58
pyha/cores/fft/fft_core/dev/reference.py on lines 61..61
pyha/cores/fft/fft_core/dev/reference.py on lines 62..62
pyha/cores/fft/fft_core/dev/reference.py on lines 63..63
pyha/cores/fft/fft_core/dev/reference.py on lines 64..64
pyha/cores/fft/fft_core/dev/reference.py on lines 67..67
pyha/cores/fft/fft_core/dev/reference.py on lines 68..68
pyha/cores/fft/fft_core/dev/reference.py on lines 69..69
pyha/cores/fft/fft_core/dev/reference.py on lines 70..70

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

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

        out1[0], out1[2] = butterfly(out0[0], out0[2], W(0, 2))
Severity: Major
Found in pyha/cores/fft/fft_core/dev/reference.py and 16 other locations - About 1 hr to fix
pyha/cores/fft/fft_core/dev/reference.py on lines 41..42
pyha/cores/fft/fft_core/dev/reference.py on lines 45..45
pyha/cores/fft/fft_core/dev/reference.py on lines 46..46
pyha/cores/fft/fft_core/dev/reference.py on lines 50..50
pyha/cores/fft/fft_core/dev/reference.py on lines 55..55
pyha/cores/fft/fft_core/dev/reference.py on lines 56..56
pyha/cores/fft/fft_core/dev/reference.py on lines 57..57
pyha/cores/fft/fft_core/dev/reference.py on lines 58..58
pyha/cores/fft/fft_core/dev/reference.py on lines 61..61
pyha/cores/fft/fft_core/dev/reference.py on lines 62..62
pyha/cores/fft/fft_core/dev/reference.py on lines 63..63
pyha/cores/fft/fft_core/dev/reference.py on lines 64..64
pyha/cores/fft/fft_core/dev/reference.py on lines 67..67
pyha/cores/fft/fft_core/dev/reference.py on lines 68..68
pyha/cores/fft/fft_core/dev/reference.py on lines 69..69
pyha/cores/fft/fft_core/dev/reference.py on lines 70..70

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

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

        out0[6], out0[7] = butterfly(inp[6], inp[7], W(3, 8))
Severity: Major
Found in pyha/cores/fft/fft_core/dev/reference.py and 16 other locations - About 1 hr to fix
pyha/cores/fft/fft_core/dev/reference.py on lines 41..42
pyha/cores/fft/fft_core/dev/reference.py on lines 45..45
pyha/cores/fft/fft_core/dev/reference.py on lines 46..46
pyha/cores/fft/fft_core/dev/reference.py on lines 49..49
pyha/cores/fft/fft_core/dev/reference.py on lines 50..50
pyha/cores/fft/fft_core/dev/reference.py on lines 55..55
pyha/cores/fft/fft_core/dev/reference.py on lines 56..56
pyha/cores/fft/fft_core/dev/reference.py on lines 57..57
pyha/cores/fft/fft_core/dev/reference.py on lines 61..61
pyha/cores/fft/fft_core/dev/reference.py on lines 62..62
pyha/cores/fft/fft_core/dev/reference.py on lines 63..63
pyha/cores/fft/fft_core/dev/reference.py on lines 64..64
pyha/cores/fft/fft_core/dev/reference.py on lines 67..67
pyha/cores/fft/fft_core/dev/reference.py on lines 68..68
pyha/cores/fft/fft_core/dev/reference.py on lines 69..69
pyha/cores/fft/fft_core/dev/reference.py on lines 70..70

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

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

    if fft_size == 2:
        out[0], out[1] = butterfly(inp[0], inp[1], W(0, 2))
Severity: Major
Found in pyha/cores/fft/fft_core/dev/reference.py and 16 other locations - About 1 hr to fix
pyha/cores/fft/fft_core/dev/reference.py on lines 45..45
pyha/cores/fft/fft_core/dev/reference.py on lines 46..46
pyha/cores/fft/fft_core/dev/reference.py on lines 49..49
pyha/cores/fft/fft_core/dev/reference.py on lines 50..50
pyha/cores/fft/fft_core/dev/reference.py on lines 55..55
pyha/cores/fft/fft_core/dev/reference.py on lines 56..56
pyha/cores/fft/fft_core/dev/reference.py on lines 57..57
pyha/cores/fft/fft_core/dev/reference.py on lines 58..58
pyha/cores/fft/fft_core/dev/reference.py on lines 61..61
pyha/cores/fft/fft_core/dev/reference.py on lines 62..62
pyha/cores/fft/fft_core/dev/reference.py on lines 63..63
pyha/cores/fft/fft_core/dev/reference.py on lines 64..64
pyha/cores/fft/fft_core/dev/reference.py on lines 67..67
pyha/cores/fft/fft_core/dev/reference.py on lines 68..68
pyha/cores/fft/fft_core/dev/reference.py on lines 69..69
pyha/cores/fft/fft_core/dev/reference.py on lines 70..70

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

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

        out1[1], out1[3] = butterfly(out0[1], out0[3], W(0, 2))
Severity: Major
Found in pyha/cores/fft/fft_core/dev/reference.py and 16 other locations - About 1 hr to fix
pyha/cores/fft/fft_core/dev/reference.py on lines 41..42
pyha/cores/fft/fft_core/dev/reference.py on lines 45..45
pyha/cores/fft/fft_core/dev/reference.py on lines 46..46
pyha/cores/fft/fft_core/dev/reference.py on lines 49..49
pyha/cores/fft/fft_core/dev/reference.py on lines 55..55
pyha/cores/fft/fft_core/dev/reference.py on lines 56..56
pyha/cores/fft/fft_core/dev/reference.py on lines 57..57
pyha/cores/fft/fft_core/dev/reference.py on lines 58..58
pyha/cores/fft/fft_core/dev/reference.py on lines 61..61
pyha/cores/fft/fft_core/dev/reference.py on lines 62..62
pyha/cores/fft/fft_core/dev/reference.py on lines 63..63
pyha/cores/fft/fft_core/dev/reference.py on lines 64..64
pyha/cores/fft/fft_core/dev/reference.py on lines 67..67
pyha/cores/fft/fft_core/dev/reference.py on lines 68..68
pyha/cores/fft/fft_core/dev/reference.py on lines 69..69
pyha/cores/fft/fft_core/dev/reference.py on lines 70..70

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

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

        out2[2], out2[6] = butterfly(out1[2], out1[6], W(0, 2))
Severity: Major
Found in pyha/cores/fft/fft_core/dev/reference.py and 16 other locations - About 1 hr to fix
pyha/cores/fft/fft_core/dev/reference.py on lines 41..42
pyha/cores/fft/fft_core/dev/reference.py on lines 45..45
pyha/cores/fft/fft_core/dev/reference.py on lines 46..46
pyha/cores/fft/fft_core/dev/reference.py on lines 49..49
pyha/cores/fft/fft_core/dev/reference.py on lines 50..50
pyha/cores/fft/fft_core/dev/reference.py on lines 55..55
pyha/cores/fft/fft_core/dev/reference.py on lines 56..56
pyha/cores/fft/fft_core/dev/reference.py on lines 57..57
pyha/cores/fft/fft_core/dev/reference.py on lines 58..58
pyha/cores/fft/fft_core/dev/reference.py on lines 61..61
pyha/cores/fft/fft_core/dev/reference.py on lines 62..62
pyha/cores/fft/fft_core/dev/reference.py on lines 63..63
pyha/cores/fft/fft_core/dev/reference.py on lines 64..64
pyha/cores/fft/fft_core/dev/reference.py on lines 67..67
pyha/cores/fft/fft_core/dev/reference.py on lines 68..68
pyha/cores/fft/fft_core/dev/reference.py on lines 70..70

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

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

        out0[4], out0[5] = butterfly(inp[4], inp[5], W(1, 8))
Severity: Major
Found in pyha/cores/fft/fft_core/dev/reference.py and 16 other locations - About 1 hr to fix
pyha/cores/fft/fft_core/dev/reference.py on lines 41..42
pyha/cores/fft/fft_core/dev/reference.py on lines 45..45
pyha/cores/fft/fft_core/dev/reference.py on lines 46..46
pyha/cores/fft/fft_core/dev/reference.py on lines 49..49
pyha/cores/fft/fft_core/dev/reference.py on lines 50..50
pyha/cores/fft/fft_core/dev/reference.py on lines 55..55
pyha/cores/fft/fft_core/dev/reference.py on lines 56..56
pyha/cores/fft/fft_core/dev/reference.py on lines 58..58
pyha/cores/fft/fft_core/dev/reference.py on lines 61..61
pyha/cores/fft/fft_core/dev/reference.py on lines 62..62
pyha/cores/fft/fft_core/dev/reference.py on lines 63..63
pyha/cores/fft/fft_core/dev/reference.py on lines 64..64
pyha/cores/fft/fft_core/dev/reference.py on lines 67..67
pyha/cores/fft/fft_core/dev/reference.py on lines 68..68
pyha/cores/fft/fft_core/dev/reference.py on lines 69..69
pyha/cores/fft/fft_core/dev/reference.py on lines 70..70

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

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