index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
25,311
tweenty247/CompleteWebside
refs/heads/master
/Web_Laundry/forms.py
from django import forms from .models import FormNames, AppointmentSection, SubscribeForm class ModelFormNames(forms.ModelForm): class Meta: model = FormNames fields = '__all__' class AppointmentSectionFormNames(forms.ModelForm): class Meta: model = AppointmentSection fields ...
{"/Web_Laundry/admin.py": ["/Web_Laundry/models.py"], "/Web_Laundry/views.py": ["/Web_Laundry/forms.py"], "/Web_Laundry/forms.py": ["/Web_Laundry/models.py"]}
25,312
tweenty247/CompleteWebside
refs/heads/master
/Web_Laundry/migrations/0003_formnames_number.py
# Generated by Django 3.1.2 on 2020-10-03 07:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Web_Laundry', '0002_remove_formnames_subject'), ] operations = [ migrations.AddField( model_name='formnames', name='...
{"/Web_Laundry/admin.py": ["/Web_Laundry/models.py"], "/Web_Laundry/views.py": ["/Web_Laundry/forms.py"], "/Web_Laundry/forms.py": ["/Web_Laundry/models.py"]}
25,313
tweenty247/CompleteWebside
refs/heads/master
/Web_Laundry/migrations/0007_subscribeform.py
# Generated by Django 3.1.2 on 2020-10-07 04:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Web_Laundry', '0006_delete_subscribtionmodel'), ] operations = [ migrations.CreateModel( name='SubscribeForm', field...
{"/Web_Laundry/admin.py": ["/Web_Laundry/models.py"], "/Web_Laundry/views.py": ["/Web_Laundry/forms.py"], "/Web_Laundry/forms.py": ["/Web_Laundry/models.py"]}
25,314
tweenty247/CompleteWebside
refs/heads/master
/Web_Laundry/migrations/0006_delete_subscribtionmodel.py
# Generated by Django 3.1.2 on 2020-10-07 04:45 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Web_Laundry', '0005_auto_20201004_0024'), ] operations = [ migrations.DeleteModel( name='SubscribtionModel', ), ]
{"/Web_Laundry/admin.py": ["/Web_Laundry/models.py"], "/Web_Laundry/views.py": ["/Web_Laundry/forms.py"], "/Web_Laundry/forms.py": ["/Web_Laundry/models.py"]}
25,315
tweenty247/CompleteWebside
refs/heads/master
/Web_Laundry/urls.py
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('contact/', views.contact_page, name='contact'), path('about/', views.about, name='about'), path('services/', views.service, name='services'), path('pricing/', views.pricing, name='pricing'), path('bl...
{"/Web_Laundry/admin.py": ["/Web_Laundry/models.py"], "/Web_Laundry/views.py": ["/Web_Laundry/forms.py"], "/Web_Laundry/forms.py": ["/Web_Laundry/models.py"]}
25,316
tweenty247/CompleteWebside
refs/heads/master
/Web_Laundry/apps.py
from django.apps import AppConfig class WebLaundryConfig(AppConfig): name = 'Web_Laundry'
{"/Web_Laundry/admin.py": ["/Web_Laundry/models.py"], "/Web_Laundry/views.py": ["/Web_Laundry/forms.py"], "/Web_Laundry/forms.py": ["/Web_Laundry/models.py"]}
25,333
Sandeep-vishwakarma-sfdc/SentimentAnalysis
refs/heads/master
/app.py
import string import stopwords from flask import Flask,render_template,request from tweets import Twitterclient from collections import Counter app = Flask(__name__) tweet="" @app.route("/",methods=['POST','GET']) def home(): if request.method=='POST': username = request.form['username'] print('user...
{"/app.py": ["/tweets.py"], "/tweets.py": ["/twitter_credential.py"]}
25,334
Sandeep-vishwakarma-sfdc/SentimentAnalysis
refs/heads/master
/tweets.py
from tweepy import API from tweepy import OAuthHandler import pandas as pd import twitter_credential class Twitterclient(): def __init__(self,twitter_user=None): self.auth = TwitterAuthenticator().authenticate_twitter_app() self.twitter_client = API(self.auth) self.twitter_user = twitter_u...
{"/app.py": ["/tweets.py"], "/tweets.py": ["/twitter_credential.py"]}
25,335
Sandeep-vishwakarma-sfdc/SentimentAnalysis
refs/heads/master
/twitter_credential.py
ACCESS_TOKEN = "1283635357876015104-dbtiPwtOZLGyfd4wtefVrLKv3REz7m" ACCESS_TOKEN_SECRET = "QN6M9Gsqrk7CIXmYj9r437I1TQyAzBfrDJzwuDQyHk5tH" CONSUMER_KEY = "18X6p4fgSiacN3jlgrVrAPFTQ" CONSUMER_SECRET = "oWALX5pJDl74gmT6Bng03PZ1Kk6yyYfZooo64qc4x85dhDRAvg"
{"/app.py": ["/tweets.py"], "/tweets.py": ["/twitter_credential.py"]}
25,398
Azure/AI-PredictiveMaintenance
refs/heads/master
/src/WebApp/App_Data/jobs/continuous/DatabricksAndSimulatedDevicesSetup/simulated_devices_setup.py
import os import json import random from iot_hub_helpers import IoTHub def create_device(iot_hub, device_id, simulation_parameters): iot_hub.create_device(device_id) tags = { 'simulated': True } tags.update(simulation_parameters) twin_properties = { 'tags': tags } ...
{"/src/WebApp/shared_modules/iot_hub_helpers/__init__.py": ["/src/WebApp/shared_modules/iot_hub_helpers/iot_hub_helpers.py"]}
25,399
Azure/AI-PredictiveMaintenance
refs/heads/master
/src/WebApp/App_Data/jobs/continuous/Simulator/devices/engines/device.py
import numpy as np import random from datetime import date, datetime from scipy.interpolate import interp1d class VibrationSensorSignalSample: CUTOFF = 150 def __init__(self, W, A, fundamental_from, fundamental_to, t = 0, interval = 1, previous_sample = None, sample_rate = 1024): self.interval = inter...
{"/src/WebApp/shared_modules/iot_hub_helpers/__init__.py": ["/src/WebApp/shared_modules/iot_hub_helpers/iot_hub_helpers.py"]}
25,400
Azure/AI-PredictiveMaintenance
refs/heads/master
/src/WebApp/flask/app.py
import numpy as np import sys, os, time, glob import requests import json import uuid import json import random import markdown import jwt import io import csv import collections from urllib.parse import urlparse from datetime import datetime, timedelta from functools import wraps from flask import Flask, render_templa...
{"/src/WebApp/shared_modules/iot_hub_helpers/__init__.py": ["/src/WebApp/shared_modules/iot_hub_helpers/iot_hub_helpers.py"]}
25,401
Azure/AI-PredictiveMaintenance
refs/heads/master
/src/WebApp/App_Data/jobs/continuous/Simulator/devices/engines/__init__.py
from devices.engines.engine import Engine
{"/src/WebApp/shared_modules/iot_hub_helpers/__init__.py": ["/src/WebApp/shared_modules/iot_hub_helpers/iot_hub_helpers.py"]}
25,402
Azure/AI-PredictiveMaintenance
refs/heads/master
/src/WebApp/shared_modules/iot_hub_helpers/__init__.py
from .iot_hub_helpers import IoTHub, IoTHubDevice
{"/src/WebApp/shared_modules/iot_hub_helpers/__init__.py": ["/src/WebApp/shared_modules/iot_hub_helpers/iot_hub_helpers.py"]}
25,403
Azure/AI-PredictiveMaintenance
refs/heads/master
/src/WebApp/App_Data/jobs/continuous/Simulator/simulator.py
import os import io import pickle import random import uuid import datetime import time import json import numpy as np import logging import csv from multiprocessing import Pool, TimeoutError, cpu_count from multiprocessing.dummy import Pool as DummyPool from multiprocessing import Process from iot_hub_helpers import I...
{"/src/WebApp/shared_modules/iot_hub_helpers/__init__.py": ["/src/WebApp/shared_modules/iot_hub_helpers/iot_hub_helpers.py"]}
25,404
Azure/AI-PredictiveMaintenance
refs/heads/master
/src/WebApp/App_Data/jobs/continuous/Simulator/devices/simulated_device.py
import importlib import logging from abc import ABC, abstractmethod class SimulatedDevice(ABC): def __init__(self, report_state_function, send_telemetry_function, log_function): self.__report_state = report_state_function self.__send_telemetry = send_telemetry_function self.__log_function =...
{"/src/WebApp/shared_modules/iot_hub_helpers/__init__.py": ["/src/WebApp/shared_modules/iot_hub_helpers/iot_hub_helpers.py"]}
25,405
Azure/AI-PredictiveMaintenance
refs/heads/master
/src/WebApp/App_Data/jobs/continuous/PythonAndStorageSetup/run.py
import os from azure.storage.table import TableService, Entity, TablePermissions from azure.storage.blob import BlockBlobService STORAGE_ACCOUNT_NAME = os.environ['STORAGE_ACCOUNT_NAME'] STORAGE_ACCOUNT_KEY = os.environ['STORAGE_ACCOUNT_KEY'] table_service = TableService(account_name=STORAGE_ACCOUNT_NAME, account_key...
{"/src/WebApp/shared_modules/iot_hub_helpers/__init__.py": ["/src/WebApp/shared_modules/iot_hub_helpers/iot_hub_helpers.py"]}
25,406
Azure/AI-PredictiveMaintenance
refs/heads/master
/src/WebApp/shared_modules/iot_hub_helpers/iot_hub_helpers.py
import json import time import requests import random import datetime import dateutil.parser import logging from base64 import b64encode, b64decode from hashlib import sha256 from time import time, sleep from urllib.parse import quote_plus, urlencode from hmac import HMAC from iothub_service_client import IoTHubRegistr...
{"/src/WebApp/shared_modules/iot_hub_helpers/__init__.py": ["/src/WebApp/shared_modules/iot_hub_helpers/iot_hub_helpers.py"]}
25,407
Azure/AI-PredictiveMaintenance
refs/heads/master
/src/WebApp/shared_modules/setup.py
from distutils.core import setup setup( name='iot_hub_helpers', version='0.1', packages=['iot_hub_helpers',] )
{"/src/WebApp/shared_modules/iot_hub_helpers/__init__.py": ["/src/WebApp/shared_modules/iot_hub_helpers/iot_hub_helpers.py"]}
25,408
Azure/AI-PredictiveMaintenance
refs/heads/master
/src/WebApp/App_Data/jobs/continuous/Simulator/devices/__init__.py
from devices.simulated_device import SimulatorFactory
{"/src/WebApp/shared_modules/iot_hub_helpers/__init__.py": ["/src/WebApp/shared_modules/iot_hub_helpers/iot_hub_helpers.py"]}
25,409
Azure/AI-PredictiveMaintenance
refs/heads/master
/src/WebApp/App_Data/jobs/continuous/Scorer/scorer.py
import os import requests import json import time from azure.storage.table import TableService, Entity, TablePermissions STORAGE_ACCOUNT_NAME = os.environ['STORAGE_ACCOUNT_NAME'] STORAGE_ACCOUNT_KEY = os.environ['STORAGE_ACCOUNT_KEY'] SCORE_URL = os.environ['SCORE_URL'] table_service = TableService(account_name=STORAG...
{"/src/WebApp/shared_modules/iot_hub_helpers/__init__.py": ["/src/WebApp/shared_modules/iot_hub_helpers/iot_hub_helpers.py"]}
25,410
Azure/AI-PredictiveMaintenance
refs/heads/master
/src/WebApp/App_Data/jobs/continuous/DatabricksAndSimulatedDevicesSetup/run.py
import urllib import os import time import requests import uuid import json import zipfile import base64 from azure.storage.table import TableService, Entity, TablePermissions STORAGE_ACCOUNT_NAME = os.environ['STORAGE_ACCOUNT_NAME'] STORAGE_ACCOUNT_KEY = os.environ['STORAGE_ACCOUNT_KEY'] DATABRICKS_API_BASE_URL = os...
{"/src/WebApp/shared_modules/iot_hub_helpers/__init__.py": ["/src/WebApp/shared_modules/iot_hub_helpers/iot_hub_helpers.py"]}
25,411
mspeekenbrink/SpeedAccuracyMovingDots
refs/heads/master
/Task.py
import random, math, array, random from psychopy import core,visual,event,parallel from itertools import product class Task: #speedTime = 0.5 cueTime = 1.5 fixTime = 0.5 jitterTime = 1 preFeedbackTime = .1 feedbackTime = .4 postFeedbackTime = .1 def __init_...
{"/Dots.py": ["/Task.py"]}
25,412
mspeekenbrink/SpeedAccuracyMovingDots
refs/heads/master
/Dots.py
#!/usr/bin/env python from psychopy import visual, event, core, data, gui, misc, parallel import Instructions, StartMainInstructions, Task debug = False speedTime = 500 if debug == True: nsubblocks = 1 nblocks = 1 blockSize = 6 #speedTime = .4 #ntrials2 = 12 #nblocks2 = 1 #...
{"/Dots.py": ["/Task.py"]}
25,442
fuetser/coffee
refs/heads/master
/UI/mainUI.py
from PyQt5 import QtWidgets class Main(QtWidgets.QWidget): def __init__(self): super().__init__() self.setupUi() def setupUi(self): self.resize(800, 600) self.verticalLayout_2 = QtWidgets.QVBoxLayout(self) self.verticalLayout = QtWidgets.QVBoxLayout() self.hori...
{"/release/main.py": ["/UI/mainUI.py", "/UI/addEditCoffeeForm.py"]}
25,443
fuetser/coffee
refs/heads/master
/release/main.py
from functools import partial from UI.mainUI import Main from UI.addEditCoffeeForm import DialogForm from PyQt5 import QtWidgets import sys import sqlite3 class Dialog(DialogForm): def __init__(self): super().__init__() def show(self, set_default=False): if set_default: self.radio...
{"/release/main.py": ["/UI/mainUI.py", "/UI/addEditCoffeeForm.py"]}
25,444
fuetser/coffee
refs/heads/master
/UI/addEditCoffeeForm.py
from PyQt5 import QtWidgets class DialogForm(QtWidgets.QWidget): def __init__(self): super().__init__() self.setupUi() def setupUi(self): self.resize(400, 242) self.formLayout_2 = QtWidgets.QFormLayout(self) self.formLayout = QtWidgets.QFormLayout() self.formLa...
{"/release/main.py": ["/UI/mainUI.py", "/UI/addEditCoffeeForm.py"]}
25,445
zc00gii/b00tii
refs/heads/master
/testing/proto/irc/events.py
from base.events import Event, EventHandler from base.buffer import Buffer class IRCEvents(Event): handler = EventHandler() def __init__(self): self.handler.events = { "privmsg" : Event(privmsg), "part" : Event(part), "quit" : Event(quit), "join" : Event(join), "kick" : Ev...
{"/testing/proto/irc/events.py": ["/base/buffer.py"]}
25,446
zc00gii/b00tii
refs/heads/master
/base/buffer.py
import socket class Buffer(): _buffer = [] def readBuffer(self): data = '' extra = [""] line = [""] try: data = extra[0] + self.recv(1024) data = data.replace('\r', "") extra.pop(0) for x in range(len(data.split('\n'))): ...
{"/testing/proto/irc/events.py": ["/base/buffer.py"]}
25,447
zc00gii/b00tii
refs/heads/master
/base/module.py
class Module(): modules = dict() def reloadModule(self,name): reload(self.modules[name]) def loadModule(self,name): if name not in globals().keys(): try: self.modules[name] = __import__(name) except ImportError: pass # no such module ...
{"/testing/proto/irc/events.py": ["/base/buffer.py"]}
25,448
zc00gii/b00tii
refs/heads/master
/testing/base/server.py
import socket from socket import SocketType class Server(SocketType): def socketInit(self, family=socket.AF_INET, type=socket.SOCK_STREAM, proto=0, _sock=None): if _sock is None: _sock = socket._realsocket(family, type, proto) self._sock = _sock for method in socket._delegate_me...
{"/testing/proto/irc/events.py": ["/base/buffer.py"]}
25,449
zc00gii/b00tii
refs/heads/master
/testing/proto/irc/server.py
from base.server import Server class IRCServer(Server): channels = [] def __init__(self, server, port): self.connect((server, port))
{"/testing/proto/irc/events.py": ["/base/buffer.py"]}
25,450
zc00gii/b00tii
refs/heads/master
/testing/b00tii.py
import base.server import base.module import base.buffer import base.events import proto.irc.functions import proto.irc.events #import proto.irc.server from proto.irc.functions import IRCFunctions channels = ["#botters"] a = IRCFunctions() a.connect(("irc.freenode.net",6667)) a.user['nick'] = "b00tii" a.loop() #a.getB...
{"/testing/proto/irc/events.py": ["/base/buffer.py"]}
25,451
zc00gii/b00tii
refs/heads/master
/b00tii.py
import base.server import base.buffer import base.module import proto.irc from proto.irc import IRCFunctions channels = ["#offtopic"] a = IRCFunctions() a.connect(("irc.ninthbit.net",6667)) a.user['nick'] = "b00tii" a.identify() a.loop() #a.getBuffer() #a.pingPong() print a._buffer while True: print a._buf...
{"/testing/proto/irc/events.py": ["/base/buffer.py"]}
25,452
zc00gii/b00tii
refs/heads/master
/proto/irc.py
import socket import base.server import base.buffer from base.server import Server from base.buffer import Buffer class IRCFunctions(Server,Buffer): user = {"name" : "b00ti", "ident" : "b00tii",\ "pass": "secret", "nick" : "b00tii"} # contains nick, (real)name, ...
{"/testing/proto/irc/events.py": ["/base/buffer.py"]}
25,453
zc00gii/b00tii
refs/heads/master
/testing/base/events.py
def doNothing(): pass class EventHandler: events= {} def hookEvent(self, name, onWhat, doFunction = doNothing): self.events[name] = Event(onWhat, doFunction) def unhookEvent(self, name): del self.events[name] def rehookEvent(self, name, onWhat, doFunction = doNothing): del self...
{"/testing/proto/irc/events.py": ["/base/buffer.py"]}
25,454
zc00gii/b00tii
refs/heads/master
/testing/base/buffer.py
import socket class Buffer(): buffer = [] extra = [''] def readBuffer(self): try: line = '' data = self.extra[0] + self.recv(1024) # data = data.replace('\r', "") self.extra.pop(0) for x in range(len(data.split('\n'))): self....
{"/testing/proto/irc/events.py": ["/base/buffer.py"]}
25,455
Chen-Han/vpn_bot
refs/heads/master
/vpn_bot/shadowsocks/api.py
import socket import random socket.setdefaulttimeout(2) class ServiceOpenException(Exception): def __init__(self, msg): super().__init__(msg) def get_sock(): s = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM) rand_file_name = '/tmp/vpn_bot' + \ (''.join([chr(65+random.randint(0,25)) ...
{"/vpn_bot/management/commands/start_active_vpn.py": ["/vpn_bot/models.py", "/vpn_bot/shadowsocks/api.py"], "/vpn_bot/management/commands/debug.py": ["/vpn_bot/models.py"], "/vpn_bot/management/commands/cronjob.py": ["/vpn_bot/models.py", "/vpn_bot/shadowsocks/api.py", "/vpn_bot/wxbot/api.py"], "/vpn_bot/wxbot/bot_app....
25,456
Chen-Han/vpn_bot
refs/heads/master
/vpn_bot/wxbot/api.py
# coding: utf-8 # provide socket api for other process to communicate with bot import subprocess import multiprocessing import collections import logging from threading import Thread SOCKET_FILE = '/run/vpn_bot.sock' UNIX_SOCK = 'unix://'+SOCKET_FILE Wechat_msg = collections.namedtuple('Wechat_message',['wechat_id','...
{"/vpn_bot/management/commands/start_active_vpn.py": ["/vpn_bot/models.py", "/vpn_bot/shadowsocks/api.py"], "/vpn_bot/management/commands/debug.py": ["/vpn_bot/models.py"], "/vpn_bot/management/commands/cronjob.py": ["/vpn_bot/models.py", "/vpn_bot/shadowsocks/api.py", "/vpn_bot/wxbot/api.py"], "/vpn_bot/wxbot/bot_app....
25,457
Chen-Han/vpn_bot
refs/heads/master
/vpn_bot/management/commands/start_active_vpn.py
from django.core.management.base import BaseCommand, CommandError import vpn_bot.models as models from vpn_bot.shadowsocks.api import open_port class Command(BaseCommand): def add_arguments(self, parser): # parser.add_argument('poll_id', nargs='+', type=int) pass def handle(self, *args, **opti...
{"/vpn_bot/management/commands/start_active_vpn.py": ["/vpn_bot/models.py", "/vpn_bot/shadowsocks/api.py"], "/vpn_bot/management/commands/debug.py": ["/vpn_bot/models.py"], "/vpn_bot/management/commands/cronjob.py": ["/vpn_bot/models.py", "/vpn_bot/shadowsocks/api.py", "/vpn_bot/wxbot/api.py"], "/vpn_bot/wxbot/bot_app....
25,458
Chen-Han/vpn_bot
refs/heads/master
/vpn_bot/management/commands/debug.py
from django.core.management.base import BaseCommand, CommandError import vpn_bot.models as models from IPython import embed from decimal import Decimal import datetime def create_expiring_service(): customer = models.Customer.objects.get_or_create(wechat_id='@123456', name='test') order = models.Order.objects.c...
{"/vpn_bot/management/commands/start_active_vpn.py": ["/vpn_bot/models.py", "/vpn_bot/shadowsocks/api.py"], "/vpn_bot/management/commands/debug.py": ["/vpn_bot/models.py"], "/vpn_bot/management/commands/cronjob.py": ["/vpn_bot/models.py", "/vpn_bot/shadowsocks/api.py", "/vpn_bot/wxbot/api.py"], "/vpn_bot/wxbot/bot_app....
25,459
Chen-Han/vpn_bot
refs/heads/master
/vpn_bot/management/commands/cronjob.py
# coding: utf-8 from django.core.management.base import BaseCommand from vpn_bot.models import Order, VPN_service from vpn_bot.shadowsocks.api import ping, close_port from vpn_bot.wxbot.api import Bot_api import datetime import logging def notify_customer(bot_api, customer): msg = u'你好,你的服务刚刚过期,需要续费的话可以回复【购买】哦' ...
{"/vpn_bot/management/commands/start_active_vpn.py": ["/vpn_bot/models.py", "/vpn_bot/shadowsocks/api.py"], "/vpn_bot/management/commands/debug.py": ["/vpn_bot/models.py"], "/vpn_bot/management/commands/cronjob.py": ["/vpn_bot/models.py", "/vpn_bot/shadowsocks/api.py", "/vpn_bot/wxbot/api.py"], "/vpn_bot/wxbot/bot_app....
25,460
Chen-Han/vpn_bot
refs/heads/master
/vpn_bot/migrations/0001_initial.py
# Generated by Django 2.1 on 2018-08-25 09:17 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Customer', fields=[ ...
{"/vpn_bot/management/commands/start_active_vpn.py": ["/vpn_bot/models.py", "/vpn_bot/shadowsocks/api.py"], "/vpn_bot/management/commands/debug.py": ["/vpn_bot/models.py"], "/vpn_bot/management/commands/cronjob.py": ["/vpn_bot/models.py", "/vpn_bot/shadowsocks/api.py", "/vpn_bot/wxbot/api.py"], "/vpn_bot/wxbot/bot_app....
25,461
Chen-Han/vpn_bot
refs/heads/master
/vpn_bot/wxbot/bot_app.py
#!/usr/bin/env python # coding: utf-8 import wxpy import logging from decimal import Decimal import sys import random import socket import datetime sys.path.append("..") from vpn_bot.models import Order, Customer, VPN_service import vpn_bot.shadowsocks.api as api from vpn_bot.wxbot.api import Bot_server logging.basic...
{"/vpn_bot/management/commands/start_active_vpn.py": ["/vpn_bot/models.py", "/vpn_bot/shadowsocks/api.py"], "/vpn_bot/management/commands/debug.py": ["/vpn_bot/models.py"], "/vpn_bot/management/commands/cronjob.py": ["/vpn_bot/models.py", "/vpn_bot/shadowsocks/api.py", "/vpn_bot/wxbot/api.py"], "/vpn_bot/wxbot/bot_app....
25,462
Chen-Han/vpn_bot
refs/heads/master
/vpn_bot/models.py
from django.db import models ''' All VPN models are here ''' class Customer(models.Model): wechat_id = models.CharField(max_length=255) name = models.CharField(max_length=255) class Order(models.Model): PENDING = 'PENDING' EXPIRED = 'EXPIRED' COMPLETED = 'COMPLETED' STATE_CHOICES = ((PENDING,...
{"/vpn_bot/management/commands/start_active_vpn.py": ["/vpn_bot/models.py", "/vpn_bot/shadowsocks/api.py"], "/vpn_bot/management/commands/debug.py": ["/vpn_bot/models.py"], "/vpn_bot/management/commands/cronjob.py": ["/vpn_bot/models.py", "/vpn_bot/shadowsocks/api.py", "/vpn_bot/wxbot/api.py"], "/vpn_bot/wxbot/bot_app....
25,474
vb64/pdftoc
refs/heads/main
/tests/test/__init__.py
"""Root class for testing.""" from unittest import TestCase class TestBase(TestCase): """Base class for tests.""" def setUp(self): """Init tests.""" TestCase.setUp(self) from source.cli import PARSER self.options, _args = PARSER.parse_args(args=[])
{"/tests/test/__init__.py": ["/source/cli.py"], "/tests/test/test_console.py": ["/tests/test/__init__.py", "/source/cli.py"]}
25,475
vb64/pdftoc
refs/heads/main
/tests/test/test_console.py
# coding: utf-8 """Console client stuff. make test T=test_console.py """ import os from . import TestBase class TestConsole(TestBase): """Tests console client.""" def test_noargs(self): """Call without args.""" from source.cli import main assert main([], self.options) == 1 def...
{"/tests/test/__init__.py": ["/source/cli.py"], "/tests/test/test_console.py": ["/tests/test/__init__.py", "/source/cli.py"]}
25,476
vb64/pdftoc
refs/heads/main
/source/__init__.py
"""Need for test suite."""
{"/tests/test/__init__.py": ["/source/cli.py"], "/tests/test/test_console.py": ["/tests/test/__init__.py", "/source/cli.py"]}
25,477
vb64/pdftoc
refs/heads/main
/source/cli.py
"""Console client.""" import os import sys import json from optparse import OptionParser # pylint: disable=deprecated-module from PyPDF2 import PdfFileReader, PdfFileWriter COPYRIGHTS = 'Copyrights by Vitaly Bogomolov 2021' VERSION = '1.2' OPTS = None PARSER = OptionParser( usage='Usage: %prog toc.json\n\nvizit ht...
{"/tests/test/__init__.py": ["/source/cli.py"], "/tests/test/test_console.py": ["/tests/test/__init__.py", "/source/cli.py"]}
25,483
Sen2k9/Cholo-A-Simplified-Car-Rental-Application
refs/heads/master
/uber/urls.py
from django.conf.urls import url from django.urls import path from .import views #from .views import IndexView from django.contrib.auth import login, logout from django.conf.urls import include, url from django.contrib.auth.decorators import login_required #from .views import search app_name= 'uber' urlpatterns =...
{"/uber/admin.py": ["/uber/models.py"], "/uber/views.py": ["/uber/models.py", "/uber/forms.py"], "/uber/forms.py": ["/uber/models.py"]}
25,484
Sen2k9/Cholo-A-Simplified-Car-Rental-Application
refs/heads/master
/uber/admin.py
from django.contrib import admin from .models import Driver, Vehicle, Customer, Ride admin.site.register(Driver) admin.site.register(Vehicle) admin.site.register(Customer) admin.site.register(Ride)
{"/uber/admin.py": ["/uber/models.py"], "/uber/views.py": ["/uber/models.py", "/uber/forms.py"], "/uber/forms.py": ["/uber/models.py"]}
25,485
Sen2k9/Cholo-A-Simplified-Car-Rental-Application
refs/heads/master
/uber/views.py
from django.shortcuts import render, get_object_or_404 # shortcuts for HttpResponse, and get an object or show 404 response from .models import Vehicle, Driver, Customer, Ride #importing required model from django.views import generic from django.views.generic.edit import CreateView, UpdateView, DeleteView from djang...
{"/uber/admin.py": ["/uber/models.py"], "/uber/views.py": ["/uber/models.py", "/uber/forms.py"], "/uber/forms.py": ["/uber/models.py"]}
25,486
Sen2k9/Cholo-A-Simplified-Car-Rental-Application
refs/heads/master
/uber/forms.py
from django.contrib.auth.models import User from .models import Ride, Customer, Vehicle, Driver from django import forms from django.contrib.auth.forms import UserCreationForm, UserChangeForm class UserForm(forms.ModelForm): #class UserForm(UserCreationForm): password = forms.CharField(widget=forms.PasswordInput) ...
{"/uber/admin.py": ["/uber/models.py"], "/uber/views.py": ["/uber/models.py", "/uber/forms.py"], "/uber/forms.py": ["/uber/models.py"]}
25,487
Sen2k9/Cholo-A-Simplified-Car-Rental-Application
refs/heads/master
/uber/apps.py
from django.apps import AppConfig class UberConfig(AppConfig): name = 'uber'
{"/uber/admin.py": ["/uber/models.py"], "/uber/views.py": ["/uber/models.py", "/uber/forms.py"], "/uber/forms.py": ["/uber/models.py"]}
25,488
Sen2k9/Cholo-A-Simplified-Car-Rental-Application
refs/heads/master
/taxicab_project/urls.py
"""taxicab_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cla...
{"/uber/admin.py": ["/uber/models.py"], "/uber/views.py": ["/uber/models.py", "/uber/forms.py"], "/uber/forms.py": ["/uber/models.py"]}
25,489
Sen2k9/Cholo-A-Simplified-Car-Rental-Application
refs/heads/master
/uber/models.py
from django.db import models from django.urls import reverse from django.contrib.auth.models import User from django.db.models.signals import post_save from django import forms class Vehicle(models.Model): ID = models.AutoField(primary_key = True) vehicle_type = models.CharField(max_length=250,default="") ...
{"/uber/admin.py": ["/uber/models.py"], "/uber/views.py": ["/uber/models.py", "/uber/forms.py"], "/uber/forms.py": ["/uber/models.py"]}
25,490
Sen2k9/Cholo-A-Simplified-Car-Rental-Application
refs/heads/master
/uber/migrations/0001_initial.py
# Generated by Django 2.2.3 on 2019-07-24 06:24 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('auth...
{"/uber/admin.py": ["/uber/models.py"], "/uber/views.py": ["/uber/models.py", "/uber/forms.py"], "/uber/forms.py": ["/uber/models.py"]}
25,494
dplyakin/rcc_app
refs/heads/master
/db.py
import pandas as pd import numpy as np import datetime from app import db import requests import json class User(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(80), unique=True) def __init__(self, name): self.name = name def __repr__(self): return ...
{"/db.py": ["/app.py"], "/app.py": ["/db.py"]}
25,495
dplyakin/rcc_app
refs/heads/master
/app.py
from flask import Flask from flask_sqlalchemy import SQLAlchemy import os app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://khwvbuqamcctie' \ ':7faf7cc39a759fdc3942331bff81104100cffb18a92481b9bae9e22de297f83e@ec2-34-196' \ ...
{"/db.py": ["/app.py"], "/app.py": ["/db.py"]}
25,498
climboid/movie-trailer-website
refs/heads/master
/media.py
#!/usr/bin/python # -*- coding: utf-8 -*- import webbrowser class Movie: # Constructor class. Initializes instances with given properties def __init__( self, movie_title, movie_storyline, poster_image, trailer_youtube, ): self.title = movie_title ...
{"/entertainment_center.py": ["/media.py"]}
25,499
climboid/movie-trailer-website
refs/heads/master
/entertainment_center.py
#!/usr/bin/python # -*- coding: utf-8 -*- import media import fresh_tomatoes # Create the instance variables that will containa all the necessary properties to render movies toy_story = media.Movie('Toy Story', 'A story of a boy that comes to life', 'http://upload.wiki...
{"/entertainment_center.py": ["/media.py"]}
25,506
s-wheels/yolov3_icdarmlt
refs/heads/master
/convert_gt.py
# -*- coding: utf-8 -*- """ Copyright 15 November 2018, Sean Wheeler, All rights reserved This file reads in the groundtruth data from the ICDAR2017 MLT dataset and converts it into the desired format. It resizes the ground truths to rectangles and determines the height and width of these boxes In addition it is cap...
{"/convert_darknet_weights.py": ["/yolo_net.py"], "/main.py": ["/yolo_net.py"]}
25,507
s-wheels/yolov3_icdarmlt
refs/heads/master
/convert_darknet_weights.py
# -*- coding: utf-8 -*- import tensorflow as tf import numpy as np import yolo_net FLAGS = tf.app.flags.FLAGS def del_all_flags(FLAGS): flags_dict = FLAGS._flags() keys_list = [keys for keys in flags_dict] for keys in keys_list: FLAGS.__delattr__(keys) del_all_flags(tf.flags.FLAGS) tf.a...
{"/convert_darknet_weights.py": ["/yolo_net.py"], "/main.py": ["/yolo_net.py"]}
25,508
s-wheels/yolov3_icdarmlt
refs/heads/master
/main.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Nov 26 13:28:53 2018 @author: Sean Wheeler This program builds a parser and uses it to determine hyperparameters for the YOLO network Takes input folders for images and ground truth Builds YOLO network and runs it in tensorflow """ import tensorflow a...
{"/convert_darknet_weights.py": ["/yolo_net.py"], "/main.py": ["/yolo_net.py"]}
25,509
s-wheels/yolov3_icdarmlt
refs/heads/master
/yolo_net.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Nov 11 22:44:01 2018 @author: Sean Wheeler Creates the darknet-53 network using tensorflow As found in 'YOLOv3: An Incremental Improvement by Joseph Redmon and Ali Farhadi' Builds the YOLO FPN-based detection layers on top of that. Also contains functi...
{"/convert_darknet_weights.py": ["/yolo_net.py"], "/main.py": ["/yolo_net.py"]}
25,510
s-wheels/yolov3_icdarmlt
refs/heads/master
/anchor_boxes/k_means.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Nov 19 18:44:09 2018 @author: aegeus """ import csv import operator import scipy.cluster as sp import numpy as np localization_data_types = (int, int, int, int, int, int, int, int, str, str) #Create three empty arrays for the data boxes = [] with o...
{"/convert_darknet_weights.py": ["/yolo_net.py"], "/main.py": ["/yolo_net.py"]}
25,511
s-wheels/yolov3_icdarmlt
refs/heads/master
/anchor_boxes/k_means_split.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Nov 19 18:44:09 2018 @author: aegeus """ import csv import operator import scipy.cluster as sp import numpy as np localization_data_types = (int, int, int, int, int, int, int, int, str, str) word_total = 86183 split_point_1 = round(86183/3) split_poi...
{"/convert_darknet_weights.py": ["/yolo_net.py"], "/main.py": ["/yolo_net.py"]}
25,512
AlexPaivaBR/projeto
refs/heads/master
/routes/usuarios.py
from database.banco import Cadastrados class Usuarios(object): def __init__(self, usuario = "", senha = ""): self.usuario = usuario self.senha = senha def cadastrarUsuario(self): banco = Cadastrados() c = banco.conexao.cursor() novoUsuario = self.usuario novaS...
{"/routes/usuarios.py": ["/database/banco.py"], "/principal.py": ["/routes/janelas.py"], "/routes/janelas.py": ["/routes/usuarios.py", "/routes/estilo.py"], "/testando.py": ["/routes/estilo.py"], "/routes/fichas.py": ["/database/banco.py"]}
25,513
AlexPaivaBR/projeto
refs/heads/master
/routes/menubar.py
def menus(self, master): menubar = Menu(self.master) menuUsuario = Menu(menubar, tearoff=0) menuUsuario.add_command(label="Login") menuUsuario.add_command(label="Cadastro") menuUsuario.add_separator() menuUsuario.add_command(label="Sair", command=self.master.quit) ...
{"/routes/usuarios.py": ["/database/banco.py"], "/principal.py": ["/routes/janelas.py"], "/routes/janelas.py": ["/routes/usuarios.py", "/routes/estilo.py"], "/testando.py": ["/routes/estilo.py"], "/routes/fichas.py": ["/database/banco.py"]}
25,514
AlexPaivaBR/projeto
refs/heads/master
/principal.py
from routes.janelas import * from tkinter import * if __name__ == "__main__": root = Tk() root.iconbitmap("img/spqr-icon.ico") root.title("< SPQR > Gerenciador de fichas") root.resizable(width=False, height=False) root.geometry("600x600+500+100") root["bg"] = "#330c50" programa = Janel...
{"/routes/usuarios.py": ["/database/banco.py"], "/principal.py": ["/routes/janelas.py"], "/routes/janelas.py": ["/routes/usuarios.py", "/routes/estilo.py"], "/testando.py": ["/routes/estilo.py"], "/routes/fichas.py": ["/database/banco.py"]}
25,515
AlexPaivaBR/projeto
refs/heads/master
/routes/janelas.py
from routes.usuarios import Usuarios from routes.estilo import Estilo from tkinter import * from tkinter import messagebox from tkinter import PhotoImage from tkinter import ttk class JanelaFicha(): def __init__(self, master=None): # Atributos self.master = master # Lista de esti...
{"/routes/usuarios.py": ["/database/banco.py"], "/principal.py": ["/routes/janelas.py"], "/routes/janelas.py": ["/routes/usuarios.py", "/routes/estilo.py"], "/testando.py": ["/routes/estilo.py"], "/routes/fichas.py": ["/database/banco.py"]}
25,516
AlexPaivaBR/projeto
refs/heads/master
/testando.py
from routes.estilo import Estilo from tkinter import * from tkinter import ttk class JanelaInicial(): def __init__(self, master=None): self.master = master Estilo.__init__(self) self.criarWidgets() def criarWidgets(self): self.abas = ttk.Notebook(self.master) ...
{"/routes/usuarios.py": ["/database/banco.py"], "/principal.py": ["/routes/janelas.py"], "/routes/janelas.py": ["/routes/usuarios.py", "/routes/estilo.py"], "/testando.py": ["/routes/estilo.py"], "/routes/fichas.py": ["/database/banco.py"]}
25,517
AlexPaivaBR/projeto
refs/heads/master
/routes/estilo.py
class Estilo(): def __init__(self): # Cores self.corFrente = "white" self.corFundo = "#330c50" self.corContainer = "#DCDCDC" # Fontes self.fonteTitulo = ("Arial", "30", "bold") self.fontePadrao = ("Arial", "12", "bold") self.fonteEntry = ("Ar...
{"/routes/usuarios.py": ["/database/banco.py"], "/principal.py": ["/routes/janelas.py"], "/routes/janelas.py": ["/routes/usuarios.py", "/routes/estilo.py"], "/testando.py": ["/routes/estilo.py"], "/routes/fichas.py": ["/database/banco.py"]}
25,518
AlexPaivaBR/projeto
refs/heads/master
/database/banco.py
import sqlite3 class Cadastrados(): def __init__(self): self.conexao = sqlite3.connect('database/cadastrados.db') self.createTable() def createTable(self): c = self.conexao.cursor() c.execute("""CREATE TABLE IF NOT EXISTS usuarios( idusuario INTEGER PRIMARY...
{"/routes/usuarios.py": ["/database/banco.py"], "/principal.py": ["/routes/janelas.py"], "/routes/janelas.py": ["/routes/usuarios.py", "/routes/estilo.py"], "/testando.py": ["/routes/estilo.py"], "/routes/fichas.py": ["/database/banco.py"]}
25,519
AlexPaivaBR/projeto
refs/heads/master
/routes/fichas.py
from database.banco import Ficheiro class Fichas(object): def __init__(self, nome = "", idade = 0, raca = "", classe = "", usuario = "", senha = ""): self.nome = nome self.idade = idade self.raca = raca self.classe = classe self.usuario = usuario self.senha = senha ...
{"/routes/usuarios.py": ["/database/banco.py"], "/principal.py": ["/routes/janelas.py"], "/routes/janelas.py": ["/routes/usuarios.py", "/routes/estilo.py"], "/testando.py": ["/routes/estilo.py"], "/routes/fichas.py": ["/database/banco.py"]}
25,538
Amar-Ag/facialAttendance
refs/heads/master
/facialAttendance/attendance/src/facerecog_attendance/pages/views.py
from django.shortcuts import render, redirect from students.models import Student import cv2 import pickle from attendance.models import Attendance import time Id = 0 Name = "" # Create your views here. def admin_login_view(request, *args, **kwargs): return render(request, 'login-form.html') def add_student_view...
{"/facialAttendance/attendance/src/facerecog_attendance/students/views.py": ["/facialAttendance/attendance/src/facerecog_attendance/students/models.py"], "/facialAttendance/attendance/src/facerecog_attendance/students/urls.py": ["/facialAttendance/attendance/src/facerecog_attendance/students/views.py"]}
25,539
Amar-Ag/facialAttendance
refs/heads/master
/facialAttendance/attendance/src/facerecog_attendance/students/migrations/0001_initial.py
# Generated by Django 2.2.11 on 2020-03-16 08:02 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Student', fields=[ ('FirstName', models.Ch...
{"/facialAttendance/attendance/src/facerecog_attendance/students/views.py": ["/facialAttendance/attendance/src/facerecog_attendance/students/models.py"], "/facialAttendance/attendance/src/facerecog_attendance/students/urls.py": ["/facialAttendance/attendance/src/facerecog_attendance/students/views.py"]}
25,540
Amar-Ag/facialAttendance
refs/heads/master
/facialAttendance/attendance/src/facerecog_attendance/facerecog_attendance/urls.py
"""facerecog_attendance URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home'...
{"/facialAttendance/attendance/src/facerecog_attendance/students/views.py": ["/facialAttendance/attendance/src/facerecog_attendance/students/models.py"], "/facialAttendance/attendance/src/facerecog_attendance/students/urls.py": ["/facialAttendance/attendance/src/facerecog_attendance/students/views.py"]}
25,541
Amar-Ag/facialAttendance
refs/heads/master
/facialAttendance/attendance/src/facerecog_attendance/students/views.py
from django.shortcuts import render, redirect from .models import Student import cv2 import os import shutil Id = 0 FName = "" # Create your views here. def add_student(request, *args, **kwargs): global Id, FName RollNo = request.POST.get('RollNo') Name = request.POST.get('FirstName') Id = RollNo FN...
{"/facialAttendance/attendance/src/facerecog_attendance/students/views.py": ["/facialAttendance/attendance/src/facerecog_attendance/students/models.py"], "/facialAttendance/attendance/src/facerecog_attendance/students/urls.py": ["/facialAttendance/attendance/src/facerecog_attendance/students/views.py"]}
25,542
Amar-Ag/facialAttendance
refs/heads/master
/facialAttendance/attendance/src/facerecog_attendance/attendance/models.py
from django.db import models # Create your models here. class Attendance(models.Model): id = models.AutoField(primary_key=True) RollNo = models.IntegerField() Name = models.CharField(max_length=20) Status = models.IntegerField() Date = models.CharField(max_length=20)
{"/facialAttendance/attendance/src/facerecog_attendance/students/views.py": ["/facialAttendance/attendance/src/facerecog_attendance/students/models.py"], "/facialAttendance/attendance/src/facerecog_attendance/students/urls.py": ["/facialAttendance/attendance/src/facerecog_attendance/students/views.py"]}
25,543
Amar-Ag/facialAttendance
refs/heads/master
/facialAttendance/attendance/src/facerecog_attendance/administrator/views.py
from django.shortcuts import render, redirect from .models import Admin from attendance.models import Attendance # Create your views here. isLoggedIn = False def admin_login(request): global isLoggedIn attendance = Attendance.objects.all() context = { 'attendance': attendance } if request...
{"/facialAttendance/attendance/src/facerecog_attendance/students/views.py": ["/facialAttendance/attendance/src/facerecog_attendance/students/models.py"], "/facialAttendance/attendance/src/facerecog_attendance/students/urls.py": ["/facialAttendance/attendance/src/facerecog_attendance/students/views.py"]}
25,544
Amar-Ag/facialAttendance
refs/heads/master
/facialAttendance/attendance/src/facerecog_attendance/students/urls.py
from django.urls import path from .views import add_student,edit_student,profile, camera from pages.views import all_student urlpatterns = [ path('add/', add_student, name="addStudent"), path('all/', all_student, name="allStudent"), path('edit/<int:id>', edit_student, name="editStudent"), path('camera/...
{"/facialAttendance/attendance/src/facerecog_attendance/students/views.py": ["/facialAttendance/attendance/src/facerecog_attendance/students/models.py"], "/facialAttendance/attendance/src/facerecog_attendance/students/urls.py": ["/facialAttendance/attendance/src/facerecog_attendance/students/views.py"]}
25,545
Amar-Ag/facialAttendance
refs/heads/master
/facialAttendance/attendance/src/facerecog_attendance/students/models.py
from django.db import models # Create your models here. class Student(models.Model): FirstName = models.CharField(max_length=20, blank=False, null=False) LastName = models.CharField(max_length=15, blank=False, null=False) RollNo = models.IntegerField(primary_key=True) Email = models.EmailField(max_leng...
{"/facialAttendance/attendance/src/facerecog_attendance/students/views.py": ["/facialAttendance/attendance/src/facerecog_attendance/students/models.py"], "/facialAttendance/attendance/src/facerecog_attendance/students/urls.py": ["/facialAttendance/attendance/src/facerecog_attendance/students/views.py"]}
25,563
shawnsteinz/BatchExtractor
refs/heads/master
/BatchExtractor/Gui/Gui_Builder.py
from tkinter import * from tkinter import ttk import BatchExtractor.Gui.Settings_Screen import BatchExtractor.Gui.Main_Screen class Gui_Builder: def __init__(self, sh, file): self.root = Tk() self.sh = sh self.source = StringVar() self.source.set(self.sh.get_setting('src')) ...
{"/BatchExtractor/Gui/Gui_Builder.py": ["/BatchExtractor/Gui/Settings_Screen.py", "/BatchExtractor/Gui/Main_Screen.py"], "/BatchExtractor/Model/Example.py": ["/BatchExtractor/Database/Database.py", "/BatchExtractor/Model/File.py", "/BatchExtractor/Model/Task.py"], "/BatchExtractor/Main.py": ["/BatchExtractor/Gui/Gui_Bu...
25,564
shawnsteinz/BatchExtractor
refs/heads/master
/BatchExtractor/Model/File.py
from os import stat, path, walk from operator import attrgetter from datetime import datetime class File(): def __init__(self, file_location): statistics = stat(file_location) self.location = file_location self.size = statistics.st_size self.archive_size = self.__size() s...
{"/BatchExtractor/Gui/Gui_Builder.py": ["/BatchExtractor/Gui/Settings_Screen.py", "/BatchExtractor/Gui/Main_Screen.py"], "/BatchExtractor/Model/Example.py": ["/BatchExtractor/Database/Database.py", "/BatchExtractor/Model/File.py", "/BatchExtractor/Model/Task.py"], "/BatchExtractor/Main.py": ["/BatchExtractor/Gui/Gui_Bu...
25,565
shawnsteinz/BatchExtractor
refs/heads/master
/BatchExtractor/Gui/Settings_Screen.py
from tkinter import filedialog from tkinter import * class Settings_Screen: def __init__(self, source, destination, shelve_handler): self.source = source self.destination = destination self.sh = shelve_handler def build_settings_screen(self): settings = Frame() Label(s...
{"/BatchExtractor/Gui/Gui_Builder.py": ["/BatchExtractor/Gui/Settings_Screen.py", "/BatchExtractor/Gui/Main_Screen.py"], "/BatchExtractor/Model/Example.py": ["/BatchExtractor/Database/Database.py", "/BatchExtractor/Model/File.py", "/BatchExtractor/Model/Task.py"], "/BatchExtractor/Main.py": ["/BatchExtractor/Gui/Gui_Bu...
25,566
shawnsteinz/BatchExtractor
refs/heads/master
/BatchExtractor/Model/Task.py
from subprocess import call class TaskHandler(): def __init__(self, file_list, destination_directory): self.__tasks = self.__create_tasks(file_list, destination_directory) self.successful_tasks = [] self.failed_tasks =[] def __create_tasks(self, file_list, destination_directory): ...
{"/BatchExtractor/Gui/Gui_Builder.py": ["/BatchExtractor/Gui/Settings_Screen.py", "/BatchExtractor/Gui/Main_Screen.py"], "/BatchExtractor/Model/Example.py": ["/BatchExtractor/Database/Database.py", "/BatchExtractor/Model/File.py", "/BatchExtractor/Model/Task.py"], "/BatchExtractor/Main.py": ["/BatchExtractor/Gui/Gui_Bu...
25,567
shawnsteinz/BatchExtractor
refs/heads/master
/BatchExtractor/Model/Example.py
from BatchExtractor.Database.Database import ShelveHandler from BatchExtractor.Model.File import FileList from BatchExtractor.Model.Task import TaskHandler sh = ShelveHandler('D:\\Test\\DB\\Shelve') sh.set_setting('src', 'D:\\Test\\SRC') sh.set_setting('des', 'D:\\Test\\DES') sh.set_setting('ext', ['.rar', '.zip', '.7...
{"/BatchExtractor/Gui/Gui_Builder.py": ["/BatchExtractor/Gui/Settings_Screen.py", "/BatchExtractor/Gui/Main_Screen.py"], "/BatchExtractor/Model/Example.py": ["/BatchExtractor/Database/Database.py", "/BatchExtractor/Model/File.py", "/BatchExtractor/Model/Task.py"], "/BatchExtractor/Main.py": ["/BatchExtractor/Gui/Gui_Bu...
25,568
shawnsteinz/BatchExtractor
refs/heads/master
/BatchExtractor/Main.py
import BatchExtractor.Gui.Gui_Builder from BatchExtractor.Database.Database import ShelveHandler from BatchExtractor.Model.File import FileList from BatchExtractor.Model.Task import TaskHandler class Main(): def __init__(self): self.sh = ShelveHandler('C:\\BE\\DB\\Shelve') self.sh.set_setting('sr...
{"/BatchExtractor/Gui/Gui_Builder.py": ["/BatchExtractor/Gui/Settings_Screen.py", "/BatchExtractor/Gui/Main_Screen.py"], "/BatchExtractor/Model/Example.py": ["/BatchExtractor/Database/Database.py", "/BatchExtractor/Model/File.py", "/BatchExtractor/Model/Task.py"], "/BatchExtractor/Main.py": ["/BatchExtractor/Gui/Gui_Bu...
25,569
shawnsteinz/BatchExtractor
refs/heads/master
/BatchExtractor/Database/Database.py
from shelve import * class ShelveHandler(): def __init__(self, shelve_location): self.__shelve = open(shelve_location, flag='c', writeback=True) def get_completed(self): try: return self.__shelve['completed'] except KeyError: return [] def get_excl...
{"/BatchExtractor/Gui/Gui_Builder.py": ["/BatchExtractor/Gui/Settings_Screen.py", "/BatchExtractor/Gui/Main_Screen.py"], "/BatchExtractor/Model/Example.py": ["/BatchExtractor/Database/Database.py", "/BatchExtractor/Model/File.py", "/BatchExtractor/Model/Task.py"], "/BatchExtractor/Main.py": ["/BatchExtractor/Gui/Gui_Bu...
25,570
shawnsteinz/BatchExtractor
refs/heads/master
/BatchExtractor/Gui/Main_Screen.py
from tkinter import * import BatchExtractor.Main import tkinter.ttk as ttk import tkinter.font as tkFont class Main_Screen: def __init__(self, sh, files): self.var = int() self.v = StringVar() self.sh = sh self.files = files self.label = [] self.checkbutton = [] ...
{"/BatchExtractor/Gui/Gui_Builder.py": ["/BatchExtractor/Gui/Settings_Screen.py", "/BatchExtractor/Gui/Main_Screen.py"], "/BatchExtractor/Model/Example.py": ["/BatchExtractor/Database/Database.py", "/BatchExtractor/Model/File.py", "/BatchExtractor/Model/Task.py"], "/BatchExtractor/Main.py": ["/BatchExtractor/Gui/Gui_Bu...
25,571
RescuePi/Rescue_Pi_Code
refs/heads/main
/constants.py
RUN_PROGRAM = True prototxt_path = "human_detection_model/MobileNetSSD_deploy.prototxt.txt" human_model_path = "human_detection_model/MobileNetSSD_deploy.caffemodel" rescue_cnn_model_path = "saved_models/PyTorch_Models/Final_Rescue_Model_Onnx.onnx" sound_file = "alarm.wav" MIN_CONFIDENCE = 0.8 frame_width_in_pixe...
{"/Rescue_Pi.py": ["/constants.py"]}
25,572
RescuePi/Rescue_Pi_Code
refs/heads/main
/Rescue_Pi.py
import cv2 import numpy as np from constants import * import imutils from imutils.video import VideoStream from pygame import mixer import threading import os class Rescue_PI: run_program = RUN_PROGRAM input_video_file_path = None preferable_target = cv2.dnn.DNN_TARGET_CPU def __init__(self): ...
{"/Rescue_Pi.py": ["/constants.py"]}
25,579
elongton/recipebook
refs/heads/master
/recipebook/views.py
from django.shortcuts import render from django.views.generic import ListView from django.views.generic.edit import FormView, CreateView from .models import Recipe from .forms import AddRecipeForm class RecipeList(ListView): model = Recipe context_object_name = 'recipes' class AddRecipeView(CreateView): ...
{"/recipebook/views.py": ["/recipebook/models.py", "/recipebook/forms.py"], "/recipebook/forms.py": ["/recipebook/models.py"], "/recipebook/admin.py": ["/recipebook/models.py"]}
25,580
elongton/recipebook
refs/heads/master
/recipebook/forms.py
from django import forms from .models import (Unit, Ingredient, Recipe, IngredientSection, IngredientQuantity,) class AddRecipeForm(forms.ModelForm): class Meta(): model = Recipe fields = ('title', 'instructions',)
{"/recipebook/views.py": ["/recipebook/models.py", "/recipebook/forms.py"], "/recipebook/forms.py": ["/recipebook/models.py"], "/recipebook/admin.py": ["/recipebook/models.py"]}
25,581
elongton/recipebook
refs/heads/master
/recipebook/admin.py
from django.contrib import admin from .models import Ingredient, Unit, IngredientQuantity, IngredientSection, Recipe # Register your models here. admin.site.register(Recipe) admin.site.register(IngredientSection) admin.site.register(Ingredient) admin.site.register(Unit) class IngredientQuantityAdmin(admin.ModelAdmin):...
{"/recipebook/views.py": ["/recipebook/models.py", "/recipebook/forms.py"], "/recipebook/forms.py": ["/recipebook/models.py"], "/recipebook/admin.py": ["/recipebook/models.py"]}
25,582
elongton/recipebook
refs/heads/master
/recipebook/migrations/0001_initial.py
# Generated by Django 2.1 on 2018-08-05 19:41 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Ingredient', fields=[ ...
{"/recipebook/views.py": ["/recipebook/models.py", "/recipebook/forms.py"], "/recipebook/forms.py": ["/recipebook/models.py"], "/recipebook/admin.py": ["/recipebook/models.py"]}
25,583
elongton/recipebook
refs/heads/master
/recipebook/models.py
from django.db import models # Create your models here. class Unit(models.Model): class Meta: verbose_name = 'Unit' verbose_name_plural = 'Units' id = models.AutoField(primary_key = True) name = models.CharField(max_length=50) short_name = models.CharField(max_length=25, blank=True) ...
{"/recipebook/views.py": ["/recipebook/models.py", "/recipebook/forms.py"], "/recipebook/forms.py": ["/recipebook/models.py"], "/recipebook/admin.py": ["/recipebook/models.py"]}
25,597
fgassert/eeUtil
refs/heads/master
/eeUtil/eeutil.py
import os import ee import logging import time import datetime import json import math import warnings from . import gsbucket STRICT = True GEE_JSON = os.getenv("GEE_JSON") GEE_SERVICE_ACCOUNT = os.getenv("GEE_SERVICE_ACCOUNT") or "service account" GOOGLE_APPLICATION_CREDENTIALS = os.getenv("GOOGLE_APPLICATION_CREDE...
{"/eeUtil/eeutil.py": ["/eeUtil/__init__.py"], "/eeUtil/__init__.py": ["/eeUtil/eeutil.py"], "/eeUtil/gsbucket.py": ["/eeUtil/__init__.py"]}
25,598
fgassert/eeUtil
refs/heads/master
/setup.py
#!/usr/bin/env python from setuptools import setup with open('README.md') as f: desc = f.read() setup( name='eeUtil', version='0.3.0', description='Python wrapper for easier data management on Google Earth Engine.', long_description=desc, long_description_content_type='text/markdown', lice...
{"/eeUtil/eeutil.py": ["/eeUtil/__init__.py"], "/eeUtil/__init__.py": ["/eeUtil/eeutil.py"], "/eeUtil/gsbucket.py": ["/eeUtil/__init__.py"]}