giganticode/codeprep

View on GitHub
codeprep/api/corpus.py

Summary

Maintainability
B
6 hrs
Test Coverage

Function basic has 14 arguments (exceeds 4 allowed). Consider refactoring.
Open

def basic(path: str, extensions: Optional[str] = None, split_numbers: bool = False, ronin = False, stem: bool = False,
Severity: Major
Found in codeprep/api/corpus.py - About 1 hr to fix

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

    def bpe(path: str, bpe_codes_id: str, extensions: Optional[str] = None, no_spaces: bool = False,
    Severity: Major
    Found in codeprep/api/corpus.py - About 1 hr to fix

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

      def nosplit(path: str, extensions: Optional[str] = None, no_spaces: bool = False, no_unicode: bool = False,
      Severity: Major
      Found in codeprep/api/corpus.py - About 1 hr to fix

        Function chars has 10 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        def chars(path: str, extensions: Optional[str] = None, no_spaces: bool = False, no_unicode: bool = False,
        Severity: Major
        Found in codeprep/api/corpus.py - About 1 hr to fix

          Function preprocess_corpus has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          def preprocess_corpus(path: str, prep_config: PrepConfig, bpe_codes_id: Optional[str]=None,
          Severity: Major
          Found in codeprep/api/corpus.py - About 50 mins to fix

            There are no issues that match your filters.

            Category
            Status