index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
95,272
jackpictures/computer-math
refs/heads/main
/7_2(испр).py
import math import numpy as np import matplotlib.pyplot as plt __name__="main" def toFixed(numObj, digits=0): return f"{numObj:.{digits}f}" def f1(x,y,z): return z def f(x,y,z): return 2*math.tan(x)*z-3*y def Runge(x0,y0,z0,h): yk = [] der = [] print( "\t" + "x_...
{"/app_functions.py": ["/main.py"], "/main.py": ["/app_modules.py", "/lab1_1.py", "/tests5_1.py"], "/app_modules.py": ["/app_functions.py"]}
95,273
jackpictures/computer-math
refs/heads/main
/rand.py
import numpy as np for i in range(3): k = np.random.randint(1,5) print(k)
{"/app_functions.py": ["/main.py"], "/main.py": ["/app_modules.py", "/lab1_1.py", "/tests5_1.py"], "/app_modules.py": ["/app_functions.py"]}
95,274
jackpictures/computer-math
refs/heads/main
/3_5.py
import numpy as np import module1 as md def norm(a1): while a1 and a1[0] == 0: a1.pop(0) if a1 == []: a1.append(0) def d_poly_koeffs(a1): deg = len(a1) - 1 k = [] for i in range(deg): k.append(deg * a1[i]) deg -= 1 return k def f(x,a1): k ...
{"/app_functions.py": ["/main.py"], "/main.py": ["/app_modules.py", "/lab1_1.py", "/tests5_1.py"], "/app_modules.py": ["/app_functions.py"]}
95,275
jackpictures/computer-math
refs/heads/main
/3_2.py
import numpy as np import module1 as md while 1: a1 = list(map(float, input().split())) if (float(a1[0])<0): for i in range(len(a1)): a1[i]*=-1 print("F(x)=",md.print_poly(a1)) polll = list(map(float,a1)) a_poly = np.array(list(a1),dtype = float) if a1[len(a1)-1] ...
{"/app_functions.py": ["/main.py"], "/main.py": ["/app_modules.py", "/lab1_1.py", "/tests5_1.py"], "/app_modules.py": ["/app_functions.py"]}
95,276
jackpictures/computer-math
refs/heads/main
/tests5_1.py
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 2.7.17 (default, Sep 30 2020, 13:38:04) # [GCC 7.5.0] # Warning: this version of Python has problems handling the Python 3 "byte" type in constants properly. # Embedded file name: C:\Users\Professional\PycharmProjects\pythonProject2\tes...
{"/app_functions.py": ["/main.py"], "/main.py": ["/app_modules.py", "/lab1_1.py", "/tests5_1.py"], "/app_modules.py": ["/app_functions.py"]}
95,277
jackpictures/computer-math
refs/heads/main
/main.py
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 2.7.17 (default, Sep 30 2020, 13:38:04) # [GCC 7.5.0] # Warning: this version of Python has problems handling the Python 3 "byte" type in constants properly. # Embedded file name: C:\Users\Professional\PycharmProjects\pythonProject2\mai...
{"/app_functions.py": ["/main.py"], "/main.py": ["/app_modules.py", "/lab1_1.py", "/tests5_1.py"], "/app_modules.py": ["/app_functions.py"]}
95,278
jackpictures/computer-math
refs/heads/main
/lab1_1.py
import numpy as np import module1 as md import copy import matplotlib.pyplot as plt from pyparsing import (Literal, CaselessLiteral, Word, Combine, Group, Optional, ZeroOrMore, Forward, nums, alphas, oneOf) import math import operator def lab1_1(a,b): a1 = list(map(float, a.split())) ...
{"/app_functions.py": ["/main.py"], "/main.py": ["/app_modules.py", "/lab1_1.py", "/tests5_1.py"], "/app_modules.py": ["/app_functions.py"]}
95,279
jackpictures/computer-math
refs/heads/main
/8_1(Гаусс).py
myA = [ [-5.0, 2.0, 4.0, -4.0], [0.0, 9.0, -7.0, -5.0], [-5.0, 0.0, 6.0, 7.0], [4.0, -8.0, -6.0,-6.0] ] myB = [ 57.0, -23.0, 23.0, -20.0] def FancyPrint(A, B, selected): for row in range(len(B)): print("(", end='') for col in range(len(A[row])): print("\t{1:10.2f}{0}".form...
{"/app_functions.py": ["/main.py"], "/main.py": ["/app_modules.py", "/lab1_1.py", "/tests5_1.py"], "/app_modules.py": ["/app_functions.py"]}
95,280
jackpictures/computer-math
refs/heads/main
/3_6.py
import numpy as np import module1 as md import copy import math def Scheme(polinom, a): output = [polinom[0]] for i in range(len(polinom) - 1): output.append(a * output[i] + polinom[i + 1]) return output def bounds(a2): def Lab_4(polinom): answer = [0, 0] # нахожден...
{"/app_functions.py": ["/main.py"], "/main.py": ["/app_modules.py", "/lab1_1.py", "/tests5_1.py"], "/app_modules.py": ["/app_functions.py"]}
95,281
jackpictures/computer-math
refs/heads/main
/7_1.py
import math import numpy as np import matplotlib.pyplot as plt def f(x,y): return (x**2 * y**2 + x**2) def toFixed(numObj, digits=0): return f"{numObj:.{digits}f}" def Euler_modified(x0, y0, x, step): m = int(((x - x0) / step)) y = y0 function_grid = [] function_grid.append(y) ...
{"/app_functions.py": ["/main.py"], "/main.py": ["/app_modules.py", "/lab1_1.py", "/tests5_1.py"], "/app_modules.py": ["/app_functions.py"]}
95,282
jackpictures/computer-math
refs/heads/main
/7.2.py
import math import numpy as np import matplotlib.pyplot as plt __name__="main" def toFixed(numObj, digits=0): return f"{numObj:.{digits}f}" def f1(x,y,z): return z def f(x,y,z): return 2*math.tan(x)*z-3*y if __name__=="main": x0 = 0 y0 = 1 z0 = 2 h = 0.1 ...
{"/app_functions.py": ["/main.py"], "/main.py": ["/app_modules.py", "/lab1_1.py", "/tests5_1.py"], "/app_modules.py": ["/app_functions.py"]}
95,283
jackpictures/computer-math
refs/heads/main
/3_1.py
import numpy as np import module1 as md while 1: a1 = list(map(float, input().split())) polll = list(map(float,a1)) a_poly = np.array(list(a1),dtype = float) print("F(x)=",md.print_poly(a1)) print("Степень многочлена = ",len(a1)-1) if a1[len(a1)-1] == 0: a1 = a1[:len(a1)-1] ...
{"/app_functions.py": ["/main.py"], "/main.py": ["/app_modules.py", "/lab1_1.py", "/tests5_1.py"], "/app_modules.py": ["/app_functions.py"]}
95,284
jackpictures/computer-math
refs/heads/main
/app_modules.py
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 2.7.17 (default, Sep 30 2020, 13:38:04) # [GCC 7.5.0] # Warning: this version of Python has problems handling the Python 3 "byte" type in constants properly. # Embedded file name: C:\Users\Professional\PycharmProjects\pythonProject2\app...
{"/app_functions.py": ["/main.py"], "/main.py": ["/app_modules.py", "/lab1_1.py", "/tests5_1.py"], "/app_modules.py": ["/app_functions.py"]}
95,290
shagunsodhani/github-summary
refs/heads/master
/util/constant.py
ACCESS_TOKEN = "access_token" APIDOT = "api." BASE_URL = "base_url" CLIENT_ID = "client_id" CLIENT_SECRET = "client_secret" COMMIT = "commit" COMMITS = "commits" CREATED_AT = "created_at" DISTINCT = "distinct" DOT = "." EMPTYSTRING = "" GITHUB = "github" GROUPY_BY = "group_by" HTTP = "http://" HTTPS = "https://" LOOKBA...
{"/github/activity.py": ["/github/event.py", "/util/constant.py", "/util/helper.py"], "/main.py": ["/github/activity.py", "/util/config.py", "/util/constant.py"], "/github/event.py": ["/util/constant.py"]}
95,291
shagunsodhani/github-summary
refs/heads/master
/util/config.py
try: from ConfigParser import ConfigParser except ImportError as e: from configparser import ConfigParser from os.path import join, abspath, dirname config = ConfigParser() config_path = join(abspath(dirname(dirname(__file__))), 'config', 'config.cfg') config.read(config_path) def parse_config(app_name="git...
{"/github/activity.py": ["/github/event.py", "/util/constant.py", "/util/helper.py"], "/main.py": ["/github/activity.py", "/util/config.py", "/util/constant.py"], "/github/event.py": ["/util/constant.py"]}
95,292
shagunsodhani/github-summary
refs/heads/master
/github/activity.py
from functools import reduce from github.event import Event from util.constant import * from util.helper import timestamp_to_formatted_date, get_head_and_reponse def get_activity_user(config_dict): '''Method to get all the activity of an user on github since `since_date`. Github API returns 30 items for each...
{"/github/activity.py": ["/github/event.py", "/util/constant.py", "/util/helper.py"], "/main.py": ["/github/activity.py", "/util/config.py", "/util/constant.py"], "/github/event.py": ["/util/constant.py"]}
95,293
shagunsodhani/github-summary
refs/heads/master
/util/helper.py
import sys from datetime import datetime import requests as r def timestamp_to_formatted_date(timestamp): '''Method to convert timestamp into date and print in the format Dec 26, 2016''' return datetime.utcfromtimestamp(int(timestamp)).strftime('%b %d, %Y') def get_head_and_reponse(endpoint, headers): ...
{"/github/activity.py": ["/github/event.py", "/util/constant.py", "/util/helper.py"], "/main.py": ["/github/activity.py", "/util/config.py", "/util/constant.py"], "/github/event.py": ["/util/constant.py"]}
95,294
shagunsodhani/github-summary
refs/heads/master
/main.py
"""Github-Summary. Usage: main.py [-p profile] [-t lookbackTime] [-g groupBy] main.py (-h | --help) Options: -h --help Show this screen. -p profile Choose which profile to use from config [default: github] -t lookbackTime lookbackTime with units -g groupBy group commits by repo or repo followed b...
{"/github/activity.py": ["/github/event.py", "/util/constant.py", "/util/helper.py"], "/main.py": ["/github/activity.py", "/util/config.py", "/util/constant.py"], "/github/event.py": ["/util/constant.py"]}
95,295
shagunsodhani/github-summary
refs/heads/master
/github/event.py
import datetime import re import time from functools import reduce import iso8601 from util.constant import * class Commit: '''Class to handle the commit object''' def __init__(self, commit_dict): self.commit_dict = commit_dict def is_distinct(self): return self.commit_dict[DISTINCT] ...
{"/github/activity.py": ["/github/event.py", "/util/constant.py", "/util/helper.py"], "/main.py": ["/github/activity.py", "/util/config.py", "/util/constant.py"], "/github/event.py": ["/util/constant.py"]}
95,299
vivienneinus/Coursera-UW-MachineLearning-Regression
refs/heads/master
/KNNRegression.py
# -*- coding: utf-8 -*- """ Created on Thu Nov 1 11:45:28 2018 @author: vwzheng """ import os import numpy as np import pandas as pd from math import * from IPython import get_ipython get_ipython().run_line_magic('matplotlib', 'inline') import matplotlib.pyplot as plt dtype_dict = {'bathrooms':float,...
{"/L2Regularization.py": ["/PolynomialRegression.py"]}
95,300
vivienneinus/Coursera-UW-MachineLearning-Regression
refs/heads/master
/SimpleLinearRegression.py
# -*- coding: utf-8 -*- """ Created on Wed Jan 2 11:30:23 2019 @author: vwzheng """ import pandas as pd import statsmodels.api as sm #requires a dictionary of types for importing csv files train_data = pd.read_csv('kc_house_train_data.csv', dtype = {'bathrooms':float, 'waterfro...
{"/L2Regularization.py": ["/PolynomialRegression.py"]}
95,301
vivienneinus/Coursera-UW-MachineLearning-Regression
refs/heads/master
/RidgeRegressionviaGradientDescent.py
# -*- coding: utf-8 -*- """ Created on Thu Oct 11 09:31:21 2018 @author: vwzheng """ import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns; sns.set() import os import matplotlib.pyplot as plt #%matplotlib inline from IPython import get_ipython get_ipython().run_li...
{"/L2Regularization.py": ["/PolynomialRegression.py"]}
95,302
vivienneinus/Coursera-UW-MachineLearning-Regression
refs/heads/master
/MultipleRegressionGradientDescent.py
# -*- coding: utf-8 -*- """ Created on Mon Oct 1 16:50:46 2018 @author: vwzheng """ import pandas as pd import numpy as np from sklearn import linear_model file_train = 'D:/Downloads/vivienne/ML/Regression_UW/kc_house_train_data.csv' train_data = pd.read_csv(file_train, dtype = {...
{"/L2Regularization.py": ["/PolynomialRegression.py"]}
95,303
vivienneinus/Coursera-UW-MachineLearning-Regression
refs/heads/master
/L2Regularization.py
# -*- coding: utf-8 -*- """ Created on Tue Oct 9 11:22:53 2018 @author: vwzheng """ #??why sorted train data has a larger RSS mean than unsorted for k-foldCV import pandas as pd from sklearn import linear_model import numpy as np import matplotlib.pyplot as plt import seaborn as sns; sns.set() import os ...
{"/L2Regularization.py": ["/PolynomialRegression.py"]}
95,304
vivienneinus/Coursera-UW-MachineLearning-Regression
refs/heads/master
/L1Regularization.py
# -*- coding: utf-8 -*- """ Created on Wed Oct 24 12:09:52 2018 @author: vwzheng """ import os import pandas as pd import numpy as np from math import * from sklearn import linear_model # using scikit-learn dtype_dict = {'bathrooms':float, 'waterfront':int, 'sqft_above':int, 'sqft_livi...
{"/L2Regularization.py": ["/PolynomialRegression.py"]}
95,305
vivienneinus/Coursera-UW-MachineLearning-Regression
refs/heads/master
/PolynomialRegression.py
# -*- coding: utf-8 -*- """ Created on Fri Oct 5 09:56:37 2018 @author: vwzheng """ from IPython import get_ipython get_ipython().run_line_magic('matplotlib', 'inline') import matplotlib.pyplot as plt import seaborn as sns; sns.set() import pandas as pd import numpy as np from sklearn.linear_model impor...
{"/L2Regularization.py": ["/PolynomialRegression.py"]}
95,306
vivienneinus/Coursera-UW-MachineLearning-Regression
refs/heads/master
/LassoRegressionviaCoordinateDescent.py
# -*- coding: utf-8 -*- """ Created on Wed Oct 24 12:39:18 2018 @author: vwzheng """ import os import pandas as pd import numpy as np from math import * dtype_dict = {'bathrooms':float, 'waterfront':int, 'sqft_above':int, 'sqft_living15':float, 'grade':int, 'yr_renovated':int, ...
{"/L2Regularization.py": ["/PolynomialRegression.py"]}
95,318
PetarV-/n-hance-pls
refs/heads/master
/backend/nhancer.py
import numpy as np import tensorflow as tf from backend.model import resnet from scipy.misc import bytescale use_gpu = True batch_sz = 4 img_h = 720 img_w = 1280 img_d = 3 img_sz = img_h * img_w * img_d config = tf.ConfigProto(device_count={'GPU': 0}) if not use_gpu else None def build_net(): x_...
{"/frontend/app.py": ["/backend/get_frames.py", "/backend/nhancer.py"]}
95,319
PetarV-/n-hance-pls
refs/heads/master
/frontend/app.py
import os import sys import shutil from flask import Flask, render_template, request, send_from_directory from os import listdir from os.path import isfile, join app = Flask(__name__) APP_ROOT = os.path.dirname(__file__) sys.path.append(os.path.join(APP_ROOT, '../')) from backend.get_frames import video_to_frames, f...
{"/frontend/app.py": ["/backend/get_frames.py", "/backend/nhancer.py"]}
95,320
PetarV-/n-hance-pls
refs/heads/master
/backend/get_frames.py
import skvideo.io def video_to_frames(input_loc): """ Deconstructs video to frames :param input_loc: Video file :return: numpy array with dimensions (time, height, width, channels) """ return skvideo.io.vread(input_loc) def frames_to_video(array_of_frames, output_loc): """ Reconstruc...
{"/frontend/app.py": ["/backend/get_frames.py", "/backend/nhancer.py"]}
95,325
taltil/Sudoku
refs/heads/master
/BoardState.py
from enum import Enum class BoardState(Enum): NOT_FULL = -1 FULL_AND_WRONG = 1 FULL_AND_RIGHT = 2
{"/SudokuUI.py": ["/SudokuGame.py", "/BoardState.py"], "/SudokuGame.py": ["/SudokuBoard.py", "/BoardState.py"], "/main.py": ["/SudokuUI.py"]}
95,326
taltil/Sudoku
refs/heads/master
/SudokuUI.py
from tkinter import * import tkinter.messagebox from SudokuGame import * from Stack import * from BoardState import * # responsible for board drawing and receiving input from user class SudokuUI(Frame, SudokuGame): def __init__(self, master, board_file): Frame.__init__(self, master) SudokuGame.__...
{"/SudokuUI.py": ["/SudokuGame.py", "/BoardState.py"], "/SudokuGame.py": ["/SudokuBoard.py", "/BoardState.py"], "/main.py": ["/SudokuUI.py"]}
95,327
taltil/Sudoku
refs/heads/master
/SudokuBoard.py
# sudoku board representation as matrix class SudokuBoard(object): def __init__(self, board_file): self.board_file = board_file self.board_matrix = [] def __create_board__(self): board_matrix = [] with open(self.board_file, 'r') as b_file: data = b_file.readlines() ...
{"/SudokuUI.py": ["/SudokuGame.py", "/BoardState.py"], "/SudokuGame.py": ["/SudokuBoard.py", "/BoardState.py"], "/main.py": ["/SudokuUI.py"]}
95,328
taltil/Sudoku
refs/heads/master
/SudokuGame.py
import math from SudokuBoard import * from BoardState import * # A sudoku game in charge of storing the state of the board and checking # if the puzzle is completed class SudokuGame(SudokuBoard): def __init__(self, board_file): super().__init__(board_file) self.board_file = board_file sel...
{"/SudokuUI.py": ["/SudokuGame.py", "/BoardState.py"], "/SudokuGame.py": ["/SudokuBoard.py", "/BoardState.py"], "/main.py": ["/SudokuUI.py"]}
95,329
taltil/Sudoku
refs/heads/master
/main.py
from SudokuUI import * root = Tk() app = SudokuUI(root, 'board.txt') root.title('Sudoku Game') root.mainloop()
{"/SudokuUI.py": ["/SudokuGame.py", "/BoardState.py"], "/SudokuGame.py": ["/SudokuBoard.py", "/BoardState.py"], "/main.py": ["/SudokuUI.py"]}
95,335
saisai/EpPos
refs/heads/master
/pos/admin.py
from django.contrib import admin from .models import Product,Cash,Order # Register your models here. admin.site.register(Product) admin.site.register(Cash) admin.site.register(Order)
{"/pos/admin.py": ["/pos/models.py"], "/pos/migrations/0006_auto_20160606_2019.py": ["/pos/models.py"], "/pos/helper.py": ["/pos/models.py"], "/pos/views.py": ["/pos/models.py"]}
95,336
saisai/EpPos
refs/heads/master
/pos/urls.py
from django.conf.urls import url from django.views.generic import RedirectView from . import views urlpatterns = [ url(r'^$', RedirectView.as_view(pattern_name='order')), url(r'^order/$', views.order, name='order'), url(r'^addition/(?P<operation>[A-Za-z0-9\.\+\(\)\-\_ ]*)/?$', views.addition, name='additio...
{"/pos/admin.py": ["/pos/models.py"], "/pos/migrations/0006_auto_20160606_2019.py": ["/pos/models.py"], "/pos/helper.py": ["/pos/models.py"], "/pos/views.py": ["/pos/models.py"]}
95,337
saisai/EpPos
refs/heads/master
/pos/migrations/0006_auto_20160606_2019.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-06-06 18:19 from __future__ import unicode_literals from django.db import migrations, models import pos.models class Migration(migrations.Migration): dependencies = [ ('pos', '0005_auto_20160527_2010'), ] operations = [ migrati...
{"/pos/admin.py": ["/pos/models.py"], "/pos/migrations/0006_auto_20160606_2019.py": ["/pos/models.py"], "/pos/helper.py": ["/pos/models.py"], "/pos/views.py": ["/pos/models.py"]}
95,338
saisai/EpPos
refs/heads/master
/pos/helper.py
import json import decimal from .models import Product # Takes the standard JSON representation of these arrays and returns them as an actual array of Product def parse_json_product_list(json_string): json_dict = json.loads(json_string) resulting_list = [] for product_dict in json_dict: product = ...
{"/pos/admin.py": ["/pos/models.py"], "/pos/migrations/0006_auto_20160606_2019.py": ["/pos/models.py"], "/pos/helper.py": ["/pos/models.py"], "/pos/views.py": ["/pos/models.py"]}
95,339
saisai/EpPos
refs/heads/master
/pos/migrations/0009_auto_20170905_1752.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-09-05 15:52 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pos', '0008_auto_20170904_1947'), ] operations = [ migrations.AlterField( ...
{"/pos/admin.py": ["/pos/models.py"], "/pos/migrations/0006_auto_20160606_2019.py": ["/pos/models.py"], "/pos/helper.py": ["/pos/models.py"], "/pos/views.py": ["/pos/models.py"]}
95,340
saisai/EpPos
refs/heads/master
/pos/views.py
import logging import decimal from django.shortcuts import render from django.http import HttpResponse from django.template import loader from django.core.exceptions import MultipleObjectsReturned from django.contrib.auth.decorators import login_required from .models import Product, Order, Cash from . import helper # ...
{"/pos/admin.py": ["/pos/models.py"], "/pos/migrations/0006_auto_20160606_2019.py": ["/pos/models.py"], "/pos/helper.py": ["/pos/models.py"], "/pos/views.py": ["/pos/models.py"]}
95,341
saisai/EpPos
refs/heads/master
/pos/models.py
from django.db import models from django.core.exceptions import ValidationError import logging import json import re def validate_product_name(prodname): regex_string = r'^[\w ]+$' search = re.compile(regex_string).search result = bool(search(prodname)) if not result: raise ValidationError("Ple...
{"/pos/admin.py": ["/pos/models.py"], "/pos/migrations/0006_auto_20160606_2019.py": ["/pos/models.py"], "/pos/helper.py": ["/pos/models.py"], "/pos/views.py": ["/pos/models.py"]}
95,342
saisai/EpPos
refs/heads/master
/pos/migrations/0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-05-24 12:12 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Product...
{"/pos/admin.py": ["/pos/models.py"], "/pos/migrations/0006_auto_20160606_2019.py": ["/pos/models.py"], "/pos/helper.py": ["/pos/models.py"], "/pos/views.py": ["/pos/models.py"]}
95,343
saisai/EpPos
refs/heads/master
/pos/migrations/0008_auto_20170904_1947.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-09-04 17:47 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pos', '0007_cash'), ] operations = [ migrations.AlterField( mod...
{"/pos/admin.py": ["/pos/models.py"], "/pos/migrations/0006_auto_20160606_2019.py": ["/pos/models.py"], "/pos/helper.py": ["/pos/models.py"], "/pos/views.py": ["/pos/models.py"]}
95,344
saisai/EpPos
refs/heads/master
/pos/migrations/0003_auto_20160525_1431.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-05-25 12:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pos', '0002_delete_user'), ] operations = [ migrations.CreateModel( ...
{"/pos/admin.py": ["/pos/models.py"], "/pos/migrations/0006_auto_20160606_2019.py": ["/pos/models.py"], "/pos/helper.py": ["/pos/models.py"], "/pos/views.py": ["/pos/models.py"]}
95,347
IgorFroehner/NEARPriceTwitterBot
refs/heads/main
/get_token.py
import tweepy from decouple import config if __name__ == '__main__': API_KEY = config('TWITTER_API_KEY') SECRET_API_KEY = config('TWITTER_SECRET_API_KEY') auth = tweepy.OAuthHandler(API_KEY, SECRET_API_KEY) redirect_url = auth.get_authorization_url() print(f"Access this url: {redirect_url}") ...
{"/bot/__init__.py": ["/bot/near.py", "/bot/twitter.py"], "/tweet_once.py": ["/bot/__init__.py"], "/main.py": ["/bot/__init__.py"]}
95,348
IgorFroehner/NEARPriceTwitterBot
refs/heads/main
/bot/__init__.py
from bot.near import Near from bot.twitter import Twitter
{"/bot/__init__.py": ["/bot/near.py", "/bot/twitter.py"], "/tweet_once.py": ["/bot/__init__.py"], "/main.py": ["/bot/__init__.py"]}
95,349
IgorFroehner/NEARPriceTwitterBot
refs/heads/main
/bot/near.py
from decouple import config from requests import Session from requests.exceptions import ConnectionError, Timeout, TooManyRedirects import json class Near: def __init__(self): self.crypto_symbol = 'NEAR' self.currency = config('CURRENCY_TO_CONVERT') def getData(self): url = 'https://p...
{"/bot/__init__.py": ["/bot/near.py", "/bot/twitter.py"], "/tweet_once.py": ["/bot/__init__.py"], "/main.py": ["/bot/__init__.py"]}
95,350
IgorFroehner/NEARPriceTwitterBot
refs/heads/main
/tweet_once.py
from decouple import config from bot import Near, Twitter if __name__ == '__main__': near = Near() twitter = Twitter() CURRENCY = config('CURRENCY_TO_CONVERT') TEXT_LAST_24_HRS = config('TEXT_LAST_24_HRS') data = near.getData() price = f"{data['price']:.2f}" percent_change_24h = f"{data...
{"/bot/__init__.py": ["/bot/near.py", "/bot/twitter.py"], "/tweet_once.py": ["/bot/__init__.py"], "/main.py": ["/bot/__init__.py"]}
95,351
IgorFroehner/NEARPriceTwitterBot
refs/heads/main
/bot/twitter.py
from decouple import config import tweepy class Twitter: def __init__(self): self.API_KEY = config('TWITTER_API_KEY') self.SECRET_API_KEY = config('TWITTER_SECRET_API_KEY') self.ACCESS_TOKEN = config('TWITTER_ACCESS_TOKEN') self.SECRET_ACCESS_TOKEN = config('TWITTER_SECRET_ACCESS_...
{"/bot/__init__.py": ["/bot/near.py", "/bot/twitter.py"], "/tweet_once.py": ["/bot/__init__.py"], "/main.py": ["/bot/__init__.py"]}
95,352
IgorFroehner/NEARPriceTwitterBot
refs/heads/main
/main.py
from time import sleep from decouple import config from bot import Near from bot import Twitter if __name__ == '__main__': near = Near() twitter = Twitter() CURRENCY = config('CURRENCY_TO_CONVERT') TEXT_LAST_24_HRS = config('TEXT_LAST_24_HRS') sleep_time = 86400 / int(config('TWEETS_PER_DAY')) ...
{"/bot/__init__.py": ["/bot/near.py", "/bot/twitter.py"], "/tweet_once.py": ["/bot/__init__.py"], "/main.py": ["/bot/__init__.py"]}
95,372
MosChris1000/discord-becky-bot-py
refs/heads/master
/main.py
import asyncio from discord import Client as DiscordClient from discord import Game, Message, Server import config from raven import Client as SentryClient from raven_aiohttp import AioHttpTransport import google_service_account from datastore import redis_db sentry_client = SentryClient(config.SENTRY_DSN, transport...
{"/main.py": ["/config.py", "/google_service_account.py", "/datastore.py"], "/datastore.py": ["/config.py"], "/google_service_account.py": ["/config.py"]}
95,373
MosChris1000/discord-becky-bot-py
refs/heads/master
/datastore.py
# -*- coding: utf-8 -*- import config from redis import ConnectionPool, StrictRedis redis_connection_pool = ConnectionPool.from_url(config.REDIS_URL, db=0, charset='utf-8', decode_responses=True) redis_db = StrictRedis(connection_pool=redis_connection_pool)
{"/main.py": ["/config.py", "/google_service_account.py", "/datastore.py"], "/datastore.py": ["/config.py"], "/google_service_account.py": ["/config.py"]}
95,374
MosChris1000/discord-becky-bot-py
refs/heads/master
/google_service_account.py
#import config import pygsheets from oauth2client.service_account import ServiceAccountCredentials import re import config from datetime import datetime import pytz import calendar google_credentials = ServiceAccountCredentials.from_json_keyfile_dict( **config.GOOGLE_SERVICE_ACCOUNT_CONFIG) # https://github.com/...
{"/main.py": ["/config.py", "/google_service_account.py", "/datastore.py"], "/datastore.py": ["/config.py"], "/google_service_account.py": ["/config.py"]}
95,375
MosChris1000/discord-becky-bot-py
refs/heads/master
/config.py
# -*- coding: utf-8 -*- import ast import base64 import json import os # general # ------------------------------------------------------------------------------ #ENABLE_APP = ast.literal_eval(os.environ.get('ENABLE_APP', 'True')) GROUP_INFO_SEQUENCE = { "1-A": ('A4', 'B5:E6'), "1-B": ('G4', 'H5:K6'), "2-A": ('A...
{"/main.py": ["/config.py", "/google_service_account.py", "/datastore.py"], "/datastore.py": ["/config.py"], "/google_service_account.py": ["/config.py"]}
95,397
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/single_ventricle_circulation/vad/vad.py
# -*- coding: utf-8 -*- """ Created on Mon Feb 15 22:51:06 2021 @author: ken """ class VAD(): """ Class for VAD """ def __init__(self, VAD_structure, parent_circulation): # Set the parent circulation self.parent_circulation = parent_circulation # Create a data dictionary se...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,398
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/display/multi_panel.py
# -*- coding: utf-8 -*- """ Created on Sat Dec 12 22:31:36 2020 @author: ken """ import os import json import pandas as pd import numpy as np import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec from matplotlib.lines import Line2D from matplotlib import patches as pat from matplotlib.patches import...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,399
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py
# Functions for myofilament kinetics import numpy as np from scipy.integrate import solve_ivp from numba import jit import scipy.constants as scipy_constants def evolve_kinetics(self, time_step, Ca_conc): """Updates kinetics, switches to different sub-functions as required""" if (self.implementation['kinetic...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,400
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/sim_options/sim_options.py
# -*- coding: utf-8 -*- """ Created on Tue Jan 12 09:43:40 2021 @author: ken """ import json import os import numpy as np import pandas as pd from pathlib import Path from protocol import protocol as prot import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec class sim_options(): def __init_...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,401
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/single_ventricle_circulation/baroreflex/baroreflex.py
# -*- coding: utf-8 -*- """ Created on Thu Dec 24 13:41:59 2020 @author: ken """ import numpy as np from scipy.integrate import odeint class baroreflex(): """ Class for the baroreflex """ def __init__(self, baro_structure, parent_circulation, pressure=0): # Set th...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,402
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/output_handler/output_handler.py
# -*- coding: utf-8 -*- """ Created on Tue Dec 22 17:17:59 2020 @author: ken """ import json import os import numpy as np import pandas as pd from pathlib import Path import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec from display.multi_panel import multi_panel_from_flat_data class output_ha...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,403
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/forces.py
# Functions relating to forces import numpy as np import scipy.optimize as opt def set_myofilament_stresses(self): """ Sets initial values """ d = self.check_myofilament_stresses(0.0) self.cpt_myofil_stress = d['cpt_myofil_stress'] self.hs_stress = d['hs_stress'] def check_myofilament_stresses(self,...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,404
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/protocol/protocol.py
# -*- coding: utf-8 -*- """ Created on Mon Dec 21 15:03:44 2020 @author: ken """ import json class protocol(): def __init__(self, protocol_file_string): self.data = dict() with open(protocol_file_string,'r') as f: s = json.load(f) prot = s['protocol'] ...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,405
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py
import numpy as np import scipy.interpolate as interpol def move_cb_distributions(self, delta_hsl): """ Moves cb distributions """ delta_x = delta_hsl * self.implementation['filament_compliance_factor'] if (self.implementation['kinetic_scheme'] == '3_state_with_SRX'): interp_positions = self.x -...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,406
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/single_ventricle_circulation/half_sarcomere/membranes/Shannon_Bers_2004.py
# Size of variable arrays: sizeAlgebraic = 111 sizeStates = 39 sizeConstants = 137 from math import * from numpy import * def createLegends(): legend_states = [""] * sizeStates legend_rates = [""] * sizeStates legend_algebraic = [""] * sizeAlgebraic legend_voi = "" legend_constants = [""] * sizeCon...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,407
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/single_ventricle_circulation/half_sarcomere/membranes/membranes.py
import numpy as np from scipy.integrate import solve_ivp # from functools import partial # from .Ten_Tusscher_2004 import computeRates_with_activation as \ # tt_computeRates_with_activation # from .Ten_Tusscher_2004 import initConsts_with_adjustments as \ # tt_initConsts_with_adjustments # from .Ten_Tusscher_2004 imp...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,408
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py
import numpy as np class myofilaments(): """Class for myofilaments""" from .kinetics import evolve_kinetics, return_fluxes, return_rates from .move import move_cb_distributions from .forces import set_myofilament_stresses, check_myofilament_stresses, \ return_hs_length_for_stress, return_intra...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,409
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/single_ventricle_circulation/half_sarcomere/membranes/grandi_2009.py
# Size of variable arrays: sizeAlgebraic = 114 sizeStates = 39 sizeConstants = 124 from math import * from numpy import * def createLegends(): legend_states = [""] * sizeStates legend_rates = [""] * sizeStates legend_algebraic = [""] * sizeAlgebraic legend_voi = "" legend_constants = [""] * sizeCon...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,410
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/single_ventricle_circulation/write_data.py
import os import pandas as pd import numpy as np from output_handler import output_handler as oh def write_complete_data_to_sim_data(self, index): """ Writes full data to data frame """ # This works but is very slow if (True): for f in list(self.data.keys()): if (f not in ['p', 'v', ...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,411
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/single_ventricle_circulation/half_sarcomere/membranes/Ten_Tusscher_2004.py
# Code generated from http://models.cellml.org/exposure/c7f7ced1e002d9f0af1b56b15a873736/tentusscher_noble_noble_panfilov_2004_a.cellml/@@cellml_codegen/Python # Size of variable arrays: sizeAlgebraic = 67 sizeStates = 17 sizeConstants = 46 from math import * from numpy import * import numpy as np import pandas as pd i...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,412
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/display/display.py
# -*- coding: utf-8 -*- """ Created on Sat Dec 12 22:31:36 2020 @author: ken """ import json import pandas as pd import numpy as np import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec from .multi_panel import multi_panel_from_flat_data def create_summary(data_file_string, output_file_string=[]):...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,413
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/PyMyoVent.py
# -*- coding: utf-8 -*- """ Created on Sun Oct 20 15:04:38 2019 @author: kscamp3 """ import os import sys import json import time import multiprocessing from pathlib import Path from single_ventricle_circulation import single_ventricle_circulation as svc from output_handler import output_handler as oh def PyMyoV...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,414
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/single_ventricle_circulation/single_ventricle_circulation.py
import os import json import numpy as np import pandas as pd from pathlib import Path from .half_sarcomere import half_sarcomere as hs from .heart_rate import heart_rate as hr from .baroreflex import baroreflex as br from .growth import growth as gr from .vad import vad as va from protocol import protocol as prot fr...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,415
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/single_ventricle_circulation/calculate_properties.py
# -*- coding: utf-8 -*- """ Created on Tue Jan 18 11:50:06 2022 @author: ken """ import numpy as np from scipy.constants import mmHg as mmHg_in_Pascals def return_wall_thickness(self, chamber_volume): """ returns wall thickness given internal_r """ if (chamber_volume < 0): chamber_volume = 0 # ...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,416
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/single_ventricle_circulation/heart_rate/heart_rate.py
# -*- coding: utf-8 -*- """ Created on Tue Dec 22 12:37:20 2020 @author: ken """ class heart_rate(): """ Class for heart-rate """ def __init__(self, heart_rate_struct): # Initialize the data dict self.data = dict() for f in list(heart_rate_struct.keys()): self.data[f] = ...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,417
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/single_ventricle_circulation/half_sarcomere/half_sarcomere.py
import numpy as np import pandas as pd from .membranes import membranes as memb from .energetics import energetics as ener from .myofilaments import myofilaments as myof class half_sarcomere(): """Class for a half-sarcomere""" def __init__(self, hs_struct, parent_circulation): # Store the parent ci...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,418
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/single_ventricle_circulation/half_sarcomere/energetics/energetics.py
# -*- coding: utf-8 -*- """ Created on Mon Apr 26 10:07:05 2021 @author: ken """ import numpy as np from scipy.integrate import odeint import scipy.constants as scipy_constants class energetics(): """ Class for the energetics component """ def __init__(self, energetics_structure, pare...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,419
Campbell-Muscle-Lab/PyMyoVent
refs/heads/master
/Python_code/single_ventricle_circulation/growth/growth.py
# -*- coding: utf-8 -*- """ Created on Wed Dec 30 22:41:31 2020 @author: ken """ import numpy as np class growth(): """ Class for growth """ def __init__(self, growth_structure, parent_circulation): # Set the parent circulation self.parent_circulation = parent_circulation ...
{"/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/myofilaments.py": ["/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/kinetics.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofilaments/move.py", "/Python_code/single_ventricle_circulation/half_sarcomere/myofi...
95,421
rcomer/gliding
refs/heads/master
/plotmultialt.py
#!/usr/bin/env python # Command line interface for plotflight in glidertrace.py from glidertrace import * import argparse import os import glob import matplotlib.pyplot as plt import numpy as np # Get command line arguments parser = argparse.ArgumentParser( description='Plot altitudes of all traces in a director...
{"/plotmultialt.py": ["/glidertrace.py"], "/enterprise.py": ["/glidertrace.py"], "/plottrace.py": ["/glidertrace.py"], "/plotmultitrace.py": ["/glidertrace.py"]}
95,422
rcomer/gliding
refs/heads/master
/enterprise.py
#!/usr/bin/env python """Plot flights from Competition Enterprise 2017""" from glidertrace import * import os import glob import matplotlib.pyplot as plt import matplotlib.lines as mlines import numpy as np import cartopy.crs as ccrs import time SOURCE_CRS = ccrs.PlateCarree() OS_CRS = ccrs.OSGB() DSGC_OS = OS_CRS.t...
{"/plotmultialt.py": ["/glidertrace.py"], "/enterprise.py": ["/glidertrace.py"], "/plottrace.py": ["/glidertrace.py"], "/plotmultitrace.py": ["/glidertrace.py"]}
95,423
rcomer/gliding
refs/heads/master
/glidertrace.py
"""Classes and functions for plotting glider traces.""" import datetime import math import os.path from itertools import islice import shapely.geometry as sgeom import numpy as np import matplotlib import matplotlib.pyplot as plt import matplotlib.dates as mdates import matplotlib.gridspec as gridspec import matplotl...
{"/plotmultialt.py": ["/glidertrace.py"], "/enterprise.py": ["/glidertrace.py"], "/plottrace.py": ["/glidertrace.py"], "/plotmultitrace.py": ["/glidertrace.py"]}
95,424
rcomer/gliding
refs/heads/master
/plottrace.py
#!/usr/bin/env python # Command line interface for plotflight in glidertrace.py from glidertrace import plotflight import argparse parser = argparse.ArgumentParser(description='Plot a glider trace') parser.add_argument('filename', help='An IGC logger file') parser.add_argument('--pilot', '-p', nargs='+', help='Name ...
{"/plotmultialt.py": ["/glidertrace.py"], "/enterprise.py": ["/glidertrace.py"], "/plottrace.py": ["/glidertrace.py"], "/plotmultitrace.py": ["/glidertrace.py"]}
95,425
rcomer/gliding
refs/heads/master
/plotmultitrace.py
#!/usr/bin/env python """Command line interface to plot multiple traces with glidertrace.py""" import argparse import os import glob import matplotlib.pyplot as plt import numpy as np import cartopy.crs as ccrs import glidertrace # Get command line arguments parser = argparse.ArgumentParser(description='Plot all tr...
{"/plotmultialt.py": ["/glidertrace.py"], "/enterprise.py": ["/glidertrace.py"], "/plottrace.py": ["/glidertrace.py"], "/plotmultitrace.py": ["/glidertrace.py"]}
95,427
12ben/discord-netease-music-bot
refs/heads/master
/neteaselib.py
import os import shutil import stat import requests from mutagen.mp3 import MP3 def get_music_info(music_id: str): searchResult = requests.get('https://api.imjad.cn/cloudmusic/?type=search&search_type=1&s=' + music_id).json() musicId = str(searchResult['result']['songs'][0]['id']) musicResult = requests.g...
{"/start.py": ["/neteaselib.py"]}
95,428
12ben/discord-netease-music-bot
refs/heads/master
/start.py
import discord import asyncio import logging import time from configparser import ConfigParser from discord.ext import commands import neteaselib logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO) bot = commands.Bot(command_prefix='$') bot.remove_...
{"/start.py": ["/neteaselib.py"]}
95,484
mingaleg/turingmarkov
refs/heads/master
/turingmarkov/markov.py
# -*- coding: utf-8 -*- """Emulator of markov algothm.""" TEMPLATE = """#!/bin/env python3 # -*- coding: utf-8 -*- from turingmarkov.markov import Algorithm from sys import stdin algo = Algorithm() """ class Algorithm: """Now supports only execution of algorithm. >>> algo = Algorithm(['aa -> a', 'bb -> b',...
{"/turingmarkov/tests/test_markov.py": ["/turingmarkov/markov.py"], "/turingmarkov/tests/test_turing.py": ["/turingmarkov/turing.py"], "/turingmarkov/__main__.py": ["/turingmarkov/markov.py", "/turingmarkov/turing.py"], "/turingmarkov/tests/test_main.py": ["/turingmarkov/__main__.py"]}
95,485
mingaleg/turingmarkov
refs/heads/master
/turingmarkov/tests/test_markov.py
# -*- coding: utf-8 -*- """Test case for markov algorithm emulator.""" from turingmarkov.markov import Algorithm from pytest import raises def test_algorithm_init(): """Test if we can create empty algorithm and algorithm with rules.""" algo = Algorithm() assert algo.rules == [] algo = Algorithm(['aa ...
{"/turingmarkov/tests/test_markov.py": ["/turingmarkov/markov.py"], "/turingmarkov/tests/test_turing.py": ["/turingmarkov/turing.py"], "/turingmarkov/__main__.py": ["/turingmarkov/markov.py", "/turingmarkov/turing.py"], "/turingmarkov/tests/test_main.py": ["/turingmarkov/__main__.py"]}
95,486
mingaleg/turingmarkov
refs/heads/master
/setup.py
# -*- coding: utf-8 -*- """Turing machine and markov algorithm emulator. Algorithm are compiling to python code or executing. Read the doc: <https://github.com/vslutov/turingmarkov> """ from setuptools import setup, find_packages VERSION = "0.1.4" # Don't forget fix in __main__.py setup(name='turingmarkov', ...
{"/turingmarkov/tests/test_markov.py": ["/turingmarkov/markov.py"], "/turingmarkov/tests/test_turing.py": ["/turingmarkov/turing.py"], "/turingmarkov/__main__.py": ["/turingmarkov/markov.py", "/turingmarkov/turing.py"], "/turingmarkov/tests/test_main.py": ["/turingmarkov/__main__.py"]}
95,487
mingaleg/turingmarkov
refs/heads/master
/turingmarkov/tests/test_turing.py
# -*- coding: utf-8 -*- """Test case for turing machine emulator.""" from turingmarkov.turing import Machine, build_machine, TEMPLATE from pytest import raises def test_init(): """Test, that machine is possible to create.""" machine = Machine(['a', 'b', 'c', '_']) assert machine.alphabet == ['a', 'b', 'c...
{"/turingmarkov/tests/test_markov.py": ["/turingmarkov/markov.py"], "/turingmarkov/tests/test_turing.py": ["/turingmarkov/turing.py"], "/turingmarkov/__main__.py": ["/turingmarkov/markov.py", "/turingmarkov/turing.py"], "/turingmarkov/tests/test_main.py": ["/turingmarkov/__main__.py"]}
95,488
mingaleg/turingmarkov
refs/heads/master
/turingmarkov/__main__.py
# -*- coding: utf-8 -*- """turingmarkov - Turing machine and markov algorithm emulator.""" from .markov import Algorithm from .turing import build_machine import pytest, os, sys VERSION = "0.1.4" # Don't forget fix in setup.py USAGE = '''Usage: turingmarkov command [file] Available commands: compile markov : ma...
{"/turingmarkov/tests/test_markov.py": ["/turingmarkov/markov.py"], "/turingmarkov/tests/test_turing.py": ["/turingmarkov/turing.py"], "/turingmarkov/__main__.py": ["/turingmarkov/markov.py", "/turingmarkov/turing.py"], "/turingmarkov/tests/test_main.py": ["/turingmarkov/__main__.py"]}
95,489
mingaleg/turingmarkov
refs/heads/master
/turingmarkov/turing.py
# -*- coding: utf-8 -*- """Emulator of turing machine.""" TEMPLATE = """#!/bin/env python3 # -*- coding: utf-8 -*- from turingmarkov.turing import Machine from sys import stdin """ class Machine: """Turing Machine emulator. Read the doc: https://github.com/cmc-python/turingmarkov Example 1: Add lette...
{"/turingmarkov/tests/test_markov.py": ["/turingmarkov/markov.py"], "/turingmarkov/tests/test_turing.py": ["/turingmarkov/turing.py"], "/turingmarkov/__main__.py": ["/turingmarkov/markov.py", "/turingmarkov/turing.py"], "/turingmarkov/tests/test_main.py": ["/turingmarkov/__main__.py"]}
95,490
mingaleg/turingmarkov
refs/heads/master
/turingmarkov/tests/test_main.py
# -*- coding: utf-8 -*- """Test case for cli part of turingmarkov package.""" from turingmarkov.__main__ import main, load_markov, load_turing, VERSION, USAGE from pytest import raises def test_load_markov(tmpdir): """Result should be Markov Algorithm.""" input_path = tmpdir.join('double.markov') input_p...
{"/turingmarkov/tests/test_markov.py": ["/turingmarkov/markov.py"], "/turingmarkov/tests/test_turing.py": ["/turingmarkov/turing.py"], "/turingmarkov/__main__.py": ["/turingmarkov/markov.py", "/turingmarkov/turing.py"], "/turingmarkov/tests/test_main.py": ["/turingmarkov/__main__.py"]}
95,491
mingaleg/turingmarkov
refs/heads/master
/turingmarkov/__init__.py
# -*- coding: utf-8 -*- """turingmarkov - Turing machine and markov algorithm emulator."""
{"/turingmarkov/tests/test_markov.py": ["/turingmarkov/markov.py"], "/turingmarkov/tests/test_turing.py": ["/turingmarkov/turing.py"], "/turingmarkov/__main__.py": ["/turingmarkov/markov.py", "/turingmarkov/turing.py"], "/turingmarkov/tests/test_main.py": ["/turingmarkov/__main__.py"]}
95,492
mingaleg/turingmarkov
refs/heads/master
/turingmarkov/tests/__init__.py
# -*- coding: utf-8 -*- """Tests for turingmarkov."""
{"/turingmarkov/tests/test_markov.py": ["/turingmarkov/markov.py"], "/turingmarkov/tests/test_turing.py": ["/turingmarkov/turing.py"], "/turingmarkov/__main__.py": ["/turingmarkov/markov.py", "/turingmarkov/turing.py"], "/turingmarkov/tests/test_main.py": ["/turingmarkov/__main__.py"]}
95,510
s18k/irispredictor
refs/heads/master
/setup.py
import re from setuptools import setup version = '1.0.0' def parse_requirements(file_name): requirements = [] for line in open(file_name, 'r').read().split('\n'): if re.match(r'(\s*#)|(\s*$)', line): continue if re.match(r'\s*-e\s+', line): requirements.append(re.sub(r...
{"/irispredictor/views.py": ["/irispredictor/__init__.py"], "/irispredictor/__init__.py": ["/irispredictor/views.py"]}
95,511
s18k/irispredictor
refs/heads/master
/irispredictor/views.py
from irispredictor import app from flask import Flask,render_template,request from sklearn.datasets import load_iris from sklearn.neighbors import KNeighborsClassifier from sklearn.model_selection import train_test_split import pickle import numpy as np @app.route("/") def home(): iris = load_iris() model = KNe...
{"/irispredictor/views.py": ["/irispredictor/__init__.py"], "/irispredictor/__init__.py": ["/irispredictor/views.py"]}
95,512
s18k/irispredictor
refs/heads/master
/irispredictor/__init__.py
from flask import Flask,render_template,request from sklearn.datasets import load_iris from sklearn.neighbors import KNeighborsClassifier from sklearn.model_selection import train_test_split import pickle import numpy as np app = Flask(__name__) import irispredictor.views
{"/irispredictor/views.py": ["/irispredictor/__init__.py"], "/irispredictor/__init__.py": ["/irispredictor/views.py"]}
95,593
WHILL/pywhill
refs/heads/master
/whill/__init__.py
from .whill import ComWHILL
{"/whill/__init__.py": ["/whill/whill.py"], "/example/cr_example5_hold_joy.py": ["/whill/__init__.py"], "/example/cr_example1_joy.py": ["/whill/__init__.py"], "/example/cr_example6_copy_speed_profile.py": ["/whill/__init__.py"], "/example/cr_example4_blink_power.py": ["/whill/__init__.py"], "/example/cr_example3_callba...
95,594
WHILL/pywhill
refs/heads/master
/whill/whill_data.py
#!/usr/bin/env python3 # whill_data # Copyright (c) 2018 WHILL, Inc. # This software is released under the MIT License. class Data3D(dict): def __init__(self): super().__init__() self.update({'x': 0}) self.update({'y': 0}) self.update({'z': 0}) class Joy(dict): def __init__(s...
{"/whill/__init__.py": ["/whill/whill.py"], "/example/cr_example5_hold_joy.py": ["/whill/__init__.py"], "/example/cr_example1_joy.py": ["/whill/__init__.py"], "/example/cr_example6_copy_speed_profile.py": ["/whill/__init__.py"], "/example/cr_example4_blink_power.py": ["/whill/__init__.py"], "/example/cr_example3_callba...
95,595
WHILL/pywhill
refs/heads/master
/example/cr_example5_hold_joy.py
#!/usr/bin/env python3 # whill module example package # Copyright (c) 2018 WHILL, Inc. # This software is released under the MIT License. import threading import time from whill import ComWHILL def main(): whill = ComWHILL(port='COM6') count = 0 side = -50 whill.hold_joy(front=int(0), side=side, t...
{"/whill/__init__.py": ["/whill/whill.py"], "/example/cr_example5_hold_joy.py": ["/whill/__init__.py"], "/example/cr_example1_joy.py": ["/whill/__init__.py"], "/example/cr_example6_copy_speed_profile.py": ["/whill/__init__.py"], "/example/cr_example4_blink_power.py": ["/whill/__init__.py"], "/example/cr_example3_callba...