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,100 | __init__.py | translate_pootle/pootle/__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 pootle.core.utils.version import get_ve... | 400 | Python | .py | 10 | 38.7 | 77 | 0.775194 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,101 | phaselist2vfolder.py | translate_pootle/pootle/tools/phaselist2vfolder.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import json
# Config... | 1,775 | Python | .py | 64 | 21.015625 | 77 | 0.553204 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,102 | auth.py | translate_pootle/pootle/middleware/auth.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.
"""
Custom Pootle authentication middleware ... | 1,562 | Python | .py | 32 | 43.4375 | 80 | 0.740473 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,103 | captcha.py | translate_pootle/pootle/middleware/captcha.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 re
from django.conf import settings
... | 3,177 | Python | .py | 83 | 28.180723 | 77 | 0.595966 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,104 | cache.py | translate_pootle/pootle/middleware/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.utils.cache import add_never_cac... | 700 | Python | .py | 15 | 42.933333 | 77 | 0.760294 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,105 | baseurl.py | translate_pootle/pootle/middleware/baseurl.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,431 | Python | .py | 30 | 38 | 78 | 0.639627 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,106 | errorpages.py | translate_pootle/pootle/middleware/errorpages.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 print_function
impor... | 4,628 | Python | .py | 109 | 33.055046 | 79 | 0.632562 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,107 | urls.py | translate_pootle/pootle/apps/import_export/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... | 594 | Python | .py | 17 | 31.352941 | 78 | 0.677138 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,108 | apps.py | translate_pootle/pootle/apps/import_export/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... | 524 | Python | .py | 14 | 34.571429 | 77 | 0.759921 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,109 | utils.py | translate_pootle/pootle/apps/import_export/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
import os
from io import Byte... | 6,795 | Python | .py | 153 | 32.823529 | 79 | 0.603391 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,110 | __init__.py | translate_pootle/pootle/apps/import_export/__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 = 'import_export.apps.Poo... | 343 | Python | .py | 8 | 41.75 | 77 | 0.772455 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,111 | providers.py | translate_pootle/pootle/apps/import_export/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 context_dat... | 637 | Python | .py | 15 | 40.666667 | 77 | 0.789644 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,112 | exceptions.py | translate_pootle/pootle/apps/import_export/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 UnsupportedFiletypeError(ValueError):... | 481 | Python | .py | 15 | 29.466667 | 77 | 0.786026 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,113 | forms.py | translate_pootle/pootle/apps/import_export/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
class UploadForm(... | 873 | Python | .py | 20 | 38.45 | 77 | 0.669022 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,114 | views.py | translate_pootle/pootle/apps/import_export/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 logging
import os
from io import Byte... | 5,287 | Python | .py | 133 | 29.06015 | 82 | 0.583902 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,115 | export.py | translate_pootle/pootle/apps/import_export/management/commands/export.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import os
os.environ["DJANGO_SETTINGS_MODULE... | 4,788 | Python | .py | 109 | 33.669725 | 78 | 0.610264 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,116 | import.py | translate_pootle/pootle/apps/import_export/management/commands/import.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import datetime
import os
os.environ['DJANGO... | 2,624 | Python | .py | 64 | 28.09375 | 77 | 0.533935 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,117 | getters.py | translate_pootle/pootle/apps/pootle_log/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... | 1,089 | Python | .py | 28 | 36.571429 | 77 | 0.773855 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,118 | apps.py | translate_pootle/pootle/apps/pootle_log/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... | 519 | Python | .py | 15 | 31.6 | 77 | 0.736948 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,119 | utils.py | translate_pootle/pootle/apps/pootle_log/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... | 13,235 | Python | .py | 336 | 27.571429 | 81 | 0.559579 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,120 | __init__.py | translate_pootle/pootle/apps/pootle_log/__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_log.apps.Pootle... | 331 | Python | .py | 8 | 40.25 | 77 | 0.763975 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,121 | models.py | translate_pootle/pootle/apps/pootle_project/models.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import os
import shutil
from collections imp... | 18,947 | Python | .py | 413 | 36.377724 | 82 | 0.635362 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,122 | getters.py | translate_pootle/pootle/apps/pootle_project/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 lang_mapper... | 687 | Python | .py | 18 | 36.388889 | 77 | 0.793363 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,123 | lang_mapper.py | translate_pootle/pootle/apps/pootle_project/lang_mapper.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import logging
from collections import Order... | 4,467 | Python | .py | 108 | 33.046296 | 81 | 0.652896 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,124 | urls.py | translate_pootle/pootle/apps/pootle_project/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,527 | Python | .py | 40 | 32.35 | 78 | 0.641407 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,125 | apps.py | translate_pootle/pootle/apps/pootle_project/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... | 595 | Python | .py | 16 | 33.8125 | 77 | 0.743455 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,126 | receivers.py | translate_pootle/pootle/apps/pootle_project/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... | 699 | Python | .py | 17 | 37.058824 | 77 | 0.728614 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,127 | utils.py | translate_pootle/pootle/apps/pootle_project/utils.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from pootle.core.paths import Paths
from poo... | 626 | Python | .py | 17 | 33.411765 | 77 | 0.753311 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,128 | __init__.py | translate_pootle/pootle/apps/pootle_project/__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_project.apps.Po... | 339 | Python | .py | 8 | 41.25 | 77 | 0.769697 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,129 | forms.py | translate_pootle/pootle/apps/pootle_project/forms.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from django import forms
from django.db impo... | 6,315 | Python | .py | 137 | 35.277372 | 79 | 0.611201 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,130 | views.py | translate_pootle/pootle/apps/pootle_project/views.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import posixpath
from django.contrib import... | 13,400 | Python | .py | 356 | 27.688202 | 82 | 0.602929 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,131 | 0017_remove_project_treestyle.py | translate_pootle/pootle/apps/pootle_project/migrations/0017_remove_project_treestyle.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-08-28 06:27
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_project', '0016_change_treestyle_choices_label'),
]
operations = [
migration... | 416 | Python | .py | 14 | 23.785714 | 66 | 0.63728 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,132 | 0013_rename_treestyle_choice_to_pootle_fs.py | translate_pootle/pootle/apps/pootle_project/migrations/0013_rename_treestyle_choice_to_pootle_fs.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2016-10-06 14:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_project', '0012_set_pootle_fs_treestyle'),
]
operations = [
migratio... | 765 | Python | .py | 15 | 44.6 | 348 | 0.661745 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,133 | 0015_rename_fs_treestyle.py | translate_pootle/pootle/apps/pootle_project/migrations/0015_rename_fs_treestyle.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-13 11:07
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_project', '0014_just_rename_label_for_choice'),
]
operations = [
mig... | 785 | Python | .py | 15 | 45.933333 | 363 | 0.665359 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,134 | 0012_set_pootle_fs_treestyle.py | translate_pootle/pootle/apps/pootle_project/migrations/0012_set_pootle_fs_treestyle.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2016-10-06 13:51
from __future__ import unicode_literals
from django.db import migrations
def set_pootle_fs_style(apps, schema_editor):
Project = apps.get_model('pootle_project', 'Project')
for project in Project.objects.filter(treestyle='none'):
... | 588 | Python | .py | 16 | 31.875 | 65 | 0.690813 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,135 | 0009_set_code_as_fullname_when_no_fullname.py | translate_pootle/pootle/apps/pootle_project/migrations/0009_set_code_as_fullname_when_no_fullname.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
def set_all_fullnames(apps, schema_editor):
Project = apps.get_model("pootle_project", "Project")
for project in Project.objects.filter(fullname=""):
project.fullname = project.code
projec... | 538 | Python | .py | 15 | 30.666667 | 64 | 0.69186 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,136 | 0010_add_reserved_code_validator.py | translate_pootle/pootle/apps/pootle_project/migrations/0010_add_reserved_code_validator.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import pootle_project.models
class Migration(migrations.Migration):
dependencies = [
('pootle_project', '0009_set_code_as_fullname_when_no_fullname'),
]
operations = [
migrations.Alt... | 693 | Python | .py | 15 | 39.8 | 287 | 0.686478 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,137 | 0005_add_none_treestyle.py | translate_pootle/pootle/apps/pootle_project/migrations/0005_add_none_treestyle.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_project', '0004_correct_checkerstyle_options_order'),
]
operations = [
migrations.AlterField(
model_name=... | 722 | Python | .py | 14 | 44.785714 | 343 | 0.661451 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,138 | 0014_just_rename_label_for_choice.py | translate_pootle/pootle/apps/pootle_project/migrations/0014_just_rename_label_for_choice.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2016-10-14 14:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_project', '0013_rename_treestyle_choice_to_pootle_fs'),
]
operations = [
... | 778 | Python | .py | 15 | 45.466667 | 348 | 0.664908 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,139 | 0011_add_project_checker_validator.py | translate_pootle/pootle/apps/pootle_project/migrations/0011_add_project_checker_validator.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-09-30 20:46
from __future__ import unicode_literals
from django.db import migrations, models
import pootle_project.models
class Migration(migrations.Migration):
dependencies = [
('pootle_project', '0010_add_reserved_code_validator'),
]
... | 612 | Python | .py | 16 | 32.1875 | 162 | 0.678511 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,140 | 0007_migrate_localfiletype.py | translate_pootle/pootle/apps/pootle_project/migrations/0007_migrate_localfiletype.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from pootle.core.delegate import formats
def migrate_localfiletype(apps, schema_editor):
format_registry = formats.get()
projects = apps.get_model("pootle_project.Project").objects.all()
filetypes =... | 917 | Python | .py | 22 | 34.772727 | 69 | 0.684746 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,141 | 0003_case_sensitive_schema.py | translate_pootle/pootle/apps/pootle_project/migrations/0003_case_sensitive_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_project_codes_cs(apps, schema_editor):
cursor = schema_editor.connection.cursor()
set_mysql_collation_for_column(
apps,
... | 655 | Python | .py | 20 | 26.95 | 78 | 0.674641 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,142 | 0001_initial.py | translate_pootle/pootle/apps/pootle_project/migrations/0001_initial.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import pootle.core.mixins.treeitem
import pootle_project.models
class Migration(migrations.Migration):
dependencies = [
('pootle_language', '0001_initial'),
('pootle_app', '0001_initial'),
... | 3,014 | Python | .py | 35 | 74.685714 | 381 | 0.63349 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,143 | 0002_remove_dynamic_model_choices_localfiletype.py | translate_pootle/pootle/apps/pootle_project/migrations/0002_remove_dynamic_model_choices_localfiletype.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_project', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='project',
name... | 481 | Python | .py | 15 | 24.866667 | 90 | 0.618221 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,144 | 0016_change_treestyle_choices_label.py | translate_pootle/pootle/apps/pootle_project/migrations/0016_change_treestyle_choices_label.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-20 12:57
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_project', '0015_rename_fs_treestyle'),
]
operations = [
migrations.A... | 776 | Python | .py | 15 | 45.333333 | 363 | 0.664021 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,145 | 0004_correct_checkerstyle_options_order.py | translate_pootle/pootle/apps/pootle_project/migrations/0004_correct_checkerstyle_options_order.py | # -*- coding: utf-8 -*-
"""The order of the checkerstyle options changed when we moved management from
Translate Toolkit into Pootle. This simple migration realigns then to what is
expected now, preventing false positive messages about still needing a
migration.
"""
from __future__ import unicode_literals
from djan... | 980 | Python | .py | 19 | 46.210526 | 367 | 0.678197 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,146 | 0008_remove_project_localfiletype.py | translate_pootle/pootle/apps/pootle_project/migrations/0008_remove_project_localfiletype.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_project', '0007_migrate_localfiletype'),
('pootle_store', '0013_set_store_filetype_again')
]
operations = [
m... | 428 | Python | .py | 14 | 24.071429 | 57 | 0.628362 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,147 | 0006_project_filetypes.py | translate_pootle/pootle/apps/pootle_project/migrations/0006_project_filetypes.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import sortedm2m.fields
class Migration(migrations.Migration):
dependencies = [
('pootle_format', '0001_initial'),
('pootle_project', '0005_add_none_treestyle'),
]
operations = [
... | 528 | Python | .py | 16 | 26.4375 | 100 | 0.64497 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,148 | models.py | translate_pootle/pootle/apps/pootle_format/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.db import models
from .abstract... | 1,013 | Python | .py | 26 | 32.884615 | 77 | 0.698055 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,149 | getters.py | translate_pootle/pootle/apps/pootle_format/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 filetype_to... | 672 | Python | .py | 18 | 35.444444 | 77 | 0.797214 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,150 | abstracts.py | translate_pootle/pootle/apps/pootle_format/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.db import models
from pootle.i1... | 1,182 | Python | .py | 36 | 26.861111 | 77 | 0.663436 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,151 | default.py | translate_pootle/pootle/apps/pootle_format/default.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_FORMATS = [
("po",
dict(tit... | 819 | Python | .py | 28 | 23 | 77 | 0.596958 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,152 | apps.py | translate_pootle/pootle/apps/pootle_format/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... | 750 | Python | .py | 18 | 37.444444 | 77 | 0.745179 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,153 | receivers.py | translate_pootle/pootle/apps/pootle_format/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 m2m_cha... | 968 | Python | .py | 23 | 38.869565 | 77 | 0.751599 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,154 | utils.py | translate_pootle/pootle/apps/pootle_format/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
import os
from collections im... | 6,681 | Python | .py | 163 | 30.717791 | 79 | 0.603852 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,155 | __init__.py | translate_pootle/pootle/apps/pootle_format/__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_format.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,156 | providers.py | translate_pootle/pootle/apps/pootle_format/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 collections import OrderedDict
from po... | 548 | Python | .py | 14 | 37.5 | 77 | 0.801512 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,157 | exceptions.py | translate_pootle/pootle/apps/pootle_format/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 UnrecognizedFiletype(Exception):
... | 325 | Python | .py | 9 | 34.444444 | 77 | 0.764331 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,158 | registry.py | translate_pootle/pootle/apps/pootle_format/registry.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from collections import OrderedDict
from dj... | 2,352 | Python | .py | 60 | 30.85 | 77 | 0.643077 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,159 | 0003_remove_extra_indeces.py | translate_pootle/pootle/apps/pootle_format/migrations/0003_remove_extra_indeces.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-06-02 16:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_format', '0002_default_formats'),
]
operations = [
migrations.AlterF... | 483 | Python | .py | 15 | 25.8 | 80 | 0.632829 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,160 | 0002_default_formats.py | translate_pootle/pootle/apps/pootle_format/migrations/0002_default_formats.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from pootle.core.delegate import formats
def add_default_formats(apps, schema_editor):
formats.get().initialize()
class Migration(migrations.Migration):
dependencies = [
('pootle_format', '000... | 416 | Python | .py | 13 | 27.615385 | 50 | 0.708861 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,161 | 0001_initial.py | translate_pootle/pootle/apps/pootle_format/migrations/0001_initial.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='FileExtension',
fields=[
('id', models.AutoFiel... | 1,855 | Python | .py | 39 | 35.769231 | 151 | 0.582551 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,162 | po.py | translate_pootle/pootle/apps/pootle_format/formats/po.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.storage import poheader
from... | 3,769 | Python | .py | 90 | 31.522222 | 81 | 0.609324 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,163 | mozilla_lang.py | translate_pootle/pootle/apps/pootle_format/formats/mozilla_lang.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,544 | Python | .py | 37 | 34.891892 | 77 | 0.677592 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,164 | providers.py | translate_pootle/pootle/apps/pootle_format/formats/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 format_diff... | 712 | Python | .py | 19 | 34.894737 | 77 | 0.780204 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,165 | models.py | translate_pootle/pootle/apps/pootle_word/models.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from django.db import models
from pootle_st... | 941 | Python | .py | 27 | 29.296296 | 77 | 0.668514 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,166 | getters.py | translate_pootle/pootle/apps/pootle_word/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 stemming.porter2 import stem
from poot... | 724 | Python | .py | 21 | 32.380952 | 77 | 0.786127 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,167 | abstracts.py | translate_pootle/pootle/apps/pootle_word/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.db import models
class Abstrac... | 626 | Python | .py | 19 | 28.052632 | 77 | 0.682196 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,168 | apps.py | translate_pootle/pootle/apps/pootle_word/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... | 577 | Python | .py | 16 | 32.6875 | 77 | 0.735135 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,169 | utils.py | translate_pootle/pootle/apps/pootle_word/utils.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import os
import re
import Levenshtein
impo... | 2,811 | Python | .py | 84 | 25.130952 | 77 | 0.596225 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,170 | __init__.py | translate_pootle/pootle/apps/pootle_word/__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_word.apps.Pootl... | 333 | Python | .py | 8 | 40.5 | 77 | 0.765432 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,171 | 0003_add_word_stems.py | translate_pootle/pootle/apps/pootle_word/migrations/0003_add_word_stems.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-05 14:58
from __future__ import unicode_literals
import re
from django.db import migrations
from stemming.porter2 import stem
from pootle.core.delegate import stopwords
from pootle_store.constants import TRANSLATED
def stem_terminology_words(apps, sc... | 1,797 | Python | .py | 47 | 31.234043 | 78 | 0.644828 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,172 | 0001_initial.py | translate_pootle/pootle/apps/pootle_word/migrations/0001_initial.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-06 13:47
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('pootle_store', '0023_add_unit_store_idx... | 1,641 | Python | .py | 43 | 27.72093 | 119 | 0.561558 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,173 | 0002_set_cs_schema.py | translate_pootle/pootle/apps/pootle_word/migrations/0002_set_cs_schema.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-07 13:29
from __future__ import unicode_literals
from django.db import migrations
from pootle.core.utils.db import set_mysql_collation_for_column
def make_stem_root_cs(apps, schema_editor):
cursor = schema_editor.connection.cursor()
set_mysql_c... | 652 | Python | .py | 21 | 25.095238 | 63 | 0.648475 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,174 | getters.py | translate_pootle/pootle/apps/pootle_profile/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... | 680 | Python | .py | 18 | 35.833333 | 77 | 0.788668 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,175 | urls.py | translate_pootle/pootle/apps/pootle_profile/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... | 975 | Python | .py | 29 | 29.310345 | 77 | 0.647122 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,176 | apps.py | translate_pootle/pootle/apps/pootle_profile/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... | 513 | Python | .py | 14 | 33.785714 | 77 | 0.756592 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,177 | utils.py | translate_pootle/pootle/apps/pootle_profile/utils.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from datetime import timedelta
from django.... | 3,366 | Python | .py | 90 | 29.1 | 77 | 0.621505 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,178 | __init__.py | translate_pootle/pootle/apps/pootle_profile/__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_profile.apps.Po... | 339 | Python | .py | 8 | 41.25 | 77 | 0.769697 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,179 | forms.py | translate_pootle/pootle/apps/pootle_profile/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 urlparse
from django import forms
fr... | 956 | Python | .py | 24 | 33.375 | 77 | 0.659459 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,180 | views.py | translate_pootle/pootle/apps/pootle_profile/views.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from django.contrib import auth
from django.... | 2,051 | Python | .py | 46 | 38.73913 | 77 | 0.705231 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,181 | profile_tags.py | translate_pootle/pootle/apps/pootle_profile/templatetags/profile_tags.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 urllib
from django import template
f... | 5,815 | Python | .py | 133 | 34.947368 | 78 | 0.633233 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,182 | assets.py | translate_pootle/pootle/apps/pootle_app/assets.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import os
from django_assets import Bundle,... | 2,742 | Python | .py | 78 | 31.012821 | 78 | 0.67158 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,183 | getters.py | translate_pootle/pootle/apps/pootle_app/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 site
from p... | 475 | Python | .py | 14 | 32.214286 | 77 | 0.773626 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,184 | urls.py | translate_pootle/pootle/apps/pootle_app/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... | 562 | Python | .py | 17 | 29.705882 | 77 | 0.702403 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,185 | apps.py | translate_pootle/pootle/apps/pootle_app/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... | 911 | Python | .py | 25 | 33.56 | 77 | 0.755404 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,186 | site.py | translate_pootle/pootle/apps/pootle_app/site.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 urlparse import urlparse
from django.c... | 1,913 | Python | .py | 56 | 26 | 77 | 0.619718 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,187 | providers.py | translate_pootle/pootle/apps/pootle_app/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 panels
from... | 570 | Python | .py | 14 | 39.142857 | 77 | 0.802536 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,188 | panels.py | translate_pootle/pootle/apps/pootle_app/panels.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import re
from django.utils.safestring impo... | 3,377 | Python | .py | 91 | 26.857143 | 81 | 0.577017 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,189 | forms.py | translate_pootle/pootle/apps/pootle_app/forms.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import re
import urlparse
from collections i... | 7,734 | Python | .py | 172 | 34.906977 | 82 | 0.601463 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,190 | __init__.py | translate_pootle/pootle/apps/pootle_app/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 pootle_app.models.directory import Dire... | 425 | Python | .py | 10 | 41.2 | 77 | 0.774272 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,191 | directory.py | translate_pootle/pootle/apps/pootle_app/models/directory.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from django.contrib.contenttypes.fields impo... | 8,901 | Python | .py | 213 | 32 | 80 | 0.593214 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,192 | permissions.py | translate_pootle/pootle/apps/pootle_app/models/permissions.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... | 4,924 | Python | .py | 116 | 34.12069 | 83 | 0.668203 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,193 | 0016_set_directory_tp_again.py | translate_pootle/pootle/apps/pootle_app/migrations/0016_set_directory_tp_again.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2016-11-02 18:58
from __future__ import unicode_literals
from django.db import migrations
def set_directory_tp_again(apps, schema_editor):
dirs = apps.get_model("pootle_app.Directory").objects.all()
TP = apps.get_model("pootle_translationproject.Transla... | 718 | Python | .py | 17 | 37.235294 | 79 | 0.705628 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,194 | 0013_directory_tp_path.py | translate_pootle/pootle/apps/pootle_app/migrations/0013_directory_tp_path.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2016-11-04 09:15
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_app', '0012_set_directory_tp'),
]
operations = [
migrations.AddField... | 493 | Python | .py | 15 | 26.466667 | 89 | 0.630021 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,195 | 0018_set_directory_base_manager_name.py | translate_pootle/pootle/apps/pootle_app/migrations/0018_set_directory_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_app', '0017_drop_stray_directories'),
]
operations = [
migrations.AlterModel... | 479 | Python | .py | 14 | 28.285714 | 102 | 0.632609 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,196 | 0002_mark_empty_dirs_as_obsolete.py | translate_pootle/pootle/apps/pootle_app/migrations/0002_mark_empty_dirs_as_obsolete.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def make_dir_obsolete(directory):
"""Make directory and its parents obsolete if a parent contains one empty
directory only
"""
p = directory.parent
if p is not None and p.child_dirs.filter(obs... | 1,298 | Python | .py | 31 | 33.806452 | 77 | 0.654459 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,197 | 0006_change_administrate_permission_name.py | translate_pootle/pootle/apps/pootle_app/migrations/0006_change_administrate_permission_name.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
def change_administrate_permission_name(apps, schema_editor):
Permission = apps.get_model("auth", "Permission")
Permission.objects.filter(
codename='administrate'
).update(
name='Can ... | 572 | Python | .py | 17 | 28.411765 | 66 | 0.698355 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,198 | 0003_drop_existing_directory_default_permissions.py | translate_pootle/pootle/apps/pootle_app/migrations/0003_drop_existing_directory_default_permissions.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
def drop_existing_directory_default_permissions(apps, schema_editor):
Permission = apps.get_model("auth", "Permission")
Permission.objects.filter(
codename__in=['add_directory', 'change_directory... | 588 | Python | .py | 15 | 34.2 | 78 | 0.706195 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,199 | 0014_set_directory_tp_path.py | translate_pootle/pootle/apps/pootle_app/migrations/0014_set_directory_tp_path.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2016-11-02 18:25
from __future__ import unicode_literals
from django.db import migrations
def set_directory_tp_path(apps, schema_editor):
dirs = apps.get_model("pootle_app.Directory").objects.all()
for directory in dirs:
if not directory.parent:... | 717 | Python | .py | 20 | 29.45 | 63 | 0.63135 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |