index int64 | repo_name string | branch_name string | path string | content string | import_graph string |
|---|---|---|---|---|---|
64,612 | zavyalovdv/django_hospital | refs/heads/main | /patient/urls.py | from django.urls import path, include
from .views import *
from .authentification import user_login, user_logout
urlpatterns = [
path('', HomePage.as_view(), name='home'),
path('patients/', PatientsList.as_view(), name='patients'),
path('patient/<int:pk>/', PatientDetail.as_view(), name='patient'),
pa... | {"/patient/authentification.py": ["/patient/forms.py"], "/patient/admin.py": ["/patient/models.py"], "/patient/templatetags/patient_tags.py": ["/patient/models.py"], "/patient/forms.py": ["/patient/models.py"], "/patient/api/urls.py": ["/patient/api/views.py"], "/patient/views.py": ["/patient/models.py", "/patient/form... |
64,613 | zavyalovdv/django_hospital | refs/heads/main | /patient/migrations/0003_auto_20210401_2351.py | # Generated by Django 3.0.8 on 2021-04-01 20:51
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('patient', '0002_auto_20210401_2308'),
]
operations = [
migrations.RemoveField... | {"/patient/authentification.py": ["/patient/forms.py"], "/patient/admin.py": ["/patient/models.py"], "/patient/templatetags/patient_tags.py": ["/patient/models.py"], "/patient/forms.py": ["/patient/models.py"], "/patient/api/urls.py": ["/patient/api/views.py"], "/patient/views.py": ["/patient/models.py", "/patient/form... |
64,614 | zavyalovdv/django_hospital | refs/heads/main | /patient/tasks/backup/run.py | import subprocess
if __name__ == '__main__':
subprocess.call("patient/tasks/backup/db_backup.sh") | {"/patient/authentification.py": ["/patient/forms.py"], "/patient/admin.py": ["/patient/models.py"], "/patient/templatetags/patient_tags.py": ["/patient/models.py"], "/patient/forms.py": ["/patient/models.py"], "/patient/api/urls.py": ["/patient/api/views.py"], "/patient/views.py": ["/patient/models.py", "/patient/form... |
64,615 | zavyalovdv/django_hospital | refs/heads/main | /patient/api/serializers.py | from rest_framework import serializers
from patient.models import *
class PatientsListSerializer(serializers.ModelSerializer):
# social_security_number = serializers.CharField()
# surname = serializers.CharField()
# name = serializers.CharField()
# second_name = serializers.CharField()
# sex = s... | {"/patient/authentification.py": ["/patient/forms.py"], "/patient/admin.py": ["/patient/models.py"], "/patient/templatetags/patient_tags.py": ["/patient/models.py"], "/patient/forms.py": ["/patient/models.py"], "/patient/api/urls.py": ["/patient/api/views.py"], "/patient/views.py": ["/patient/models.py", "/patient/form... |
64,616 | zavyalovdv/django_hospital | refs/heads/main | /patient/migrations/0006_auto_20210406_2340.py | # Generated by Django 3.0.8 on 2021-04-06 20:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('patient', '0005_auto_20210402_0011'),
]
operations = [
migrations.AlterModelOptions(
name='hist... | {"/patient/authentification.py": ["/patient/forms.py"], "/patient/admin.py": ["/patient/models.py"], "/patient/templatetags/patient_tags.py": ["/patient/models.py"], "/patient/forms.py": ["/patient/models.py"], "/patient/api/urls.py": ["/patient/api/views.py"], "/patient/views.py": ["/patient/models.py", "/patient/form... |
64,617 | zavyalovdv/django_hospital | refs/heads/main | /gunicorn.py | command = '/usr/src/app/venv/bin/gunicorn'
pythonpath = '/usr/src/app/django_hospital/hospital'
bind = '127.0.0.1:8000'
workers = 1
user = 'ubuntu'
limit_request_fields = 32000
limit_request_field_size = 0
raw_env = 'DJANGO_SETTINGS_MODULE=hospital.settings'
| {"/patient/authentification.py": ["/patient/forms.py"], "/patient/admin.py": ["/patient/models.py"], "/patient/templatetags/patient_tags.py": ["/patient/models.py"], "/patient/forms.py": ["/patient/models.py"], "/patient/api/urls.py": ["/patient/api/views.py"], "/patient/views.py": ["/patient/models.py", "/patient/form... |
64,618 | zavyalovdv/django_hospital | refs/heads/main | /patient/api/views.py | from rest_framework.response import Response
from rest_framework.views import APIView
from patient.models import *
from .serializers import *
class APIPatientsListView(APIView):
def get(self, request):
patients = Patient.objects.all()
serializer = PatientsListSerializer(patients, many=True)
... | {"/patient/authentification.py": ["/patient/forms.py"], "/patient/admin.py": ["/patient/models.py"], "/patient/templatetags/patient_tags.py": ["/patient/models.py"], "/patient/forms.py": ["/patient/models.py"], "/patient/api/urls.py": ["/patient/api/views.py"], "/patient/views.py": ["/patient/models.py", "/patient/form... |
64,619 | zavyalovdv/django_hospital | refs/heads/main | /patient/tests/settings/tests.py | import pytest
import unittest
from hospital import settings
class SettingsTest(unittest.TestCase):
def test_settings_is_configured(self):
assert 'patient.apps.PatientConfig' in settings.INSTALLED_APPS
| {"/patient/authentification.py": ["/patient/forms.py"], "/patient/admin.py": ["/patient/models.py"], "/patient/templatetags/patient_tags.py": ["/patient/models.py"], "/patient/forms.py": ["/patient/models.py"], "/patient/api/urls.py": ["/patient/api/views.py"], "/patient/views.py": ["/patient/models.py", "/patient/form... |
64,620 | smarble/potluck_planner | refs/heads/master | /server.py | """Functions for potluck_planner."""
from model import User, Potluck, Dish, PotluckDish, UserPotluck, connect_to_db, db
# from random import choice
import random
from flask import Flask, render_template, request, session, redirect
from flask_debugtoolbar import DebugToolbarExtension
from sqlalchemy import update, func,... | {"/server.py": ["/model.py"], "/model.py": ["/server.py"], "/seed.py": ["/model.py", "/server.py"]} |
64,621 | smarble/potluck_planner | refs/heads/master | /model.py | """Models and database functions for potluck_planner database."""
from flask_sqlalchemy import SQLAlchemy, Model
from collections import defaultdict
# This is the connection to the PostgreSQL database; we're getting this through
# the Flask-SQLAlchemy helper library. On this, we can find the `session`
# object, where ... | {"/server.py": ["/model.py"], "/model.py": ["/server.py"], "/seed.py": ["/model.py", "/server.py"]} |
64,622 | smarble/potluck_planner | refs/heads/master | /seed.py | """Utility file to seed potluck_planner database"""
import datetime
from sqlalchemy import func
from model import User, Potluck, Dish, Type, UserDish, UserPotluck, PotluckDish, connect_to_db, db
from server import app
def load_users():
"""Load users into users table."""
print("users")
lisa = User(fnam... | {"/server.py": ["/model.py"], "/model.py": ["/server.py"], "/seed.py": ["/model.py", "/server.py"]} |
64,654 | sizmailov/pybind11-stubgen | refs/heads/master | /pybind11_stubgen/__init__.py | from __future__ import annotations
import importlib
import logging
import re
from argparse import ArgumentParser
from pathlib import Path
from pybind11_stubgen.parser.interface import IParser
from pybind11_stubgen.parser.mixins.error_handlers import (
IgnoreAllErrors,
IgnoreInvalidExpressionErrors,
Ignore... | {"/pybind11_stubgen/__init__.py": ["/pybind11_stubgen/parser/interface.py", "/pybind11_stubgen/parser/mixins/error_handlers.py", "/pybind11_stubgen/parser/mixins/filter.py", "/pybind11_stubgen/parser/mixins/fix.py", "/pybind11_stubgen/parser/mixins/parse.py", "/pybind11_stubgen/printer.py", "/pybind11_stubgen/structs.p... |
64,655 | sizmailov/pybind11-stubgen | refs/heads/master | /pybind11_stubgen/parser/mixins/error_handlers.py | from __future__ import annotations
import re
import sys
import types
from logging import getLogger
from pybind11_stubgen.parser.errors import (
InvalidExpressionError,
InvalidIdentifierError,
NameResolutionError,
ParserError,
)
from pybind11_stubgen.parser.interface import IParser
from pybind11_stubge... | {"/pybind11_stubgen/__init__.py": ["/pybind11_stubgen/parser/interface.py", "/pybind11_stubgen/parser/mixins/error_handlers.py", "/pybind11_stubgen/parser/mixins/filter.py", "/pybind11_stubgen/parser/mixins/fix.py", "/pybind11_stubgen/parser/mixins/parse.py", "/pybind11_stubgen/printer.py", "/pybind11_stubgen/structs.p... |
64,656 | sizmailov/pybind11-stubgen | refs/heads/master | /tests/py-demo/demo/core.py | from ._bindings import *
| {"/pybind11_stubgen/__init__.py": ["/pybind11_stubgen/parser/interface.py", "/pybind11_stubgen/parser/mixins/error_handlers.py", "/pybind11_stubgen/parser/mixins/filter.py", "/pybind11_stubgen/parser/mixins/fix.py", "/pybind11_stubgen/parser/mixins/parse.py", "/pybind11_stubgen/printer.py", "/pybind11_stubgen/structs.p... |
64,657 | sizmailov/pybind11-stubgen | refs/heads/master | /pybind11_stubgen/printer.py | from __future__ import annotations
import dataclasses
import sys
from pybind11_stubgen.structs import (
Alias,
Annotation,
Argument,
Attribute,
Class,
Docstring,
Field,
Function,
Identifier,
Import,
InvalidExpression,
Method,
Modifier,
Module,
Property,
... | {"/pybind11_stubgen/__init__.py": ["/pybind11_stubgen/parser/interface.py", "/pybind11_stubgen/parser/mixins/error_handlers.py", "/pybind11_stubgen/parser/mixins/filter.py", "/pybind11_stubgen/parser/mixins/fix.py", "/pybind11_stubgen/parser/mixins/parse.py", "/pybind11_stubgen/printer.py", "/pybind11_stubgen/structs.p... |
64,658 | sizmailov/pybind11-stubgen | refs/heads/master | /tests/py-demo/demo/pure_python/functions.py | from __future__ import annotations
import sys
import typing
if sys.version_info[:2] >= (3, 8):
from .functions_3_8_plus import args_mix
if sys.version_info[:2] >= (3, 9):
from .functions_3_9_plus import generic_alias_annotation
class _Dummy:
@staticmethod
def foo():
return 42
def search(a... | {"/pybind11_stubgen/__init__.py": ["/pybind11_stubgen/parser/interface.py", "/pybind11_stubgen/parser/mixins/error_handlers.py", "/pybind11_stubgen/parser/mixins/filter.py", "/pybind11_stubgen/parser/mixins/fix.py", "/pybind11_stubgen/parser/mixins/parse.py", "/pybind11_stubgen/printer.py", "/pybind11_stubgen/structs.p... |
64,659 | sizmailov/pybind11-stubgen | refs/heads/master | /tests/py-demo/demo/pure_python/classes.py | class A:
"""A"""
class B(A):
"""B"""
class C(B):
"""C"""
class X(object):
pass
| {"/pybind11_stubgen/__init__.py": ["/pybind11_stubgen/parser/interface.py", "/pybind11_stubgen/parser/mixins/error_handlers.py", "/pybind11_stubgen/parser/mixins/filter.py", "/pybind11_stubgen/parser/mixins/fix.py", "/pybind11_stubgen/parser/mixins/parse.py", "/pybind11_stubgen/printer.py", "/pybind11_stubgen/structs.p... |
64,660 | sizmailov/pybind11-stubgen | refs/heads/master | /pybind11_stubgen/writer.py | from __future__ import annotations
from pathlib import Path
from pybind11_stubgen.printer import Printer
from pybind11_stubgen.structs import Module
class Writer:
def write_module(
self, module: Module, printer: Printer, to: Path, sub_dir: Path | None = None
):
assert to.exists()
ass... | {"/pybind11_stubgen/__init__.py": ["/pybind11_stubgen/parser/interface.py", "/pybind11_stubgen/parser/mixins/error_handlers.py", "/pybind11_stubgen/parser/mixins/filter.py", "/pybind11_stubgen/parser/mixins/fix.py", "/pybind11_stubgen/parser/mixins/parse.py", "/pybind11_stubgen/printer.py", "/pybind11_stubgen/structs.p... |
64,661 | sizmailov/pybind11-stubgen | refs/heads/master | /tests/py-demo/demo/pure_python/functions_3_8_plus.py | import typing
def args_mix(
a: int,
b: float = 0.5,
/,
c: str = "",
*args: int,
x: int = 1,
y=int,
**kwargs: typing.Dict[int, str],
):
...
| {"/pybind11_stubgen/__init__.py": ["/pybind11_stubgen/parser/interface.py", "/pybind11_stubgen/parser/mixins/error_handlers.py", "/pybind11_stubgen/parser/mixins/filter.py", "/pybind11_stubgen/parser/mixins/fix.py", "/pybind11_stubgen/parser/mixins/parse.py", "/pybind11_stubgen/printer.py", "/pybind11_stubgen/structs.p... |
64,662 | sizmailov/pybind11-stubgen | refs/heads/master | /pybind11_stubgen/parser/mixins/fix.py | from __future__ import annotations
import builtins
import importlib
import inspect
import re
import types
from typing import Any
from pybind11_stubgen.parser.errors import NameResolutionError, ParserError
from pybind11_stubgen.parser.interface import IParser
from pybind11_stubgen.structs import (
Alias,
Argum... | {"/pybind11_stubgen/__init__.py": ["/pybind11_stubgen/parser/interface.py", "/pybind11_stubgen/parser/mixins/error_handlers.py", "/pybind11_stubgen/parser/mixins/filter.py", "/pybind11_stubgen/parser/mixins/fix.py", "/pybind11_stubgen/parser/mixins/parse.py", "/pybind11_stubgen/printer.py", "/pybind11_stubgen/structs.p... |
64,663 | sizmailov/pybind11-stubgen | refs/heads/master | /pybind11_stubgen/structs.py | from __future__ import annotations
import sys
from dataclasses import dataclass
from dataclasses import field as field_
from typing import Tuple, Union
if sys.version_info[:2] >= (3, 8):
from typing import Literal
Modifier = Literal["static", "class", None]
else:
from typing import Optional
Modifier... | {"/pybind11_stubgen/__init__.py": ["/pybind11_stubgen/parser/interface.py", "/pybind11_stubgen/parser/mixins/error_handlers.py", "/pybind11_stubgen/parser/mixins/filter.py", "/pybind11_stubgen/parser/mixins/fix.py", "/pybind11_stubgen/parser/mixins/parse.py", "/pybind11_stubgen/printer.py", "/pybind11_stubgen/structs.p... |
64,664 | sizmailov/pybind11-stubgen | refs/heads/master | /pybind11_stubgen/parser/mixins/parse.py | from __future__ import annotations
import ast
import inspect
import re
import types
from typing import Any
from pybind11_stubgen.parser.errors import (
InvalidExpressionError,
InvalidIdentifierError,
NameResolutionError,
ParserError,
)
from pybind11_stubgen.parser.interface import IParser
from pybind1... | {"/pybind11_stubgen/__init__.py": ["/pybind11_stubgen/parser/interface.py", "/pybind11_stubgen/parser/mixins/error_handlers.py", "/pybind11_stubgen/parser/mixins/filter.py", "/pybind11_stubgen/parser/mixins/fix.py", "/pybind11_stubgen/parser/mixins/parse.py", "/pybind11_stubgen/printer.py", "/pybind11_stubgen/structs.p... |
64,665 | sizmailov/pybind11-stubgen | refs/heads/master | /pybind11_stubgen/parser/interface.py | from __future__ import annotations
import abc
import types
from typing import Any
from pybind11_stubgen.parser.errors import ParserError
from pybind11_stubgen.structs import (
Alias,
Argument,
Attribute,
Class,
Docstring,
Field,
Function,
Import,
InvalidExpression,
Method,
... | {"/pybind11_stubgen/__init__.py": ["/pybind11_stubgen/parser/interface.py", "/pybind11_stubgen/parser/mixins/error_handlers.py", "/pybind11_stubgen/parser/mixins/filter.py", "/pybind11_stubgen/parser/mixins/fix.py", "/pybind11_stubgen/parser/mixins/parse.py", "/pybind11_stubgen/printer.py", "/pybind11_stubgen/structs.p... |
64,666 | sizmailov/pybind11-stubgen | refs/heads/master | /pybind11_stubgen/parser/errors.py | from __future__ import annotations
from pybind11_stubgen.structs import Identifier, QualifiedName
class ParserError(Exception):
pass
class InvalidIdentifierError(ParserError):
def __init__(self, name: Identifier, found_at: QualifiedName):
super().__init__()
self.name = name
self.at ... | {"/pybind11_stubgen/__init__.py": ["/pybind11_stubgen/parser/interface.py", "/pybind11_stubgen/parser/mixins/error_handlers.py", "/pybind11_stubgen/parser/mixins/filter.py", "/pybind11_stubgen/parser/mixins/fix.py", "/pybind11_stubgen/parser/mixins/parse.py", "/pybind11_stubgen/printer.py", "/pybind11_stubgen/structs.p... |
64,667 | sizmailov/pybind11-stubgen | refs/heads/master | /pybind11_stubgen/parser/mixins/filter.py | from __future__ import annotations
import types
from typing import Any
from pybind11_stubgen.parser.errors import InvalidIdentifierError
from pybind11_stubgen.parser.interface import IParser
from pybind11_stubgen.structs import (
Alias,
Attribute,
Class,
Docstring,
Field,
Function,
Identif... | {"/pybind11_stubgen/__init__.py": ["/pybind11_stubgen/parser/interface.py", "/pybind11_stubgen/parser/mixins/error_handlers.py", "/pybind11_stubgen/parser/mixins/filter.py", "/pybind11_stubgen/parser/mixins/fix.py", "/pybind11_stubgen/parser/mixins/parse.py", "/pybind11_stubgen/printer.py", "/pybind11_stubgen/structs.p... |
64,668 | sizmailov/pybind11-stubgen | refs/heads/master | /pybind11_stubgen/typing_ext.py | from __future__ import annotations
class FixedSize:
def __init__(self, *dim: int):
self.dim: tuple[int, ...] = dim
def __repr__(self):
return (
f"{self.__module__}."
f"{self.__class__.__qualname__}"
f"({', '.join(str(d) for d in self.dim)})"
)
cla... | {"/pybind11_stubgen/__init__.py": ["/pybind11_stubgen/parser/interface.py", "/pybind11_stubgen/parser/mixins/error_handlers.py", "/pybind11_stubgen/parser/mixins/filter.py", "/pybind11_stubgen/parser/mixins/fix.py", "/pybind11_stubgen/parser/mixins/parse.py", "/pybind11_stubgen/printer.py", "/pybind11_stubgen/structs.p... |
64,669 | sizmailov/pybind11-stubgen | refs/heads/master | /tests/py-demo/demo/pure_python/functions_3_9_plus.py | def generic_alias_annotation(
a: list[tuple[int]],
b: dict[int, str],
) -> list[float]:
...
| {"/pybind11_stubgen/__init__.py": ["/pybind11_stubgen/parser/interface.py", "/pybind11_stubgen/parser/mixins/error_handlers.py", "/pybind11_stubgen/parser/mixins/filter.py", "/pybind11_stubgen/parser/mixins/fix.py", "/pybind11_stubgen/parser/mixins/parse.py", "/pybind11_stubgen/printer.py", "/pybind11_stubgen/structs.p... |
64,670 | konsou/raspi-cm4-ioboard-fan | refs/heads/master | /__init__.py | from fan import RaspiCM4IOBoardFanSensor
| {"/__init__.py": ["/fan.py"]} |
64,671 | konsou/raspi-cm4-ioboard-fan | refs/heads/master | /fan.py | #!/usr/bin/env python3
import sys
from types import ModuleType
from i2c_pkg import i2c as i2c_module
from i2c_pkg.emc2301_pkg import emc2301
class RaspiCM4IOBoardFanSensor(emc2301.EMC2301):
def __init__(self,
address: int = 0x2f,
busnum: int = 10,
i2c: ModuleTyp... | {"/__init__.py": ["/fan.py"]} |
64,672 | standbyme/BILSTM_CRF_Demo_Backend | refs/heads/master | /index.py | # coding:utf-8
from flask import Flask
from flask_restful import Resource, Api, reqparse
from flask_cors import CORS
from predict import getData
from helper import helper
import urllib
app = Flask(__name__)
CORS(app)
api = Api(app)
class Financial(Resource):
def post(self):
parser = reqparse.RequestPa... | {"/index.py": ["/predict.py", "/helper.py"]} |
64,673 | standbyme/BILSTM_CRF_Demo_Backend | refs/heads/master | /temp.py |
# raw = '机构名—医院[M1] 疾病[M2] 科室[M3] 药品[M4] 症状[M5]'
# print(','.join(map(lambda x: "'{}':'{}'".format(x[-3:-1],x[0:-4]),raw.split())))
a = ['Dining','Education','Entertainment','Game','House','Journey','Medical','Physical']
m = '''api.add_resource({}, '/{}')'''
for i in a:
print(m.format(i,i)) | {"/index.py": ["/predict.py", "/helper.py"]} |
64,674 | standbyme/BILSTM_CRF_Demo_Backend | refs/heads/master | /helper.py | from functools import reduce
def buffer_to_result(buffer, result):
result.append({"type": buffer["type"], "value": ''.join(buffer["value"])})
def reduce_function(acc, current):
print(acc)
print(current)
value: str = current[0]
flag = current[1][0]
type_code: str = None
if flag == '0':
... | {"/index.py": ["/predict.py", "/helper.py"]} |
64,675 | standbyme/BILSTM_CRF_Demo_Backend | refs/heads/master | /predict.py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from torch.autograd import Variable
from torch.utils.data import DataLoader
import os
import torch
import pickle
from torch.utils.data import Dataset
from torch import nn
torch.manual_seed(1)
class BILSTM_CRF(nn.Module):
def __init__(self,vcab_size,tag2index,emb_d... | {"/index.py": ["/predict.py", "/helper.py"]} |
64,680 | sijeesh/django-svn_admin | refs/heads/master | /login/svn_admin_conf.py | try:
import ConfigParser
except:
import configparser as ConfigParser
class SvnRepo:
def __init__(self,filename):
self.cfgfile=filename
self.config=ConfigParser.ConfigParser()
self.config.read(self.cfgfile)
def create_repo(self,repo_name,admin_name):
if not self.co... | {"/svn_manage/urls.py": ["/svn_manage/views.py"], "/login/views.py": ["/login/forms.py", "/svn_manage/models.py"], "/login/urls.py": ["/login/views.py"]} |
64,681 | sijeesh/django-svn_admin | refs/heads/master | /svn_manage/urls.py | from django.conf.urls.defaults import patterns, include, url
from svn_manage.views import *
urlpatterns=patterns('',
url(r'^detailed_view',detailed_view),
url(r'^repo_deactivate',repo_deactivate),
url(r'^new_repo',new_repo_direct),
url(r'^create_repo',create_repo),
(r'^user_manage',user_manage),
(r'^creat... | {"/svn_manage/urls.py": ["/svn_manage/views.py"], "/login/views.py": ["/login/forms.py", "/svn_manage/models.py"], "/login/urls.py": ["/login/views.py"]} |
64,682 | sijeesh/django-svn_admin | refs/heads/master | /login/forms.py | from django import forms
class login_form(forms.Form):
username=forms.CharField(label='Username',error_messages={'required':'Enter your username'} ,widget=forms.TextInput(attrs={'size':'15'}))
password=forms.CharField(widget=forms.PasswordInput(attrs={'size':'15'}),label='Password',error_messages={'required':... | {"/svn_manage/urls.py": ["/svn_manage/views.py"], "/login/views.py": ["/login/forms.py", "/svn_manage/models.py"], "/login/urls.py": ["/login/views.py"]} |
64,683 | sijeesh/django-svn_admin | refs/heads/master | /login/models.py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class UserProfile(models.Model):
user=models.ForeignKey(User,unique=True)
privillege=models.IntegerField(max_length=1)
| {"/svn_manage/urls.py": ["/svn_manage/views.py"], "/login/views.py": ["/login/forms.py", "/svn_manage/models.py"], "/login/urls.py": ["/login/views.py"]} |
64,684 | sijeesh/django-svn_admin | refs/heads/master | /svn_manage/views.py | from django.shortcuts import HttpResponse,HttpResponseRedirect,render_to_response
from svn_admin.svn_admin_conf import *
from django.template import RequestContext
from svn_manage.forms import *
import ldap
import datetime
from svn_manage.models import *
import simplejson as json
def detailed_view(request):
sv=Sv... | {"/svn_manage/urls.py": ["/svn_manage/views.py"], "/login/views.py": ["/login/forms.py", "/svn_manage/models.py"], "/login/urls.py": ["/login/views.py"]} |
64,685 | sijeesh/django-svn_admin | refs/heads/master | /svn_manage/forms.py | from django import forms
from svn_admin.svn_admin_conf import *
svg=SvnGroup('/home/svn/config_file.conf')
class newrepo_form(forms.Form):
reponame=forms.CharField(label='Repository Name',error_messages={'required':'Enter repository name'} ,widget=forms.TextInput(attrs={'size':'20'}))
admin=forms.ComboField(l... | {"/svn_manage/urls.py": ["/svn_manage/views.py"], "/login/views.py": ["/login/forms.py", "/svn_manage/models.py"], "/login/urls.py": ["/login/views.py"]} |
64,686 | sijeesh/django-svn_admin | refs/heads/master | /svn_manage/models.py | from django.db import models
# Create your models here.
class Repos(models.Model):
repo_name=models.CharField(max_length=100)
repo_admin=models.CharField(max_length=100)
repo_manager=models.CharField(max_length=400)
created_on=models.DateField()
status=models.IntegerField()
class Managers(models.M... | {"/svn_manage/urls.py": ["/svn_manage/views.py"], "/login/views.py": ["/login/forms.py", "/svn_manage/models.py"], "/login/urls.py": ["/login/views.py"]} |
64,687 | sijeesh/django-svn_admin | refs/heads/master | /login/views.py | from django.shortcuts import HttpResponse,HttpResponseRedirect,render_to_response
from login.forms import login_form
from django.template import RequestContext
from django.contrib.auth import authenticate,login,logout
from django.contrib.auth.decorators import login_required
from django.conf import settings
from svn_ad... | {"/svn_manage/urls.py": ["/svn_manage/views.py"], "/login/views.py": ["/login/forms.py", "/svn_manage/models.py"], "/login/urls.py": ["/login/views.py"]} |
64,688 | sijeesh/django-svn_admin | refs/heads/master | /login/urls.py | from django.conf.urls.defaults import patterns, include, url
from login.views import *
urlpatterns=patterns('',
url(r'^$',login_page),
url(r'^login_to$',login_to),
url(r'^logout$',logout),
url(r'^home$',home),
)
| {"/svn_manage/urls.py": ["/svn_manage/views.py"], "/login/views.py": ["/login/forms.py", "/svn_manage/models.py"], "/login/urls.py": ["/login/views.py"]} |
64,691 | sgdiosdado/doctory | refs/heads/main | /doctory/core/views/views_shared_with.py | from rest_framework import permissions, status
from rest_framework.views import APIView
from rest_framework.response import Response
from core.models import Medic, Patient, PatientMedic
from core.serializers import MedicProfileSerializer
from core.utils import standard_response
class ListMedics(APIView):
"""
... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,692 | sgdiosdado/doctory | refs/heads/main | /doctory/core/views/views_condition.py | from rest_framework import permissions, status
from rest_framework.views import APIView
from rest_framework.response import Response
from core.models import Patient, Medic, Condition, PatientMedic
from core.serializers import ConditionSerializer
from core.utils import standard_response
class ListConditions(APIView):... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,693 | sgdiosdado/doctory | refs/heads/main | /doctory/core/models.py | from django.contrib.auth.models import AbstractUser
from django.contrib.postgres.fields import ArrayField
from django.db import models
from django.db.models.deletion import CASCADE
from django.utils import timezone
from .managers import UserManager
from .utils import AutoDateTimeField, ChoiceArrayField, UserTypes, se... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,694 | sgdiosdado/doctory | refs/heads/main | /doctory/core/tests/test_share.py | from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase, APIClient
from rest_framework.authtoken.models import Token
from core.models import Medic, Patient, PatientMedic
def authenticate(client, token_key):
client.credentials(HTTP_AUTHORIZATION=f'Token {token_... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,695 | sgdiosdado/doctory | refs/heads/main | /doctory/core/utils.py | from django.db import models
from django.utils import timezone
from django.contrib.postgres.fields import ArrayField
from django.forms import MultipleChoiceField
class UserTypes(models.TextChoices):
PATIENT = 'PAT', 'Patient'
MEDIC = 'MED', 'Medic'
def set_default_user_type():
return [UserTypes.PATIENT]... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,696 | sgdiosdado/doctory | refs/heads/main | /doctory/core/views/views_authentication.py | from rest_framework import status
from rest_framework.authtoken.models import Token
from rest_framework.response import Response
from rest_framework.views import APIView
from core.serializers import SignupSerializer, LoginSerializer, ChangePasswordSerializer
from core.utils import standard_response
from rest_framework ... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,697 | sgdiosdado/doctory | refs/heads/main | /doctory/core/views/views_allergy.py | from rest_framework import permissions, status
from rest_framework.views import APIView
from rest_framework.response import Response
from core.models import Patient, Allergy
from core.serializers import AllergySerializer
from core.utils import standard_response
class ListAllergies(APIView):
"""
View to list p... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,698 | sgdiosdado/doctory | refs/heads/main | /doctory/core/views/views_background.py | from rest_framework import permissions, status
from rest_framework.views import APIView
from rest_framework.response import Response
from core.models import BackgroundType, BackgroundSubtype
from core.serializers import BackgroundTypeSerializer, BackgroundSubtypeSerializer
from core.utils import standard_response
cl... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,699 | sgdiosdado/doctory | refs/heads/main | /doctory/core/tests/test_shared_with.py | from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase, APIClient
from rest_framework.authtoken.models import Token
from core.models import Medic, Patient, PatientMedic
def authenticate(client, token_key):
client.credentials(HTTP_AUTHORIZATION=f'Token {token_... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,700 | sgdiosdado/doctory | refs/heads/main | /doctory/core/tests/test_condition.py | from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase, APIClient
from rest_framework.authtoken.models import Token
from core.models import Patient, Condition
from core.serializers import ConditionSerializer
def authenticate(client, token_key):
client.credent... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,701 | sgdiosdado/doctory | refs/heads/main | /doctory/core/views/views_specialty.py | from rest_framework import permissions, status
from rest_framework.views import APIView
from rest_framework.response import Response
from core.models import Medic, Specialty
from core.serializers import SpecialtySerializer
from core.utils import standard_response
class ListSpecialties(APIView):
"""
View to li... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,702 | sgdiosdado/doctory | refs/heads/main | /doctory/core/migrations/0005_alter_specialty_name.py | # Generated by Django 3.2 on 2021-05-25 18:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0004_alter_allergy_name'),
]
operations = [
migrations.AlterField(
model_name='specialty',
name='name',
... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,703 | sgdiosdado/doctory | refs/heads/main | /doctory/core/tests/test_authentication.py | from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase
from core.models import User
class SignupTests(APITestCase):
url = reverse('signup')
def test_signup(self):
"""
Ensure an anonymous user can sign up
"""
data = {
... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,704 | sgdiosdado/doctory | refs/heads/main | /doctory/core/views/views_profile.py | from rest_framework import permissions, status
from rest_framework.views import APIView
from rest_framework.response import Response
from core.models import User, PatientMedic, Medic, Patient
from core.serializers import PatientProfileSerializer, MedicProfileSerializer
from core.utils import UserTypes, standard_respon... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,705 | sgdiosdado/doctory | refs/heads/main | /doctory/core/signals.py | from django.db.models.signals import post_save, pre_save
from django.dispatch import receiver
from django.core.exceptions import ObjectDoesNotExist
from rest_framework.authtoken.models import Token
from .models import User, Patient, Medic
@receiver(post_save, sender=User)
@receiver(post_save, sender=Patient)
@receive... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,706 | sgdiosdado/doctory | refs/heads/main | /doctory/core/serializers.py | from rest_framework import serializers
from rest_framework.validators import UniqueValidator
from rest_framework.authtoken.models import Token
from django.contrib.auth import authenticate
from django.contrib.auth.models import update_last_login
from django.contrib.auth.password_validation import validate_password
from ... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,707 | sgdiosdado/doctory | refs/heads/main | /doctory/core/views/views_medic.py | from rest_framework import permissions
from rest_framework.views import APIView
from rest_framework.response import Response
from core.models import Patient, Medic, PatientMedic
from core.serializers import PatientProfileSerializer
from core.utils import standard_response
class ListPatients(APIView):
"""
View... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,708 | sgdiosdado/doctory | refs/heads/main | /doctory/core/urls.py |
from django.urls import path
from .views.views_condition import ListConditions, ConditionDetail
from .views.views_background import ListBackgroundSubtypes, ListBackgroundTypes
from .views.views_specialty import ListSpecialties
from .views.views_profile import Profile
from .views.views_authentication import Signup, Lo... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,709 | sgdiosdado/doctory | refs/heads/main | /doctory/core/views/views_share.py | from rest_framework import permissions, status
from rest_framework.views import APIView
from rest_framework.response import Response
from core.utils import standard_response
from core.models import Medic, Patient
from core.serializers import ShareSerializer, MedicProfileSerializer
class ShareHistory(APIView):
"""... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,710 | sgdiosdado/doctory | refs/heads/main | /doctory/core/admin.py | from django.contrib.auth.admin import UserAdmin
from django.contrib import admin
from .models import Condition, User
class DoctoryUserAdmin(UserAdmin):
model = User
list_display = ('id', 'email', 'is_staff', 'is_active',)
list_filter = ('email', 'is_staff', 'is_active',)
fieldsets = (
(None, {'fields': ... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,711 | sgdiosdado/doctory | refs/heads/main | /doctory/core/tests/test_profile.py | from core.utils import SexTypes
from django.urls import reverse
from rest_framework import status
from rest_framework.authtoken.models import Token
from rest_framework.test import APITestCase, APIClient
from core.models import Patient, Medic
def authenticate(client, token_key):
client.credentials(HTTP_AUTHORIZATI... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,712 | sgdiosdado/doctory | refs/heads/main | /doctory/core/migrations/0001_initial.py | # Generated by Django 3.2 on 2021-05-18 00:17
import core.utils
import django.contrib.postgres.fields
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_us... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,713 | sgdiosdado/doctory | refs/heads/main | /doctory/core/migrations/0003_auto_20210525_1802.py | # Generated by Django 3.2 on 2021-05-25 18:02
import core.utils
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
def add_specialties_to_first_medic(apps, schema_editor):
Medic = apps.get_model('core', 'Medic')
Specialty = apps.get_model('core', 'Specialty'... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,714 | sgdiosdado/doctory | refs/heads/main | /doctory/core/tests/test_background.py | from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase, APIClient
from rest_framework.authtoken.models import Token
from core.models import Patient, BackgroundType
def authenticate(client, token_key):
client.credentials(HTTP_AUTHORIZATION=f'Token {token_key}'... | {"/doctory/core/models.py": ["/doctory/core/utils.py"], "/doctory/core/utils.py": ["/doctory/core/models.py"], "/doctory/core/signals.py": ["/doctory/core/models.py"], "/doctory/core/serializers.py": ["/doctory/core/models.py", "/doctory/core/utils.py"], "/doctory/core/urls.py": ["/doctory/core/views/views_condition.py... |
64,718 | FellowshipOfTheGame/virtuosi | refs/heads/master | /Config.py | #coding: utf-8
import sys
class Config:
nivel = 0
audio = 1.0
fullscreen = 0
lang=""
def __init__ (self,nivel=2,audio=1.0,full=0,language="Portugues Brasileiro"):
self.nivel = nivel
self.audio = audio
self.fullscreen = full
self.lang = language
def Ret... | {"/main.py": ["/Virtuosi.py", "/Extras.py", "/Config.py"], "/Gameplay.py": ["/Fret.py"], "/Musics.py": ["/Extras.py", "/Generate.py"], "/Extras.py": ["/Button.py"], "/Profiles.py": ["/Config.py", "/Achievement.py"], "/Virtuosi.py": ["/Extras.py", "/Profiles.py", "/Musics.py", "/Gameplay.py", "/High_Score.py", "/Config.... |
64,719 | FellowshipOfTheGame/virtuosi | refs/heads/master | /main.py | #coding: utf-8
__authors__ = "Helder S. L. Moraes, Marcelo 'Esquilo', Ricardo 'Buda' Fuzeto ...."
__copyright__ = ""
__credits__ = ["Helder S. L. Moraes", "Alexis Kiosia", "Ricardo Fuzeto","Ana Luiza","Ricardo Fuzeto","..."]
__license__ = "..."
__version__ = "1.6"
__maintainer__ = "Helder S. L. Moraes"
__email__... | {"/main.py": ["/Virtuosi.py", "/Extras.py", "/Config.py"], "/Gameplay.py": ["/Fret.py"], "/Musics.py": ["/Extras.py", "/Generate.py"], "/Extras.py": ["/Button.py"], "/Profiles.py": ["/Config.py", "/Achievement.py"], "/Virtuosi.py": ["/Extras.py", "/Profiles.py", "/Musics.py", "/Gameplay.py", "/High_Score.py", "/Config.... |
64,720 | FellowshipOfTheGame/virtuosi | refs/heads/master | /Generate.py | import subprocess
import os
import platform
import time
class Generate:
stdi = ''
Sistemas = {'Windows':'Data/MidiCsv/Windows/midicsv.exe','Darwin':'Data/MidiCsv/Mac/midicsv','Linux':'Data/MidiCsv/Linux/midicsv','Unix':'Data/MidiCsv/Linux/midicsv'}
#How to Use ('musicname.mid')
def __init__ (sel... | {"/main.py": ["/Virtuosi.py", "/Extras.py", "/Config.py"], "/Gameplay.py": ["/Fret.py"], "/Musics.py": ["/Extras.py", "/Generate.py"], "/Extras.py": ["/Button.py"], "/Profiles.py": ["/Config.py", "/Achievement.py"], "/Virtuosi.py": ["/Extras.py", "/Profiles.py", "/Musics.py", "/Gameplay.py", "/High_Score.py", "/Config.... |
64,721 | FellowshipOfTheGame/virtuosi | refs/heads/master | /Button.py | #coding: utf-8
import pygame
import threading
import time
import math
class Button:
image = None
tela = None
control = 0
def __init__ (self, img):
self.control = 0
self.image = img
def getState(self):
if self.control!=0:
return True
else... | {"/main.py": ["/Virtuosi.py", "/Extras.py", "/Config.py"], "/Gameplay.py": ["/Fret.py"], "/Musics.py": ["/Extras.py", "/Generate.py"], "/Extras.py": ["/Button.py"], "/Profiles.py": ["/Config.py", "/Achievement.py"], "/Virtuosi.py": ["/Extras.py", "/Profiles.py", "/Musics.py", "/Gameplay.py", "/High_Score.py", "/Config.... |
64,722 | FellowshipOfTheGame/virtuosi | refs/heads/master | /Gameplay.py | #coding: utf-8
import pygame
import threading
import time
import math
from Fret import *
jogando = True
parado = False
class Gameplay ( threading.Thread ) :
#IMAGES
frets = [None,None,None,None,None,None,None,None,None,None]
sombra = 0
tela = None
bkg = None
bar = None
font ... | {"/main.py": ["/Virtuosi.py", "/Extras.py", "/Config.py"], "/Gameplay.py": ["/Fret.py"], "/Musics.py": ["/Extras.py", "/Generate.py"], "/Extras.py": ["/Button.py"], "/Profiles.py": ["/Config.py", "/Achievement.py"], "/Virtuosi.py": ["/Extras.py", "/Profiles.py", "/Musics.py", "/Gameplay.py", "/High_Score.py", "/Config.... |
64,723 | FellowshipOfTheGame/virtuosi | refs/heads/master | /High_Score.py | #coding: utf-8
class High_Score:
nome = ""
recordes = []
def __init__ (self):
self.recordes = []
musics= []
try:
file = open ('Data/Musics.vts','r')
tag = 0
for i in file:
aux = 0
#se encontra a tag
... | {"/main.py": ["/Virtuosi.py", "/Extras.py", "/Config.py"], "/Gameplay.py": ["/Fret.py"], "/Musics.py": ["/Extras.py", "/Generate.py"], "/Extras.py": ["/Button.py"], "/Profiles.py": ["/Config.py", "/Achievement.py"], "/Virtuosi.py": ["/Extras.py", "/Profiles.py", "/Musics.py", "/Gameplay.py", "/High_Score.py", "/Config.... |
64,724 | FellowshipOfTheGame/virtuosi | refs/heads/master | /Achievement.py | #coding: utf-8
import sys
"""
completar 1 musica facil com 95%
completar 1 musica normal com 95%
completar 1 musica dificil com 95%
completar 1 musica virtuosa com 95%
completar 5 musica facil com 95%
completar 5 musica normal com 95%
completar 5 musica dificil com 95%
completa... | {"/main.py": ["/Virtuosi.py", "/Extras.py", "/Config.py"], "/Gameplay.py": ["/Fret.py"], "/Musics.py": ["/Extras.py", "/Generate.py"], "/Extras.py": ["/Button.py"], "/Profiles.py": ["/Config.py", "/Achievement.py"], "/Virtuosi.py": ["/Extras.py", "/Profiles.py", "/Musics.py", "/Gameplay.py", "/High_Score.py", "/Config.... |
64,725 | FellowshipOfTheGame/virtuosi | refs/heads/master | /Musics.py |
#for /F %i in (Musics.vts) do c:\users\helder\desktop\versao1.5\MidCsv\Midicsv.exe < c:\users\helder\desktop\versao1.5\data\musics\%i.mid > c:\users\helder\desktop\versao1.5\%i.txt
#coding: utf-8
import sys
import Extras
from Generate import *
import time
from operator import itemgetter, attrgetter
import plat... | {"/main.py": ["/Virtuosi.py", "/Extras.py", "/Config.py"], "/Gameplay.py": ["/Fret.py"], "/Musics.py": ["/Extras.py", "/Generate.py"], "/Extras.py": ["/Button.py"], "/Profiles.py": ["/Config.py", "/Achievement.py"], "/Virtuosi.py": ["/Extras.py", "/Profiles.py", "/Musics.py", "/Gameplay.py", "/High_Score.py", "/Config.... |
64,726 | FellowshipOfTheGame/virtuosi | refs/heads/master | /Extras.py | #coding: utf-8
import pygame
from Button import *
import sys
def ler(tela,lang):
btn_salvar = Button(0)
btn_cancelar = Button(0)
ct =0
capslock =0
b = ""
aux = ''
cursor_picture = pygame.image.load('Graphics/Mouse/Batuta.png').convert_alpha()
fonte = pygame.font.Font("Data/Ca... | {"/main.py": ["/Virtuosi.py", "/Extras.py", "/Config.py"], "/Gameplay.py": ["/Fret.py"], "/Musics.py": ["/Extras.py", "/Generate.py"], "/Extras.py": ["/Button.py"], "/Profiles.py": ["/Config.py", "/Achievement.py"], "/Virtuosi.py": ["/Extras.py", "/Profiles.py", "/Musics.py", "/Gameplay.py", "/High_Score.py", "/Config.... |
64,727 | FellowshipOfTheGame/virtuosi | refs/heads/master | /Profiles.py | #coding: utf-8
import datetime
import sys
from Config import *
from Achievement import *
class Profile:
nome = ""
data_criacao = ""
ultimo_jogo = ""
recordes_gameplay = []
recordes_quickplay =[]
config = None
MyArch = None
def __init__ (self,arquivo="Default"):
self... | {"/main.py": ["/Virtuosi.py", "/Extras.py", "/Config.py"], "/Gameplay.py": ["/Fret.py"], "/Musics.py": ["/Extras.py", "/Generate.py"], "/Extras.py": ["/Button.py"], "/Profiles.py": ["/Config.py", "/Achievement.py"], "/Virtuosi.py": ["/Extras.py", "/Profiles.py", "/Musics.py", "/Gameplay.py", "/High_Score.py", "/Config.... |
64,728 | FellowshipOfTheGame/virtuosi | refs/heads/master | /setup.py | # -*- coding: utf-8 -*-
import sys
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {
"packages": ["os"],
"excludes": ["tkinter", "unittest"],
"include_files": ["Data", "Graphics"]}
# GUI applications require a different... | {"/main.py": ["/Virtuosi.py", "/Extras.py", "/Config.py"], "/Gameplay.py": ["/Fret.py"], "/Musics.py": ["/Extras.py", "/Generate.py"], "/Extras.py": ["/Button.py"], "/Profiles.py": ["/Config.py", "/Achievement.py"], "/Virtuosi.py": ["/Extras.py", "/Profiles.py", "/Musics.py", "/Gameplay.py", "/High_Score.py", "/Config.... |
64,729 | FellowshipOfTheGame/virtuosi | refs/heads/master | /Fret.py | #coding: utf-8
import pygame
import time
import math
class Fret:
px = 0
origem = 0
py = 0
h = 0
w = 0
frettipo = 0
desl = 0
Nota = None
clock = 0
age = 0
numero = 0
tam = 1
def __init__ (self,numero,tipo=1,tam=1):
self.clock = pygame.time.Clo... | {"/main.py": ["/Virtuosi.py", "/Extras.py", "/Config.py"], "/Gameplay.py": ["/Fret.py"], "/Musics.py": ["/Extras.py", "/Generate.py"], "/Extras.py": ["/Button.py"], "/Profiles.py": ["/Config.py", "/Achievement.py"], "/Virtuosi.py": ["/Extras.py", "/Profiles.py", "/Musics.py", "/Gameplay.py", "/High_Score.py", "/Config.... |
64,730 | FellowshipOfTheGame/virtuosi | refs/heads/master | /Virtuosi.py | #coding: utf-8
import pygame
import Extras
from Profiles import *
from Musics import *
from Gameplay import *
from Extras import *
from High_Score import *
from Config import *
from Languages import *
from Button import *
import sys
#todas as constants terao prefixo Const_
Const_default_y = 300
class Vi... | {"/main.py": ["/Virtuosi.py", "/Extras.py", "/Config.py"], "/Gameplay.py": ["/Fret.py"], "/Musics.py": ["/Extras.py", "/Generate.py"], "/Extras.py": ["/Button.py"], "/Profiles.py": ["/Config.py", "/Achievement.py"], "/Virtuosi.py": ["/Extras.py", "/Profiles.py", "/Musics.py", "/Gameplay.py", "/High_Score.py", "/Config.... |
64,731 | FellowshipOfTheGame/virtuosi | refs/heads/master | /Languages.py | #coding: utf-8
class Lang:
nome = ""
line =[]
def __init__ (self,arquivo="Default"):
self.line =[]
try:
arquivo = ''.join(arquivo.split())
file = open ('Data/Lang/'+arquivo+'.vts','r')
cont =0
for i in file:
if cont =... | {"/main.py": ["/Virtuosi.py", "/Extras.py", "/Config.py"], "/Gameplay.py": ["/Fret.py"], "/Musics.py": ["/Extras.py", "/Generate.py"], "/Extras.py": ["/Button.py"], "/Profiles.py": ["/Config.py", "/Achievement.py"], "/Virtuosi.py": ["/Extras.py", "/Profiles.py", "/Musics.py", "/Gameplay.py", "/High_Score.py", "/Config.... |
64,734 | JD-P/energymech-log-converter | refs/heads/master | /energymech-log-converter.py | # Converts various IRC logger formats to JSON and SQLite formats.
"""
energymech-log-converter - A utility to convert energymech logs to JSON or SQLite
usage: energymech-log-converter.py [Logs] [Options]
Convert the logs (file or a directory) to a JSON (default) or SQLite database.
----
Options
-h --help Show t... | {"/converters/energymech.py": ["/utilities/time2seconds.py"], "/converters/toykeeper.py": ["/utilities/time2seconds.py"]} |
64,735 | JD-P/energymech-log-converter | refs/heads/master | /converters/energymech.py | import os
import time
import datetime
import string
from utilities.time2seconds import time2seconds
def convert(directory, output_handler=None, utc_offset=None):
"""Run the energymech log converters conversion function."""
return energymech_converter.energymech_conv(directory, output_handler)
class energymech... | {"/converters/energymech.py": ["/utilities/time2seconds.py"], "/converters/toykeeper.py": ["/utilities/time2seconds.py"]} |
64,736 | JD-P/energymech-log-converter | refs/heads/master | /utilities/time2seconds.py | import string
import time
def time2seconds(time_string):
"""Convert a time string of the format HH:MM:SS or HH:MM to a timestamp in seconds."""
if len(time_string) != 8 and len(time_string) != 5: # Check if length is consistent with HH:MM:SS or HH:MM respectively.
raise ValueError("Time given to time2seconds(... | {"/converters/energymech.py": ["/utilities/time2seconds.py"], "/converters/toykeeper.py": ["/utilities/time2seconds.py"]} |
64,737 | JD-P/energymech-log-converter | refs/heads/master | /converters/toykeeper.py | import json
import time
from datetime import timedelta
from calendar import timegm
from utilities.time2seconds import time2seconds
def convert(filepath, output_handler=None, utc_offset=None):
"""Run ToyKeeperConverter's conversion function and return the result."""
return ToyKeeperConverter.toykeeper_conv(Toy... | {"/converters/energymech.py": ["/utilities/time2seconds.py"], "/converters/toykeeper.py": ["/utilities/time2seconds.py"]} |
64,741 | elizabethmessick/sadparentgifts | refs/heads/master | /main_app/urls.py | from django.urls import path
from . import views
urlpatterns = [
path('', views.discover_gifts, name='discover_gifts'),
path('about/', views.about, name='about'),
path('gifts/<int:gift_id>', views.gifts_detail, name='gifts_detail'),
path('login/', views.login_view, name="login"),
path('logout/', vi... | {"/main_app/views.py": ["/main_app/models.py"]} |
64,742 | elizabethmessick/sadparentgifts | refs/heads/master | /main_app/migrations/0004_auto_20181013_1545.py | # Generated by Django 2.1.2 on 2018-10-13 15:45
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main_app', '0003_photo'),
]
operations = [
migrations.RemoveField(
model_name='photo',
name='gift',
),
migra... | {"/main_app/views.py": ["/main_app/models.py"]} |
64,743 | elizabethmessick/sadparentgifts | refs/heads/master | /main_app/migrations/0006_auto_20181018_1644.py | # Generated by Django 2.1.2 on 2018-10-18 16:44
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('main_app', '0005_comment'),
]
operations = [
migrations.AlterModelOptions(
name='gift',
... | {"/main_app/views.py": ["/main_app/models.py"]} |
64,744 | elizabethmessick/sadparentgifts | refs/heads/master | /main_app/views.py | from django.shortcuts import render, redirect
from .forms import LoginForm, CommentForm
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from .models import Gift, Comment
from django.views.generic.edit import C... | {"/main_app/views.py": ["/main_app/models.py"]} |
64,745 | elizabethmessick/sadparentgifts | refs/heads/master | /main_app/models.py | from django.db import models
from django.contrib.auth.models import User
from django.urls import reverse
from datetime import datetime
# Create your models here.
class Gift(models.Model):
description = models.CharField(max_length=150)
user = models.ForeignKey(User, on_delete=models.CASCADE)
photo_url = m... | {"/main_app/views.py": ["/main_app/models.py"]} |
64,750 | evavanweenen/bioNLP | refs/heads/main | /read.py | import numpy as np
import string
import re
from tqdm import tqdm
import nltk
from nltk import word_tokenize
from nltk import pos_tag as POSTag
from nltk.corpus import stopwords
from nltk.stem.wordnet import WordNetLemmatizer
from nltk.corpus.reader import wordnet
nltk.download('punkt')
nltk.download('stopwords')
nl... | {"/main.py": ["/read.py"]} |
64,751 | evavanweenen/bioNLP | refs/heads/main | /main.py | import os
os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"]="1,2,3,4"
import numpy as np
import pandas as pd
from read import preprocess
from sklearn.preprocessing import LabelEncoder, StandardScaler
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.feature_select... | {"/main.py": ["/read.py"]} |
64,752 | ldaug99/Hue-Sync-Universal | refs/heads/master | /Hue_Python/camManager/scrap/thread.py | from threading import Thread
from random import randint
import time
class MyThread(Thread):
def __init__(self):
''' Constructor. '''
Thread.__init__(self)
self.doRun = True
def run(self):
while self.doRun:
# Sleep for random time between 1 ~ 3 second
... | {"/Hue_Python/lightManager/__init__.py": ["/Hue_Python/lightManager/lightManager.py"], "/Hue_Python/mainThread/__init__.py": ["/Hue_Python/mainThread/mainThread.py"], "/Hue_Python/configManager/__init__.py": ["/Hue_Python/configManager/configManager.py"], "/Hue_Python/camManager/__init__.py": ["/Hue_Python/camManager/c... |
64,753 | ldaug99/Hue-Sync-Universal | refs/heads/master | /Hue_Python/cli.py | import main
class cli():
def __init__(self):
self.__hue = main.hue(verbose = True, config = {"dir": "default", "file": "l_config.txt"})
#self.__hue = main.hue(verbose = True)
self.__hue.getLights()
self.doRun = True
self.showFrame = False
self.run()
def run(self... | {"/Hue_Python/lightManager/__init__.py": ["/Hue_Python/lightManager/lightManager.py"], "/Hue_Python/mainThread/__init__.py": ["/Hue_Python/mainThread/mainThread.py"], "/Hue_Python/configManager/__init__.py": ["/Hue_Python/configManager/configManager.py"], "/Hue_Python/camManager/__init__.py": ["/Hue_Python/camManager/c... |
64,754 | ldaug99/Hue-Sync-Universal | refs/heads/master | /Hue_Python/__init__.py | from Hue_Python import cli as cli
from Hue_Python import main as main | {"/Hue_Python/lightManager/__init__.py": ["/Hue_Python/lightManager/lightManager.py"], "/Hue_Python/mainThread/__init__.py": ["/Hue_Python/mainThread/mainThread.py"], "/Hue_Python/configManager/__init__.py": ["/Hue_Python/configManager/configManager.py"], "/Hue_Python/camManager/__init__.py": ["/Hue_Python/camManager/c... |
64,755 | ldaug99/Hue-Sync-Universal | refs/heads/master | /Hue_Python/camManager/scrap/cam_test0.py | import cv2
import time
import numpy
def getAverage(channel):
color_sum = 0
for i in channel:
sum2 = 0
for k in channel[i]:
sum2 = sum2 + channel[i][k]
color_sum = color_sum + (sum2 / len(channel[k]))
color = color_sum / len(channel[i])
return color
webcam = cv2.Vide... | {"/Hue_Python/lightManager/__init__.py": ["/Hue_Python/lightManager/lightManager.py"], "/Hue_Python/mainThread/__init__.py": ["/Hue_Python/mainThread/mainThread.py"], "/Hue_Python/configManager/__init__.py": ["/Hue_Python/configManager/configManager.py"], "/Hue_Python/camManager/__init__.py": ["/Hue_Python/camManager/c... |
64,756 | ldaug99/Hue-Sync-Universal | refs/heads/master | /Hue_Python/lightManager/__init__.py | from .lightManager import lightManager as lm | {"/Hue_Python/lightManager/__init__.py": ["/Hue_Python/lightManager/lightManager.py"], "/Hue_Python/mainThread/__init__.py": ["/Hue_Python/mainThread/mainThread.py"], "/Hue_Python/configManager/__init__.py": ["/Hue_Python/configManager/configManager.py"], "/Hue_Python/camManager/__init__.py": ["/Hue_Python/camManager/c... |
64,757 | ldaug99/Hue-Sync-Universal | refs/heads/master | /Hue_Python/mainThread/__init__.py | from .mainThread import mainThread as mt | {"/Hue_Python/lightManager/__init__.py": ["/Hue_Python/lightManager/lightManager.py"], "/Hue_Python/mainThread/__init__.py": ["/Hue_Python/mainThread/mainThread.py"], "/Hue_Python/configManager/__init__.py": ["/Hue_Python/configManager/configManager.py"], "/Hue_Python/camManager/__init__.py": ["/Hue_Python/camManager/c... |
64,758 | ldaug99/Hue-Sync-Universal | refs/heads/master | /Hue_Python/scrap/Python-CLIP-API/Hue_old/bridgeFinder.py | import socket
from common import HTTPS
def scanNetwork():
print("Beginning network scan...")
hostIP = __getHostIP() # Get host IP address (Note to self: dosen't work with VPN turned on...)
print("Host IP address is {}".format(hostIP))
hostIP = __getIPmask(hostIP) # Get mask of address
if hostIP == ... | {"/Hue_Python/lightManager/__init__.py": ["/Hue_Python/lightManager/lightManager.py"], "/Hue_Python/mainThread/__init__.py": ["/Hue_Python/mainThread/mainThread.py"], "/Hue_Python/configManager/__init__.py": ["/Hue_Python/configManager/configManager.py"], "/Hue_Python/camManager/__init__.py": ["/Hue_Python/camManager/c... |
64,759 | ldaug99/Hue-Sync-Universal | refs/heads/master | /Hue_Python/mainThread/mainThread.py | from threading import Thread
import time
class mainThread(Thread):
KWARG_VERBOSE = "verbose"
def __init__(self, lightMan, apiMan, camMan, **kwargs):
Thread.__init__(self)
# Get variables
self.__verbose = kwargs.get(mainThread.KWARG_VERBOSE, False)
# Check if managers are given
... | {"/Hue_Python/lightManager/__init__.py": ["/Hue_Python/lightManager/lightManager.py"], "/Hue_Python/mainThread/__init__.py": ["/Hue_Python/mainThread/mainThread.py"], "/Hue_Python/configManager/__init__.py": ["/Hue_Python/configManager/configManager.py"], "/Hue_Python/camManager/__init__.py": ["/Hue_Python/camManager/c... |
64,760 | ldaug99/Hue-Sync-Universal | refs/heads/master | /Hue_Python/lightManager/lightManager.py |
class lightManager():
### Static class variables ###
CONFIG_NAME = "lightMan"
CONFIG_KEY = "groups"
KWARG_CONFIG = "config"
KWARG_VERBOSE = "verbose"
CENTER = 0; GCNAME = "center"
LEFT = 1; GLNAME = "left"
RIGHT = 2; GRNAME = "right"
TOP = 3; GTNAME = "top"
BOTTOM = 4; GBNAME... | {"/Hue_Python/lightManager/__init__.py": ["/Hue_Python/lightManager/lightManager.py"], "/Hue_Python/mainThread/__init__.py": ["/Hue_Python/mainThread/mainThread.py"], "/Hue_Python/configManager/__init__.py": ["/Hue_Python/configManager/configManager.py"], "/Hue_Python/camManager/__init__.py": ["/Hue_Python/camManager/c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.