lucasmiranda42/deepof

View on GitHub

Showing 363 of 363 total issues

Avoid too many return statements within this function.
Open

        return compare & 4 ? -1 : 1;
Severity: Major
Found in docs/build/html/_static/jquery-3.6.0.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

            return jQuery.makeArray( selector, this );
    Severity: Major
    Found in docs/build/html/_static/jquery-3.6.0.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              return false;
      Severity: Major
      Found in docs/build/html/_static/jquery-3.6.0.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return this;
        Severity: Major
        Found in docs/build/html/_static/jquery-3.6.0.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              return deepEq(a, b, aStack, bStack);
          Severity: Major
          Found in docs/build/html/_static/underscore-1.13.1.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                return values(obj);
            Severity: Major
            Found in docs/build/html/_static/underscore-1.13.1.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      if (!eq(a[length], b[length], aStack, bStack)) return false;
              Severity: Major
              Found in docs/build/html/_static/underscore-1.13.1.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        if (byteLength !== getByteLength(b)) return false;
                Severity: Major
                Found in docs/build/html/_static/underscore-1.13.1.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        if (length !== b.length) return false;
                  Severity: Major
                  Found in docs/build/html/_static/underscore-1.13.1.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                            if (a.buffer === b.buffer && a.byteOffset === b.byteOffset) return true;
                    Severity: Major
                    Found in docs/build/html/_static/underscore-1.13.1.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                            if (aStack[length] === a) return bStack[length] === b;
                      Severity: Major
                      Found in docs/build/html/_static/underscore-1.13.1.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return false;
                        Severity: Major
                        Found in docs/build/html/_static/underscore-1.13.1.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                if (keys(b).length !== length) return false;
                          Severity: Major
                          Found in docs/build/html/_static/underscore-1.13.1.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                    if (!(has$1(b, key) && eq(a[key], b[key], aStack, bStack))) return false;
                            Severity: Major
                            Found in docs/build/html/_static/underscore-1.13.1.js - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                    if (typeof a != 'object' || typeof b != 'object') return false;
                              Severity: Major
                              Found in docs/build/html/_static/underscore-1.13.1.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                    return true;
                                Severity: Major
                                Found in docs/build/html/_static/underscore-1.13.1.js - About 30 mins to fix

                                  Function performTermsSearch has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                    performTermsSearch: (searchTerms, excludedTerms) => {
                                      // prepare search
                                      const terms = Search._index.terms;
                                      const titleTerms = Search._index.titleterms;
                                      const filenames = Search._index.filenames;
                                  Severity: Minor
                                  Found in docs/build/html/_static/searchtools.js - About 25 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

                                  Function get_callbacks has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  def get_callbacks(
                                      embedding_model: str,
                                      encoder_type: str,
                                      kmeans_loss: float = 1.0,
                                      input_type: str = False,
                                  Severity: Minor
                                  Found in deepof/model_utils.py - About 25 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

                                  Function separation_between_conditions has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  def separation_between_conditions(
                                      cur_embedding: table_dict,
                                      cur_soft_counts: table_dict,
                                      cur_breaks: table_dict,
                                      exp_conditions: dict,
                                  Severity: Minor
                                  Found in deepof/post_hoc.py - About 25 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

                                  Function align_trajectories has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  def align_trajectories(data: np.array, mode: str = "all") -> np.array:
                                      """Remove rotational variance on the trajectories.
                                  
                                      Returns a numpy.array with the positions rotated in a way that the center (0 vector), and body part in the first
                                      column of data are aligned with the y-axis.
                                  Severity: Minor
                                  Found in deepof/utils.py - About 25 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