Cloud-CV/EvalAI

View on GitHub

Showing 666 of 1,371 total issues

Function addMembersToTeam has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    const addMembersToTeam = (team) => {
      SELF.apiCall = (params) => {
        const BODY = JSON.stringify(params);
        let apiPath = SELF.endpointsService.participantTeamInviteURL(team);
        if (SELF.isHost) {

    Function update_failed_jobs_and_send_logs has 11 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def update_failed_jobs_and_send_logs(
    Severity: Major
    Found in scripts/workers/code_upload_submission_worker.py - About 1 hr to fix

      Function cleanup_submission has 11 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      def cleanup_submission(
      Severity: Major
      Found in scripts/workers/code_upload_submission_worker.py - About 1 hr to fix

        Function onSuccess has 34 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                        onSuccess: function(response) {
                            var details = response.data;
                            vm.submissionResult = details;
        
                            if (vm.submissionResult.count === 0) {
        Severity: Minor
        Found in frontend/src/js/controllers/challengeCtrl.js - About 1 hr to fix

          Function createTeamSubmit has 34 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            createTeamSubmit(isvalidForm) {
              if (isvalidForm) {
                const API_PATH = 'participants/participant_team';
                const url = this.create_team['team_url'];
                let TEAM_BODY: any = {

            Function deleteChallenge has 34 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              deleteChallenge() {
                const SELF = this;
                const redirectTo = '/dashboard';
            
                SELF.apiCall = () => {

              Function createTeamSubmit has 34 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                createTeamSubmit(isvalidForm) {
                  if (isvalidForm) {
                    const API_PATH = this.createTeamsPath;
                    const url = this.create_team['team_url'];
                    let TEAM_BODY: any = {

                Function countDownTimer has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  countDownTimer(SELF, eachPhase) {
                    if (!SELF.isClockStarted) {
                      SELF.remainingTime = parseInt(eachPhase.limits.remaining_time, 10);
                    }
                    SELF.days = Math.floor(SELF.remainingTime / 24 / 60 / 60);

                  Function editForumURL has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    editForumURL() {
                      const SELF = this;
                      SELF.apiCall = (params) => {
                        const BODY = JSON.stringify(params);
                        SELF.apiService

                    Function editChallengeTitle has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            vm.editChallengeTitle = function(editChallengeTitleForm) {
                                if (editChallengeTitleForm) {
                                    var challengeHostList = utilities.getData("challengeCreator");
                                    for (var challenge in challengeHostList) {
                                        if (challenge == vm.challengeId) {
                    Severity: Minor
                    Found in frontend/src/js/controllers/challengeCtrl.js - About 1 hr to fix

                      Function dynHeader has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function dynHeader() {
                              var directive = {
                                  link: link,
                                  templateUrl: 'dist/views/web/partials/main-header.html',
                                  transclude: true,
                      Severity: Minor
                      Found in frontend/src/js/directives/directives.js - About 1 hr to fix

                        Function start has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                    vm.start = function() {
                                        vm.stopFetchingSubmissions();
                                        vm.poller = $interval(function() {
                                            parameters.url = "jobs/challenge/" + vm.challengeId + "/challenge_phase/" + vm.phaseId + "/submission/?page=" + Math.ceil(vm.currentPage);
                                            parameters.method = 'GET';
                        Severity: Minor
                        Found in frontend/src/js/controllers/challengeCtrl.js - About 1 hr to fix

                          Function editChallengeOverview has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  vm.editChallengeOverview = function(editChallengeOverviewForm) {
                                      if (editChallengeOverviewForm) {
                                          var challengeHostList = utilities.getData("challengeCreator");
                                          for (var challenge in challengeHostList) {
                                              if (challenge == vm.challengeId) {
                          Severity: Minor
                          Found in frontend/src/js/controllers/challengeCtrl.js - About 1 hr to fix

                            Function editEvaluationCriteria has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    vm.editEvaluationCriteria = function(editEvaluationCriteriaForm) {
                                        if (editEvaluationCriteriaForm) {
                                            var challengeHostList = utilities.getData("challengeCreator");
                                            for (var challenge in challengeHostList) {
                                                if (challenge == vm.challengeId) {
                            Severity: Minor
                            Found in frontend/src/js/controllers/challengeCtrl.js - About 1 hr to fix

                              Function editTermsAndConditions has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      vm.editTermsAndConditions = function(editTermsAndConditionsForm) {
                                          if (editTermsAndConditionsForm) {
                                              var challengeHostList = utilities.getData("challengeCreator");
                                              for (var challenge in challengeHostList) {
                                                  if (challenge == vm.challengeId) {
                              Severity: Minor
                              Found in frontend/src/js/controllers/challengeCtrl.js - About 1 hr to fix

                                Function editSubmissionGuideline has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        vm.editSubmissionGuideline = function(editSubmissionGuidelinesForm) {
                                            if (editSubmissionGuidelinesForm) {
                                                var challengeHostList = utilities.getData("challengeCreator");
                                                for (var challenge in challengeHostList) {
                                                    if (challenge == vm.challengeId) {
                                Severity: Minor
                                Found in frontend/src/js/controllers/challengeCtrl.js - About 1 hr to fix

                                  Function editprofileDialog has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          vm.editprofileDialog = function(ev) {
                                              switch (ev.currentTarget.id) {
                                                  case "first_name":
                                                    vm.titleInput = "First Name";
                                                    vm.editid = "first_name";
                                  Severity: Minor
                                  Found in frontend/src/js/controllers/profileCtrl.js - About 1 hr to fix

                                    Function logs_poller has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                vm.logs_poller = $interval(function () {
                                                    if (vm.evaluation_module_error) {
                                                        vm.workerLogs = [];
                                                        vm.workerLogs.push(vm.evaluation_module_error);
                                                    }
                                    Severity: Minor
                                    Found in frontend/src/js/controllers/challengeCtrl.js - About 1 hr to fix

                                      Function loadingWrapper has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        loadingWrapper(httpCall, isLoader = true) {
                                          if (isLoader) {
                                            setTimeout(() => {
                                              this.globalService.toggleLoading(true);
                                            }, 100);
                                      Severity: Minor
                                      Found in frontend_v2/src/app/services/api.service.ts - About 1 hr to fix

                                        Function js has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function js() {
                                            var app = gulp.src('frontend/src/js/app.js')
                                                .pipe(concat('app.js'))
                                                .pipe(gulp_if(production, rename({ suffix: '.min' })))
                                                .pipe(gulp_if(production, uglify({ mangle: false })))
                                        Severity: Minor
                                        Found in gulpfile.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language