index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
19,224
roman-karpovich/drf-batch-requests
refs/heads/master
/drf_batch_requests/backends/sync.py
from django.core.handlers.base import BaseHandler from rest_framework.status import is_success from drf_batch_requests.backends.base import RequestsConsumeBaseBackend class SyncRequestsConsumeBackend(RequestsConsumeBaseBackend): def __init__(self): self.responses = {} # todo: from this point i thin...
{"/tests/test_view.py": ["/tests/mixins.py"], "/drf_batch_requests/request.py": ["/drf_batch_requests/exceptions.py", "/drf_batch_requests/serializers.py", "/drf_batch_requests/utils.py"], "/drf_batch_requests/views.py": ["/drf_batch_requests/exceptions.py", "/drf_batch_requests/graph.py", "/drf_batch_requests/request....
19,225
roman-karpovich/drf-batch-requests
refs/heads/master
/tests/views.py
from django.http import JsonResponse from django.http.response import HttpResponse as DjangoResponse from django.views.generic import View from rest_framework.response import Response from rest_framework.views import APIView class TestAPIView(APIView): def get(self, request, *args, **kwargs): return self...
{"/tests/test_view.py": ["/tests/mixins.py"], "/drf_batch_requests/request.py": ["/drf_batch_requests/exceptions.py", "/drf_batch_requests/serializers.py", "/drf_batch_requests/utils.py"], "/drf_batch_requests/views.py": ["/drf_batch_requests/exceptions.py", "/drf_batch_requests/graph.py", "/drf_batch_requests/request....
19,226
roman-karpovich/drf-batch-requests
refs/heads/master
/drf_batch_requests/graph.py
class RequestGraphNode(object): STATUS_FAILED = -1 STATUS_FAILED_PARENT = -2 STATUS_NOT_STARTED = 0 STATUS_IN_PROGRESS = 1 STATUS_COMPLETED = 2 def __init__(self, request=None): self.request = request self.name = self.request.get('name') self.parents = set() self...
{"/tests/test_view.py": ["/tests/mixins.py"], "/drf_batch_requests/request.py": ["/drf_batch_requests/exceptions.py", "/drf_batch_requests/serializers.py", "/drf_batch_requests/utils.py"], "/drf_batch_requests/views.py": ["/drf_batch_requests/exceptions.py", "/drf_batch_requests/graph.py", "/drf_batch_requests/request....
19,236
ivan-shishkov/29_phones
refs/heads/master
/db.py
import os from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import scoped_session, sessionmaker from sqlalchemy import create_engine, Column, Integer, String Base = declarative_base() engine = create_engine(os.environ.get('DATABASE_URI')) db_session = scoped_session(sessionmaker(bind=engin...
{"/normalize_phones.py": ["/db.py"]}
19,237
ivan-shishkov/29_phones
refs/heads/master
/normalize_phones.py
import time import re from sqlalchemy.exc import OperationalError import phonenumbers from phonenumbers.phonenumberutil import NumberParseException from db import db_session, Order TIMEOUT_BETWEEN_PHONES_NORMALIZATION_CYCLES = 5 * 60 TIMEOUT_WHEN_ERROR = 10 TIMEOUT_BETWEEN_TRANSACTIONS = 5 def get_normalized_phone...
{"/normalize_phones.py": ["/db.py"]}
19,238
ivan-shishkov/29_phones
refs/heads/master
/alembic/versions/ece6c9ebeb97_add_normalized_contact_phone_column.py
"""add normalized contact phone column Revision ID: ece6c9ebeb97 Revises: Create Date: 2018-12-09 21:46:17.286164 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'ece6c9ebeb97' down_revision = None branch_labels = None depends_on = None def upgrade(): op...
{"/normalize_phones.py": ["/db.py"]}
19,239
kiamasimon/efarmer
refs/heads/master
/accountant/migrations/0006_product_number_of_units.py
# Generated by Django 2.2.1 on 2019-05-31 07:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accountant', '0005_auto_20190526_1836'), ] operations = [ migrations.AddField( model_name='product', name='number_of...
{"/accountant/forms.py": ["/accountant/models.py"], "/accountant/views.py": ["/accountant/forms.py", "/accountant/models.py"], "/accountant/admin.py": ["/accountant/models.py"]}
19,240
kiamasimon/efarmer
refs/heads/master
/accountant/models.py
from django.contrib.auth import get_user_model from django.contrib.auth.models import User from django.db import models # Create your models here. class Accountant(get_user_model()): location = models.CharField(max_length=100, null=True, blank=True) class Meta: verbose_name = 'Accountant' class Ad...
{"/accountant/forms.py": ["/accountant/models.py"], "/accountant/views.py": ["/accountant/forms.py", "/accountant/models.py"], "/accountant/admin.py": ["/accountant/models.py"]}
19,241
kiamasimon/efarmer
refs/heads/master
/accountant/forms.py
from django.contrib.auth.forms import UserCreationForm from django.forms import ModelForm from accountant.models import Accountant, Product, Sale, Stock, Customer class SignUpForm(UserCreationForm): class Meta: model = Accountant fields = ('username', 'first_name', 'last_name', 'email', 'locatio...
{"/accountant/forms.py": ["/accountant/models.py"], "/accountant/views.py": ["/accountant/forms.py", "/accountant/models.py"], "/accountant/admin.py": ["/accountant/models.py"]}
19,242
kiamasimon/efarmer
refs/heads/master
/accountant/migrations/0008_auto_20190531_0752.py
# Generated by Django 2.2.1 on 2019-05-31 07:52 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('accountant', '0007_sale_customer_name'), ] operations = [ migrations.CreateModel( name='Custome...
{"/accountant/forms.py": ["/accountant/models.py"], "/accountant/views.py": ["/accountant/forms.py", "/accountant/models.py"], "/accountant/admin.py": ["/accountant/models.py"]}
19,243
kiamasimon/efarmer
refs/heads/master
/accountant/migrations/0009_auto_20190531_0845.py
# Generated by Django 2.2.1 on 2019-05-31 08:45 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('accountant', '0008_auto_20190531_0752'), ] operations = [ migrations.RenameField( model_name='sale', old_name='customer_name...
{"/accountant/forms.py": ["/accountant/models.py"], "/accountant/views.py": ["/accountant/forms.py", "/accountant/models.py"], "/accountant/admin.py": ["/accountant/models.py"]}
19,244
kiamasimon/efarmer
refs/heads/master
/accountant/views.py
from django.contrib import messages from django.contrib.auth import authenticate, login from django.shortcuts import render, redirect # Create your views here. from accountant.forms import SignUpForm, AddProductForm, AddStockForm, AddCustomerForm, AddSaleForm from accountant.models import Accountant, Admin_User, Stock...
{"/accountant/forms.py": ["/accountant/models.py"], "/accountant/views.py": ["/accountant/forms.py", "/accountant/models.py"], "/accountant/admin.py": ["/accountant/models.py"]}
19,245
kiamasimon/efarmer
refs/heads/master
/accountant/migrations/0003_auto_20190526_1816.py
# Generated by Django 2.2.1 on 2019-05-26 18:16 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('accountant', '0002_admin...
{"/accountant/forms.py": ["/accountant/models.py"], "/accountant/views.py": ["/accountant/forms.py", "/accountant/models.py"], "/accountant/admin.py": ["/accountant/models.py"]}
19,246
kiamasimon/efarmer
refs/heads/master
/accountant/urls.py
from django.urls import path from accountant import views app_name = 'Accountant' urlpatterns = [ path('landing_page', views.landing, name='landing_page'), path('sign_up', views.sign_up, name='sign_up'), path('sign_in', views.sign_in, name='sign_in'), path('dashboard', views.dashboard, name='dashboard'...
{"/accountant/forms.py": ["/accountant/models.py"], "/accountant/views.py": ["/accountant/forms.py", "/accountant/models.py"], "/accountant/admin.py": ["/accountant/models.py"]}
19,247
kiamasimon/efarmer
refs/heads/master
/accountant/migrations/0004_auto_20190526_1821.py
# Generated by Django 2.2.1 on 2019-05-26 18:21 from django.conf import settings from django.db import migrations class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('accountant', '0003_auto_20190526_1816'), ] operations = ...
{"/accountant/forms.py": ["/accountant/models.py"], "/accountant/views.py": ["/accountant/forms.py", "/accountant/models.py"], "/accountant/admin.py": ["/accountant/models.py"]}
19,248
kiamasimon/efarmer
refs/heads/master
/accountant/migrations/0007_sale_customer_name.py
# Generated by Django 2.2.1 on 2019-05-31 07:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accountant', '0006_product_number_of_units'), ] operations = [ migrations.AddField( model_name='sale', name='custome...
{"/accountant/forms.py": ["/accountant/models.py"], "/accountant/views.py": ["/accountant/forms.py", "/accountant/models.py"], "/accountant/admin.py": ["/accountant/models.py"]}
19,249
kiamasimon/efarmer
refs/heads/master
/accountant/admin.py
from django.contrib import admin # Register your models here. from accountant.models import Admin_User, Accountant, Stock admin.site.register(Admin_User) admin.site.register(Accountant) admin.site.register(Stock)
{"/accountant/forms.py": ["/accountant/models.py"], "/accountant/views.py": ["/accountant/forms.py", "/accountant/models.py"], "/accountant/admin.py": ["/accountant/models.py"]}
19,250
kiamasimon/efarmer
refs/heads/master
/accountant/migrations/0005_auto_20190526_1836.py
# Generated by Django 2.2.1 on 2019-05-26 18:36 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('accountant', '0004_auto_20190526_1821'), ] operations = [ migrations.AddField( model_name='product'...
{"/accountant/forms.py": ["/accountant/models.py"], "/accountant/views.py": ["/accountant/forms.py", "/accountant/models.py"], "/accountant/admin.py": ["/accountant/models.py"]}
19,263
Kes-trel/Iris-Flower-Cluster-Analysis
refs/heads/main
/app.py
import pandas as pd import streamlit as st import seaborn as sns sns.set() from functions import screen_data, scater_plot, elbow_method, cluster_data, scale_cluster_data raw_data = pd.read_csv("iris_with_species.csv") st.set_page_config(page_title="Species Segmentation with Cluster Analysis",page_icon="🌼", layout="...
{"/app.py": ["/functions.py"]}
19,264
Kes-trel/Iris-Flower-Cluster-Analysis
refs/heads/main
/functions.py
import matplotlib.pyplot as plt from sklearn.cluster import KMeans from sklearn import preprocessing def screen_data(petal_sepal, data): data_select = data.copy() if petal_sepal == "sepal": data_select = data.iloc[:, :-3] return data_select elif petal_sepal == "petal": data_select =...
{"/app.py": ["/functions.py"]}
19,265
marticongost/woost.extensions.nocaptcha
refs/heads/master
/woost/extensions/nocaptcha/__init__.py
#-*- coding: utf-8 -*- """ .. moduleauthor:: Martí Congost <marti.congost@whads.com> """ from woost import app from . import settings, admin from .member import NoCaptcha, NoCaptchaValidationError from .form import add_nocaptcha, requires_nocaptcha
{"/woost/extensions/nocaptcha/__init__.py": ["/woost/extensions/nocaptcha/member.py", "/woost/extensions/nocaptcha/form.py"], "/woost/extensions/nocaptcha/form.py": ["/woost/extensions/nocaptcha/member.py"]}
19,266
marticongost/woost.extensions.nocaptcha
refs/heads/master
/woost/extensions/nocaptcha/settings.py
#-*- coding: utf-8 -*- """ .. moduleauthor:: Martí Congost <marti.congost@whads.com> """ from cocktail import schema from cocktail.translations import translations from woost.models import add_setting, Configuration translations.load_bundle("woost.extensions.nocaptcha.settings") add_setting( schema.String( ...
{"/woost/extensions/nocaptcha/__init__.py": ["/woost/extensions/nocaptcha/member.py", "/woost/extensions/nocaptcha/form.py"], "/woost/extensions/nocaptcha/form.py": ["/woost/extensions/nocaptcha/member.py"]}
19,267
marticongost/woost.extensions.nocaptcha
refs/heads/master
/setup.py
#-*- coding: utf-8 -*- """ .. moduleauthor:: Martí Congost <marti.congost@whads.com> """ from setuptools import setup setup( name = "woost.extensions.nocaptcha", version = "0.0b1", author = "Whads/Accent SL", author_email = "tech@whads.com", maintainer = "Marti Congost", maintainer_email = "ma...
{"/woost/extensions/nocaptcha/__init__.py": ["/woost/extensions/nocaptcha/member.py", "/woost/extensions/nocaptcha/form.py"], "/woost/extensions/nocaptcha/form.py": ["/woost/extensions/nocaptcha/member.py"]}
19,268
marticongost/woost.extensions.nocaptcha
refs/heads/master
/woost/extensions/nocaptcha/form.py
#-*- coding: utf-8 -*- """ .. moduleauthor:: Martí Congost <marti.congost@whads.com> """ from cocktail.events import when from .member import NoCaptcha def add_nocaptcha(form, **member_kwargs): member_kwargs.setdefault("name", "nocaptcha") member_kwargs.setdefault("member_group", "nocaptcha") member = No...
{"/woost/extensions/nocaptcha/__init__.py": ["/woost/extensions/nocaptcha/member.py", "/woost/extensions/nocaptcha/form.py"], "/woost/extensions/nocaptcha/form.py": ["/woost/extensions/nocaptcha/member.py"]}
19,269
marticongost/woost.extensions.nocaptcha
refs/heads/master
/woost/extensions/nocaptcha/admin/sections.py
#-*- coding: utf-8 -*- """ .. moduleauthor:: Martí Congost <marti.congost@whads.com> """ from cocktail.events import when from cocktail.translations import translations from woost.admin.sections import Settings from woost.admin.sections.contentsection import ContentSection translations.load_bundle("woost.extensions.n...
{"/woost/extensions/nocaptcha/__init__.py": ["/woost/extensions/nocaptcha/member.py", "/woost/extensions/nocaptcha/form.py"], "/woost/extensions/nocaptcha/form.py": ["/woost/extensions/nocaptcha/member.py"]}
19,270
marticongost/woost.extensions.nocaptcha
refs/heads/master
/woost/extensions/nocaptcha/member.py
#-*- coding: utf-8 -*- """ .. moduleauthor:: Martí Congost <marti.congost@whads.com> """ import cherrypy from json import loads import urllib.request, urllib.parse, urllib.error import urllib.request, urllib.error, urllib.parse from cocktail.translations import translations from cocktail import schema from cocktail.ht...
{"/woost/extensions/nocaptcha/__init__.py": ["/woost/extensions/nocaptcha/member.py", "/woost/extensions/nocaptcha/form.py"], "/woost/extensions/nocaptcha/form.py": ["/woost/extensions/nocaptcha/member.py"]}
19,298
Architect0711/PythonReference
refs/heads/master
/OOP/my_module_folder/__init__.py
__all__ = [ "my_submodule_1" ] from .my_submodule_1 import my_submodule_1
{"/OOP/my_module_folder/__init__.py": ["/OOP/my_module_folder/my_submodule_1.py"]}
19,299
Architect0711/PythonReference
refs/heads/master
/OOP/my_module_folder/my_submodule_1.py
class my_submodule_1(): def do_something(self): print("my_submodule_1 does something")
{"/OOP/my_module_folder/__init__.py": ["/OOP/my_module_folder/my_submodule_1.py"]}
19,300
Architect0711/PythonReference
refs/heads/master
/OOP/my_module.py
def method_1(): print("my_module.method_1()") def method_2(): print("my_module.method_2()")
{"/OOP/my_module_folder/__init__.py": ["/OOP/my_module_folder/my_submodule_1.py"]}
19,304
DistriNet/avalanche-ndss2020
refs/heads/master
/feature_generation/generate_ground_truth.py
import csv import os from subprocess import run # Execute after generating feature values. (generate_feature_values) def prepare_files_oneset(snapshot_date, classification_types, input_folder, output_folder, with_classification=True): classification = {} if os.path.exists("{}/{}/domains_classification.csv".f...
{"/feature_generation/generate_feature_values.py": ["/feature_generation/features.py"], "/feature_generation/features.py": ["/feature_generation/retrieve_sinkhole_data.py"]}
19,305
DistriNet/avalanche-ndss2020
refs/heads/master
/evaluation_code_and_models/dataprocessing/sampleselection.py
import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from evaluation.postanalysis import workReducedPostDomains from joblib import load import random as rand def random(x, y, **kwargs): '''randomly pick domains''' try: fraction = kwargs['fraction'] except Ke...
{"/feature_generation/generate_feature_values.py": ["/feature_generation/features.py"], "/feature_generation/features.py": ["/feature_generation/retrieve_sinkhole_data.py"]}
19,306
DistriNet/avalanche-ndss2020
refs/heads/master
/evaluation_code_and_models/production_train.py
import argparse import pandas as pd import numpy as np from sklearn.ensemble import GradientBoostingClassifier from sklearn.model_selection import GridSearchCV from joblib import dump, load from dataprocessing.preprocessing import loadAndCleanDataMaxDom if __name__ == "__main__": parser = argparse.ArgumentParse...
{"/feature_generation/generate_feature_values.py": ["/feature_generation/features.py"], "/feature_generation/features.py": ["/feature_generation/retrieve_sinkhole_data.py"]}
19,307
DistriNet/avalanche-ndss2020
refs/heads/master
/evaluation_code_and_models/ensemble_evaluation.py
import pandas as pd import numpy as np import utils import argparse from joblib import load import itertools from sklearn.ensemble import GradientBoostingClassifier from sklearn.model_selection import KFold, StratifiedKFold from sklearn.metrics import confusion_matrix, f1_score, roc_auc_score, precision_score, recall_...
{"/feature_generation/generate_feature_values.py": ["/feature_generation/features.py"], "/feature_generation/features.py": ["/feature_generation/retrieve_sinkhole_data.py"]}
19,308
DistriNet/avalanche-ndss2020
refs/heads/master
/feature_generation/generate_feature_values.py
import csv import datetime import os import re import traceback from feature_generation.features import FeatureSet def traverse_file(file, input_new_domain): orig_new_domain = input_new_domain new_domain = re.sub(r'[^\w]', '', input_new_domain) if input_new_domain else input_new_domain return_line = None ...
{"/feature_generation/generate_feature_values.py": ["/feature_generation/features.py"], "/feature_generation/features.py": ["/feature_generation/retrieve_sinkhole_data.py"]}
19,309
DistriNet/avalanche-ndss2020
refs/heads/master
/evaluation_code_and_models/evaluation/preanalysis.py
import numpy as np import seaborn as sns from matplotlib import pyplot as plt from sklearn.decomposition import PCA from sklearn.preprocessing import StandardScaler from sklearn.covariance import empirical_covariance from scipy.ndimage import gaussian_filter def pcaAnalysis(features, labels, path): ''' Do a ...
{"/feature_generation/generate_feature_values.py": ["/feature_generation/features.py"], "/feature_generation/features.py": ["/feature_generation/retrieve_sinkhole_data.py"]}
19,310
DistriNet/avalanche-ndss2020
refs/heads/master
/evaluation_code_and_models/evaluation/metrics.py
from matplotlib import pyplot as plt import matplotlib.ticker import matplotlib.patches as patches import pandas as pd import numpy as np from sklearn.model_selection import KFold, StratifiedKFold from sklearn.ensemble import GradientBoostingClassifier from joblib import load import warnings warnings.filterwarnings("i...
{"/feature_generation/generate_feature_values.py": ["/feature_generation/features.py"], "/feature_generation/features.py": ["/feature_generation/retrieve_sinkhole_data.py"]}
19,311
DistriNet/avalanche-ndss2020
refs/heads/master
/evaluation_code_and_models/production_evaluation.py
import datetime import os import argparse import json import matplotlib.ticker import matplotlib.patches as patches import pandas as pd import numpy as np import utils from sklearn.preprocessing import StandardScaler, Binarizer, LabelEncoder, LabelBinarizer, OneHotEncoder from sklearn.pipeline import Pipeline from sk...
{"/feature_generation/generate_feature_values.py": ["/feature_generation/features.py"], "/feature_generation/features.py": ["/feature_generation/retrieve_sinkhole_data.py"]}
19,312
DistriNet/avalanche-ndss2020
refs/heads/master
/evaluation_code_and_models/experiment.py
import argparse import json import pandas as pd import numpy as np from sklearn.pipeline import Pipeline from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier from sklearn.model_selection import train_test_split, KFold, StratifiedKFold from sklearn.metrics import confusion_matrix, f1_score, ...
{"/feature_generation/generate_feature_values.py": ["/feature_generation/features.py"], "/feature_generation/features.py": ["/feature_generation/retrieve_sinkhole_data.py"]}
19,313
DistriNet/avalanche-ndss2020
refs/heads/master
/feature_generation/features.py
import csv import datetime import json import os import traceback import dateutil.parser as dateparser # Reminder: this only applies to already registered domains, e.g. these domains would have to be seized if they turn out # to be malicious. import feature_generation.retrieve_sinkhole_data as retrieve_sink...
{"/feature_generation/generate_feature_values.py": ["/feature_generation/features.py"], "/feature_generation/features.py": ["/feature_generation/retrieve_sinkhole_data.py"]}
19,314
DistriNet/avalanche-ndss2020
refs/heads/master
/evaluation_code_and_models/ensemble_2019_evaluation.py
import datetime import os import argparse import json import matplotlib.ticker import matplotlib.patches as patches import pandas as pd import numpy as np import utils from sklearn.preprocessing import StandardScaler, Binarizer, LabelEncoder, LabelBinarizer, OneHotEncoder from sklearn.pipeline import Pipeline from sk...
{"/feature_generation/generate_feature_values.py": ["/feature_generation/features.py"], "/feature_generation/features.py": ["/feature_generation/retrieve_sinkhole_data.py"]}
19,315
DistriNet/avalanche-ndss2020
refs/heads/master
/evaluation_code_and_models/dataset_impact_evaluation_extended.py
import datetime import os import argparse import json import matplotlib.ticker import matplotlib.patches as patches import pandas as pd import numpy as np import utils from sklearn.preprocessing import StandardScaler, Binarizer, LabelEncoder, LabelBinarizer, OneHotEncoder from sklearn.pipeline import Pipeline from sk...
{"/feature_generation/generate_feature_values.py": ["/feature_generation/features.py"], "/feature_generation/features.py": ["/feature_generation/retrieve_sinkhole_data.py"]}
19,316
DistriNet/avalanche-ndss2020
refs/heads/master
/evaluation_code_and_models/utils.py
def translatecode(code): out = '' for char in code: if char == '1': out += 'Y' else: out += 'N' return out def translateyear(year): out = 'somethingwentworng' if year == '2017': out = 'A' elif year == '2018': out = 'B' elif year == '20...
{"/feature_generation/generate_feature_values.py": ["/feature_generation/features.py"], "/feature_generation/features.py": ["/feature_generation/retrieve_sinkhole_data.py"]}
19,317
DistriNet/avalanche-ndss2020
refs/heads/master
/evaluation_code_and_models/macroify.py
def macroify(dct): result_string = "" for k, v in dct.items(): result_string += "{}\n".format(macroify_single(k, v)) return result_string def macroify_single(key, value): return "\\newcommand{{\\{key}}}{{{value}}}".format(key=key, value=value) def append_file(dct): with open('latexvariable...
{"/feature_generation/generate_feature_values.py": ["/feature_generation/features.py"], "/feature_generation/features.py": ["/feature_generation/retrieve_sinkhole_data.py"]}
19,318
DistriNet/avalanche-ndss2020
refs/heads/master
/evaluation_code_and_models/evaluation/postanalysis.py
import pandas as pd import numpy as np import datetime from sklearn.metrics import confusion_matrix import macroify def saveFpFnDf(x_test,y_test,y_pred,columnnames,domainname, path): ''' Save the domains that were falsy classified. FP and FN are saved in sperate files :param x_test: features of the data poin...
{"/feature_generation/generate_feature_values.py": ["/feature_generation/features.py"], "/feature_generation/features.py": ["/feature_generation/retrieve_sinkhole_data.py"]}
19,319
DistriNet/avalanche-ndss2020
refs/heads/master
/feature_generation/retrieve_sinkhole_data.py
import csv import os import time import urllib.request from glob import glob import socket import requests from credentials import SINKDB_HTTP_API_KEY def download_sinkholes_stamparm(formatted_snapshot_date): """ ns = document.querySelectorAll(".js-navigation-open"); results = []; for (i = 0; i < ns...
{"/feature_generation/generate_feature_values.py": ["/feature_generation/features.py"], "/feature_generation/features.py": ["/feature_generation/retrieve_sinkhole_data.py"]}
19,320
DistriNet/avalanche-ndss2020
refs/heads/master
/evaluation_code_and_models/incremental_learning_evaluation.py
import dataprocessing.preprocessing as pre from sklearn.ensemble import GradientBoostingClassifier from sklearn.model_selection import train_test_split from joblib import load import utils import argparse import pandas as pd import numpy as np import itertools from joblib import dump from sklearn.metrics import conf...
{"/feature_generation/generate_feature_values.py": ["/feature_generation/features.py"], "/feature_generation/features.py": ["/feature_generation/retrieve_sinkhole_data.py"]}
19,321
DistriNet/avalanche-ndss2020
refs/heads/master
/evaluation_code_and_models/dataprocessing/preprocessing.py
import pandas as pd from sklearn.preprocessing import Binarizer, OneHotEncoder, LabelBinarizer, LabelEncoder from sklearn.impute import SimpleImputer import numpy as np import os def loadDataIntersectSamples(sourcepattern, malwareFamily, year): '''Loads the data. Every dataset combination leads contains domains o...
{"/feature_generation/generate_feature_values.py": ["/feature_generation/features.py"], "/feature_generation/features.py": ["/feature_generation/retrieve_sinkhole_data.py"]}
19,323
koles161rus/invertedPendulum
refs/heads/master
/inverted_pendulum (1)/inverted_pendulum/fuzzy/fuzzy_controller.py
from .fuzzyinference import FuzzyControl from math import pi def get_controller(): ctrl = FuzzyControl() theta_division = 12 theta_memberships = [ ['trapezoid_left', -1.57 / theta_division, -0.58 / theta_division, 'vn'], ['triangle', -0.3927 / theta_division, 0.327 * 2.0 / theta_division, ...
{"/inverted_pendulum (1)/inverted_pendulum/qlearning/qlearning.py": ["/inverted_pendulum (1)/inverted_pendulum/fuzzy/fuzzy_controller.py"]}
19,324
koles161rus/invertedPendulum
refs/heads/master
/inverted_pendulum (1)/inverted_pendulum/simulation/simulation.py
from math import sin, cos, pi import random class Simulator: def simulate_step(self, state, F, dt): x, x_dot, theta, theta_dot = state m = 0.2 M = 3 L = 0.3 K = 0.006 A = x B = x_dot C = theta D = theta_dot g = 9.81 b = 0.1 ...
{"/inverted_pendulum (1)/inverted_pendulum/qlearning/qlearning.py": ["/inverted_pendulum (1)/inverted_pendulum/fuzzy/fuzzy_controller.py"]}
19,325
koles161rus/invertedPendulum
refs/heads/master
/inverted_pendulum (1)/main.py
from inverted_pendulum.qlearning.qlearning import QLearning from inverted_pendulum.fuzzy.fuzzy_controller import * from numpy import pi, cos, sin import random import matplotlib.pyplot as plt from inverted_pendulum.simulation.simulation import Simulator import numpy as np class InvertedPendulumBalancer: def __i...
{"/inverted_pendulum (1)/inverted_pendulum/qlearning/qlearning.py": ["/inverted_pendulum (1)/inverted_pendulum/fuzzy/fuzzy_controller.py"]}
19,326
koles161rus/invertedPendulum
refs/heads/master
/inverted_pendulum (1)/inverted_pendulum/qlearning/qlearning.py
import random from math import pi import numpy as np from ..fuzzy.fuzzy_controller import get_controller class QLearning: def __init__(self, max_theta, max_dtheta, max_x, max_dx, n_theta, n_dtheta, n_x, n_dx, n_action, is_fuzzy=False): self.init_constants() self.max_theta = max_theta self...
{"/inverted_pendulum (1)/inverted_pendulum/qlearning/qlearning.py": ["/inverted_pendulum (1)/inverted_pendulum/fuzzy/fuzzy_controller.py"]}
19,327
koles161rus/invertedPendulum
refs/heads/master
/inverted_pendulum (1)/pendulum.py
from math import * from numpy import * import pygame import numpy as np import control.matlab from main import InvertedPendulumBalancer dt = 0.01 g = 9.81 l = 1.0 m = 1.0 global k1, k2, k3 k1 = 500000 k2 = 10000 k3 = 10000 global q1, q2, q3, q4, r q1 = 0.001 q2 = 0.001 q3 = 1000000000 q4 = 20000000 r = 0.005 clock...
{"/inverted_pendulum (1)/inverted_pendulum/qlearning/qlearning.py": ["/inverted_pendulum (1)/inverted_pendulum/fuzzy/fuzzy_controller.py"]}
19,331
qsq-dm/mff
refs/heads/master
/admin/urls.py
# -*- coding: utf-8 -*- from flask import request from flask import Blueprint, render_template, abort from jinja2 import TemplateNotFound from admin.views import index from admin.views import get_city_list from admin.views import login from admin.views ...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,332
qsq-dm/mff
refs/heads/master
/migrations/versions/4db11f101899_.py
"""empty message Revision ID: 4db11f101899 Revises: 4d043b343761 Create Date: 2015-12-09 15:21:29.065236 """ # revision identifiers, used by Alembic. revision = '4db11f101899' down_revision = '4d043b343761' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,333
qsq-dm/mff
refs/heads/master
/thirdparty/wechat.py
# -*- coding: utf-8 -*- import time import urllib import urllib2 import hashlib from flask import request import weixin.client WechatAuthAPI = weixin.client.WeixinAPI from wechat_sdk import WechatBasic from settings import WECHAT_APP_ID from settings import WECHAT_APP_SECRET from settings import WECHAT_APP_TOKE...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,334
qsq-dm/mff
refs/heads/master
/util/validators.py
# -*- coding: utf-8 -*- import re import json import urllib2 from util.utils import union_dict phoneprefix = [ '130','131','132','133','134','135','136','137','138','139', '150','151','152','153','154','155','156','157','158','159', '170','171','172','173','174','175','176','177','178','179', ...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,335
qsq-dm/mff
refs/heads/master
/migrations/versions/1c198b1a91cb_.py
"""empty message Revision ID: 1c198b1a91cb Revises: 15e92c9ccee8 Create Date: 2015-12-14 14:13:25.240489 """ # revision identifiers, used by Alembic. revision = '1c198b1a91cb' down_revision = '15e92c9ccee8' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,336
qsq-dm/mff
refs/heads/master
/migrations/versions/3bed4aa05b5a_.py
"""empty message Revision ID: 3bed4aa05b5a Revises: 4593874013ba Create Date: 2015-12-05 17:49:05.566697 """ # revision identifiers, used by Alembic. revision = '3bed4aa05b5a' down_revision = '4593874013ba' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,337
qsq-dm/mff
refs/heads/master
/thirdparty/views.py
# -*- coding: utf-8 -*- from flask import request from flask import Blueprint, render_template, abort from jinja2 import TemplateNotFound from thirdparty.wechat import wechat from settings import CONTACT from ops.promote import PromoteService server_verify = Blueprint('server_verify', __name__, ...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,338
qsq-dm/mff
refs/heads/master
/migrations/versions/174b0601e7f1_.py
"""empty message Revision ID: 174b0601e7f1 Revises: c2bb73ecf64 Create Date: 2016-01-05 11:10:04.014741 """ # revision identifiers, used by Alembic. revision = '174b0601e7f1' down_revision = 'c2bb73ecf64' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrade(): #xianp...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,339
qsq-dm/mff
refs/heads/master
/migrations/versions/2c01f9e048f7_.py
"""empty message Revision ID: 2c01f9e048f7 Revises: 34a907573645 Create Date: 2015-11-06 09:49:11.763111 """ # revision identifiers, used by Alembic. revision = '2c01f9e048f7' down_revision = '34a907573645' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,340
qsq-dm/mff
refs/heads/master
/migrations/versions/e1bfa676445_.py
"""empty message Revision ID: e1bfa676445 Revises: 21e38b1473b2 Create Date: 2015-11-07 16:08:03.127777 """ # revision identifiers, used by Alembic. revision = 'e1bfa676445' down_revision = '21e38b1473b2' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - pl...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,341
qsq-dm/mff
refs/heads/master
/migrations/versions/1b538e70897_.py
"""empty message Revision ID: 1b538e70897 Revises: 19af1cb7edf0 Create Date: 2016-03-04 15:38:47.633307 """ # revision identifiers, used by Alembic. revision = '1b538e70897' down_revision = '19af1cb7edf0' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrade(): ### co...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,342
qsq-dm/mff
refs/heads/master
/migrations/versions/32a72ba0ce03_.py
"""empty message Revision ID: 32a72ba0ce03 Revises: e1bfa676445 Create Date: 2015-11-09 11:37:08.933073 """ # revision identifiers, used by Alembic. revision = '32a72ba0ce03' down_revision = 'e1bfa676445' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - pl...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,343
qsq-dm/mff
refs/heads/master
/ops/room_design.py
# -*- coding: utf-8 -*- from sqlalchemy import and_ from sqlalchemy import or_ from sqlalchemy import func from util.sqlerr import SQL_DUPLICATE from util.sqlerr import SQL_DUPLICATE_PHONE from util.utils import convert_locaton from util.utils import dt_obj from models import db from...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,344
qsq-dm/mff
refs/heads/master
/util/sign.py
# -*- coding: utf-8 -*- import os import time import hashlib from flask import request from settings import ADMIN_COOKIE_KEY from settings import HOSPITAL_COOKIE_KEY from settings import PROMOTE_COOKIE_KEY from settings import SECRET_USER_COOKIE from settings import DOMAIN def sign_user(user_id): if not user_id...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,345
qsq-dm/mff
refs/heads/master
/migrations/versions/200344fc698d_.py
"""empty message Revision ID: 200344fc698d Revises: 3ae16db9c83e Create Date: 2016-01-27 15:15:16.187355 """ # revision identifiers, used by Alembic. revision = '200344fc698d' down_revision = '3ae16db9c83e' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,346
qsq-dm/mff
refs/heads/master
/migrations/versions/33a1596e092f_.py
"""empty message Revision ID: 33a1596e092f Revises: 2c06aa19dd1a Create Date: 2015-11-26 14:02:10.367734 """ # revision identifiers, used by Alembic. revision = '33a1596e092f' down_revision = '2c06aa19dd1a' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,347
qsq-dm/mff
refs/heads/master
/user/trial.py
# -*- coding: utf-8 -*- from flask import request from sqlalchemy import and_ from sqlalchemy import or_ from models import * from models import Order from ops.order import OrderService from ops.trial import TrialService from util.utils import dt_obj from util.utils import date_to_datetime from util.uti...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,348
qsq-dm/mff
refs/heads/master
/app.py
# -*- coding: utf-8 -*- import sys reload(sys) sys.setdefaultencoding('utf-8') from flask import Flask from flask import request from flask import render_template from flask import send_from_directory from flask.ext.sqlalchemy import SQLAlchemy from models import db from util.utils import jsonify_response fro...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,349
qsq-dm/mff
refs/heads/master
/migrations/versions/51aaf1e0ecdd_.py
"""empty message Revision ID: 51aaf1e0ecdd Revises: a123ae998bf Create Date: 2015-11-16 10:22:20.483272 """ # revision identifiers, used by Alembic. revision = '51aaf1e0ecdd' down_revision = 'a123ae998bf' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - pl...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,350
qsq-dm/mff
refs/heads/master
/migrations/versions/2b097c44cbba_.py
"""empty message Revision ID: 2b097c44cbba Revises: 4806ede530e3 Create Date: 2015-11-24 10:03:17.516996 """ # revision identifiers, used by Alembic. revision = '2b097c44cbba' down_revision = '4806ede530e3' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,351
qsq-dm/mff
refs/heads/master
/migrations/versions/125c0c0cb424_.py
"""empty message Revision ID: 125c0c0cb424 Revises: c855246d7e8 Create Date: 2015-11-03 11:42:59.684984 """ # revision identifiers, used by Alembic. revision = '125c0c0cb424' down_revision = 'c855246d7e8' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - pl...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,352
qsq-dm/mff
refs/heads/master
/migrations/versions/57be38c1806e_.py
"""empty message Revision ID: 57be38c1806e Revises: 6a2ac421f56 Create Date: 2016-02-24 16:41:00.918666 """ # revision identifiers, used by Alembic. revision = '57be38c1806e' down_revision = '6a2ac421f56' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - pl...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,353
qsq-dm/mff
refs/heads/master
/migrations/versions/19af1cb7edf0_.py
"""empty message Revision ID: 19af1cb7edf0 Revises: 5adc2c5e2c4f Create Date: 2016-03-03 16:30:05.662503 """ # revision identifiers, used by Alembic. revision = '19af1cb7edf0' down_revision = '5adc2c5e2c4f' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,354
qsq-dm/mff
refs/heads/master
/migrations/versions/5329d119ee5f_.py
"""empty message Revision ID: 5329d119ee5f Revises: 125c0c0cb424 Create Date: 2015-11-04 10:52:05.593655 """ # revision identifiers, used by Alembic. revision = '5329d119ee5f' down_revision = '125c0c0cb424' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrade(): ### ...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,355
qsq-dm/mff
refs/heads/master
/ops/hospital.py
# -*- coding: utf-8 -*- from collections import defaultdict from sqlalchemy import and_ from util.sqlerr import SQL_DUPLICATE_NAME from util.sqlerr import SQL_DUPLICATE_PHONE from models import db from models import Item from ops.utils import get_items from ops.utils import coun...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,356
qsq-dm/mff
refs/heads/master
/ops/utils.py
# -*- coding: utf-8 -*- from functools import wraps from sqlalchemy import func from util.utils import keep_fields_from_list from models import db def get_page(model, condition=None, offset=None, \ limit=10, fields=None, \ start=None, end=None, where=None, \ join=None, ord...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,357
qsq-dm/mff
refs/heads/master
/sql_profile.py
# -*- coding: utf-8 -*- import sys reload(sys) sys.setdefaultencoding('utf-8') import time from sqlalchemy import event from sqlalchemy.engine import Engine @event.listens_for(Engine, "before_cursor_execute") def before_cursor_execute(conn, cursor, statement, parameters, context, executemany)...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,358
qsq-dm/mff
refs/heads/master
/migrations/versions/5853d4187f15_.py
"""empty message Revision ID: 5853d4187f15 Revises: 3f2769d4ed16 Create Date: 2016-01-07 15:41:09.540410 """ # revision identifiers, used by Alembic. revision = '5853d4187f15' down_revision = '3f2769d4ed16' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,359
qsq-dm/mff
refs/heads/master
/migrations/versions/4bbb37c90d8c_.py
"""empty message Revision ID: 4bbb37c90d8c Revises: 13a5889df13 Create Date: 2016-03-09 10:49:01.279517 """ # revision identifiers, used by Alembic. revision = '4bbb37c90d8c' down_revision = '13a5889df13' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - pl...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,360
qsq-dm/mff
refs/heads/master
/migrations/versions/2ce138017f09_.py
"""empty message Revision ID: 2ce138017f09 Revises: 38dd6746c99b Create Date: 2015-12-10 19:14:00.636524 """ # revision identifiers, used by Alembic. revision = '2ce138017f09' down_revision = '38dd6746c99b' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,361
qsq-dm/mff
refs/heads/master
/user/views.py
# -*- coding: utf-8 -*- import os import time import json from itertools import chain from flask import request from flask import redirect from flask import render_template from flask import send_from_directory from sqlalchemy import case from sqlalchemy import and_ from sqlalchemy import or_ from mode...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,362
qsq-dm/mff
refs/heads/master
/migrations/versions/10f3ed6c72ed_.py
"""empty message Revision ID: 10f3ed6c72ed Revises: 75f96105f81 Create Date: 2015-11-27 15:05:27.624606 """ # revision identifiers, used by Alembic. revision = '10f3ed6c72ed' down_revision = '75f96105f81' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - pl...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,363
qsq-dm/mff
refs/heads/master
/user/room_design.py
# -*- coding: utf-8 -*- from flask import request from flask import redirect from flask import render_template from flask import send_from_directory from sqlalchemy import and_ from sqlalchemy import or_ from models import db from models import School from models import RoomDesign...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,364
qsq-dm/mff
refs/heads/master
/migrations/versions/4f4ce8bff86a_.py
"""empty message Revision ID: 4f4ce8bff86a Revises: 11da3b568bd2 Create Date: 2016-01-09 17:18:22.196431 """ # revision identifiers, used by Alembic. revision = '4f4ce8bff86a' down_revision = '11da3b568bd2' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,365
qsq-dm/mff
refs/heads/master
/ops/trial.py
# -*- coding: utf-8 -*- from sqlalchemy import and_ from sqlalchemy import func from util.sqlerr import SQL_DUPLICATE from util.sqlerr import SQL_DUPLICATE_PHONE from util.utils import dt_obj from models import db from models import Trial from models import TrialApply from mo...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,366
qsq-dm/mff
refs/heads/master
/migrations/versions/c2bb73ecf64_.py
"""empty message Revision ID: c2bb73ecf64 Revises: 3c990682c3f0 Create Date: 2016-01-04 19:47:55.690716 """ # revision identifiers, used by Alembic. revision = 'c2bb73ecf64' down_revision = '3c990682c3f0' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - pl...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,367
qsq-dm/mff
refs/heads/master
/migrations/versions/53a9d06e37ce_.py
"""empty message Revision ID: 53a9d06e37ce Revises: 2eed88b994ed Create Date: 2015-10-31 14:18:39.072291 """ # revision identifiers, used by Alembic. revision = '53a9d06e37ce' down_revision = '2eed88b994ed' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrade(): ### ...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,368
qsq-dm/mff
refs/heads/master
/migrations/versions/38dd6746c99b_.py
"""empty message Revision ID: 38dd6746c99b Revises: 42d4367e28b2 Create Date: 2015-12-10 17:50:20.145840 """ # revision identifiers, used by Alembic. revision = '38dd6746c99b' down_revision = '42d4367e28b2' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,369
qsq-dm/mff
refs/heads/master
/admin/views.py
# -*- coding: utf-8 -*- import json import time import math import pickle from base64 import b64decode from sqlalchemy import and_ from sqlalchemy import or_ from sqlalchemy import not_ from flask import request from flask import redirect from flask import Blueprint from flask import render_template from flask import m...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,370
qsq-dm/mff
refs/heads/master
/migrations/versions/42d4367e28b2_.py
"""empty message Revision ID: 42d4367e28b2 Revises: 569e3d7f70ab Create Date: 2015-12-10 10:58:36.611750 """ # revision identifiers, used by Alembic. revision = '42d4367e28b2' down_revision = '569e3d7f70ab' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,371
qsq-dm/mff
refs/heads/master
/ops/data.py
# -*- coding: utf-8 -*- import requests from util.sqlerr import SQL_DUPLICATE_NAME from models import db from models import School from models import City from models import HelpCat from models import HelpEntry from models import ImageSize from ops.utils import...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,372
qsq-dm/mff
refs/heads/master
/migrations/versions/4c9fdc97c246_.py
"""empty message Revision ID: 4c9fdc97c246 Revises: 51187e1e4dbc Create Date: 2015-11-16 11:05:15.297821 """ # revision identifiers, used by Alembic. revision = '4c9fdc97c246' down_revision = '51187e1e4dbc' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,373
qsq-dm/mff
refs/heads/master
/migrations/versions/c855246d7e8_.py
"""empty message Revision ID: c855246d7e8 Revises: 1bef4d9bd99b Create Date: 2015-11-03 10:38:03.675764 """ # revision identifiers, used by Alembic. revision = 'c855246d7e8' down_revision = '1bef4d9bd99b' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - pl...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,374
qsq-dm/mff
refs/heads/master
/migrations/versions/2ab4005efb6c_.py
"""empty message Revision ID: 2ab4005efb6c Revises: 2a01c5929823 Create Date: 2016-01-27 16:01:27.623336 """ # revision identifiers, used by Alembic. revision = '2ab4005efb6c' down_revision = '2a01c5929823' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,375
qsq-dm/mff
refs/heads/master
/migrations/versions/5784ac6510c3_.py
"""empty message Revision ID: 5784ac6510c3 Revises: 345ee23bca8 Create Date: 2015-12-09 18:03:16.566805 """ # revision identifiers, used by Alembic. revision = '5784ac6510c3' down_revision = '345ee23bca8' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - pl...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,376
qsq-dm/mff
refs/heads/master
/ops/credit.py
# -*- coding: utf-8 -*- from decimal import Decimal from sqlalchemy import and_ from models import db from models import CreditUseLog from models import Order from models import UserCredit from models import PeriodPayLog from models import PeriodPayChoice from models import CreditApply from...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,377
qsq-dm/mff
refs/heads/master
/migrations/versions/3ae16db9c83e_.py
"""empty message Revision ID: 3ae16db9c83e Revises: 3d0882a6044 Create Date: 2016-01-27 15:03:50.881072 """ # revision identifiers, used by Alembic. revision = '3ae16db9c83e' down_revision = '3d0882a6044' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrade(): ''' ''...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...
19,378
qsq-dm/mff
refs/heads/master
/ops/common.py
# -*- coding: utf-8 -*- from sqlalchemy import and_ from models import db from models import Order from ops.user import UserService from ops.order import OrderService from ops.credit import CreditService from ops.activity import ActivityService from ops.room_design import RoomDesignService from ops.it...
{"/admin/urls.py": ["/admin/views.py"], "/ops/room_design.py": ["/util/sqlerr.py", "/util/utils.py", "/models.py", "/ops/utils.py", "/ops/cache.py", "/settings.py"], "/util/sign.py": ["/settings.py"], "/ops/hospital.py": ["/util/sqlerr.py", "/models.py", "/ops/utils.py"], "/ops/utils.py": ["/util/utils.py", "/models.py...