index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
80,690
rsiemens/incentives-app
refs/heads/master
/migrations/versions/4ad5671ea04c_.py
"""empty message Revision ID: 4ad5671ea04c Revises: None Create Date: 2015-05-30 10:40:48.209990 """ # revision identifiers, used by Alembic. revision = '4ad5671ea04c' down_revision = None from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - please adjust! ###...
{"/app/users/decorators.py": ["/app/users/models.py"], "/shell.py": ["/app/users/models.py"], "/app/users/view.py": ["/app/users/mail.py", "/app/users/models.py", "/app/users/forms.py", "/app/users/decorators.py"], "/tests.py": ["/app/users/models.py"]}
80,691
rsiemens/incentives-app
refs/heads/master
/functional_tests/test_register_login.py
import unittest from selenium.webdriver.common.keys import Keys from base import FunctionalTest class NewUserTest(FunctionalTest): def test_cannot_login_without_register(self): # User points browser to homepage self.browser.get(self.server_url) # Notices title and header self.ass...
{"/app/users/decorators.py": ["/app/users/models.py"], "/shell.py": ["/app/users/models.py"], "/app/users/view.py": ["/app/users/mail.py", "/app/users/models.py", "/app/users/forms.py", "/app/users/decorators.py"], "/tests.py": ["/app/users/models.py"]}
80,692
rsiemens/incentives-app
refs/heads/master
/tests.py
# This is gross and poorly writen unit tests. # I will be rewritting this after I finish the FT import os from app import app, db from app.users.models import User, Incentive import unittest class AppTestCase(unittest.TestCase): @classmethod def setUpClass(cls): _basedir = os.path.abspath(os.path.dirname(__fi...
{"/app/users/decorators.py": ["/app/users/models.py"], "/shell.py": ["/app/users/models.py"], "/app/users/view.py": ["/app/users/mail.py", "/app/users/models.py", "/app/users/forms.py", "/app/users/decorators.py"], "/tests.py": ["/app/users/models.py"]}
80,699
happyAnger6/algorithm
refs/heads/main
/python/leetcode/p410_dp.py
def splitArray(nums, m): n = len(nums) dp = [[float("inf") for _ in range(m+1)] for _ in range(n+1)] dp[0][0] = 0 prefix_sum = [0] for num in nums: prefix_sum.append(prefix_sum[-1] + num) for i in range(1, n+1): for j in range(1, min(i, m)+1): for k in range(i): ...
{"/python/sword_offer/test_offer07.py": ["/python/sword_offer/offer07.py"]}
80,700
happyAnger6/algorithm
refs/heads/main
/python/leetcode/p410.py
def splitArray(nums, m): def split_cnts(nums, max_sum): sum = 0 cnt = 1 for num in nums: if sum + num > max_sum: sum = num cnt += 1 else: sum += num return cnt min_sum, max_sum = max(nums), sum(nums) lef...
{"/python/sword_offer/test_offer07.py": ["/python/sword_offer/offer07.py"]}
80,701
happyAnger6/algorithm
refs/heads/main
/python/sword_offer/offer07.py
class TreeNode: def __init__(self, x) -> None: self.val = x self.left = None self.right = None class Solution: def buildTree(self, preorder, inorder): in_map = {} for i, num in enumerate(inorder): in_map[num] = i pre_i = 0; def build_root(p...
{"/python/sword_offer/test_offer07.py": ["/python/sword_offer/offer07.py"]}
80,702
happyAnger6/algorithm
refs/heads/main
/python/sword_offer/test_offer07.py
from collections import deque from .offer07 import Solution def tree_to_list(root): if root is None: return [] results = [] q = deque() q.append(root) while q: n = len(q) new_node = 0 while n > 0: n -= 1 node = q.popleft() ...
{"/python/sword_offer/test_offer07.py": ["/python/sword_offer/offer07.py"]}
80,739
FengyiLi1102/alloy_phase_transition
refs/heads/master
/transition.py
import matplotlib.pylab as plb import matplotlib.pyplot as plt import numpy as np import gc import pandas as pd from scipy import constants import math as ma k = constants.value(u'Boltzmann constant in eV/K') params = { 'legend.fontsize': 'x-large', 'figure.figsize': (10, 8), 'axes.labelsize': 20, 'ax...
{"/main.py": ["/alloy2D.py"], "/swapInfo.py": ["/getNeighbour.py"], "/order2D.py": ["/getNeighbour.py"], "/alloy2D.py": ["/set_up.py", "/getNeighbour.py", "/order2D.py", "/orderRandom.py", "/swapInfo.py"]}
80,740
FengyiLi1102/alloy_phase_transition
refs/heads/master
/main.py
import numpy as np import pandas as pd from alloy2D import alloy2D import matplotlib.pyplot as plt from matplotlib.pyplot import figure import matplotlib.pylab as pylab import seaborn as sns import gc ####################################################################################### # ...
{"/main.py": ["/alloy2D.py"], "/swapInfo.py": ["/getNeighbour.py"], "/order2D.py": ["/getNeighbour.py"], "/alloy2D.py": ["/set_up.py", "/getNeighbour.py", "/order2D.py", "/orderRandom.py", "/swapInfo.py"]}
80,741
FengyiLi1102/alloy_phase_transition
refs/heads/master
/getNeighbour.py
import numpy as np def getNeighbour (size, x, y): """ Description: GETNEIGHBOUR returns the position of a neighbouring atom. Input arguments: -> size: The size of the simulation box int -> x: X coordinate of first atom ...
{"/main.py": ["/alloy2D.py"], "/swapInfo.py": ["/getNeighbour.py"], "/order2D.py": ["/getNeighbour.py"], "/alloy2D.py": ["/set_up.py", "/getNeighbour.py", "/order2D.py", "/orderRandom.py", "/swapInfo.py"]}
80,742
FengyiLi1102/alloy_phase_transition
refs/heads/master
/swapInfo.py
import numpy as np from scipy import constants from getNeighbour import * # Globle scientific constant k_B = constants.value(u'Boltzmann constant in eV/K') def swapInfo(ixa, iya, dab, natoms, config, size, Eam, T): """ Description: SWAPINFO returns the position of the neighbour and the energy change. ...
{"/main.py": ["/alloy2D.py"], "/swapInfo.py": ["/getNeighbour.py"], "/order2D.py": ["/getNeighbour.py"], "/alloy2D.py": ["/set_up.py", "/getNeighbour.py", "/order2D.py", "/orderRandom.py", "/swapInfo.py"]}
80,743
FengyiLi1102/alloy_phase_transition
refs/heads/master
/set_up.py
import numpy as np import matplotlib.pyplot as plt def set_up(cellA, cellB, size, fraction): """ Description: SET_UP initiates the simulation environment which is the alloy matrix. Positional arguments: -> cellA: Host atom (1) int8 -> cellB: Alloy atom (2) ...
{"/main.py": ["/alloy2D.py"], "/swapInfo.py": ["/getNeighbour.py"], "/order2D.py": ["/getNeighbour.py"], "/alloy2D.py": ["/set_up.py", "/getNeighbour.py", "/order2D.py", "/orderRandom.py", "/swapInfo.py"]}
80,744
FengyiLi1102/alloy_phase_transition
refs/heads/master
/order2D.py
import numpy as np from getNeighbour import * def order2D(config): """ Description: ORDER2D produces a distribtion function of the order parameter. The order parameter is just the number of AB bonds around a site. Input arguments: -> config: The configuration ...
{"/main.py": ["/alloy2D.py"], "/swapInfo.py": ["/getNeighbour.py"], "/order2D.py": ["/getNeighbour.py"], "/alloy2D.py": ["/set_up.py", "/getNeighbour.py", "/order2D.py", "/orderRandom.py", "/swapInfo.py"]}
80,745
FengyiLi1102/alloy_phase_transition
refs/heads/master
/orderRandom.py
import numpy as np import math def orderRandom(Z, f): """ Description: ORDERRANDOM produces a distribtion function of the order parameter for a random alloy. The order parameter is just the number of AB bonds around a site. The distribution is computed from the binomial distribution. Input ...
{"/main.py": ["/alloy2D.py"], "/swapInfo.py": ["/getNeighbour.py"], "/order2D.py": ["/getNeighbour.py"], "/alloy2D.py": ["/set_up.py", "/getNeighbour.py", "/order2D.py", "/orderRandom.py", "/swapInfo.py"]}
80,746
FengyiLi1102/alloy_phase_transition
refs/heads/master
/alloy2D.py
import numpy as np import matplotlib.pyplot as plt from matplotlib.pyplot import figure from set_up import set_up from getNeighbour import * from order2D import order2D from orderRandom import orderRandom from swapInfo import swapInfo from scipy import constants import gc import matplotlib.pylab as pylab # Globle set...
{"/main.py": ["/alloy2D.py"], "/swapInfo.py": ["/getNeighbour.py"], "/order2D.py": ["/getNeighbour.py"], "/alloy2D.py": ["/set_up.py", "/getNeighbour.py", "/order2D.py", "/orderRandom.py", "/swapInfo.py"]}
80,748
prateek1998/odoo-app
refs/heads/master
/src/app/migrations/0002_auto_20210804_0105.py
# Generated by Django 3.2.5 on 2021-08-03 19:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0001_initial'), ] operations = [ migrations.AlterField( model_name='manual', name='firmware', fie...
{"/src/app/views.py": ["/src/app/models.py"], "/src/app/admin.py": ["/src/app/models.py"]}
80,749
prateek1998/odoo-app
refs/heads/master
/src/app/migrations/0001_initial.py
# Generated by Django 3.2.5 on 2021-08-03 19:32 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Manual', fields=[ ('id', models.BigAutoFiel...
{"/src/app/views.py": ["/src/app/models.py"], "/src/app/admin.py": ["/src/app/models.py"]}
80,750
prateek1998/odoo-app
refs/heads/master
/src/app/models.py
from django.db import models import datetime # Create your models here. class Manual(models.Model): proxy_ip = models.TextField(default="10.210.210.117") port_no = models.TextField(default="2004") firmware = models.TextField(default="WC_16_10_0015.swi") tftp_server = models.TextField(default="10.101.10...
{"/src/app/views.py": ["/src/app/models.py"], "/src/app/admin.py": ["/src/app/models.py"]}
80,751
prateek1998/odoo-app
refs/heads/master
/src/app/views.py
from django.shortcuts import redirect, render from django.contrib.auth.forms import UserCreationForm, AuthenticationForm from django.http import HttpResponse import sweetify from django.contrib.auth.decorators import login_required from django.contrib.auth import login, logout from django.core.files.storage import File...
{"/src/app/views.py": ["/src/app/models.py"], "/src/app/admin.py": ["/src/app/models.py"]}
80,752
prateek1998/odoo-app
refs/heads/master
/src/app/migrations/0006_auto_20210807_1305.py
# Generated by Django 3.2.5 on 2021-08-07 07:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0005_alter_firmware_records_time'), ] operations = [ migrations.AddField( model_name='firmware_records', name...
{"/src/app/views.py": ["/src/app/models.py"], "/src/app/admin.py": ["/src/app/models.py"]}
80,753
prateek1998/odoo-app
refs/heads/master
/src/app/migrations/0003_firmware_records.py
# Generated by Django 3.2.5 on 2021-08-04 16:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0002_auto_20210804_0105'), ] operations = [ migrations.CreateModel( name='Firmware_Records', fields=[ ...
{"/src/app/views.py": ["/src/app/models.py"], "/src/app/admin.py": ["/src/app/models.py"]}
80,754
prateek1998/odoo-app
refs/heads/master
/src/app/admin.py
from django.contrib import admin from .models import Manual from .models import Firmware_Records # Register your models here. admin.site.register(Manual) admin.site.register(Firmware_Records)
{"/src/app/views.py": ["/src/app/models.py"], "/src/app/admin.py": ["/src/app/models.py"]}
80,755
prateek1998/odoo-app
refs/heads/master
/src/Switches_Connecter/connecter.py
from time import sleep import telnetlib import re from netmiko import ConnectHandler from strip_ansi import strip_ansi import xmlrpc.client # Defining Vars for ODOO API call # #url = "https://traversa-odoo-traversa-uat-2889919.dev.odoo.com/" #db = "traversa-odoo-traversa-uat-2889919" #username = "pselvarajan@traversa...
{"/src/app/views.py": ["/src/app/models.py"], "/src/app/admin.py": ["/src/app/models.py"]}
80,756
prateek1998/odoo-app
refs/heads/master
/src/app/migrations/0007_rename_serial_no_firmware_records_serial.py
# Generated by Django 3.2.5 on 2021-08-07 07:37 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('app', '0006_auto_20210807_1305'), ] operations = [ migrations.RenameField( model_name='firmware_records', old_name='serial_n...
{"/src/app/views.py": ["/src/app/models.py"], "/src/app/admin.py": ["/src/app/models.py"]}
80,757
prateek1998/odoo-app
refs/heads/master
/src/app/migrations/0005_alter_firmware_records_time.py
# Generated by Django 3.2.5 on 2021-08-04 16:57 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0004_alter_firmware_records_time'), ] operations = [ migrations.AlterField( model_name='firmware_records'...
{"/src/app/views.py": ["/src/app/models.py"], "/src/app/admin.py": ["/src/app/models.py"]}
80,758
prateek1998/odoo-app
refs/heads/master
/src/app/urls.py
from django.urls import path from . import views urlpatterns = [ # path('',views.home_view, name='home'), path('',views.app_view, name='app'), path('login',views.login_view, name='login'), path('logout',views.logout_view, name='logout'), path('register',views.register_view, name='register'), pa...
{"/src/app/views.py": ["/src/app/models.py"], "/src/app/admin.py": ["/src/app/models.py"]}
80,773
liudefang/myboke
refs/heads/master
/blog/urls.py
# -*- encoding: utf-8 -*- # @Time : 2018-03-27 22:29 # @Author : mike.liu # @File : urls.py from django.conf.urls import url from blog import views app_name = 'blog' urlpatterns = [ url(r'^$',views.blog_title,name="blog_title"), url(r'(?P<article_id>\d)/$',views.blog_article,name="blog_detail") ]
{"/account/views.py": ["/account/forms.py"]}
80,774
liudefang/myboke
refs/heads/master
/account/forms.py
# -*- encoding: utf-8 -*- # @Time : 2018-04-05 18:12 # @Author : mike.liu # @File : forms.py from django import forms class LoginForm(forms.Form): username = forms.CharField() password = forms.CharField(widget=forms.PasswordInput)
{"/account/views.py": ["/account/forms.py"]}
80,775
liudefang/myboke
refs/heads/master
/account/urls.py
# -*- encoding: utf-8 -*- # @Time : 2018-04-05 18:06 # @Author : mike.liu # @File : urls.py.py from django.conf.urls import url from django.contrib.auth import auth_views from account import views app_name = 'account' urlpatterns = [ #url(r'^login/$',views.user_login,name="user_login"), #自定义的登录 url...
{"/account/views.py": ["/account/forms.py"]}
80,776
liudefang/myboke
refs/heads/master
/account/views.py
# Create your views here. from django.contrib.auth import authenticate,login #① from django.http import HttpResponse from django.shortcuts import render from account.forms import LoginForm def user_login(request): #② if request.method == "POST": #③ login_form = LoginForm(request.POST) #④ ...
{"/account/views.py": ["/account/forms.py"]}
80,795
sbrems/70cm
refs/heads/master
/pycombine/data.py
import numpy as np from astropy.io import fits from astropy.table import Table from astropy.time import Time from astropy.io import ascii import darkflat from misc import read_fits import fix_pix from params import * def find_quad(frame,bpm): ylen,xlen = frame.shape threshold = 0.9*np.median(frame) + 3*np.st...
{"/combine.py": ["/pycombine/params.py"], "/corr_flats.py": ["/pycombine/params.py"]}
80,796
sbrems/70cm
refs/heads/master
/pycombine/align.py
import numpy as np from multiprocessing import Pool from scipy.ndimage.interpolation import shift from scipy.signal import fftconvolve from gaussfitter import gaussfit class subreg: def __init__(self,reference): self.reference=reference def __call__(self,im): kernel=self.reference[::-1,::-1] ...
{"/combine.py": ["/pycombine/params.py"], "/corr_flats.py": ["/pycombine/params.py"]}
80,797
sbrems/70cm
refs/heads/master
/pycombine/badpixel.py
import numpy as np from astropy.stats import sigma_clip from misc import read_fits def make_bpm(flatdir,sigma=3): '''Assuming the flats are sorted. E.g. in increasing or decreasing intensity. Then clip the Values which are of. Using for loops. So slow. Returns a matrix which is 1 whre a bp is found.''' pr...
{"/combine.py": ["/pycombine/params.py"], "/corr_flats.py": ["/pycombine/params.py"]}
80,798
sbrems/70cm
refs/heads/master
/pycombine/params.py
# parameterfiles for NICI redution #Header names hexpt = 'EXPTIME' hpa = 'PA' #File names #misc side2quad = {'tl':1,'bl':2,'br':3,'tr':4}
{"/combine.py": ["/pycombine/params.py"], "/corr_flats.py": ["/pycombine/params.py"]}
80,799
sbrems/70cm
refs/heads/master
/pycombine/cut_star.py
import numpy as np from astropy.io import fits from astropy.io import ascii from astropy.table import Table from multiprocessing import Pool from scipy.ndimage.interpolation import shift from scipy.signal import fftconvolve from gaussfitter import gaussfit from params import * class subreg: def __init__(self,ref...
{"/combine.py": ["/pycombine/params.py"], "/corr_flats.py": ["/pycombine/params.py"]}
80,800
sbrems/70cm
refs/heads/master
/combine.py
import os from astropy.io import fits from astropy import wcs from astropy import units as u from astropy.table import Table import numpy as np import matplotlib.pyplot as plt from skimage.feature import register_translation from scipy.ndimage.interpolation import rotate from scipy.ndimage.interpolation import shift fr...
{"/combine.py": ["/pycombine/params.py"], "/corr_flats.py": ["/pycombine/params.py"]}
80,801
sbrems/70cm
refs/heads/master
/corr_flats.py
import os from astropy.io import fits from astropy import wcs from astropy import units as u from astropy.table import Table import numpy as np import matplotlib.pyplot as plt from skimage.feature import register_translation from scipy.ndimage.interpolation import rotate from scipy.ndimage.interpolation import shift fr...
{"/combine.py": ["/pycombine/params.py"], "/corr_flats.py": ["/pycombine/params.py"]}
80,802
sbrems/70cm
refs/heads/master
/pycombine/darkflat.py
import numpy as np from misc import read_fits def sort(direct,hexpt): '''returns the median of all same exposures and a list with the exposure times (sorted)''' fns,data,header = read_fits(direct,ending='.fit') exptimes = [] for ihead in header: exptimes.append(ihead[hexpt]) uexpts = sorte...
{"/combine.py": ["/pycombine/params.py"], "/corr_flats.py": ["/pycombine/params.py"]}
80,804
jpdyuki/NTHUOJ_web
refs/heads/master
/users/templatetags/profile_filters.py
""" The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,805
jpdyuki/NTHUOJ_web
refs/heads/master
/team/models.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,806
jpdyuki/NTHUOJ_web
refs/heads/master
/users/urls.py
""" The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,807
jpdyuki/NTHUOJ_web
refs/heads/master
/utils/user_info.py
""" The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,808
jpdyuki/NTHUOJ_web
refs/heads/master
/utils/templatetags/utils_filters.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,809
jpdyuki/NTHUOJ_web
refs/heads/master
/utils/decorators.py
""" The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,810
jpdyuki/NTHUOJ_web
refs/heads/master
/utils/config_info.py
""" The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,811
jpdyuki/NTHUOJ_web
refs/heads/master
/status/forms.py
""" The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,812
jpdyuki/NTHUOJ_web
refs/heads/master
/contest/forms.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,813
jpdyuki/NTHUOJ_web
refs/heads/master
/index/views.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,814
jpdyuki/NTHUOJ_web
refs/heads/master
/install.py
""" The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,815
jpdyuki/NTHUOJ_web
refs/heads/master
/contest/test_clarification.py
from django.core.urlresolvers import reverse from contest.models import Contest, Clarification from utils.nthuoj_testcase import NTHUOJ_TestCase_Complex02 from utils.test_helper import * class Tester_Contest_ask(NTHUOJ_TestCase_Complex02): """ test view 'contest:ask' """ def test_01_login(self): # 1...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,816
jpdyuki/NTHUOJ_web
refs/heads/master
/users/views.py
""" The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,817
jpdyuki/NTHUOJ_web
refs/heads/master
/utils/nthuoj_testcase.py
from django.test import TestCase, Client from time import sleep from datetime import datetime, timedelta from utils.test_helper import * class NTHUOJ_TestCase_Basic(TestCase): def setUp(self): create_test_directory() create_test_admin_user() create_test_judge_user() create_test_n...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,818
jpdyuki/NTHUOJ_web
refs/heads/master
/contest/contest_info.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,819
jpdyuki/NTHUOJ_web
refs/heads/master
/team/views.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,820
jpdyuki/NTHUOJ_web
refs/heads/master
/status/status_info.py
from datetime import datetime from django.db.models import Q from contest.contest_info import get_running_contests, \ get_freeze_time_datetime, get_contestant from contest.models import Contest from problem.models import Problem, Submission, SubmissionDetail from users.models import User from utils.user_info impor...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,821
jpdyuki/NTHUOJ_web
refs/heads/master
/problem/test_tag.py
from django.core.urlresolvers import reverse from problem.models import Problem from utils.nthuoj_testcase import NTHUOJ_TestCase_Basic from utils.test_helper import * class Tester_Problem_tag(NTHUOJ_TestCase_Basic): """ test view 'problem:tag' """ def test_01_login(self): # 1.user does not login ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,822
jpdyuki/NTHUOJ_web
refs/heads/master
/group/views.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,823
jpdyuki/NTHUOJ_web
refs/heads/master
/users/admin.py
""" The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,824
jpdyuki/NTHUOJ_web
refs/heads/master
/status/templatetags/status_filters.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,825
jpdyuki/NTHUOJ_web
refs/heads/master
/contest/contest_archive.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,826
jpdyuki/NTHUOJ_web
refs/heads/master
/problem/urls.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,827
jpdyuki/NTHUOJ_web
refs/heads/master
/users/models.py
""" The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,828
jpdyuki/NTHUOJ_web
refs/heads/master
/group/models.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,829
jpdyuki/NTHUOJ_web
refs/heads/master
/utils/log_info.py
""" The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,830
jpdyuki/NTHUOJ_web
refs/heads/master
/contest/test_contest.py
from django.test import TestCase, Client from django.core.urlresolvers import reverse from datetime import datetime, timedelta from contest.models import Contest from utils.nthuoj_testcase import NTHUOJ_TestCase_Basic from utils.nthuoj_testcase import NTHUOJ_TestCase_Complex01, NTHUOJ_TestCase_Complex02 from utils.te...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,831
jpdyuki/NTHUOJ_web
refs/heads/master
/contest/templatetags/contest_extras.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,832
jpdyuki/NTHUOJ_web
refs/heads/master
/func.py
""" The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,833
jpdyuki/NTHUOJ_web
refs/heads/master
/utils/test_helper.py
from django.test import Client import os import random import string import filecmp import shutil from datetime import datetime, timedelta from problem.models import Problem, Tag, Testcase, Submission from contest.models import Contest, Clarification from contest.register_contest import add_contestants from users.mod...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,834
jpdyuki/NTHUOJ_web
refs/heads/master
/problem/views.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,835
jpdyuki/NTHUOJ_web
refs/heads/master
/problem/test_testcase.py
from django.core.urlresolvers import reverse from problem.models import Problem from utils.nthuoj_testcase import NTHUOJ_TestCase_Basic from utils.test_helper import * class Tester_Problem_testcase(NTHUOJ_TestCase_Basic): """ test view 'problem:testcase' """ def test_01_login(self): # 1.user does no...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,836
jpdyuki/NTHUOJ_web
refs/heads/master
/problem/models.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,837
jpdyuki/NTHUOJ_web
refs/heads/master
/contest/public_user.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,838
jpdyuki/NTHUOJ_web
refs/heads/master
/users/forms.py
""" The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,839
jpdyuki/NTHUOJ_web
refs/heads/master
/contest/views.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,840
jpdyuki/NTHUOJ_web
refs/heads/master
/status/views.py
""" The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,841
jpdyuki/NTHUOJ_web
refs/heads/master
/status/test_status.py
from django.core.urlresolvers import reverse from users.forms import CodeSubmitForm from utils.nthuoj_testcase import NTHUOJ_TestCase_Complex01 from utils.test_helper import * from utils.file_info import get_extension class Tester_Status_error_message(NTHUOJ_TestCase_Complex01): """ test view 'status:error_messa...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,842
jpdyuki/NTHUOJ_web
refs/heads/master
/utils/render_helper.py
""" The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,843
jpdyuki/NTHUOJ_web
refs/heads/master
/problem/forms.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,844
jpdyuki/NTHUOJ_web
refs/heads/master
/group/urls.py
from django.conf.urls import patterns, include, url from django.contrib import admin import views urlpatterns = patterns('', url(r'^viewall_contest/(?P<group_id>\d+)/$', views.get_running_contest, name='viewall_contest'), url(r'^viewall_archive/(?P<group_id>\d+)/$', views.get_ended_contest, name='viewall_archi...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,845
jpdyuki/NTHUOJ_web
refs/heads/master
/contest/urls.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,846
jpdyuki/NTHUOJ_web
refs/heads/master
/problem/test_problem.py
from django.core.urlresolvers import reverse from problem.problem_info import get_problem_file_extension from problem.models import Problem, Submission from utils.nthuoj_testcase import NTHUOJ_TestCase_Basic from utils.test_helper import * class Tester_Problem_new(NTHUOJ_TestCase_Basic): """ test view 'problem:n...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,847
jpdyuki/NTHUOJ_web
refs/heads/master
/contest/scoreboard.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,848
jpdyuki/NTHUOJ_web
refs/heads/master
/contest/models.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,849
jpdyuki/NTHUOJ_web
refs/heads/master
/nthuoj/urls.py
from django.conf.urls import patterns, include, url from django.contrib import admin from django.conf import settings from ckeditor.views import upload, browse from utils.decorators import subjudge_auth_required from django.views.decorators.csrf import csrf_exempt import autocomplete_light # OP autodiscover autocomple...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,850
jpdyuki/NTHUOJ_web
refs/heads/master
/group/announce.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,851
jpdyuki/NTHUOJ_web
refs/heads/master
/problem/problem_info.py
import os.path from utils import config_info from problem.models import Problem, Testcase from django.db.models import Q from datetime import datetime SPECIAL_PATH = config_info.get_config('path', 'special_judge_path') PARTIAL_PATH = config_info.get_config('path', 'partial_judge_path') TESTCASE_PATH = config_info.get_...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,852
jpdyuki/NTHUOJ_web
refs/heads/master
/nthuoj/settings.py
""" Django settings for nthuoj project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # -*- encoding=UTF-8 -*- # Build paths inside the project like this: os.pat...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,853
jpdyuki/NTHUOJ_web
refs/heads/master
/contest/register_contest.py
''' The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,854
jpdyuki/NTHUOJ_web
refs/heads/master
/utils/rejudge.py
""" The MIT License (MIT) Copyright (c) 2014 NTHUOJ team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
{"/users/templatetags/profile_filters.py": ["/users/models.py", "/utils/user_info.py"], "/team/models.py": ["/users/models.py"], "/utils/user_info.py": ["/contest/models.py", "/problem/models.py", "/users/models.py", "/utils/log_info.py", "/utils/config_info.py"], "/utils/decorators.py": ["/utils/user_info.py"], "/stat...
80,856
simplybanana/stravadashboard
refs/heads/master
/Display.py
import urllib3 import requests import pandas as pd import datetime urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) def getAccessToken(clientid,clientsecret,refreshtoken): auth_url = "https://www.strava.com/oauth/token?" auth_param = { "client_id": clientid, "...
{"/FlaskApp.py": ["/DbThings.py", "/Display.py"], "/DbThings.py": ["/Display.py"]}
80,857
simplybanana/stravadashboard
refs/heads/master
/FlaskApp.py
from flask import Flask, render_template, redirect,url_for,request,session import DbThings import Display import os import datetime app = Flask(__name__) app.secret_key = os.urandom(24) @app.route('/') def base_url(): return redirect(url_for('testing')) @app.route('/login/', methods=['GET','POST']...
{"/FlaskApp.py": ["/DbThings.py", "/Display.py"], "/DbThings.py": ["/Display.py"]}
80,858
simplybanana/stravadashboard
refs/heads/master
/DbThings.py
import sqlite3 import hashlib import Display import datetime import pandas as pd class DB(object): def __init__(self): self.conn = sqlite3.connect('Strava.db') self.c = self.conn.cursor() def createdb(): conn = sqlite3.connect('Strava.db') c = conn.cursor() c.execute(...
{"/FlaskApp.py": ["/DbThings.py", "/Display.py"], "/DbThings.py": ["/Display.py"]}
80,923
KaisongHuang/spark-nlp
refs/heads/master
/htmltextparser.py
import html.parser class HTMLTextParser(html.parser.HTMLParser): def __init__(self): super(HTMLTextParser, self).__init__() self.result = [] def handle_data(self, d): self.result.append(d) def get_text(self): return ' '.join(self.result)
{"/libs/allen/dep.py": ["/libs/task.py"], "/libs/stanfordnlp/dep.py": ["/libs/task.py"], "/libs/nltk/pos.py": ["/libs/task.py"], "/libs/stanfordnlp/pos.py": ["/libs/task.py"], "/libs/allen/pos.py": ["/libs/task.py"], "/libs/spacy/ner.py": ["/libs/task.py"], "/libs/nltk/ner.py": ["/libs/task.py"], "/main.py": ["/libs/al...
80,924
KaisongHuang/spark-nlp
refs/heads/master
/libs/allen/dep.py
from allennlp.predictors.predictor import Predictor from spacy import load from ..task import Task class AllenNLPDependencyParsing(Task): def __init__(self, gpu): self.gpu = gpu self.nlp = load("en", disable=["tagger", "ner"]) self.predictor = Predictor.from_path( "https://s3...
{"/libs/allen/dep.py": ["/libs/task.py"], "/libs/stanfordnlp/dep.py": ["/libs/task.py"], "/libs/nltk/pos.py": ["/libs/task.py"], "/libs/stanfordnlp/pos.py": ["/libs/task.py"], "/libs/allen/pos.py": ["/libs/task.py"], "/libs/spacy/ner.py": ["/libs/task.py"], "/libs/nltk/ner.py": ["/libs/task.py"], "/main.py": ["/libs/al...
80,925
KaisongHuang/spark-nlp
refs/heads/master
/libs/stanfordnlp/dep.py
import os import stanfordnlp import torch from ..task import Task torch.backends.cudnn.enabled = False class StanfordNLPDependencyParsing(Task): def __init__(self, gpu): use_gpu = False if gpu >= 0: os.environ["CUDA_VISIBLE_DEVICES"] = str(gpu) use_gpu = True #...
{"/libs/allen/dep.py": ["/libs/task.py"], "/libs/stanfordnlp/dep.py": ["/libs/task.py"], "/libs/nltk/pos.py": ["/libs/task.py"], "/libs/stanfordnlp/pos.py": ["/libs/task.py"], "/libs/allen/pos.py": ["/libs/task.py"], "/libs/spacy/ner.py": ["/libs/task.py"], "/libs/nltk/ner.py": ["/libs/task.py"], "/main.py": ["/libs/al...
80,926
KaisongHuang/spark-nlp
refs/heads/master
/libs/task.py
class Task(object): def setup(self, config): print(config) def run(self, data): print(data)
{"/libs/allen/dep.py": ["/libs/task.py"], "/libs/stanfordnlp/dep.py": ["/libs/task.py"], "/libs/nltk/pos.py": ["/libs/task.py"], "/libs/stanfordnlp/pos.py": ["/libs/task.py"], "/libs/allen/pos.py": ["/libs/task.py"], "/libs/spacy/ner.py": ["/libs/task.py"], "/libs/nltk/ner.py": ["/libs/task.py"], "/main.py": ["/libs/al...
80,927
KaisongHuang/spark-nlp
refs/heads/master
/libs/nltk/pos.py
import nltk from ..task import Task class NLTKPartOfSpeechTagger(Task): def __init__(self, config): self.config = config nltk.download("averaged_perceptron_tagger") def run(self, data): paragraphs = [] words = 0 for paragraph in data: sentences = [] ...
{"/libs/allen/dep.py": ["/libs/task.py"], "/libs/stanfordnlp/dep.py": ["/libs/task.py"], "/libs/nltk/pos.py": ["/libs/task.py"], "/libs/stanfordnlp/pos.py": ["/libs/task.py"], "/libs/allen/pos.py": ["/libs/task.py"], "/libs/spacy/ner.py": ["/libs/task.py"], "/libs/nltk/ner.py": ["/libs/task.py"], "/main.py": ["/libs/al...
80,928
KaisongHuang/spark-nlp
refs/heads/master
/libs/stanfordnlp/pos.py
import os import stanfordnlp import torch from ..task import Task torch.backends.cudnn.enabled = False class StanfordNLPPartOfSpeechTagger(Task): def __init__(self, gpu): use_gpu = False if gpu >= 0: os.environ["CUDA_VISIBLE_DEVICES"] = str(gpu) use_gpu = True ...
{"/libs/allen/dep.py": ["/libs/task.py"], "/libs/stanfordnlp/dep.py": ["/libs/task.py"], "/libs/nltk/pos.py": ["/libs/task.py"], "/libs/stanfordnlp/pos.py": ["/libs/task.py"], "/libs/allen/pos.py": ["/libs/task.py"], "/libs/spacy/ner.py": ["/libs/task.py"], "/libs/nltk/ner.py": ["/libs/task.py"], "/main.py": ["/libs/al...
80,929
KaisongHuang/spark-nlp
refs/heads/master
/libs/allen/pos.py
from allennlp.predictors.predictor import Predictor from allennlp.models.archival import load_archive import spacy from spacy.lang.en import English from ..task import Task class AllenNLPPartOfSpeechTagger(Task): def __init__(self, gpu): self.nlp = English() self.sentencizer = self.nlp.create_pip...
{"/libs/allen/dep.py": ["/libs/task.py"], "/libs/stanfordnlp/dep.py": ["/libs/task.py"], "/libs/nltk/pos.py": ["/libs/task.py"], "/libs/stanfordnlp/pos.py": ["/libs/task.py"], "/libs/allen/pos.py": ["/libs/task.py"], "/libs/spacy/ner.py": ["/libs/task.py"], "/libs/nltk/ner.py": ["/libs/task.py"], "/main.py": ["/libs/al...
80,930
KaisongHuang/spark-nlp
refs/heads/master
/libs/spacy/ner.py
import os import spacy from spacy.lang.en import English from ..task import Task class SpacyNamedEntityRecognition(Task): def __init__(self, gpu): if gpu >= 0: os.environ["CUDA_VISIBLE_DEVICES"] = str(gpu) spacy.require_gpu() self.nlp_sent = English() self.sentenci...
{"/libs/allen/dep.py": ["/libs/task.py"], "/libs/stanfordnlp/dep.py": ["/libs/task.py"], "/libs/nltk/pos.py": ["/libs/task.py"], "/libs/stanfordnlp/pos.py": ["/libs/task.py"], "/libs/allen/pos.py": ["/libs/task.py"], "/libs/spacy/ner.py": ["/libs/task.py"], "/libs/nltk/ner.py": ["/libs/task.py"], "/main.py": ["/libs/al...