BLKSerene/Wordless

View on GitHub
wordless/wl_concordancer_parallel.py

Summary

Maintainability
A
2 hrs
Test Coverage

Avoid deeply nested control flow statements.
Open

                            if (
                                ngram in search_terms
                                and wl_matching.check_context(
                                    j, tokens,
                                    context_settings = settings['search_settings']['context_settings'],
Severity: Major
Found in wordless/wl_concordancer_parallel.py - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                for node in nodes:
                                    len_node = len(node)
    
                                    for j, ngram in enumerate(wl_nlp_utils.ngrams(parallel_unit, len_node)):
                                        if ngram == tuple(node):
    Severity: Major
    Found in wordless/wl_concordancer_parallel.py - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                  for token in copy.deepcopy(parallel_unit):
                                      parallel_unit_tokens_search.append(token)
      
                                      if token.punc_mark:
                                          parallel_unit_tokens_search.append(wl_texts.Wl_Token(token.punc_mark, lang = token.lang))
      Severity: Major
      Found in wordless/wl_concordancer_parallel.py - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status