hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
50d8d110901dc8d422a6e7035234a1d64625b3dc
1,854
py
Python
raspi/test/bork_dprc.py
lukaschoebel/bed
4f3619809adab9156e530bfa71c426871749d53b
[ "MIT" ]
null
null
null
raspi/test/bork_dprc.py
lukaschoebel/bed
4f3619809adab9156e530bfa71c426871749d53b
[ "MIT" ]
1
2020-09-11T13:11:16.000Z
2020-09-11T13:11:16.000Z
raspi/test/bork_dprc.py
lukaschoebel/bed
4f3619809adab9156e530bfa71c426871749d53b
[ "MIT" ]
null
null
null
#!/usr/bin/python import time import random import RPi.GPIO as GPIO import firebase_admin from firebase_admin import credentials, firestore cred = credentials.Certificate("secrets/firestore-creds.json") firebase_admin.initialize_app(cred) db = firestore.client() GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) GPIO.set...
22.888889
62
0.639159
0
0
0
0
0
0
0
0
645
0.347896
50d94d09fea5fca32eea005cff0447eb0f2d233c
461
py
Python
src/test/when.py
cgjones/rr
dcdde9c497cad27618b27f6754c11b0693894178
[ "MIT" ]
3
2015-03-01T23:26:27.000Z
2021-01-14T03:31:36.000Z
src/test/when.py
rogerwang/rr
619b8951d392b46c6f62b2bad7c0861a05d9f32e
[ "MIT" ]
null
null
null
src/test/when.py
rogerwang/rr
619b8951d392b46c6f62b2bad7c0861a05d9f32e
[ "MIT" ]
null
null
null
from rrutil import * import re send_gdb('when\n') expect_gdb(re.compile(r'= (\d+)')) t = eval(last_match().group(1)); if t < 1 or t > 10000: failed('ERROR in first "when"') send_gdb('b main\n') expect_gdb('Breakpoint 1') send_gdb('c\n') send_gdb('when\n') expect_gdb(re.compile(r'= (\d+)')) t2 = eval(last_match()...
20.043478
48
0.624729
0
0
0
0
0
0
0
0
148
0.321041
50d96de220acc9a59d7ab8f8ff91b286fe24be92
1,137
py
Python
tests/test_invex.py
xridge/invex
05cbdea29e486a82965d6798d2482296654939bd
[ "Apache-2.0" ]
1
2019-09-08T19:30:28.000Z
2019-09-08T19:30:28.000Z
tests/test_invex.py
xridge/invex
05cbdea29e486a82965d6798d2482296654939bd
[ "Apache-2.0" ]
7
2020-03-24T17:02:53.000Z
2021-12-13T19:59:03.000Z
tests/test_invex.py
otto-von-bivouac/invex
05cbdea29e486a82965d6798d2482296654939bd
[ "Apache-2.0" ]
1
2019-04-24T21:20:37.000Z
2019-04-24T21:20:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `invex` package.""" import os import py from click.testing import CliRunner import pytest from flexfolio.utils import run from invex import cli from .reports import ALL_FLEX_REPORTS @pytest.mark.parametrize("flex_report", ALL_FLEX_REPORTS) # type: ignor...
28.425
77
0.663149
0
0
0
0
888
0.781003
0
0
359
0.315743
50d99798c529ede9378d5878470651f778e5c271
2,078
py
Python
lista_ex3.1.py/exercicio23.py
robinson-1985/mentoria_exercises
8359cead6ee5351851b04cb45f252e3881b79117
[ "MIT" ]
null
null
null
lista_ex3.1.py/exercicio23.py
robinson-1985/mentoria_exercises
8359cead6ee5351851b04cb45f252e3881b79117
[ "MIT" ]
null
null
null
lista_ex3.1.py/exercicio23.py
robinson-1985/mentoria_exercises
8359cead6ee5351851b04cb45f252e3881b79117
[ "MIT" ]
null
null
null
''' 23. Faça um programa que receba o valor do salário mínimo, o turno de trabalho (M — matutino; V — vespertino; ou N — noturno), a categoria (O — operário; G — gerente) e o número de horas trabalhadas no mês de um funcionário. Suponha a digitação apenas de dados válidos e, quando houver digitação de letras, utilize m...
50.682927
88
0.63667
0
0
0
0
0
0
0
0
2,167
1
50db4e1da37404b4b48c1ff5cba8f3fb72458aa5
538
py
Python
how-to-use-azureml/training-with-deep-learning/how-to-use-estimator/dummy_train.py
faxu/MachineLearningNotebooks
ea1b7599c3e6903873aa152dc5829afa080e885a
[ "MIT" ]
1
2021-01-18T16:19:04.000Z
2021-01-18T16:19:04.000Z
how-to-use-azureml/training-with-deep-learning/how-to-use-estimator/dummy_train.py
faxu/MachineLearningNotebooks
ea1b7599c3e6903873aa152dc5829afa080e885a
[ "MIT" ]
1
2019-03-18T04:33:24.000Z
2019-03-18T04:33:24.000Z
MachineLearningNotebooks/how-to-use-azureml/training-with-deep-learning/how-to-use-estimator/dummy_train.py
raina777/bp-demo
064848299731d8388c3709b5b809788860b63fc5
[ "MIT" ]
2
2020-09-07T01:41:49.000Z
2020-10-01T18:16:28.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. print("*********************************************************") print("Hello Azure ML!") try: from azureml.core import Run run = Run.get_context() print("Log Fibonacci numbers.") run.log_list('Fibonacci nu...
31.647059
79
0.524164
0
0
0
0
0
0
0
0
338
0.628253
50dcec222e6e08eebcd423b5a1becc6f5cb978b4
5,916
py
Python
sequential_inference/envs/mujoco/rand_param_envs/gym/scoreboard/client/api_requestor.py
cvoelcker/sequential_inference
acdc23aa8fdbfc76ded771e82a4abcdd081a3280
[ "MIT" ]
null
null
null
sequential_inference/envs/mujoco/rand_param_envs/gym/scoreboard/client/api_requestor.py
cvoelcker/sequential_inference
acdc23aa8fdbfc76ded771e82a4abcdd081a3280
[ "MIT" ]
null
null
null
sequential_inference/envs/mujoco/rand_param_envs/gym/scoreboard/client/api_requestor.py
cvoelcker/sequential_inference
acdc23aa8fdbfc76ded771e82a4abcdd081a3280
[ "MIT" ]
null
null
null
import json import platform import gym import six.moves.urllib as urlparse from six import iteritems from environments.mujoco.rand_param_envs.gym import error, version from environments.mujoco.rand_param_envs.gym.scoreboard.client import http_client verify_ssl_certs = True # [SECURITY CRITICAL] only turn this off w...
34
199
0.560514
4,961
0.838573
0
0
0
0
0
0
1,181
0.199628
50dd6bc0abebb9b9d1eabf20579e458a1fd16adf
3,835
py
Python
FinanceDicBuilder/DicBuilder.py
dukechain2333/Finance-Text-Analysis-System
12c55e5298fb6d5420acae6d361db4506fef0d64
[ "MIT" ]
2
2021-05-25T02:36:13.000Z
2021-09-11T01:44:16.000Z
FinanceDicBuilder/DicBuilder.py
dukechain2333/Finance-Text-Analysis-System
12c55e5298fb6d5420acae6d361db4506fef0d64
[ "MIT" ]
null
null
null
FinanceDicBuilder/DicBuilder.py
dukechain2333/Finance-Text-Analysis-System
12c55e5298fb6d5420acae6d361db4506fef0d64
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from pyhanlp import * from DataBaseOperator import DBConnector class DicBuilder: def __init__(self, id=-1): """ 构建金融行业字典 :param id: 从数据库中通过index选择文本,默认-1即全选 """ self.id = id self.stopWords_path = r'EmotionBasedDic/stopwords.txt' self...
24.741935
90
0.538722
4,143
0.960807
0
0
0
0
0
0
1,685
0.39077
50dda263e8c9ba571f0162aea021e38ba614e662
6,781
py
Python
adalam/ransac.py
happylin0427/AdaLAM
5d7748fda7f76683e60c7053a0792a2ae9ef8800
[ "BSD-3-Clause" ]
1
2021-08-12T15:56:33.000Z
2021-08-12T15:56:33.000Z
adalam/ransac.py
happylin0427/AdaLAM
5d7748fda7f76683e60c7053a0792a2ae9ef8800
[ "BSD-3-Clause" ]
null
null
null
adalam/ransac.py
happylin0427/AdaLAM
5d7748fda7f76683e60c7053a0792a2ae9ef8800
[ "BSD-3-Clause" ]
null
null
null
from .utils import draw_first_k_couples, batch_2x2_inv, batch_2x2_ellipse, arange_sequence, piecewise_arange import torch def stable_sort_residuals(residuals, ransidx): logres = torch.log(residuals + 1e-10) minlogres = torch.min(logres) maxlogres = torch.max(logres) sorting_score = ransidx.unsqueeze(...
48.092199
140
0.720543
0
0
0
0
0
0
0
0
532
0.078455
50dfeb4080e6537a7028d39ac5a866d9104a49fa
1,705
py
Python
85/ninja.py
jsh/pybites
73c79ed962c15247cead173b17f69f248ea51b96
[ "MIT" ]
null
null
null
85/ninja.py
jsh/pybites
73c79ed962c15247cead173b17f69f248ea51b96
[ "MIT" ]
null
null
null
85/ninja.py
jsh/pybites
73c79ed962c15247cead173b17f69f248ea51b96
[ "MIT" ]
null
null
null
"""Bite 85. Write a score property.""" from typing import Optional SCORES = [10, 50, 100, 175, 250, 400, 600, 800, 1000] RANKS = "white yellow orange green blue brown black paneled red".split() BELTS = dict(zip(SCORES, RANKS)) class NinjaBelt: """Keep track of Ninja belts and points.""" def __init__(self, ...
34.1
80
0.606452
1,473
0.86393
0
0
0
0
0
0
432
0.253372
50dff37f03053b54880a5058a34de49805426364
671
py
Python
python_base/binary_array_to_number.py
GlacierBo/python_learn
f604029a1ec449d8d24bb5d40215f25df2a2b027
[ "MIT" ]
1
2018-02-12T04:56:08.000Z
2018-02-12T04:56:08.000Z
python_base/binary_array_to_number.py
GlacierBo/python_learn
f604029a1ec449d8d24bb5d40215f25df2a2b027
[ "MIT" ]
null
null
null
python_base/binary_array_to_number.py
GlacierBo/python_learn
f604029a1ec449d8d24bb5d40215f25df2a2b027
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2017/12/15 11:26 # @Author : glacier # @Site : 二进制计算 # @File : binary_array_to_number.py # @Software: PyCharm Edu # def binary_array_to_number(arr): # sum = 0 # index = len(arr)-1 # i = 0 # while(index >= 0): # sum += mul(a...
19.171429
42
0.535022
0
0
0
0
0
0
0
0
535
0.785609
50e1a65ca98824ba44c4c4b031d3410bbf590547
5,630
py
Python
py_reportit/shared/config/container.py
fedus/py_reportit
46422cabb652571d8cce6c8e91a229009dcca141
[ "MIT" ]
1
2021-12-05T19:16:16.000Z
2021-12-05T19:16:16.000Z
py_reportit/shared/config/container.py
fedus/py_reportit
46422cabb652571d8cce6c8e91a229009dcca141
[ "MIT" ]
null
null
null
py_reportit/shared/config/container.py
fedus/py_reportit
46422cabb652571d8cce6c8e91a229009dcca141
[ "MIT" ]
null
null
null
from dependency_injector import containers, providers from pytz import timezone as pytz_timezone from py_reportit.shared.config import config from py_reportit.shared.config.db import Database from py_reportit.shared.config.requests_session import get_requests_session from py_reportit.shared.repository.category import...
39.097222
130
0.758615
3,910
0.694494
0
0
0
0
0
0
412
0.073179
50e348bba044ee5e4a0d44816e957948a33e2934
4,837
py
Python
event_loop/select_loop.py
mapogolions/pyreact-event-loop
6bfdf34c73a8ef1ce89adb3af69ac07314a0ae3e
[ "MIT" ]
null
null
null
event_loop/select_loop.py
mapogolions/pyreact-event-loop
6bfdf34c73a8ef1ce89adb3af69ac07314a0ae3e
[ "MIT" ]
2
2019-05-21T14:46:25.000Z
2021-06-01T23:54:24.000Z
event_loop/select_loop.py
mapogolions/pyreact
8d91f8397e6bec3fb02140015c68b50f6cb8ea62
[ "MIT" ]
null
null
null
import select import signal import time import event_loop.tick import event_loop.timer import event_loop.signal MICROSECONDS_PER_SECOND = 10 ** 6 MAX_TIMEOUT = int(2 ** 63 / 10 ** 9) class SelectLoop: def __init__(self): self.future_tick_queue = event_loop.tick.FutureTickQueue() self.timers = e...
31.822368
75
0.612777
4,648
0.960926
0
0
0
0
0
0
0
0
50e3b3228607ed7e01edb42284e3a1cc6116992e
2,393
py
Python
scripts/publisher.py
kavyadevd/Toy_Car_Simulation
56609f0b1ae6eb0bb9578615a83bab9ae01d6247
[ "MIT" ]
null
null
null
scripts/publisher.py
kavyadevd/Toy_Car_Simulation
56609f0b1ae6eb0bb9578615a83bab9ae01d6247
[ "MIT" ]
null
null
null
scripts/publisher.py
kavyadevd/Toy_Car_Simulation
56609f0b1ae6eb0bb9578615a83bab9ae01d6247
[ "MIT" ]
null
null
null
#!/usr/bin/python2 import rospy from std_msgs.msg import String from std_msgs.msg import Float64 def pub_sub(left_speed,right_speed): pub_right = rospy.Publisher('right_speed', Float64, queue_size=10) pub_left = rospy.Publisher('left_speed', Float64, queue_size=10) send = "The robot status: %s" % left_speed rospy...
30.679487
107
0.692018
0
0
0
0
0
0
0
0
720
0.300878
50e48167c59bb5236d8e48f7dc69c203da793f28
2,638
py
Python
asdf/commands/extension.py
zanecodes/asdf
c1f6cf915409da5372c47ac725dc922b4bd52f7d
[ "BSD-3-Clause" ]
66
2020-06-24T14:10:32.000Z
2022-03-18T11:46:11.000Z
asdf/commands/extension.py
zanecodes/asdf
c1f6cf915409da5372c47ac725dc922b4bd52f7d
[ "BSD-3-Clause" ]
179
2020-06-22T18:48:31.000Z
2022-03-31T22:52:19.000Z
asdf/commands/extension.py
zanecodes/asdf
c1f6cf915409da5372c47ac725dc922b4bd52f7d
[ "BSD-3-Clause" ]
13
2020-07-21T16:11:20.000Z
2022-03-18T20:41:41.000Z
""" Implementation of command for reporting information about installed extensions. """ from .main import Command from ..entry_points import get_extensions __all__ = ['find_extensions'] class QueryExtension(Command): # pragma: no cover """This class is the plugin implementation for the asdftool runner.""" @...
30.321839
84
0.623578
947
0.358984
0
0
812
0.307809
0
0
590
0.223654
50e4cae3441c9a1ac3fa340462a6470844f434cf
7,956
py
Python
workflow/Analytical_return_flow_generator.py
IMMM-SFA/ferencz-tidwell_2022_frontiers
bfd4961cc8376e99f1f56d23ee3c43d94818df4b
[ "BSD-2-Clause" ]
null
null
null
workflow/Analytical_return_flow_generator.py
IMMM-SFA/ferencz-tidwell_2022_frontiers
bfd4961cc8376e99f1f56d23ee3c43d94818df4b
[ "BSD-2-Clause" ]
null
null
null
workflow/Analytical_return_flow_generator.py
IMMM-SFA/ferencz-tidwell_2022_frontiers
bfd4961cc8376e99f1f56d23ee3c43d94818df4b
[ "BSD-2-Clause" ]
1
2021-12-02T22:48:55.000Z
2021-12-02T22:48:55.000Z
import math import numpy as np import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt import os mpl.rc('axes', titlesize=14) plt.rc('font', size= 16) os.chdir('C:/Users/sbferen/Documents/Frontiers_Paper/Analytical_solution_comparison') data = pd.read_csv("Modflow_statemod_comparis...
43.23913
113
0.568502
0
0
0
0
0
0
0
0
1,585
0.199221
50e51c505990ca8f05a03573ffb38d38c07be03c
3,776
py
Python
data_toy/bnmtf/generate_bnmtf.py
ThomasBrouwer/BNMTF
34df0c3cebc5e67a5e39762b9305b75d73a2a0e0
[ "Apache-2.0" ]
16
2017-04-19T12:04:47.000Z
2021-12-03T00:50:43.000Z
data_toy/bnmtf/generate_bnmtf.py
ThomasBrouwer/BNMTF
34df0c3cebc5e67a5e39762b9305b75d73a2a0e0
[ "Apache-2.0" ]
1
2017-04-20T11:26:16.000Z
2017-04-20T11:26:16.000Z
data_toy/bnmtf/generate_bnmtf.py
ThomasBrouwer/BNMTF
34df0c3cebc5e67a5e39762b9305b75d73a2a0e0
[ "Apache-2.0" ]
8
2015-12-15T05:29:43.000Z
2019-06-05T03:14:11.000Z
""" Generate a toy dataset for the matrix tri-factorisation case, and store it. We use dimensions 100 by 50 for the dataset, 10 row clusters, and 5 column clusters. As the prior for F, G we take value 1 for all entries (so exp 1), and for S value 2 (so exp 1/2). As a result, each value in R has a value of around 25,...
37.019608
128
0.640625
0
0
0
0
0
0
0
0
1,131
0.299523
50e5a28d8d3dff6cd20e630e0c995cafb0c49a98
11,544
py
Python
bot.py
areapergrimm/therejectbot
308a948d0f7fb38edbec55fe55aac62016c59bb7
[ "MIT" ]
null
null
null
bot.py
areapergrimm/therejectbot
308a948d0f7fb38edbec55fe55aac62016c59bb7
[ "MIT" ]
null
null
null
bot.py
areapergrimm/therejectbot
308a948d0f7fb38edbec55fe55aac62016c59bb7
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import random import codenames import trrutils import asyncio description = "The Reject Bot." PREFIX = "." CHANNELNAME = "spam" bot = commands.Bot(command_prefix=PREFIX, description=description) TOKEN = open('TOKEN.txt', 'r').read() PERMLIST = open('PERMLIST....
40.083333
214
0.610707
0
0
0
0
8,991
0.778846
8,550
0.740644
2,763
0.239345
50e70782136080b3f977a391e6c43c7f88a423c7
13,391
py
Python
kaggle_ensemble/prob_extend_kaggle.py
shayan223/Reverse_GoL
cd71df7b270eabbd57016f0cc72d19d64a9c60b8
[ "MIT" ]
null
null
null
kaggle_ensemble/prob_extend_kaggle.py
shayan223/Reverse_GoL
cd71df7b270eabbd57016f0cc72d19d64a9c60b8
[ "MIT" ]
null
null
null
kaggle_ensemble/prob_extend_kaggle.py
shayan223/Reverse_GoL
cd71df7b270eabbd57016f0cc72d19d64a9c60b8
[ "MIT" ]
null
null
null
'''Code found on this kaggle submission https://www.kaggle.com/yakuben/crgl-probability-extension-true-target-problem''' import pandas as pd import torch import numpy as np from torch import FloatTensor from torch.utils.data import IterableDataset, DataLoader import torch.nn as nn from torch.nn import BCELoss from tor...
36.191892
171
0.659697
3,845
0.287133
571
0.042641
852
0.063625
0
0
639
0.047719
50e86f54b6c39a0053edb593684658b152073127
1,704
py
Python
scripts/file_renamer.py
mmenietti/python_code
74df6acf8f950b72f65e27b2ac98854483084b6f
[ "MIT" ]
null
null
null
scripts/file_renamer.py
mmenietti/python_code
74df6acf8f950b72f65e27b2ac98854483084b6f
[ "MIT" ]
null
null
null
scripts/file_renamer.py
mmenietti/python_code
74df6acf8f950b72f65e27b2ac98854483084b6f
[ "MIT" ]
null
null
null
#------------------------------------------------------------ # Dependencies #------------------------------------------------------------ import pathlib import os import argparse #------------------------------------------------------------ # #------------------------------------------------------------ def is_video...
32.150943
113
0.49061
0
0
0
0
0
0
0
0
391
0.22946
50e8877f0f4dda0b297436942622d7085f968969
135
py
Python
mordae/gpc/__init__.py
mordae/gpc
1de74b9038c576066eccd9ec4c3d0c1769b1ff47
[ "MIT" ]
2
2016-11-11T13:45:54.000Z
2021-12-09T14:35:45.000Z
mordae/gpc/__init__.py
mordae/gpc
1de74b9038c576066eccd9ec4c3d0c1769b1ff47
[ "MIT" ]
null
null
null
mordae/gpc/__init__.py
mordae/gpc
1de74b9038c576066eccd9ec4c3d0c1769b1ff47
[ "MIT" ]
3
2016-11-11T13:46:11.000Z
2021-02-10T15:05:13.000Z
#!/usr/bin/python -tt # -*- coding: utf-8 -*- from mordae.gpc.manager import * from mordae.gpc.site import * # vim:set sw=4 ts=4 et:
16.875
32
0.644444
0
0
0
0
0
0
0
0
67
0.496296
50eb9232360bd6dafdfc0f9b1de58c1d985a20fc
5,206
py
Python
eznlp/vectors.py
syuoni/eznlp
c0380c6c30d68b4df1769150424735c04ea9d714
[ "Apache-2.0" ]
9
2021-08-06T07:12:55.000Z
2022-03-26T08:20:59.000Z
eznlp/vectors.py
Hhx1999/eznlp
9d1397d8e9630c099295712cbcffa495353a3268
[ "Apache-2.0" ]
1
2022-03-11T13:27:29.000Z
2022-03-16T11:52:14.000Z
eznlp/vectors.py
Hhx1999/eznlp
9d1397d8e9630c099295712cbcffa495353a3268
[ "Apache-2.0" ]
3
2021-11-15T03:24:24.000Z
2022-03-09T09:36:05.000Z
# -*- coding: utf-8 -*- from typing import Union, List import os import tqdm import logging import torch logger = logging.getLogger(__name__) def _parse_line(line: bytes): w, *vector = line.rstrip().split(b" ") return w, [float(v) for v in vector] def _infer_shape(path: str, skiprows: List[int]): vec_d...
31.743902
120
0.573569
3,384
0.650019
0
0
1,028
0.197464
0
0
572
0.109873
50ebe457a1b78802dec0ab678d488621c9afcd56
2,389
py
Python
tools/Kline2HDF5.py
wzf92/rqalpha
63a328f10d0488a4b06cd13773e506d4ee96628b
[ "Apache-2.0" ]
null
null
null
tools/Kline2HDF5.py
wzf92/rqalpha
63a328f10d0488a4b06cd13773e506d4ee96628b
[ "Apache-2.0" ]
null
null
null
tools/Kline2HDF5.py
wzf92/rqalpha
63a328f10d0488a4b06cd13773e506d4ee96628b
[ "Apache-2.0" ]
null
null
null
import os import datetime import h5py import numpy as np DEFAULT_DTYPE = np.dtype([ ('datetime', np.int64), ('open', np.float), ('close', np.float), ('high', np.float), ('low', np.float), ('limit_up', np.float), ('limit_down', np.float), ('volume', np.float), ('total_turnover', np.f...
32.726027
97
0.544161
1,821
0.762244
0
0
0
0
0
0
320
0.133947
50ec400b28d273845661df97a4f47b5842de0d09
496
py
Python
src/types.py
fabianobizarro/lispy
61f092fc9bebf16ec1963df33388e57af2df5e76
[ "MIT" ]
null
null
null
src/types.py
fabianobizarro/lispy
61f092fc9bebf16ec1963df33388e57af2df5e76
[ "MIT" ]
null
null
null
src/types.py
fabianobizarro/lispy
61f092fc9bebf16ec1963df33388e57af2df5e76
[ "MIT" ]
null
null
null
# Types Symbol = str # A Lisp Symbol is implemented as a Python str List = list # A Lisp List is implemented as a Python list Number = (int, float) # A Lisp Number is implemented as a Python int or float # Exp = Union[Symbol, Exp] def atom(token): "Numbers become numbers; every other token i...
23.619048
78
0.620968
0
0
0
0
0
0
0
0
235
0.47379
50ec7093b69902578058e5325a13292f0fd0aef1
2,086
py
Python
app/logic/mailing/tests/tests_management_SendMail.py
imvu/bluesteel
ab52133249a693b3cd2d8593c5d47408a3b0fce6
[ "MIT" ]
10
2017-01-13T06:28:04.000Z
2020-11-18T13:00:26.000Z
app/logic/mailing/tests/tests_management_SendMail.py
imvu/bluesteel
ab52133249a693b3cd2d8593c5d47408a3b0fce6
[ "MIT" ]
null
null
null
app/logic/mailing/tests/tests_management_SendMail.py
imvu/bluesteel
ab52133249a693b3cd2d8593c5d47408a3b0fce6
[ "MIT" ]
2
2018-03-29T14:10:53.000Z
2019-11-20T08:21:57.000Z
""" StackedMail management command tests """ from django.test import TestCase from django.test import Client from django.conf import settings from django.core import mail from django.core.management import call_command from django.utils.six import StringIO from app.logic.mailing.models.StackedMailModel import StackedM...
33.111111
89
0.660594
1,692
0.811122
0
0
0
0
0
0
298
0.142857
50ed09f4520aa4f2cf7555a9b4e50a474d33e658
26,637
py
Python
source/deepsecurity/api/policy_firewall_rule_details_api.py
felipecosta09/cloudone-workload-controltower-lifecycle
7927c84d164058b034fc872701b5ee117641f4d1
[ "Apache-2.0" ]
1
2021-10-30T16:40:09.000Z
2021-10-30T16:40:09.000Z
source/deepsecurity/api/policy_firewall_rule_details_api.py
felipecosta09/cloudone-workload-controltower-lifecycle
7927c84d164058b034fc872701b5ee117641f4d1
[ "Apache-2.0" ]
1
2021-07-28T20:19:03.000Z
2021-07-28T20:19:03.000Z
source/deepsecurity/api/policy_firewall_rule_details_api.py
felipecosta09/cloudone-workload-controltower-lifecycle
7927c84d164058b034fc872701b5ee117641f4d1
[ "Apache-2.0" ]
1
2021-10-30T16:40:02.000Z
2021-10-30T16:40:02.000Z
# coding: utf-8 """ Trend Micro Deep Security API Copyright 2018 - 2020 Trend Micro Incorporated.<br/>Get protected, stay secured, and keep informed with Trend Micro Deep Security's new RESTful API. Access system data and manage security configurations to automate your security workflows and integrate De...
50.737143
311
0.637497
25,958
0.974509
0
0
0
0
0
0
15,311
0.574802
50ed2f5909b9404a25f18a778eda2dc622034b2e
1,957
py
Python
server/middleware/log_requests.py
marirs/fastApi-simpleApiKey-boilerplate
2989e6ec3865d3719df059369adf36c31c014ab3
[ "MIT" ]
3
2020-06-15T21:11:02.000Z
2022-01-19T07:52:44.000Z
server/middleware/log_requests.py
marirs/fastApi-simpleApiKey-boilerplate
2989e6ec3865d3719df059369adf36c31c014ab3
[ "MIT" ]
1
2020-08-24T07:49:55.000Z
2020-08-24T07:49:55.000Z
server/middleware/log_requests.py
marirs/fastApi-simpleApiKey-boilerplate
2989e6ec3865d3719df059369adf36c31c014ab3
[ "MIT" ]
2
2020-07-07T14:24:44.000Z
2020-08-24T07:40:04.000Z
""" Log requests middleware """ import time from fastapi import Request import geoip2.database from geoip2.errors import AddressNotFoundError from starlette.middleware.base import BaseHTTPMiddleware, RequestResponseEndpoint from server.config import app_logger from server.config import CITY_DB logger = app_logger(__n...
33.741379
81
0.62698
1,564
0.799182
0
0
0
0
1,521
0.77721
235
0.120082
50ee3e8e00f618a16eddadbc990257d3c3594577
244
py
Python
example/src/pythonSnippet.py
hansehe/DockerBuildManagement
774ddfb5184dc9c9ae0c307c7d5963a4ccb104f8
[ "MIT" ]
8
2019-04-03T13:40:30.000Z
2020-11-29T09:20:13.000Z
example/src/pythonSnippet.py
hansehe/DockerBuildManagement
774ddfb5184dc9c9ae0c307c7d5963a4ccb104f8
[ "MIT" ]
1
2019-02-06T16:05:06.000Z
2019-02-24T22:59:43.000Z
example/src/pythonSnippet.py
hansehe/DockerBuildManagement
774ddfb5184dc9c9ae0c307c7d5963a4ccb104f8
[ "MIT" ]
5
2018-12-15T19:03:25.000Z
2021-09-22T23:42:33.000Z
def GetInfoMsg(): infoMsg = "This python snippet is triggered by the 'cmd' property.\r\n" infoMsg += "Any command line may be triggered with the 'cmd' property.\r\n" return infoMsg if __name__ == "__main__": print(GetInfoMsg())
34.857143
79
0.684426
0
0
0
0
0
0
0
0
135
0.553279
50f08891336f7e5545f07eea041b3eca967010af
42
py
Python
python/testData/requirement/generation/keepMatchingVersion/main.py
Sajaki/intellij-community
6748af2c40567839d11fd652ec77ba263c074aad
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/requirement/generation/keepMatchingVersion/main.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2022-02-19T09:45:05.000Z
2022-02-27T20:32:55.000Z
python/testData/requirement/generation/keepMatchingVersion/main.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
1
2020-03-10T02:53:51.000Z
2020-03-10T02:53:51.000Z
import django import numpy import requests
14
15
0.880952
0
0
0
0
0
0
0
0
0
0
50f24aafc2c271250aa2b186af0caf47f126a2f7
735
py
Python
tools/search_product.py
shuangliu1993/PyScraper
c59f17ddf4bb7ddde8a8f08875b8743b35ab894a
[ "MIT" ]
null
null
null
tools/search_product.py
shuangliu1993/PyScraper
c59f17ddf4bb7ddde8a8f08875b8743b35ab894a
[ "MIT" ]
null
null
null
tools/search_product.py
shuangliu1993/PyScraper
c59f17ddf4bb7ddde8a8f08875b8743b35ab894a
[ "MIT" ]
null
null
null
import argparse def parse_args(): parser = argparse.ArgumentParser(description="Search Products on Supported Platforms") parser.add_argument( "--platform", "-p", required=True, help="Online Retail Platform", type=str ) parser.add_argument( "--keyword", "-k", required=True, help="Produc...
24.5
90
0.663946
0
0
0
0
0
0
0
0
130
0.176871
50f3354c783dfac6ddb9456c55399677fd92b771
4,423
py
Python
mros1_reasoner/test/test_level_1_functional_arch.py
JWijkhuizen/mc_mros_reasoner
10f9ded02bf4f1c24ab57be83ed75e6e2a3815a8
[ "Apache-2.0" ]
null
null
null
mros1_reasoner/test/test_level_1_functional_arch.py
JWijkhuizen/mc_mros_reasoner
10f9ded02bf4f1c24ab57be83ed75e6e2a3815a8
[ "Apache-2.0" ]
null
null
null
mros1_reasoner/test/test_level_1_functional_arch.py
JWijkhuizen/mc_mros_reasoner
10f9ded02bf4f1c24ab57be83ed75e6e2a3815a8
[ "Apache-2.0" ]
1
2020-11-19T16:26:33.000Z
2020-11-19T16:26:33.000Z
#!/usr/bin/env python # Software License Agreement (BSD License) # # Copyright (c) 2008, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source cod...
41.336449
111
0.591906
2,408
0.544427
0
0
0
0
0
0
2,636
0.595976
50f36717a52d72766e958dea02b6d3aadf86dd90
11,278
py
Python
psana/psana/dgrammanager.py
valmar/lcls2
1c24da076a8cd252cf6601e125dd721fd2004f2a
[ "BSD-3-Clause-LBNL" ]
null
null
null
psana/psana/dgrammanager.py
valmar/lcls2
1c24da076a8cd252cf6601e125dd721fd2004f2a
[ "BSD-3-Clause-LBNL" ]
null
null
null
psana/psana/dgrammanager.py
valmar/lcls2
1c24da076a8cd252cf6601e125dd721fd2004f2a
[ "BSD-3-Clause-LBNL" ]
null
null
null
import sys, os import time import getopt import pprint try: # doesn't exist on macos from shmem import PyShmemClient except: pass from psana import dgram from psana.event import Event from psana.detector import detectors from psana.psexp.event_manager import TransitionId import numpy as np def dumpDict(di...
37.719064
112
0.572708
8,247
0.731247
0
0
0
0
0
0
2,291
0.203139
50f3732d55416656d33c30e2933737275d61bab9
297
py
Python
pygamerogue/utils.py
mikolasan/pyroguelike
d51b01a566b5edb39792b59d683b4bf827399ba4
[ "BSD-3-Clause" ]
null
null
null
pygamerogue/utils.py
mikolasan/pyroguelike
d51b01a566b5edb39792b59d683b4bf827399ba4
[ "BSD-3-Clause" ]
2
2020-06-17T05:23:02.000Z
2020-06-17T05:29:41.000Z
pygamerogue/utils.py
mikolasan/pyroguelike
d51b01a566b5edb39792b59d683b4bf827399ba4
[ "BSD-3-Clause" ]
1
2020-09-26T17:16:59.000Z
2020-09-26T17:16:59.000Z
def shift_rect(rect, direction, distance=48): if direction == 'left': rect.left -= distance elif direction == 'right': rect.left += distance elif direction == 'up': rect.top -= distance elif direction == 'down': rect.top += distance return rect
27
45
0.582492
0
0
0
0
0
0
0
0
23
0.077441
50f3ae5f1f858f1abc588b7f7e7a6693cdb88057
944
py
Python
examples/flair_example/example_3.py
aethersoft/textkit-learn
8b25b19d394fb361dde4427ed3b84d63552b7cc8
[ "MIT" ]
null
null
null
examples/flair_example/example_3.py
aethersoft/textkit-learn
8b25b19d394fb361dde4427ed3b84d63552b7cc8
[ "MIT" ]
null
null
null
examples/flair_example/example_3.py
aethersoft/textkit-learn
8b25b19d394fb361dde4427ed3b84d63552b7cc8
[ "MIT" ]
null
null
null
from flair.models import TARSTagger from flair.data import Sentence # 1. Load zero-shot NER tagger tars = TARSTagger.load('tars-ner') # 2. Prepare some test sentences sentences = [ Sentence("kill la kill is an anime"), Sentence("The Humboldt University of Berlin is situated near the Spree in Berlin, Germany")...
39.333333
116
0.723517
0
0
0
0
0
0
0
0
569
0.602754
50f3b4598c7630a75082dc263f080621b3c51a76
1,061
py
Python
techmanpy/clients/tmsta_client.py
julespalles/techman-python
384ef92dc0601f93259e4a6e5a7e8b1c96876902
[ "MIT" ]
3
2020-12-28T08:28:23.000Z
2022-03-27T18:52:02.000Z
techmanpy/clients/tmsta_client.py
julespalles/techman-python
384ef92dc0601f93259e4a6e5a7e8b1c96876902
[ "MIT" ]
2
2021-09-06T12:56:08.000Z
2021-11-02T12:52:02.000Z
techmanpy/clients/tmsta_client.py
jvdtoorn/techmanpy
384ef92dc0601f93259e4a6e5a7e8b1c96876902
[ "MIT" ]
null
null
null
#!/usr/bin/env python import asyncio from .stateless_client import * from ..packets import * from ..exceptions import * class TMSTA_client(StatelessClient): PORT=5890 def __init__(self, *, robot_ip, conn_timeout=3): super().__init__(robot_ip=robot_ip, robot_port=self.PORT, conn_timeout=conn_timeout) ...
27.921053
90
0.707823
935
0.881244
0
0
0
0
575
0.541942
109
0.102733
50f5d881c3d0d561188e06fdce8329c0abb29d96
1,537
py
Python
rampwf/score_types/__init__.py
rth/ramp-workflow
e97a27235a8dbd68111ca6b0c9136ff35cab81f8
[ "BSD-3-Clause" ]
null
null
null
rampwf/score_types/__init__.py
rth/ramp-workflow
e97a27235a8dbd68111ca6b0c9136ff35cab81f8
[ "BSD-3-Clause" ]
1
2020-01-18T09:47:03.000Z
2020-01-20T15:33:11.000Z
rampwf/score_types/__init__.py
rth/ramp-workflow
e97a27235a8dbd68111ca6b0c9136ff35cab81f8
[ "BSD-3-Clause" ]
null
null
null
from .accuracy import Accuracy from .balanced_accuracy import BalancedAccuracy from .base import BaseScoreType from .brier_score import ( BrierScore, BrierSkillScore, BrierScoreReliability, BrierScoreResolution) from .clustering_efficiency import ClusteringEfficiency from .classification_error import Classification...
28.462963
77
0.762524
0
0
0
0
0
0
0
0
414
0.269356
50f6582522a07cfc18e387853c08f5bffb83bbd5
120
py
Python
src/som/vm/current.py
SOM-st/PySOM
65ef72f44252439b724a7429408dac7f8d1b1d98
[ "MIT" ]
22
2015-10-29T05:11:06.000Z
2022-03-01T11:18:45.000Z
src/som/vm/current.py
smarr/PySOM
65ef72f44252439b724a7429408dac7f8d1b1d98
[ "MIT" ]
16
2021-03-07T22:09:33.000Z
2021-08-24T12:36:15.000Z
src/som/vm/current.py
SOM-st/PySOM
65ef72f44252439b724a7429408dac7f8d1b1d98
[ "MIT" ]
5
2015-01-02T03:51:29.000Z
2020-10-02T07:05:46.000Z
def _init(): from som.vm.universe import create_universe return create_universe() current_universe = _init()
15
47
0.733333
0
0
0
0
0
0
0
0
0
0
50f65fae1a46d1d8123517234371efe7221d2e7d
6,272
py
Python
detectron2_backbone/backbone/shufflenetv2.py
cenchaojun/detectron2
03ca41a6873bb641764c4762d40d355f215e7ad9
[ "Apache-2.0" ]
null
null
null
detectron2_backbone/backbone/shufflenetv2.py
cenchaojun/detectron2
03ca41a6873bb641764c4762d40d355f215e7ad9
[ "Apache-2.0" ]
null
null
null
detectron2_backbone/backbone/shufflenetv2.py
cenchaojun/detectron2
03ca41a6873bb641764c4762d40d355f215e7ad9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # -------------------------------------------------------- # Descripttion: https://github.com/sxhxliang/detectron2_backbone # version: 0.0.1 # Author: Shihua Liang (sxhx.liang@gmail.com) # FilePath: /detectron2_backbone/backbone/shufflenetv2.py # Create: 2020-04-19 11:50:19...
35.039106
149
0.650032
2,171
0.346142
0
0
2,405
0.38345
0
0
1,664
0.265306
50f7c29fc8ab893b2f181271b7547aefe74fc256
2,720
py
Python
client.py
iamdonmathew/CLI-Rest-API
0df6463b9a4d5d22ec3acb6fffde47c6fa4bf8c0
[ "MIT" ]
1
2020-07-25T04:17:25.000Z
2020-07-25T04:17:25.000Z
client.py
iamdonmathew/CLI-Rest-API
0df6463b9a4d5d22ec3acb6fffde47c6fa4bf8c0
[ "MIT" ]
null
null
null
client.py
iamdonmathew/CLI-Rest-API
0df6463b9a4d5d22ec3acb6fffde47c6fa4bf8c0
[ "MIT" ]
null
null
null
# author: <Don Mathew> # Client side CLI # Necessary imports. import os import json from pathlib import Path import requests import click from server import run # Click package is used to turn the python script into CLI. @click.command() @click.option('--path',prompt="Enter the path", help='Specify the path, that you...
44.590164
173
0.584559
0
0
0
0
2,493
0.916544
0
0
1,310
0.481618
50fa748f4b12b2cb785fef94eea4592ec4640a99
1,921
py
Python
python_code/I_K_ATP_RMP_mg.py
mmaleck/chondrocyte
5109102b8f476318dd03f39521cfbfd5b2edf719
[ "MIT" ]
1
2021-07-01T08:36:21.000Z
2021-07-01T08:36:21.000Z
python_code/I_K_ATP_RMP_mg.py
mmaleck/chondrocyte
5109102b8f476318dd03f39521cfbfd5b2edf719
[ "MIT" ]
2
2021-07-09T11:59:58.000Z
2021-08-18T16:05:13.000Z
python_code/I_K_ATP_RMP_mg.py
mmaleck/chondrocyte
5109102b8f476318dd03f39521cfbfd5b2edf719
[ "MIT" ]
1
2021-07-02T10:01:20.000Z
2021-07-02T10:01:20.000Z
import numpy as np from scipy.integrate.odepack import odeint import matplotlib.pyplot as plt import functions from chondrocyte import Voltage_clamp from params import params_dict import matplotlib as mpl """ The code is used to create Figure 4B for submitted paper "Probing the putative role of KATP channels and biol...
33.12069
128
0.723061
0
0
0
0
0
0
0
0
616
0.320333
50fb774ef289656b71e1121738fca6d6a94e36e7
10,299
py
Python
Dataset4EO/datasets/_builtin/voc.py
GeoAI4EO/GeoData4EO
8da7df7fd8375efc3c584c6603622060384fe906
[ "Apache-2.0" ]
null
null
null
Dataset4EO/datasets/_builtin/voc.py
GeoAI4EO/GeoData4EO
8da7df7fd8375efc3c584c6603622060384fe906
[ "Apache-2.0" ]
null
null
null
Dataset4EO/datasets/_builtin/voc.py
GeoAI4EO/GeoData4EO
8da7df7fd8375efc3c584c6603622060384fe906
[ "Apache-2.0" ]
null
null
null
import enum import pdb import functools import pathlib from typing import Any, Dict, List, Optional, Tuple, BinaryIO, cast, Union from xml.etree import ElementTree from torchdata.datapipes.iter import ( IterDataPipe, Mapper, Filter, Demultiplexer, IterKeyZipper, LineReader, ) from torchvision.d...
42.036735
137
0.595301
8,779
0.852413
0
0
8,909
0.865035
0
0
2,691
0.261288
50fc5d678ce5f53a6ac5266cf971694049a80f34
6,799
py
Python
server/roster_updater/lib/course.py
HeavenFox/coursepad
cd7b1224f563271a2b89817ae4f2eccdc164d46b
[ "Apache-2.0" ]
33
2016-09-30T03:58:01.000Z
2021-01-09T16:12:25.000Z
server/roster_updater/lib/course.py
HeavenFox/coursepad
cd7b1224f563271a2b89817ae4f2eccdc164d46b
[ "Apache-2.0" ]
8
2017-01-30T23:27:45.000Z
2022-02-18T05:15:59.000Z
server/roster_updater/lib/course.py
HeavenFox/coursepad
cd7b1224f563271a2b89817ae4f2eccdc164d46b
[ "Apache-2.0" ]
7
2016-09-30T03:59:50.000Z
2018-10-21T02:17:12.000Z
import re # crawl roster faulty_prof = { 'Francis,J)' : 'Francis,J (jdf2)', 'Glathar,E)' : 'Glathar,E', 'Cady,B)' : 'Cady,B' } section_types = set() day_pattern = { 'M': 1, 'T': 1<<1, 'W': 1<<2, 'R': 1<<3, 'F': 1<<4, 'S': 1<<5, 'U': 1<<6 } def to_bool(s): return True if ...
29.820175
123
0.564348
5,895
0.867039
0
0
136
0.020003
0
0
1,297
0.190763
50fcd7ae55a8d5d729cd12147281f7bebe4d3311
566
py
Python
src/colusa/plugins/etr_infoq.py
huuhoa/symphony
f8a364649634b4d864771b2c8a3103b714b6b9e2
[ "MIT" ]
6
2020-08-29T04:14:15.000Z
2020-09-18T10:53:59.000Z
src/colusa/plugins/etr_infoq.py
huuhoa/colusa
07a0a60680c8085c5dca522e0237f7b5a5181dcb
[ "MIT" ]
34
2021-09-07T15:17:38.000Z
2022-03-25T15:16:40.000Z
src/colusa/plugins/etr_infoq.py
huuhoa/colusa
07a0a60680c8085c5dca522e0237f7b5a5181dcb
[ "MIT" ]
2
2020-08-29T04:21:35.000Z
2020-09-13T17:36:06.000Z
from colusa.etr import Extractor, register_extractor @register_extractor('//www.infoq.com') class InfoQExtractor(Extractor): def _find_main_content(self): return self.bs.find('div', class_='article__content') def cleanup(self): self.remove_tag(self.main_content, 'div', attrs={'class': 'conten...
40.428571
102
0.706714
471
0.832155
0
0
510
0.90106
0
0
142
0.250883
50fef9dc7c37378c2b89f5d5abd92f9996a28c56
162
py
Python
covidapp/urls.py
babbarutkarsh/CovidTracker
6bb1bcdf5b0e11208e8b0494028082ed32ff4573
[ "MIT" ]
1
2021-04-23T05:11:07.000Z
2021-04-23T05:11:07.000Z
covidapp/urls.py
babbarutkarsh/CovidTracker
6bb1bcdf5b0e11208e8b0494028082ed32ff4573
[ "MIT" ]
null
null
null
covidapp/urls.py
babbarutkarsh/CovidTracker
6bb1bcdf5b0e11208e8b0494028082ed32ff4573
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path,include from .views import helloworldview urlpatterns = [ path('helloworld/',helloworldview) ]
20.25
38
0.783951
0
0
0
0
0
0
0
0
13
0.080247
50ff2d5fa93361a61b58feca15f43ba6967b76f5
320
py
Python
src/cart/migrations/0009_remove_cartitem_user.py
phisyche/rydhubsolutions
50cd35c9f2f6530bcc19358beb6c91cda5287f4f
[ "MIT" ]
5
2020-09-07T15:30:10.000Z
2021-01-21T19:25:22.000Z
src/cart/migrations/0009_remove_cartitem_user.py
phisyche/rydhubsolutions
50cd35c9f2f6530bcc19358beb6c91cda5287f4f
[ "MIT" ]
21
2019-12-04T22:49:42.000Z
2022-02-12T09:17:42.000Z
src/cart/migrations/0009_remove_cartitem_user.py
phisyche/rydhubsolutions
50cd35c9f2f6530bcc19358beb6c91cda5287f4f
[ "MIT" ]
4
2020-03-25T05:50:39.000Z
2021-08-08T20:59:20.000Z
# Generated by Django 2.2.9 on 2020-01-29 16:31 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('cart', '0008_cartitem_user'), ] operations = [ migrations.RemoveField( model_name='cartitem', name='user', ), ]
17.777778
47
0.58125
235
0.734375
0
0
0
0
0
0
89
0.278125
50ff56459c08497afa6fce21e2286f5a45fd1a2b
10,344
py
Python
tests/test_pendant_aws.py
clintval/reticle
9be96e270970573ca981aa95ba0db1a1f7f46e39
[ "MIT" ]
1
2020-07-04T17:38:36.000Z
2020-07-04T17:38:36.000Z
tests/test_pendant_aws.py
clintval/pendant
9be96e270970573ca981aa95ba0db1a1f7f46e39
[ "MIT" ]
8
2018-12-03T18:59:14.000Z
2018-12-10T19:33:53.000Z
tests/test_pendant_aws.py
clintval/reticle
9be96e270970573ca981aa95ba0db1a1f7f46e39
[ "MIT" ]
null
null
null
import os from datetime import datetime import botocore import boto3 import moto import pytest from hypothesis import example, given from hypothesis.strategies import integers, datetimes from pendant.aws.batch import BatchJob, JobDefinition from pendant.aws.exception import BatchJobSubmissionError, S3ObjectNotFoundE...
34.828283
123
0.715971
371
0.035866
169
0.016338
3,543
0.342517
0
0
2,442
0.236079
0f95f5577340fe7d3a0b009ba5b2db437206b317
5,976
py
Python
plot_progs/barsum_plot.py
bradlyke/dr16q
5645491bc05806c5b956e76c5bcec939722c065f
[ "BSD-3-Clause" ]
2
2020-09-21T23:12:09.000Z
2020-09-23T03:54:06.000Z
plot_progs/barsum_plot.py
bradlyke/dr16q
5645491bc05806c5b956e76c5bcec939722c065f
[ "BSD-3-Clause" ]
null
null
null
plot_progs/barsum_plot.py
bradlyke/dr16q
5645491bc05806c5b956e76c5bcec939722c065f
[ "BSD-3-Clause" ]
null
null
null
""" This creates the plot that is used as Fig. 2 in Lyke et al. 2020. Dependencies ---------- github repository : https://github.com/bradlyke/utilities Note: To get these plots, LaTeX must be installed and matplotlib must be able to compile LaTeX commands Input file ---------- The most recent version of the DR...
37.35
153
0.684572
0
0
0
0
0
0
0
0
3,072
0.514056
0f9934026df2e6f4b91b0975aecdc12c43dbf68d
6,417
py
Python
health/models.py
atiro/obesitydata
b0cc0759db03ee07c63b3b254bf04f59aeef965d
[ "BSD-3-Clause" ]
null
null
null
health/models.py
atiro/obesitydata
b0cc0759db03ee07c63b3b254bf04f59aeef965d
[ "BSD-3-Clause" ]
15
2015-07-27T21:43:25.000Z
2015-07-29T21:34:48.000Z
health/models.py
atiro/obesitydata
b0cc0759db03ee07c63b3b254bf04f59aeef965d
[ "BSD-3-Clause" ]
null
null
null
from django.db import models class Health(models.Model): MALE = 'M' FEMALE = 'F' ALL = 'A' GENDER_CHOICES = ( (MALE, 'Male'), (FEMALE, 'Female'), (ALL, 'All') ) class Meta: abstract = True class HealthActivity(models.Model): MALE = 'M' FEMALE = 'F' ...
25.164706
95
0.58532
6,286
0.979585
0
0
0
0
0
0
1,164
0.181393
0f9a233de5e4a797f10da680378306ea2d873d20
5,112
py
Python
src/rcwa_utils.py
scolburn54/rcwa_tf
50c7f6e477b2784c32586d6eddb13ef9e4adec02
[ "BSD-3-Clause" ]
9
2021-04-06T11:58:14.000Z
2021-12-28T18:37:28.000Z
src/rcwa_utils.py
scolburn54/rcwa_tf
50c7f6e477b2784c32586d6eddb13ef9e4adec02
[ "BSD-3-Clause" ]
null
null
null
src/rcwa_utils.py
scolburn54/rcwa_tf
50c7f6e477b2784c32586d6eddb13ef9e4adec02
[ "BSD-3-Clause" ]
2
2021-04-08T13:38:23.000Z
2021-05-03T17:34:27.000Z
# Copyright (c) 2020, Shane Colburn, University of Washington # This file is part of rcwa_tf # Written by Shane Colburn (Email: scolbur2@uw.edu) import tensorflow as tf import numpy as np def convmat(A, P, Q): ''' This function computes a convolution matrix for a real space matrix `A` that represents...
38.727273
80
0.586072
0
0
0
0
0
0
0
0
2,805
0.548709
0f9b04b14d4ee24b9d02d994d9ee17da1f43cabe
925
py
Python
src/ui/setup_custom_dialog.py
AndreWohnsland/CocktailBerry
60b2dfc3a4a6f3ef9ab2d946a97d14829e575a9d
[ "MIT" ]
1
2022-03-06T23:50:34.000Z
2022-03-06T23:50:34.000Z
src/ui/setup_custom_dialog.py
AndreWohnsland/CocktailBerry
60b2dfc3a4a6f3ef9ab2d946a97d14829e575a9d
[ "MIT" ]
4
2022-03-03T11:16:17.000Z
2022-03-20T15:53:37.000Z
src/ui/setup_custom_dialog.py
AndreWohnsland/CocktailBerry
60b2dfc3a4a6f3ef9ab2d946a97d14829e575a9d
[ "MIT" ]
null
null
null
from PyQt5.QtCore import Qt from PyQt5.QtGui import QIcon from PyQt5.QtWidgets import QDialog from src.ui_elements.customdialog import Ui_CustomDialog from src.display_controller import DP_CONTROLLER class CustomDialog(QDialog, Ui_CustomDialog): """ Class for the Team selection Screen. """ def __init__(self...
34.259259
88
0.724324
721
0.779459
0
0
0
0
0
0
57
0.061622
0f9b0b94a9c2c162c1af702148c3ee04656d8ab2
1,542
py
Python
archived/twitter_filtering_deprecated_code/tw_keyword_search.py
mcpeixoto/Sentrade
55f65508d6b565b99840c9ce5d757185f5027164
[ "MIT" ]
4
2020-09-28T18:40:47.000Z
2021-12-01T08:29:29.000Z
archived/twitter_filtering_deprecated_code/tw_keyword_search.py
ZiyouZhang/Sentrade
c88d20a858de6d05649f99230ca2b44f4c76cd3c
[ "MIT" ]
null
null
null
archived/twitter_filtering_deprecated_code/tw_keyword_search.py
ZiyouZhang/Sentrade
c88d20a858de6d05649f99230ca2b44f4c76cd3c
[ "MIT" ]
2
2021-08-10T22:32:52.000Z
2022-02-03T21:28:47.000Z
__author__ = "Fengming Liu" __status__ = "prototype" import tarfile import json import re import subprocess import os import nltk import time year = 2019 month = 9 day = 16 keyword_list = ["netflix", "amazon", "apple", "microsoft", "google", "tesla", "facebook"] date = "{0}-{1}-{2}".format(year, str(month).zfill(2), ...
34.266667
96
0.666018
0
0
0
0
0
0
0
0
954
0.618677
0f9b117a6372cf0f258615a3e1de5ab261a64bf4
2,480
py
Python
tests/unit/callbacks/test_sqlalchemy.py
dunnkers/fseval
49a11a63e09e65b1f14389b6ba3a9ae3aeae086d
[ "MIT" ]
5
2020-07-08T11:58:46.000Z
2022-01-26T13:58:00.000Z
tests/unit/callbacks/test_sqlalchemy.py
dunnkers/fseval
49a11a63e09e65b1f14389b6ba3a9ae3aeae086d
[ "MIT" ]
63
2021-05-09T06:18:24.000Z
2022-03-27T18:05:58.000Z
tests/unit/callbacks/test_sqlalchemy.py
dunnkers/fseval
49a11a63e09e65b1f14389b6ba3a9ae3aeae086d
[ "MIT" ]
1
2022-02-11T03:24:14.000Z
2022-02-11T03:24:14.000Z
import numpy as np import pandas as pd import pytest from fseval.callbacks.sql_alchemy import SQLAlchemyCallback from fseval.types import Task from omegaconf import DictConfig, OmegaConf def test_init_no_params(): """Initialization should fail when no `engine` param was supplied.""" # no `engine` with pyt...
28.837209
88
0.644758
0
0
0
0
655
0.264113
0
0
850
0.342742
0f9b32f06196acf472b687c9df115a7c46e39e8e
8,170
py
Python
pytesla/vehicle.py
jstenback/pytesla
25707fd59bc3ba67f6db8d2a43fbaa7cb238f4e7
[ "BSD-3-Clause" ]
null
null
null
pytesla/vehicle.py
jstenback/pytesla
25707fd59bc3ba67f6db8d2a43fbaa7cb238f4e7
[ "BSD-3-Clause" ]
null
null
null
pytesla/vehicle.py
jstenback/pytesla
25707fd59bc3ba67f6db8d2a43fbaa7cb238f4e7
[ "BSD-3-Clause" ]
3
2016-12-06T14:04:34.000Z
2020-01-10T22:03:03.000Z
from . import stream class CommandError(Exception): """Tesla Model S vehicle command returned failure""" pass class Vehicle: def __init__(self, vin, conn, payload, log): assert payload['vin'] == vin self._conn = conn self._data = payload self._log = log def __repr__(s...
29.709091
76
0.611506
8,145
0.99694
0
0
1,888
0.231089
0
0
1,973
0.241493
0f9c4737e945f102d4edb66eb31fa3dc5f138f03
1,425
py
Python
modules/utility_date_time.py
Alex-Nalin/Support-Bot-v3
3d73e0596a279a3ef1c9cde60b88fecb93c33832
[ "MIT" ]
2
2019-01-15T11:13:20.000Z
2021-11-26T09:26:40.000Z
modules/utility_date_time.py
Alex-Nalin/Support-Bot-v3
3d73e0596a279a3ef1c9cde60b88fecb93c33832
[ "MIT" ]
null
null
null
modules/utility_date_time.py
Alex-Nalin/Support-Bot-v3
3d73e0596a279a3ef1c9cde60b88fecb93c33832
[ "MIT" ]
1
2019-02-19T08:56:13.000Z
2019-02-19T08:56:13.000Z
import datetime import re from dateutil.parser import parse def ConvertDateTimeToMilliseconds(inputDT: datetime.datetime): return int(inputDT.timestamp()*1000) def ConvertDTStringToMilliseconds(inputStr): dt = parse(inputStr) return ConvertDateTimeToMilliseconds(dt) def ConvertShorthandToSeconds(shor...
28.5
104
0.602105
0
0
0
0
0
0
0
0
381
0.267368
0f9c5dc61dc683dbb784a1fe62685ebcd6df0bc2
232
py
Python
Mundo-1-Fundamentos/016.py
TOPTOPUNIVERSE/CEV-PYTHON3
07e2c6b41cd33f3555e14545cdf6fc37325c8fd1
[ "MIT" ]
null
null
null
Mundo-1-Fundamentos/016.py
TOPTOPUNIVERSE/CEV-PYTHON3
07e2c6b41cd33f3555e14545cdf6fc37325c8fd1
[ "MIT" ]
null
null
null
Mundo-1-Fundamentos/016.py
TOPTOPUNIVERSE/CEV-PYTHON3
07e2c6b41cd33f3555e14545cdf6fc37325c8fd1
[ "MIT" ]
null
null
null
""" Desafio 016 Problema: Crie um programa que leia um número Real qualquer pelo teclado e mostre na tela a sua porção Inteira.""" n = float(input('Digite um valor:')) print(f'O número {n} tem a parte inteira {int(n)}')
25.777778
64
0.681034
0
0
0
0
0
0
0
0
206
0.872881
0f9d61f5e380aa3d41ab98b5c72a8faf138d7bbe
586
py
Python
algorithms/nesterov_random/nesterov_test.py
OptiMaL-PSE-Lab/Expensive-Black-Box-Optim-ChemEng
19c34dcff8c983926df501b93152fa3b3b0305d6
[ "MIT" ]
null
null
null
algorithms/nesterov_random/nesterov_test.py
OptiMaL-PSE-Lab/Expensive-Black-Box-Optim-ChemEng
19c34dcff8c983926df501b93152fa3b3b0305d6
[ "MIT" ]
null
null
null
algorithms/nesterov_random/nesterov_test.py
OptiMaL-PSE-Lab/Expensive-Black-Box-Optim-ChemEng
19c34dcff8c983926df501b93152fa3b3b0305d6
[ "MIT" ]
null
null
null
# import sys # sys.path.insert(1, 'test_functions') import numpy as np from test_functions.quadratic_constrained import * from test_functions.rosenbrock_constrained import * from algorithms.nesterov_random.nesterov_random import nesterov_random def problem_rosenbrock(x): f = rosenbrock_f g1 = rosenbrock_g1...
24.416667
80
0.6843
0
0
0
0
0
0
0
0
50
0.085324
0f9d62c9fc903008351f564ece40e730aa1af67b
412
py
Python
old/accent_analyser/rules/VoicedFricative1.py
stefantaubert/eng2ipa-accent-transformer
d620c70b06c83119402e255085046747ade87444
[ "MIT" ]
null
null
null
old/accent_analyser/rules/VoicedFricative1.py
stefantaubert/eng2ipa-accent-transformer
d620c70b06c83119402e255085046747ade87444
[ "MIT" ]
null
null
null
old/accent_analyser/rules/VoicedFricative1.py
stefantaubert/eng2ipa-accent-transformer
d620c70b06c83119402e255085046747ade87444
[ "MIT" ]
null
null
null
from accent_analyser.rules.IpaRule import IpaRule def replace(word: str): return word.replace("v", "w") class VoicedFricative1(IpaRule): def __init__(self, likelihood=0.51): super().__init__(likelihood) self.name = "Voiced Fricative: [w] instead of /v/" def _convert_core(self, words: list, current_in...
24.235294
59
0.708738
301
0.730583
0
0
0
0
0
0
44
0.106796
0f9e4fd81922dc4d984f8126b9b15624ec6193f3
6,032
py
Python
src/clients/python/api_v1/examples/ensemble_image_client.py
AliAzG/triton-inference-server
fbce250035d049d13f32c362e2d76a5cb787da51
[ "BSD-3-Clause" ]
null
null
null
src/clients/python/api_v1/examples/ensemble_image_client.py
AliAzG/triton-inference-server
fbce250035d049d13f32c362e2d76a5cb787da51
[ "BSD-3-Clause" ]
null
null
null
src/clients/python/api_v1/examples/ensemble_image_client.py
AliAzG/triton-inference-server
fbce250035d049d13f32c362e2d76a5cb787da51
[ "BSD-3-Clause" ]
1
2021-06-09T11:16:23.000Z
2021-06-09T11:16:23.000Z
#!/usr/bin/env python # Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice...
41.888889
94
0.680869
0
0
0
0
0
0
0
0
2,703
0.44811
0f9f167571a194f1bc7acb964cd47daad5d38e0c
146
py
Python
mamonsu/plugins/system/linux/__init__.py
sgrinko/mamonsu
03b8e1217b08e6580e08129fddd64dbc20265fd4
[ "BSD-3-Clause" ]
188
2016-01-31T09:05:59.000Z
2022-03-22T16:49:12.000Z
mamonsu/plugins/system/linux/__init__.py
sgrinko/mamonsu
03b8e1217b08e6580e08129fddd64dbc20265fd4
[ "BSD-3-Clause" ]
162
2016-02-02T13:49:14.000Z
2022-02-22T08:45:42.000Z
mamonsu/plugins/system/linux/__init__.py
sgrinko/mamonsu
03b8e1217b08e6580e08129fddd64dbc20265fd4
[ "BSD-3-Clause" ]
46
2016-01-31T21:23:37.000Z
2022-02-07T10:59:54.000Z
__all__ = [ 'proc_stat', 'disk_stats', 'disk_sizes', 'memory', 'uptime', 'open_files', 'net', 'la' ,'pg_probackup' ] from . import *
18.25
49
0.582192
0
0
0
0
0
0
0
0
86
0.589041
0f9f1cf0e2224146473d97b789d2a857c46d01b2
164
py
Python
config.py
stultus/Flask-wado
997c4b54640be121e9436950c053df60054b2c13
[ "Apache-2.0" ]
3
2015-07-09T18:49:20.000Z
2021-04-19T03:20:12.000Z
config.py
stultus/Flask-wado
997c4b54640be121e9436950c053df60054b2c13
[ "Apache-2.0" ]
1
2016-07-20T23:19:03.000Z
2016-07-20T23:19:03.000Z
config.py
stultus/Flask-wado
997c4b54640be121e9436950c053df60054b2c13
[ "Apache-2.0" ]
4
2015-05-13T07:26:57.000Z
2022-01-25T23:19:00.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- import os basedir = os.path.abspath(os.path.dirname(__file__)) CSRF_ENABLED = True SECRET_KEY='parayan-manasilla'
16.4
52
0.707317
0
0
0
0
0
0
0
0
64
0.390244
0f9ff91b0ba1a7d133ebeb2192bf15298558d0cf
14,797
py
Python
piper/mayapy/pipernode.py
MongoWobbler/piper
8e5185a34962096155dcce65da641feac8ca15e1
[ "MIT" ]
null
null
null
piper/mayapy/pipernode.py
MongoWobbler/piper
8e5185a34962096155dcce65da641feac8ca15e1
[ "MIT" ]
2
2021-03-22T02:25:56.000Z
2022-03-20T16:16:24.000Z
piper/mayapy/pipernode.py
MongoWobbler/piper
8e5185a34962096155dcce65da641feac8ca15e1
[ "MIT" ]
1
2021-04-20T07:36:30.000Z
2021-04-20T07:36:30.000Z
# Copyright (c) 2021 Christian Corsica. All Rights Reserved. import pymel.core as pm import piper_config as pcfg import piper.mayapy.util as myu import piper.mayapy.convert as convert import piper.mayapy.attribute as attribute from .rig import curve # must do relative import in python 2 def get(node_type, ignore=N...
33.029018
120
0.678246
0
0
0
0
0
0
0
0
6,880
0.464959
0fa01c0382cec9db13e3b8d1049768cbc564bd7e
9,449
py
Python
ie_serving/server/rest_service.py
Doken-Tokuyama/OpenVINO-model-server
06cdd2785fdf68cb089a8fb98840977eef0c77c2
[ "Apache-2.0" ]
1
2019-08-31T04:02:04.000Z
2019-08-31T04:02:04.000Z
ie_serving/server/rest_service.py
Doken-Tokuyama/OpenVINO-model-server
06cdd2785fdf68cb089a8fb98840977eef0c77c2
[ "Apache-2.0" ]
null
null
null
ie_serving/server/rest_service.py
Doken-Tokuyama/OpenVINO-model-server
06cdd2785fdf68cb089a8fb98840977eef0c77c2
[ "Apache-2.0" ]
null
null
null
import datetime import json import falcon from google.protobuf.json_format import MessageToJson from tensorflow_serving.apis import get_model_metadata_pb2, \ get_model_status_pb2 from ie_serving.logger import get_logger from ie_serving.server.constants import WRONG_MODEL_SPEC, INVALID_FORMAT, \ OUTPUT_REPRESE...
42.755656
78
0.620489
7,813
0.82686
0
0
0
0
0
0
1,048
0.110911
0fa091d86b1a73176978c43ffd49893026ee0d83
11,373
py
Python
spinup/utils/hyper_search.py
yjl450/spinningup-drl-prototyping
88bbbca2ce48fcb879a6592f5bee1347ef52cf30
[ "MIT" ]
9
2019-11-07T07:05:25.000Z
2021-08-23T09:33:28.000Z
spinup/utils/hyper_search.py
yjl450/spinningup-drl-prototyping
88bbbca2ce48fcb879a6592f5bee1347ef52cf30
[ "MIT" ]
null
null
null
spinup/utils/hyper_search.py
yjl450/spinningup-drl-prototyping
88bbbca2ce48fcb879a6592f5bee1347ef52cf30
[ "MIT" ]
3
2020-06-25T16:08:30.000Z
2020-12-18T16:59:32.000Z
import pandas as pd import json import os import os.path as osp import numpy as np """ python -m spinup.run hyper_search <files> -ae <start from which epoch> make a file that can order the experiments in terms of their performance use this to easily find good hyperparameters when doing hyperparameter search upload thi...
43.408397
115
0.627979
0
0
0
0
0
0
0
0
5,227
0.459597
0fa16ef2816f764151079f54a639f1a1c4d2374a
262
py
Python
piecrust/wsgiutil/__init__.py
airbornemint/PieCrust2
bd8e44a1a3ba646a9ebfbb4d4f1fa01a1daa3beb
[ "Apache-2.0" ]
null
null
null
piecrust/wsgiutil/__init__.py
airbornemint/PieCrust2
bd8e44a1a3ba646a9ebfbb4d4f1fa01a1daa3beb
[ "Apache-2.0" ]
null
null
null
piecrust/wsgiutil/__init__.py
airbornemint/PieCrust2
bd8e44a1a3ba646a9ebfbb4d4f1fa01a1daa3beb
[ "Apache-2.0" ]
null
null
null
from piecrust.serving.server import WsgiServer def get_app(root_dir, cache_key='prod', enable_debug_info=False): app = WsgiServer(root_dir, cache_key=cache_key, enable_debug_info=enable_debug_info) return app
26.2
65
0.671756
0
0
0
0
0
0
0
0
6
0.022901
0fa1f574a4f8141432aee6c23b38e68e734cc0ee
98
py
Python
Main.py
mriduldhall/tic-tac-toe
9487949edf84fddcdde09bdb8cb04dbfdc5f8faf
[ "MIT" ]
null
null
null
Main.py
mriduldhall/tic-tac-toe
9487949edf84fddcdde09bdb8cb04dbfdc5f8faf
[ "MIT" ]
null
null
null
Main.py
mriduldhall/tic-tac-toe
9487949edf84fddcdde09bdb8cb04dbfdc5f8faf
[ "MIT" ]
null
null
null
from Interfaces.CommandLineInterface import CLI if __name__ == '__main__': CLI().initiate()
16.333333
47
0.734694
0
0
0
0
0
0
0
0
10
0.102041
0fa25074fb0a3f8683d33c168968750fc928e7ea
1,198
py
Python
tests/data/view.py
Forumouth/flask-simple
0764559fbbc4348cc146aa4dddbc1f90d91bc840
[ "MIT", "Unlicense" ]
null
null
null
tests/data/view.py
Forumouth/flask-simple
0764559fbbc4348cc146aa4dddbc1f90d91bc840
[ "MIT", "Unlicense" ]
5
2016-01-30T13:32:23.000Z
2016-02-06T13:34:11.000Z
tests/data/view.py
Forumouth/flask-simple
0764559fbbc4348cc146aa4dddbc1f90d91bc840
[ "MIT", "Unlicense" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 from flask.ext.simple import FlaskEasyView from .model import ExampleModel from .form import generate_example_form from .testapp import app class SimpleView(FlaskEasyView): ''' Simple Example View for test ''' trailing_slash = False model = ExampleModel f...
22.185185
53
0.716194
875
0.730384
0
0
0
0
0
0
381
0.31803
0fa2c01a7139bb57740679564f53ec3e25788f1f
3,011
py
Python
tests/job_concurrency1_test.py
moellep/sirepo
4fd8b88b3b95921d50e6b225c02a46c00da16a27
[ "Apache-2.0" ]
null
null
null
tests/job_concurrency1_test.py
moellep/sirepo
4fd8b88b3b95921d50e6b225c02a46c00da16a27
[ "Apache-2.0" ]
null
null
null
tests/job_concurrency1_test.py
moellep/sirepo
4fd8b88b3b95921d50e6b225c02a46c00da16a27
[ "Apache-2.0" ]
2
2020-10-27T20:01:23.000Z
2020-11-06T23:35:05.000Z
# -*- coding: utf-8 -*- u"""Concurrency testing This test does not always fail when there is a problem (false positive), because it depends on a specific sequence of events that can't be controlled by the test. :copyright: Copyright (c) 2020 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/license...
29.23301
74
0.570242
0
0
0
0
0
0
0
0
875
0.290601
0fa631a2baeb7f92993b24dab769fd0334e826c6
3,707
py
Python
FF_HOI.py
hellocatfood/FontForge-Higher-Order-Interpolation
56ecec8e14bd09490d31a8001482d972df5b5c76
[ "Apache-2.0" ]
14
2020-11-13T11:22:03.000Z
2021-07-20T15:30:54.000Z
FF_HOI.py
hellocatfood/FontForge-Higher-Order-Interpolation
56ecec8e14bd09490d31a8001482d972df5b5c76
[ "Apache-2.0" ]
null
null
null
FF_HOI.py
hellocatfood/FontForge-Higher-Order-Interpolation
56ecec8e14bd09490d31a8001482d972df5b5c76
[ "Apache-2.0" ]
1
2021-07-22T11:11:32.000Z
2021-07-22T11:11:32.000Z
#!/usr/bin/env python3 import fontforge import argparse import itertools import os import shutil from lib.util import * # This handles the glyph's "HOIINFO" comment. Right now only deals with setting rbearing of each master. from lib import HOIInfo parser = argparse.ArgumentParser(description='Given a specially form...
28.29771
186
0.635554
0
0
0
0
0
0
0
0
821
0.220936
0fa8c715ee62ee11ebf3efaa36c899ff0cb9fc40
11,293
py
Python
graphql_subscription_manager/__init__.py
Danielhiversen/PyGraphqlWebsocketManager
7e6e82199d56def8dbb3f710174daa763acf7f74
[ "MIT" ]
null
null
null
graphql_subscription_manager/__init__.py
Danielhiversen/PyGraphqlWebsocketManager
7e6e82199d56def8dbb3f710174daa763acf7f74
[ "MIT" ]
null
null
null
graphql_subscription_manager/__init__.py
Danielhiversen/PyGraphqlWebsocketManager
7e6e82199d56def8dbb3f710174daa763acf7f74
[ "MIT" ]
1
2021-06-11T14:27:55.000Z
2021-06-11T14:27:55.000Z
"""Subscription manager for Graph QL websocket.""" import asyncio import json import logging import socket import sys from time import time import pkg_resources import websockets _LOGGER = logging.getLogger(__name__) STATE_STARTING = "starting" STATE_RUNNING = "running" STATE_STOPPED = "stopped" try: VERSION =...
34.854938
87
0.553352
10,834
0.959355
0
0
117
0.01036
8,083
0.715753
1,783
0.157885
0fa9623f1cbc23c68dedf361a5e9c2d89e9defba
386
py
Python
github_api/cli/env.py
kazamori/github-cli
f8b9f1ffedd12fe43664516dacc6c3a861ae4dc9
[ "Apache-2.0" ]
null
null
null
github_api/cli/env.py
kazamori/github-cli
f8b9f1ffedd12fe43664516dacc6c3a861ae4dc9
[ "Apache-2.0" ]
null
null
null
github_api/cli/env.py
kazamori/github-cli
f8b9f1ffedd12fe43664516dacc6c3a861ae4dc9
[ "Apache-2.0" ]
null
null
null
import os _GITHUB_SETTING_SITE = 'https://github.com/settings/tokens' TOKEN = os.environ.get('GITHUB_API_TOKEN') if TOKEN is None: message = 'requires Personal access tokens. ' message += 'export GITHUB_API_TOKEN="***", ' message += f'get from {_GITHUB_SETTING_SITE} if you do not have' raise RuntimeEr...
25.733333
68
0.699482
0
0
0
0
0
0
0
0
206
0.533679
0fa981c50f162d9ee1e72a1a2524c381e554d62b
20,124
py
Python
methionineTest.py
Csernica/Isotomics
dffd518d479fcfaa40da5dd275631fe68332bfb4
[ "MIT" ]
null
null
null
methionineTest.py
Csernica/Isotomics
dffd518d479fcfaa40da5dd275631fe68332bfb4
[ "MIT" ]
null
null
null
methionineTest.py
Csernica/Isotomics
dffd518d479fcfaa40da5dd275631fe68332bfb4
[ "MIT" ]
null
null
null
import copy import json import numpy as np import pandas as pd import basicDeltaOperations as op import calcIsotopologues as ci import fragmentAndSimulate as fas import solveSystem as ss ''' This is a set of functions to quickly initalize methionine molecules based on input delta values and to simulate its fragmenta...
68.917808
500
0.639485
0
0
0
0
0
0
0
0
11,141
0.553618
0faccc6541fe716583eb34dadb7193b4db3cb766
11,704
py
Python
neuro-cli/tests/unit/formatters/test_storage_formatters.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
11
2020-10-11T15:38:11.000Z
2021-11-09T11:29:50.000Z
neuro-cli/tests/unit/formatters/test_storage_formatters.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
611
2020-09-30T21:27:52.000Z
2022-01-10T10:44:44.000Z
neuro-cli/tests/unit/formatters/test_storage_formatters.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
1
2020-10-05T15:10:24.000Z
2020-10-05T15:10:24.000Z
import time from typing import Any, List import pytest from yarl import URL from neuro_sdk import Action, FileStatus, FileStatusType from neuro_sdk.storage import DiskUsageInfo from neuro_cli.formatters.storage import ( BaseFilesFormatter, BSDAttributes, BSDPainter, DiskUsageFormatter, FilesSorte...
32.876404
88
0.550239
11,207
0.957536
0
0
6,027
0.514952
0
0
1,782
0.152256
0fad05bfe5b392dcaaa42d73399a9890ce38ef8d
2,059
py
Python
examples/example2d1many.py
elliottslaughter/cufinufft
bb1453dfe9dc12159e8e346eae79ad4d71fd566f
[ "Apache-2.0" ]
56
2020-05-12T22:22:22.000Z
2022-01-28T23:54:48.000Z
examples/example2d1many.py
elliottslaughter/cufinufft
bb1453dfe9dc12159e8e346eae79ad4d71fd566f
[ "Apache-2.0" ]
108
2020-05-13T16:59:51.000Z
2022-03-31T22:30:57.000Z
examples/example2d1many.py
elliottslaughter/cufinufft
bb1453dfe9dc12159e8e346eae79ad4d71fd566f
[ "Apache-2.0" ]
15
2020-05-22T12:29:36.000Z
2022-03-03T18:08:03.000Z
""" Demonstrate the type 1 NUFFT using cuFINUFFT """ import numpy as np import pycuda.autoinit from pycuda.gpuarray import GPUArray, to_gpu from cufinufft import cufinufft # Set up parameters for problem. N1, N2 = 59, 61 # Size of uniform grid M = 100 # Number of nonuniform p...
31.19697
77
0.645945
0
0
0
0
0
0
0
0
914
0.443905
0fae0ba2824dc5a926e2388c414dc0455b2ced7b
7,293
py
Python
2021/22/22b.py
kristianwiklund/AOC
be2f2e3a97b775281382dca8ea34a6522571052a
[ "MIT" ]
3
2020-12-02T18:18:05.000Z
2021-12-03T18:39:26.000Z
2021/22/22b.py
kristianwiklund/AOC
be2f2e3a97b775281382dca8ea34a6522571052a
[ "MIT" ]
null
null
null
2021/22/22b.py
kristianwiklund/AOC
be2f2e3a97b775281382dca8ea34a6522571052a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys import cut from box import Box from reactor import Reactor from termcolor import colored # -- assert helper def check(what,output,f=None): try: assert(what) except: print("Assert failed, debug output: ",end="") print(output) if f is not None: ...
29.526316
136
0.581791
0
0
0
0
0
0
0
0
3,585
0.491567
0faef4c43d66c9f68163503158caeb67ad86c96d
386
py
Python
planner/progression/__init__.py
cyclone923/pyplanners
e2fe156ff00d0914cfb4f20afed158706f4d5d28
[ "MIT" ]
null
null
null
planner/progression/__init__.py
cyclone923/pyplanners
e2fe156ff00d0914cfb4f20afed158706f4d5d28
[ "MIT" ]
null
null
null
planner/progression/__init__.py
cyclone923/pyplanners
e2fe156ff00d0914cfb4f20afed158706f4d5d28
[ "MIT" ]
null
null
null
from .hill_climbing import hill_climbing_search, strategies from .best_first import path_cost_fn, greedy_cost_fn, weighted_cost_fn, macro_greedy_cost_fn, \ a_star_search, best_first_search, deferred_best_first_search, macro_deferred_best_first_search, semideferred_best_first_search from .simple import dfs, bfs, srand...
64.333333
128
0.860104
0
0
0
0
0
0
0
0
0
0
0fb0cca38d85a28606d607324eeae70804e43a93
18,289
py
Python
domain_api/migrations/0001_initial.py
heytrav/drs-project
68caa7e9bc8dea8963ddef561b42d05a7a88becd
[ "MIT" ]
1
2020-07-01T02:35:14.000Z
2020-07-01T02:35:14.000Z
domain_api/migrations/0001_initial.py
heytrav/drs-api
68caa7e9bc8dea8963ddef561b42d05a7a88becd
[ "MIT" ]
2
2020-06-05T17:25:14.000Z
2021-03-19T21:53:44.000Z
domain_api/migrations/0001_initial.py
heytrav/drs-api
68caa7e9bc8dea8963ddef561b42d05a7a88becd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-26 01:17 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
57.694006
164
0.604844
18,065
0.987752
0
0
0
0
0
0
3,444
0.18831
0fb114654c966c204091aeb485fbf2b16514cab7
582
py
Python
src/ralph/networks/migrations/0010_auto_20170216_1230.py
DoNnMyTh/ralph
97b91639fa68965ad3fd9d0d2652a6545a2a5b72
[ "Apache-2.0" ]
1,668
2015-01-01T12:51:20.000Z
2022-03-29T09:05:35.000Z
src/ralph/networks/migrations/0010_auto_20170216_1230.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
2,314
2015-01-02T13:26:26.000Z
2022-03-29T04:06:03.000Z
src/ralph/networks/migrations/0010_auto_20170216_1230.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
534
2015-01-05T12:40:28.000Z
2022-03-29T21:10:12.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('networks', '0009_auto_20160823_0921'), ] operations = [ migrations.AlterField( ...
27.714286
194
0.671821
440
0.756014
0
0
0
0
0
0
130
0.223368
0fb48e1799c5a6fbf154e674d62f184dedc8e4ed
4,072
py
Python
tests/tasks/dbt/test_dbt.py
andykawabata/prefect
a11061c19847beeea26616ccaf4b404ad939676b
[ "ECL-2.0", "Apache-2.0" ]
2
2020-09-28T16:24:02.000Z
2020-10-08T17:08:19.000Z
tests/tasks/dbt/test_dbt.py
andykawabata/prefect
a11061c19847beeea26616ccaf4b404ad939676b
[ "ECL-2.0", "Apache-2.0" ]
7
2021-06-28T20:33:49.000Z
2022-02-27T10:58:04.000Z
tests/tasks/dbt/test_dbt.py
yalaudah/prefect
2f7f92c39a4575119c3268b0415841c6aca5df60
[ "Apache-2.0" ]
1
2019-12-27T15:57:54.000Z
2019-12-27T15:57:54.000Z
import os import sys import pytest from prefect import Flow from prefect.tasks.dbt import DbtShellTask pytestmark = pytest.mark.skipif( sys.platform == "win32", reason="DbtShellTask currently not supported on Windows" ) def test_shell_result_from_stdout(tmpdir): dbt_dir = tmpdir.mkdir("dbt") task = D...
30.848485
85
0.561395
0
0
0
0
0
0
0
0
1,350
0.331532
0fb6d81fdcc4a6f92216d10fda5840c9b15c50e3
295
py
Python
tests/data/formulas/five/five-1.0.py
pmuller/ipkg
9e3df803e0f16035a7552f63bbf54886244827d8
[ "MIT" ]
3
2016-04-20T21:24:59.000Z
2021-11-17T10:58:49.000Z
tests/data/formulas/five/five-1.0.py
pmuller/ipkg
9e3df803e0f16035a7552f63bbf54886244827d8
[ "MIT" ]
null
null
null
tests/data/formulas/five/five-1.0.py
pmuller/ipkg
9e3df803e0f16035a7552f63bbf54886244827d8
[ "MIT" ]
null
null
null
from os.path import dirname from ipkg.build import Formula, File class five(Formula): name = 'five' version = '1.0' sources = File(dirname(__file__) + '/../../sources/five-1.0.tar.gz') platform = 'any' dependencies = ('four > 1.0',) def install(self): pass
17.352941
72
0.6
226
0.766102
0
0
0
0
0
0
60
0.20339
0fb8484d9a2f11e82bc1b0d029f000c6539ffbe4
828
py
Python
venv/Lib/site-packages/captcha/urls.py
bopopescu/diandian_online
05eba122762c087623d42fad5352f6b67c73bcc5
[ "BSD-3-Clause" ]
3
2020-03-16T02:49:59.000Z
2022-03-21T15:04:44.000Z
venv/Lib/site-packages/captcha/urls.py
bopopescu/diandian_online
05eba122762c087623d42fad5352f6b67c73bcc5
[ "BSD-3-Clause" ]
1
2020-12-10T08:04:25.000Z
2020-12-10T08:04:25.000Z
venv/Lib/site-packages/captcha/urls.py
bopopescu/diandian_online
05eba122762c087623d42fad5352f6b67c73bcc5
[ "BSD-3-Clause" ]
2
2020-05-01T08:16:25.000Z
2020-07-21T00:12:06.000Z
from django.conf.urls import url from django.urls import path from captcha import views # urlpatterns = [ # url(r'image/(?P<key>\w+)/$', views.captcha_image, name='captcha-image', kwargs={'scale': 1}), # url(r'image/(?P<key>\w+)@2/$', views.captcha_image, name='captcha-image-2x', kwargs={'scale': 2}), # ur...
51.75
104
0.660628
0
0
0
0
0
0
0
0
526
0.635266
0fb9d85cce91d01ad8ccfcea025a3fb078866669
4,147
py
Python
tacker/api/views/__init__.py
takahashi-tsc/tacker
a0ae01a13dcc51bb374060adcbb4fd484ab37156
[ "Apache-2.0" ]
116
2015-10-18T02:57:08.000Z
2022-03-15T04:09:18.000Z
tacker/api/views/__init__.py
takahashi-tsc/tacker
a0ae01a13dcc51bb374060adcbb4fd484ab37156
[ "Apache-2.0" ]
6
2016-11-07T22:15:54.000Z
2021-05-09T06:13:08.000Z
tacker/api/views/__init__.py
takahashi-tsc/tacker
a0ae01a13dcc51bb374060adcbb4fd484ab37156
[ "Apache-2.0" ]
166
2015-10-20T15:31:52.000Z
2021-11-12T08:39:49.000Z
# Copyright (C) 2020 NTT DATA # All Rights Reserved. # # 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 ...
44.591398
79
0.594888
3,418
0.82421
0
0
3,376
0.814082
0
0
1,671
0.402942
0fba0a7eb708f5b3bddbe1370f87cfb260a40450
428
py
Python
users/migrations/0002_auto_20190529_1832.py
VladaDidko/skill-
861c08376e2bc9b9a5a44e3a8560324ee53ce2d0
[ "Unlicense" ]
null
null
null
users/migrations/0002_auto_20190529_1832.py
VladaDidko/skill-
861c08376e2bc9b9a5a44e3a8560324ee53ce2d0
[ "Unlicense" ]
18
2019-05-28T17:20:34.000Z
2022-03-11T23:50:12.000Z
users/migrations/0002_auto_20190529_1832.py
VladaDidko/skill-
861c08376e2bc9b9a5a44e3a8560324ee53ce2d0
[ "Unlicense" ]
3
2019-05-27T09:51:54.000Z
2019-12-12T20:35:29.000Z
# Generated by Django 2.2.1 on 2019-05-29 15:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterField( model_name='profile', name='gender', fi...
22.526316
104
0.57243
336
0.783217
0
0
0
0
0
0
109
0.254079
0fbabd4ea1caf69d29462adc61c987bfc0ab93d1
4,343
py
Python
SC001_2021.Jan-Feb/Assignment_3/hangman.py
pcdd05/stanCode_python
9fa6d3abd7a1681a7a254e2dcbf3093eae25476f
[ "MIT" ]
null
null
null
SC001_2021.Jan-Feb/Assignment_3/hangman.py
pcdd05/stanCode_python
9fa6d3abd7a1681a7a254e2dcbf3093eae25476f
[ "MIT" ]
null
null
null
SC001_2021.Jan-Feb/Assignment_3/hangman.py
pcdd05/stanCode_python
9fa6d3abd7a1681a7a254e2dcbf3093eae25476f
[ "MIT" ]
null
null
null
""" File: hangman.py Name: DiCheng ----------------------------- This program plays hangman game. Users sees a dashed word, trying to correctly figure the un-dashed word out by inputting one character each round. If the user input is correct, show the updated word on console. Players have N_TURNS chances to try and win...
30.801418
115
0.643564
0
0
0
0
0
0
0
0
2,460
0.566429
0fbade66d2854d66ac77d55cf0a93e6da49f2f41
9,532
py
Python
CyberPi/Python with CyberPi 064(面向对象 精灵游戏).py
SCSZCC/PythonWithHardware
3e5ae890cb7a8e5e2c5a636092aca9ce21728ab2
[ "MIT" ]
2
2020-08-15T02:49:19.000Z
2020-08-15T02:49:31.000Z
CyberPi/Python with CyberPi 064(面向对象 精灵游戏).py
SCSZCC/PythonWithHardware
3e5ae890cb7a8e5e2c5a636092aca9ce21728ab2
[ "MIT" ]
null
null
null
CyberPi/Python with CyberPi 064(面向对象 精灵游戏).py
SCSZCC/PythonWithHardware
3e5ae890cb7a8e5e2c5a636092aca9ce21728ab2
[ "MIT" ]
1
2022-02-24T05:30:30.000Z
2022-02-24T05:30:30.000Z
"""" 名称:064 童芯派 面向对象 体感小飞机 硬件: 童芯派 功能介绍: 使用童芯派的精灵功能在屏幕上编写了一个基于陀螺仪控制的体感小游戏,控制角色飞机躲避空中的子弹。 难度:⭐⭐⭐ 支持的模式:上传模式 无 """ # ---------程序分割线----------------程序分割线----------------程序分割线---------- import cyberpi import random import math import time class Enemy: def __init__(self): self.x = random.randint(0, 128) ...
49.645833
112
0.644251
8,019
0.818432
0
0
0
0
0
0
564
0.057563
0fbb3aad96ce58448158e08b16e3b6dc036a20e3
5,877
pyw
Python
venv/Lib/site-packages/PyQt4/examples/designer/plugins/widgets/polygonwidget.pyw
prateekfxtd/ns_Startup
095a62b3a8c7bf0ff7b767355d57d993bbd2423d
[ "MIT" ]
1
2022-03-16T02:10:30.000Z
2022-03-16T02:10:30.000Z
venv/Lib/site-packages/PyQt4/examples/designer/plugins/widgets/polygonwidget.pyw
prateekfxtd/ns_Startup
095a62b3a8c7bf0ff7b767355d57d993bbd2423d
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PyQt4/examples/designer/plugins/widgets/polygonwidget.pyw
prateekfxtd/ns_Startup
095a62b3a8c7bf0ff7b767355d57d993bbd2423d
[ "MIT" ]
2
2019-05-28T11:58:59.000Z
2020-09-23T17:21:19.000Z
#!/usr/bin/env python """ polygonwidget.py A PyQt custom widget example for Qt Designer. Copyright (C) 2006 David Boddie <david@boddie.org.uk> Copyright (C) 2005-2006 Trolltech ASA. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public...
30.769634
80
0.650672
4,783
0.813851
0
0
608
0.103454
0
0
1,845
0.313936
0fbc19796e7acda6f3394479071dfd67a7de3e33
4,864
py
Python
wflow-water-index/wflow-water-index.py
Fondus/Fondus-Python-SDK
ce6cfaffe5d978ac728f35b1b4bfcf49f7519576
[ "Apache-2.0" ]
null
null
null
wflow-water-index/wflow-water-index.py
Fondus/Fondus-Python-SDK
ce6cfaffe5d978ac728f35b1b4bfcf49f7519576
[ "Apache-2.0" ]
null
null
null
wflow-water-index/wflow-water-index.py
Fondus/Fondus-Python-SDK
ce6cfaffe5d978ac728f35b1b4bfcf49f7519576
[ "Apache-2.0" ]
1
2021-08-05T06:28:36.000Z
2021-08-05T06:28:36.000Z
import argparse import datetime import math from netCDF4 import Dataset import numpy as np import threading import queue # Worker 類別,負責處理資料 class Worker(threading.Thread): def __init__(self, req, res, num): threading.Thread.__init__(self) self.req = req self.res = res self.num = n...
27.480226
92
0.595189
720
0.147481
0
0
0
0
0
0
910
0.186399
0fbc4534160152a1c4aa5730f03972b8642ee17e
8,532
py
Python
plugins/input_fsx/datachannel.py
tunstek/hexi
ebb00e4e47ac90d96a26179a5786d768d95c4bd5
[ "MIT" ]
14
2017-10-07T23:19:09.000Z
2021-10-08T12:13:59.000Z
plugins/input_fsx/datachannel.py
tunstek/hexi
ebb00e4e47ac90d96a26179a5786d768d95c4bd5
[ "MIT" ]
1
2018-07-16T17:03:43.000Z
2018-07-16T17:03:43.000Z
plugins/input_fsx/datachannel.py
tunstek/hexi
ebb00e4e47ac90d96a26179a5786d768d95c4bd5
[ "MIT" ]
6
2018-05-18T14:25:26.000Z
2021-03-28T12:37:21.000Z
import time import asyncio import random import pyee import logging from plugins.input_fsx import fsx_pb2 from hexi.service import event _logger = logging.getLogger(__name__) class UDPServer(asyncio.DatagramProtocol): def __init__(self, manager, token): super().__init__() self.manager = manager self...
33.328125
88
0.703821
8,343
0.977848
0
0
0
0
2,995
0.351031
1,034
0.121191
0fbc5d08eb45c80c3b2464b89870b7a0e0d89550
4,722
py
Python
shell/my_shell.py
utep-cs-systems-courses/os-shell-joshuaramoscs
96b8bef864d097be693ec021783c9dcd4e08bb1d
[ "BSD-3-Clause" ]
null
null
null
shell/my_shell.py
utep-cs-systems-courses/os-shell-joshuaramoscs
96b8bef864d097be693ec021783c9dcd4e08bb1d
[ "BSD-3-Clause" ]
null
null
null
shell/my_shell.py
utep-cs-systems-courses/os-shell-joshuaramoscs
96b8bef864d097be693ec021783c9dcd4e08bb1d
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python3 import os, sys, time, re from my_readLine import my_readLine # Set prompt to '$' if not set def set_prompt(): # if not os.environ["PS1"]: os.environ["PS1"] = '$' # Change directory def my_cd(args): if len(args) == 1 or len(args) > 2: # If just cd or multiple args, then print i...
42.540541
102
0.489199
0
0
0
0
0
0
0
0
1,577
0.333969
0fbcbe12ef9216cd827006560b9e93c286ad369b
531
py
Python
activity/views.py
AkshayVKumar/ActivityManager
e87987a532b8441b41ecc038b51e4614b8d1a526
[ "BSD-3-Clause" ]
null
null
null
activity/views.py
AkshayVKumar/ActivityManager
e87987a532b8441b41ecc038b51e4614b8d1a526
[ "BSD-3-Clause" ]
5
2020-06-06T01:47:24.000Z
2022-02-10T14:42:15.000Z
activity/views.py
AkshayVKumar/ActivityManager
e87987a532b8441b41ecc038b51e4614b8d1a526
[ "BSD-3-Clause" ]
null
null
null
from rest_framework import viewsets from .serializers import MemberSerializer, ActivityPeriodSerializer from activity.models import UserProfile, ActivityPeriod from django.http import JsonResponse #class for displaying members class MemberViewSet(viewsets.ModelViewSet): queryset = UserProfile.objects.all() ser...
35.4
67
0.834275
267
0.502825
0
0
0
0
0
0
61
0.114878
0fbce71bbe2d1a218863819284d6848f63bba467
1,424
py
Python
LJ_surrogates/parameter_modification.py
SimonBoothroyd/LJ_surrogates
60b2c836ad571b384a7e962b7cec99db6e6fc7eb
[ "MIT" ]
null
null
null
LJ_surrogates/parameter_modification.py
SimonBoothroyd/LJ_surrogates
60b2c836ad571b384a7e962b7cec99db6e6fc7eb
[ "MIT" ]
null
null
null
LJ_surrogates/parameter_modification.py
SimonBoothroyd/LJ_surrogates
60b2c836ad571b384a7e962b7cec99db6e6fc7eb
[ "MIT" ]
null
null
null
from openff.toolkit.typing.engines.smirnoff.forcefield import ForceField from simtk import openmm, unit from scipy.stats import distributions import copy import numpy as np import os from smt.sampling_methods import LHS def vary_parameters_lhc(filename, num_samples, output_directory): forcefield = ForceField(file...
38.486486
89
0.691713
0
0
0
0
0
0
0
0
77
0.054073
0fbe97554004825caf136fddc2974680e7d04552
635
py
Python
order/models/customers.py
fbsamples/cp_reference
028b384767d06158a64be8cbb1af613e2f3c881e
[ "MIT" ]
2
2021-09-05T04:21:33.000Z
2021-11-03T20:56:46.000Z
order/models/customers.py
fbsamples/cp_reference
028b384767d06158a64be8cbb1af613e2f3c881e
[ "MIT" ]
null
null
null
order/models/customers.py
fbsamples/cp_reference
028b384767d06158a64be8cbb1af613e2f3c881e
[ "MIT" ]
null
null
null
# Copyright 2004-present, Facebook. All Rights Reserved. from django.db import models from core.models import BaseModel class Customer(BaseModel): """Represent a single customer instance fields: store: the store this customer belongs to full_name: customer full name email: customer email addr...
27.608696
81
0.722835
512
0.806299
0
0
0
0
0
0
267
0.420472
0fbee81484a9cb1c52b3aeed6de4e2fee4bd9dfe
8,601
py
Python
kuzushiji/classify/level2.py
littlerain2310/japances_character
bdca6b30f3058af30462dcd5729eacb69f6fa83b
[ "MIT", "BSD-3-Clause" ]
81
2019-10-15T00:31:56.000Z
2022-01-04T08:32:19.000Z
kuzushiji/classify/level2.py
littlerain2310/japances_character
bdca6b30f3058af30462dcd5729eacb69f6fa83b
[ "MIT", "BSD-3-Clause" ]
1
2019-11-26T16:24:56.000Z
2019-11-28T09:01:37.000Z
kuzushiji/classify/level2.py
littlerain2310/japances_character
bdca6b30f3058af30462dcd5729eacb69f6fa83b
[ "MIT", "BSD-3-Clause" ]
16
2019-10-15T01:09:45.000Z
2021-12-30T04:49:19.000Z
import argparse from collections import defaultdict import pickle import re import lightgbm as lgb import pandas as pd import numpy as np import xgboost as xgb from ..data_utils import SEG_FP, get_encoded_classes from ..utils import print_metrics from ..metric import get_metrics from .blend import ( score_predict...
37.073276
79
0.598303
0
0
0
0
0
0
0
0
1,189
0.13824
0fc20baeb9198c74f7c0542feb89fb8850d4a334
401
py
Python
vkwave/vkscript/__init__.py
krasnovmv/vkwave
e0db86cc16f97797765aadfb811ec87ff7945b1f
[ "MIT" ]
222
2020-03-30T18:09:20.000Z
2022-03-27T18:25:04.000Z
vkwave/vkscript/__init__.py
krasnovmv/vkwave
e0db86cc16f97797765aadfb811ec87ff7945b1f
[ "MIT" ]
62
2020-03-30T18:31:25.000Z
2021-12-21T17:00:44.000Z
vkwave/vkscript/__init__.py
krasnovmv/vkwave
e0db86cc16f97797765aadfb811ec87ff7945b1f
[ "MIT" ]
91
2020-03-30T18:34:49.000Z
2022-03-23T12:58:49.000Z
import vkwave.vkscript.handlers.assignments import vkwave.vkscript.handlers.blocks import vkwave.vkscript.handlers.calls import vkwave.vkscript.handlers.expressions import vkwave.vkscript.handlers.statements import vkwave.vkscript.handlers.types from .converter import VKScriptConverter from .execute import Execute from...
30.846154
53
0.842893
0
0
0
0
0
0
0
0
37
0.092269
0fc3095b8ef6cc10b6acc06d5aa68037afc74cc5
692
py
Python
greeting/cliente.py
javalisson/Sockets
90068c0b5a4b2f21ca789177c3c445c671732a86
[ "MIT" ]
2
2017-04-26T11:17:56.000Z
2017-12-05T01:55:20.000Z
greeting/cliente.py
javalisson/Sockets
90068c0b5a4b2f21ca789177c3c445c671732a86
[ "MIT" ]
2
2017-02-22T12:35:13.000Z
2017-03-29T12:44:22.000Z
greeting/cliente.py
javalisson/Sockets
90068c0b5a4b2f21ca789177c3c445c671732a86
[ "MIT" ]
24
2017-02-22T12:26:04.000Z
2020-10-13T05:19:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # adaptado de https://wiki.python.org/moin/TcpCommunication import socket TCP_IP = '127.0.0.1' TCP_PORT = 5005 BUFFER_SIZE = 1024 NOME = "Javalisson" print ("[CLIENTE] Iniciando") s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) print ("[CLIENTE] Conectando") s.c...
25.62963
97
0.690751
0
0
0
0
0
0
0
0
374
0.539683
0fc3569e087d76a290fb758960cbd352ee6f27dc
2,132
py
Python
blog/migrations/0001_initial.py
jxtxzzw/eoj3
468c16ed6de8b9b542972d0e83b02fd2cfa35e4f
[ "MIT" ]
1
2020-11-17T13:08:07.000Z
2020-11-17T13:08:07.000Z
blog/migrations/0001_initial.py
zerolfx/eoj3
156060399d1c3e5f7bcdbf34eaffbe2be66e1b20
[ "MIT" ]
2
2020-09-23T21:27:55.000Z
2021-06-25T15:24:46.000Z
blog/migrations/0001_initial.py
zerolfx/eoj3
156060399d1c3e5f7bcdbf34eaffbe2be66e1b20
[ "MIT" ]
1
2019-07-13T00:44:39.000Z
2019-07-13T00:44:39.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-04-06 16:37 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
42.64
125
0.604597
1,908
0.894934
0
0
0
0
0
0
362
0.169794
0fc40b5d3302c591d7c87cbcec40ba11831456cc
1,187
py
Python
crawler-pcstore/CrawlerForPcstore.py
hms5232/CaiBiBa
a5e9724dc3832d6f7bdd46ea69460c1112028278
[ "MIT" ]
null
null
null
crawler-pcstore/CrawlerForPcstore.py
hms5232/CaiBiBa
a5e9724dc3832d6f7bdd46ea69460c1112028278
[ "MIT" ]
null
null
null
crawler-pcstore/CrawlerForPcstore.py
hms5232/CaiBiBa
a5e9724dc3832d6f7bdd46ea69460c1112028278
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup # 聽說要空兩行,註解要空一格 # 搜尋 def search_title(html): key = input("請輸入關鍵字:") # input key words starttag = html.find(key) # the index of word user wants # I got it! if starttag != -1: # 找到關鍵字之後把往後到下一個標籤之前的字抓起來 for j in range(starttag, len(html)): ...
27.604651
75
0.53075
0
0
0
0
0
0
0
0
794
0.513251
0fc78435f35004709d8d5a9264257cf022be0b7d
4,337
py
Python
Posts/migrations/0001_initial.py
rosekairu/Neighbourly
3381b4472cd9d7de988ea57f1ecd931976e95853
[ "MIT" ]
null
null
null
Posts/migrations/0001_initial.py
rosekairu/Neighbourly
3381b4472cd9d7de988ea57f1ecd931976e95853
[ "MIT" ]
6
2021-03-30T13:56:43.000Z
2021-09-22T19:26:50.000Z
Posts/migrations/0001_initial.py
rosekairu/Neighbourly
3381b4472cd9d7de988ea57f1ecd931976e95853
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-19 17:34 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import phone_field.models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_U...
52.253012
144
0.611944
4,152
0.957344
0
0
0
0
0
0
619
0.142725
0fc80bccdde996736cc835d370d64e069c7c8b30
1,787
py
Python
pip_services3_container/build/DefaultContainerFactory.py
banalna/pip-services3-container-python
d26aee1f49840eb0dac4ccb290b4808550494354
[ "MIT" ]
null
null
null
pip_services3_container/build/DefaultContainerFactory.py
banalna/pip-services3-container-python
d26aee1f49840eb0dac4ccb290b4808550494354
[ "MIT" ]
null
null
null
pip_services3_container/build/DefaultContainerFactory.py
banalna/pip-services3-container-python
d26aee1f49840eb0dac4ccb290b4808550494354
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ pip_services3_container.build.DefaultContainerFactory ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Default container factory implementation :copyright: Conceptual Vision Consulting LLC 2018-2019, see AUTHORS for more details. :license: MIT, see LICENSE f...
39.711111
103
0.739228
847
0.473979
0
0
0
0
0
0
643
0.359821
0fc8765eef19cf60478c282b2ce414022ec0df47
5,148
py
Python
com/vmware/vapi/protocol/server/transport/msg_handler.py
sumitrsystems/Vmware
7705d9979bee71f02c71d63890616409044cba08
[ "MIT" ]
null
null
null
com/vmware/vapi/protocol/server/transport/msg_handler.py
sumitrsystems/Vmware
7705d9979bee71f02c71d63890616409044cba08
[ "MIT" ]
null
null
null
com/vmware/vapi/protocol/server/transport/msg_handler.py
sumitrsystems/Vmware
7705d9979bee71f02c71d63890616409044cba08
[ "MIT" ]
null
null
null
""" Msg based protocol handler """ __author__ = 'VMware, Inc.' __copyright__ = 'Copyright 2015, 2017 VMware, Inc. All rights reserved. -- VMware Confidential' # pylint: disable=line-too-long from collections import deque from vmware.vapi.lib.log import get_vapi_logger from vmware.vapi.protocol.server.api_handler i...
37.576642
129
0.605089
3,933
0.763986
0
0
0
0
0
0
1,924
0.373737
0fc891bc1997dfbe1f1be5e5c5524986e39b1d74
5,345
py
Python
validation_tests/case_studies/merewether/plot_results.py
samcom12/anuga_core
f4378114dbf02d666fe6423de45798add5c42806
[ "Python-2.0", "OLDAP-2.7" ]
136
2015-05-07T05:47:43.000Z
2022-02-16T03:07:40.000Z
validation_tests/case_studies/merewether/plot_results.py
samcom12/anuga_core
f4378114dbf02d666fe6423de45798add5c42806
[ "Python-2.0", "OLDAP-2.7" ]
184
2015-05-03T09:27:54.000Z
2021-12-20T04:22:48.000Z
validation_tests/case_studies/merewether/plot_results.py
samcom12/anuga_core
f4378114dbf02d666fe6423de45798add5c42806
[ "Python-2.0", "OLDAP-2.7" ]
70
2015-03-18T07:35:22.000Z
2021-11-01T07:07:29.000Z
from anuga.utilities import plot_utils as util from matplotlib import pyplot as pyplot import numpy verbose= True swwfile = 'merewether_1m.sww' p=util.get_output(swwfile) p2=util.get_centroids(p) # Time index at last time tindex = len(p2.time)-1 if verbose: print('calculating experimental transect') x_data = ...
35.397351
113
0.674088
0
0
0
0
0
0
0
0
1,831
0.342563
0fc967fb38a574ad027030e148c321d06351ec3c
2,287
py
Python
examples/ignore_early_canceled_tests.py
adavidzh/openhtf
0f34f6c0b53d8d0c42e2da1ddde2f07534d8286c
[ "Apache-2.0" ]
1
2020-07-25T19:05:49.000Z
2020-07-25T19:05:49.000Z
examples/ignore_early_canceled_tests.py
adavidzh/openhtf
0f34f6c0b53d8d0c42e2da1ddde2f07534d8286c
[ "Apache-2.0" ]
80
2020-09-15T04:44:28.000Z
2021-03-16T19:26:25.000Z
examples/ignore_early_canceled_tests.py
adavidzh/openhtf
0f34f6c0b53d8d0c42e2da1ddde2f07534d8286c
[ "Apache-2.0" ]
2
2018-12-20T07:01:20.000Z
2020-05-18T21:13:17.000Z
# Copyright 2018 Google Inc. All Rights Reserved. # 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 agre...
35.184615
80
0.758636
416
0.181898
0
0
206
0.090074
0
0
1,335
0.583734