index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
62,350
theduderog/Superlance
refs/heads/master
/superlance/process_state_email_monitor.py
#!/usr/bin/env python -u ############################################################################## # # Copyright (c) 2007 Agendaless Consulting and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the BSD-like license at # http://www.repoze.org/LICENSE.txt. A copy of the lice...
{"/superlance/process_state_email_monitor.py": ["/superlance/process_state_monitor.py"], "/superlance/tests/process_state_email_monitor_test.py": ["/superlance/process_state_email_monitor.py"], "/superlance/tests/process_state_monitor_test.py": ["/superlance/process_state_monitor.py"]}
62,351
theduderog/Superlance
refs/heads/master
/superlance/tests/fatalmailbatch_test.py
import unittest import mock import time from StringIO import StringIO class FatalMailBatchTests(unittest.TestCase): fromEmail = 'testFrom@blah.com' toEmail = 'testTo@blah.com' subject = 'Test Alert' now = 1279677400.1 unexpectedErrorMsg = '2010-07-20 18:56:40,099 -- Process bar:foo \ failed to star...
{"/superlance/process_state_email_monitor.py": ["/superlance/process_state_monitor.py"], "/superlance/tests/process_state_email_monitor_test.py": ["/superlance/process_state_email_monitor.py"], "/superlance/tests/process_state_monitor_test.py": ["/superlance/process_state_monitor.py"]}
62,352
theduderog/Superlance
refs/heads/master
/superlance/process_state_monitor.py
#!/usr/bin/env python -u ############################################################################## # # Copyright (c) 2007 Agendaless Consulting and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the BSD-like license at # http://www.repoze.org/LICENSE.txt. A copy of the lice...
{"/superlance/process_state_email_monitor.py": ["/superlance/process_state_monitor.py"], "/superlance/tests/process_state_email_monitor_test.py": ["/superlance/process_state_email_monitor.py"], "/superlance/tests/process_state_monitor_test.py": ["/superlance/process_state_monitor.py"]}
62,353
theduderog/Superlance
refs/heads/master
/superlance/tests/process_state_email_monitor_test.py
import unittest import mock import time from StringIO import StringIO class ProcessStateEmailMonitorTests(unittest.TestCase): fromEmail = 'testFrom@blah.com' toEmail = 'testTo@blah.com' subject = 'Test Alert' def _getTargetClass(self): from superlance.process_state_email_monitor \ ...
{"/superlance/process_state_email_monitor.py": ["/superlance/process_state_monitor.py"], "/superlance/tests/process_state_email_monitor_test.py": ["/superlance/process_state_email_monitor.py"], "/superlance/tests/process_state_monitor_test.py": ["/superlance/process_state_monitor.py"]}
62,354
theduderog/Superlance
refs/heads/master
/superlance/tests/process_state_monitor_test.py
import unittest import mock import time from StringIO import StringIO from superlance.process_state_monitor import ProcessStateMonitor class TestProcessStateMonitor(ProcessStateMonitor): processStateEvents = ['PROCESS_STATE_EXITED'] def getProcessStateChangeMsg(self, headers, payload): ...
{"/superlance/process_state_email_monitor.py": ["/superlance/process_state_monitor.py"], "/superlance/tests/process_state_email_monitor_test.py": ["/superlance/process_state_email_monitor.py"], "/superlance/tests/process_state_monitor_test.py": ["/superlance/process_state_monitor.py"]}
62,362
ravioli0509/agent_officer_UI
refs/heads/master
/agent.py
import time, sqlite3, datetime, re, getpass def register_birth(user,conn): # The agent should be able to register a birth by providing the first name, the last name, the gender, the birth date, # the birth place of the newborn, as well as the first and last names of the parents. # The registration da...
{"/project.py": ["/agent.py", "/traffic_officer.py"]}
62,363
ravioli0509/agent_officer_UI
refs/heads/master
/project.py
import time, sqlite3, datetime, re, getpass,os, sys import agent, traffic_officer def login(c,uid,pwd): c.execute('''SELECT * FROM users WHERE uid = :username;''',{'username':uid}) user = c.fetchone() if user == None: return None elif pwd == user[1]: return user else: ...
{"/project.py": ["/agent.py", "/traffic_officer.py"]}
62,364
ravioli0509/agent_officer_UI
refs/heads/master
/traffic_officer.py
import time, sqlite3, datetime, re, getpass def issue_ticket(conn): # The user should be able to provide a registration number and see the person name that is listed in the registration and the make, model, year and color of the car registered. # Then the user should be able to proceed and ticket the regi...
{"/project.py": ["/agent.py", "/traffic_officer.py"]}
62,388
escramer/freecellv2
refs/heads/master
/search.py
"""Depth first search, breadth first search, and A* See https://en.wikipedia.org/wiki/A*_search_algorithm """ from collections import deque from heapq import heappush, heappop import logging from time import time _INFINITY = float('inf') class _OpenSet(object): """An object for pushing on states and popping th...
{"/test_freecell.py": ["/freecell.py"]}
62,389
escramer/freecellv2
refs/heads/master
/test_freecell.py
import pytest from freecell import Card, FreeCellProblem def test_card(): """Test the Card class.""" card = Card(1, 2) assert card.rank_str == 'A' assert card.rank_int == 1 assert card.suit_str == 'C' assert card.suit_int == 2 assert str(card) == 'AC' assert not card.is_red assert ...
{"/test_freecell.py": ["/freecell.py"]}
62,390
escramer/freecellv2
refs/heads/master
/freecell.py
#! /usr/bin/env python """A Freecell solver""" import argparse import csv import logging from search import Problem, astar, dfs _MAX_RANK = 13 _MAX_COLS = 8 _MAX_FREE_CELLS = 4 _DECK_SIZE = 52 _SUIT_LST = ('D', 'H', 'C', 'S') _RANK_LST = (None, 'A', '2', '3', '4', '5', '6', '7', '8', '9', 'T', 'J', 'Q', 'K') clas...
{"/test_freecell.py": ["/freecell.py"]}
62,391
dafatskin/CCA-Allocation
refs/heads/master
/mod_allocation.py
################### #Allocation module# ################### import mod_data as modD import random def p2_assignDSA(DSA, final_dic, CCA_dic): """ Assigns all DSA students their CCA Returns the final dictionaries """ for name, CCA in DSA.dic.items(): #DSA is a class object f...
{"/mod_allocation.py": ["/mod_data.py"], "/start.py": ["/mod_data.py", "/mod_allocation.py", "/mod_presentation.py", "/class_data.py"]}
62,392
dafatskin/CCA-Allocation
refs/heads/master
/start.py
############# #Main script# ############# #CCA Allocation v1.0# import timeit import os import mod_data as modD import mod_allocation as modA import mod_presentation as modP from class_data import * #variables# config_file = "Config file.txt" def main(config_file): """ """ final...
{"/mod_allocation.py": ["/mod_data.py"], "/start.py": ["/mod_data.py", "/mod_allocation.py", "/mod_presentation.py", "/class_data.py"]}
62,393
dafatskin/CCA-Allocation
refs/heads/master
/class_data.py
############ #Data class# ############ class sheetdata: def __init__(self, sheetname, dic): self.sheetname = sheetname self.dic = dic
{"/mod_allocation.py": ["/mod_data.py"], "/start.py": ["/mod_data.py", "/mod_allocation.py", "/mod_presentation.py", "/class_data.py"]}
62,394
dafatskin/CCA-Allocation
refs/heads/master
/mod_data.py
############# #data module# ############# import openpyxl import timeit def configure_variables(config_file): """ Returns all the variables stored in the config file {data type:{data}} """ print("configuring variables...") dic = {} #will return to config_vars tr...
{"/mod_allocation.py": ["/mod_data.py"], "/start.py": ["/mod_data.py", "/mod_allocation.py", "/mod_presentation.py", "/class_data.py"]}
62,395
dafatskin/CCA-Allocation
refs/heads/master
/mod_presentation.py
##################### #Presentation module# ##################### import openpyxl from docx import Document from docx.shared import Inches import datetime import matplotlib.pyplot as plt import numpy as np def autolabel(rects, xpos='center'): """ Attach a text label above each bar in *rects*, d...
{"/mod_allocation.py": ["/mod_data.py"], "/start.py": ["/mod_data.py", "/mod_allocation.py", "/mod_presentation.py", "/class_data.py"]}
62,407
itisianlee/pyaccepted
refs/heads/master
/algorithm/sorting/bubble.py
import ipt from algorithm.datastruct import ListNode, createlink, traverse def bubblesort_a(arr): l = len(arr) i = 0 while i < l-1: j = 0 flag = True while j < l-1-i: if arr[j] > arr[j+1]: flag = False arr[j], arr[j+1] = arr[j+1], arr[j] ...
{"/algorithm/sorting/bubble.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/datastruct/__init__.py": ["/algorithm/datastruct/listnode.py", "/algorithm/datastruct/tree.py"], "/algorithm/sorting/merge.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/sorting/quick.py": ["/algorithm/datastruct/__init__.py"],...
62,408
itisianlee/pyaccepted
refs/heads/master
/algorithm/datastruct/__init__.py
from .listnode import ListNode, createlink, traverse from .tree import TreeNode, Tree
{"/algorithm/sorting/bubble.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/datastruct/__init__.py": ["/algorithm/datastruct/listnode.py", "/algorithm/datastruct/tree.py"], "/algorithm/sorting/merge.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/sorting/quick.py": ["/algorithm/datastruct/__init__.py"],...
62,409
itisianlee/pyaccepted
refs/heads/master
/algorithm/sorting/merge.py
import ipt from algorithm.datastruct import ListNode, createlink, traverse def mergesort_a(arr): l = len(arr) def merge(arr, left, mid, right): i = left j = mid + 1 tmp = [] while i <= mid and j <= right: if arr[i] < arr[j]: tmp.append(arr[i]) ...
{"/algorithm/sorting/bubble.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/datastruct/__init__.py": ["/algorithm/datastruct/listnode.py", "/algorithm/datastruct/tree.py"], "/algorithm/sorting/merge.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/sorting/quick.py": ["/algorithm/datastruct/__init__.py"],...
62,410
itisianlee/pyaccepted
refs/heads/master
/algorithm/sorting/quick.py
import ipt from algorithm.datastruct import ListNode, createlink, traverse def quicksort_a(arr): l = len(arr) def quicksort(arr, left, right): if left <= right: idx = partition(arr, left, right) quicksort(arr, left, idx-1) quicksort(arr, idx+1, right) def parti...
{"/algorithm/sorting/bubble.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/datastruct/__init__.py": ["/algorithm/datastruct/listnode.py", "/algorithm/datastruct/tree.py"], "/algorithm/sorting/merge.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/sorting/quick.py": ["/algorithm/datastruct/__init__.py"],...
62,411
itisianlee/pyaccepted
refs/heads/master
/leetcode/top100/t2/t2.py
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode: carry = 0 p = l1 q = l2 r = ListNode() r.next = p while p and q: cur = p.val + q.val + carry carry = cur // 10 cur %= 10 p.val = cur p = p.next q = q.next r = r.next ...
{"/algorithm/sorting/bubble.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/datastruct/__init__.py": ["/algorithm/datastruct/listnode.py", "/algorithm/datastruct/tree.py"], "/algorithm/sorting/merge.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/sorting/quick.py": ["/algorithm/datastruct/__init__.py"],...
62,412
itisianlee/pyaccepted
refs/heads/master
/algorithm/datastruct/listnode.py
class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next def createlink(arr=None): assert arr head = ListNode(arr[0]) p = head for x in arr[1:]: tmp = ListNode(x) p.next = tmp p = p.next return head def traverse(head): i...
{"/algorithm/sorting/bubble.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/datastruct/__init__.py": ["/algorithm/datastruct/listnode.py", "/algorithm/datastruct/tree.py"], "/algorithm/sorting/merge.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/sorting/quick.py": ["/algorithm/datastruct/__init__.py"],...
62,413
itisianlee/pyaccepted
refs/heads/master
/algorithm/traverse/binary_tree_traverse.py
import ipt from algorithm.datastruct import TreeNode, Tree # 二叉树的递归遍历太过简单,省略 def pretty_print_tree(node, prefix="", isLeft=True): if not node: print("Empty Tree") return if node.right: pretty_print_tree(node.right, prefix + ("│ " if isLeft else " "), Fa...
{"/algorithm/sorting/bubble.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/datastruct/__init__.py": ["/algorithm/datastruct/listnode.py", "/algorithm/datastruct/tree.py"], "/algorithm/sorting/merge.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/sorting/quick.py": ["/algorithm/datastruct/__init__.py"],...
62,414
itisianlee/pyaccepted
refs/heads/master
/algorithm/sorting/ipt.py
import os import sys absp = os.path.abspath('.') sys.path.append(absp) sys.path.append('/' + os.path.join(*absp.split('/')[:-2]))
{"/algorithm/sorting/bubble.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/datastruct/__init__.py": ["/algorithm/datastruct/listnode.py", "/algorithm/datastruct/tree.py"], "/algorithm/sorting/merge.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/sorting/quick.py": ["/algorithm/datastruct/__init__.py"],...
62,415
itisianlee/pyaccepted
refs/heads/master
/algorithm/sorting/shell.py
def shellsort(arr): l = len(arr) gap = l // 2 while gap > 0: for i in range(gap, l): j = i cur = arr[i] while j-gap >= 0 and cur < arr[j-gap]: arr[j] = arr[j-gap] j = j - gap arr[j] = cur gap = gap // 2 # shel...
{"/algorithm/sorting/bubble.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/datastruct/__init__.py": ["/algorithm/datastruct/listnode.py", "/algorithm/datastruct/tree.py"], "/algorithm/sorting/merge.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/sorting/quick.py": ["/algorithm/datastruct/__init__.py"],...
62,416
itisianlee/pyaccepted
refs/heads/master
/algorithm/sorting/insertion.py
import ipt from algorithm.datastruct import ListNode, createlink, traverse def insertionsort_a(arr): l = len(arr) for i in range(1, l): cur = arr[i] idx = i-1 while idx >= 0 and arr[idx] > cur: arr[idx+1] = arr[idx] idx -= 1 arr[idx+1] = cur def insert...
{"/algorithm/sorting/bubble.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/datastruct/__init__.py": ["/algorithm/datastruct/listnode.py", "/algorithm/datastruct/tree.py"], "/algorithm/sorting/merge.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/sorting/quick.py": ["/algorithm/datastruct/__init__.py"],...
62,417
itisianlee/pyaccepted
refs/heads/master
/algorithm/datastruct/heap.py
''' # 堆中父节点i与子节点left、right的位置关系 parent = int((i-1) / 2) # 取整 left = 2 * i + 1 right = 2 * i + 2 ''' class Array(object): def __init__(self, size = 32): self._size = size self._items = [None] * size def __getitem__(self, index): return self._items[index] def __setitem__(self, ind...
{"/algorithm/sorting/bubble.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/datastruct/__init__.py": ["/algorithm/datastruct/listnode.py", "/algorithm/datastruct/tree.py"], "/algorithm/sorting/merge.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/sorting/quick.py": ["/algorithm/datastruct/__init__.py"],...
62,418
itisianlee/pyaccepted
refs/heads/master
/algorithm/sorting/selection.py
import ipt from algorithm.datastruct import ListNode, createlink, traverse def selectionsort_a(arr): l = len(arr) for i in range(l): minidx = i for j in range(i, l): if arr[j] < arr[minidx]: minidx = j arr[i], arr[minidx] = arr[minidx], arr[i] def selectio...
{"/algorithm/sorting/bubble.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/datastruct/__init__.py": ["/algorithm/datastruct/listnode.py", "/algorithm/datastruct/tree.py"], "/algorithm/sorting/merge.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/sorting/quick.py": ["/algorithm/datastruct/__init__.py"],...
62,419
itisianlee/pyaccepted
refs/heads/master
/algorithm/datastruct/tree.py
class TreeNode: def __init__(self, val=None): self.val = val self.left = None self.right = None self.visited = False class Tree: def __init__(self, valList=None): assert isinstance(valList, list) self.root = Tree.createtree(valList) @staticmethod def cr...
{"/algorithm/sorting/bubble.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/datastruct/__init__.py": ["/algorithm/datastruct/listnode.py", "/algorithm/datastruct/tree.py"], "/algorithm/sorting/merge.py": ["/algorithm/datastruct/__init__.py"], "/algorithm/sorting/quick.py": ["/algorithm/datastruct/__init__.py"],...
62,420
uborzz/ocr-search
refs/heads/master
/rady_messages.py
# -*- coding: utf-8 -*- import cv2 import rady_functions as rfs class Messages(object): __instance = None def __new__(cls): if cls.__instance is None: cls.__instance = object.__new__(cls) cls.__instance.__init__() return cls.__instance def __init__(self): ...
{"/rady_messages.py": ["/rady_functions.py"], "/rady_functions.py": ["/modes.py", "/rady_messages.py"], "/rady_searcher.py": ["/rady_functions.py", "/rady_messages.py"], "/__init__.py": ["/config.py", "/modes.py", "/rady_functions.py", "/rady_messages.py", "/rady_searcher.py", "/rady_stream.py"]}
62,421
uborzz/ocr-search
refs/heads/master
/pruebas.py
text = " el mismº preciº qprint(new_text)ue en Pcmuy inter" new_text = text.replace('º', 'o')
{"/rady_messages.py": ["/rady_functions.py"], "/rady_functions.py": ["/modes.py", "/rady_messages.py"], "/rady_searcher.py": ["/rady_functions.py", "/rady_messages.py"], "/__init__.py": ["/config.py", "/modes.py", "/rady_functions.py", "/rady_messages.py", "/rady_searcher.py", "/rady_stream.py"]}
62,422
uborzz/ocr-search
refs/heads/master
/rady_functions.py
# -*- coding: utf-8 -*- import cv2 import numpy as np from PIL import Image import pytesseract import modes from rady_messages import Messages msgs = Messages() def cv2pil(image): """ Recibe imagen -np.array- de opencv (BGR) Devuelve imagen Image de PIL """ rgb_image = cv2.cvtColor(image, cv2.COL...
{"/rady_messages.py": ["/rady_functions.py"], "/rady_functions.py": ["/modes.py", "/rady_messages.py"], "/rady_searcher.py": ["/rady_functions.py", "/rady_messages.py"], "/__init__.py": ["/config.py", "/modes.py", "/rady_functions.py", "/rady_messages.py", "/rady_searcher.py", "/rady_stream.py"]}
62,423
uborzz/ocr-search
refs/heads/master
/modes.py
# -*- coding: utf-8 -*- QUESTION_SET_FIRST_POINT = 0 QUESTION_SET_SECOND_POINT = 1 ANSWERS_SET_FIRST_POINT = 2 ANSWERS_SET_SECOND_POINT = 3
{"/rady_messages.py": ["/rady_functions.py"], "/rady_functions.py": ["/modes.py", "/rady_messages.py"], "/rady_searcher.py": ["/rady_functions.py", "/rady_messages.py"], "/__init__.py": ["/config.py", "/modes.py", "/rady_functions.py", "/rady_messages.py", "/rady_searcher.py", "/rady_stream.py"]}
62,424
uborzz/ocr-search
refs/heads/master
/rady_searcher.py
# -*- coding: utf-8 -*- import cv2 import numpy as np import rady_functions as rfs from rady_messages import Messages msgs = Messages() class Searcher: def __init__(self): # initialize the video camera stream and read the first frame # from the stream self.running = False self.mod...
{"/rady_messages.py": ["/rady_functions.py"], "/rady_functions.py": ["/modes.py", "/rady_messages.py"], "/rady_searcher.py": ["/rady_functions.py", "/rady_messages.py"], "/__init__.py": ["/config.py", "/modes.py", "/rady_functions.py", "/rady_messages.py", "/rady_searcher.py", "/rady_stream.py"]}
62,425
uborzz/ocr-search
refs/heads/master
/rady_stream.py
from threading import Thread import cv2 """ rady basado en webcamvideostream de pyimagesearch para raspi camera. Camera props: CAP_PROP_POS_MSEC Current position of the video file in milliseconds. CAP_PROP_POS_FRAMES 0-based index of the frame to be decoded/captured next. CAP_PROP_POS_AVI_RATIO Relative ...
{"/rady_messages.py": ["/rady_functions.py"], "/rady_functions.py": ["/modes.py", "/rady_messages.py"], "/rady_searcher.py": ["/rady_functions.py", "/rady_messages.py"], "/__init__.py": ["/config.py", "/modes.py", "/rady_functions.py", "/rady_messages.py", "/rady_searcher.py", "/rady_stream.py"]}
62,426
uborzz/ocr-search
refs/heads/master
/__init__.py
# -*- coding: utf-8 -*- from datetime import datetime, timedelta import cv2 import config as cfg import modes import rady_functions as rfs from rady_messages import Messages from rady_searcher import Searcher from rady_stream import Stream t_start = datetime.now() print("Comenzando LisaSimpson! Hora actual: {:%Y_%m...
{"/rady_messages.py": ["/rady_functions.py"], "/rady_functions.py": ["/modes.py", "/rady_messages.py"], "/rady_searcher.py": ["/rady_functions.py", "/rady_messages.py"], "/__init__.py": ["/config.py", "/modes.py", "/rady_functions.py", "/rady_messages.py", "/rady_searcher.py", "/rady_stream.py"]}
62,427
uborzz/ocr-search
refs/heads/master
/config.py
# -*- coding: utf-8 -*- name = "LisaSimpson" version = 0.0 camera_src = 0 # primera camara del pc.
{"/rady_messages.py": ["/rady_functions.py"], "/rady_functions.py": ["/modes.py", "/rady_messages.py"], "/rady_searcher.py": ["/rady_functions.py", "/rady_messages.py"], "/__init__.py": ["/config.py", "/modes.py", "/rady_functions.py", "/rady_messages.py", "/rady_searcher.py", "/rady_stream.py"]}
62,440
kosi2109/restraunt
refs/heads/master
/table/migrations/0001_initial.py
# Generated by Django 3.2.5 on 2021-08-08 12:46 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), ('menu...
{"/menu/form.py": ["/menu/models.py"], "/owner/views.py": ["/table/models.py", "/menu/models.py", "/owner/forms.py", "/owner/filters.py", "/owner/decorators.py"], "/chef/views.py": ["/menu/models.py", "/table/models.py", "/owner/decorators.py"], "/menu/views.py": ["/menu/models.py", "/table/models.py", "/owner/views.py...
62,441
kosi2109/restraunt
refs/heads/master
/owner/decorators.py
from django.shortcuts import redirect def unauthenticated_user(view_func): def wrapper_func(request, *args , **kwargs ): if request.user.is_authenticated: if request.user.is_superuser: return redirect('owner:home') else: return redirect('menu:menu') else: return view_func(request, *args , **kwar...
{"/menu/form.py": ["/menu/models.py"], "/owner/views.py": ["/table/models.py", "/menu/models.py", "/owner/forms.py", "/owner/filters.py", "/owner/decorators.py"], "/chef/views.py": ["/menu/models.py", "/table/models.py", "/owner/decorators.py"], "/menu/views.py": ["/menu/models.py", "/table/models.py", "/owner/views.py...
62,442
kosi2109/restraunt
refs/heads/master
/menu/form.py
from .models import UserNew from django.contrib.auth.forms import UserCreationForm, UserChangeForm class CustomUserCreationForm(UserCreationForm): class Meta(UserCreationForm): model = UserNew fields = ('username','is_table','is_user','is_chef') class CustomUserChangeForm(UserChangeForm): cla...
{"/menu/form.py": ["/menu/models.py"], "/owner/views.py": ["/table/models.py", "/menu/models.py", "/owner/forms.py", "/owner/filters.py", "/owner/decorators.py"], "/chef/views.py": ["/menu/models.py", "/table/models.py", "/owner/decorators.py"], "/menu/views.py": ["/menu/models.py", "/table/models.py", "/owner/views.py...
62,443
kosi2109/restraunt
refs/heads/master
/owner/views.py
from django.shortcuts import render,redirect from table.models import TableOrder from menu.models import Order,MUser,Menu,Category # Create your views here. from datetime import datetime, timedelta import operator from django.db.models import Q from .forms import * from django.http import JsonResponse import json from ...
{"/menu/form.py": ["/menu/models.py"], "/owner/views.py": ["/table/models.py", "/menu/models.py", "/owner/forms.py", "/owner/filters.py", "/owner/decorators.py"], "/chef/views.py": ["/menu/models.py", "/table/models.py", "/owner/decorators.py"], "/menu/views.py": ["/menu/models.py", "/table/models.py", "/owner/views.py...
62,444
kosi2109/restraunt
refs/heads/master
/chef/views.py
from django.shortcuts import render from menu.models import Order,OrderItem from table.models import TableOrder,TableOrderItem,Table from django.http import HttpResponse , JsonResponse import json from owner.decorators import * from django.contrib.auth.decorators import login_required @login_required(login_url='menu...
{"/menu/form.py": ["/menu/models.py"], "/owner/views.py": ["/table/models.py", "/menu/models.py", "/owner/forms.py", "/owner/filters.py", "/owner/decorators.py"], "/chef/views.py": ["/menu/models.py", "/table/models.py", "/owner/decorators.py"], "/menu/views.py": ["/menu/models.py", "/table/models.py", "/owner/views.py...
62,445
kosi2109/restraunt
refs/heads/master
/table/migrations/0003_alter_tableorder_options.py
# Generated by Django 3.2.5 on 2021-08-13 06:39 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('table', '0002_tableorderitem_slug'), ] operations = [ migrations.AlterModelOptions( name='tableorder', options={}, )...
{"/menu/form.py": ["/menu/models.py"], "/owner/views.py": ["/table/models.py", "/menu/models.py", "/owner/forms.py", "/owner/filters.py", "/owner/decorators.py"], "/chef/views.py": ["/menu/models.py", "/table/models.py", "/owner/decorators.py"], "/menu/views.py": ["/menu/models.py", "/table/models.py", "/owner/views.py...
62,446
kosi2109/restraunt
refs/heads/master
/menu/views.py
from django.shortcuts import render,redirect from .models import * from datetime import date from django.http import JsonResponse import json from django.utils import timezone from django import forms from django.contrib.auth import authenticate, login, logout from datetime import datetime from table.models import * fr...
{"/menu/form.py": ["/menu/models.py"], "/owner/views.py": ["/table/models.py", "/menu/models.py", "/owner/forms.py", "/owner/filters.py", "/owner/decorators.py"], "/chef/views.py": ["/menu/models.py", "/table/models.py", "/owner/decorators.py"], "/menu/views.py": ["/menu/models.py", "/table/models.py", "/owner/views.py...
62,447
kosi2109/restraunt
refs/heads/master
/menu/admin.py
from django.contrib import admin from .models import * from django.contrib.auth.admin import UserAdmin # Register your models here. from .form import CustomUserCreationForm,CustomUserChangeForm class CustomUserAdmin(UserAdmin): add_form = CustomUserCreationForm form = CustomUserChangeForm model = UserNew ...
{"/menu/form.py": ["/menu/models.py"], "/owner/views.py": ["/table/models.py", "/menu/models.py", "/owner/forms.py", "/owner/filters.py", "/owner/decorators.py"], "/chef/views.py": ["/menu/models.py", "/table/models.py", "/owner/decorators.py"], "/menu/views.py": ["/menu/models.py", "/table/models.py", "/owner/views.py...
62,448
kosi2109/restraunt
refs/heads/master
/menu/migrations/0007_auto_20210811_1858.py
# Generated by Django 3.2.5 on 2021-08-11 12:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('menu', '0006_orderitem_slug'), ] operations = [ migrations.AddField( model_name='usernew', name='is_chef', ...
{"/menu/form.py": ["/menu/models.py"], "/owner/views.py": ["/table/models.py", "/menu/models.py", "/owner/forms.py", "/owner/filters.py", "/owner/decorators.py"], "/chef/views.py": ["/menu/models.py", "/table/models.py", "/owner/decorators.py"], "/menu/views.py": ["/menu/models.py", "/table/models.py", "/owner/views.py...
62,449
kosi2109/restraunt
refs/heads/master
/menu/migrations/0008_auto_20210813_1309.py
# Generated by Django 3.2.5 on 2021-08-13 06:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('menu', '0007_auto_20210811_1858'), ] operations = [ migrations.AlterModelOptions( name='order', options={}, ...
{"/menu/form.py": ["/menu/models.py"], "/owner/views.py": ["/table/models.py", "/menu/models.py", "/owner/forms.py", "/owner/filters.py", "/owner/decorators.py"], "/chef/views.py": ["/menu/models.py", "/table/models.py", "/owner/decorators.py"], "/menu/views.py": ["/menu/models.py", "/table/models.py", "/owner/views.py...
62,450
kosi2109/restraunt
refs/heads/master
/menu/migrations/0003_alter_category_image.py
# Generated by Django 3.2.5 on 2021-08-10 04:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('menu', '0002_category_image'), ] operations = [ migrations.AlterField( model_name='category', name='image', ...
{"/menu/form.py": ["/menu/models.py"], "/owner/views.py": ["/table/models.py", "/menu/models.py", "/owner/forms.py", "/owner/filters.py", "/owner/decorators.py"], "/chef/views.py": ["/menu/models.py", "/table/models.py", "/owner/decorators.py"], "/menu/views.py": ["/menu/models.py", "/table/models.py", "/owner/views.py...
62,451
kosi2109/restraunt
refs/heads/master
/owner/urls.py
from django.urls import path from .views import * app_name = 'owner' urlpatterns = [ path('',home,name='home'), path('menu/',menu,name='menu'), path('order/',order,name='order'), path('addcategory/',addcategory,name='addcategory'), path('menuDelete/<slug:slug>/',menuDelete,name='menuDelete'), path('cateDelete/<s...
{"/menu/form.py": ["/menu/models.py"], "/owner/views.py": ["/table/models.py", "/menu/models.py", "/owner/forms.py", "/owner/filters.py", "/owner/decorators.py"], "/chef/views.py": ["/menu/models.py", "/table/models.py", "/owner/decorators.py"], "/menu/views.py": ["/menu/models.py", "/table/models.py", "/owner/views.py...
62,452
kosi2109/restraunt
refs/heads/master
/menu/urls.py
from django.urls import path from .views import * app_name = 'menu' urlpatterns =[ path('signup/',registerPage ,name='registerPage'), path('login/',userLogin ,name='userLogin'), path('logout/',userLogout ,name='userLogout'), path('',home ,name='home'), path('menu/',menu ,name='menu'), path('handleOrder/',handle...
{"/menu/form.py": ["/menu/models.py"], "/owner/views.py": ["/table/models.py", "/menu/models.py", "/owner/forms.py", "/owner/filters.py", "/owner/decorators.py"], "/chef/views.py": ["/menu/models.py", "/table/models.py", "/owner/decorators.py"], "/menu/views.py": ["/menu/models.py", "/table/models.py", "/owner/views.py...
62,453
kosi2109/restraunt
refs/heads/master
/owner/filters.py
import django_filters from menu.models import Order,Menu from django import forms class OrderFilter(django_filters.FilterSet): order_id = django_filters.CharFilter(field_name='order_id',lookup_expr='icontains',widget=forms.TextInput(attrs={'placeholder':'Order Id','class':'form-control mb-3'})) order_date__gt ...
{"/menu/form.py": ["/menu/models.py"], "/owner/views.py": ["/table/models.py", "/menu/models.py", "/owner/forms.py", "/owner/filters.py", "/owner/decorators.py"], "/chef/views.py": ["/menu/models.py", "/table/models.py", "/owner/decorators.py"], "/menu/views.py": ["/menu/models.py", "/table/models.py", "/owner/views.py...
62,454
kosi2109/restraunt
refs/heads/master
/menu/migrations/0001_initial.py
# Generated by Django 3.2.5 on 2021-08-08 12:46 from django.conf import settings import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True ...
{"/menu/form.py": ["/menu/models.py"], "/owner/views.py": ["/table/models.py", "/menu/models.py", "/owner/forms.py", "/owner/filters.py", "/owner/decorators.py"], "/chef/views.py": ["/menu/models.py", "/table/models.py", "/owner/decorators.py"], "/menu/views.py": ["/menu/models.py", "/table/models.py", "/owner/views.py...
62,455
kosi2109/restraunt
refs/heads/master
/menu/migrations/0005_alter_order_status.py
# Generated by Django 3.2.5 on 2021-08-10 06:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('menu', '0004_alter_category_image'), ] operations = [ migrations.AlterField( model_name='order', name='status', ...
{"/menu/form.py": ["/menu/models.py"], "/owner/views.py": ["/table/models.py", "/menu/models.py", "/owner/forms.py", "/owner/filters.py", "/owner/decorators.py"], "/chef/views.py": ["/menu/models.py", "/table/models.py", "/owner/decorators.py"], "/menu/views.py": ["/menu/models.py", "/table/models.py", "/owner/views.py...
62,456
kosi2109/restraunt
refs/heads/master
/table/models.py
from django.db import models from menu.models import Menu,UserNew import uuid class Table(models.Model): user = models.OneToOneField(UserNew,on_delete=models.CASCADE,related_name='table') table_no = models.CharField(max_length=50,null=True) def __str__(self): return self.table_no class TableOrder(models.Model)...
{"/menu/form.py": ["/menu/models.py"], "/owner/views.py": ["/table/models.py", "/menu/models.py", "/owner/forms.py", "/owner/filters.py", "/owner/decorators.py"], "/chef/views.py": ["/menu/models.py", "/table/models.py", "/owner/decorators.py"], "/menu/views.py": ["/menu/models.py", "/table/models.py", "/owner/views.py...
62,457
kosi2109/restraunt
refs/heads/master
/chef/urls.py
from django.urls import path from .views import * app_name = 'chef' urlpatterns =[ path('',orderView,name='orderView'), path('getOrders/',getOrders,name='getOrders'), path('cookControl/',cookControl,name='cookControl'), ]
{"/menu/form.py": ["/menu/models.py"], "/owner/views.py": ["/table/models.py", "/menu/models.py", "/owner/forms.py", "/owner/filters.py", "/owner/decorators.py"], "/chef/views.py": ["/menu/models.py", "/table/models.py", "/owner/decorators.py"], "/menu/views.py": ["/menu/models.py", "/table/models.py", "/owner/views.py...
62,458
kosi2109/restraunt
refs/heads/master
/menu/migrations/0009_auto_20210813_2245.py
# Generated by Django 3.2.5 on 2021-08-13 16:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('menu', '0008_auto_20210813_1309'), ] operations = [ migrations.AlterField( model_name='category', name='slug', ...
{"/menu/form.py": ["/menu/models.py"], "/owner/views.py": ["/table/models.py", "/menu/models.py", "/owner/forms.py", "/owner/filters.py", "/owner/decorators.py"], "/chef/views.py": ["/menu/models.py", "/table/models.py", "/owner/decorators.py"], "/menu/views.py": ["/menu/models.py", "/table/models.py", "/owner/views.py...
62,459
kosi2109/restraunt
refs/heads/master
/owner/forms.py
from django import forms from menu.models import Menu,Category class MenuForm(forms.ModelForm): class Meta: model = Menu fields = '__all__' exclude = ("slug",) category = forms.MultipleChoiceField() widgets = { 'category': forms.CheckboxSelectMultiple(attrs={'id':'multicb','class':'form-control','multipl...
{"/menu/form.py": ["/menu/models.py"], "/owner/views.py": ["/table/models.py", "/menu/models.py", "/owner/forms.py", "/owner/filters.py", "/owner/decorators.py"], "/chef/views.py": ["/menu/models.py", "/table/models.py", "/owner/decorators.py"], "/menu/views.py": ["/menu/models.py", "/table/models.py", "/owner/views.py...
62,460
kosi2109/restraunt
refs/heads/master
/menu/models.py
from django.db import models import uuid from django.contrib.auth.models import User,AbstractUser,AbstractBaseUser,PermissionsMixin from datetime import date from datetime import datetime from django.utils import timezone from cloudinary.models import CloudinaryField class UserNew(AbstractUser): is_table = models.Boo...
{"/menu/form.py": ["/menu/models.py"], "/owner/views.py": ["/table/models.py", "/menu/models.py", "/owner/forms.py", "/owner/filters.py", "/owner/decorators.py"], "/chef/views.py": ["/menu/models.py", "/table/models.py", "/owner/decorators.py"], "/menu/views.py": ["/menu/models.py", "/table/models.py", "/owner/views.py...
62,462
Todai88/cron-admin
refs/heads/master
/test/test_next_run.py
# -*- coding: utf-8 -*- from unittest import TestCase from nextrun.next_run import NextRun class TestNextRun(TestCase): def test_find_next_run_times(self): expected = [ [u'1:30', u'tomorrow', u'/bin/run_me_daily'], [u'16:45', u'today', u'/bin/run_me_hourly'], [u'16:10...
{"/test/test_next_run.py": ["/nextrun/next_run.py"], "/test/test_cron_parser.py": ["/nextrun/cron_parser.py"]}
62,463
Todai88/cron-admin
refs/heads/master
/setup.py
import os from setuptools import setup # Utility function to read the README file. # Used for the long_description. It's nice, because now 1) we have a top level # README file and 2) it's easier to type in the README file than to put a raw # string in below ... def read(fname): return open(os.path.join(os.path.d...
{"/test/test_next_run.py": ["/nextrun/next_run.py"], "/test/test_cron_parser.py": ["/nextrun/cron_parser.py"]}
62,464
Todai88/cron-admin
refs/heads/master
/test/test_cron_parser.py
# -*- coding: utf-8 -*- from unittest import TestCase import os from nextrun.cron_parser import CronParser class TestCronParser(TestCase): def test_parse_cron_string(self): pass def test_parse_cron_file(self): pass def test_is_valid_path(self): cron_file_path = os.path.abspath(...
{"/test/test_next_run.py": ["/nextrun/next_run.py"], "/test/test_cron_parser.py": ["/nextrun/cron_parser.py"]}
62,465
Todai88/cron-admin
refs/heads/master
/nextrun/__main__.py
# -*- coding: utf-8 -*- import argparse from next_run import NextRun if __name__ == u'__main__': # Parse command line arguments parser = argparse.ArgumentParser( description=u'Cron Admin tool.' ) parser.add_argument( u'-t', dest=u'current_time', default=u'16:10', ...
{"/test/test_next_run.py": ["/nextrun/next_run.py"], "/test/test_cron_parser.py": ["/nextrun/cron_parser.py"]}
62,466
Todai88/cron-admin
refs/heads/master
/nextrun/next_run.py
# -*- coding: utf-8 -*- import logging import sys from cron_parser import CronParser class NextRun(object): def __init__(self): self.logger = logging.Logger(u'cron-admin') self.logger.setLevel(logging.WARNING) # create console handler console_log = logging.StreamHandler(sys.stdo...
{"/test/test_next_run.py": ["/nextrun/next_run.py"], "/test/test_cron_parser.py": ["/nextrun/cron_parser.py"]}
62,467
Todai88/cron-admin
refs/heads/master
/nextrun/cron_parser.py
# -*- coding: utf-8 -*- import os class CronParser(object): def __init__(self, logger=None): self.logger = logger def parse_cron_string(self, cron_string): """ Parse a cron data string :param cron_string: :return: """ formatted_cron_data = [] ...
{"/test/test_next_run.py": ["/nextrun/next_run.py"], "/test/test_cron_parser.py": ["/nextrun/cron_parser.py"]}
62,468
Terrabits/app-server
refs/heads/main
/app_server/command_line.py
import argparse def parse(): parser = argparse.ArgumentParser(description='') parser.add_argument('--host', default='0.0.0.0') parser.add_argument('--port', default=8080, type=int) parser.add_argument('--instr-address', default='localhost') parser.add_argument('--instr-port', ...
{"/__main__.py": ["/app_server/__init__.py"], "/app_server/__init__.py": ["/app_server/command_line.py", "/app_server/handler.py"]}
62,469
Terrabits/app-server
refs/heads/main
/app_server/handler.py
import asyncio import aiohttp from aiohttp import web def get(address, port): async def handler(request): # open websocket websocket = web.WebSocketResponse() await websocket.prepare(request) # open instrument connection instr_reader, instr_writer = \ await a...
{"/__main__.py": ["/app_server/__init__.py"], "/app_server/__init__.py": ["/app_server/command_line.py", "/app_server/handler.py"]}
62,470
Terrabits/app-server
refs/heads/main
/__main__.py
from aiohttp import web import app_server import sys import webbrowser if __name__ == '__main__': args = app_server.command_line.parse() app = web.Application() # routes handler = app_server.handler.get(args.instr_address, args.instr_port) instr_route = web.get('/instr', handler) st...
{"/__main__.py": ["/app_server/__init__.py"], "/app_server/__init__.py": ["/app_server/command_line.py", "/app_server/handler.py"]}
62,471
Terrabits/app-server
refs/heads/main
/app_server/__init__.py
import app_server.command_line import app_server.handler
{"/__main__.py": ["/app_server/__init__.py"], "/app_server/__init__.py": ["/app_server/command_line.py", "/app_server/handler.py"]}
62,472
codephillip/tunga-api
refs/heads/master
/tunga_utils/decorators.py
from functools import wraps def catch_all_exceptions(func): """ This decorator is used to abstract the try except block for functions that don't affect the final status of an action. """ @wraps(func) def func_wrapper(*args, **kwargs): try: func(*args, **kwargs) except:...
{"/tunga_tasks/management/commands/tunga_manage_task_progress.py": ["/tunga_tasks/notifications.py"]}
62,473
codephillip/tunga-api
refs/heads/master
/tunga_tasks/management/commands/tunga_manage_task_progress.py
import datetime from dateutil.relativedelta import relativedelta from django.core.management.base import BaseCommand from django.db.models.query_utils import Q from tunga_tasks.notifications import remind_progress_event from tunga_tasks.models import Task, ProgressEvent from tunga_tasks.tasks import initialize_task_p...
{"/tunga_tasks/management/commands/tunga_manage_task_progress.py": ["/tunga_tasks/notifications.py"]}
62,474
codephillip/tunga-api
refs/heads/master
/tunga_tasks/notifications.py
import datetime import time from django.contrib.auth import get_user_model from django.db.models import When, Case, IntegerField from django.db.models.aggregates import Sum from django.db.models.expressions import F from django.template.defaultfilters import truncatewords, floatformat from django_rq.decorators import ...
{"/tunga_tasks/management/commands/tunga_manage_task_progress.py": ["/tunga_tasks/notifications.py"]}
62,475
codephillip/tunga-api
refs/heads/master
/tunga_utils/serializers.py
from django.contrib.auth import get_user_model from django.contrib.contenttypes.models import ContentType from django_countries.serializer_fields import CountryField from rest_framework import serializers from rest_framework.fields import SkipField from tunga_profiles.models import Skill, City, UserProfile, Education,...
{"/tunga_tasks/management/commands/tunga_manage_task_progress.py": ["/tunga_tasks/notifications.py"]}
62,476
codephillip/tunga-api
refs/heads/master
/tunga_tasks/utils.py
import json from allauth.socialaccount.providers.github.provider import GitHubProvider from tunga_profiles.utils import get_app_integration from tunga_tasks.models import Integration, IntegrationMeta from tunga_utils.constants import APP_INTEGRATION_PROVIDER_SLACK, APP_INTEGRATION_PROVIDER_HARVEST from tunga_utils.he...
{"/tunga_tasks/management/commands/tunga_manage_task_progress.py": ["/tunga_tasks/notifications.py"]}
62,477
codephillip/tunga-api
refs/heads/master
/tunga_tasks/filters.py
import django_filters from tunga_tasks.models import Task, Application, Participation, TimeEntry, Project, ProgressReport, ProgressEvent, \ Estimate, Quote, TaskPayment, ParticipantPayment from tunga_utils.filters import GenericDateFilterSet class ProjectFilter(GenericDateFilterSet): class Meta: mod...
{"/tunga_tasks/management/commands/tunga_manage_task_progress.py": ["/tunga_tasks/notifications.py"]}
62,489
marcinnowo307/BIAI_Rain_Prediction
refs/heads/main
/neural_network/network.py
# -*- coding: utf-8 -*- """ Created on Fri Jun 11 17:07:34 2021 @author: Marcinek """ import tensorflow as tf def create_model(): model = tf.keras.Sequential([ tf.keras.layers.Dense(units = 32, kernel_initializer = 'uniform', activation = 'relu', input_dim = 22), tf.keras.layers.Dense(units = 32,...
{"/train_model.py": ["/neural_network/network.py"], "/predict.py": ["/neural_network/network.py"]}
62,490
marcinnowo307/BIAI_Rain_Prediction
refs/heads/main
/train_model.py
# -*- coding: utf-8 -*- """ Created on Fri Jun 11 17:06:47 2021 @author: Marcinek """ import pandas as pd #for loading csv files import numpy as np from sklearn.model_selection import train_test_split from sklearn.metrics import classification_report from neural_network.network import create_model np.random.seed(213...
{"/train_model.py": ["/neural_network/network.py"], "/predict.py": ["/neural_network/network.py"]}
62,491
marcinnowo307/BIAI_Rain_Prediction
refs/heads/main
/predict.py
# -*- coding: utf-8 -*- """ Created on Mon Jun 14 18:00:59 2021 @author: Marcinek """ import tensorflow as tf import sys import pandas as pd import numpy as np import sklearn as sk from neural_network.network import create_model from sklearn import preprocessing from pickle import load def load_json_data(json_name):...
{"/train_model.py": ["/neural_network/network.py"], "/predict.py": ["/neural_network/network.py"]}
62,492
marcinnowo307/BIAI_Rain_Prediction
refs/heads/main
/preparing_data.py
# -*- coding: utf-8 -*- """ Created on Sun Jun 6 23:15:58 2021 @author: Marcinek """ import matplotlib.pyplot as plt # for plotting import pandas as pd #for loading csv files import numpy import sklearn as sk from sklearn import preprocessing from pathlib import Path #to manipulate files from pickle import dump #cr...
{"/train_model.py": ["/neural_network/network.py"], "/predict.py": ["/neural_network/network.py"]}
62,493
dyscord/dyscord
refs/heads/master
/dyscord/error.py
# Plugin: class PluginError(Exception): """ General plugin error """ pass class PluginNotFound(PluginError): """ Throw if plugin requested for download does not exist """ pass class PluginExists(PluginError): """ Throw if plugin requested for download already exists """ class PluginMalformedEr...
{"/dyscord/bot.py": ["/dyscord/plugin.py", "/dyscord/download.py", "/dyscord/error.py"], "/dyscord/__init__.py": ["/dyscord/bot.py"], "/dyscord/plugin.py": ["/dyscord/error.py", "/dyscord/redis.py", "/dyscord/download.py"], "/run.py": ["/dyscord/__init__.py", "/dyscord/download.py"], "/dyscord/download.py": ["/dyscord/...
62,494
dyscord/dyscord
refs/heads/master
/dyscord/redis.py
from redis import StrictRedis from dyscord_plugin.storage import StorageManager class RedisStorageManager(StorageManager): def __init__(self, redis: StrictRedis, prefix): self.redis = redis self.prefix = prefix def _add_prefix(self, text, add_dot=True): if add_dot: sep = "...
{"/dyscord/bot.py": ["/dyscord/plugin.py", "/dyscord/download.py", "/dyscord/error.py"], "/dyscord/__init__.py": ["/dyscord/bot.py"], "/dyscord/plugin.py": ["/dyscord/error.py", "/dyscord/redis.py", "/dyscord/download.py"], "/run.py": ["/dyscord/__init__.py", "/dyscord/download.py"], "/dyscord/download.py": ["/dyscord/...
62,495
dyscord/dyscord
refs/heads/master
/dyscord/bot.py
from redis import StrictRedis import parse import traceback import sys import discord from discord.ext.commands import Bot, command, Command, errors from .plugin import ServerPluginHandler, PLUGIN_LIST_FMT from .download import PluginManager from .error import PluginError, PluginAlreadyImported import os from typing ...
{"/dyscord/bot.py": ["/dyscord/plugin.py", "/dyscord/download.py", "/dyscord/error.py"], "/dyscord/__init__.py": ["/dyscord/bot.py"], "/dyscord/plugin.py": ["/dyscord/error.py", "/dyscord/redis.py", "/dyscord/download.py"], "/run.py": ["/dyscord/__init__.py", "/dyscord/download.py"], "/dyscord/download.py": ["/dyscord/...
62,496
dyscord/dyscord
refs/heads/master
/dyscord/__init__.py
from .bot import VERSION from .bot import Dyscord as Bot
{"/dyscord/bot.py": ["/dyscord/plugin.py", "/dyscord/download.py", "/dyscord/error.py"], "/dyscord/__init__.py": ["/dyscord/bot.py"], "/dyscord/plugin.py": ["/dyscord/error.py", "/dyscord/redis.py", "/dyscord/download.py"], "/run.py": ["/dyscord/__init__.py", "/dyscord/download.py"], "/dyscord/download.py": ["/dyscord/...
62,497
dyscord/dyscord
refs/heads/master
/dyscord/plugin_bin/__init__.py
import os # Get directory of this module (which is plugin directory): PLUGIN_DIR = os.path.dirname(os.path.abspath(__file__))
{"/dyscord/bot.py": ["/dyscord/plugin.py", "/dyscord/download.py", "/dyscord/error.py"], "/dyscord/__init__.py": ["/dyscord/bot.py"], "/dyscord/plugin.py": ["/dyscord/error.py", "/dyscord/redis.py", "/dyscord/download.py"], "/run.py": ["/dyscord/__init__.py", "/dyscord/download.py"], "/dyscord/download.py": ["/dyscord/...
62,498
dyscord/dyscord
refs/heads/master
/dyscord/plugin.py
from discord.ext.commands import Command from dyscord_plugin.plugin import DyscordPlugin from typing import Dict from .error import PluginAlreadyImported from .redis import RedisStorageManager from .download import PluginManager PLUGIN_LIST_BASE = "plugins.{}.plugin_list" PLUGIN_LIST_FMT = PLUGIN_LIST_BASE + ".{}" PL...
{"/dyscord/bot.py": ["/dyscord/plugin.py", "/dyscord/download.py", "/dyscord/error.py"], "/dyscord/__init__.py": ["/dyscord/bot.py"], "/dyscord/plugin.py": ["/dyscord/error.py", "/dyscord/redis.py", "/dyscord/download.py"], "/run.py": ["/dyscord/__init__.py", "/dyscord/download.py"], "/dyscord/download.py": ["/dyscord/...
62,499
dyscord/dyscord
refs/heads/master
/run.py
import os from dyscord import Bot from dyscord.download import delete_all_plugins delete_all_plugins() # Delete all cached plugins b = Bot() b.run(os.environ["DYSCORD_TOKEN"])
{"/dyscord/bot.py": ["/dyscord/plugin.py", "/dyscord/download.py", "/dyscord/error.py"], "/dyscord/__init__.py": ["/dyscord/bot.py"], "/dyscord/plugin.py": ["/dyscord/error.py", "/dyscord/redis.py", "/dyscord/download.py"], "/run.py": ["/dyscord/__init__.py", "/dyscord/download.py"], "/dyscord/download.py": ["/dyscord/...
62,500
dyscord/dyscord
refs/heads/master
/dyscord/download.py
import importlib, pkgutil from urllib import request import tempfile import tarfile import shutil import json import os from typing import List from discord.ext.commands import Bot from dyscord_plugin.plugin import DyscordPlugin from .error import PluginNotFound, PluginExists, PluginMalformedError from .plugin_bin...
{"/dyscord/bot.py": ["/dyscord/plugin.py", "/dyscord/download.py", "/dyscord/error.py"], "/dyscord/__init__.py": ["/dyscord/bot.py"], "/dyscord/plugin.py": ["/dyscord/error.py", "/dyscord/redis.py", "/dyscord/download.py"], "/run.py": ["/dyscord/__init__.py", "/dyscord/download.py"], "/dyscord/download.py": ["/dyscord/...
62,502
jing207/cloud189-signer
refs/heads/master
/cloud189-singer.py
#!/usr/bin/env python import PySimpleGUI as sg import utils import checkin from threading import Thread import shlex import config import webbrowser def Cloud189SignGUI(): utils.load_setting() sg.theme(config.DEFAULT_THEME) layout = [ [sg.Text('Cloud189 Signer', size=(40, 1), font=('Any 15'))], ...
{"/cloud189-singer.py": ["/utils.py", "/config.py"], "/utils.py": ["/config.py"]}
62,503
jing207/cloud189-signer
refs/heads/master
/utils.py
import config, os, json def locate_setting_folder(): """check local folder and global setting folder for setting.cfg file""" # look for previous setting file try: if 'setting.cfg' in os.listdir(config.current_directory): return config.current_directory except: pass # n...
{"/cloud189-singer.py": ["/utils.py", "/config.py"], "/utils.py": ["/config.py"]}
62,504
jing207/cloud189-signer
refs/heads/master
/config.py
import os import platform import sys TEST_MODE = False DEFAULT_THEME = 'DarkGrey2' default_font = 'Helvetica 12' sett_folder = None operating_system = platform.system() settings_keys = ['username', 'password', 'DEFAULT_THEME'] username = '' password = '' # folders if hasattr(sys, 'frozen'): # like if application froe...
{"/cloud189-singer.py": ["/utils.py", "/config.py"], "/utils.py": ["/config.py"]}
62,590
aidasgit/staff_managment_demo_app
refs/heads/main
/employee.py
class Employee: """Employee class""" def __init__(self, em_no, f_name, l_name, email="", salary=0, bonus=0): """employee class constructor if no email provided it generates unic email""" self.f_name = f_name self.l_name = l_name self.salary = salary self.em_no = em_no ...
{"/Aidas.Karpavicius.employee.py": ["/employee.py"]}
62,591
aidasgit/staff_managment_demo_app
refs/heads/main
/Aidas.Karpavicius.employee.py
# student name: Aidas Karpavicius # student no: R00171054 # Program description # Employee managing system, that uses file "employees.txt" for storing all data. from employee import Employee # Employee class import sys, datetime # sys library for proper exit in case "employees.txt" wrong format # datetime library to...
{"/Aidas.Karpavicius.employee.py": ["/employee.py"]}
62,598
fernandomorales2003/entrechat
refs/heads/master
/principal/views.py
from principal.models import Indumentaria, Calzado #from principal.forms import ContactForm from django.contrib.auth.models import User from django.http import HttpResponse from django.template import RequestContext from django.shortcuts import render_to_response, get_object_or_404 from django.core.mail import EmailMes...
{"/principal/views.py": ["/principal/models.py"], "/principal/admin.py": ["/principal/models.py"]}
62,599
fernandomorales2003/entrechat
refs/heads/master
/principal/admin.py
from principal.models import Indumentaria, Calzado from django.contrib import admin admin.site.register(Indumentaria) admin.site.register(Calzado)
{"/principal/views.py": ["/principal/models.py"], "/principal/admin.py": ["/principal/models.py"]}
62,600
fernandomorales2003/entrechat
refs/heads/master
/principal/models.py
#encoding:utf-8 from django.db import models from django.contrib.auth.models import User class Indumentaria(models.Model): titulo = models.CharField(max_length=100, unique=True) color = models.CharField(max_length=100, unique=False) descripcion = models.TextField(help_text='descripcion') imagen = models.ImageF...
{"/principal/views.py": ["/principal/models.py"], "/principal/admin.py": ["/principal/models.py"]}
62,601
manishsilwal03/1st-sem-billing-project
refs/heads/master
/billing_software.py
from tkinter import * import math, random import os from tkinter import messagebox class Billing: def __init__(self, manish): self.manish = manish self.manish.title("Billing Software") self.manish.geometry("1355x710+50+30") self.manish.resizable(False, False) background ="red...
{"/login.py": ["/signup.py", "/billing_software.py"], "/signup.py": ["/login.py"]}
62,602
manishsilwal03/1st-sem-billing-project
refs/heads/master
/login.py
from tkinter import * from PIL import Image, ImageTk import pymysql from tkinter import messagebox class login_window: def __init__(self,manish): self.manish= manish self.manish.title("Login Window") self.manish.geometry("750x450+200+90") self.manish.resizable(False, False) ...
{"/login.py": ["/signup.py", "/billing_software.py"], "/signup.py": ["/login.py"]}
62,603
manishsilwal03/1st-sem-billing-project
refs/heads/master
/merge.py
from tkinter import * from tkinter import ttk from PIL import Image, ImageTk import math, random import os import pymysql from tkinter import messagebox def manish1(): manish = Tk() login = login_window(manish) manish.mainloop() class login_window: def __init__(self,manish): self.manish= manis...
{"/login.py": ["/signup.py", "/billing_software.py"], "/signup.py": ["/login.py"]}
62,604
manishsilwal03/1st-sem-billing-project
refs/heads/master
/signup.py
from tkinter import * from tkinter import ttk from tkinter import messagebox from PIL import Image,ImageTk # pip install pillow fro terminal. import pymysql # pip install pymysql from terminal. class Downloader: def __init__(self, manish): self.manish=manish self.manish.title...
{"/login.py": ["/signup.py", "/billing_software.py"], "/signup.py": ["/login.py"]}
62,759
brakettech/daq_server
refs/heads/master
/apps/main/views.py
import os import pathlib from pprint import pprint import re from django import forms from django.db import transaction from django.db.models.functions import Lower from django.views.generic import FormView, DeleteView, CreateView, UpdateView, TemplateView from django.views.generic import ListView from django.utils.te...
{"/apps/main/views.py": ["/apps/main/models.py"], "/apps/main/urls.py": ["/apps/main/views.py"]}
62,760
brakettech/daq_server
refs/heads/master
/apps/main/models.py
from django.db import models, transaction from django.contrib import admin CHAR_LENGTH = 1000 TYPE_CHOICES = [ ('str', 'String'), ('int', 'Integer'), ('float', 'Float'), ('channel', 'Channel'), ] class Experiment(models.Model): name = models.CharField(max_length=CHAR_LENGTH, unique=True) cla...
{"/apps/main/views.py": ["/apps/main/models.py"], "/apps/main/urls.py": ["/apps/main/views.py"]}