id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
14,600
__init__.py
jrnl-org_jrnl/jrnl/plugins/__init__.py
# Copyright © 2012-2023 jrnl contributors # License: https://www.gnu.org/licenses/gpl-3.0.html from typing import Type from jrnl.plugins.calendar_heatmap_exporter import CalendarHeatmapExporter from jrnl.plugins.dates_exporter import DatesExporter from jrnl.plugins.fancy_exporter import FancyExporter from jrnl.plugi...
1,649
Python
.py
41
36.756098
84
0.774234
jrnl-org/jrnl
6,434
519
140
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,601
yaml_exporter.py
jrnl-org_jrnl/jrnl/plugins/yaml_exporter.py
# Copyright © 2012-2023 jrnl contributors # License: https://www.gnu.org/licenses/gpl-3.0.html import os import re from typing import TYPE_CHECKING from jrnl.exception import JrnlException from jrnl.messages import Message from jrnl.messages import MsgStyle from jrnl.messages import MsgText from jrnl.output import p...
5,324
Python
.py
125
31.248
88
0.552489
jrnl-org/jrnl
6,434
519
140
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,602
xml_exporter.py
jrnl-org_jrnl/jrnl/plugins/xml_exporter.py
# Copyright © 2012-2023 jrnl contributors # License: https://www.gnu.org/licenses/gpl-3.0.html from typing import TYPE_CHECKING from xml.dom import minidom from jrnl.plugins.json_exporter import JSONExporter from jrnl.plugins.util import get_tags_count if TYPE_CHECKING: from jrnl.journals import Entry from ...
2,605
Python
.py
63
32.968254
84
0.642716
jrnl-org/jrnl
6,434
519
140
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,603
tag_exporter.py
jrnl-org_jrnl/jrnl/plugins/tag_exporter.py
# Copyright © 2012-2023 jrnl contributors # License: https://www.gnu.org/licenses/gpl-3.0.html from typing import TYPE_CHECKING from jrnl.plugins.text_exporter import TextExporter from jrnl.plugins.util import get_tags_count if TYPE_CHECKING: from jrnl.journals import Entry from jrnl.journals import Journal...
1,237
Python
.py
30
34.5
86
0.64387
jrnl-org/jrnl
6,434
519
140
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,604
calendar_heatmap_exporter.py
jrnl-org_jrnl/jrnl/plugins/calendar_heatmap_exporter.py
# Copyright © 2012-2023 jrnl contributors # License: https://www.gnu.org/licenses/gpl-3.0.html import calendar from datetime import datetime from typing import TYPE_CHECKING from rich import box from rich.align import Align from rich.columns import Columns from rich.console import Console from rich.table import Tabl...
4,860
Python
.py
100
30.83
88
0.504322
jrnl-org/jrnl
6,434
519
140
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,605
dates_exporter.py
jrnl-org_jrnl/jrnl/plugins/dates_exporter.py
# Copyright © 2012-2023 jrnl contributors # License: https://www.gnu.org/licenses/gpl-3.0.html from typing import TYPE_CHECKING from jrnl.plugins.text_exporter import TextExporter from jrnl.plugins.util import get_journal_frequency_one_level if TYPE_CHECKING: from jrnl.journals import Entry from jrnl.journa...
924
Python
.py
21
39
88
0.727374
jrnl-org/jrnl
6,434
519
140
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,606
BaseEncryption.py
jrnl-org_jrnl/jrnl/encryption/BaseEncryption.py
# Copyright © 2012-2023 jrnl contributors # License: https://www.gnu.org/licenses/gpl-3.0.html import logging from abc import ABC from abc import abstractmethod from jrnl.exception import JrnlException from jrnl.messages import Message from jrnl.messages import MsgStyle from jrnl.messages import MsgText class Base...
1,480
Python
.py
43
27.418605
72
0.650315
jrnl-org/jrnl
6,434
519
140
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,607
BaseKeyEncryption.py
jrnl-org_jrnl/jrnl/encryption/BaseKeyEncryption.py
# Copyright © 2012-2023 jrnl contributors # License: https://www.gnu.org/licenses/gpl-3.0.html from .BaseEncryption import BaseEncryption class BaseKeyEncryption(BaseEncryption): pass
192
Python
.py
5
36
52
0.815217
jrnl-org/jrnl
6,434
519
140
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,608
BasePasswordEncryption.py
jrnl-org_jrnl/jrnl/encryption/BasePasswordEncryption.py
# Copyright © 2012-2023 jrnl contributors # License: https://www.gnu.org/licenses/gpl-3.0.html import logging from jrnl.encryption.BaseEncryption import BaseEncryption from jrnl.exception import JrnlException from jrnl.keyring import get_keyring_password from jrnl.messages import Message from jrnl.messages import Ms...
2,447
Python
.py
64
29.828125
73
0.632558
jrnl-org/jrnl
6,434
519
140
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,609
__init__.py
jrnl-org_jrnl/jrnl/encryption/__init__.py
# Copyright © 2012-2023 jrnl contributors # License: https://www.gnu.org/licenses/gpl-3.0.html from enum import Enum from importlib import import_module from typing import TYPE_CHECKING from typing import Type if TYPE_CHECKING: from .BaseEncryption import BaseEncryption class EncryptionMethods(str, Enum): ...
954
Python
.py
26
31.769231
78
0.718954
jrnl-org/jrnl
6,434
519
140
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,610
NoEncryption.py
jrnl-org_jrnl/jrnl/encryption/NoEncryption.py
# Copyright © 2012-2023 jrnl contributors # License: https://www.gnu.org/licenses/gpl-3.0.html import logging from jrnl.encryption.BaseEncryption import BaseEncryption class NoEncryption(BaseEncryption): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) logging.debug("start...
571
Python
.py
14
35.071429
57
0.684211
jrnl-org/jrnl
6,434
519
140
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,611
Jrnlv2Encryption.py
jrnl-org_jrnl/jrnl/encryption/Jrnlv2Encryption.py
# Copyright © 2012-2023 jrnl contributors # License: https://www.gnu.org/licenses/gpl-3.0.html import base64 import logging from cryptography.fernet import Fernet from cryptography.fernet import InvalidToken from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes fr...
1,850
Python
.py
48
30.979167
83
0.656058
jrnl-org/jrnl
6,434
519
140
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,612
Jrnlv1Encryption.py
jrnl-org_jrnl/jrnl/encryption/Jrnlv1Encryption.py
# Copyright © 2012-2023 jrnl contributors # License: https://www.gnu.org/licenses/gpl-3.0.html import hashlib import logging from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import padding from cryptography.hazmat.primitives.ciphers import Cipher from cryptography.hazmat.p...
1,657
Python
.py
35
39.285714
81
0.676161
jrnl-org/jrnl
6,434
519
140
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,613
allow_all_python_version.py
jrnl-org_jrnl/.build/allow_all_python_version.py
import toml pyproject = toml.load("pyproject.toml") pyproject["tool"]["poetry"]["dependencies"]["python"] = "*" with open("pyproject.toml", "w") as toml_file: toml.dump(pyproject, toml_file)
198
Python
.pyt
5
37.2
59
0.705263
jrnl-org/jrnl
6,434
519
140
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,614
.pylintrc
osm-search_Nominatim/.pylintrc
[MASTER] extension-pkg-whitelist=osmium,falcon ignored-modules=icu,datrie [MESSAGES CONTROL] [TYPECHECK] # closing added here because it sometimes triggers a false positive with # 'with' statements. ignored-classes=NominatimArgs,closing # 'too-many-ancestors' is triggered already by deriving from UserDict # 'not-co...
826
Python
.py
15
53.6
280
0.824627
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,615
.mypy.ini
osm-search_Nominatim/.mypy.ini
[mypy] plugins = sqlalchemy.ext.mypy.plugin [mypy-sanic_cors.*] ignore_missing_imports = True [mypy-icu.*] ignore_missing_imports = True [mypy-asyncpg.*] ignore_missing_imports = True [mypy-datrie.*] ignore_missing_imports = True [mypy-dotenv.*] ignore_missing_imports = True [mypy-falcon.*] ignore_missing_imports...
380
Python
.py
16
22.3125
36
0.778711
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,616
nominatim-cli.py
osm-search_Nominatim/nominatim-cli.py
#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Helper script for development to run nominatim from the source directory. """ from...
509
Python
.py
15
32.733333
73
0.747454
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,617
conftest.py
osm-search_Nominatim/test/python/conftest.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. import itertools import sys from pathlib import Path import psycopg from psycopg import sql as pysql import ...
7,517
Python
.py
187
31.540107
110
0.63429
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,618
cursor.py
osm-search_Nominatim/test/python/cursor.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Specialised psycopg cursor with shortcut functions useful for testing. """ import psycopg class CursorFo...
2,016
Python
.py
48
33.645833
83
0.617391
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,619
mocks.py
osm-search_Nominatim/test/python/mocks.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Custom mocks for testing. """ import itertools from nominatim_db.db import properties # This must alway...
3,479
Python
.py
75
28.68
108
0.482027
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,620
mock_icu_word_table.py
osm-search_Nominatim/test/python/mock_icu_word_table.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Legacy word table for testing with functions to prefil and test contents of the table. """ from nominatim...
4,617
Python
.py
92
35.25
102
0.514896
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,621
dummy_tokenizer.py
osm-search_Nominatim/test/python/dummy_tokenizer.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tokenizer for testing. """ from nominatim_db.data.place_info import PlaceInfo from nominatim_db.config im...
1,879
Python
.py
57
26.982456
71
0.667408
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,622
test_country_info.py
osm-search_Nominatim/test/python/data/test_country_info.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for function that handle country properties. """ from textwrap import dedent import pytest from no...
6,507
Python
.py
133
29.142857
88
0.444743
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,623
test_utils.py
osm-search_Nominatim/test/python/db/test_utils.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for DB utility functions in db.utils """ import json import pytest import nominatim_db.db.utils a...
1,867
Python
.py
40
42.875
83
0.71057
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,624
test_status.py
osm-search_Nominatim/test/python/db/test_status.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for status table manipulation. """ import datetime as dt import pytest import nominatim_db.db.sta...
5,857
Python
.py
103
51.951456
204
0.725263
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,625
test_connection.py
osm-search_Nominatim/test/python/db/test_connection.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for specialised connection and cursor classes. """ import pytest import psycopg import nominatim_d...
3,495
Python
.py
83
37.686747
81
0.705113
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,626
test_properties.py
osm-search_Nominatim/test/python/db/test_properties.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for property table manpulation. """ import pytest from nominatim_db.db import properties @pytest....
1,477
Python
.py
33
39.363636
83
0.695804
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,627
test_sql_preprocessor.py
osm-search_Nominatim/test/python/db/test_sql_preprocessor.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for SQL preprocessing. """ import pytest import pytest_asyncio from nominatim_db.db.sql_preprocess...
2,555
Python
.py
57
39.105263
92
0.64211
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,628
conftest.py
osm-search_Nominatim/test/python/tools/conftest.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. import pytest @pytest.fixture def osm2pgsql_options(temp_db, tmp_path): """ A standard set of options fo...
1,028
Python
.py
29
28.482759
75
0.61005
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,629
test_check_database.py
osm-search_Nominatim/test/python/tools/test_check_database.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for database integrity checks. """ import pytest from nominatim_db.tools import check_database as ...
4,682
Python
.py
76
55.789474
95
0.726138
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,630
test_database_import.py
osm-search_Nominatim/test/python/tools/test_database_import.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for functions to import a new database. """ from pathlib import Path import pytest import pytest_a...
8,741
Python
.py
164
44.384146
95
0.658387
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,631
test_postcodes.py
osm-search_Nominatim/test/python/tools/test_postcodes.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for functions to maintain the artificial postcode table. """ import subprocess import pytest from...
9,289
Python
.py
173
42.052023
112
0.606563
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,632
test_import_special_phrases.py
osm-search_Nominatim/test/python/tools/test_import_special_phrases.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for import special phrases methods of the class SPImporter. """ from shutil import copyfile...
9,537
Python
.py
198
41.333333
101
0.690668
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,633
test_tiger_data.py
osm-search_Nominatim/test/python/tools/test_tiger_data.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Test for tiger data function """ import tarfile from textwrap import dedent import pytest import pytest_...
6,173
Python
.py
124
38.782258
100
0.604895
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,634
test_refresh.py
osm-search_Nominatim/test/python/tools/test_refresh.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Test for various refresh functions. """ from pathlib import Path import pytest from nominatim_db.tools ...
4,216
Python
.py
73
44.726027
96
0.608505
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,635
test_sp_csv_loader.py
osm-search_Nominatim/test/python/tools/test_sp_csv_loader.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for methods of the SPCsvLoader class. """ import pytest from nominatim_db.errors import UsageE...
1,466
Python
.py
40
32.325
81
0.701482
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,636
test_admin.py
osm-search_Nominatim/test/python/tools/test_admin.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for maintenance and analysis functions. """ import pytest from nominatim_db.errors import UsageErr...
7,696
Python
.py
124
43.137097
161
0.531432
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,637
test_replication.py
osm-search_Nominatim/test/python/tools/test_replication.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for replication functionality. """ import datetime as dt import time import pytest from osmium.rep...
5,439
Python
.py
101
46.732673
204
0.698734
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,638
test_exec_utils.py
osm-search_Nominatim/test/python/tools/test_exec_utils.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for tools.exec_utils module. """ from pathlib import Path import subprocess import pytest from no...
888
Python
.py
24
34.458333
59
0.76135
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,639
test_add_osm_data.py
osm-search_Nominatim/test/python/tools/test_add_osm_data.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for functions to add additional data to the database. """ from pathlib import Path import pytest ...
2,362
Python
.py
47
44.170213
95
0.688261
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,640
test_refresh_address_levels.py
osm-search_Nominatim/test/python/tools/test_refresh_address_levels.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for function for importing address ranks. """ import json from pathlib import Path import pytest ...
3,358
Python
.py
68
37.720588
91
0.538862
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,641
test_migration.py
osm-search_Nominatim/test/python/tools/test_migration.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for migration functions """ import pytest from nominatim_db.tools import migration from nominatim_...
2,477
Python
.py
55
38.763636
96
0.691379
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,642
test_refresh_wiki_data.py
osm-search_Nominatim/test/python/tools/test_refresh_wiki_data.py
# SPDX-License-Identifier: GPL-2.0-only # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2022 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for correctly assigning wikipedia pages to places. """ import gzip import csv import pytest from nomi...
2,462
Python
.py
48
41.8125
104
0.620675
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,643
test_sp_wiki_loader.py
osm-search_Nominatim/test/python/tools/test_sp_wiki_loader.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for methods of the SPWikiLoader class. """ import pytest from nominatim_db.tools.special_phrase...
2,444
Python
.py
50
39.96
94
0.585253
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,644
test_refresh_create_functions.py
osm-search_Nominatim/test/python/tools/test_refresh_create_functions.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for creating PL/pgSQL functions for Nominatim. """ import pytest from nominatim_db.tools.refresh i...
1,998
Python
.py
45
29.844444
81
0.528078
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,645
test_freeze.py
osm-search_Nominatim/test/python/tools/test_freeze.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for freeze functions (removing unused database parts). """ from nominatim_db.tools import freeze N...
1,711
Python
.py
44
34.909091
80
0.725787
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,646
test_config_load_module.py
osm-search_Nominatim/test/python/config/test_config_load_module.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Test for loading extra Python modules. """ from pathlib import Path import sys import pytest from nomin...
2,669
Python
.py
57
42.385965
89
0.703246
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,647
test_config.py
osm-search_Nominatim/test/python/config/test_config.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Test for loading dotenv configuration. """ from pathlib import Path import pytest from nominatim_db.conf...
13,650
Python
.py
269
44.687732
90
0.67941
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,648
test_json_writer.py
osm-search_Nominatim/test/python/utils/test_json_writer.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for the streaming JSON writer. """ import json import pytest from nominatim_api.utils.json_writer...
3,004
Python
.py
79
27.493671
81
0.498273
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,649
test_centroid.py
osm-search_Nominatim/test/python/utils/test_centroid.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for centroid computation. """ import pytest from nominatim_db.utils.centroid import PointsCentroid...
1,500
Python
.py
39
34.564103
84
0.659972
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,650
conftest.py
osm-search_Nominatim/test/python/api/conftest.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Helper fixtures for API call tests. """ import pytest import pytest_asyncio import time import datetime a...
9,984
Python
.py
198
35.373737
110
0.512639
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,651
test_api_connection.py
osm-search_Nominatim/test/python/api/test_api_connection.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for enhanced connection class for API functions. """ from pathlib import Path import pytest import...
2,551
Python
.py
58
38.12069
82
0.680032
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,652
test_api_polygons_v1.py
osm-search_Nominatim/test/python/api/test_api_polygons_v1.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for the deletable v1 API call. """ import json import datetime as dt from pathlib import Path impo...
3,527
Python
.py
74
32.959459
92
0.519977
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,653
test_results.py
osm-search_Nominatim/test/python/api/test_results.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for result datatype helper functions. """ import struct from binascii import hexlify import pytest...
2,866
Python
.py
65
34.953846
84
0.622438
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,654
fake_adaptor.py
osm-search_Nominatim/test/python/api/fake_adaptor.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Provides dummy implementations of ASGIAdaptor for testing. """ from collections import namedtuple import...
1,512
Python
.py
39
33.538462
79
0.699725
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,655
test_api_search.py
osm-search_Nominatim/test/python/api/test_api_search.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for search API calls. These tests make sure that all Python code is correct and executable. Functi...
5,436
Python
.py
109
39.816514
106
0.588291
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,656
test_warm.py
osm-search_Nominatim/test/python/api/test_warm.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for warm-up CLI function. """ import pytest import nominatim_db.cli @pytest.fixture(autouse=True)...
1,303
Python
.py
27
37.62963
106
0.555556
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,657
test_api_deletable_v1.py
osm-search_Nominatim/test/python/api/test_api_deletable_v1.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for the deletable v1 API call. """ import json from pathlib import Path import pytest from fake_a...
2,275
Python
.py
43
39.046512
105
0.520937
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,658
test_api_details.py
osm-search_Nominatim/test/python/api/test_api_details.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for details API call. """ import datetime as dt import pytest import nominatim_api as napi @pyte...
26,488
Python
.py
488
38.64959
100
0.547133
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,659
test_helpers_v1.py
osm-search_Nominatim/test/python/api/test_helpers_v1.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for the helper functions for v1 API. """ import pytest import nominatim_api.v1.helpers as helper ...
4,260
Python
.py
89
35.640449
94
0.511428
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,660
test_api_reverse.py
osm-search_Nominatim/test/python/api/test_api_reverse.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for reverse API call. These tests make sure that all Python code is correct and executable. Functi...
19,317
Python
.py
360
37.977778
110
0.527642
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,661
test_localization.py
osm-search_Nominatim/test/python/api/test_localization.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Test functions for adapting results to the user's locale. """ import pytest from nominatim_api import Lo...
1,783
Python
.py
40
37.125
78
0.542775
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,662
test_api_lookup.py
osm-search_Nominatim/test/python/api/test_api_lookup.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for lookup API call. """ import json import pytest import nominatim_api as napi def test_lookup_...
6,247
Python
.py
128
36.476563
87
0.553254
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,663
test_api_types.py
osm-search_Nominatim/test/python/api/test_api_types.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for loading of parameter dataclasses. """ import pytest from nominatim_api.errors import UsageErro...
1,104
Python
.py
27
34.555556
69
0.643592
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,664
test_api_status.py
osm-search_Nominatim/test/python/api/test_api_status.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for the status API call. """ import datetime as dt import pytest from nominatim_db.version import ...
1,757
Python
.py
44
35.477273
81
0.720165
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,665
test_server_glue_v1.py
osm-search_Nominatim/test/python/api/test_server_glue_v1.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for the Python web frameworks adaptor, v1 API. """ import json import xml.etree.ElementTree as ET ...
17,422
Python
.py
372
38.75
81
0.64376
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,666
test_export.py
osm-search_Nominatim/test/python/api/test_export.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for export CLI function. """ import pytest import nominatim_db.cli @pytest.fixture def run_export...
2,640
Python
.py
51
40.333333
98
0.58622
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,667
test_result_formatting_v1_reverse.py
osm-search_Nominatim/test/python/api/test_result_formatting_v1_reverse.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for formatting reverse results for the V1 API. These test only ensure that the Python code is corr...
13,028
Python
.py
262
29.805344
87
0.450689
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,668
test_result_formatting_v1.py
osm-search_Nominatim/test/python/api/test_result_formatting_v1.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for formatting results for the V1 API. These test only ensure that the Python code is correct. For...
13,150
Python
.py
259
31.061776
151
0.439947
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,669
test_token_assignment.py
osm-search_Nominatim/test/python/api/search/test_token_assignment.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Test for creation of token assignments from tokenized queries. """ import pytest from nominatim_api.sear...
15,714
Python
.py
254
45.452756
111
0.573
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,670
test_search_poi.py
osm-search_Nominatim/test/python/api/search/test_search_poi.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for running the POI searcher. """ import pytest import nominatim_api as napi from nominatim_api.ty...
4,337
Python
.py
80
43.575
98
0.596167
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,671
test_query_analyzer_factory.py
osm-search_Nominatim/test/python/api/search/test_query_analyzer_factory.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for query analyzer creation. """ from pathlib import Path import pytest from nominatim_api.search...
1,690
Python
.py
38
37.236842
92
0.673581
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,672
test_search_near.py
osm-search_Nominatim/test/python/api/search/test_search_near.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for running the near searcher. """ import pytest import nominatim_api as napi from nominatim_api.t...
6,716
Python
.py
123
41.504065
93
0.566585
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,673
test_search_places.py
osm-search_Nominatim/test/python/api/search/test_search_places.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for running the generic place searcher. """ import json import pytest import nominatim_api as nap...
23,598
Python
.py
394
44.484772
106
0.553691
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,674
test_icu_query_analyzer.py
osm-search_Nominatim/test/python/api/search/test_icu_query_analyzer.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for query analyzer for ICU tokenizer. """ import pytest import pytest_asyncio from nominatim_api i...
6,526
Python
.py
138
41.028986
98
0.658236
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,675
test_query.py
osm-search_Nominatim/test/python/api/search/test_query.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Test data types for search queries. """ import pytest import nominatim_api.search.query as nq def test_...
1,680
Python
.py
38
38.842105
59
0.645833
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,676
test_search_postcode.py
osm-search_Nominatim/test/python/api/search/test_search_postcode.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for running the postcode searcher. """ import pytest import nominatim_api as napi from nominatim_a...
7,222
Python
.py
126
43.738095
98
0.572158
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,677
test_search_country.py
osm-search_Nominatim/test/python/api/search/test_search_country.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for running the country searcher. """ import pytest import nominatim_api as napi from nominatim_ap...
5,092
Python
.py
94
41.638298
96
0.569066
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,678
test_db_search_builder.py
osm-search_Nominatim/test/python/api/search/test_db_search_builder.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2023 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for creating abstract searches from token assignments. """ import pytest from nominatim_api.search...
16,504
Python
.py
320
41.484375
111
0.604722
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,679
test_api_search_query.py
osm-search_Nominatim/test/python/api/search/test_api_search_query.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for tokenized query data structures. """ import pytest from nominatim_api.search import query cla...
5,559
Python
.py
94
52.425532
97
0.691003
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,680
conftest.py
osm-search_Nominatim/test/python/cli/conftest.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. import pytest import nominatim_db.cli class MockParamCapture: """ Mock that records the parameters with...
3,052
Python
.py
83
29.722892
83
0.656706
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,681
test_cli.py
osm-search_Nominatim/test/python/cli/test_cli.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for command line interface wrapper. These tests just check that the various command line parameter...
4,920
Python
.py
88
47.727273
104
0.662563
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,682
test_cmd_api.py
osm-search_Nominatim/test/python/cli/test_cmd_api.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for API access commands of command-line interface wrapper. """ import json import pytest import no...
6,357
Python
.py
123
37.747967
86
0.538175
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,683
test_cmd_admin.py
osm-search_Nominatim/test/python/cli/test_cmd_admin.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Test for the command line interface wrapper admin subcommand. These tests just check that the various co...
2,050
Python
.py
42
45
94
0.736181
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,684
test_cmd_replication.py
osm-search_Nominatim/test/python/cli/test_cmd_replication.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2023 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for replication command of command-line interface wrapper. """ import datetime as dt import time i...
5,502
Python
.py
105
43.171429
95
0.66305
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,685
test_cmd_refresh.py
osm-search_Nominatim/test/python/cli/test_cmd_refresh.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for command line interface wrapper for refresk command. """ import pytest import nominatim_db.tool...
5,038
Python
.py
84
49.630952
104
0.643148
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,686
test_cmd_import.py
osm-search_Nominatim/test/python/cli/test_cmd_import.py
# SPDX-License-Identifier: GPL-2.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for import command of the command-line interface wrapper. """ import pytest import nominatim_db.to...
5,563
Python
.py
92
50.967391
97
0.673897
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,687
test_indexing.py
osm-search_Nominatim/test/python/indexer/test_indexing.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for running the indexing. """ import itertools import pytest import pytest_asyncio from nominatim_...
12,052
Python
.py
243
34.078189
93
0.538089
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,688
test_icu_rule_loader.py
osm-search_Nominatim/test/python/tokenizer/test_icu_rule_loader.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for converting a config file to ICU rules. """ from textwrap import dedent import pytest import ya...
8,951
Python
.py
185
37.816216
89
0.545233
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,689
test_factory.py
osm-search_Nominatim/test/python/tokenizer/test_factory.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for creating new tokenizers. """ import pytest from nominatim_db.db import properties from nominat...
2,415
Python
.py
52
39.961538
76
0.720223
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,690
test_icu.py
osm-search_Nominatim/test/python/tokenizer/test_icu.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for ICU tokenizer. """ import yaml import itertools import pytest from nominatim_db.tokenizer imp...
25,317
Python
.py
495
41.183838
120
0.605452
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,691
test_place_sanitizer.py
osm-search_Nominatim/test/python/tokenizer/test_place_sanitizer.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for execution of the sanitztion step. """ import pytest from nominatim_db.errors import UsageError...
2,392
Python
.py
54
39.425926
84
0.667819
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,692
test_clean_tiger_tags.py
osm-search_Nominatim/test/python/tokenizer/sanitizers/test_clean_tiger_tags.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for sanitizer that clean up TIGER tags. """ import pytest from nominatim_db.tokenizer.place_saniti...
1,480
Python
.py
32
39.53125
101
0.645094
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,693
test_tag_analyzer_by_language.py
osm-search_Nominatim/test/python/tokenizer/sanitizers/test_tag_analyzer_by_language.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for the sanitizer that enables language-dependent analyzers. """ import pytest from nominatim_db.d...
10,512
Python
.py
191
41.748691
88
0.513009
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,694
test_sanitizer_config.py
osm-search_Nominatim/test/python/tokenizer/sanitizers/test_sanitizer_config.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for sanitizer configuration helper functions. """ import pytest from nominatim_db.errors import Us...
4,812
Python
.py
93
46.451613
90
0.639931
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,695
test_split_name_list.py
osm-search_Nominatim/test/python/tokenizer/sanitizers/test_split_name_list.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for the sanitizer that splits multivalue lists. """ import pytest from nominatim_db.tokenizer.plac...
3,026
Python
.py
56
42.821429
99
0.559891
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,696
test_clean_housenumbers.py
osm-search_Nominatim/test/python/tokenizer/sanitizers/test_clean_housenumbers.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for the sanitizer that normalizes housenumbers. """ import pytest from nominatim_db.tokenizer.plac...
2,583
Python
.py
49
47.183673
87
0.658449
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,697
test_tag_japanese.py
osm-search_Nominatim/test/python/tokenizer/sanitizers/test_tag_japanese.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. from typing import Mapping, Optional, List import pytest from nominatim_db.data.place_info import PlaceInfo ...
3,697
Python
.py
69
46.637681
116
0.64626
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,698
test_delete_tags.py
osm-search_Nominatim/test/python/tokenizer/sanitizers/test_delete_tags.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for the sanitizer that normalizes housenumbers. """ import pytest from nominatim_db.dat...
11,497
Python
.py
211
39.554502
100
0.490051
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)
14,699
test_strip_brace_terms.py
osm-search_Nominatim/test/python/tokenizer/sanitizers/test_strip_brace_terms.py
# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for the sanitizer that handles braced suffixes. """ import pytest from nominatim_db.tokenizer.plac...
2,034
Python
.py
40
41.4
100
0.57634
osm-search/Nominatim
3,062
711
96
GPL-3.0
9/5/2024, 5:11:58 PM (Europe/Amsterdam)