tensorflow/models

View on GitHub
research/object_detection/dataset_tools/seq_example_util_test.py

Summary

Maintainability
F
6 days
Test Coverage

File seq_example_util_test.py has 435 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Copyright 2020 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: Minor
Found in research/object_detection/dataset_tools/seq_example_util_test.py - About 6 hrs to fix

    Function test_make_labeled_example_with_predictions has 48 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def test_make_labeled_example_with_predictions(self):
        num_frames = 2
        image_height = 100
        image_width = 200
        dataset_name = b'unlabeled_dataset'
    Severity: Minor
    Found in research/object_detection/dataset_tools/seq_example_util_test.py - About 1 hr to fix

      Function test_make_labeled_example_with_context_features has 42 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        def test_make_labeled_example_with_context_features(self):
          num_frames = 2
          image_height = 100
          image_width = 200
          dataset_name = b'unlabeled_dataset'
      Severity: Minor
      Found in research/object_detection/dataset_tools/seq_example_util_test.py - About 1 hr to fix

        Function test_make_labeled_example has 36 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          def test_make_labeled_example(self):
            num_frames = 3
            image_height = 100
            image_width = 200
            dataset_name = b'unlabeled_dataset'
        Severity: Minor
        Found in research/object_detection/dataset_tools/seq_example_util_test.py - About 1 hr to fix

          Function test_make_unlabeled_example has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            def test_make_unlabeled_example(self):
              num_frames = 5
              image_height = 100
              image_width = 200
              dataset_name = b'unlabeled_dataset'
          Severity: Minor
          Found in research/object_detection/dataset_tools/seq_example_util_test.py - About 1 hr to fix

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

                seq_example = seq_example_util.make_sequence_example(
            official/nlp/modeling/layers/kernel_attention_test.py on lines 47..47

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

                seq_example = seq_example_util.make_sequence_example(
            official/nlp/modeling/layers/relative_attention.py on lines 304..304
            official/nlp/modeling/layers/relative_attention.py on lines 450..450
            official/nlp/modeling/layers/relative_attention.py on lines 470..470
            official/nlp/modeling/layers/relative_attention.py on lines 468..485

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

                self.assertAllEqual(
                    is_annotated[1],
                    seq_feature_dict['region/is_annotated'].feature[1].int64_list.value[0])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 167..169
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 187..189
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 284..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 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 4 locations. Consider refactoring.
            Open

                self.assertAllEqual(
                    is_annotated[0],
                    seq_feature_dict['region/is_annotated'].feature[0].int64_list.value[0])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 187..189
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 284..286
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 304..306

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

                self.assertAllEqual(
                    is_annotated[0],
                    seq_feature_dict['region/is_annotated'].feature[0].int64_list.value[0])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 167..169
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 187..189
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 304..306

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

                self.assertAllEqual(
                    is_annotated[1],
                    seq_feature_dict['region/is_annotated'].feature[1].int64_list.value[0])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 167..169
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 284..286
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 304..306

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

                seq_example = seq_example_util.make_sequence_example(
            official/projects/pointpillars/modeling/models_test.py on lines 112..112
            official/vision/modeling/retinanet_model_test.py on lines 128..128
            research/object_detection/models/keras_models/inception_resnet_v2_tf2_test.py on lines 119..119

            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

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

                self.assertAllClose(
                    [0., 0.],
                    seq_feature_dict['region/bbox/ymin'].feature[0].float_list.value[:])
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 176..178
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 179..181
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 182..184
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 185..187
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 173..175
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 176..178
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 179..181
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 287..289
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 290..292
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 293..295
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 296..298
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 396..398
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 399..401
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 402..404
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 405..407

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 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

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

                self.assertAllClose(
                    [0., 0.],
                    seq_feature_dict['region/bbox/ymin'].feature[0].float_list.value[:])
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 176..178
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 179..181
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 182..184
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 185..187
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 170..172
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 173..175
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 176..178
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 179..181
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 287..289
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 290..292
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 293..295
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 296..298
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 399..401
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 402..404
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 405..407

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 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

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

                self.assertAllClose(
                    [0.75, 1.],
                    seq_feature_dict['region/bbox/ymax'].feature[0].float_list.value[:])
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 176..178
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 179..181
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 182..184
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 185..187
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 170..172
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 173..175
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 176..178
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 179..181
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 287..289
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 290..292
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 293..295
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 296..298
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 396..398
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 399..401
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 405..407

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 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

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

                self.assertAllClose(
                    [0., 0.],
                    seq_feature_dict['region/bbox/xmin'].feature[0].float_list.value[:])
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 176..178
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 179..181
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 182..184
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 185..187
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 170..172
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 176..178
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 179..181
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 287..289
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 290..292
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 293..295
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 296..298
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 396..398
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 399..401
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 402..404
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 405..407

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 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

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

                self.assertAllClose(
                    [0., 1.],
                    seq_feature_dict['region/bbox/ymax'].feature[0].float_list.value[:])
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 176..178
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 179..181
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 182..184
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 185..187
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 170..172
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 173..175
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 176..178
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 179..181
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 287..289
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 290..292
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 296..298
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 396..398
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 399..401
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 402..404
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 405..407

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 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

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

                self.assertAllClose(
                    [0., 0.],
                    seq_feature_dict['region/bbox/xmin'].feature[0].float_list.value[:])
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 176..178
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 179..181
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 182..184
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 185..187
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 170..172
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 173..175
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 176..178
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 179..181
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 287..289
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 290..292
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 293..295
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 296..298
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 396..398
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 402..404
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 405..407

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 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

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

                self.assertAllClose(
                    [0., 1.],
                    seq_feature_dict['region/bbox/ymax'].feature[0].float_list.value[:])
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 176..178
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 179..181
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 182..184
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 185..187
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 170..172
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 173..175
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 179..181
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 287..289
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 290..292
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 293..295
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 296..298
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 396..398
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 399..401
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 402..404
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 405..407

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 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

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

                self.assertAllClose(
                    [0., 0.],
                    seq_feature_dict['region/bbox/xmin'].feature[0].float_list.value[:])
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 176..178
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 179..181
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 182..184
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 185..187
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 170..172
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 173..175
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 176..178
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 179..181
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 287..289
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 293..295
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 296..298
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 396..398
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 399..401
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 402..404
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 405..407

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 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

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

                self.assertAllClose(
                    [0., 1.],
                    seq_feature_dict['region/bbox/xmax'].feature[0].float_list.value[:])
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 176..178
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 179..181
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 182..184
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 185..187
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 170..172
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 173..175
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 176..178
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 179..181
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 287..289
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 290..292
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 293..295
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 396..398
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 399..401
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 402..404
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 405..407

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 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

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

                self.assertAllClose(
                    [0., 0.],
                    seq_feature_dict['region/bbox/ymin'].feature[0].float_list.value[:])
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 176..178
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 179..181
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 182..184
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 185..187
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 170..172
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 173..175
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 176..178
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 179..181
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 290..292
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 293..295
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 296..298
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 396..398
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 399..401
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 402..404
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 405..407

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 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

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

                self.assertAllClose(
                    [0., 1.],
                    seq_feature_dict['region/bbox/xmax'].feature[0].float_list.value[:])
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 176..178
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 179..181
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 182..184
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 185..187
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 170..172
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 173..175
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 176..178
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 287..289
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 290..292
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 293..295
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 296..298
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 396..398
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 399..401
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 402..404
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 405..407

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 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

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

                self.assertAllClose(
                    [0.75, 1.],
                    seq_feature_dict['region/bbox/xmax'].feature[0].float_list.value[:])
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 176..178
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 179..181
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 182..184
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 185..187
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 170..172
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 173..175
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 176..178
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 179..181
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 287..289
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 290..292
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 293..295
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 296..298
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 396..398
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 399..401
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 402..404

            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

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

                self.assertAllClose(
                    [0.5],
                    seq_feature_dict['region/bbox/ymax'].feature[1].float_list.value[:])
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 193..195
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 196..198
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 199..201
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 411..413
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 415..417
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 419..421
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 423..425
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 427..429
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 431..433
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 440..442
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 443..445
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 449..451

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

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

                self.assertAllClose(
                    [0.],
                    seq_feature_dict[
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 193..195
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 196..198
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 199..201
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 415..417
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 419..421
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 423..425
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 427..429
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 431..433
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 440..442
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 443..445
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 446..448
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 449..451

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

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

                self.assertAllClose(
                    [0.75],
                    seq_feature_dict[
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 193..195
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 196..198
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 199..201
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 411..413
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 415..417
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 419..421
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 427..429
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 431..433
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 440..442
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 443..445
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 446..448
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 449..451

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

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

                self.assertAllClose(
                    [0.0],
                    seq_feature_dict['region/bbox/ymin'].feature[1].float_list.value[:])
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 193..195
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 196..198
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 199..201
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 411..413
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 415..417
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 419..421
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 423..425
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 427..429
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 431..433
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 443..445
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 446..448
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 449..451

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

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

                self.assertAllClose(
                    [0.9],
                    seq_feature_dict[
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 193..195
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 196..198
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 199..201
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 411..413
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 415..417
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 419..421
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 423..425
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 427..429
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 440..442
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 443..445
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 446..448
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 449..451

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

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

                self.assertAllClose(
                    [0.],
                    seq_feature_dict[
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 193..195
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 196..198
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 199..201
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 411..413
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 419..421
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 423..425
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 427..429
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 431..433
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 440..442
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 443..445
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 446..448
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 449..451

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

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

                self.assertAllClose(
                    [0.25],
                    seq_feature_dict['region/bbox/xmin'].feature[1].float_list.value[:])
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 193..195
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 196..198
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 199..201
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 411..413
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 415..417
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 419..421
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 423..425
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 427..429
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 431..433
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 440..442
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 446..448
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 449..451

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

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

                self.assertAllEqual(
                    [5],
                    seq_feature_dict[
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 193..195
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 196..198
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 199..201
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 411..413
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 415..417
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 419..421
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 423..425
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 431..433
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 440..442
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 443..445
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 446..448
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 449..451

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

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

                self.assertAllClose(
                    [0.75],
                    seq_feature_dict[
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 193..195
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 196..198
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 199..201
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 411..413
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 415..417
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 423..425
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 427..429
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 431..433
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 440..442
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 443..445
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 446..448
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 449..451

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

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

                self.assertAllClose(
                    [0.75],
                    seq_feature_dict['region/bbox/xmax'].feature[1].float_list.value[:])
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 193..195
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 196..198
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 199..201
            research/object_detection/dataset_tools/context_rcnn/add_context_to_examples_tf2_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 411..413
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 415..417
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 419..421
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 423..425
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 427..429
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 431..433
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 440..442
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 443..445
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 446..448

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

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

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

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

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

            Refactorings

            Further Reading

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

                self.assertAllEqual(
                    1,
                    seq_feature_dict['region/is_annotated'].feature[0].int64_list.value[0])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 437..439

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

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

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

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

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

            Refactorings

            Further Reading

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

                self.assertAllEqual(
                    1,
                    seq_feature_dict['region/is_annotated'].feature[1].int64_list.value[0])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 393..395

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

            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

                detection_classes = [
                    np.array([5], dtype=np.int64),
                    np.array([], dtype=np.int64)
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 353..355

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

            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

                detection_scores = [
                    np.array([0.9], dtype=np.float32),
                    np.array([], dtype=np.float32)
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 349..351

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

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

                self.assertAllEqual(
                    [],
                    seq_feature_dict['region/label/string'].feature[1].bytes_list.value[:])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 190..192
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 193..195
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 196..198
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 199..201
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 307..309
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 310..312
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 313..315
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 316..318
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 319..321
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 455..457
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 459..461
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 463..465
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 467..469
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 471..473
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 475..477

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

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

                self.assertAllClose(
                    [],
                    seq_feature_dict['region/bbox/ymax'].feature[1].float_list.value[:])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 190..192
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 193..195
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 199..201
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 307..309
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 310..312
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 313..315
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 316..318
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 319..321
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 455..457
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 459..461
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 463..465
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 467..469
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 471..473
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 475..477

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

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

                self.assertAllClose(
                    [],
                    seq_feature_dict[
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 190..192
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 193..195
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 196..198
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 199..201
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 307..309
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 310..312
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 313..315
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 316..318
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 319..321
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 455..457
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 459..461
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 463..465
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 471..473
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 475..477

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

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

                self.assertAllClose(
                    [],
                    seq_feature_dict['region/bbox/ymin'].feature[1].float_list.value[:])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 190..192
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 193..195
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 196..198
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 199..201
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 310..312
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 313..315
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 316..318
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 319..321
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 455..457
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 459..461
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 463..465
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 467..469
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 471..473
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 475..477

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

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

                self.assertAllClose(
                    [],
                    seq_feature_dict['region/bbox/xmin'].feature[1].float_list.value[:])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 190..192
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 193..195
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 196..198
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 199..201
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 307..309
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 313..315
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 316..318
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 319..321
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 455..457
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 459..461
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 463..465
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 467..469
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 471..473
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 475..477

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

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

                self.assertAllClose(
                    [],
                    seq_feature_dict['region/bbox/ymax'].feature[1].float_list.value[:])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 190..192
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 193..195
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 196..198
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 199..201
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 307..309
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 310..312
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 316..318
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 319..321
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 455..457
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 459..461
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 463..465
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 467..469
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 471..473
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 475..477

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

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

                self.assertAllClose(
                    [],
                    seq_feature_dict['region/bbox/xmin'].feature[1].float_list.value[:])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 190..192
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 196..198
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 199..201
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 307..309
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 310..312
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 313..315
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 316..318
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 319..321
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 455..457
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 459..461
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 463..465
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 467..469
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 471..473
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 475..477

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

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

                self.assertAllEqual(
                    [],
                    seq_feature_dict['region/label/string'].feature[1].bytes_list.value[:])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 190..192
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 193..195
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 196..198
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 199..201
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 307..309
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 310..312
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 313..315
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 316..318
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 455..457
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 459..461
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 463..465
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 467..469
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 471..473
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 475..477

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

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

                self.assertAllClose(
                    [],
                    seq_feature_dict[
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 190..192
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 193..195
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 196..198
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 199..201
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 307..309
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 310..312
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 313..315
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 316..318
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 319..321
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 455..457
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 463..465
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 467..469
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 471..473
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 475..477

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

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

                self.assertAllClose(
                    [],
                    seq_feature_dict[
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 190..192
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 193..195
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 196..198
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 199..201
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 307..309
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 310..312
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 313..315
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 316..318
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 319..321
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 455..457
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 459..461
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 463..465
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 467..469
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 471..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 32.

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

                self.assertAllClose(
                    [],
                    seq_feature_dict['region/bbox/xmax'].feature[1].float_list.value[:])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 190..192
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 193..195
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 196..198
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 307..309
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 310..312
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 313..315
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 316..318
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 319..321
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 455..457
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 459..461
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 463..465
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 467..469
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 471..473
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 475..477

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

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

                self.assertAllClose(
                    [],
                    seq_feature_dict['region/bbox/xmax'].feature[1].float_list.value[:])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 190..192
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 193..195
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 196..198
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 199..201
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 307..309
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 310..312
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 313..315
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 319..321
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 455..457
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 459..461
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 463..465
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 467..469
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 471..473
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 475..477

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

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

                self.assertAllClose(
                    [],
                    seq_feature_dict[
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 190..192
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 193..195
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 196..198
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 199..201
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 307..309
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 310..312
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 313..315
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 316..318
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 319..321
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 459..461
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 463..465
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 467..469
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 471..473
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 475..477

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

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

                self.assertAllEqual(
                    [],
                    seq_feature_dict[
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 190..192
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 193..195
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 196..198
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 199..201
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 307..309
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 310..312
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 313..315
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 316..318
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 319..321
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 455..457
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 459..461
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 463..465
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 467..469
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 475..477

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

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

                self.assertAllClose(
                    [],
                    seq_feature_dict['region/bbox/ymin'].feature[1].float_list.value[:])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 193..195
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 196..198
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 199..201
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 307..309
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 310..312
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 313..315
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 316..318
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 319..321
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 455..457
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 459..461
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 463..465
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 467..469
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 471..473
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 475..477

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

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

                self.assertAllClose(
                    [],
                    seq_feature_dict[
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 190..192
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 193..195
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 196..198
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 199..201
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 202..204
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 307..309
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 310..312
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 313..315
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 316..318
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 319..321
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 455..457
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 459..461
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 467..469
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 471..473
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 475..477

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

            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

                self.assertEqual(
                    timestamps[-1],
                    context_feature_dict['clip/end/timestamp'].int64_list.value[0])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 148..150
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 151..153
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 253..255
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 266..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 32.

            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

                self.assertEqual(
                    timestamps[0],
                    context_feature_dict['clip/start/timestamp'].int64_list.value[0])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 151..153
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 253..255
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 256..258
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 266..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 32.

            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

                self.assertEqual(
                    timestamps[-1],
                    context_feature_dict['clip/end/timestamp'].int64_list.value[0])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 148..150
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 253..255
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 256..258
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 266..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 32.

            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

                self.assertEqual(
                    timestamps[0],
                    context_feature_dict['clip/start/timestamp'].int64_list.value[0])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 148..150
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 151..153
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 256..258
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 266..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 32.

            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

                self.assertEqual(
                    context_feature_length[0],
                    context_feature_dict[
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 148..150
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 151..153
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 253..255
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 256..258

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

            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

                self.assertAllEqual(
                    labels,
                    seq_feature_dict['region/label/string'].feature[0].bytes_list.value[:])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 182..184

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

            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

                self.assertAllEqual(
                    labels,
                    seq_feature_dict['region/label/string'].feature[0].bytes_list.value[:])
            research/object_detection/dataset_tools/seq_example_util_test.py on lines 299..301

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

            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