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,400 | adapter.py | translate_pootle/pootle/apps/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 logging
from django.conf import sett... | 2,314 | Python | .py | 54 | 32.592593 | 78 | 0.619875 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,401 | social_adapter.py | translate_pootle/pootle/apps/accounts/social_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 traceback
from django.shortcuts impo... | 3,758 | Python | .py | 76 | 39.973684 | 79 | 0.664484 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,402 | forms.py | translate_pootle/pootle/apps/accounts/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 logging
from django import forms
fr... | 1,969 | Python | .py | 43 | 38.534884 | 78 | 0.683438 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,403 | views.py | translate_pootle/pootle/apps/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.
from django.shortcuts import redirect
from d... | 1,759 | Python | .py | 40 | 36.3 | 77 | 0.687939 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,404 | managers.py | translate_pootle/pootle/apps/accounts/managers.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.models import BaseU... | 3,734 | Python | .py | 81 | 37.148148 | 79 | 0.652785 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,405 | 0003_remove_pootleprofile_id.py | translate_pootle/pootle/apps/accounts/migrations/0003_remove_pootleprofile_id.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
def fix_accounts_alt_src_langs(apps, schema_editor):
"""Remove pootleprofile_id column from accounts_user_alt_src_langs
After migration from 2.5.x the pootleprofile_id column is left on
the m2m table account... | 2,823 | Python | .py | 69 | 30.681159 | 71 | 0.575603 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,406 | 0006_unicode_usernames_are_valid.py | translate_pootle/pootle/apps/accounts/migrations/0006_unicode_usernames_are_valid.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-23 16:19
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
import re
class Migration(migrations.Migration):
dependencies = [
('accounts', '0005_user_indeces'),
]
operatio... | 735 | Python | .py | 17 | 37.470588 | 299 | 0.660589 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,407 | 0002_user_alt_src_langs.py | translate_pootle/pootle/apps/accounts/migrations/0002_user_alt_src_langs.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.db.utils import OperationalError
class AddFieldIfNotExists(migrations.AddField):
def database_forwards(self, app_label, schema_editor, from_state, to_state):
try:
super(AddFie... | 937 | Python | .py | 24 | 31.208333 | 144 | 0.658564 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,408 | 0009_remove_currency_and_hourly_rate_fields.py | translate_pootle/pootle/apps/accounts/migrations/0009_remove_currency_and_hourly_rate_fields.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-07 15:08
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0008_add_system_user'),
]
operations = [
migrations.RemoveField(
... | 497 | Python | .py | 18 | 20.555556 | 48 | 0.586498 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,409 | 0008_add_system_user.py | translate_pootle/pootle/apps/accounts/migrations/0008_add_system_user.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-02 19:02
from __future__ import unicode_literals
from django.db import migrations
def add_system_user(apps, schema_editor):
User = apps.get_model("accounts.User")
sysuser = User.objects.filter(username="system")
if not sysuser.exists():
... | 631 | Python | .py | 19 | 27.210526 | 52 | 0.654545 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,410 | 0001_initial.py | translate_pootle/pootle/apps/accounts/migrations/0001_initial.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.utils.timezone
import re
import django.core.validators
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',... | 2,896 | Python | .py | 39 | 62.25641 | 307 | 0.631837 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,411 | 0004_allow_null_last_login.py | translate_pootle/pootle/apps/accounts/migrations/0004_allow_null_last_login.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_remove_pootleprofile_id'),
]
operations = [
migrations.AlterField(
model_name='user',
... | 449 | Python | .py | 14 | 25.285714 | 89 | 0.627907 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,412 | 0011_remove_user_rates.py | translate_pootle/pootle/apps/accounts/migrations/0011_remove_user_rates.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-03 20:53
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0010_set_username_unique_error_message'),
]
operations = [
migrations.R... | 511 | Python | .py | 18 | 21.333333 | 63 | 0.594262 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,413 | 0007_update_system_username.py | translate_pootle/pootle/apps/accounts/migrations/0007_update_system_username.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-21 14:42
from __future__ import unicode_literals
from django.db import migrations
def update_system_username(apps, schema_editor):
users = apps.get_model("accounts.User").objects
sysuser = users.filter(username="system").first()
if sysuser:
... | 586 | Python | .py | 17 | 29.588235 | 57 | 0.687389 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,414 | 0010_set_username_unique_error_message.py | translate_pootle/pootle/apps/accounts/migrations/0010_set_username_unique_error_message.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-03 10:47
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
import re
class Migration(migrations.Migration):
dependencies = [
('accounts', '0009_remove_currency_and_hourly_rate_fie... | 833 | Python | .py | 17 | 43.235294 | 371 | 0.673243 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,415 | 0005_user_indeces.py | translate_pootle/pootle/apps/accounts/migrations/0005_user_indeces.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2016-10-23 14:27
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0004_allow_null_last_login'),
]
operations = [
migrations.Alter... | 913 | Python | .py | 20 | 38 | 205 | 0.666667 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,416 | find_duplicate_emails.py | translate_pootle/pootle/apps/accounts/management/commands/find_duplicate_emails.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... | 1,568 | Python | .py | 34 | 34.176471 | 78 | 0.57536 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,417 | __init__.py | translate_pootle/pootle/apps/accounts/management/commands/__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.contrib.auth import get_user_mod... | 931 | Python | .py | 25 | 31.28 | 77 | 0.683742 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,418 | merge_user.py | translate_pootle/pootle/apps/accounts/management/commands/merge_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 . import UserCommand
from ... import ut... | 1,334 | Python | .py | 37 | 27.378378 | 82 | 0.589922 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,419 | purge_user.py | translate_pootle/pootle/apps/accounts/management/commands/purge_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 . import UserCommand
class Command(Us... | 503 | Python | .py | 13 | 35.230769 | 77 | 0.720165 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,420 | update_user_email.py | translate_pootle/pootle/apps/accounts/management/commands/update_user_email.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... | 1,205 | Python | .py | 32 | 28.875 | 77 | 0.618557 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,421 | verify_user.py | translate_pootle/pootle/apps/accounts/management/commands/verify_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... | 1,844 | Python | .py | 45 | 30.577778 | 77 | 0.584031 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,422 | urls.py | translate_pootle/pootle/apps/contact/urls.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.urls import url
from .view... | 686 | Python | .py | 20 | 30.1 | 77 | 0.699396 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,423 | forms.py | translate_pootle/pootle/apps/contact/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 django import forms
from django.conf im... | 4,630 | Python | .py | 103 | 36.067961 | 78 | 0.62739 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,424 | views.py | translate_pootle/pootle/apps/contact/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.
from django.template.loader import render_to... | 3,854 | Python | .py | 95 | 31.768421 | 80 | 0.632566 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,425 | models.py | translate_pootle/pootle/apps/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.
from collections import OrderedDict
from tr... | 6,773 | Python | .py | 155 | 34.354839 | 79 | 0.60793 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,426 | getters.py | translate_pootle/pootle/apps/pootle_language/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 language_co... | 803 | Python | .py | 22 | 34.5 | 77 | 0.793774 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,427 | teams.py | translate_pootle/pootle/apps/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.
from django.contrib.auth import get_user_mod... | 3,975 | Python | .py | 97 | 32.701031 | 84 | 0.646525 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,428 | urls.py | translate_pootle/pootle/apps/pootle_language/urls.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.urls import url
from .view... | 1,392 | Python | .py | 32 | 38.0625 | 79 | 0.688331 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,429 | apps.py | translate_pootle/pootle/apps/pootle_language/apps.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle language. 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 A... | 601 | Python | .py | 16 | 34.1875 | 78 | 0.746114 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,430 | receivers.py | translate_pootle/pootle/apps/pootle_language/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.db.models.signals import post_sa... | 1,050 | Python | .py | 25 | 38.96 | 77 | 0.760314 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,431 | utils.py | translate_pootle/pootle/apps/pootle_language/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 translate.lang.data import get_language... | 2,658 | Python | .py | 70 | 30.071429 | 77 | 0.663817 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,432 | __init__.py | translate_pootle/pootle/apps/pootle_language/__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_language.apps.P... | 341 | Python | .py | 8 | 41.5 | 77 | 0.771084 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,433 | forms.py | translate_pootle/pootle/apps/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 django import forms
from django.contrib... | 9,477 | Python | .py | 231 | 31.367965 | 84 | 0.606709 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,434 | views.py | translate_pootle/pootle/apps/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.
from django.contrib import messages
from dja... | 11,376 | Python | .py | 284 | 31.450704 | 84 | 0.644404 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,435 | 0001_initial.py | translate_pootle/pootle/apps/pootle_language/migrations/0001_initial.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import pootle.core.mixins.treeitem
class Migration(migrations.Migration):
dependencies = [
('pootle_app', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='... | 2,056 | Python | .py | 27 | 65.481481 | 346 | 0.652668 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,436 | 0003_ensure_unique_special_chars.py | translate_pootle/pootle/apps/pootle_language/migrations/0003_ensure_unique_special_chars.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from django.db import migrations, models
logger = logging.getLogger(__name__)
def remove_duplicate_special_characters(apps, schema_editor):
Language = apps.get_model("pootle_language", "Language")
for language in Language.objec... | 992 | Python | .py | 24 | 34.416667 | 80 | 0.685804 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,437 | 0002_case_insensitive_schema.py | translate_pootle/pootle/apps/pootle_language/migrations/0002_case_insensitive_schema.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from pootle.core.utils.db import set_mysql_collation_for_column
def make_lang_codes_ci(apps, schema_editor):
cursor = schema_editor.connection.cursor()
set_mysql_collation_for_column(
apps,
... | 623 | Python | .py | 20 | 25.35 | 63 | 0.662185 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,438 | models.py | translate_pootle/pootle/apps/staticpages/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.
from django.conf import settings
from django... | 5,004 | Python | .py | 129 | 31.310078 | 78 | 0.63766 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,439 | urls.py | translate_pootle/pootle/apps/staticpages/urls.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.urls import include, url
f... | 1,441 | Python | .py | 44 | 26.886364 | 77 | 0.619322 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,440 | forms.py | translate_pootle/pootle/apps/staticpages/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 django import forms
from django.urls im... | 2,435 | Python | .py | 54 | 33.592593 | 79 | 0.574989 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,441 | views.py | translate_pootle/pootle/apps/staticpages/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.
from django.core.exceptions import ObjectDoe... | 7,513 | Python | .py | 174 | 35.114943 | 77 | 0.655675 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,442 | managers.py | translate_pootle/pootle/apps/staticpages/managers.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 Manager
class... | 1,735 | Python | .py | 38 | 34.157895 | 77 | 0.599763 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,443 | staticpages.py | translate_pootle/pootle/apps/staticpages/templatetags/staticpages.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 template
from django.urls... | 2,412 | Python | .py | 61 | 32.540984 | 78 | 0.650732 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,444 | 0003_remove_extra_indeces.py | translate_pootle/pootle/apps/staticpages/migrations/0003_remove_extra_indeces.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-06-02 16:56
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('staticpages', '0002_change... | 606 | Python | .py | 17 | 29.882353 | 126 | 0.679795 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,445 | 0002_change_url_field_help_text.py | translate_pootle/pootle/apps/staticpages/migrations/0002_change_url_field_help_text.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('staticpages', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='legalpage',
name=... | 789 | Python | .py | 21 | 29.095238 | 135 | 0.614679 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,446 | 0001_initial.py | translate_pootle/pootle/apps/staticpages/migrations/0001_initial.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import pootle.core.markup.fields
import django.utils.timezone
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_US... | 3,311 | Python | .py | 60 | 43.3 | 160 | 0.606593 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,447 | models.py | translate_pootle/pootle/apps/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.
from django.conf import settings
from django... | 1,370 | Python | .py | 40 | 28.225 | 77 | 0.682612 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,448 | getters.py | translate_pootle/pootle/apps/pootle_score/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 django.contrib.auth import get_user_mod... | 2,095 | Python | .py | 56 | 34.803571 | 77 | 0.794834 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,449 | abstracts.py | translate_pootle/pootle/apps/pootle_score/abstracts.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... | 1,536 | Python | .py | 53 | 21.037736 | 78 | 0.593771 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,450 | apps.py | translate_pootle/pootle/apps/pootle_score/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... | 643 | Python | .py | 17 | 34.117647 | 77 | 0.737097 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,451 | display.py | translate_pootle/pootle/apps/pootle_score/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 accounts.proxy import DisplayUser
from ... | 1,312 | Python | .py | 32 | 31.3125 | 77 | 0.598901 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,452 | receivers.py | translate_pootle/pootle/apps/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.
from django.contrib.auth import get_user_mod... | 3,586 | Python | .py | 91 | 33.934066 | 77 | 0.708525 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,453 | utils.py | translate_pootle/pootle/apps/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 date, datetime, timedel... | 6,475 | Python | .py | 175 | 28.434286 | 77 | 0.62192 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,454 | __init__.py | translate_pootle/pootle/apps/pootle_score/__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_score.apps.Poot... | 335 | Python | .py | 8 | 40.75 | 77 | 0.766871 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,455 | updater.py | translate_pootle/pootle/apps/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 django.... | 14,302 | Python | .py | 360 | 28.519444 | 82 | 0.568642 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,456 | providers.py | translate_pootle/pootle/apps/pootle_score/providers.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 event_score... | 849 | Python | .py | 20 | 38.65 | 77 | 0.780606 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,457 | scores.py | translate_pootle/pootle/apps/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 django.conf import settings
from pootl... | 3,304 | Python | .py | 94 | 28.095745 | 77 | 0.690514 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,458 | 0003_add_pootle_user_store_score.py | translate_pootle/pootle/apps/pootle_score/migrations/0003_add_pootle_user_store_score.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-14 19:45
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0045_remov... | 1,645 | Python | .py | 35 | 36.828571 | 147 | 0.609969 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,459 | 0005_remove_extra_indeces.py | translate_pootle/pootle/apps/pootle_score/migrations/0005_remove_extra_indeces.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-06-02 16:08
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_score', '0004_zero_default_score'),
]
operations = [
migrations.Alte... | 592 | Python | .py | 20 | 21.95 | 52 | 0.590829 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,460 | 0002_set_user_scores.py | translate_pootle/pootle/apps/pootle_score/migrations/0002_set_user_scores.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-02 07:04
from __future__ import unicode_literals
from django.db import migrations
from django.db.models import functions, Case, IntegerField, Sum, When
class TranslationActionCodes(object):
NEW = 0 # 'TA' unit translated
EDITED = 1 # 'TE' unit... | 3,384 | Python | .py | 75 | 32.146667 | 78 | 0.572598 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,461 | 0001_initial.py | translate_pootle/pootle/apps/pootle_score/migrations/0001_initial.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-02 15:30
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('pootle... | 1,647 | Python | .py | 35 | 36.971429 | 166 | 0.618929 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,462 | 0004_zero_default_score.py | translate_pootle/pootle/apps/pootle_score/migrations/0004_zero_default_score.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-17 17:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_score', '0003_add_pootle_user_store_score'),
]
operations = [
migrat... | 653 | Python | .py | 20 | 25 | 62 | 0.611465 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,463 | signals.py | translate_pootle/pootle/apps/pootle_translationproject/signals.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
tp_init... | 500 | Python | .py | 14 | 33.357143 | 77 | 0.73499 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,464 | models.py | translate_pootle/pootle/apps/pootle_translationproject/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 logging
import posixpath
from pathlib... | 10,473 | Python | .py | 237 | 34.540084 | 79 | 0.630571 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,465 | getters.py | translate_pootle/pootle/apps/pootle_translationproject/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 paths, tp_t... | 658 | Python | .py | 18 | 34.777778 | 77 | 0.787066 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,466 | urls.py | translate_pootle/pootle/apps/pootle_translationproject/urls.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.urls import url
from .view... | 1,568 | Python | .py | 40 | 33.325 | 77 | 0.589744 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,467 | apps.py | translate_pootle/pootle/apps/pootle_translationproject/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.
"""
Pootle App Config
See https://docs.djang... | 720 | Python | .py | 20 | 33.1 | 77 | 0.760807 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,468 | receivers.py | translate_pootle/pootle/apps/pootle_translationproject/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.contrib.auth import get_user_mod... | 2,125 | Python | .py | 45 | 42.688889 | 77 | 0.735266 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,469 | utils.py | translate_pootle/pootle/apps/pootle_translationproject/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.contrib.auth import get_user_mod... | 10,011 | Python | .py | 248 | 29.939516 | 77 | 0.599692 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,470 | __init__.py | translate_pootle/pootle/apps/pootle_translationproject/__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_translationproj... | 345 | Python | .py | 8 | 42 | 77 | 0.77381 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,471 | contextmanagers.py | translate_pootle/pootle/apps/pootle_translationproject/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.
from contextlib import contextmanager
from ... | 5,851 | Python | .py | 148 | 28.351351 | 80 | 0.5784 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,472 | views.py | translate_pootle/pootle/apps/pootle_translationproject/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 functools
from django.conf import se... | 12,911 | Python | .py | 332 | 28.542169 | 79 | 0.600384 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,473 | 0005_remove_empty_translationprojects.py | translate_pootle/pootle/apps/pootle_translationproject/migrations/0005_remove_empty_translationprojects.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2016-11-08 19:40
from __future__ import unicode_literals
from django.db import migrations
def drop_empty_translationprojects(apps, schema_editor):
"""Drop TPs with no directories."""
Directory = apps.get_model("pootle_app.Directory")
TP = apps.get_m... | 832 | Python | .py | 20 | 36 | 77 | 0.687811 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,474 | 0006_relink_or_drop_orphan_translationprojects.py | translate_pootle/pootle/apps/pootle_translationproject/migrations/0006_relink_or_drop_orphan_translationprojects.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2016-11-08 21:27
from __future__ import unicode_literals
from django.db import migrations
def relink_or_drop_orphan_translationprojects(apps, schema_editor):
"""Relink or drop TPs with no project."""
Project = apps.get_model("pootle_project.Project")
... | 1,197 | Python | .py | 26 | 37 | 79 | 0.640275 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,475 | 0002_remove_translationproject_disabled.py | translate_pootle/pootle/apps/pootle_translationproject/migrations/0002_remove_translationproject_disabled.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.db.utils import OperationalError
from pootle_store.constants import OBSOLETE
def make_tp_directories_obsolete(apps, schema_editor):
TranslationProject = apps.get_model("pootle_translationproject"... | 2,198 | Python | .py | 52 | 32.980769 | 80 | 0.653052 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,476 | 0004_add_reverse_tp_idx.py | translate_pootle/pootle/apps/pootle_translationproject/migrations/0004_add_reverse_tp_idx.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2016-11-05 10:35
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_translationproject', '0003_realpath_can_be_none'),
]
operations = [
migratio... | 485 | Python | .py | 14 | 28.714286 | 84 | 0.648069 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,477 | 0007_set_tp_base_manager_name.py | translate_pootle/pootle/apps/pootle_translationproject/migrations/0007_set_tp_base_manager_name.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-20 07:49
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_translationproject', '0006_relink_or_drop_orphan_translationprojects'),
]
operations... | 473 | Python | .py | 14 | 27.857143 | 88 | 0.665198 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,478 | 0008_remove_extra_indeces.py | translate_pootle/pootle/apps/pootle_translationproject/migrations/0008_remove_extra_indeces.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-06-02 16:23
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('pootle_translationproject', '0007_set_tp_base_manager_name'... | 600 | Python | .py | 16 | 31.4375 | 128 | 0.680484 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,479 | 0001_initial.py | translate_pootle/pootle/apps/pootle_translationproject/migrations/0001_initial.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import pootle.core.mixins.treeitem
class Migration(migrations.Migration):
dependencies = [
('pootle_app', '0001_initial'),
('pootle_project', '0001_initial'),
('pootle_language', '000... | 1,603 | Python | .py | 33 | 37.969697 | 121 | 0.61278 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,480 | 0009_remove_translationproject_real_path.py | translate_pootle/pootle/apps/pootle_translationproject/migrations/0009_remove_translationproject_real_path.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-08-28 07:53
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_translationproject', '0008_remove_extra_indeces'),
]
operations = [
migratio... | 428 | Python | .py | 14 | 24.642857 | 67 | 0.647922 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,481 | 0003_realpath_can_be_none.py | translate_pootle/pootle/apps/pootle_translationproject/migrations/0003_realpath_can_be_none.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_translationproject', '0002_remove_translationproject_disabled'),
]
operations = [
migrations.AlterField(
... | 479 | Python | .py | 14 | 27.428571 | 81 | 0.658696 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,482 | signals.py | translate_pootle/pootle/apps/pootle_comment/signals.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
comment... | 386 | Python | .py | 9 | 41.555556 | 77 | 0.76738 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,483 | models.py | translate_pootle/pootle/apps/pootle_comment/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.
from django_comments.abstracts import Commen... | 437 | Python | .py | 10 | 42 | 77 | 0.778302 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,484 | apps.py | translate_pootle/pootle/apps/pootle_comment/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.
from django.apps import AppConfig
class Po... | 416 | Python | .py | 11 | 35.727273 | 77 | 0.763092 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,485 | __init__.py | translate_pootle/pootle/apps/pootle_comment/__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_comment.apps.Po... | 423 | Python | .py | 11 | 36.454545 | 77 | 0.767726 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,486 | exceptions.py | translate_pootle/pootle/apps/pootle_comment/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.
from django.forms import ValidationError
c... | 368 | Python | .py | 10 | 35.1 | 77 | 0.780282 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,487 | forms.py | translate_pootle/pootle/apps/pootle_comment/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 time
from datetime import datetime
f... | 2,867 | Python | .py | 74 | 31.662162 | 80 | 0.674847 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,488 | delegate.py | translate_pootle/pootle/apps/pootle_comment/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 Gett... | 402 | Python | .py | 9 | 43.333333 | 77 | 0.766667 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,489 | 0001_initial.py | translate_pootle/pootle/apps/pootle_comment/migrations/0001_initial.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
migrations.swappable_dependency(settings.AUTH_USER_... | 2,477 | Python | .py | 37 | 54.891892 | 224 | 0.628747 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,490 | 0002_use_abstract_module.py | translate_pootle/pootle/apps/pootle_comment/migrations/0002_use_abstract_module.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('pootle_comment', '0001_initial'),
]
operations = [
migrati... | 601 | Python | .py | 16 | 31.5 | 188 | 0.677586 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,491 | models.py | translate_pootle/pootle/apps/pootle_revision/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.
from .abstracts import AbstractRevision
cl... | 429 | Python | .py | 11 | 36.545455 | 77 | 0.763285 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,492 | getters.py | translate_pootle/pootle/apps/pootle_revision/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 crud, revis... | 2,222 | Python | .py | 55 | 37.763636 | 77 | 0.814573 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,493 | abstracts.py | translate_pootle/pootle/apps/pootle_revision/abstracts.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.contenttypes.fields impo... | 1,433 | Python | .py | 44 | 26.022727 | 77 | 0.646931 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,494 | apps.py | translate_pootle/pootle/apps/pootle_revision/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... | 578 | Python | .py | 15 | 35.266667 | 77 | 0.755835 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,495 | receivers.py | translate_pootle/pootle/apps/pootle_revision/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.db.models.signals import post_sa... | 2,894 | Python | .py | 75 | 33.44 | 77 | 0.713877 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,496 | utils.py | translate_pootle/pootle/apps/pootle_revision/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 uuid
from django.contrib.contenttype... | 7,623 | Python | .py | 201 | 27.975124 | 80 | 0.602117 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,497 | __init__.py | translate_pootle/pootle/apps/pootle_revision/__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_revision.apps.P... | 341 | Python | .py | 8 | 41.5 | 77 | 0.771084 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,498 | 0001_initial.py | translate_pootle/pootle/apps/pootle_revision/migrations/0001_initial.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2016-10-22 05:26
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('contenttypes', '0002_remove_content_typ... | 1,632 | Python | .py | 35 | 36.542857 | 226 | 0.599623 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,499 | models.py | translate_pootle/pootle/apps/virtualfolder/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.
from django.core.exceptions import Validatio... | 3,012 | Python | .py | 83 | 29.313253 | 78 | 0.657182 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |