tensorflow/tensorflow

View on GitHub
tensorflow/python/ops/ragged/ragged_reduce_op_test.py

Summary

Maintainability
F
3 wks
Test Coverage

File ragged_reduce_op_test.py has 626 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
Severity: Major
Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py - About 1 day to fix

    Function testReduce has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      def testReduce(self, ragged_reduce_op, rt_input, axis, keepdims, expected):
    Severity: Minor
    Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py - About 35 mins to fix

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

        def testStdNan(self):
          rt_as_list = [[0, 1, 1, 0], [4], [], [5, 6], [7], [8, 9]]
          expected = ([std(0, 1, 1, 0), std(4), std(), std(5, 6), std(7), std(8, 9)])
          rt_input = ragged_factory_ops.constant(rt_as_list)
          reduced = ragged_math_ops.reduce_std(rt_input, axis=1)
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 7 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 658..670

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

      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

        def testVarianceNan(self):
          rt_as_list = [[0, 1, 2, 3], [4], [], [5, 6], [7], [8, 9]]
          expected = ([
              variance(0, 1, 2, 3),
              variance(4),
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 7 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 672..677

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

      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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_sum,
                rt_input=[[[1, 2], [], [3, 4, 5]], [[6, 7], [], [8]], [], [[9]]],
                axis=[1, 2],
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 5 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 602..607

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

      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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_sum,
                rt_input=[[[1, 2], [], [3, 4, 5]], [[6, 7], [], [8]], [], [[9]]],
                axis=[-2, -1],
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 5 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 468..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 94.

      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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_sum,
                rt_input=[[[1, 2], [], [3, 4, 5]], [[6, 7], [], [8]], [], [[9]]],
                axis=[],
                keepdims=True,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 4 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 426..431

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

      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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_sum,
                rt_input=[[[1, 2], [], [3, 4, 5]], [[6, 7], [], [8]], [], [[9]]],
                axis=[],
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 4 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 481..486

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_mean,
                rt_input=[[[1, 2], [3, 4, 5]], [[6, 7], [8]], [[9]]],
                axis=1,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 2 other locations - About 4 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 568..574
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 588..593

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_std,
                rt_input=[[[6, 2], [6, 9, 9]], [[6, 7], [8]], [[9]]],
                axis=2,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 2 other locations - About 4 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 555..560
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 575..581

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_mean,
                rt_input=[[[1, 2], [3, 4, 5]], [[6, 7], [8]], [[9]]],
                axis=2,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 2 other locations - About 4 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 575..581
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 594..599

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_variance,
                rt_input=[[[6, 2], [6, 9, 9]], [[6, 7], [8]], [[9]]],
                axis=2,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 2 other locations - About 4 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 555..560
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 594..599

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_variance,
                rt_input=[[[6, 2], [3, 4, 5]], [[6, 7], [8]], [[9]]],
                axis=1,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 2 other locations - About 4 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 549..554
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 588..593

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_std,
                rt_input=[[[6, 2], [3, 4, 5]], [[6, 7], [8]], [[9]]],
                axis=1,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 2 other locations - About 4 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 549..554
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 568..574

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_std,
                rt_input=[[[6, 2], [3, 4, 5]], [[6, 7], [8]], [[9]]],
                axis=0,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 2 other locations - About 3 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 543..548
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 561..567

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_mean,
                rt_input=[[[1, 2], [3, 4, 5]], [[6, 7], [8]], [[9]]],
                axis=0,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 2 other locations - About 3 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 561..567
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 582..587

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_variance,
                rt_input=[[[6, 2], [3, 4, 5]], [[6, 7], [8]], [[9]]],
                axis=0,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 2 other locations - About 3 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 543..548
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 582..587

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

      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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_sum,
                rt_input=[[[1, 2], [], [3, 4, 5]], [[6, 7], [], [8]], [], [[9]]],
                axis=[-3, -2, -1],
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 3 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 474..479

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

      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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_sum,
                rt_input=[[[1, 2], [], [3, 4, 5]], [[6, 7], [], [8]], [], [[9]]],
                axis=[0, 1, 2],
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 3 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 608..613

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

      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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_max,
                rt_input=[[0, 1, 2, 3], [4], [], [5, 6], [7], [8, 9]],
                axis=1,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 3 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 401..408

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

      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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_min,
                rt_input=[[0, 1, 2, 3], [4], [], [5, 6], [7], [8, 9]],
                axis=1,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 3 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 409..416

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_max,
                rt_input=[[0, 1, 2, 3], [4], [], [5, 6], [7], [8, 9]],
                axis=0,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 4 other locations - About 3 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 354..359
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 366..372
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 373..379
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 380..385

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_mean,
                rt_input=[[0, 1, 2, 3], [4], [], [5, 6], [7], [8, 9]],
                axis=0,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 4 other locations - About 3 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 354..359
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 360..365
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 373..379
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 380..385

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_min,
                rt_input=[[0, 1, 2, 3], [4], [], [5, 6], [7], [8, 9]],
                axis=0,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 4 other locations - About 3 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 360..365
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 366..372
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 373..379
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 380..385

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_variance,
                rt_input=[[0, 1, 2, 3], [1], [], [2, 1], [3], [4, 1]],
                axis=0,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 4 other locations - About 3 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 354..359
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 360..365
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 366..372
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 380..385

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_std,
                rt_input=[[1, 1, 2, 3], [1], [], [1, 1], [1], [1, 1]],
                axis=0,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 4 other locations - About 3 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 354..359
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 360..365
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 366..372
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 373..379

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_mean,
                rt_input=[[0, 1, 2, 3], [4], [], [5, 6], [7], [8, 9]],
                axis=None,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 4 other locations - About 2 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 311..316
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 317..322
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 329..334
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 335..340

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_max,
                rt_input=[[0, 1, 2, 3], [4], [], [5, 6], [7], [8, 9]],
                axis=None,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 4 other locations - About 2 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 311..316
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 323..328
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 329..334
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 335..340

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_min,
                rt_input=[[0, 1, 2, 3], [4], [], [5, 6], [7], [8, 9]],
                axis=None,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 4 other locations - About 2 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 317..322
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 323..328
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 329..334
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 335..340

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_variance,
                rt_input=[[0, 1, 2, 3], [4], [], [5, 6], [7], [8, 9]],
                axis=None,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 4 other locations - About 2 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 311..316
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 317..322
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 323..328
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 335..340

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_std,
                rt_input=[[0, 1, 2, 3], [4], [], [5, 6], [7], [8, 9]],
                axis=None,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 4 other locations - About 2 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 311..316
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 317..322
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 323..328
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 329..334

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

      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

        def testMeanWithTensorInputs(self):
          tensor = [[1.0, 2.0, 3.0], [10.0, 20.0, 30.0]]
          expected = [2.0, 20.0]
          reduced = ragged_math_ops.reduce_mean(tensor, axis=1)
          self.assertAllEqual(reduced, expected)
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 2 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 685..689

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

      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

        def testVarianceWithTensorInputs(self):
          tensor = [[6.0, 9.0, 6.0], [60.0, 90.0, 60.0]]
          expected = [2., 200.]
          reduced = ragged_math_ops.reduce_variance(tensor, axis=1)
          self.assertAllEqual(reduced, expected)
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 2 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 679..683

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

      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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_sum,
                rt_input=[[0, 1, 2, 3], [4], [], [5, 6], [7], [8, 9]],
                axis=None,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 2 hrs to fix
      tensorflow/python/ops/ragged/ragged_to_tensor_op_test.py on lines 591..591

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_min,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=1,
                keepdims=True,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 4 other locations - About 2 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 186..191
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 193..198
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 207..212
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 236..242

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_prod,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=1,
                keepdims=True,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 4 other locations - About 2 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 186..191
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 193..198
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 221..227
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 236..242

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_sum,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=1,
                keepdims=True,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 4 other locations - About 2 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 193..198
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 207..212
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 221..227
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 236..242

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_max,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=1,
                keepdims=True,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 4 other locations - About 2 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 186..191
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 193..198
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 207..212
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 221..227

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_sum,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=-1,
                keepdims=True,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 4 other locations - About 2 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 186..191
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 207..212
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 221..227
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 236..242

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

      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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_variance,
                rt_input=[[[0.214441], [0.214441], [0.214441], [0.214441], [0.214441],
                           [0.214441], [0.214441]]],
                axis=[1],
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 2 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 623..629

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

      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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_std,
                rt_input=[[[0.214441], [0.214441], [0.214441], [0.214441], [0.214441],
                           [0.214441], [0.214441]]],
                axis=[1],
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 2 hrs to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 615..621

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

      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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_any,
                rt_input=[[True, True], [True, True, False, True], [False, True]],
                axis=1,
                keepdims=True,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 281..286

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

      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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_all,
                rt_input=[[True, True], [True, True, False, True], [False, True]],
                axis=1,
                keepdims=True,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 269..274

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_max,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=0,
                keepdims=True,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 7 other locations - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 172..177
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 179..184
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 200..205
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 214..219
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 244..249
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 251..256
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 257..262

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_std,
                rt_input=[[3, 1, 4], [3, 1], [2], [2, 1]],
                axis=0,
                keepdims=True,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 7 other locations - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 172..177
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 179..184
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 200..205
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 214..219
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 229..234
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 244..249
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 251..256

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_sum,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=-2,
                keepdims=True,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 7 other locations - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 172..177
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 200..205
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 214..219
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 229..234
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 244..249
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 251..256
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 257..262

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_prod,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=0,
                keepdims=True,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 7 other locations - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 172..177
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 179..184
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 214..219
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 229..234
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 244..249
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 251..256
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 257..262

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_variance,
                rt_input=[[3, 1, 4], [1, 1], [9], [2, 1]],
                axis=0,
                keepdims=True,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 7 other locations - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 172..177
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 179..184
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 200..205
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 214..219
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 229..234
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 244..249
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 257..262

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_sum,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=0,
                keepdims=True,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 7 other locations - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 179..184
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 200..205
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 214..219
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 229..234
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 244..249
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 251..256
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 257..262

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_min,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=0,
                keepdims=True,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 7 other locations - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 172..177
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 179..184
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 200..205
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 229..234
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 244..249
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 251..256
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 257..262

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_mean,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=0,
                keepdims=True,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 7 other locations - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 172..177
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 179..184
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 200..205
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 214..219
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 229..234
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 251..256
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 257..262

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

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_sum,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=-1,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 4 other locations - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 72..77
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 93..98
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 107..112
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 121..126

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_sum,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=1,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 4 other locations - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 79..84
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 93..98
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 107..112
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 121..126

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_min,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=1,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 4 other locations - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 72..77
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 79..84
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 93..98
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 121..126

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_prod,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=1,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 4 other locations - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 72..77
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 79..84
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 107..112
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 121..126

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_max,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=1,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 4 other locations - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 72..77
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 79..84
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 93..98
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 107..112

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_all,
                rt_input=[[True, True], [True, True, False, True], [False, True]],
                axis=0,
                keepdims=True,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 263..268

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_any,
                rt_input=[[True, True], [True, True, False, True], [False, True]],
                axis=0,
                keepdims=True,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 275..280

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_sum,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=0,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 7 other locations - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 65..70
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 86..91
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 100..105
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 114..119
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 128..133
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 135..140
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 141..146

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_prod,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=0,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 7 other locations - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 58..63
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 65..70
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 100..105
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 114..119
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 128..133
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 135..140
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 141..146

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_max,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=0,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 7 other locations - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 58..63
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 65..70
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 86..91
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 100..105
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 128..133
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 135..140
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 141..146

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_min,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=0,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 7 other locations - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 58..63
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 65..70
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 86..91
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 114..119
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 128..133
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 135..140
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 141..146

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_std,
                rt_input=[[3, 1, 4], [3, 1], [2], [2, 1]],
                axis=0,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 7 other locations - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 58..63
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 65..70
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 86..91
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 100..105
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 114..119
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 128..133
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 135..140

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_variance,
                rt_input=[[3, 1, 4], [1, 1], [9], [2, 1]],
                axis=0,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 7 other locations - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 58..63
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 65..70
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 86..91
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 100..105
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 114..119
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 128..133
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 141..146

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_sum,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=-2,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 7 other locations - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 58..63
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 86..91
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 100..105
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 114..119
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 128..133
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 135..140
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 141..146

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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_mean,
                rt_input=[[3, 1, 4], [1, 5], [9], [2, 6]],
                axis=0,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 7 other locations - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 58..63
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 65..70
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 86..91
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 100..105
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 114..119
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 135..140
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 141..146

      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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_all,
                rt_input=[[True, True], [True, True, False, True], [False, True]],
                axis=0,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 147..152

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

      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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_any,
                rt_input=[[True, True], [True, True, False, True], [False, True]],
                axis=0,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 159..164

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

      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

                expected=[[[1 + 3 + 6 + 8 + 9, 2 + 4 + 7, 5]]]),
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 461..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 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

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

                expected=[1 + 3 + 6 + 8 + 9, 2 + 4 + 7, 5]),
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 517..517

      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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_all,
                rt_input=[[True, True], [True, True, False, True], [False, True]],
                axis=1,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 153..158

      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

            dict(
                ragged_reduce_op=ragged_math_ops.reduce_any,
                rt_input=[[True, True], [True, True, False, True], [False, True]],
                axis=1,
                keepdims=False,
      Severity: Major
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 1 hr to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 165..170

      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

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

                expected=[0 + 1 + 2 + 3, 4, 0, 5 + 6, 7, 8 + 9]),
      Severity: Minor
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 55 mins to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 652..652

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

      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

              np.array([0 + 1 + 2 + 3, 4, 0, 5 + 6, 7, 8 + 9]) /
      Severity: Minor
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 55 mins to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 394..394

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

      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

                expected=[[[1 + 6 + 9, 2 + 7], [], [3 + 8, 4, 5]]]),
      Severity: Minor
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 45 mins to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 443..443

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

      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

                expected=[[1 + 6 + 9, 2 + 7], [], [3 + 8, 4, 5]]),
      Severity: Minor
      Found in tensorflow/python/ops/ragged/ragged_reduce_op_test.py and 1 other location - About 45 mins to fix
      tensorflow/python/ops/ragged/ragged_reduce_op_test.py on lines 498..498

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

      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