Cloud-CV/EvalAI

View on GitHub

Showing 1,371 of 1,371 total issues

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

  showModal(params) {
    if (!this.isModalVisible) {
      this.isModalVisible = true;
      const TEMP = { isModalVisible: true };
      this.modalSource.next(Object.assign({}, params, TEMP));
Severity: Major
Found in frontend_v2/src/app/services/global.service.ts and 3 other locations - About 2 hrs to fix
frontend_v2/src/app/services/global.service.ts on lines 173..179
frontend_v2/src/app/services/global.service.ts on lines 208..214
frontend_v2/src/app/services/global.service.ts on lines 220..226

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

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

  showTermsAndConditionsModal(params) {
    if (!this.isTermsAndConditionsModalVisible) {
      this.isTermsAndConditionsModalVisible = true;
      const TEMP = { isTermsAndConditionsModalVisible: true };
      this.termsAndConditionsSource.next(Object.assign({}, params, TEMP));
Severity: Major
Found in frontend_v2/src/app/services/global.service.ts and 3 other locations - About 2 hrs to fix
frontend_v2/src/app/services/global.service.ts on lines 173..179
frontend_v2/src/app/services/global.service.ts on lines 196..202
frontend_v2/src/app/services/global.service.ts on lines 208..214

Duplicated Code

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

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

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

Tuning

This issue has a mass of 76.

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

  showEditPhaseModal(params) {
    if (!this.isEditPhaseModalVisible) {
      this.isEditPhaseModalVisible = true;
      const TEMP = { isEditPhaseModalVisible: true };
      this.editPhasemodalSource.next(Object.assign({}, params, TEMP));
Severity: Major
Found in frontend_v2/src/app/services/global.service.ts and 3 other locations - About 2 hrs to fix
frontend_v2/src/app/services/global.service.ts on lines 173..179
frontend_v2/src/app/services/global.service.ts on lines 196..202
frontend_v2/src/app/services/global.service.ts on lines 220..226

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

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

Function ChallengeInviteCtrl has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function ChallengeInviteCtrl(utilities, $state, $rootScope, $stateParams) {

        var vm = this;
        vm.invitationKey = $stateParams.invitationKey;

Severity: Major
Found in frontend/src/js/controllers/ChallengeInviteCtrl.js - About 2 hrs to fix

    Function ngOnInit has 51 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      ngOnInit() {
        if (this.params) {
          if (this.params['title']) {
            this.title = this.params['title'];
          }
    Severity: Major
    Found in frontend_v2/src/app/components/utility/modal/modal.component.ts - About 2 hrs to fix

      Function challengeDateDialog has 50 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        challengeDateDialog() {
          const SELF = this;
          SELF.apiCall = (params) => {
            if (new Date(params.start_date).valueOf() < new Date(params.end_date).valueOf()) {
              const BODY = JSON.stringify({

        Function editTeamWrapper has 50 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          editTeamWrapper() {
            const SELF = this;
            let TeamUrl;
            const editTeam = (team) => {
              const teamId = team['id'];

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

                  vm.challengeTitleDialog = function(ev) {
                      vm.tempChallengeTitle = vm.page.title;
                      $mdDialog.show({
                          scope: $scope,
                          preserveScope: true,
          Severity: Major
          Found in frontend/src/js/controllers/challengeCtrl.js and 5 other locations - About 2 hrs to fix
          frontend/src/js/controllers/challengeCtrl.js on lines 2421..2430
          frontend/src/js/controllers/challengeCtrl.js on lines 2510..2519
          frontend/src/js/controllers/challengeCtrl.js on lines 2560..2569
          frontend/src/js/controllers/challengeCtrl.js on lines 2611..2620
          frontend/src/js/controllers/challengeCtrl.js on lines 2669..2678

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 75.

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

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

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

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

          Refactorings

          Further Reading

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

                  vm.submissionGuidelinesDialog = function(ev) {
                      vm.tempSubmissionGuidelines = vm.page.submission_guidelines;
                      $mdDialog.show({
                          scope: $scope,
                          preserveScope: true,
          Severity: Major
          Found in frontend/src/js/controllers/challengeCtrl.js and 5 other locations - About 2 hrs to fix
          frontend/src/js/controllers/challengeCtrl.js on lines 2421..2430
          frontend/src/js/controllers/challengeCtrl.js on lines 2560..2569
          frontend/src/js/controllers/challengeCtrl.js on lines 2611..2620
          frontend/src/js/controllers/challengeCtrl.js on lines 2669..2678
          frontend/src/js/controllers/challengeCtrl.js on lines 2717..2726

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 75.

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

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

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

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

          Refactorings

          Further Reading

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

                  vm.evaluationCriteriaDialog = function(ev) {
                      vm.tempEvaluationCriteria = vm.page.evaluation_details;
                      $mdDialog.show({
                          scope: $scope,
                          preserveScope: true,
          Severity: Major
          Found in frontend/src/js/controllers/challengeCtrl.js and 5 other locations - About 2 hrs to fix
          frontend/src/js/controllers/challengeCtrl.js on lines 2421..2430
          frontend/src/js/controllers/challengeCtrl.js on lines 2510..2519
          frontend/src/js/controllers/challengeCtrl.js on lines 2611..2620
          frontend/src/js/controllers/challengeCtrl.js on lines 2669..2678
          frontend/src/js/controllers/challengeCtrl.js on lines 2717..2726

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 75.

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

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

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

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

          Refactorings

          Further Reading

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

                  vm.evaluationScriptDialog = function(ev) {
                      vm.tempEvaluationCriteria = vm.page.evaluation_details;
                      $mdDialog.show({
                          scope: $scope,
                          preserveScope: true,
          Severity: Major
          Found in frontend/src/js/controllers/challengeCtrl.js and 5 other locations - About 2 hrs to fix
          frontend/src/js/controllers/challengeCtrl.js on lines 2421..2430
          frontend/src/js/controllers/challengeCtrl.js on lines 2510..2519
          frontend/src/js/controllers/challengeCtrl.js on lines 2560..2569
          frontend/src/js/controllers/challengeCtrl.js on lines 2669..2678
          frontend/src/js/controllers/challengeCtrl.js on lines 2717..2726

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 75.

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

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

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

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

          Refactorings

          Further Reading

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

                  vm.termsAndConditionsDialog = function(ev) {
                      vm.tempTermsAndConditions = vm.page.terms_and_conditions;
                      $mdDialog.show({
                          scope: $scope,
                          preserveScope: true,
          Severity: Major
          Found in frontend/src/js/controllers/challengeCtrl.js and 5 other locations - About 2 hrs to fix
          frontend/src/js/controllers/challengeCtrl.js on lines 2421..2430
          frontend/src/js/controllers/challengeCtrl.js on lines 2510..2519
          frontend/src/js/controllers/challengeCtrl.js on lines 2560..2569
          frontend/src/js/controllers/challengeCtrl.js on lines 2611..2620
          frontend/src/js/controllers/challengeCtrl.js on lines 2717..2726

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 75.

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

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

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

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

          Refactorings

          Further Reading

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

                          onError: function(response) {
                              var error = response.data;
                              vm.team.error = error.team_name[0];
                              vm.stopLoader();
                              $rootScope.notify("error",  error.team_name[0]);
          Severity: Major
          Found in frontend/src/js/controllers/challengeHostTeamsCtrl.js and 1 other location - About 2 hrs to fix
          frontend/src/js/controllers/teamsCtrl.js on lines 234..240

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 75.

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

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

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

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

          Refactorings

          Further Reading

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

                  vm.overviewDialog = function(ev) {
                      vm.tempDesc = vm.page.description;
                      $mdDialog.show({
                          scope: $scope,
                          preserveScope: true,
          Severity: Major
          Found in frontend/src/js/controllers/challengeCtrl.js and 5 other locations - About 2 hrs to fix
          frontend/src/js/controllers/challengeCtrl.js on lines 2510..2519
          frontend/src/js/controllers/challengeCtrl.js on lines 2560..2569
          frontend/src/js/controllers/challengeCtrl.js on lines 2611..2620
          frontend/src/js/controllers/challengeCtrl.js on lines 2669..2678
          frontend/src/js/controllers/challengeCtrl.js on lines 2717..2726

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 75.

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

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

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

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

          Refactorings

          Further Reading

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

                          onError: function(response) {
                              var error = response.data;
          
                              vm.team.error = error.team_name[0];
                              vm.stopLoader();
          Severity: Major
          Found in frontend/src/js/controllers/teamsCtrl.js and 1 other location - About 2 hrs to fix
          frontend/src/js/controllers/challengeHostTeamsCtrl.js on lines 283..288

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 75.

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

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

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

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

          Refactorings

          Further Reading

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

          apps/challenges/migrations/0082_challengephasesplit_show_execution_time.py on lines 0..16
          apps/challenges/migrations/0083_challengephase_annotations_uploaded_using_cli.py on lines 0..16
          apps/challenges/migrations/0086_add_is_multi_metric_leaderboard_field.py on lines 0..16
          apps/challenges/migrations/0089_add_challenge_use_host_sqs.py on lines 0..16
          apps/challenges/migrations/0090_challenge_allow_resuming_submissions.py on lines 0..16
          apps/challenges/migrations/0091_challenge_allow_host_cancel_submissions.py on lines 0..16
          apps/challenges/migrations/0092_challenge_allow_cancel_running_submissions.py on lines 0..16
          apps/challenges/migrations/0094_challenge_allow_participants_resubmissions.py on lines 0..16
          apps/challenges/migrations/0097_challengephase_disable_logs.py on lines 0..16
          apps/challenges/migrations/0109_alter_leaderboarddata_is_disabled.py on lines 0..16
          apps/jobs/migrations/0021_add_submission_verified_field.py on lines 0..16

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

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

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

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

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

          Refactorings

          Further Reading

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

          apps/challenges/migrations/0082_challengephasesplit_show_execution_time.py on lines 0..16
          apps/challenges/migrations/0086_add_is_multi_metric_leaderboard_field.py on lines 0..16
          apps/challenges/migrations/0089_add_challenge_use_host_sqs.py on lines 0..16
          apps/challenges/migrations/0090_challenge_allow_resuming_submissions.py on lines 0..16
          apps/challenges/migrations/0091_challenge_allow_host_cancel_submissions.py on lines 0..16
          apps/challenges/migrations/0092_challenge_allow_cancel_running_submissions.py on lines 0..16
          apps/challenges/migrations/0094_challenge_allow_participants_resubmissions.py on lines 0..16
          apps/challenges/migrations/0097_challengephase_disable_logs.py on lines 0..16
          apps/challenges/migrations/0107_leaderboarddata_is_disabled.py on lines 0..16
          apps/challenges/migrations/0109_alter_leaderboarddata_is_disabled.py on lines 0..16
          apps/jobs/migrations/0021_add_submission_verified_field.py on lines 0..16

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

          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

                              angular.element(window).bind('scroll', function() {
          
                                  if (this.pageYOffset >= 10) {
                                      angular.element(" nav").addClass('grad-shadow-1');
                                  } else {
          Severity: Major
          Found in frontend/src/js/directives/directives.js and 1 other location - About 2 hrs to fix
          frontend/src/js/directives/directives.js on lines 295..302

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 75.

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

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

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

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

          Refactorings

          Further Reading

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

          apps/challenges/migrations/0082_challengephasesplit_show_execution_time.py on lines 0..16
          apps/challenges/migrations/0083_challengephase_annotations_uploaded_using_cli.py on lines 0..16
          apps/challenges/migrations/0086_add_is_multi_metric_leaderboard_field.py on lines 0..16
          apps/challenges/migrations/0089_add_challenge_use_host_sqs.py on lines 0..16
          apps/challenges/migrations/0091_challenge_allow_host_cancel_submissions.py on lines 0..16
          apps/challenges/migrations/0092_challenge_allow_cancel_running_submissions.py on lines 0..16
          apps/challenges/migrations/0094_challenge_allow_participants_resubmissions.py on lines 0..16
          apps/challenges/migrations/0097_challengephase_disable_logs.py on lines 0..16
          apps/challenges/migrations/0107_leaderboarddata_is_disabled.py on lines 0..16
          apps/challenges/migrations/0109_alter_leaderboarddata_is_disabled.py on lines 0..16
          apps/jobs/migrations/0021_add_submission_verified_field.py on lines 0..16

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

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

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

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

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

          Refactorings

          Further Reading

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

          apps/challenges/migrations/0082_challengephasesplit_show_execution_time.py on lines 0..16
          apps/challenges/migrations/0083_challengephase_annotations_uploaded_using_cli.py on lines 0..16
          apps/challenges/migrations/0086_add_is_multi_metric_leaderboard_field.py on lines 0..16
          apps/challenges/migrations/0090_challenge_allow_resuming_submissions.py on lines 0..16
          apps/challenges/migrations/0091_challenge_allow_host_cancel_submissions.py on lines 0..16
          apps/challenges/migrations/0092_challenge_allow_cancel_running_submissions.py on lines 0..16
          apps/challenges/migrations/0094_challenge_allow_participants_resubmissions.py on lines 0..16
          apps/challenges/migrations/0097_challengephase_disable_logs.py on lines 0..16
          apps/challenges/migrations/0107_leaderboarddata_is_disabled.py on lines 0..16
          apps/challenges/migrations/0109_alter_leaderboarddata_is_disabled.py on lines 0..16
          apps/jobs/migrations/0021_add_submission_verified_field.py on lines 0..16

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

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

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

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

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

          Refactorings

          Further Reading

          Severity
          Category
          Status
          Source
          Language