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
1a84436ea566ea56f1a0741284baabd03a37ab2f
258
py
Python
binarysearch.io/356_123_number_switch.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
binarysearch.io/356_123_number_switch.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
binarysearch.io/356_123_number_switch.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
class Solution: def solve(self, n): n = list(str(n)) for i in range(len(n)): if n[i] != '3': n[i] = '3' break return int(''.join(n))
19.846154
31
0.29845
1a845d192e1f82ffb26694a535e6fbaf07f78908
2,617
py
Python
lingua_franca/lang/common_data_pt.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
1
2020-08-13T12:21:56.000Z
2020-08-13T12:21:56.000Z
lingua_franca/lang/common_data_pt.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
3
2021-06-08T21:06:32.000Z
2022-01-13T02:22:38.000Z
lingua_franca/lang/common_data_pt.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
1
2020-08-13T12:21:58.000Z
2020-08-13T12:21:58.000Z
# Undefined articles ["um", "uma", "uns", "umas"] can not be supressed, # in PT, "um cavalo" means "a horse" or "one horse". _ARTICLES_PT = ["o", "a", "os", "as"] # word rules for gender _FEMALE_ENDINGS_PT = ["a", "as"] _MALE_ENDINGS_PT = ["o", "os"] # special cases, word lookup for words not covered by above rule _...
19.529851
72
0.500191
1a8474727eb19931377f673169b956242c9f3fb5
3,152
py
Python
credential_test.py
Vitalis-Kirui/Password-Locker
5fd00431039c0306b660220b6cbb62805746b6e3
[ "MIT" ]
null
null
null
credential_test.py
Vitalis-Kirui/Password-Locker
5fd00431039c0306b660220b6cbb62805746b6e3
[ "MIT" ]
null
null
null
credential_test.py
Vitalis-Kirui/Password-Locker
5fd00431039c0306b660220b6cbb62805746b6e3
[ "MIT" ]
1
2021-09-07T09:27:44.000Z
2021-09-07T09:27:44.000Z
import unittest from credential import Credentials class TestCredentials(unittest.TestCase): """ Test class that defines test cases for credentials class. """ def setUp(self): """ Setup method which is run first everytime we run a test. """ self.new_credentials = Creden...
35.41573
123
0.675761
1a84788f700eb3583e39898b174e6318346cc6c0
1,642
py
Python
tests/__init__.py
hhtong/dwave-cloud-client
45e4d1d4f187b10495e38d47478f2c8d87514434
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
hhtong/dwave-cloud-client
45e4d1d4f187b10495e38d47478f2c8d87514434
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
hhtong/dwave-cloud-client
45e4d1d4f187b10495e38d47478f2c8d87514434
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 D-Wave Systems 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 wri...
37.318182
79
0.733861
1a84a0645866d3012d0fe2a20aa1005a33e17274
526
py
Python
src/server/MhmServer/models/laboratory.py
jbrr/mosquito_heat_map
2cce46a5e26526bd04a83486a62733ab343376ba
[ "MIT" ]
null
null
null
src/server/MhmServer/models/laboratory.py
jbrr/mosquito_heat_map
2cce46a5e26526bd04a83486a62733ab343376ba
[ "MIT" ]
2
2020-07-07T20:31:40.000Z
2022-02-10T19:17:35.000Z
src/server/MhmServer/models/laboratory.py
jbrr/mosquito_heat_map
2cce46a5e26526bd04a83486a62733ab343376ba
[ "MIT" ]
null
null
null
from MhmServer.database import (Column, DateTime, Integer, func, Model, relationship, String) import datetime class Laboratory(Model): __tablename__ = 'laboratory' id = Column(Integer, primary_key=True) name = Column(String()) created_at = Column(DateTime(), default=func.now()) updated_at = Colum...
35.066667
94
0.709125
1a84aa5a4f69c35286c6fd9bafa8b9ec3abd9a9c
64,944
py
Python
tflearn/layers/conv.py
lfwin/tflearn
06015c73a4d9ad9edafeb9b61ee9004fd715f69e
[ "MIT" ]
null
null
null
tflearn/layers/conv.py
lfwin/tflearn
06015c73a4d9ad9edafeb9b61ee9004fd715f69e
[ "MIT" ]
null
null
null
tflearn/layers/conv.py
lfwin/tflearn
06015c73a4d9ad9edafeb9b61ee9004fd715f69e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import import tensorflow as tf import numpy as np from math import ceil import tflearn from .. import variables as vs from .. import activations from .. import initializations from .. import losses from .. import utils import math def ...
40.064158
110
0.609263
1a84d8c771908f7764cab66d8bcc78f94bfda970
2,365
py
Python
Tools/Scripts/webkitpy/tool/steps/applywatchlist_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/tool/steps/applywatchlist_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/tool/steps/applywatchlist_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2011 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
44.622642
84
0.758985
1a85022cf3e8d25a16cfe9be0649abf232c8529f
38,698
py
Python
images_to_samples.py
mwesleyj/geo-deep-learning
9bb8942156fc1a19f8f5ac911e237daa30740ca9
[ "MIT" ]
null
null
null
images_to_samples.py
mwesleyj/geo-deep-learning
9bb8942156fc1a19f8f5ac911e237daa30740ca9
[ "MIT" ]
null
null
null
images_to_samples.py
mwesleyj/geo-deep-learning
9bb8942156fc1a19f8f5ac911e237daa30740ca9
[ "MIT" ]
null
null
null
# region imports import argparse from datetime import datetime import logging from typing import List import numpy as np np.random.seed(1234) # Set random seed for reproducibility import rasterio import time import shutil import uuid from pathlib import Path from tqdm import tqdm from collections import OrderedDict ...
53.010959
214
0.560804
1a85033f791a375ad836bbb245cfec6bbe51337c
33,425
py
Python
test/optimization/test_quadratic_program.py
tsura-crisaldo/qiskit-aqua
2b4a70bb24a9170c3735124536dce1d7ffe4ed67
[ "Apache-2.0" ]
null
null
null
test/optimization/test_quadratic_program.py
tsura-crisaldo/qiskit-aqua
2b4a70bb24a9170c3735124536dce1d7ffe4ed67
[ "Apache-2.0" ]
null
null
null
test/optimization/test_quadratic_program.py
tsura-crisaldo/qiskit-aqua
2b4a70bb24a9170c3735124536dce1d7ffe4ed67
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
49.739583
98
0.610082
1a850c51473c27755c909effef3e97bb2377fd4e
39,898
py
Python
sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/_generated/v7_1/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/_generated/v7_1/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/_generated/v7_1/models/_models_py3.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# 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 ...
36.074141
110
0.6176
1a85456a117b162ebd4d33ab5fc8b5707cd83da1
173
py
Python
master/teachkids-master/teachkids-master/intro/Fig2b.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/teachkids-master/teachkids-master/intro/Fig2b.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/teachkids-master/teachkids-master/intro/Fig2b.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
import turtle colors=['red', 'blue','yellow'] t=turtle.Pen() t.width(5) for x in range(360): t.pencolor(colors[x%3]) t.forward(x * 2) t.left(120 - 2)
19.222222
31
0.566474
1a8552d5a2b33ae21cb88eaa7da2de4bc3b2f0b2
1,594
py
Python
lib/distributeprobes.py
xyanqian/multi_padlock_design
b2696cb615bd5688668b0fe768a4c19c0d0cb7aa
[ "MIT" ]
6
2019-12-11T16:35:26.000Z
2021-08-12T12:15:04.000Z
lib/distributeprobes.py
xyanqian/multi_padlock_design
b2696cb615bd5688668b0fe768a4c19c0d0cb7aa
[ "MIT" ]
7
2018-07-05T13:50:27.000Z
2022-03-07T07:20:51.000Z
lib/distributeprobes.py
xyanqian/multi_padlock_design
b2696cb615bd5688668b0fe768a4c19c0d0cb7aa
[ "MIT" ]
5
2018-11-09T09:46:30.000Z
2022-03-11T15:22:06.000Z
# for multi_padlock_design # Xiaoyan, 2017 import numpy as np def asmanyprobes(siteCandidates, originalmap, sequences, designpars): Probes = [] ProbesPos = [] armlength = designpars[1] interval = designpars[2] for i, sites in enumerate(siteCandidates): probes = [] probespos = [] ...
35.422222
103
0.580301
1a8557a3095387683549b704e634d4b9654a4b67
2,999
py
Python
test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/rest/availability_sets/_request_builders_py3.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/rest/availability_sets/_request_builders_py3.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/low-level/Expected/AcceptanceTests/ParameterFlatteningLowLevel/parameterflatteninglowlevel/rest/availability_sets/_request_builders_py3.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.000Z
# 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 ...
41.082192
112
0.665222
1a855b44417ba0b68209099293f26869134126e8
1,075
py
Python
updot/updot/test/test__pyhacks.py
aaronsb/dotfiles
8ab1af7e85bbeba09559ebb724469ea879900158
[ "MIT" ]
2
2017-09-03T16:52:54.000Z
2018-01-18T00:27:45.000Z
updot/updot/test/test__pyhacks.py
aaronsb/dotfiles
8ab1af7e85bbeba09559ebb724469ea879900158
[ "MIT" ]
null
null
null
updot/updot/test/test__pyhacks.py
aaronsb/dotfiles
8ab1af7e85bbeba09559ebb724469ea879900158
[ "MIT" ]
1
2019-05-03T14:59:59.000Z
2019-05-03T14:59:59.000Z
import os import pytest from updot import platform # pylint: disable=protected-access def test__relative_paths__return_false(): """Relative paths should always return false""" assert not os.path.isabs('./path/to/thing') assert not os.path.isabs('../path/to/thing') assert not os.path.isabs('path/to...
26.219512
76
0.700465
1a85627a7699f75d2507dbb41237dba1ad882e89
1,475
py
Python
02-parser/scanner.py
wgslr/agh-compilation-theory
8cc91ba006fd0e9eea392c195245f0ae21933486
[ "MIT" ]
null
null
null
02-parser/scanner.py
wgslr/agh-compilation-theory
8cc91ba006fd0e9eea392c195245f0ae21933486
[ "MIT" ]
null
null
null
02-parser/scanner.py
wgslr/agh-compilation-theory
8cc91ba006fd0e9eea392c195245f0ae21933486
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 import sys import ply.lex as lex literals = "+-*/=()[]{}:',;<>" keywords = ('IF', 'ELSE', 'FOR', 'WHILE', 'BREAK', 'CONTINUE', 'RETURN', 'EYE', 'ZEROS', 'ONES', 'PRINT') tokens = ('DOTADD', 'DOTSUB', 'DOTMUL', 'DOTDIV', 'ADDASSIGN', 'SUBASSIGN', 'MULASSIGN', 'DIVASSIGN',...
17.559524
69
0.520678
1a85657dbd4fb982c2a3c5c4783ba6db26385216
3,105
py
Python
test/inputfile.py
Vikings1028/Envision
291b09feba618a98e31b1c299f647109bbc41f86
[ "BSD-3-Clause" ]
null
null
null
test/inputfile.py
Vikings1028/Envision
291b09feba618a98e31b1c299f647109bbc41f86
[ "BSD-3-Clause" ]
null
null
null
test/inputfile.py
Vikings1028/Envision
291b09feba618a98e31b1c299f647109bbc41f86
[ "BSD-3-Clause" ]
null
null
null
''' Application : Envision File name : inputfile.py Authors : Jacob Summerville and Safwan Elmadani Description : This file creates a test input file ''' # Copyright (c) April 26, 2021 Jacob Summerville and Safwan Elmadani # All rights reserved. # # The license below extends only to copyright in the software and...
41.959459
75
0.749758
1a8571a1ca0f012a72e5db192840982cda35df6d
3,836
py
Python
boiler/collections/paginated_collection.py
projectshift/shift-boiler
5f1d236b97fc814ba72897fa8bc76c7518bd1919
[ "MIT" ]
19
2016-08-06T20:06:21.000Z
2020-10-22T08:31:49.000Z
boiler/collections/paginated_collection.py
projectshift/shift-boiler
5f1d236b97fc814ba72897fa8bc76c7518bd1919
[ "MIT" ]
104
2016-07-31T19:45:00.000Z
2021-09-15T08:13:36.000Z
boiler/collections/paginated_collection.py
projectshift/shift-boiler
5f1d236b97fc814ba72897fa8bc76c7518bd1919
[ "MIT" ]
1
2017-12-30T09:07:38.000Z
2017-12-30T09:07:38.000Z
from math import ceil from boiler.collections.pagination import paginate from pprint import pprint as pp class PaginatedCollection: """ Paginated collection Accepts an SQLAlchemy query object on initialization along with some pagination settings and then allows you to iterate over itself in a pagi...
30.204724
78
0.593587
1a857c00e7b6c1e3cb730fb908ff0bd447f49635
20,372
py
Python
vlbi_errors/gains.py
ipashchenko/ve
b866b6d9465310d4cd5bb4d2e92595d918b681d0
[ "MIT" ]
null
null
null
vlbi_errors/gains.py
ipashchenko/ve
b866b6d9465310d4cd5bb4d2e92595d918b681d0
[ "MIT" ]
1
2019-10-16T20:36:19.000Z
2020-03-24T19:28:01.000Z
vlbi_errors/gains.py
ipashchenko/ve
b866b6d9465310d4cd5bb4d2e92595d918b681d0
[ "MIT" ]
null
null
null
#!/usr/bin python2 # -*- coding: utf-8 -*- import copy import numpy as np try: import pylab as plt except ImportError: pylab = None from utils import baselines_2_ants, get_hdu def open_gains(fname, snver=1): """ Helper function for instantiating and loading complex antenna gains from FITS-files. ...
32.5952
81
0.513204
1a85885f15b8a9ff8d9a608f05cfc1a6f93f64b6
2,713
py
Python
tests/st/ops/ascend/cube/test_matmul_addn_transdata_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/st/ops/ascend/cube/test_matmul_addn_transdata_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/st/ops/ascend/cube/test_matmul_addn_transdata_001.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2021 Huawei Technologies Co., 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-2.0 # # Unless required by applicable law or agreed to...
38.211268
196
0.678216
1a85a78d7bcca2d91dba35f3f6509741e28acff9
485
py
Python
2020/paper_writer.py
ygrange/ADASSProceedings
61502d4ba827845c65e98588d84c69d3596ae958
[ "MIT" ]
1
2019-09-18T08:10:25.000Z
2019-09-18T08:10:25.000Z
2020/paper_writer.py
ygrange/ADASSProceedings
61502d4ba827845c65e98588d84c69d3596ae958
[ "MIT" ]
10
2019-09-29T13:55:38.000Z
2021-12-27T16:23:49.000Z
2020/paper_writer.py
ygrange/ADASSProceedings
61502d4ba827845c65e98588d84c69d3596ae958
[ "MIT" ]
3
2020-10-05T19:10:22.000Z
2021-12-25T09:51:07.000Z
#! /usr/bin/env python # # personalized templates for 2020 based off a papers.tab file import sys import adass2020 as adass if __name__ == "__main__": debug = True a = adass.adass('.', debug) (o1,o2,o3) = a.tab2list(sys.argv[1],True) print(len(o1),len(o2),len(o3)) if len(sys.argv) ...
23.095238
62
0.585567
1a85b0ac218e42ea7f5046d56bc1bc192da673a0
18,673
py
Python
N2SNUserTools/_version.py
stuwilkins/N2SNUserTools
d690a1b4e18e9796c296ad37a09889542f58b200
[ "BSD-3-Clause" ]
null
null
null
N2SNUserTools/_version.py
stuwilkins/N2SNUserTools
d690a1b4e18e9796c296ad37a09889542f58b200
[ "BSD-3-Clause" ]
5
2021-03-03T13:35:55.000Z
2021-03-22T21:58:28.000Z
N2SNUserTools/_version.py
stuwilkins/N2SNUserTools
d690a1b4e18e9796c296ad37a09889542f58b200
[ "BSD-3-Clause" ]
1
2021-02-08T11:19:50.000Z
2021-02-08T11:19:50.000Z
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains t...
35.5
79
0.585712
1a85b23c7ca84590b7ba418672963d50b1bfdf0a
6,561
py
Python
ros/src/tl_detector/light_classification/tl_classifier.py
thegleb/CarND-Capstone
951da38cbe62cd4e56d65f5cd68f8251da210c21
[ "MIT" ]
2
2019-11-10T11:27:33.000Z
2019-11-26T01:49:01.000Z
ros/src/tl_detector/light_classification/tl_classifier.py
thegleb/CarND-Capstone
951da38cbe62cd4e56d65f5cd68f8251da210c21
[ "MIT" ]
null
null
null
ros/src/tl_detector/light_classification/tl_classifier.py
thegleb/CarND-Capstone
951da38cbe62cd4e56d65f5cd68f8251da210c21
[ "MIT" ]
1
2019-10-28T08:12:29.000Z
2019-10-28T08:12:29.000Z
import numpy as np import tensorflow as tf import cv2 from PIL import ImageDraw from PIL import Image as PIL_Image from styx_msgs.msg import TrafficLight DEBUG = False NN_GRAPH_PREFIX = './light_classification/' MODEL_TO_SIM = { '1': {'ros_label': TrafficLight.GREEN, 'bbox_color': 'green'}, '2': {'ros_label...
37.067797
119
0.610882
1a85b401950fb84d76f010730998169d74006a35
5,458
py
Python
python_modules/dagster/dagster/core/executor/child_process_executor.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/executor/child_process_executor.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/executor/child_process_executor.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
"""Facilities for running arbitrary commands in child processes.""" import os import queue import sys from abc import ABC, abstractmethod from typing import NamedTuple from dagster import check from dagster.core.errors import DagsterExecutionInterruptedError from dagster.utils.error import SerializableErrorInfo, ser...
32.488095
101
0.693111
1a85c6fef9cdad8da85e3b46046e3274989854bf
1,800
py
Python
image_reconstruction/reconstruction_utils/post_processing/envelope_detection.py
IPASC/standardised-image-reconstruction
75d350a9f8da57413fabbd8dd5ed23fdfb35d4ed
[ "MIT" ]
3
2021-09-07T10:44:48.000Z
2021-12-15T10:51:39.000Z
image_reconstruction/reconstruction_utils/post_processing/envelope_detection.py
IPASC/standardised-image-reconstruction
75d350a9f8da57413fabbd8dd5ed23fdfb35d4ed
[ "MIT" ]
12
2021-11-14T23:01:28.000Z
2022-03-29T19:08:13.000Z
image_reconstruction/reconstruction_utils/post_processing/envelope_detection.py
IPASC/standardised-image-reconstruction
75d350a9f8da57413fabbd8dd5ed23fdfb35d4ed
[ "MIT" ]
null
null
null
""" SPDX-FileCopyrightText: 2021 International Photoacoustic Standardisation Consortium (IPASC) SPDX-FileCopyrightText: 2021 Janek Gröhl SPDX-FileCopyrightText: 2021 François Varray SPDX-License-Identifier: MIT """ from scipy.signal import hilbert, hilbert2 import numpy as np def hilbert_transform_1_d(signal, axis=-...
21.95122
91
0.660556
1a85cab23b4b103a2853be88f46ffa490a3757c7
12,573
py
Python
gym_pcgrl/envs/probs/ddave/engine.py
rohin-dasari/gym-pcgrl
82718fc3d628e5bf11b3207ebffa57a79c90be4d
[ "MIT" ]
null
null
null
gym_pcgrl/envs/probs/ddave/engine.py
rohin-dasari/gym-pcgrl
82718fc3d628e5bf11b3207ebffa57a79c90be4d
[ "MIT" ]
null
null
null
gym_pcgrl/envs/probs/ddave/engine.py
rohin-dasari/gym-pcgrl
82718fc3d628e5bf11b3207ebffa57a79c90be4d
[ "MIT" ]
null
null
null
from queue import PriorityQueue directions = [{"x":0, "y":0}, {"x":-1, "y":0}, {"x":1, "y":0}, {"x":0, "y":-1}] class Node: balance = 0.5 def __init__(self, state, parent, action): self.state = state self.parent = parent self.action = action self.depth = 0 if self.parent...
35.317416
131
0.493836
1a85cfc32a21f893040316419a24d3ec481f6c13
7,013
py
Python
fabric_cf/actor/core/time/actor_clock.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
null
null
null
fabric_cf/actor/core/time/actor_clock.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
67
2020-12-21T15:39:49.000Z
2022-02-27T17:55:00.000Z
fabric_cf/actor/core/time/actor_clock.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2020 FABRIC Testbed # # 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 ...
36.910526
108
0.663197
1a85e2dc4bf8af61b004920068d57bf09f000ab4
1,625
py
Python
py/run_inferrer.py
shilad/geo-provenance
12781c6c8f875f6a85e8b8e71ce37d20fa5eeeb7
[ "Apache-2.0" ]
6
2015-03-30T02:09:03.000Z
2019-08-03T23:19:58.000Z
py/run_inferrer.py
shilad/geo-provenance
12781c6c8f875f6a85e8b8e71ce37d20fa5eeeb7
[ "Apache-2.0" ]
1
2015-06-24T13:46:19.000Z
2015-06-24T13:46:19.000Z
py/run_inferrer.py
shilad/geo-provenance
12781c6c8f875f6a85e8b8e71ce37d20fa5eeeb7
[ "Apache-2.0" ]
2
2016-04-17T08:55:09.000Z
2022-02-16T20:16:57.000Z
#!/usr/bin/python # # Reads URLs from stdin and writes inferred countries to stdout. # The result is a json-formatted dictionary of country-code -> probability pairs. # import sys import time import traceback from gputils import * from gpinfer import LogisticInferrer def main(inferrer, input, output): format =...
29.017857
96
0.503385
1a85e50054765bdd14c3e8ef321f0b3c6926f27e
5,839
py
Python
fakolibri/content/utils/annotation.py
learningequality/channel2site
0020c15f404c58e369bbe435950e1a38418313e8
[ "MIT" ]
null
null
null
fakolibri/content/utils/annotation.py
learningequality/channel2site
0020c15f404c58e369bbe435950e1a38418313e8
[ "MIT" ]
null
null
null
fakolibri/content/utils/annotation.py
learningequality/channel2site
0020c15f404c58e369bbe435950e1a38418313e8
[ "MIT" ]
null
null
null
import logging as logger import os from django.conf import settings from content.apps import ContentConfig from content.models import ChannelMetadata, ContentNode, File, LocalFile from le_utils.constants import content_kinds from sqlalchemy import and_, exists, func, select from .channels import get_channel_ids_for_c...
37.915584
143
0.737798
1a85fead029ced85a5c04e8b189ddde822f7cbb8
10,642
py
Python
eventsourcing/domain/model/events.py
alexanderlarin/eventsourcing
6f2a4ded3c783ba3ee465243a48f66ecdee20f52
[ "BSD-3-Clause" ]
null
null
null
eventsourcing/domain/model/events.py
alexanderlarin/eventsourcing
6f2a4ded3c783ba3ee465243a48f66ecdee20f52
[ "BSD-3-Clause" ]
null
null
null
eventsourcing/domain/model/events.py
alexanderlarin/eventsourcing
6f2a4ded3c783ba3ee465243a48f66ecdee20f52
[ "BSD-3-Clause" ]
null
null
null
import os from uuid import uuid1 from eventsourcing.exceptions import EventHashError from eventsourcing.utils.hashing import hash_object from eventsourcing.utils.times import decimaltimestamp from eventsourcing.utils.topic import get_topic from eventsourcing.utils.transcoding import ObjectJSONEncoder GENESIS_HASH = o...
27.713542
88
0.645273
1a85fedc9eb4e1a955518619b359b4a410a09b8b
12,671
py
Python
nova/tests/api/openstack/compute/contrib/test_instance_actions.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/tests/api/openstack/compute/contrib/test_instance_actions.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/tests/api/openstack/compute/contrib/test_instance_actions.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
1
2020-07-24T06:47:54.000Z
2020-07-24T06:47:54.000Z
# Copyright 2013 Rackspace Hosting # 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...
43.693103
79
0.635546
1a866181a4c6ab150c1505184ff91b8622da67f7
2,612
py
Python
examples/mlp/mlp.py
gebauerm/rapidFlow
3aefcda3821a8891d40081460dd20d2876e3773d
[ "MIT" ]
1
2022-01-03T14:51:02.000Z
2022-01-03T14:51:02.000Z
examples/mlp/mlp.py
gebauerm/rapidFlow
3aefcda3821a8891d40081460dd20d2876e3773d
[ "MIT" ]
1
2022-02-04T13:22:18.000Z
2022-02-04T16:17:56.000Z
examples/mlp/mlp.py
gebauerm/rapidFlow
3aefcda3821a8891d40081460dd20d2876e3773d
[ "MIT" ]
null
null
null
import torch.nn as nn import torch from torch.optim import Adam from rapidflow.nn_model import NNModel class MLP(NNModel): def __init__(self, input_size, hidden_layer_config, output_size, learning_rate, weight_decay): """ A simple Feed Forward Network with a Sigmoid Activation Function after the f...
34.368421
100
0.633231
1a86d0dfe5f639b93cea4b37f425002821eeb10a
1,618
py
Python
SROMPy/target/RandomVector.py
datree-demo/SROMPy
5a5c0d66e823a059568805a1718372c9e80e2943
[ "Apache-2.0" ]
null
null
null
SROMPy/target/RandomVector.py
datree-demo/SROMPy
5a5c0d66e823a059568805a1718372c9e80e2943
[ "Apache-2.0" ]
null
null
null
SROMPy/target/RandomVector.py
datree-demo/SROMPy
5a5c0d66e823a059568805a1718372c9e80e2943
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 United States Government as represented by the Administrator of # the National Aeronautics and Space Administration. No copyright is claimed in # the United States under Title 17, U.S. Code. All Other Rights Reserved. # The Stochastic Reduced Order Models with Python (SROMPy) platform is licensed # un...
31.72549
94
0.748455
1a86d1cb0cf66b02a0ebc75833f69954e56c0382
2,066
py
Python
leetcode_python/Breadth-First-Search/binary-tree-zigzag-level-order-traversal.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Breadth-First-Search/binary-tree-zigzag-level-order-traversal.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
null
null
null
leetcode_python/Breadth-First-Search/binary-tree-zigzag-level-order-traversal.py
yennanliu/CS_basics
3c50c819897a572ff38179bfb0083a19b2325fde
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# V0 class Solution(object): def levelOrder(self, root): """ :type root: TreeNode :rtype: List[List[int]] """ res = [] self.level(root, 0, res) return [j if i%2 == 0 else j[::-1] for i, j in enumerate(res)] def level(self, root, level, res): if n...
29.942029
70
0.53727
1a86df7962af9a933e986760f49cf93d09364761
531
py
Python
python/q120/q120.py
MatthewTsan/Leetcode
b0705013eea8517ba7742730cd14ea8601b83c70
[ "Apache-2.0" ]
null
null
null
python/q120/q120.py
MatthewTsan/Leetcode
b0705013eea8517ba7742730cd14ea8601b83c70
[ "Apache-2.0" ]
null
null
null
python/q120/q120.py
MatthewTsan/Leetcode
b0705013eea8517ba7742730cd14ea8601b83c70
[ "Apache-2.0" ]
null
null
null
from typing import List class Solution: def minimumTotal(self, triangle: List[List[int]]) -> int: if not triangle: return 0 dp = [0 for _ in triangle[-1]] dp[0] = triangle[0][0] print(dp) for level in triangle[1:]: dp[len(level) - 1] = dp[len(level)...
24.136364
63
0.47081
1a86f60d207fceb9f8292dfef806dd16514d96ca
2,499
py
Python
nicos_mlz/mira/setups/analyzer.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/mira/setups/analyzer.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_mlz/mira/setups/analyzer.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'analyzer table' group = 'lowlevel' tango_base = 'tango://miractrl.mira.frm2:10000/mira/' includes = ['sample'] devices = dict( co_ath = device('nicos.devices.entangle.Sensor', tangodevice = tango_base + 'detector/ath_enc', lowlevel = True, unit = 'deg', ), mo_ath = ...
30.47561
74
0.505002
1a8701334ea5436450b9ef103e38f668d2d93690
3,466
py
Python
treestate.py
deshpandeyash/treesplittingsimulator
aa93dcac892cd580669e453353a88a7b9343b423
[ "MIT" ]
1
2020-02-20T15:00:14.000Z
2020-02-20T15:00:14.000Z
treestate.py
deshpandeyash/treesplittingsimulator
aa93dcac892cd580669e453353a88a7b9343b423
[ "MIT" ]
null
null
null
treestate.py
deshpandeyash/treesplittingsimulator
aa93dcac892cd580669e453353a88a7b9343b423
[ "MIT" ]
null
null
null
import packetlist class TreeState(object): def __init__(self, sim): self.first_slot = sim.slot_no self.init_collided = len(sim.active_array) self.total_successes = 0 self.last_slot = 0 self.result_array = [] # IF it was a simple tree, this would have been ...
45.012987
120
0.596365
1a871cecfbfe54bc6eddc6c4b65d03b71c789be9
3,709
py
Python
examples/critical-example/criticalexample/settings.py
lenarother/django-critical-css
15c12ea02f7ea049e59efba4d963c35f41f26d78
[ "MIT" ]
2
2020-06-06T06:50:38.000Z
2022-02-03T08:54:28.000Z
examples/critical-example/criticalexample/settings.py
lenarother/django-critical-css
15c12ea02f7ea049e59efba4d963c35f41f26d78
[ "MIT" ]
5
2018-12-17T11:12:20.000Z
2020-11-27T10:28:51.000Z
examples/critical-example/criticalexample/settings.py
lenarother/django-critical-css
15c12ea02f7ea049e59efba4d963c35f41f26d78
[ "MIT" ]
1
2021-08-19T06:02:44.000Z
2021-08-19T06:02:44.000Z
""" Django settings for criticalexample project. Generated by 'django-admin startproject' using Django 2.1.4. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ impo...
26.492857
89
0.687517
1a8725530c0f85a9cc53aced0ab9fcd5a14429cc
100
py
Python
giantstar/template/__init__.py
DaoSen-v/gaintstar
5ecae8652c9f71aaa78cc0fd181d431cb130cab1
[ "MIT" ]
1
2021-08-06T08:32:15.000Z
2021-08-06T08:32:15.000Z
giantstar/template/__init__.py
DaoSen-v/gaintstar
5ecae8652c9f71aaa78cc0fd181d431cb130cab1
[ "MIT" ]
null
null
null
giantstar/template/__init__.py
DaoSen-v/gaintstar
5ecae8652c9f71aaa78cc0fd181d431cb130cab1
[ "MIT" ]
null
null
null
# _*_encoding=utf8_*_ # @Time : 2021/6/2 17:08 # @Author : xuyong # @Email: yong1.xu@casstime.com
16.666667
31
0.65
1a8733822191a0acf0b18bf62bd1a0b8a1da546c
149
py
Python
grouper/fe/handlers/service_accounts_view.py
lfaraone/grouper
7df5eda8003a0b4a9ba7f0dcb044ae1e4710b171
[ "Apache-2.0" ]
null
null
null
grouper/fe/handlers/service_accounts_view.py
lfaraone/grouper
7df5eda8003a0b4a9ba7f0dcb044ae1e4710b171
[ "Apache-2.0" ]
1
2016-02-18T18:55:29.000Z
2016-02-18T18:55:29.000Z
grouper/fe/handlers/service_accounts_view.py
lfaraone/grouper
7df5eda8003a0b4a9ba7f0dcb044ae1e4710b171
[ "Apache-2.0" ]
null
null
null
from grouper.fe.util import GrouperHandler class ServiceAccountsView(GrouperHandler): def get(self): self.redirect("/users?service=1")
21.285714
42
0.738255
1a8734abf590218e46dfcae538429f74af0ceb87
4,674
py
Python
flexget/plugins/modify/torrent.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
1
2018-05-02T21:14:50.000Z
2018-05-02T21:14:50.000Z
flexget/plugins/modify/torrent.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/plugins/modify/torrent.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin import logging import os from flexget import plugin from flexget.event import event from flexget.utils.bittorrent import Torrent, is_torrent_file log = logging.getLogger('modi...
39.948718
110
0.553273
1a873cb4e77fbe71f2e77e6bbc36b1e62390d8ca
3,719
py
Python
examples/dataflow-demo-cloud-docker.py
CCMMMA/dagonstar
49dd9d61da342b1f9718fcf4040dac27afcbb06d
[ "Apache-2.0" ]
null
null
null
examples/dataflow-demo-cloud-docker.py
CCMMMA/dagonstar
49dd9d61da342b1f9718fcf4040dac27afcbb06d
[ "Apache-2.0" ]
null
null
null
examples/dataflow-demo-cloud-docker.py
CCMMMA/dagonstar
49dd9d61da342b1f9718fcf4040dac27afcbb06d
[ "Apache-2.0" ]
1
2018-11-11T17:15:24.000Z
2018-11-11T17:15:24.000Z
import sys import json import os.path import datetime from libcloud.compute.types import Provider import ConfigParser from dagon import batch from dagon import Workflow from dagon.remote import CloudTask from dagon.docker_task import DockerTask from dagon.cloud.cloud_manager import KeyPair from dagon.cloud.cloud_mana...
46.4875
306
0.731917
1a87466112c53183afe13c99238f0502d41184da
1,909
py
Python
atom3d/datasets/lba/create_hdf5.py
bfabiandev/atom3d
b2499ff743be2e851c286cabf64696682abffa44
[ "MIT" ]
null
null
null
atom3d/datasets/lba/create_hdf5.py
bfabiandev/atom3d
b2499ff743be2e851c286cabf64696682abffa44
[ "MIT" ]
null
null
null
atom3d/datasets/lba/create_hdf5.py
bfabiandev/atom3d
b2499ff743be2e851c286cabf64696682abffa44
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import argparse import os import pandas as pd from rdkit.Chem import PandasTools from tqdm import tqdm import atom3d.util.formats as dt import atom3d.util.file as fi def convert_to_hdf5(input_dir, label_file, hdf_file): cif_files = fi.find_files(input_dir, 'cif') prot...
30.790323
85
0.673651
1a876200cd2c30545306711668654411ca6df1ae
3,509
py
Python
tests/gpu_multi/basic/gpu_dma_test.py
thobauma/dace
668e4c49e476437e1ea3b272e9dbefca2b92d2e7
[ "BSD-3-Clause" ]
null
null
null
tests/gpu_multi/basic/gpu_dma_test.py
thobauma/dace
668e4c49e476437e1ea3b272e9dbefca2b92d2e7
[ "BSD-3-Clause" ]
null
null
null
tests/gpu_multi/basic/gpu_dma_test.py
thobauma/dace
668e4c49e476437e1ea3b272e9dbefca2b92d2e7
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import dace import numpy as np import pytest from dace.dtypes import StorageType from dace.sdfg import nodes from dace.data import Scalar from dace.memlet import Memlet from dace.transformation.interstate import GPUTransformSDFG N = dace.symbo...
30.780702
79
0.647193
1a87ba8c73afc800c58de6c26b739b284401819c
6,694
py
Python
modules/Transformer.py
zhangguobin/fast-neural-style
eefdcc3b6ba5e92bbad24cd20999c71dde4df072
[ "MIT" ]
null
null
null
modules/Transformer.py
zhangguobin/fast-neural-style
eefdcc3b6ba5e92bbad24cd20999c71dde4df072
[ "MIT" ]
null
null
null
modules/Transformer.py
zhangguobin/fast-neural-style
eefdcc3b6ba5e92bbad24cd20999c71dde4df072
[ "MIT" ]
null
null
null
from tensorflow.keras import layers import sys sys.path.append('../') from utils.reflect_pad2d import reflect_pad2d from modules.InstanceNormalization import InstanceNormalization from modules.ResnetIdentityBlock import ResnetIdentityBlock import tensorflow as tf # Implement the architecture used in jcjohnson/fast-...
45.849315
117
0.57813
1a87c41dcf92a7777cc1351609fcbba14e572e7e
1,485
py
Python
examples/drug_gripnet/config.py
19valentin99/pykale
4bfc7d49b255d00dbcba39dd9aaf787a8ae0b4ad
[ "MIT" ]
324
2020-11-05T19:07:11.000Z
2022-03-16T21:31:39.000Z
examples/drug_gripnet/config.py
19valentin99/pykale
4bfc7d49b255d00dbcba39dd9aaf787a8ae0b4ad
[ "MIT" ]
212
2020-10-31T15:18:59.000Z
2022-03-25T14:13:09.000Z
examples/drug_gripnet/config.py
sz144/pykale
1f5cce57a50f7772520a482e8135a391eb0517f5
[ "MIT" ]
52
2020-10-28T15:43:48.000Z
2022-02-24T02:29:52.000Z
from yacs.config import CfgNode # ----------------------------------------------------------------------------- # Config definition # ----------------------------------------------------------------------------- C = CfgNode() # ----------------------------------------------------------------------------- # Dataset #...
33
80
0.319865
1a87d4e970383f8616ed274eb9f238909b17310b
2,131
py
Python
lbrynet/schema/base.py
Leopere/lbry
af43b21ef6a5de5ce1fee21425bea6f8d6bf335f
[ "MIT" ]
null
null
null
lbrynet/schema/base.py
Leopere/lbry
af43b21ef6a5de5ce1fee21425bea6f8d6bf335f
[ "MIT" ]
null
null
null
lbrynet/schema/base.py
Leopere/lbry
af43b21ef6a5de5ce1fee21425bea6f8d6bf335f
[ "MIT" ]
null
null
null
from lbrynet.schema.schema import ADDRESS_CHECKSUM_LENGTH from lbrynet.schema.hashing import double_sha256 from lbrynet.schema.error import InvalidAddress alphabet = b'123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' def scrub_input(v): if isinstance(v, str) and not isinstance(v, bytes): v = ...
23.417582
87
0.671046
1a87e2ec2741949a968b5d7dcc741d6d3558f673
1,847
py
Python
setup.py
rozum-robotics/pulse-api
82afc905fc0ee451df70e5b371853aa84337a564
[ "Apache-2.0" ]
30
2020-01-22T11:36:58.000Z
2022-03-21T10:59:54.000Z
setup.py
rozum-robotics/pulse-api
82afc905fc0ee451df70e5b371853aa84337a564
[ "Apache-2.0" ]
null
null
null
setup.py
rozum-robotics/pulse-api
82afc905fc0ee451df70e5b371853aa84337a564
[ "Apache-2.0" ]
8
2020-01-22T11:37:13.000Z
2021-11-10T12:37:41.000Z
import pathlib from setuptools import setup, find_packages here = pathlib.Path(__file__).parent def read_version() -> str: file_path = here / "version" with open(file_path) as version_file: return version_file.read().strip() def development_status(version: str) -> str: if "a" in version: ...
27.984848
70
0.670818
1a87e73041d1c4e2ed18ff7cad8b9c6974127240
240
py
Python
really_fast_tuning/to_c/pure_factorial.py
JamesRocker-Simply/fast_python_demo
3bc738052f17daca3ea5d221b1742f4dee0439c7
[ "MIT" ]
1
2020-12-10T20:20:21.000Z
2020-12-10T20:20:21.000Z
really_fast_tuning/to_c/pure_factorial.py
JamesRocker-Simply/fast_python_demo
3bc738052f17daca3ea5d221b1742f4dee0439c7
[ "MIT" ]
null
null
null
really_fast_tuning/to_c/pure_factorial.py
JamesRocker-Simply/fast_python_demo
3bc738052f17daca3ea5d221b1742f4dee0439c7
[ "MIT" ]
1
2020-12-10T20:21:31.000Z
2020-12-10T20:21:31.000Z
def test(x): y = 1 for i in range(1, x+1): y *= i return y # running %timeit %run really_fast_tuning/to_c/c_based_factorial.py shows this almost 2 and a half seconds slower if __name__ == "__main__": test(100000)
21.818182
114
0.645833
1a87ef1f26375a9ae07bf48827e4947506ed60e3
37
py
Python
exorad/cache/__init__.py
derikk/ExoRad2-public
034406bfd8237670f0796f9c95ab2fa5d609bc95
[ "BSD-3-Clause" ]
null
null
null
exorad/cache/__init__.py
derikk/ExoRad2-public
034406bfd8237670f0796f9c95ab2fa5d609bc95
[ "BSD-3-Clause" ]
null
null
null
exorad/cache/__init__.py
derikk/ExoRad2-public
034406bfd8237670f0796f9c95ab2fa5d609bc95
[ "BSD-3-Clause" ]
null
null
null
from .globalcache import GlobalCache
18.5
36
0.864865
1a87f9538ca820795c9de3a4e8c4c87f4cdaffba
770
py
Python
MachineLearning/clustering.py
monocilindro/qgis-earthengine-examples
82aea8926d34ed3f4ad4a4a345ddbd225819d28f
[ "MIT" ]
646
2019-12-03T06:09:03.000Z
2022-03-28T03:37:08.000Z
MachineLearning/clustering.py
csaybar/qgis-earthengine-examples
ba8942683834d2847ff3246bdd1859b36e50fe44
[ "MIT" ]
10
2019-12-30T03:42:44.000Z
2021-05-22T07:34:07.000Z
MachineLearning/clustering.py
csaybar/qgis-earthengine-examples
ba8942683834d2847ff3246bdd1859b36e50fe44
[ "MIT" ]
219
2019-12-06T02:20:53.000Z
2022-03-30T15:14:27.000Z
import ee from ee_plugin import Map # Load a pre-computed Landsat composite for input. input = ee.Image('LANDSAT/LE7_TOA_1YEAR/2001') # Define a region in which to generate a sample of the input. region = ee.Geometry.Rectangle(29.7, 30, 32.5, 31.7) # Display the sample region. Map.setCenter(31.5, 31.0, 8) Map.addL...
26.551724
61
0.725974
1a880fc8b54f3b052f54c412800fe845424e77c5
3,749
py
Python
model/payment/user_subscription.py
bowlofstew/bii-server
9abc558b1ba9722088e22a4937a224cfcc3c5f22
[ "MIT" ]
27
2015-04-15T09:40:26.000Z
2020-04-29T06:24:06.000Z
model/payment/user_subscription.py
bowlofstew/bii-server
9abc558b1ba9722088e22a4937a224cfcc3c5f22
[ "MIT" ]
2
2015-06-03T20:19:51.000Z
2015-06-30T20:40:14.000Z
model/payment/user_subscription.py
bowlofstew/bii-server
9abc558b1ba9722088e22a4937a224cfcc3c5f22
[ "MIT" ]
10
2015-08-06T08:17:28.000Z
2020-09-29T17:02:57.000Z
from biicode.common.model.brl.brl_user import BRLUser from biicode.common.utils.serializer import Serializer from biicode.server.model.epoch.time_period import TimePeriod # KEEP SYNC WITH STRIPE BACKEND PLANS, STRIPE CAN'T STORE PLAN PROPERTIES # NAME, PRICE, NUM_USERS (private contributors), NUM_PRIVATE_BLOCKS (-1 U...
43.593023
101
0.580155
1a88420021950340545034c29b6b993d8f22e5b0
12,078
py
Python
sqlalchemy_dict/tests/test_base_model.py
meyt/sqlalchemy-dict
52b6e2eca5684cc6fb813f0245ddcd6e4d56e116
[ "MIT" ]
9
2017-09-25T21:01:32.000Z
2021-11-14T13:54:35.000Z
sqlalchemy_dict/tests/test_base_model.py
meyt/sqlalchemy-dict
52b6e2eca5684cc6fb813f0245ddcd6e4d56e116
[ "MIT" ]
10
2017-09-26T10:01:49.000Z
2020-03-12T19:21:54.000Z
sqlalchemy_dict/tests/test_base_model.py
meyt/sqlalchemy-dict
52b6e2eca5684cc6fb813f0245ddcd6e4d56e116
[ "MIT" ]
1
2017-09-25T21:47:23.000Z
2017-09-25T21:47:23.000Z
import json import pytest from sqlalchemy import ( UnicodeText, Unicode, DateTime, Date, Time, Integer, Float, ForeignKey, Boolean, Enum, TypeDecorator, ) from sqlalchemy.ext.associationproxy import association_proxy from sqlalchemy.ext.hybrid import hybrid_property from sq...
29.602941
78
0.669978
1a8852c78943223167ca86893a8dc7da2b85bc24
20,516
py
Python
eva_cttv_pipeline/evidence_string_generation/clinvar_to_evidence_strings.py
afoix/eva-opentargets
8a6aab558db0768b035c55b76a21f37023154468
[ "Apache-2.0" ]
null
null
null
eva_cttv_pipeline/evidence_string_generation/clinvar_to_evidence_strings.py
afoix/eva-opentargets
8a6aab558db0768b035c55b76a21f37023154468
[ "Apache-2.0" ]
null
null
null
eva_cttv_pipeline/evidence_string_generation/clinvar_to_evidence_strings.py
afoix/eva-opentargets
8a6aab558db0768b035c55b76a21f37023154468
[ "Apache-2.0" ]
null
null
null
import logging import itertools import json import re import sys import os from collections import defaultdict, Counter import jsonschema from eva_cttv_pipeline import clinvar_xml_utils from eva_cttv_pipeline.evidence_string_generation import consequence_type as CT logger = logging.getLogger(__package__) # A regula...
53.427083
120
0.717099
1a8862c76124e726e6f62c6d74aa41f53cf289da
1,936
py
Python
setup.py
kim-lab/jobsubmitter
33b90ddb83c440d10b6f5cd3265a33a7b24032a5
[ "MIT" ]
3
2016-08-22T18:04:04.000Z
2017-12-18T07:40:00.000Z
setup.py
kim-lab/jobsubmitter
33b90ddb83c440d10b6f5cd3265a33a7b24032a5
[ "MIT" ]
1
2016-07-29T19:06:40.000Z
2016-07-29T19:06:40.000Z
setup.py
kim-lab/jobsubmitter
33b90ddb83c440d10b6f5cd3265a33a7b24032a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python """The setup script.""" import os.path as op import warnings from setuptools import find_packages, setup def _read_md_as_rst(file): """Read Markdown file and convert it to ReStructuredText.""" from pypandoc import convert_file return convert_file(file, 'rst', format='md') def _rea...
28.057971
92
0.664773
1a88b140bd924d2c13ab61f8e103dc834db8a744
1,783
py
Python
pyutils/core/string_ops.py
Nishant173/pyutils
f9a369b227b3f87d44cafa2a00696462cdc0cc37
[ "MIT" ]
null
null
null
pyutils/core/string_ops.py
Nishant173/pyutils
f9a369b227b3f87d44cafa2a00696462cdc0cc37
[ "MIT" ]
null
null
null
pyutils/core/string_ops.py
Nishant173/pyutils
f9a369b227b3f87d44cafa2a00696462cdc0cc37
[ "MIT" ]
null
null
null
from typing import List def __raise_error_if_num_chars_is_negative(num_chars: int) -> None: if num_chars < 0: raise ValueError(f"Expected `num_chars` to be >= 0, but got {num_chars}") return None def get_first_n_characters(text: str, num_chars: int) -> str: __raise_error_if_num_chars_is_negative...
37.145833
110
0.718452
1a88bceaf91a036cdb8c5f22a6f10d5c45df74aa
5,319
py
Python
sunpy/coordinates/frameattributes.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
sunpy/coordinates/frameattributes.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
sunpy/coordinates/frameattributes.py
Naman9639/sunpy
24c0cfbd9b03d7f9554bc86036fac2b78a5fcc56
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division import datetime import warnings import astropy.units as u from astropy.time import Time from astropy.coordinates import TimeAttribute, CoordinateAttribute, get_body_barycentric, ICRS from sunpy.extern import six from sunpy.time import parse_tim...
34.993421
99
0.63809
1a88c99f1dde5659377f23bc17b9a4251d2e9206
64,122
py
Python
rest/views.py
istarnes/restit
24d2805ab68696cab7718cc1164b7f716582ffb7
[ "0BSD" ]
null
null
null
rest/views.py
istarnes/restit
24d2805ab68696cab7718cc1164b7f716582ffb7
[ "0BSD" ]
null
null
null
rest/views.py
istarnes/restit
24d2805ab68696cab7718cc1164b7f716582ffb7
[ "0BSD" ]
null
null
null
# from .models import * from rest.crypto import * # from rest.middleware import get_request from rest import helpers from rest.uberdict import UberDict from django.conf import settings from version import VERSION from django.db import models from django.http import HttpResponse, StreamingHttpResponse, Http404 from dja...
36.557583
430
0.552806
1a89117ff9b9c418720b6274d9efa3608d333995
2,256
py
Python
miura/script.py
toumorokoshi/miura
f23e270a9507e5946798b1e897220c9fb1b8d5fa
[ "MIT" ]
1
2017-05-18T11:34:35.000Z
2017-05-18T11:34:35.000Z
miura/script.py
toumorokoshi/miura
f23e270a9507e5946798b1e897220c9fb1b8d5fa
[ "MIT" ]
null
null
null
miura/script.py
toumorokoshi/miura
f23e270a9507e5946798b1e897220c9fb1b8d5fa
[ "MIT" ]
null
null
null
import os from miura import runner from .utils import get_method_from_module, format_path_to_module from .data import load_data_from_path, filter_data from .template import TemplateSet from .exceptions import MiuraException import logging DEFAULT_DATA_DIRECTORY = os.path.join(os.curdir, 'data') DEFAULT_TEMPLATE_DIRE...
31.333333
83
0.648493
1a893e82cb2dedbf93109fe510d9cd271fcbd8ce
2,209
py
Python
packages/simcore-sdk/src/simcore_sdk/node_data/data_manager.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
packages/simcore-sdk/src/simcore_sdk/node_data/data_manager.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
2
2018-05-13T09:10:57.000Z
2019-03-06T08:10:40.000Z
packages/simcore-sdk/src/simcore_sdk/node_data/data_manager.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
import logging from pathlib import Path from shutil import make_archive, unpack_archive from tempfile import TemporaryDirectory from simcore_sdk.node_ports import config, filemanager log = logging.getLogger(__name__) def _create_s3_object(file_path: Path) -> str: return "{}/{}/{}".format(config.PROJECT...
44.18
124
0.698506
1a8970f5af9ff02fbf61cfafa14b5444a411c03a
1,062
py
Python
musicapp/authentication.py
daniel-afana/MusicDB
c2c897d540e6e514403997510e91044f518c0328
[ "MIT" ]
null
null
null
musicapp/authentication.py
daniel-afana/MusicDB
c2c897d540e6e514403997510e91044f518c0328
[ "MIT" ]
null
null
null
musicapp/authentication.py
daniel-afana/MusicDB
c2c897d540e6e514403997510e91044f518c0328
[ "MIT" ]
null
null
null
from datetime import timedelta from datetime import datetime import pytz # from django.utils import timezone from rest_framework.authentication import TokenAuthentication from rest_framework import exceptions from django.utils.timezone import utc from rest_framework.exceptions import AuthenticationFailed import...
33.1875
82
0.698682
1a8989d7c2f617525c301f30fd899a01362310bf
5,169
py
Python
tensorflow/compiler/tests/cholesky_op_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/compiler/tests/cholesky_op_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/compiler/tests/cholesky_op_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.574627
80
0.66628
1a8a460d70cde38f78dc011b97a2b0b1e099a3c6
12,431
py
Python
modules/rapids_modules/transform/indicatorNode.py
goosen78/gQuant
cc0bff4ac524ccfbe8097acd647a8b3fad5fe578
[ "Apache-2.0" ]
null
null
null
modules/rapids_modules/transform/indicatorNode.py
goosen78/gQuant
cc0bff4ac524ccfbe8097acd647a8b3fad5fe578
[ "Apache-2.0" ]
null
null
null
modules/rapids_modules/transform/indicatorNode.py
goosen78/gQuant
cc0bff4ac524ccfbe8097acd647a8b3fad5fe578
[ "Apache-2.0" ]
null
null
null
from .. import cuindicator as ci from .._port_type_node import _PortTypesMixin from gquant.dataframe_flow.portsSpecSchema import ConfSchema from gquant.dataframe_flow import Node import copy IN_DATA = { "port_exponential_moving_average": { "function": "port_exponential_moving_average", "columns": [...
38.725857
78
0.444292
1a8ab6dd46a8de25d7097434e3784de5ae5581ea
1,384
py
Python
tokenapi/views.py
jpulgarin/django-tokenapi
8456c77638d0ceb2c03ef1677fd9051ab285ad08
[ "Apache-2.0" ]
125
2015-01-04T21:54:38.000Z
2021-04-07T18:16:46.000Z
tokenapi/views.py
jpulgarin/django-tokenapi
8456c77638d0ceb2c03ef1677fd9051ab285ad08
[ "Apache-2.0" ]
23
2015-01-15T20:40:38.000Z
2020-04-11T02:09:20.000Z
tokenapi/views.py
jpulgarin/django-tokenapi
8456c77638d0ceb2c03ef1677fd9051ab285ad08
[ "Apache-2.0" ]
49
2015-03-02T14:49:16.000Z
2021-07-31T19:15:46.000Z
from django.contrib.auth import authenticate from django.views.decorators.csrf import csrf_exempt from tokenapi.tokens import token_generator from tokenapi.http import JsonResponse, JsonResponseUnauthorized, JsonResponseForbidden, JsonResponseNotAllowed @csrf_exempt def token_new(request): if request.method == '...
35.487179
111
0.644509
1a8acc40dd93a6b5b0c36f01a3d3c1540922e63b
2,332
py
Python
dopamine/thesis/scratch/test_off_mem.py
xqz-u/dopamine
d562750a58bcf681a6f8b590f4e4dfb263654b5e
[ "Apache-2.0" ]
null
null
null
dopamine/thesis/scratch/test_off_mem.py
xqz-u/dopamine
d562750a58bcf681a6f8b590f4e4dfb263654b5e
[ "Apache-2.0" ]
null
null
null
dopamine/thesis/scratch/test_off_mem.py
xqz-u/dopamine
d562750a58bcf681a6f8b590f4e4dfb263654b5e
[ "Apache-2.0" ]
null
null
null
import logging import os from typing import List import optax from dopamine.jax import losses from thesis import config from thesis.agents import DQVMaxAgent from thesis.memory import offline_memory from thesis.reporter import reporter from thesis.runner import FixedBatchRunner, runner mlp_adam = lambda name: { n...
29.897436
102
0.632075
1a8afeaf27b6ef395d0606ccd489feef7b7843ee
799
py
Python
exatrkx/__init__.py
sbconlon/exatrkx-iml2020
5101a3bae5a15e8e0557837a8d0b9fd9e122a026
[ "Apache-2.0" ]
6
2020-10-27T21:42:27.000Z
2021-04-18T02:06:30.000Z
exatrkx/__init__.py
sbconlon/exatrkx-iml2020
5101a3bae5a15e8e0557837a8d0b9fd9e122a026
[ "Apache-2.0" ]
null
null
null
exatrkx/__init__.py
sbconlon/exatrkx-iml2020
5101a3bae5a15e8e0557837a8d0b9fd9e122a026
[ "Apache-2.0" ]
6
2020-11-04T23:45:10.000Z
2021-03-26T09:06:00.000Z
from exatrkx.src.processing.feature_construction import FeatureStore from exatrkx.src.embedding.layerless_embedding import LayerlessEmbedding from exatrkx.src.embedding.layerless_embedding import EmbeddingInferenceCallback from exatrkx.src.filter.vanilla_filter import VanillaFilter from exatrkx.src.filter.vanilla_fil...
42.052632
80
0.878598
1a8b243cfbb87828b279e776a01925794f3279eb
2,870
py
Python
tests/unit/models/reddit/test_emoji.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
72
2020-07-14T02:02:21.000Z
2022-03-15T13:10:02.000Z
tests/unit/models/reddit/test_emoji.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
68
2020-07-16T05:29:43.000Z
2022-03-14T12:04:56.000Z
tests/unit/models/reddit/test_emoji.py
Lordshinjo/asyncpraw
d94d89a992d9b5b300439ea6884a9df1d95511e2
[ "BSD-2-Clause" ]
19
2020-07-22T15:34:30.000Z
2022-03-27T20:28:46.000Z
import pytest from asyncpraw.models import Emoji, Subreddit from asyncpraw.models.reddit.emoji import SubredditEmoji from ... import UnitTest class TestEmoji(UnitTest): def test_equality(self): emoji1 = Emoji(self.reddit, subreddit=Subreddit(self.reddit, "a"), name="x") emoji2 = Emoji(self.reddi...
42.205882
84
0.636934
1a8b2a6fbbd23dbbde04ea0bf51d5a5ada6141d6
5,918
py
Python
monai/data/synthetic.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
1
2021-07-13T00:34:41.000Z
2021-07-13T00:34:41.000Z
monai/data/synthetic.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
null
null
null
monai/data/synthetic.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 - 2021 MONAI Consortium # 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 wri...
41.676056
123
0.656303
1a8b77e0a904fa7e5d5a2dce9902a414f68abf9c
99,351
py
Python
catboost/pytest/cuda_tests/test_gpu.py
chriwill/catboost
ad983758c93f4067547c6bca695454c8a2f21042
[ "Apache-2.0" ]
null
null
null
catboost/pytest/cuda_tests/test_gpu.py
chriwill/catboost
ad983758c93f4067547c6bca695454c8a2f21042
[ "Apache-2.0" ]
null
null
null
catboost/pytest/cuda_tests/test_gpu.py
chriwill/catboost
ad983758c93f4067547c6bca695454c8a2f21042
[ "Apache-2.0" ]
null
null
null
import catboost import filecmp import json import numpy as np import os import pytest import re import yatest.common from catboost_pytest_lib import ( append_params_to_cmdline, apply_catboost, compare_evals_with_precision, compare_metrics_with_diff, data_file, execute_catboost_fit, format_c...
36.864935
169
0.649465
1a8b7da1dd72ccef48b977d16d40e8599287bdd4
6,084
py
Python
influxdb_client/client/query_api.py
timbeccue/influxdb-client-python
ff136c7990527a87dcf5f8ff39f6f686ce218c98
[ "MIT" ]
null
null
null
influxdb_client/client/query_api.py
timbeccue/influxdb-client-python
ff136c7990527a87dcf5f8ff39f6f686ce218c98
[ "MIT" ]
null
null
null
influxdb_client/client/query_api.py
timbeccue/influxdb-client-python
ff136c7990527a87dcf5f8ff39f6f686ce218c98
[ "MIT" ]
null
null
null
import codecs import csv from typing import List, Generator, Any from influxdb_client import Dialect from influxdb_client import Query, QueryService from influxdb_client.client.flux_csv_parser import FluxCsvParser, FluxSerializationMode from influxdb_client.client.flux_table import FluxTable, FluxRecord class QueryA...
41.387755
116
0.657627
1a8b8cead2dece2c22eaf5dce4d69c27bc082c6e
2,498
py
Python
publichealth/home/migrations/0010_auto_20170410_2307.py
pcoder/public-health-ch
cebc4849653560c54238b67814074353ff7c01f3
[ "MIT" ]
2
2020-10-29T16:27:21.000Z
2021-06-07T12:47:46.000Z
publichealth/home/migrations/0010_auto_20170410_2307.py
pcoder/public-health-ch
cebc4849653560c54238b67814074353ff7c01f3
[ "MIT" ]
11
2017-05-09T10:50:28.000Z
2021-12-15T17:01:23.000Z
publichealth/home/migrations/0010_auto_20170410_2307.py
pcoder/public-health-ch
cebc4849653560c54238b67814074353ff7c01f3
[ "MIT" ]
4
2017-04-24T13:06:55.000Z
2021-06-04T02:18:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-04-10 21:07 from __future__ import unicode_literals from django.db import migrations, models import wagtail.core.blocks import wagtail.core.fields import wagtail.images.blocks class Migration(migrations.Migration): dependencies = [ ('home', '0...
42.338983
381
0.628903
1a8b97d249f94d9e25936808934cea1a5c26cd22
35,082
py
Python
PTMCMCSampler/PTMCMCSampler.py
rgreen1995/PTMCMCSampler
3260a48bf34f78511381cf0c8aeaa8ec2ce81f10
[ "MIT" ]
1
2019-07-22T09:19:03.000Z
2019-07-22T09:19:03.000Z
PTMCMCSampler/PTMCMCSampler.py
rgreen1995/PTMCMCSampler
3260a48bf34f78511381cf0c8aeaa8ec2ce81f10
[ "MIT" ]
36
2019-07-04T14:31:37.000Z
2019-07-30T09:29:32.000Z
PTMCMCSampler/PTMCMCSampler.py
rgreen1995/PTMCMCSampler
3260a48bf34f78511381cf0c8aeaa8ec2ce81f10
[ "MIT" ]
2
2019-07-04T12:43:12.000Z
2019-07-23T08:48:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import import numpy as np import scipy.stats as ss import os import sys import time from .nutsjump import NUTSJump, HMCJump, MALAJump from . import proposals as prop from .result import Result import tqdm from tqdm...
33.700288
92
0.547973
1a8bbffcba9cf3a525d46bf78c8da916ddd9dbb4
1,767
py
Python
model/classification/vgg.py
hotcouscous1/TensorBricks
94dd90dce43a455d9abd7ccf19e1e7f361da7824
[ "BSD-3-Clause" ]
null
null
null
model/classification/vgg.py
hotcouscous1/TensorBricks
94dd90dce43a455d9abd7ccf19e1e7f361da7824
[ "BSD-3-Clause" ]
null
null
null
model/classification/vgg.py
hotcouscous1/TensorBricks
94dd90dce43a455d9abd7ccf19e1e7f361da7824
[ "BSD-3-Clause" ]
null
null
null
from backbone.vgg import * class VGG(nn.Module): """ __version__ = 1.0 __date__ = Mar 7, 2022 paper : https://arxiv.org/abs/1409.1556 checkpoints : https://github.com/pytorch/vision/blob/main/torchvision/models/vgg.py **kwargs -> num_blocks: list, batch_norm: bool, Act: nn.Module """ ...
30.465517
103
0.485003
1a8bc0d0e4a02175e6972f36a56b47bf7afe5c8c
2,530
py
Python
python/app/plugins/http/Intellian/CVE_2020_7980.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
351
2020-02-26T05:23:26.000Z
2022-03-26T12:39:19.000Z
python/app/plugins/http/Intellian/CVE_2020_7980.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
15
2020-03-26T07:31:49.000Z
2022-03-09T02:12:17.000Z
python/app/plugins/http/Intellian/CVE_2020_7980.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
99
2020-02-28T07:30:46.000Z
2022-03-16T16:41:09.000Z
#!/usr/bin/env python3 import time import calendar from app.lib.utils.request import request from app.lib.utils.common import get_capta, get_useragent class CVE_2020_7980_BaseVerify: def __init__(self, url): self.info = { 'name': 'CVE-2020-7980漏洞', 'description': 'CVE-2020-7980漏洞可执...
29.418605
196
0.484585
1a8bd4466325eb1a8ec625c6b8e8f8d751727f77
8,330
py
Python
tests/e2e/scale/test_pv_scale_ocs_create_delete_pvcs.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/e2e/scale/test_pv_scale_ocs_create_delete_pvcs.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
tests/e2e/scale/test_pv_scale_ocs_create_delete_pvcs.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
""" PV Create/Delete & Memory Leak Test: Test the PVC limit with 3 worker nodes with & without any IO create and delete the PVCs and check for memory leak TO DO: This Test needs to be executed in Scaled setup, Adding node scale is yet to be supported. """ import logging import pytest import random import time import th...
37.022222
97
0.603962
1a8bdbc566ab98c8cecece54a78ac9dbe3b6a943
1,578
py
Python
tests/test_optional_relationship.py
cinaljess/goatools
8cd603df88fcb49da970e37c445cdb1bdd17ee01
[ "BSD-2-Clause" ]
1
2020-03-12T13:53:11.000Z
2020-03-12T13:53:11.000Z
tests/test_optional_relationship.py
cinaljess/goatools
8cd603df88fcb49da970e37c445cdb1bdd17ee01
[ "BSD-2-Clause" ]
null
null
null
tests/test_optional_relationship.py
cinaljess/goatools
8cd603df88fcb49da970e37c445cdb1bdd17ee01
[ "BSD-2-Clause" ]
1
2020-03-12T14:38:05.000Z
2020-03-12T14:38:05.000Z
#!/usr/bin/env python """Test the loading of all optional GO term attributes. Maximum number of fields on a GO term: required: 1 name 1 namespace 10 is_a 16 alt_id optional scalar: 1 def 1 comment optional set: 12 subset goslim_mouse optional special: 3 relat...
24.65625
90
0.692015
1a8bfbce5abd97c03aeb2aedba3538756c106d4a
10,265
py
Python
misc/math-scripts/Polygonzug.py
cfsengineering/tigl
abfbb57b82dc6beac7cde212a4cd5e0aed866db8
[ "Apache-2.0" ]
171
2015-04-13T11:24:34.000Z
2022-03-26T00:56:38.000Z
misc/math-scripts/Polygonzug.py
cfsengineering/tigl
abfbb57b82dc6beac7cde212a4cd5e0aed866db8
[ "Apache-2.0" ]
620
2015-01-20T08:34:36.000Z
2022-03-30T11:05:33.000Z
misc/math-scripts/Polygonzug.py
cfsengineering/tigl
abfbb57b82dc6beac7cde212a4cd5e0aed866db8
[ "Apache-2.0" ]
56
2015-02-09T13:33:56.000Z
2022-03-19T04:52:51.000Z
#import matplotlib as mpl #from mpl_toolkits.mplot3d import Axes3D from math import atan from numpy import array, linalg, dot, arccos, cos, sin, linspace, pi, size, arange, zeros,cumsum, diff, sqrt def cart2pol(x, y): r = sqrt(x*x + y*y) if x == 0 and y >= 0: phi = pi/2 elif x == 0 and y < 0: ...
31.780186
129
0.484851
1a8c0dd70cbedc6e695c244f387f61a9699f4d24
802
py
Python
alipay/aop/api/response/AlipaySecurityProdVoiceQuestionQueryResponse.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/response/AlipaySecurityProdVoiceQuestionQueryResponse.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/response/AlipaySecurityProdVoiceQuestionQueryResponse.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.response.AlipayResponse import AlipayResponse class AlipaySecurityProdVoiceQuestionQueryResponse(AlipayResponse): def __init__(self): super(AlipaySecurityProdVoiceQuestionQueryResponse, self).__init__() self._question_...
30.846154
117
0.745636
1a8c2bbc3912c24f7f69e58a5186f87c2e38fe62
4,512
py
Python
var/spack/repos/builtin/packages/brayns/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/brayns/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/brayns/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2018 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 Brayns(CMakePackage): """Visualizer for large-scale and interactive ray-tracing of neurons...
42.168224
78
0.610816
1a8c4519118f69ce51ca9a5eb95a9d706c7766cc
8,220
py
Python
tensorflow/compiler/tests/gather_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/compiler/tests/gather_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/compiler/tests/gather_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.294118
80
0.666302
1a8c5133e4014bb3a97779f430853612089c9da0
4,599
py
Python
experiments/ashvin/icml2020/hand/sparse2/hammer_video1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/sparse2/hammer_video1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/sparse2/hammer_video1.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...
30.256579
77
0.564471
1a8c61c92b505e7f6227e8146c99b815f07341c0
2,904
py
Python
salt/utils/jinja.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
2
2019-03-30T02:12:56.000Z
2021-03-08T18:59:46.000Z
salt/utils/jinja.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
salt/utils/jinja.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
1
2020-12-04T11:28:06.000Z
2020-12-04T11:28:06.000Z
''' Jinja loading utils to enable a more powerful backend for jinja templates ''' # Import python libs from os import path import logging # Import third party libs from jinja2 import BaseLoader from jinja2.exceptions import TemplateNotFound # Import salt libs import salt import salt.fileclient log = logging.getLogg...
31.912088
74
0.584022
1a8c977d32662cfecbd43b665dfa2d14eaa8acd0
641
py
Python
tests/test_papas.py
edponce/papas
7deb831d852c4f172ef87270bb3629cee5269799
[ "MIT" ]
null
null
null
tests/test_papas.py
edponce/papas
7deb831d852c4f172ef87270bb3629cee5269799
[ "MIT" ]
null
null
null
tests/test_papas.py
edponce/papas
7deb831d852c4f172ef87270bb3629cee5269799
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import unittest from papas import papas class TestConfigurationFiles(unittest.TestCase): def test_loadYAMLTaskConf(self): t = papas.load_conf('papas/tasks_conf/YAML_conf/helloWorld.yml') self.assertTrue(len(t) > 0) def test_loadJSONTaskConf(self): t = papas.l...
25.64
76
0.695788
1a8cac45f029c284fc84133977f3f6c8ffbd3c33
32,468
py
Python
Fuzzy_TOPSIS_dm.py
aamiradeeb/Knowledge-Based-System---MaterialSelection
b03f3812e84c9db332081aee3a957f51f95ac153
[ "MIT" ]
null
null
null
Fuzzy_TOPSIS_dm.py
aamiradeeb/Knowledge-Based-System---MaterialSelection
b03f3812e84c9db332081aee3a957f51f95ac153
[ "MIT" ]
null
null
null
Fuzzy_TOPSIS_dm.py
aamiradeeb/Knowledge-Based-System---MaterialSelection
b03f3812e84c9db332081aee3a957f51f95ac153
[ "MIT" ]
null
null
null
import numpy as np import sqlite3 import pandas as pd import warnings import copy warnings.filterwarnings('error') def fuzzyTOPSIS_fuzzydm(num_val_sublv2,ave_weight_dms_list,c_optimise_setdata_list): con=sqlite3.connect("materialdatabase.db") if num_val_sublv2 == 1 : df=pd.read_sq...
38.469194
106
0.502064
1a8cc51be50b8ca5639477e3d8fc063049cf9aff
3,594
py
Python
browsing/forms.py
gfranzini/dig_ed_cat
5f1a64109010e5366d28d0639f088a2e895c3488
[ "MIT" ]
null
null
null
browsing/forms.py
gfranzini/dig_ed_cat
5f1a64109010e5366d28d0639f088a2e895c3488
[ "MIT" ]
10
2021-02-02T23:12:07.000Z
2021-12-13T20:50:47.000Z
browsing/forms.py
gfranzini/dig_ed_cat
5f1a64109010e5366d28d0639f088a2e895c3488
[ "MIT" ]
null
null
null
from crispy_forms.helper import FormHelper from crispy_forms.layout import Submit, Layout, Fieldset from editions.models import * from places.models import * class MapFilterFormHelper(FormHelper): def __init__(self, *args, **kwargs): super(MapFilterFormHelper, self).__init__(*args, **kwargs) self...
31.252174
70
0.44463
1a8cda2398d17558374a8a543238f0a4c832588f
2,615
py
Python
skimage/util/montage.py
jaberg/scikits-image
2ab3e2dfb341189ef2ff9370c6cf3d33ef6ec88d
[ "BSD-3-Clause" ]
null
null
null
skimage/util/montage.py
jaberg/scikits-image
2ab3e2dfb341189ef2ff9370c6cf3d33ef6ec88d
[ "BSD-3-Clause" ]
null
null
null
skimage/util/montage.py
jaberg/scikits-image
2ab3e2dfb341189ef2ff9370c6cf3d33ef6ec88d
[ "BSD-3-Clause" ]
1
2019-12-20T19:19:59.000Z
2019-12-20T19:19:59.000Z
__all__ = ['montage2d'] import numpy as np from .. import exposure EPSILON = 1e-6 def montage2d(arr_in, fill='mean', rescale_intensity=False): """Create a 2-dimensional 'montage' from a 3-dimensional input array representing an ensemble of equally shaped 2-dimensional images. For example, montage2d(arr...
26.958763
76
0.572849
1a8ce9a45e004719257d26de8bcfc1d6094ccc2b
1,700
py
Python
tests/components/workers/timeloop_comp.py
HPC-SimTools/IPS-framework
4911bcc97a64bb31503009de75f24d3cba263bec
[ "BSD-3-Clause" ]
9
2019-05-06T17:30:35.000Z
2021-12-10T16:05:00.000Z
tests/components/workers/timeloop_comp.py
HPC-SimTools/IPS-framework
4911bcc97a64bb31503009de75f24d3cba263bec
[ "BSD-3-Clause" ]
80
2018-04-13T20:25:04.000Z
2022-03-10T21:59:58.000Z
tests/components/workers/timeloop_comp.py
HPC-SimTools/IPS-framework
4911bcc97a64bb31503009de75f24d3cba263bec
[ "BSD-3-Clause" ]
4
2020-08-07T17:58:13.000Z
2021-11-12T17:17:42.000Z
from ipsframework import Component class timeloop_comp(Component): def init(self, timestamp=0.0): self.output_files = self.OUTPUT_FILES.split() self.output_files.append(self.services.get_config_param("CURRENT_STATE")) self.services.stage_state() for output_file in self.output_files...
40.47619
87
0.669412
1a8d02821310cc2662b25ae4ae5ab4a383c7bce0
83
py
Python
aerosandbox/dynamics/flight_dynamics.py
opme/AeroSandbox
309ae275387fca0bcf0a36a105ba761584318f35
[ "MIT" ]
null
null
null
aerosandbox/dynamics/flight_dynamics.py
opme/AeroSandbox
309ae275387fca0bcf0a36a105ba761584318f35
[ "MIT" ]
null
null
null
aerosandbox/dynamics/flight_dynamics.py
opme/AeroSandbox
309ae275387fca0bcf0a36a105ba761584318f35
[ "MIT" ]
null
null
null
class FlightDynamics: pass # TODO class LinearFlightDynamics: pass # TODO
13.833333
27
0.722892
1a8d2197551ea485872fd16649c473b794c55928
4,006
py
Python
src/ggrc/assets.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/assets.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/assets.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Manage "static" assets The actual list of stylesheets and javascripts to compile is in `assets/assets.yaml`. When developing, you can use `webassets` to automatically recompile changed assets by startin...
29.674074
79
0.724164
1a8d3aeb7527689260e1522c37b921f946a82dc1
723
py
Python
tests/test_image.py
NonSvizzero/CAGED-finder
b52120ff6a08afd1efe70883f8ac2af4f1d46a04
[ "MIT" ]
2
2019-09-26T20:15:22.000Z
2020-08-30T14:42:26.000Z
tests/test_image.py
noplus/licksterr
b52120ff6a08afd1efe70883f8ac2af4f1d46a04
[ "MIT" ]
21
2018-10-21T12:39:46.000Z
2019-02-23T17:21:16.000Z
tests/test_image.py
NonSvizzero/CAGED-finder
b52120ff6a08afd1efe70883f8ac2af4f1d46a04
[ "MIT" ]
null
null
null
import os from PIL import ImageColor from licksterr.image import GuitarImage from tests import TEST_ASSETS, LicksterrTest class TestImage(LicksterrTest): FORMS = 'CAGED' @classmethod def setUpClass(cls): cls.guitar = GuitarImage() def test_fill(self): """Should produce an image wit...
30.125
102
0.650069
1a8d4b5738a246014c436a8e08cf023baca8ca44
1,711
py
Python
assemblyline/odm/models/file.py
malvidin/assemblyline-base
6e7de0c15fbca2cf586e33f04df7d3717bd0c0b5
[ "MIT" ]
null
null
null
assemblyline/odm/models/file.py
malvidin/assemblyline-base
6e7de0c15fbca2cf586e33f04df7d3717bd0c0b5
[ "MIT" ]
null
null
null
assemblyline/odm/models/file.py
malvidin/assemblyline-base
6e7de0c15fbca2cf586e33f04df7d3717bd0c0b5
[ "MIT" ]
null
null
null
from assemblyline import odm @odm.model(index=True, store=True) class Seen(odm.Model): count = odm.Integer(default=1) # Number of time we've seen this file first = odm.Date(default="NOW") # Date of the first time we've seen the file last = odm.Date(default="NOW") # Date of the last time we'v...
61.107143
117
0.624781
1a8d4e4d9e07082a19578f8f742c0dc2fac8254b
1,496
py
Python
bin/install.py
henzk/django-productline
24ff156924c1a8c07b99cbb8a1de0a42b8d81f60
[ "MIT" ]
5
2015-06-16T17:36:33.000Z
2017-10-17T19:22:59.000Z
bin/install.py
henzk/django-productline
24ff156924c1a8c07b99cbb8a1de0a42b8d81f60
[ "MIT" ]
8
2016-03-14T09:02:13.000Z
2017-11-16T16:00:31.000Z
bin/install.py
henzk/django-productline
24ff156924c1a8c07b99cbb8a1de0a42b8d81f60
[ "MIT" ]
17
2015-08-04T18:45:18.000Z
2017-11-16T14:52:46.000Z
import os import sys def main(args): if '--dev' in args: use_devel_version = True ape_devel_arg = '--dev' args.remove('--dev') djpl_install = 'pip install -e git+https://github.com/henzk/django-productline#egg=django-productline' else: use_devel_version = False ...
32.521739
123
0.612968
1a8d58db756cf433eb572b81766a6ee3ee5ac019
2,475
py
Python
tryalgo/arithm_expr_eval.py
xcarcelle/tryalgo
c159fbffbea0a4e8b70e8898c31c62c7e08a3865
[ "MIT" ]
null
null
null
tryalgo/arithm_expr_eval.py
xcarcelle/tryalgo
c159fbffbea0a4e8b70e8898c31c62c7e08a3865
[ "MIT" ]
null
null
null
tryalgo/arithm_expr_eval.py
xcarcelle/tryalgo
c159fbffbea0a4e8b70e8898c31c62c7e08a3865
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Evaluate an arithmetic expression # jill-jenn vie et christoph durr - 2014-2018 # IPCELLS # http://www.spoj.com/problems/IPCELLS/ from sys import stdin # snip{ arithm_expr_eval def arithm_expr_eval(cell, expr): """Evaluates a given expression :param expr: ex...
27.197802
69
0.537778
1a8d5d280b9aa8de8d1c72be8dd006488a35840a
7,211
py
Python
vfio_isolate/cli.py
spheenik/vfio-isolate
6d6a1f0d5e5d84a5ad9911c635a81b86710d12d5
[ "MIT" ]
44
2020-05-03T15:03:32.000Z
2022-03-23T19:03:23.000Z
vfio_isolate/cli.py
spheenik/vfio-isolate
6d6a1f0d5e5d84a5ad9911c635a81b86710d12d5
[ "MIT" ]
7
2020-08-18T10:17:14.000Z
2022-01-14T14:18:47.000Z
vfio_isolate/cli.py
spheenik/vfio-isolate
6d6a1f0d5e5d84a5ad9911c635a81b86710d12d5
[ "MIT" ]
6
2020-06-02T05:29:34.000Z
2022-02-04T17:12:40.000Z
import pickle import sys from dataclasses import is_dataclass import click from vfio_isolate.action import * from vfio_isolate.cpu import CPU from vfio_isolate.irq import IRQS from vfio_isolate.nodeset import CPUNodeSet, NUMANodeSet from vfio_isolate.serialize import * def cb_numa_nodeset(ctx, param, value): if...
35.004854
130
0.655388
1a8d65bb30ff802c912e462832f1c9103e9362cd
3,821
py
Python
tools/test_net.py
nikolaevra/tf-faster-rcnn
4a5a5f9cfd4dc6548ee9cf63f1122eadbc06ea39
[ "MIT" ]
null
null
null
tools/test_net.py
nikolaevra/tf-faster-rcnn
4a5a5f9cfd4dc6548ee9cf63f1122eadbc06ea39
[ "MIT" ]
null
null
null
tools/test_net.py
nikolaevra/tf-faster-rcnn
4a5a5f9cfd4dc6548ee9cf63f1122eadbc06ea39
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Zheqi he, Xinlei Chen, based on code from Ross Girshick # -------------------------------------------------------- from __future__ import absolute_import from __fu...
31.065041
75
0.64224
1a8daa1bf222aeba0041a7dc69581e83f6e7d90f
695
py
Python
terrascript/data/Ouest_France/phpipam.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/data/Ouest_France/phpipam.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/data/Ouest_France/phpipam.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/data/Ouest-France/phpipam.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:24:28 UTC) import terrascript class phpipam_address(terrascript.Data): pass class phpipam_addresses(terrascript.Data): pass class phpipam_first_free_address(terrascript.Data): pass class phpipam...
16.162791
73
0.736691
1a8dacb127fd49094b42b5fe5acd9db61aba393c
1,463
py
Python
arbitrage.py
ai-abhinav/CCArbitrage
6af8c2e6722f2398fabf3a6e483b1a0fcb8a3a53
[ "MIT" ]
1
2021-03-07T23:07:52.000Z
2021-03-07T23:07:52.000Z
arbitrage.py
ai-abhinav/CCArbitrage
6af8c2e6722f2398fabf3a6e483b1a0fcb8a3a53
[ "MIT" ]
null
null
null
arbitrage.py
ai-abhinav/CCArbitrage
6af8c2e6722f2398fabf3a6e483b1a0fcb8a3a53
[ "MIT" ]
null
null
null
#logic #For each symbol pair # for each exchange # fetch symbol price # l = get lowest ask price # h = get highest bid price # if h > l*1.005 # raise warning import ccxt import schedule, time def job(): ##symbols = ['BCH/USD', 'ETH/USD', 'LTC/USD', 'DASH/USD'] symbols = ['BCH/USD', 'LTC/USD', 'ETH/USD'] pairs...
31.804348
68
0.585783
1a8dcf247965c4c2d6a18954030cf9dffef50291
1,130
py
Python
testpeacks.py
andreagia/peaks-identification
ddcc3523f9a1154f6c2f69035dde1bfb9eac0f2a
[ "MIT" ]
null
null
null
testpeacks.py
andreagia/peaks-identification
ddcc3523f9a1154f6c2f69035dde1bfb9eac0f2a
[ "MIT" ]
null
null
null
testpeacks.py
andreagia/peaks-identification
ddcc3523f9a1154f6c2f69035dde1bfb9eac0f2a
[ "MIT" ]
null
null
null
import sys from peaksIdentification.peaks_assignement import * import pickle import numpy as np filename = "spect.pck" infile = open(filename,'rb') spec_dict = pickle.load(infile) infile.close() for sp in spec_dict.keys(): print(spec_dict[sp].keys()) numa = [int(i) for i in spec_dict[sp].keys()] numa.sort()...
30.540541
64
0.656637
1a8dd8b4390e71da866ba7a76770d7a99ab971ba
13,027
py
Python
lvsfunc/kernels.py
Setsugennoao/lvsfunc
44d9d9949f1dd7d7ad1c26417a8ca42ca9e2d382
[ "MIT" ]
null
null
null
lvsfunc/kernels.py
Setsugennoao/lvsfunc
44d9d9949f1dd7d7ad1c26417a8ca42ca9e2d382
[ "MIT" ]
null
null
null
lvsfunc/kernels.py
Setsugennoao/lvsfunc
44d9d9949f1dd7d7ad1c26417a8ca42ca9e2d382
[ "MIT" ]
null
null
null
""" Kernels for VapourSynth internal resizers. Intended for use by :py:mod:`lvsfunc.scale` functions. """ from abc import ABC, abstractmethod from math import sqrt from typing import Any, Dict, Tuple, Union, Optional import vapoursynth as vs core = vs.core class Kernel(ABC): """ Abstract scaling ker...
37.869186
93
0.566362
1a8df17169f35722b9d95579a7eb0f4e272c8fc8
706
py
Python
eth/tools/_utils/vyper.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
5
2018-09-28T20:01:42.000Z
2022-02-22T19:54:46.000Z
eth/tools/_utils/vyper.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
null
null
null
eth/tools/_utils/vyper.py
jin10086/py-evm
da04e8de42fdbf3bc5ca596f5f6b3d810c1afea8
[ "MIT" ]
1
2019-01-29T21:09:31.000Z
2019-01-29T21:09:31.000Z
import functools try: from vyper.compile_lll import ( compile_to_assembly, assembly_to_evm, ) from vyper.parser.parser_utils import LLLnode except ImportError: vyper_available = False else: vyper_available = True def require_vyper(fn): @functools.wraps(fn) def inner(*args,...
22.774194
80
0.681303
1a8df8e8ad00347648ea7a7511f341bd64221330
2,665
py
Python
bootcamp/urls.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
bootcamp/urls.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
bootcamp/urls.py
basiltiger/easy_bootcamp
875b9ed287f1a7824bb38f142dbe2f3b1ce54389
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib.auth import views as auth_views from django.contrib import admin from bootcamp.activities import views as activities_views from bootcamp.authentication import views as bootcamp_auth_...
44.416667
92
0.698311