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
43b1df830b2abdb7a53300c3467f70be764c0f6f
1,235
py
Python
k_values_graph.py
leobouts/Skyline_top_k_queries
5f5e8ab8f5e521dc20f33a69dd042917ff5d42f0
[ "MIT" ]
null
null
null
k_values_graph.py
leobouts/Skyline_top_k_queries
5f5e8ab8f5e521dc20f33a69dd042917ff5d42f0
[ "MIT" ]
null
null
null
k_values_graph.py
leobouts/Skyline_top_k_queries
5f5e8ab8f5e521dc20f33a69dd042917ff5d42f0
[ "MIT" ]
null
null
null
from a_top_k import * from b_top_k import * import time def main(): # test the generator for the top-k input # starting time values_k = [1, 2, 5, 10, 20, 50, 100] times_topk_join_a = [] times_topk_join_b = [] number_of_valid_lines_a = [] number_of_valid_lines_b = [] for k in values_...
24.7
70
0.673684
0
0
0
0
0
0
0
0
65
0.052632
43b219f1675072d8c1034bc153a5f05238d1fdf2
639
py
Python
AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_methodattrs.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_methodattrs.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_methodattrs.py
CEOALT1/RefindPlusUDK
116b957ad735f96fbb6d80a0ba582046960ba164
[ "BSD-2-Clause" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
"""Fix bound method attributes (method.im_? -> method.__?__). """ # Author: Christian Heimes # Local imports from .. import fixer_base from ..fixer_util import Name MAP = { "im_func" : "__func__", "im_self" : "__self__", "im_class" : "__self__.__class__" } class FixMethodattrs(fixer_bas...
25.56
80
0.596244
347
0.543036
0
0
0
0
0
0
276
0.431925
43b28c13174a1c70f27d43e88e2fd455da590fcc
4,764
py
Python
models/TextCNN/cnn2d.py
Renovamen/Text-Classification
4a4aa4001c402ed4371ebaabe1393b27794e5992
[ "MIT" ]
72
2020-06-23T18:26:47.000Z
2022-03-26T13:33:30.000Z
models/TextCNN/cnn2d.py
Renovamen/Text-Classification
4a4aa4001c402ed4371ebaabe1393b27794e5992
[ "MIT" ]
5
2020-12-04T13:31:09.000Z
2021-08-03T14:11:52.000Z
models/TextCNN/cnn2d.py
Renovamen/Text-Classification
4a4aa4001c402ed4371ebaabe1393b27794e5992
[ "MIT" ]
15
2020-06-24T16:08:39.000Z
2022-02-04T06:53:38.000Z
import torch import torch.nn as nn import torch.nn.functional as F from typing import List class TextCNN2D(nn.Module): """ Implementation of 2D version of TextCNN proposed in paper [1]. `Here <https://github.com/yoonkim/CNN_sentence>`_ is the official implementation of TextCNN. Parameters ---...
30.538462
145
0.588161
4,671
0.980479
0
0
0
0
0
0
2,269
0.47628
43b32db495f046dd61a5bbd3592b8806b465b229
785
py
Python
LEVEL2/다리를지나는트럭/solution.py
seunghwanly/CODING-TEST
a820da950c163d399594770199aa2e782d1fbbde
[ "MIT" ]
null
null
null
LEVEL2/다리를지나는트럭/solution.py
seunghwanly/CODING-TEST
a820da950c163d399594770199aa2e782d1fbbde
[ "MIT" ]
null
null
null
LEVEL2/다리를지나는트럭/solution.py
seunghwanly/CODING-TEST
a820da950c163d399594770199aa2e782d1fbbde
[ "MIT" ]
null
null
null
def solution(bridge_length, weight, truck_weights): answer = 0 # { weight, time } wait = truck_weights[:] bridge = [] passed = 0 currWeight = 0 while True: if passed == len(truck_weights) and len(wait) == 0: return answer answer += 1 # sth needs to be passed ...
28.035714
73
0.49172
0
0
0
0
0
0
0
0
107
0.136306
43b37687b876abf43457859ada796360f659fa78
2,595
py
Python
heat/tests/convergence/framework/testutils.py
maestro-hybrid-cloud/heat
91a4bb3170bd81b1c67a896706851e55709c9b5a
[ "Apache-2.0" ]
null
null
null
heat/tests/convergence/framework/testutils.py
maestro-hybrid-cloud/heat
91a4bb3170bd81b1c67a896706851e55709c9b5a
[ "Apache-2.0" ]
null
null
null
heat/tests/convergence/framework/testutils.py
maestro-hybrid-cloud/heat
91a4bb3170bd81b1c67a896706851e55709c9b5a
[ "Apache-2.0" ]
null
null
null
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
36.549296
79
0.649326
0
0
0
0
0
0
0
0
670
0.258189
43b5471678e7c510bd2a55fdced1140414dcd734
440
py
Python
device_geometry.py
AstroShen/fpga21-scaled-tech
8a7016913c18d71844f733bc80a3ceaa2d033ac2
[ "MIT" ]
2
2021-09-02T13:13:35.000Z
2021-12-19T11:35:03.000Z
device_geometry.py
AstroShen/fpga21-scaled-tech
8a7016913c18d71844f733bc80a3ceaa2d033ac2
[ "MIT" ]
null
null
null
device_geometry.py
AstroShen/fpga21-scaled-tech
8a7016913c18d71844f733bc80a3ceaa2d033ac2
[ "MIT" ]
2
2021-09-29T02:53:03.000Z
2022-03-27T09:55:35.000Z
"""Holds the device gemoetry parameters (Table 5), taken from Wu et al., >> A Predictive 3-D Source/Drain Resistance Compact Model and the Impact on 7 nm and Scaled FinFets<<, 2020, with interpolation for 4nm. 16nm is taken from PTM HP. """ node_names = [16, 7, 5, 4, 3] GP = [64, 56, 48, 44, 41] FP = [40, 30, 28, 24, ...
36.666667
163
0.615909
0
0
0
0
0
0
0
0
240
0.545455
43b56590cfbfa648aa925a4f729f3fc4fe304008
2,605
py
Python
nova/tests/servicegroup/test_zk_driver.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
7
2017-06-19T19:37:00.000Z
2019-06-16T02:06:14.000Z
nova/tests/servicegroup/test_zk_driver.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
9
2015-05-20T11:20:17.000Z
2017-07-27T08:21:33.000Z
nova/tests/servicegroup/test_zk_driver.py
vmthunder/nova
baf05caab705c5778348d9f275dc541747b7c2de
[ "Apache-2.0" ]
13
2015-05-05T09:34:04.000Z
2017-11-08T02:03:46.000Z
# Copyright (c) AT&T 2012-2013 Yun Mao <yunmao@gmail.com> # Copyright 2012 IBM Corp. # # 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/LICENS...
39.469697
78
0.700576
1,466
0.562764
0
0
0
0
0
0
1,284
0.492898
43b6084ad6323124af0ef6d980f927d5cab21334
780
py
Python
tests/test_misc.py
lordmauve/chopsticks
87c6a5d0049a45db1477a21510cba650f470a8ac
[ "Apache-2.0" ]
171
2016-07-14T11:29:15.000Z
2022-03-12T07:39:12.000Z
tests/test_misc.py
moreati/chopsticks
87c6a5d0049a45db1477a21510cba650f470a8ac
[ "Apache-2.0" ]
59
2016-07-23T14:05:58.000Z
2020-06-26T15:49:07.000Z
tests/test_misc.py
moreati/chopsticks
87c6a5d0049a45db1477a21510cba650f470a8ac
[ "Apache-2.0" ]
17
2016-08-01T06:46:27.000Z
2018-03-25T14:46:15.000Z
"""Tests for miscellaneous properties, such as debuggability.""" import time from chopsticks.tunnel import Docker from chopsticks.group import Group def test_tunnel_repr(): """Tunnels have a usable repr.""" tun = Docker('py36', image='python:3.6') assert repr(tun) == "Docker('py36')" def test_group_repr...
25.16129
65
0.601282
0
0
0
0
0
0
0
0
304
0.389744
43b62d9d4c35cd12677417d9abccab4b3568c545
3,028
py
Python
Evaluation/PostProcesing.py
AnnonymousRacoon/Quantum-Random-Walks-to-Solve-Diffusion
366ac5073cea96b662b934c3657446c9f1aa2f65
[ "MIT" ]
null
null
null
Evaluation/PostProcesing.py
AnnonymousRacoon/Quantum-Random-Walks-to-Solve-Diffusion
366ac5073cea96b662b934c3657446c9f1aa2f65
[ "MIT" ]
3
2022-03-12T17:16:36.000Z
2022-03-17T12:14:56.000Z
Evaluation/PostProcesing.py
AnnonymousRacoon/Quantum-Random-Walks-to-Solve-Diffusion
366ac5073cea96b662b934c3657446c9f1aa2f65
[ "MIT" ]
1
2022-03-12T11:56:43.000Z
2022-03-12T11:56:43.000Z
import pandas as pd import re import glob def rebuild_counts_from_csv(path,n_dims, shots): df = pd.read_csv(path) return rebuild_counts_from_dataframe(dataframe=df, n_dims=n_dims, shots=shots) def rebuild_counts_from_dataframe(dataframe,n_dims,shots): dimension_counts = {} for dimension in range(n_d...
33.274725
89
0.691546
0
0
0
0
0
0
0
0
253
0.083554
43b693bbc83efef69f13c3a5a3bab32c542470ab
2,276
py
Python
app/wirecard/tasks.py
michel-rodrigues/viggio_backend
f419f0b939209722e1eb1e272f33de172cd5c1f1
[ "MIT" ]
null
null
null
app/wirecard/tasks.py
michel-rodrigues/viggio_backend
f419f0b939209722e1eb1e272f33de172cd5c1f1
[ "MIT" ]
null
null
null
app/wirecard/tasks.py
michel-rodrigues/viggio_backend
f419f0b939209722e1eb1e272f33de172cd5c1f1
[ "MIT" ]
null
null
null
from sentry_sdk import capture_exception from dateutil.parser import parse from project_configuration.celery import app from orders.models import Charge from request_shoutout.domain.models import Charge as DomainCharge from .models import WirecardTransactionData CROSS_SYSTEMS_STATUS_MAPPING = { 'WAITING': Domai...
38.576271
93
0.784271
0
0
0
0
947
0.414442
0
0
354
0.154923
43b6c1b507adc1bb371518dff1d4802b73e3e1a5
434
py
Python
py/multiple_dispatch_example.py
coalpha/coalpha.github.io
8a620314a5c0bcbe2225d29f733379d181534430
[ "Apache-2.0" ]
null
null
null
py/multiple_dispatch_example.py
coalpha/coalpha.github.io
8a620314a5c0bcbe2225d29f733379d181534430
[ "Apache-2.0" ]
1
2020-04-12T07:48:18.000Z
2020-04-12T07:49:29.000Z
py/multiple_dispatch_example.py
coalpha/coalpha.github.io
8a620314a5c0bcbe2225d29f733379d181534430
[ "Apache-2.0" ]
1
2020-09-30T05:27:07.000Z
2020-09-30T05:27:07.000Z
from typing import * from multiple_dispatch import multiple_dispatch @overload @multiple_dispatch def add(a: Literal[4, 6, 8], b): raise TypeError("No adding 2, 4, 6, or 8!") @overload @multiple_dispatch def add(a: int, b: str): return f"int + str = {a} + {b}" @overload @multiple_dispatch def add(a: int, b: in...
18.083333
47
0.658986
0
0
0
0
333
0.767281
0
0
81
0.186636
43b93580a409ca7d715e6c81e1d0f3517269cec7
4,277
py
Python
dygraph/alexnet/network.py
Sunyingbin/models
30a7f1757bfad79935aa865f4362a7b38e63a415
[ "Apache-2.0" ]
null
null
null
dygraph/alexnet/network.py
Sunyingbin/models
30a7f1757bfad79935aa865f4362a7b38e63a415
[ "Apache-2.0" ]
null
null
null
dygraph/alexnet/network.py
Sunyingbin/models
30a7f1757bfad79935aa865f4362a7b38e63a415
[ "Apache-2.0" ]
null
null
null
""" 动态图构建 AlexNet """ import paddle.fluid as fluid import numpy as np class Conv2D(fluid.dygraph.Layer): def __init__(self, name_scope, num_channels, num_filters, filter_size, stride=1, padding=0, ...
32.9
118
0.53098
3,915
0.913226
0
0
0
0
0
0
118
0.027525
43bbbe3418d6d5e2da95d398c3928141e4b68eab
905
py
Python
turtlegameproject/turtlegame.py
Ayon134/code_for_Kids
d90698bb38efe5e26c31f02bd129bfdadea158e2
[ "MIT" ]
null
null
null
turtlegameproject/turtlegame.py
Ayon134/code_for_Kids
d90698bb38efe5e26c31f02bd129bfdadea158e2
[ "MIT" ]
null
null
null
turtlegameproject/turtlegame.py
Ayon134/code_for_Kids
d90698bb38efe5e26c31f02bd129bfdadea158e2
[ "MIT" ]
2
2021-01-08T03:52:46.000Z
2021-04-01T19:16:12.000Z
import turtle import random p1=turtle.Turtle() p1.color("green") p1.shape("turtle") p1.penup() p1.goto(-200,100) p2=p1.clone() p2.color("blue") p2.penup() p2.goto(-200,-100) p1.goto(300,60) p1.pendown() p1.circle(40) p1.penup() p1.goto(-200,100) p2.goto(300,-140) p2.pendown() p2.circle(40) p2.penup() p2.goto(-200,-...
17.745098
49
0.571271
0
0
0
0
0
0
0
0
149
0.164641
43bbc2ac72a79eec23f8c2578bc9f103ba32b758
8,684
py
Python
hivwholeseq/sequencing/check_pipeline.py
neherlab/hivwholeseq
978ce4060362e4973f92b122ed5340a5314d7844
[ "MIT" ]
3
2016-09-13T12:15:47.000Z
2021-07-03T01:28:56.000Z
hivwholeseq/sequencing/check_pipeline.py
iosonofabio/hivwholeseq
d504c63b446c3a0308aad6d6e484ea1666bbe6df
[ "MIT" ]
null
null
null
hivwholeseq/sequencing/check_pipeline.py
iosonofabio/hivwholeseq
d504c63b446c3a0308aad6d6e484ea1666bbe6df
[ "MIT" ]
3
2016-01-17T03:43:46.000Z
2020-03-25T07:00:11.000Z
#!/usr/bin/env python # vim: fdm=marker ''' author: Fabio Zanini date: 15/06/14 content: Check the status of the pipeline for one or more sequencing samples. ''' # Modules import os import sys from itertools import izip import argparse from Bio import SeqIO from hivwholeseq.utils.generic import getchar fr...
36.033195
106
0.554353
0
0
0
0
0
0
0
0
1,419
0.163404
43be862a8ae3652cfbde5c9e9ea45da257901956
1,633
py
Python
app.py
thliang01/nba-s
660d0e830989916b7b9f3123eb809d143b714186
[ "BSD-2-Clause" ]
null
null
null
app.py
thliang01/nba-s
660d0e830989916b7b9f3123eb809d143b714186
[ "BSD-2-Clause" ]
null
null
null
app.py
thliang01/nba-s
660d0e830989916b7b9f3123eb809d143b714186
[ "BSD-2-Clause" ]
null
null
null
import streamlit as st import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt # -------------------------------------------------------------- # Import and clean data game_details = pd.read_csv('games_details.csv') # print(game_details.head(5)) game_details.drop(['GAME_ID', 'TEAM_...
32.019608
110
0.647887
0
0
0
0
0
0
0
0
662
0.405389
43bfd11896f962234020d5d611ad3cb21b537df7
19,228
py
Python
python/craftassist/voxel_models/geoscorer/geoscorer_util.py
kepolol/craftassist
f60a7edd0b4ea72b774cca45ba468d2e275445c2
[ "MIT" ]
null
null
null
python/craftassist/voxel_models/geoscorer/geoscorer_util.py
kepolol/craftassist
f60a7edd0b4ea72b774cca45ba468d2e275445c2
[ "MIT" ]
null
null
null
python/craftassist/voxel_models/geoscorer/geoscorer_util.py
kepolol/craftassist
f60a7edd0b4ea72b774cca45ba468d2e275445c2
[ "MIT" ]
1
2020-03-29T20:04:11.000Z
2020-03-29T20:04:11.000Z
""" Copyright (c) Facebook, Inc. and its affiliates. """ import numpy as np import random from datetime import datetime import sys import argparse import torch import os from inspect import currentframe, getframeinfo GEOSCORER_DIR = os.path.dirname(os.path.realpath(__file__)) CRAFTASSIST_DIR = os.path.join(GEOSCORER_...
34.27451
99
0.63808
672
0.034949
0
0
0
0
0
0
4,396
0.228625
43c0a7c7b3cc424327d10e1b990bf63c250e8eb4
4,907
py
Python
CryptoAttacks/tests/Block/test_gcm.py
akbarszcz/CryptoAttacks
ae675d016b314414a3dc9b23c7d8a32da4c62457
[ "MIT" ]
54
2017-03-28T23:46:58.000Z
2022-02-23T01:53:38.000Z
CryptoAttacks/tests/Block/test_gcm.py
maximmasiutin/CryptoAttacks
d1d47d3cb2ce38738a60b728bc35ce80bfe64374
[ "MIT" ]
null
null
null
CryptoAttacks/tests/Block/test_gcm.py
maximmasiutin/CryptoAttacks
d1d47d3cb2ce38738a60b728bc35ce80bfe64374
[ "MIT" ]
13
2017-03-31T06:07:23.000Z
2021-11-20T19:01:30.000Z
#!/usr/bin/python from __future__ import absolute_import, division, print_function import subprocess from builtins import bytes, range from os.path import abspath, dirname from os.path import join as join_path from random import randint from CryptoAttacks.Block.gcm import * from CryptoAttacks.Utils import log def...
31.254777
144
0.678419
0
0
0
0
0
0
0
0
359
0.073161
43c14b71a9e55a3f072d7e8094c999b91490df88
507
py
Python
python_clean_architecture/use_cases/orderdata_use_case.py
jfsolarte/python_clean_architecture
56b0c0eff50bc98774a0caee12e3030789476687
[ "MIT" ]
null
null
null
python_clean_architecture/use_cases/orderdata_use_case.py
jfsolarte/python_clean_architecture
56b0c0eff50bc98774a0caee12e3030789476687
[ "MIT" ]
null
null
null
python_clean_architecture/use_cases/orderdata_use_case.py
jfsolarte/python_clean_architecture
56b0c0eff50bc98774a0caee12e3030789476687
[ "MIT" ]
null
null
null
from python_clean_architecture.shared import use_case as uc from python_clean_architecture.shared import response_object as res class OrderDataGetUseCase(uc.UseCase): def __init__(self, repo): self.repo = repo def execute(self, request_object): #if not request_object: #return res...
31.6875
89
0.755424
376
0.741617
0
0
0
0
0
0
100
0.197239
43c1a9b70d766525944aa92cfc1043f3d5e3bc1b
17,842
py
Python
owscapable/swe/common.py
b-cube/OwsCapable
a01815418fe982434503d6542cb18e1ac8989684
[ "BSD-3-Clause" ]
1
2016-02-01T12:55:13.000Z
2016-02-01T12:55:13.000Z
owscapable/swe/common.py
b-cube/OwsCapable
a01815418fe982434503d6542cb18e1ac8989684
[ "BSD-3-Clause" ]
1
2015-06-23T14:07:50.000Z
2015-06-23T14:07:50.000Z
owscapable/swe/common.py
b-cube/OwsCapable
a01815418fe982434503d6542cb18e1ac8989684
[ "BSD-3-Clause" ]
null
null
null
from __future__ import (absolute_import, division, print_function) from owscapable.util import nspath_eval from owscapable.namespaces import Namespaces from owscapable.util import testXMLAttribute, testXMLValue, InfiniteDateTime, NegativeInfiniteDateTime from dateutil import parser from datetime import timedelta fro...
43.200969
172
0.619325
14,999
0.840657
0
0
0
0
0
0
3,428
0.192131
43c2d697bacb0820c4e842d6861cb1732909d8a0
11,386
py
Python
main_fed.py
gao969/scaffold-dgc-clustering
9f259dfdf0897dcb1dece2e1197268f585f54a69
[ "MIT" ]
null
null
null
main_fed.py
gao969/scaffold-dgc-clustering
9f259dfdf0897dcb1dece2e1197268f585f54a69
[ "MIT" ]
null
null
null
main_fed.py
gao969/scaffold-dgc-clustering
9f259dfdf0897dcb1dece2e1197268f585f54a69
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Python version: 3.6 import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import copy import numpy as np from torchvision import datasets, transforms import torch import os import torch.distributed as dist from utils.sampling import mnist_iid, mnist_non...
35.033846
136
0.584578
0
0
0
0
0
0
0
0
3,212
0.275094
43c3bca28b83f4b20caa188f5ac7f59f03173404
2,085
py
Python
b_lambda_layer_common_test/integration/infrastructure/function_with_unit_tests.py
gkazla/B.LambdaLayerCommon
1a4f9cd3d8b7e447c8467bd7dde50cb9e9a6e980
[ "Apache-2.0" ]
null
null
null
b_lambda_layer_common_test/integration/infrastructure/function_with_unit_tests.py
gkazla/B.LambdaLayerCommon
1a4f9cd3d8b7e447c8467bd7dde50cb9e9a6e980
[ "Apache-2.0" ]
null
null
null
b_lambda_layer_common_test/integration/infrastructure/function_with_unit_tests.py
gkazla/B.LambdaLayerCommon
1a4f9cd3d8b7e447c8467bd7dde50cb9e9a6e980
[ "Apache-2.0" ]
null
null
null
from aws_cdk.aws_lambda import Function, Code, Runtime from aws_cdk.core import Stack, Duration from b_aws_testing_framework.tools.cdk_testing.testing_stack import TestingStack from b_cfn_lambda_layer.package_version import PackageVersion from b_lambda_layer_common.layer import Layer from b_lambda_layer_common_test.un...
47.386364
129
0.601918
1,747
0.83789
0
0
0
0
0
0
793
0.380336
43c4a0c547cce9ae68639184c6cd8640efc21e50
857
py
Python
tests/metarl/tf/baselines/test_baselines.py
neurips2020submission11699/metarl
ae4825d21478fa1fd0aa6b116941ea40caa152a5
[ "MIT" ]
2
2021-02-07T12:14:52.000Z
2021-07-29T08:07:22.000Z
tests/metarl/tf/baselines/test_baselines.py
neurips2020submission11699/metarl
ae4825d21478fa1fd0aa6b116941ea40caa152a5
[ "MIT" ]
null
null
null
tests/metarl/tf/baselines/test_baselines.py
neurips2020submission11699/metarl
ae4825d21478fa1fd0aa6b116941ea40caa152a5
[ "MIT" ]
null
null
null
""" This script creates a test that fails when metarl.tf.baselines failed to initialize. """ import tensorflow as tf from metarl.envs import MetaRLEnv from metarl.tf.baselines import ContinuousMLPBaseline from metarl.tf.baselines import GaussianMLPBaseline from tests.fixtures import TfGraphTestCase from tests.fixtures...
31.740741
76
0.772462
503
0.586931
0
0
0
0
0
0
131
0.152859
43c4fed77cd489496d3337fe3e83cfcc13582afb
2,390
py
Python
api/files/api/app/monthly_report.py
trackit/trackit-legacy
76cfab7941eddb9d390dd6c7b9a408a9ad4fc8da
[ "Apache-2.0" ]
2
2018-02-01T09:18:05.000Z
2020-03-12T18:11:11.000Z
api/files/api/app/monthly_report.py
trackit/trackit-legacy
76cfab7941eddb9d390dd6c7b9a408a9ad4fc8da
[ "Apache-2.0" ]
null
null
null
api/files/api/app/monthly_report.py
trackit/trackit-legacy
76cfab7941eddb9d390dd6c7b9a408a9ad4fc8da
[ "Apache-2.0" ]
5
2018-05-11T10:32:52.000Z
2021-05-26T12:09:47.000Z
import jinja2 import json from send_email import send_email from app.models import User, MyResourcesAWS, db from app.es.awsdetailedlineitem import AWSDetailedLineitem from sqlalchemy import desc import subprocess import datetime from flask import render_template def monthly_html_template(): template_dir = '/usr/tr...
47.8
205
0.65523
0
0
0
0
0
0
0
0
163
0.068201
43c657c522f9cb22a9a0ca2bb0912e5da035332c
7,309
py
Python
slow_tests/boot_test.py
rdturnermtl/mlpaper
5da5cb7b3a56d3cfdc7162d01fac2679c9050e76
[ "Apache-2.0" ]
9
2020-07-23T02:12:48.000Z
2021-06-24T08:19:08.000Z
slow_tests/boot_test.py
rdturnermtl/benchmark_tools
5da5cb7b3a56d3cfdc7162d01fac2679c9050e76
[ "Apache-2.0" ]
14
2017-11-29T04:17:04.000Z
2018-03-07T00:35:00.000Z
slow_tests/boot_test.py
rdturnermtl/mlpaper
5da5cb7b3a56d3cfdc7162d01fac2679c9050e76
[ "Apache-2.0" ]
1
2017-12-29T01:46:31.000Z
2017-12-29T01:46:31.000Z
# Ryan Turner (turnerry@iro.umontreal.ca) from __future__ import division, print_function from builtins import range import numpy as np import scipy.stats as ss import mlpaper.constants as cc import mlpaper.mlpaper as bt import mlpaper.perf_curves as pc from mlpaper.classification import DEFAULT_NGRID, curve_boot fr...
35.480583
118
0.623341
0
0
0
0
0
0
0
0
749
0.102476
43c8749a8ff42646c3b9643c7de460258d1664ae
68
py
Python
TTBenchmark/check_benchmark.py
yuqil725/benchmark_lib
f404ff829d7b3a8bb0f6b00689038cf533bba83e
[ "MIT" ]
null
null
null
TTBenchmark/check_benchmark.py
yuqil725/benchmark_lib
f404ff829d7b3a8bb0f6b00689038cf533bba83e
[ "MIT" ]
null
null
null
TTBenchmark/check_benchmark.py
yuqil725/benchmark_lib
f404ff829d7b3a8bb0f6b00689038cf533bba83e
[ "MIT" ]
null
null
null
def check_difference(): pass def update_benchmark(): pass
9.714286
23
0.676471
0
0
0
0
0
0
0
0
0
0
43c90a0a29279010bde058050d6af3ae4d07f61d
3,047
py
Python
core/test/test_timeseries_study.py
ajmal017/amp
8de7e3b88be87605ec3bad03c139ac64eb460e5c
[ "BSD-3-Clause" ]
null
null
null
core/test/test_timeseries_study.py
ajmal017/amp
8de7e3b88be87605ec3bad03c139ac64eb460e5c
[ "BSD-3-Clause" ]
null
null
null
core/test/test_timeseries_study.py
ajmal017/amp
8de7e3b88be87605ec3bad03c139ac64eb460e5c
[ "BSD-3-Clause" ]
null
null
null
from typing import Any, Dict import numpy as np import pandas as pd import core.artificial_signal_generators as sig_gen import core.statistics as stats import core.timeseries_study as tss import helpers.unit_test as hut class TestTimeSeriesDailyStudy(hut.TestCase): def test_usual_case(self) -> None: idx...
33.855556
72
0.628159
2,816
0.924188
0
0
408
0.133902
0
0
169
0.055464
43cb99a95c79677af08d364cd292e9e06fb31368
718
py
Python
util.py
takat0m0/infoGAN
bc3ba0d4e407851e97f49322add98ea2e7e429de
[ "MIT" ]
null
null
null
util.py
takat0m0/infoGAN
bc3ba0d4e407851e97f49322add98ea2e7e429de
[ "MIT" ]
null
null
null
util.py
takat0m0/infoGAN
bc3ba0d4e407851e97f49322add98ea2e7e429de
[ "MIT" ]
null
null
null
#! -*- coding:utf-8 -*- import os import sys import cv2 import numpy as np def _resizing(img): #return cv2.resize(img, (256, 256)) return cv2.resize(img, (32, 32)) def _reg(img): return img/127.5 - 1.0 def _re_reg(img): return (img + 1.0) * 127.5 def get_figs(target_dir): ret = [] for file_...
23.933333
64
0.639276
0
0
0
0
0
0
0
0
66
0.091922
43cc7a30161b57bb1e1d6f7efc6e267ff0a84af5
471
py
Python
myhoodApp/migrations/0002_healthfacilities_hospital_image.py
MutuaFranklin/MyHood
6ddd21c4a67936c8926d6f5a8665a06edf81f39e
[ "MIT" ]
null
null
null
myhoodApp/migrations/0002_healthfacilities_hospital_image.py
MutuaFranklin/MyHood
6ddd21c4a67936c8926d6f5a8665a06edf81f39e
[ "MIT" ]
null
null
null
myhoodApp/migrations/0002_healthfacilities_hospital_image.py
MutuaFranklin/MyHood
6ddd21c4a67936c8926d6f5a8665a06edf81f39e
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-23 20:01 import cloudinary.models from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('myhoodApp', '0001_initial'), ] operations = [ migrations.AddField( model_name='healthfacilities', n...
23.55
111
0.647558
361
0.766454
0
0
0
0
0
0
122
0.259023
43cc95eb28ba86bd35c1811cb4456f10d8f69c56
380
py
Python
forecasting_algorithms/Multiple_Timeseries/VAR/var.py
ans682/SafePredict_and_Forecasting
30ac5a0b665fce090567476bc07b54489b2f3d0f
[ "BSD-3-Clause" ]
1
2021-08-05T23:01:47.000Z
2021-08-05T23:01:47.000Z
forecasting_algorithms/Multiple_Timeseries/VAR/var.py
ans682/SafePredict_and_Forecasting
30ac5a0b665fce090567476bc07b54489b2f3d0f
[ "BSD-3-Clause" ]
1
2021-12-22T08:26:13.000Z
2021-12-22T08:26:13.000Z
forecasting_algorithms/Multiple_Timeseries/VAR/var.py
ans682/SafePredict_and_Forecasting
30ac5a0b665fce090567476bc07b54489b2f3d0f
[ "BSD-3-Clause" ]
null
null
null
# VAR example from statsmodels.tsa.vector_ar.var_model import VAR from random import random # contrived dataset with dependency data = list() for i in range(100): v1 = i + random() v2 = v1 + random() row = [v1, v2] data.append(row) # fit model model = VAR(data) model_fit = model.fit() # make prediction ...
22.352941
51
0.697368
0
0
0
0
0
0
0
0
76
0.2
43ccba90b50389b99008103e1fcff4ea674ca290
2,140
py
Python
candidate-scrape.py
jonykarki/hamroscraper
a7e34a9cdca89be10422d045f1ed34e9956bd75f
[ "MIT" ]
2
2019-09-23T23:41:44.000Z
2019-10-06T03:13:17.000Z
candidate-scrape.py
jonykarki/hamroscraper
a7e34a9cdca89be10422d045f1ed34e9956bd75f
[ "MIT" ]
null
null
null
candidate-scrape.py
jonykarki/hamroscraper
a7e34a9cdca89be10422d045f1ed34e9956bd75f
[ "MIT" ]
4
2019-11-26T18:29:20.000Z
2021-01-22T06:30:20.000Z
import json import urllib.request import MySQLdb db = MySQLdb.connect(host="localhost", # your host, usually localhost user="root", # your username passwd="", # your password db="election") cur = db.cursor() # user_agent for sending headers w...
27.792208
105
0.619159
0
0
0
0
0
0
0
0
1,051
0.491121
43cde366d5fb7850e5493e9384c566462676fb5d
3,101
py
Python
sangita/hindi/lemmatizer.py
ashiscs/sangita
b90c49859339147137db1c2bdb60a1039a00c706
[ "Apache-2.0" ]
36
2017-05-30T04:41:06.000Z
2019-02-17T08:41:10.000Z
sangita/hindi/lemmatizer.py
07kshitij/sangita
b90c49859339147137db1c2bdb60a1039a00c706
[ "Apache-2.0" ]
13
2018-06-25T11:14:48.000Z
2021-05-15T17:57:47.000Z
sangita/hindi/lemmatizer.py
07kshitij/sangita
b90c49859339147137db1c2bdb60a1039a00c706
[ "Apache-2.0" ]
33
2018-06-23T21:46:39.000Z
2022-03-01T15:55:37.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jun 9 23:28:21 2017 @author: samriddhi """ import re import sangita.hindi.tokenizer as tok import sangita.hindi.corpora.lemmata as lt def numericLemmatizer(instr): lst = type([1,2,3]) tup = type(("Hello", "Hi")) string = type("Hello") ...
27.936937
209
0.507256
0
0
0
0
0
0
0
0
863
0.249062
43cee9ce3aeb6af7cef400c841ab802c88461d4b
8,148
py
Python
gslib/tests/test_stet_util.py
ttobisawa/gsutil
ef665b590aa8e6cecfe251295bce8bf99ea69467
[ "Apache-2.0" ]
null
null
null
gslib/tests/test_stet_util.py
ttobisawa/gsutil
ef665b590aa8e6cecfe251295bce8bf99ea69467
[ "Apache-2.0" ]
null
null
null
gslib/tests/test_stet_util.py
ttobisawa/gsutil
ef665b590aa8e6cecfe251295bce8bf99ea69467
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2021 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 require...
40.74
80
0.689494
7,103
0.871748
0
0
6,422
0.788169
0
0
2,001
0.245582
43cfdd42faa2065cb7d2cefc439413b4ed53c719
4,471
py
Python
markdown_editing/tests/test_extension.py
makyo/markdown-editing
ecbc8970f4d416038f9d2c46fae22d4dbb79c647
[ "MIT" ]
null
null
null
markdown_editing/tests/test_extension.py
makyo/markdown-editing
ecbc8970f4d416038f9d2c46fae22d4dbb79c647
[ "MIT" ]
null
null
null
markdown_editing/tests/test_extension.py
makyo/markdown-editing
ecbc8970f4d416038f9d2c46fae22d4dbb79c647
[ "MIT" ]
null
null
null
from markdown import markdown from unittest import TestCase from markdown_editing.extension import EditingExtension class TestExtension(TestCase): def test_substitution(self): source = '~{out with the old}{in with the new}' expected = '<p><span class="substitution"><del>out with the old</del><in...
39.566372
224
0.636547
4,350
0.972937
0
0
0
0
0
0
2,729
0.610378
43cffed323ab5de7f6be36b25de0a210ece3af09
15,477
py
Python
apps/siren/test_handlers.py
thomasyi17/diana2
2167053dfe15b782d96cb1e695047433f302d4dd
[ "MIT" ]
15
2019-02-12T23:26:09.000Z
2021-12-21T08:53:58.000Z
apps/siren/test_handlers.py
thomasyi17/diana2
2167053dfe15b782d96cb1e695047433f302d4dd
[ "MIT" ]
2
2019-01-23T21:13:12.000Z
2019-06-28T15:45:51.000Z
apps/siren/test_handlers.py
thomasyi17/diana2
2167053dfe15b782d96cb1e695047433f302d4dd
[ "MIT" ]
6
2019-01-23T20:22:50.000Z
2022-02-03T03:27:04.000Z
""" SIREN/DIANA basic functionality testing framework Requires env vars: - GMAIL_USER - GMAIL_APP_PASSWORD - GMAIL_BASE_NAME -- ie, abc -> abc+hobitduke@gmail.com These env vars are set to default: - ORTHANC_PASSWORD - SPLUNK_PASSWORD - SPLUNK_HEC_TOKEN TODO: Move stuff to archive after collected TODO: Write data i...
27.588235
151
0.648511
0
0
0
0
0
0
0
0
3,600
0.232603
43d0fea901e478a41a7213fecbddf4d86fc4b79e
6,735
py
Python
deptree.py
jeking3/boost-deptree
27eda54df2d022af17347df4ba4892c39392e474
[ "BSL-1.0" ]
null
null
null
deptree.py
jeking3/boost-deptree
27eda54df2d022af17347df4ba4892c39392e474
[ "BSL-1.0" ]
null
null
null
deptree.py
jeking3/boost-deptree
27eda54df2d022af17347df4ba4892c39392e474
[ "BSL-1.0" ]
null
null
null
# # Copyright (c) 2019 James E. King III # # Use, modification, and distribution are subject to the # Boost Software License, Version 1.0. (See accompanying file # LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt) # import json import networkx import re from pathlib import Path class BoostDependencyT...
40.572289
111
0.515367
5,578
0.828211
0
0
0
0
0
0
2,020
0.299926
43d13fbbdf77afe2138ccc76bfc3468760cf2d47
7,357
py
Python
uberbackend.py
adiHusky/uber_backend
adc78882c081f7636b809d6e1889ba3297309e20
[ "MIT" ]
null
null
null
uberbackend.py
adiHusky/uber_backend
adc78882c081f7636b809d6e1889ba3297309e20
[ "MIT" ]
null
null
null
uberbackend.py
adiHusky/uber_backend
adc78882c081f7636b809d6e1889ba3297309e20
[ "MIT" ]
null
null
null
from flask import Flask, flash, request, jsonify, render_template, redirect, url_for, g, session, send_from_directory, abort from flask_cors import CORS # from flask import status from datetime import date, datetime, timedelta from calendar import monthrange from dateutil.parser import parse import pytz import os impor...
29.079051
124
0.652984
409
0.055593
0
0
2,378
0.32323
0
0
2,613
0.355172
43d2040db0a01d747e5d0a9ffdc2859f95f69610
6,359
py
Python
sppas/sppas/src/models/acm/htkscripts.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
sppas/sppas/src/models/acm/htkscripts.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
sppas/sppas/src/models/acm/htkscripts.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
""" .. --------------------------------------------------------------------- ___ __ __ __ ___ / | \ | \ | \ / the automatic \__ |__/ |__/ |___| \__ annotation and \ | | | | \ analysis ___/...
32.610256
80
0.492845
4,887
0.768517
0
0
0
0
0
0
3,847
0.604969
43d3b50d90e2618726a0619c25ddcb995a36172f
2,961
py
Python
icekit/plugins/map/tests.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
52
2016-09-13T03:50:58.000Z
2022-02-23T16:25:08.000Z
icekit/plugins/map/tests.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
304
2016-08-11T14:17:30.000Z
2020-07-22T13:35:18.000Z
icekit/plugins/map/tests.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
12
2016-09-21T18:46:35.000Z
2021-02-15T19:37:50.000Z
from mock import patch from django.contrib.contenttypes.models import ContentType from django.contrib.sites.models import Site from django.contrib.auth import get_user_model from django.core import exceptions from django_dynamic_fixture import G from django_webtest import WebTest from icekit.models import Layout from...
38.960526
381
0.67207
2,494
0.842283
0
0
0
0
0
0
927
0.31307
43d418c8d833bba41481c7b2cbeab0fbbe8f44c5
548
py
Python
example/example.py
saravanabalagi/imshowtools
ea81af888c69223ff8b42b5c4b8c034483eebe21
[ "MIT" ]
4
2019-07-18T17:24:02.000Z
2020-10-14T06:09:05.000Z
example/example.py
saravanabalagi/imshowtools
ea81af888c69223ff8b42b5c4b8c034483eebe21
[ "MIT" ]
1
2020-04-18T01:05:22.000Z
2020-04-18T01:10:53.000Z
example/example.py
saravanabalagi/imshowtools
ea81af888c69223ff8b42b5c4b8c034483eebe21
[ "MIT" ]
null
null
null
from imshowtools import imshow import cv2 if __name__ == '__main__': image_lenna = cv2.imread("lenna.png") imshow(image_lenna, mode='BGR', window_title="LennaWindow", title="Lenna") image_lenna_bgr = cv2.imread("lenna_bgr.png") imshow(image_lenna, image_lenna_bgr, mode=['BGR', 'RGB'], title=['lenna_...
39.142857
109
0.678832
0
0
0
0
0
0
0
0
120
0.218978
43d619ff813d6467445c26ac811f7e5c110c5dd3
729
py
Python
terminalone/models/concept.py
amehta1/t1-python
4f7eb0bec7671b29baf3105b8cafafb373107e7b
[ "Apache-2.0" ]
24
2015-07-09T18:49:10.000Z
2021-06-07T18:36:58.000Z
terminalone/models/concept.py
amehta1/t1-python
4f7eb0bec7671b29baf3105b8cafafb373107e7b
[ "Apache-2.0" ]
100
2015-07-13T20:24:50.000Z
2020-08-10T11:16:39.000Z
terminalone/models/concept.py
amehta1/t1-python
4f7eb0bec7671b29baf3105b8cafafb373107e7b
[ "Apache-2.0" ]
36
2015-07-09T18:51:48.000Z
2022-02-14T22:44:37.000Z
# -*- coding: utf-8 -*- """Provides concept object.""" from __future__ import absolute_import from .. import t1types from ..entity import Entity class Concept(Entity): """Concept entity.""" collection = 'concepts' resource = 'concept' _relations = { 'advertiser', } _pull = { '...
22.78125
68
0.581619
580
0.79561
0
0
0
0
0
0
179
0.245542
43d690157e44125280f30cea5097fb9b835832b6
932
py
Python
videofeed.py
dmeklund/asyncdemo
956f193c0fa38744965362966ac7f8ef224409b4
[ "MIT" ]
null
null
null
videofeed.py
dmeklund/asyncdemo
956f193c0fa38744965362966ac7f8ef224409b4
[ "MIT" ]
null
null
null
videofeed.py
dmeklund/asyncdemo
956f193c0fa38744965362966ac7f8ef224409b4
[ "MIT" ]
null
null
null
""" Mock up a video feed pipeline """ import asyncio import logging import sys import cv2 logging.basicConfig(format="[%(thread)-5d]%(asctime)s: %(message)s") logger = logging.getLogger('async') logger.setLevel(logging.INFO) async def process_video(filename): cap = cv2.VideoCapture(filename) tasks = list() ...
22.731707
76
0.687768
0
0
0
0
0
0
524
0.562232
156
0.167382
43d763b4860a448a07b1ac979d461dd9025028b9
11,807
py
Python
parsers/read_lspci_and_glxinfo.py
mikeus9908/peracotta
c54c351acae8afec250185f4bc714a2f86c47c90
[ "MIT" ]
3
2019-04-01T17:28:20.000Z
2020-11-19T17:25:32.000Z
parsers/read_lspci_and_glxinfo.py
mikeus9908/peracotta
c54c351acae8afec250185f4bc714a2f86c47c90
[ "MIT" ]
142
2018-11-05T18:13:13.000Z
2022-03-12T17:43:40.000Z
parsers/read_lspci_and_glxinfo.py
mikeus9908/peracotta
c54c351acae8afec250185f4bc714a2f86c47c90
[ "MIT" ]
10
2019-10-25T12:28:37.000Z
2021-05-17T17:32:56.000Z
#!/usr/bin/python3 """ Read "lspci -v" and "glxinfo" outputs """ import re from dataclasses import dataclass from InputFileNotFoundError import InputFileNotFoundError @dataclass class VideoCard: type = "graphics-card" manufacturer_brand = "" reseller_brand = "" internal_name = "" model = "" ...
40.023729
121
0.510206
177
0.014991
0
0
188
0.015923
0
0
3,561
0.301601
43d8185a62fc1d316a49c5b7d44a50853bf56a88
9,682
py
Python
upload.py
snymainn/tools-
af57a1a4d0f1aecff33ab28c6f27acc893f37fbc
[ "MIT" ]
null
null
null
upload.py
snymainn/tools-
af57a1a4d0f1aecff33ab28c6f27acc893f37fbc
[ "MIT" ]
null
null
null
upload.py
snymainn/tools-
af57a1a4d0f1aecff33ab28c6f27acc893f37fbc
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys from loglib import SNYLogger import ftplib import argparse import re import os import calendar import time def read_skipfile(infile, log): skiplines = list() skipfile = open(infile, 'r') for line in skipfile: newline = line.rstrip('\r\n') linelength = len(...
37.968627
122
0.567858
0
0
0
0
0
0
0
0
3,168
0.327205
43d87b5ab1e5e10305ebbe366e85481beb47273f
2,637
py
Python
chapter2/intogen-arrays/src/mrna/mrna_comb_gene_classif.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
1
2015-12-22T00:53:18.000Z
2015-12-22T00:53:18.000Z
chapter2/intogen-arrays/src/mrna/mrna_comb_gene_classif.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
chapter2/intogen-arrays/src/mrna/mrna_comb_gene_classif.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python """ Classify oncodrive gene results and prepare for combination * Configuration parameters: - The ones required by intogen.data.entity.EntityManagerFactory * Input: - oncodrive_ids: The mrna.oncodrive_genes to process * Output: - combinations: The mrna.combination prepared to be calculated ...
21.975
115
0.680319
0
0
0
0
0
0
0
0
969
0.367463
43d8dcfde4fc817f885eb2d557c4f9603d6da4be
86
py
Python
src/FunctionApps/DevOps/tests/test_get_ip.py
CDCgov/prime-public-health-data-infrastructure
7e4849c3a486a84e94765bf0023b80261c510c57
[ "Apache-2.0" ]
3
2022-02-24T18:16:39.000Z
2022-03-29T20:21:41.000Z
src/FunctionApps/DevOps/tests/test_get_ip.py
CDCgov/prime-public-health-data-infrastructure
7e4849c3a486a84e94765bf0023b80261c510c57
[ "Apache-2.0" ]
17
2022-02-08T17:13:55.000Z
2022-03-28T16:49:00.000Z
src/FunctionApps/DevOps/tests/test_get_ip.py
CDCgov/prime-public-health-data-infrastructure
7e4849c3a486a84e94765bf0023b80261c510c57
[ "Apache-2.0" ]
3
2022-02-27T23:12:50.000Z
2022-03-17T04:51:47.000Z
def test_get_ip_placeholder(): """placeholder so pytest does not fail""" pass
21.5
45
0.697674
0
0
0
0
0
0
0
0
41
0.476744
43d92304705312e029e4656dd5bbcccaf8cbee7d
861
py
Python
data/models/svm_benchmark.py
Laurenhut/Machine_Learning_Final
4fca33754ef42acde504cc64e6bbe4e463caadf8
[ "MIT" ]
null
null
null
data/models/svm_benchmark.py
Laurenhut/Machine_Learning_Final
4fca33754ef42acde504cc64e6bbe4e463caadf8
[ "MIT" ]
null
null
null
data/models/svm_benchmark.py
Laurenhut/Machine_Learning_Final
4fca33754ef42acde504cc64e6bbe4e463caadf8
[ "MIT" ]
null
null
null
#!/usr/bin/env python from sklearn import svm import csv_io def main(): training, target = csv_io.read_data("../Data/train.csv") training = [x[1:] for x in training] target = [float(x) for x in target] test, throwaway = csv_io.read_data("../Data/test.csv") test = [x[1:] for x in test] svc = s...
31.888889
72
0.615563
0
0
0
0
0
0
0
0
426
0.494774
43d983edaa81a2f049c07647c3d3908b2dea574f
1,605
py
Python
configs/utils/config_generator.py
user-wu/SOD_eval_metrics
d5b8804580cb52a4237c8e613818d10591dc6597
[ "MIT" ]
null
null
null
configs/utils/config_generator.py
user-wu/SOD_eval_metrics
d5b8804580cb52a4237c8e613818d10591dc6597
[ "MIT" ]
null
null
null
configs/utils/config_generator.py
user-wu/SOD_eval_metrics
d5b8804580cb52a4237c8e613818d10591dc6597
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from matplotlib import colors # max = 148 _COLOR_Genarator = iter( sorted( [ color for name, color in colors.cnames.items() if name not in ["red", "white"] or not name.startswith("light") or "gray" in name ] ) ) def curve_info_gener...
29.181818
93
0.598754
0
0
0
0
0
0
0
0
227
0.141433
43db9748cf12932e64e00e512404058350f2661e
1,151
py
Python
core/sms_service.py
kartik1000/jcc-registration-portal
053eade1122fa760ae112a8599a396d68dfb16b8
[ "MIT" ]
null
null
null
core/sms_service.py
kartik1000/jcc-registration-portal
053eade1122fa760ae112a8599a396d68dfb16b8
[ "MIT" ]
null
null
null
core/sms_service.py
kartik1000/jcc-registration-portal
053eade1122fa760ae112a8599a396d68dfb16b8
[ "MIT" ]
null
null
null
from urllib.parse import urlencode from decouple import config import hashlib import requests BASE = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" auth_key = config('AUTH_KEY') url = 'http://sms.globehost.com/api/sendhttp.php?' def encode_base(num, array=BASE): if(num == 0): return arr...
23.979167
72
0.644657
0
0
0
0
0
0
0
0
306
0.265856
43dc511c1276023b6e01df3b43e2f8d7dd243462
1,522
py
Python
scripts/fetch_images.py
Protagonistss/sanic-for-v3
ba7e94273b77914b8d85d67cf513041ada00780d
[ "MIT" ]
null
null
null
scripts/fetch_images.py
Protagonistss/sanic-for-v3
ba7e94273b77914b8d85d67cf513041ada00780d
[ "MIT" ]
null
null
null
scripts/fetch_images.py
Protagonistss/sanic-for-v3
ba7e94273b77914b8d85d67cf513041ada00780d
[ "MIT" ]
null
null
null
import sys import os sys.path.append(os.pardir) import random import time import requests from contextlib import closing from help import utils from threading import Thread def get_train_set_path(path: str): create_path = utils.join_root_path(path) return create_path def create_train_set_dir(path='auth-se...
24.15873
79
0.660972
0
0
0
0
0
0
0
0
156
0.10143
43dd49ec321203c525ba8f13879673eb4d300e9f
3,912
py
Python
GeneralStats/example.py
haoruilee/statslibrary
01494043bc7fb82d4aa6d7d550a4e7dc2ac0503a
[ "MIT" ]
58
2019-02-04T13:53:16.000Z
2022-02-24T02:59:55.000Z
GeneralStats/example.py
haoruilee/statslibrary
01494043bc7fb82d4aa6d7d550a4e7dc2ac0503a
[ "MIT" ]
null
null
null
GeneralStats/example.py
haoruilee/statslibrary
01494043bc7fb82d4aa6d7d550a4e7dc2ac0503a
[ "MIT" ]
19
2019-03-21T01:54:55.000Z
2021-12-03T13:55:16.000Z
import GeneralStats as gs import numpy as np from scipy.stats import skew from scipy.stats import kurtosistest import pandas as pd if __name__ == "__main__": gen=gs.GeneralStats() data=np.array([[1, 1, 2, 2, 3],[2, 2, 3, 3, 5],[1, 4, 3, 3, 3],[2, 4, 5, 5, 3]]) data1=np.array([1,2,3,4,5]) ...
36.222222
109
0.576431
0
0
0
0
0
0
0
0
925
0.218987
43ddbd75df809ab6f556d3498600ef7c94a80521
16,408
py
Python
bootstrap.py
tqchen/yarn-ec2
303f3980ad41770011b72532ed9f7c6bbe876508
[ "Apache-2.0" ]
35
2016-02-23T19:15:46.000Z
2021-01-01T02:57:43.000Z
bootstrap.py
tqchen/cloud-scripts
303f3980ad41770011b72532ed9f7c6bbe876508
[ "Apache-2.0" ]
4
2016-11-12T16:49:16.000Z
2018-11-02T21:20:23.000Z
bootstrap.py
tqchen/yarn-ec2
303f3980ad41770011b72532ed9f7c6bbe876508
[ "Apache-2.0" ]
25
2016-02-26T20:28:13.000Z
2020-07-26T12:02:34.000Z
#!/usr/bin/env python # encoding: utf-8 """ script to install all the necessary things for working on a linux machine with nothing Installing minimum dependencies """ import sys import os import logging import subprocess import xml.etree.ElementTree as ElementTree import xml.dom.minidom as minidom import socket import...
37.461187
133
0.585629
0
0
0
0
0
0
0
0
7,199
0.438749
43de15a64fd73557d8ace8fe63e08534f03c9747
400
py
Python
intro/matplotlib/examples/plot_good.py
zmoon/scipy-lecture-notes
75a89ddedeb48930dbdb6fe25a76e9ef0587ae21
[ "CC-BY-4.0" ]
2,538
2015-01-01T04:58:41.000Z
2022-03-31T21:06:05.000Z
intro/matplotlib/examples/plot_good.py
zmoon/scipy-lecture-notes
75a89ddedeb48930dbdb6fe25a76e9ef0587ae21
[ "CC-BY-4.0" ]
362
2015-01-18T14:16:23.000Z
2021-11-18T16:24:34.000Z
intro/matplotlib/examples/plot_good.py
zmoon/scipy-lecture-notes
75a89ddedeb48930dbdb6fe25a76e9ef0587ae21
[ "CC-BY-4.0" ]
1,127
2015-01-05T14:39:29.000Z
2022-03-25T08:38:39.000Z
""" A simple, good-looking plot =========================== Demoing some simple features of matplotlib """ import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt fig = plt.figure(figsize=(5, 4), dpi=72) axes = fig.add_axes([0.01, 0.01, .98, 0.98]) X = np.linspace(0, 2, 200) Y = np...
18.181818
44
0.625
0
0
0
0
0
0
0
0
112
0.28
43de29ccab29a96dd8a22a7b82fb926f80943d99
4,087
py
Python
pfio/_context.py
HiroakiMikami/pfio
1ac997dcba7babd5d91dd8c4f2793d27a6bab69b
[ "MIT" ]
24
2020-05-23T13:00:27.000Z
2022-02-17T05:20:51.000Z
pfio/_context.py
HiroakiMikami/pfio
1ac997dcba7babd5d91dd8c4f2793d27a6bab69b
[ "MIT" ]
88
2020-05-01T06:56:50.000Z
2022-03-16T07:15:34.000Z
pfio/_context.py
HiroakiMikami/pfio
1ac997dcba7babd5d91dd8c4f2793d27a6bab69b
[ "MIT" ]
9
2020-05-07T05:47:35.000Z
2022-02-09T05:42:56.000Z
import os import re from typing import Tuple from pfio._typing import Union from pfio.container import Container from pfio.io import IO, create_fs_handler class FileSystemDriverList(object): def __init__(self): # TODO(tianqi): dynamically create this list # as well as the patterns upon loading th...
35.232759
79
0.614387
3,925
0.960362
0
0
0
0
0
0
282
0.068999
43e09c3343b0c13466ea8190e66d19dfafb80ae6
9,330
py
Python
parser/fase2/team19/Analisis_Ascendente/Instrucciones/PLPGSQL/Ifpl.py
Josue-Zea/tytus
f9e4be9a8c03eb698fade7a748972e4f52d46685
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
parser/fase2/team19/Analisis_Ascendente/Instrucciones/PLPGSQL/Ifpl.py
Josue-Zea/tytus
f9e4be9a8c03eb698fade7a748972e4f52d46685
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
parser/fase2/team19/Analisis_Ascendente/Instrucciones/PLPGSQL/Ifpl.py
Josue-Zea/tytus
f9e4be9a8c03eb698fade7a748972e4f52d46685
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
import Analisis_Ascendente.Instrucciones.PLPGSQL.EjecutarFuncion as EjecutarFuncion from Analisis_Ascendente.Instrucciones.PLPGSQL.plasignacion import Plasignacion from Analisis_Ascendente.Instrucciones.instruccion import Instruccion from Analisis_Ascendente.Instrucciones.Create.createTable import CreateTable from ...
47.121212
111
0.653805
7,008
0.751125
0
0
0
0
0
0
754
0.080815
43e0bf1b8f706e0abd42a5ac8a65294eb668c3ab
183
py
Python
epages_client/dataobjects/enum_fetch_operator.py
vilkasgroup/epages_client
10e63d957ee45dc5d4df741064806f724fb1be1f
[ "MIT" ]
3
2018-01-26T13:44:26.000Z
2020-05-13T13:58:19.000Z
epages_client/dataobjects/enum_fetch_operator.py
vilkasgroup/epages_client
10e63d957ee45dc5d4df741064806f724fb1be1f
[ "MIT" ]
53
2018-02-05T10:59:22.000Z
2022-01-01T19:31:08.000Z
epages_client/dataobjects/enum_fetch_operator.py
vilkasgroup/epages_client
10e63d957ee45dc5d4df741064806f724fb1be1f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals class FetchOperator(object): '''Defines values for fetch operators''' ADD = 1 REMOVE = 2 REPLACE = 3
18.3
44
0.650273
116
0.63388
0
0
0
0
0
0
63
0.344262
43e232a6058aefed0715e6e5fea4ed4fd550c388
6,067
py
Python
pyhwpscan/hwp_scan.py
orca-eaa5a/dokkaebi_scanner
756314376e2cbbce6c03fd908ebd0b8cc27aa7fc
[ "MIT" ]
null
null
null
pyhwpscan/hwp_scan.py
orca-eaa5a/dokkaebi_scanner
756314376e2cbbce6c03fd908ebd0b8cc27aa7fc
[ "MIT" ]
1
2022-02-17T15:01:29.000Z
2022-02-20T07:15:31.000Z
pyhwpscan/hwp_scan.py
orca-eaa5a/dokkaebi_scanner
756314376e2cbbce6c03fd908ebd0b8cc27aa7fc
[ "MIT" ]
null
null
null
from threading import current_thread from jsbeautifier.javascript.beautifier import remove_redundant_indentation from pyparser.oleparser import OleParser from pyparser.hwp_parser import HwpParser from scan.init_scan import init_hwp5_scan from scan.bindata_scanner import BinData_Scanner from scan.jscript_scanner import...
29.309179
102
0.543926
2,644
0.4358
0
0
0
0
0
0
916
0.150981
43e2d67fdf43b1951abb85a9aaab6711fb8852be
1,132
py
Python
tests/core/test_plugins.py
franalgaba/nile
f771467f27f03c8d20b8032bac64b3ab60436d3c
[ "MIT" ]
null
null
null
tests/core/test_plugins.py
franalgaba/nile
f771467f27f03c8d20b8032bac64b3ab60436d3c
[ "MIT" ]
null
null
null
tests/core/test_plugins.py
franalgaba/nile
f771467f27f03c8d20b8032bac64b3ab60436d3c
[ "MIT" ]
null
null
null
""" Tests for plugins in core module. Only unit tests for now. """ from unittest.mock import patch import click from nile.core.plugins import get_installed_plugins, load_plugins, skip_click_exit def test_skip_click_exit(): def dummy_method(a, b): return a + b dummy_result = dummy_method(1, 2) ...
22.64
82
0.681095
109
0.09629
0
0
72
0.063604
0
0
269
0.237633
43e2e7854a4f56963d0c0900b0d6355f030a3675
339
py
Python
commands/source.py
Open-Source-eUdeC/UdeCursos-bot
f900073044e1c74532af532618672501c0a43a13
[ "MIT" ]
3
2022-03-01T17:14:06.000Z
2022-03-15T21:15:44.000Z
commands/source.py
Open-Source-eUdeC/UdeCursos-bot
f900073044e1c74532af532618672501c0a43a13
[ "MIT" ]
1
2022-03-07T20:59:20.000Z
2022-03-07T20:59:20.000Z
commands/source.py
Open-Source-eUdeC/UdeCursos-bot
f900073044e1c74532af532618672501c0a43a13
[ "MIT" ]
2
2022-02-28T19:32:54.000Z
2022-03-12T20:19:39.000Z
async def source(update, context): source_code = "https://github.com/Open-Source-eUdeC/UdeCursos-bot" await context.bot.send_message( chat_id=update.effective_chat.id, text=( "*UdeCursos bot v2.0*\n\n" f"Código fuente: [GitHub]({source_code})" ), parse_mod...
30.818182
70
0.60177
0
0
0
0
0
0
339
0.997059
130
0.382353
43e3929f6d656cd5f3e6cf6054493ace5b92bd70
1,255
py
Python
history/tests.py
MPIB/Lagerregal
3c950dffcf4fa164008c5a304c4839bc282a3388
[ "BSD-3-Clause" ]
24
2017-03-19T16:17:37.000Z
2021-11-07T15:35:33.000Z
history/tests.py
MPIB/Lagerregal
3c950dffcf4fa164008c5a304c4839bc282a3388
[ "BSD-3-Clause" ]
117
2016-04-19T12:35:10.000Z
2022-02-22T13:19:05.000Z
history/tests.py
MPIB/Lagerregal
3c950dffcf4fa164008c5a304c4839bc282a3388
[ "BSD-3-Clause" ]
11
2017-08-08T12:11:39.000Z
2021-12-08T05:34:06.000Z
from django.contrib.contenttypes.models import ContentType from django.test import TestCase from django.test.client import Client from model_mommy import mommy from devices.models import Device from users.models import Lageruser class HistoryTests(TestCase): def setUp(self): self.client = Client() ...
34.861111
88
0.67251
1,021
0.813546
0
0
0
0
0
0
143
0.113944
78d8d23f31a9ec6e42dd56f7cc23f8c31fbd70c2
376
py
Python
django_git_info/management/commands/get_git_info.py
spapas/django-git
a62215d315263bce5d5d0afcfa14152601f76901
[ "MIT" ]
1
2019-03-15T10:32:21.000Z
2019-03-15T10:32:21.000Z
django_git_info/management/commands/get_git_info.py
spapas/django-git
a62215d315263bce5d5d0afcfa14152601f76901
[ "MIT" ]
null
null
null
django_git_info/management/commands/get_git_info.py
spapas/django-git
a62215d315263bce5d5d0afcfa14152601f76901
[ "MIT" ]
1
2016-03-25T03:57:49.000Z
2016-03-25T03:57:49.000Z
# -*- coding: utf-8 -*- from django.core.management.base import BaseCommand, CommandError from django_git_info import get_git_info class Command(BaseCommand): help = 'Gets git info' #@transaction.commit_manually def handle(self, *args, **options): info = get_git_info() for key in info.ke...
26.857143
65
0.656915
242
0.643617
0
0
0
0
0
0
76
0.202128
78db0363110019cfe555b18f1fdc95de024b7945
19,306
py
Python
mevis/_internal/conversion.py
robert-haas/mevis
1bbf8dfb56aa8fc52b8f38c570ee7b2d2a9d3327
[ "Apache-2.0" ]
2
2022-01-12T23:08:52.000Z
2022-01-12T23:21:23.000Z
mevis/_internal/conversion.py
robert-haas/mevis
1bbf8dfb56aa8fc52b8f38c570ee7b2d2a9d3327
[ "Apache-2.0" ]
null
null
null
mevis/_internal/conversion.py
robert-haas/mevis
1bbf8dfb56aa8fc52b8f38c570ee7b2d2a9d3327
[ "Apache-2.0" ]
null
null
null
from collections.abc import Callable as _Callable import networkx as _nx from opencog.type_constructors import AtomSpace as _AtomSpace from .args import check_arg as _check_arg def convert(data, graph_annotated=True, graph_directed=True, node_label=None, node_color=None, node_opacity=None, node_size=Non...
38.923387
97
0.682897
0
0
0
0
0
0
0
0
9,574
0.495908
78db1f0ed3fd45150eca94cbff8fdb625dd1d917
156
py
Python
testData/completion/classMethodCls.py
seandstewart/typical-pycharm-plugin
4f6ec99766239421201faae9d75c32fa0ee3565a
[ "MIT" ]
null
null
null
testData/completion/classMethodCls.py
seandstewart/typical-pycharm-plugin
4f6ec99766239421201faae9d75c32fa0ee3565a
[ "MIT" ]
null
null
null
testData/completion/classMethodCls.py
seandstewart/typical-pycharm-plugin
4f6ec99766239421201faae9d75c32fa0ee3565a
[ "MIT" ]
null
null
null
from builtins import * from pydantic import BaseModel class A(BaseModel): abc: str @classmethod def test(cls): return cls.<caret>
11.142857
30
0.647436
96
0.615385
0
0
58
0.371795
0
0
0
0
78db3efa5c77dd290cf1467f8ac973b8fc19949b
13,168
py
Python
watcher_metering/tests/agent/test_agent.py
b-com/watcher-metering
7c09b243347146e5a421700d5b07d1d0a5c4d604
[ "Apache-2.0" ]
2
2015-10-22T19:44:57.000Z
2017-06-15T15:01:07.000Z
watcher_metering/tests/agent/test_agent.py
b-com/watcher-metering
7c09b243347146e5a421700d5b07d1d0a5c4d604
[ "Apache-2.0" ]
1
2015-10-26T13:52:58.000Z
2015-10-26T13:52:58.000Z
watcher_metering/tests/agent/test_agent.py
b-com/watcher-metering
7c09b243347146e5a421700d5b07d1d0a5c4d604
[ "Apache-2.0" ]
4
2015-10-10T13:59:39.000Z
2020-05-29T11:47:07.000Z
# -*- encoding: utf-8 -*- # Copyright (c) 2015 b<>com # # 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 o...
40.024316
79
0.659478
11,817
0.897403
0
0
7,212
0.547691
0
0
3,277
0.248861
78dce9aa3f78b6fd58cffc69a08166742b99da9b
31,044
py
Python
mmtbx/bulk_solvent/mosaic.py
ndevenish/cctbx_project
1f1a2627ae20d01d403f367948e7269cef0f0217
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/bulk_solvent/mosaic.py
ndevenish/cctbx_project
1f1a2627ae20d01d403f367948e7269cef0f0217
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/bulk_solvent/mosaic.py
ndevenish/cctbx_project
1f1a2627ae20d01d403f367948e7269cef0f0217
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import absolute_import, division, print_function from cctbx.array_family import flex from scitbx import matrix import math from libtbx import adopt_init_args import scitbx.lbfgs from mmtbx.bulk_solvent import kbu_refinery from cctbx import maptbx import mmtbx.masks import boost_adaptbx.boost.python as b...
36.266355
107
0.60862
19,424
0.625693
0
0
0
0
0
0
5,575
0.179584
78ddef69c8c618801719da4ee218c45f1df458b0
25,941
py
Python
mars/tensor/execution/tests/test_base_execute.py
lmatz/mars
45f9166b54eb91b21e66cef8b590a41aa8ac9569
[ "Apache-2.0" ]
1
2018-12-26T08:37:04.000Z
2018-12-26T08:37:04.000Z
mars/tensor/execution/tests/test_base_execute.py
lmatz/mars
45f9166b54eb91b21e66cef8b590a41aa8ac9569
[ "Apache-2.0" ]
null
null
null
mars/tensor/execution/tests/test_base_execute.py
lmatz/mars
45f9166b54eb91b21e66cef8b590a41aa8ac9569
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2018 Alibaba Group Holding Ltd. # # 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-...
34.132895
110
0.596623
24,622
0.949154
0
0
0
0
0
0
728
0.028064
78ddf0916f6002f2dfd416cfa16eaf9855682728
77
py
Python
comix-imagenet/init_paths.py
drumpt/Co-Mixup
4c43f0ec873ce6c1e8ab446c7cb9e25089b9b91a
[ "MIT" ]
86
2021-02-05T03:13:09.000Z
2022-03-29T03:10:50.000Z
comix-imagenet/init_paths.py
drumpt/Co-Mixup
4c43f0ec873ce6c1e8ab446c7cb9e25089b9b91a
[ "MIT" ]
4
2021-06-01T13:07:06.000Z
2022-02-15T03:08:30.000Z
comix-imagenet/init_paths.py
drumpt/Co-Mixup
4c43f0ec873ce6c1e8ab446c7cb9e25089b9b91a
[ "MIT" ]
7
2021-02-09T01:27:03.000Z
2021-09-01T14:07:40.000Z
import sys import matplotlib matplotlib.use('Agg') sys.path.insert(0, 'lib')
15.4
25
0.753247
0
0
0
0
0
0
0
0
10
0.12987
78de98de938be5cc3ac224e5095778425f0adabc
14,828
py
Python
members_abundances_in_out_uncertainties.py
kcotar/Gaia_clusters_potential
aee2658c40446891d31528f8dec3cec899b63c68
[ "MIT" ]
null
null
null
members_abundances_in_out_uncertainties.py
kcotar/Gaia_clusters_potential
aee2658c40446891d31528f8dec3cec899b63c68
[ "MIT" ]
null
null
null
members_abundances_in_out_uncertainties.py
kcotar/Gaia_clusters_potential
aee2658c40446891d31528f8dec3cec899b63c68
[ "MIT" ]
null
null
null
import matplotlib matplotlib.use('Agg') import numpy as np import matplotlib.pyplot as plt from glob import glob from astropy.table import Table, join from os import chdir, system from scipy.stats import norm as gauss_norm from sys import argv from getopt import getopt # turn off polyfit ranking warnings import warnin...
43.740413
215
0.55874
0
0
0
0
0
0
0
0
2,631
0.177435
78df11b8ab67a00fef993f03b911ed0dd7fc3180
707
py
Python
src/python_minifier/transforms/remove_pass.py
donno2048/python-minifier
9a9ff4dd5d2bb8dc666cae5939c125d420c2ffd5
[ "MIT" ]
null
null
null
src/python_minifier/transforms/remove_pass.py
donno2048/python-minifier
9a9ff4dd5d2bb8dc666cae5939c125d420c2ffd5
[ "MIT" ]
null
null
null
src/python_minifier/transforms/remove_pass.py
donno2048/python-minifier
9a9ff4dd5d2bb8dc666cae5939c125d420c2ffd5
[ "MIT" ]
null
null
null
import ast from python_minifier.transforms.suite_transformer import SuiteTransformer class RemovePass(SuiteTransformer): """ Remove Pass keywords from source If a statement is syntactically necessary, use an empty expression instead """ def __call__(self, node): return self.visit(node) ...
27.192308
106
0.649222
618
0.874116
0
0
0
0
0
0
128
0.181047
78df4f62738c15a3903b9ac814a118e7bd487166
1,214
py
Python
test/tests.py
gzu300/Linear_Algebra
437a285b0230f4da8b0573b04da32ee965b09233
[ "MIT" ]
null
null
null
test/tests.py
gzu300/Linear_Algebra
437a285b0230f4da8b0573b04da32ee965b09233
[ "MIT" ]
null
null
null
test/tests.py
gzu300/Linear_Algebra
437a285b0230f4da8b0573b04da32ee965b09233
[ "MIT" ]
null
null
null
import unittest from pkg import Linear_Algebra import numpy as np class TestLU(unittest.TestCase): def setUp(self): self.U_answer = np.around(np.array([[2,1,0],[0,3/2,1],[0,0,4/3]], dtype=float), decimals=2).tolist() self.L_answer = np.around(np.array([[1,0,0],[1/2,1,0],[0,2/3,1]], dtype=float), de...
41.862069
128
0.629325
1,093
0.900329
0
0
0
0
0
0
10
0.008237
78e0a22b8b4b6603603bcdb8feefa51265cf9c14
345
py
Python
src/backend/common/models/favorite.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
266
2015-01-04T00:10:48.000Z
2022-03-28T18:42:05.000Z
src/backend/common/models/favorite.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
2,673
2015-01-01T20:14:33.000Z
2022-03-31T18:17:16.000Z
src/backend/common/models/favorite.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
230
2015-01-04T00:10:48.000Z
2022-03-26T18:12:04.000Z
from backend.common.models.mytba import MyTBAModel class Favorite(MyTBAModel): """ In order to make strongly consistent DB requests, instances of this class should be created with a parent that is the associated Account key. """ def __init__(self, *args, **kwargs): super(Favorite, self)._...
28.75
77
0.704348
291
0.843478
0
0
0
0
0
0
161
0.466667
78e27b1810b0eb666d13182e83f2f3c881794f6e
17,296
py
Python
Cartwheel/lib/Python26/Lib/site-packages/wx-2.8-msw-unicode/wx/lib/filebrowsebutton.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
27
2020-11-12T19:24:54.000Z
2022-03-27T23:10:45.000Z
Cartwheel/lib/Python26/Lib/site-packages/wx-2.8-msw-unicode/wx/lib/filebrowsebutton.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
2
2020-11-02T06:30:39.000Z
2022-02-23T18:39:55.000Z
Cartwheel/lib/Python26/Lib/site-packages/wx-2.8-msw-unicode/wx/lib/filebrowsebutton.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
3
2021-08-16T00:21:08.000Z
2022-02-23T19:19:36.000Z
#---------------------------------------------------------------------- # Name: wxPython.lib.filebrowsebutton # Purpose: Composite controls that provide a Browse button next to # either a wxTextCtrl or a wxComboBox. The Browse button # launches a wxFileDialog and loads the result i...
36.721868
95
0.566142
16,197
0.936459
0
0
0
0
0
0
5,492
0.31753
78e3235c058d0f0d01fe78bcda45b0e5210cc956
3,798
py
Python
modules/pygsm/devicewrapper.py
whanderley/eden
08ced3be3d52352c54cbd412ed86128fbb68b1d2
[ "MIT" ]
205
2015-01-20T08:26:09.000Z
2022-03-27T19:59:33.000Z
modules/pygsm/devicewrapper.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
249
2015-02-10T09:56:35.000Z
2022-03-23T19:54:36.000Z
modules/pygsm/devicewrapper.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
231
2015-02-10T09:33:17.000Z
2022-02-18T19:56:05.000Z
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 # arch: pacman -S python-pyserial # debian/ubuntu: apt-get install python-serial import serial import re import errors class DeviceWrapper(object): def __init__(self, logger, *args, **kwargs): self.device = serial.Serial(*args, **kwarg...
35.166667
84
0.561611
3,607
0.94971
0
0
0
0
0
0
1,618
0.426014
78e3d8480adc030df86059c4a34f7c8aad96d287
306
py
Python
day1/loops.py
alqmy/The-Garage-Summer-Of-Code
af310d5e5194a62962db2fc1e601099468251efa
[ "MIT" ]
null
null
null
day1/loops.py
alqmy/The-Garage-Summer-Of-Code
af310d5e5194a62962db2fc1e601099468251efa
[ "MIT" ]
null
null
null
day1/loops.py
alqmy/The-Garage-Summer-Of-Code
af310d5e5194a62962db2fc1e601099468251efa
[ "MIT" ]
null
null
null
# while True: # # ejecuta esto # print("Hola") real = 7 print("Entre un numero entre el 1 y el 10") guess = int(input()) # =/= while guess != real: print("Ese no es el numero") print("Entre un numero entre el 1 y el 10") guess = int(input()) # el resto print("Yay! Lo sacastes!")
16.105263
47
0.591503
0
0
0
0
0
0
0
0
180
0.588235
78e51986ef4ee9e7c7af6f2a83426baeaab981b9
1,426
py
Python
pentest-scripts/learning-python-for-forensics/Chapter 6/rot13.py
paulveillard/cybersecurity-penetration-testing
a5afff13ec25afd0cf16ef966d35bddb91518af4
[ "Apache-2.0" ]
6
2021-12-07T21:02:12.000Z
2022-03-03T12:08:14.000Z
pentest-scripts/learning-python-for-forensics/Chapter 6/rot13.py
paulveillard/cybersecurity-penetration-testing
a5afff13ec25afd0cf16ef966d35bddb91518af4
[ "Apache-2.0" ]
null
null
null
pentest-scripts/learning-python-for-forensics/Chapter 6/rot13.py
paulveillard/cybersecurity-penetration-testing
a5afff13ec25afd0cf16ef966d35bddb91518af4
[ "Apache-2.0" ]
1
2022-01-15T23:57:36.000Z
2022-01-15T23:57:36.000Z
def rotCode(data): """ The rotCode function encodes/decodes data using string indexing :param data: A string :return: The rot-13 encoded/decoded string """ rot_chars = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', '...
33.162791
90
0.47756
0
0
0
0
0
0
0
0
524
0.367461
78e6e9a7d73aab5ad3ba5822b10f0996d16afd5b
1,762
py
Python
examples/sim_tfidf.py
sunyilgdx/CwVW-SIF
85ef56d80512e2f6bff1266e030552075566b240
[ "MIT" ]
12
2019-05-14T10:31:53.000Z
2022-01-20T17:16:59.000Z
examples/sim_tfidf.py
sunyilgdx/CwVW-SIF
85ef56d80512e2f6bff1266e030552075566b240
[ "MIT" ]
null
null
null
examples/sim_tfidf.py
sunyilgdx/CwVW-SIF
85ef56d80512e2f6bff1266e030552075566b240
[ "MIT" ]
1
2020-12-21T09:16:51.000Z
2020-12-21T09:16:51.000Z
import pickle, sys sys.path.append('../src') import data_io, sim_algo, eval, params ## run # wordfiles = [#'../data/paragram_sl999_small.txt', # need to download it from John Wieting's github (https://github.com/jwieting/iclr2016) # '../data/glove.840B.300d.txt' # need to download it first # ] wordfiles = [#...
39.155556
139
0.685585
0
0
0
0
0
0
0
0
905
0.513621
78e748ebc4d60824e0cdf86518ddf127e1b97b2b
120
py
Python
tests/cases/cls.py
div72/py2many
60277bc13597bd32d078b88a7390715568115fc6
[ "MIT" ]
345
2021-01-28T17:33:08.000Z
2022-03-25T16:07:56.000Z
tests/cases/cls.py
mkos11/py2many
be6cfaad5af32c43eb24f182cb20ad63b979d4ef
[ "MIT" ]
291
2021-01-31T13:15:06.000Z
2022-03-23T21:28:49.000Z
tests/cases/cls.py
mkos11/py2many
be6cfaad5af32c43eb24f182cb20ad63b979d4ef
[ "MIT" ]
23
2021-02-09T17:15:03.000Z
2022-02-03T05:57:44.000Z
class Foo: def bar(self): return "a" if __name__ == "__main__": f = Foo() b = f.bar() print(b)
13.333333
26
0.483333
48
0.4
0
0
0
0
0
0
13
0.108333
78e74ab110d94c6516104012ed887badd152a66c
1,602
py
Python
theano-rfnn/mnist_loader.py
jhja/RFNN
a63641d6e584df743a5e0a9efaf41911f057a977
[ "MIT" ]
55
2016-05-11T18:53:30.000Z
2022-02-22T12:31:08.000Z
theano-rfnn/mnist_loader.py
jhja/RFNN
a63641d6e584df743a5e0a9efaf41911f057a977
[ "MIT" ]
null
null
null
theano-rfnn/mnist_loader.py
jhja/RFNN
a63641d6e584df743a5e0a9efaf41911f057a977
[ "MIT" ]
14
2016-08-16T02:00:47.000Z
2022-03-08T13:16:00.000Z
import numpy as np import os from random import shuffle datasets_dir = './../data/' def one_hot(x,n): if type(x) == list: x = np.array(x) x = x.flatten() o_h = np.zeros((len(x),n)) o_h[np.arange(len(x)),x] = 1 return o_h def mnist(ntrain=60000,ntest=10000,onehot=True): ntrain=np.array(ntrain).astype(int).s...
26.262295
63
0.624844
0
0
0
0
0
0
0
0
118
0.073658
78e7d5ba18b9d335d132f7d6ec0d73b6ca3d020d
686
py
Python
Ejercicio 2.py
crltsnch/Ejercicios-grupales
72e01d6489816ea1b9308af1abd62792e5464c93
[ "Apache-2.0" ]
null
null
null
Ejercicio 2.py
crltsnch/Ejercicios-grupales
72e01d6489816ea1b9308af1abd62792e5464c93
[ "Apache-2.0" ]
null
null
null
Ejercicio 2.py
crltsnch/Ejercicios-grupales
72e01d6489816ea1b9308af1abd62792e5464c93
[ "Apache-2.0" ]
null
null
null
import math import os import random import re import sys def compareTriplets(a, b): puntosA=0 puntosB=0 for i in range (0,3): if a[i]<b[i]: puntosB+=1 elif a[i]>b[i]: puntosA+=1 puntosTotales=[puntosA, puntosB] return puntosTotales if __name__ == '__mai...
21.4375
65
0.580175
0
0
0
0
0
0
0
0
96
0.139942
78ed1b7fc24c0d300d3ad14111db8c17f3c020fd
5,401
py
Python
app/routes/router.py
nityagautam/ReportDashboard-backend
d23fe008cb0df6a703fcd665181897a75b71d5b2
[ "MIT" ]
1
2021-05-06T09:48:46.000Z
2021-05-06T09:48:46.000Z
app/routes/router.py
nityagautam/ReportDashboard
d23fe008cb0df6a703fcd665181897a75b71d5b2
[ "MIT" ]
2
2021-09-09T05:34:33.000Z
2021-12-13T15:31:36.000Z
app/routes/router.py
nityagautam/ReportDashboard
d23fe008cb0df6a703fcd665181897a75b71d5b2
[ "MIT" ]
null
null
null
#=============================================================== # @author: nityanarayan44@live.com # @written: 08 December 2021 # @desc: Routes for the Backend server #=============================================================== # Import section with referecne of entry file or main file; from __main__ i...
38.035211
99
0.549713
0
0
0
0
3,903
0.722644
0
0
2,858
0.529161
78eed98843af7c2acb54d95dbb60b3f984e9337b
15,624
py
Python
idaes/generic_models/properties/core/examples/ASU_PR.py
carldlaird/idaes-pse
cc7a32ca9fa788f483fa8ef85f3d1186ef4a596f
[ "RSA-MD" ]
112
2019-02-11T23:16:36.000Z
2022-03-23T20:59:57.000Z
idaes/generic_models/properties/core/examples/ASU_PR.py
carldlaird/idaes-pse
cc7a32ca9fa788f483fa8ef85f3d1186ef4a596f
[ "RSA-MD" ]
621
2019-03-01T14:44:12.000Z
2022-03-31T19:49:25.000Z
idaes/generic_models/properties/core/examples/ASU_PR.py
carldlaird/idaes-pse
cc7a32ca9fa788f483fa8ef85f3d1186ef4a596f
[ "RSA-MD" ]
154
2019-02-01T23:46:33.000Z
2022-03-23T15:07:10.000Z
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021 # by the softwar...
51.394737
91
0.473374
0
0
0
0
0
0
0
0
5,773
0.369496
78efdc29bbe17ba841a42c2ad2e6e9e8b6de242a
34
py
Python
tests/functional/test_calculator.py
bellanov/calculator
a66e68a368a5212247aeff3291c9cb8b508e91be
[ "Apache-2.0" ]
null
null
null
tests/functional/test_calculator.py
bellanov/calculator
a66e68a368a5212247aeff3291c9cb8b508e91be
[ "Apache-2.0" ]
null
null
null
tests/functional/test_calculator.py
bellanov/calculator
a66e68a368a5212247aeff3291c9cb8b508e91be
[ "Apache-2.0" ]
1
2021-05-26T16:54:17.000Z
2021-05-26T16:54:17.000Z
"""TODO: Move the Threads Here"""
17
33
0.647059
0
0
0
0
0
0
0
0
33
0.970588
78f03cf1af94e18c9a855dfd8bbdda1565566674
17,569
py
Python
autokeras/hypermodel/graph.py
Sette/autokeras
c5a83607a899ad545916b3794561d6908d9cdbac
[ "MIT" ]
null
null
null
autokeras/hypermodel/graph.py
Sette/autokeras
c5a83607a899ad545916b3794561d6908d9cdbac
[ "MIT" ]
null
null
null
autokeras/hypermodel/graph.py
Sette/autokeras
c5a83607a899ad545916b3794561d6908d9cdbac
[ "MIT" ]
null
null
null
import functools import pickle import kerastuner import tensorflow as tf from tensorflow.python.util import nest from autokeras.hypermodel import base from autokeras.hypermodel import compiler class Graph(kerastuner.engine.stateful.Stateful): """A graph consists of connected Blocks, HyperBlocks, Preprocessors o...
37.620985
85
0.594001
17,224
0.980363
0
0
318
0.0181
0
0
3,967
0.225795
78f06ac9567797f0104f062bd9b9ac12e57cffa6
474
py
Python
Python/longest-valid-parentheses.py
shreyventure/LeetCode-Solutions
74423d65702b78974e390f17c9d6365d17e6eed5
[ "MIT" ]
388
2020-06-29T08:41:27.000Z
2022-03-31T22:55:05.000Z
Python/longest-valid-parentheses.py
shreyventure/LeetCode-Solutions
74423d65702b78974e390f17c9d6365d17e6eed5
[ "MIT" ]
178
2020-07-16T17:15:28.000Z
2022-03-09T21:01:50.000Z
Python/longest-valid-parentheses.py
shreyventure/LeetCode-Solutions
74423d65702b78974e390f17c9d6365d17e6eed5
[ "MIT" ]
263
2020-07-13T18:33:20.000Z
2022-03-28T13:54:10.000Z
''' Speed: 95.97% Memory: 24.96% Time complexity: O(n) Space complexity: O(n) ''' class Solution(object): def longestValidParentheses(self, s): ans=0 stack=[-1] for i in range(len(s)): if(s[i]=='('): stack.append(i) else: stack.pop() ...
23.7
44
0.436709
392
0.827004
0
0
0
0
0
0
84
0.177215
78f17ff49e114c184b6a1474d4e3188bcdc4d56c
447
py
Python
setup.py
i25ffz/openaes
a0dbde40d4ce0e4186ea14c4dc9519fe152c018c
[ "BSD-2-Clause" ]
null
null
null
setup.py
i25ffz/openaes
a0dbde40d4ce0e4186ea14c4dc9519fe152c018c
[ "BSD-2-Clause" ]
null
null
null
setup.py
i25ffz/openaes
a0dbde40d4ce0e4186ea14c4dc9519fe152c018c
[ "BSD-2-Clause" ]
null
null
null
from distutils.core import setup, Extension import os.path kw = { 'name':"PyOpenAES", 'version':"0.10.0", 'description':"OpenAES cryptographic library for Python.", 'ext_modules':[ Extension( 'openaes', include_dirs = ['inc', 'src/isaac'], # define_macros=[('ENABLE_PYTHON', '1')], sources = [ os....
20.318182
59
0.624161
0
0
0
0
0
0
0
0
218
0.487696
78f2293017d6edca3048eb7b10371f7d73e4c830
967
py
Python
examples/isosurface_demo2.py
jayvdb/scitools
8df53a3a3bc95377f9fa85c04f3a329a0ec33e67
[ "BSD-3-Clause" ]
62
2015-03-28T18:07:51.000Z
2022-02-12T20:32:36.000Z
examples/isosurface_demo2.py
jayvdb/scitools
8df53a3a3bc95377f9fa85c04f3a329a0ec33e67
[ "BSD-3-Clause" ]
7
2015-06-09T09:56:03.000Z
2021-05-20T17:53:15.000Z
examples/isosurface_demo2.py
jayvdb/scitools
8df53a3a3bc95377f9fa85c04f3a329a0ec33e67
[ "BSD-3-Clause" ]
29
2015-04-16T03:48:57.000Z
2022-02-03T22:06:52.000Z
#!/usr/bin/env python # Example taken from: # http://www.mathworks.com/access/helpdesk/help/techdoc/visualize/f5-3371.html from scitools.easyviz import * from time import sleep from scipy import io setp(interactive=False) # Displaying an Isosurface: mri = io.loadmat('mri_matlab_v6.mat') D = mri['D'] #Ds = smooth3(D...
20.574468
78
0.701138
0
0
0
0
0
0
0
0
714
0.738366
78f2658f7e058410b484a9d45fd69949bca2813c
4,099
py
Python
structural_model/util_morphology.py
zibneuro/udvary-et-al-2022
8b456c41e72958677cb6035028d9c23013cb7c7e
[ "MIT" ]
1
2022-03-11T13:43:50.000Z
2022-03-11T13:43:50.000Z
structural_model/util_morphology.py
zibneuro/udvary-et-al-2022
8b456c41e72958677cb6035028d9c23013cb7c7e
[ "MIT" ]
null
null
null
structural_model/util_morphology.py
zibneuro/udvary-et-al-2022
8b456c41e72958677cb6035028d9c23013cb7c7e
[ "MIT" ]
null
null
null
import os import numpy as np import json import util_amira def getEdgeLabelName(label): if(label == 6): return "axon" elif(label == 4): return "apical" elif(label == 5): return "basal" elif(label == 7): return "soma" else: return "other" def getSomaPositio...
32.275591
138
0.613808
0
0
0
0
0
0
0
0
644
0.157111
78f33bf3b80a0a0d98e998f783441284fa1b3068
3,503
py
Python
invenio_madmp/views.py
FAIR-Data-Austria/invenio-madmp
74372ee794f81666f5e9cf08ef448c21b2e428be
[ "MIT" ]
1
2022-03-02T10:37:29.000Z
2022-03-02T10:37:29.000Z
invenio_madmp/views.py
FAIR-Data-Austria/invenio-madmp
74372ee794f81666f5e9cf08ef448c21b2e428be
[ "MIT" ]
9
2020-08-25T12:03:08.000Z
2020-10-20T11:45:32.000Z
invenio_madmp/views.py
FAIR-Data-Austria/invenio-madmp
74372ee794f81666f5e9cf08ef448c21b2e428be
[ "MIT" ]
null
null
null
"""Blueprint definitions for maDMP integration.""" from flask import Blueprint, jsonify, request from invenio_db import db from .convert import convert_dmp from .models import DataManagementPlan def _summarize_dmp(dmp: DataManagementPlan) -> dict: """Create a summary dictionary for the given DMP.""" res = {...
35.744898
87
0.643163
0
0
0
0
2,402
0.685698
0
0
1,176
0.335712
78f362e6e499abd6ba76d1b520e7369bf25061c9
257
py
Python
retrieval/urls.py
aipassio/visual_retrieval
ce8dae2ad517a9edb5e278163dd6d0f7ffc1b5f4
[ "MIT" ]
null
null
null
retrieval/urls.py
aipassio/visual_retrieval
ce8dae2ad517a9edb5e278163dd6d0f7ffc1b5f4
[ "MIT" ]
null
null
null
retrieval/urls.py
aipassio/visual_retrieval
ce8dae2ad517a9edb5e278163dd6d0f7ffc1b5f4
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('retrieval_insert', views.retrieval_insert, name='retrieval_insert'), path('retrieval_get', views.retrieval_get, name='retrieval_get') ]
28.555556
78
0.723735
0
0
0
0
0
0
0
0
75
0.291829
78f3cd314838c8b00373f5ff15a91db4a0e4e749
1,427
py
Python
scripts/Interfacing/encoder_class.py
noshluk2/Wifi-Signal-Robot-localization
538e6c4e7a63486f22ab708908c476cd808f720c
[ "MIT" ]
null
null
null
scripts/Interfacing/encoder_class.py
noshluk2/Wifi-Signal-Robot-localization
538e6c4e7a63486f22ab708908c476cd808f720c
[ "MIT" ]
null
null
null
scripts/Interfacing/encoder_class.py
noshluk2/Wifi-Signal-Robot-localization
538e6c4e7a63486f22ab708908c476cd808f720c
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import threading class Encoder(object): def __init__(self, r_en_a,r_en_b,l_en_a,l_en_b): GPIO.setmode(GPIO.BCM) GPIO.setup(r_en_a, GPIO.IN) GPIO.setup(r_en_b, GPIO.IN) GPIO.setup(l_en_a, GPIO.IN) GPIO.setup(l_en_b, GPIO.IN) self.l_en_a=l_en_a;...
26.425926
75
0.618781
1,175
0.823406
0
0
0
0
0
0
196
0.137351
78f527fe8104b4c467eef06ba01999f8a1c7339e
2,286
py
Python
systori/apps/equipment/urls.py
systori/systori
e309c63e735079ff6032fdaf1db354ec872b28b1
[ "BSD-3-Clause" ]
12
2018-01-30T00:44:06.000Z
2020-07-13T05:20:48.000Z
systori/apps/equipment/urls.py
systori/systori
e309c63e735079ff6032fdaf1db354ec872b28b1
[ "BSD-3-Clause" ]
36
2018-03-06T17:49:50.000Z
2020-06-23T19:26:00.000Z
systori/apps/equipment/urls.py
systori/systori
e309c63e735079ff6032fdaf1db354ec872b28b1
[ "BSD-3-Clause" ]
3
2018-08-03T07:03:09.000Z
2020-07-09T20:21:10.000Z
from django.conf.urls import url from django.urls import path, include from systori.apps.user.authorization import office_auth from systori.apps.equipment.views import EquipmentListView, EquipmentView, EquipmentCreate, EquipmentDelete, EquipmentUpdate, RefuelingStopCreate, RefuelingStopDelete, RefuelingStopUpdate, Mai...
33.130435
244
0.624672
0
0
0
0
0
0
0
0
817
0.357393
78f5546c49c417508d26fa0f809340459987fc66
13,697
py
Python
paddlehub/module/check_info_pb2.py
MRXLT/PaddleHub
a9cd941bef2ac5a2d81b2f20422a4fbd9a87eb90
[ "Apache-2.0" ]
1
2019-07-03T13:08:39.000Z
2019-07-03T13:08:39.000Z
paddlehub/module/check_info_pb2.py
binweiwu/PaddleHub
f92d0edd18057044ef248d7f2c42d8f347b62fbf
[ "Apache-2.0" ]
null
null
null
paddlehub/module/check_info_pb2.py
binweiwu/PaddleHub
f92d0edd18057044ef248d7f2c42d8f347b62fbf
[ "Apache-2.0" ]
null
null
null
#coding:utf-8 # Generated by the protocol buffer compiler. DO NOT EDIT! # source: check_info.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protob...
33.653563
1,160
0.611083
0
0
0
0
0
0
0
0
3,046
0.222384
78f57ad1256f2c324b8101344d3e6ef85566b84c
632
py
Python
40_3.py
rursvd/pynumerical2
4b2d33125b64a39099ac8eddef885e0ea11b237d
[ "MIT" ]
null
null
null
40_3.py
rursvd/pynumerical2
4b2d33125b64a39099ac8eddef885e0ea11b237d
[ "MIT" ]
null
null
null
40_3.py
rursvd/pynumerical2
4b2d33125b64a39099ac8eddef885e0ea11b237d
[ "MIT" ]
1
2019-12-03T01:34:19.000Z
2019-12-03T01:34:19.000Z
from numpy import zeros # Define ab2 function def ab2(f,t0,tf,y0,n): h = (tf - t0)/n t = zeros(n+1) y = zeros(n+1) t[0] = t0 y[0] = y0 y[1] = y[0] + h * f(t[0],y[0]) t[1] = t[0] + h for i in range(1,n): y[i+1] = y[i] + (3.0/2.0) * h * f(t[i],y[i])-1.0/2.0 * h * f(t[i-1]...
18.588235
83
0.463608
0
0
0
0
0
0
0
0
120
0.189873
78f5d63c04bc9e40555fc089be45ac3e10cbd62a
40,331
py
Python
test/test_parse_cs.py
NeonDaniel/lingua-franca
eee95702016b4013b0d81dc74da98cd2d2f53358
[ "Apache-2.0" ]
null
null
null
test/test_parse_cs.py
NeonDaniel/lingua-franca
eee95702016b4013b0d81dc74da98cd2d2f53358
[ "Apache-2.0" ]
null
null
null
test/test_parse_cs.py
NeonDaniel/lingua-franca
eee95702016b4013b0d81dc74da98cd2d2f53358
[ "Apache-2.0" ]
1
2020-09-22T12:39:17.000Z
2020-09-22T12:39:17.000Z
# # Copyright 2017 Mycroft AI Inc. # # 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 writ...
54.208333
114
0.564851
40,211
0.969804
0
0
0
0
0
0
20,903
0.504136
78f63355867462f1a454c939b07a72f40e12bd55
955
py
Python
src/net/pluto_ftp.py
WardenAllen/Uranus
0d20cac631320b558254992c17678ddd1658587b
[ "MIT" ]
null
null
null
src/net/pluto_ftp.py
WardenAllen/Uranus
0d20cac631320b558254992c17678ddd1658587b
[ "MIT" ]
null
null
null
src/net/pluto_ftp.py
WardenAllen/Uranus
0d20cac631320b558254992c17678ddd1658587b
[ "MIT" ]
null
null
null
# !/usr/bin/python # -*- coding: utf-8 -*- # @Time : 2020/9/18 12:02 # @Author : WardenAllen # @File : pluto_ftp.py # @Brief : import paramiko class PlutoFtp : # paramiko's Sftp() object. __sftp = object def connect_by_pass(self, host, port, uname, pwd): transport = paramiko.Transport(...
31.833333
73
0.655497
800
0.837696
0
0
0
0
0
0
160
0.167539
78f6f92a5932a9d711316ff3341b072e7d33ca29
99
py
Python
piped/processors/test/__init__.py
alexbrasetvik/Piped
0312c14d6c4c293df378c915cc9787bcc7faed36
[ "MIT" ]
3
2015-02-12T20:34:30.000Z
2016-08-06T06:54:48.000Z
piped/processors/test/__init__.py
alexbrasetvik/Piped
0312c14d6c4c293df378c915cc9787bcc7faed36
[ "MIT" ]
null
null
null
piped/processors/test/__init__.py
alexbrasetvik/Piped
0312c14d6c4c293df378c915cc9787bcc7faed36
[ "MIT" ]
2
2015-12-16T14:18:14.000Z
2019-04-12T01:43:10.000Z
# Copyright (c) 2010-2011, Found IT A/S and Piped Project Contributors. # See LICENSE for details.
33
71
0.747475
0
0
0
0
0
0
0
0
97
0.979798
78f83610f02792ce2cf026a72886ebff9b5ef71f
579
py
Python
assistance_bot/app.py
reakfog/personal_computer_voice_assistant
3483f633c57cd2e930f94bcbda9739cde34525aa
[ "BSD-3-Clause" ]
null
null
null
assistance_bot/app.py
reakfog/personal_computer_voice_assistant
3483f633c57cd2e930f94bcbda9739cde34525aa
[ "BSD-3-Clause" ]
null
null
null
assistance_bot/app.py
reakfog/personal_computer_voice_assistant
3483f633c57cd2e930f94bcbda9739cde34525aa
[ "BSD-3-Clause" ]
2
2021-07-26T20:22:31.000Z
2021-07-29T12:58:03.000Z
import sys sys.path = ['', '..'] + sys.path[1:] import daemon from assistance_bot import core from functionality.voice_processing import speaking, listening from functionality.commands import * if __name__ == '__main__': speaking.setup_assistant_voice(core.ttsEngine, core.assistant) while True: # st...
32.166667
75
0.723661
0
0
0
0
0
0
0
0
92
0.158895
78f942b69039b6e57cce7169cc8dc3ffec50e359
107
py
Python
python/testData/resolve/AssignmentExpressionsAndOuterVar.py
tgodzik/intellij-community
f5ef4191fc30b69db945633951fb160c1cfb7b6f
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/resolve/AssignmentExpressionsAndOuterVar.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2022-02-19T09:45:05.000Z
2022-02-27T20:32:55.000Z
python/testData/resolve/AssignmentExpressionsAndOuterVar.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
total = 0 partial_sums = [total := total + v for v in values] print("Total:", total) <ref>
26.75
51
0.551402
0
0
0
0
0
0
0
0
8
0.074766
78fa9f898e64c035eed240732e89631cf36a87b3
18,049
py
Python
exhale/deploy.py
florianhumblot/exhale
d6fa84fa32ee079c6b70898a1b0863a38e703591
[ "BSD-3-Clause" ]
null
null
null
exhale/deploy.py
florianhumblot/exhale
d6fa84fa32ee079c6b70898a1b0863a38e703591
[ "BSD-3-Clause" ]
null
null
null
exhale/deploy.py
florianhumblot/exhale
d6fa84fa32ee079c6b70898a1b0863a38e703591
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf8 -*- ######################################################################################## # This file is part of exhale. Copyright (c) 2017-2022, Stephen McDowell. # # Full BSD 3-Clause license available here: # # ...
42.468235
106
0.588066
0
0
0
0
0
0
0
0
11,608
0.643138
78fb0646e467b92a38f001788a56ced3c1f8a48d
3,816
py
Python
src/bayesian_reliability_comparison.py
rloganiv/bayesian-blackbox
6a111553200b6aa755149e08174abe1a61d37198
[ "MIT" ]
8
2019-12-23T13:27:15.000Z
2021-12-01T13:33:34.000Z
src/bayesian_reliability_comparison.py
rloganiv/bayesian-blackbox
6a111553200b6aa755149e08174abe1a61d37198
[ "MIT" ]
11
2020-03-31T11:06:55.000Z
2022-02-10T00:39:33.000Z
src/bayesian_reliability_comparison.py
disiji/bayesian-blackbox
6a111553200b6aa755149e08174abe1a61d37198
[ "MIT" ]
2
2020-01-24T10:21:57.000Z
2020-02-22T04:41:14.000Z
import argparse import multiprocessing import os import random import numpy as np from data_utils import DATAFILE_LIST, DATASET_LIST, prepare_data, RESULTS_DIR from models import SumOfBetaEce random.seed(2020) num_cores = multiprocessing.cpu_count() NUM_BINS = 10 NUM_RUNS = 100 N_list = [100, 200, 500, 1000, 2000, 5...
41.032258
120
0.70152
0
0
0
0
0
0
0
0
797
0.208857
78fbbb7e97d40f03f6fe9dcf3d1d397ff5d9dbb9
29,044
py
Python
psyneulink/core/components/functions/statefulfunctions/statefulfunction.py
SamKG/PsyNeuLink
70558bcd870868e1688cb7a7c424d29ca336f2df
[ "Apache-2.0" ]
null
null
null
psyneulink/core/components/functions/statefulfunctions/statefulfunction.py
SamKG/PsyNeuLink
70558bcd870868e1688cb7a7c424d29ca336f2df
[ "Apache-2.0" ]
77
2020-10-01T06:27:19.000Z
2022-03-31T02:03:33.000Z
psyneulink/core/components/functions/statefulfunctions/statefulfunction.py
SamKG/PsyNeuLink
70558bcd870868e1688cb7a7c424d29ca336f2df
[ "Apache-2.0" ]
null
null
null
# # Princeton University licenses this file to You 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 writ...
48.895623
168
0.596302
27,392
0.943121
0
0
6,060
0.208649
0
0
14,262
0.491048