index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
95,883
DreamSoft-LLC/peggy
refs/heads/main
/subs/limeplayer.py
import random import sys import os from kivy.core.audio import SoundLoader from tinytag import TinyTag class MusicPlayer(): def __init__(self,paths_=['C:\\Users\\Dethra_se\\Music']): self.paths_ = paths_ self.player_ = SoundLoader() self.is_playing = False self.volume_ = 1 self.current_music = "" self.in...
{"/reg/time.py": ["/helpers/time_helper.py"], "/peggy.py": ["/helpers/alarms.py", "/helpers/time_helper.py", "/helpers/weather.py", "/subs/limeplayer.py", "/config.py", "/reg/boot.py"], "/main.py": ["/peggy.py"]}
95,884
DreamSoft-LLC/peggy
refs/heads/main
/config.py
AI_NAME = "peggy" VERSION = "0.0.1" ERRORS = ['MC-ERR01%'] SHUTDOWN_PHRASE = f"{AI_NAME} SHUTDOWN".lower()
{"/reg/time.py": ["/helpers/time_helper.py"], "/peggy.py": ["/helpers/alarms.py", "/helpers/time_helper.py", "/helpers/weather.py", "/subs/limeplayer.py", "/config.py", "/reg/boot.py"], "/main.py": ["/peggy.py"]}
95,885
DreamSoft-LLC/peggy
refs/heads/main
/main.py
from peggy import Peggy peggy=Peggy() peggy.run()
{"/reg/time.py": ["/helpers/time_helper.py"], "/peggy.py": ["/helpers/alarms.py", "/helpers/time_helper.py", "/helpers/weather.py", "/subs/limeplayer.py", "/config.py", "/reg/boot.py"], "/main.py": ["/peggy.py"]}
95,887
DavidWuCen/Tarea1SousaWu
refs/heads/master
/Tarea1SousaWu.py
# Instituto Tecnologico de Costa Rica # Microprocesadores y Microcontroladores MT-7003 # Tarea 1: GitHub, Pytest y Flake 8 # Profesor: Ing. Rodolfo Piedra Camacho # Estudiante 1: Alejandra Sousa Leal # Estudiante 2: David Wu Cen # Seccion Practica # Metodo multiple_op def multiple_op(numero): # entrada de un parametr...
{"/test_pytest.py": ["/Tarea1SousaWu.py"]}
95,888
DavidWuCen/Tarea1SousaWu
refs/heads/master
/test_pytest.py
import Tarea1SousaWu as t # importar el codigo de funciones import random # importar la libreria random e11 = "Se detecto un caracter que no es un numero positivo" # mensaje error 11 e13 = "Se detecto un caracter que no es un numero positivo" # mensaje error 13 # test para el caso exitoso de multiple_op def test...
{"/test_pytest.py": ["/Tarea1SousaWu.py"]}
95,889
DavidWuCen/Tarea1SousaWu
refs/heads/master
/Tarea2WuSousa.py
# Instituto Tecnologico de Costa RIca # Microprocesadores y MIcrocontroladores MT-7003 # Tarea 2: Manejo de Maquinas Virtuales # Profesor: Ing. Rodolfo Piedra Camacho # Integrantes: David Wu Cen y Alejandra Sousa Leal import random ...
{"/test_pytest.py": ["/Tarea1SousaWu.py"]}
95,892
sourabbr/employment_and_graduates_prediction
refs/heads/master
/EandG.py
import numpy as np import matplotlib.pyplot as plt import pandas as pd import sqlite3 as lite import sys #state=input("Enter the state:") #year=int(input("Enter the year:")) def regressionGrad(X,y,year): #feature scaling from sklearn.preprocessing import StandardScaler sc_X=StandardScaler() sc_y=Stan...
{"/gui.py": ["/EandG.py"]}
95,893
sourabbr/employment_and_graduates_prediction
refs/heads/master
/gui.py
from tkinter import * from EandG import * from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg import numpy as np import matplotlib.pyplot as plt import pandas as pd import sqlite3 as lite import sys import PIL.Image import PIL.ImageTk states=['andhraPradesh','gujarat','haryana','karnataka','kerala','tamil...
{"/gui.py": ["/EandG.py"]}
95,909
mhp92/filmie_api
refs/heads/master
/api/serializers.py
from rest_framework import serializers#, HyperLinkedIdentityField from . models import Movies, Watchlists, MovieWatchlist, WatchlistTest, Users, AWS_link class AWS_linkSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = AWS_link fields = '__all__' class MovieSerializer(seri...
{"/api/views.py": ["/api/serializers.py", "/api/pagination.py"]}
95,910
mhp92/filmie_api
refs/heads/master
/api/urls.py
from django.urls import path #from . views import MovieRudView, MovieAPIView, MovieWatchlistRudView, MovieWatchlistAPIView, WatchlistRudView, WatchlistAPIView app_name = "api" urlpatterns = [ # path('watchlist/', WatchlistAPIView.as_view(), name="watchlist_create"), # path('watchlist/<int:pk>/', WatchlistRudV...
{"/api/views.py": ["/api/serializers.py", "/api/pagination.py"]}
95,911
mhp92/filmie_api
refs/heads/master
/api/router_urls.py
from django.urls import path, include from . import views from rest_framework import routers router = routers.DefaultRouter() router.register('movie', views.MovieViewSet) router.register('movie_watchlist', views.MovieWatchlistViewSet) router.register('watchlist', views.WatchlistViewSet, base_name='watchlist') router.r...
{"/api/views.py": ["/api/serializers.py", "/api/pagination.py"]}
95,912
mhp92/filmie_api
refs/heads/master
/api/migrations/0002_aws_link_watchlisttest.py
# Generated by Django 2.1.5 on 2019-02-19 00:22 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.CreateModel( ...
{"/api/views.py": ["/api/serializers.py", "/api/pagination.py"]}
95,913
mhp92/filmie_api
refs/heads/master
/api/pagination.py
from rest_framework.pagination import ( LimitOffsetPagination, PageNumberPagination, ) class WatchListLimitOffsetPagination(LimitOffsetPagination): defaul_limit = 2 max_limit = 20 # https://www.youtube.com/watch?v=p4B8zFVRmHI&list=PLEsfXFp6DpzTOcOVdZF-th7BS_GYGguAS&t=0s&index=14
{"/api/views.py": ["/api/serializers.py", "/api/pagination.py"]}
95,914
mhp92/filmie_api
refs/heads/master
/api/views.py
from django.db.models import Q from django.shortcuts import get_object_or_404 from django.contrib.auth import get_user_model # If used custom user model from rest_framework import generics, mixins, viewsets from rest_framework import serializers from rest_framework.authentication import TokenAuthentication from rest_...
{"/api/views.py": ["/api/serializers.py", "/api/pagination.py"]}
95,936
LeskoIam/delilniki
refs/heads/master
/app/models.py
__author__ = 'Lesko' # Documentation is like sex. # When it's good, it's very good. # When it's bad, it's better than nothing. # When it lies to you, it may be a while before you realize something's wrong. from app import db class Sensor(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column...
{"/app/models.py": ["/app/__init__.py"]}
95,937
LeskoIam/delilniki
refs/heads/master
/config.py
__author__ = 'Lesko' import os basedir = os.path.abspath(os.path.dirname(__file__)) WTF_CSRF_ENABLED = True SECRET_KEY = 'you-will-never-guess' SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db') SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository') # __file__ refers to the file setti...
{"/app/models.py": ["/app/__init__.py"]}
95,938
LeskoIam/delilniki
refs/heads/master
/app/common/plot_tools.py
__author__ = 'Lesko' # Documentation is like sex. # When it's good, it's very good. # When it's bad, it's better than nothing. # When it lies to you, it may be a while before you realize something's wrong. import pygal from pygal.style import CleanStyle import data_tools import num_tools def plot_last_heat_dividers()...
{"/app/models.py": ["/app/__init__.py"]}
95,939
LeskoIam/delilniki
refs/heads/master
/app/forms.py
__author__ = 'Lesko' # Documentation is like sex. # When it's good, it's very good. # When it's bad, it's better than nothing. # When it lies to you, it may be a while before you realize something's wrong. from flask.ext.wtf import Form from wtforms import FloatField from wtforms.validators import Optional class Meas...
{"/app/models.py": ["/app/__init__.py"]}
95,940
LeskoIam/delilniki
refs/heads/master
/app/common/num_tools.py
__author__ = 'Lesko' # Documentation is like sex. # When it's good, it's very good. # When it's bad, it's better than nothing. # When it lies to you, it may be a while before you realize something's wrong. import math def mean(data): return sum(data) / float(len(data)) def median(data): data = sorted(data) ...
{"/app/models.py": ["/app/__init__.py"]}
95,941
LeskoIam/delilniki
refs/heads/master
/app/__init__.py
from flask import Flask from flask.ext.sqlalchemy import SQLAlchemy app = Flask(__name__) app.config.from_object('config') db = SQLAlchemy(app) from app import views, models if __name__ == '__main__': # out = db.session.query(models.SensorData, models.Sensor).\ # join(models.Sensor).order_by(models.Senso...
{"/app/models.py": ["/app/__init__.py"]}
95,942
LeskoIam/delilniki
refs/heads/master
/app/views.py
__author__ = 'Lesko' # Documentation is like sex. # When it's good, it's very good. # When it's bad, it's better than nothing. # When it lies to you, it may be a while before you realize something's wrong. from flask import render_template, flash, redirect, Markup from app import app, db from forms import MeasurePoints...
{"/app/models.py": ["/app/__init__.py"]}
95,943
LeskoIam/delilniki
refs/heads/master
/app/common/data_tools.py
__author__ = 'Lesko' # Documentation is like sex. # When it's good, it's very good. # When it's bad, it's better than nothing. # When it lies to you, it may be a while before you realize something's wrong. from app import db from app.models import SensorData, Sensor from sqlalchemy import distinct import datetime impor...
{"/app/models.py": ["/app/__init__.py"]}
95,949
kenwong1/LinkOverflowTools
refs/heads/master
/djangoutils.py
# # Helper functions for interacting with Django, running on one or more EC2 instances. # import os from fabric import api # # Copy a full django project over to a set of EC2 instances. On error, this # whole function will abort. TODO: fix this to instead throw an exception # to the caller. # # KW: [Test] Verify ther...
{"/test_config.py": ["/config.py", "/test_utils.py"], "/test_aws.py": ["/aws.py", "/test_utils.py"]}
95,950
kenwong1/LinkOverflowTools
refs/heads/master
/test_config.py
import unittest, config, os, test_utils class ConfigSetup(unittest.TestCase): # This will sets up the command line parser from config.py # @classmethod def setUpClass(cls): # Update aws.settings location before running test # parser = config.create_parser() ...
{"/test_config.py": ["/config.py", "/test_utils.py"], "/test_aws.py": ["/aws.py", "/test_utils.py"]}
95,951
kenwong1/LinkOverflowTools
refs/heads/master
/launch.py
#!/usr/bin/env python2.7 # # "launch.py" is a tool for deploying applications onto the AWS cloud. # import sys # local modules import config, aws, puppet, djangoutils # # Start by fetching/validating the command-line arguments, and ensuring that the configuration files # are present and contain the necessary settings...
{"/test_config.py": ["/config.py", "/test_utils.py"], "/test_aws.py": ["/aws.py", "/test_utils.py"]}
95,952
kenwong1/LinkOverflowTools
refs/heads/master
/test_aws.py
import unittest, aws, test_utils, ConfigParser class ConfigSetup(unittest.TestCase): @classmethod def setUpClass(cls): # This will setup valid AWS connection variables that we will use for all the tests # # Read the values from .aws.settings file # awsConfigDict = {} ...
{"/test_config.py": ["/config.py", "/test_utils.py"], "/test_aws.py": ["/aws.py", "/test_utils.py"]}
95,953
kenwong1/LinkOverflowTools
refs/heads/master
/aws.py
# # Helper functions for issuing requests to EC2 # import sys, boto.ec2, time # # Launch a specified number of EC2 instances, with the provided parameters. # def launchEC2Instances(accessKeyId, secretAccessKey, numServers, availabilityZone, amiImage, instanceType, keyPairName): # # Create a connection to EC2....
{"/test_config.py": ["/config.py", "/test_utils.py"], "/test_aws.py": ["/aws.py", "/test_utils.py"]}
95,954
kenwong1/LinkOverflowTools
refs/heads/master
/config.py
# # Helper functions for the launch.py utility, to parse and validate the command-line arguments # and configuration settings. In our context "configuration" is held in a couple of files: # - ".aws.settings" file (per-user/private configuration) # - "instance.config" file (describing the VM instance(s) te be create...
{"/test_config.py": ["/config.py", "/test_utils.py"], "/test_aws.py": ["/aws.py", "/test_utils.py"]}
95,955
kenwong1/LinkOverflowTools
refs/heads/master
/showstate.py
import sys, boto.ec2, os, argparse, ConfigParser # This will create the command line argument parser and return it # def create_parser(): defaultSettingsFile = os.path.expanduser("~/.aws.settings") parser = argparse.ArgumentParser( prog="showstate.py", usage="%(p...
{"/test_config.py": ["/config.py", "/test_utils.py"], "/test_aws.py": ["/aws.py", "/test_utils.py"]}
95,956
kenwong1/LinkOverflowTools
refs/heads/master
/puppet.py
# # Helper functions for interacting with Puppet, running on one or more EC2 instances. # import os from fabric import api # # Ensure that the specified list of EC2 instances has Puppet installed. # # KW: [Test] Verify valid/correct puppetURL and throw some error if it is incorrect. # [Test] Also verify that Pupp...
{"/test_config.py": ["/config.py", "/test_utils.py"], "/test_aws.py": ["/aws.py", "/test_utils.py"]}
95,957
kenwong1/LinkOverflowTools
refs/heads/master
/test_utils.py
import os # # This file will return all the test assets used for the unit tests. # Please ensure all files are present or tests will fail! # def getAWSSettings(): return os.path.expanduser("~/.aws.settings") def getInstanceConfig(): return 'instance.config' def getFileNotReadableByOwner(): return "notRea...
{"/test_config.py": ["/config.py", "/test_utils.py"], "/test_aws.py": ["/aws.py", "/test_utils.py"]}
95,962
quasiben/kapsel-to-docker
refs/heads/master
/k2d/tests/test_create.py
import yaml import pytest from k2d.core import create_docker_compose_template, create_dockerfile_template def test_create_docker_compose_template(): IMAGE_NAME = 'XYZ' IMAGE_VERSION = 'v231' SERVICE_NAME = 'QRS' ENV_TUPLES = [('a', 2), ('b', 'c')] template = create_docker_compose_template(IMAGE_...
{"/k2d/tests/test_create.py": ["/k2d/core.py"]}
95,963
quasiben/kapsel-to-docker
refs/heads/master
/k2d/cli.py
import sys import logging import traceback import click from . import utils from . import core def start(): try: cli(obj={}) # except AnacondaDeployException as e: # click.echo("Anaconda Deploy ERROR: %s" % e, err=True) # sys.exit(1) except Exception as e: click.echo(traceb...
{"/k2d/tests/test_create.py": ["/k2d/core.py"]}
95,964
quasiben/kapsel-to-docker
refs/heads/master
/k2d/core.py
from __future__ import print_function, division, absolute_import import os from jinja2 import Template cur_dir = os.path.abspath(os.path.dirname(__file__)) def create_docker_compose_template(IMAGE_NAME="k2d_example", IMAGE_VERSION="v1", SERVICE_NAME="k2d_example", CONTAINER_NAME="k2d_example", ...
{"/k2d/tests/test_create.py": ["/k2d/core.py"]}
95,965
quasiben/kapsel-to-docker
refs/heads/master
/k2d/utils.py
from __future__ import print_function, division, absolute_import import logging def set_logging(level): format = ("%(asctime)s %(levelname)s %(name)s.%(funcName)s: %(message)s") logging.basicConfig(format=format, level=logging.WARNING) logger = logging.getLogger("k2d") logger.setLevel(level)
{"/k2d/tests/test_create.py": ["/k2d/core.py"]}
95,966
quasiben/kapsel-to-docker
refs/heads/master
/k2d/exceptions.py
from __future__ import print_function, division, absolute_import class K2DException(Exception): pass
{"/k2d/tests/test_create.py": ["/k2d/core.py"]}
95,967
quasiben/kapsel-to-docker
refs/heads/master
/setup.py
import os from setuptools import setup, find_packages import versioneer def get_data_files(path, extra_suffixes=None, check_suffix=True): data_files = [] root = path suffix_list = ["py", "sls", "conf", "txt", "yaml", "repo"] if extra_suffixes is not None: suffix_list.extend(extra_suffixes) ...
{"/k2d/tests/test_create.py": ["/k2d/core.py"]}
96,036
jgullbrand/django-workout-log
refs/heads/master
/workout_entries/views.py
from django.shortcuts import render, redirect from .models import GymEntry from .forms import EntryForm from django.contrib.auth.forms import UserCreationForm from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required @login_required def index(request): entri...
{"/workout_entries/views.py": ["/workout_entries/models.py", "/workout_entries/forms.py"], "/workout_entries/admin.py": ["/workout_entries/models.py"], "/workout_entries/forms.py": ["/workout_entries/models.py"]}
96,037
jgullbrand/django-workout-log
refs/heads/master
/workout_entries/models.py
from django.db import models from django.contrib.auth.models import User class GymEntry(models.Model): workout_name = models.CharField(max_length = 25) text = models.TextField() date_posted = models.DateTimeField(auto_now_add=True) owner = models.ForeignKey(User, on_delete=models.CASCADE) def __str__(self): re...
{"/workout_entries/views.py": ["/workout_entries/models.py", "/workout_entries/forms.py"], "/workout_entries/admin.py": ["/workout_entries/models.py"], "/workout_entries/forms.py": ["/workout_entries/models.py"]}
96,038
jgullbrand/django-workout-log
refs/heads/master
/workout_entries/admin.py
from django.contrib import admin from .models import GymEntry admin.site.register(GymEntry)
{"/workout_entries/views.py": ["/workout_entries/models.py", "/workout_entries/forms.py"], "/workout_entries/admin.py": ["/workout_entries/models.py"], "/workout_entries/forms.py": ["/workout_entries/models.py"]}
96,039
jgullbrand/django-workout-log
refs/heads/master
/workout_entries/apps.py
from django.apps import AppConfig class WorkoutEntriesConfig(AppConfig): name = 'workout_entries'
{"/workout_entries/views.py": ["/workout_entries/models.py", "/workout_entries/forms.py"], "/workout_entries/admin.py": ["/workout_entries/models.py"], "/workout_entries/forms.py": ["/workout_entries/models.py"]}
96,040
jgullbrand/django-workout-log
refs/heads/master
/workout_entries/migrations/0002_auto_20190206_1602.py
# Generated by Django 2.1.5 on 2019-02-06 16:02 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('workout_entries', '0001_initial'), ] operations = [ migrations.RenameField( model_name='gymentry', old_name='author_name', ...
{"/workout_entries/views.py": ["/workout_entries/models.py", "/workout_entries/forms.py"], "/workout_entries/admin.py": ["/workout_entries/models.py"], "/workout_entries/forms.py": ["/workout_entries/models.py"]}
96,041
jgullbrand/django-workout-log
refs/heads/master
/workout_entries/forms.py
from django import forms from .models import GymEntry class EntryForm(forms.ModelForm): class Meta: model = GymEntry fields = ["workout_name", "text"] widgets = { "workout_name": forms.TextInput(attrs={"placeholder": "Workout Name", 'size': 35,}), "text": forms.Textarea(attrs={"placeholder": "What exerci...
{"/workout_entries/views.py": ["/workout_entries/models.py", "/workout_entries/forms.py"], "/workout_entries/admin.py": ["/workout_entries/models.py"], "/workout_entries/forms.py": ["/workout_entries/models.py"]}
96,054
matthewdm0816/amafilter
refs/heads/master
/gat_baseline.py
from re import M import torch import torch.nn.functional as F import torch.nn as nn from torch import optim # import torch.linalg # from torchsummary import summary import torch_geometric.nn as tgnn from torch_geometric.nn import ( GCNConv, SGConv, MessagePassing, knn_graph, DataParallel, GMMCo...
{"/gat_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py"], "/dataloader.py": ["/utils.py"], "/dgcnn_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py", "/gat_baseline.py"], "/train_bf.py": ["/bf.py", "/dataloader.py", "/utils.py"], "/bf.py": ["/utils.py"], "/val.py": ["/dataload...
96,055
matthewdm0816/amafilter
refs/heads/master
/dataloader.py
r""" Dataloaders of datasets: MPEG etc. TODO: 1. -Generate various sigma data- """ import gc import json import math import os import random import shutil import sys import time from argparse import ArgumentParser from multiprocessing import Pool, Process, Queue, TimeoutError from os.path import join import colora...
{"/gat_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py"], "/dataloader.py": ["/utils.py"], "/dgcnn_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py", "/gat_baseline.py"], "/train_bf.py": ["/bf.py", "/dataloader.py", "/utils.py"], "/bf.py": ["/utils.py"], "/val.py": ["/dataload...
96,056
matthewdm0816/amafilter
refs/heads/master
/config.py
import yaml, json try: from yaml import CLoader as Loader, CDumper as Dumper except ImportError: ic() from yaml import Loader, Dumper import pretty_errors import sys, os from icecream import ic import re from contextlib import contextmanager class Configurator(): def __init__(self, config_path: str, au...
{"/gat_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py"], "/dataloader.py": ["/utils.py"], "/dgcnn_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py", "/gat_baseline.py"], "/train_bf.py": ["/bf.py", "/dataloader.py", "/utils.py"], "/bf.py": ["/utils.py"], "/val.py": ["/dataload...
96,057
matthewdm0816/amafilter
refs/heads/master
/dgcnn_baseline.py
import torch import torch.nn.functional as F import torch.nn as nn from torch import optim # from torchsummary import summary import torch_geometric.nn as tgnn from torch_geometric.nn import GCNConv, SGConv, MessagePassing, knn_graph, DataParallel import torch_geometric as tg from torch_geometric.datasets import Model...
{"/gat_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py"], "/dataloader.py": ["/utils.py"], "/dgcnn_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py", "/gat_baseline.py"], "/train_bf.py": ["/bf.py", "/dataloader.py", "/utils.py"], "/bf.py": ["/utils.py"], "/val.py": ["/dataload...
96,058
matthewdm0816/amafilter
refs/heads/master
/train_bf.py
r""" Bilateral Filter Training TODO: 1. -Test on modelnet40- 2. -Implement on MPEG large dataset- 3. -Implement parallel training- 4. Learn displacement vector rather than filtered position 5. -Calculate Std. Dev. => Impl. 10-30 std. jitter- 6. Use specific channels for loss calc. (i.e. color o...
{"/gat_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py"], "/dataloader.py": ["/utils.py"], "/dgcnn_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py", "/gat_baseline.py"], "/train_bf.py": ["/bf.py", "/dataloader.py", "/utils.py"], "/bf.py": ["/utils.py"], "/val.py": ["/dataload...
96,059
matthewdm0816/amafilter
refs/heads/master
/bf.py
r""" Bilateral Filter Models Definition TODO: 1. Try multiple W_ij type 2. Try different layer stucture 3. Add graph reg. term, i.e. \tau x^T L x """ import torch import torch.nn.functional as F import torch.nn as nn # from torchsummary import summary import torch_geometric.nn as tgnn from torch_geometri...
{"/gat_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py"], "/dataloader.py": ["/utils.py"], "/dgcnn_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py", "/gat_baseline.py"], "/train_bf.py": ["/bf.py", "/dataloader.py", "/utils.py"], "/bf.py": ["/utils.py"], "/val.py": ["/dataload...
96,060
matthewdm0816/amafilter
refs/heads/master
/val.py
import torch import torch_geometric as tg from torch_geometric.nn import knn_graph from dataloader import MPEGTransform, MPEGDataset, ADataListLoader # for _ in range(100): # a = torch.randn([100,6]) # b=torch.randn([9, 100, 6]) * 1e-7 # c = [a] # for i in range(9): # print(b[i].norm()) # ...
{"/gat_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py"], "/dataloader.py": ["/utils.py"], "/dgcnn_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py", "/gat_baseline.py"], "/train_bf.py": ["/bf.py", "/dataloader.py", "/utils.py"], "/bf.py": ["/utils.py"], "/val.py": ["/dataload...
96,061
matthewdm0816/amafilter
refs/heads/master
/utils.py
# from os import O_PATH import torch import torch.nn as nn import torch.nn.functional as F import torch.nn.init as init import torch_geometric as tg from torch_geometric.data import DataLoader, DataListLoader, InMemoryDataset, Data from torch_geometric.nn import knn_graph, radius_graph, MessagePassing import colorama, ...
{"/gat_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py"], "/dataloader.py": ["/utils.py"], "/dgcnn_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py", "/gat_baseline.py"], "/train_bf.py": ["/bf.py", "/dataloader.py", "/utils.py"], "/bf.py": ["/utils.py"], "/val.py": ["/dataload...
96,062
matthewdm0816/amafilter
refs/heads/master
/pcaica.py
from sklearn.decomposition import FastICA, KernelPCA import pretty_errors from icecream import ic import torch def PCAdenoise(pc: torch.FloatTensor, n_components: int = 100, take_components: int = 20): r""" Use PCA to denoise. :param: pc: torch.FloatTensor :param: n_components, take_components: int ...
{"/gat_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py"], "/dataloader.py": ["/utils.py"], "/dgcnn_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py", "/gat_baseline.py"], "/train_bf.py": ["/bf.py", "/dataloader.py", "/utils.py"], "/bf.py": ["/utils.py"], "/val.py": ["/dataload...
96,063
matthewdm0816/amafilter
refs/heads/master
/visualize.py
import numpy as np from utils import process_whole, get_model, parse_config import torch import torch_geometric as tgnn from dataloader import normal_noise from argparse import ArgumentParser import matplotlib.pyplot as plt import matplotlib as mpl from mpl_toolkits.mplot3d import proj3d, Axes3D from utils import load_...
{"/gat_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py"], "/dataloader.py": ["/utils.py"], "/dgcnn_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py", "/gat_baseline.py"], "/train_bf.py": ["/bf.py", "/dataloader.py", "/utils.py"], "/bf.py": ["/utils.py"], "/val.py": ["/dataload...
96,064
matthewdm0816/amafilter
refs/heads/master
/adversarial.py
import torch import torch.nn.functional as F import torch.nn as nn # from torchsummary import summary import torch_geometric.nn as tgnn from torch_geometric.nn import GCNConv, SGConv, MessagePassing, knn_graph import torch_geometric as tg # from torch_geometric.datasets import ModelNet from torch_geometric.data impor...
{"/gat_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py"], "/dataloader.py": ["/utils.py"], "/dgcnn_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py", "/gat_baseline.py"], "/train_bf.py": ["/bf.py", "/dataloader.py", "/utils.py"], "/bf.py": ["/utils.py"], "/val.py": ["/dataload...
96,065
matthewdm0816/amafilter
refs/heads/master
/mpeg_process.py
import torch import torch.nn.functional as F from torch.utils import data import torch_geometric as tg from torch_geometric.nn import knn_graph, fps, knn from torch_geometric.data import Data, InMemoryDataset # from torch_geometric.datasets import InMemoryDataset import torch_geometric.io as tgio from torch_geometric....
{"/gat_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py"], "/dataloader.py": ["/utils.py"], "/dgcnn_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py", "/gat_baseline.py"], "/train_bf.py": ["/bf.py", "/dataloader.py", "/utils.py"], "/bf.py": ["/utils.py"], "/val.py": ["/dataload...
96,066
matthewdm0816/amafilter
refs/heads/master
/bf-baseline.py
""" Bilateral Filter Baseline: Manual Adjusted Filters TODO: 0. Implement Naive BF 1. Test on modelnet40 """ import torch import torch.nn.functional as F import torch.nn as nn # from torchsummary import summary import torch_geometric.nn as tgnn from torch_geometric.nn import GCNConv, SGConv, MessagePassing, k...
{"/gat_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py"], "/dataloader.py": ["/utils.py"], "/dgcnn_baseline.py": ["/utils.py", "/train_bf.py", "/dataloader.py", "/bf.py", "/gat_baseline.py"], "/train_bf.py": ["/bf.py", "/dataloader.py", "/utils.py"], "/bf.py": ["/utils.py"], "/val.py": ["/dataload...
96,071
patrol7171/HR-Dashboard2
refs/heads/master
/accounts/models.py
from django.conf import settings from django.contrib.auth.models import AbstractUser from django.db import models from django.contrib.auth.hashers import check_password from django.contrib.auth.models import Group from PIL import Image from django.core.files.storage import default_storage as storage class HRTeamUser...
{"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"], "/departments/views/other.py": ["/departments/forms.py", "/departments/models.py"], "/departments/views/__init__.py": ["/departments/views/dashboard.py", "/departments/views/dept.py", "/departments/views...
96,072
patrol7171/HR-Dashboard2
refs/heads/master
/accounts/views.py
from django.shortcuts import render, redirect from django.contrib import messages from django.contrib.auth.models import User from django.contrib import auth from django.contrib.auth import authenticate from django.contrib.auth.decorators import login_required from .forms import ProfileUpdateForm from accounts.models i...
{"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"], "/departments/views/other.py": ["/departments/forms.py", "/departments/models.py"], "/departments/views/__init__.py": ["/departments/views/dashboard.py", "/departments/views/dept.py", "/departments/views...
96,073
patrol7171/HR-Dashboard2
refs/heads/master
/accounts/forms.py
from django import forms from django.contrib.auth.forms import UserCreationForm, UserChangeForm from .models import CustomUser, Profile class CustomUserCreationForm(UserCreationForm): class Meta(UserCreationForm): model = CustomUser fields = ('userid', 'password', 'email', 'accesslevel', 'hrgroup...
{"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"], "/departments/views/other.py": ["/departments/forms.py", "/departments/models.py"], "/departments/views/__init__.py": ["/departments/views/dashboard.py", "/departments/views/dept.py", "/departments/views...
96,074
patrol7171/HR-Dashboard2
refs/heads/master
/departments/views/other.py
import requests import datetime import copy import collections import us from django.conf import settings from django.shortcuts import render, redirect, get_object_or_404 from django.urls import reverse_lazy from django.views import generic, View from django.contrib import messages from django.core.paginator import Pag...
{"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"], "/departments/views/other.py": ["/departments/forms.py", "/departments/models.py"], "/departments/views/__init__.py": ["/departments/views/dashboard.py", "/departments/views/dept.py", "/departments/views...
96,075
patrol7171/HR-Dashboard2
refs/heads/master
/departments/views/__init__.py
from .dashboard import * from .dept import * from .other import *
{"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"], "/departments/views/other.py": ["/departments/forms.py", "/departments/models.py"], "/departments/views/__init__.py": ["/departments/views/dashboard.py", "/departments/views/dept.py", "/departments/views...
96,076
patrol7171/HR-Dashboard2
refs/heads/master
/departments/urls.py
from django.urls import path, include from django.contrib.auth import views as auth_views from . import views urlpatterns = [ path('attrition/<int:tabnum>', views.attrition, name='attrition'), path('compensation/<int:tabnum>', views.compensation, name='compensation'), path('demographics', views.demographi...
{"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"], "/departments/views/other.py": ["/departments/forms.py", "/departments/models.py"], "/departments/views/__init__.py": ["/departments/views/dashboard.py", "/departments/views/dept.py", "/departments/views...
96,077
patrol7171/HR-Dashboard2
refs/heads/master
/accounts/migrations/0001_initial.py
# Generated by Django 2.2.2 on 2019-07-28 05:14 import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permission...
{"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"], "/departments/views/other.py": ["/departments/forms.py", "/departments/models.py"], "/departments/views/__init__.py": ["/departments/views/dashboard.py", "/departments/views/dept.py", "/departments/views...
96,078
patrol7171/HR-Dashboard2
refs/heads/master
/departments/migrations/0001_initial.py
# Generated by Django 2.2.2 on 2020-02-07 01:57 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='EmployeeData', fields=[ ('id', models.AutoF...
{"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"], "/departments/views/other.py": ["/departments/forms.py", "/departments/models.py"], "/departments/views/__init__.py": ["/departments/views/dashboard.py", "/departments/views/dept.py", "/departments/views...
96,079
patrol7171/HR-Dashboard2
refs/heads/master
/departments/models.py
import calendar import datetime import pytz from django.conf import settings from django.db import models from django.contrib.auth.models import Group from django.db.models import F, Q, Count, Value, Avg from django.contrib.admin.utils import flatten from collections import OrderedDict, defaultdict from datetime import...
{"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"], "/departments/views/other.py": ["/departments/forms.py", "/departments/models.py"], "/departments/views/__init__.py": ["/departments/views/dashboard.py", "/departments/views/dept.py", "/departments/views...
96,080
patrol7171/HR-Dashboard2
refs/heads/master
/accounts/migrations/0003_auto_20190810_0121.py
# Generated by Django 2.2.2 on 2019-08-10 05:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0002_auto_20190806_1536'), ] operations = [ migrations.AlterField( model_name='customuser', name='userid...
{"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"], "/departments/views/other.py": ["/departments/forms.py", "/departments/models.py"], "/departments/views/__init__.py": ["/departments/views/dashboard.py", "/departments/views/dept.py", "/departments/views...
96,081
patrol7171/HR-Dashboard2
refs/heads/master
/departments/views/dashboard.py
import requests import datetime import pytz from django.shortcuts import render, redirect, get_object_or_404 from django.urls import reverse_lazy from django.views import generic, View from django.contrib.auth.decorators import login_required from django.http import HttpResponseRedirect from dateutil import parser from...
{"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"], "/departments/views/other.py": ["/departments/forms.py", "/departments/models.py"], "/departments/views/__init__.py": ["/departments/views/dashboard.py", "/departments/views/dept.py", "/departments/views...
96,082
patrol7171/HR-Dashboard2
refs/heads/master
/accounts/migrations/0002_auto_20190806_1536.py
# Generated by Django 2.2.2 on 2019-08-06 19:36 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('accounts', '0001_initial'), ] operations = [ migrations.AlterModelOptions(...
{"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"], "/departments/views/other.py": ["/departments/forms.py", "/departments/models.py"], "/departments/views/__init__.py": ["/departments/views/dashboard.py", "/departments/views/dept.py", "/departments/views...
96,083
patrol7171/HR-Dashboard2
refs/heads/master
/departments/forms.py
from django import forms from .models import WorkSiteLocations from django.forms import ModelChoiceField import requests class SiteDropDownForm(forms.Form): site = forms.ModelChoiceField(queryset=None, empty_label=None) def __init__(self, *args, **kwargs): super(SiteDropDownForm, self).__init__(*...
{"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"], "/departments/views/other.py": ["/departments/forms.py", "/departments/models.py"], "/departments/views/__init__.py": ["/departments/views/dashboard.py", "/departments/views/dept.py", "/departments/views...
96,084
patrol7171/HR-Dashboard2
refs/heads/master
/hr_dashboard2/settings.py
""" Django settings for hr_dashboard2 project. Generated by 'django-admin startproject' using Django 2.2.2. """ import os import django_heroku import dotenv # Environment paths & configurations BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) PROJECT_ROOT = os.path.dirname(os.path.abspath(__...
{"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"], "/departments/views/other.py": ["/departments/forms.py", "/departments/models.py"], "/departments/views/__init__.py": ["/departments/views/dashboard.py", "/departments/views/dept.py", "/departments/views...
96,085
patrol7171/HR-Dashboard2
refs/heads/master
/accounts/auth_backends.py
from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth.hashers import make_password from django.contrib.auth.models import Group from .models import HRTeamUser import random from random import randint class AuthBackend(object): def authenticate(self, request, usernam...
{"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"], "/departments/views/other.py": ["/departments/forms.py", "/departments/models.py"], "/departments/views/__init__.py": ["/departments/views/dashboard.py", "/departments/views/dept.py", "/departments/views...
96,086
patrol7171/HR-Dashboard2
refs/heads/master
/departments/views/dept.py
import requests import datetime import copy from django.http import HttpResponseRedirect from django.shortcuts import render, redirect, get_object_or_404 from django.urls import reverse_lazy from django.views import generic, View from django.contrib.auth.decorators import login_required from django.contrib import messa...
{"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"], "/departments/views/other.py": ["/departments/forms.py", "/departments/models.py"], "/departments/views/__init__.py": ["/departments/views/dashboard.py", "/departments/views/dept.py", "/departments/views...
96,087
patrol7171/HR-Dashboard2
refs/heads/master
/hr_dashboard2/urls.py
"""hr_dashboard2 URL Configuration""" from django.contrib.auth import views as auth_views from django.contrib import admin from django.urls import path, include from departments import views from django.conf.urls.static import static from django.conf import settings urlpatterns = [ path('admin/', admin.site.urls),...
{"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"], "/departments/views/other.py": ["/departments/forms.py", "/departments/models.py"], "/departments/views/__init__.py": ["/departments/views/dashboard.py", "/departments/views/dept.py", "/departments/views...
96,088
patrol7171/HR-Dashboard2
refs/heads/master
/accounts/migrations/0004_auto_20190810_0142.py
# Generated by Django 2.2.2 on 2019-08-10 05:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0003_auto_20190810_0121'), ] operations = [ migrations.AlterField( model_name='customuser', name='userid...
{"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"], "/departments/views/other.py": ["/departments/forms.py", "/departments/models.py"], "/departments/views/__init__.py": ["/departments/views/dashboard.py", "/departments/views/dept.py", "/departments/views...
96,089
patrol7171/HR-Dashboard2
refs/heads/master
/hr_dashboard2/dbrouter.py
from accounts.models import HRTeamUser from departments.models import EmployeeData, HrCasesData, RecruitingCosts2019, SalaryGrid2020, WorkSiteLocations class HRDataRouter(object): def db_for_read(self, model, **hints): if model in (HRTeamUser, EmployeeData, HrCasesData, RecruitingCosts2019, SalaryGrid2020...
{"/accounts/views.py": ["/accounts/forms.py", "/accounts/models.py"], "/accounts/forms.py": ["/accounts/models.py"], "/departments/views/other.py": ["/departments/forms.py", "/departments/models.py"], "/departments/views/__init__.py": ["/departments/views/dashboard.py", "/departments/views/dept.py", "/departments/views...
96,098
matthewmayer/laowaibo
refs/heads/master
/main.py
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
{"/main.py": ["/weibopy/error.py", "/abstract.py"]}
96,099
matthewmayer/laowaibo
refs/heads/master
/abstract.py
from google.appengine.ext import webapp from google.appengine.ext.webapp import template import os, logging class BaseHandler(webapp.RequestHandler): def __init__(self): self.templates_path = os.path.join(os.path.dirname(__file__), "templates") def render_template(self, template_path, template_val...
{"/main.py": ["/weibopy/error.py", "/abstract.py"]}
96,100
matthewmayer/laowaibo
refs/heads/master
/weibopy/error.py
# Copyright 2009-2010 Joshua Roesslein # See LICENSE for details. class WeibopError(Exception): """Weibopy exception""" def __init__(self, reason): self.reason = reason def __str__(self): return str(self.reason)
{"/main.py": ["/weibopy/error.py", "/abstract.py"]}
96,103
kokiwadas/Jak-Testowac-Selenium-Python
refs/heads/master
/helpers/operational_helpers.py
import time from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.wait import WebDriverWait def wait_for_elements(driver, xpath, max_seconds_to_wait=5, number_of_expect...
{"/lost_hat_smoke_tests.py": ["/helpers/wrappers.py"], "/lost_hat_front_page_tests.py": ["/helpers/wrappers.py"], "/lost_hat_cart_page_tests.py": ["/helpers/wrappers.py"]}
96,104
kokiwadas/Jak-Testowac-Selenium-Python
refs/heads/master
/test_1.py
import unittest from selenium import webdriver import time from helpers import functional_helpers as fh class MainTests(unittest.TestCase): @classmethod def setUpClass(self): self.driver = webdriver.Chrome(executable_path=r'C:\Python\Test\chromedriver.exe') self.base_url = 'https://autodemo.t...
{"/lost_hat_smoke_tests.py": ["/helpers/wrappers.py"], "/lost_hat_front_page_tests.py": ["/helpers/wrappers.py"], "/lost_hat_cart_page_tests.py": ["/helpers/wrappers.py"]}
96,105
kokiwadas/Jak-Testowac-Selenium-Python
refs/heads/master
/lost_hat_smoke_tests.py
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.event_firing_webdriver import EventFiringWebDriver from helpers.base_class_tests import BaseTestClass from helpers.wrappers import screenshot_decorator from helpers import operational_helpers as oh from helper...
{"/lost_hat_smoke_tests.py": ["/helpers/wrappers.py"], "/lost_hat_front_page_tests.py": ["/helpers/wrappers.py"], "/lost_hat_cart_page_tests.py": ["/helpers/wrappers.py"]}
96,106
kokiwadas/Jak-Testowac-Selenium-Python
refs/heads/master
/testsuite_sanity_tests.py
import unittest from lost_hat_login_page_tests import LostHatLoginPageTests def sanity_suite(): test_suite = unittest.TestSuite() test_suite.addTest(LostHatLoginPageTests('test_correct_login')) return test_suite runner = unittest.TextTestRunner(verbosity=2) runner.run(sanity_suite())
{"/lost_hat_smoke_tests.py": ["/helpers/wrappers.py"], "/lost_hat_front_page_tests.py": ["/helpers/wrappers.py"], "/lost_hat_cart_page_tests.py": ["/helpers/wrappers.py"]}
96,107
kokiwadas/Jak-Testowac-Selenium-Python
refs/heads/master
/helpers/functional_helpers.py
def user_login(driver, user_email, user_pass): """Logging in the user to the user account using given email and password :param driver: webdriver instance :param user_email: user email :param user_pass: user password return: None """ # finding login input box and sending value log...
{"/lost_hat_smoke_tests.py": ["/helpers/wrappers.py"], "/lost_hat_front_page_tests.py": ["/helpers/wrappers.py"], "/lost_hat_cart_page_tests.py": ["/helpers/wrappers.py"]}
96,108
kokiwadas/Jak-Testowac-Selenium-Python
refs/heads/master
/lost_hat_front_page_tests.py
from selenium import webdriver from selenium.webdriver.support.event_firing_webdriver import EventFiringWebDriver from helpers.wrappers import screenshot_decorator from helpers.screenshot_listener import ScreenshotListener from helpers.base_class_tests import BaseTestClass class LostHatFrontPageTests(BaseTestClass): ...
{"/lost_hat_smoke_tests.py": ["/helpers/wrappers.py"], "/lost_hat_front_page_tests.py": ["/helpers/wrappers.py"], "/lost_hat_cart_page_tests.py": ["/helpers/wrappers.py"]}
96,109
kokiwadas/Jak-Testowac-Selenium-Python
refs/heads/master
/helpers/wrappers.py
from helpers.screenshot_listener import ScreenshotListener from helpers.screenshot_listener import make_screenshot from selenium.common.exceptions import TimeoutException def screenshot_decorator(test_func): def wrapper(self): try: return test_func(self) except AssertionError as ex: ...
{"/lost_hat_smoke_tests.py": ["/helpers/wrappers.py"], "/lost_hat_front_page_tests.py": ["/helpers/wrappers.py"], "/lost_hat_cart_page_tests.py": ["/helpers/wrappers.py"]}
96,110
kokiwadas/Jak-Testowac-Selenium-Python
refs/heads/master
/lost_hat_cart_page_tests.py
from helpers import operational_helpers as oh from helpers.base_class_tests import BaseTestClass from helpers.wrappers import screenshot_decorator class LostHatCartPageTests(BaseTestClass): @screenshot_decorator def test_add_to_cart(self): confirmation_modal_title_xpath = '//*[@id="myModalLabel"]' ...
{"/lost_hat_smoke_tests.py": ["/helpers/wrappers.py"], "/lost_hat_front_page_tests.py": ["/helpers/wrappers.py"], "/lost_hat_cart_page_tests.py": ["/helpers/wrappers.py"]}
96,111
kokiwadas/Jak-Testowac-Selenium-Python
refs/heads/master
/lost_hat_sanity_tests.py
import unittest from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.event_firing_webdriver import EventFiringWebDriver from helpers import operational_helpers as oh from helpers.screenshot_listener import ScreenshotListener class LostHatSanityTests(unittest....
{"/lost_hat_smoke_tests.py": ["/helpers/wrappers.py"], "/lost_hat_front_page_tests.py": ["/helpers/wrappers.py"], "/lost_hat_cart_page_tests.py": ["/helpers/wrappers.py"]}
96,118
nick96/CoronaTrackerAPI
refs/heads/master
/migrations/versions/573a0496fe7a_baseline.py
"""baseline Revision ID: 573a0496fe7a Revises: Create Date: 2020-04-10 12:42:52.398967 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "573a0496fe7a" down_revision = None branch_labels = None depends_on = None def upgrade(): op.create_table( "pos...
{"/test_app.py": ["/app.py"]}
96,119
nick96/CoronaTrackerAPI
refs/heads/master
/migrations/versions/0ef4d2960cc0_add_submitted_at_field.py
"""Add submitted_at field Revision ID: 0ef4d2960cc0 Revises: 573a0496fe7a Create Date: 2020-04-10 14:08:13.119796 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '0ef4d2960cc0' down_revision = '573a0496fe7a' branch_labels = None depends_on = None def upgrade(...
{"/test_app.py": ["/app.py"]}
96,120
nick96/CoronaTrackerAPI
refs/heads/master
/test_app.py
import hashlib import json import uuid import pytest from app import Contact, Positive, app, session @pytest.fixture def client(): app.config["TESTING"] = True with app.test_client() as client: yield client @pytest.fixture(autouse=True) def before_each(): session.query(Positive).delete() s...
{"/test_app.py": ["/app.py"]}
96,121
nick96/CoronaTrackerAPI
refs/heads/master
/app.py
""" Contact graph API. - Each person has a random key - Hash the key using a cryptographically random hash - Give person hash of key + checksum and the checksum itself - If test positive, broadcast key - User checks if hashes match key + checksum - Need both the checksum (given at time of contact) and key to prove con...
{"/test_app.py": ["/app.py"]}
96,123
darkshadows123/dig-cve-extractor
refs/heads/master
/digCveExtractor/dig_cve_extractor.py
# -*- coding: utf-8 -*- # @Author: darkshadows123 import re from sets import Set ################################################ # Main ################################################ class DIGCveExtractor(object): """Extractor of cve from text. Users of this class should call DIGCveExtractor.extract_cve(...
{"/test/test_cve_extractor.py": ["/digCveExtractor/cve_extractor.py"]}
96,124
darkshadows123/dig-cve-extractor
refs/heads/master
/test/test_cve_extractor.py
import unittest import sys, os sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from digExtractor.extractor_processor import ExtractorProcessor from digCveExtractor.cve_extractor import CveExtractor class TestCveExtractorMethods(unittest.TestCase): def setUp(self): pass def tearDown(s...
{"/test/test_cve_extractor.py": ["/digCveExtractor/cve_extractor.py"]}
96,125
darkshadows123/dig-cve-extractor
refs/heads/master
/setup.py
# -*- coding: utf-8 -*- # @Author: darkshadows123 # @Last Modified by: darkshadows123 from distutils.core import setup from setuptools import find_packages setup( name='cveExtractor', version='0.3.2', description='cveExtractor', author='Rishit Jain', author_email='rishitja@usc.edu', url='ht...
{"/test/test_cve_extractor.py": ["/digCveExtractor/cve_extractor.py"]}
96,126
darkshadows123/dig-cve-extractor
refs/heads/master
/digCveExtractor/cve_extractor.py
# -*- coding: utf-8 -*- # @Author: darkshadows123 import copy from digExtractor.extractor import Extractor from dig_cve_extractor import DIGCveExtractor class CveExtractor(Extractor): def __init__(self): self.renamed_input_fields = ['text'] self.diae = DIGCveExtractor() def extract(self, do...
{"/test/test_cve_extractor.py": ["/digCveExtractor/cve_extractor.py"]}
96,135
rafiqul713/Smart-City
refs/heads/master
/SLMS/api/admin.py
from django.contrib import admin from .models import StreetLight # Register your models here. admin.site.register(StreetLight)
{"/SLMS/api/admin.py": ["/SLMS/api/models.py"], "/SLMS/api/serializers.py": ["/SLMS/api/models.py"]}
96,136
rafiqul713/Smart-City
refs/heads/master
/WS/ws_api/serializers.py
from rest_framework import serializers from .models import WeatherStation class WeatherStationSerializer(serializers.ModelSerializer): class Meta: model= WeatherStation fields=('device_id','sensor_name','measurement_value') def create(self, validated_data): return WeatherStati...
{"/SLMS/api/admin.py": ["/SLMS/api/models.py"], "/SLMS/api/serializers.py": ["/SLMS/api/models.py"]}
96,137
rafiqul713/Smart-City
refs/heads/master
/request.py
import requests import schedule import time def job1(): url1 = "http://127.0.0.1:8000/wsapi/humidity/humidity" r1 = requests.get(url = url1) r1 = r1.json() print("Request 1 ",r1) def job2(): url2= "http://127.0.0.1:8001/api/dev301/ON" r2 = requests.get(url = url2) r2 = r2.json() print("Request 2 ",r2) while ...
{"/SLMS/api/admin.py": ["/SLMS/api/models.py"], "/SLMS/api/serializers.py": ["/SLMS/api/models.py"]}
96,138
rafiqul713/Smart-City
refs/heads/master
/SLMS/api/models.py
from django.db import models # Create your models here. class StreetLight(models.Model): device_id= models.CharField(max_length =10,primary_key=True, serialize=True, verbose_name='device_id',null=False) light_status = models.CharField(max_length = 10) # ON or OFF def __str__(self): return "{} - {...
{"/SLMS/api/admin.py": ["/SLMS/api/models.py"], "/SLMS/api/serializers.py": ["/SLMS/api/models.py"]}
96,139
rafiqul713/Smart-City
refs/heads/master
/MQTT_testing/publisher.py
import paho.mqtt.publish as publish host = "mqtt.eclipse.org" port = 1883 topic = "sensor/temperature" payload = "16 degree celsius" while True: publish.single(topic,payload,hostname=host)
{"/SLMS/api/admin.py": ["/SLMS/api/models.py"], "/SLMS/api/serializers.py": ["/SLMS/api/models.py"]}