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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15,600 | directory_data.py | translate_pootle/pootle/apps/pootle_data/directory_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.
from django.db.models import Max
from pootl... | 2,009 | Python | .py | 47 | 34.489362 | 84 | 0.656074 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,601 | 0006_add_cascade_deletes.py | translate_pootle/pootle/apps/pootle_data/migrations/0006_add_cascade_deletes.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2016-11-08 20:14
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('pootle_data', '0005_add_store_and_tp_data'),
]
ope... | 1,336 | Python | .py | 31 | 34.451613 | 159 | 0.649231 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,602 | 0009_remove_extra_indeces.py | translate_pootle/pootle/apps/pootle_data/migrations/0009_remove_extra_indeces.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-06-02 15:57
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0030_remove_extra_indeces'),
('poot... | 2,145 | Python | .py | 57 | 28 | 175 | 0.595489 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,603 | 0003_index_unique_together.py | translate_pootle/pootle/apps/pootle_data/migrations/0003_index_unique_together.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-09-19 09:17
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_data', '0002_storechecksdata_tpchecksdata'),
]
operations = [
migrations.Alte... | 943 | Python | .py | 26 | 28 | 86 | 0.586623 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,604 | 0005_add_store_and_tp_data.py | translate_pootle/pootle/apps/pootle_data/migrations/0005_add_store_and_tp_data.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_data', '0004_remove_last_updated'),
]
operations = [
]
| 270 | Python | .py | 10 | 23 | 52 | 0.685039 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,605 | 0007_add_store_and_tp_data_again.py | translate_pootle/pootle/apps/pootle_data/migrations/0007_add_store_and_tp_data_again.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_data', '0006_add_cascade_deletes'),
]
operations = [
]
| 270 | Python | .py | 10 | 23 | 52 | 0.685039 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,606 | 0004_remove_last_updated.py | translate_pootle/pootle/apps/pootle_data/migrations/0004_remove_last_updated.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-09-19 09:23
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_data', '0003_index_unique_together'),
]
operations = [
migrations.RemoveField... | 527 | Python | .py | 18 | 22.222222 | 54 | 0.603175 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,607 | 0001_initial.py | translate_pootle/pootle/apps/pootle_data/migrations/0001_initial.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_statistics', '0004_fill_translated_wordcount'),
('pootle_translationproject', '0003_realpath_can_be_none'),
('pootle_s... | 3,575 | Python | .py | 51 | 57.078431 | 179 | 0.628019 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,608 | 0002_storechecksdata_tpchecksdata.py | translate_pootle/pootle/apps/pootle_data/migrations/0002_storechecksdata_tpchecksdata.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_translationproject', '0003_realpath_can_be_none'),
('pootle_store', '0016_blank_last_sync_revision'),
('pootle_data', ... | 1,728 | Python | .py | 37 | 35.189189 | 146 | 0.575919 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,609 | 0010_not_null_max_revision_in_store_and_tp_data.py | translate_pootle/pootle/apps/pootle_data/migrations/0010_not_null_max_revision_in_store_and_tp_data.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-12 12:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_data', '0009_remove_extra_indeces'),
]
operations = [
migrations.Alt... | 687 | Python | .py | 20 | 26.7 | 76 | 0.619335 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,610 | 0008_keep_data_on_delete.py | translate_pootle/pootle/apps/pootle_data/migrations/0008_keep_data_on_delete.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-17 19:13
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('pootle_data', '0007_add_store_and_tp_data_again'),
]
... | 1,506 | Python | .py | 31 | 39.935484 | 180 | 0.660544 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,611 | getters.py | translate_pootle/pootle/apps/pootle_checks/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 pootle.core.delegate import check_updat... | 885 | Python | .py | 22 | 38.227273 | 77 | 0.801876 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,612 | constants.py | translate_pootle/pootle/apps/pootle_checks/constants.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
from tr... | 3,130 | Python | .py | 82 | 33.731707 | 77 | 0.648124 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,613 | apps.py | translate_pootle/pootle/apps/pootle_checks/apps.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 importlib
from django.apps import Ap... | 568 | Python | .py | 15 | 34.6 | 77 | 0.751371 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,614 | receivers.py | translate_pootle/pootle/apps/pootle_checks/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.
from django.dispatch import receiver
from p... | 2,643 | Python | .py | 63 | 35.84127 | 77 | 0.701091 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,615 | utils.py | translate_pootle/pootle/apps/pootle_checks/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 logging
from translate.filters impor... | 18,998 | Python | .py | 463 | 30.963283 | 86 | 0.609083 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,616 | __init__.py | translate_pootle/pootle/apps/pootle_checks/__init__.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.
default_app_config = 'pootle_checks.apps.Poo... | 337 | Python | .py | 8 | 41 | 77 | 0.768293 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,617 | state.py | translate_pootle/pootle/core/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 logging
logger = logging.getLogger(... | 3,943 | Python | .py | 110 | 25.318182 | 77 | 0.493435 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,618 | signals.py | translate_pootle/pootle/core/signals.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.
from django.dispatch i... | 1,294 | Python | .py | 38 | 31.078947 | 77 | 0.714286 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,619 | proxy.py | translate_pootle/pootle/core/proxy.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.
class BaseProxy(object):
"""Base Proxy ... | 4,154 | Python | .py | 88 | 38.715909 | 84 | 0.51742 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,620 | serializers.py | translate_pootle/pootle/core/serializers.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.
class Serializer(object):
def __init__... | 681 | Python | .py | 21 | 27.619048 | 77 | 0.687117 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,621 | paginator.py | translate_pootle/pootle/core/paginator.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.core.paginator import Paginator
... | 704 | Python | .py | 19 | 32 | 77 | 0.680882 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,622 | sync.py | translate_pootle/pootle/core/sync.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 dirsync.syncer import Syncer as BaseSyn... | 2,519 | Python | .py | 62 | 30.596774 | 78 | 0.584357 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,623 | user.py | translate_pootle/pootle/core/user.py |
from django.contrib.auth import get_user_model
def get_system_user():
return get_user_model().objects.get_system_user()
def get_system_user_id():
return get_system_user().id
| 188 | Python | .py | 5 | 33.8 | 53 | 0.745763 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,624 | bulk.py | translate_pootle/pootle/core/bulk.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
from bulk_update.helper impo... | 6,621 | Python | .py | 167 | 28.281437 | 81 | 0.555867 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,625 | browser.py | translate_pootle/pootle/core/browser.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.i18n.gettext import ugettext_laz... | 4,213 | Python | .py | 139 | 23.978417 | 79 | 0.601136 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,626 | language.py | translate_pootle/pootle/core/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 django.utils.translation import to_loca... | 1,262 | Python | .py | 33 | 31.575758 | 77 | 0.62377 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,627 | response.py | translate_pootle/pootle/core/response.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
logger = logging.getLogger(... | 3,559 | Python | .py | 101 | 25.742574 | 81 | 0.549505 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,628 | dateparse.py | translate_pootle/pootle/core/dateparse.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.utils import dateparse as django... | 1,145 | Python | .py | 28 | 35.5 | 77 | 0.711712 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,629 | display.py | translate_pootle/pootle/core/display.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.utils.functional import cached_p... | 2,834 | Python | .py | 91 | 22.615385 | 77 | 0.565809 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,630 | cache.py | translate_pootle/pootle/core/cache.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.conf import settings
from djang... | 2,166 | Python | .py | 51 | 35.72549 | 79 | 0.65619 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,631 | batch.py | translate_pootle/pootle/core/batch.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 time
from bulk_update... | 3,618 | Python | .py | 103 | 23.592233 | 81 | 0.531848 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,632 | log.py | translate_pootle/pootle/core/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 logging
# Log actions
STORE_ADDED ... | 1,441 | Python | .py | 42 | 28.785714 | 77 | 0.616606 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,633 | initdb.py | translate_pootle/pootle/core/initdb.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
from django.contrib.auth imp... | 11,174 | Python | .py | 268 | 31.552239 | 82 | 0.600534 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,634 | paths.py | translate_pootle/pootle/core/paths.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 pathlib
import posixpath
from hashlib... | 2,057 | Python | .py | 61 | 24.639344 | 81 | 0.584887 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,635 | exceptions.py | translate_pootle/pootle/core/exceptions.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.
class Http400(Exception):
pass
class ... | 454 | Python | .py | 15 | 27.666667 | 77 | 0.772622 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,636 | contextmanagers.py | translate_pootle/pootle/core/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 threading
import types
from contextli... | 6,041 | Python | .py | 173 | 26.751445 | 77 | 0.614976 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,637 | primitives.py | translate_pootle/pootle/core/primitives.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.
class PrefixedDict(object):
def __init... | 756 | Python | .py | 20 | 32.1 | 77 | 0.617808 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,638 | helpers.py | translate_pootle/pootle/core/helpers.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.utils import dateformat
SIDEBA... | 2,236 | Python | .py | 49 | 37.367347 | 79 | 0.673422 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,639 | url_helpers.py | translate_pootle/pootle/core/url_helpers.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 re
import urllib
import url... | 4,854 | Python | .py | 122 | 32.377049 | 78 | 0.619595 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,640 | decorators.py | translate_pootle/pootle/core/decorators.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 time
from functools im... | 8,109 | Python | .py | 185 | 31.821622 | 79 | 0.581103 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,641 | forms.py | translate_pootle/pootle/core/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 base64
import json
import logging
imp... | 12,988 | Python | .py | 303 | 33.462046 | 78 | 0.610795 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,642 | delegate.py | translate_pootle/pootle/core/delegate.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.plugin.delegate import Get... | 1,782 | Python | .py | 64 | 26.734375 | 77 | 0.755698 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,643 | http.py | translate_pootle/pootle/core/http.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.http import HttpResponse
from .... | 981 | Python | .py | 25 | 35.44 | 77 | 0.744161 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,644 | mail.py | translate_pootle/pootle/core/mail.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.core.mail import EmailMultiAlter... | 1,219 | Python | .py | 24 | 38.333333 | 79 | 0.617845 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,645 | filters.py | translate_pootle/pootle/core/markup/filters.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.conf import settings
from django... | 6,324 | Python | .py | 147 | 32.959184 | 79 | 0.60652 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,646 | __init__.py | translate_pootle/pootle/core/markup/__init__.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 .fields import Markup, MarkupField
from... | 652 | Python | .py | 16 | 38.3125 | 77 | 0.744076 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,647 | widgets.py | translate_pootle/pootle/core/markup/widgets.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 import forms
__all__ = ('Marku... | 595 | Python | .py | 14 | 38.714286 | 77 | 0.724739 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,648 | fields.py | translate_pootle/pootle/core/markup/fields.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
from lxml.etree import Parse... | 4,034 | Python | .py | 97 | 32.309278 | 78 | 0.620991 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,649 | utils.py | translate_pootle/pootle/core/schema/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 django.db import connection
def get_c... | 517 | Python | .py | 13 | 36.076923 | 77 | 0.708583 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,650 | base.py | translate_pootle/pootle/core/schema/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.
from django.apps import apps
from django.con... | 2,256 | Python | .py | 53 | 33.886792 | 78 | 0.642596 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,651 | mysql.py | translate_pootle/pootle/core/schema/mysql.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.db import connection
def type_... | 3,146 | Python | .py | 73 | 33.273973 | 77 | 0.595285 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,652 | dump.py | translate_pootle/pootle/core/schema/dump.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... | 3,055 | Python | .py | 79 | 30.708861 | 77 | 0.619661 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,653 | __init__.py | translate_pootle/pootle/core/models/__init__.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 .revision import Revision
from .virtual... | 396 | Python | .py | 10 | 38.3 | 77 | 0.767624 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,654 | revision.py | translate_pootle/pootle/core/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.
from ..cache import get_cache
cache = get_... | 2,038 | Python | .py | 56 | 29.196429 | 77 | 0.641365 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,655 | virtualresource.py | translate_pootle/pootle/core/models/virtualresource.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 ..mixins import TreeItem
class Virtu... | 1,257 | Python | .py | 31 | 35.387097 | 77 | 0.699093 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,656 | core.py | translate_pootle/pootle/core/templatetags/core.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.
from django import tem... | 952 | Python | .py | 27 | 32.703704 | 77 | 0.755191 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,657 | __init__.py | translate_pootle/pootle/core/mixins/__init__.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 .treeitem import TreeItem, CachedTreeIt... | 398 | Python | .py | 9 | 42.888889 | 77 | 0.759067 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,658 | treeitem.py | translate_pootle/pootle/core/mixins/treeitem.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
__all__ = ('TreeItem', 'Cac... | 2,100 | Python | .py | 56 | 31.303571 | 77 | 0.663038 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,659 | browse.py | translate_pootle/pootle/core/views/browse.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
from django.utils.functional... | 7,056 | Python | .py | 185 | 28.172973 | 83 | 0.59269 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,660 | mixins.py | translate_pootle/pootle/core/views/mixins.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... | 4,155 | Python | .py | 93 | 37.215054 | 88 | 0.683478 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,661 | translate.py | translate_pootle/pootle/core/views/translate.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
from dj... | 3,030 | Python | .py | 74 | 32.175676 | 80 | 0.633367 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,662 | formtable.py | translate_pootle/pootle/core/views/formtable.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.template.loader import render_to... | 2,359 | Python | .py | 78 | 22.897436 | 77 | 0.610522 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,663 | api.py | translate_pootle/pootle/core/views/api.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 operator
from django.db.... | 10,533 | Python | .py | 239 | 33.543933 | 79 | 0.604242 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,664 | display.py | translate_pootle/pootle/core/views/display.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.utils.functional import cached_p... | 6,542 | Python | .py | 169 | 29.455621 | 84 | 0.58378 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,665 | __init__.py | translate_pootle/pootle/core/views/__init__.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.views.defaults import (permissio... | 1,063 | Python | .py | 23 | 40.869565 | 77 | 0.726214 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,666 | admin.py | translate_pootle/pootle/core/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.
from django.urls import reverse
from django.... | 1,139 | Python | .py | 31 | 31.096774 | 77 | 0.720803 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,667 | base.py | translate_pootle/pootle/core/views/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.
from collections import OrderedDict
from dj... | 4,271 | Python | .py | 121 | 27.917355 | 79 | 0.652923 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,668 | paths.py | translate_pootle/pootle/core/views/paths.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.utils.decorators import method_d... | 1,763 | Python | .py | 43 | 35.465116 | 78 | 0.718549 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,669 | panels.py | translate_pootle/pootle/core/views/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.
from django.template import loader
from djan... | 1,174 | Python | .py | 35 | 27.857143 | 77 | 0.678793 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,670 | widgets.py | translate_pootle/pootle/core/views/widgets.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.forms import CheckboxInput, Sele... | 3,599 | Python | .py | 79 | 34.746835 | 78 | 0.589158 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,671 | decorators.py | translate_pootle/pootle/core/views/decorators.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 functools
from django.core.exception... | 2,401 | Python | .py | 56 | 34.214286 | 79 | 0.66366 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,672 | db.py | translate_pootle/pootle/core/utils/db.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
from ... | 1,598 | Python | .py | 44 | 29.818182 | 83 | 0.634478 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,673 | templates.py | translate_pootle/pootle/core/utils/templates.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.template import Context, Templat... | 1,329 | Python | .py | 32 | 36.03125 | 77 | 0.720714 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,674 | ptempfile.py | translate_pootle/pootle/core/utils/ptempfile.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 tempfile
from django.conf ... | 723 | Python | .py | 20 | 32.75 | 78 | 0.722461 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,675 | timezone.py | translate_pootle/pootle/core/utils/timezone.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 datetime
from django.conf import set... | 2,252 | Python | .py | 48 | 42.145833 | 80 | 0.713763 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,676 | html.py | translate_pootle/pootle/core/utils/html.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 lxml.html import rewrite_links as lxml_... | 786 | Python | .py | 17 | 41.588235 | 77 | 0.699346 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,677 | deprecation.py | translate_pootle/pootle/core/utils/deprecation.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.conf import settings
from django... | 3,913 | Python | .py | 85 | 36.741176 | 79 | 0.561812 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,678 | redis_rq.py | translate_pootle/pootle/core/utils/redis_rq.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 redis.connection import ConnectionError... | 997 | Python | .py | 29 | 29.793103 | 77 | 0.703125 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,679 | stats.py | translate_pootle/pootle/core/utils/stats.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.i18n.gettext import ugettext_laz... | 989 | Python | .py | 24 | 36.208333 | 77 | 0.685475 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,680 | version.py | translate_pootle/pootle/core/utils/version.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.
# Some functions are taken from or modelled ... | 7,189 | Python | .py | 206 | 29.242718 | 79 | 0.6304 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,681 | json.py | translate_pootle/pootle/core/utils/json.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... | 1,214 | Python | .py | 31 | 35.064516 | 82 | 0.745517 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,682 | dateformat.py | translate_pootle/pootle/core/utils/dateformat.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.utils import timezone
from djan... | 597 | Python | .py | 15 | 37 | 77 | 0.763478 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,683 | multistring.py | translate_pootle/pootle/core/utils/multistring.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 translate.misc.multistring import multi... | 1,867 | Python | .py | 49 | 32.714286 | 79 | 0.687743 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,684 | aggregate.py | translate_pootle/pootle/core/utils/aggregate.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.
"""Wrappers around Django 1.1+ aggregate que... | 542 | Python | .py | 14 | 36 | 77 | 0.744275 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,685 | subcommands.py | translate_pootle/pootle/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.
from collections import OrderedDict
from dj... | 617 | Python | .py | 15 | 38.6 | 77 | 0.796639 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,686 | results.py | translate_pootle/pootle/core/plugin/results.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
class ... | 1,798 | Python | .py | 55 | 24.436364 | 77 | 0.593387 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,687 | __init__.py | translate_pootle/pootle/core/plugin/__init__.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 delegate import getter, provider
__al... | 349 | Python | .py | 9 | 37.444444 | 77 | 0.744807 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,688 | exceptions.py | translate_pootle/pootle/core/plugin/exceptions.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.
class StopProviding(Exception):
def __... | 400 | Python | .py | 10 | 37.5 | 77 | 0.72093 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,689 | delegate.py | translate_pootle/pootle/core/plugin/delegate.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.dispatch import Signal
from djan... | 5,114 | Python | .py | 123 | 30.154472 | 79 | 0.584758 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,690 | broker.py | translate_pootle/pootle/core/search/broker.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 importlib
import logging
from . impo... | 2,829 | Python | .py | 62 | 31 | 79 | 0.527042 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,691 | __init__.py | translate_pootle/pootle/core/search/__init__.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 .base import SearchBackend
from .broker... | 454 | Python | .py | 11 | 40 | 77 | 0.779545 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,692 | base.py | translate_pootle/pootle/core/search/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.
from django.conf import settings
SERVER_SE... | 1,444 | Python | .py | 36 | 32.944444 | 78 | 0.644907 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,693 | __init__.py | translate_pootle/pootle/core/search/backends/__init__.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 .elasticsearch import ElasticSearchBack... | 363 | Python | .py | 9 | 39 | 77 | 0.763533 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,694 | elasticsearch.py | translate_pootle/pootle/core/search/backends/elasticsearch.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... | 5,682 | Python | .py | 141 | 27.858156 | 82 | 0.529134 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,695 | dates.py | translate_pootle/pootle/i18n/dates.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
from django.c... | 712 | Python | .py | 17 | 38.705882 | 78 | 0.763768 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,696 | formatter.py | translate_pootle/pootle/i18n/formatter.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... | 1,216 | Python | .py | 32 | 32.9375 | 77 | 0.70844 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,697 | gettext.py | translate_pootle/pootle/i18n/gettext.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 translate.lang import data as langdata
... | 2,857 | Python | .py | 65 | 38.061538 | 115 | 0.652943 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,698 | override.py | translate_pootle/pootle/i18n/override.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.
"""Overrides and support functions for arbit... | 4,107 | Python | .py | 96 | 36.760417 | 77 | 0.704996 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,699 | 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 | .tac | 55 | 42.654545 | 77 | 0.73572 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |