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,900 | directory.py | translate_pootle/pytest_pootle/fixtures/models/directory.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
@pytest.fixture(scope="sessi... | 546 | Python | .py | 16 | 31.75 | 77 | 0.755725 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,901 | utils.py | translate_pootle/pytest_pootle/fixtures/formats/utils.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
class Result(object):
d... | 1,655 | Python | .py | 42 | 34.142857 | 77 | 0.723965 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,902 | registry.py | translate_pootle/pytest_pootle/fixtures/formats/registry.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
@pytest.fixture
def no_forma... | 659 | Python | .py | 20 | 30 | 77 | 0.756329 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,903 | wordcount.py | translate_pootle/pytest_pootle/fixtures/core/utils/wordcount.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from collections import OrderedDict
import ... | 2,691 | Python | .py | 112 | 20.348214 | 78 | 0.58382 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,904 | subcommands.py | translate_pootle/pytest_pootle/fixtures/core/management/subcommands.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
@pytest.fixture
def command_... | 1,597 | Python | .py | 44 | 29.522727 | 79 | 0.633182 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,905 | state.py | translate_pootle/pytest_pootle/fixtures/pootle_fs/state.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import os
from collections import OrderedDic... | 8,589 | Python | .py | 213 | 33.328638 | 82 | 0.675533 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,906 | getters.py | translate_pootle/pytest_pootle/fixtures/pootle_fs/getters.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from contextlib import contextmanager
impor... | 2,279 | Python | .py | 65 | 31.015385 | 77 | 0.741773 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,907 | resources.py | translate_pootle/pytest_pootle/fixtures/pootle_fs/resources.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
@pytest.fixture
def project0... | 1,085 | Python | .py | 30 | 30.633333 | 77 | 0.68411 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,908 | finder.py | translate_pootle/pytest_pootle/fixtures/pootle_fs/finder.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import os
from collections import OrderedDic... | 6,569 | Python | .py | 177 | 30.666667 | 79 | 0.614757 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,909 | plugin.py | translate_pootle/pytest_pootle/fixtures/pootle_fs/plugin.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import os
import shutil
import pytest
from ... | 12,379 | Python | .py | 326 | 31.708589 | 82 | 0.669814 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,910 | base.py | translate_pootle/pytest_pootle/fixtures/pootle_fs/base.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import os
import pytest
@pytest.fixture
d... | 1,425 | Python | .py | 37 | 34.243243 | 77 | 0.712835 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,911 | files.py | translate_pootle/pytest_pootle/fixtures/pootle_fs/files.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import os
import pytest
@pytest.fixture
d... | 1,607 | Python | .py | 41 | 34.292683 | 79 | 0.697047 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,912 | commands.py | translate_pootle/pytest_pootle/fixtures/pootle_fs/commands.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from django.utils.functional ... | 4,251 | Python | .py | 106 | 32.377358 | 81 | 0.660906 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,913 | conftest.py | translate_pootle/tests/conftest.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import os
from django import setup
from dja... | 1,196 | Python | .py | 26 | 39.192308 | 80 | 0.68299 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,914 | settings.py | translate_pootle/tests/settings.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
"""Test settings."""
import os
SECRET_KEY... | 5,643 | Python | .py | 143 | 34.300699 | 84 | 0.672814 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,915 | database.py | translate_pootle/tests/database.py | import pytest
# -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
@pytest.mark.django_db
def te... | 568 | Python | .py | 14 | 37.928571 | 77 | 0.733212 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,916 | export.py | translate_pootle/tests/import_export/export.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from django.urls import rever... | 1,954 | Python | .py | 46 | 38.76087 | 77 | 0.732454 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,917 | import.py | translate_pootle/tests/import_export/import.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import os
import pytest
from django.core.f... | 5,978 | Python | .py | 121 | 38.31405 | 78 | 0.63036 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,918 | user.py | translate_pootle/tests/pootle_log/user.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pootle.core.delegate imp... | 893 | Python | .py | 22 | 36.818182 | 77 | 0.712471 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,919 | event.py | translate_pootle/tests/pootle_log/event.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from datetime import datetime
import pytest... | 797 | Python | .py | 22 | 33.181818 | 77 | 0.727273 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,920 | log.py | translate_pootle/tests/pootle_log/log.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from datetime import timedelt... | 27,245 | Python | .py | 713 | 29.28331 | 84 | 0.603625 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,921 | models.py | translate_pootle/tests/pootle_project/models.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pootle_project.models im... | 649 | Python | .py | 17 | 34.823529 | 77 | 0.734076 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,922 | utils.py | translate_pootle/tests/pootle_project/utils.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pootle.core.delegate imp... | 880 | Python | .py | 22 | 35.181818 | 77 | 0.715457 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,923 | panels.py | translate_pootle/tests/pootle_project/panels.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from django.template import l... | 4,376 | Python | .py | 118 | 30.737288 | 77 | 0.669573 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,924 | forms.py | translate_pootle/tests/pootle_project/forms.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pootle_language.models i... | 2,536 | Python | .py | 76 | 26.144737 | 77 | 0.628513 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,925 | views.py | translate_pootle/tests/pootle_project/views.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import json
import pytest
from django.core... | 7,746 | Python | .py | 201 | 31.333333 | 79 | 0.65355 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,926 | models.py | translate_pootle/tests/pootle_word/models.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from django.core.exceptions i... | 2,192 | Python | .py | 59 | 31.864407 | 77 | 0.684434 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,927 | utils.py | translate_pootle/tests/pootle_word/utils.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import os
import Levenshtein
from stemming... | 2,574 | Python | .py | 67 | 31.701493 | 78 | 0.655711 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,928 | formats.py | translate_pootle/tests/models/formats.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from django.db import Integri... | 5,014 | Python | .py | 126 | 34.222222 | 82 | 0.682922 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,929 | project.py | translate_pootle/tests/models/project.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from django.core.exceptions i... | 13,122 | Python | .py | 261 | 43.528736 | 80 | 0.702144 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,930 | datatables.py | translate_pootle/tests/models/datatables.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pytest_pootle.factories ... | 2,393 | Python | .py | 71 | 28.647887 | 79 | 0.696444 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,931 | user.py | translate_pootle/tests/models/user.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from django.contrib.auth import get_user_mod... | 18,600 | Python | .py | 390 | 39.728205 | 83 | 0.686466 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,932 | legalpage.py | translate_pootle/tests/models/legalpage.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pytest_pootle.factories ... | 2,591 | Python | .py | 68 | 32.573529 | 77 | 0.700479 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,933 | config.py | translate_pootle/tests/models/config.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from collections import OrderedDict
import ... | 21,790 | Python | .py | 519 | 36.046243 | 81 | 0.630507 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,934 | virtualfolder.py | translate_pootle/tests/models/virtualfolder.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from __future__ import absolute_import
from... | 7,012 | Python | .py | 189 | 30.328042 | 79 | 0.66043 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,935 | statistics.py | translate_pootle/tests/models/statistics.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pootle_statistics.models... | 616 | Python | .py | 17 | 32.470588 | 77 | 0.705882 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,936 | language.py | translate_pootle/tests/models/language.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from translate.lang.data impo... | 2,286 | Python | .py | 57 | 32.666667 | 77 | 0.690883 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,937 | store_fs.py | translate_pootle/tests/models/store_fs.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from dj... | 8,437 | Python | .py | 212 | 33.613208 | 82 | 0.685896 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,938 | suggestion.py | translate_pootle/tests/models/suggestion.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from django.template.defaultf... | 2,638 | Python | .py | 59 | 40.627119 | 83 | 0.739571 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,939 | translationproject.py | translate_pootle/tests/models/translationproject.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import os
import pytest
from translate.fil... | 5,854 | Python | .py | 133 | 37.496241 | 79 | 0.7016 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,940 | revision.py | translate_pootle/tests/models/revision.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pootle.core.models impor... | 1,803 | Python | .py | 46 | 34.913043 | 77 | 0.713631 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,941 | unit.py | translate_pootle/tests/models/unit.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import os
import pytest
from translate.sto... | 13,351 | Python | .py | 342 | 33.856725 | 79 | 0.696698 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,942 | store.py | translate_pootle/tests/models/store.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import io
import os
import six
import pyte... | 65,776 | Python | .py | 1,572 | 34.944656 | 84 | 0.672851 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,943 | directory.py | translate_pootle/tests/models/directory.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from django.core.exceptions i... | 1,789 | Python | .py | 40 | 40.55 | 79 | 0.735871 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,944 | submission.py | translate_pootle/tests/models/submission.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from django.utils import time... | 4,993 | Python | .py | 122 | 34.303279 | 78 | 0.667904 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,945 | staticpage.py | translate_pootle/tests/models/staticpage.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from staticpages.models impor... | 525 | Python | .py | 15 | 32.133333 | 77 | 0.73913 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,946 | profile.py | translate_pootle/tests/pootle_profile/profile.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from datetime import timedelta
import pytes... | 2,638 | Python | .py | 63 | 36.746032 | 83 | 0.713507 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,947 | membership.py | translate_pootle/tests/pootle_profile/membership.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pootle.core.delegate imp... | 2,903 | Python | .py | 52 | 51.134615 | 80 | 0.70911 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,948 | templatetags.py | translate_pootle/tests/pootle_profile/templatetags.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from urllib import quote_plus
import pytest... | 9,644 | Python | .py | 223 | 36.93722 | 81 | 0.672445 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,949 | views.py | translate_pootle/tests/pootle_profile/views.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from django.urls import rever... | 808 | Python | .py | 21 | 34.761905 | 77 | 0.750639 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,950 | vf.py | translate_pootle/tests/views/vf.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import json
from collections import OrderedD... | 7,335 | Python | .py | 184 | 32.478261 | 77 | 0.650934 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,951 | project.py | translate_pootle/tests/views/project.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from collections import OrderedDict
import ... | 10,827 | Python | .py | 265 | 33.10566 | 77 | 0.653507 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,952 | get_alt_src_langs.py | translate_pootle/tests/views/get_alt_src_langs.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pootle_store.views impor... | 4,784 | Python | .py | 109 | 38.045872 | 78 | 0.698946 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,953 | get_units.py | translate_pootle/tests/views/get_units.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import json
from urlparse import parse_qs
i... | 7,488 | Python | .py | 194 | 30.664948 | 77 | 0.609722 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,954 | disabled_project.py | translate_pootle/tests/views/disabled_project.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from django.urls import rever... | 1,351 | Python | .py | 34 | 33.647059 | 79 | 0.688361 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,955 | language.py | translate_pootle/tests/views/language.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from collections import OrderedDict
import ... | 5,264 | Python | .py | 120 | 36.408333 | 77 | 0.673485 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,956 | get_edit_unit.py | translate_pootle/tests/views/get_edit_unit.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import json
import unicodedata
import pytes... | 3,966 | Python | .py | 90 | 37.766667 | 82 | 0.690636 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,957 | tp.py | translate_pootle/tests/views/tp.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from collections import OrderedDict
import ... | 10,481 | Python | .py | 238 | 37.756303 | 80 | 0.692074 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,958 | get_contributors.py | translate_pootle/tests/views/get_contributors.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import json
import pytest
from pootle.core... | 6,343 | Python | .py | 152 | 35.335526 | 77 | 0.681183 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,959 | timeline.py | translate_pootle/tests/views/timeline.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from hashlib import md5
import json
import ... | 6,860 | Python | .py | 185 | 29.859459 | 82 | 0.66305 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,960 | contact.py | translate_pootle/tests/views/contact.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from __future__ import absolute_import
impo... | 2,560 | Python | .py | 55 | 42.654545 | 77 | 0.73572 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,961 | admin.py | translate_pootle/tests/views/admin.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from django.core.exceptions i... | 11,518 | Python | .py | 275 | 35.112727 | 82 | 0.67496 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,962 | core.py | translate_pootle/tests/views/core.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from pootle.core.views import PootleJSON
d... | 454 | Python | .py | 12 | 35.583333 | 77 | 0.738041 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,963 | bad.py | translate_pootle/tests/views/bad.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
@pytest.mark.django_db
def t... | 521 | Python | .py | 14 | 34.571429 | 77 | 0.724206 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,964 | unit.py | translate_pootle/tests/views/unit.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import json
import pytest
from django.http ... | 23,222 | Python | .py | 576 | 32.725694 | 81 | 0.653412 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,965 | models.py | translate_pootle/tests/pootle_app/models.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pootle.core.delegate imp... | 1,376 | Python | .py | 30 | 42.3 | 84 | 0.730798 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,966 | forms.py | translate_pootle/tests/pootle_app/forms.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pootle_app.forms import ... | 1,571 | Python | .py | 39 | 35.333333 | 78 | 0.710907 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,967 | views.py | translate_pootle/tests/pootle_app/views.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import json
import pytest
from django.util... | 4,763 | Python | .py | 123 | 32.02439 | 77 | 0.670919 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,968 | versioned.py | translate_pootle/tests/pootle_store/versioned.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pootle.core.delegate imp... | 3,690 | Python | .py | 91 | 35.120879 | 77 | 0.673998 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,969 | models.py | translate_pootle/tests/pootle_store/models.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pootle_store.constants i... | 1,631 | Python | .py | 39 | 37.692308 | 77 | 0.7314 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,970 | utils.py | translate_pootle/tests/pootle_store/utils.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from collections import OrderedDict
import ... | 14,727 | Python | .py | 374 | 33.572193 | 79 | 0.692609 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,971 | timeline.py | translate_pootle/tests/pootle_store/timeline.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from datetime import timedelt... | 20,165 | Python | .py | 461 | 36.370933 | 79 | 0.655429 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,972 | qualitychecks.py | translate_pootle/tests/pootle_store/qualitychecks.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pootle_store.models impo... | 622 | Python | .py | 19 | 29.421053 | 77 | 0.719533 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,973 | contextmanagers.py | translate_pootle/tests/pootle_store/contextmanagers.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from django.dispatch import r... | 1,926 | Python | .py | 46 | 34.456522 | 77 | 0.645265 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,974 | update.py | translate_pootle/tests/pootle_store/update.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import logging
import pytest
from pytest_po... | 3,440 | Python | .py | 96 | 30.864583 | 82 | 0.684544 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,975 | templatetags.py | translate_pootle/tests/pootle_misc/templatetags.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from django.template import C... | 1,830 | Python | .py | 38 | 43.657895 | 77 | 0.692653 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,976 | models.py | translate_pootle/tests/accounts/models.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pytest_pootle.factories ... | 1,075 | Python | .py | 24 | 41.875 | 77 | 0.771292 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,977 | adapter.py | translate_pootle/tests/accounts/adapter.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from django.core.exceptions i... | 783 | Python | .py | 19 | 37.263158 | 78 | 0.758108 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,978 | views.py | translate_pootle/tests/accounts/views.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from django.http import Query... | 1,789 | Python | .py | 49 | 31.020408 | 77 | 0.679005 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,979 | project.py | translate_pootle/tests/forms/project.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pootle_app.forms import ... | 7,965 | Python | .py | 209 | 31.746411 | 80 | 0.624903 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,980 | language.py | translate_pootle/tests/forms/language.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pootle_app.forms import ... | 1,875 | Python | .py | 62 | 25.193548 | 77 | 0.625418 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,981 | comment.py | translate_pootle/tests/forms/comment.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pootle.core.plugin impor... | 3,423 | Python | .py | 89 | 33 | 78 | 0.686239 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,982 | contact.py | translate_pootle/tests/forms/contact.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from __future__ import absolute_import
impo... | 9,854 | Python | .py | 253 | 32.83004 | 77 | 0.65806 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,983 | unit.py | translate_pootle/tests/forms/unit.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from django.forms import Form... | 5,343 | Python | .py | 142 | 32.471831 | 79 | 0.668562 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,984 | state.py | translate_pootle/tests/misc/state.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from po... | 7,313 | Python | .py | 192 | 31.057292 | 77 | 0.600255 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,985 | checks.py | translate_pootle/tests/misc/checks.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pootle_checks.constants ... | 1,826 | Python | .py | 51 | 28.078431 | 77 | 0.60034 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,986 | response.py | translate_pootle/tests/misc/response.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from po... | 5,761 | Python | .py | 129 | 39.775194 | 81 | 0.681567 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,987 | lang_mapper.py | translate_pootle/tests/misc/lang_mapper.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from collections import OrderedDict
import ... | 6,626 | Python | .py | 144 | 40.493056 | 80 | 0.697289 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,988 | models.py | translate_pootle/tests/pootle_language/models.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pootle.core.delegate imp... | 946 | Python | .py | 23 | 37.695652 | 77 | 0.756257 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,989 | teams.py | translate_pootle/tests/pootle_language/teams.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from django.contrib.auth impo... | 6,100 | Python | .py | 163 | 24.417178 | 77 | 0.523793 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,990 | panels.py | translate_pootle/tests/pootle_language/panels.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from django.template import l... | 1,800 | Python | .py | 47 | 33.234043 | 77 | 0.709049 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,991 | forms.py | translate_pootle/tests/pootle_language/forms.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from mock import PropertyMock, patch
import... | 10,252 | Python | .py | 272 | 30.029412 | 84 | 0.655211 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,992 | views.py | translate_pootle/tests/pootle_language/views.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import json
import pytest
from django impo... | 11,798 | Python | .py | 304 | 31.884868 | 84 | 0.670127 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,993 | models.py | translate_pootle/tests/pootle_score/models.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from datetime import timedelt... | 3,273 | Python | .py | 92 | 29.119565 | 77 | 0.656339 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,994 | receivers.py | translate_pootle/tests/pootle_score/receivers.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pootle.core.delegate imp... | 5,739 | Python | .py | 143 | 34.412587 | 77 | 0.707252 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,995 | utils.py | translate_pootle/tests/pootle_score/utils.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from datetime import timedelta
import pytes... | 6,981 | Python | .py | 176 | 32.198864 | 83 | 0.638025 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,996 | updater.py | translate_pootle/tests/pootle_score/updater.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from datetime import timedelta
from mock im... | 13,119 | Python | .py | 344 | 30.674419 | 80 | 0.627838 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,997 | scores.py | translate_pootle/tests/pootle_score/scores.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from datetime import datetime
import pytest... | 7,428 | Python | .py | 202 | 29.980198 | 77 | 0.668608 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,998 | path_matcher.py | translate_pootle/tests/vfolders/path_matcher.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from pootle_fs.utils import P... | 5,612 | Python | .py | 154 | 30.506494 | 77 | 0.679287 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
14,999 | vf_data.py | translate_pootle/tests/vfolders/vf_data.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import pytest
from django.db.models import ... | 2,424 | Python | .py | 58 | 36.810345 | 77 | 0.710894 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |