index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
31,812
Turbo-wang/tmw6102
refs/heads/master
/utils/process_sentence.py
from __future__ import print_function from nltk.tokenize import word_tokenize import train_utils import math import sys reload(sys) sys.setdefaultencoding('utf8') from nltk.tokenize import word_tokenize # import matplotlib.pyplot as plt def tokenize_text(text, length = 1000): # _tokenizer = nltk.tokenize.RegexpTo...
{"/utils/train_utils.py": ["/configs/config.py"]}
31,813
Turbo-wang/tmw6102
refs/heads/master
/data/decodefile.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import base64 import gzip import sys from collections import namedtuple Page = namedtuple("Page", "url, html, text, mime_type, encoding, lang") def read_lett_iter(f, decode = True): pass def decode_file(file): fh = file flag = False if file.endswith('gz'...
{"/utils/train_utils.py": ["/configs/config.py"]}
31,814
Turbo-wang/tmw6102
refs/heads/master
/configs/config.py
import os CORPORA_DIR = '../data/' CORPUS_ENG = '../data/eng_text.out' CORPUS_FR = '../data/fr_text.out' TEST_DIR = '../data/test/lett.test' TEST_DIR_UNZIP = '../data/test'
{"/utils/train_utils.py": ["/configs/config.py"]}
31,815
Turbo-wang/tmw6102
refs/heads/master
/lib/model_cnn.py
# from __future__ import print_function import numpy as np np.random.seed(1337) # for reproducibility from keras.preprocessing import sequence from keras.models import Sequential from keras.layers.core import Dense, Dropout, Activation, Lambda from keras.layers.embeddings import Embedding from keras.layers.convolutio...
{"/utils/train_utils.py": ["/configs/config.py"]}
31,816
Turbo-wang/tmw6102
refs/heads/master
/utils/train_utils.py
from __future__ import print_function from os import listdir from os.path import isfile, join import base64 import gzip import sys # reload(sys) # sys.setdefaultencoding('utf8') import numpy import os import random import re import time import numpy as np from scipy.spatial.distance import cosine re_obj = re.compile('[...
{"/utils/train_utils.py": ["/configs/config.py"]}
31,834
kfinn/elizabeth-pipeline
refs/heads/master
/scripts/generate_maximum_projection.py
import cli.log class GenerateMaximumProjectionJob: def __init__(self, source_image_prefix, destination): self.source_image_prefix = source_image_prefix self.destination = destination def start(self): # read all the images # maximially project them # compute the z-axis distance distribution ...
{"/scripts/generate_all_maximum_projections.py": ["/generate_maximum_projection.py"], "/generate_all_maximum_projections.py": ["/generate_maximum_projection.py", "/models/image_filename.py", "/models/image_filename_glob.py", "/models/paths.py", "/models/swarm_job.py"], "/generate_all_spot_positions.py": ["/generate_spo...
31,835
kfinn/elizabeth-pipeline
refs/heads/master
/scripts/generate_all_maximum_projections.py
import traceback from datetime import datetime from pathlib import Path import cli.log import logging from generate_maximum_projection import generate_maximum_projection_cli_str import subprocess from time import sleep class GenerateAllMaximumProjectionsJob: def __init__(self, source, destination): self.source =...
{"/scripts/generate_all_maximum_projections.py": ["/generate_maximum_projection.py"], "/generate_all_maximum_projections.py": ["/generate_maximum_projection.py", "/models/image_filename.py", "/models/image_filename_glob.py", "/models/paths.py", "/models/swarm_job.py"], "/generate_all_spot_positions.py": ["/generate_spo...
31,874
marcocajeao/walllet_python
refs/heads/master
/utils/mongo.py
# coding=utf_8 import pymongo import utils.config as config client = pymongo.MongoClient(config.get_database_server_url(), config.get_database_server_port()) db = client['wallet'] transaction = db.transaction
{"/wallet/route.py": ["/wallet/crud_service.py", "/wallet/find_service.py"], "/wallet/find_service.py": ["/utils/mongo.py"], "/wallet/crud_service.py": ["/utils/mongo.py", "/wallet/transaction_schema.py"]}
31,875
marcocajeao/walllet_python
refs/heads/master
/wallet/route.py
# coding=utf_8 import flask import wallet.crud_service as crud import wallet.find_service as find import utils.json_serializer as json import utils.errors as errors import utils.security as security def init(app): """ Inicializa las rutas para Wallet\n app: Flask """ @app.route('/v1/wallet/<user...
{"/wallet/route.py": ["/wallet/crud_service.py", "/wallet/find_service.py"], "/wallet/find_service.py": ["/utils/mongo.py"], "/wallet/crud_service.py": ["/utils/mongo.py", "/wallet/transaction_schema.py"]}
31,876
marcocajeao/walllet_python
refs/heads/master
/wallet/find_service.py
# coding=utf_8 import utils.mongo as db import utils.errors as error def getFundsWallet(user_id): """ Busca la cantidad de dinero disponible de la billetera de un usuario.\n user_id string usuario a buscar """ """ @api {get} /v1/wallet/:user_id/ Consultar fondos @apiName Consultar fondos ...
{"/wallet/route.py": ["/wallet/crud_service.py", "/wallet/find_service.py"], "/wallet/find_service.py": ["/utils/mongo.py"], "/wallet/crud_service.py": ["/utils/mongo.py", "/wallet/transaction_schema.py"]}
31,877
marcocajeao/walllet_python
refs/heads/master
/wallet/crud_service.py
# coding=utf_8 import utils.mongo as db import utils.errors as error import bson.objectid as bson import datetime import wallet.transaction_schema as schema def addDeposit(params, user_id): """ Agrega un deposito.\n params: dict<propiedad, valor> Transaccion\n return dict<propiedad, valor> Transaccio...
{"/wallet/route.py": ["/wallet/crud_service.py", "/wallet/find_service.py"], "/wallet/find_service.py": ["/utils/mongo.py"], "/wallet/crud_service.py": ["/utils/mongo.py", "/wallet/transaction_schema.py"]}
31,878
marcocajeao/walllet_python
refs/heads/master
/wallet/transaction_schema.py
# coding=utf_8 import numbers import datetime import utils.schema_validator as validator import utils.errors as errors # Validaciones generales del esquema, se valida solo lo que el usuario puede cambiar TRANSACTION_DB_SCHEMA = { "amount": { "required": True, "type": numbers.Real, "min": 0...
{"/wallet/route.py": ["/wallet/crud_service.py", "/wallet/find_service.py"], "/wallet/find_service.py": ["/utils/mongo.py"], "/wallet/crud_service.py": ["/utils/mongo.py", "/wallet/transaction_schema.py"]}
31,913
MarieBonifacio/Projet-Simplon
refs/heads/master
/snippets/views.py
from django.shortcuts import render from django.views import View from django.http import HttpResponse, JsonResponse from django.views.decorators.csrf import csrf_exempt from rest_framework.parsers import JSONParser from snippets.models import Profile from snippets.serializers import ProfileSerializer from .forms impor...
{"/snippets/views.py": ["/snippets/serializers.py"]}
31,914
MarieBonifacio/Projet-Simplon
refs/heads/master
/snippets/urls.py
from django.urls import path from snippets import views urlpatterns = [ # # path('snippets/', views.profile_list), # # path('snippets/<int:pk>/', views.profile_detail), ]
{"/snippets/views.py": ["/snippets/serializers.py"]}
31,915
MarieBonifacio/Projet-Simplon
refs/heads/master
/snippets/serializers.py
from rest_framework import serializers from snippets.models import Profile, LANGUAGE_CHOICES, STYLE_CHOICES class ProfileSerializer(serializers.Serializer): type = serializers.CharField(required=False, allow_blank=True, max_length=100) name = serializers.CharField(required=False, allow_blank=True, max_length...
{"/snippets/views.py": ["/snippets/serializers.py"]}
31,916
MarieBonifacio/Projet-Simplon
refs/heads/master
/snippets/test/test_models.py
from unittest.mock import patch from django.test import TestCase from django.contrib.auth import get_user_model from snippets import models from snippets.models import Profile class ModelTests(TestCase): def test_create_profile(self): """Test creating a new profile""" type = 'A' name =...
{"/snippets/views.py": ["/snippets/serializers.py"]}
31,917
captainGeech42/daas
refs/heads/main
/daas/models.py
import enum from sqlalchemy import Column, Integer, DateTime, String, Boolean, Enum from sqlalchemy.sql import func from .exts import db class User(db.Model): id = Column(Integer, primary_key=True) ts = Column(DateTime, server_default=func.now()) apikey = Column(String(64), unique=True) desc = Column...
{"/daas/decompile.py": ["/daas/models.py", "/daas/auth.py"], "/daas/auth.py": ["/daas/models.py"], "/daas/__init__.py": ["/daas/cmds.py", "/daas/auth.py", "/daas/decompile.py"]}
31,918
captainGeech42/daas
refs/heads/main
/daas/decompile.py
import base64 import os import random import shutil import string import subprocess import _thread from flask import Blueprint, request from .exts import db from .models import Binary, DecompilationStatus from .auth import auth_required BINARY = "binary" DECOMP_OUTPUT = "output.c" decompile = Blueprint("decompile",...
{"/daas/decompile.py": ["/daas/models.py", "/daas/auth.py"], "/daas/auth.py": ["/daas/models.py"], "/daas/__init__.py": ["/daas/cmds.py", "/daas/auth.py", "/daas/decompile.py"]}
31,919
captainGeech42/daas
refs/heads/main
/daas/auth.py
import base64 from functools import wraps import json from flask import abort, Blueprint, request from .exts import db from .models import User auth = Blueprint("auth", __name__) def _generate_api_key(): with open("/dev/urandom", "rb") as f: r = f.read(32) key = base64.b64encode(r).decode() ...
{"/daas/decompile.py": ["/daas/models.py", "/daas/auth.py"], "/daas/auth.py": ["/daas/models.py"], "/daas/__init__.py": ["/daas/cmds.py", "/daas/auth.py", "/daas/decompile.py"]}
31,920
captainGeech42/daas
refs/heads/main
/decompile.py
#! /usr/bin/env python # -*- coding: UTF-8 -*- # Author : <github.com/tintinweb> """ This script was written by tintinweb, and is from https://github.com/tintinweb/ida-batch_decompile """ """ IdaBatchDecompile Plugin and Script adds annotation and batch decompilation functionality to IDA Pro * requires hexrays decom...
{"/daas/decompile.py": ["/daas/models.py", "/daas/auth.py"], "/daas/auth.py": ["/daas/models.py"], "/daas/__init__.py": ["/daas/cmds.py", "/daas/auth.py", "/daas/decompile.py"]}
31,921
captainGeech42/daas
refs/heads/main
/daas/__init__.py
import os from flask import Flask from .exts import db from .cmds import db_init def create_app(): app = Flask(__name__) app.config["SECRET_KEY"] = os.getenv("FLASK_SECRET_KEY", "goodsecretkeyhere") app.config["SQLALCHEMY_DATABASE_URI"] = os.getenv("DB_URI", "sqlite:///daas.db") app.config["SQLALCHE...
{"/daas/decompile.py": ["/daas/models.py", "/daas/auth.py"], "/daas/auth.py": ["/daas/models.py"], "/daas/__init__.py": ["/daas/cmds.py", "/daas/auth.py", "/daas/decompile.py"]}
31,922
captainGeech42/daas
refs/heads/main
/daas/cmds.py
import base64 from flask import current_app from flask.cli import with_appcontext import click from .exts import db @click.command("db-init") @with_appcontext def db_init(): db.create_all(app=current_app) click.echo("Initialized SQLite database")
{"/daas/decompile.py": ["/daas/models.py", "/daas/auth.py"], "/daas/auth.py": ["/daas/models.py"], "/daas/__init__.py": ["/daas/cmds.py", "/daas/auth.py", "/daas/decompile.py"]}
31,923
TurbulenceLabs/CexAMM
refs/heads/master
/cex_model.py
import os import hmac import time import hashlib import requests from retrying import retry from datetime import datetime def retry_if_not_interrupt(exception): return not isinstance(exception, KeyboardInterrupt) class AMM_Model(object): def __init__(self, api_key, secret_key) -> None: super().__in...
{"/cex_bivar.py": ["/cex_model.py"]}
31,924
TurbulenceLabs/CexAMM
refs/heads/master
/cex_bivar.py
import sys import time from queue import Queue from cex_model import AMM_Model class Bivar(AMM_Model): def __init__(self, api_key, secret_key, shares, first_step=0.01, second_step=0.0, second_order_depth=5, symbol_name='GRIN', )...
{"/cex_bivar.py": ["/cex_model.py"]}
31,925
ivancarrancho/Corrosive-the-punk-rooster-
refs/heads/master
/User/admin.py
# -*- encoding: utf-8 -*- from django.contrib import admin from django.contrib.auth.models import Group from User.models import UserData admin.site.unregister(Group) @admin.register(UserData) class CustomUserAdmin(admin.ModelAdmin): list_display = ( 'id', 'first_name', 'last_name', ...
{"/User/admin.py": ["/User/models.py"], "/cms/admin.py": ["/cms/models.py"], "/cms/forms.py": ["/cms/models.py"], "/cms/views.py": ["/cms/models.py"], "/cms/urls.py": ["/cms/views.py"], "/User/urls.py": ["/User/views.py"], "/User/forms.py": ["/User/models.py"]}
31,926
ivancarrancho/Corrosive-the-punk-rooster-
refs/heads/master
/User/models.py
# -*- encoding: utf-8 -*- from __future__ import unicode_literals # from django.contrib.auth.models import AbstractBaseUser # from django.contrib.auth.models import BaseUserManager # from django.contrib.auth.models import PermissionsMixin # from django.core.mail import send_mail from django.db import models class User...
{"/User/admin.py": ["/User/models.py"], "/cms/admin.py": ["/cms/models.py"], "/cms/forms.py": ["/cms/models.py"], "/cms/views.py": ["/cms/models.py"], "/cms/urls.py": ["/cms/views.py"], "/User/urls.py": ["/User/views.py"], "/User/forms.py": ["/User/models.py"]}
31,927
ivancarrancho/Corrosive-the-punk-rooster-
refs/heads/master
/bin/django-admin.py
#!/Users/ivanramirez/Documents/ivan/Corrosive-the-punk-rooster-/bin/python from django.core import management if __name__ == "__main__": management.execute_from_command_line()
{"/User/admin.py": ["/User/models.py"], "/cms/admin.py": ["/cms/models.py"], "/cms/forms.py": ["/cms/models.py"], "/cms/views.py": ["/cms/models.py"], "/cms/urls.py": ["/cms/views.py"], "/User/urls.py": ["/User/views.py"], "/User/forms.py": ["/User/models.py"]}
31,928
ivancarrancho/Corrosive-the-punk-rooster-
refs/heads/master
/cms/models.py
# -*- encoding: utf-8 -*- from __future__ import unicode_literals from django.db import models from adminsortable.models import SortableMixin class Team(SortableMixin): name = models.CharField( blank=True, max_length=40, verbose_name='Nombre del equipo', ) CATEGORY_CHOICES = ( ...
{"/User/admin.py": ["/User/models.py"], "/cms/admin.py": ["/cms/models.py"], "/cms/forms.py": ["/cms/models.py"], "/cms/views.py": ["/cms/models.py"], "/cms/urls.py": ["/cms/views.py"], "/User/urls.py": ["/User/views.py"], "/User/forms.py": ["/User/models.py"]}
31,929
ivancarrancho/Corrosive-the-punk-rooster-
refs/heads/master
/User/migrations/0006_auto_20160425_1950.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-04-25 19:50 from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('User', '0005_auto_20160424_2045'), ...
{"/User/admin.py": ["/User/models.py"], "/cms/admin.py": ["/cms/models.py"], "/cms/forms.py": ["/cms/models.py"], "/cms/views.py": ["/cms/models.py"], "/cms/urls.py": ["/cms/views.py"], "/User/urls.py": ["/User/views.py"], "/User/forms.py": ["/User/models.py"]}
31,930
ivancarrancho/Corrosive-the-punk-rooster-
refs/heads/master
/cms/admin.py
from django.contrib import admin from cms.models import Team from cms.models import Picture # from cms.forms import TeamUseradminForm from adminsortable.admin import SortableAdmin class Pictureadmin(admin.TabularInline): model = Picture extra = 1 fields = ( 'name', 'image', ) order...
{"/User/admin.py": ["/User/models.py"], "/cms/admin.py": ["/cms/models.py"], "/cms/forms.py": ["/cms/models.py"], "/cms/views.py": ["/cms/models.py"], "/cms/urls.py": ["/cms/views.py"], "/User/urls.py": ["/User/views.py"], "/User/forms.py": ["/User/models.py"]}
31,931
ivancarrancho/Corrosive-the-punk-rooster-
refs/heads/master
/cms/migrations/0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-03-14 20:14 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Team', ...
{"/User/admin.py": ["/User/models.py"], "/cms/admin.py": ["/cms/models.py"], "/cms/forms.py": ["/cms/models.py"], "/cms/views.py": ["/cms/models.py"], "/cms/urls.py": ["/cms/views.py"], "/User/urls.py": ["/User/views.py"], "/User/forms.py": ["/User/models.py"]}
31,932
ivancarrancho/Corrosive-the-punk-rooster-
refs/heads/master
/cms/forms.py
from django import forms from cms.models import Team class TeamUseradminForm(forms.ModelForm): def __init__(self, *args, **kwargs): super(TeamUseradminForm, self).__init__(*args, **kwargs) self.args = args def clean(self): cleaned_data = super(TeamUseradminForm, self).clean() ...
{"/User/admin.py": ["/User/models.py"], "/cms/admin.py": ["/cms/models.py"], "/cms/forms.py": ["/cms/models.py"], "/cms/views.py": ["/cms/models.py"], "/cms/urls.py": ["/cms/views.py"], "/User/urls.py": ["/User/views.py"], "/User/forms.py": ["/User/models.py"]}
31,933
ivancarrancho/Corrosive-the-punk-rooster-
refs/heads/master
/cms/views.py
# -*- encoding: utf-8 -*- from cms.models import Team from django.views.generic import ListView # Create your views here. # # class TeamListView(ListView): model = Team def get_query_set(self): return Team.objects.all()
{"/User/admin.py": ["/User/models.py"], "/cms/admin.py": ["/cms/models.py"], "/cms/forms.py": ["/cms/models.py"], "/cms/views.py": ["/cms/models.py"], "/cms/urls.py": ["/cms/views.py"], "/User/urls.py": ["/User/views.py"], "/User/forms.py": ["/User/models.py"]}
31,934
ivancarrancho/Corrosive-the-punk-rooster-
refs/heads/master
/cms/urls.py
# -*- encoding: utf-8 -*- from django.conf.urls import url from cms.views import TeamListView from django.conf.urls.static import static from django.conf import settings urlpatterns = [ url(r'^teams/$',TeamListView.as_view(),name='team_list'), ]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
{"/User/admin.py": ["/User/models.py"], "/cms/admin.py": ["/cms/models.py"], "/cms/forms.py": ["/cms/models.py"], "/cms/views.py": ["/cms/models.py"], "/cms/urls.py": ["/cms/views.py"], "/User/urls.py": ["/User/views.py"], "/User/forms.py": ["/User/models.py"]}
31,935
ivancarrancho/Corrosive-the-punk-rooster-
refs/heads/master
/cms/migrations/0002_auto_20160318_1641.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-03-18 16:41 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('cms', '0001_initial'), ] operations = [ mig...
{"/User/admin.py": ["/User/models.py"], "/cms/admin.py": ["/cms/models.py"], "/cms/forms.py": ["/cms/models.py"], "/cms/views.py": ["/cms/models.py"], "/cms/urls.py": ["/cms/views.py"], "/User/urls.py": ["/User/views.py"], "/User/forms.py": ["/User/models.py"]}
31,936
ivancarrancho/Corrosive-the-punk-rooster-
refs/heads/master
/cms/migrations/0003_auto_20160318_1717.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-03-18 17:17 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cms', '0002_auto_20160318_1641'), ] operations = [ migrations.AlterModelOpti...
{"/User/admin.py": ["/User/models.py"], "/cms/admin.py": ["/cms/models.py"], "/cms/forms.py": ["/cms/models.py"], "/cms/views.py": ["/cms/models.py"], "/cms/urls.py": ["/cms/views.py"], "/User/urls.py": ["/User/views.py"], "/User/forms.py": ["/User/models.py"]}
31,937
ivancarrancho/Corrosive-the-punk-rooster-
refs/heads/master
/User/migrations/0005_auto_20160424_2045.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-04-25 01:45 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('User', '0004_auto_20160423_0025'), ] operations = [ migrations.CreateModel( ...
{"/User/admin.py": ["/User/models.py"], "/cms/admin.py": ["/cms/models.py"], "/cms/forms.py": ["/cms/models.py"], "/cms/views.py": ["/cms/models.py"], "/cms/urls.py": ["/cms/views.py"], "/User/urls.py": ["/User/views.py"], "/User/forms.py": ["/User/models.py"]}
31,938
ivancarrancho/Corrosive-the-punk-rooster-
refs/heads/master
/cms/migrations/0004_auto_20160321_2147.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-03-22 02:47 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cms', '0003_auto_20160318_1717'), ] operations = [ migrations.AlterModelOpti...
{"/User/admin.py": ["/User/models.py"], "/cms/admin.py": ["/cms/models.py"], "/cms/forms.py": ["/cms/models.py"], "/cms/views.py": ["/cms/models.py"], "/cms/urls.py": ["/cms/views.py"], "/User/urls.py": ["/User/views.py"], "/User/forms.py": ["/User/models.py"]}
31,939
ivancarrancho/Corrosive-the-punk-rooster-
refs/heads/master
/User/urls.py
# -*- encoding: utf-8 -*- from django.conf.urls import url from User.views import UserPageView, SuccessLoginView, SuccessSignUpView, SuccessLogoutView, HomePageView # from django.contrib.auth import from . import views urlpatterns = [ url(r'^$', HomePageView.as_view(), name='home_view'), url(r'^users', UserPageVie...
{"/User/admin.py": ["/User/models.py"], "/cms/admin.py": ["/cms/models.py"], "/cms/forms.py": ["/cms/models.py"], "/cms/views.py": ["/cms/models.py"], "/cms/urls.py": ["/cms/views.py"], "/User/urls.py": ["/User/views.py"], "/User/forms.py": ["/User/models.py"]}
31,940
ivancarrancho/Corrosive-the-punk-rooster-
refs/heads/master
/User/forms.py
from django import forms from User.models import UserData class RegistrationForm(forms.ModelForm): class Meta: model = UserData fields = "__all__" # def __init__(self, *args, **kwargs): # super(RegistrationForm, self).__init__(*args, **kwargs) # cleaned_data = super(Registrati...
{"/User/admin.py": ["/User/models.py"], "/cms/admin.py": ["/cms/models.py"], "/cms/forms.py": ["/cms/models.py"], "/cms/views.py": ["/cms/models.py"], "/cms/urls.py": ["/cms/views.py"], "/User/urls.py": ["/User/views.py"], "/User/forms.py": ["/User/models.py"]}
31,941
ivancarrancho/Corrosive-the-punk-rooster-
refs/heads/master
/User/views.py
from django.shortcuts import render, redirect from django.views.generic import ListView, TemplateView from django.contrib.auth.models import User from django.contrib.auth import authenticate from django.contrib.auth import login from django.contrib.auth import logout from User.forms import RegistrationForm from User.mo...
{"/User/admin.py": ["/User/models.py"], "/cms/admin.py": ["/cms/models.py"], "/cms/forms.py": ["/cms/models.py"], "/cms/views.py": ["/cms/models.py"], "/cms/urls.py": ["/cms/views.py"], "/User/urls.py": ["/User/views.py"], "/User/forms.py": ["/User/models.py"]}
31,942
ivancarrancho/Corrosive-the-punk-rooster-
refs/heads/master
/User/migrations/0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-03-03 13:58 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='User', ...
{"/User/admin.py": ["/User/models.py"], "/cms/admin.py": ["/cms/models.py"], "/cms/forms.py": ["/cms/models.py"], "/cms/views.py": ["/cms/models.py"], "/cms/urls.py": ["/cms/views.py"], "/User/urls.py": ["/User/views.py"], "/User/forms.py": ["/User/models.py"]}
31,943
ivancarrancho/Corrosive-the-punk-rooster-
refs/heads/master
/app/urls.py
from django.conf.urls import url from django.contrib import admin from django.conf.urls import include urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'', include('User.urls', namespace='user')), url(r'', include('cms.urls', namespace='cms')), ] # No se que hace esto # + static(settings.MEDIA_URL,...
{"/User/admin.py": ["/User/models.py"], "/cms/admin.py": ["/cms/models.py"], "/cms/forms.py": ["/cms/models.py"], "/cms/views.py": ["/cms/models.py"], "/cms/urls.py": ["/cms/views.py"], "/User/urls.py": ["/User/views.py"], "/User/forms.py": ["/User/models.py"]}
31,948
SergMagpie/my_project
refs/heads/master
/hollywood/movies/models.py
from django.db import models from django.db.models.fields import CharField from actors.models import Actor from django.contrib.auth.models import User class Genre(models.Model): """ Action ScienceFiction Horror Musical """ name = CharField(max_length=20) def __str__(self) -> str: ...
{"/hollywood/movies/views.py": ["/hollywood/movies/models.py", "/hollywood/movies/forms.py"], "/hollywood/actors/admin.py": ["/hollywood/actors/models.py"], "/hollywood/movies/urls.py": ["/hollywood/movies/views.py"], "/hollywood/movies/admin.py": ["/hollywood/movies/models.py"], "/my_site/itstep/views.py": ["/my_site/...
31,949
SergMagpie/my_project
refs/heads/master
/hollywood/actors/apps.py
from django.apps import AppConfig class ActorsConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'actors'
{"/hollywood/movies/views.py": ["/hollywood/movies/models.py", "/hollywood/movies/forms.py"], "/hollywood/actors/admin.py": ["/hollywood/actors/models.py"], "/hollywood/movies/urls.py": ["/hollywood/movies/views.py"], "/hollywood/movies/admin.py": ["/hollywood/movies/models.py"], "/my_site/itstep/views.py": ["/my_site/...
31,950
SergMagpie/my_project
refs/heads/master
/hollywood/movies/migrations/0002_alter_movie_actors.py
# Generated by Django 3.2.4 on 2021-06-09 18:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('actors', '0002_alter_actor_birthday'), ('movies', '0001_initial'), ] operations = [ migrations.AlterField( model_name='m...
{"/hollywood/movies/views.py": ["/hollywood/movies/models.py", "/hollywood/movies/forms.py"], "/hollywood/actors/admin.py": ["/hollywood/actors/models.py"], "/hollywood/movies/urls.py": ["/hollywood/movies/views.py"], "/hollywood/movies/admin.py": ["/hollywood/movies/models.py"], "/my_site/itstep/views.py": ["/my_site/...
31,951
SergMagpie/my_project
refs/heads/master
/hollywood/movies/views.py
from django.forms import models from django.http.response import HttpResponse from django.shortcuts import render, redirect from .models import Movie, Genre from datetime import date from .forms import AddMovieForm, FeedbackForm from django.contrib.auth.decorators import login_required from django.views.generic import...
{"/hollywood/movies/views.py": ["/hollywood/movies/models.py", "/hollywood/movies/forms.py"], "/hollywood/actors/admin.py": ["/hollywood/actors/models.py"], "/hollywood/movies/urls.py": ["/hollywood/movies/views.py"], "/hollywood/movies/admin.py": ["/hollywood/movies/models.py"], "/my_site/itstep/views.py": ["/my_site/...
31,952
SergMagpie/my_project
refs/heads/master
/hollywood/movies/migrations/0001_initial.py
# Generated by Django 3.2.4 on 2021-06-09 17:58 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('actors', '0002_alter_actor_birthday'), ] operations = [ migrations.CreateModel( ...
{"/hollywood/movies/views.py": ["/hollywood/movies/models.py", "/hollywood/movies/forms.py"], "/hollywood/actors/admin.py": ["/hollywood/actors/models.py"], "/hollywood/movies/urls.py": ["/hollywood/movies/views.py"], "/hollywood/movies/admin.py": ["/hollywood/movies/models.py"], "/my_site/itstep/views.py": ["/my_site/...
31,953
SergMagpie/my_project
refs/heads/master
/my_site/itstep/models.py
from django.db import models from django.urls import reverse # Create your models here. class Exercises(models.Model): title = models.CharField(max_length=255, verbose_name='title') content = models.TextField(blank=True, verbose_name='content') photo = models.ImageField(upload_to="photos/", verbose_name=...
{"/hollywood/movies/views.py": ["/hollywood/movies/models.py", "/hollywood/movies/forms.py"], "/hollywood/actors/admin.py": ["/hollywood/actors/models.py"], "/hollywood/movies/urls.py": ["/hollywood/movies/views.py"], "/hollywood/movies/admin.py": ["/hollywood/movies/models.py"], "/my_site/itstep/views.py": ["/my_site/...
31,954
SergMagpie/my_project
refs/heads/master
/my_site/itstep/apps.py
from django.apps import AppConfig class ItstepConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'itstep' verbose_name = 'It Step'
{"/hollywood/movies/views.py": ["/hollywood/movies/models.py", "/hollywood/movies/forms.py"], "/hollywood/actors/admin.py": ["/hollywood/actors/models.py"], "/hollywood/movies/urls.py": ["/hollywood/movies/views.py"], "/hollywood/movies/admin.py": ["/hollywood/movies/models.py"], "/my_site/itstep/views.py": ["/my_site/...
31,955
SergMagpie/my_project
refs/heads/master
/my_site/itstep/migrations/0003_rename_cat_id_exercises_cat.py
# Generated by Django 3.2.4 on 2021-06-13 18:57 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('itstep', '0002_auto_20210613_1534'), ] operations = [ migrations.RenameField( model_name='exercises', old_name='cat_id', ...
{"/hollywood/movies/views.py": ["/hollywood/movies/models.py", "/hollywood/movies/forms.py"], "/hollywood/actors/admin.py": ["/hollywood/actors/models.py"], "/hollywood/movies/urls.py": ["/hollywood/movies/views.py"], "/hollywood/movies/admin.py": ["/hollywood/movies/models.py"], "/my_site/itstep/views.py": ["/my_site/...
31,956
SergMagpie/my_project
refs/heads/master
/hollywood/actors/admin.py
from django.contrib import admin from django.db import models from .models import Actor # Register your models here. @admin.register(Actor) class ActorAdmin(admin.ModelAdmin): pass
{"/hollywood/movies/views.py": ["/hollywood/movies/models.py", "/hollywood/movies/forms.py"], "/hollywood/actors/admin.py": ["/hollywood/actors/models.py"], "/hollywood/movies/urls.py": ["/hollywood/movies/views.py"], "/hollywood/movies/admin.py": ["/hollywood/movies/models.py"], "/my_site/itstep/views.py": ["/my_site/...
31,957
SergMagpie/my_project
refs/heads/master
/hollywood/movies/urls.py
from django.urls import path from .views import add_actor, movie_new, feedback_view, index, MovieListView, movies_list, movie_added_me urlpatterns = [ path("", index), path("add-movie", movie_new, name="add-movie"), path("movie-list", movies_list, name="movie-list"), path("feedback", feedback_view), ...
{"/hollywood/movies/views.py": ["/hollywood/movies/models.py", "/hollywood/movies/forms.py"], "/hollywood/actors/admin.py": ["/hollywood/actors/models.py"], "/hollywood/movies/urls.py": ["/hollywood/movies/views.py"], "/hollywood/movies/admin.py": ["/hollywood/movies/models.py"], "/my_site/itstep/views.py": ["/my_site/...
31,958
SergMagpie/my_project
refs/heads/master
/my_site/itstep/migrations/0004_alter_exercises_cat.py
# Generated by Django 3.2.4 on 2021-06-13 19:01 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('itstep', '0003_rename_cat_id_exercises_cat'), ] operations = [ migrations.AlterField( model_nam...
{"/hollywood/movies/views.py": ["/hollywood/movies/models.py", "/hollywood/movies/forms.py"], "/hollywood/actors/admin.py": ["/hollywood/actors/models.py"], "/hollywood/movies/urls.py": ["/hollywood/movies/views.py"], "/hollywood/movies/admin.py": ["/hollywood/movies/models.py"], "/my_site/itstep/views.py": ["/my_site/...
31,959
SergMagpie/my_project
refs/heads/master
/hollywood/actors/migrations/0002_alter_actor_birthday.py
# Generated by Django 3.2.4 on 2021-06-09 16:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('actors', '0001_initial'), ] operations = [ migrations.AlterField( model_name='actor', name='birthday', f...
{"/hollywood/movies/views.py": ["/hollywood/movies/models.py", "/hollywood/movies/forms.py"], "/hollywood/actors/admin.py": ["/hollywood/actors/models.py"], "/hollywood/movies/urls.py": ["/hollywood/movies/views.py"], "/hollywood/movies/admin.py": ["/hollywood/movies/models.py"], "/my_site/itstep/views.py": ["/my_site/...
31,960
SergMagpie/my_project
refs/heads/master
/my_site/itstep/templatetags/itstep_tags.py
from django import template from itstep.models import * register = template.Library() @register.simple_tag(name='getcats') def get_categories(): return Category.objects.all()
{"/hollywood/movies/views.py": ["/hollywood/movies/models.py", "/hollywood/movies/forms.py"], "/hollywood/actors/admin.py": ["/hollywood/actors/models.py"], "/hollywood/movies/urls.py": ["/hollywood/movies/views.py"], "/hollywood/movies/admin.py": ["/hollywood/movies/models.py"], "/my_site/itstep/views.py": ["/my_site/...
31,961
SergMagpie/my_project
refs/heads/master
/hollywood/movies/admin.py
from django.contrib import admin from django.db.models import fields from django.forms.models import ModelForm from .models import Genre, Movie from django import forms # Register your models here. @admin.register(Genre) class GenreAdmin(admin.ModelAdmin): pass class MovieAdminForm(forms.ModelForm): class M...
{"/hollywood/movies/views.py": ["/hollywood/movies/models.py", "/hollywood/movies/forms.py"], "/hollywood/actors/admin.py": ["/hollywood/actors/models.py"], "/hollywood/movies/urls.py": ["/hollywood/movies/views.py"], "/hollywood/movies/admin.py": ["/hollywood/movies/models.py"], "/my_site/itstep/views.py": ["/my_site/...
31,962
SergMagpie/my_project
refs/heads/master
/my_site/itstep/views.py
from django.http.response import Http404 from django.shortcuts import render from django.http import HttpResponse, HttpResponseNotFound from .models import * # Create your views here. menu = [ {'title': "About the site", 'url_name': 'about'}, {'title': "Add articl", 'url_name': 'add_page'}, {'title': "Feed...
{"/hollywood/movies/views.py": ["/hollywood/movies/models.py", "/hollywood/movies/forms.py"], "/hollywood/actors/admin.py": ["/hollywood/actors/models.py"], "/hollywood/movies/urls.py": ["/hollywood/movies/views.py"], "/hollywood/movies/admin.py": ["/hollywood/movies/models.py"], "/my_site/itstep/views.py": ["/my_site/...
31,963
SergMagpie/my_project
refs/heads/master
/hollywood/movies/forms.py
from django import forms from django.db.models import fields from .models import Movie class AddMovieForm(forms.ModelForm): class Meta: model = Movie fields = "__all__" exclude = ["created_at", "user"] class FeedbackForm(forms.Form): text = forms.CharField(label="You feedback here:", ...
{"/hollywood/movies/views.py": ["/hollywood/movies/models.py", "/hollywood/movies/forms.py"], "/hollywood/actors/admin.py": ["/hollywood/actors/models.py"], "/hollywood/movies/urls.py": ["/hollywood/movies/views.py"], "/hollywood/movies/admin.py": ["/hollywood/movies/models.py"], "/my_site/itstep/views.py": ["/my_site/...
31,964
SergMagpie/my_project
refs/heads/master
/hollywood/actors/models.py
from django.db import models class Actor(models.Model): first_name = models.CharField(max_length=30) last_name = models.CharField(max_length=40) birthday = models.DateField() height = models.PositiveIntegerField() def __str__(self) -> str: return f"{self.first_name} {self.last_name}" ...
{"/hollywood/movies/views.py": ["/hollywood/movies/models.py", "/hollywood/movies/forms.py"], "/hollywood/actors/admin.py": ["/hollywood/actors/models.py"], "/hollywood/movies/urls.py": ["/hollywood/movies/views.py"], "/hollywood/movies/admin.py": ["/hollywood/movies/models.py"], "/my_site/itstep/views.py": ["/my_site/...
31,965
SergMagpie/my_project
refs/heads/master
/my_site/itstep/migrations/0002_auto_20210613_1534.py
# Generated by Django 3.2.4 on 2021-06-13 12:34 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('itstep', '0001_initial'), ] operations = [ migrations.CreateModel( name='Category', ...
{"/hollywood/movies/views.py": ["/hollywood/movies/models.py", "/hollywood/movies/forms.py"], "/hollywood/actors/admin.py": ["/hollywood/actors/models.py"], "/hollywood/movies/urls.py": ["/hollywood/movies/views.py"], "/hollywood/movies/admin.py": ["/hollywood/movies/models.py"], "/my_site/itstep/views.py": ["/my_site/...
31,971
s045pd/detector
refs/heads/main
/task.py
import sqlite3 import urllib3 import yagmail from celery import Celery, platforms from requests_html import requests from config import Config from log import success, warning urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) platforms.C_FORCE_ROOT = True celery_db = f"{Config.name}_worker.db" sq...
{"/task.py": ["/config.py", "/log.py"], "/log.py": ["/config.py"], "/common.py": ["/config.py"], "/main.py": ["/config.py", "/common.py", "/log.py", "/task.py"], "/scheduler.py": ["/config.py", "/main.py"]}
31,972
s045pd/detector
refs/heads/main
/log.py
import logging from termcolor import colored from config import Config logging.basicConfig(format="[%(asctime)s] %(message)s", level=logging.INFO) loger = logging.getLogger(Config.name) def base_msg(txt, color, tag="[-]"): loger.info(f"{tag}{colored(txt, color)}") def info(txt): base_msg(txt, "blue", "[*...
{"/task.py": ["/config.py", "/log.py"], "/log.py": ["/config.py"], "/common.py": ["/config.py"], "/main.py": ["/config.py", "/common.py", "/log.py", "/task.py"], "/scheduler.py": ["/config.py", "/main.py"]}
31,973
s045pd/detector
refs/heads/main
/common.py
import hashlib from contextlib import contextmanager from dataclasses import dataclass try: from replit import db except Exception as e: import pickledb from config import Config db = pickledb.load(f"{Config.name}_datas.db", True) @contextmanager def db_action(): db = pickledb.load(f"{Config.na...
{"/task.py": ["/config.py", "/log.py"], "/log.py": ["/config.py"], "/common.py": ["/config.py"], "/main.py": ["/config.py", "/common.py", "/log.py", "/task.py"], "/scheduler.py": ["/config.py", "/main.py"]}
31,974
s045pd/detector
refs/heads/main
/main.py
import datetime import json import logging import sys from dataclasses import dataclass, field from urllib.parse import urljoin import urllib3 import yagmail from celery import Celery from requests_html import HTMLSession from tqdm import tqdm import config from common import DB from log import info, success, warning...
{"/task.py": ["/config.py", "/log.py"], "/log.py": ["/config.py"], "/common.py": ["/config.py"], "/main.py": ["/config.py", "/common.py", "/log.py", "/task.py"], "/scheduler.py": ["/config.py", "/main.py"]}
31,975
s045pd/detector
refs/heads/main
/config.py
class Config: name = "CVEMonitor" feishu_API = "xxxxx" mail_usr = "xxxxx" mail_pwd = "xxxxxx" mail_host = "xxxxx" mail_port = 25 mail_targets = [ "xxxxxxx", "xxxxxxxx", ]
{"/task.py": ["/config.py", "/log.py"], "/log.py": ["/config.py"], "/common.py": ["/config.py"], "/main.py": ["/config.py", "/common.py", "/log.py", "/task.py"], "/scheduler.py": ["/config.py", "/main.py"]}
31,976
s045pd/detector
refs/heads/main
/scheduler.py
import sqlite3 from datetime import timedelta from celery import Celery, platforms from celery.schedules import crontab from config import Config from main import Detector platforms.C_FORCE_ROOT = True celery_db = f"{Config.name}_scheduler.db" sqlite3.connect(celery_db) app_run = Celery(Config.name, broker=f"sqla+sq...
{"/task.py": ["/config.py", "/log.py"], "/log.py": ["/config.py"], "/common.py": ["/config.py"], "/main.py": ["/config.py", "/common.py", "/log.py", "/task.py"], "/scheduler.py": ["/config.py", "/main.py"]}
32,036
changyaochen/rbo
refs/heads/master
/tests/test.py
""" This module contains some test cases. """ import string import numpy as np import pytest from rbo.rbo import RankingSimilarity TESTS = [ # Sanity checks (string.ascii_lowercase, string.ascii_lowercase, 1.0), (string.ascii_lowercase, string.ascii_lowercase[:7], 1.0), ("abcde", "fghij", 0.0), #...
{"/tests/test.py": ["/rbo/rbo.py"], "/rbo/__init__.py": ["/rbo/rbo.py"]}
32,037
changyaochen/rbo
refs/heads/master
/rbo/rbo.py
# pylint: disable=C0103, R0914, R0201 """Main module for rbo.""" from typing import List, Optional, Union import numpy as np from tqdm import tqdm class RankingSimilarity: """ This class will include some similarity measures between two different ranked lists. """ def __init__( self, ...
{"/tests/test.py": ["/rbo/rbo.py"], "/rbo/__init__.py": ["/rbo/rbo.py"]}
32,038
changyaochen/rbo
refs/heads/master
/rbo/__init__.py
"""Main module for rbo.""" from .rbo import RankingSimilarity
{"/tests/test.py": ["/rbo/rbo.py"], "/rbo/__init__.py": ["/rbo/rbo.py"]}
32,039
methadoom/PetFriendsPytest
refs/heads/main
/settings.py
valid_email = "vlad15.08@bk.ru" valid_password = "qwe123"
{"/tests/PetFriendsTest.py": ["/settings.py"]}
32,040
methadoom/PetFriendsPytest
refs/heads/main
/tests/PetFriendsTest.py
from api import PetFriends from settings import valid_email, valid_password import os pf = PetFriends() def test_get_api_key_for_valid_user(email=valid_email, password=valid_password): status, result = pf.get_api_key(email, password) assert status == 200 assert 'key' in result def test_g...
{"/tests/PetFriendsTest.py": ["/settings.py"]}
32,043
fxia22/lcp-physics
refs/heads/master
/lcp_physics/physics/__init__.py
import lcp_physics.physics.bodies import lcp_physics.physics.collisions import lcp_physics.physics.constraints import lcp_physics.physics.engines import lcp_physics.physics.forces import lcp_physics.physics.utils import lcp_physics.physics.world from .utils import Params from .bodies import Body, Circle, Rect, Hull fr...
{"/lcp_physics/physics/__init__.py": ["/lcp_physics/physics/engines.py", "/lcp_physics/physics/forces.py", "/lcp_physics/physics/world.py"], "/tests/test_batch.py": ["/lcp_physics/physics/forces.py", "/lcp_physics/physics/world.py"], "/lcp_physics/physics/engines.py": ["/lcp_physics/lcp/lcp.py"], "/lcp_physics/physics/...
32,044
fxia22/lcp-physics
refs/heads/master
/lcp_physics/lcp/lcp.py
from enum import Enum import torch from torch.autograd import Function from .solvers import batch_pdipm as pdipm_b from .util import bger, expandParam, extract_nBatch class LCPSolvers(Enum): PDIPM_BATCHED = 1 class LCPFunction(Function): def __init__(self, eps=1e-12, verbose=-1, notImprovedLim=3, ...
{"/lcp_physics/physics/__init__.py": ["/lcp_physics/physics/engines.py", "/lcp_physics/physics/forces.py", "/lcp_physics/physics/world.py"], "/tests/test_batch.py": ["/lcp_physics/physics/forces.py", "/lcp_physics/physics/world.py"], "/lcp_physics/physics/engines.py": ["/lcp_physics/lcp/lcp.py"], "/lcp_physics/physics/...
32,045
fxia22/lcp-physics
refs/heads/master
/tests/test_batch.py
import unittest from lcp_physics.physics.bodies import Circle, Rect from lcp_physics.physics.constraints import TotalConstraint from lcp_physics.physics.forces import ExternalForce, gravity from lcp_physics.physics.utils import Params from lcp_physics.physics.world import BatchWorld, run_world TIME = 20 DT = Params....
{"/lcp_physics/physics/__init__.py": ["/lcp_physics/physics/engines.py", "/lcp_physics/physics/forces.py", "/lcp_physics/physics/world.py"], "/tests/test_batch.py": ["/lcp_physics/physics/forces.py", "/lcp_physics/physics/world.py"], "/lcp_physics/physics/engines.py": ["/lcp_physics/lcp/lcp.py"], "/lcp_physics/physics/...
32,046
fxia22/lcp-physics
refs/heads/master
/lcp_physics/physics/forces.py
from torch.autograd import Variable from .utils import Params, wrap_variable Tensor = Params.TENSOR_TYPE def gravity(t): return ExternalForce.DOWN def vert_impulse(t): if t < 0.1: return ExternalForce.DOWN else: return ExternalForce.ZEROS def hor_impulse(t): if t < 0.1: ...
{"/lcp_physics/physics/__init__.py": ["/lcp_physics/physics/engines.py", "/lcp_physics/physics/forces.py", "/lcp_physics/physics/world.py"], "/tests/test_batch.py": ["/lcp_physics/physics/forces.py", "/lcp_physics/physics/world.py"], "/lcp_physics/physics/engines.py": ["/lcp_physics/lcp/lcp.py"], "/lcp_physics/physics/...
32,047
fxia22/lcp-physics
refs/heads/master
/lcp_physics/physics/engines.py
""" Author: Filipe de Avila Belbute Peres Based on: M. B. Cline, Rigid body simulation with contact and constraints, 2002 """ import torch from torch.autograd import Variable from scipy.sparse.csc import csc_matrix from scipy.sparse.linalg.dsolve.linsolve import splu, spsolve import numpy as np from .utils import Pa...
{"/lcp_physics/physics/__init__.py": ["/lcp_physics/physics/engines.py", "/lcp_physics/physics/forces.py", "/lcp_physics/physics/world.py"], "/tests/test_batch.py": ["/lcp_physics/physics/forces.py", "/lcp_physics/physics/world.py"], "/lcp_physics/physics/engines.py": ["/lcp_physics/lcp/lcp.py"], "/lcp_physics/physics/...
32,048
fxia22/lcp-physics
refs/heads/master
/lcp_physics/physics/world.py
import time from functools import lru_cache import ode import torch from torch.autograd import Variable from . import engines as engines_module from . import collisions as collisions_module from .utils import Indices, Params, cross_2d, get_instance X, Y = Indices.X, Indices.Y DIM = Params.DIM TOL = 1e-12 Tensor = ...
{"/lcp_physics/physics/__init__.py": ["/lcp_physics/physics/engines.py", "/lcp_physics/physics/forces.py", "/lcp_physics/physics/world.py"], "/tests/test_batch.py": ["/lcp_physics/physics/forces.py", "/lcp_physics/physics/world.py"], "/lcp_physics/physics/engines.py": ["/lcp_physics/lcp/lcp.py"], "/lcp_physics/physics/...
32,060
pombreda/Kea
refs/heads/master
/kea/plugin/register.py
# tools to help register & identify commands import logging import os import pprint import subprocess as sp import sys from jinja2 import Template import yaml import leip from leip import set_local_config from kea.utils import find_executable, register_executable from kea.utils import get_tool_conf, create_kea_link...
{"/kea/files.py": ["/kea/mad.py", "/kea/utils.py"], "/kea/plugin/provenance.py": ["/kea/mad.py"], "/kea/plugin/filefind.py": ["/kea/files.py"], "/kea/cli.py": ["/kea/__init__.py"]}
32,061
pombreda/Kea
refs/heads/master
/kea/plugin/pbs_executor.py
import copy import logging import os import subprocess as sp from uuid import uuid4 from jinja2 import Template import arrow import leip from kea.executor import BasicExecutor, get_deferred_cl lg = logging.getLogger(__name__) PBS_SUBMIT_SCRIPT_HEADER = """#!/bin/bash #PBS -N {{appname}}.{{uuid}} #PBS -e {{ cwd ...
{"/kea/files.py": ["/kea/mad.py", "/kea/utils.py"], "/kea/plugin/provenance.py": ["/kea/mad.py"], "/kea/plugin/filefind.py": ["/kea/files.py"], "/kea/cli.py": ["/kea/__init__.py"]}
32,062
pombreda/Kea
refs/heads/master
/kea/files.py
import logging import os from mad2.recrender import recrender import kea.mad from kea.utils import message lg = logging.getLogger(__name__) #lg.setLevel(logging.DEBUG) def register_file(info, name, category, filename): madfile = kea.mad.get_madfile(filename) message('info', 'registered {}/{}: {}', category...
{"/kea/files.py": ["/kea/mad.py", "/kea/utils.py"], "/kea/plugin/provenance.py": ["/kea/mad.py"], "/kea/plugin/filefind.py": ["/kea/files.py"], "/kea/cli.py": ["/kea/__init__.py"]}
32,063
pombreda/Kea
refs/heads/master
/kea/plugin/provenance.py
import sys import logging import os import pkg_resources import shutil import subprocess as sp import arrow import leip from mad2.recrender import recrender import kea.mad lg = logging.getLogger(__name__) #lg.setLevel(logging.DEBUG) def get_last_provenance_data(madfile): if not 'provenance' in madfile: ...
{"/kea/files.py": ["/kea/mad.py", "/kea/utils.py"], "/kea/plugin/provenance.py": ["/kea/mad.py"], "/kea/plugin/filefind.py": ["/kea/files.py"], "/kea/cli.py": ["/kea/__init__.py"]}
32,064
pombreda/Kea
refs/heads/master
/kea/plugin/logger.py
from collections import OrderedDict import logging import arrow from mad2 import madfile import leip from lockfile import FileLock lg = logging.getLogger(__name__) def to_str(s): if isinstance(s, madfile.MadFile): if 'sha1sum' in s: return '{} (sha1: {})'.format(s['inputfile'], s['sha1sum'])...
{"/kea/files.py": ["/kea/mad.py", "/kea/utils.py"], "/kea/plugin/provenance.py": ["/kea/mad.py"], "/kea/plugin/filefind.py": ["/kea/files.py"], "/kea/cli.py": ["/kea/__init__.py"]}
32,065
pombreda/Kea
refs/heads/master
/kea/plugin/memory.py
import sys import os import subprocess as sp from mad2 import ui import leip @leip.hook('pre_argparse') def main_arg_define(app): app.kea_argparse.add_argument('-R', '--remember', action='store_true', help='Save command line to this folder ' + ...
{"/kea/files.py": ["/kea/mad.py", "/kea/utils.py"], "/kea/plugin/provenance.py": ["/kea/mad.py"], "/kea/plugin/filefind.py": ["/kea/files.py"], "/kea/cli.py": ["/kea/__init__.py"]}
32,066
pombreda/Kea
refs/heads/master
/kea/executor.py
import copy import logging from multiprocessing.dummy import Pool as ThreadPool import os import signal import subprocess as sp import sys import arrow lg = logging.getLogger(__name__) def get_deferred_cl(info): kap = info['kea_arg_prefix'] cl = [info['kea_executable']] + info['cl'] if info['stdout_fi...
{"/kea/files.py": ["/kea/mad.py", "/kea/utils.py"], "/kea/plugin/provenance.py": ["/kea/mad.py"], "/kea/plugin/filefind.py": ["/kea/files.py"], "/kea/cli.py": ["/kea/__init__.py"]}
32,067
pombreda/Kea
refs/heads/master
/kea/plugin/cl_render.py
import copy import logging import leip from mad2.recrender import recrender lg = logging.getLogger(__name__) #lg.setLevel(logging.DEBUG) @leip.hook('pre_fire', 1000) def hook_pre_run(app, info): rinf = copy.copy(info) rinf['f'] = {} for fn in info['files']: rinf['f'][fn] = rinf['files'][fn]['ma...
{"/kea/files.py": ["/kea/mad.py", "/kea/utils.py"], "/kea/plugin/provenance.py": ["/kea/mad.py"], "/kea/plugin/filefind.py": ["/kea/files.py"], "/kea/cli.py": ["/kea/__init__.py"]}
32,068
pombreda/Kea
refs/heads/master
/kea/cl_generator.py
""" Map arguments input: {name~*} the * is treated as a glob and can be part of a filename name is used to expand the capture part later. {name=[1-5]} name is replaced by the range of {name=a,b,c,d} """ from collections import OrderedDict import copy import glob import logging import ite...
{"/kea/files.py": ["/kea/mad.py", "/kea/utils.py"], "/kea/plugin/provenance.py": ["/kea/mad.py"], "/kea/plugin/filefind.py": ["/kea/files.py"], "/kea/cli.py": ["/kea/__init__.py"]}
32,069
pombreda/Kea
refs/heads/master
/kea/mad.py
import leip import logging import mad2.util lg = logging.getLogger(__name__) MADAPP = None def get_madapp(): global MADAPP if MADAPP is None: app = leip.app('mad2') MADAPP = app return MADAPP def get_madfile(filename): mapp = get_madapp() return mad2.util.get_mad_file(mapp,...
{"/kea/files.py": ["/kea/mad.py", "/kea/utils.py"], "/kea/plugin/provenance.py": ["/kea/mad.py"], "/kea/plugin/filefind.py": ["/kea/files.py"], "/kea/cli.py": ["/kea/__init__.py"]}
32,070
pombreda/Kea
refs/heads/master
/kea/__init__.py
# kea runner import argparse import copy from collections import OrderedDict import logging import os import subprocess as sp import sys import leip import fantail import mad2.util as mad2util import kea.mad from kea.utils import get_tool_conf from kea.plugin.register import print_tool_versions from kea.cl_genera...
{"/kea/files.py": ["/kea/mad.py", "/kea/utils.py"], "/kea/plugin/provenance.py": ["/kea/mad.py"], "/kea/plugin/filefind.py": ["/kea/files.py"], "/kea/cli.py": ["/kea/__init__.py"]}
32,071
pombreda/Kea
refs/heads/master
/kea/utils.py
import copy import logging import os import subprocess as sp import sys import textwrap from fantail import Fantail from termcolor import cprint from leip import set_local_config lg = logging.getLogger(__name__) def message(cat, message, *args): if len(args) > 0: message = message.format(*args) ...
{"/kea/files.py": ["/kea/mad.py", "/kea/utils.py"], "/kea/plugin/provenance.py": ["/kea/mad.py"], "/kea/plugin/filefind.py": ["/kea/files.py"], "/kea/cli.py": ["/kea/__init__.py"]}
32,072
pombreda/Kea
refs/heads/master
/kea/plugin/filefind.py
import copy import logging import sys import leip from mad2.recrender import recrender import kea.files lg = logging.getLogger(__name__) lg.setLevel(logging.DEBUG) MADAPP = None @leip.hook('pre_fire') def hook_pre_run(app, info): ffc = app.conf.get('filefind') if not ffc: return #determine ...
{"/kea/files.py": ["/kea/mad.py", "/kea/utils.py"], "/kea/plugin/provenance.py": ["/kea/mad.py"], "/kea/plugin/filefind.py": ["/kea/files.py"], "/kea/cli.py": ["/kea/__init__.py"]}
32,073
pombreda/Kea
refs/heads/master
/kea/cli.py
import os import copy import sys import leip from kea import Kea def dispatch(): """ Run the MadMax app """ app.run() kea_conf = leip.get_config('kea') prefix = kea_conf['arg_prefix'] thisapp = os.path.basename(sys.argv[0]) if thisapp == 'kea': #calling the kea tool directly: app = leip.a...
{"/kea/files.py": ["/kea/mad.py", "/kea/utils.py"], "/kea/plugin/provenance.py": ["/kea/mad.py"], "/kea/plugin/filefind.py": ["/kea/files.py"], "/kea/cli.py": ["/kea/__init__.py"]}
32,084
devshree07/FoodFrenzy
refs/heads/master
/foodspark/apps.py
from __future__ import unicode_literals from django.apps import AppConfig class FoodsparkConfig(AppConfig): name = 'foodspark'
{"/foodspark/admin.py": ["/foodspark/models.py"], "/foodspark/views.py": ["/foodspark/models.py"], "/foodspark/urls.py": ["/foodspark/views.py"]}
32,085
devshree07/FoodFrenzy
refs/heads/master
/foodspark/admin.py
from django.contrib import admin from .models import * # Register your models here. admin.site.register(Customer) admin.site.register(Restaurant) admin.site.register(FoodItem) admin.site.register(Order) admin.site.register(Cart)
{"/foodspark/admin.py": ["/foodspark/models.py"], "/foodspark/views.py": ["/foodspark/models.py"], "/foodspark/urls.py": ["/foodspark/views.py"]}
32,086
devshree07/FoodFrenzy
refs/heads/master
/foodspark/templates/foodspark/location.py
import requests api_key='AIzaSyDqJGSCO-ZKrbtBQcLflxwqG3zPcP-B2vY' geo_url = "https://maps.googleapis.com/maps/api/js?key=AIzaSyDqJGSCO-ZKrbtBQcLflxwqG3zPcP-B2vY&callback=initMap" my_address = {'address': 'Ahmedabad,Gujarat, India', 'language': 'en'} response = requests.get(geo_url, params = my_address) re...
{"/foodspark/admin.py": ["/foodspark/models.py"], "/foodspark/views.py": ["/foodspark/models.py"], "/foodspark/urls.py": ["/foodspark/views.py"]}
32,087
devshree07/FoodFrenzy
refs/heads/master
/foodspark/views.py
from django.shortcuts import get_object_or_404,render, redirect from django.http import HttpResponse from .models import * import json from django.views.decorators import csrf from django.views.decorators.csrf import ensure_csrf_cookie from django.contrib import messages from django.core.exceptions import * import date...
{"/foodspark/admin.py": ["/foodspark/models.py"], "/foodspark/views.py": ["/foodspark/models.py"], "/foodspark/urls.py": ["/foodspark/views.py"]}
32,088
devshree07/FoodFrenzy
refs/heads/master
/foodspark/urls.py
from django.conf.urls import url from django.urls import path from .views import initiate_payment, callback from . import views urlpatterns = [ url(r'^$', views.home, name='home'), url(r'^login/?$', views.login, name='login'), url(r'^logout/?$', views.logout, name='logout'), url(r'^home/?$',views.home,...
{"/foodspark/admin.py": ["/foodspark/models.py"], "/foodspark/views.py": ["/foodspark/models.py"], "/foodspark/urls.py": ["/foodspark/views.py"]}
32,089
devshree07/FoodFrenzy
refs/heads/master
/foodspark/models.py
from __future__ import unicode_literals from django.db import models from django.core.validators import RegexValidator import hashlib from django.contrib.auth import get_user_model from django.core.validators import * from django.core.exceptions import ValidationError import datetime # default order time bug hai Use...
{"/foodspark/admin.py": ["/foodspark/models.py"], "/foodspark/views.py": ["/foodspark/models.py"], "/foodspark/urls.py": ["/foodspark/views.py"]}
32,090
Aadil-Rashid/shopping_cart
refs/heads/master
/shop/admin.py
from django.contrib import admin from . models import Product, Order # Register your models here. admin.site.site_header = "E-commerce site" admin.site.site_title = "Dilbis Shoping Cart" admin.site.index_title = "Dilbis Shopping" class ProductAdmin(admin.ModelAdmin): list_display = ("title", "price", "discoun...
{"/shop/admin.py": ["/shop/models.py"]}
32,091
Aadil-Rashid/shopping_cart
refs/heads/master
/shop/migrations/0003_order_total.py
# Generated by Django 3.0.8 on 2020-09-03 10:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shop', '0002_order'), ] operations = [ migrations.AddField( model_name='order', name='total', field=mode...
{"/shop/admin.py": ["/shop/models.py"]}