index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
38,079
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio11.py
# Desafio 11 Curso em Video Python # Calcula a área de uma parede a apartir da largura e altura informadas, e quantos litros de tinta são necessários para pintá-la. #By Rafabr import sys,time import os os.system('clear') print('\033[1;47;30m',end="") print('\n'+'*'*80) print('Desafio 11'.center(80)) print('Este pro...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,080
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio34.py
# Desafio 34 Curso em Video Python # Este programa calcula o aumento de salario onde o aumento é maior para que ganha menos. # By Rafabr import sys import time import os import random os.system('clear') print('\nDesafio 34') print('Este programa calcula o aumento de salario onde o aumento é maior para que ganha men...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,081
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio8.py
# Desafio 8 Curso em Video Python # Converte um valor de metros para centímetros e milímetros #By Rafabr import sys,time import os os.system('clear') print('\033[1;47;30m',end="") print('\n'+'*'*80) print('Desafio 8'.center(80)) print('Este programa converte um valor de metros para centímetros e milímetros!'.center...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,082
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio53.py
# Desafio 53 Curso em Video Python # By Rafabr from estrutura_modelo import cabecalho, rodape cabecalho(53, "Verificador de Palíndromo") text = str(input('Digite a frase a ser análisada: ')).strip().upper() text_in_list = [] for k in text.replace(' ', ''): text_in_list.append(k) text_reversed = text_in_list....
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,083
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio50.py
# Desafio 50 Curso em Video Python # By Rafabr from time import sleep from sys import exit from os import system from estrutura_modelo import cabecalho,rodape cabecalho(50,"Verificador de Números Pares!") num = [] try: print('Digite seis números!') for k in range(0,6): num.append(int(input('Infor...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,084
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio60.py
# Desafio 60 Curso em Video Python # By Rafabr from estrutura_modelo import cabecalho, rodape cabecalho(60, "Fatorial de um Número!") while True: try: numero = int( input("Digite um número inteiro: ") ) except ValueError: print('Valor inválido inserido! Tente Novamente...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,085
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio62.py
# Desafio 62 Curso em Video Python # By Rafabr from estrutura_modelo import cabecalho, rodape cabecalho(62, "Termos de uma Progressão Aritmética - III") while True: try: p0 = float(input('Digite o Termo inicial da PA: ')) r = float(input('Digite a razão da PA: ')) except ValueError: p...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,086
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio61.py
# Desafio 61 Curso em Video Python # By Rafabr from estrutura_modelo import cabecalho, rodape cabecalho(61, "Termos de uma Progressão Aritmética - II") while True: try: p0 = float(input('Digite o Termo inicial da PA: ')) r = float(input('Digite a razão da PA: ')) except ValueError: pr...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,087
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio27.py
# Desafio 27 Curso em Video Python # Este programa ler o nome completo de uma pessoa e mostra o primeiro e o último nome. # By Rafabr import os os.system('clear') print('\nDesafio 27') print('Este programa ler o nome completo de uma pessoa e mostra o primeiro e o último nome.\n\n') nome = str(input('Digite o nome ...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,088
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio66.py
# Desafio 66 Curso em Video Python # By Rafabr from estrutura_modelo import cabecalho, rodape cabecalho(66, "Soma com quantidade indeterminada de números") soma = 0 while True: rodape()
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,089
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio26.py
# Desafio 26 Curso em Video Python # Este programa verifica se uma frase digitada tem a letra 'a' e mostras algumas informações. # By Rafabr import os os.system('clear') print('\nDesafio 26') print('Este programa verifica se uma frase digitada tem a letra \'a\' e mostras algumas informações.\n\n') frase = str(inpu...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,090
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio18.py
# Desafio 18 Curso em Video Python # Calcula o valor do seno, cosseno e tangente de qualquer ângulo #By Rafabr import sys,time import math as doido print('\nDesafio 18') print('Este programa calcula o valor do seno, cosseno e tangente de qualquer ângulo\n') angulo_graus = float(input("Digite o valor do ângulo (EM ...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,091
rafarbop/Python-Curso-em-Video
refs/heads/master
/aula12-exemplos.py
#Aula 12 do Curso Python em Video! #By Rafabr import time,sys import os from estrutura_modelo import cabecalho,rodape cabecalho(12,"Esta Aula ira falar sobre Condições Aninhadas!") escolha = input("Escolha qual opções deseja:\n 1 - Primeira opção\n 2 - Segunda opção\n 3 - Terceira opção\n\t:") print(f'Voçe escolhe...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,092
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio16.py
# Desafio 16 Curso em Video Python # Separa qualquer número informado em uma parte inteira e outra parte fracionária #By Rafabr import sys,time import math as rafael_bruno_paiva print('\nDesafio 16') print('Este programa separa qualquer número informado em uma parte inteira e outra parte fracionária.\n') numero = ...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,093
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio24.py
# Desafio 24 Curso em Video Python # Este programa verifica se uma cidade informada começa com a palavra 'santo(a)' ou 'são'. # By Rafabr import os os.system('clear') print('\nDesafio 24') print('Este programa verifica se uma cidade informada começa com a palavra \'santo(a)\' ou \'são\'.\n\n') cidade = input('Digi...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,094
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio58.py
# Desafio 58 Curso em Video Python # By Rafabr from time import sleep from os import system from random import randint from estrutura_modelo import cabecalho, rodape cabecalho(58, "Jogo de Adivinha II") print('O computador irá escolher um número de 0 a 10!') print('Tente adivinhar qual!') numero_da_sorte = randint(...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,095
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio41.py
# Desafio 41 Curso em Video Python # By Rafabr import os,time,sys from estrutura_modelo import cabecalho,rodape cabecalho(41,"Categorizar atletas de natação") try: nasc = float(input('Digite o ano de nascimento do atleta: ')) print() except ValueError: print('Voçe digitou um valor indevido!') time.s...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,096
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio40.py
# Desafio 40 Curso em Video Python # By Rafabr import os,time,sys,statistics from estrutura_modelo import cabecalho,rodape cabecalho(40,"Verificar a média do aluno e sua situação escolar") try: n1 = float(input('Digite a primeira nota: ')) n2 = float(input('Digite a segunda nota: ')) print() except Valu...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,097
rafarbop/Python-Curso-em-Video
refs/heads/master
/aula10-exemplos.py
#Aula 10 do Curso Python em Video! #By Rafabr import time,sys,subprocess subprocess.run(['clear']) print('\n'+'*'*80) print('Aula 10 - Exemplos e Testes'.center(80)+'\n') print('Questionário sobre carros:') tem_carro = str(input('Voçe possui carro? (s/n) : ')).strip().lower() if tem_carro == 's': pass else: ...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,098
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio20.py
# Desafio 20 Curso em Video Python # Sorteia a ordem de apresentação de um trabalho de quatro alunos informados. #By Rafabr import sys,time import random as ale print('\nDesafio 20') print('Este programa sorteia a ordem de apresentação de um trabalho de quatro alunos informados.\n') a1 = input("Digite o nome do pr...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,099
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio2.py
nome = input('Digite seu nome: ') print(f'Seja bem vindo {nome}!')
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,100
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio30.py
# Desafio 30 Curso em Video Python # Este programa informa se um número informado é par ou ímpar. # By Rafabr import sys import time import os import random os.system('clear') print('\nDesafio 30') print('Este programa informa se um número informado é par ou ímpar.\n\n') try: numero = int(input('Informe um núm...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,101
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio55.py
# Desafio 55 Curso em Video Python # By Rafabr from time import sleep from sys import exit from estrutura_modelo import cabecalho, rodape cabecalho(55, "Maior e Menor número da sequência.") print("Digite o peso de várias pessoas separadas por espaço para compararmos!\n") try: lista_pesos = list(map(float,input...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,102
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio48.py
# Desafio 48 Curso em Video Python # By Rafabr from time import sleep from sys import exit from os import system from estrutura_modelo import cabecalho,rodape cabecalho(48,"Soma dos Números Ímpares de um intervalo!") try: numeroLimite = int(input("Digite um número positivo inteiro: ")) except ValueError: p...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,103
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio37.py
# Desafio 37 Curso em Video Python # By Rafabr import os,time,sys from estrutura_modelo import cabecalho,rodape cabecalho(37,"Programa para converter número de base decimal para outras bases númericas") try: n_decimal = int(input('Digite um número inteiro: ')) base = int(input('Escolha para base númerica de...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,104
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio29.py
# Desafio 29 Curso em Video Python # Este programa retorna mensagem de excesso de velocidade baseado em uma condição usando IF # By Rafabr import sys import time import os import random os.system('clear') print('\nDesafio 29') print('Este programa retorna mensagem de excesso de velocidade baseado em uma condição u...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,105
rafarbop/Python-Curso-em-Video
refs/heads/master
/desafio28.py
# Desafio 28 Curso em Video Python # Este programa escolhe um número aleatório e verifica se o usuário adivinha o número. # By Rafabr import sys import time import os import random os.system('clear') print('Desafio 28'.center(80)) print('<>'*40) print('Este programa escolhe um número aleatório e verifica se o usuá...
{"/desafio51.py": ["/estrutura_modelo.py"], "/desafio46.py": ["/estrutura_modelo.py"], "/desafio47.py": ["/estrutura_modelo.py"], "/desafio43.py": ["/estrutura_modelo.py"], "/desafio64.py": ["/estrutura_modelo.py"], "/desafio56.py": ["/estrutura_modelo.py"], "/desafio57.py": ["/estrutura_modelo.py"], "/desafio49.py": [...
38,210
gardensgreen/flask-practice-assessment
refs/heads/master
/app/forms.py
from flask_wtf import FlaskForm from wtforms import StringField, IntegerField, TextAreaField, SubmitField from wtforms.validators import DataRequired class SimpleForm(FlaskForm): name = StringField("Name", validators=[DataRequired()]) age = IntegerField("Age") bio = TextAreaField("Biography") submit =...
{"/app/__init__.py": ["/app/forms.py"]}
38,211
gardensgreen/flask-practice-assessment
refs/heads/master
/app/__init__.py
from flask import Flask, render_template, redirect from flask_migrate import Migrate from .forms import SimpleForm from .config import Config from .models import db, SimplePerson app = Flask(__name__) app.config.from_object(Config) db.init_app(app) migrate = Migrate(app, db) @app.route("/") def main_page(): ret...
{"/app/__init__.py": ["/app/forms.py"]}
38,217
yassinebelmamoun/graph-trains
refs/heads/master
/main.py
from model.railroad import Railroad if __name__ == '__main__': # Create and build the Railroad railroad = Railroad() railroad.build('AB5, BC4, CD8, DC8, DE6, AD5, CE2, EB3, AE7') # Visualise the railroad railroad.visualise() # Measure the distance of the routes: routes = ['A-B-C', ...
{"/main.py": ["/model/railroad.py"], "/test/test_railroad.py": ["/model/railroad.py"], "/model/railroad.py": ["/model/graph.py", "/exception/railroad_exception.py"], "/test/test_graph.py": ["/model/railroad.py"], "/model/graph.py": ["/exception/graph_exception.py"]}
38,218
yassinebelmamoun/graph-trains
refs/heads/master
/test/test_railroad.py
import unittest from model.railroad import Railroad from exception import graph_exception, railroad_exception class RailroadTestCase(unittest.TestCase): def setUp(self): self.railroad = Railroad() self.railroad.build('AB5, BC4, CD8, DC8, DE6, AD5, CE2, EB3, AE7') def test_get_route_dista...
{"/main.py": ["/model/railroad.py"], "/test/test_railroad.py": ["/model/railroad.py"], "/model/railroad.py": ["/model/graph.py", "/exception/railroad_exception.py"], "/test/test_graph.py": ["/model/railroad.py"], "/model/graph.py": ["/exception/graph_exception.py"]}
38,219
yassinebelmamoun/graph-trains
refs/heads/master
/model/railroad.py
from model.graph import Graph from exception.railroad_exception import RailroadError class Railroad(Graph): """ Vocabulary: 1. A route/trip is a string (i.e 'ABC') represention: - Departure from station A - Stop at station B - Arrival (last stop...
{"/main.py": ["/model/railroad.py"], "/test/test_railroad.py": ["/model/railroad.py"], "/model/railroad.py": ["/model/graph.py", "/exception/railroad_exception.py"], "/test/test_graph.py": ["/model/railroad.py"], "/model/graph.py": ["/exception/graph_exception.py"]}
38,220
yassinebelmamoun/graph-trains
refs/heads/master
/test/test_graph.py
import unittest from model.railroad import Graph from exception import graph_exception, railroad_exception class GraphTestCase(unittest.TestCase): def test_build(self): # Building graph: graph = Graph() self.assertRaises(graph_exception.GraphError, graph.build, 3) graph = Graph(...
{"/main.py": ["/model/railroad.py"], "/test/test_railroad.py": ["/model/railroad.py"], "/model/railroad.py": ["/model/graph.py", "/exception/railroad_exception.py"], "/test/test_graph.py": ["/model/railroad.py"], "/model/graph.py": ["/exception/graph_exception.py"]}
38,221
yassinebelmamoun/graph-trains
refs/heads/master
/exception/railroad_exception.py
class Error(Exception): """Base class for exceptions in this module.""" class RailroadError(Error): """Graph Exception"""
{"/main.py": ["/model/railroad.py"], "/test/test_railroad.py": ["/model/railroad.py"], "/model/railroad.py": ["/model/graph.py", "/exception/railroad_exception.py"], "/test/test_graph.py": ["/model/railroad.py"], "/model/graph.py": ["/exception/graph_exception.py"]}
38,222
yassinebelmamoun/graph-trains
refs/heads/master
/exception/graph_exception.py
class Error(Exception): """Base class for exceptions in this module.""" class GraphError(Error): """Graph Exception""" class NodeError(Error): """Node Exception"""
{"/main.py": ["/model/railroad.py"], "/test/test_railroad.py": ["/model/railroad.py"], "/model/railroad.py": ["/model/graph.py", "/exception/railroad_exception.py"], "/test/test_graph.py": ["/model/railroad.py"], "/model/graph.py": ["/exception/graph_exception.py"]}
38,223
yassinebelmamoun/graph-trains
refs/heads/master
/model/graph.py
from exception.graph_exception import GraphError, NodeError class Graph: """ The representation of a graph with a string is: string_graph = 'AB5, AC2, BC3, BD1, CD3, DA5' We represent a graph with a dictionary: > railroad = Graph() > railroad.build(string_graph) ...
{"/main.py": ["/model/railroad.py"], "/test/test_railroad.py": ["/model/railroad.py"], "/model/railroad.py": ["/model/graph.py", "/exception/railroad_exception.py"], "/test/test_graph.py": ["/model/railroad.py"], "/model/graph.py": ["/exception/graph_exception.py"]}
38,248
jlane9/SAMpyL
refs/heads/master
/sampyl/core/__init__.py
# -*- coding: utf-8 -*- """sampyl.core .. codeauthor:: John Lane <jlane@fanthreesixty.com> """ from sampyl.core import element from sampyl.core import mixins from sampyl.core import shortcuts from sampyl.core import structures __all__ = ['element', 'mixins', 'shortcuts', 'structures']
{"/setup.py": ["/sampyl/__init__.py"], "/sampyl/__init__.py": ["/sampyl/app.py"], "/sampyl/core/structures.py": ["/sampyl/core/element.py"], "/sampyl/app.py": ["/sampyl/core/element.py", "/sampyl/core/structures.py"], "/sampyl/core/element.py": ["/sampyl/core/shortcuts.py"]}
38,249
jlane9/SAMpyL
refs/heads/master
/setup.py
"""SAMpyL setup.py """ from setuptools import setup, find_packages from sampyl import __author__, __email__, __license__, __version__ setup( name='sampyl', version=__version__, packages=find_packages(), description='A wrapper for Selenium. This library uses custom data attributes to accelerate ' ...
{"/setup.py": ["/sampyl/__init__.py"], "/sampyl/__init__.py": ["/sampyl/app.py"], "/sampyl/core/structures.py": ["/sampyl/core/element.py"], "/sampyl/app.py": ["/sampyl/core/element.py", "/sampyl/core/structures.py"], "/sampyl/core/element.py": ["/sampyl/core/shortcuts.py"]}
38,250
jlane9/SAMpyL
refs/heads/master
/sampyl/__init__.py
# -*- coding: utf-8 -*- """sampyl .. codeauthor:: John Lane <jlane@fanthreesixty.com> """ from sampyl.app import App, Node __author__ = "John Lane" __copyright__ = "Copyright 2016, FanThreeSixty" __credits__ = ["John Lane"] __license__ = "Apache License v2.0" __version__ = '0.2.0' __maintainer__ = "John Lane" __em...
{"/setup.py": ["/sampyl/__init__.py"], "/sampyl/__init__.py": ["/sampyl/app.py"], "/sampyl/core/structures.py": ["/sampyl/core/element.py"], "/sampyl/app.py": ["/sampyl/core/element.py", "/sampyl/core/structures.py"], "/sampyl/core/element.py": ["/sampyl/core/shortcuts.py"]}
38,251
jlane9/SAMpyL
refs/heads/master
/sampyl/core/structures.py
# -*- coding: utf-8 -*- """sampyl.core.structures .. codeauthor:: John Lane <jlane@fanthreesixty.com> """ # pylint: disable=line-too-long import inspect import sys import warnings from selenium.webdriver.common.by import By from sampyl.core.element import Element, join from sampyl.core.mixins import ClickMixin, Inpu...
{"/setup.py": ["/sampyl/__init__.py"], "/sampyl/__init__.py": ["/sampyl/app.py"], "/sampyl/core/structures.py": ["/sampyl/core/element.py"], "/sampyl/app.py": ["/sampyl/core/element.py", "/sampyl/core/structures.py"], "/sampyl/core/element.py": ["/sampyl/core/shortcuts.py"]}
38,252
jlane9/SAMpyL
refs/heads/master
/sampyl/app.py
# -*- coding: utf-8 -*- """sampyl.app .. codeauthor:: John Lane <jlane@fanthreesixty.com> """ # pylint: disable=line-too-long import keyword import re import warnings from urlparse import urlparse from sampyl.core.element import SeleniumObject, DEFAULT_NAME_ATTR, DEFAULT_TYPE_ATTR from sampyl.core.structures import ...
{"/setup.py": ["/sampyl/__init__.py"], "/sampyl/__init__.py": ["/sampyl/app.py"], "/sampyl/core/structures.py": ["/sampyl/core/element.py"], "/sampyl/app.py": ["/sampyl/core/element.py", "/sampyl/core/structures.py"], "/sampyl/core/element.py": ["/sampyl/core/shortcuts.py"]}
38,253
jlane9/SAMpyL
refs/heads/master
/sampyl/core/shortcuts.py
# -*- coding: utf-8 -*- """sampyl.core.shortcuts .. codeauthor:: John Lane <jlane@fanthreesixty.com> """ # pylint: disable=line-too-long __all__ = ['encode_ascii'] def encode_ascii(clean=False): """Function returns text as ascii :param clean: True, to delete trailing spaces :return: """ def e...
{"/setup.py": ["/sampyl/__init__.py"], "/sampyl/__init__.py": ["/sampyl/app.py"], "/sampyl/core/structures.py": ["/sampyl/core/element.py"], "/sampyl/app.py": ["/sampyl/core/element.py", "/sampyl/core/structures.py"], "/sampyl/core/element.py": ["/sampyl/core/shortcuts.py"]}
38,254
jlane9/SAMpyL
refs/heads/master
/sampyl/core/element.py
# -*- coding: utf-8 -*- """sampyl.core.element .. codeauthor:: John Lane <jlane@fanthreesixty.com> """ # pylint: disable=line-too-long import keyword from lxml.cssselect import CSSSelector, SelectorError from sampyl.core.shortcuts import encode_ascii from selenium.common.exceptions import WebDriverException from sel...
{"/setup.py": ["/sampyl/__init__.py"], "/sampyl/__init__.py": ["/sampyl/app.py"], "/sampyl/core/structures.py": ["/sampyl/core/element.py"], "/sampyl/app.py": ["/sampyl/core/element.py", "/sampyl/core/structures.py"], "/sampyl/core/element.py": ["/sampyl/core/shortcuts.py"]}
38,276
yangtseng/Knowledge-Distilling-PyTorch
refs/heads/master
/train.py
import argparse import torch import os from torch.utils.tensorboard import SummaryWriter from tqdm import tqdm from models import Model from loss import loss_kd from dataloader import get_loader from utils import Params torch.manual_seed(0) parser = argparse.ArgumentParser() parser.add_argument('--image_size', type=...
{"/train.py": ["/models.py", "/loss.py", "/dataloader.py", "/utils.py"], "/test.py": ["/models.py", "/loss.py", "/dataloader.py", "/utils.py"], "/models.py": ["/utils.py"]}
38,277
yangtseng/Knowledge-Distilling-PyTorch
refs/heads/master
/loss.py
import torch.nn.functional as F def loss_kd(preds, labels, teacher_preds, params): T = params.temperature alpha = params.alpha loss = F.kl_div(F.log_softmax(preds / T, dim=1), F.softmax(teacher_preds / T, dim=1), reduction='batchmean') * T * T * alpha + F.cross_entropy(preds, labels) *...
{"/train.py": ["/models.py", "/loss.py", "/dataloader.py", "/utils.py"], "/test.py": ["/models.py", "/loss.py", "/dataloader.py", "/utils.py"], "/models.py": ["/utils.py"]}
38,278
yangtseng/Knowledge-Distilling-PyTorch
refs/heads/master
/dataloader.py
from torchvision.transforms import transforms from torchvision.datasets.mnist import MNIST from torchvision.datasets.cifar import CIFAR100, CIFAR10 from torch.utils.data import DataLoader from torch.utils.data.dataset import random_split def get_loader(image_size, batch_size, data_set='cifar10'): transform = tran...
{"/train.py": ["/models.py", "/loss.py", "/dataloader.py", "/utils.py"], "/test.py": ["/models.py", "/loss.py", "/dataloader.py", "/utils.py"], "/models.py": ["/utils.py"]}
38,279
yangtseng/Knowledge-Distilling-PyTorch
refs/heads/master
/utils.py
import json class AverageMeter: """Computes and stores the average and current value""" def __init__(self): self.reset() def reset(self): self.val = 0 self.avg = 0 self.sum = 0 self.count = 0 def update(self, val, n=1): self.val = val self.sum ...
{"/train.py": ["/models.py", "/loss.py", "/dataloader.py", "/utils.py"], "/test.py": ["/models.py", "/loss.py", "/dataloader.py", "/utils.py"], "/models.py": ["/utils.py"]}
38,280
yangtseng/Knowledge-Distilling-PyTorch
refs/heads/master
/test.py
import argparse import torch import os from torch.utils.tensorboard import SummaryWriter from models import Model from loss import loss_kd from dataloader import get_test_loader from utils import Params, AverageMeter from tqdm import tqdm torch.manual_seed(0) parser = argparse.ArgumentParser() parser.add_argument('-...
{"/train.py": ["/models.py", "/loss.py", "/dataloader.py", "/utils.py"], "/test.py": ["/models.py", "/loss.py", "/dataloader.py", "/utils.py"], "/models.py": ["/utils.py"]}
38,281
yangtseng/Knowledge-Distilling-PyTorch
refs/heads/master
/models.py
import os import torch import torch.nn as nn from torchvision.models import resnet, densenet, vgg from tqdm import tqdm, tqdm_notebook from utils import AverageMeter def conv_block(in_channels, out_channels, batch_norm=True): block = nn.Sequential(nn.Conv2d(in_channels, out_channels, 3, 1, 1), ...
{"/train.py": ["/models.py", "/loss.py", "/dataloader.py", "/utils.py"], "/test.py": ["/models.py", "/loss.py", "/dataloader.py", "/utils.py"], "/models.py": ["/utils.py"]}
38,282
WeatherGod/NNforZR
refs/heads/master
/tempyView.py
import numpy import pylab from scipy import optimize def ZRModel(coefs, reflects) : return(((10.0 ** (reflects/10.0))/coefs[0]) ** (1.0/coefs[1])) def BestZRModel(reflects, rainrate) : def errFun(coefs) : return(numpy.mean(numpy.abs(ZRModel(coefs, reflects) - rainrate))) return(optimize.fmin(errF...
{"/filtertraining.py": ["/histtools.py"]}
38,283
WeatherGod/NNforZR
refs/heads/master
/histtools.py
import numpy import scipy.stats # for scipy.stats.scoreatpercentile() # BUG: If the data array has a lot of elements with the same value, # then .scoreatpercentile() may report the same score for both # the first and third quartile, which means that the interquartile # range is zero. def OptimalBinSize...
{"/filtertraining.py": ["/histtools.py"]}
38,284
WeatherGod/NNforZR
refs/heads/master
/ProjectTesting.py
#!/usr/bin/env python from optparse import OptionParser # for Command-line parsing import numpy import filtertraining as f # for decimate(), jitter(), decimate2d() from ProjectUtils import * # for ObtainResultInfo(), SaveSubprojectModel() import os # for mkdir() import random # for sample() def MakeARFFH...
{"/filtertraining.py": ["/histtools.py"]}
38,285
WeatherGod/NNforZR
refs/heads/master
/filtertraining.py
from histtools import * # for Hist2d() import numpy def WhereIs(vals, B) : return([numpy.nonzero(elementVal == B)[0][0] for elementVal in vals]) def decimate(vals, decimation): B = numpy.unique1d(vals) N = WhereIs(vals, B) # n contains the count of the number of elements for each bin # B conta...
{"/filtertraining.py": ["/histtools.py"]}
38,286
WeatherGod/NNforZR
refs/heads/master
/boxcox.py
#!/usr/bin/env python import numpy # for std(), sum(), log(), exp() and numpy arrays from scipy import optimize # for fmin() def boxcox_opt(lamb, *pargs): # Don't call this function, it is meant to be # used by boxcox_auto(). x = numpy.array(pargs) # Transform data using a particular lambda. xh...
{"/filtertraining.py": ["/histtools.py"]}
38,287
WeatherGod/NNforZR
refs/heads/master
/bootstrap.py
"""Bootstrap statistics package. Given an experimentally determined random distribution, estimates a desired parameter and its uncertainty. by Michael J.T. O'Kelly <mokelly@mit.edu> Version 0.1, 3-08-06""" import scipy def fast_bootstrap(function, distribution, rel_tol = 0.001, abs_tol = 0, ...
{"/filtertraining.py": ["/histtools.py"]}
38,288
WeatherGod/NNforZR
refs/heads/master
/ProjectUtils.py
#!/usr/bin/env python import glob # for filename globbing import os # for os.sep import numpy import scipy.stats as ss # for sem() and other stat funcs import scipy.stats.stats as sss # for nanmean() and other nan-friendly funcs import pylab # for plotting import matplotlib # for colormaps from filtertraining...
{"/filtertraining.py": ["/histtools.py"]}
38,289
WeatherGod/NNforZR
refs/heads/master
/PaperScript.py
#!/usr/bin/env python import glob # for filename globbing import os # for os.sep import matplotlib.pyplot as pyplot from ProjectUtils import ObtainResultInfo, PlotCorr, PlotZR # Run this code if this script is executed like a program # instead of being loaded like a library file. if __name__ == '__main__': ...
{"/filtertraining.py": ["/histtools.py"]}
38,290
WeatherGod/NNforZR
refs/heads/master
/Paper_BootstrapFig.py
#!/usr/bin/env python # Author: Benjamin Root # Copyright (C) 1989, 1991-2009 Free Software Foundation. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of t...
{"/filtertraining.py": ["/histtools.py"]}
38,291
WeatherGod/NNforZR
refs/heads/master
/DisplayResults.py
#!/usr/bin/env python from optparse import OptionParser # Command-line parsing import pylab import numpy parser = OptionParser() parser.add_option("-t", "--train", dest="train", help="Display results for TRAIN", metavar="TRAIN") parser.add_option("-d", "--data", dest="data", help="Using training dataset ...
{"/filtertraining.py": ["/histtools.py"]}
38,292
WeatherGod/NNforZR
refs/heads/master
/PaperErrFig.py
#!/usr/bin/env python import glob # for filename globbing import os # for os.sep import matplotlib.pyplot as pyplot import numpy import matplotlib.cm from ProjectUtils import ObtainResultInfo def CalcErr(resultInfo) : return numpy.abs(resultInfo['modelPredicts'] - resultInfo['testObs']) # Run this code if...
{"/filtertraining.py": ["/histtools.py"]}
38,293
WeatherGod/NNforZR
refs/heads/master
/ProjectAnalysis.py
#!/usr/bin/env python from optparse import OptionParser # Command-line parsing import glob # for filename globbing import os import numpy import scipy.stats as ss # for sem() and other stat funcs import scipy.stats.stats as sss # for nanmean() and other nan-friendly funcs import pylab # for plotting from filter...
{"/filtertraining.py": ["/histtools.py"]}
38,329
fzgithub2022/jeopardy
refs/heads/master
/app.py
import os from flask import Flask, request, jsonify, abort from sqlalchemy import exc from models import db_drop_and_create_all, setup_db, Questions import json app = Flask(__name__) setup_db(app) ''' @TODO uncomment the following line to initialize the datbase !! NOTE THIS WILL DROP ALL RECORDS AND START YOUR DB FR...
{"/app.py": ["/models.py"]}
38,330
fzgithub2022/jeopardy
refs/heads/master
/models.py
import os from sqlalchemy import Column, String, Integer from flask_sqlalchemy import SQLAlchemy import json database_filename = "jeopardy.db" project_dir = os.path.dirname(os.path.abspath(__file__)) database_path = "sqlite:///{}".format(os.path.join(project_dir, database_filename)) db = SQLAlchemy() ''' setup_db(ap...
{"/app.py": ["/models.py"]}
38,331
eyeduh/webcrawler
refs/heads/master
/users/views.py
from django.shortcuts import redirect, render, get_object_or_404 from .models import Profile from django.contrib.auth import login, authenticate from django.contrib import messages from .forms import SignUpForm from django.contrib.auth.forms import AuthenticationForm # Create your views here. def user_list(request): ...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,332
eyeduh/webcrawler
refs/heads/master
/webcrawlers/migrations/0013_auto_20210904_1005.py
# Generated by Django 3.2.6 on 2021-09-04 10:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('webcrawlers', '0012_alter_brand_url'), ] operations = [ migrations.AlterField( model_name='product', name='price', ...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,333
eyeduh/webcrawler
refs/heads/master
/users/migrations/0004_auto_20210907_0820.py
# Generated by Django 3.2.6 on 2021-09-07 08:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0003_alter_profile_age'), ] operations = [ migrations.AlterField( model_name='profile', name='age', ...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,334
eyeduh/webcrawler
refs/heads/master
/scraper/scraper/spiders/product_crawler.py
from os import name from w3lib import url from webcrawlers.models import Product, Brand from scraper.scraper.spiders.brand_crawler import BrandsSpider from urllib import parse import scrapy from scrapy.spiders import CrawlSpider, Rule from scrapy.linkextractors import LinkExtractor from ..items import ProductScrape...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,335
eyeduh/webcrawler
refs/heads/master
/webcrawlers/views.py
from django.shortcuts import render from django.shortcuts import get_object_or_404 from .models import Category, Brand, Product # Create your views here. def index(request): return render(request, 'index.html') def list_brands(request): brands = Brand.objects.all() context = {'brands' : brands} return...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,336
eyeduh/webcrawler
refs/heads/master
/webcrawlers/models.py
from os import name from django.db import models from django.db.models.deletion import PROTECT # Create your models here. class Category(models.Model): name = models.CharField(verbose_name= 'Category Name', max_length=30) url = models.URLField(verbose_name= 'Category Link', max_length=100) class Meta: ...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,337
eyeduh/webcrawler
refs/heads/master
/webcrawlers/migrations/0002_brand.py
# Generated by Django 3.2.6 on 2021-09-03 09:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('webcrawlers', '0001_initial'), ] operations = [ migrations.CreateModel( name='Brand', fields=[ ('id'...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,338
eyeduh/webcrawler
refs/heads/master
/webcrawlers/migrations/0006_alter_brand_name.py
# Generated by Django 3.2.6 on 2021-09-03 19:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('webcrawlers', '0005_alter_product_brand'), ] operations = [ migrations.AlterField( model_name='brand', name='name', ...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,339
eyeduh/webcrawler
refs/heads/master
/users/forms.py
from django.forms import fields from users.models import Profile from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User class SignUpForm(UserCreationForm): GENDER_MALE = 1 GENDER_FEMALE = 2 GENDER_CHOICES = [ (GENDER_MALE, 'Male')...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,340
eyeduh/webcrawler
refs/heads/master
/webcrawlers/migrations/0007_alter_brand_unique_together.py
# Generated by Django 3.2.6 on 2021-09-03 20:22 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('webcrawlers', '0006_alter_brand_name'), ] operations = [ migrations.AlterUniqueTogether( name='brand', unique_together={('na...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,341
eyeduh/webcrawler
refs/heads/master
/scraper/scraper/spiders/category_crawler.py
from webcrawlers.models import Category import scrapy from ..items import CategoryScraperItem class CategorySpider(scrapy.Spider): name = 'category' start_urls = ['http://www.sephora.com'] def parse(self, response): for category in response.css('a.css-hzvn5z'): name = category.css('...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,342
eyeduh/webcrawler
refs/heads/master
/scraper/scraper/spiders/brand_crawler.py
from os import name from webcrawlers.models import Brand import scrapy from ..items import BrandScraperItem class BrandsSpider(scrapy.Spider): name = 'brands' start_urls = ['http://www.sephora.com/brands-list'] def parse(self, response): for brand in response.xpath('//a[@data-at="brand_link"]'):...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,343
eyeduh/webcrawler
refs/heads/master
/webcrawlers/migrations/0001_initial.py
# Generated by Django 3.2.6 on 2021-09-01 20:22 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.BigAutoFi...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,344
eyeduh/webcrawler
refs/heads/master
/webcrawlers/admin.py
from django.contrib import admin from .models import Brand, Category, Product # Register your models here. class CategoryAdmin(admin.ModelAdmin): list_display = ['name', 'url'] list_filter = ['name'] admin.site.register(Category, CategoryAdmin) class BrandAdmin(admin.ModelAdmin): list_display = ['name', ...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,345
eyeduh/webcrawler
refs/heads/master
/webcrawlers/migrations/0008_alter_brand_unique_together.py
# Generated by Django 3.2.6 on 2021-09-03 20:55 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('webcrawlers', '0007_alter_brand_unique_together'), ] operations = [ migrations.AlterUniqueTogether( name='brand', unique_tog...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,346
eyeduh/webcrawler
refs/heads/master
/webcrawlers/migrations/0005_alter_product_brand.py
# Generated by Django 3.2.6 on 2021-09-03 19:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('webcrawlers', '0004_alter_product_brand'), ] operations = [ migrations.AlterField( model_name='product', name='brand...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,347
eyeduh/webcrawler
refs/heads/master
/webcrawlers/migrations/0012_alter_brand_url.py
# Generated by Django 3.2.6 on 2021-09-04 09:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('webcrawlers', '0011_alter_product_unique_together'), ] operations = [ migrations.AlterField( model_name='brand', nam...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,348
eyeduh/webcrawler
refs/heads/master
/webcrawlers/migrations/0011_alter_product_unique_together.py
# Generated by Django 3.2.6 on 2021-09-03 21:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('webcrawlers', '0010_alter_brand_unique_together'), ] operations = [ migrations.AlterUniqueTogether( name='product', unique_t...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,349
eyeduh/webcrawler
refs/heads/master
/scraper/scraper/items.py
# Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy from scrapy_djangoitem import DjangoItem from webcrawlers.models import Category, Brand, Product class CategoryScraperItem(DjangoItem): django_model = Category name = s...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,350
eyeduh/webcrawler
refs/heads/master
/webcrawlers/migrations/0004_alter_product_brand.py
# Generated by Django 3.2.6 on 2021-09-03 13:22 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('webcrawlers', '0003_auto_20210903_0952'), ] operations = [ migrations.AlterField( model_name='p...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,351
eyeduh/webcrawler
refs/heads/master
/webcrawlers/urls.py
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('brands-list/', views.list_brands, name='brands-list'), path('products-list/', views.list_products, name='products-list'), path('brands-list/brand-products/', views.brand_products, name='brand-p...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,352
eyeduh/webcrawler
refs/heads/master
/users/models.py
from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver class Profile(models.Model): GENDER_MALE = 1 GENDER_FEMALE = 2 GENDER_CHOICES = [ (GENDER_MALE, 'Male'), (GENDER_FEMALE, 'Female') ...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,353
eyeduh/webcrawler
refs/heads/master
/users/migrations/0002_auto_20210907_0537.py
# Generated by Django 3.2.6 on 2021-09-07 05:37 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('users', '0001_initial'),...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,354
eyeduh/webcrawler
refs/heads/master
/users/urls.py
from django.urls import path from .views import user_list, user_detail, register_request, login_request app_name = 'users' urlpatterns = [ path('user-list/', user_list, name='user_list'), path('user-detail/<int:user_id>/', user_detail, name='user_detail'), path('register/', register_request, name='registe...
{"/users/views.py": ["/users/models.py", "/users/forms.py"], "/scraper/scraper/spiders/product_crawler.py": ["/webcrawlers/models.py", "/scraper/scraper/spiders/brand_crawler.py", "/scraper/scraper/items.py"], "/webcrawlers/views.py": ["/webcrawlers/models.py"], "/users/forms.py": ["/users/models.py"], "/scraper/scrape...
38,355
alexnwang/SketchEmbedNet-public
refs/heads/master
/run_hyper_embedding_experiment.py
import os import traceback import numpy as np import cv2 import umap import tensorflow as tf import matplotlib.pyplot as plt import sklearn from PIL import Image from absl import app, flags, logging from matplotlib.offsetbox import OffsetImage, AnnotationBbox from sklearn.cluster import DBSCAN import models import co...
{"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_...
38,356
alexnwang/SketchEmbedNet-public
refs/heads/master
/util/utils.py
import os import numpy as np import tensorflow as tf from multiprocessing import Process, Queue from PIL import Image from .quickdraw_utils import stroke_three_format, scale_and_rasterize def process_write_out(write_fn, fn_args, max_queue_size=5000): """ Begins a parallelized writer that run...
{"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_...
38,357
alexnwang/SketchEmbedNet-public
refs/heads/master
/configs/sketchy_configs.py
from configs.base import register_config from util import HParams, teacher_noise_4, rotate_4 @register_config('sketchy') def sketchy_default(): return HParams( # ----- Dataset Parameters ----- # batch_size=256, split="", # ----- Loading Parameters ----- # cycle...
{"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_...
38,358
alexnwang/SketchEmbedNet-public
refs/heads/master
/datasets/base/__init__.py
from .dataset_base import * from .dataset_episodic import * from .datasets import *
{"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_...
38,359
alexnwang/SketchEmbedNet-public
refs/heads/master
/configs/quickdraw_configs.py
from configs.base import register_config from util import HParams, teacher_noise_4, rotate_4 @register_config('quickdraw') def quickdraw_default(): return HParams( # ----- Dataset Parameters ----- # batch_size=256, split="", # ----- Loading Parameters ----- # ...
{"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_...
38,360
alexnwang/SketchEmbedNet-public
refs/heads/master
/util/augmentations.py
import numpy as np def rotate_4(strokes_gt, strokes_teacher, image, class_name, *args): """ Rotates input strokes creating 3 new classes 90, 180 and 270 degree rotations :param strokes_gt: ground truth for loss :param strokes_teacher: teacher forcing input sequence :param image: input imag...
{"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_...
38,361
alexnwang/SketchEmbedNet-public
refs/heads/master
/configs/vae_configs.py
from util import HParams from configs.base import register_config @register_config("vae") def vae_default(): return HParams( # ----- Model Parameters ----- # latent_size=256, png_dim=32, grayscale=False, kl_weight=1.0, kl_tolerance=0.0, filt...
{"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_...
38,362
alexnwang/SketchEmbedNet-public
refs/heads/master
/configs/drawer_configs.py
from util import HParams, ST1_classes from configs.base import register_config @register_config("drawer") def drawer_default(): return HParams( # ----- Model Parameters ----- # rnn_cell="hyper", rnn_output_size=1024, z_size=256, num_mixture=30, kl_tolera...
{"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_...
38,363
alexnwang/SketchEmbedNet-public
refs/heads/master
/datasets/base/dataset_base.py
import traceback import psutil import tensorflow as tf import numpy as np from absl import logging class DatasetBase(object): def __init__(self, data_dir, params): self._data_dir = data_dir self._split = params.split if "augmentations" in params: self._augmentat...
{"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_...
38,364
alexnwang/SketchEmbedNet-public
refs/heads/master
/models/lr_fs.py
import tensorflow as tf from absl import logging from sklearn.linear_model import LogisticRegression from models import register_model, BaseModel, np @register_model("lr_fs") class LogisticRegressionFewShotModel(BaseModel): def __init__(self, base_dir, model_id, params): """ SKLearn lo...
{"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_...
38,365
alexnwang/SketchEmbedNet-public
refs/heads/master
/util/__init__.py
from .logging import * from .utils import * from .hparams import * from .quickdraw_utils import * from .fs_omniglot_utils import * from .sketchy_utils import * from .drawer_utils import * from .write_routines import * from .augmentations import * from .class_lists import *
{"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_...
38,366
alexnwang/SketchEmbedNet-public
refs/heads/master
/configs/base/__init__.py
from .configs import *
{"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_...
38,367
alexnwang/SketchEmbedNet-public
refs/heads/master
/util/sketchy_utils.py
import os import numpy as np from PIL import Image from absl import logging from util import string_to_strokes, apply_rdp, strokes_to_stroke_three, scale_and_center_stroke_three, \ stroke_five_format_centered, rasterize, stroke_three_format_centered, stroke_five_format def svg_to_stroke_three(batch_da...
{"/run_hyper_embedding_experiment.py": ["/models/__init__.py", "/configs/__init__.py", "/datasets/__init__.py", "/util/__init__.py"], "/util/utils.py": ["/util/quickdraw_utils.py"], "/configs/sketchy_configs.py": ["/configs/base/__init__.py", "/util/__init__.py"], "/datasets/base/__init__.py": ["/datasets/base/dataset_...