lucasmiranda42/deepof

View on GitHub

Showing 344 of 362 total issues

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

    addClass: function( value ) {
        var classes, elem, cur, curValue, clazz, j, finalValue,
            i = 0;

        if ( isFunction( value ) ) {
Severity: Minor
Found in docs/build/html/_static/jquery-3.6.0.js - About 1 hr to fix

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

        position: function() {
            if ( !this[ 0 ] ) {
                return;
            }
    
    
    Severity: Minor
    Found in docs/build/html/_static/jquery-3.6.0.js - About 1 hr to fix

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

          def call(self, inputs, training=False):  # pragma: no cover
              """Compute the output of the layer."""
              z_gauss_mean = self.z_gauss_mean(inputs)
              z_gauss_var = self.z_gauss_var(inputs)
      
      
      Severity: Minor
      Found in deepof/models.py - About 1 hr to fix

        Function remove has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            remove: function( owner, key ) {
                var i,
                    cache = owner[ this.expando ];
        
                if ( cache === undefined ) {
        Severity: Minor
        Found in docs/build/html/_static/jquery-3.6.0.js - About 1 hr to fix

          Function debounce has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function debounce(func, wait, immediate) {
              var timeout, previous, args, result, context;
          
              var later = function() {
                var passed = now() - previous;
          Severity: Minor
          Found in docs/build/html/_static/underscore-1.13.1.js - About 1 hr to fix

            Function __init__ has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                def __init__(
                    self,
                    input_shape: tuple,
                    edge_feature_shape: tuple,
                    adjacency_matrix: np.ndarray = None,
            Severity: Minor
            Found in deepof/models.py - About 1 hr to fix

              Consider simplifying this complex logical expression.
              Open

                  if ( support.matchesSelector && documentIsHTML &&
                      !nonnativeSelectorCache[ expr + " " ] &&
                      ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
                      ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
              
              
              Severity: Major
              Found in docs/build/html/_static/jquery-3.6.0.js - About 1 hr to fix

                Function embedding_per_video has 8 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                def embedding_per_video(
                Severity: Major
                Found in deepof/model_utils.py - About 1 hr to fix

                  Function get_coords has 8 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def get_coords(
                  Severity: Major
                  Found in deepof/data.py - About 1 hr to fix

                    Function supervised_annotation has 8 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def supervised_annotation(
                    Severity: Major
                    Found in deepof/data.py - About 1 hr to fix

                      Function plot_gantt has 8 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      def plot_gantt(
                      Severity: Major
                      Found in deepof/visuals.py - About 1 hr to fix

                        Function plot_cluster_detection_performance has 8 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        def plot_cluster_detection_performance(
                        Severity: Major
                        Found in deepof/visuals.py - About 1 hr to fix

                          Function get_callbacks has 8 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          def get_callbacks(
                          Severity: Major
                          Found in deepof/model_utils.py - About 1 hr to fix

                            Consider simplifying this complex logical expression.
                            Open

                                  if (aCtor !== bCtor && !(isFunction$1(aCtor) && aCtor instanceof aCtor &&
                                                           isFunction$1(bCtor) && bCtor instanceof bCtor)
                                                      && ('constructor' in a && 'constructor' in b)) {
                                    return false;
                                  }
                            Severity: Major
                            Found in docs/build/html/_static/underscore-1.13.1.js - About 1 hr to fix

                              Function __init__ has 8 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  def __init__(
                              Severity: Major
                              Found in deepof/hypermodels.py - About 1 hr to fix

                                Function output_unsupervised_annotated_video has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                def output_unsupervised_annotated_video(
                                Severity: Major
                                Found in deepof/visuals.py - About 1 hr to fix

                                  Function get_recurrent_encoder has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  def get_recurrent_encoder(
                                  Severity: Major
                                  Found in deepof/models.py - About 1 hr to fix

                                    Function interpolate_outliers has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    def interpolate_outliers(
                                    Severity: Major
                                    Found in deepof/utils.py - About 1 hr to fix

                                      Function __init__ has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          def __init__(
                                      Severity: Major
                                      Found in deepof/models.py - About 1 hr to fix

                                        Function sniff_object has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                        Open

                                        def sniff_object(
                                            speed_dframe: pd.DataFrame,
                                            arena_type: str,
                                            arena: np.array,
                                            pos_dict: pd.DataFrame,
                                        Severity: Minor
                                        Found in deepof/annotation_utils.py - About 55 mins to fix

                                        Cognitive Complexity

                                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                        A method's cognitive complexity is based on a few simple rules:

                                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                        • Code is considered more complex for each "break in the linear flow of the code"
                                        • Code is considered more complex when "flow breaking structures are nested"

                                        Further reading

                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language