BuddhaNexus/buddhanexus

View on GitHub
Merge pull request #318 from BuddhaNexus/api-updates #319
Sebastian Nehrdich authored 4256c4ee
complete00:00:20
1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
No errors or warnings found in .codeclimate.json.
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
5
structure
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
6
duplication
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
I, [2024-10-30T19:31:26.804867 #1]  INFO -- : Skipping file dataloader/load_segments.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 71
    SEARCH_COLLECTION_NAME: str
                          ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.804944 #1]  INFO -- : Skipping file dataloader/dataloader_constants.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 6
    ARANGO_HOST = f"http://{os.environ['ARANGO_HOST']}:{os.environ['ARANGO_PORT']}"
                                                                                  ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.817483 #1]  INFO -- : Skipping file dataloader/dataloader_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 22
    id: str = Field(..., min_length=1)
      ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.821712 #1]  INFO -- : Skipping file dataloader/tasks.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 76
    print(f"created {DB_NAME} database")
                                      ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.836582 #1]  INFO -- : Skipping file dataloader/clean_database.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 77
    def empty_collection(collection_name: str, db: StandardDatabase, edge: bool = False):
                                        ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.851624 #1]  INFO -- : Skipping file dataloader/global_search.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 48
    ANALYZER_NAME: str
                 ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.861893 #1]  INFO -- : Skipping file dataloader/dataloader_validator.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 25
    print(f"Validating {doc_path}: OK")
                                     ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.864767 #1]  INFO -- : Skipping file dataloader/load_stats.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 23
    global_stats_file = f"{folder}/{lang}/stats/global_stats.json.gz"
                                                                    ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.876819 #1]  INFO -- : Skipping file dataloader/load_parallels.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 37
    def load_parallels(parallels, db: StandardDatabase) -> None:
                                    ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.889805 #1]  INFO -- : Skipping file dataloader/utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 37
    def get_arango_client() -> ArangoClient:
                            ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.895991 #1]  INFO -- : Skipping file dataloader/load_metadata.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 18
    def load_metadata_from_files(paths: List[str], db: StandardDatabase) -> None:
                                      ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.907396 #1]  INFO -- : Skipping file ./api/endpoints/endpoint_utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 20
    raise HTTPException(status_code=404, detail="Item not found") from error
                                                                     ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.911484 #1]  INFO -- : Skipping file ./api/endpoints/links.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 12
    async def get_external_links(filename: str = Query(...)) -> Any:
        ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.922961 #1]  INFO -- : Skipping file ./api/endpoints/numbers_view.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 48
    async def get_numbers_view(input: GeneralInput) -> Any:
        ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.925568 #1]  INFO -- : Skipping file ./api/endpoints/menu.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 13
    async def get_data_for_sidebar_menu(
        ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.936189 #1]  INFO -- : Skipping file ./api/endpoints/models/utils_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    filename: str
            ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.941450 #1]  INFO -- : Skipping file ./api/endpoints/models/links_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 5
    bdrc: str
        ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.952571 #1]  INFO -- : Skipping file ./api/endpoints/models/numbers_view_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 6
    segmentnr: str
             ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.956511 #1]  INFO -- : Skipping file ./api/endpoints/models/text_view_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    filename: str
            ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.969141 #1]  INFO -- : Skipping file ./api/endpoints/models/menu_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 6
    displayName: str
               ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.971558 #1]  INFO -- : Skipping file ./api/endpoints/models/download_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 12
    download_data: DownloadData = DownloadData.table
                 ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.986560 #1]  INFO -- : Skipping file ./api/endpoints/models/graph_view_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 10
    par_length: int = 0
              ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:26.988231 #1]  INFO -- : Skipping file ./api/endpoints/models/search_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 16
    language: Languages
            ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:27.000545 #1]  INFO -- : Skipping file ./api/endpoints/models/general_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 26
    par_length: int = 0
              ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:27.003831 #1]  INFO -- : Skipping file ./api/endpoints/models/table_view_models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    par_segnr_range: str
                   ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:27.013059 #1]  INFO -- : Skipping file ./api/endpoints/search.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 13
    async def get_search_results(input: SearchInput) -> Any:
        ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:27.030333 #1]  INFO -- : Skipping file ./api/endpoints/text_view.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 13
    async def get_parallels_for_middle(input: TextViewMiddleInput) -> Any:
        ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:27.046611 #1]  INFO -- : Skipping file ./api/endpoints/graph_view.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 11
    async def get_graph_for_file(input: GraphInput) -> Any:
        ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:27.047326 #1]  INFO -- : Skipping file ./api/endpoints/table_view.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 14
    async def get_table_view(input: GeneralInput) -> Any:
        ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:27.061274 #1]  INFO -- : Skipping file ./api/endpoints/download.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 17
    async def get_table_download(input: DownloadInput) -> Any:
        ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:27.064885 #1]  INFO -- : Skipping file ./api/endpoints/utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 11
    async def get_counts_for_file(input: CountMatchesInput) -> Any:
        ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:27.083263 #1]  INFO -- : Skipping file ./api/main.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 42
    def root() -> object:
               ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:27.176100 #1]  INFO -- : Skipping file ./api/utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 46
    def get_sort_key(sort_method) -> str:
                                  ^
SyntaxError: invalid syntax


I, [2024-10-30T19:31:27.218969 #1]  INFO -- : Skipping file ./api/db_connection.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 13
    def get_db() -> Database:
                 ^
SyntaxError: invalid syntax
7
bandit
bandit engine documentation
View output
[main]	INFO	profile include tests: None
[main]	INFO	profile exclude tests: None
[main]	INFO	cli include tests: None
[main]	INFO	cli exclude tests: None
8
pep8
pep8 engine documentation
View output
dataloader/load_segments.py dataloader/dataloader_constants.py dataloader/tasks.py dataloader/dataloader_models.py dataloader/views_properties.py dataloader/clean_database.py dataloader/global_search.py dataloader/dataloader_validator.py dataloader/load_stats.py dataloader/load_parallels.py dataloader/__init__.py dataloader/utils.py dataloader/load_metadata.py .github/ .idea/ api/ setup/
9
sonar-python
sonar-python engine documentation
View output
INFO: Java 1.8.0_111-internal Oracle Corporation (64-bit)
INFO: Linux 4.4.0-1128-aws amd64
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-core-2.17.0.899.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-cli-2.1.0.566.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
INFO: Index files
INFO: Invalid character encountered in file '/code/buddhanexus_smaller.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/buddhanexus_small.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: 65 files indexed
ERROR: Unable to parse file: /code/dataloader/load_segments.py
ERROR: Parse error at line 71 column 26:

   66: folios = list(dict.fromkeys(folios))
   67:     return filename, segments, folios, segments_paginated, lang
   68: 
   69: 
   70: class LoadSegmentsBase:
  -->      SEARCH_COLLECTION_NAME: str
   72: 
   73:     def __init__(self) -> None:
   74:         self.metadata = self._init_metadata()
   75:         self.DATA_PATH = SEGMENT_URLS[

ERROR: Unable to parse file: /code/dataloader/dataloader_models.py
ERROR: Parse error at line 22 column 6:

   10: 
   11:     tibetan = "bo"
   12:     sanskrit = "sa"
   13:     chinese = "zh"
   14:     pali = "pa"
   15: 
   16: 
   17: class Match(BaseModel):
   18:     """
   19:     The base model of a Parallel object
   20:     """
   21: 
  -->      id: str = Field(..., min_length=1)
   23:     score: float
   24:     par_length: int
   25:     root_length: int
   26:     inquiry_pos_beg: int
   27: 

ERROR: Unable to parse file: /code/dataloader/global_search.py
ERROR: Parse error at line 48 column 17:

   39: stopwords
   40: 
   41: 
   42: bo_stopwords_list = get_stopwords_list(SA_STOPWORDS_URL)
   43: sa_stopwords_list = get_stopwords_list(BO_STOPWORDS_URL)
   44: pa_stopwords_list = get_stopwords_list(PA_STOPWORDS_URL)
   45: 
   46: 
   47: class AnalyzerBase:
  -->      ANALYZER_NAME: str
   49:     CASE: str
   50:     STOPWORDS: list
   51:     ACCENT: bool
   52: 
   53:     def create_analyzer(self, db: StandardDatabase):
   54:         db.create_analyzer

ERROR: Unable to parse file: /code/api/endpoints/models/utils_models.py
ERROR: Parse error at line 7 column 12:

    1: from pydantic import BaseModel
    2: from typing import List, Optional
    3: from .general_models import Filters
    4: 
    5: 
    6: class CountMatchesInput(BaseModel):
  -->      filename: str
    8:     filters: Optional[Filters]
    9: 
   10: 
   11: class CountMatchesOutput(BaseModel):
   12:     parallel_count: int
   13: 
   14: 
   15: class FolioOutput(BaseModel):

ERROR: Unable to parse file: /code/api/endpoints/models/links_models.py
ERROR: Parse error at line 5 column 8:

    1: from pydantic import BaseModel
    2: 
    3: 
    4: class LinksOutput(BaseModel):
  -->      bdrc: str
    6:     rkts: str
    7:     gretil: str
    8:     dsbc: str
    9:     cbeta: str
   10:     suttacentral: str
   11:     cbc: str
   12:     vri: str

ERROR: Unable to parse file: /code/api/endpoints/models/numbers_view_models.py
ERROR: Parse error at line 6 column 13:

    1: from pydantic import BaseModel
    2: from typing import List
    3: 
    4: 
    5: class Parallel(BaseModel):
  -->      segmentnr: str
    7:     displayName: str
    8:     fileName: str
    9:     category: str
   10: 
   11: 
   12: class Segment(BaseModel):
   13:     segmentnr: str
   14:     parallels:

ERROR: Unable to parse file: /code/api/endpoints/models/text_view_models.py
ERROR: Parse error at line 7 column 12:

    1: pydantic import BaseModel
    2: from typing import List, Union, Optional
    3: from .general_models import Filters, FullText
    4: 
    5: 
    6: class TextParallelsInput(BaseModel):
  -->      filename: str
    8:     folio: str = ""
    9:     active_segment: Optional[str] = "none"
   10:     filters: Optional[Filters]
   11:     page: int = 0

ERROR: Unable to parse file: /code/api/endpoints/models/menu_models.py
ERROR: Parse error at line 6 column 15:

    1: from pydantic import BaseModel
    2: from typing import List
    3: 
    4: 
    5: class File(BaseModel):
  -->      displayName: str
    7:     filename: str
    8:     search_field: str
    9: 
   10: 
   11: class CategoryBase(BaseModel):
   12:     category: str
   13:     categorydisplayname: str
   14:     categorysearch_field:

ERROR: Unable to parse file: /code/api/endpoints/models/download_models.py
ERROR: Parse error at line 12 column 17:

    3: GeneralInput
    4: 
    5: 
    6: class DownloadData(str, Enum):
    7:     table = "table"
    8:     numbers = "numbers"
    9: 
   10: 
   11: class DownloadInput(GeneralInput):
  -->      download_data: DownloadData = DownloadData.table
   13: 
   14: 
   15: class DownloadOutput(BaseModel):
   16:     __root__: bytes
   17: EOF

ERROR: Unable to parse file: /code/api/endpoints/models/graph_view_models.py
ERROR: Parse error at line 10 column 14:

    1: from pydantic import BaseModel
    2: from typing import List, Union, Optional
    3: 
    4: 
    5: class GraphFilters(BaseModel):
    6:     """
    7:     Filters for graph
    8:     """
    9: 
  -->      par_length: int = 0
   11:     score: int = 0
   12:     include_collections: Optional[List[str]]
   13: 
   14: 
   15: class GraphInput(BaseModel):
   16:     

ERROR: Unable to parse file: /code/api/endpoints/models/search_models.py
ERROR: Parse error at line 16 column 12:

    2: from typing import List, Optional
    3: from .general_models import FullNames, FullText, Languages
    4: 
    5: """
    6: Search results are not yet working so the below needs to 
    7: be updated accordingly
    8: """
    9: 
   10: 
   11: class SearchFilters(BaseModel):
   12:     """
   13:     Filters for search
   14:     """
   15: 
  -->      language: Languages
   17:     include_files: Optional[List[str]]
   18:     exclude_files: Optional[List[str]]
   19: 
   20:     include_categories: Optional[List[str

ERROR: Unable to parse file: /code/api/endpoints/models/table_view_models.py
ERROR: Parse error at line 7 column 19:

    1: from pydantic import BaseModel
    2: from typing import List
    3: from .general_models import FullNames, FullText
    4: 
    5: 
    6: class Segment(BaseModel):
  -->      par_segnr_range: str
    8:     par_full_names: FullNames
    9:     root_full_names: FullNames
   10:     root_segnr_range: str
   11:     par_length: int
   12:     root_length: int
   13:     score: int
   14:     src_lang: str

ERROR: Unable to parse file: /code/api/endpoints/models/general_models.py
ERROR: Parse error at line 26 column 14:

   14: 
   15:     position = "position"
   16:     quotedtext = "quotedtext"
   17:     length = "length"
   18:     length2 = "length2"
   19: 
   20: 
   21: class Filters(BaseModel):
   22:     """
   23:     Filters for matches
   24:     """
   25: 
  -->      par_length: int = 0
   27:     score: int = 0
   28:     languages: Optional[List[Languages]]
   29: 
   30:     include_files: Optional[List[str]]

INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.756s
INFO: Final Memory: 6M/295M
INFO: ------------------------------------------------------------------------