KarrLab/test_history_server

View on GitHub

Showing 406 of 624 total issues

File jquery.js has 6532 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jQuery JavaScript Library v1.8.3
 * http://jquery.com/
 *
 * Includes Sizzle.js
Severity: Major
Found in public/static/js/flot-0.8.3/jquery.js - About 2 wks to fix

    File foundation.min.js has 4732 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*
     * Foundation Responsive Library
     * http://foundation.zurb.com
     * Copyright 2014, ZURB
     * Free to use under the MIT license.
    Severity: Major
    Found in public/static/js/foundation.min.js - About 1 wk to fix

      Function Plot has 1987 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function Plot(placeholder, data_, options_, plugins) {
              // data is on the form:
              //   [ series1, series2 ... ]
              // where series is either just the data as [ [x1, y1], [x2, y2], ... ]
              // or { data: [ [x1, y1], [x2, y2], ... ], label: "some label", ... }
      Severity: Major
      Found in public/static/js/flot-0.8.3/jquery.flot.js - About 1 wk to fix

        File jquery.flot.js has 2239 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /* Javascript plotting library for jQuery, version 0.8.3.
        
        Copyright (c) 2007-2014 IOLA and Ole Laursen.
        Licensed under the MIT license.
        
        
        Severity: Major
        Found in public/static/js/flot-0.8.3/jquery.flot.js - About 6 days to fix

          File excanvas.js has 1090 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          // Copyright 2006 Google Inc.
          //
          // Licensed under the Apache License, Version 2.0 (the "License");
          // you may not use this file except in compliance with the License.
          // You may obtain a copy of the License at
          Severity: Major
          Found in public/static/js/flot-0.8.3/excanvas.js - About 2 days to fix

            Function init has 470 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function init(plot) {
            
                    var canvas = null,
                        target = null,
                        options = null,
            Severity: Major
            Found in public/static/js/flot-0.8.3/jquery.flot.pie.js - About 2 days to fix

              Function timezone has 371 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                timezoneJS.timezone = new function () {
                  var _this = this
                    , regionMap = {'Etc':'etcetera','EST':'northamerica','MST':'northamerica','HST':'northamerica','EST5EDT':'northamerica','CST6CDT':'northamerica','MST7MDT':'northamerica','PST8PDT':'northamerica','America':'northamerica','Pacific':'australasia','Atlantic':'europe','Africa':'africa','Indian':'africa','Antarctica':'antarctica','Asia':'asia','Australia':'australasia','Europe':'europe','WET':'europe','CET':'europe','MET':'europe','EET':'europe'}
                    , regionExceptions = {'Pacific/Honolulu':'northamerica','Atlantic/Bermuda':'northamerica','Atlantic/Cape_Verde':'africa','Atlantic/St_Helena':'africa','Indian/Kerguelen':'antarctica','Indian/Chagos':'asia','Indian/Maldives':'asia','Indian/Christmas':'australasia','Indian/Cocos':'australasia','America/Danmarkshavn':'europe','America/Scoresbysund':'europe','America/Godthab':'europe','America/Thule':'europe','Asia/Yekaterinburg':'europe','Asia/Omsk':'europe','Asia/Novosibirsk':'europe','Asia/Krasnoyarsk':'europe','Asia/Irkutsk':'europe','Asia/Yakutsk':'europe','Asia/Vladivostok':'europe','Asia/Sakhalin':'europe','Asia/Magadan':'europe','Asia/Kamchatka':'europe','Asia/Anadyr':'europe','Africa/Ceuta':'europe','America/Argentina/Buenos_Aires':'southamerica','America/Argentina/Cordoba':'southamerica','America/Argentina/Tucuman':'southamerica','America/Argentina/La_Rioja':'southamerica','America/Argentina/San_Juan':'southamerica','America/Argentina/Jujuy':'southamerica','America/Argentina/Catamarca':'southamerica','America/Argentina/Mendoza':'southamerica','America/Argentina/Rio_Gallegos':'southamerica','America/Argentina/Ushuaia':'southamerica','America/Aruba':'southamerica','America/La_Paz':'southamerica','America/Noronha':'southamerica','America/Belem':'southamerica','America/Fortaleza':'southamerica','America/Recife':'southamerica','America/Araguaina':'southamerica','America/Maceio':'southamerica','America/Bahia':'southamerica','America/Sao_Paulo':'southamerica','America/Campo_Grande':'southamerica','America/Cuiaba':'southamerica','America/Porto_Velho':'southamerica','America/Boa_Vista':'southamerica','America/Manaus':'southamerica','America/Eirunepe':'southamerica','America/Rio_Branco':'southamerica','America/Santiago':'southamerica','Pacific/Easter':'southamerica','America/Bogota':'southamerica','America/Curacao':'southamerica','America/Guayaquil':'southamerica','Pacific/Galapagos':'southamerica','Atlantic/Stanley':'southamerica','America/Cayenne':'southamerica','America/Guyana':'southamerica','America/Asuncion':'southamerica','America/Lima':'southamerica','Atlantic/South_Georgia':'southamerica','America/Paramaribo':'southamerica','America/Port_of_Spain':'southamerica','America/Montevideo':'southamerica','America/Caracas':'southamerica'};
                  function invalidTZError(t) { throw new Error('Timezone "' + t + '" is either incorrect, or not loaded in the timezone registry.'); }
              Severity: Major
              Found in public/static/js/flot-0.8.3/examples/axes-time-zones/date.js - About 1 day to fix

                File foundation.joyride.js has 732 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                ;(function ($, window, document, undefined) {
                  'use strict';
                
                  var Modernizr = Modernizr || false;
                
                
                Severity: Major
                Found in public/static/js/foundation/foundation.joyride.js - About 1 day to fix

                  File views.py has 716 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  """ HTML GUI views
                  :Author: Jonathan Karr <karr@mssm.edu>
                  :Date: 2016-11-01
                  :Copyright: 2016, Karr Lab
                  :License: MIT
                  Severity: Major
                  Found in test_history_server/html/views.py - About 1 day to fix

                    File date.js has 666 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    // -----
                    // The `timezoneJS.Date` object gives you full-blown timezone support, independent from the timezone set on the end-user's machine running the browser. It uses the Olson zoneinfo files for its timezone data.
                    //
                    // The constructor function and setter methods use proxy JavaScript Date objects behind the scenes, so you can use strings like '10/22/2006' with the constructor. You also get the same sensible wraparound behavior with numeric parameters (like setting a value of 14 for the month wraps around to the next March).
                    //
                    Severity: Major
                    Found in public/static/js/flot-0.8.3/examples/axes-time-zones/date.js - About 1 day to fix

                      Function Orbit has 257 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        var Orbit = function (el, settings) {
                          // Don't reinitialize plugin
                          if (el.hasClass(settings.slides_container_class)) {
                            return this;
                          }
                      Severity: Major
                      Found in public/static/js/foundation.min.js - About 1 day to fix

                        Function Orbit has 257 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          var Orbit = function (el, settings) {
                            // Don't reinitialize plugin
                            if (el.hasClass(settings.slides_container_class)) {
                              return this;
                            }
                        Severity: Major
                        Found in public/static/js/foundation/foundation.orbit.js - About 1 day to fix

                          Function ajax has 240 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              ajax: function( url, options ) {
                          
                                  // If url is an object, simulate pre-1.5 signature
                                  if ( typeof url === "object" ) {
                                      options = url;
                          Severity: Major
                          Found in public/static/js/flot-0.8.3/jquery.js - About 1 day to fix

                            File jquery.flot.pie.js has 525 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            /* Flot plugin for rendering pie charts.
                            
                            Copyright (c) 2007-2014 IOLA and Ole Laursen.
                            Licensed under the MIT license.
                            
                            
                            Severity: Major
                            Found in public/static/js/flot-0.8.3/jquery.flot.pie.js - About 1 day to fix

                              Function init has 191 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function init(plot) {
                                      var selection = {
                                              first: { x: -1, y: -1}, second: { x: -1, y: -1},
                                              show: false,
                                              active: false
                              Severity: Major
                              Found in public/static/js/flot-0.8.3/jquery.flot.selection.js - About 7 hrs to fix

                                Function drawSeriesLines has 187 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        function drawSeriesLines(series) {
                                            function plotLine(datapoints, xoffset, yoffset, axisx, axisy) {
                                                var points = datapoints.points,
                                                    ps = datapoints.pointsize,
                                                    prevx = null, prevy = null;
                                Severity: Major
                                Found in public/static/js/flot-0.8.3/jquery.flot.js - About 7 hrs to fix

                                  Function drawGrid has 186 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          function drawGrid() {
                                              var i, axes, bw, bc;
                                  
                                              ctx.save();
                                              ctx.translate(plotOffset.left, plotOffset.top);
                                  Severity: Major
                                  Found in public/static/js/flot-0.8.3/jquery.flot.js - About 7 hrs to fix

                                    Function draw has 175 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            function draw(plot, newCtx) {
                                    
                                                if (!target) {
                                                    return; // if no series were passed
                                                }
                                    Severity: Major
                                    Found in public/static/js/flot-0.8.3/jquery.flot.pie.js - About 7 hrs to fix

                                      Function init has 171 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function init(plot) {
                                              function onZoomClick(e, zoomOut) {
                                                  var c = plot.offset();
                                                  c.left = e.pageX - c.left;
                                                  c.top = e.pageY - c.top;
                                      Severity: Major
                                      Found in public/static/js/flot-0.8.3/jquery.flot.navigate.js - About 6 hrs to fix

                                        Function processData has 167 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                function processData() {
                                                    var topSentry = Number.POSITIVE_INFINITY,
                                                        bottomSentry = Number.NEGATIVE_INFINITY,
                                                        fakeInfinity = Number.MAX_VALUE,
                                                        i, j, k, m, length,
                                        Severity: Major
                                        Found in public/static/js/flot-0.8.3/jquery.flot.js - About 6 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language