index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
28,577
zhao-ji/elfin
refs/heads/master
/scripts/timeline_operate.py
# coding: utf-8 import logging from pyquery import PyQuery as pq from socrates.set import log def timeline(content): open_line_init = pq(content) open_line_init('span').remove() open_line_li_list = open_line_init('li') single_message = lambda talk: talk[0] + '\n\n' normal_message = lambda talk:...
{"/scripts/get_access_token.py": ["/socrates/set.py"], "/scripts/photo_send.py": ["/socrates/set.py", "/scripts/mongo_operate.py", "/scripts/session_get.py"], "/scripts/timeline_get.py": ["/scripts/timeline_operate.py", "/scripts/session_get.py", "/socrates/set.py"], "/handlers/userset.py": ["/socrates/set.py", "/scrip...
28,578
zhao-ji/elfin
refs/heads/master
/main.py
#!/usr/bin/env python # coding: utf-8 # version2.0 @Nightwish import os.path import tornado import tornado.web import tornado.ioloop import tornado.httpserver from handlers.wechat import Wechat from handlers.bind import bind from handlers.userset import userset from tornado.options import define, options define('po...
{"/scripts/get_access_token.py": ["/socrates/set.py"], "/scripts/photo_send.py": ["/socrates/set.py", "/scripts/mongo_operate.py", "/scripts/session_get.py"], "/scripts/timeline_get.py": ["/scripts/timeline_operate.py", "/scripts/session_get.py", "/socrates/set.py"], "/handlers/userset.py": ["/socrates/set.py", "/scrip...
28,579
zhao-ji/elfin
refs/heads/master
/scripts/hot_word_get.py
# coding: utf-8 import re import pickle import logging from urllib import urlencode import requests from socrates.set import log from scripts.mongo_operate import get_user_value hot_word_url = 'http://m.weilairiji.com/index.php?op=search&{}' hot_word_wrap = '<a href="http://m.weilairiji.com/index.php?op=search&{}"...
{"/scripts/get_access_token.py": ["/socrates/set.py"], "/scripts/photo_send.py": ["/socrates/set.py", "/scripts/mongo_operate.py", "/scripts/session_get.py"], "/scripts/timeline_get.py": ["/scripts/timeline_operate.py", "/scripts/session_get.py", "/socrates/set.py"], "/handlers/userset.py": ["/socrates/set.py", "/scrip...
28,580
zhao-ji/elfin
refs/heads/master
/handlers/wechat.py
#!/usr/bin/env python # coding: utf-8 import logging import os import sys import time import xml.etree.ElementTree as ET from tornado.web import RequestHandler from socrates import hanzi from socrates.set import log from scripts.mongo_operate import del_user, get_user_value from scripts.check_sig import check_sig f...
{"/scripts/get_access_token.py": ["/socrates/set.py"], "/scripts/photo_send.py": ["/socrates/set.py", "/scripts/mongo_operate.py", "/scripts/session_get.py"], "/scripts/timeline_get.py": ["/scripts/timeline_operate.py", "/scripts/session_get.py", "/socrates/set.py"], "/handlers/userset.py": ["/socrates/set.py", "/scrip...
28,581
zhao-ji/elfin
refs/heads/master
/scripts/message_get.py
# coding: utf-8 import re import pickle import requests from socrates import hanzi from scripts.session_get import get_session message_url = 'http://m.weilairiji.com/index.php' at_pattern = re.compile(ur".*atreplies'>(.+?)</a>.*") private_message_pattern = re.compile(ur".*privatemsg'>(.+?)</a>.*") def get_message_...
{"/scripts/get_access_token.py": ["/socrates/set.py"], "/scripts/photo_send.py": ["/socrates/set.py", "/scripts/mongo_operate.py", "/scripts/session_get.py"], "/scripts/timeline_get.py": ["/scripts/timeline_operate.py", "/scripts/session_get.py", "/socrates/set.py"], "/handlers/userset.py": ["/socrates/set.py", "/scrip...
28,582
zhao-ji/elfin
refs/heads/master
/handlers/bind.py
#!/usr/bin/env python # coding: utf-8 import time from tornado.web import RequestHandler from scripts.login import login from socrates import hanzi from scripts.mongo_operate import save_user, del_user class bind(RequestHandler): def get(self, wechat_id): action = '/elfin/bind/' + wechat_id self...
{"/scripts/get_access_token.py": ["/socrates/set.py"], "/scripts/photo_send.py": ["/socrates/set.py", "/scripts/mongo_operate.py", "/scripts/session_get.py"], "/scripts/timeline_get.py": ["/scripts/timeline_operate.py", "/scripts/session_get.py", "/socrates/set.py"], "/handlers/userset.py": ["/socrates/set.py", "/scrip...
28,583
zhao-ji/elfin
refs/heads/master
/scripts/session_get.py
# coding: utf-8 import pickle import requests from scripts.mongo_operate import update_user def get_session(xiezhua_id): login_url = 'http://m.weilairiji.com/index.php?op=login' s = requests.Session() data = {} data['loginaccount'] = xiezhua_id[0] data['loginpass'] = xiezhua_id[1] data['a...
{"/scripts/get_access_token.py": ["/socrates/set.py"], "/scripts/photo_send.py": ["/socrates/set.py", "/scripts/mongo_operate.py", "/scripts/session_get.py"], "/scripts/timeline_get.py": ["/scripts/timeline_operate.py", "/scripts/session_get.py", "/socrates/set.py"], "/handlers/userset.py": ["/socrates/set.py", "/scrip...
28,584
zhao-ji/elfin
refs/heads/master
/scripts/login.py
# coding: utf-8 import json import pickle import logging import requests from socrates import hanzi from socrates.set import log from scripts.session_get import get_session POST_URL = 'http://weilairiji.com/api/statuses/update.json' class login: xieban = 0 user_name = '' protected = 0 id = 0 d...
{"/scripts/get_access_token.py": ["/socrates/set.py"], "/scripts/photo_send.py": ["/socrates/set.py", "/scripts/mongo_operate.py", "/scripts/session_get.py"], "/scripts/timeline_get.py": ["/scripts/timeline_operate.py", "/scripts/session_get.py", "/socrates/set.py"], "/handlers/userset.py": ["/socrates/set.py", "/scrip...
28,585
zhao-ji/elfin
refs/heads/master
/scripts/homeline_get.py
# coding: utf-8 import json import logging import requests from socrates.set import log home_url = "http://weilairiji.com/api/statuses/user_timeline.json" home_dict = {'home1':1, 'home2':2, 'home3':3} def home(user, key): data = {} data['id'] = user['id'] data['page'] = home_d...
{"/scripts/get_access_token.py": ["/socrates/set.py"], "/scripts/photo_send.py": ["/socrates/set.py", "/scripts/mongo_operate.py", "/scripts/session_get.py"], "/scripts/timeline_get.py": ["/scripts/timeline_operate.py", "/scripts/session_get.py", "/socrates/set.py"], "/handlers/userset.py": ["/socrates/set.py", "/scrip...
28,586
zhao-ji/elfin
refs/heads/master
/socrates/set.py
# coding: utf-8 import logging log = logging.basicConfig(filename='/home/elfin/log/run.log', filemode='a', format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s', datefmt='%Y-%m-%d %H:%M:%S', level=logging.INFO ...
{"/scripts/get_access_token.py": ["/socrates/set.py"], "/scripts/photo_send.py": ["/socrates/set.py", "/scripts/mongo_operate.py", "/scripts/session_get.py"], "/scripts/timeline_get.py": ["/scripts/timeline_operate.py", "/scripts/session_get.py", "/socrates/set.py"], "/handlers/userset.py": ["/socrates/set.py", "/scrip...
28,587
zhao-ji/elfin
refs/heads/master
/scripts/talk_send.py
#! /usr/bin/python # coding: utf-8 import logging import requests from gevent import spawn, joinall from socrates import hanzi from socrates.set import log from scripts.simi import simi from scripts.mongo_operate import update_user, del_user POST_URL = 'http://weilairiji.com/api/statuses/update.json' def diff_fr...
{"/scripts/get_access_token.py": ["/socrates/set.py"], "/scripts/photo_send.py": ["/socrates/set.py", "/scripts/mongo_operate.py", "/scripts/session_get.py"], "/scripts/timeline_get.py": ["/scripts/timeline_operate.py", "/scripts/session_get.py", "/socrates/set.py"], "/handlers/userset.py": ["/socrates/set.py", "/scrip...
28,588
zhao-ji/elfin
refs/heads/master
/scripts/check_sig.py
#!/usr/bin/env python # coding: utf-8 import hashlib TOKEN = 'elfin' def check_sig(signature=None, timestamp=None, nonce=None): if all([signature, timestamp, nonce]): tmp_list = [timestamp, nonce, TOKEN] tmp_list.sort() tmp_str = ''.join(tmp_list) sha1_str = hashlib.sha1(tmp_str)....
{"/scripts/get_access_token.py": ["/socrates/set.py"], "/scripts/photo_send.py": ["/socrates/set.py", "/scripts/mongo_operate.py", "/scripts/session_get.py"], "/scripts/timeline_get.py": ["/scripts/timeline_operate.py", "/scripts/session_get.py", "/socrates/set.py"], "/handlers/userset.py": ["/socrates/set.py", "/scrip...
28,589
zhao-ji/elfin
refs/heads/master
/socrates/hanzi.py
# coding=utf-8 '''wechat.py''' HELLO = '''欢迎关注蟹爪小精灵,请点击<a href="http://chashuibiao.org/elfin/bind/%s">这里</a>绑定''' USET = '''欢迎设置蟹爪小精灵,请点击<a href="http://chashuibiao.org/elfin/userset/%s">这里</a>设置''' HELP = "有不懂的上蟹爪@雷锋" SENSITIVE = "请勿发送密码" REPEAT = "爱过" SEND_OK = "发射成功" SEND_FAIL = "发射失败" WECHATPIC = '微信图片' DEVICE = '...
{"/scripts/get_access_token.py": ["/socrates/set.py"], "/scripts/photo_send.py": ["/socrates/set.py", "/scripts/mongo_operate.py", "/scripts/session_get.py"], "/scripts/timeline_get.py": ["/scripts/timeline_operate.py", "/scripts/session_get.py", "/socrates/set.py"], "/handlers/userset.py": ["/socrates/set.py", "/scrip...
28,590
zhao-ji/elfin
refs/heads/master
/scripts/mongo_operate.py
#! /usr/bin/python # coding: utf-8 from socrates.set import mongo def whether_login(wechat_id): query = {'wechat_id':wechat_id} count = mongo.elfin.find(query).count() assert count==1 def del_user(**query): mongo.elfin.remove(query) def save_user(user): mongo.elfin.save(user) def update_user(f...
{"/scripts/get_access_token.py": ["/socrates/set.py"], "/scripts/photo_send.py": ["/socrates/set.py", "/scripts/mongo_operate.py", "/scripts/session_get.py"], "/scripts/timeline_get.py": ["/scripts/timeline_operate.py", "/scripts/session_get.py", "/socrates/set.py"], "/handlers/userset.py": ["/socrates/set.py", "/scrip...
28,591
MachineLearningMaster/AutonomousDrone
refs/heads/master
/util/object_tracking_util.py
from __future__ import unicode_literals import cv2 import numpy as np from scipy import spatial from itertools import tee, izip def pairwise(iterable): "s -> (s0,s1), (s1,s2), (s2, s3), ..." a, b = tee(iterable) next(b, None) return izip(a, b) def do_kdtree(combined_x_y_arrays, points): """ ...
{"/automous_flight.py": ["/object_detector.py"], "/example_flight_simulation.py": ["/flight_simulator.py", "/command_handler.py"]}
28,592
MachineLearningMaster/AutonomousDrone
refs/heads/master
/command_handler.py
from functools import partial import pickle import os from util.ReverseCommandUtil import swap import datetime from FlightSimulator import FlightSimulator def get_date(): now = datetime.datetime.now() date = now.strftime("%Y-%m-%d") return date + '-'+ str(now.hour) + '-'+ str(now.minute)+ '-'+str(now.seco...
{"/automous_flight.py": ["/object_detector.py"], "/example_flight_simulation.py": ["/flight_simulator.py", "/command_handler.py"]}
28,593
MachineLearningMaster/AutonomousDrone
refs/heads/master
/automous_flight.py
import socket import threading import time import numpy as np import libh264decoder import cv2 import os from object_detector import DetectorAPI #"C:\ProgramData\Miniconda2\Scripts\pip.exe" install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-2.0.0-cp27-none-linux_x86_64.whl class AutonomousFlight:...
{"/automous_flight.py": ["/object_detector.py"], "/example_flight_simulation.py": ["/flight_simulator.py", "/command_handler.py"]}
28,594
MachineLearningMaster/AutonomousDrone
refs/heads/master
/object_detector.py
import numpy as np import tensorflow as tf import cv2 from TensorFlowObjectDetectionUtil import label_map_util from TensorFlowObjectDetectionUtil import visualization_utils as vis_util import os import time from util import ObjectTrackingUtil as util class DetectorAPI: def __init__(self, path_to_ckpt, path_to_labe...
{"/automous_flight.py": ["/object_detector.py"], "/example_flight_simulation.py": ["/flight_simulator.py", "/command_handler.py"]}
28,595
MachineLearningMaster/AutonomousDrone
refs/heads/master
/flight_simulator.py
import time class FlightSimulator: def __init__(self): self.cm = None self.latency = 0.1 def set_commander(self,commander): self.cm = commander def is_statelike(self,cmd): return cmd[-1]=='?' def check_state(self,cmd): assert self.cm is not None, "Must set...
{"/automous_flight.py": ["/object_detector.py"], "/example_flight_simulation.py": ["/flight_simulator.py", "/command_handler.py"]}
28,596
MachineLearningMaster/AutonomousDrone
refs/heads/master
/util/reverse_command_util.py
reverse_map = {'takeoff':'land','up':'down','left':'right','Command':'Command','streamon':'streamoff','cw':'ccw'} reverse_map_reversed = {reverse_map[i]:i for i in reverse_map} reverse_map.update(reverse_map_reversed) def swap(cmd): """ :param cmd: One of the drone commands :return: The opposite drone com...
{"/automous_flight.py": ["/object_detector.py"], "/example_flight_simulation.py": ["/flight_simulator.py", "/command_handler.py"]}
28,597
MachineLearningMaster/AutonomousDrone
refs/heads/master
/TensorFlowObjectDetectionUtil/repeat_area_util.py
import sys sys.path.append('/home/nvidia/.local/lib/python2.7/site-packages') def iou_calculator(b1,b2): area1 = (b1[2] - b1[0]) * (b1[3] - b1[1]) area2 = (b2[2] - b2[0]) * (b2[3] - b2[1]) xi_min = max(b1[0], b2[0]) yi_min = max(b1[1], b2[1]) xi_max = min(b1[2], b2[2]) yi_max = min(b1[3], b2[3...
{"/automous_flight.py": ["/object_detector.py"], "/example_flight_simulation.py": ["/flight_simulator.py", "/command_handler.py"]}
28,598
MachineLearningMaster/AutonomousDrone
refs/heads/master
/TensorFlowObjectDetectionUtil/usb_prepare_util.py
import time import os import datetime import sys import subprocess sys.path.append('/home/nvidia/.local/lib/python2.7/site-packages') def preparatory_work(): today = datetime.date.today() path_today = "/mnt/usb/" + str(today) if not os.path.ismount('/mnt/usb'): mount_usb() t = time.time() ...
{"/automous_flight.py": ["/object_detector.py"], "/example_flight_simulation.py": ["/flight_simulator.py", "/command_handler.py"]}
28,599
MachineLearningMaster/AutonomousDrone
refs/heads/master
/example_flight_simulation.py
from flight_simulator import FlightSimulator from command_handler import CommandHandler def run_simulation(): my_sim = FlightSimulator() my_commander = CommandHandler(command_poster_fn=my_sim.post_command) my_sim.set_commander(my_commander) my_commander.initialize_sdk() my_commander.take_off() ...
{"/automous_flight.py": ["/object_detector.py"], "/example_flight_simulation.py": ["/flight_simulator.py", "/command_handler.py"]}
28,600
MachineLearningMaster/AutonomousDrone
refs/heads/master
/visualize_object_detection.py
import numpy as np import time import tensorflow as tf import cv2 import os from TensorFlowObjectDetectionUtil import label_map_util from TensorFlowObjectDetectionUtil import visualization_utils as vis_util NUM_CLASSES = 80 MINIMUM_CONFIDENCE = 0.75 height = 720 width = 1280 queue_filter = True PATH_TO_LABELS='la...
{"/automous_flight.py": ["/object_detector.py"], "/example_flight_simulation.py": ["/flight_simulator.py", "/command_handler.py"]}
28,601
MachineLearningMaster/AutonomousDrone
refs/heads/master
/TensorFlowObjectDetectionUtil/video_decision_util.py
import sys import time sys.path.append('/home/nvidia/.local/lib/python2.7/site-packages') def find_out_playing_video(video_counter, video_map, queue_threshold, detection): for name in video_counter: if name in detection['names']: video_counter[name].append(1) else: video_cou...
{"/automous_flight.py": ["/object_detector.py"], "/example_flight_simulation.py": ["/flight_simulator.py", "/command_handler.py"]}
28,602
MachineLearningMaster/AutonomousDrone
refs/heads/master
/joy_stick_mode.py
if __name__ != '__main__': raise Exception("joy stick mode is not designed to be imported") import threading import socket import keyboard import time import os import traceback def check_root(): if hasattr(os, "geteuid"): if not os.geteuid() == 0: print("This script needs to be run as r...
{"/automous_flight.py": ["/object_detector.py"], "/example_flight_simulation.py": ["/flight_simulator.py", "/command_handler.py"]}
28,603
AnimationInVR/avango-blender
refs/heads/master
/__init__.py
bl_info = { "name": "Avango", "author": "Avango Development Team", "version": (14, 11, 0), "blender": (2, 72, 0), "b4w_format_version": "5.01", "location": "File > Import-Export", "description": "Avango is a Blender-friendly 3D web framework", "warning": "", "wiki_url": "http://www.b...
{"/field_container.py": ["/__init__.py"], "/properties.py": ["/interface.py"], "/exporter.py": ["/__init__.py"]}
28,604
AnimationInVR/avango-blender
refs/heads/master
/field_container.py
import bpy from bpy.types import NodeTree, Node, NodeSocket from bpy.props import StringProperty, IntProperty, FloatProperty, IntVectorProperty, FloatVectorProperty, BoolProperty from . import node_tree from bpy.app.handlers import persistent # field connection socket color # TODO: class Camera(Node, node_tree.Avang...
{"/field_container.py": ["/__init__.py"], "/properties.py": ["/interface.py"], "/exporter.py": ["/__init__.py"]}
28,605
AnimationInVR/avango-blender
refs/heads/master
/interface.py
import bpy import mathutils import math import os import cProfile import bgl # serialize data to json _OBJECT_PT_constraints = None class ScenePanel(bpy.types.Panel): bl_label = "Avango-Blender" bl_idname = "SCENE_PT_b4a" bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene"...
{"/field_container.py": ["/__init__.py"], "/properties.py": ["/interface.py"], "/exporter.py": ["/__init__.py"]}
28,606
AnimationInVR/avango-blender
refs/heads/master
/properties.py
import bpy import mathutils import math import os import cProfile from .interface import * class SSAOSettings(bpy.types.PropertyGroup): radius = bpy.props.FloatProperty( name = "radius", description = "radius", default = 0.0, min = 0.0, max = 20.0, step = 0.01, ...
{"/field_container.py": ["/__init__.py"], "/properties.py": ["/interface.py"], "/exporter.py": ["/__init__.py"]}
28,607
AnimationInVR/avango-blender
refs/heads/master
/exporter.py
import bpy from bpy_extras.io_utils import ExportHelper import os import json from . import field_container from mathutils import Matrix # TODO: # write parent def matrixToList(matrix): return sum(list( list(x) for x in matrix), []) def avangoNodeTrees(): return (x for x in bpy.data.node_groups if (...
{"/field_container.py": ["/__init__.py"], "/properties.py": ["/interface.py"], "/exporter.py": ["/__init__.py"]}
28,613
njokuifeanyigerald/drf-with-list-create-func
refs/heads/master
/app/views.py
from re import I from rest_framework import generics from .serializer import StudentSerializeer from .models import Student # from rest_framework.response import Response class StudentApi(generics.ListCreateAPIView): queryset = Student.objects.all() serializer_class = StudentSerializeer
{"/app/views.py": ["/app/models.py"]}
28,614
njokuifeanyigerald/drf-with-list-create-func
refs/heads/master
/app/models.py
from django.db import models class Student(models.Model): student_reg_number = models.TextField(unique=True) student_name = models.TextField() student_email = models.TextField() student_mobile = models.TextField(null=True) created_at = models.DateTimeField(auto_now=True)
{"/app/views.py": ["/app/models.py"]}
28,618
dappstore0/dappstore
refs/heads/master
/app/migrations/0006_dapp_days_to_go.py
# Generated by Django 2.1.2 on 2018-10-28 10:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0005_feedback'), ] operations = [ migrations.AddField( model_name='dapp', name='days_to_go', fiel...
{"/init.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/dappstore/event_watcher.py"], "/dappstore/event_watcher.py": ["/app/models.py"]}
28,619
dappstore0/dappstore
refs/heads/master
/app/models.py
from django.db import models ratings = [(r, r) for r in range(0, 6)] class Dapp(models.Model): name = models.CharField(max_length=1000) address = models.CharField(max_length=1000, null=True, blank=True) # submission owner status = models.CharField(max_length=1000) category = models.CharField(max_len...
{"/init.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/dappstore/event_watcher.py"], "/dappstore/event_watcher.py": ["/app/models.py"]}
28,620
dappstore0/dappstore
refs/heads/master
/init.py
import os os.environ["DJANGO_SETTINGS_MODULE"] = "dappstore.settings" import django django.setup() from app.models import State d = State(key="block", value=0) d.save()
{"/init.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/dappstore/event_watcher.py"], "/dappstore/event_watcher.py": ["/app/models.py"]}
28,621
dappstore0/dappstore
refs/heads/master
/app/admin.py
from django.contrib import admin from .models import Dapp admin.site.register(Dapp)
{"/init.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/dappstore/event_watcher.py"], "/dappstore/event_watcher.py": ["/app/models.py"]}
28,622
dappstore0/dappstore
refs/heads/master
/app/forms.py
from django import forms from .models import ratings class FeedbackForm(forms.Form): name = forms.CharField(max_length=1000) # dapp name text = forms.CharField(max_length=1000, widget=forms.Textarea(attrs={"class": "form-control"})) rating = forms.ChoiceField(choices=ratings, widget=forms.RadioSelect())...
{"/init.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/dappstore/event_watcher.py"], "/dappstore/event_watcher.py": ["/app/models.py"]}
28,623
dappstore0/dappstore
refs/heads/master
/app/views.py
from django.shortcuts import render from random import randint from .forms import FeedbackForm from .models import Dapp, Feedback st = { "prototype": "mvp", "mvp": "alpha", "alpha": "beta", "beta": "live", "live": None } def home(request): if request.method == "POST": add = int(request...
{"/init.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/dappstore/event_watcher.py"], "/dappstore/event_watcher.py": ["/app/models.py"]}
28,624
dappstore0/dappstore
refs/heads/master
/app/migrations/0002_auto_20181027_1340.py
# Generated by Django 2.1.2 on 2018-10-27 13:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0001_initial'), ] operations = [ migrations.AlterField( model_name='dapp', name='address', field=...
{"/init.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/dappstore/event_watcher.py"], "/dappstore/event_watcher.py": ["/app/models.py"]}
28,625
dappstore0/dappstore
refs/heads/master
/app/urls.py
from django.urls import path import dappstore.event_watcher from . import views from threading import Thread app_name = "app" urlpatterns = [ path("", views.home, name="home"), path("feedback/<str:name>", views.feedback, name="feedback"), ] thread = Thread(target=dappstore.event_watcher.loop) thread.daemon =...
{"/init.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/dappstore/event_watcher.py"], "/dappstore/event_watcher.py": ["/app/models.py"]}
28,626
dappstore0/dappstore
refs/heads/master
/dappstore/event_watcher.py
from web3 import Web3, HTTPProvider, WebsocketProvider import json import dappstore.settings as settings #import os import time #os.environ["DJANGO_SETTINGS_MODULE"] = "dappstore.settings" #import django #django.setup() from app.models import State, Dapp class DappStore: @staticmethod def sign(app, name, cate...
{"/init.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/dappstore/event_watcher.py"], "/dappstore/event_watcher.py": ["/app/models.py"]}
28,627
dappstore0/dappstore
refs/heads/master
/app/migrations/0004_auto_20181027_2104.py
# Generated by Django 2.1.2 on 2018-10-27 19:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0003_state'), ] operations = [ migrations.AddField( model_name='dapp', name='blockchain', field=m...
{"/init.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/forms.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/dappstore/event_watcher.py"], "/dappstore/event_watcher.py": ["/app/models.py"]}
28,628
ksteigerwald/aws-health-event-to-slack-message
refs/heads/master
/tests/unit/handlers/test_aws_health_event_publisher.py
'''Test health_event_publisher''' # pylint: disable=protected-access # pylint: disable=wrong-import-position # pylint: disable=redefined-outer-name import json import os import boto3 import jsonschema from moto import mock_sns, mock_sts import pytest import handlers.aws_health_event_publisher as h # noqa EVENT_FILE...
{"/tests/unit/handlers/test_aws_health_event_publisher.py": ["/handlers/aws_health_event_publisher.py"]}
28,629
ksteigerwald/aws-health-event-to-slack-message
refs/heads/master
/handlers/aws_health_event_publisher.py
'''Publish AWS health events to SNS''' import json import logging import os import boto3 log_level = os.environ.get('LOG_LEVEL', 'INFO') logging.root.setLevel(logging.getLevelName(log_level)) # type: ignore _logger = logging.getLogger(__name__) AWS_SNS_TOPIC_ARN = os.environ.get('AWS_SNS_TOPIC_ARN') sns_client = b...
{"/tests/unit/handlers/test_aws_health_event_publisher.py": ["/handlers/aws_health_event_publisher.py"]}
28,646
vkandoba/words2numbers
refs/heads/master
/w2n.py
tokens_config = { 'ноль': {'num': 0, 'type': 'self', 'level': 1}, 'один': {'num': 1, 'type': 'final', 'level': 1}, 'одна': {'num': 1, 'type': 'final', 'level': 1}, 'два': {'num': 2, 'type': 'final', 'level': 1}, 'две': {'num': 2, 'type': 'final', 'level': 1}, 'три': {'num': 3, 'type': 'final', '...
{"/test_w2n.py": ["/w2n.py"]}
28,647
vkandoba/words2numbers
refs/heads/master
/test_w2n.py
from unittest import TestCase from w2n import make_num, make_num_x, make_num_greedy, make_num_one_greedy, make_num_versions class TestMakeNumbers(TestCase): def test_make_with_empty(self): self.assertEqual('', make_num('')) def test_make_with_spaces(self): self.assertEqual('12', make_num(' ...
{"/test_w2n.py": ["/w2n.py"]}
28,665
Garima16/experiments-with-GAN
refs/heads/main
/utils.py
import matplotlib.pyplot as plt import numpy as np import torch import torch.nn as nn import torchvision.datasets as datasets import torchvision.transforms as transforms import torchvision.utils as vutils def load_data(dataroot, img_size, bs, workers=1, dset_name='mnist'): """ Create dataloader from data of g...
{"/main.py": ["/infogan.py", "/utils.py"]}
28,666
Garima16/experiments-with-GAN
refs/heads/main
/animate_images.py
from pathlib import Path import imageio img_dir = Path('../dcgan-mnist-generated-images') images = list(img_dir.glob('*.png')) image_list = [] for file_name in images: image_list.append(imageio.imread(file_name)) imageio.mimwrite('dcgan_animation.gif', image_list)
{"/main.py": ["/infogan.py", "/utils.py"]}
28,667
Garima16/experiments-with-GAN
refs/heads/main
/infogan.py
import numpy as np import os import torch.optim as optim import torch import torch.nn as nn import torch.nn.functional as F from torchvision.utils import save_image class Generator(nn.Module): def __init__(self, latent_var_size=74): super(Generator, self).__init__() self.fc = nn.Sequential( ...
{"/main.py": ["/infogan.py", "/utils.py"]}
28,668
Garima16/experiments-with-GAN
refs/heads/main
/dcgan.py
import torch import torch.nn as nn import torch.nn.functional as F class Generator(nn.Module): def __init__(self, ngpu, nc, nz, ngf): super(Generator, self).__init__() self.ngpu = ngpu self.layer1 = nn.Sequential( nn.ConvTranspose2d(in_channels=nz, ...
{"/main.py": ["/infogan.py", "/utils.py"]}
28,669
Garima16/experiments-with-GAN
refs/heads/main
/main.py
import infogan from torch import cuda import utils if __name__ == "__main__": root_dir = '../Datasets' img_dir = '../Images' wts_dir = '../Weights' # declare constants for InfoGAN training bs = 100 noise_dim = 62 disc_codes_dim = 10 cont_code1_dim = 1 cont_code2_dim = 1 img_siz...
{"/main.py": ["/infogan.py", "/utils.py"]}
28,670
akshay9494/Inceptioner
refs/heads/master
/tests/test_inceptioner.py
from core.inceptioner import Inceptioner import pytest def test_inceptioner(): sut = Inceptioner() res = sut.predict(img_path='dog.jpg') assert res['prediction'] == 'golden_retriever' assert res['confidence'] == pytest.approx(0.65, 0.1)
{"/tests/test_inceptioner.py": ["/core/inceptioner.py"], "/configuration/logging.py": ["/configuration/instance.py"], "/main.py": ["/services/flask_restplus_service.py", "/configuration/instance.py"], "/services/flask_restplus_service.py": ["/api_models/recogntion.py", "/configuration/instance.py", "/core/inceptioner.p...
28,671
akshay9494/Inceptioner
refs/heads/master
/configuration/logging.py
import logging from logging import handlers from datetime import datetime from .instance import config import os LOG_FORMAT = ('%(levelname) -10s %(asctime)s %(name) -10s %(funcName) -20s %(lineno) -5d: %(message)s') log_name = 'logs_{}.log'.format(datetime.now().strftime('%Y-%m-%d--%H-%M-%S')) handler = handlers.Rot...
{"/tests/test_inceptioner.py": ["/core/inceptioner.py"], "/configuration/logging.py": ["/configuration/instance.py"], "/main.py": ["/services/flask_restplus_service.py", "/configuration/instance.py"], "/services/flask_restplus_service.py": ["/api_models/recogntion.py", "/configuration/instance.py", "/core/inceptioner.p...
28,672
akshay9494/Inceptioner
refs/heads/master
/configuration/instance.py
import os class Configuration: def __init__(self): self.port = os.environ.get('PORT', 8080) self.home_dir = os.path.join(os.path.dirname(__file__), '..', 'home') os.makedirs(self.home_dir, exist_ok=True) self.log_dir = os.path.join(self.home_dir, 'logs') os.makedirs(self.l...
{"/tests/test_inceptioner.py": ["/core/inceptioner.py"], "/configuration/logging.py": ["/configuration/instance.py"], "/main.py": ["/services/flask_restplus_service.py", "/configuration/instance.py"], "/services/flask_restplus_service.py": ["/api_models/recogntion.py", "/configuration/instance.py", "/core/inceptioner.p...
28,673
akshay9494/Inceptioner
refs/heads/master
/main.py
# from services.nameko_service import Service, InceptionerService # from services.http_exceptions import Service from configuration import logging # from flask_server.instance import server from flask_server import server from services.flask_restplus_service import * from configuration.instance import config if __nam...
{"/tests/test_inceptioner.py": ["/core/inceptioner.py"], "/configuration/logging.py": ["/configuration/instance.py"], "/main.py": ["/services/flask_restplus_service.py", "/configuration/instance.py"], "/services/flask_restplus_service.py": ["/api_models/recogntion.py", "/configuration/instance.py", "/core/inceptioner.p...
28,674
akshay9494/Inceptioner
refs/heads/master
/services/flask_restplus_service.py
from flask_restplus import Resource, Namespace, reqparse # from flask_server.instance import server from flask_server import server from api_models.recogntion import recognition_request, recognition_response import logging import base64 from flask import abort from configuration.instance import config from core.incepti...
{"/tests/test_inceptioner.py": ["/core/inceptioner.py"], "/configuration/logging.py": ["/configuration/instance.py"], "/main.py": ["/services/flask_restplus_service.py", "/configuration/instance.py"], "/services/flask_restplus_service.py": ["/api_models/recogntion.py", "/configuration/instance.py", "/core/inceptioner.p...
28,675
akshay9494/Inceptioner
refs/heads/master
/api_models/recogntion.py
from flask_restplus import fields # from flask_server.instance import server from flask_server import server recognition_request = server.api.model('RecognitionRequest', { 'id': fields.String(description='UID for maintaining traceability', required=True), 'base64String': fields.String(description='Base64 encod...
{"/tests/test_inceptioner.py": ["/core/inceptioner.py"], "/configuration/logging.py": ["/configuration/instance.py"], "/main.py": ["/services/flask_restplus_service.py", "/configuration/instance.py"], "/services/flask_restplus_service.py": ["/api_models/recogntion.py", "/configuration/instance.py", "/core/inceptioner.p...
28,676
akshay9494/Inceptioner
refs/heads/master
/entities/request_payloads.py
from marshmallow import Schema, fields, post_load class RecognitionRequestSchema(Schema): id = fields.Str(required=True) base64String = fields.Str(required=True)
{"/tests/test_inceptioner.py": ["/core/inceptioner.py"], "/configuration/logging.py": ["/configuration/instance.py"], "/main.py": ["/services/flask_restplus_service.py", "/configuration/instance.py"], "/services/flask_restplus_service.py": ["/api_models/recogntion.py", "/configuration/instance.py", "/core/inceptioner.p...
28,677
akshay9494/Inceptioner
refs/heads/master
/core/inceptioner.py
from keras.applications.inception_v3 import InceptionV3, preprocess_input, decode_predictions from keras.preprocessing import image import numpy as np import os from configuration.instance import config class Inceptioner: def __init__(self): self.model = InceptionV3(weights=None) self.model.load_w...
{"/tests/test_inceptioner.py": ["/core/inceptioner.py"], "/configuration/logging.py": ["/configuration/instance.py"], "/main.py": ["/services/flask_restplus_service.py", "/configuration/instance.py"], "/services/flask_restplus_service.py": ["/api_models/recogntion.py", "/configuration/instance.py", "/core/inceptioner.p...
28,678
akshay9494/Inceptioner
refs/heads/master
/flask_server/server.py
from flask import Flask from flask_restplus import Api, Namespace app = Flask(__name__) api = Api( app, version='1.0', title='Inception Image Recognition API', description='Recognize images based on the inception model trained on imagenet data', doc='/api/swagger' ) inceptioner_ns = Namespace('ince...
{"/tests/test_inceptioner.py": ["/core/inceptioner.py"], "/configuration/logging.py": ["/configuration/instance.py"], "/main.py": ["/services/flask_restplus_service.py", "/configuration/instance.py"], "/services/flask_restplus_service.py": ["/api_models/recogntion.py", "/configuration/instance.py", "/core/inceptioner.p...
28,679
akshay9494/Inceptioner
refs/heads/master
/core/utilities.py
from configuration.instance import config import base64 import os from entities.request_payloads import RecognitionRequestSchema import logging import tensorflow as tf from core.inceptioner import Inceptioner import socket inceptioner_instance = Inceptioner() graph = tf.get_default_graph() def process_request(json_...
{"/tests/test_inceptioner.py": ["/core/inceptioner.py"], "/configuration/logging.py": ["/configuration/instance.py"], "/main.py": ["/services/flask_restplus_service.py", "/configuration/instance.py"], "/services/flask_restplus_service.py": ["/api_models/recogntion.py", "/configuration/instance.py", "/core/inceptioner.p...
28,680
akshay9494/Inceptioner
refs/heads/master
/services/nameko_service.py
from nameko.web.handlers import http from nameko.messaging import consume from kombu.messaging import Exchange, Queue import logging import json from core.utilities import process_request class InceptionerService: """Service endpoint for Inceptioner""" name = "inceptioner_service" test_exchange = Excha...
{"/tests/test_inceptioner.py": ["/core/inceptioner.py"], "/configuration/logging.py": ["/configuration/instance.py"], "/main.py": ["/services/flask_restplus_service.py", "/configuration/instance.py"], "/services/flask_restplus_service.py": ["/api_models/recogntion.py", "/configuration/instance.py", "/core/inceptioner.p...
28,681
akshay9494/Inceptioner
refs/heads/master
/flask_server/instance.py
from flask import Flask from flask_restplus import Api, Namespace from configuration.instance import config from waitress import serve class Server: def __init__(self): self.app = Flask(__name__) self.api = Api( self.app, version='1.0', title='Inception Image Re...
{"/tests/test_inceptioner.py": ["/core/inceptioner.py"], "/configuration/logging.py": ["/configuration/instance.py"], "/main.py": ["/services/flask_restplus_service.py", "/configuration/instance.py"], "/services/flask_restplus_service.py": ["/api_models/recogntion.py", "/configuration/instance.py", "/core/inceptioner.p...
28,682
akshay9494/Inceptioner
refs/heads/master
/main_nameko.py
from services.nameko_service import InceptionerService
{"/tests/test_inceptioner.py": ["/core/inceptioner.py"], "/configuration/logging.py": ["/configuration/instance.py"], "/main.py": ["/services/flask_restplus_service.py", "/configuration/instance.py"], "/services/flask_restplus_service.py": ["/api_models/recogntion.py", "/configuration/instance.py", "/core/inceptioner.p...
28,683
JingSiHan/daily_fresh
refs/heads/main
/apps/goods/views.py
from django.shortcuts import render from django.views.generic import View from apps.goods.models import GoodsType, IndexGoodsBanner, IndexPromotionBanner, IndexTypeGoodsBanner from django.core.cache import cache from django_redis import get_redis_connection import os # Create your views here. # class Test(object): # ...
{"/apps/user/urls.py": ["/apps/user/views.py"], "/apps/goods/urls.py": ["/apps/goods/views.py"]}
28,684
JingSiHan/daily_fresh
refs/heads/main
/apps/goods/migrations/0003_auto_20201221_1851.py
# Generated by Django 2.2 on 2020-12-21 10:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('goods', '0002_auto_20201103_2334'), ] operations = [ migrations.AlterField( model_name='goods', name='create_time', ...
{"/apps/user/urls.py": ["/apps/user/views.py"], "/apps/goods/urls.py": ["/apps/goods/views.py"]}
28,685
JingSiHan/daily_fresh
refs/heads/main
/apps/user/views.py
from django.shortcuts import render, redirect from django.contrib.auth.models import User from django.contrib.auth import get_user_model, authenticate, login, logout from django.views.generic import View from django.conf import settings from django.http import HttpResponse from django.urls import reverse from apps.user...
{"/apps/user/urls.py": ["/apps/user/views.py"], "/apps/goods/urls.py": ["/apps/goods/views.py"]}
28,686
JingSiHan/daily_fresh
refs/heads/main
/apps/order/migrations/0003_auto_20201103_2334.py
# Generated by Django 2.2 on 2020-11-03 15:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('order', '0002_auto_20201103_1834'), ] operations = [ migrations.AlterField( model_name='ordergoods', name='create_time...
{"/apps/user/urls.py": ["/apps/user/views.py"], "/apps/goods/urls.py": ["/apps/goods/views.py"]}
28,687
JingSiHan/daily_fresh
refs/heads/main
/apps/order/migrations/0004_auto_20201221_1851.py
# Generated by Django 2.2 on 2020-12-21 10:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('order', '0003_auto_20201103_2334'), ] operations = [ migrations.AlterField( model_name='ordergoods', name='create_time...
{"/apps/user/urls.py": ["/apps/user/views.py"], "/apps/goods/urls.py": ["/apps/goods/views.py"]}
28,688
JingSiHan/daily_fresh
refs/heads/main
/apps/user/urls.py
from django.urls import re_path # from django.contrib.auth.decorators import login_required from apps.user import views from apps.user.views import RegisterView, ActiveView, LoginView, UserInfoView, UserOrderView, AddressView, LogoutView urlpatterns = [ # re_path(r'^register$', views.register, name='register'), ...
{"/apps/user/urls.py": ["/apps/user/views.py"], "/apps/goods/urls.py": ["/apps/goods/views.py"]}
28,689
JingSiHan/daily_fresh
refs/heads/main
/apps/goods/urls.py
from django.urls import re_path from apps.goods.views import IndexView urlpatterns = [ re_path(r'^', IndexView.as_view(), name='index'), ]
{"/apps/user/urls.py": ["/apps/user/views.py"], "/apps/goods/urls.py": ["/apps/goods/views.py"]}
28,690
JingSiHan/daily_fresh
refs/heads/main
/apps/goods/migrations/0002_auto_20201103_2334.py
# Generated by Django 2.2 on 2020-11-03 15:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('goods', '0001_initial'), ] operations = [ migrations.AlterField( model_name='goods', name='create_time', f...
{"/apps/user/urls.py": ["/apps/user/views.py"], "/apps/goods/urls.py": ["/apps/goods/views.py"]}
28,691
JingSiHan/daily_fresh
refs/heads/main
/apps/order/urls.py
from django.urls import re_path urlpatterns = [ # re_path(r'user'), # 用户模块 ]
{"/apps/user/urls.py": ["/apps/user/views.py"], "/apps/goods/urls.py": ["/apps/goods/views.py"]}
28,692
JingSiHan/daily_fresh
refs/heads/main
/apps/cart/urls.py
from django.urls import re_path urlpatterns = [ # re_path(r'user', ), # 用户模块 ]
{"/apps/user/urls.py": ["/apps/user/views.py"], "/apps/goods/urls.py": ["/apps/goods/views.py"]}
28,693
MathewLech/sandbox
refs/heads/master
/djangoprojects/backendwithjwt/MyAPI/utils.py
from channels.db import database_sync_to_async from .exceptions import ClientError from .models import StreamChannel # This decorator turns this function from a synchronous function into an async one # we can call from our async consumers, that handles Django DBs correctly. # For more, see http://channels.readthedoc...
{"/djangoprojects/backendwithjwt/MyAPI/utils.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects/backendwithjwt/MyAPI/views.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects/backendwithjwt/MyAPI/admin.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects...
28,694
MathewLech/sandbox
refs/heads/master
/djangoprojects/backendwithjwt/backend/routing.py
from django.urls import path from channels.http import AsgiHandler from channels.routing import ProtocolTypeRouter, URLRouter from channels.auth import AuthMiddlewareStack from MyAPI.consumers import StreamConsumer from backend.token_auth import TokenAuthMiddlewareStack from backend.jwttoken_auth import JwtTokenAuthM...
{"/djangoprojects/backendwithjwt/MyAPI/utils.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects/backendwithjwt/MyAPI/views.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects/backendwithjwt/MyAPI/admin.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects...
28,695
MathewLech/sandbox
refs/heads/master
/djangoprojects/backendwithjwt/MyAPI/views.py
from django.shortcuts import render import datetime import os import sys from django.views import generic import json from django.core import serializers from django.shortcuts import HttpResponse from rest_framework import views, serializers, status from rest_framework.response import Response from rest_framework.rende...
{"/djangoprojects/backendwithjwt/MyAPI/utils.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects/backendwithjwt/MyAPI/views.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects/backendwithjwt/MyAPI/admin.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects...
28,696
MathewLech/sandbox
refs/heads/master
/djangoprojects/backendwithjwt/backend/token_auth.py
from channels.auth import AuthMiddlewareStack from rest_framework.authtoken.models import Token from django.contrib.auth.models import AnonymousUser from channels.middleware import BaseMiddleware class TokenAuthMiddleware(BaseMiddleware): """ Token authorization middleware for Django Channels 2 """ de...
{"/djangoprojects/backendwithjwt/MyAPI/utils.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects/backendwithjwt/MyAPI/views.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects/backendwithjwt/MyAPI/admin.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects...
28,697
MathewLech/sandbox
refs/heads/master
/djangoprojects/backendwithjwt/MyAPI/models.py
from django.db import models class StreamChannel(models.Model): """ A Channel for clients to subscribe to """ # StreamChannel title title = models.CharField(max_length=255) def __str__(self): return self.title @property def group_name(self): """ Returns the C...
{"/djangoprojects/backendwithjwt/MyAPI/utils.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects/backendwithjwt/MyAPI/views.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects/backendwithjwt/MyAPI/admin.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects...
28,698
MathewLech/sandbox
refs/heads/master
/djangoprojects/backendwithjwt/testexternalserver.py
from channels.layers import get_channel_layer from django.conf import settings import asyncio import os import time async def main(): redis_host = os.environ.get('REDIS_HOST', 'localhost') settings.configure(CHANNEL_LAYERS = { "default": { # This example app uses the Redis chan...
{"/djangoprojects/backendwithjwt/MyAPI/utils.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects/backendwithjwt/MyAPI/views.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects/backendwithjwt/MyAPI/admin.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects...
28,699
MathewLech/sandbox
refs/heads/master
/djangoprojects/backendwithjwt/MyAPI/admin.py
from django.contrib import admin from .models import StreamChannel admin.site.register( StreamChannel, list_display=["id", "title"], list_display_links=["id", "title"], )
{"/djangoprojects/backendwithjwt/MyAPI/utils.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects/backendwithjwt/MyAPI/views.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects/backendwithjwt/MyAPI/admin.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects...
28,700
MathewLech/sandbox
refs/heads/master
/djangoprojects/backendwithjwt/backend/jwttoken_auth.py
from channels.auth import AuthMiddlewareStack from rest_framework.authtoken.models import Token from django.contrib.auth.models import AnonymousUser from channels.middleware import BaseMiddleware from rest_framework_simplejwt.state import token_backend from django.contrib.auth import authenticate, get_user_model User ...
{"/djangoprojects/backendwithjwt/MyAPI/utils.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects/backendwithjwt/MyAPI/views.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects/backendwithjwt/MyAPI/admin.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects...
28,701
MathewLech/sandbox
refs/heads/master
/djangoprojects/backendwithjwt/MyAPI/consumers.py
from django.conf import settings from channels.generic.websocket import AsyncJsonWebsocketConsumer from .exceptions import ClientError from .utils import get_streamchannel_or_error class StreamConsumer(AsyncJsonWebsocketConsumer): """ This Stream consumer handles websocket connections for clients subsr...
{"/djangoprojects/backendwithjwt/MyAPI/utils.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects/backendwithjwt/MyAPI/views.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects/backendwithjwt/MyAPI/admin.py": ["/djangoprojects/backendwithjwt/MyAPI/models.py"], "/djangoprojects...
28,705
certik/fwrap
refs/heads/master
/fwrap/tests/tutils.py
#------------------------------------------------------------------------------ # Copyright (c) 2010, Kurt W. Smith # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions o...
{"/setup.py": ["/fwrap/version.py"], "/runtests.py": ["/fwrap/main.py"]}
28,706
certik/fwrap
refs/heads/master
/fwrap/version.py
#------------------------------------------------------------------------------ # Copyright (c) 2010, Kurt W. Smith # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions o...
{"/setup.py": ["/fwrap/version.py"], "/runtests.py": ["/fwrap/main.py"]}
28,707
certik/fwrap
refs/heads/master
/fwrap/constants.py
#------------------------------------------------------------------------------ # Copyright (c) 2010, Kurt W. Smith # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions o...
{"/setup.py": ["/fwrap/version.py"], "/runtests.py": ["/fwrap/main.py"]}
28,708
certik/fwrap
refs/heads/master
/fwrap/tests/test_gen_config.py
#------------------------------------------------------------------------------ # Copyright (c) 2010, Kurt W. Smith # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions o...
{"/setup.py": ["/fwrap/version.py"], "/runtests.py": ["/fwrap/main.py"]}
28,709
certik/fwrap
refs/heads/master
/fwrap/intrinsics.py
#------------------------------------------------------------------------------ # Copyright (c) 2010, Kurt W. Smith # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions o...
{"/setup.py": ["/fwrap/version.py"], "/runtests.py": ["/fwrap/main.py"]}
28,710
certik/fwrap
refs/heads/master
/fwrap/tests/test_parameters.py
#------------------------------------------------------------------------------ # Copyright (c) 2010, Kurt W. Smith # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions o...
{"/setup.py": ["/fwrap/version.py"], "/runtests.py": ["/fwrap/main.py"]}
28,711
certik/fwrap
refs/heads/master
/setup.py
#------------------------------------------------------------------------------ # Copyright (c) 2010, Kurt W. Smith # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions o...
{"/setup.py": ["/fwrap/version.py"], "/runtests.py": ["/fwrap/main.py"]}
28,712
certik/fwrap
refs/heads/master
/fwrap/tests/test_code.py
#------------------------------------------------------------------------------ # Copyright (c) 2010, Kurt W. Smith # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions o...
{"/setup.py": ["/fwrap/version.py"], "/runtests.py": ["/fwrap/main.py"]}
28,713
certik/fwrap
refs/heads/master
/fwrap/fwrap_parse.py
#------------------------------------------------------------------------------ # Copyright (c) 2010, Kurt W. Smith # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions o...
{"/setup.py": ["/fwrap/version.py"], "/runtests.py": ["/fwrap/main.py"]}
28,714
certik/fwrap
refs/heads/master
/fwrap/fwrap_setup.py
#------------------------------------------------------------------------------ # Copyright (c) 2010, Kurt W. Smith # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions o...
{"/setup.py": ["/fwrap/version.py"], "/runtests.py": ["/fwrap/main.py"]}
28,715
certik/fwrap
refs/heads/master
/fwrap/main.py
#------------------------------------------------------------------------------ # Copyright (c) 2010, Kurt W. Smith # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions o...
{"/setup.py": ["/fwrap/version.py"], "/runtests.py": ["/fwrap/main.py"]}
28,716
certik/fwrap
refs/heads/master
/runtests.py
#!/usr/bin/python import os, sys, re, shutil, unittest, doctest WITH_CYTHON = True from distutils.dist import Distribution from distutils.core import Extension from distutils.command.build_ext import build_ext as _build_ext distutils_distro = Distribution() FWRAP_SETUP = os.path.abspath(os.path.join('fwrap', 'fwrap...
{"/setup.py": ["/fwrap/version.py"], "/runtests.py": ["/fwrap/main.py"]}
28,717
certik/fwrap
refs/heads/master
/fwrap/tests/test_dimension.py
#------------------------------------------------------------------------------ # Copyright (c) 2010, Kurt W. Smith # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions o...
{"/setup.py": ["/fwrap/version.py"], "/runtests.py": ["/fwrap/main.py"]}
28,718
certik/fwrap
refs/heads/master
/fwrap/tests/test_fwrap_parse.py
#------------------------------------------------------------------------------ # Copyright (c) 2010, Kurt W. Smith # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions o...
{"/setup.py": ["/fwrap/version.py"], "/runtests.py": ["/fwrap/main.py"]}
28,741
housz77/off_parser
refs/heads/master
/off_parser/data/__init__.py
""" ============================= Data (:mod:`off_parser.data`) ============================= This module contains functions for loading built-in and publicly available 3D model data. Functions ========= .. autosummary:: :toctree: generated/ load_data download_dataset load_modelnet10 load_modelne...
{"/off_parser/data/__init__.py": ["/off_parser/data/loader.py"], "/off_parser/data/loader_test.py": ["/off_parser/data/loader.py"], "/examples/toilet_ex1.py": ["/off_parser/__init__.py"], "/off_parser/__init__.py": ["/off_parser/parser/__init__.py", "/off_parser/data/__init__.py"], "/off_parser/parser/off_parser_test.p...
28,742
housz77/off_parser
refs/heads/master
/off_parser/data/loader_test.py
from .loader import * def test_load_modelnet10(): p = load_modelnet10('train') next(p) p = load_modelnet10('test') next(p) def test_load_modelnet40(): p = load_modelnet40('train') next(p) p = load_modelnet40('test') next(p)
{"/off_parser/data/__init__.py": ["/off_parser/data/loader.py"], "/off_parser/data/loader_test.py": ["/off_parser/data/loader.py"], "/examples/toilet_ex1.py": ["/off_parser/__init__.py"], "/off_parser/__init__.py": ["/off_parser/parser/__init__.py", "/off_parser/data/__init__.py"], "/off_parser/parser/off_parser_test.p...