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
35,700
dls1_server.py
barronwaffles_dwc_network_server_emulator/dls1_server.py
"""DWC Network Server Emulator Copyright (C) 2014 polaris- Copyright (C) 2014 ToadKing Copyright (C) 2014 AdmiralCurtiss Copyright (C) 2014 msoucy Copyright (C) 2015 Sepalani This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General P...
5,171
Python
.py
123
34.869919
77
0.661876
barronwaffles/dwc_network_server_emulator
1,060
165
20
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,701
storage_server.py
barronwaffles_dwc_network_server_emulator/storage_server.py
"""DWC Network Server Emulator Copyright (C) 2014 polaris- Copyright (C) 2014 AdmiralCurtiss Copyright (C) 2014 msoucy Copyright (C) 2018 Sepalani This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published b...
33,718
Python
.py
563
45.388988
288
0.526156
barronwaffles/dwc_network_server_emulator
1,060
165
20
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,702
register_page.py
barronwaffles_dwc_network_server_emulator/register_page.py
"""DWC Network Server Emulator Copyright (C) 2014 SMTDDR Copyright (C) 2014 kyle95wm Copyright (C) 2014 AdmiralCurtiss Copyright (C) 2015 Sepalani This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published b...
4,773
Python
.py
126
29.52381
78
0.615784
barronwaffles/dwc_network_server_emulator
1,060
165
20
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,703
gamespy_profile_server.py
barronwaffles_dwc_network_server_emulator/gamespy_profile_server.py
"""DWC Network Server Emulator Copyright (C) 2014 polaris- Copyright (C) 2014 ToadKing Copyright (C) 2014 AdmiralCurtiss Copyright (C) 2014 msoucy Copyright (C) 2015 Sepalani This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General P...
30,399
Python
.py
660
31.472727
78
0.521316
barronwaffles/dwc_network_server_emulator
1,060
165
20
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,704
admin_page_server.py
barronwaffles_dwc_network_server_emulator/admin_page_server.py
"""DWC Network Server Emulator Copyright (C) 2014 SMTDDR Copyright (C) 2014 kyle95wm Copyright (C) 2014 AdmiralCurtiss Copyright (C) 2015 Sepalani This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published b...
17,952
Python
.py
452
27.74115
79
0.531936
barronwaffles/dwc_network_server_emulator
1,060
165
20
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,705
nas_server.py
barronwaffles_dwc_network_server_emulator/nas_server.py
"""DWC Network Server Emulator Copyright (C) 2014 polaris- Copyright (C) 2014 ToadKing Copyright (C) 2014 AdmiralCurtiss Copyright (C) 2014 msoucy Copyright (C) 2015 Sepalani This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General P...
8,605
Python
.py
223
30.426009
79
0.594621
barronwaffles/dwc_network_server_emulator
1,060
165
20
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,706
import_wiimm_data.py
barronwaffles_dwc_network_server_emulator/tools/import_wiimm_data.py
"""Import the profile and friend data collected from the GameSpy servers by Wiimm Put all *-nick and *-fc files to be imported into t into the data folder and then run this program to import them into the database. This may take some time to import all of the data on bigger files if you check if each entry is already...
3,780
Python
.py
98
29.969388
288
0.561524
barronwaffles/dwc_network_server_emulator
1,060
165
20
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,707
gs_database.py
barronwaffles_dwc_network_server_emulator/gamespy/gs_database.py
"""DWC Network Server Emulator Copyright (C) 2014 polaris- Copyright (C) 2014 ToadKing Copyright (C) 2014 AdmiralCurtiss Copyright (C) 2015 Sepalani This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published...
26,789
Python
.py
612
30.668301
78
0.541224
barronwaffles/dwc_network_server_emulator
1,060
165
20
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,708
gs_utility.py
barronwaffles_dwc_network_server_emulator/gamespy/gs_utility.py
"""DWC Network Server Emulator Copyright (C) 2014 polaris- Copyright (C) 2014 ToadKing Copyright (C) 2014 AdmiralCurtiss Copyright (C) 2014 msoucy Copyright (C) 2015 Sepalani This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General P...
13,336
Python
.py
385
26.32987
78
0.566664
barronwaffles/dwc_network_server_emulator
1,060
165
20
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,709
gs_query.py
barronwaffles_dwc_network_server_emulator/gamespy/gs_query.py
"""DWC Network Server Emulator Copyright (C) 2014 polaris- Copyright (C) 2014 ToadKing Copyright (C) 2014 AdmiralCurtiss Copyright (C) 2016 Sepalani This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published...
3,996
Python
.py
100
30.85
76
0.564633
barronwaffles/dwc_network_server_emulator
1,060
165
20
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,710
dlc.py
barronwaffles_dwc_network_server_emulator/other/dlc.py
"""DWC Network Server Emulator Copyright (C) 2014 polaris- Copyright (C) 2014 ToadKing Copyright (C) 2016 Sepalani This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, eith...
7,024
Python
.py
189
30.481481
78
0.62765
barronwaffles/dwc_network_server_emulator
1,060
165
20
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,711
sql.py
barronwaffles_dwc_network_server_emulator/other/sql.py
"""DWC Network Server Emulator Copyright (C) 2016 Sepalani This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later v...
1,360
Python
.py
39
29.769231
76
0.675345
barronwaffles/dwc_network_server_emulator
1,060
165
20
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,712
utils.py
barronwaffles_dwc_network_server_emulator/other/utils.py
"""DWC Network Server Emulator Copyright (C) 2014 polaris- Copyright (C) 2014 msoucy Copyright (C) 2016 Sepalani This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either...
11,640
Python
.py
297
32.902357
103
0.606387
barronwaffles/dwc_network_server_emulator
1,060
165
20
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,713
dwc_network_server_emulator.pyproj
barronwaffles_dwc_network_server_emulator/dwc_network_server_emulator.pyproj
<?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{1a9e8a26-6cea-...
3,428
Python
.pyp
72
43.180556
155
0.718201
barronwaffles/dwc_network_server_emulator
1,060
165
20
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,714
dmoj_celery.py
DMOJ_online-judge/dmoj_celery.py
import os try: import MySQLdb # noqa: F401, imported for side effect except ImportError: import dmoj_install_pymysql # noqa: F401, imported for side effect # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dmoj.settings') # noinspection PyUn...
413
Python
.py
9
43.666667
73
0.78803
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,715
dmoj_bridge_async.py
DMOJ_online-judge/dmoj_bridge_async.py
import os import gevent.monkey # noqa: I100, gevent must be imported here os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dmoj.settings') gevent.monkey.patch_all() # noinspection PyUnresolvedReferences import dmoj_install_pymysql # noqa: E402, F401, I100, I202, imported for side effect import django # noqa: E40...
539
Python
.py
11
47.090909
105
0.762452
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,716
dmoj_install_pymysql.py
DMOJ_online-judge/dmoj_install_pymysql.py
import pymysql pymysql.install_as_MySQLdb() pymysql.version_info = (1, 4, 0, 'final', 0)
90
Python
.py
3
28.666667
44
0.732558
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,717
manage.py
DMOJ_online-judge/manage.py
#!/usr/bin/env python import os import sys try: import MySQLdb # noqa: F401, imported for side effect except ImportError: import dmoj_install_pymysql # noqa: F401, imported for side effect if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dmoj.settings') from django.core.m...
403
Python
.py
11
33.545455
71
0.742931
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,718
.ci.settings.py
DMOJ_online-judge/.ci.settings.py
COMPRESS_OUTPUT_DIR = 'cache' STATICFILES_FINDERS += ('compressor.finders.CompressorFinder',) STATIC_ROOT = os.path.join(BASE_DIR, 'static') CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache' } } DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql...
527
Python
.py
21
19.238095
66
0.553571
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,719
celery.py
DMOJ_online-judge/dmoj/celery.py
import logging import socket from celery import Celery from celery.signals import task_failure app = Celery('dmoj') from django.conf import settings # noqa: E402, I202, django must be imported here app.config_from_object(settings, namespace='CELERY') if hasattr(settings, 'CELERY_BROKER_URL_SECRET'): app.conf.b...
934
Python
.py
19
46.210526
102
0.762955
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,720
settings.py
DMOJ_online-judge/dmoj/settings.py
""" Django settings for dmoj project. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) impor...
19,851
Python
.py
545
30.049541
117
0.634158
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,721
urls.py
DMOJ_online-judge/dmoj/urls.py
from django.conf import settings from django.contrib import admin from django.contrib.auth import views as auth_views from django.contrib.sitemaps.views import sitemap from django.http import Http404, HttpResponsePermanentRedirect from django.templatetags.static import static from django.urls import include, path, re_p...
22,941
Python
.py
337
59.694362
120
0.677829
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,722
wsgi_async.py
DMOJ_online-judge/dmoj/wsgi_async.py
import os import gevent.monkey # noqa: I100, gevent must be imported here os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dmoj.settings') gevent.monkey.patch_all() # noinspection PyUnresolvedReferences import dmoj_install_pymysql # noqa: E402, F401, I100, I202, imported for side effect from django.core.wsgi impo...
437
Python
.py
8
53.125
105
0.797647
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,723
wsgi.py
DMOJ_online-judge/dmoj/wsgi.py
import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dmoj.settings') try: import MySQLdb # noqa: F401, imported for side effect except ImportError: import pymysql pymysql.install_as_MySQLdb() from django.core.wsgi import get_wsgi_application # noqa: E402, django must be imported here application ...
345
Python
.py
9
35.666667
93
0.780781
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,724
throttle_mail.py
DMOJ_online-judge/dmoj/throttle_mail.py
import traceback from django.conf import settings from django.core.cache import cache from django.utils.log import AdminEmailHandler DEFAULT_THROTTLE = (10, 60) def new_email(): cache.add('error_email_throttle', 0, settings.DMOJ_EMAIL_THROTTLING[1]) return cache.incr('error_email_throttle') class Throttle...
778
Python
.py
21
30.142857
75
0.674232
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,725
__init__.py
DMOJ_online-judge/django_ace/__init__.py
""" Django-ace originally from https://github.com/bradleyayers/django-ace. """ from .widgets import AceWidget
111
Python
.py
4
26.5
70
0.792453
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,726
widgets.py
DMOJ_online-judge/django_ace/widgets.py
""" Django-ace originally from https://github.com/bradleyayers/django-ace. """ from urllib.parse import urljoin from django import forms from django.conf import settings from django.forms.utils import flatatt from django.utils.safestring import mark_safe class AceWidget(forms.Textarea): def __init__(self, mode=...
2,089
Python
.py
48
35.1875
102
0.603941
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,727
signals.py
DMOJ_online-judge/judge/signals.py
import errno import os from typing import Optional from django.conf import settings from django.core.cache import cache from django.core.cache.utils import make_template_fragment_key from django.db.models.signals import post_delete, post_save from django.dispatch import receiver from .caching import finished_submissi...
5,428
Python
.py
107
44.411215
118
0.709848
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,728
social_auth.py
DMOJ_online-judge/judge/social_auth.py
import logging import re from operator import itemgetter from urllib.parse import quote from django import forms from django.contrib.auth.models import User from django.http import HttpResponseRedirect from django.shortcuts import render from django.urls import reverse from requests import HTTPError from reversion imp...
4,016
Python
.py
86
37.825581
120
0.660184
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,729
dblock.py
DMOJ_online-judge/judge/dblock.py
from itertools import chain from django.db import connection, transaction class LockModel(object): def __init__(self, write, read=()): self.tables = ', '.join(chain( ('`%s` WRITE' % model._meta.db_table for model in write), ('`%s` READ' % model._meta.db_table for model in read), ...
692
Python
.py
18
30.277778
69
0.593423
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,730
user_translations.py
DMOJ_online-judge/judge/user_translations.py
from django.conf import settings from django.utils.safestring import SafeData, mark_safe if settings.USE_I18N: from django.utils.translation.trans_real import DjangoTranslation, get_language _translations = {} def translation(language): global _translations if language not in _translation...
1,448
Python
.py
31
37.967742
91
0.664301
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,731
judge_priority.py
DMOJ_online-judge/judge/judge_priority.py
CONTEST_SUBMISSION_PRIORITY = 0 DEFAULT_PRIORITY = 1 REJUDGE_PRIORITY = 2 BATCH_REJUDGE_PRIORITY = 3
101
Python
.py
4
24.25
31
0.814433
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,732
user_log.py
DMOJ_online-judge/judge/user_log.py
from django.utils.timezone import now from judge.models import Profile class LogUserAccessMiddleware(object): def __init__(self, get_response=None): self.get_response = get_response def __call__(self, request): response = self.get_response(request) if (hasattr(request, 'user') and r...
783
Python
.py
15
42.8
102
0.654856
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,733
lxml_tree.py
DMOJ_online-judge/judge/lxml_tree.py
import logging from django.utils.safestring import SafeData, mark_safe from lxml import html from lxml.etree import ParserError, XMLSyntaxError logger = logging.getLogger('judge.html') class HTMLTreeString(SafeData): def __init__(self, str): try: self._tree = html.fromstring(str, parser=html...
1,609
Python
.py
43
29.906977
92
0.623871
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,734
feed.py
DMOJ_online-judge/judge/feed.py
from django.conf import settings from django.contrib.auth.models import AnonymousUser from django.contrib.syndication.views import Feed from django.core.cache import cache from django.utils import timezone from django.utils.feedgenerator import Atom1Feed from judge.jinja2.markdown import markdown from judge.models imp...
2,884
Python
.py
71
34.15493
119
0.682226
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,735
judgeapi.py
DMOJ_online-judge/judge/judgeapi.py
import json import logging import socket import struct import zlib from django.conf import settings from django.utils import timezone from judge import event_poster as event from judge.judge_priority import BATCH_REJUDGE_PRIORITY, CONTEST_SUBMISSION_PRIORITY, DEFAULT_PRIORITY, REJUDGE_PRIORITY logger = logging.getLo...
5,618
Python
.py
101
47.148515
120
0.677343
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,736
apps.py
DMOJ_online-judge/judge/apps.py
from django.apps import AppConfig from django.db import DatabaseError from django.utils.translation import gettext_lazy class JudgeAppConfig(AppConfig): name = 'judge' verbose_name = gettext_lazy('Online Judge') def ready(self): # WARNING: AS THIS IS NOT A FUNCTIONAL PROGRAMMING LANGUAGE, ...
968
Python
.py
22
35.136364
78
0.658874
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,737
sitemap.py
DMOJ_online-judge/judge/sitemap.py
from django.contrib.auth.models import User from django.contrib.sitemaps import Sitemap from django.urls import reverse from django.utils import timezone from judge.models import BlogPost, Contest, Organization, Problem, Solution class ProblemSitemap(Sitemap): changefreq = 'weekly' priority = 0.8 def it...
2,921
Python
.py
79
30.367089
112
0.66738
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,738
performance_points.py
DMOJ_online-judge/judge/performance_points.py
from collections import namedtuple from django.conf import settings from django.db import connection from judge.models import Submission from judge.timezone import from_database_time PP_WEIGHT_TABLE = [pow(settings.DMOJ_PP_STEP, i) for i in range(settings.DMOJ_PP_ENTRIES)] PPBreakdown = namedtuple('PPBreakdown', 'p...
3,677
Python
.py
72
37.416667
106
0.597775
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,739
fulltext.py
DMOJ_online-judge/judge/fulltext.py
# From: http://www.mercurytide.co.uk/news/article/django-full-text-search/ from django.db import connection, models from django.db.models.query import QuerySet class SearchQuerySet(QuerySet): DEFAULT = '' BOOLEAN = ' IN BOOLEAN MODE' NATURAL_LANGUAGE = ' IN NATURAL LANGUAGE MODE' QUERY_EXPANSION = ' ...
2,027
Python
.py
42
38.452381
79
0.620183
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,740
timezone.py
DMOJ_online-judge/judge/timezone.py
import pytz from django.conf import settings from django.db import connection from django.utils import timezone from django.utils.timezone import make_aware class TimezoneMiddleware(object): def __init__(self, get_response=None): self.get_response = get_response def get_timezone(self, request): ...
759
Python
.py
21
30.285714
59
0.715847
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,741
template_context.py
DMOJ_online-judge/judge/template_context.py
from functools import partial from django.conf import settings from django.contrib.auth.context_processors import PermWrapper from django.contrib.sites.shortcuts import get_current_site from django.utils.functional import SimpleLazyObject, new_method_proxy from judge.utils.caniuse import CanIUse, SUPPORT from .models...
3,632
Python
.py
81
38.691358
110
0.691151
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,742
highlight_code.py
DMOJ_online-judge/judge/highlight_code.py
from django.utils.html import format_html from django.utils.safestring import mark_safe __all__ = ['highlight_code'] def _make_pre_code(code): return format_html('<pre><code>{0}</code></pre>', code) try: import pygments import pygments.lexers import pygments.formatters import pygments.util exce...
808
Python
.py
22
30.727273
113
0.698718
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,743
comments.py
DMOJ_online-judge/judge/comments.py
from django import forms from django.conf import settings from django.contrib.auth.decorators import login_required from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ValidationError from django.db.models import FilteredRelation, Q from django.db.models.expressions import F, V...
5,567
Python
.py
108
42.101852
113
0.675551
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,744
middleware.py
DMOJ_online-judge/judge/middleware.py
import base64 import hmac import re import struct from urllib.parse import quote from django.conf import settings from django.contrib.auth.models import User from django.contrib.sites.shortcuts import get_current_site from django.core.cache import cache from django.http import HttpResponse, HttpResponseRedirect from d...
6,552
Python
.py
144
35.604167
109
0.632141
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,745
event_poster_amqp.py
DMOJ_online-judge/judge/event_poster_amqp.py
import json import threading from time import time import pika from django.conf import settings from pika.exceptions import AMQPError __all__ = ['EventPoster', 'post', 'last'] class EventPoster(object): def __init__(self): self._connect() self._exchange = settings.EVENT_DAEMON_AMQP_EXCHANGE ...
1,334
Python
.py
41
24.731707
100
0.60516
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,746
caching.py
DMOJ_online-judge/judge/caching.py
from django.core.cache import cache def finished_submission(sub): keys = ['user_complete:%d' % sub.user_id, 'user_attempted:%s' % sub.user_id] if hasattr(sub, 'contest'): participation = sub.contest.participation keys += ['contest_complete:%d' % participation.id] keys += ['contest_atte...
378
Python
.py
8
41.5
80
0.673913
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,747
event_poster.py
DMOJ_online-judge/judge/event_poster.py
from django.conf import settings __all__ = ['last', 'post'] if not settings.EVENT_DAEMON_USE: real = False def post(channel, message): return 0 def last(): return 0 elif hasattr(settings, 'EVENT_DAEMON_AMQP'): from .event_poster_amqp import last, post real = True else: from ....
370
Python
.py
14
22
45
0.667614
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,748
forms.py
DMOJ_online-judge/judge/forms.py
import json from operator import attrgetter, itemgetter import pyotp import webauthn from django import forms from django.conf import settings from django.contrib.auth.forms import AuthenticationForm from django.contrib.auth.models import User from django.core.exceptions import ValidationError from django.core.validat...
13,657
Python
.py
255
44.090196
118
0.655296
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,749
event_poster_ws.py
DMOJ_online-judge/judge/event_poster_ws.py
import json import socket import threading from django.conf import settings from websocket import WebSocketException, create_connection __all__ = ['EventPostingError', 'EventPoster', 'post', 'last'] _local = threading.local() class EventPostingError(RuntimeError): pass class EventPoster(object): def __ini...
2,289
Python
.py
67
25.059701
100
0.577254
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,750
ratings.py
DMOJ_online-judge/judge/ratings.py
from bisect import bisect from math import pi, sqrt, tanh from operator import attrgetter, itemgetter from django.db import transaction from django.db.models import Count, OuterRef, Subquery from django.db.models.functions import Coalesce from django.utils import timezone from django.utils.translation import gettext_l...
8,219
Python
.py
187
35.887701
113
0.593695
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,751
martor.py
DMOJ_online-judge/judge/widgets/martor.py
from martor.widgets import AdminMartorWidget as OldAdminMartorWidget, MartorWidget as OldMartorWidget __all__ = ['MartorWidget', 'AdminMartorWidget'] class MartorWidget(OldMartorWidget): class Media: css = { 'all': ['martor-description.css'], } js = ['martor-mathjax.js'] cla...
480
Python
.py
12
33.583333
101
0.688985
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,752
mixins.py
DMOJ_online-judge/judge/widgets/mixins.py
from textwrap import dedent from django import forms from django.conf import settings from django.template import Context, Template from lxml import html class CompressorWidgetMixin(object): __template_css = dedent("""\ {% compress css %} {{ media.css }} {% endcompress %} """) ...
1,454
Python
.py
39
28.384615
107
0.561478
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,753
__init__.py
DMOJ_online-judge/judge/widgets/__init__.py
from judge.widgets.checkbox import CheckboxSelectMultipleWithSelectAll from judge.widgets.martor import * from judge.widgets.mixins import CompressorWidgetMixin from judge.widgets.pagedown import * from judge.widgets.select2 import *
234
Python
.py
5
45.8
70
0.877729
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,754
checkbox.py
DMOJ_online-judge/judge/widgets/checkbox.py
from django import forms from django.core.exceptions import FieldError from django.template.loader import get_template from django.utils.safestring import mark_safe class CheckboxSelectMultipleWithSelectAll(forms.CheckboxSelectMultiple): def render(self, name, value, attrs=None, renderer=None): if 'id' no...
953
Python
.py
19
42.052632
104
0.679914
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,755
select2.py
DMOJ_online-judge/judge/widgets/select2.py
# -*- coding: utf-8 -*- """ Select2 Widgets based on https://github.com/applegrew/django-select2. These components are responsible for rendering the necessary HTML data markups. Since this whole package is to render choices using Select2 JavaScript library, hence these components are meant to be used with choice field...
8,420
Python
.py
198
34.909091
113
0.670389
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,756
pagedown.py
DMOJ_online-judge/judge/widgets/pagedown.py
from django.forms.utils import flatatt from django.template.loader import get_template from django.utils.encoding import force_str from django.utils.html import conditional_escape from judge.widgets.mixins import CompressorWidgetMixin __all__ = ['PagedownWidget', 'MathJaxPagedownWidget', 'HeavyPreviewPageDownWidget']...
2,742
Python
.py
56
38.625
100
0.629907
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,757
profile.py
DMOJ_online-judge/judge/models/profile.py
import base64 import hmac import json import secrets import struct from operator import mul import pyotp import webauthn from django.conf import settings from django.contrib.auth.models import User from django.core.exceptions import ValidationError from django.core.validators import RegexValidator from django.db impor...
20,258
Python
.py
338
47.707101
120
0.626397
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,758
runtime.py
DMOJ_online-judge/judge/models/runtime.py
from collections import OrderedDict, defaultdict from operator import attrgetter from django.conf import settings from django.core.cache import cache from django.db import models from django.db.models import CASCADE from django.urls import reverse from django.utils import timezone from django.utils.functional import c...
9,282
Python
.py
161
45.515528
119
0.610255
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,759
ticket.py
DMOJ_online-judge/judge/models/ticket.py
from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.db import models from django.utils.translation import gettext_lazy as _ from judge.models.profile import Profile class Ticket(models.Model): title = models.CharField(max_length=...
1,979
Python
.py
32
51.6875
109
0.66701
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,760
problem_data.py
DMOJ_online-judge/judge/models/problem_data.py
import errno import os from django.db import models from django.utils.translation import gettext_lazy as _ from judge.utils.problem_data import ProblemDataStorage __all__ = ['problem_data_storage', 'problem_directory_file', 'ProblemData', 'ProblemTestCase', 'CHECKERS'] problem_data_storage = ProblemDataStorage() ...
4,842
Python
.py
79
51.35443
119
0.646079
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,761
choices.py
DMOJ_online-judge/judge/models/choices.py
from collections import defaultdict from operator import itemgetter import pytz from django.utils.translation import gettext_lazy as _ def make_timezones(): data = defaultdict(list) for tz in pytz.all_timezones: if '/' in tz: area, loc = tz.split('/', 1) else: area, lo...
2,069
Python
.py
64
27.5
59
0.589679
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,762
interface.py
DMOJ_online-judge/judge/models/interface.py
import re from django.core.exceptions import ValidationError from django.db import models from django.urls import reverse from django.utils import timezone from django.utils.translation import gettext_lazy as _ from mptt.fields import TreeForeignKey from mptt.models import MPTTModel from judge.models.profile import P...
3,670
Python
.py
78
40.128205
106
0.671989
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,763
problem.py
DMOJ_online-judge/judge/models/problem.py
from enum import IntEnum from operator import attrgetter from django.conf import settings from django.contrib.contenttypes.fields import GenericRelation from django.core.cache import cache from django.core.exceptions import ValidationError from django.core.validators import MaxValueValidator, MinValueValidator, RegexV...
27,975
Python
.py
495
45.006061
119
0.631202
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,764
comment.py
DMOJ_online-judge/judge/models/comment.py
import itertools from django.core.cache import cache from django.core.exceptions import ObjectDoesNotExist from django.core.validators import RegexValidator from django.db import models from django.db.models import CASCADE from django.urls import reverse from django.utils.functional import cached_property from django....
8,340
Python
.py
167
38.371257
118
0.59703
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,765
__init__.py
DMOJ_online-judge/judge/models/__init__.py
from reversion import revisions from judge.models.choices import ACE_THEMES, EFFECTIVE_MATH_ENGINES, MATH_ENGINES_CHOICES, TIMEZONE from judge.models.comment import Comment, CommentLock, CommentVote from judge.models.contest import Contest, ContestMoss, ContestParticipation, ContestProblem, ContestSubmission, \ Co...
1,682
Python
.py
27
60.62963
113
0.829401
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,766
contest.py
DMOJ_online-judge/judge/models/contest.py
from django.core.exceptions import ValidationError from django.core.validators import MaxValueValidator, MinValueValidator, RegexValidator from django.db import models, transaction from django.db.models import CASCADE, Q from django.urls import reverse from django.utils import timezone from django.utils.functional impo...
33,203
Python
.py
566
44.757951
120
0.605016
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,767
submission.py
DMOJ_online-judge/judge/models/submission.py
import hashlib import hmac from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from django.db import models from django.urls import reverse from django.utils import timezone from django.utils.functional import cached_property from django.utils.translation import gettext_lazy as _ fro...
12,490
Python
.py
256
39.851563
116
0.631791
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,768
util.py
DMOJ_online-judge/judge/models/tests/util.py
from django.contrib.auth.models import AnonymousUser, Permission, User from django.utils import timezone from judge.models import BlogPost, Contest, ContestParticipation, ContestProblem, ContestTag, Language, Organization, \ Problem, ProblemGroup, ProblemType, Profile, Solution class CreateModel: model = Non...
10,261
Python
.py
247
31.692308
119
0.599195
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,769
test_blogpost.py
DMOJ_online-judge/judge/models/tests/test_blogpost.py
from django.test import TestCase from judge.models.tests.util import CommonDataMixin, create_blogpost, create_user class BlogPostTestCase(CommonDataMixin, TestCase): @classmethod def setUpTestData(self): super().setUpTestData() self.users.update({ 'staff_blogpost_edit_own': create...
2,642
Python
.py
72
24.083333
81
0.516003
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,770
test_profile.py
DMOJ_online-judge/judge/models/tests/test_profile.py
import base64 import hmac import struct from django.conf import settings from django.test import TestCase from django.utils import timezone from django.utils.encoding import force_bytes from judge.models import Profile from judge.models.tests.util import CommonDataMixin, create_contest, create_contest_participation ...
4,833
Python
.py
105
35.933333
119
0.644208
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,771
test_submission.py
DMOJ_online-judge/judge/models/tests/test_submission.py
from django.test import TestCase from django.utils import timezone from judge.models import ContestSubmission, Language, Submission, SubmissionSource from judge.models.tests.util import CommonDataMixin, create_contest, create_contest_participation, \ create_contest_problem, create_problem, create_user class Subm...
7,150
Python
.py
170
30.682353
100
0.598276
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,772
test_contest.py
DMOJ_online-judge/judge/models/tests/test_contest.py
from django.core.exceptions import ValidationError from django.test import SimpleTestCase, TestCase from django.utils import timezone from judge.models import Contest, ContestParticipation, ContestTag from judge.models.contest import MinValueOrNoneValidator from judge.models.tests.util import CommonDataMixin, create_c...
45,026
Python
.py
976
32.713115
115
0.571471
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,773
test_problem.py
DMOJ_online-judge/judge/models/tests/test_problem.py
from django.core.exceptions import ValidationError from django.test import SimpleTestCase, TestCase from django.utils import timezone from judge.models import Language, LanguageLimit, Problem, Submission from judge.models.problem import VotePermission, disallowed_characters_validator from judge.models.tests.util impor...
18,578
Python
.py
403
33.16129
119
0.578543
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,774
counter.py
DMOJ_online-judge/judge/templatetags/counter.py
from itertools import count from django import template register = template.Library() @register.simple_tag def get_counter(start=1): return count(start).__next__
170
Python
.py
6
26
32
0.79375
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,775
code_highlight.py
DMOJ_online-judge/judge/templatetags/code_highlight.py
from django import template from judge.highlight_code import highlight_code register = template.Library() @register.filter def highlight(code, language): return highlight_code(code, language)
200
Python
.py
6
31
47
0.826316
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,776
strings.py
DMOJ_online-judge/judge/templatetags/strings.py
from django import template register = template.Library() @register.filter(name='split') def split(value): return value.split('\n') @register.filter(name='cutoff') def cutoff(value, length): return value[:int(length)] @register.filter(name='roundfloat') def roundfloat(value, at): return str(round(val...
334
Python
.py
11
27.636364
37
0.746835
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,777
list_processor.py
DMOJ_online-judge/judge/templatetags/list_processor.py
from operator import attrgetter, itemgetter from django import template register = template.Library() @register.filter(name='list_attr') def list_attr(iterable, prop): result = [] for item in iterable: if hasattr(item, str(prop)): result.append(getattr(item, prop)) else: ...
1,361
Python
.py
42
25.595238
59
0.655411
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,778
dicts.py
DMOJ_online-judge/judge/templatetags/dicts.py
from django import template register = template.Library() @register.filter(name='get_dict_item') def get_item(dictionary, key): return dictionary.get(key)
162
Python
.py
5
30
38
0.785714
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,779
demo.py
DMOJ_online-judge/judge/tasks/demo.py
import time from celery import shared_task from judge.utils.celery import Progress __all__ = ('success', 'failure', 'progress') @shared_task def success(): pass @shared_task def failure(): raise RuntimeError('This task always fails.') @shared_task(bind=True) def progress(self, seconds=10): with Pro...
427
Python
.py
16
22.375
49
0.686567
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,780
user.py
DMOJ_online-judge/judge/tasks/user.py
import fnmatch import json import os import re import zipfile from celery import shared_task from django.conf import settings from django.utils.translation import gettext as _ from judge.models import Comment, Problem, Submission from judge.utils.celery import Progress from judge.utils.raw_sql import use_straight_joi...
4,737
Python
.py
101
33.346535
116
0.559359
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,781
__init__.py
DMOJ_online-judge/judge/tasks/__init__.py
from judge.tasks.contest import * from judge.tasks.demo import * from judge.tasks.submission import * from judge.tasks.user import *
133
Python
.py
4
32.25
36
0.813953
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,782
contest.py
DMOJ_online-judge/judge/tasks/contest.py
from celery import shared_task from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.utils.translation import gettext as _ from moss import MOSS from judge.models import Contest, ContestMoss, ContestParticipation, Submission from judge.utils.celery import Progress __all_...
2,674
Python
.py
54
37.87037
115
0.626057
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,783
submission.py
DMOJ_online-judge/judge/tasks/submission.py
from celery import shared_task from django.contrib.auth.models import User from django.core.cache import cache from django.utils import timezone from django.utils.translation import gettext as _ from judge.models import Problem, Profile, Submission from judge.utils.celery import Progress __all__ = ('apply_submission_...
2,913
Python
.py
60
39.883333
117
0.663265
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,784
0106_user_data_download.py
DMOJ_online-judge/judge/migrations/0106_user_data_download.py
# Generated by Django 2.2.12 on 2020-05-03 23:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('judge', '0105_webauthn'), ] operations = [ migrations.AddField( model_name='profile', name='data_last_downloaded', ...
440
Python
.py
13
26.615385
102
0.637441
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,785
0112_language_extensions.py
DMOJ_online-judge/judge/migrations/0112_language_extensions.py
from django.db import migrations def update_language_extensions(apps, schema_editor): Language = apps.get_model('judge', 'Language') extension_mapping = { 'ADA': 'adb', 'AWK': 'awk', 'BASH': 'sh', 'BF': 'c', 'C': 'c', 'C11': 'c', 'CBL': 'cbl', '...
2,226
Python
.py
82
18.658537
106
0.45314
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,786
0001_squashed_0084_contest_formats.py
DMOJ_online-judge/judge/migrations/0001_squashed_0084_contest_formats.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-04-18 02:06 import django.core.validators import django.utils.timezone import jsonfield.fields import mptt.fields import sortedm2m.fields from django.conf import settings from django.db import migrations, models import judge.models.interface import judge.ut...
77,853
Python
.py
754
89.421751
18,489
0.627484
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,787
0108_bleach_problems.py
DMOJ_online-judge/judge/migrations/0108_bleach_problems.py
# Generated by Django 2.2.12 on 2020-06-03 20:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('judge', '0107_submission_lock'), ] operations = [ migrations.AlterModelOptions( name='problem', options={'permissio...
1,083
Python
.py
17
55.588235
570
0.663525
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,788
0125_organization_classes.py
DMOJ_online-judge/judge/migrations/0125_organization_classes.py
# Generated by Django 2.2.24 on 2021-10-31 20:02 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('judge', '0124_contest_show_short_display'), ] operations = [ migrations.AddField( model_name='...
2,890
Python
.py
47
50
260
0.636716
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,789
0119_hide_problem_authors.py
DMOJ_online-judge/judge/migrations/0119_hide_problem_authors.py
# Generated by Django 2.2.24 on 2021-06-06 17:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('judge', '0118_convert_to_dates'), ] operations = [ migrations.AddField( model_name='contest', name='hide_problem_au...
502
Python
.py
13
31.384615
156
0.659091
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,790
0099_contest_problem_label.py
DMOJ_online-judge/judge/migrations/0099_contest_problem_label.py
# Generated by Django 2.2.11 on 2020-03-24 15:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('judge', '0098_view_contest_scoreboard'), ] operations = [ migrations.AddField( model_name='contest', name='problem_...
1,223
Python
.py
17
63.823529
510
0.677769
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,791
0095_organization_logo_override.py
DMOJ_online-judge/judge/migrations/0095_organization_logo_override.py
# Generated by Django 2.1.12 on 2019-10-23 00:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('judge', '0094_submissiontestcase_unique_together'), ] operations = [ migrations.AddField( model_name='organization', ...
574
Python
.py
13
36.923077
206
0.678058
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,792
0110_default_output_prefix_override.py
DMOJ_online-judge/judge/migrations/0110_default_output_prefix_override.py
# Generated by Django 2.2.15 on 2020-08-23 18:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('judge', '0109_scratch_codes'), ] operations = [ migrations.AlterField( model_name='contestproblem', name='output_pr...
472
Python
.py
13
29.076923
118
0.654185
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,793
0097_participation_is_disqualified.py
DMOJ_online-judge/judge/migrations/0097_participation_is_disqualified.py
# Generated by Django 2.2.7 on 2019-11-10 02:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('judge', '0096_profile_language_set_default'), ] operations = [ migrations.AddField( model_name='contestparticipation', ...
791
Python
.py
18
35.555556
166
0.665365
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,794
0111_blank_assignees_ticket.py
DMOJ_online-judge/judge/migrations/0111_blank_assignees_ticket.py
# Generated by Django 2.2.15 on 2020-09-13 16:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('judge', '0110_default_output_prefix_override'), ] operations = [ migrations.AlterField( model_name='ticket', name='...
482
Python
.py
13
29.846154
132
0.653017
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,795
0122_username_display_override.py
DMOJ_online-judge/judge/migrations/0122_username_display_override.py
# Generated by Django 2.2.24 on 2021-08-09 01:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('judge', '0121_per_problem_sub_access_control'), ] operations = [ migrations.AddField( model_name='profile', name='u...
515
Python
.py
13
32.384615
150
0.661972
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,796
0096_profile_language_set_default.py
DMOJ_online-judge/judge/migrations/0096_profile_language_set_default.py
# Generated by Django 2.2.6 on 2019-11-08 01:27 import django.db.models.deletion from django.db import migrations, models import judge.models.runtime def create_python3(apps, schema_editor): Language = apps.get_model('judge', 'Language') Language.objects.get_or_create(key='PY3', defaults={'name': 'Python 3'...
871
Python
.py
19
39.578947
204
0.706161
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,797
0088_private_contests.py
DMOJ_online-judge/judge/migrations/0088_private_contests.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-09-02 15:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('judge', '0087_problem_resource_limits'), ] operations = [ migrations.AlterModelOptions( name='contest',...
1,610
Python
.py
33
39.424242
376
0.627463
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,798
0098_view_contest_scoreboard.py
DMOJ_online-judge/judge/migrations/0098_view_contest_scoreboard.py
# Generated by Django 2.2.11 on 2020-03-15 19:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('judge', '0097_participation_is_disqualified'), ] operations = [ migrations.AddField( model_name='contest', name='vi...
577
Python
.py
13
37.153846
215
0.677996
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)
35,799
0104_contestproblem_maxsubs.py
DMOJ_online-judge/judge/migrations/0104_contestproblem_maxsubs.py
# Generated by Django 2.2.12 on 2020-05-04 13:46 from django.db import migrations, models import judge.models.contest def zero_to_none(apps, schema_editor): ContestProblem = apps.get_model('judge', 'ContestProblem') ContestProblem.objects.filter(max_submissions=0).update(max_submissions=None) def none_to_...
1,115
Python
.py
21
46.857143
273
0.725092
DMOJ/online-judge
918
355
202
AGPL-3.0
9/5/2024, 5:15:11 PM (Europe/Amsterdam)