seq_id stringlengths 4 11 | text stringlengths 113 2.92M | repo_name stringlengths 4 125 ⌀ | sub_path stringlengths 3 214 | file_name stringlengths 3 160 | file_ext stringclasses 18
values | file_size_in_byte int64 113 2.92M | program_lang stringclasses 1
value | lang stringclasses 93
values | doc_type stringclasses 1
value | stars int64 0 179k ⌀ | dataset stringclasses 3
values | pt stringclasses 78
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
39024559163 | import logging
import os.path
import pytest
from mock import Mock
from pip._vendor import html5lib, requests
from pip._vendor.packaging.specifiers import SpecifierSet
from pip._internal.download import PipSession
from pip._internal.index import (
CandidateEvaluator,
CandidatePreferences,
FormatControl,
... | epicfaace/pip | tests/unit/test_index.py | test_index.py | py | 36,746 | python | en | code | null | github-code | 1 |
11502386278 | from datetime import datetime
AUTHOR = "pshchelo"
SITEURL = ""
SITENAME = "Bits and Pieces"
SITETITLE = ""
SITESUBTITLE = ""
SITEDESCRIPTION = ""
SITELOGO = "/images/avatar.jpg"
FAVICON = "/images/favicon.ico"
ROBOTS = "index, follow"
PATH = "content"
TIMEZONE = "Europe/Kiev"
DEFAULT_LANG = "en"
# Feed generation i... | pshchelo/pshchelo.github.io | pelicanconf.py | pelicanconf.py | py | 1,780 | python | en | code | 0 | github-code | 1 |
30260001066 | """Tests for our BaseStore interface."""
import datetime
import mock
import pytest
from rush import limit_data
from rush import stores
def _test_must_be_implemented(method, args, kwargs={}):
with pytest.raises(NotImplementedError):
method(*args, **kwargs)
def test_get_must_be_implemented():
"""Ver... | sigmavirus24/rush | test/unit/test_stores_base.py | test_stores_base.py | py | 1,741 | python | en | code | 54 | github-code | 1 |
30080091276 | from brownie import accounts, config, network, MockV3Aggregator
from web3 import Web3
DECIMALS = 8
STARTING_PRICE = 200000000000
FORKED_LOCAL_ENVIRONMENTS = ["mainnet-fork", "mainnet-fork-dev"]
LOCAL_BLOCKCHAIN_ENVIRONMENTS = ["development", "ganache-local"]
def get_account():
active_network = network.show_act... | mnovi7/brownie_fund_me | scripts/common.py | common.py | py | 794 | python | en | code | 0 | github-code | 1 |
42215493732 | import os,re
from math import *
import numpy as np
import matplotlib.patches as patches
from matplotlib.figure import Figure
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
def cc_diagram(u_all,g_all,z_all,u,g,z,item,indices):
fig = Figure()
canvas = FigureCanvas(fig)
ax = fig.add_axes(... | LejayChen/astro-python-script | cc_diagram.py | cc_diagram.py | py | 1,065 | python | en | code | 0 | github-code | 1 |
72515250915 | import os
import yt_dlp
# DEPRECATED
# def download_youtube_video_audio(url, dl_path):
# yt = YouTube(url)
# print(f"Grabbing audio from youtube video {yt.title}")
# audio_stream = yt.streams.get_audio_only()
# dl_filename = audio_stream.default_filename
# audio_stream.download(dl_path)
#... | astrooom/video-transcripter | download.py | download.py | py | 891 | python | en | code | 0 | github-code | 1 |
35632463867 | region = list(input())
descent, flood = [], []
count = 0
for i in region:
count += 1
if i == '\\':
descent.append(count)
elif i == '/' and descent:
no_flood = descent.pop()
flood_area = count - no_flood
while flood and flood[-1][0] > no_flood:
flood_area += flood.pop()[1]
... | YujinMiyoshi/0202 | basic_data_structure/areas_on_the_CSD.py | areas_on_the_CSD.py | py | 464 | python | en | code | 0 | github-code | 1 |
74095782114 | import re
import os
import pandas as pd
from stock.globalvar import HIST_DIR
class Store(object):
@staticmethod
def save(exsymbol, df):
stock_dir = HIST_DIR['stock']
path = os.path.join(stock_dir, exsymbol)
with open(path, "w") as f:
f.write(df.to_csv())
@staticmethod
... | shenzhongqiang/cnstock_py | stock/marketdata/file_store.py | file_store.py | py | 1,465 | python | en | code | 0 | github-code | 1 |
2888694417 | from pprint import pprint as pp
from collections import defaultdict
import sys
from copy import copy
sys.setrecursionlimit(10 ** 7)
readlines = sys.stdin.buffer.readlines
map_readlines = lambda: map(int, readlines())
readline = sys.stdin.buffer.readline
map_readline = lambda: map(int, readline().split())
sreadline = la... | Kumamoto-Hamachi/atcoder_pr | abc_contest/abc190/c/c.py | c.py | py | 1,467 | python | en | code | 1 | github-code | 1 |
15515573247 | import tensorflow as tf
import numpy as np
BATCH_SIZE = 256
TRAINING_ITER = 1000000
LEARNING_RATE = 0.00008
class Dataset:
def __init__(self, directory):
self.directory = directory
self.file = open(self.directory,"r")
self.list = []
for... | steven9909/HackTheNorthUserPrediction | TensorflowHackathon.py | TensorflowHackathon.py | py | 4,677 | python | en | code | 0 | github-code | 1 |
32200499996 | from coilsnake.exceptions.common.exceptions import TableSchemaError, \
TableEntryError
from coilsnake.model.common.table import LittleEndianIntegerTableEntry, \
RowTableEntry, TableEntry
from coilsnake.model.eb.table import EbEventFlagTableEntry
EnemyGroupTableEntry = RowTableEntry.from_schema(
name="Enem... | pk-hack/CoilSnake | coilsnake/model/eb/enemy_groups.py | enemy_groups.py | py | 5,039 | python | en | code | 153 | github-code | 1 |
73948794915 | import matplotlib.pylab as plt
import numpy as np
from mpl_toolkits.axes_grid1.inset_locator import zoomed_inset_axes
from mpl_toolkits.axes_grid1.inset_locator import mark_inset
x1,y1,erry1 = np.loadtxt("paw_Stpa.dat", usecols=(0,1,2), unpack=True)
x2,y2,erry2 = np.loadtxt("paw_Stpp.dat", usecols=(0,1,2), unpack=Tr... | broilo/PD-projects | BSG/PRD/St_BSG20mod_w002s.py | St_BSG20mod_w002s.py | py | 3,916 | python | en | code | 0 | github-code | 1 |
1880178367 | from django.shortcuts import render
from django.http import HttpResponse
from neo4j import GraphDatabase
import subprocess
from rest_framework.views import APIView
from rest_framework.response import Response
#Authentication:
from rest_framework.permissions import IsAuthenticated
from rest_framework.authtoken.models i... | lorisj/mnote-parser | server/notes/views.py | views.py | py | 6,815 | python | en | code | 0 | github-code | 1 |
8523638989 | import numpy as np
from datetime import datetime
import pickle
from pathlib import Path
import logging
# nm.logging_setup(Path.cwd(), date.today())
_logger = logging.getLogger('pathfinding_logger')
# from geometry import GridCell, GridMaze
from nicpy import nic_misc
def reconstruct_path(current_node):
path,... | niceholgate/pathfinding | py_pathfinding/a_star.py | a_star.py | py | 4,080 | python | en | code | 0 | github-code | 1 |
73572581474 | """
This Script, provides useful custom losses to train BioAE network.
"""
import torch
from torch.nn import Module
from torch import Tensor
import torch.nn.functional as F
LAMBDA1 = 10
LAMBDA2 = 0.5
class AESSLoss(Module):
"""
Auto Encoder loss + lambda1 * Steady State (Sv) Loss + lambda2 * Parsimony Loss
... | Alef125/TranscriptomicsAutoEncoder | BioAE_Loss.py | BioAE_Loss.py | py | 5,361 | python | en | code | 1 | github-code | 1 |
3276140499 | import math
num = int(input("Número de ecuaciones: "))
print("\n")
def LlenarMatriz(n):
matriz = []
for i in range(n):
matriz.append([])
for j in range(n+1):
matriz[i].append(int(input(f"Valor elemento [{i}][{j}]: ")))
return matriz
def GaussJordan(matriz,n):
#Gauss
p ... | dajiva/PracticasComputacionI | GaussJordanP/GaussJordanP.py | GaussJordanP.py | py | 1,689 | python | pt | code | 1 | github-code | 1 |
38556612147 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import argparse
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
from torch.autograd import Variable
from torch.utils.data import TensorDataset, DataLoader
from torch.optim.lr_scheduler import StepLR
import torchvision... | Michael5467/PyTorch | test_examples.py | test_examples.py | py | 8,562 | python | en | code | 0 | github-code | 1 |
29142378878 | import sys
import time
from PyQt5.QtWidgets import QApplication, QMainWindow
from PyQt5 import QtWidgets
from functools import partial
from PyQt5.QtGui import QIcon, QPixmap
from JailSpyder import Ui_MainWindow
from BplusTree import Bptree, KeyValue
import re
import random
import datetime
movies = [] # 每一个movie被... | rfhits/Data-Structure-BUAA | 3-BigProject/JailSpyder/main.py | main.py | py | 14,506 | python | en | code | 5 | github-code | 1 |
14379276893 |
import numpy as np
from ..utils import check_features, check_target
from .linear_regression import LinearRegression
class RidgeRegression(LinearRegression):
"""Linear regression with l2 regularization.
Attributes:
learning_rate: Rate of update for gradient descent at
each iteration.... | js-aguiar/stanford-cs229 | src/estimator/linear_model/ridge_regression.py | ridge_regression.py | py | 3,303 | python | en | code | 0 | github-code | 1 |
72255780515 | import sys
import pandas as pd
import joblib
# Load the new data for prediction
prediction_data = pd.DataFrame({
"Age": [int(sys.argv[1])],
"EstimatedSalary": [int(sys.argv[2])]
})
# Load the saved model from file
clf = joblib.load('./../trained_model.pkl')
# Perform predictions on the new data
predictions =... | Ahmad44452/shad | site/server/predictor.py | predictor.py | py | 393 | python | en | code | 1 | github-code | 1 |
5300895343 | import random
from datetime import datetime, date, timezone, timedelta
import time
import os
import tensorflow as tf
gpus = tf.config.experimental.list_physical_devices('GPU')
for gpu in gpus:
tf.config.experimental.set_memory_growth(gpu, True)
from prep import shapes_gen, coco_gen, save_shapes_image, shape_embed... | KoyenaPal/CS1430-FinalProj | code/main.py | main.py | py | 4,973 | python | en | code | 0 | github-code | 1 |
37055616352 | import tensorflow as tf
import numpy as np, time
# Load TFLite model and allocate tensors.
interpreter = tf.lite.Interpreter(model_path='local_min_cnn.tflite')
interpreter.allocate_tensors()
# Get input and output tensors.
input_details = interpreter.get_input_details()
output_details = interpreter.get_output_details(... | kmader/tflite_micro | simple_app/run_model.py | run_model.py | py | 1,034 | python | en | code | 2 | github-code | 1 |
32634547464 | # -*- coding: utf-8 -*-
'''
Created on 2017. 6. 24.
@author: hwang-ingyu
'''
from Crypto.Random.random import choice
from _curses import version
from boto import Version
class hello(object):
def __init__(self):
self.name = "whang"
ho = hello()
print(ho.name)
class hi(hello):
def __init__(self):
... | IGIGIGIGIG/mypython | python_ver2.7/totest/hello.py | hello.py | py | 1,453 | python | en | code | 1 | github-code | 1 |
30643390631 | from .hyperbolicStructure import *
from .verificationError import *
from sage.all import RealDoubleField, RealIntervalField, vector, matrix, pi
__all__ = ['KrawczykCertifiedEdgeLengthsEngine']
class KrawczykCertifiedEdgeLengthsEngine:
"""
Performs Step I of the algorithm.
The input is an instance of Hyp... | ekim1919/SnapPy | dev/vericlosed/krawczykCertifiedEdgeLengthsEngine.py | krawczykCertifiedEdgeLengthsEngine.py | py | 6,524 | python | en | code | null | github-code | 1 |
28427535581 | import cv2 as cv
import numpy as np
# img=cv.imread('Resources/Photos/cat.jpg')
# cv.imshow('Cat',img)
blank=np.zeros((500,500,3),dtype='uint8')
# cv.imshow('blank',blank)
# blank[200:300,400:500]=0,255,0
# cv.imshow('green',blank)
# blank[:]=0,0,255
# cv.imshow('green',blank)
cv.rectangle(blank,(0,0),(250,250),(0,25... | samirsharma-github/OpenCV-FCC | draw.py | draw.py | py | 616 | python | en | code | 0 | github-code | 1 |
28926277645 | from flask import current_app, Blueprint, request, jsonify
from views.api.dingtalk.UserHandler import DdUser
api_dingtalk_program_user_blueprint = Blueprint('api_dingtalk_program_user_blueprint', __name__)
@api_dingtalk_program_user_blueprint.route('/authUser/<string:method>', methods=['POST'])
def get_auth_user(met... | porcupineyhairs/Python | FlaskServer/urls/api/dingtalk/program/user.py | user.py | py | 1,170 | python | en | code | 0 | github-code | 1 |
71092381475 | from django.urls import path
from .views import (
CreateDocumentView,
EditDocumentView,
ViewDocumentView,
DeleteDocumentView,
CompareVersionsView,
DocumentListView,
)
app_name = 'documents'
urlpatterns = [
path('create/', CreateDocumentView.as_view(), name='create_document'),
path('edi... | DanilMirosh/test_task_nsign | documents/urls.py | urls.py | py | 736 | python | en | code | 0 | github-code | 1 |
17818312692 | import json
import os
from .utils import create_oasis_url, download_files, get_report_params
# get location of oasis_endpoints.json file
FILE_DIR = os.path.dirname(os.path.realpath(__file__))
OASIS_ENDPOINTS_JSON = FILE_DIR + "/oasis_endpoints.json"
def generate_test_oasis_urls(start=None, end=None, report_name=No... | seanchon/pyoasis | pyoasis/bulk_query_oasis.py | bulk_query_oasis.py | py | 3,334 | python | en | code | 0 | github-code | 1 |
24844966683 | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 5 16:56:07 2021
@author: Oscar Ferrante oscfer88@gmail.com
"""
import argparse
import P01_maxwell_filtering
import P02_find_bad_eeg
import P03_artifact_annotation
import P04_extract_events
import P05_run_ica
import P06_apply_ica
import P07_make_epochs
... | Cogitate-consortium/cogitate-msp1 | coglib/meeg/preprocessing/P99_run_preproc.py | P99_run_preproc.py | py | 4,675 | python | en | code | 0 | github-code | 1 |
72915555235 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 29 12:57:07 2020
@author: ariels
The flow:
1. reading img file
2. reading json anotation file
3. reading json image bounding box from the file
4. transofming the image
5. transforming the bounding box according to image transfor... | arielsolomon/obj_detection_related | changing_image_perspective.py | changing_image_perspective.py | py | 2,880 | python | en | code | 1 | github-code | 1 |
40673962250 | import sys
sys.stdin = open("0306_2_input.txt")
def inorder_traverse(T): #중위
global cnt
if T:
inorder_traverse(tree[T][0])
# print(T, end=" ")
cnt += 1
inorder_traverse(tree[T][1])
def check1(a):
global li
if tree[a][2]!=0:
li.append(tree[a][2])
b = tree... | manuck/Algorithm | workshop/workshop(0306_2).py | workshop(0306_2).py | py | 1,310 | python | en | code | 0 | github-code | 1 |
35325868343 | # To find factorial
n = int(input('Enter the number: ')) # Asking for number
fact = 1
for i in range(1, n + 1):
fact *= i # Calculating factorial of number
print(fact) # Printing the factorial
| neerajkambojin/ch481 | Assignment3/Program_e.py | Program_e.py | py | 204 | python | en | code | 0 | github-code | 1 |
39712018252 | import argparse
import logging.config
import os
from src.download import run_download
from src.clean import run_clean
from src.filter import run_filter
from src.featurize import run_featurize
from src.split import run_split
from src.train import run_train
from src.score import run_score
from src.evaluate import run_ev... | lirongm/NYC-Taxi-Price-Estimator | run.py | run.py | py | 8,905 | python | en | code | 0 | github-code | 1 |
36864316913 | # -*- coding: utf-8 -*-
"""
Class definition of YOLO_v3 style detection model on image and video
"""
import colorsys
import os
from timeit import default_timer as timer
import numpy as np
from keras import backend as K
from keras.models import load_model
from keras.layers import Input
from PIL import Image, ImageFont... | 1162620106/Pedestrian-warning-system | yolo.py | yolo.py | py | 11,724 | python | en | code | 3 | github-code | 1 |
31855921676 | import csv
import pandas as pd
import requests
import json
import numpy as np
with open("book.csv", newline="") as f:
df = pd.read_csv(
f,
names=[
"book_id",
"ISBN",
"name",
"author",
"author_original",
"translator",
... | jeff-901/bookstore | data/upload.py | upload.py | py | 2,211 | python | en | code | 0 | github-code | 1 |
72895035873 | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | CiscoSystems/avos | openstack_dashboard/dashboards/project/data_processing/cluster_templates/tabs.py | tabs.py | py | 2,666 | python | en | code | 47 | github-code | 1 |
42745851265 | #!/usr/bin/env python
"""setup.py for fabric8-analytics-utils."""
from setuptools import setup, find_packages
def get_requirements():
"""Parse dependencies from 'requirements.in' file."""
with open('requirements.in') as fd:
lines = fd.read().splitlines()
requires = []
for line in line... | fabric8-analytics/fabric8-analytics-utils | setup.py | setup.py | py | 807 | python | en | code | 0 | github-code | 1 |
2312267586 | """
Bing Zhai's step count implementation (https://github.com/bzhai/AFAR)
of the Verisense Step Count algorithm (https://github.com/ShimmerEngineering/Verisense-Toolbox/tree/master/Verisense_step_algorithm)
modifications by Dan Jackson.
"""
# --- HACK: Allow the test to run standalone as specified by a file in the re... | digitalinteraction/openmovement-python | src/test/test_steps.py | test_steps.py | py | 11,038 | python | en | code | 4 | github-code | 1 |
71775421154 | import pygame
from jcspygm.core.JCSPyGm_Camera import JCSPyGm_Camera
from jcspygm.core.JCSPyGm_GameObject import JCSPyGm_GameObject
from jcspygm.managers.JCSPyGm_CollisionManager import JCSPyGm_CollisionManager
from jcspygm.managers.JCSPyGm_SceneManager import JCSPyGm_SceneManager
from jcspygm.managers.JCSPyGm_SoundMa... | jcs090218/JCSPyGm_Lib | jcspygm/examples/Player.py | Player.py | py | 6,362 | python | en | code | 0 | github-code | 1 |
70765340513 | from __future__ import print_function
import cx_Oracle
import decimal
import db_config
con = cx_Oracle.connect(db_config.user, db_config.pw, db_config.dsn)
cur = con.cursor()
BOOK_TYPE_NAME = "UDT_BOOK"
QUEUE_NAME = "BOOKS"
QUEUE_TABLE_NAME = "BOOK_QUEUE_TABLE"
# Dequeue the messages
options = con.deqoptions()
opti... | georgegrace1987/Hue_Practice | desktop/core/ext-py/cx_Oracle-6.4.1/samples/tutorial/solutions/aq-dequeue.py | aq-dequeue.py | py | 620 | python | en | code | 1 | github-code | 1 |
19503164604 | from openerp import fields, models, api
from openerp.osv import fields as old_fields, osv, expression
import time
from datetime import datetime
import datetime
class project_modification(models.Model):
_name = 'project.modification'
name = fields.Char('Name')
project_id = fields.Many2one('project.pro... | hosterp/BUREAU_GREEN_20_06_23 | hiworth_construction/models/project_modification.py | project_modification.py | py | 711 | python | en | code | 0 | github-code | 1 |
145908544 | import sys
import getopt
import logging
import nibabel
from spinalcordtoolbox.utils.sys import init_sct, sct_test_path, printv
from spinalcordtoolbox.utils.fs import check_file_exist
logger = logging.getLogger(__name__)
# DEFAULT PARAMETERS
class Param:
# The constructor
def __init__(self):
self.d... | jem0101/BigSwag-SQA2022-AUBURN | TestOrchestrator4ML-main/resources/Data/supervised/GITHUB_REPOS/neuropoly@spinalcordtoolbox/scripts/isct_check_detection.py | isct_check_detection.py | py | 3,353 | python | en | code | 2 | github-code | 1 |
15102394545 | # -*- coding: utf-8 -*-
import xbmc
import xbmcgui
from twitch.constants import Keys
from constants import Images
from utils import theArt, TitleBuilder, getMediaType
class PlaylistConverter(object):
@staticmethod
def convertToXBMCPlaylist(InputPlaylist, title='', image=''):
# Create playlist in Kodi,... | nalle/plugin.video.speedrunslive | resources/lib/converter.py | converter.py | py | 12,096 | python | en | code | 0 | github-code | 1 |
30654411650 | import re
fileName = "regex_sum_866135.txt"
file = open(fileName)
finalList = list()
for index in file :
y = re.findall('[0-9]+',index)
finalList = finalList + y
finalSUM = 0
for index2 in finalList :
finalSUM = finalSUM + int(index2)
print(finalSUM) | CristiSandu/PythonCourses | Course 3/RegularExpresion/ex1.py | ex1.py | py | 282 | python | en | code | 0 | github-code | 1 |
7735875272 | #!/usr/bin/env python
# vim: set expandtab tabstop=4 shiftwidth=4:
from ftexplorer.data import Data
def get_sequences_recurs(data, obj_name):
to_return = set([obj_name])
#print(obj_name)
obj_struct = data.get_struct_by_full_object(obj_name)
seq_list = []
if 'SequenceObjects' in obj_struct:
... | apocalyptech/ft-explorer | sandbox/sequences_per_level.py | sequences_per_level.py | py | 1,188 | python | en | code | 4 | github-code | 1 |
18203176373 | from ..conversions.types import OutputType
from .rule import Rule, SimpleRule, Sensitivity
class LastModifiedRule(SimpleRule):
operates_on = OutputType.LastModified
type_label = "last-modified"
def __init__(self, after, **super_kwargs):
super().__init__(**super_kwargs)
# Try encoding the ... | os2datascanner/os2datascanner | src/os2datascanner/engine2/rules/last_modified.py | last_modified.py | py | 1,406 | python | en | code | 8 | github-code | 1 |
5910524571 | # Цвета
BLACK = (255, 255, 255)
DARK_GREY = (42, 42, 42)
GREEN = (0, 255, 0)
RED = (180, 0, 0)
WHITE = (230, 230, 230)
# Экран
SCREEN_WIDTH = 920
SCREEN_HEIGHT = 1010
# Рекорд очков файл
HI_SCORE_PATH = "high_score.json"
# Корабль
SPACESHIP_WIDTH = 44
SPACESHIP_HEIGHT = 10
SPACESHIP_PATH = "img/spaceship.png"
PLAYER... | peefech/space | config.py | config.py | py | 3,287 | python | en | code | 0 | github-code | 1 |
15237265669 | # String compression Algorithm.
# This is simply a method of counting/telling how many certain characters are inside a string
def compress(s):
dict = {}
output = ''
for i in s:
if i not in dict:
dict[i] = 1
else:
dict[i] += 1
for i in dict:
out... | francedance/Python-Randomness | string compression/string_compression.py | string_compression.py | py | 466 | python | en | code | 0 | github-code | 1 |
8980866357 | import torch
import torchvision
from torch.utils.data import DataLoader
from torchvision import datasets, transforms
from torchvision import models
import torch.nn as nn
from torch.autograd import Variable
model = models.vgg16(pretrained=True)
model.classifier[6] = nn.Linear(in_features=4096, out_features=10, bias=Tru... | FukeKazki/STL10 | hait_hackthon_精度確認用.py | hait_hackthon_精度確認用.py | py | 1,875 | python | en | code | 0 | github-code | 1 |
14867654286 | import os
import splitfolders
import tensorflow as tf
from keras.preprocessing import image
import matplotlib.pyplot as plt
import numpy as np
from keras.utils.np_utils import to_categorical
import random, shutil
from keras.models import Sequential
from keras.layers import Dropout, Conv2D, Flatten, Dense, MaxPooling2D... | eyarouissi/driver-drowsiness-Detection | model_test.py | model_test.py | py | 3,151 | python | en | code | 0 | github-code | 1 |
10960822125 | """
给定一个整数数组,你需要验证它是否是一个二叉搜索树正确的先序遍历序列。
你可以假定该序列中的数都是不相同的。
参考以下这颗二叉搜索树:
5
/ \
2 6
/ \
1 3
示例 1:
输入: [5,2,6,1,3]
输出: false
示例 2:
输入: [5,2,1,3,6]
输出: true
进阶挑战:
您能否使用恒定的空间复杂度来完成此题?
"""
class Solution(object):
def verifyPreorder(self, preorder):
return self.dsf(0, len(preorder) - 1, pr... | bendanwwww/studyNotes | code/剑指offer/255.py | 255.py | py | 1,163 | python | zh | code | 2 | github-code | 1 |
27006798636 | class Solution(object):
"""docstring for Solution"""
def findMin(self, nums):
n = len(nums)
if n == 0:
return None
elif n == 1:
return nums[0]
elif n == 2:
return min(nums[0], nums[1])
left = 0
right = n-1
last = nums[n-1]
while left <= right:
mid = (left+right)/2
# print(mid)
... | yiqin/HH-Coding-Interview-Prep | Use Python/FindMinimumInRotatedSortedArrayII.py | FindMinimumInRotatedSortedArrayII.py | py | 534 | python | en | code | 3 | github-code | 1 |
10186392640 | from tela.tela import Tela
from datetime import datetime
import PySimpleGUI as sg
class TelaRelatorio(Tela):
def __init__(self):
self.__window = None
def menu(self):
layout = [
[sg.Text('Tela Relatório', font=("Helvica", 25))],
[sg.Text('Escolha sua opção', font=("Helv... | VictorDouglasFernandes/pizzaria | tela/tela_relatorio.py | tela_relatorio.py | py | 2,145 | python | pt | code | 0 | github-code | 1 |
4489876562 | import numpy as np
# 1. 데이터
from sklearn.datasets import load_breast_cancer
datasets = load_breast_cancer()
x = datasets.data
y = datasets.target
print(x.shape) # (569, 30)
print(y.shape) # (569,)
from sklearn.model_selection import train_test_split
x_train, x_test, y_train, y_test = train_test_split(x, y,... | Taerimmm/ML | keras/keras22_2_cancer3.py | keras22_2_cancer3.py | py | 1,663 | python | en | code | 3 | github-code | 1 |
5586775098 | """
Tool to process NPS feedback
"""
import argparse
import logging
import time
import asyncio
from datetime import datetime, timedelta, timezone
from concurrent.futures import ThreadPoolExecutor
import pandas as pd
from openaicli import OpenAICli # pylint: disable=import-error
from prompt import PromptType # pylint:... | mazharm/feedback | feedback.py | feedback.py | py | 19,676 | python | en | code | 0 | github-code | 1 |
35886273264 | import os
import sys
import numpy as np
sys.path.append('../../motion')
import BVH as BVH
import Animation as Animation
from Quaternions import Quaternions
from InverseKinematics import BasicJacobianIK
from InverseKinematics import JacobianInverseKinematics
path='../external/edin_locomotion/'
bvh_files = [path+f for... | realcrane/BASAR-Black-box-Attack-on-Skeletal-Action-Recognition | dataprecess/data/processed/retarget_edin_misc.py | retarget_edin_misc.py | py | 3,945 | python | en | code | 18 | github-code | 1 |
20836438803 | import json
import logging
import os
import shutil
import tempfile
import urllib.parse
from pathlib import Path
from faf import db
from faf.api.map_schema import MapSchema
from faf.tools.fa.maps import generate_map_previews, parse_map_info, generate_zip
from flask import request
from werkzeug.utils import secure_filen... | FAForever/faf-python-api | api/maps.py | maps.py | py | 13,373 | python | en | code | 3 | github-code | 1 |
2206106739 | import os
import numpy as np
from sklearn.datasets import make_blobs
from dnadapt.utils.data import random_split
from dnadapt.utils.utils import folder_if_not_exist, pcts_to_sizes
from dnadapt.globals import datadir
def blob_data(size=1000, pcts=None, centers=None, std=1.0):
if pcts is not None:
size = pc... | mewehez/cancer_doadapt | src/dnadapt/data/toy.py | toy.py | py | 2,386 | python | en | code | 0 | github-code | 1 |
75183962593 | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 27 21:31:23 2023
@author: allen
"""
import math
x = input()
l = math.ceil(len(x) / 2) # 使用字串長度除2並無條件進位找出中間值
a = x[0:l:1]
b = x[-1:(-l - 1):-1]
if (a == b):
print("yes")
else:
print("no") | zhanallen/zero-judge | zero/a022.py | a022.py | py | 301 | python | en | code | 0 | github-code | 1 |
31269905258 | lista = []
while True:
valor = int(input('Digite um valor: '))
if valor == 0:
break
lista.append(valor)
x = 0
while x < len(lista):
print(f'{x + 1}: {lista[x]}')
x += 1 | PauloHudson/Python | 37.py | 37.py | py | 197 | python | pt | code | 0 | github-code | 1 |
22710785166 | import pygame
from comet import Comet
# créer une classe pour la gestion de evenemet
class CommetFallEvent:
# au chargement on créer un compteur
def __init__(self, game):
self.percent = 0
self.percent_speed = 33
self.game = game
self.fall_mode = False
# definir un grou... | YvanMackowiak/SimpsonPython | comet_event.py | comet_event.py | py | 1,745 | python | fr | code | 0 | github-code | 1 |
28022192855 | from django.urls import path,include
from rest_framework import routers
from.import views
router=routers.DefaultRouter()
router.register(r'data',views.PlanViewSet),
router.register(r'features',views.FeaturesViewSet),
router.register(r'retailer-plan',views.RetailerPlanViewSet),
urlpatterns=[
path('',include(rout... | aman0x/market-place | planApp/api/urls.py | urls.py | py | 332 | python | en | code | 2 | github-code | 1 |
25066695312 | """videos
Revision ID: 2afea69b2340
Revises: 9e953d48a222
Create Date: 2022-09-28 17:52:20.256186
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '2afea69b2340'
down_revision = '9e953d48a222'
branch_labels = None
depends_on = None
def upgrade() -> None:
#... | regevti/Pogona_Pursuit | Arena/alembic/versions/2afea69b2340_videos.py | 2afea69b2340_videos.py | py | 692 | python | en | code | 0 | github-code | 1 |
31386511196 | from lingpy import *
wl = Wordlist('O_shijing.tsv', col='shijing', row='stanza')
# first make a link between a character in a section and its occurrence as
# rhyme word
chars = []
for k in wl:
char = wl[k,'character']
poem = wl[k,'number']
stanza = wl[k,'stanza']
section = wl[k,'section_number']
... | digling/shijing | C_make_browser.py | C_make_browser.py | py | 1,695 | python | en | code | 2 | github-code | 1 |
34744449135 | """
209,长度最小的子数组
给定一个含有 n 个正整数的数组和一个正整数 target 。
找出该数组中满足其和 ≥ target 的长度最小的
连续子数组
[numsl, numsl+1, ..., numsr-1, numsr] ,
并返回其长度。
如果不存在符合条件的子数组,返回 0 。
采用滑动窗口的方法来完成此题目 复杂度为O(N)
利用循环来确定终止位置的参数
获取一个总和的结果
如果出现总和结果>=目标值
那么开始移动起始位置并记录最小长度
每次记录一下更新的最小长度
减去要更新的索引值
对起始索引自增一次
"""
import sy... | PorterZhang2021/LeetCode | 1.数组/一刷归档/7.209长度最小的子数组.py | 7.209长度最小的子数组.py | py | 1,814 | python | zh | code | 0 | github-code | 1 |
28414830634 | #!/usr/bin/env python3
#
# Check latest GitHub actions releases.
#
# Requirements
# ============
#
# - `Python <https://www.python.org/>`_ 3.8 or later
# - `PyYAML <https://pypi.org/project/PyYAML/>`_ 5.3.1 or later
# - `requests <https://pypi.org/project/requests/>`_ 2.24.0 or later
# - `termcolor <https://pypi.org/pr... | 10sr/junks | .github/workflows/check-latest-actions.py | check-latest-actions.py | py | 5,919 | python | en | code | 0 | github-code | 1 |
70296569954 | print("Numerador")
n1 = int(input())
print("Denominador")
d1 = int(input())
print("Numerador dos")
n2 = int(input())
print("Denominador dos")
d2 = int(input())
print("La fracción número uno es " ,n1 , "/" , d1)
print("La fracción número dos es " , n2 , "/" , d2)
if d1 == d2:
sF1 = n1 + n2
print("La suma de la f... | Nidia08/fundamentospro | Python/ISC-EVA1/EVA1_12_FRACCIONES.py | EVA1_12_FRACCIONES.py | py | 893 | python | la | code | 0 | github-code | 1 |
34855320091 | #!/usr/bin/env python3
f = open("puzzle_test.txt","r")
f = open("puzzle.txt","r")
lines = f.readlines()
commands = []
def execute(code,z,w,x,y):
val = {}
val['w'] = w
val['z'] = z
val['x'] = x
val['y'] = y
for line in code:
cmd,x,y = line.split(" ")
if y[-1].isdigit():
... | vanjo9800/AdventOfCode2021 | 24/monad.py | monad.py | py | 2,069 | python | en | code | 1 | github-code | 1 |
17413177259 | # -*- coding: utf-8 -*-
"""
@Auth : 江宇旭
@Email :jiang.yuxu@mech-mind.net
@Time : 2023/2/28 13:18
"""
broker_url = 'pyamqp://liying:jiangyuxu@124.70.136.165:5672'
result_backend = 'redis://:django-insecure-jiangyuxu-learn-django@124.70.136.165:6379/1'
accept_content = ['json']
result_accept_content = ['json']
enable_... | mech-jiangyuxu/celery_learn | celeryconfig.py | celeryconfig.py | py | 434 | python | en | code | 0 | github-code | 1 |
41690752660 | # Функция add_prices возвращает общую стоимость всех продуктов в словаре. Заполните пропуски, чтобы завершить эту функцию.
def add_prices(basket):
total = 0
for price in basket.values():
total += price
return round(total, 2)
groceries = {"bananas": 1.56, "apples": 2.50, "oranges": 0.99, "bread": 4... | pers5not/my_rep | Google/crash_python/week_4/ex_4_12.py | ex_4_12.py | py | 543 | python | ru | code | 0 | github-code | 1 |
37964354921 | import copy
import os
import numpy as np
from PIL import Image
from RootSeg.RootSeg import RootSeg
if __name__ == "__main__":
class_colors = [[0, 0, 0], [0, 255, 0]]
# input image size
HEIGHT = 512
WIDTH = 512
# background + root = 2
NCLASSES = 2
# example: logs/ep059-loss0.005-val_loss0.02... | Eric-1986/faCRSA | RootSeg/predict.py | predict.py | py | 1,643 | python | en | code | 0 | github-code | 1 |
33518591922 | import os
import sys
from string import Template
errorMessageTemplate = Template("""$reason
RIDE depends on wx (wxPython). Known versions for Python3 are: 4.0.7.post2, 4.1.1 and 4.2.0.\
At the time of this release the current wxPython version is 4.2.0.\
You can install with 'pip install wxPython' on most operating sys... | robotframework/RIDE | src/robotide/__init__.py | __init__.py | py | 4,018 | python | en | code | 910 | github-code | 1 |
4275954237 | import logging
import socket
import sys
import threading
from dev2lib import event
from dev2lib.action import (ACTIONS, StartAction, AcceptStartAction)
from dev2lib.net import server, connection
log = logging.getLogger("dev2lib.net.session")
log.setLevel(logging.DEBUG)
# create console handler and set level to deb... | BackupTheBerlios/dev2-svn | trunk/dev2lib/net/session.py | session.py | py | 3,859 | python | fr | code | 0 | github-code | 1 |
2174787068 | from flask import Flask, jsonify, after_this_request
from resources.series import series
from flask_cors import CORS
from dotenv import load_dotenv
import os
import models
load_dotenv()
DEBUG = True
PORT=8000
app = Flask(__name__)
CORS(series, origins=['http://localhost:3000', 'https://makima-reader.herokuapp.... | wjuang/manga-reader-backend | app.py | app.py | py | 1,509 | python | en | code | 0 | github-code | 1 |
73128774755 | # from django.http import HttpResponse
# def detail(request, gig_name):
# return HttpResponse("You're looking at gig %s." % gig_name)
import pymongo
from django.http import HttpResponse
from django.template import loader
def index(request):
template = loader.get_template('index.html')
client = pymongo.Mo... | emmyamanda/shakiraTickets | pages/views.py | views.py | py | 973 | python | en | code | 0 | github-code | 1 |
75076051232 | from flask_app import app
from flask import render_template, redirect, request, session
from flask_app.models.dojos import Dojo
@app.route('/')
def display_dojos():
all_dojos = Dojo.get_all_dojos()
#print(all_dojos)
return render_template('home.html',all_dojos = all_dojos) #add backin (): all_dojos = ... | jrxdriguez/Dojos_and_Ninjas_CRUD | dn_crud/flask_app/controllers/dojos_controller.py | dojos_controller.py | py | 844 | python | en | code | 0 | github-code | 1 |
2193875486 | #!/usr/bin/env python3
#-*- coding: utf-8 -*-
"""
Created on Sat Feb 17 13:47:49 2018
@author: code-room
"""
from django.shortcuts import render_to_response
from django.http import HttpResponse
from django import template
def menu(request):
food1 = {'name':'tomato-egg','price':60,'comment':'good!',
'i... | LUCASPYTHON/web | mysite/mysite/views.py | views.py | py | 507 | python | en | code | 0 | github-code | 1 |
2671495662 | # pylint: disable=no-self-use,invalid-name
import numpy
import pytest
from allennlp.common.checks import ConfigurationError
from allennlp.common.testing import AllenNlpTestCase
from allennlp.data.fields import MultiLabelField
from allennlp.data.vocabulary import Vocabulary
class TestMultiLabelField(AllenNlpTestCase)... | dki-lab/GrailQA | allennlp/tests/data/fields/multilabel_field_test.py | multilabel_field_test.py | py | 4,034 | python | en | code | 89 | github-code | 1 |
32616831123 | # -*- coding: utf-8 -*-
import os, sys
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname),
encoding='utf-8').read()
setup(
name='pyjf3',
version='0.3',
description = 'Japanese text functions for Python 3',
long_description = read('... | atsuoishimoto/pyjf3 | setup.py | setup.py | py | 679 | python | en | code | 0 | github-code | 1 |
15622441394 | from typing import Iterator, Union, Iterable, Any, Sequence
from bitarray import frozenbitarray as fbarray
from .abstract_ps import AbstractPS
from tqdm.autonotebook import tqdm
class CartesianPS(AbstractPS):
PatternType = tuple[tuple, ...]
max_pattern: tuple # Bottom pattern, more specific than any other o... | EgorDudyrev/paspailleur | paspailleur/pattern_structures/cartesian_ps.py | cartesian_ps.py | py | 2,884 | python | en | code | 0 | github-code | 1 |
9431296198 |
import sys
from functools import lru_cache
sys.setrecursionlimit(10000)
n,k = map(int,input().split())
sys.setrecursionlimit(1500000)
letters = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']
count = 0
def dfs(grid, fa, i, j,count):
# if not in grid x
... | NicholasTing/Competitive_Programming | SIT_STAR_2020/e.py | e.py | py | 1,107 | python | en | code | 1 | github-code | 1 |
34986317794 | #We focused on implementing the PhaseLift method using a frame-theoretic approach. This is an example of using PhaseLift where part of the input is the frame coefficients constructed from a full spark frame and randomly generated vector x.
#The output of this example of a rank-3 matrix.
b=np.array([0.2994*0.2294, 0.... | madisousa/Phase-Retrieval-Algorithms- | example-of-phaselift-method.py | example-of-phaselift-method.py | py | 754 | python | en | code | 1 | github-code | 1 |
11339049482 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Script que implementa a magic formula de Joel Greenblatt para empresas na Bovespa.
Dados baixados do site http://fundamentus.com.br
"""
import argparse
import logging
import pandas as pd
import requests
URL = "http://fundamentus.com.br/resultado.php"
MAGIC_METHOD... | thobiast/magicformulabr | src/magicformulabr.py | magicformulabr.py | py | 7,618 | python | en | code | 19 | github-code | 1 |
3539943242 | from datetime import datetime
from os import remove
import glob
import json
from pathlib import Path
from modules.constants import DATE_STR, DATETIME_TODAY
# Logs dir path
LOGS_PATH = Path().cwd() / "logs"
class LogsMixin:
"""Class responsible for manipulating usernames and session logs/errors locally."""
ex... | vladimirpolak/inst-4 | modules/logs_manager.py | logs_manager.py | py | 4,529 | python | en | code | 0 | github-code | 1 |
23862425175 | from robomimic.config.base_config import BaseConfig
class BCConfig(BaseConfig):
ALGO_NAME = "bc"
def algo_config(self):
"""
This function populates the `config.algo` attribute of the config, and is given to the
`Algo` subclass (see `algo/algo.py`) for each algorithm through the `algo_... | NVlabs/Optimus | optimus/config/bc_config.py | bc_config.py | py | 13,891 | python | en | code | 19 | github-code | 1 |
16022455244 | from tt import add
import pytest
@pytest.mark.parametrize(
('input_n', 'input_m', 'expected'),
(
(5, 10, 15),
(10, 10, 20),
)
)
def test_add(input_n, input_m, expected):
assert add(input_n,input_m) == expected
from tt import ll
def test_ll():
assert ll() == (2, ... | rej23/RPS | T1/test_rps.py | test_rps.py | py | 808 | python | en | code | 0 | github-code | 1 |
5163643376 |
"""
Binary Tree
Binary Tree are of three types full,complete and strict
example of application is huffman coding tree.
-> inserting a node : if we want to insert a value 12 then we have check if current node has further right or left subtree if not then we will compare cur... | manu-prakash-choudhary/dsaWithPython | binary Tree.py | binary Tree.py | py | 13,252 | python | en | code | 5 | github-code | 1 |
22066247710 | from math import pi
import torch
import torch.nn as nn
from pytorch_lightning.core.module import LightningModule
from loc_ndf.models import loss
from loc_ndf.utils import vis, utils
import open3d as o3d
from easydict import EasyDict
import tqdm
from loc_ndf.utils import pytimer
######################################... | PRBonn/LocNDF | src/loc_ndf/models/models.py | models.py | py | 9,198 | python | en | code | 65 | github-code | 1 |
8702112515 | import streamlit as st
import altair as alt
import inspect
from vega_datasets import data
@st.experimental_memo
def get_chart_37227(use_container_width: bool):
import altair as alt
from vega_datasets import data
# Since these data are each more than 5,000 rows we'll import from the URLs
airports =... | streamlit/release-demos | 1.16.0/demo_app_altair/pages/108_Airport_Connections.py | 108_Airport_Connections.py | py | 2,526 | python | en | code | 78 | github-code | 1 |
10069358816 | from Tokenizer import *
from math import *
import re
class Document:
tkn = Tokenizer()
def __init__(self, id, text):
#document ID
self.id = id
#document's raw text
self.raw_text = text
#raw_text with url and mentions removed
self.url_removed = ' '.join(re.su... | coollx/Neural-IRSystem | Document.py | Document.py | py | 2,061 | python | en | code | 0 | github-code | 1 |
31630163334 | import requests
class DataFormZephyrScale:
def __init__(self, token):
"""
初始化 DateFormZephyrScale 对象。
参数:
token -- Zephyr Scale API 的认证 token
"""
self.bearer_token = token # 初始化时传入实际的 bearer_token
self.base_url = "https://api.ze... | Adeguy/Test-items | Test_framework/Horizon_framework/data_formzephyrscale.py | data_formzephyrscale.py | py | 1,991 | python | en | code | 0 | github-code | 1 |
2303552087 | # -*- coding:utf8 -*-
"""
在一个电脑中编写1个程序,有2个功能
1.获取键盘数据,并将其发送给对方
2.接收数据并显示
并且功能数据进行选择以上的2个功能调用
"""
import socket
def send_data(udp_socket):
"""获取键盘数据,并将其发送给对方"""
addr_ip = input("\n请输入对方的ip地址:")
addr_port = int(input("请输入对方的port:"))
send_msg = input("请输入要发送的数据:")
udp_socket.sendto(send_msg.encode("g... | sunhx0914/PythonTips | udp_application.py | udp_application.py | py | 1,508 | python | zh | code | 0 | github-code | 1 |
42930694791 | import numpy as np
def segment_dataframe_per_column(df, column):
array = df[column].values
stops = np.where(array[1:] != array[:-1])[0] + 1
starts = np.concatenate([[0], stops])
stops = np.concatenate([stops, [len(array)]])
for start, stop in zip(starts, stops):
yield array[start], df.ilo... | XavierTolza/python-timeseries-segmenter | dataframesegmenter/tools.py | tools.py | py | 333 | python | en | code | 5 | github-code | 1 |
32357827253 | import unittest
class myObject:
def __init__(self, city, height, size):
self.city = city
self.height = height
self.size = size
self.altitude = 1000 + height
def addHeight(self, adding):
self.altitude += adding
class TestOo1(unittest.TestCase):
def test_myObject(s... | eday69/evolveU_exercises | t_tdd2/oo1_101.py | oo1_101.py | py | 510 | python | en | code | 0 | github-code | 1 |
72153314594 | """Models related to operations and operation types."""
from pydent.base import ModelBase
from pydent.exceptions import AquariumModelError
from pydent.marshaller import add_schema
from pydent.models.crud_mixin import SaveMixin
from pydent.models.data_associations import DataAssociatorMixin
from pydent.models.field_valu... | aquariumbio/pydent | pydent/models/operation.py | operation.py | py | 14,611 | python | en | code | 6 | github-code | 1 |
23068073555 | import pandas as pd
from fuzzywuzzy import process
from gensim.models import Word2Vec
model = Word2Vec.load("models/word2vec.model")
def res_imp(restaurant, search_term = ''):
# read absa results
result = pd.read_json('data/result.json')
# confirm restaurant name if restaurant name doesn't ma... | hzchua/PLP-ISS | utils/res_imp.py | res_imp.py | py | 3,367 | python | en | code | 0 | github-code | 1 |
5022359293 | #Question 8
def main():
classA = int(input("How many Class A seats were sold? "))
classB = int(input("How many Class B seats were sold? "))
classC = int(input("How many Class C seats were sold? "))
print() #clear a line
calcIncome(classA, classB, classC)
def calcIncome(classA, classB, c... | joshdavham/Starting-Out-with-Python-Unofficial-Solutions | Chapter 3/Q8.py | Q8.py | py | 470 | python | en | code | 0 | github-code | 1 |
45175760641 | import configparser
import textwrap
CONFIG_LOC = r"%LOCALAPPDATA%\GOG.com\Galaxy\Configuration\plugins\ps2\config.ini"
class Config:
def __init__(self):
self.cfg = configparser.ConfigParser(allow_no_value=True)
self.cfg.set("DEFAULT", "; Make sure to use / instead of \ in file paths.")
sel... | AHCoder/galaxy-integration-ps2 | src/config.py | config.py | py | 3,047 | python | en | code | 37 | github-code | 1 |
13499321226 | import cv2
import numpy as np
import scipy
from scipy import ndimage, spatial
gauss = cv2.getGaussianKernel(5, 0.5)
mask = np.zeros((5,5))
mask[2][2] = 1
mask = ndimage.gaussian_filter(mask, 0.5)
# print(mask)
mask = np.zeros((3,3))
mask[1][1] = 1
# print(ndimage.sobel(mask, axis = 1, mode = 'nearest'))
image = np.ra... | anthonysiu2000/CVFeatureDetection | test.py | test.py | py | 1,160 | python | en | code | 0 | github-code | 1 |
10289198967 |
from datetime import datetime
from pprint import pprint as pp
from paprika.data.data_type import DataType
from paprika.data.data_channel import DataChannel
from paprika.data.feed import Feed
from paprika.data.feed_filter import TimeFreqFilter, Filtration
from paprika.data.constants import TimePeriod
from paprika.sign... | hraoyama/radish | paprika/signals/tests/test_pair_spread_signal.py | test_pair_spread_signal.py | py | 3,650 | python | en | code | 1 | github-code | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.