hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
f7824794a31c6057a3df060f3814fa22c23e3976
4,684
py
Python
third_party/a2c_ppo_acktr/baselines/results_plotter.py
googleinterns/gail-dyn
31c93b12d068dede0dbe69547f0b2e500374f260
[ "Apache-2.0" ]
30
2021-06-16T23:28:58.000Z
2022-03-23T17:20:58.000Z
third_party/a2c_ppo_acktr/baselines/results_plotter.py
googleinterns/gail-dyn
31c93b12d068dede0dbe69547f0b2e500374f260
[ "Apache-2.0" ]
1
2021-06-25T09:21:29.000Z
2021-08-11T23:14:14.000Z
third_party/a2c_ppo_acktr/baselines/results_plotter.py
googleinterns/gail-dyn
31c93b12d068dede0dbe69547f0b2e500374f260
[ "Apache-2.0" ]
8
2021-06-19T12:51:50.000Z
2021-12-23T08:31:10.000Z
# The MIT License # # Copyright (c) 2017 OpenAI (http://openai.com) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to u...
36.59375
117
0.692357
f78263018de02c8ba3b70aaf482e4f8e247123f7
33,760
py
Python
uplexa/wordlists/dutch.py
QuantumLeaper/uplexa-python
7382e1bbcf757f4852ef8238c9385ccda339147f
[ "BSD-3-Clause" ]
2
2019-09-04T17:06:02.000Z
2020-10-19T02:22:46.000Z
uplexa/wordlists/dutch.py
uPlexa/uplexa-python
e0074d7fb778a5fe150baf9a6badb3c2fc20afbb
[ "BSD-3-Clause" ]
1
2021-07-17T22:30:15.000Z
2021-07-17T22:30:15.000Z
uplexa/wordlists/dutch.py
QuantumLeaper/uplexa-python
7382e1bbcf757f4852ef8238c9385ccda339147f
[ "BSD-3-Clause" ]
1
2019-03-05T17:52:36.000Z
2019-03-05T17:52:36.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Word list originally created by dabura667 and released under The MIT License (MIT) # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to dea...
19.929162
89
0.400652
f7826703b1c717b23f7ec83d26a570bf0e0331b9
184
py
Python
testing.py
kravikanti/AlexaImaginaryFriend
d8c2391a54525d13df583f5056a3292e37ef187b
[ "Apache-2.0" ]
1
2017-02-12T19:55:16.000Z
2017-02-12T19:55:16.000Z
testing.py
kravikanti/AlexaImaginaryFriend
d8c2391a54525d13df583f5056a3292e37ef187b
[ "Apache-2.0" ]
null
null
null
testing.py
kravikanti/AlexaImaginaryFriend
d8c2391a54525d13df583f5056a3292e37ef187b
[ "Apache-2.0" ]
null
null
null
# Kavya Ravikanti # kr8nq datafile = open("tvshows.csv","r") tv_shows = [] for line in datafile: new_line = line.strip().split(",") tv_shows.append(new_line) print(tv_shows)
16.727273
38
0.673913
f78268a2a0b2b77c1e1f2efd8492047f11b7ea3b
2,903
py
Python
Q3.py
garghimanshu565/Ass4
864491f0949b0b7c09d8a8c91fb30800821def6f
[ "BSD-3-Clause" ]
null
null
null
Q3.py
garghimanshu565/Ass4
864491f0949b0b7c09d8a8c91fb30800821def6f
[ "BSD-3-Clause" ]
null
null
null
Q3.py
garghimanshu565/Ass4
864491f0949b0b7c09d8a8c91fb30800821def6f
[ "BSD-3-Clause" ]
null
null
null
import copy visited_states = [] # heuristic fn - number of misplaced blocks as compared to goal state def heuristic(curr_state,goal_state): goal_=goal_state[3] val=0 for i in range(len(curr_state)): check_val=curr_state[i] if len(check_val)>0: for j in range(len(che...
32.255556
102
0.54082
f782b1df11c8ea507ea566f87e3225a95922dafc
565
py
Python
MFAEngine/apps/users/migrations/0005_auto_20210908_1151.py
justicevR/mfa_authentication_factor_v0.1
b7302904c3eaa00801ca4d78fb47797b16427ad4
[ "MIT" ]
null
null
null
MFAEngine/apps/users/migrations/0005_auto_20210908_1151.py
justicevR/mfa_authentication_factor_v0.1
b7302904c3eaa00801ca4d78fb47797b16427ad4
[ "MIT" ]
null
null
null
MFAEngine/apps/users/migrations/0005_auto_20210908_1151.py
justicevR/mfa_authentication_factor_v0.1
b7302904c3eaa00801ca4d78fb47797b16427ad4
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-09-08 11:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0004_alter_user_password'), ] operations = [ migrations.AlterField( model_name='user', name='first_name', ...
23.541667
62
0.582301
f782fca4be0aa9fbde10050618e29d45bc281f03
10,195
py
Python
Face_Alignt/predict_m.py
LongKt7/Face_Recognize_Pytorch
baa02e633d379abe1001c8b8acb942617177329c
[ "MIT" ]
1
2019-03-13T16:05:11.000Z
2019-03-13T16:05:11.000Z
Face_Alignt/predict_m.py
LongKt7/Face_Recognize_Pytorch
baa02e633d379abe1001c8b8acb942617177329c
[ "MIT" ]
null
null
null
Face_Alignt/predict_m.py
LongKt7/Face_Recognize_Pytorch
baa02e633d379abe1001c8b8acb942617177329c
[ "MIT" ]
1
2019-03-15T09:09:08.000Z
2019-03-15T09:09:08.000Z
from network import PNet,ONet import torch,cv2,itertools from torch.autograd import Variable import torch.nn.functional as F import numpy as np import time from matlab_cp2tform import get_similarity_transform_for_cv2 import math def alignment(src_img,src_pts, crop_size = (112, 112)): ref_pts = np.array([...
37.344322
130
0.554782
f7830768faff0e151d1ec019b10a82c830fe2309
3,955
py
Python
health_stats/reports/graph/daily_carbs.py
ex-nerd/health-stats
78860fc3b7e6db91612ecc68fb634615a739c4c9
[ "MIT" ]
2
2016-04-14T18:47:14.000Z
2017-03-14T15:23:25.000Z
health_stats/reports/graph/daily_carbs.py
ex-nerd/health-stats
78860fc3b7e6db91612ecc68fb634615a739c4c9
[ "MIT" ]
null
null
null
health_stats/reports/graph/daily_carbs.py
ex-nerd/health-stats
78860fc3b7e6db91612ecc68fb634615a739c4c9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime, time, timedelta from plotly.offline import plot from plotly.graph_objs import Bar, Scatter from ..report import Report from health_stats.models.events import * from health_stats.database import DBSession from health_stats.dataset import DataSet class DailyCar...
30.898438
76
0.424526
f783395bde074f0f3d5a727fd0d2dd9cac10b809
1,615
py
Python
API/src/main/resources/Lib/robot/utils/markuputils.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/utils/markuputils.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/utils/markuputils.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
# Copyright (c) 2010-2020, sikuli.org, sikulix.com - MIT license # # 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 b...
31.057692
79
0.683591
f78362ff3ddec0c19c745cc374c1f70d28340a34
3,951
py
Python
plain_fdm/lfz_controlFDM/pid_regler.py
lauritowal/plainFDM_public
3d47352e5aad15b0c632488b048b470d0528c652
[ "MIT" ]
null
null
null
plain_fdm/lfz_controlFDM/pid_regler.py
lauritowal/plainFDM_public
3d47352e5aad15b0c632488b048b470d0528c652
[ "MIT" ]
null
null
null
plain_fdm/lfz_controlFDM/pid_regler.py
lauritowal/plainFDM_public
3d47352e5aad15b0c632488b048b470d0528c652
[ "MIT" ]
null
null
null
import numpy as np import logging from plain_fdm.servicesFDM.utils import Utils logging.basicConfig(filename='pid_regler.log', filemode='w', level=logging.DEBUG) # siehe auch Drohne-Code Unity class PidRegler(object): def __init__(self): self.utils = Utils() self.kpaElevator = 110 self...
39.51
129
0.721083
f783667c5f49bf848c44baf8dcb15bcdcc8282b7
1,520
py
Python
scripts/toolkit/chunki.py
noisychannel/joshua
cabf0a30b717ade61a3b8e2d2d65b0cb61f7cf36
[ "BSD-2-Clause" ]
null
null
null
scripts/toolkit/chunki.py
noisychannel/joshua
cabf0a30b717ade61a3b8e2d2d65b0cb61f7cf36
[ "BSD-2-Clause" ]
null
null
null
scripts/toolkit/chunki.py
noisychannel/joshua
cabf0a30b717ade61a3b8e2d2d65b0cb61f7cf36
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import os, sys, codecs import gzip def usage(): print "Usage info for chunki.py" print " chunki.py size file file ..." print "Where:" print " size - chunk size" print " file - corpus file, plain UTF8, same number of lines each" print " output - chunk_000/files" print ...
24.126984
84
0.575658
f7838b82f3f6cd3a46a036210727ebb7c1ec918d
22,976
py
Python
Skimage_numpy/source/scipy/special/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
5
2017-03-21T13:04:12.000Z
2021-07-28T12:38:02.000Z
Skimage_numpy/source/scipy/special/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
Skimage_numpy/source/scipy/special/__init__.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2020-08-12T05:31:18.000Z
2020-08-12T05:31:18.000Z
""" ======================================== Special functions (:mod:`scipy.special`) ======================================== .. module:: scipy.special Nearly all of the functions below are universal functions and follow broadcasting and automatic array-looping rules. Exceptions are noted. Error handling ==========...
35.02439
121
0.660124
f7839af47c6fcc7d7a198995b28c4801612d825a
4,841
py
Python
plots/exploration/finite_size_fluct.py
jokteur/ASMA
25ac8a0455c680232d56c18d31de62c3188b7153
[ "MIT" ]
2
2021-11-01T09:13:17.000Z
2022-03-08T14:34:16.000Z
plots/exploration/finite_size_fluct.py
jokteur/ASMA
25ac8a0455c680232d56c18d31de62c3188b7153
[ "MIT" ]
null
null
null
plots/exploration/finite_size_fluct.py
jokteur/ASMA
25ac8a0455c680232d56c18d31de62c3188b7153
[ "MIT" ]
null
null
null
import time import copy import os import numpy as np import matplotlib.pyplot as plt from matplotlib import gridspec from matplotlib.animation import FuncAnimation import matplotlib.animation as animation import flowrect from flowrect.simulations.util import calculate_age, calculate_mt, eta_SRM from flowrect.simulati...
28.64497
99
0.604627
f783ae4c3a333226e8fe9c255c16ff8038ba192e
20,602
py
Python
watcher.py
szepeviktor/Watcher
38f32f3d2b0e6d71f7285b30db386ff5bc3206e3
[ "MIT" ]
2
2016-05-01T20:58:38.000Z
2016-07-03T21:23:32.000Z
watcher.py
szepeviktor/Watcher
38f32f3d2b0e6d71f7285b30db386ff5bc3206e3
[ "MIT" ]
null
null
null
watcher.py
szepeviktor/Watcher
38f32f3d2b0e6d71f7285b30db386ff5bc3206e3
[ "MIT" ]
2
2019-08-09T20:07:32.000Z
2021-01-27T17:49:59.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import print_function, division, unicode_literals, absolute_import ##/usr/bin/env python ## ## Author: Bertrand Lacoste ## Modified from daemon.runner and from watcher (https://github.com/splitbrain/Watcher, original work https://github.com/gregghz/Watcher) #...
39.316794
190
0.600524
f783e05e80a44f6e7449ecc697331eed7e6f63ca
1,096
py
Python
var/spack/repos/builtin/packages/py-neo/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/py-neo/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-neo/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyNeo(PythonPackage): """Neo is a package for representing electrophysiology data in Pytho...
43.84
95
0.739964
f783f467823ddda817016953b4a519765a32da27
2,579
py
Python
tf2_gnn/test/layers/test_RGCN.py
ktaebum/tf2-gnn
4eb6bf367623fef28c937b632e3caa83288de206
[ "MIT" ]
381
2020-02-26T19:25:25.000Z
2022-03-25T05:35:37.000Z
tf2_gnn/test/layers/test_RGCN.py
ankitshah009/tf2-gnn
3c763274f6586fb8d4cf3d74e3e0fd03b970b43f
[ "MIT" ]
25
2020-02-26T17:32:57.000Z
2022-02-21T12:07:51.000Z
tf2_gnn/test/layers/test_RGCN.py
ankitshah009/tf2-gnn
3c763274f6586fb8d4cf3d74e3e0fd03b970b43f
[ "MIT" ]
74
2020-02-27T13:57:01.000Z
2021-12-02T14:35:10.000Z
"""Tests for the RGCN message passing layer.""" import tensorflow as tf import pytest from tf2_gnn.layers.message_passing import MessagePassingInput, RGCN shape_test_data = [ (tf.TensorShape(dims=(None, 3)), tuple(tf.TensorShape(dims=(None, 2)) for _ in range(3)), 5), (tf.TensorShape(dims=(None, 1)), tuple(t...
39.075758
98
0.745638
f783facca699c0ed159ba334701abcad7d639ba0
2,345
py
Python
setup.py
shervinazadi/compas
a3f5a0dd59247b6b6cdac3f14a45f9ff414f44b3
[ "MIT" ]
2
2021-03-17T18:14:22.000Z
2021-09-19T13:50:02.000Z
setup.py
shervinazadi/compas
a3f5a0dd59247b6b6cdac3f14a45f9ff414f44b3
[ "MIT" ]
null
null
null
setup.py
shervinazadi/compas
a3f5a0dd59247b6b6cdac3f14a45f9ff414f44b3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- # flake8: noqa from __future__ import print_function import io from os import path from setuptools import setup here = path.abspath(path.dirname(__file__)) def read(*names, **kwargs): return io.open( path.join(here, *names), encoding=kwargs.get('...
30.454545
96
0.624733
f783fe0af1edca68d8ab18ab4334c16ccba76b97
1,301
py
Python
scripts/get-openapi-schemas.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
null
null
null
scripts/get-openapi-schemas.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
null
null
null
scripts/get-openapi-schemas.py
Rohitpandit021/jina
f3db4d5e480375d8dc3bceda814ac1963dee76d7
[ "Apache-2.0" ]
null
null
null
import json from daemon import _get_app from daemon.parser import get_main_parser from jina.logging.logger import JinaLogger from jina.parsers import set_gateway_parser from jina.peapods.runtimes.asyncio.http.app import get_fastapi_app JINA_LOGO_URL = 'https://api.jina.ai/logo/logo-product/jina-core/horizontal-layou...
34.236842
145
0.760184
f78413ca2de7e8f063935296451681f4396e75f3
4,029
py
Python
experiments/ashvin/icml2020/point/offpolicy/sac_offpolicy1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/point/offpolicy/sac_offpolicy1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/point/offpolicy/sac_offpolicy1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment, process_args import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants from rlkit.torch.sac.policies im...
29.844444
91
0.556714
f7841a6ecf5d64db4f8422f1f4176e63fb5bcbdd
411
py
Python
tools/makepy_pinmapinterfaces.py
jonathanmendez/nitsm-python
c7bbe2e53d56cf987d2369336d32b8baf6ae806a
[ "MIT" ]
null
null
null
tools/makepy_pinmapinterfaces.py
jonathanmendez/nitsm-python
c7bbe2e53d56cf987d2369336d32b8baf6ae806a
[ "MIT" ]
null
null
null
tools/makepy_pinmapinterfaces.py
jonathanmendez/nitsm-python
c7bbe2e53d56cf987d2369336d32b8baf6ae806a
[ "MIT" ]
null
null
null
import sys import os.path from win32com.client import makepy output_file = os.path.join(os.path.dirname(__file__), "pinmapinterfaces.py") pmi_type_library = ( r"C:\Program Files\National Instruments\TestStand 2020\Bin" r"\NationalInstruments.TestStand.SemiconductorModule.PinMapInterfaces.tlb" ) sys.argv = ["m...
27.4
78
0.759124
f7843d7c298156dbaed98e11412987bf67bdd574
288
py
Python
tests/settings_mysql.py
dcramer/pytest_django
693aae274bcd68fd20d6f638abd58be0c21bd782
[ "BSD-3-Clause" ]
1
2015-11-06T10:47:26.000Z
2015-11-06T10:47:26.000Z
tests/settings_mysql.py
dcramer/pytest_django
693aae274bcd68fd20d6f638abd58be0c21bd782
[ "BSD-3-Clause" ]
null
null
null
tests/settings_mysql.py
dcramer/pytest_django
693aae274bcd68fd20d6f638abd58be0c21bd782
[ "BSD-3-Clause" ]
null
null
null
from settings_base import * DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'pytest_django', 'HOST': 'localhost', 'USER': 'root', 'OPTIONS': { 'init_command': 'SET storage_engine=InnoDB' } }, }
20.571429
55
0.506944
f78442d9f549a18c569dd62f7096e56c7ed50ed2
15,324
py
Python
paminco/net/tests/test_cost.py
paminco/paminco
2b8da7cc83adde3c72af5150cf6d7294ff6fd29e
[ "MIT" ]
4
2021-12-30T06:25:09.000Z
2022-01-06T17:28:57.000Z
paminco/net/tests/test_cost.py
paminco/paminco
2b8da7cc83adde3c72af5150cf6d7294ff6fd29e
[ "MIT" ]
9
2021-12-13T07:38:13.000Z
2021-12-21T16:43:15.000Z
paminco/net/tests/test_cost.py
paminco/paminco
2b8da7cc83adde3c72af5150cf6d7294ff6fd29e
[ "MIT" ]
null
null
null
import pytest import numpy as np from itertools import zip_longest from paminco.net import load_sioux from paminco.net._data_gas import temporary_gas_files from paminco.net._data_examples import (NET_SIMPLE_POLYNOMIAL, NET_ELECTRICAL_PIECEWISE) from paminco.net.network import Ne...
40.432718
166
0.543853
f784580756e0b9636abb631517cd2ca1d0e51c4e
3,331
py
Python
.leetcode/130.surrounded-regions.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/130.surrounded-regions.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/130.surrounded-regions.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=130 lang=python3 # # [130] Surrounded Regions # # https://leetcode.com/problems/surrounded-regions/description/ # # algorithms # Medium (29.92%) # Likes: 2844 # Dislikes: 795 # Total Accepted: 303.4K # Total Submissions: 1M # Testcase Example: '[["X","X","X","X"],["X","O","O","X"],["X","X",...
23.624113
96
0.47073
f7847b5609edae44046f57d41b07e6acdf9cc2c8
5,764
py
Python
tests/providers/amazon/aws/operators/test_sagemaker_training.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
1
2021-03-03T07:00:02.000Z
2021-03-03T07:00:02.000Z
tests/providers/amazon/aws/operators/test_sagemaker_training.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
36
2021-11-26T00:08:49.000Z
2021-11-26T00:09:33.000Z
tests/providers/amazon/aws/operators/test_sagemaker_training.py
kevin0120/airflow
fa263cbf0ac002bdb26239ce36d5dc2a1b6251fd
[ "Apache-2.0" ]
3
2020-06-30T02:38:17.000Z
2022-01-19T06:14:08.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
39.210884
106
0.677654
f784b6e78d6c48bbc552ec0bab9f4d483e5701c7
304
py
Python
tests/test_api.py
KarrLab/model_generator
b2735391545bcd5f21faaa1ceaa1949e53497378
[ "MIT" ]
6
2018-12-24T16:20:11.000Z
2022-01-26T23:38:25.000Z
tests/test_api.py
KarrLab/model_generator
b2735391545bcd5f21faaa1ceaa1949e53497378
[ "MIT" ]
15
2018-08-08T20:34:40.000Z
2021-10-31T20:08:40.000Z
tests/test_api.py
KarrLab/model_generator
b2735391545bcd5f21faaa1ceaa1949e53497378
[ "MIT" ]
2
2019-04-05T16:11:57.000Z
2020-04-29T14:14:30.000Z
""" Tests of the API :Author: Jonathan Karr <jonrkarr@gmail.com> :Date: 2018-04-19 :Copyright: 2018, Karr Lab :License: MIT """ import types import unittest import wc_model_gen class ApiTestCase(unittest.TestCase): def test(self): self.assertIsInstance(wc_model_gen.ModelGenerator, type)
17.882353
64
0.740132
f784bf2780048d9733a47717a858e38baa1c4644
2,604
py
Python
powerapi/test_utils/report/power.py
Zenika/powerapi
a6bcc8fefeb29dd83cc8bc1191b1c3609aa9043d
[ "BSD-3-Clause" ]
77
2019-04-08T12:55:29.000Z
2022-03-29T14:40:11.000Z
powerapi/test_utils/report/power.py
Zenika/powerapi
a6bcc8fefeb29dd83cc8bc1191b1c3609aa9043d
[ "BSD-3-Clause" ]
55
2019-03-11T14:37:41.000Z
2022-02-02T08:19:43.000Z
powerapi/test_utils/report/power.py
Zenika/powerapi
a6bcc8fefeb29dd83cc8bc1191b1c3609aa9043d
[ "BSD-3-Clause" ]
20
2019-03-11T16:10:53.000Z
2022-03-21T16:09:37.000Z
# Copyright (c) 2021, INRIA # Copyright (c) 2021, University of Lille # 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, thi...
44.135593
120
0.726575
f7851fde19ba547f60f25b50f4150d598a7dfa84
3,407
py
Python
retention_data_pipeline/dao/edw.py
peteseibel/retention-data-pipeline
9839d2b900f77722fffb762772697e422e7ec8fb
[ "Apache-2.0" ]
1
2020-12-09T17:19:47.000Z
2020-12-09T17:19:47.000Z
retention_data_pipeline/dao/edw.py
peteseibel/retention-data-pipeline
9839d2b900f77722fffb762772697e422e7ec8fb
[ "Apache-2.0" ]
null
null
null
retention_data_pipeline/dao/edw.py
peteseibel/retention-data-pipeline
9839d2b900f77722fffb762772697e422e7ec8fb
[ "Apache-2.0" ]
null
null
null
import os import pyodbc import pandas from django.conf import settings DB = "UWSDBDataStore" def get_day1_enrollments(year, quarter): """ Returns a list of student system_keys enrolled on day one and EOP status """ campus = 0 db_query = """ SELECT * FROM ( SELECT C...
23.825175
77
0.557969
f7852561a5b601682385555842b29a4c5b948996
12,530
py
Python
src/pipeline.py
khalidm/svpipeline
4bfbc6ab9f8ed73ffb54856c7cce1348259ffa14
[ "BSD-3-Clause" ]
null
null
null
src/pipeline.py
khalidm/svpipeline
4bfbc6ab9f8ed73ffb54856c7cce1348259ffa14
[ "BSD-3-Clause" ]
null
null
null
src/pipeline.py
khalidm/svpipeline
4bfbc6ab9f8ed73ffb54856c7cce1348259ffa14
[ "BSD-3-Clause" ]
null
null
null
''' Build the pipeline workflow by plumbing the stages together. ''' from ruffus import Pipeline, suffix, formatter, add_inputs, output_from from stages import Stages def make_pipeline(state): '''Build the pipeline by constructing stages and connecting them together''' # Build an empty pipeline pipeline ...
42.619048
153
0.627534
f7856015ba8135e57a2099bbfd00a5abf12adba9
15,176
py
Python
transforms/transforms.py
ozcell/pytorch-auto-drive
f1c2fd223cf7d307a3968fe671d0271b03ced39c
[ "BSD-3-Clause" ]
null
null
null
transforms/transforms.py
ozcell/pytorch-auto-drive
f1c2fd223cf7d307a3968fe671d0271b03ced39c
[ "BSD-3-Clause" ]
null
null
null
transforms/transforms.py
ozcell/pytorch-auto-drive
f1c2fd223cf7d307a3968fe671d0271b03ced39c
[ "BSD-3-Clause" ]
null
null
null
# Mostly copied and modified from torch/vision/references/segmentation to support unlabeled data # Copied functions from fmassa/vision-1 to support multi-dimensional masks loaded from numpy ndarray # Update: The current torchvision github repo now supports tensor operation for all common transformations, # you are enco...
36.834951
120
0.594228
f78568409c53133b8b31e0f98bebaccab3ed2fc0
9,036
py
Python
scapy/scapy/base_classes.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
scapy/scapy/base_classes.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
scapy/scapy/base_classes.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
# This file is part of Scapy # See http://www.secdev.org/projects/scapy for more informations # Copyright (C) Philippe Biondi <phil@secdev.org> # This program is published under a GPLv2 license """ Generators and packet meta classes. """ ################ # Generators # ################ from __future__ import absol...
30.527027
225
0.513834
f7859bcb7d344b1ddf3b105af974780ed5a8e280
18,459
py
Python
fastapi_mailman/message.py
daniel-herrero/fastapi-mailman
a174d0ec777d3330dc5464f71fafa7829db07bf1
[ "MIT" ]
6
2021-10-08T10:20:37.000Z
2022-03-30T08:56:10.000Z
fastapi_mailman/message.py
daniel-herrero/fastapi-mailman
a174d0ec777d3330dc5464f71fafa7829db07bf1
[ "MIT" ]
2
2021-11-11T11:44:29.000Z
2022-03-08T06:54:54.000Z
fastapi_mailman/message.py
daniel-herrero/fastapi-mailman
a174d0ec777d3330dc5464f71fafa7829db07bf1
[ "MIT" ]
1
2022-03-04T14:43:22.000Z
2022-03-04T14:43:22.000Z
import mimetypes import typing as t from email import charset as Charset from email import encoders as Encoders from email import generator, message_from_string from email.errors import HeaderParseError from email.header import Header from email.headerregistry import Address, parser from email.message import Message fr...
38.536534
119
0.630045
f7859cf34d853954b90e3aae5487a8a2840ebb4c
2,257
py
Python
backend/user/models.py
suzanpradhan/slicedtv
0d78dae366cd50647d5c40ec921e97a7a03047b2
[ "BSD-3-Clause" ]
1
2020-11-22T11:10:31.000Z
2020-11-22T11:10:31.000Z
backend/user/models.py
suzanpradhan/slicedtv
0d78dae366cd50647d5c40ec921e97a7a03047b2
[ "BSD-3-Clause" ]
1
2020-12-08T05:25:54.000Z
2020-12-08T05:42:40.000Z
backend/user/models.py
suzanpradhan/slicedtv
0d78dae366cd50647d5c40ec921e97a7a03047b2
[ "BSD-3-Clause" ]
null
null
null
# External Import from django.db import models from django.contrib.auth.models import ( AbstractBaseUser, BaseUserManager, PermissionsMixin, ) from rest_framework_simplejwt.tokens import RefreshToken # Internal Import from subscription.models import Subscription class UserManager(BaseUserManager): ""...
30.917808
71
0.676562
f785ad11c049165f643f8caad12af890c53dad78
880
py
Python
goods/migrations/0020_stoptrainaction.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
3
2018-10-16T09:36:12.000Z
2019-04-15T03:12:49.000Z
goods/migrations/0020_stoptrainaction.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
null
null
null
goods/migrations/0020_stoptrainaction.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-12-14 13:07 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('goods', '0019_auto_20171214_1158'), ] operations =...
33.846154
156
0.640909
f785ae985a3f86d86f63e73c5d864e6c9eccb633
5,030
py
Python
ContrastivePruning/StructuredPruning/squad.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
1
2022-03-01T02:30:32.000Z
2022-03-01T02:30:32.000Z
ContrastivePruning/StructuredPruning/squad.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
null
null
null
ContrastivePruning/StructuredPruning/squad.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace Datasets Authors. # # 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/LI...
36.449275
118
0.565408
f785c32a03d571ec5677f45e67d9c0b3c805364e
42,758
py
Python
pvoutput/pvoutput.py
vnshanmukh/pvoutput
9773c60445b38b7b67f8d5e10316379f47090549
[ "Apache-2.0" ]
22
2019-08-14T15:54:38.000Z
2022-03-22T17:34:05.000Z
pvoutput/pvoutput.py
vnshanmukh/pvoutput
9773c60445b38b7b67f8d5e10316379f47090549
[ "Apache-2.0" ]
81
2019-08-09T08:09:13.000Z
2022-03-28T17:30:44.000Z
pvoutput/pvoutput.py
vnshanmukh/pvoutput
9773c60445b38b7b67f8d5e10316379f47090549
[ "Apache-2.0" ]
14
2019-09-08T04:54:52.000Z
2021-12-06T14:34:28.000Z
import logging import os import time import warnings from datetime import date, datetime, timedelta from io import StringIO from typing import Dict, Iterable, List, Optional, Union from urllib.parse import urljoin import numpy as np import pandas as pd import requests import tables from pvoutput.consts import ( B...
36.924007
100
0.578839
f785c8948443eebda20594b60c4a31461958e480
9,033
py
Python
openai/openai_object.py
borisdayma/openai-python
a7e259c66f734d0400527320bbb2a0e9e9f7cf5f
[ "MIT" ]
1
2022-02-25T18:33:46.000Z
2022-02-25T18:33:46.000Z
openai/openai_object.py
yancong222/openai-python
54852345065612bebfe26ad3d02cff1794abcafc
[ "MIT" ]
null
null
null
openai/openai_object.py
yancong222/openai-python
54852345065612bebfe26ad3d02cff1794abcafc
[ "MIT" ]
null
null
null
import json from copy import deepcopy from typing import Optional import openai from openai import api_requestor, util from openai.openai_response import OpenAIResponse from openai.util import ApiType class OpenAIObject(dict): api_base_override = None def __init__( self, id=None, api...
31.041237
102
0.576995
f785dae31bc9b6442b863e13fa8c249d4cb90184
2,941
py
Python
qualcoder/save_sql_query.py
ilippert/QualCoder
cb3ec9bcd347adaba5d81fef5d83f40c6a338c64
[ "MIT" ]
150
2019-02-08T17:18:43.000Z
2022-03-29T21:48:18.000Z
qualcoder/save_sql_query.py
ilippert/QualCoder
cb3ec9bcd347adaba5d81fef5d83f40c6a338c64
[ "MIT" ]
568
2019-02-08T17:20:51.000Z
2022-03-31T21:45:17.000Z
qualcoder/save_sql_query.py
ilippert/QualCoder
cb3ec9bcd347adaba5d81fef5d83f40c6a338c64
[ "MIT" ]
41
2019-02-11T13:22:09.000Z
2022-03-20T13:14:25.000Z
# -*- coding: utf-8 -*- """ Copyright (c) 2021 Colin Curtain Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, mer...
34.6
107
0.707922
f785f984d1f1265e01a6323548498adb7a9124b8
2,296
py
Python
alipay/aop/api/domain/ApplyCodeRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/ApplyCodeRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/ApplyCodeRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class ApplyCodeRequest(object): def __init__(self): self._biz_code = None self._biz_id = None self._context_data = None self._logo_url = None @property def biz_...
26.697674
75
0.570557
f7863319e416beb7a137100d9e040ed457bc953e
26,645
py
Python
sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_origin_groups_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_origin_groups_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/aio/operations/_origin_groups_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
47.159292
227
0.675474
f78652dacb37ccc1e0b5cd748255a5b9ad7dff13
1,313
py
Python
v1.0/dc/utils/mail.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
v1.0/dc/utils/mail.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
null
null
null
v1.0/dc/utils/mail.py
iaiting/Flask-and-pywebview-followup-application-gui
b665334403b4a8471b5f28054ee2dc7adda7d9fc
[ "MIT" ]
1
2019-12-25T11:57:45.000Z
2019-12-25T11:57:45.000Z
import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText class Mail: """Sending an email with smtp library""" def __init__(self, smtpaddr, smtpport): self.smtpaddr = smtpaddr self.smtpport = smtpport def check_mail_inputs(self, ...
32.02439
80
0.592536
f786729b7a6d7ca35b01e9e668e2f88596354efc
8,230
py
Python
third_party/pex/pex/package.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
63
2017-08-31T10:02:52.000Z
2021-12-18T21:42:14.000Z
third_party/pex/pex/package.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
284
2017-10-20T15:35:26.000Z
2020-09-11T15:25:40.000Z
third_party/pex/pex/package.py
pulasthi/twister2
40b73bdf7dcb778d957c3f146baf825a97dceae5
[ "Apache-2.0" ]
44
2017-08-21T19:47:57.000Z
2020-11-22T22:45:50.000Z
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os from pkg_resources import EGG_NAME, parse_version, safe_name, safe_version from .archiver import Archiver from .base import maybe_requirement from .interpreter import PythonInt...
32.788845
100
0.709599
f78678cbfe2c14a89acb67524318b8f314ebf7a2
1,011
py
Python
utils/data_cleaner.py
rayding24/First-Principles-Transformers
075b87e5dad81f66e081afb45dd3a4c3b7926bfe
[ "MIT" ]
null
null
null
utils/data_cleaner.py
rayding24/First-Principles-Transformers
075b87e5dad81f66e081afb45dd3a4c3b7926bfe
[ "MIT" ]
null
null
null
utils/data_cleaner.py
rayding24/First-Principles-Transformers
075b87e5dad81f66e081afb45dd3a4c3b7926bfe
[ "MIT" ]
null
null
null
import re def basic_cleaning(input_path='data/haiku.txt', output_path='data/haiku_cleaned.txt', threshold=50): ''' Ignore lines that exceeds threshold length for poem, and lines starting with non alphabet ''' with open(input_path, 'r') as fsrc: with open(output_path, 'w') as fdest: ...
31.59375
139
0.588526
f7867df86481e90967eaa79b0371d14b2a350c2d
1,683
py
Python
python/hashtable/hashtable/hash_table.py
RoaaMustafa/data-structures-and-algorithms
3a756dd5b3feae338eaac28e9229bc37ad6013e2
[ "MIT" ]
null
null
null
python/hashtable/hashtable/hash_table.py
RoaaMustafa/data-structures-and-algorithms
3a756dd5b3feae338eaac28e9229bc37ad6013e2
[ "MIT" ]
2
2021-08-06T13:44:01.000Z
2021-08-07T10:18:07.000Z
python/hashtable/hashtable/hash_table.py
RoaaMustafa/data-structures-and-algorithms
3a756dd5b3feae338eaac28e9229bc37ad6013e2
[ "MIT" ]
1
2021-12-06T22:12:31.000Z
2021-12-06T22:12:31.000Z
from hashtable.linked_list import * class HashTable : def __init__(self, size = 1024): self.size = size self._buckets = [None] *self.size def hash(self,key:str)->int: ''' hash will hashed the key means convert the key string into a value of int parameters: key: a string Argumen...
20.777778
84
0.597742
f7868e347ec3223f0f47c634254d46912d6018df
3,836
py
Python
patient_similarity/patient.py
foundation29org/patient-similarity
35133517048b8f2c536a884f8052b81c0bcbaddd
[ "MIT" ]
13
2015-03-13T21:32:54.000Z
2020-10-27T12:50:19.000Z
patient_similarity/patient.py
foundation29org/patient-similarity
35133517048b8f2c536a884f8052b81c0bcbaddd
[ "MIT" ]
2
2015-03-12T17:37:07.000Z
2019-11-14T14:19:47.000Z
patient_similarity/patient.py
foundation29org/patient-similarity
35133517048b8f2c536a884f8052b81c0bcbaddd
[ "MIT" ]
11
2015-01-27T21:36:54.000Z
2021-05-29T08:30:16.000Z
#!/usr/bin/env python3 """ Representation of a patient, with phenotypes described with HPO terms. """ __author__ = 'Orion Buske (buske@cs.toronto.edu)' import json import logging import csv logger = logging.getLogger(__name__) class Patient: def __init__(self, id, hp_terms, neg_hp_terms=None, onset=None, diagn...
31.442623
106
0.547185
f786d43b6f30aa88ff7bec642671bfb7636c83fa
1,785
py
Python
pkgcore/scripts/pclonecache.py
pombreda/pkgcore
b438fc573af1a031d7ce12adbbf299bab5338451
[ "BSD-3-Clause" ]
1
2021-07-05T13:10:18.000Z
2021-07-05T13:10:18.000Z
pkgcore/scripts/pclonecache.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
8
2015-03-24T14:21:44.000Z
2015-03-24T14:21:44.000Z
pkgcore/scripts/pclonecache.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
null
null
null
# Copyright: 2005-2011 Brian Harring <ferringb@gmail.com # Copyright: 2006 Marien Zwart <marienz@gentoo.org> # License: BSD/GPL2 """pkgcore repository cache clone utility""" __all__ = ("argparser", "main") import time from pkgcore.util import commandline argparser = commandline.mk_argparser( domain=False, desc...
28.790323
74
0.627451
f786dd111d7e5ce7b1862a401c0bed2d8158e06c
16,922
py
Python
clients/client/python/ory_client/configuration.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
clients/client/python/ory_client/configuration.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
clients/client/python/ory_client/configuration.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
""" Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 The version of the OpenAPI document: v0.0.1-alpha.71 Contact: support@ory.sh Generated by: htt...
36.627706
194
0.618012
f786eb0e934f794daf478b49a14a982640cd9f23
606
py
Python
utils/metrics.py
yongpi-scu/TPRNet
bc97169ebe4d123a64da6b0fdc787ecb89c7372f
[ "MIT" ]
2
2021-12-29T05:09:50.000Z
2022-03-09T12:29:21.000Z
utils/metrics.py
yongpi-scu/TPRNet
bc97169ebe4d123a64da6b0fdc787ecb89c7372f
[ "MIT" ]
null
null
null
utils/metrics.py
yongpi-scu/TPRNet
bc97169ebe4d123a64da6b0fdc787ecb89c7372f
[ "MIT" ]
null
null
null
import numpy as np def get_confusion_matrix(output,target): confusion_matrix = np.zeros((output[0].shape[0],output[0].shape[0])) for i in range(len(output)): true_idx = target[i] pred_idx = np.argmax(output[i]) confusion_matrix[true_idx][pred_idx] += 1.0 return confusion_matri...
35.647059
73
0.653465
f78710a3f317f229f587bbe6b16a968f0408fd22
4,547
py
Python
cotk/_utils/imports.py
ishine/cotk
2242c16523830254b0ac509f7739b4cbcb03dea4
[ "Apache-2.0" ]
117
2019-03-14T15:06:42.000Z
2022-02-28T07:06:34.000Z
cotk/_utils/imports.py
ishine/cotk
2242c16523830254b0ac509f7739b4cbcb03dea4
[ "Apache-2.0" ]
149
2019-03-12T09:43:21.000Z
2020-08-24T02:56:34.000Z
cotk/_utils/imports.py
ishine/cotk
2242c16523830254b0ac509f7739b4cbcb03dea4
[ "Apache-2.0" ]
51
2019-03-14T15:12:48.000Z
2021-08-09T03:37:48.000Z
r""" ``cotk._utils.imports`` provides classes that fake a uninstalled module. """ import importlib import sys class LazyModule(object): r'''Lazy loading modules. Arguments: module_name (str): The path of import. For example: ``cotk``. global_dict (str): Override the global dictionary when the module is loaded. ...
25.835227
81
0.696503
f787173beac90033095ffd76a2e7198ca1713e16
55,631
py
Python
tests/ast/uppaal_c_language_test_data.py
S-Lehmann/uppyyl-simulator
1166432cd766165df2cab9f13c1285624d7c01c1
[ "MIT" ]
2
2020-09-09T15:42:23.000Z
2020-11-04T17:50:57.000Z
tests/ast/uppaal_c_language_test_data.py
S-Lehmann/uppyyl-simulator
1166432cd766165df2cab9f13c1285624d7c01c1
[ "MIT" ]
null
null
null
tests/ast/uppaal_c_language_test_data.py
S-Lehmann/uppyyl-simulator
1166432cd766165df2cab9f13c1285624d7c01c1
[ "MIT" ]
null
null
null
from uppyyl_simulator.backend.data_structures.state.variable import UppaalVariable from uppyyl_simulator.backend.data_structures.types.bool import UppaalBool from uppyyl_simulator.backend.data_structures.types.int import UppaalInt all_c_language_rules = [ # "Declarations", "Declaration", "VariableDecls", "Var...
32.878842
106
0.364509
f78750377aef0c714ecf6e813fefeda1c3907a7a
5,910
py
Python
tests/test_instrumentation/test_metrics/test_structures.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
12
2019-12-13T10:17:38.000Z
2022-01-05T09:01:36.000Z
tests/test_instrumentation/test_metrics/test_structures.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
26
2016-04-01T11:55:26.000Z
2021-12-30T17:03:59.000Z
tests/test_instrumentation/test_metrics/test_structures.py
piotrmaslanka/satella
bf4ba7a21ad2ac93a366442a2b4574dc5568b87e
[ "MIT" ]
1
2021-05-31T08:45:22.000Z
2021-05-31T08:45:22.000Z
import unittest from satella.coding.sequences import n_th from satella.instrumentation.metrics import getMetric import time from satella.instrumentation.metrics.structures import MetrifiedThreadPoolExecutor, \ MetrifiedCacheDict, MetrifiedLRUCacheDict, MetrifiedExclusiveWritebackCache from .test_metrics import ch...
41.328671
93
0.601523
f78762b754a3745001b9eac0653c27e9b427e31c
9,582
py
Python
planet/vendor/html5lib/treebuilders/etree.py
xaviershay/reader
7c713c90ff546032e4723a232a32107ebae88278
[ "CNRI-Python-GPL-Compatible" ]
1
2016-05-09T10:18:18.000Z
2016-05-09T10:18:18.000Z
planet/vendor/html5lib/treebuilders/etree.py
xaviershay/reader
7c713c90ff546032e4723a232a32107ebae88278
[ "CNRI-Python-GPL-Compatible" ]
4
2015-09-04T06:26:22.000Z
2021-09-04T12:33:32.000Z
planet/vendor/html5lib/treebuilders/etree.py
xaviershay/reader
7c713c90ff546032e4723a232a32107ebae88278
[ "CNRI-Python-GPL-Compatible" ]
3
2015-09-04T05:44:12.000Z
2018-05-11T13:06:03.000Z
import _base import new moduleCache = {} def getETreeModule(ElementTreeImplementation, fullTree=False): name = "_" + ElementTreeImplementation.__name__+"builder" if name in moduleCache: return moduleCache[name] else: mod = new.module("_" + ElementTreeImplementation.__name__+"builder") ...
35.88764
84
0.527134
f78831d624addc37fc9159246f173bc172246666
4,809
py
Python
asposewordscloud/models/requests/copy_file_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
asposewordscloud/models/requests/copy_file_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
asposewordscloud/models/requests/copy_file_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="copy_file_request.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy # of...
42.557522
113
0.644417
f788a86da604f3d61c97d67dd90905a8972a5e99
184
py
Python
researchmap/enums.py
RTa-technology/researchmap.py
6aa427e1564644b20ba2001dfecf63457ef40463
[ "MIT" ]
null
null
null
researchmap/enums.py
RTa-technology/researchmap.py
6aa427e1564644b20ba2001dfecf63457ef40463
[ "MIT" ]
null
null
null
researchmap/enums.py
RTa-technology/researchmap.py
6aa427e1564644b20ba2001dfecf63457ef40463
[ "MIT" ]
null
null
null
from enum import Enum __all__ = [ 'SourceLang', 'TargetLang', 'SplitSentences', 'PreserveFormatting', 'Formality' ] class GetFormatted(Enum): json = 'json' csv = 'csv'
13.142857
25
0.657609
f788a9f388d60ae93bc95852006fd03357fb69a0
4,796
py
Python
simplemodel/record.py
martez81/SimpleModel
44637c903ea130a7d05754d34eb5c0e49f6ee7b6
[ "BSD-3-Clause" ]
1
2017-05-26T09:03:31.000Z
2017-05-26T09:03:31.000Z
simplemodel/record.py
martez81/SimpleModel
44637c903ea130a7d05754d34eb5c0e49f6ee7b6
[ "BSD-3-Clause" ]
null
null
null
simplemodel/record.py
martez81/SimpleModel
44637c903ea130a7d05754d34eb5c0e49f6ee7b6
[ "BSD-3-Clause" ]
null
null
null
""" SimpleModel record.py TODO: - improve type checking and validation in _validateData """ import sys class Record(object): def __init__(self, simplemodel): self.__dict__['_simplemodel'] = simplemodel self.__dict__['_properties'] = {} self.__dict__['_excludeColumns'] = [] def __setattr__(self, name, ...
25.784946
124
0.668891
f788f5c170a70422224a2a4043c0e3e8703d4cc9
358
py
Python
opytimark/utils/constants.py
gugarosa/opytimark
cad25623f23ce4b509d59381cf7bd79e41a966b6
[ "Apache-2.0" ]
3
2020-06-11T22:58:26.000Z
2021-03-15T20:12:29.000Z
opytimark/utils/constants.py
gugarosa/opytimark
cad25623f23ce4b509d59381cf7bd79e41a966b6
[ "Apache-2.0" ]
1
2020-08-13T12:10:35.000Z
2020-08-17T14:30:45.000Z
opytimark/utils/constants.py
gugarosa/opytimark
cad25623f23ce4b509d59381cf7bd79e41a966b6
[ "Apache-2.0" ]
null
null
null
"""Constants. """ import sys # Defines where data should be downloaded and loaded DATA_FOLDER = 'data/' # A constant value used to avoid division by zero, zero logarithms # and any possible mathematical error EPSILON = 1e-32 # When the agents are initialized, their fitness is defined as # the maximum float value po...
22.375
66
0.765363
f78923a906efa54da7bcdaaa60be5e1433b0bae2
560
py
Python
regbot/scripts/delete_channel_messages.py
adampiskorski/pyconza-regbot
3f8af083b1119795856c1790341455cae5cc1fd1
[ "MIT" ]
2
2021-11-04T09:46:32.000Z
2021-11-04T10:52:18.000Z
regbot/scripts/delete_channel_messages.py
adampiskorski/pyconza-regbot
3f8af083b1119795856c1790341455cae5cc1fd1
[ "MIT" ]
null
null
null
regbot/scripts/delete_channel_messages.py
adampiskorski/pyconza-regbot
3f8af083b1119795856c1790341455cae5cc1fd1
[ "MIT" ]
null
null
null
"""Delete all unpinned posts""" from discord import Client import os client = Client() TOKEN = os.getenv("DISCORD_TOKEN") CHANNEL_IDS = [ 764408838626607115, ] @client.event async def on_ready(): print(f"logged in as {client.user}") for channel_id in CHANNEL_IDS: channel = client.get_channel(chan...
22.4
56
0.683929
f7893078f504a9a439e852b12c7dc6cda5a7d17e
484
py
Python
tests/models/test_sir.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
3
2020-05-10T23:52:41.000Z
2021-08-31T14:38:24.000Z
tests/models/test_sir.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
1
2020-09-27T03:26:51.000Z
2022-03-30T12:18:08.000Z
tests/models/test_sir.py
PyDemic/pydemic
7e748e4bbe5c1f7fb209271af0ff8afb8fbd4fd5
[ "MIT" ]
1
2020-10-01T04:07:39.000Z
2020-10-01T04:07:39.000Z
import numpy as np from pydemic.diseases import covid19 from pydemic.models import eSIR class TestSIR: def test_basic_esir_api(self): m = eSIR(disease=covid19) m.run(30) res = m["I"] ok = m.data.loc[m.times[0], "infectious"] * np.exp(m.K * m.times) assert m.R0 == 2.74 ...
26.888889
73
0.572314
f78935a50c92e01b918f37461ed00514022ec7f0
771
py
Python
examples/lecture14e.py
SeattleCentral/ITC110
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
12
2017-01-05T03:43:10.000Z
2019-01-18T03:39:09.000Z
examples/lecture14e.py
ogarmela/ITC110-1
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
null
null
null
examples/lecture14e.py
ogarmela/ITC110-1
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
2
2019-02-28T05:13:40.000Z
2019-11-09T05:06:35.000Z
from tkinter.filedialog import askopenfilename def main(): sum = 0.0 count = 0 filename = askopenfilename() file = open(filename, 'r') # Read header line file.readline() # for line in file.readlines(): # temp = float(line) # sum += temp # count += 1 line = ...
20.289474
53
0.516213
f789540ff4494b77f454431434759483e2f7f8dc
14,423
py
Python
cardpay/model/scheduled_by_merchant_data.py
cardpay/python-sdk-v3
35e7c42ca3e9a1ea6222fe2150f92ede64c70248
[ "MIT" ]
6
2019-07-16T06:27:25.000Z
2021-03-04T14:24:05.000Z
cardpay/model/scheduled_by_merchant_data.py
cardpay/python-sdk-v3
35e7c42ca3e9a1ea6222fe2150f92ede64c70248
[ "MIT" ]
5
2019-11-18T09:07:51.000Z
2021-02-12T13:59:55.000Z
cardpay/model/scheduled_by_merchant_data.py
cardpay/python-sdk-v3
35e7c42ca3e9a1ea6222fe2150f92ede64c70248
[ "MIT" ]
5
2019-07-18T13:42:15.000Z
2021-11-18T12:40:32.000Z
# coding: utf-8 """ CardPay REST API Welcome to the CardPay REST API. The CardPay API uses HTTP verbs and a [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) resources endpoint structure (see more info about REST). Request and response payloads are formatted as JSON. Merchant uses API to c...
35.178049
546
0.615545
f78957aa5c6f00dbd5cee445d874e557e984cdc3
867
py
Python
submit_with_requests.py
protabit/protherm-conversion
30e8f973309e7769f5a7fba9025f04ce3c7670b7
[ "MIT" ]
10
2019-01-17T18:15:08.000Z
2022-01-10T12:44:24.000Z
submit_with_requests.py
protabit/protherm-conversion
30e8f973309e7769f5a7fba9025f04ce3c7670b7
[ "MIT" ]
2
2019-01-17T18:14:59.000Z
2021-06-01T22:23:45.000Z
submit_with_requests.py
protabit/protherm-conversion
30e8f973309e7769f5a7fba9025f04ce3c7670b7
[ "MIT" ]
1
2020-12-14T01:57:53.000Z
2020-12-14T01:57:53.000Z
import requests import sys import json import time HOST="https://www.protabank.org/" USERNAME=sys.argv[1] PASSWORD=sys.argv[2] r = requests.post(HOST + 'subscriber/api/obtain-token/', data={'username':USERNAME, 'password':PASSWORD}) token = r.json()['token'] headers = {'Authorization': 'Token {}'.format(token), 'conten...
34.68
105
0.681661
f7895bfab16ba8e36cf461189a786c42783d57c5
1,363
py
Python
modules/gcp_gke/gcp_gke.py
run-x/opta
64606498334f2b1aa79f5a431465eafdf5ca5ed7
[ "Apache-2.0" ]
595
2021-05-21T22:30:48.000Z
2022-03-31T15:40:25.000Z
modules/gcp_gke/gcp_gke.py
run-x/opta
64606498334f2b1aa79f5a431465eafdf5ca5ed7
[ "Apache-2.0" ]
463
2021-05-24T21:32:59.000Z
2022-03-31T17:12:33.000Z
modules/gcp_gke/gcp_gke.py
run-x/opta
64606498334f2b1aa79f5a431465eafdf5ca5ed7
[ "Apache-2.0" ]
29
2021-05-21T22:27:52.000Z
2022-03-28T16:43:45.000Z
from typing import TYPE_CHECKING from modules.base import ModuleProcessor from opta.core.gcp import GCP from opta.exceptions import UserErrors if TYPE_CHECKING: from opta.layer import Layer from opta.module import Module class GcpGkeProcessor(ModuleProcessor): def __init__(self, module: "Module", layer:...
36.837838
85
0.645635
f789a5207836a2071a4d78d08bb82802e47aed50
31,064
py
Python
spark/tests/test_spark.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2020-08-08T02:01:01.000Z
2020-08-08T02:01:01.000Z
spark/tests/test_spark.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:50:17.000Z
2018-08-15T05:50:17.000Z
spark/tests/test_spark.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2019-03-06T14:30:52.000Z
2019-03-06T14:30:52.000Z
# (C) Datadog, Inc. 2010-2017 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) # stdlib import os from urlparse import urlparse, parse_qsl from urllib import unquote_plus from urlparse import urljoin import json import BaseHTTPServer import threading import ssl import time import requests i...
34.362832
115
0.657964
f789b9362ecad350506d5ab740c25f5aecfa2237
4,089
py
Python
src/samples/unicode_io.py
RegionStormer/3dsMax-Python-HowTos
b86ef45ef4d8dff373bd1cbfe5c4d5b805687339
[ "MIT" ]
88
2020-03-19T20:24:08.000Z
2022-03-23T23:13:54.000Z
src/samples/unicode_io.py
RegionStormer/3dsMax-Python-HowTos
b86ef45ef4d8dff373bd1cbfe5c4d5b805687339
[ "MIT" ]
5
2020-04-09T19:56:47.000Z
2021-11-12T20:02:18.000Z
src/samples/unicode_io.py
RegionStormer/3dsMax-Python-HowTos
b86ef45ef4d8dff373bd1cbfe5c4d5b805687339
[ "MIT" ]
22
2020-03-19T19:24:36.000Z
2022-03-18T21:55:19.000Z
""" Demonstrate file io using unicode paths and unicode content. """ import tempfile import os import codecs import shutil # Strings for the file content TEXT_STR = 'Text String: Hello!\n' UNI_TEXT_STR = u'Unicode String: 女時代' # Get the current working folder CURRENT_DIR = os.getcwd() # Create Unicode directory ...
29.207143
76
0.625581
f78a1a4e051b440f5eae920dcb8d29dad1925872
388
py
Python
AIClient_Python/src/event/StartGameEvent.py
CSGames-Archive/AI-2015
dcb49b93de4d2bdfb5600ae6be47ce513cc65c47
[ "MIT" ]
1
2015-12-18T01:56:34.000Z
2015-12-18T01:56:34.000Z
AIClient_Python/src/event/StartGameEvent.py
CSGames-Archive/AI-2015
dcb49b93de4d2bdfb5600ae6be47ce513cc65c47
[ "MIT" ]
null
null
null
AIClient_Python/src/event/StartGameEvent.py
CSGames-Archive/AI-2015
dcb49b93de4d2bdfb5600ae6be47ce513cc65c47
[ "MIT" ]
1
2019-04-16T00:28:02.000Z
2019-04-16T00:28:02.000Z
''' Created on Dec 20, 2014 @author: scarriere ''' from event.IngoingEvent import IngoingEvent from aiclient.Singleton import Singleton from world.World import World class StartGameEvent(IngoingEvent): def __init__(self): pass def fillArguments(self, string): pass def execut...
19.4
43
0.67268
f78a2238acac1b7d88dadc7206ec23affda0544b
1,744
py
Python
iconrpcserver/utils/__init__.py
icon-project/icon-rpc-server
ece07a48cfe987c35a583c81ee5e063c75c90a89
[ "Apache-2.0" ]
15
2018-08-24T06:00:09.000Z
2021-07-16T22:12:58.000Z
iconrpcserver/utils/__init__.py
icon-project/icon-rpc-server
ece07a48cfe987c35a583c81ee5e063c75c90a89
[ "Apache-2.0" ]
28
2018-10-16T04:46:00.000Z
2021-12-15T03:36:31.000Z
iconrpcserver/utils/__init__.py
icon-project/icon-rpc-server
ece07a48cfe987c35a583c81ee5e063c75c90a89
[ "Apache-2.0" ]
22
2018-09-10T05:45:56.000Z
2022-02-10T03:28:26.000Z
# Copyright 2018 ICON Foundation # # 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 writi...
26.830769
74
0.679472
f78a25760548a91fe76f836f1f34929688387d03
2,050
py
Python
.leetcode/713.subarray-product-less-than-k.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/713.subarray-product-less-than-k.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/713.subarray-product-less-than-k.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=713 lang=python3 # # [713] Subarray Product Less Than K # # https://leetcode.com/problems/subarray-product-less-than-k/description/ # # algorithms # Medium (41.34%) # Likes: 2990 # Dislikes: 106 # Total Accepted: 125.1K # Total Submissions: 298.2K # Testcase Example: '[10,5,2,6]\n100' # # G...
19.158879
79
0.566341
f78a32bda7d409ada8cd5dc5c53d324febe6a5b1
3,549
py
Python
mymodels/parent_models.py
lauromoraes/promoter_paper
62aea776cb318a13e142f84dd84bb0a29fb0e83f
[ "Apache-2.0" ]
null
null
null
mymodels/parent_models.py
lauromoraes/promoter_paper
62aea776cb318a13e142f84dd84bb0a29fb0e83f
[ "Apache-2.0" ]
9
2020-08-12T18:08:46.000Z
2022-03-12T00:46:11.000Z
mymodels/parent_models.py
lauromoraes/promoter_paper
62aea776cb318a13e142f84dd84bb0a29fb0e83f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- encoding: utf-8 -*- """ @ide: PyCharm @author: Lauro Ângelo Gonçalves de Moraes @contact: lauromoraes@ufop.edu.br @created: 20/06/2020 """ import tensorflow as tf from tensorflow.keras import models from tensorflow.keras.layers import ( Input, Embedding, Conv2D, Conv1D, MaxP...
29.823529
120
0.645252
f78a3d948c45c422d56db5992a7e07e68b9b8294
4,016
py
Python
alipay/aop/api/request/AntMerchantExpandIndirectBindConsultRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AntMerchantExpandIndirectBindConsultRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AntMerchantExpandIndirectBindConsultRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AntMerchantExpandIndirectBindConsultModel import AntMerchantExpandIndirectBindConsultModel class AntMerchantExpandIndirectBindConsul...
27.696552
148
0.648406
f78a4c2125510613a79729752f1c758c8ec4881b
11,776
py
Python
benchml/models/mod_basic.py
rudolfspetrovs/benchml
896673f387a6bb9b185664ddd54f569a1ba54e51
[ "Apache-2.0" ]
3
2021-08-12T13:25:31.000Z
2022-03-21T21:30:22.000Z
benchml/models/mod_basic.py
rudolfspetrovs/benchml
896673f387a6bb9b185664ddd54f569a1ba54e51
[ "Apache-2.0" ]
5
2020-12-08T08:59:41.000Z
2022-01-22T06:46:09.000Z
benchml/models/mod_basic.py
rudolfspetrovs/benchml
896673f387a6bb9b185664ddd54f569a1ba54e51
[ "Apache-2.0" ]
1
2021-06-25T11:07:32.000Z
2021-06-25T11:07:32.000Z
import numpy as np import benchml.transforms as btf from benchml.hyper import BayesianHyper, GridHyper, Hyper from benchml.models.mod_dscribe import compile_dscribe, compile_dscribe_periodic def compile_null(**kwargs): return [] def compile_physchem(custom_fields=None, with_hyper=False, **kwargs): if custo...
35.46988
100
0.426206
f78a5743d96bd574796a320d72d1265e9d0dabdf
695
py
Python
test/test_data.py
rocky/xpython
ce4ed4329cee2af0aab94254276f5a5687dd25f9
[ "MIT" ]
1
2020-04-28T13:18:13.000Z
2020-04-28T13:18:13.000Z
test/test_data.py
rocky/xbyterun
fde8f8a31ffd3e3c4545d76b4b1edf4b7e0191d9
[ "MIT" ]
null
null
null
test/test_data.py
rocky/xbyterun
fde8f8a31ffd3e3c4545d76b4b1edf4b7e0191d9
[ "MIT" ]
null
null
null
"""Things involving data, variables, and typesin x-python.""" try: import vmtest except ImportError: from . import vmtest from xdis.version_info import PYTHON_VERSION_TRIPLE class TestData(vmtest.VmTestCase): def test_constant(self): self.do_one() def test_attributes(self): self.sel...
23.166667
61
0.628777
f78a78ac05ca9ec01dbc51d0059a4cc4dad60e44
13,965
py
Python
morphomatics_med/manifold/Bezierfold.py
MATHplus-Young-Academy/P3-Morph-Scoring
0e2ba66cf28e30525b22706cc50d23b9de09a58a
[ "Apache-2.0" ]
1
2022-03-16T20:15:16.000Z
2022-03-16T20:15:16.000Z
morphomatics_med/manifold/Bezierfold.py
MATHplus-Young-Academy/P3-Morph-Scoring
0e2ba66cf28e30525b22706cc50d23b9de09a58a
[ "Apache-2.0" ]
null
null
null
morphomatics_med/manifold/Bezierfold.py
MATHplus-Young-Academy/P3-Morph-Scoring
0e2ba66cf28e30525b22706cc50d23b9de09a58a
[ "Apache-2.0" ]
null
null
null
################################################################################ # # # This file is part of the Morphomatics library # # see https://github.com/morphomatics/morphomatics ...
33.731884
117
0.51758
f78a820d388ce72cdb6c586132e71091e8f1957f
3,593
py
Python
suspect/processing/water_suppression.py
bennyrowland/suspect
c09ab0a5013c5a199218214cdd791659243d7e41
[ "MIT" ]
5
2017-09-26T16:05:30.000Z
2020-11-28T01:31:27.000Z
suspect/processing/water_suppression.py
bennyrowland/suspect
c09ab0a5013c5a199218214cdd791659243d7e41
[ "MIT" ]
6
2016-08-31T22:09:33.000Z
2018-11-30T18:37:09.000Z
suspect/processing/water_suppression.py
bennyrowland/suspect
c09ab0a5013c5a199218214cdd791659243d7e41
[ "MIT" ]
2
2016-06-09T18:10:18.000Z
2020-12-12T02:50:32.000Z
import numpy import suspect.basis def hsvd(data, rank, L=None): if L is None: L = data.np // 2 # start by building the Hankel matrix hankel_matrix = numpy.zeros((L, data.np - L), "complex") for i in range(int(data.np - L)): hankel_matrix[:, i] = data[i:(i + L)] # perform the sing...
40.829545
82
0.601169
f78a889f2f06096ae966ecd3d58690d8145f7857
1,393
py
Python
examples/deprecated/inputs.py
yanndupis/tf-encrypted
cfaea3ba87520f73979ed4e4f397eba3beb0a535
[ "Apache-2.0" ]
null
null
null
examples/deprecated/inputs.py
yanndupis/tf-encrypted
cfaea3ba87520f73979ed4e4f397eba3beb0a535
[ "Apache-2.0" ]
null
null
null
examples/deprecated/inputs.py
yanndupis/tf-encrypted
cfaea3ba87520f73979ed4e4f397eba3beb0a535
[ "Apache-2.0" ]
null
null
null
import sys import numpy as np import tensorflow as tf import tf_encrypted as tfe config = tfe.get_config() if len(sys.argv) > 1: # # assume we're running as a server # player_name = str(sys.argv[1]) server = config.server(player_name) server.start() server.join() else: # # as...
22.467742
79
0.591529
f78aa008ab6dfbf1fef0d06fe37ac9bfecd3b605
1,268
py
Python
scripts/generate_config.py
ruanchaves/neuralcompressor
3e95bf3d5f4f1c56e1c4d7d34984c43832b12150
[ "MIT" ]
null
null
null
scripts/generate_config.py
ruanchaves/neuralcompressor
3e95bf3d5f4f1c56e1c4d7d34984c43832b12150
[ "MIT" ]
null
null
null
scripts/generate_config.py
ruanchaves/neuralcompressor
3e95bf3d5f4f1c56e1c4d7d34984c43832b12150
[ "MIT" ]
null
null
null
import json config = [] with open('filelist_example.txt','r') as f: for line in f: # Large embeddings don't work yet (disregard > 300) # All embeddings compress to the same size (disregard < 300) if not '300' in line: continue source_path = line.strip() d...
34.27027
82
0.529968
f78aa4ce8decabe34e7dc75804a7bdfffb9d40ff
1,299
py
Python
2_visualisation/mesh_plot.py
ddempsey/python_for_geoscientists
ac3e3e9951b530ecd5f0ed3128083edd4f55b2c0
[ "CC-BY-4.0" ]
25
2017-10-31T01:56:07.000Z
2022-03-04T18:21:05.000Z
2_visualisation/mesh_plot.py
mtoqeerpk/python_for_geoscientists
428e2eaeb869f8478a3517d01a5fdff6de30e7d2
[ "CC-BY-4.0" ]
null
null
null
2_visualisation/mesh_plot.py
mtoqeerpk/python_for_geoscientists
428e2eaeb869f8478a3517d01a5fdff6de30e7d2
[ "CC-BY-4.0" ]
8
2019-05-02T11:35:48.000Z
2022-01-17T13:23:42.000Z
# import tools for 3D axes from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm import numpy as np # create a grid xg = np.linspace(0,1,31) # evenly spaced grid points yg = np.linspace(0,1,31) ymin,ymax = [0.15,0.85] # create a smaller s...
34.184211
90
0.649731
f78ac67fc1d6a8bd0df759f0efe17ab70eecf818
3,029
py
Python
tests/internals/utils_move_atomic.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
tests/internals/utils_move_atomic.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
tests/internals/utils_move_atomic.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
# Pylint doesn't play well with fixtures and dependency injection from pytest # pylint: disable=redefined-outer-name import pytest from buildstream.utils import ( move_atomic, DirectoryExistsError, _get_file_mtimestamp, _set_file_mtime, _parse_timestamp, ) from buildstream.testing._utils.site impo...
25.241667
102
0.694289
f78adb9e923820de4494f299b90384f25c8e39e0
533
py
Python
trac/versioncontrol/__init__.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/versioncontrol/__init__.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/versioncontrol/__init__.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2005-2020 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at https://trac.edgewall.org/wiki/TracLicense. # # This software cons...
35.533333
67
0.761726
f78aebf7e8008b26bdc61d8067206a827af7bc46
20,465
py
Python
docker/third-party/nnUNet/nnunet/dataset_conversion/Task172_CovidSegChallengeAutoCorrect.py
LucasFidon/trustworthy-ai-fetal-brain-segmentation
84959da54d8c2fb156da2b06cca30fa31a1c926d
[ "BSD-3-Clause" ]
null
null
null
docker/third-party/nnUNet/nnunet/dataset_conversion/Task172_CovidSegChallengeAutoCorrect.py
LucasFidon/trustworthy-ai-fetal-brain-segmentation
84959da54d8c2fb156da2b06cca30fa31a1c926d
[ "BSD-3-Clause" ]
null
null
null
docker/third-party/nnUNet/nnunet/dataset_conversion/Task172_CovidSegChallengeAutoCorrect.py
LucasFidon/trustworthy-ai-fetal-brain-segmentation
84959da54d8c2fb156da2b06cca30fa31a1c926d
[ "BSD-3-Clause" ]
null
null
null
import os import pickle from scipy.ndimage.measurements import label import numpy as np import SimpleITK as sitk from collections import OrderedDict from lungmask import mask from batchgenerators.utilities.file_and_folder_operations import * from nnunet.paths import nnUNet_raw_data MAIN_DATA_FOLDER = '/data' MAIN_WORK...
40.127451
152
0.647496
f78af8042882d289d1ee2376039ba417133acf45
5,291
py
Python
databench_py/singlethread/meta.py
springcoil/databench
dba2cb412da099a3eb970e4b0cf257a62b012958
[ "MIT" ]
null
null
null
databench_py/singlethread/meta.py
springcoil/databench
dba2cb412da099a3eb970e4b0cf257a62b012958
[ "MIT" ]
null
null
null
databench_py/singlethread/meta.py
springcoil/databench
dba2cb412da099a3eb970e4b0cf257a62b012958
[ "MIT" ]
null
null
null
"""Meta class for Databench Python kernel.""" import zmq import time import logging class Meta(object): """Class providing Meta information about analyses. For Python kernels. Args: name (str): Name of this analysis. import_name (str): Usually the file name ``__name__`` where this ...
33.27673
76
0.543754
f78afa56bb49636deef01034c0fcbe89d00c2c91
9,578
py
Python
lib/package_search.py
facelessuser/SchemeEditor
fbffcc8936a5d7eed8668618e3bd0cea85b74b2e
[ "Unlicense", "MIT" ]
38
2017-07-24T04:54:34.000Z
2022-02-20T21:32:32.000Z
lib/package_search.py
facelessuser/ColorSchemeEditor
fbffcc8936a5d7eed8668618e3bd0cea85b74b2e
[ "Unlicense", "MIT" ]
7
2015-04-28T02:54:56.000Z
2017-07-23T16:39:55.000Z
lib/package_search.py
facelessuser/SchemeEditor
fbffcc8936a5d7eed8668618e3bd0cea85b74b2e
[ "Unlicense", "MIT" ]
4
2017-11-22T19:08:19.000Z
2019-09-10T02:07:06.000Z
""" Submlime Text Package File Search. Licensed under MIT Copyright (c) 2012 Isaac Muse <isaacmuse@gmail.com> """ import sublime import re from os import walk, listdir from os.path import basename, dirname, isdir, join, normpath, splitext, exists from fnmatch import fnmatch import zipfile __all__ = ( "sublime_pac...
33.607018
118
0.60712
f78b3a92e7689315bfdd5be4b201bea728b511f0
26,232
py
Python
integration_tests/src/main/python/parquet_write_test.py
NVnavkumar/spark-rapids
ed7de6e27fc82dff06eea3fda9db30dd37635103
[ "Apache-2.0" ]
null
null
null
integration_tests/src/main/python/parquet_write_test.py
NVnavkumar/spark-rapids
ed7de6e27fc82dff06eea3fda9db30dd37635103
[ "Apache-2.0" ]
null
null
null
integration_tests/src/main/python/parquet_write_test.py
NVnavkumar/spark-rapids
ed7de6e27fc82dff06eea3fda9db30dd37635103
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020-2022, NVIDIA CORPORATION. # # 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...
56.051282
204
0.708791
f78bb20642192c5d16f36072fc12bb9768289cf7
22,497
py
Python
tempest/auth.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
tempest/auth.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
tempest/auth.py
midokura/tempest
b0ec1d280f057d5d9c2eda081bcbda7e381ecb3b
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Hewlett-Packard Development Company, L.P. # 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...
35.9377
79
0.618216
f78bc44386ba8e9ab4a8c2cda60850da958b33e5
2,512
py
Python
coopihczoo/eye/tests/test_PlIE.py
jgori-ouistiti/CoopIHC-zoo
5efb1e1f9e773d793b4634b4671124d43aae3e7d
[ "MIT" ]
null
null
null
coopihczoo/eye/tests/test_PlIE.py
jgori-ouistiti/CoopIHC-zoo
5efb1e1f9e773d793b4634b4671124d43aae3e7d
[ "MIT" ]
null
null
null
coopihczoo/eye/tests/test_PlIE.py
jgori-ouistiti/CoopIHC-zoo
5efb1e1f9e773d793b4634b4671124d43aae3e7d
[ "MIT" ]
null
null
null
from coopihc.space.Space import Space from coopihc.space.State import State from coopihc.space.StateElement import StateElement from coopihc.space.utils import autospace from coopihczoo.eye.utils import ProvideLikelihoodInferenceEngine import numpy game_state = State( game_info=State( turn_index=StateEle...
28.873563
79
0.526672
f78bcd006620365b20fb6461c239da57d8193b0a
2,305
py
Python
lymph/core/monitoring/metrics.py
MislavStipetic/lymph
aa36a688380e5665fdea31fda76b4a0cf35b6fc0
[ "Apache-2.0" ]
89
2015-03-01T11:39:55.000Z
2022-01-31T22:00:15.000Z
lymph/core/monitoring/metrics.py
MislavStipetic/lymph
aa36a688380e5665fdea31fda76b4a0cf35b6fc0
[ "Apache-2.0" ]
214
2015-01-02T23:48:49.000Z
2020-01-14T10:47:37.000Z
lymph/core/monitoring/metrics.py
MislavStipetic/lymph
aa36a688380e5665fdea31fda76b4a0cf35b6fc0
[ "Apache-2.0" ]
36
2015-01-13T13:44:15.000Z
2021-09-15T17:55:41.000Z
import abc import collections import six @six.add_metaclass(abc.ABCMeta) class Metric(object): def __init__(self, name, tags=None): self._name = name self._tags = tags or {} @abc.abstractmethod def __iter__(self): raise NotImplementedError() def __repr__(self): return...
23.282828
55
0.603037
f78bf5ec48b4a671ed8e5ca8b088dcbea81e59a7
8,044
py
Python
contrib/.venv/lib/python3.8/site-packages/fastecdsa/tests/test_whycheproof_vectors.py
jtatman/katersltc-client
7ea88bfa32e9bdce9bf8d434a8909a07b65412f7
[ "MIT" ]
219
2016-05-01T14:19:09.000Z
2022-03-29T00:58:42.000Z
contrib/.venv/lib/python3.8/site-packages/fastecdsa/tests/test_whycheproof_vectors.py
jtatman/katersltc-client
7ea88bfa32e9bdce9bf8d434a8909a07b65412f7
[ "MIT" ]
80
2016-04-05T10:35:13.000Z
2022-03-15T19:05:45.000Z
contrib/.venv/lib/python3.8/site-packages/fastecdsa/tests/test_whycheproof_vectors.py
jtatman/katersltc-client
7ea88bfa32e9bdce9bf8d434a8909a07b65412f7
[ "MIT" ]
74
2016-08-19T06:35:03.000Z
2022-03-20T04:29:58.000Z
from binascii import unhexlify from json import JSONDecodeError, loads from sys import version_info from unittest import SkipTest, TestCase, skipIf from urllib.error import URLError from urllib.request import urlopen from fastecdsa.curve import ( P224, P256, P384, P521, brainpoolP224r1, brainpoolP256r1, brainp...
45.965714
125
0.714818
f78c4ba902e285b3eb9ea46888537aeba2099e01
382
py
Python
cli/src/rnpfind/merge_annotation_funcs.py
mnahinkhan/rnpfind
5aa956ddd528ab9ebd9588be845f78c449915b78
[ "MIT" ]
3
2021-06-08T03:55:03.000Z
2021-06-15T07:33:08.000Z
cli/src/rnpfind/merge_annotation_funcs.py
mnahinkhan/RNPFind
8b561e087f943421c847dcb708ee386ee6439fa5
[ "MIT" ]
1
2022-02-24T15:34:24.000Z
2022-03-04T09:59:10.000Z
cli/src/rnpfind/merge_annotation_funcs.py
mnahinkhan/RNPFind
8b561e087f943421c847dcb708ee386ee6439fa5
[ "MIT" ]
1
2021-07-22T04:13:34.000Z
2021-07-22T04:13:34.000Z
""" In principle, one could automate the process for merging data annotations between binding sites that overlap and need to be merged together. For now, this function and file does nothing, and merging is handled in other ways. """ def generate_merge_func(_): """ Returns the identity function :param _: t...
25.466667
80
0.727749
f78c6a60fa0a0ac6f14ecb29a453ee403e7d824a
1,412
py
Python
modules/dbnd/src/dbnd/tasks/basics/sanity.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
224
2020-01-02T10:46:37.000Z
2022-03-02T13:54:08.000Z
modules/dbnd/src/dbnd/tasks/basics/sanity.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
16
2020-03-11T09:37:58.000Z
2022-01-26T10:22:08.000Z
modules/dbnd/src/dbnd/tasks/basics/sanity.py
dmytrostriletskyi/dbnd
d4a5f5167523e80439c9d64182cdc87b40cbc48f
[ "Apache-2.0" ]
24
2020-03-24T13:53:50.000Z
2022-03-22T11:55:18.000Z
import datetime import logging import random import time from dbnd._core.task_build.dbnd_decorator import task from dbnd._core.tracking.metrics import log_metric logger = logging.getLogger(__name__) @task def dbnd_sanity_check(check_time=datetime.datetime.now(), fail_chance=0.0): # type: (datetime.datetime, fl...
29.416667
82
0.687677
f78c850f79bd41b765e6017360cec9cadff3c7dd
663
bzl
Python
third_party/org_apache_httpcomponents_client5.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
third_party/org_apache_httpcomponents_client5.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
third_party/org_apache_httpcomponents_client5.bzl
wix-playground/rules_maven_third_party
ff0b486df194779d7d8e6c9102cd12138e3305c3
[ "Apache-2.0" ]
null
null
null
load(":import_external.bzl", import_external = "import_external") def dependencies(): import_external( name = "org_apache_httpcomponents_client5_httpclient5", artifact = "org.apache.httpcomponents.client5:httpclient5:5.1", artifact_sha256 = "b7a30296763a4d5dbf840f0b79df7439cf3d2341c8990aee4...
41.4375
93
0.713424
f78c9a5a4794192f458a3baa0434a110632c21e6
609
py
Python
python/domain/document/model/recursive_fragment.py
ICTU/document-as-code
e65fddb94513e7c2f54f248b4ce69e9e10ce42f5
[ "Apache-2.0" ]
2
2021-01-09T17:00:51.000Z
2021-02-19T09:35:26.000Z
python/domain/document/model/recursive_fragment.py
ICTU/document-as-code
e65fddb94513e7c2f54f248b4ce69e9e10ce42f5
[ "Apache-2.0" ]
null
null
null
python/domain/document/model/recursive_fragment.py
ICTU/document-as-code
e65fddb94513e7c2f54f248b4ce69e9e10ce42f5
[ "Apache-2.0" ]
1
2020-02-24T15:50:05.000Z
2020-02-24T15:50:05.000Z
""" source - defines and describes a source """ from domain.base import Base class RecursiveFragment(Base): title = None lead = None text = None fragments = None def __init__(self, identifier, title, lead=None, text=None, fragments=[]): super().__init__(identifier) self.tit...
19.645161
78
0.604269
f78cbb4dabe74be5dd47f1bd472129cb4b754a25
1,861
py
Python
mailanalyzer/detector/sender.py
COMSYS/MailAnalyzer
8cc51c4165f4f7851eaf513cfc5db6d930c289e8
[ "MIT" ]
4
2018-01-18T15:29:22.000Z
2021-11-23T12:32:50.000Z
mailanalyzer/detector/sender.py
COMSYS/MailAnalyzer
8cc51c4165f4f7851eaf513cfc5db6d930c289e8
[ "MIT" ]
null
null
null
mailanalyzer/detector/sender.py
COMSYS/MailAnalyzer
8cc51c4165f4f7851eaf513cfc5db6d930c289e8
[ "MIT" ]
1
2019-10-08T19:07:25.000Z
2019-10-08T19:07:25.000Z
from mailanalyzer.detector.abstract import AbstractDetector import os import glob import re import xml.etree.cElementTree as ET class SenderDetector(AbstractDetector): def __init__(self): # to be extra careful, we also add all domainRegex as valid sendernames path = os.path.join(os.path.dirname(__file__),'domai...
29.539683
86
0.668458
f78cffa9fb73c5f4cd9db4a83868287999d69ee3
46,399
py
Python
oscar/lib/python2.7/site-packages/_pytest/fixtures.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/_pytest/fixtures.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/_pytest/fixtures.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division, print_function import sys from py._code.code import FormattedExcinfo import py import warnings import inspect import _pytest from _pytest._code.code import TerminalRepr from _pytest.compat import ( NOTSET, exc_clear, _format_args, getfslineno, ge...
40.880176
109
0.602901
f78d011d9843006dcbf0239fb23fcffd0ceb7ce0
763
py
Python
src/Engine/sprite_renderer.py
IUS-CS/project-scrumger-games
d8c6bad99ccaf10d3cca05b6fc44799e2f46ad2a
[ "MIT" ]
3
2021-02-02T18:11:34.000Z
2021-04-16T20:47:40.000Z
src/Engine/sprite_renderer.py
IUS-CS/project-scrumger-games
d8c6bad99ccaf10d3cca05b6fc44799e2f46ad2a
[ "MIT" ]
3
2021-03-10T14:34:05.000Z
2021-04-14T03:11:56.000Z
src/Engine/sprite_renderer.py
IUS-CS/project-scrumger-games
d8c6bad99ccaf10d3cca05b6fc44799e2f46ad2a
[ "MIT" ]
5
2021-02-02T19:01:01.000Z
2021-12-14T22:19:54.000Z
import pygame.display # Main game drawing function def draw_sprites(render_group, win, background): """ Draws the frame to be rendered. - :param render_group: A pygame LayeredUpdates sprite group which contains all of the sprites to be rendered on the given frame - :param win: A pygam...
29.346154
112
0.665793
f78d57858db50c3734416beaeef72dfe6ad22262
9,334
py
Python
experimental/sandBoxGeneral.py
ScSteffen/neuralEntropy
796e0b38ac9c01f59772d49be3368b8ac9ad24d7
[ "MIT" ]
1
2021-03-12T09:40:48.000Z
2021-03-12T09:40:48.000Z
experimental/sandBoxGeneral.py
ScSteffen/neuralEntropy
796e0b38ac9c01f59772d49be3368b8ac9ad24d7
[ "MIT" ]
null
null
null
experimental/sandBoxGeneral.py
ScSteffen/neuralEntropy
796e0b38ac9c01f59772d49be3368b8ac9ad24d7
[ "MIT" ]
null
null
null
### imports import numpy as np import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers from tensorflow.keras import initializers import src.utils as utils # import tensorflow.keras.backend as K import matplotlib.pyplot as plt from src.utils import finiteDiff, integrate, loadData, eva...
28.897833
111
0.557639
f78d6984f4dee3048eb691125f85b0cc8dd1b7fa
44
py
Python
test/lmp/infer/_base/__init__.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
test/lmp/infer/_base/__init__.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
test/lmp/infer/_base/__init__.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
"""Test :py:mod:`lmp.infer._base` entry."""
22
43
0.613636
f78d70001e75e7d376f3efff1f725612ec158f3f
1,122
py
Python
utils/optim_utils.py
hudaAlamri/visdial-bert
77fee9e49c629bff314397d7ff029389a08a4ec0
[ "BSD-3-Clause" ]
85
2019-12-05T21:04:34.000Z
2022-03-21T09:26:39.000Z
utils/optim_utils.py
hudaAlamri/visdial-bert
77fee9e49c629bff314397d7ff029389a08a4ec0
[ "BSD-3-Clause" ]
12
2019-12-10T14:55:21.000Z
2021-08-24T03:13:21.000Z
utils/optim_utils.py
satwikkottur/visdial-bert
87e264794c45cc5c8c1ea243ad9d2b4d94a44faf
[ "BSD-3-Clause" ]
18
2019-12-08T15:51:43.000Z
2022-01-27T16:46:15.000Z
import logging import math import torch from torch.optim import Optimizer from torch.optim.lr_scheduler import _LRScheduler class WarmupLinearScheduleNonZero(_LRScheduler): """ Linear warmup and then linear decay. Linearly increases learning rate from 0 to max_lr over `warmup_steps` training steps. ...
43.153846
121
0.7041
f78d9adf899e32ef004aaba2a79b7ec00598a20f
3,132
py
Python
test_projects/timer_circular_calling_height/main.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
test_projects/timer_circular_calling_height/main.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
test_projects/timer_circular_calling_height/main.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
"""The test project for the timer event circular calling and updating height interface value. Command examples: $ python test_projects/timer_circular_calling_height/main.py """ import sys sys.path.append('./') import os from types import ModuleType from typing_extensions import TypedDict import ap...
24.857143
74
0.636335
f78de9d7b1a4d1b16b134e2ae58a6a04cf515764
110,491
py
Python
languages/python/tests/test_atom.py
elementary-robotics/atom
36aea078c0e029f03e7b9b4768729a683fb32a88
[ "Apache-2.0" ]
64
2019-04-01T20:32:07.000Z
2021-11-24T17:12:03.000Z
languages/python/tests/test_atom.py
elementary-robotics/atom
36aea078c0e029f03e7b9b4768729a683fb32a88
[ "Apache-2.0" ]
291
2019-04-01T22:54:31.000Z
2022-03-31T21:48:47.000Z
languages/python/tests/test_atom.py
elementary-robotics/atom
36aea078c0e029f03e7b9b4768729a683fb32a88
[ "Apache-2.0" ]
5
2019-06-27T22:42:54.000Z
2022-02-01T23:00:37.000Z
import copy import gc import os import random import time from multiprocessing import Process, Queue from threading import Thread import numpy as np import pytest import redis from atom import AtomError, Element, MetricsLevel, SetEmptyError from atom.config import ( ATOM_CALLBACK_FAILED, ATOM_COMMAND_NO_ACK, ...
35.436498
88
0.617534
f78e0be6509fa0a45d40ae521aa1b9e03c26cb2b
5,105
py
Python
influxdb_client/domain/analyze_query_response_errors.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
1
2021-06-06T10:39:47.000Z
2021-06-06T10:39:47.000Z
influxdb_client/domain/analyze_query_response_errors.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
influxdb_client/domain/analyze_query_response_errors.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Influx API Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class Anal...
26.727749
124
0.577669
f78e17e3a8b897f1aa64284593f0eaf591cc5adc
1,500
py
Python
source_pair_manual_sh.py
ericmjl/influenza-reassortment
21b11507be0f72376237c4ad31129d0148a69456
[ "MIT" ]
null
null
null
source_pair_manual_sh.py
ericmjl/influenza-reassortment
21b11507be0f72376237c4ad31129d0148a69456
[ "MIT" ]
null
null
null
source_pair_manual_sh.py
ericmjl/influenza-reassortment
21b11507be0f72376237c4ad31129d0148a69456
[ "MIT" ]
null
null
null
handle = '20141103\ All\ IRD' def get_header(n_nodes): header = '\ #!/bin/sh \n\ #$ -S /bin/sh \n\ #$ -cwd \n\ #$ -V\n\ #$ -m e\n\ #$ -M ericmjl@mit.edu \n\ #$ -pe whole_nodes {0}\n\ #$ -l mem_free=2G\n\ #############################################\n\n'.format(n_nodes) return header import os import pickle as pkl...
25
124
0.656
f78e533f86446b8b42dd2844fff05ef126eb63e5
3,147
py
Python
installer/core/providers/aws/boto3/rds.py
Diffblue-benchmarks/pacbot
4709eb11f87636bc42a52e7a76b740f9d76d156d
[ "Apache-2.0" ]
1
2020-01-14T10:14:27.000Z
2020-01-14T10:14:27.000Z
installer/core/providers/aws/boto3/rds.py
Diffblue-benchmarks/pacbot
4709eb11f87636bc42a52e7a76b740f9d76d156d
[ "Apache-2.0" ]
19
2021-07-02T18:53:27.000Z
2022-03-02T09:55:29.000Z
installer/core/providers/aws/boto3/rds.py
Diffblue-benchmarks/pacbot
4709eb11f87636bc42a52e7a76b740f9d76d156d
[ "Apache-2.0" ]
1
2020-01-14T09:10:10.000Z
2020-01-14T09:10:10.000Z
import boto3 def get_rds_client(access_key, secret_key, region): """ Returns the client object for AWS RDS Args: access_key (str): AWS Access Key secret_key (str): AWS Secret Key region (str): AWS Region Returns: obj: AWS RDS Object """ return boto3.client( ...
27.849558
83
0.650143
f78ed814b65202b787f02c7f8669735a012bb620
2,027
py
Python
colour_datasets/loaders/tests/test_jakob2019.py
colour-science/colour-datasets
464c387c17739f08a0cceb5185f6b225872adb6c
[ "BSD-3-Clause" ]
28
2019-06-15T03:07:28.000Z
2022-03-28T14:11:51.000Z
colour_datasets/loaders/tests/test_jakob2019.py
colour-science/colour-datasets
464c387c17739f08a0cceb5185f6b225872adb6c
[ "BSD-3-Clause" ]
12
2020-03-24T17:35:36.000Z
2021-11-09T08:49:39.000Z
colour_datasets/loaders/tests/test_jakob2019.py
colour-science/colour-datasets
464c387c17739f08a0cceb5185f6b225872adb6c
[ "BSD-3-Clause" ]
8
2019-10-27T15:00:52.000Z
2022-01-26T15:29:38.000Z
# -*- coding: utf-8 -*- """ Defines the unit tests for the :mod:`colour_datasets.loaders.jakob2019` module. """ import unittest from colour_datasets.loaders import DatasetLoader_Jakob2019, build_Jakob2019 __author__ = 'Colour Developers' __copyright__ = 'Copyright (C) 2019-2021 - Colour Developers' __license__ = 'Ne...
27.026667
79
0.674396