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,300 | form_fields.py | translate_pootle/pootle/apps/pootle_store/form_fields.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from django import forms
from django.utils.d... | 1,752 | Python | .py | 41 | 36.512195 | 77 | 0.69049 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,301 | contextmanagers.py | translate_pootle/pootle/apps/pootle_store/contextmanagers.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from contextlib import contextmanager
from ... | 3,128 | Python | .py | 87 | 25.632184 | 79 | 0.585705 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,302 | diff.py | translate_pootle/pootle/apps/pootle_store/diff.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under 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 difflib
import logging
from collectio... | 12,733 | Python | .py | 307 | 29.980456 | 79 | 0.565013 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,303 | fields.py | translate_pootle/pootle/apps/pootle_store/fields.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
"""Fields required for handling translation ... | 3,056 | Python | .py | 71 | 35.450704 | 79 | 0.650676 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,304 | decorators.py | translate_pootle/pootle/apps/pootle_store/decorators.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from functools import wraps
from django.cor... | 2,120 | Python | .py | 46 | 35.782609 | 79 | 0.635214 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,305 | forms.py | translate_pootle/pootle/apps/pootle_store/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.
"""Form fields required for handling transla... | 21,684 | Python | .py | 514 | 31.729572 | 82 | 0.602146 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,306 | views.py | translate_pootle/pootle/apps/pootle_store/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 calendar
import unicodedata
from coll... | 26,523 | Python | .py | 629 | 31.874404 | 84 | 0.610238 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,307 | managers.py | translate_pootle/pootle/apps/pootle_store/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 import models
from pootle.co... | 5,999 | Python | .py | 136 | 33.441176 | 81 | 0.604938 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,308 | filters.py | translate_pootle/pootle/apps/pootle_store/unit/filters.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from django.db.models import Q
from pootle_... | 6,035 | Python | .py | 151 | 30.781457 | 80 | 0.619178 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,309 | proxy.py | translate_pootle/pootle/apps/pootle_store/unit/proxy.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from pootle_store.fields import to_python as... | 1,150 | Python | .py | 32 | 29.125 | 77 | 0.634806 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,310 | altsrc.py | translate_pootle/pootle/apps/pootle_store/unit/altsrc.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from pootle.i18n.gettext import language_dir... | 1,776 | Python | .py | 50 | 28.36 | 79 | 0.657526 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,311 | search.py | translate_pootle/pootle/apps/pootle_store/unit/search.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from django.db.models import Max
from django... | 6,340 | Python | .py | 168 | 27.035714 | 78 | 0.556985 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,312 | results.py | translate_pootle/pootle/apps/pootle_store/unit/results.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from itertools import groupby
from django.u... | 4,173 | Python | .py | 116 | 26.258621 | 77 | 0.584573 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,313 | __init__.py | translate_pootle/pootle/apps/pootle_store/unit/__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 .proxy import UnitProxy
__all__ = ("U... | 333 | Python | .py | 9 | 35.666667 | 77 | 0.741433 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,314 | timeline.py | translate_pootle/pootle/apps/pootle_store/unit/timeline.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from collections import OrderedDict
from ite... | 11,377 | Python | .py | 299 | 28.294314 | 78 | 0.609486 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,315 | store_tags.py | translate_pootle/pootle/apps/pootle_store/templatetags/store_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 re
from django import template
from ... | 2,800 | Python | .py | 73 | 31.410959 | 78 | 0.629068 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,316 | 0038_suggestion_tmp_state.py | translate_pootle/pootle/apps/pootle_store/migrations/0038_suggestion_tmp_state.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-28 05:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0037_unitsource_fields'),
]
operations = [
migrations.AddFi... | 580 | Python | .py | 15 | 32.266667 | 170 | 0.632143 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,317 | 0004_index_store_index_together.py | translate_pootle/pootle/apps/pootle_store/migrations/0004_index_store_index_together.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0003_remove_unit_ordering'),
]
operations = [
migrations.AlterIndexTogether(
name='unit',
... | 385 | Python | .py | 13 | 23.307692 | 54 | 0.613079 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,318 | 0020_store_tp_path.py | translate_pootle/pootle/apps/pootle_store/migrations/0020_store_tp_path.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2016-11-04 12:32
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0019_remove_unit_priority'),
]
operations = [
migrations.Ad... | 516 | Python | .py | 15 | 28 | 110 | 0.635081 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,319 | 0024_set_store_base_manager_name.py | translate_pootle/pootle/apps/pootle_store/migrations/0024_set_store_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_store', '0023_add_unit_store_idxs'),
]
operations = [
migrations.AlterModelO... | 454 | Python | .py | 14 | 26.5 | 82 | 0.627586 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,320 | 0048_set_change_commented.py | translate_pootle/pootle/apps/pootle_store/migrations/0048_set_change_commented.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-21 11:33
from __future__ import unicode_literals
from django.contrib.auth import get_user_model
from django.db import migrations
from django.db.models import Value
from pootle_statistics.models import SubmissionTypes
def _add_comment_attrib(values, uni... | 3,825 | Python | .py | 89 | 33.449438 | 92 | 0.628594 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,321 | 0055_fill_unit_source_data.py | translate_pootle/pootle/apps/pootle_store/migrations/0055_fill_unit_source_data.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-28 11:31
from __future__ import unicode_literals
import functools
import logging
from hashlib import md5
from django.conf import settings
from django.db import migrations
from django.utils.encoding import force_bytes
from pootle.core.batch import Batch
... | 1,772 | Python | .py | 47 | 31.340426 | 76 | 0.684395 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,322 | 0030_store_tablename.py | translate_pootle/pootle/apps/pootle_store/migrations/0030_store_tablename.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-11 09:38
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0029_unit_tablename'),
]
operations = [
migrations.AlterModelTable(... | 404 | Python | .py | 14 | 22.928571 | 48 | 0.628571 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,323 | 0034_limit_text_fields.py | translate_pootle/pootle/apps/pootle_store/migrations/0034_limit_text_fields.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-09-10 18:01
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0033_remove_store_file'),
]
operation... | 1,458 | Python | .py | 36 | 31.472222 | 124 | 0.639379 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,324 | 0040_remove_suggestion_state.py | translate_pootle/pootle/apps/pootle_store/migrations/0040_remove_suggestion_state.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-28 05:34
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0039_set_suggestion_tmp_state'),
]
operations = [
migrations.Remove... | 407 | Python | .py | 14 | 23.142857 | 58 | 0.628866 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,325 | 0047_remove_old_unit_fields.py | translate_pootle/pootle/apps/pootle_store/migrations/0047_remove_old_unit_fields.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-21 00:20
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0046_unit_source_one_to_one'),
]
operations = [
migrations.RemoveFi... | 624 | Python | .py | 22 | 20.590909 | 56 | 0.574539 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,326 | 0028_set_created_by.py | translate_pootle/pootle/apps/pootle_store/migrations/0028_set_created_by.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-02 21:46
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0027_unit_created_by'),
]
operations = [
]
| 292 | Python | .py | 10 | 25.3 | 49 | 0.67509 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,327 | 0035_set_created_by_again.py | translate_pootle/pootle/apps/pootle_store/migrations/0035_set_created_by_again.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-02 21:46
from __future__ import unicode_literals
import logging
import time
from django.db import migrations
from pootle.core.user import get_system_user_id
logger = logging.getLogger(__name__)
def set_unit_created_by(apps, schema_editor):
subs ... | 1,505 | Python | .py | 43 | 28 | 75 | 0.626897 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,328 | 0006_remove_auto_now_add.py | translate_pootle/pootle/apps/pootle_store/migrations/0006_remove_auto_now_add.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0005_unit_priority'),
]
operations = [
migrations.AlterField(
model_name='unit',
nam... | 453 | Python | .py | 15 | 23 | 69 | 0.6097 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,329 | 0018_move_priority_to_store.py | translate_pootle/pootle/apps/pootle_store/migrations/0018_move_priority_to_store.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
def move_priority_from_unit_to_store(apps, schema_editor):
Unit = apps.get_model("pootle_store.Unit")
Store = apps.get_model("pootle_store.Store")
priorities = dict(
Unit.objects.exclude(prior... | 885 | Python | .py | 22 | 34.727273 | 79 | 0.675234 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,330 | 0039_set_suggestion_tmp_state.py | translate_pootle/pootle/apps/pootle_store/migrations/0039_set_suggestion_tmp_state.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-28 05:28
from __future__ import unicode_literals
from django.db import migrations
from django.db.models import F
def set_suggestion_tmp(apps, schema_editor):
suggestions = apps.get_model("pootle_store.Suggestion").objects.all()
suggestions.updat... | 544 | Python | .py | 15 | 32.133333 | 73 | 0.712644 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,331 | 0019_remove_unit_priority.py | translate_pootle/pootle/apps/pootle_store/migrations/0019_remove_unit_priority.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0018_move_priority_to_store'),
]
operations = [
migrations.RemoveField(
model_name='unit',
... | 361 | Python | .py | 13 | 21.461538 | 56 | 0.612245 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,332 | 0017_store_priority.py | translate_pootle/pootle/apps/pootle_store/migrations/0017_store_priority.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.core.validators
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0016_blank_last_sync_revision'),
('virtualfolder', '0003_case_sensitive_schema'),
]... | 569 | Python | .py | 16 | 29 | 120 | 0.656934 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,333 | 0033_conditionally_remove_unit_created_by.py | translate_pootle/pootle/apps/pootle_store/migrations/0033_conditionally_remove_unit_created_by.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-15 14:42
from __future__ import unicode_literals
from django.db import migrations
def conditionally_remove_unit_created_by(apps, schema_editor):
Unit = apps.get_model("pootle_store.Unit")
connection = schema_editor.connection
cursor = connec... | 965 | Python | .py | 21 | 38.47619 | 80 | 0.672009 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,334 | 0046_unit_source_one_to_one.py | translate_pootle/pootle/apps/pootle_store/migrations/0046_unit_source_one_to_one.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-20 22:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0045_remove_suggestion_tmp_state'),
]
... | 586 | Python | .py | 16 | 30.5625 | 136 | 0.669027 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,335 | 0053_remove_unit_submitted.py | translate_pootle/pootle/apps/pootle_store/migrations/0053_remove_unit_submitted.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-23 09:21
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import pootle.core.user
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0052_set_change_sub... | 847 | Python | .py | 25 | 26.44 | 158 | 0.629131 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,336 | 0044_set_new_suggestion_states.py | translate_pootle/pootle/apps/pootle_store/migrations/0044_set_new_suggestion_states.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-28 05:48
from __future__ import unicode_literals
from django.db import migrations
class OLDSuggestionStates(object):
PENDING = 'pending'
ACCEPTED = 'accepted'
REJECTED = 'rejected'
def set_suggestion_states(apps, schema_editor):
sugges... | 1,058 | Python | .py | 24 | 39.541667 | 91 | 0.738537 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,337 | 0031_remove_suggestion_translator_comment_f.py | translate_pootle/pootle/apps/pootle_store/migrations/0031_remove_suggestion_translator_comment_f.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-07-04 07:42
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0030_remove_extra_indeces'),
]
operations = [
migrations.RemoveFiel... | 418 | Python | .py | 14 | 23.928571 | 54 | 0.636591 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,338 | 0011_store_is_template.py | translate_pootle/pootle/apps/pootle_store/migrations/0011_store_is_template.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0010_set_store_filetypes'),
]
operations = [
migrations.AddField(
model_name='store',
... | 413 | Python | .py | 14 | 22.714286 | 53 | 0.616751 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,339 | 0022_add_unique_tp_path_idx.py | translate_pootle/pootle/apps/pootle_store/migrations/0022_add_unique_tp_path_idx.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2016-11-04 13:58
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0021_set_tp_path'),
]
operations = [
migrations.AlterUniqueTogether... | 468 | Python | .py | 14 | 27.5 | 102 | 0.623608 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,340 | 0032_fix_empty_wordcounts.py | translate_pootle/pootle/apps/pootle_store/migrations/0032_fix_empty_wordcounts.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-07-04 14:04
from __future__ import unicode_literals
import logging
from django.db import migrations
from pootle_data.store_data import StoreDataTool
from pootle_data.tp_data import TPDataTool
logger = logging.getLogger(__name__)
def fix_empty_wordcount... | 1,489 | Python | .py | 30 | 44.666667 | 97 | 0.718923 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,341 | 0033_remove_store_file.py | translate_pootle/pootle/apps/pootle_store/migrations/0033_remove_store_file.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-08-26 14:01
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_fs', '0002_convert_localfs'),
('pootle_store', '0032_fix_empty_wordcounts'),
]
... | 444 | Python | .py | 15 | 23.466667 | 54 | 0.615566 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,342 | 0049_remove_unit_commented.py | translate_pootle/pootle/apps/pootle_store/migrations/0049_remove_unit_commented.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-21 14:54
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import pootle.core.user
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0048_set_change_com... | 847 | Python | .py | 25 | 26.44 | 158 | 0.629131 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,343 | 0012_set_is_template.py | translate_pootle/pootle/apps/pootle_store/migrations/0012_set_is_template.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from django.db import migrations, models
logger = logging.getLogger(__name__)
def migrate_store_is_template(apps, schema_editor):
tps = apps.get_model("pootle_translationproject.TranslationProject").objects.all()
for tp in tps... | 942 | Python | .py | 24 | 32.291667 | 88 | 0.664829 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,344 | 0031_suggestion_tablename.py | translate_pootle/pootle/apps/pootle_store/migrations/0031_suggestion_tablename.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-11 10:23
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0030_store_tablename'),
]
operations = [
migrations.AlterModelTable... | 415 | Python | .py | 14 | 23.714286 | 49 | 0.638889 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,345 | 0003_remove_unit_ordering.py | translate_pootle/pootle/apps/pootle_store/migrations/0003_remove_unit_ordering.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0002_make_suggestion_user_not_null'),
]
operations = [
migrations.AlterModelOptions(
name='unit'... | 387 | Python | .py | 13 | 23.461538 | 63 | 0.617886 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,346 | 0030_remove_extra_indeces.py | translate_pootle/pootle/apps/pootle_store/migrations/0030_remove_extra_indeces.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-06-02 15:14
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0029_set_unit_creation_revision'),
]
... | 1,311 | Python | .py | 30 | 35.2 | 187 | 0.638715 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,347 | 0023_add_unit_store_idxs.py | translate_pootle/pootle/apps/pootle_store/migrations/0023_add_unit_store_idxs.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2016-11-05 18:12
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0022_add_unique_tp_path_idx'),
]
operations = [
migrations.AlterUni... | 889 | Python | .py | 22 | 32.636364 | 140 | 0.589327 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,348 | 0027_unit_created_by_squashed_0055_fill_unit_source_data.py | translate_pootle/pootle/apps/pootle_store/migrations/0027_unit_created_by_squashed_0055_fill_unit_source_data.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-05-09 15:35
from __future__ import unicode_literals
import logging
import os
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
import pootle.core.user
from pootle.core.batch import Batch
from pootle.... | 16,954 | Python | .py | 380 | 35.792105 | 210 | 0.629948 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,349 | 0001_initial.py | translate_pootle/pootle/apps/pootle_store/migrations/0001_initial.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
from django.utils.timezone import utc
import translate.storage.base
import pootle_store.fields
import pootle.core.mixins.treeitem
from django.conf import settings
import django.db.models.fields.fil... | 7,063 | Python | .py | 114 | 48.903509 | 179 | 0.610543 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,350 | 0029_set_unit_creation_revision.py | translate_pootle/pootle/apps/pootle_store/migrations/0029_set_unit_creation_revision.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-05-23 10:20
from __future__ import unicode_literals
import logging
from django.conf import settings
from django.db import migrations
from pootle.core.batch import Batch
from pootle_store.constants import OBSOLETE
logger = logging.getLogger(__name__)
SE... | 2,476 | Python | .py | 51 | 43.509804 | 106 | 0.69838 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,351 | 0008_flush_django_cache.py | translate_pootle/pootle/apps/pootle_store/migrations/0008_flush_django_cache.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.core.management import call_command
from django.db import migrations
def flush_django_cache(apps, schema_editor):
call_command('flush_cache', '--django-cache')
class Migration(migrations.Migration):
dependencies = [
('poot... | 444 | Python | .py | 13 | 29.846154 | 55 | 0.709906 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,352 | 0045_remove_suggestion_tmp_state.py | translate_pootle/pootle/apps/pootle_store/migrations/0045_remove_suggestion_tmp_state.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-28 05:54
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0044_set_new_suggestion_states'),
]
operations = [
migrations.Remov... | 412 | Python | .py | 14 | 23.5 | 59 | 0.631043 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,353 | 0028_unitsource_creation_revision.py | translate_pootle/pootle/apps/pootle_store/migrations/0028_unitsource_creation_revision.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-05-23 09:15
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0027_unit_created_by_squashed_0055_fill_unit_source_data'),
]
opera... | 528 | Python | .py | 15 | 28.8 | 85 | 0.651575 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,354 | 0034_unitsource.py | translate_pootle/pootle/apps/pootle_store/migrations/0034_unitsource.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-17 14:22
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import pootle.core.user
class Migration(migrations.Migration):
dependencies = [
migr... | 1,278 | Python | .py | 27 | 38.592593 | 210 | 0.645265 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,355 | 0052_set_change_submitted.py | translate_pootle/pootle/apps/pootle_store/migrations/0052_set_change_submitted.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-22 13:43
from __future__ import unicode_literals
import logging
import time
from django.db import migrations
from pootle.core.batch import Batch
from pootle.core.user import get_system_user_id
from pootle_statistics.models import SubmissionTypes
logger... | 1,841 | Python | .py | 46 | 33.304348 | 74 | 0.679213 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,356 | 0029_unit_tablename.py | translate_pootle/pootle/apps/pootle_store/migrations/0029_unit_tablename.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-10 17:42
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0028_set_created_by'),
]
operations = [
migrations.AlterModelTable(... | 402 | Python | .py | 14 | 22.785714 | 48 | 0.624021 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,357 | 0041_suggestionstate.py | translate_pootle/pootle/apps/pootle_store/migrations/0041_suggestionstate.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-28 05:39
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0040_remove_suggestion_state'),
]
operations = [
migrations... | 745 | Python | .py | 21 | 26.428571 | 114 | 0.5758 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,358 | 0021_set_tp_path.py | translate_pootle/pootle/apps/pootle_store/migrations/0021_set_tp_path.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2016-11-02 19:42
from __future__ import unicode_literals
from django.db import migrations
def set_store_tp_path(apps, schema_editor):
stores = apps.get_model("pootle_store.Store").objects.all()
for store in stores:
parts = store.pootle_path.lstr... | 603 | Python | .py | 17 | 30.294118 | 63 | 0.642487 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,359 | 0005_unit_priority.py | translate_pootle/pootle/apps/pootle_store/migrations/0005_unit_priority.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.core.validators
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0004_index_store_index_together'),
]
operations = [
migrations.AddField(
... | 548 | Python | .py | 16 | 27.4375 | 120 | 0.652751 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,360 | 0016_blank_last_sync_revision.py | translate_pootle/pootle/apps/pootle_store/migrations/0016_blank_last_sync_revision.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0015_add_slashes_validator_for_name'),
]
operations = [
migrations.AlterField(
model_name='store... | 456 | Python | .py | 14 | 25.785714 | 76 | 0.631579 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,361 | 0010_set_store_filetypes.py | translate_pootle/pootle/apps/pootle_store/migrations/0010_set_store_filetypes.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from django.db import migrations, models
from pootle.core.delegate import formats
logger = logging.getLogger(__name__)
def migrate_store_filetypes(apps, schema_editor):
format_registry = formats.get()
projects = apps.get_mode... | 1,162 | Python | .py | 27 | 35.62963 | 73 | 0.66934 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,362 | 0015_add_slashes_validator_for_name.py | translate_pootle/pootle/apps/pootle_store/migrations/0015_add_slashes_validator_for_name.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import pootle_store.validators
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0014_add_unit_index_togethers'),
]
operations = [
migrations.AlterField(
... | 516 | Python | .py | 15 | 28 | 125 | 0.66129 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,363 | 0002_make_suggestion_user_not_null.py | translate_pootle/pootle/apps/pootle_store/migrations/0002_make_suggestion_user_not_null.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0001_initial'),
]
operations = [
migrations.AlterField(
model_n... | 535 | Python | .py | 16 | 26.625 | 119 | 0.64786 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,364 | 0050_set_change_reviewed.py | translate_pootle/pootle/apps/pootle_store/migrations/0050_set_change_reviewed.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-21 19:06
from __future__ import unicode_literals
from django.db import migrations
from pootle.core.batch import Batch
from pootle.core.user import get_system_user_id
from pootle_statistics.models import SubmissionTypes
def _update_reviewed(qs, unit_cha... | 1,710 | Python | .py | 43 | 32.418605 | 74 | 0.660218 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,365 | 0032_qc_tablename.py | translate_pootle/pootle/apps/pootle_store/migrations/0032_qc_tablename.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-11 10:51
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0031_suggestion_tablename'),
]
operations = [
migrations.AlterModel... | 424 | Python | .py | 14 | 24.357143 | 54 | 0.646914 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,366 | 0051_remove_unit_reviewed.py | translate_pootle/pootle/apps/pootle_store/migrations/0051_remove_unit_reviewed.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-21 19:58
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import pootle.core.user
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0050_set_change_rev... | 842 | Python | .py | 25 | 26.24 | 157 | 0.626847 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,367 | 0054_clean_abs_file_paths.py | translate_pootle/pootle/apps/pootle_store/migrations/0054_clean_abs_file_paths.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-25 12:59
from __future__ import unicode_literals
import os
from django.db import migrations
from bulk_update.helper import bulk_update
from pootle.core.url_helpers import split_pootle_path
def clean_abs_file_paths(apps, schema_editor):
"""Replace ... | 1,227 | Python | .py | 30 | 34.666667 | 74 | 0.677338 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,368 | 0026_suggestion_on_delete_user.py | translate_pootle/pootle/apps/pootle_store/migrations/0026_suggestion_on_delete_user.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-02 15:10
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import pootle.core.user
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0025_unit_on_delete... | 880 | Python | .py | 22 | 32.954545 | 156 | 0.66354 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,369 | 0036_unitchange.py | translate_pootle/pootle/apps/pootle_store/migrations/0036_unitchange.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-19 13:38
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import pootle.core.user
class Migration(migrations.Migration):
dependencies = [
migr... | 1,905 | Python | .py | 36 | 42.888889 | 180 | 0.638412 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,370 | 0043_suggestion_state.py | translate_pootle/pootle/apps/pootle_store/migrations/0043_suggestion_state.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-28 05:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0042_add_default_suggestion_states'),
]... | 607 | Python | .py | 16 | 31.875 | 156 | 0.675768 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,371 | 0042_add_default_suggestion_states.py | translate_pootle/pootle/apps/pootle_store/migrations/0042_add_default_suggestion_states.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-28 05:40
from __future__ import unicode_literals
from django.db import migrations
def add_default_suggestion_states(apps, schema_editor):
states = apps.get_model("pootle_store.SuggestionState").objects
for state in ["pending", "accepted", "rejec... | 567 | Python | .py | 15 | 33.133333 | 67 | 0.704587 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,372 | 0014_add_unit_index_togethers.py | translate_pootle/pootle/apps/pootle_store/migrations/0014_add_unit_index_togethers.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0013_set_store_filetype_again'),
]
operations = [
migrations.AlterIndexTogether(
name='unit',
... | 432 | Python | .py | 13 | 26.923077 | 96 | 0.60628 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,373 | 0013_set_store_filetype_again.py | translate_pootle/pootle/apps/pootle_store/migrations/0013_set_store_filetype_again.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from django.db import migrations, models
logger = logging.getLogger(__name__)
def migrate_store_filetypes(apps, schema_editor):
projects = apps.get_model("pootle_project.Project").objects.all()
for project in projects:
... | 1,143 | Python | .py | 25 | 36.2 | 85 | 0.638663 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,374 | 0007_case_sensitive_schema.py | translate_pootle/pootle/apps/pootle_store/migrations/0007_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_store_paths_cs(apps, schema_editor):
cursor = schema_editor.connection.cursor()
set_mysql_collation_for_column(
apps,
... | 785 | Python | .py | 27 | 22.592593 | 63 | 0.626667 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,375 | 0037_unitsource_fields.py | translate_pootle/pootle/apps/pootle_store/migrations/0037_unitsource_fields.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-19 22:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0036_unitchange'),
]
operations = [
migrations.AddField(
... | 849 | Python | .py | 25 | 25.56 | 77 | 0.610501 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,376 | 0027_unit_created_by.py | translate_pootle/pootle/apps/pootle_store/migrations/0027_unit_created_by.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-02 21:45
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import pootle.core.user
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(setti... | 434 | Python | .py | 13 | 29.538462 | 66 | 0.721154 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,377 | 0009_store_filetype.py | translate_pootle/pootle/apps/pootle_store/migrations/0009_store_filetype.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pootle_format', '0002_default_formats'),
('pootle_store', '0008_flush_django_cache'),
]
operations = [
migrations.Ad... | 542 | Python | .py | 15 | 29.2 | 135 | 0.6341 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,378 | 0025_unit_on_delete_user.py | translate_pootle/pootle/apps/pootle_store/migrations/0025_unit_on_delete_user.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-02 14:03
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import pootle.core.user
class Migration(migrations.Migration):
dependencies = [
('pootle_store', '0024_set_store_bas... | 1,163 | Python | .py | 27 | 35.185185 | 158 | 0.655752 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,379 | deserialize.py | translate_pootle/pootle/apps/pootle_store/store/deserialize.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import io
from translate.storage.factory im... | 1,769 | Python | .py | 47 | 30.234043 | 77 | 0.675834 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,380 | serialize.py | translate_pootle/pootle/apps/pootle_store/store/serialize.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from django.utils.functional import cached_p... | 2,351 | Python | .py | 57 | 32.947368 | 77 | 0.666959 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,381 | util.py | translate_pootle/pootle/apps/pootle_misc/util.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from datetime import datetime, timedelta
fro... | 2,906 | Python | .py | 78 | 31.230769 | 77 | 0.658937 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,382 | context_processors.py | translate_pootle/pootle/apps/pootle_misc/context_processors.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under 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... | 2,321 | Python | .py | 48 | 40.604167 | 78 | 0.685537 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,383 | baseurl.py | translate_pootle/pootle/apps/pootle_misc/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.
"""Utility functions to help deploy Pootle u... | 604 | Python | .py | 15 | 37.133333 | 77 | 0.721368 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,384 | forms.py | translate_pootle/pootle/apps/pootle_misc/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.core.va... | 3,996 | Python | .py | 99 | 31.252525 | 80 | 0.621482 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,385 | render_pager.py | translate_pootle/pootle/apps/pootle_misc/templatetags/render_pager.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under 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.util... | 1,825 | Python | .py | 42 | 35.333333 | 77 | 0.557812 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,386 | search.py | translate_pootle/pootle/apps/pootle_misc/templatetags/search.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under 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 pootle.i18... | 1,085 | Python | .py | 28 | 32.964286 | 77 | 0.666667 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,387 | common_tags.py | translate_pootle/pootle/apps/pootle_misc/templatetags/common_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 datetime
from django import template... | 4,253 | Python | .py | 106 | 33.830189 | 77 | 0.664319 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,388 | select2l10n.py | translate_pootle/pootle/apps/pootle_misc/templatetags/select2l10n.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import os
from django import template
from ... | 1,107 | Python | .py | 28 | 33.5 | 78 | 0.676608 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,389 | locale.py | translate_pootle/pootle/apps/pootle_misc/templatetags/locale.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under 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 calendar
from django import template... | 1,577 | Python | .py | 41 | 34.560976 | 77 | 0.735043 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,390 | cleanhtml.py | translate_pootle/pootle/apps/pootle_misc/templatetags/cleanhtml.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under 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 lxml.html import fromstring,... | 2,141 | Python | .py | 54 | 35.240741 | 110 | 0.710131 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,391 | models.py | translate_pootle/pootle/apps/accounts/models.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import re
from hashlib import md5
from djan... | 9,746 | Python | .py | 231 | 33.731602 | 78 | 0.631239 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,392 | getters.py | translate_pootle/pootle/apps/accounts/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... | 588 | Python | .py | 17 | 32.647059 | 77 | 0.765542 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,393 | proxy.py | translate_pootle/pootle/apps/accounts/proxy.py | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from hashlib import md5
from django.urls im... | 1,720 | Python | .py | 51 | 26 | 77 | 0.608565 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,394 | urls.py | translate_pootle/pootle/apps/accounts/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... | 481 | Python | .py | 14 | 31.642857 | 77 | 0.740821 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,395 | apps.py | translate_pootle/pootle/apps/accounts/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... | 566 | Python | .py | 16 | 32 | 77 | 0.737132 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,396 | receivers.py | translate_pootle/pootle/apps/accounts/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... | 575 | Python | .py | 15 | 36.666667 | 77 | 0.781588 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,397 | utils.py | translate_pootle/pootle/apps/accounts/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 functools
import logging
import sys
... | 18,334 | Python | .py | 398 | 34.922111 | 81 | 0.601209 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,398 | __init__.py | translate_pootle/pootle/apps/accounts/__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 = 'accounts.apps.Accounts... | 328 | Python | .py | 8 | 39.875 | 77 | 0.76489 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |
15,399 | updater.py | translate_pootle/pootle/apps/accounts/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 django.contrib.auth import get_user_mod... | 419 | Python | .py | 11 | 36.363636 | 77 | 0.769802 | translate/pootle | 1,486 | 288 | 526 | GPL-3.0 | 9/5/2024, 5:11:58 PM (Europe/Amsterdam) |