index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
29,039
GulaJan/currency_converter
refs/heads/master
/api.py
#!/usr/bin/python3.6 # -*- coding: utf-8 -*- # Author: Jan Gula # Date: 02/2018 # File: API using Flask import sys from flask import Flask, request, jsonify from currency_converter import fetch_rates, convert_to_output_currency, recognize_symbol app = Flask(__name__) @app.route('/currency_converter') def api(): amou...
{"/cli.py": ["/currency_converter.py", "/constants.py"], "/api.py": ["/currency_converter.py"], "/currency_converter.py": ["/constants.py"]}
29,040
GulaJan/currency_converter
refs/heads/master
/currency_converter.py
#!/usr/bin/python3.6 # -*- coding: utf-8 -*- # Author: Jan Gula # Date: 02/2018 # File: Shared functions for both CLI and API import urllib.request import xmltodict import json import decimal from constants import decipher_symbol def fetch_rates(): url = "http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml"...
{"/cli.py": ["/currency_converter.py", "/constants.py"], "/api.py": ["/currency_converter.py"], "/currency_converter.py": ["/constants.py"]}
29,058
Wiatrogon/pyimgui
refs/heads/master
/doc/source/gen_example.py
# -*- coding: utf-8 -*- from inspect import cleandoc import os import glfw import OpenGL.GL as gl from PIL import Image import imgui from imgui.impl import GlfwImpl def render_snippet( source, file_path, title="", width=200, height=200, auto_window=False, auto_layout=False, output_di...
{"/doc/source/gen_example.py": ["/imgui/__init__.py", "/imgui/impl/__init__.py"], "/imgui/impl/_glfw.py": ["/imgui/__init__.py"], "/imgui/impl/__init__.py": ["/imgui/impl/_glfw.py"]}
29,059
Wiatrogon/pyimgui
refs/heads/master
/imgui/__init__.py
# -*- coding: utf-8 -*- VERSION = (0, 0, 0) # PEP 386 __version__ = ".".join([str(x) for x in VERSION]) from imgui.core import * # noqa from imgui import core VERTEX_BUFFER_POS_OFFSET = core.vertex_buffer_vertex_pos_offset() VERTEX_BUFFER_UV_OFFSET = core.vertex_buffer_vertex_uv_offset() VERTEX_BUFFER_COL_OFFSET =...
{"/doc/source/gen_example.py": ["/imgui/__init__.py", "/imgui/impl/__init__.py"], "/imgui/impl/_glfw.py": ["/imgui/__init__.py"], "/imgui/impl/__init__.py": ["/imgui/impl/_glfw.py"]}
29,060
Wiatrogon/pyimgui
refs/heads/master
/imgui/impl/_glfw.py
# -*- coding: utf-8 -*- import glfw import OpenGL.GL as gl import imgui import ctypes class GlfwImpl(object): """Basic GLFW3 integration implementation.""" VERTEX_SHADER_SRC = """ #version 330 uniform mat4 ProjMtx; in vec2 Position; in vec2 UV; in vec4 Color; out vec2 Frag_UV; o...
{"/doc/source/gen_example.py": ["/imgui/__init__.py", "/imgui/impl/__init__.py"], "/imgui/impl/_glfw.py": ["/imgui/__init__.py"], "/imgui/impl/__init__.py": ["/imgui/impl/_glfw.py"]}
29,061
Wiatrogon/pyimgui
refs/heads/master
/doc/source/custom_directives.py
# -*- coding: utf-8 -*- from docutils import nodes from docutils.parsers.rst import Directive from docutils.parsers.rst import directives import os import re from hashlib import sha1 from sphinx.ext.autodoc import AutodocReporter try: from gen_example import render_snippet except ImportError: render_snippet = ...
{"/doc/source/gen_example.py": ["/imgui/__init__.py", "/imgui/impl/__init__.py"], "/imgui/impl/_glfw.py": ["/imgui/__init__.py"], "/imgui/impl/__init__.py": ["/imgui/impl/_glfw.py"]}
29,062
Wiatrogon/pyimgui
refs/heads/master
/ci/completion.py
# -*- coding: utf-8 -*- from inspect import cleandoc import sys import re import fileinput try: from urllib import quote except ImportError: from urllib.parse import quote BASE_URL = 'https://img.shields.io/badge/completion-%s-blue.svg' BADGE_TEMPLATE = "[![completion](%s)](https://github.com/swistakm/pyimgui...
{"/doc/source/gen_example.py": ["/imgui/__init__.py", "/imgui/impl/__init__.py"], "/imgui/impl/_glfw.py": ["/imgui/__init__.py"], "/imgui/impl/__init__.py": ["/imgui/impl/_glfw.py"]}
29,063
Wiatrogon/pyimgui
refs/heads/master
/imgui/impl/__init__.py
# -*- coding: utf-8 -*- from imgui.impl._glfw import GlfwImpl __all__ = [ 'GlfwImpl' ]
{"/doc/source/gen_example.py": ["/imgui/__init__.py", "/imgui/impl/__init__.py"], "/imgui/impl/_glfw.py": ["/imgui/__init__.py"], "/imgui/impl/__init__.py": ["/imgui/impl/_glfw.py"]}
29,064
harshkheskani/rate_the_game
refs/heads/main
/rate_the_game_app/forms.py
# -*- coding: utf-8 -*- """ Created on Thu Mar 18 15:37:29 2021 @author: Harvey """ from django import forms from rate_the_game_app.models import UserProfile, Game, Review, Category from django.contrib.auth.models import User class UserForm(forms.ModelForm): password = forms.CharField(widget=forms.PasswordInput()...
{"/rate_the_game_app/forms.py": ["/rate_the_game_app/models.py"], "/rate_the_game_app/admin.py": ["/rate_the_game_app/models.py"], "/rate_the_game_app/views.py": ["/rate_the_game_app/forms.py", "/rate_the_game_app/models.py"], "/population_script.py": ["/rate_the_game_app/models.py"]}
29,065
harshkheskani/rate_the_game
refs/heads/main
/rate_the_game_app/urls.py
# -*- coding: utf-8 -*- """ Created on Sat Mar 13 12:47:37 2021 @author: Harvey """ from django.urls import path from rate_the_game_app import views app_name = 'rate_the_game_app' urlpatterns = [ path('', views.index, name='index'), path('index/', views.index, name = 'index_page'), path('reg...
{"/rate_the_game_app/forms.py": ["/rate_the_game_app/models.py"], "/rate_the_game_app/admin.py": ["/rate_the_game_app/models.py"], "/rate_the_game_app/views.py": ["/rate_the_game_app/forms.py", "/rate_the_game_app/models.py"], "/population_script.py": ["/rate_the_game_app/models.py"]}
29,066
harshkheskani/rate_the_game
refs/heads/main
/rate_the_game_app/admin.py
from django.contrib import admin from rate_the_game_app.models import UserProfile, Category, Game, Review # Register your models here. admin.site.register(UserProfile) admin.site.register(Category) admin.site.register(Game) admin.site.register(Review)
{"/rate_the_game_app/forms.py": ["/rate_the_game_app/models.py"], "/rate_the_game_app/admin.py": ["/rate_the_game_app/models.py"], "/rate_the_game_app/views.py": ["/rate_the_game_app/forms.py", "/rate_the_game_app/models.py"], "/population_script.py": ["/rate_the_game_app/models.py"]}
29,067
harshkheskani/rate_the_game
refs/heads/main
/rate_the_game_app/models.py
from django.db import models from django.contrib.auth.models import User from django.template.defaultfilters import slugify from django.core.validators import MaxValueValidator # Create your models here. class UserProfile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE, related_name='prof...
{"/rate_the_game_app/forms.py": ["/rate_the_game_app/models.py"], "/rate_the_game_app/admin.py": ["/rate_the_game_app/models.py"], "/rate_the_game_app/views.py": ["/rate_the_game_app/forms.py", "/rate_the_game_app/models.py"], "/population_script.py": ["/rate_the_game_app/models.py"]}
29,068
harshkheskani/rate_the_game
refs/heads/main
/rate_the_game_app/views.py
from django.shortcuts import render from rate_the_game_app.forms import UserForm, UserProfileForm, ContactForm, GameForm, ReviewForm from django.http import HttpResponse, HttpResponseRedirect from django.contrib.auth import authenticate, login, logout from django.shortcuts import redirect from django.contrib.auth.decor...
{"/rate_the_game_app/forms.py": ["/rate_the_game_app/models.py"], "/rate_the_game_app/admin.py": ["/rate_the_game_app/models.py"], "/rate_the_game_app/views.py": ["/rate_the_game_app/forms.py", "/rate_the_game_app/models.py"], "/population_script.py": ["/rate_the_game_app/models.py"]}
29,069
harshkheskani/rate_the_game
refs/heads/main
/rate_the_game_app/templatetags/rate_the_game_app_template_tags.py
# -*- coding: utf-8 -*- """ Created on Fri Mar 26 12:57:58 2021 @author: Harvey """ from django import template
{"/rate_the_game_app/forms.py": ["/rate_the_game_app/models.py"], "/rate_the_game_app/admin.py": ["/rate_the_game_app/models.py"], "/rate_the_game_app/views.py": ["/rate_the_game_app/forms.py", "/rate_the_game_app/models.py"], "/population_script.py": ["/rate_the_game_app/models.py"]}
29,070
harshkheskani/rate_the_game
refs/heads/main
/rate_the_game_app/templatetags/__init__.py
# -*- coding: utf-8 -*- """ Created on Fri Mar 26 12:57:27 2021 @author: Harvey """
{"/rate_the_game_app/forms.py": ["/rate_the_game_app/models.py"], "/rate_the_game_app/admin.py": ["/rate_the_game_app/models.py"], "/rate_the_game_app/views.py": ["/rate_the_game_app/forms.py", "/rate_the_game_app/models.py"], "/population_script.py": ["/rate_the_game_app/models.py"]}
29,071
harshkheskani/rate_the_game
refs/heads/main
/population_script.py
import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'rate_the_game.settings') import django django.setup() from rate_the_game_app.models import Category, Game, Review, UserProfile, User #make sure to run these after code changes or pulling the repo onto a new machine so that your system is aware, #manage.py ma...
{"/rate_the_game_app/forms.py": ["/rate_the_game_app/models.py"], "/rate_the_game_app/admin.py": ["/rate_the_game_app/models.py"], "/rate_the_game_app/views.py": ["/rate_the_game_app/forms.py", "/rate_the_game_app/models.py"], "/population_script.py": ["/rate_the_game_app/models.py"]}
29,072
harshkheskani/rate_the_game
refs/heads/main
/rate_the_game_app/migrations/0005_auto_20210406_1811.py
# Generated by Django 2.2.17 on 2021-04-06 17:11 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rate_the_game_app', '0004_review'), ] operations = [ migrations.AlterField( model_name='review', ...
{"/rate_the_game_app/forms.py": ["/rate_the_game_app/models.py"], "/rate_the_game_app/admin.py": ["/rate_the_game_app/models.py"], "/rate_the_game_app/views.py": ["/rate_the_game_app/forms.py", "/rate_the_game_app/models.py"], "/population_script.py": ["/rate_the_game_app/models.py"]}
29,073
timpinkerton/testFlaskApp
refs/heads/master
/app.py
from flask import Flask, render_template, redirect, url_for from data import Articles # Creating an instance of the Flask class app = Flask(__name__) # creating a variable Articles and setting it equal to the Articles function Articles = Articles() # home page route @app.route('/') def index(): return render_temp...
{"/app.py": ["/data.py"]}
29,074
timpinkerton/testFlaskApp
refs/heads/master
/data.py
def Articles(): articles = [ { 'id': 1, 'title': 'Article Number One', 'body': 'lorem ispummmm yuuummmmm', 'author': 'Me', 'create_date': '04-29-2017' }, { 'id': 2, 'title': 'Article Number Too', ...
{"/app.py": ["/data.py"]}
29,075
umutcoskun/django-tokenauth
refs/heads/master
/tokenauth/management/commands/generatetokens.py
from django.conf import settings from django.contrib.auth.models import User from django.core.management.base import BaseCommand from tokenauth.models import Token if hasattr(settings, 'USER_AUTH_MODEL'): User = settings.USER_AUTH_MODEL class GenerateTokensCommand(BaseCommand): def handle(self, *args, **kw...
{"/tokenauth/management/commands/generatetokens.py": ["/tokenauth/models.py"], "/tokenauth/views.py": ["/tokenauth/auth.py"], "/tokenauth/urls.py": ["/tokenauth/views.py"], "/tokenauth/auth.py": ["/tokenauth/models.py"], "/tokenauth/signals.py": ["/tokenauth/models.py"], "/tokenauth/admin.py": ["/tokenauth/models.py"],...
29,076
umutcoskun/django-tokenauth
refs/heads/master
/tokenauth/views.py
from django.conf import settings from django.shortcuts import redirect from django.views.generic import View from tokenauth.auth import login class Login(View): def get(self, request): login(request) next = request.GET.get('next', None) if next: return redirect(next) ...
{"/tokenauth/management/commands/generatetokens.py": ["/tokenauth/models.py"], "/tokenauth/views.py": ["/tokenauth/auth.py"], "/tokenauth/urls.py": ["/tokenauth/views.py"], "/tokenauth/auth.py": ["/tokenauth/models.py"], "/tokenauth/signals.py": ["/tokenauth/models.py"], "/tokenauth/admin.py": ["/tokenauth/models.py"],...
29,077
umutcoskun/django-tokenauth
refs/heads/master
/tokenauth/urls.py
from django.conf.urls import url from tokenauth.views import Login urlpatterns = [ url(r'^login$', Login.as_view(), name='login'), ]
{"/tokenauth/management/commands/generatetokens.py": ["/tokenauth/models.py"], "/tokenauth/views.py": ["/tokenauth/auth.py"], "/tokenauth/urls.py": ["/tokenauth/views.py"], "/tokenauth/auth.py": ["/tokenauth/models.py"], "/tokenauth/signals.py": ["/tokenauth/models.py"], "/tokenauth/admin.py": ["/tokenauth/models.py"],...
29,078
umutcoskun/django-tokenauth
refs/heads/master
/tokenauth/auth.py
from uuid import UUID from django.conf import settings from django.contrib.auth import login as auth_login from tokenauth.models import Token def login(request, silence=False): param_name = 'token' if hasattr(settings, 'TOKENAUTH_PARAMETER_NAME'): param_name = settings.TOKENAUTH_PARAMETER_NAME ...
{"/tokenauth/management/commands/generatetokens.py": ["/tokenauth/models.py"], "/tokenauth/views.py": ["/tokenauth/auth.py"], "/tokenauth/urls.py": ["/tokenauth/views.py"], "/tokenauth/auth.py": ["/tokenauth/models.py"], "/tokenauth/signals.py": ["/tokenauth/models.py"], "/tokenauth/admin.py": ["/tokenauth/models.py"],...
29,079
umutcoskun/django-tokenauth
refs/heads/master
/tokenauth/signals.py
from django.conf import settings from django.contrib.auth.models import User from django.db.models.signals import post_save from tokenauth.models import Token if hasattr(settings, 'USER_AUTH_MODEL'): user = settings.user_auth_model def create_user_token(sender, instance, created, **kwargs): if created: ...
{"/tokenauth/management/commands/generatetokens.py": ["/tokenauth/models.py"], "/tokenauth/views.py": ["/tokenauth/auth.py"], "/tokenauth/urls.py": ["/tokenauth/views.py"], "/tokenauth/auth.py": ["/tokenauth/models.py"], "/tokenauth/signals.py": ["/tokenauth/models.py"], "/tokenauth/admin.py": ["/tokenauth/models.py"],...
29,080
umutcoskun/django-tokenauth
refs/heads/master
/tokenauth/models.py
import uuid from django.conf import settings from django.contrib.auth.models import User from django.db import models if hasattr(settings, 'USER_AUTH_MODEL'): User = settings.USER_AUTH_MODEL class Token(models.Model): uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) user = ...
{"/tokenauth/management/commands/generatetokens.py": ["/tokenauth/models.py"], "/tokenauth/views.py": ["/tokenauth/auth.py"], "/tokenauth/urls.py": ["/tokenauth/views.py"], "/tokenauth/auth.py": ["/tokenauth/models.py"], "/tokenauth/signals.py": ["/tokenauth/models.py"], "/tokenauth/admin.py": ["/tokenauth/models.py"],...
29,081
umutcoskun/django-tokenauth
refs/heads/master
/tokenauth/admin.py
from django.contrib import admin from tokenauth.models import Token @admin.register(Token) class TokenAdmin(admin.ModelAdmin): list_display = ('uuid', 'user', 'date_created') list_display_links = ('uuid', )
{"/tokenauth/management/commands/generatetokens.py": ["/tokenauth/models.py"], "/tokenauth/views.py": ["/tokenauth/auth.py"], "/tokenauth/urls.py": ["/tokenauth/views.py"], "/tokenauth/auth.py": ["/tokenauth/models.py"], "/tokenauth/signals.py": ["/tokenauth/models.py"], "/tokenauth/admin.py": ["/tokenauth/models.py"],...
29,082
umutcoskun/django-tokenauth
refs/heads/master
/tokenauth/__init__.py
default_app_config = 'tokenauth.apps.TokenauthConfig'
{"/tokenauth/management/commands/generatetokens.py": ["/tokenauth/models.py"], "/tokenauth/views.py": ["/tokenauth/auth.py"], "/tokenauth/urls.py": ["/tokenauth/views.py"], "/tokenauth/auth.py": ["/tokenauth/models.py"], "/tokenauth/signals.py": ["/tokenauth/models.py"], "/tokenauth/admin.py": ["/tokenauth/models.py"],...
29,083
umutcoskun/django-tokenauth
refs/heads/master
/tokenauth/apps.py
from django.apps import AppConfig class TokenauthConfig(AppConfig): name = 'tokenauth' def ready(self): import tokenauth.signals
{"/tokenauth/management/commands/generatetokens.py": ["/tokenauth/models.py"], "/tokenauth/views.py": ["/tokenauth/auth.py"], "/tokenauth/urls.py": ["/tokenauth/views.py"], "/tokenauth/auth.py": ["/tokenauth/models.py"], "/tokenauth/signals.py": ["/tokenauth/models.py"], "/tokenauth/admin.py": ["/tokenauth/models.py"],...
29,101
volkodava/CarND-Vehicle-Detection
refs/heads/master
/tools/window_search.py
import shutil import scipy.misc from tqdm import tqdm from experiments import * # csvsql --query "select expected, actual, input_size, result_size, window_size, filepath from windows" work/windows.csv | csvlook screenshots = [ { "location": "../test_images/test1.jpg", "cars_num": 2, "coo...
{"/tools/window_search.py": ["/experiments.py"], "/experiments.py": ["/common_functions.py"], "/tools/RoiEditorUi.py": ["/experiments.py"], "/tools/ModelTestUi.py": ["/experiments.py"], "/tools/model_experiments.py": ["/experiments.py"], "/tools/FeatureEditorUi.py": ["/experiments.py"]}
29,102
volkodava/CarND-Vehicle-Detection
refs/heads/master
/experiments.py
import glob import os import time from collections import deque import scipy.misc from moviepy.video.io.VideoFileClip import VideoFileClip from scipy.ndimage.measurements import label from sklearn.externals import joblib from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardSca...
{"/tools/window_search.py": ["/experiments.py"], "/experiments.py": ["/common_functions.py"], "/tools/RoiEditorUi.py": ["/experiments.py"], "/tools/ModelTestUi.py": ["/experiments.py"], "/tools/model_experiments.py": ["/experiments.py"], "/tools/FeatureEditorUi.py": ["/experiments.py"]}
29,103
volkodava/CarND-Vehicle-Detection
refs/heads/master
/tools/RoiEditorUi.py
from skimage.viewer import CollectionViewer from skimage.viewer.plugins import Plugin from skimage.viewer.widgets import CheckBox, Slider from experiments import * # ROI polygon coefficients # to find big cars top_y = 0.53 bottom_y = 0.9 xy_window = 192 xy_overlap = 0.75 # to find small cars # top_y = 0.53 # bottom...
{"/tools/window_search.py": ["/experiments.py"], "/experiments.py": ["/common_functions.py"], "/tools/RoiEditorUi.py": ["/experiments.py"], "/tools/ModelTestUi.py": ["/experiments.py"], "/tools/model_experiments.py": ["/experiments.py"], "/tools/FeatureEditorUi.py": ["/experiments.py"]}
29,104
volkodava/CarND-Vehicle-Detection
refs/heads/master
/tools/ModelTestUi.py
from skimage.viewer import CollectionViewer from skimage.viewer.plugins import Plugin from skimage.viewer.widgets import CheckBox, Slider from experiments import * orient = 16 # HOG orientations pix_per_cell = 32 # HOG pixels per cell # ROI polygon coefficients top_y = 0.53 bottom_y = 0.9 heatmap_threshold = 2 xy...
{"/tools/window_search.py": ["/experiments.py"], "/experiments.py": ["/common_functions.py"], "/tools/RoiEditorUi.py": ["/experiments.py"], "/tools/ModelTestUi.py": ["/experiments.py"], "/tools/model_experiments.py": ["/experiments.py"], "/tools/FeatureEditorUi.py": ["/experiments.py"]}
29,105
volkodava/CarND-Vehicle-Detection
refs/heads/master
/tools/model_experiments.py
import csv from tqdm import tqdm from experiments import * # csvsql --query "select * from __results order by score desc" work/__results.csv | csvlook # csvsql --query "select * from __results where score > 0.98 order by score desc" work/__results.csv | csvlook # csvsql --query "select * from __results order by scor...
{"/tools/window_search.py": ["/experiments.py"], "/experiments.py": ["/common_functions.py"], "/tools/RoiEditorUi.py": ["/experiments.py"], "/tools/ModelTestUi.py": ["/experiments.py"], "/tools/model_experiments.py": ["/experiments.py"], "/tools/FeatureEditorUi.py": ["/experiments.py"]}
29,106
volkodava/CarND-Vehicle-Detection
refs/heads/master
/tools/FeatureEditorUi.py
from skimage.viewer import CollectionViewer from skimage.viewer.plugins import Plugin from skimage.viewer.widgets import CheckBox, ComboBox, Slider from experiments import * color_space_index = 0 orient = 9 pix_per_cell = 8 cell_per_block = 2 block_norm_index = 0 transform_sqrt = True spatial_size = 32 hist_bins = 32...
{"/tools/window_search.py": ["/experiments.py"], "/experiments.py": ["/common_functions.py"], "/tools/RoiEditorUi.py": ["/experiments.py"], "/tools/ModelTestUi.py": ["/experiments.py"], "/tools/model_experiments.py": ["/experiments.py"], "/tools/FeatureEditorUi.py": ["/experiments.py"]}
29,107
volkodava/CarND-Vehicle-Detection
refs/heads/master
/common_functions.py
import io import cv2 import matplotlib.image as mpimg import matplotlib.pyplot as plt import numpy as np from PIL import Image from mpl_toolkits.mplot3d import Axes3D from skimage.feature import hog def validate_images_shape(fnames, expected_shape): result = [] for fname in fnames: _, image = read_im...
{"/tools/window_search.py": ["/experiments.py"], "/experiments.py": ["/common_functions.py"], "/tools/RoiEditorUi.py": ["/experiments.py"], "/tools/ModelTestUi.py": ["/experiments.py"], "/tools/model_experiments.py": ["/experiments.py"], "/tools/FeatureEditorUi.py": ["/experiments.py"]}
29,135
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0032_alter_customer_updated_at.py
# Generated by Django 3.2.7 on 2021-10-27 06:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Sam', '0031_alter_customer_created_at'), ] operations = [ migrations.AlterField( model_name='customer', name='update...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,136
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0033_auto_20211028_1741.py
# Generated by Django 3.2.7 on 2021-10-28 12:11 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Sam', '0032_alter_customer_updated_at'), ] operations = [ migrations.AddField( model_name='supplier', ...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,137
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0014_credit_receipt_sales_return.py
# Generated by Django 3.2.3 on 2021-10-13 14:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Sam', '0013_cash'), ] operations = [ migrations.CreateModel( name='Credit', fields=[ ('id', models.B...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,138
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0019_item_statement_job_masterdata_job_statement_stock_adjustment_stock_balance_stock_masterdata.py
# Generated by Django 3.2.3 on 2021-10-25 11:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Sam', '0018_ledger_journal_ledger_masterdata'), ] operations = [ migrations.CreateModel( name='Item_Statement', fiel...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,139
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0011_auto_20210930_0943.py
# Generated by Django 3.2.3 on 2021-09-30 04:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Sam', '0010_auto_20210929_1808'), ] operations = [ migrations.AlterField( model_name='item', name='image1', ...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,140
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0030_alter_supplier_masterdata_created_at.py
# Generated by Django 3.2.7 on 2021-10-27 05:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Sam', '0029_alter_supplier_masterdata_updated_at'), ] operations = [ migrations.AlterField( model_name='supplier_masterdata', ...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,141
Rincmol/sam-backend-main
refs/heads/main
/Sam/forms.py
from django import forms from .models import Item, Job, Receipt class ItemForm(forms.ModelForm): class Meta: model = Item fields ="__all__" class JobForm(forms.ModelForm): class Meta: model = Job fields ="__all__" class SalesForm(forms.ModelForm): class Meta: mode...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,142
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0028_auto_20211026_1748.py
# Generated by Django 3.2.7 on 2021-10-26 12:18 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('Sam', '0027_auto_20211026_1647'), ] operations = [ migrations.AlterField( model_name='supplier_mast...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,143
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0012_asset_expences_income_liabilities.py
# Generated by Django 3.2.3 on 2021-10-12 10:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Sam', '0011_auto_20210930_0943'), ] operations = [ migrations.CreateModel( name='Asset', fields=[ ('...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,144
Rincmol/sam-backend-main
refs/heads/main
/Sam/models.py
from django.db import models import datetime import os # Create your models here. def filepath(request, filename): old_fname = filename timeNow = datetime.datetime.now().strftime('%Y%m%d%H%M%s') filename = "%s%s", (timeNow, old_fname) return os.path.join('uploads/', filename) class I...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,145
Rincmol/sam-backend-main
refs/heads/main
/Sam/urls.py
from django.conf.urls import url from django.contrib import admin from django.urls import path, include from . import views from django.conf import settings from django.conf.urls.static import static urlpatterns = [ url(r'^$', views.go, name='go'), url(r'^go$', views.go, name='go'), url(r'^gocust$', views....
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,146
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0007_employee.py
# Generated by Django 3.2.7 on 2021-09-16 09:24 import Sam.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Sam', '0006_job'), ] operations = [ migrations.CreateModel( name='Employee', fields=[ ...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,147
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0006_job.py
# Generated by Django 3.2.7 on 2021-09-16 09:16 import Sam.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Sam', '0005_login'), ] operations = [ migrations.CreateModel( name='Job', fields=[ ...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,148
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0010_auto_20210929_1808.py
# Generated by Django 3.2.3 on 2021-09-29 12:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Sam', '0009_ledger'), ] operations = [ migrations.AlterField( model_name='employee', name='img1', field=...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,149
Rincmol/sam-backend-main
refs/heads/main
/Sam/views.py
from datetime import datetime from django.shortcuts import HttpResponse from django.db.models.fields import DateTimeField from django.shortcuts import render, redirect from Sam.models import Customer, Customer_Invoice, Customer_Invoice_Receipt, Customer_Masterdata, Customer_Outstand, Customer_Receipt, Customer_Statemen...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,150
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0009_ledger.py
# Generated by Django 3.2.7 on 2021-09-16 09:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Sam', '0008_group'), ] operations = [ migrations.CreateModel( name='Ledger', fields=[ ('id', models....
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,151
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0025_alter_supplier_masterdata_created_at.py
# Generated by Django 3.2.7 on 2021-10-26 11:15 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Sam', '0024_alter_supplier_masterdata_updated_at'), ] operations = [ migrations.AlterField( model_name='supplier...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,152
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0029_alter_supplier_masterdata_updated_at.py
# Generated by Django 3.2.7 on 2021-10-26 12:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Sam', '0028_auto_20211026_1748'), ] operations = [ migrations.AlterField( model_name='supplier_masterdata', name='up...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,153
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0013_cash.py
# Generated by Django 3.2.3 on 2021-10-13 13:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Sam', '0012_asset_expences_income_liabilities'), ] operations = [ migrations.CreateModel( name='Cash', fields=[ ...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,154
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0021_supplier_masterdata_date_created.py
# Generated by Django 3.2.7 on 2021-10-26 10:55 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Sam', '0020_customer_invoice_customer_invoice_receipt_customer_masterdata_customer_outstand_customer_receipt_cus'), ] operations = [...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,155
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0001_initial.py
# Generated by Django 3.2.7 on 2021-09-16 07:41 import Sam.models from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Item', fields=[ ('id', mo...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,156
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0018_ledger_journal_ledger_masterdata.py
# Generated by Django 3.2.3 on 2021-10-25 11:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Sam', '0017_ledger_statement'), ] operations = [ migrations.CreateModel( name='Ledger_Journal', fields=[ ...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,157
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0027_auto_20211026_1647.py
# Generated by Django 3.2.7 on 2021-10-26 11:17 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Sam', '0026_alter_supplier_masterdata_created_at'), ] operations = [ migrations.AddField( model_name='customer',...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,158
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0003_supplier.py
# Generated by Django 3.2.7 on 2021-09-16 09:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Sam', '0002_customer'), ] operations = [ migrations.CreateModel( name='Supplier', fields=[ ('id', mo...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,159
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0017_ledger_statement.py
# Generated by Django 3.2.3 on 2021-10-25 06:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Sam', '0016_auto_20211019_1145'), ] operations = [ migrations.CreateModel( name='Ledger_Statement', fields=[ ...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,160
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0020_customer_invoice_customer_invoice_receipt_customer_masterdata_customer_outstand_customer_receipt_cus.py
# Generated by Django 3.2.7 on 2021-10-26 07:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Sam', '0019_item_statement_job_masterdata_job_statement_stock_adjustment_stock_balance_stock_masterdata'), ] operations = [ migrations.Creat...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,161
Rincmol/sam-backend-main
refs/heads/main
/Sam/migrations/0022_rename_date_created_supplier_masterdata_created_at.py
# Generated by Django 3.2.7 on 2021-10-26 11:08 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Sam', '0021_supplier_masterdata_date_created'), ] operations = [ migrations.RenameField( model_name='supplier_masterdata', o...
{"/Sam/forms.py": ["/Sam/models.py"], "/Sam/migrations/0007_employee.py": ["/Sam/models.py"], "/Sam/migrations/0006_job.py": ["/Sam/models.py"], "/Sam/views.py": ["/Sam/models.py", "/Sam/forms.py"], "/Sam/migrations/0001_initial.py": ["/Sam/models.py"]}
29,172
ram0973/marnadi
refs/heads/master
/marnadi/utils/lazy.py
import weakref from marnadi.utils import metaclass, import_module class CachedDescriptor(object): __slots__ = 'cache', def __init__(self): self.cache = weakref.WeakKeyDictionary() def __get__(self, instance, instance_type=None): if instance is None: return self # static ac...
{"/marnadi/utils/lazy.py": ["/marnadi/utils/__init__.py"], "/marnadi/http/data/__init__.py": ["/marnadi/utils/__init__.py"], "/marnadi/response.py": ["/marnadi/__init__.py", "/marnadi/utils/__init__.py"], "/marnadi/http/cookies.py": ["/marnadi/utils/__init__.py"], "/tests/test_wsgi.py": ["/marnadi/__init__.py", "/marna...
29,173
ram0973/marnadi
refs/heads/master
/marnadi/http/data/__init__.py
import itertools import collections from marnadi.utils import Lazy, CachedDescriptor from . import decoders class Data(CachedDescriptor, collections.Mapping): __slots__ = '_content_decoders', def __init__(self, *content_decoders, **kw_content_decoders): super(Data, self).__init__() self._c...
{"/marnadi/utils/lazy.py": ["/marnadi/utils/__init__.py"], "/marnadi/http/data/__init__.py": ["/marnadi/utils/__init__.py"], "/marnadi/response.py": ["/marnadi/__init__.py", "/marnadi/utils/__init__.py"], "/marnadi/http/cookies.py": ["/marnadi/utils/__init__.py"], "/tests/test_wsgi.py": ["/marnadi/__init__.py", "/marna...
29,174
ram0973/marnadi
refs/heads/master
/marnadi/response.py
import collections import itertools import logging from marnadi import http from marnadi.utils import to_bytes, cached_property, coroutine, metaclass try: str = unicode except NameError: pass @metaclass(http.Handler) class Response(object): logger = logging.getLogger('marnadi') status = '200 OK' ...
{"/marnadi/utils/lazy.py": ["/marnadi/utils/__init__.py"], "/marnadi/http/data/__init__.py": ["/marnadi/utils/__init__.py"], "/marnadi/response.py": ["/marnadi/__init__.py", "/marnadi/utils/__init__.py"], "/marnadi/http/cookies.py": ["/marnadi/utils/__init__.py"], "/tests/test_wsgi.py": ["/marnadi/__init__.py", "/marna...
29,175
ram0973/marnadi
refs/heads/master
/marnadi/http/cookies.py
import collections import copy import datetime import locale import time import weakref from marnadi.utils import cached_property, CachedDescriptor class CookieJar(collections.MutableMapping): """Cookies - dict-like object allowing to get/set HTTP cookies""" if hasattr(collections.MutableMapping, '__slots__...
{"/marnadi/utils/lazy.py": ["/marnadi/utils/__init__.py"], "/marnadi/http/data/__init__.py": ["/marnadi/utils/__init__.py"], "/marnadi/response.py": ["/marnadi/__init__.py", "/marnadi/utils/__init__.py"], "/marnadi/http/cookies.py": ["/marnadi/utils/__init__.py"], "/tests/test_wsgi.py": ["/marnadi/__init__.py", "/marna...
29,176
ram0973/marnadi
refs/heads/master
/tests/test_wsgi.py
try: import unittest2 as unittest except ImportError: import unittest try: from unittest import mock except ImportError: import mock from marnadi import Response, Route, http from marnadi.utils import Lazy from marnadi.wsgi import App _test_handler = Response _test_route_1 = Route('a', _test_handler)...
{"/marnadi/utils/lazy.py": ["/marnadi/utils/__init__.py"], "/marnadi/http/data/__init__.py": ["/marnadi/utils/__init__.py"], "/marnadi/response.py": ["/marnadi/__init__.py", "/marnadi/utils/__init__.py"], "/marnadi/http/cookies.py": ["/marnadi/utils/__init__.py"], "/tests/test_wsgi.py": ["/marnadi/__init__.py", "/marna...
29,177
ram0973/marnadi
refs/heads/master
/marnadi/__init__.py
from marnadi.response import Response from marnadi.route import Route
{"/marnadi/utils/lazy.py": ["/marnadi/utils/__init__.py"], "/marnadi/http/data/__init__.py": ["/marnadi/utils/__init__.py"], "/marnadi/response.py": ["/marnadi/__init__.py", "/marnadi/utils/__init__.py"], "/marnadi/http/cookies.py": ["/marnadi/utils/__init__.py"], "/tests/test_wsgi.py": ["/marnadi/__init__.py", "/marna...
29,178
ram0973/marnadi
refs/heads/master
/marnadi/http/__init__.py
import functools from .cookies import Cookies from .headers import Headers, Header from .error import Error from .data import Data class Handler(type): def __new__(mcs, name, mro, attributes): for attribute, value in attributes.items(): if isinstance(value, Method): value.nam...
{"/marnadi/utils/lazy.py": ["/marnadi/utils/__init__.py"], "/marnadi/http/data/__init__.py": ["/marnadi/utils/__init__.py"], "/marnadi/response.py": ["/marnadi/__init__.py", "/marnadi/utils/__init__.py"], "/marnadi/http/cookies.py": ["/marnadi/utils/__init__.py"], "/tests/test_wsgi.py": ["/marnadi/__init__.py", "/marna...
29,179
ram0973/marnadi
refs/heads/master
/tests/test_route.py
try: import unittest2 as unittest except ImportError: import unittest from marnadi import Route from marnadi.route import Routes class RoutesTestCase(unittest.TestCase): def test_empty(self): routes = [] self.assertListEqual([], Routes(routes)) def test_single_route(self): r...
{"/marnadi/utils/lazy.py": ["/marnadi/utils/__init__.py"], "/marnadi/http/data/__init__.py": ["/marnadi/utils/__init__.py"], "/marnadi/response.py": ["/marnadi/__init__.py", "/marnadi/utils/__init__.py"], "/marnadi/http/cookies.py": ["/marnadi/utils/__init__.py"], "/tests/test_wsgi.py": ["/marnadi/__init__.py", "/marna...
29,180
ram0973/marnadi
refs/heads/master
/marnadi/wsgi.py
import collections import functools import itertools try: from urllib import parse except ImportError: import urlparse as parse from marnadi import http from marnadi.route import Routes from marnadi.utils import cached_property class Request(collections.Mapping): """WSGI request. Args: envir...
{"/marnadi/utils/lazy.py": ["/marnadi/utils/__init__.py"], "/marnadi/http/data/__init__.py": ["/marnadi/utils/__init__.py"], "/marnadi/response.py": ["/marnadi/__init__.py", "/marnadi/utils/__init__.py"], "/marnadi/http/cookies.py": ["/marnadi/utils/__init__.py"], "/tests/test_wsgi.py": ["/marnadi/__init__.py", "/marna...
29,181
ram0973/marnadi
refs/heads/master
/marnadi/http/headers.py
import collections import itertools from marnadi.utils import cached_property, CachedDescriptor class Header(collections.Mapping): __slots__ = 'value', 'params' def __init__(self, *value, **params): assert len(value) == 1 self.value = value[0] self.params = params def __hash__(...
{"/marnadi/utils/lazy.py": ["/marnadi/utils/__init__.py"], "/marnadi/http/data/__init__.py": ["/marnadi/utils/__init__.py"], "/marnadi/response.py": ["/marnadi/__init__.py", "/marnadi/utils/__init__.py"], "/marnadi/http/cookies.py": ["/marnadi/utils/__init__.py"], "/tests/test_wsgi.py": ["/marnadi/__init__.py", "/marna...
29,182
ram0973/marnadi
refs/heads/master
/marnadi/http/data/decoders/application/json.py
json = __import__('json') # import built-in module 'json' from marnadi.http import Error from marnadi.http.data.decoders import Decoder as BaseDecoder class Decoder(BaseDecoder): __slots__ = () def __call__(self, request): try: return json.loads(super(Decoder, self).__call__(request)) ...
{"/marnadi/utils/lazy.py": ["/marnadi/utils/__init__.py"], "/marnadi/http/data/__init__.py": ["/marnadi/utils/__init__.py"], "/marnadi/response.py": ["/marnadi/__init__.py", "/marnadi/utils/__init__.py"], "/marnadi/http/cookies.py": ["/marnadi/utils/__init__.py"], "/tests/test_wsgi.py": ["/marnadi/__init__.py", "/marna...
29,183
ram0973/marnadi
refs/heads/master
/tests/test_utils.py
import types try: import unittest2 as unittest except ImportError: import unittest from marnadi.utils import Lazy try: str = unicode except NameError: pass _test_tuple = ('foo', 'bar') _test_list = ['foo', 'bar'] _test_set = set(_test_tuple) _test_dict = {'foo': 'bar'} _test_str = 'foo' _test_by...
{"/marnadi/utils/lazy.py": ["/marnadi/utils/__init__.py"], "/marnadi/http/data/__init__.py": ["/marnadi/utils/__init__.py"], "/marnadi/response.py": ["/marnadi/__init__.py", "/marnadi/utils/__init__.py"], "/marnadi/http/cookies.py": ["/marnadi/utils/__init__.py"], "/tests/test_wsgi.py": ["/marnadi/__init__.py", "/marna...
29,184
ram0973/marnadi
refs/heads/master
/marnadi/http/error.py
from marnadi.http import Header, Headers from marnadi.utils import to_bytes class Error(Exception): __slots__ = 'status', 'data', '__weakref__' default_status = '500 Internal Server Error' headers = Headers( ('Content-Type', Header('text/plain', charset='utf-8')), ) def __init__(self, ...
{"/marnadi/utils/lazy.py": ["/marnadi/utils/__init__.py"], "/marnadi/http/data/__init__.py": ["/marnadi/utils/__init__.py"], "/marnadi/response.py": ["/marnadi/__init__.py", "/marnadi/utils/__init__.py"], "/marnadi/http/cookies.py": ["/marnadi/utils/__init__.py"], "/tests/test_wsgi.py": ["/marnadi/__init__.py", "/marna...
29,185
ram0973/marnadi
refs/heads/master
/marnadi/utils/__init__.py
import functools try: unicode_str = unicode except NameError: unicode_str = str try: memoryview except NameError: memoryview = bytes def metaclass(mcs): def _decorator(cls): attrs = dict(vars(cls)) try: if isinstance(cls.__slots__, str): slots = (cls.__...
{"/marnadi/utils/lazy.py": ["/marnadi/utils/__init__.py"], "/marnadi/http/data/__init__.py": ["/marnadi/utils/__init__.py"], "/marnadi/response.py": ["/marnadi/__init__.py", "/marnadi/utils/__init__.py"], "/marnadi/http/cookies.py": ["/marnadi/utils/__init__.py"], "/tests/test_wsgi.py": ["/marnadi/__init__.py", "/marna...
29,186
ram0973/marnadi
refs/heads/master
/marnadi/http/data/decoders/__init__.py
from marnadi.http import Error from marnadi.utils import metaclass class DecoderType(type): def __call__(cls, request): decoder = super(DecoderType, cls).__call__() return decoder(request) @metaclass(DecoderType) class Decoder(object): __slots__ = () default_encoding = 'utf-8' de...
{"/marnadi/utils/lazy.py": ["/marnadi/utils/__init__.py"], "/marnadi/http/data/__init__.py": ["/marnadi/utils/__init__.py"], "/marnadi/response.py": ["/marnadi/__init__.py", "/marnadi/utils/__init__.py"], "/marnadi/http/cookies.py": ["/marnadi/utils/__init__.py"], "/tests/test_wsgi.py": ["/marnadi/__init__.py", "/marna...
29,187
ram0973/marnadi
refs/heads/master
/marnadi/route.py
import re from marnadi.utils import ReferenceType, metaclass, Lazy class Route(object): __slots__ = 'path', 'handler', 'params', 'pattern', 'name', 'callbacks', \ 'routes' placeholder_re = re.compile(r'\{([a-zA-Z_][a-zA-Z0-9_]*)\}') def __init__(self, path, handler=None, routes=(), nam...
{"/marnadi/utils/lazy.py": ["/marnadi/utils/__init__.py"], "/marnadi/http/data/__init__.py": ["/marnadi/utils/__init__.py"], "/marnadi/response.py": ["/marnadi/__init__.py", "/marnadi/utils/__init__.py"], "/marnadi/http/cookies.py": ["/marnadi/utils/__init__.py"], "/tests/test_wsgi.py": ["/marnadi/__init__.py", "/marna...
29,188
ram0973/marnadi
refs/heads/master
/tests/test_response.py
import io try: import unittest2 as unittest except ImportError: import unittest from marnadi import Response, Route from marnadi.wsgi import Request, App handler_function = Response.get(lambda: 'foo') handler_class = type('MyHandler', (Response, ), dict( get=lambda *args: 'hello' )) class ResponseTestC...
{"/marnadi/utils/lazy.py": ["/marnadi/utils/__init__.py"], "/marnadi/http/data/__init__.py": ["/marnadi/utils/__init__.py"], "/marnadi/response.py": ["/marnadi/__init__.py", "/marnadi/utils/__init__.py"], "/marnadi/http/cookies.py": ["/marnadi/utils/__init__.py"], "/tests/test_wsgi.py": ["/marnadi/__init__.py", "/marna...
29,189
ram0973/marnadi
refs/heads/master
/marnadi/http/data/decoders/application/x_www_form_urlencoded.py
try: from urllib import parse except ImportError: import urlparse as parse from marnadi.http.data.decoders import Decoder as BaseDecoder class Decoder(BaseDecoder): __slots__ = () def __call__(self, request): return dict(parse.parse_qsl( super(Decoder, self).__call__(request), ...
{"/marnadi/utils/lazy.py": ["/marnadi/utils/__init__.py"], "/marnadi/http/data/__init__.py": ["/marnadi/utils/__init__.py"], "/marnadi/response.py": ["/marnadi/__init__.py", "/marnadi/utils/__init__.py"], "/marnadi/http/cookies.py": ["/marnadi/utils/__init__.py"], "/tests/test_wsgi.py": ["/marnadi/__init__.py", "/marna...
29,239
SonyPony/helmnet
refs/heads/main
/helmnet/spectral.py
from numpy import linspace import torch from torch import nn import numpy as np @torch.jit.script def complex_mul(x, y): """Extend the elementwise product to complex tensors, i.e. tensors whose last shape has dimension of 2, representing real and imaginary part. Args: x (tensor): First operan...
{"/helmnet/architectures.py": ["/helmnet/dataloaders.py", "/helmnet/spectral.py", "/helmnet/utils.py", "/helmnet/source.py", "/helmnet/replaybuffer.py"], "/helmnet/__init__.py": ["/helmnet/architectures.py", "/helmnet/dataloaders.py", "/helmnet/hybridnet.py", "/helmnet/source.py", "/helmnet/spectral.py", "/helmnet/util...
29,240
SonyPony/helmnet
refs/heads/main
/helmnet/architectures.py
import torch import torch.nn as nn from torch.utils.data import DataLoader from torch.nn.functional import hardtanh from random import randint, choice import pytorch_lightning as pl import numpy as np from helmnet.dataloaders import get_dataset from helmnet.spectral import LaplacianWithPML from helmnet.utils import loa...
{"/helmnet/architectures.py": ["/helmnet/dataloaders.py", "/helmnet/spectral.py", "/helmnet/utils.py", "/helmnet/source.py", "/helmnet/replaybuffer.py"], "/helmnet/__init__.py": ["/helmnet/architectures.py", "/helmnet/dataloaders.py", "/helmnet/hybridnet.py", "/helmnet/source.py", "/helmnet/spectral.py", "/helmnet/util...
29,241
SonyPony/helmnet
refs/heads/main
/helmnet/source.py
import numpy as np import torch class Source: """Defines a (complex) monochromatic source. This is made to work easily with pytorch, so some outputs may have some extra dimension which appear counter-intuitive. """ def __init__( self, image_size, omega=1, location=[180...
{"/helmnet/architectures.py": ["/helmnet/dataloaders.py", "/helmnet/spectral.py", "/helmnet/utils.py", "/helmnet/source.py", "/helmnet/replaybuffer.py"], "/helmnet/__init__.py": ["/helmnet/architectures.py", "/helmnet/dataloaders.py", "/helmnet/hybridnet.py", "/helmnet/source.py", "/helmnet/spectral.py", "/helmnet/util...
29,242
SonyPony/helmnet
refs/heads/main
/helmnet/__init__.py
from helmnet.architectures import ( OutConv, DoubleConv, CleanDoubleConv, ResDoubleConv, ConvGRUCell, EncoderBlock, ResNet, HybridNet, getActivationFunction, ) from helmnet.dataloaders import EllipsesDataset, get_dataset from helmnet.hybridnet import IterativeSolver from helmnet.sour...
{"/helmnet/architectures.py": ["/helmnet/dataloaders.py", "/helmnet/spectral.py", "/helmnet/utils.py", "/helmnet/source.py", "/helmnet/replaybuffer.py"], "/helmnet/__init__.py": ["/helmnet/architectures.py", "/helmnet/dataloaders.py", "/helmnet/hybridnet.py", "/helmnet/source.py", "/helmnet/spectral.py", "/helmnet/util...
29,243
SonyPony/helmnet
refs/heads/main
/train.py
import pytorch_lightning as pl from pytorch_lightning.loggers import TensorBoardLogger from pytorch_lightning.callbacks import ModelCheckpoint import torch from helmnet import IterativeSolver, load_settings import os from argparse import ArgumentParser if __name__ == "__main__": # Parsing command line arguments ...
{"/helmnet/architectures.py": ["/helmnet/dataloaders.py", "/helmnet/spectral.py", "/helmnet/utils.py", "/helmnet/source.py", "/helmnet/replaybuffer.py"], "/helmnet/__init__.py": ["/helmnet/architectures.py", "/helmnet/dataloaders.py", "/helmnet/hybridnet.py", "/helmnet/source.py", "/helmnet/spectral.py", "/helmnet/util...
29,244
SonyPony/helmnet
refs/heads/main
/test.py
from helmnet import IterativeSolver from helmnet.support_functions import fig_generic import numpy as np import torch solver = IterativeSolver.load_from_checkpoint( "checkpoints/trained_weights.ckpt", strict=False ) solver.freeze() # To evaluate the model without changing it solver.to("cuda:0") # Setup problem s...
{"/helmnet/architectures.py": ["/helmnet/dataloaders.py", "/helmnet/spectral.py", "/helmnet/utils.py", "/helmnet/source.py", "/helmnet/replaybuffer.py"], "/helmnet/__init__.py": ["/helmnet/architectures.py", "/helmnet/dataloaders.py", "/helmnet/hybridnet.py", "/helmnet/source.py", "/helmnet/spectral.py", "/helmnet/util...
29,245
SonyPony/helmnet
refs/heads/main
/helmnet/hybridnet.py
import torch import torch.nn as nn from torch.utils.data import DataLoader from torch.nn.functional import hardtanh from random import choice import pytorch_lightning as pl from pytorch_lightning.metrics.regression import MeanAbsoluteError import numpy as np from helmnet.architectures import HybridNet from helmnet.data...
{"/helmnet/architectures.py": ["/helmnet/dataloaders.py", "/helmnet/spectral.py", "/helmnet/utils.py", "/helmnet/source.py", "/helmnet/replaybuffer.py"], "/helmnet/__init__.py": ["/helmnet/architectures.py", "/helmnet/dataloaders.py", "/helmnet/hybridnet.py", "/helmnet/source.py", "/helmnet/spectral.py", "/helmnet/util...
29,246
SonyPony/helmnet
refs/heads/main
/produce_figures.py
from evaluate import Evaluation from helmnet.support_functions import * from matplotlib import pyplot as plt import numpy as np import os from scipy.io import loadmat, savemat import torch from torchvision.utils import make_grid from tqdm import tqdm import subprocess SETTINGS = { "gmres_results": "results/gmres_r...
{"/helmnet/architectures.py": ["/helmnet/dataloaders.py", "/helmnet/spectral.py", "/helmnet/utils.py", "/helmnet/source.py", "/helmnet/replaybuffer.py"], "/helmnet/__init__.py": ["/helmnet/architectures.py", "/helmnet/dataloaders.py", "/helmnet/hybridnet.py", "/helmnet/source.py", "/helmnet/spectral.py", "/helmnet/util...
29,247
SonyPony/helmnet
refs/heads/main
/helmnet/dataloaders.py
import random from matplotlib import pyplot as plt from tqdm import trange import numpy as np import torch from torch.utils.data import Dataset from scipy.io import savemat def get_dataset( dataset_path: str, source_location="cuda:7", destination="cpu" ) -> Dataset: """Loads a torch dataset and maps it to arb...
{"/helmnet/architectures.py": ["/helmnet/dataloaders.py", "/helmnet/spectral.py", "/helmnet/utils.py", "/helmnet/source.py", "/helmnet/replaybuffer.py"], "/helmnet/__init__.py": ["/helmnet/architectures.py", "/helmnet/dataloaders.py", "/helmnet/hybridnet.py", "/helmnet/source.py", "/helmnet/spectral.py", "/helmnet/util...
29,248
SonyPony/helmnet
refs/heads/main
/helmnet/support_functions.py
import numpy as np import torch from tqdm import tqdm import os from matplotlib import pyplot as plt import subprocess from scipy.io import loadmat, savemat def last_frame_difference(stream, reference, mask=None): with torch.no_grad(): pytorch_wf = stream[:, -1, 0] + 1j * stream[:, -1, 1] stream =...
{"/helmnet/architectures.py": ["/helmnet/dataloaders.py", "/helmnet/spectral.py", "/helmnet/utils.py", "/helmnet/source.py", "/helmnet/replaybuffer.py"], "/helmnet/__init__.py": ["/helmnet/architectures.py", "/helmnet/dataloaders.py", "/helmnet/hybridnet.py", "/helmnet/source.py", "/helmnet/spectral.py", "/helmnet/util...
29,249
SonyPony/helmnet
refs/heads/main
/helmnet/utils.py
import json import os from matplotlib import pyplot as plt import numpy as np def load_settings(jsonpath: str, add_full_path=True): """Loads a `settings.json` file and adds the folder path to its fields Args: folder (str): folder path add_full_path (bool, optional): If true, adds the fold...
{"/helmnet/architectures.py": ["/helmnet/dataloaders.py", "/helmnet/spectral.py", "/helmnet/utils.py", "/helmnet/source.py", "/helmnet/replaybuffer.py"], "/helmnet/__init__.py": ["/helmnet/architectures.py", "/helmnet/dataloaders.py", "/helmnet/hybridnet.py", "/helmnet/source.py", "/helmnet/spectral.py", "/helmnet/util...
29,250
SonyPony/helmnet
refs/heads/main
/setup.py
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="helmnet", # Replace with your own username version="0.1.0", author="Antonio Stanziola", author_email="a.stanziola@ucl.ac.uk", description="", long_description=long_description, lo...
{"/helmnet/architectures.py": ["/helmnet/dataloaders.py", "/helmnet/spectral.py", "/helmnet/utils.py", "/helmnet/source.py", "/helmnet/replaybuffer.py"], "/helmnet/__init__.py": ["/helmnet/architectures.py", "/helmnet/dataloaders.py", "/helmnet/hybridnet.py", "/helmnet/source.py", "/helmnet/spectral.py", "/helmnet/util...
29,251
SonyPony/helmnet
refs/heads/main
/evaluate.py
from helmnet import IterativeSolver import pytorch_lightning as pl from torch.utils.data import DataLoader from helmnet.dataloaders import get_dataset from scipy.io import savemat import numpy as np class Evaluation: def __init__(self, path, testset, gpus): self.path = path self.testset = get_data...
{"/helmnet/architectures.py": ["/helmnet/dataloaders.py", "/helmnet/spectral.py", "/helmnet/utils.py", "/helmnet/source.py", "/helmnet/replaybuffer.py"], "/helmnet/__init__.py": ["/helmnet/architectures.py", "/helmnet/dataloaders.py", "/helmnet/hybridnet.py", "/helmnet/source.py", "/helmnet/spectral.py", "/helmnet/util...
29,252
SonyPony/helmnet
refs/heads/main
/helmnet/replaybuffer.py
import collections import numpy as np from torch.utils.data import IterableDataset from torch import stack import random # The ReplayBuffer class and Experience object is built on top of this tutorial: # https://towardsdatascience.com/en-lightning-reinforcement-learning-a155c217c3de Experience = collections.namedtupl...
{"/helmnet/architectures.py": ["/helmnet/dataloaders.py", "/helmnet/spectral.py", "/helmnet/utils.py", "/helmnet/source.py", "/helmnet/replaybuffer.py"], "/helmnet/__init__.py": ["/helmnet/architectures.py", "/helmnet/dataloaders.py", "/helmnet/hybridnet.py", "/helmnet/source.py", "/helmnet/spectral.py", "/helmnet/util...
29,253
indifferentalex/botticelli
refs/heads/master
/botticelli/scene.py
class Scene: """ A scene has a name and a detector function, which returns true if the scene is detected, false otherwise. Attributes: name (string): A descriptive name of what the scene consists of. detector (function): A function that checks if that scene is present. """ def __init__(sel...
{"/examples/calibration.py": ["/botticelli/utilities/__init__.py"], "/botticelli/__init__.py": ["/botticelli/scene.py", "/botticelli/action.py", "/botticelli/trigger.py"], "/examples/utilities_calibration.py": ["/botticelli/__init__.py"], "/botticelli/utilities/__init__.py": ["/botticelli/utilities/canvas.py"]}
29,254
indifferentalex/botticelli
refs/heads/master
/botticelli/utilities/detector_inspector.py
import botticelli # The detector inspector ignores params returned by the detectors (no state flow), # all cases should be written explicity def inspect(scenes_and_params): for scene, all_params in scenes_and_params: if not all_params: print scene.name + ": " + str(scene.detected({})[0]) ...
{"/examples/calibration.py": ["/botticelli/utilities/__init__.py"], "/botticelli/__init__.py": ["/botticelli/scene.py", "/botticelli/action.py", "/botticelli/trigger.py"], "/examples/utilities_calibration.py": ["/botticelli/__init__.py"], "/botticelli/utilities/__init__.py": ["/botticelli/utilities/canvas.py"]}
29,255
indifferentalex/botticelli
refs/heads/master
/examples/calibration.py
from context import botticelli from botticelli.utilities import detector_inspector detector_inspector.inspect()
{"/examples/calibration.py": ["/botticelli/utilities/__init__.py"], "/botticelli/__init__.py": ["/botticelli/scene.py", "/botticelli/action.py", "/botticelli/trigger.py"], "/examples/utilities_calibration.py": ["/botticelli/__init__.py"], "/botticelli/utilities/__init__.py": ["/botticelli/utilities/canvas.py"]}
29,256
indifferentalex/botticelli
refs/heads/master
/botticelli/utilities/pypette.py
from botticelli import utilities as canvas from pymouse import PyMouseEvent import webcolors import time mouse_position = canvas.mouse_position() color_at_mouse = canvas.get_color_at( int(mouse_position["x"]), int(mouse_position["y"])) # https://stackoverflow.com/a/9694246 def closest_colour(requested_colour): ...
{"/examples/calibration.py": ["/botticelli/utilities/__init__.py"], "/botticelli/__init__.py": ["/botticelli/scene.py", "/botticelli/action.py", "/botticelli/trigger.py"], "/examples/utilities_calibration.py": ["/botticelli/__init__.py"], "/botticelli/utilities/__init__.py": ["/botticelli/utilities/canvas.py"]}
29,257
indifferentalex/botticelli
refs/heads/master
/botticelli/__init__.py
from _version import __version__ from .scene import Scene from .action import Action from .trigger import Trigger
{"/examples/calibration.py": ["/botticelli/utilities/__init__.py"], "/botticelli/__init__.py": ["/botticelli/scene.py", "/botticelli/action.py", "/botticelli/trigger.py"], "/examples/utilities_calibration.py": ["/botticelli/__init__.py"], "/botticelli/utilities/__init__.py": ["/botticelli/utilities/canvas.py"]}
29,258
indifferentalex/botticelli
refs/heads/master
/botticelli/trigger.py
class Trigger: """ A trigger is simply a scene/action pair that can be passed in to actions (along with other triggers if required). Attributes: scene (botticelli.Scene): A scene that will trigger the accompanying action. action (botticelli.Action): An action that will be performed if the accom...
{"/examples/calibration.py": ["/botticelli/utilities/__init__.py"], "/botticelli/__init__.py": ["/botticelli/scene.py", "/botticelli/action.py", "/botticelli/trigger.py"], "/examples/utilities_calibration.py": ["/botticelli/__init__.py"], "/botticelli/utilities/__init__.py": ["/botticelli/utilities/canvas.py"]}