index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
26,663
BenjiLee/PoloniexAnalyzer
refs/heads/master
/settings.py
# Used for mocking the API responses. Requires data to work. MOCK_API_RESPONSE = False
{"/poloniex.py": ["/analyzer.py"], "/poloniex_apis/public_api.py": ["/dev_utils.py", "/settings.py"], "/poloniex_apis/api_models/lending_history.py": ["/utils.py"], "/poloniex_apis/trading_api.py": ["/dev_utils.py", "/settings.py", "/poloniex_apis/api_key_secret_util.py"], "/analyzer.py": ["/printer.py", "/poloniex_api...
26,664
BenjiLee/PoloniexAnalyzer
refs/heads/master
/analyzer.py
""" Analyzer for running analysis on given data models :) Hopefully all the methods in here will be uses for analyzing the data. If that stops being true and if I were a good developer (it wouldn't have happened in the first place) I would update this documentation. """ import operator import time from collections im...
{"/poloniex.py": ["/analyzer.py"], "/poloniex_apis/public_api.py": ["/dev_utils.py", "/settings.py"], "/poloniex_apis/api_models/lending_history.py": ["/utils.py"], "/poloniex_apis/trading_api.py": ["/dev_utils.py", "/settings.py", "/poloniex_apis/api_key_secret_util.py"], "/analyzer.py": ["/printer.py", "/poloniex_api...
26,665
BenjiLee/PoloniexAnalyzer
refs/heads/master
/printer.py
""" Some of the logic for printing and the print statements. """ class bcolors: GREEN = '\033[92m' RED = '\033[91m' END_COLOR = '\033[0m' def print_get_overview_results(btc_balance_sum, usd_balance_sum, balance_percentage): print("\nNote: Get Overview currently does not take the margin account into a...
{"/poloniex.py": ["/analyzer.py"], "/poloniex_apis/public_api.py": ["/dev_utils.py", "/settings.py"], "/poloniex_apis/api_models/lending_history.py": ["/utils.py"], "/poloniex_apis/trading_api.py": ["/dev_utils.py", "/settings.py", "/poloniex_apis/api_key_secret_util.py"], "/analyzer.py": ["/printer.py", "/poloniex_api...
26,666
BenjiLee/PoloniexAnalyzer
refs/heads/master
/poloniex_apis/api_models/deposit_withdrawal_history.py
from collections import defaultdict from poloniex_apis.api_models.ticker_price import TickerData class DWHistory: def __init__(self, history): self.withdrawals = defaultdict(float) self.deposits = defaultdict(float) self.history = history def get_dw_history(self): for deposit...
{"/poloniex.py": ["/analyzer.py"], "/poloniex_apis/public_api.py": ["/dev_utils.py", "/settings.py"], "/poloniex_apis/api_models/lending_history.py": ["/utils.py"], "/poloniex_apis/trading_api.py": ["/dev_utils.py", "/settings.py", "/poloniex_apis/api_key_secret_util.py"], "/analyzer.py": ["/printer.py", "/poloniex_api...
26,667
MichaelTowson/Stop_Spending_Money
refs/heads/master
/ssm_application/apps.py
from django.apps import AppConfig class SsmApplicationConfig(AppConfig): name = 'ssm_application'
{"/ssm_application/views.py": ["/ssm_application/models.py"]}
26,668
MichaelTowson/Stop_Spending_Money
refs/heads/master
/ssm_application/urls.py
from django.urls import path from . import views urlpatterns = [ #Render Routes path('', views.index), path('register', views.register), path('dashboard', views.dashboard), path('goals', views.goals), path('about', views.about), #Action/Redirect Routes path('logout', views.logout), path('...
{"/ssm_application/views.py": ["/ssm_application/models.py"]}
26,669
MichaelTowson/Stop_Spending_Money
refs/heads/master
/ssm_application/migrations/0001_initial.py
# Generated by Django 2.2 on 2020-12-23 01:49 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Goal', fields=[ ...
{"/ssm_application/views.py": ["/ssm_application/models.py"]}
26,670
MichaelTowson/Stop_Spending_Money
refs/heads/master
/ssm_application/models.py
from django.db import models import bcrypt, re class Manager(models.Manager): def registerUser_validator(self, postData): errors = {} # validating email EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z._-]+\.[a-zA-Z]+$') if not EMAIL_REGEX.match(postData['email']): # test whe...
{"/ssm_application/views.py": ["/ssm_application/models.py"]}
26,671
MichaelTowson/Stop_Spending_Money
refs/heads/master
/ssm_application/views.py
from django.shortcuts import render, HttpResponse, redirect from ssm_application.models import User, Goal, Transaction from django.contrib import messages import datetime import bcrypt #Render Template Views def index(request): return render(request, "index.html") def register(request): return render(request,...
{"/ssm_application/views.py": ["/ssm_application/models.py"]}
26,731
riddlet/offender_registry
refs/heads/master
/offender_registry/spiders/offender_spider.py
import scrapy from scrapy.spiders import CrawlSpider, Rule from scrapy.linkextractors import LinkExtractor from offender_registry.items import OffenderRegistryItem import re class offender_spider(CrawlSpider): name = "maryland" allowed_domains = ["www.dpscs.state.md.us"] start_urls = [ "http://www....
{"/offender_registry/spiders/offender_spider.py": ["/offender_registry/items.py"]}
26,732
riddlet/offender_registry
refs/heads/master
/offender_registry/pipelines.py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html from scrapy.pipelines.images import ImagesPipeline def clean_bulk(item, search_string, skip): k = [] for lab in search_string...
{"/offender_registry/spiders/offender_spider.py": ["/offender_registry/items.py"]}
26,733
riddlet/offender_registry
refs/heads/master
/offender_registry/items.py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class OffenderRegistryItem(scrapy.Item): # define the fields for your item here like: id_num = scrapy.Field() name = scrapy.Field() alia...
{"/offender_registry/spiders/offender_spider.py": ["/offender_registry/items.py"]}
26,741
Square789/multiframe_list
refs/heads/master
/multiframe_list/demo2.py
import tkinter as tk from multiframe_list.multiframe_list import MultiframeList def main(): root = tk.Tk() mfl = MultiframeList(root, inicolumns = ({"name": "aaaa"}, {"name": "bbbb"}), resizable = True, reorderable = True ) mfl.pack(fill = tk.BOTH, expand = 1) root.mainloop() if __name__ == "__main__": mai...
{"/multiframe_list/demo2.py": ["/multiframe_list/multiframe_list.py"], "/multiframe_list/multiframe_list.py": ["/multiframe_list/demo.py"], "/multiframe_list/demo.py": ["/multiframe_list/multiframe_list.py"], "/multiframe_list/__main__.py": ["/multiframe_list/demo.py"], "/multiframe_list/__init__.py": ["/multiframe_lis...
26,742
Square789/multiframe_list
refs/heads/master
/setup.py
import ast from setuptools import setup # Thanks: https://stackoverflow.com/questions/2058802/ # how-can-i-get-the-version-defined-in-setup-py-setuptools-in-my-package __version__ = None with open("multiframe_list/multiframe_list.py") as h: for line in h.readlines(): if line.startswith("__version__"): __ver...
{"/multiframe_list/demo2.py": ["/multiframe_list/multiframe_list.py"], "/multiframe_list/multiframe_list.py": ["/multiframe_list/demo.py"], "/multiframe_list/demo.py": ["/multiframe_list/multiframe_list.py"], "/multiframe_list/__main__.py": ["/multiframe_list/demo.py"], "/multiframe_list/__init__.py": ["/multiframe_lis...
26,743
Square789/multiframe_list
refs/heads/master
/multiframe_list/multiframe_list.py
""" A module that brings the MultiframeList class with it. Its purpose is to display items and their properties over several colums and easily format, sort and manage them as part of a UI. """ from enum import IntEnum from operator import itemgetter import os import tkinter as tk import tkinter.ttk as ttk __version__...
{"/multiframe_list/demo2.py": ["/multiframe_list/multiframe_list.py"], "/multiframe_list/multiframe_list.py": ["/multiframe_list/demo.py"], "/multiframe_list/demo.py": ["/multiframe_list/multiframe_list.py"], "/multiframe_list/__main__.py": ["/multiframe_list/demo.py"], "/multiframe_list/__init__.py": ["/multiframe_lis...
26,744
Square789/multiframe_list
refs/heads/master
/multiframe_list/demo.py
""" Shoddy demonstration of the MultiframeList. To run in, call run_demo(). """ from random import choice, randint, sample import tkinter as tk from multiframe_list.multiframe_list import MultiframeList, END, SELECTION_TYPE, WEIGHT def priceconv(data): return f"${data}" def getlongest(seq): longest = 0 for i in ...
{"/multiframe_list/demo2.py": ["/multiframe_list/multiframe_list.py"], "/multiframe_list/multiframe_list.py": ["/multiframe_list/demo.py"], "/multiframe_list/demo.py": ["/multiframe_list/multiframe_list.py"], "/multiframe_list/__main__.py": ["/multiframe_list/demo.py"], "/multiframe_list/__init__.py": ["/multiframe_lis...
26,745
Square789/multiframe_list
refs/heads/master
/multiframe_list/__main__.py
from multiframe_list.demo import run_demo if __name__ == "__main__": run_demo()
{"/multiframe_list/demo2.py": ["/multiframe_list/multiframe_list.py"], "/multiframe_list/multiframe_list.py": ["/multiframe_list/demo.py"], "/multiframe_list/demo.py": ["/multiframe_list/multiframe_list.py"], "/multiframe_list/__main__.py": ["/multiframe_list/demo.py"], "/multiframe_list/__init__.py": ["/multiframe_lis...
26,746
Square789/multiframe_list
refs/heads/master
/multiframe_list/__init__.py
from multiframe_list.multiframe_list import ( MultiframeList, SELECTION_TYPE, END, ALL, WEIGHT ) from multiframe_list.demo import run_demo __all__ = ("MultiframeList", "SELECTION_TYPE", "END", "ALL", "WEIGHT", "run_demo")
{"/multiframe_list/demo2.py": ["/multiframe_list/multiframe_list.py"], "/multiframe_list/multiframe_list.py": ["/multiframe_list/demo.py"], "/multiframe_list/demo.py": ["/multiframe_list/multiframe_list.py"], "/multiframe_list/__main__.py": ["/multiframe_list/demo.py"], "/multiframe_list/__init__.py": ["/multiframe_lis...
26,768
GeneZH/Car_Value_Evaluation
refs/heads/master
/Website/evaluation/PredictionModel/model3.py
import pandas as pd import numpy as np import re from sklearn.linear_model import LinearRegression, Lasso, Ridge, SGDRegressor, ElasticNet from sklearn.svm import SVR from sklearn.model_selection import cross_val_score, train_test_split from sklearn import datasets, linear_model, preprocessing, svm from sklearn.preproc...
{"/Website/evaluation/views.py": ["/Website/evaluation/forms.py"]}
26,769
GeneZH/Car_Value_Evaluation
refs/heads/master
/Website/evaluation/views.py
from django.shortcuts import render from .forms import CarForm from PredictionModel.predict import evaluate def index(request): # if this is a POST request we need to process the form data if request.method == 'POST': # create a form instance and populate it with data from the request: form = ...
{"/Website/evaluation/views.py": ["/Website/evaluation/forms.py"]}
26,770
GeneZH/Car_Value_Evaluation
refs/heads/master
/Website/evaluation/PredictionModel/model2.py
import pandas as pd import numpy as np from sklearn.linear_model import LinearRegression, Lasso, Ridge, SGDRegressor, ElasticNet from sklearn.svm import SVR from sklearn.model_selection import cross_val_score, train_test_split from sklearn import datasets, linear_model, preprocessing, svm from sklearn.preprocessing imp...
{"/Website/evaluation/views.py": ["/Website/evaluation/forms.py"]}
26,771
GeneZH/Car_Value_Evaluation
refs/heads/master
/DataCollection/combine.py
""" Reference: http://blog.csdn.net/bytxl/article/details/23372405 """ import csv import os allFileNum = 0 csv_head = ['make and model', 'year', 'VIN', 'condition', 'cylinders', 'drive', 'fuel', 'color', 'odometer', 'size', 'title', 'transmission', 'type', 'price'] def printPath(level, path): global allFileNum...
{"/Website/evaluation/views.py": ["/Website/evaluation/forms.py"]}
26,772
GeneZH/Car_Value_Evaluation
refs/heads/master
/KnowledgeDiscovery/cars.py
# Developed by Chu-Sheng Ku import pandas as pd import matplotlib.pyplot as plt cars = pd.read_csv('cars.csv') # Select the cars made from 1988 to 2018 cars = cars.loc[cars['year'].isin(range(1988, 2019))] cars.info() # Group the price of car by year price_groupby_year = cars['price'].groupby(cars['year']) price_gr...
{"/Website/evaluation/views.py": ["/Website/evaluation/forms.py"]}
26,773
GeneZH/Car_Value_Evaluation
refs/heads/master
/Website/evaluation/PredictionModel/predict.py
import pandas as pd import numpy as np import argparse from sklearn.linear_model import LinearRegression, Lasso, Ridge, SGDRegressor, ElasticNet from sklearn.svm import SVR from sklearn.model_selection import cross_val_score, train_test_split from sklearn import datasets, linear_model, preprocessing, svm from sklearn.p...
{"/Website/evaluation/views.py": ["/Website/evaluation/forms.py"]}
26,774
GeneZH/Car_Value_Evaluation
refs/heads/master
/KnowledgeDiscovery/yearMileage.py
import csv csv_head = ['make and model', 'year', 'VIN', 'condition', 'cylinders', 'drive', 'fuel', 'color', 'odometer', 'size', 'title', 'transmission', 'type', 'price'] dict = {} ls = [] def cal(filename): sum = 0 count = 0 cnt = 1 with open(filename, 'r') as f: reader = csv.reader(f) ...
{"/Website/evaluation/views.py": ["/Website/evaluation/forms.py"]}
26,775
GeneZH/Car_Value_Evaluation
refs/heads/master
/Website/evaluation/PredictionModel/model.py
import csv import collections import scipy import numpy as np from sklearn.feature_extraction import DictVectorizer from sklearn.linear_model import LinearRegression from sklearn.linear_model import Lasso def most_frequent_model(dataFile): #print the most frequent make-model pairs in dataset models=[] colu...
{"/Website/evaluation/views.py": ["/Website/evaluation/forms.py"]}
26,776
GeneZH/Car_Value_Evaluation
refs/heads/master
/DataCollection/crawler.py
""" Author: Yijun Zhang Time: 2017 Fall About: Data Mining Project - data collection part **************** The request header below is used on my own computer, please change if necessary. Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 Accept-Encoding:gzip, deflate, br Acc...
{"/Website/evaluation/views.py": ["/Website/evaluation/forms.py"]}
26,777
GeneZH/Car_Value_Evaluation
refs/heads/master
/Website/evaluation/forms.py
from django import forms class CarForm(forms.Form): make = forms.CharField() model = forms.CharField() year = forms.IntegerField() odometer = forms.IntegerField(min_value=0) title = forms.CharField(required=False) condition = forms.CharField(required=False)
{"/Website/evaluation/views.py": ["/Website/evaluation/forms.py"]}
26,782
bucky1134/bbdperfumers
refs/heads/master
/aromas/migrations/0002_aroma_botanicalname.py
# Generated by Django 2.1.7 on 2019-04-25 07:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('aromas', '0001_initial'), ] operations = [ migrations.AddField( model_name='aroma', name='Botanicalname', ...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,783
bucky1134/bbdperfumers
refs/heads/master
/attars/urls.py
from django.urls import path from . import views urlpatterns=[ path('Attar', views.Attar , name='Attar'), path('<int:attarss_id>',views.attarss,name='attarss'), ]
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,784
bucky1134/bbdperfumers
refs/heads/master
/florals/urls.py
from django.urls import path from . import views urlpatterns=[ path('Floural', views.Floral , name='Floural'), path('<int:floral_id>',views.floralss,name='floralss'), ]
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,785
bucky1134/bbdperfumers
refs/heads/master
/essentials/urls.py
from django.urls import path from . import views urlpatterns=[ path('Essential', views.Essential , name='Essential'), path('<int:ess_id>',views.ess,name='ess'), ]
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,786
bucky1134/bbdperfumers
refs/heads/master
/aromas/migrations/0003_aroma_maxprice.py
# Generated by Django 2.1.7 on 2019-05-02 15:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('aromas', '0002_aroma_botanicalname'), ] operations = [ migrations.AddField( model_name='aroma', name='maxprice', ...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,787
bucky1134/bbdperfumers
refs/heads/master
/pages/urls.py
from django.urls import path from . import views urlpatterns=[ path('',views.index, name='index'), path('about', views.about, name='about'), path('Account', views.Account , name='Account'), path('mnv', views.mnv , name='mnv'), path('Quality', views.Quality , name='Quality'), path('search', vie...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,788
bucky1134/bbdperfumers
refs/heads/master
/attars/views.py
from django.shortcuts import get_object_or_404,render from django.core.paginator import EmptyPage,PageNotAnInteger,Paginator # Create your views here. from .models import attar def Attar(request): attars=attar.objects.all() paginator=Paginator(attars,6) page=request.GET.get('page') page_attars=paginato...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,789
bucky1134/bbdperfumers
refs/heads/master
/featuredproduct/urls.py
from django.urls import path from . import views urlpatterns=[ path('<int:fps_id>',views.fpsss,name='fpss'), ]
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,790
bucky1134/bbdperfumers
refs/heads/master
/florals/admin.py
from django.contrib import admin # Register your models here. from .models import floral admin.site.register(floral)
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,791
bucky1134/bbdperfumers
refs/heads/master
/essentials/migrations/0006_auto_20190504_1247.py
# Generated by Django 2.1.7 on 2019-05-04 07:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('essentials', '0005_essential_variation'), ] operations = [ migrations.RenameField( model_name='essential', old_name=...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,792
bucky1134/bbdperfumers
refs/heads/master
/featuredproduct/migrations/0004_auto_20190508_2059.py
# Generated by Django 2.1.7 on 2019-05-08 15:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('featuredproduct', '0003_fp_qtytype'), ] operations = [ migrations.AddField( model_name='fp', name='variation1', ...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,793
bucky1134/bbdperfumers
refs/heads/master
/florals/migrations/0003_floral_maxprice.py
# Generated by Django 2.1.7 on 2019-05-02 15:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('florals', '0002_floral_longdesc'), ] operations = [ migrations.AddField( model_name='floral', name='maxprice', ...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,794
bucky1134/bbdperfumers
refs/heads/master
/florals/views.py
from django.shortcuts import get_object_or_404,render from django.core.paginator import EmptyPage,PageNotAnInteger,Paginator # Create your views here. from .models import floral def Floral(request): florals=floral.objects.all() paginator=Paginator(florals,6) page=request.GET.get('page') page_florals=pa...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,795
bucky1134/bbdperfumers
refs/heads/master
/essentials/views.py
from django.shortcuts import get_object_or_404, render from django.core.paginator import EmptyPage,PageNotAnInteger,Paginator # Create your views here. from .models import essential def Essential(request): essentials=essential.objects.all() paginator=Paginator(essentials,6) page=request.GET.get('page') ...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,796
bucky1134/bbdperfumers
refs/heads/master
/essentials/migrations/0004_auto_20190427_1143.py
# Generated by Django 2.1.7 on 2019-04-27 06:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('essentials', '0003_auto_20190427_1142'), ] operations = [ migrations.AddField( model_name='essential', name='maxpric...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,797
bucky1134/bbdperfumers
refs/heads/master
/aromas/models.py
from django.db import models class aroma(models.Model): title=models.CharField(max_length=200) shordesc=models.TextField(blank=True) longdesc=models.TextField(blank=True) origin=models.TextField(blank=True) Botanicalname=models.TextField(blank=True) price=models.IntegerField() maxprice=mode...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,798
bucky1134/bbdperfumers
refs/heads/master
/florals/apps.py
from django.apps import AppConfig class FloralsConfig(AppConfig): name = 'florals'
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,799
bucky1134/bbdperfumers
refs/heads/master
/aromas/urls.py
from django.urls import path from . import views urlpatterns=[ path('Aroma', views.Aroma , name='Aroma'), path('<int:ass_id>',views.ass,name='ass'), ]
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,800
bucky1134/bbdperfumers
refs/heads/master
/essentials/admin.py
from django.contrib import admin from .models import essential admin.site.register(essential) # Register your models here.
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,801
bucky1134/bbdperfumers
refs/heads/master
/contact/views.py
from django.shortcuts import render, redirect from django.contrib import messages from django.http import HttpResponse from django.core.mail import send_mail from .models import Contact import time def contact(request): if request.method == 'POST': pname=request.POST['listing'] fname=request.POST['...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,802
bucky1134/bbdperfumers
refs/heads/master
/attars/migrations/0002_attar_maxprice.py
# Generated by Django 2.1.7 on 2019-05-02 15:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('attars', '0001_initial'), ] operations = [ migrations.AddField( model_name='attar', name='maxprice', fie...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,803
bucky1134/bbdperfumers
refs/heads/master
/aromas/apps.py
from django.apps import AppConfig class AromasConfig(AppConfig): name = 'aromas'
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,804
bucky1134/bbdperfumers
refs/heads/master
/pages/views.py
from django.shortcuts import render, redirect from django.http import HttpResponse from django.contrib import messages from contact.models import Contact from featuredproduct.models import fp from attars.models import attar from essentials.models import essential from aromas.models import aroma from florals.models impo...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,805
bucky1134/bbdperfumers
refs/heads/master
/florals/migrations/0002_floral_longdesc.py
# Generated by Django 2.1.7 on 2019-04-25 11:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('florals', '0001_initial'), ] operations = [ migrations.AddField( model_name='floral', name='longdesc', f...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,806
bucky1134/bbdperfumers
refs/heads/master
/essentials/migrations/0002_auto_20190425_1155.py
# Generated by Django 2.1.7 on 2019-04-25 06:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('essentials', '0001_initial'), ] operations = [ migrations.AddField( model_name='essential', name='botanicalname', ...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,807
bucky1134/bbdperfumers
refs/heads/master
/authentication/views.py
from django.shortcuts import render, redirect from django.http import HttpResponse from django.contrib.auth.models import models, User, auth from django.contrib import messages from django.core.mail import send_mail from featuredproduct.models import fp import random def register(request): if request.method == 'P...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,808
bucky1134/bbdperfumers
refs/heads/master
/aromas/views.py
from django.shortcuts import get_object_or_404, render from django.core.paginator import EmptyPage,PageNotAnInteger,Paginator # Create your views here. from .models import aroma def Aroma(request): aromas=aroma.objects.all() paginator=Paginator(aromas,6) page=request.GET.get('page') page_aroma=paginat...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,809
bucky1134/bbdperfumers
refs/heads/master
/essentials/migrations/0003_auto_20190427_1142.py
# Generated by Django 2.1.7 on 2019-04-27 06:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('essentials', '0002_auto_20190425_1155'), ] operations = [ migrations.AlterField( model_name='essential', name='price...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,810
bucky1134/bbdperfumers
refs/heads/master
/attars/apps.py
from django.apps import AppConfig class AttarsConfig(AppConfig): name = 'attars'
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,811
bucky1134/bbdperfumers
refs/heads/master
/attars/migrations/0003_auto_20190502_2107.py
# Generated by Django 2.1.7 on 2019-05-02 15:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('attars', '0002_attar_maxprice'), ] operations = [ migrations.AlterField( model_name='attar', name='maxprice', ...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,812
bucky1134/bbdperfumers
refs/heads/master
/featuredproduct/apps.py
from django.apps import AppConfig class FeaturedproductConfig(AppConfig): name = 'featuredproduct'
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,813
bucky1134/bbdperfumers
refs/heads/master
/contact/models.py
from django.db import models from datetime import datetime # Create your models here. class Contact(models.Model): listing=models.CharField(max_length=200) fname=models.CharField(max_length=200) lname=models.CharField(max_length=200) email=models.CharField(max_length=200) phone=models.CharField(max...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,814
bucky1134/bbdperfumers
refs/heads/master
/contact/migrations/0003_auto_20190505_1718.py
# Generated by Django 2.1.7 on 2019-05-05 11:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('contact', '0002_contact_vendor_comments'), ] operations = [ migrations.AlterField( model_name='contact', name='vendo...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,815
bucky1134/bbdperfumers
refs/heads/master
/featuredproduct/views.py
from django.shortcuts import get_object_or_404, render # Create your views here. from .models import fp def fpsss(request, fps_id): fps=get_object_or_404(fp, pk=fps_id) context = { 'fps':fps } return render(request, 'pages/fpssingle.html',context)
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,816
bucky1134/bbdperfumers
refs/heads/master
/contact/admin.py
from django.contrib import admin # Register your models here. from .models import Contact class ContactAdmin(admin.ModelAdmin): list_display = ('id','username','listing','fname','lname','email','contact_date','message') list_display_links = ('id','username','listing','fname','lname','email','contact_date','me...
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,817
bucky1134/bbdperfumers
refs/heads/master
/aromas/admin.py
from django.contrib import admin # Register your models here. from .models import aroma admin.site.register(aroma)
{"/contact/views.py": ["/contact/models.py"], "/pages/views.py": ["/contact/models.py", "/aromas/models.py"], "/aromas/views.py": ["/aromas/models.py"], "/contact/admin.py": ["/contact/models.py"], "/aromas/admin.py": ["/aromas/models.py"]}
26,818
danielsalim/TUGAS-BESAR
refs/heads/main
/ubahjumlah.py
from ubahdata import split from ubahdata import savenewdata # Program ubahjumlah.py # menambah atau mengurangi gadget/consumable yang terdaftar # KAMUS # variabel # fungsi dan prosedur def ubahjumlah(): # I.S. gadget/consumable belum ditambah/dikurangi # F.S. gadget/consumable sudah ditambah/dikurangi # KAMUS LOKAL ...
{"/main.py": ["/register.py", "/login.py", "/cari_tahun.py", "/carirarity.py", "/ubahjumlah.py", "/hapusitem.py"], "/cari_tahun.py": ["/carirarity.py"]}
26,819
danielsalim/TUGAS-BESAR
refs/heads/main
/main.py
from register import register from login import login from cari_tahun import caritahun from carirarity import carirarity from ubahjumlah import ubahjumlah from hapusitem import hapusitem from help import help_admin from help import help_user login() role = login.role while True: print("Ketik 'help' untuk melihat s...
{"/main.py": ["/register.py", "/login.py", "/cari_tahun.py", "/carirarity.py", "/ubahjumlah.py", "/hapusitem.py"], "/cari_tahun.py": ["/carirarity.py"]}
26,820
danielsalim/TUGAS-BESAR
refs/heads/main
/carirarity.py
from ubahdata import split def carirarity(): f = open("gadget.csv", "r") lines = f.readlines() f.close() req = input("Masukkan rarity: ") data_gadget = split(lines) state = True print("\nHasil pencarian: ") for i in range (len(data_gadget)): if (data_gadget[i][4] == r...
{"/main.py": ["/register.py", "/login.py", "/cari_tahun.py", "/carirarity.py", "/ubahjumlah.py", "/hapusitem.py"], "/cari_tahun.py": ["/carirarity.py"]}
26,821
danielsalim/TUGAS-BESAR
refs/heads/main
/hapusitem.py
from ubahdata import split from ubahdata import savenewdata def hapusitem(): gadget = open("gadget.csv", "r") g = gadget.readlines() gadget.close() consumable = open("consumable.csv", "r") c = consumable.readlines() consumable.close() data_gadget = split(g) data_consumable = split(c) ...
{"/main.py": ["/register.py", "/login.py", "/cari_tahun.py", "/carirarity.py", "/ubahjumlah.py", "/hapusitem.py"], "/cari_tahun.py": ["/carirarity.py"]}
26,822
danielsalim/TUGAS-BESAR
refs/heads/main
/register.py
# PROGRAM register.py # program untuk mendaftar user # KAMUS # variabel # fungsi/prosedur def register(): # i.s. : akun dengan username tertentu belum terdaftar # f.s. : akun sudah terdaftar # KAMUS LOKAL # user : array of string # data_nama, data_username, data_password, data_alamat : array of string # nama, userna...
{"/main.py": ["/register.py", "/login.py", "/cari_tahun.py", "/carirarity.py", "/ubahjumlah.py", "/hapusitem.py"], "/cari_tahun.py": ["/carirarity.py"]}
26,823
danielsalim/TUGAS-BESAR
refs/heads/main
/login.py
# PROGRAM login.py # program untuk login ke Kantong Ajaib # KAMUS # variabel # fungsi/prosedur def login(): # i.s. : user/admin belum login # f.s. : user/admin sudah login # KAMUS LOKAL # user : array of string # data_username, data_password, data_role : array of string # username, password : string # ALGORITMA PRO...
{"/main.py": ["/register.py", "/login.py", "/cari_tahun.py", "/carirarity.py", "/ubahjumlah.py", "/hapusitem.py"], "/cari_tahun.py": ["/carirarity.py"]}
26,824
danielsalim/TUGAS-BESAR
refs/heads/main
/cari_tahun.py
from carirarity import outputGadget def caritahun(): f = open("gadget.csv", "r") gadget = f.readlines() f.close() print() tahun = int(input("Masukkan tahun: ")) kategori = input("Masukkan kategori: ") print() print("Hasil pencarian:") print() # Mengubah tanda petik dan enter ...
{"/main.py": ["/register.py", "/login.py", "/cari_tahun.py", "/carirarity.py", "/ubahjumlah.py", "/hapusitem.py"], "/cari_tahun.py": ["/carirarity.py"]}
26,866
maximverwilst/deepimagehashing-VAE
refs/heads/main
/vis_util.py
import matplotlib.pyplot as plt from train import tbh_train from model.tbh import TBH from util.eval_tools import eval_cls_map, gen_sim_mat, compute_hamming_dist from util.distribution_tools import get_mean_logvar import tensorflow as tf from util.data.dataset import Dataset import numpy as np import os import sys from...
{"/vis_util.py": ["/model/tbh.py", "/util/distribution_tools.py", "/util/data/dataset.py", "/meta.py"], "/vis.py": ["/vis_util.py", "/util/data/dataset.py", "/meta.py", "/util/data/set_processor.py"], "/layer/encodec.py": ["/layer/binary_activation.py", "/util/distribution_tools.py"], "/util/data/make_data.py": ["/util...
26,867
maximverwilst/deepimagehashing-VAE
refs/heads/main
/vis.py
import vis_util import tensorflow as tf from util.data.dataset import Dataset from meta import REPO_PATH from util.data.set_processor import SET_DIM, SET_LABEL, SET_SPLIT, SET_SIZE import matplotlib.pyplot as plt path = "\\result\\cifar10\\32bit\\model" loaded_model = tf.keras.models.load_model(REPO_PATH + path) set_...
{"/vis_util.py": ["/model/tbh.py", "/util/distribution_tools.py", "/util/data/dataset.py", "/meta.py"], "/vis.py": ["/vis_util.py", "/util/data/dataset.py", "/meta.py", "/util/data/set_processor.py"], "/layer/encodec.py": ["/layer/binary_activation.py", "/util/distribution_tools.py"], "/util/data/make_data.py": ["/util...
26,868
maximverwilst/deepimagehashing-VAE
refs/heads/main
/layer/encodec.py
from __future__ import absolute_import, division, print_function, unicode_literals import tensorflow as tf from layer.binary_activation import binary_activation, custom_activation from util.distribution_tools import get_mean_logvar, split_node class VaeEncoderGeco(tf.keras.layers.Layer): def compute_output_signatu...
{"/vis_util.py": ["/model/tbh.py", "/util/distribution_tools.py", "/util/data/dataset.py", "/meta.py"], "/vis.py": ["/vis_util.py", "/util/data/dataset.py", "/meta.py", "/util/data/set_processor.py"], "/layer/encodec.py": ["/layer/binary_activation.py", "/util/distribution_tools.py"], "/util/data/make_data.py": ["/util...
26,869
maximverwilst/deepimagehashing-VAE
refs/heads/main
/meta.py
import os REPO_PATH = os.path.abspath(__file__)[:os.path.abspath(__file__).rfind(os.path.sep)]
{"/vis_util.py": ["/model/tbh.py", "/util/distribution_tools.py", "/util/data/dataset.py", "/meta.py"], "/vis.py": ["/vis_util.py", "/util/data/dataset.py", "/meta.py", "/util/data/set_processor.py"], "/layer/encodec.py": ["/layer/binary_activation.py", "/util/distribution_tools.py"], "/util/data/make_data.py": ["/util...
26,870
maximverwilst/deepimagehashing-VAE
refs/heads/main
/util/data/make_data.py
import os import tensorflow as tf from util.data.set_processor import SET_PROCESSOR, SET_SPLIT from meta import REPO_PATH # noinspection PyUnusedLocal def default_processor(root_folder): raise NotImplementedError def process_mat(set_name, root_folder): processor = SET_PROCESSOR.get(set_name) return pro...
{"/vis_util.py": ["/model/tbh.py", "/util/distribution_tools.py", "/util/data/dataset.py", "/meta.py"], "/vis.py": ["/vis_util.py", "/util/data/dataset.py", "/meta.py", "/util/data/set_processor.py"], "/layer/encodec.py": ["/layer/binary_activation.py", "/util/distribution_tools.py"], "/util/data/make_data.py": ["/util...
26,871
maximverwilst/deepimagehashing-VAE
refs/heads/main
/model/tbh.py
from __future__ import absolute_import, division, print_function, unicode_literals import tensorflow as tf from layer import encodec, twin_bottleneck from layer.binary_activation import custom_activation from util.distribution_tools import get_mean_logvar from util.data.set_processor import SET_DIM # noinspection PyAb...
{"/vis_util.py": ["/model/tbh.py", "/util/distribution_tools.py", "/util/data/dataset.py", "/meta.py"], "/vis.py": ["/vis_util.py", "/util/data/dataset.py", "/meta.py", "/util/data/set_processor.py"], "/layer/encodec.py": ["/layer/binary_activation.py", "/util/distribution_tools.py"], "/util/data/make_data.py": ["/util...
26,872
maximverwilst/deepimagehashing-VAE
refs/heads/main
/util/distribution_tools.py
import tensorflow as tf import numpy as np def log_normal_pdf(sample, mean, logvar, raxis=1): log2pi = tf.math.log(2. * np.pi) return -.5 * ((tf.exp(-logvar/2)*(sample - mean)) ** 2. + logvar + log2pi) def get_mean_logvar(enc, x): fc_1 = enc.fc_1(x) bbn = enc.fc_2_1(fc_1) mean, logvar = split_node(bbn) r...
{"/vis_util.py": ["/model/tbh.py", "/util/distribution_tools.py", "/util/data/dataset.py", "/meta.py"], "/vis.py": ["/vis_util.py", "/util/data/dataset.py", "/meta.py", "/util/data/set_processor.py"], "/layer/encodec.py": ["/layer/binary_activation.py", "/util/distribution_tools.py"], "/util/data/make_data.py": ["/util...
26,873
maximverwilst/deepimagehashing-VAE
refs/heads/main
/util/data/set_processor.py
import scipy.io as sio import numpy as np import os SET_SPLIT = ['train', 'test'] SET_DIM = {'cifar10': 4096, "NETosis": 20000, "multimodal":400,"coco":2048,"2018_02_27_P103_evHeLa_4M":1280,"2018_03_16_P103_shPerk_bQ":1280} SET_LABEL = {'cifar10': 10, "NETosis": 2, "multimodal":1,"coco":80,"2018_02_27_P103_evHeLa_4M":...
{"/vis_util.py": ["/model/tbh.py", "/util/distribution_tools.py", "/util/data/dataset.py", "/meta.py"], "/vis.py": ["/vis_util.py", "/util/data/dataset.py", "/meta.py", "/util/data/set_processor.py"], "/layer/encodec.py": ["/layer/binary_activation.py", "/util/distribution_tools.py"], "/util/data/make_data.py": ["/util...
26,874
maximverwilst/deepimagehashing-VAE
refs/heads/main
/train/tbh_train.py
from __future__ import absolute_import, division, print_function, unicode_literals import tensorflow as tf from model.tbh import TBH from util.data.dataset import Dataset from util.eval_tools import eval_cls_map from util.distribution_tools import log_normal_pdf, calc_mi, get_mean_logvar, elbo_decomposition, split_node...
{"/vis_util.py": ["/model/tbh.py", "/util/distribution_tools.py", "/util/data/dataset.py", "/meta.py"], "/vis.py": ["/vis_util.py", "/util/data/dataset.py", "/meta.py", "/util/data/set_processor.py"], "/layer/encodec.py": ["/layer/binary_activation.py", "/util/distribution_tools.py"], "/util/data/make_data.py": ["/util...
26,875
maximverwilst/deepimagehashing-VAE
refs/heads/main
/util/data/dataset.py
import tensorflow as tf import os import numpy as np from meta import REPO_PATH from util.data.set_processor import SET_DIM, SET_LABEL, SET_SPLIT, SET_SIZE class ParsedRecord(object): def __init__(self, **kwargs): self.set_name = kwargs.get('set_name', 'cifar10') self.part_name = kwargs.get('part_...
{"/vis_util.py": ["/model/tbh.py", "/util/distribution_tools.py", "/util/data/dataset.py", "/meta.py"], "/vis.py": ["/vis_util.py", "/util/data/dataset.py", "/meta.py", "/util/data/set_processor.py"], "/layer/encodec.py": ["/layer/binary_activation.py", "/util/distribution_tools.py"], "/util/data/make_data.py": ["/util...
26,876
maximverwilst/deepimagehashing-VAE
refs/heads/main
/run_tbh.py
from __future__ import absolute_import, division, print_function, unicode_literals from train import tbh_train tbh_train.train('cifar10', 32, 512, 400)
{"/vis_util.py": ["/model/tbh.py", "/util/distribution_tools.py", "/util/data/dataset.py", "/meta.py"], "/vis.py": ["/vis_util.py", "/util/data/dataset.py", "/meta.py", "/util/data/set_processor.py"], "/layer/encodec.py": ["/layer/binary_activation.py", "/util/distribution_tools.py"], "/util/data/make_data.py": ["/util...
26,877
maximverwilst/deepimagehashing-VAE
refs/heads/main
/layer/twin_bottleneck.py
from __future__ import absolute_import, division, print_function, unicode_literals import tensorflow as tf from layer import gcn import matplotlib.pyplot as plt @tf.function def build_adjacency_hamming(tensor_in): """ Hamming-distance-based graph. It is self-connected. :param tensor_in: [N D] :return:...
{"/vis_util.py": ["/model/tbh.py", "/util/distribution_tools.py", "/util/data/dataset.py", "/meta.py"], "/vis.py": ["/vis_util.py", "/util/data/dataset.py", "/meta.py", "/util/data/set_processor.py"], "/layer/encodec.py": ["/layer/binary_activation.py", "/util/distribution_tools.py"], "/util/data/make_data.py": ["/util...
26,878
maximverwilst/deepimagehashing-VAE
refs/heads/main
/layer/gcn.py
from __future__ import absolute_import, division, print_function, unicode_literals import tensorflow as tf OVERFLOW_MARGIN = 1e-8 # noinspection PyAbstractClass class GCNLayer(tf.keras.layers.Layer): def __init__(self, out_dim, **kwargs): super().__init__(**kwargs) self.out_dim = out_dim ...
{"/vis_util.py": ["/model/tbh.py", "/util/distribution_tools.py", "/util/data/dataset.py", "/meta.py"], "/vis.py": ["/vis_util.py", "/util/data/dataset.py", "/meta.py", "/util/data/set_processor.py"], "/layer/encodec.py": ["/layer/binary_activation.py", "/util/distribution_tools.py"], "/util/data/make_data.py": ["/util...
26,879
maximverwilst/deepimagehashing-VAE
refs/heads/main
/util/data/array_reader.py
import tensorflow as tf class ArrayReader(object): def __init__(self, set_name='1', batch_size=256, pre_process=False): config = tf.compat.v1.ConfigProto( device_count={'GPU': 0} ) self.sess = tf.compat.v1.Session(config=config) self.set_name = set_name self.bat...
{"/vis_util.py": ["/model/tbh.py", "/util/distribution_tools.py", "/util/data/dataset.py", "/meta.py"], "/vis.py": ["/vis_util.py", "/util/data/dataset.py", "/meta.py", "/util/data/set_processor.py"], "/layer/encodec.py": ["/layer/binary_activation.py", "/util/distribution_tools.py"], "/util/data/make_data.py": ["/util...
26,880
maximverwilst/deepimagehashing-VAE
refs/heads/main
/layer/binary_activation.py
from __future__ import absolute_import, division, print_function, unicode_literals import tensorflow as tf def sigmoid_sign(logits, eps): """ {0,1} sign function with (1) sigmoid activation (2) perturbation of eps in sigmoid :param logits: bottom layer output :param eps: randomly sampled values betwee...
{"/vis_util.py": ["/model/tbh.py", "/util/distribution_tools.py", "/util/data/dataset.py", "/meta.py"], "/vis.py": ["/vis_util.py", "/util/data/dataset.py", "/meta.py", "/util/data/set_processor.py"], "/layer/encodec.py": ["/layer/binary_activation.py", "/util/distribution_tools.py"], "/util/data/make_data.py": ["/util...
26,881
RafalKornel/pictionar
refs/heads/main
/server/app/main/views.py
from flask.globals import current_app from flask.helpers import send_from_directory from flask_wtf.csrf import generate_csrf from . import main from flask import render_template, request, Response, json, jsonify from flask_login import login_required, current_user, logout_user from .. import db from ..models import Gr...
{"/server/app/main/views.py": ["/server/app/__init__.py", "/server/app/models.py", "/server/app/main/utilities.py", "/server/app/main/forms.py"], "/server/app/models.py": ["/server/app/__init__.py"], "/server/kalambury.py": ["/server/app/__init__.py"], "/server/app/auth/views.py": ["/server/app/auth/forms.py", "/server...
26,882
RafalKornel/pictionar
refs/heads/main
/migrations/versions/7c22990aa3e1_.py
"""empty message Revision ID: 7c22990aa3e1 Revises: a60eaab47053 Create Date: 2021-01-05 23:55:18.741694 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '7c22990aa3e1' down_revision = 'a60eaab47053' branch_labels = None depends_on = None def upgrade(): # ...
{"/server/app/main/views.py": ["/server/app/__init__.py", "/server/app/models.py", "/server/app/main/utilities.py", "/server/app/main/forms.py"], "/server/app/models.py": ["/server/app/__init__.py"], "/server/kalambury.py": ["/server/app/__init__.py"], "/server/app/auth/views.py": ["/server/app/auth/forms.py", "/server...
26,883
RafalKornel/pictionar
refs/heads/main
/server/config.py
import os from datetime import timedelta basedir = os.path.abspath(os.path.dirname(__file__)) class Config: SECRET_KEY = os.environ.get("SECRET_KEY", "something very hard to guess kalambury i guess") SQLALCHEMY_TRACK_MODIFICATIONS = False PERMANENT_SESSION_LIFETIME = timedelta(days=31) WTF_CSRF_TIME_LI...
{"/server/app/main/views.py": ["/server/app/__init__.py", "/server/app/models.py", "/server/app/main/utilities.py", "/server/app/main/forms.py"], "/server/app/models.py": ["/server/app/__init__.py"], "/server/kalambury.py": ["/server/app/__init__.py"], "/server/app/auth/views.py": ["/server/app/auth/forms.py", "/server...
26,884
RafalKornel/pictionar
refs/heads/main
/server/app/models.py
from flask_sqlalchemy import SQLAlchemy from flask_login import UserMixin from . import db, login_manager from werkzeug.security import check_password_hash, generate_password_hash @login_manager.user_loader def load_user(user_id): return User.query.get(int(user_id)) associations = db.Table("associations", ...
{"/server/app/main/views.py": ["/server/app/__init__.py", "/server/app/models.py", "/server/app/main/utilities.py", "/server/app/main/forms.py"], "/server/app/models.py": ["/server/app/__init__.py"], "/server/kalambury.py": ["/server/app/__init__.py"], "/server/app/auth/views.py": ["/server/app/auth/forms.py", "/server...
26,885
RafalKornel/pictionar
refs/heads/main
/server/kalambury.py
from .app import create_app, db, models from flask_migrate import Migrate from flask import request, session import click app = create_app("production") @app.shell_context_processor def make_shell_context(): return { "db":db, "User":models.User, "Group":models.Group, "Word":mod...
{"/server/app/main/views.py": ["/server/app/__init__.py", "/server/app/models.py", "/server/app/main/utilities.py", "/server/app/main/forms.py"], "/server/app/models.py": ["/server/app/__init__.py"], "/server/kalambury.py": ["/server/app/__init__.py"], "/server/app/auth/views.py": ["/server/app/auth/forms.py", "/server...
26,886
RafalKornel/pictionar
refs/heads/main
/server/app/main/utilities.py
import re def validate_word(word): return len(word) >= 3 and len(word) < 30 and (re.fullmatch("[a-zA-Z0-9ąćęłńóśźżĄĘŁŃÓŚŹŻ ]+", word) is not None) def clean_input(words): words.split(",") return list(set(map(lambda w : w.strip(), words.split(","))))
{"/server/app/main/views.py": ["/server/app/__init__.py", "/server/app/models.py", "/server/app/main/utilities.py", "/server/app/main/forms.py"], "/server/app/models.py": ["/server/app/__init__.py"], "/server/kalambury.py": ["/server/app/__init__.py"], "/server/app/auth/views.py": ["/server/app/auth/forms.py", "/server...
26,887
RafalKornel/pictionar
refs/heads/main
/server/app/auth/views.py
from flask.helpers import make_response from flask.templating import render_template from flask_login.utils import login_required from . import auth from .forms import RegisterForm, LoginForm, CreateGroupForm, JoinGroupForm from flask import redirect, url_for, request, Response from flask_login import login_user, logou...
{"/server/app/main/views.py": ["/server/app/__init__.py", "/server/app/models.py", "/server/app/main/utilities.py", "/server/app/main/forms.py"], "/server/app/models.py": ["/server/app/__init__.py"], "/server/kalambury.py": ["/server/app/__init__.py"], "/server/app/auth/views.py": ["/server/app/auth/forms.py", "/server...
26,888
RafalKornel/pictionar
refs/heads/main
/server/app/__init__.py
from flask import Flask from flask.helpers import url_for from flask_login import login_manager from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_wtf.csrf import CSRFProtect from ..config import config import os db = SQLAlchemy() csrf = CSRFProtect() login_manager = LoginManager()...
{"/server/app/main/views.py": ["/server/app/__init__.py", "/server/app/models.py", "/server/app/main/utilities.py", "/server/app/main/forms.py"], "/server/app/models.py": ["/server/app/__init__.py"], "/server/kalambury.py": ["/server/app/__init__.py"], "/server/app/auth/views.py": ["/server/app/auth/forms.py", "/server...
26,889
RafalKornel/pictionar
refs/heads/main
/migrations/versions/a3dd231edad5_.py
"""empty message Revision ID: a3dd231edad5 Revises: fad5a5dc43bb Create Date: 2020-11-13 01:13:18.889466 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'a3dd231edad5' down_revision = 'fad5a5dc43bb' branch_labels = None depends_on = None def upgrade(): # ...
{"/server/app/main/views.py": ["/server/app/__init__.py", "/server/app/models.py", "/server/app/main/utilities.py", "/server/app/main/forms.py"], "/server/app/models.py": ["/server/app/__init__.py"], "/server/kalambury.py": ["/server/app/__init__.py"], "/server/app/auth/views.py": ["/server/app/auth/forms.py", "/server...
26,890
RafalKornel/pictionar
refs/heads/main
/server/app/main/forms.py
from flask_wtf import FlaskForm from wtforms import StringField, ValidationError from wtforms.validators import DataRequired, Length, Regexp from ..models import Theme name_regex = Regexp('^[A-Za-z][A-Za-z0-9 ]*$', 0, "Field can only contain letters.") hex_regex = Regexp('^#[a-fA-F0-9]{6}$', 0, "Invalid c...
{"/server/app/main/views.py": ["/server/app/__init__.py", "/server/app/models.py", "/server/app/main/utilities.py", "/server/app/main/forms.py"], "/server/app/models.py": ["/server/app/__init__.py"], "/server/kalambury.py": ["/server/app/__init__.py"], "/server/app/auth/views.py": ["/server/app/auth/forms.py", "/server...
26,891
RafalKornel/pictionar
refs/heads/main
/migrations/versions/fad5a5dc43bb_.py
"""empty message Revision ID: fad5a5dc43bb Revises: Create Date: 2020-11-13 00:41:40.233886 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'fad5a5dc43bb' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
{"/server/app/main/views.py": ["/server/app/__init__.py", "/server/app/models.py", "/server/app/main/utilities.py", "/server/app/main/forms.py"], "/server/app/models.py": ["/server/app/__init__.py"], "/server/kalambury.py": ["/server/app/__init__.py"], "/server/app/auth/views.py": ["/server/app/auth/forms.py", "/server...
26,892
RafalKornel/pictionar
refs/heads/main
/server/app/auth/forms.py
from flask.app import Flask from flask_wtf import FlaskForm from wtforms import StringField, PasswordField from wtforms.validators import DataRequired, EqualTo, Length, Regexp, ValidationError from ..models import User, Group regex = Regexp('^[A-Za-z][A-Za-z0-9_.]*$', 0, "Field must have only letters, num...
{"/server/app/main/views.py": ["/server/app/__init__.py", "/server/app/models.py", "/server/app/main/utilities.py", "/server/app/main/forms.py"], "/server/app/models.py": ["/server/app/__init__.py"], "/server/kalambury.py": ["/server/app/__init__.py"], "/server/app/auth/views.py": ["/server/app/auth/forms.py", "/server...
26,918
benterris/chordstransposer
refs/heads/master
/chordstransposer/config.py
ALLTONES = "A#|B#|C#|D#|E#|F#|G#|Ab|Bb|Cb|Db|Eb|Fb|Gb|A|B|C|D|E|F|G" SCALES = """A Bb B C C# D Eb E F F# G G# Bb B C Db D Eb E F Gb G Ab A B C C# D D# E F F# G G# A A# C C# D Eb E F F# G Ab A Bb B Db D Eb Fb F Gb G Ab A Bb B C D Eb E F F# G Ab A Bb B C C# Eb E F Gb G Ab A Bb Cb C Db D E F F# G G# A A# B C C# D D# F F#...
{"/chordstransposer/transposer.py": ["/chordstransposer/config.py"], "/chordstransposer/__init__.py": ["/chordstransposer/transposer.py"]}
26,919
benterris/chordstransposer
refs/heads/master
/chordstransposer/transposer.py
import re import sys from .config import ALLTONES, CHORDSYMBOLS, EQUIVALENT, SCALES def transpose(text, from_tone, to_tone): """ Given a text with words and chords, keep the words and transpose the chords Args: text (str): the lyrics and chords of the song to be transposed from_tone (...
{"/chordstransposer/transposer.py": ["/chordstransposer/config.py"], "/chordstransposer/__init__.py": ["/chordstransposer/transposer.py"]}