hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
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
972
max_forks_repo_name
stringlengths
6
130
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
30e480956d13aea5d26352cf77a74269ad82ddd6
47,159
py
Python
hail/python/test/hail/table/test_table.py
GreatBrando/hail
9c8d183f57775ca1073f9f821c78e48474114a42
[ "MIT" ]
null
null
null
hail/python/test/hail/table/test_table.py
GreatBrando/hail
9c8d183f57775ca1073f9f821c78e48474114a42
[ "MIT" ]
null
null
null
hail/python/test/hail/table/test_table.py
GreatBrando/hail
9c8d183f57775ca1073f9f821c78e48474114a42
[ "MIT" ]
null
null
null
import unittest import pandas as pd import pyspark.sql import pytest import hail as hl import hail.expr.aggregators as agg from hail.utils import new_temp_file from hail.utils.java import Env from ..helpers import * from test.hail.matrixtable.test_file_formats import create_all_values_datasets setUpModule = startTes...
41.919111
133
0.519159
c11366029afd6f05d2acbc483e4e28a2d2ca0576
813
py
Python
setup.py
johari/holy
c90a53f7d76c871b406f759a8bb24a513123e47e
[ "MIT" ]
3
2016-04-14T17:49:49.000Z
2017-12-30T04:50:49.000Z
setup.py
johari/holy
c90a53f7d76c871b406f759a8bb24a513123e47e
[ "MIT" ]
null
null
null
setup.py
johari/holy
c90a53f7d76c871b406f759a8bb24a513123e47e
[ "MIT" ]
null
null
null
"""`holy` lives on `GitHub <http://github.com/njoh/holy/>`_.""" from distutils.core import setup setup( name = "holy", version = "0.0.2", author = "Nima Johari", author_email = "nimajohari@gmail.com", description = "POC Python AST to Ruby script transformer", license = "MIT", keywords = "py...
30.111111
63
0.591636
2aae6bd4d0b488fe93b918336b4baffc27c7863c
5,758
py
Python
tests/test_first_sets.py
ahupp/pegen
e28fe4fb1972c55af5ddb6a7bdd9cba4ea072b81
[ "MIT" ]
null
null
null
tests/test_first_sets.py
ahupp/pegen
e28fe4fb1972c55af5ddb6a7bdd9cba4ea072b81
[ "MIT" ]
null
null
null
tests/test_first_sets.py
ahupp/pegen
e28fe4fb1972c55af5ddb6a7bdd9cba4ea072b81
[ "MIT" ]
null
null
null
from typing import Set, Dict from pegen.first_sets import FirstSetCalculator from pegen.grammar import Grammar from pegen.grammar_parser import GeneratedParser as GrammarParser from pegen.utils import parse_string def calculate_first_sets(grammar_source: str) -> Dict[str, Set[str]]: grammar: Grammar = parse_stri...
23.892116
99
0.5033
d193680177332568b03e842ec1543a807f9d0801
8,090
py
Python
signbank/dictionary/migrations/0018_auto__del_field_gloss_tags.py
codev/bslsignbank
5c8f48c4aa14f48483b38f922f4bc4a4d4eda33e
[ "BSD-3-Clause" ]
5
2016-01-19T04:06:40.000Z
2020-05-01T17:10:46.000Z
signbank/dictionary/migrations/0018_auto__del_field_gloss_tags.py
codev/bslsignbank
5c8f48c4aa14f48483b38f922f4bc4a4d4eda33e
[ "BSD-3-Clause" ]
2
2020-02-12T00:09:31.000Z
2020-06-05T17:51:51.000Z
signbank/dictionary/migrations/0018_auto__del_field_gloss_tags.py
codev/bslsignbank
5c8f48c4aa14f48483b38f922f4bc4a4d4eda33e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'Gloss.tags' db.delete_column('dictionary_gloss', 'tags') def backwards(self, orm): ...
73.545455
146
0.549444
3c0d29701c5149ef210b406726a9c5ec078d0e2b
3,474
py
Python
src/walker.py
josiasMO/geneticPassiveWalker
6530ec5153952999e22ed2c4271af7f228d04d50
[ "MIT" ]
null
null
null
src/walker.py
josiasMO/geneticPassiveWalker
6530ec5153952999e22ed2c4271af7f228d04d50
[ "MIT" ]
null
null
null
src/walker.py
josiasMO/geneticPassiveWalker
6530ec5153952999e22ed2c4271af7f228d04d50
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 import pymunk import pymunk.util from pymunk import Vec2d from math import pi class Walker(): def __init__(self, space, pos, ul, ll, w, \ lua, lla, rua, rla): '''Creates a passive dynamic walker. The parameters are as follow: space -- the pymunk space ...
38.175824
71
0.574842
e7edbc9ddd2005407c4f39c135b377ba394978d5
2,867
py
Python
tests/test_unicode.py
ArchiversAnonymous/python-twitter
91f0be216ed96491b6930a759e770bbfdb92f5d6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/test_unicode.py
ArchiversAnonymous/python-twitter
91f0be216ed96491b6930a759e770bbfdb92f5d6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/test_unicode.py
ArchiversAnonymous/python-twitter
91f0be216ed96491b6930a759e770bbfdb92f5d6
[ "ECL-2.0", "Apache-2.0" ]
1
2020-01-16T12:10:24.000Z
2020-01-16T12:10:24.000Z
# encoding: utf-8 import json import pickle import re import sys import unittest import warnings import responses import twitter warnings.filterwarnings('ignore', category=DeprecationWarning) DEFAULT_URL = re.compile(r'https?://.*\.twitter.com/1\.1/.*') class ErrNull(object): """ Suppress output of tests while...
26.794393
77
0.58842
0b58df4b8caa872d68b0c4444c1e992f194ab9a7
3,168
py
Python
Prototype/src/libsbml-5.10.0/examples/python/groups/example1.py
Cosmo-Tech/biopredyn
0f5bcd4cb1f723bfdea07d4973e46e676f4175e8
[ "BSD-3-Clause" ]
null
null
null
Prototype/src/libsbml-5.10.0/examples/python/groups/example1.py
Cosmo-Tech/biopredyn
0f5bcd4cb1f723bfdea07d4973e46e676f4175e8
[ "BSD-3-Clause" ]
95
2015-03-06T12:14:06.000Z
2015-03-20T11:15:54.000Z
Prototype/src/libsbml-5.10.0/examples/python/groups/example1.py
Cosmo-Tech/biopredyn
0f5bcd4cb1f723bfdea07d4973e46e676f4175e8
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # @file example1.py # @brief SBML Groups example # @author Akiya Jouraku # @author Frank Bergmann (python port) # # $Id: example1.py 11938 2010-09-20 02:04:23Z mhucka $ # $HeadURL: https://sbml.svn.sourceforge.net/svnroot/sbml/branches/libsbml-5/examples/groups/example1.py $ # ...
27.310345
107
0.723485
7b34a2a4c7845c82fb0daf7eb030a9a734713b5e
9,131
py
Python
saleor/checkout/base_calculations.py
SlashKing/saleor
bdd78044d542ef5650af7f5c0fd177001661c5b2
[ "CC-BY-4.0" ]
null
null
null
saleor/checkout/base_calculations.py
SlashKing/saleor
bdd78044d542ef5650af7f5c0fd177001661c5b2
[ "CC-BY-4.0" ]
81
2021-10-11T04:26:07.000Z
2022-03-28T04:46:43.000Z
saleor/checkout/base_calculations.py
SlashKing/saleor
bdd78044d542ef5650af7f5c0fd177001661c5b2
[ "CC-BY-4.0" ]
1
2022-02-16T22:00:59.000Z
2022-02-16T22:00:59.000Z
"""Contain functions which are base for calculating checkout properties. It's recommended to use functions from calculations.py module to take in account plugin manager. """ from decimal import Decimal from typing import TYPE_CHECKING, Iterable, Optional from prices import TaxedMoney from ..core.prices import quant...
36.524
88
0.720732
4bfee7cabbf707632fa784b1bcadd04891dac74b
644
py
Python
solutions/tflite_micro_speech_demo/cp_resources.py
yong171966/AliOS-Things
df29e6886cec68885db9975d5b9f51f057c2ba04
[ "Apache-2.0" ]
null
null
null
solutions/tflite_micro_speech_demo/cp_resources.py
yong171966/AliOS-Things
df29e6886cec68885db9975d5b9f51f057c2ba04
[ "Apache-2.0" ]
null
null
null
solutions/tflite_micro_speech_demo/cp_resources.py
yong171966/AliOS-Things
df29e6886cec68885db9975d5b9f51f057c2ba04
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os import sys import getpass import shutil #!/usr/bin/env python3 import os import sys import getpass import shutil comp_path = sys.path[0] print("comp_path:") print(comp_path) # original folder src_mp3_path = comp_path + "/resources/mp3" # new folder data_path = comp_path + "/../../...
17.888889
74
0.75
8b6bcdbee10b108d728871ac4505304bd6d476b0
333
py
Python
backend/configurations.py
henriqueup/Photonic-Circuit-Simulator
4e08174c2644a59769c54c8f36c9e835e25a9dd6
[ "MIT" ]
1
2021-07-10T13:10:23.000Z
2021-07-10T13:10:23.000Z
backend/configurations.py
Arthur-agl/Photonic-Circuit-Simulator
6c6acdf1ba4d0a7d616f07395323e8e3cf8d127d
[ "MIT" ]
null
null
null
backend/configurations.py
Arthur-agl/Photonic-Circuit-Simulator
6c6acdf1ba4d0a7d616f07395323e8e3cf8d127d
[ "MIT" ]
1
2021-06-11T03:34:01.000Z
2021-06-11T03:34:01.000Z
class BaseConfig(object): ''' Base config class ''' DEBUG = True TESTING = False class ProductionConfig(BaseConfig): """ Production specific config """ DEBUG = False class DevelopmentConfig(BaseConfig): """ Development environment specific configuration """ DEBUG = True T...
17.526316
49
0.651652
08bcc0de89a407b0abd51629d72398aede729407
12,550
py
Python
Lab 6/Experiment 1 and 4 Analysis.py
Max-Coy/Physics5CLSpring2022
ff2b4a431027569f3d6ec604819fdbb88b03bafc
[ "MIT" ]
null
null
null
Lab 6/Experiment 1 and 4 Analysis.py
Max-Coy/Physics5CLSpring2022
ff2b4a431027569f3d6ec604819fdbb88b03bafc
[ "MIT" ]
null
null
null
Lab 6/Experiment 1 and 4 Analysis.py
Max-Coy/Physics5CLSpring2022
ff2b4a431027569f3d6ec604819fdbb88b03bafc
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import scipy.optimize as opt import math import csv def sample_stdev(data): return np.std(data, ddof = 1, axis = -1) def standard_error(data): return sample_stdev(data) / np.sqrt(len(data) if data.ndim == 1 else len(data[0])) def data_statistics(data): ...
34.861111
146
0.655538
4060020c59e5025af7155fc178baf353b375caf9
322
py
Python
py/h2o/h2o/definitions.py
gigliovale/h2o
be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1
[ "Apache-2.0" ]
882
2015-05-22T02:59:21.000Z
2022-02-17T05:02:48.000Z
py/h2o/h2o/definitions.py
VonRosenchild/h2o-2
be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1
[ "Apache-2.0" ]
1
2015-01-14T23:54:56.000Z
2015-01-15T20:04:17.000Z
py/h2o/h2o/definitions.py
VonRosenchild/h2o-2
be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1
[ "Apache-2.0" ]
392
2015-05-22T17:04:11.000Z
2022-02-22T09:04:39.000Z
DEFAULT_SERVER = "http://localhost:54321/" KEY = "Key" ERROR = "Error" COLUMNS = "columns" COLUMN_NAME = "name" CONTENTS = "contents" EXPR = "Expr" RESULT_KEY = "ResultKey" VALUE = "Value" URL = "Url" PAGE_EXEC = "Exec.json" PAGE_IMPORTURL = "ImportUrl.json" PAGE_REMOVE = "Remove.json" PAGE_INSPECT = "Inspect.json...
16.1
42
0.695652
22bb8d5355b37b3dcf7c63d6e45ef36efe2b4a58
1,580
py
Python
Test/testDuelingDQN.py
munanfan/Mahjong_Game_RLCard_RL
743d4a3c21a4ffbe3659d9e86fc71d77b4063c90
[ "MIT" ]
2
2022-02-15T09:09:15.000Z
2022-03-09T05:56:18.000Z
Test/testDuelingDQN.py
munanfan/Mahjong_Game_RLCard_RL
743d4a3c21a4ffbe3659d9e86fc71d77b4063c90
[ "MIT" ]
null
null
null
Test/testDuelingDQN.py
munanfan/Mahjong_Game_RLCard_RL
743d4a3c21a4ffbe3659d9e86fc71d77b4063c90
[ "MIT" ]
null
null
null
import os import rlcard import torch import numpy as np from Agent.DuelDQNAgent import DuelDQNAgent from rlcard.agents import DQNAgent, NFSPAgent from rlcard.utils import get_device device = get_device() env = rlcard.make("mahjong") # 提前加载好模型 duel_agent = DuelDQNAgent(replay_memory_size=20000, ...
30.980392
94
0.591772
80c2d6b5a47f3b0ef197ffcb5459c6b031176104
217
py
Python
bytecash/util/hash.py
konarshankar07/bytecash-blockchain
1c1fab19664e7777b75be1a60facb8a454341443
[ "Apache-2.0" ]
null
null
null
bytecash/util/hash.py
konarshankar07/bytecash-blockchain
1c1fab19664e7777b75be1a60facb8a454341443
[ "Apache-2.0" ]
null
null
null
bytecash/util/hash.py
konarshankar07/bytecash-blockchain
1c1fab19664e7777b75be1a60facb8a454341443
[ "Apache-2.0" ]
null
null
null
import blspy from bytecash.types.blockchain_format.sized_bytes import bytes32 def std_hash(b) -> bytes32: """ The standard hash used in many places. """ return bytes32(blspy.Util.hash256(bytes(b)))
19.727273
64
0.709677
e2a89b212b15d1fb04c79303b225c2ec676863b4
2,771
py
Python
data_genie.py
noveens/sampling_cf
e135819b1e7310ee58edbbd138f303e5240a2619
[ "MIT" ]
6
2022-01-14T13:38:03.000Z
2022-03-01T17:57:09.000Z
data_genie.py
noveens/sampling_cf
e135819b1e7310ee58edbbd138f303e5240a2619
[ "MIT" ]
null
null
null
data_genie.py
noveens/sampling_cf
e135819b1e7310ee58edbbd138f303e5240a2619
[ "MIT" ]
null
null
null
from data_genie.data_genie_config import * from data_genie.data_genie_trainers import * from data_genie.data_genie_data import OracleData from data_genie.data_genie_model import PointwiseDataGenie, PairwiseDataGenie # NOTE: Please edit the config in `data_genie/data_genie_config.py` before \ # running this trainer s...
35.075949
124
0.681703
3faededc122e912bf6f4484df6e06926ba9d7e6c
3,475
py
Python
plantcv/plantcv/morphology/segment_curvature.py
JamesChooWK/plantcv
5ade9d2861c1824997b934c09062d6050ac180c5
[ "MIT" ]
null
null
null
plantcv/plantcv/morphology/segment_curvature.py
JamesChooWK/plantcv
5ade9d2861c1824997b934c09062d6050ac180c5
[ "MIT" ]
null
null
null
plantcv/plantcv/morphology/segment_curvature.py
JamesChooWK/plantcv
5ade9d2861c1824997b934c09062d6050ac180c5
[ "MIT" ]
1
2020-02-27T21:22:13.000Z
2020-02-27T21:22:13.000Z
# Find curvature measure of skeleton segments import os import cv2 import numpy as np from plantcv.plantcv import params from plantcv.plantcv import outputs from plantcv.plantcv import plot_image from plantcv.plantcv import print_image from plantcv.plantcv import find_objects from plantcv.plantcv import color_palette ...
36.197917
114
0.678849
c623e40075e0ed6836dc9494ee5effb4539a46af
5,239
py
Python
src/finn/custom_op/maxpoolnhwc.py
alinavalinav/finn
e443a5859066a410a63c08dcfec4a90527ca24be
[ "BSD-3-Clause" ]
1
2021-01-29T14:39:48.000Z
2021-01-29T14:39:48.000Z
src/finn/custom_op/maxpoolnhwc.py
alinavalinav/finn
e443a5859066a410a63c08dcfec4a90527ca24be
[ "BSD-3-Clause" ]
null
null
null
src/finn/custom_op/maxpoolnhwc.py
alinavalinav/finn
e443a5859066a410a63c08dcfec4a90527ca24be
[ "BSD-3-Clause" ]
1
2022-03-07T02:57:55.000Z
2022-03-07T02:57:55.000Z
# Copyright (c) 2020, Xilinx # 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 follow...
41.251969
86
0.658141
8fb36a623165aa1fb5f48d8fe8c94a2af900cddd
26,757
py
Python
packages/sqlmap-master/thirdparty/fcrypt/fcrypt.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
null
null
null
packages/sqlmap-master/thirdparty/fcrypt/fcrypt.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
null
null
null
packages/sqlmap-master/thirdparty/fcrypt/fcrypt.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
null
null
null
# fcrypt.py """Unix crypt(3) password hash algorithm. This is a port to Python of the standard Unix password crypt function. It's a single self-contained source file that works with any version of Python from version 1.5 or higher. The code is based on Eric Young's optimised crypt in C. Python fcrypt is intended fo...
43.296117
104
0.692267
9998e5a5982450d8a5acdf91de150fc2c650c62e
5,524
py
Python
model-optimizer/extensions/middle/TensorIteratorBackEdge.py
fujunwei/dldt
09497b7724de4be92629f7799b8538b483d809a2
[ "Apache-2.0" ]
1
2021-07-30T17:03:50.000Z
2021-07-30T17:03:50.000Z
model-optimizer/extensions/middle/TensorIteratorBackEdge.py
fujunwei/dldt
09497b7724de4be92629f7799b8538b483d809a2
[ "Apache-2.0" ]
null
null
null
model-optimizer/extensions/middle/TensorIteratorBackEdge.py
fujunwei/dldt
09497b7724de4be92629f7799b8538b483d809a2
[ "Apache-2.0" ]
null
null
null
""" Copyright (C) 2018-2020 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
42.821705
116
0.559015
317fe786971d62a093b2e76d869d43d18af92ccd
1,911
py
Python
cegid/apps/main/views.py
vsoch/tcell
3c4a19e5c78f1a36a2fe5e0f3229d1d70ef3a2c6
[ "MIT" ]
null
null
null
cegid/apps/main/views.py
vsoch/tcell
3c4a19e5c78f1a36a2fe5e0f3229d1d70ef3a2c6
[ "MIT" ]
9
2016-08-04T22:56:21.000Z
2016-08-17T20:55:57.000Z
cegid/apps/main/views.py
vsoch/tcell
3c4a19e5c78f1a36a2fe5e0f3229d1d70ef3a2c6
[ "MIT" ]
1
2016-10-11T04:22:52.000Z
2016-10-11T04:22:52.000Z
from cegid.apps.main.utils import get_pubmed_articles from cegid.settings import ADD_ARTICLES from django.views.decorators.csrf import requires_csrf_token from django.contrib.auth.decorators import login_required from django.db.models.aggregates import Count from django.template import RequestContext from django.shortc...
34.745455
80
0.663527
7b29d049df6f8b2163dbf9ac0cc4da4b0580b6db
529
py
Python
test3/booktest/migrations/0003_pictest.py
yidingzhao/test3_django
b1372421c72035325ac4a8ea9121b1b5cc6bdfc5
[ "MIT" ]
null
null
null
test3/booktest/migrations/0003_pictest.py
yidingzhao/test3_django
b1372421c72035325ac4a8ea9121b1b5cc6bdfc5
[ "MIT" ]
null
null
null
test3/booktest/migrations/0003_pictest.py
yidingzhao/test3_django
b1372421c72035325ac4a8ea9121b1b5cc6bdfc5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('booktest', '0002_areainfo'), ] operations = [ migrations.CreateModel( name='PicTest', fields=[ ...
24.045455
114
0.57845
f053cd6db9077917dcd6868a2b7cad3e1b738903
14,960
py
Python
lib/datasets/domain1.py
DIG-Beihang/PSN
3d4d469bb2439a59a9e77c9135de2f2c5675494f
[ "Apache-2.0" ]
10
2022-03-09T13:25:58.000Z
2022-03-23T11:36:31.000Z
lib/datasets/domain1.py
DIG-Beihang/PSN
3d4d469bb2439a59a9e77c9135de2f2c5675494f
[ "Apache-2.0" ]
1
2022-03-13T12:15:58.000Z
2022-03-18T13:07:02.000Z
lib/datasets/domain1.py
DIG-Beihang/PSN
3d4d469bb2439a59a9e77c9135de2f2c5675494f
[ "Apache-2.0" ]
2
2022-03-14T02:20:28.000Z
2022-03-21T07:47:20.000Z
from __future__ import print_function from __future__ import absolute_import # -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # ----------------------------------------------------...
39.162304
141
0.554011
2779e4148c29459135556398d52f3abc0771273f
6,193
py
Python
myason/agent/conf.py
thierrydecker/myason
74eb3d63d5afb0aa2cae00c94348edd05d4afb46
[ "Unlicense" ]
null
null
null
myason/agent/conf.py
thierrydecker/myason
74eb3d63d5afb0aa2cae00c94348edd05d4afb46
[ "Unlicense" ]
10
2019-02-01T05:15:19.000Z
2019-03-04T12:19:05.000Z
myason/agent/conf.py
thierrydecker/myason
74eb3d63d5afb0aa2cae00c94348edd05d4afb46
[ "Unlicense" ]
1
2019-01-24T15:23:17.000Z
2019-01-24T15:23:17.000Z
# -*- coding: utf-8 -*- import os import socket import ifaddr import yaml from myason.helpers.logging import create_logger from cryptography.fernet import Fernet def conf_is_ok(agent_logger_conf_fn, agent_conf_fn): # # Basic logging configuration # default_logging = { "version": 1, ...
35.797688
121
0.637655
ebb22aa6ce9fcad4d9afe562d0bbb4f70ae3f739
9,243
py
Python
luigi/scalding.py
Mappy/luigi
539cd2cf69902bb6cef688afdf55e991cae4b537
[ "Apache-2.0" ]
10
2015-02-02T22:46:39.000Z
2017-03-27T11:58:46.000Z
luigi/scalding.py
Mappy/luigi
539cd2cf69902bb6cef688afdf55e991cae4b537
[ "Apache-2.0" ]
17
2015-05-22T15:38:08.000Z
2019-07-05T13:59:41.000Z
luigi/scalding.py
Mappy/luigi
539cd2cf69902bb6cef688afdf55e991cae4b537
[ "Apache-2.0" ]
2
2015-02-12T20:26:54.000Z
2017-03-27T12:09:07.000Z
import logging import os import re import subprocess from luigi import LocalTarget import configuration import hadoop import hadoop_jar logger = logging.getLogger('luigi-interface') """ Scalding support for Luigi. Example configuration section in client.cfg: [scalding] # scala home directory, which should include a...
35.278626
79
0.60251
733cac11bea9054b51578af14b0d03e1832f18a7
766
py
Python
python/incidents_get_by_id.py
R-Vision/api-examples
ddbf08399474df87b652c507e86bc4c42c2faa0c
[ "MIT" ]
1
2021-11-27T07:07:05.000Z
2021-11-27T07:07:05.000Z
python/incidents_get_by_id.py
R-Vision/api-examples
ddbf08399474df87b652c507e86bc4c42c2faa0c
[ "MIT" ]
null
null
null
python/incidents_get_by_id.py
R-Vision/api-examples
ddbf08399474df87b652c507e86bc4c42c2faa0c
[ "MIT" ]
1
2021-10-07T07:26:46.000Z
2021-10-07T07:26:46.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- import json import requests PROTOCOL = 'http' # or https RVISION = '127.0.0.1' # ip or hostname USERNAME = 'admin' # any user login PASSWORD = 'admin' requests.packages.urllib3.disable_warnings() s = requests.Session() # Авторизируемся login = s.post( PROTOCOL ...
19.641026
82
0.656658
9d9b69d6314ff8bf8470251a4e65b373761400e1
705
py
Python
tests/test.py
15281029/PyCache
af0221cd5659621a1b69703f88747fbd4f312322
[ "MIT" ]
2
2018-03-08T12:58:44.000Z
2018-05-24T17:02:43.000Z
tests/test.py
15281029/iCache
af0221cd5659621a1b69703f88747fbd4f312322
[ "MIT" ]
null
null
null
tests/test.py
15281029/iCache
af0221cd5659621a1b69703f88747fbd4f312322
[ "MIT" ]
null
null
null
import time from iCache.iCache import Cache cache = Cache(maxsize=255, ttl=5) # 设置全局 ttl缓存有效期 5s # 手动建立单值缓存 并设置单指有效期,覆盖全局设置,仅对该值有效 cache.set(1, 'foo', ttl=3) cache.set(2, 'bar') # 得到该值的所有信息,包括 value 值 ttl 有效期 time 保存时间 print(cache.get_all(1)) # 仅得到值 print(cache.get_value(1)) # 支持装饰器函数自动保存函数返回值 并设置有效期 1s @cache.ca...
17.625
53
0.726241
0554e10f9bb14c8e7485c1d208a834649b9d193f
708
py
Python
eb_sqs/worker/worker_factory.py
LNStudios/django-eb-sqs
b7228b878138210a4e5b6c68183565a707cb9d9f
[ "MIT" ]
null
null
null
eb_sqs/worker/worker_factory.py
LNStudios/django-eb-sqs
b7228b878138210a4e5b6c68183565a707cb9d9f
[ "MIT" ]
null
null
null
eb_sqs/worker/worker_factory.py
LNStudios/django-eb-sqs
b7228b878138210a4e5b6c68183565a707cb9d9f
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals from abc import ABCMeta, abstractmethod from eb_sqs import settings from eb_sqs.worker.worker import Worker class WorkerFactory(object): __metaclass__ = ABCMeta def __init__(self): # type: () -> None super(WorkerFactory, self).__init_...
24.413793
84
0.668079
c716f7f2039db8b7bf2ea995c02a9ca91d6175a0
7,577
py
Python
utils/meta_data.py
YangWanjun/ebusiness
03d92908b4db1a305c8cb99fc27700fd4dc972bd
[ "Apache-2.0" ]
null
null
null
utils/meta_data.py
YangWanjun/ebusiness
03d92908b4db1a305c8cb99fc27700fd4dc972bd
[ "Apache-2.0" ]
3
2020-02-11T22:59:47.000Z
2021-03-19T22:03:11.000Z
utils/meta_data.py
YangWanjun/ebusiness
03d92908b4db1a305c8cb99fc27700fd4dc972bd
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict from django.db import models from rest_framework import serializers from rest_framework.metadata import SimpleMetadata from rest_framework.utils.field_mapping import ClassLookupDict from utils import common class BaseSimpleMetadata(SimpleMetadata): schema_object = None s...
37.885
115
0.603933
9ab4229e53eca451610aa90711dc8d0950eba4a1
5,443
py
Python
model.py
ZakZadeh/ConvNet
15b31f493b4cd9525f2deb1e900677534947c697
[ "MIT" ]
1
2019-11-21T00:20:47.000Z
2019-11-21T00:20:47.000Z
model.py
ZakZadeh/CNN
15b31f493b4cd9525f2deb1e900677534947c697
[ "MIT" ]
null
null
null
model.py
ZakZadeh/CNN
15b31f493b4cd9525f2deb1e900677534947c697
[ "MIT" ]
null
null
null
import os import random import numpy as np import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.autograd as dif import torchvision.models """ -------------------------------------------------------------------------""" """ Classifier """ class Custom(nn.Module):...
31.281609
87
0.494213
7a67e8b4b097c2ef84ff6ad0b3a44e79f2998b8c
3,250
py
Python
venv/lib/python3.8/site-packages/django/contrib/messages/api.py
Joshua-Barawa/My-Photos
adcaea48149c6b31e9559b045709d538d0b749bc
[ "PostgreSQL", "Unlicense" ]
16
2019-08-10T12:24:06.000Z
2020-05-21T09:11:14.000Z
venv/lib/python3.8/site-packages/django/contrib/messages/api.py
Joshua-Barawa/My-Photos
adcaea48149c6b31e9559b045709d538d0b749bc
[ "PostgreSQL", "Unlicense" ]
12
2019-08-10T11:55:29.000Z
2020-05-21T04:46:30.000Z
venv/lib/python3.8/site-packages/django/contrib/messages/api.py
Joshua-Barawa/My-Photos
adcaea48149c6b31e9559b045709d538d0b749bc
[ "PostgreSQL", "Unlicense" ]
4
2022-03-12T10:17:00.000Z
2022-03-26T08:40:43.000Z
from django.contrib.messages import constants from django.contrib.messages.storage import default_storage __all__ = ( "add_message", "get_messages", "get_level", "set_level", "debug", "info", "success", "warning", "error", "MessageFailure", ) class MessageFailure(Exception): ...
25.390625
77
0.625846
a3176c999485ea866d1eadfd1469445183ecf8b3
15,357
py
Python
alien4cloud-cloudify3-provider/src/test/resources/outputs/blueprints/openstack/lamp/wrapper/Wordpress/tosca.interfaces.node.lifecycle.Standard/create/_a4c_create.py
alien4cloud/alien4cloud-cloudify4-provider
97faee855255eb0c3ce25bb3075c29acd11a63c5
[ "Apache-2.0" ]
null
null
null
alien4cloud-cloudify3-provider/src/test/resources/outputs/blueprints/openstack/lamp/wrapper/Wordpress/tosca.interfaces.node.lifecycle.Standard/create/_a4c_create.py
alien4cloud/alien4cloud-cloudify4-provider
97faee855255eb0c3ce25bb3075c29acd11a63c5
[ "Apache-2.0" ]
3
2015-12-04T15:27:22.000Z
2016-04-08T11:32:43.000Z
alien4cloud-cloudify3-provider/src/test/resources/outputs/blueprints/openstack/lamp/wrapper/Wordpress/tosca.interfaces.node.lifecycle.Standard/create/_a4c_create.py
alien4cloud/alien4cloud-cloudify4-provider
97faee855255eb0c3ce25bb3075c29acd11a63c5
[ "Apache-2.0" ]
16
2015-01-29T10:05:09.000Z
2019-06-24T19:23:54.000Z
from cloudify import ctx from cloudify.exceptions import NonRecoverableError from cloudify.state import ctx_parameters as inputs import subprocess import os import re import sys import time import threading import platform from StringIO import StringIO from cloudify_rest_client import CloudifyClient from cloudify im...
44.384393
189
0.686006
11f28e0c8ee1d6c0a87719175e1ecbe41d8a1c4d
485
py
Python
TrustedOracle/db_models.py
a-dirir/DFL
6e9f35081005cc482ffd0a9fbeab4b8f685413e4
[ "MIT" ]
null
null
null
TrustedOracle/db_models.py
a-dirir/DFL
6e9f35081005cc482ffd0a9fbeab4b8f685413e4
[ "MIT" ]
null
null
null
TrustedOracle/db_models.py
a-dirir/DFL
6e9f35081005cc482ffd0a9fbeab4b8f685413e4
[ "MIT" ]
null
null
null
from mongoengine import connect, Document, IntField, DictField, ListField class Node(Document): node_id = IntField(required=True, primary_key=True) node_info = DictField(required=True) meta = {'collection': 'Nodes'} class FLProcess(Document): fl_process_id = IntField(required=True, prima...
28.529412
74
0.709278
33f6a22320a692ae3799a3d4d44dfe8d3048669b
3,017
py
Python
ocs_sample_library_preview/Asset/Status/StatusMapping.py
osisoft/sample-ocs-sample_libraries-python
03e7b76f051643cb09eaa61342c9200034bb5266
[ "Apache-2.0" ]
4
2021-04-13T12:24:50.000Z
2022-01-14T14:03:11.000Z
ocs_sample_library_preview/Asset/Status/StatusMapping.py
osisoft/sample-ocs-sample_libraries-python
03e7b76f051643cb09eaa61342c9200034bb5266
[ "Apache-2.0" ]
17
2021-03-09T22:04:13.000Z
2022-03-24T17:08:29.000Z
ocs_sample_library_preview/Asset/Status/StatusMapping.py
osisoft/sample-ocs-sample_libraries-python
03e7b76f051643cb09eaa61342c9200034bb5266
[ "Apache-2.0" ]
2
2021-05-10T22:39:24.000Z
2022-02-03T05:36:51.000Z
import json from .ValueStatusMapping import ValueStatusMapping class StatusMapping(object): """OCS Asset Status Mapping definition""" def __init__(self, stream_reference_id: str = None, stream_property_id: str = None, value_status_mappings: list[ValueStatusMapping] = None): """ ...
28.196262
87
0.615512
9d9a06148a569c50734d9fe4660654fa5345cac5
20,469
py
Python
config_custom_ruleset_lambda_fucntions/EC2_TAG_MATCHES_INSTANCE_PROFILE_NAME/EC2_TAG_MATCHES_INSTANCE_PROFILE_NAME.py
aditya-/DevSecOps_Cloud_Automation_AWS
1b0c1f4a20f17648595819b3e31370840a56db6a
[ "MIT" ]
3
2019-09-02T14:24:49.000Z
2022-02-23T16:22:12.000Z
config_custom_ruleset_lambda_fucntions/EC2_TAG_MATCHES_INSTANCE_PROFILE_NAME/EC2_TAG_MATCHES_INSTANCE_PROFILE_NAME.py
aditya-/DevSecOps_Cloud_Automation_AWS
1b0c1f4a20f17648595819b3e31370840a56db6a
[ "MIT" ]
null
null
null
config_custom_ruleset_lambda_fucntions/EC2_TAG_MATCHES_INSTANCE_PROFILE_NAME/EC2_TAG_MATCHES_INSTANCE_PROFILE_NAME.py
aditya-/DevSecOps_Cloud_Automation_AWS
1b0c1f4a20f17648595819b3e31370840a56db6a
[ "MIT" ]
1
2019-10-14T19:38:48.000Z
2019-10-14T19:38:48.000Z
''' Rule Name: ec2-tag-matches-instance-profile-nane Description: Checks that the proper role is attached to the EC2 instances. Trigger: Configuration Changes on AWS::EC2::Instance Resource Type to report on: AWS::EC2::Instance Rule Parameters: None Feature: In order to: ensure the proper permissions ...
46.205418
229
0.730422
3962c6008fd0561c247b04a440e45c54a9e06778
14,295
py
Python
trainer/cg/grid_dsl.py
Telcrome/ai-trainer
54bca3252e194c054bdd3af2b94d6dde940a2a86
[ "MIT" ]
1
2021-05-05T12:57:42.000Z
2021-05-05T12:57:42.000Z
trainer/cg/grid_dsl.py
Telcrome/ai-trainer
54bca3252e194c054bdd3af2b94d6dde940a2a86
[ "MIT" ]
null
null
null
trainer/cg/grid_dsl.py
Telcrome/ai-trainer
54bca3252e194c054bdd3af2b94d6dde940a2a86
[ "MIT" ]
null
null
null
from __future__ import annotations import itertools import random from enum import Enum from abc import ABC from typing import TypeVar, NewType, Union, Callable, Tuple, Any, Dict, get_type_hints, List, Optional import numpy as np import matplotlib.pyplot as plt import seaborn as sns import cv2 import pandas as pd from...
31.626106
120
0.651626
602c73fd15152bcb832631f5285ac77a7ac6143c
992
py
Python
second_phase/ex18_multi-Progress.py
kapuni/exercise_py
b60ba8462d2545cae57483bcb0b3428b03c5d522
[ "MIT" ]
null
null
null
second_phase/ex18_multi-Progress.py
kapuni/exercise_py
b60ba8462d2545cae57483bcb0b3428b03c5d522
[ "MIT" ]
null
null
null
second_phase/ex18_multi-Progress.py
kapuni/exercise_py
b60ba8462d2545cae57483bcb0b3428b03c5d522
[ "MIT" ]
null
null
null
""" 多进程和进程池的使用 多线程因为GIL的存在不能够发挥CPU的多核特性 对于计算密集型任务应该考虑使用多进程 time python3 example22.py real 0m11.512s user 0m39.319s sys 0m0.169s 使用多进程后实际执行时间为11.512秒,而用户时间39.319秒约为实际执行时间的4倍 这就证明我们的程序通过多进程使用了CPU的多核特性,而且这台计算机配置了4核的CPU """ import concurrent.futures import math PRIMES = [ 1116281, 1297337, 104395303,...
19.076923
73
0.647177
22d49598a53c4bb801d2cc2c84b07591846766d8
76,648
py
Python
mindspore/nn/layer/quant.py
HappyKL/mindspore
479cb89e8b5c9d859130891567038bb849a30bce
[ "Apache-2.0" ]
1
2020-10-18T12:27:45.000Z
2020-10-18T12:27:45.000Z
mindspore/nn/layer/quant.py
ReIadnSan/mindspore
c3d1f54c7f6d6f514e5748430d24b16a4f9ee9e5
[ "Apache-2.0" ]
null
null
null
mindspore/nn/layer/quant.py
ReIadnSan/mindspore
c3d1f54c7f6d6f514e5748430d24b16a4f9ee9e5
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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...
45.705426
119
0.559336
0e49958fa02983116d58c055d286280d062abddd
159
py
Python
arcade_solutions/the_core/range_bit_count.py
nickaigi/automatic-dollop
eb8222475c7871c1d5710242c5aed8c70ea0d2c8
[ "Unlicense" ]
null
null
null
arcade_solutions/the_core/range_bit_count.py
nickaigi/automatic-dollop
eb8222475c7871c1d5710242c5aed8c70ea0d2c8
[ "Unlicense" ]
null
null
null
arcade_solutions/the_core/range_bit_count.py
nickaigi/automatic-dollop
eb8222475c7871c1d5710242c5aed8c70ea0d2c8
[ "Unlicense" ]
null
null
null
def range_bit_count(a, b): return sum(bin(x).count('1') for x in range(a, b+1)) if __name__ == '__main__': a = 2 b = 7 range_bit_count(a, b)
17.666667
56
0.578616
cd09769de78f7ba50217fd127d8d173e3b971252
247
py
Python
try_pyro/tutorial_torch_jit.py
liusida/ds2
1a4c6b3e0590d987c1e66d83bda1fb3382bf034e
[ "MIT" ]
null
null
null
try_pyro/tutorial_torch_jit.py
liusida/ds2
1a4c6b3e0590d987c1e66d83bda1fb3382bf034e
[ "MIT" ]
null
null
null
try_pyro/tutorial_torch_jit.py
liusida/ds2
1a4c6b3e0590d987c1e66d83bda1fb3382bf034e
[ "MIT" ]
null
null
null
import torch @torch.jit.script def foo(len): # type: (int) -> torch.Tensor rv = torch.zeros(3, 4) for i in range(len): if i < 10: rv = rv - 1.0 else: rv = rv + 1.0 return rv print(foo.graph)
19
33
0.493927
8afb9c11859dbd757d130682e28812b63373e17b
1,384
py
Python
TALE_Toolbox/app.py
joshim5/TALE-Toolbox
72e57a89fad6c29d11a38974ac8c5365115aa412
[ "Apache-2.0" ]
4
2016-02-21T05:33:05.000Z
2019-04-20T04:40:24.000Z
TALE_Toolbox/app.py
joshim5/TALE_Toolbox
72e57a89fad6c29d11a38974ac8c5365115aa412
[ "Apache-2.0" ]
null
null
null
TALE_Toolbox/app.py
joshim5/TALE_Toolbox
72e57a89fad6c29d11a38974ac8c5365115aa412
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """The app module, containing the app factory function.""" from flask import Flask, render_template from TALE_Toolbox.settings import ProdConfig from TALE_Toolbox.assets import assets from TALE_Toolbox.extensions import ( bcrypt, cache, debug_toolbar ) from TALE_Toolbox import publi...
27.137255
73
0.723266
af10f5f9d871616269eca5f20fe55db8a0660024
3,501
py
Python
Intermediate Importing Data in Python/Interacting_with_APIs_to_import_data_from_the_web.py
shreejitverma/Data-Scientist
03c06936e957f93182bb18362b01383e5775ffb1
[ "MIT" ]
2
2022-03-12T04:53:03.000Z
2022-03-27T12:39:21.000Z
Intermediate Importing Data in Python/Interacting_with_APIs_to_import_data_from_the_web.py
shivaniverma1/Data-Scientist
f82939a411484311171465591455880c8e354750
[ "MIT" ]
null
null
null
Intermediate Importing Data in Python/Interacting_with_APIs_to_import_data_from_the_web.py
shivaniverma1/Data-Scientist
f82939a411484311171465591455880c8e354750
[ "MIT" ]
2
2022-03-12T04:52:21.000Z
2022-03-27T12:45:32.000Z
# Interacting with APIs to import data from the web!! # In this chapter, you will gain a deeper understanding of how to import data from the web. You will learn the basics of extracting data from APIs, gain insight on the importance of APIs, and practice extracting data by diving into the OMDB and Library of Congress A...
43.222222
413
0.757783
b8bf831d95af33cfdba1f2c7fe092d25befeaee4
31,257
py
Python
intersight/models/iam_account.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
21
2018-03-29T14:20:35.000Z
2021-10-13T05:11:41.000Z
intersight/models/iam_account.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
14
2018-01-30T15:45:46.000Z
2022-02-23T14:23:21.000Z
intersight/models/iam_account.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
18
2018-01-03T15:09:56.000Z
2021-07-16T02:21:54.000Z
# coding: utf-8 """ Cisco Intersight OpenAPI specification. The Cisco Intersight OpenAPI specification. OpenAPI spec version: 1.0.9-1461 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class IamAccount(object...
34.348352
738
0.645871
816b3021af137f836a72a1a22d8dadcb89fc3f82
150
py
Python
planning_app/planning_app/doctype/contractor/test_contractor.py
khaledasem/planning_app-ver0
368e99292da0bf5843b63ba5f0fb06382926ef61
[ "MIT" ]
null
null
null
planning_app/planning_app/doctype/contractor/test_contractor.py
khaledasem/planning_app-ver0
368e99292da0bf5843b63ba5f0fb06382926ef61
[ "MIT" ]
null
null
null
planning_app/planning_app/doctype/contractor/test_contractor.py
khaledasem/planning_app-ver0
368e99292da0bf5843b63ba5f0fb06382926ef61
[ "MIT" ]
null
null
null
# Copyright (c) 2022, khaled asem and Contributors # See license.txt # import frappe import unittest class Testcontractor(unittest.TestCase): pass
16.666667
50
0.78
9739a2a75886abf6e44075f4abfb41bd68614086
21,045
py
Python
venv/Lib/site-packages/pandas/tests/io/parser/test_read_fwf.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
7
2022-01-16T12:28:16.000Z
2022-03-04T15:31:45.000Z
venv/Lib/site-packages/pandas/tests/io/parser/test_read_fwf.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
45
2019-06-12T20:35:20.000Z
2022-03-07T05:45:56.000Z
venv/Lib/site-packages/pandas/tests/io/parser/test_read_fwf.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
3
2020-08-04T02:48:32.000Z
2020-08-17T01:20:09.000Z
""" Tests the 'read_fwf' function in parsers.py. This test suite is independent of the others because the engine is set to 'python-fwf' internally. """ from datetime import datetime from io import ( BytesIO, StringIO, ) from pathlib import Path import numpy as np import pytest from pandas.errors import Empty...
29.516129
134
0.575909
62c14b40fbcd1e99d87bd469453b11bb8b5e51b6
101
py
Python
run.py
kmenschig/weatherVisualization
36cc6b82ba7f075ab42dc41b89f032d4ee646192
[ "MIT" ]
null
null
null
run.py
kmenschig/weatherVisualization
36cc6b82ba7f075ab42dc41b89f032d4ee646192
[ "MIT" ]
null
null
null
run.py
kmenschig/weatherVisualization
36cc6b82ba7f075ab42dc41b89f032d4ee646192
[ "MIT" ]
null
null
null
from app import app if __name__ == '__main__': app.run(host='0.0.0.0',threaded=True, debug=True)
16.833333
51
0.683168
3a1d154e1eab927d7c745984b9c272e4985658b0
524
py
Python
tele_news.py
rsoorajs/Champ
eb6811bcb5bd0aff3464b1f996514419465dabfd
[ "MIT" ]
17
2018-06-28T03:17:46.000Z
2021-07-15T13:22:35.000Z
tele_news.py
rsoorajs/Champ
eb6811bcb5bd0aff3464b1f996514419465dabfd
[ "MIT" ]
null
null
null
tele_news.py
rsoorajs/Champ
eb6811bcb5bd0aff3464b1f996514419465dabfd
[ "MIT" ]
23
2018-09-10T08:02:43.000Z
2021-09-09T07:07:18.000Z
from bs4 import BeautifulSoup import requests def get_news(): url='http://indiatoday.intoday.in/section/120/1/top-stories.html' res=requests.get(url) while(res.status_code!=200): try: res=requests.get('url') except: pass soup=BeautifulSoup(res.text,'lxml') short_news=soup.find('ul',{'class':'topstr-...
20.96
80
0.711832
f979e70516960e0a2066208ec2d7de606e4af22a
14,674
py
Python
pyatmos/utils/atmosphere.py
SteveDoyle2/pyatmos
433a5055077e211dc3f34c2a2b65bee24b8e8e4b
[ "BSD-3-Clause" ]
4
2019-08-13T00:53:14.000Z
2020-09-16T01:21:20.000Z
pyatmos/utils/atmosphere.py
SteveDoyle2/pyatmos
433a5055077e211dc3f34c2a2b65bee24b8e8e4b
[ "BSD-3-Clause" ]
null
null
null
pyatmos/utils/atmosphere.py
SteveDoyle2/pyatmos
433a5055077e211dc3f34c2a2b65bee24b8e8e4b
[ "BSD-3-Clause" ]
1
2020-06-17T03:14:12.000Z
2020-06-17T03:14:12.000Z
""" Contains the following atmospheric functions: - density = atm_density(alt, mach) - mach = atm_mach(alt, velocity) - velocity = atm_velocity(alt, mach) - pressure = atm_pressure(alt) - temperature = atm_temperature(alt) - sos = atm_speed_of_sound(alt) - mu = atm_dynamic_viscosity_mu(alt) - nu = atm_kinemati...
28.273603
113
0.588933
43cc733a3a4782bde158eca8e903238a127106d1
206
py
Python
lwrl/utils/preprocess/divide.py
sealday/lwrl
52bcd67751e605c38db4afa609c58938c7034e8d
[ "MIT" ]
2
2019-04-11T11:55:48.000Z
2020-05-29T18:09:51.000Z
lwrl/utils/preprocess/divide.py
sealday/lwrl
52bcd67751e605c38db4afa609c58938c7034e8d
[ "MIT" ]
6
2021-06-01T22:21:00.000Z
2022-03-11T23:24:36.000Z
lwrl/utils/preprocess/divide.py
sealday/lwrl
52bcd67751e605c38db4afa609c58938c7034e8d
[ "MIT" ]
1
2019-04-12T03:09:47.000Z
2019-04-12T03:09:47.000Z
from lwrl.utils.preprocess import Preprocessor class Divide(Preprocessor): def __init__(self, scale): self.scale = scale def process(self, variable): return variable / self.scale
20.6
46
0.694175
c6c2d80a0fb5368545a4f0fb2b60ab69c861c280
11,452
py
Python
plugins/modules/oci_network_virtual_circuit_actions.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_network_virtual_circuit_actions.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
plugins/modules/oci_network_virtual_circuit_actions.py
LaudateCorpus1/oci-ansible-collection
2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2020, 2022 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
38.173333
156
0.678397
0dc90fee2d1c95222377b275cc71d941ee7aeecd
29,882
py
Python
efficientdet/det_model_fn.py
IspML/automl
ce0eec6f7f2a7d368c2e36f6f5953a99114b4f8e
[ "Apache-2.0" ]
1
2020-06-13T02:04:39.000Z
2020-06-13T02:04:39.000Z
efficientdet/det_model_fn.py
IspML/automl
ce0eec6f7f2a7d368c2e36f6f5953a99114b4f8e
[ "Apache-2.0" ]
null
null
null
efficientdet/det_model_fn.py
IspML/automl
ce0eec6f7f2a7d368c2e36f6f5953a99114b4f8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google Research. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
40.218035
80
0.671073
98349be93db1a8ec8597cda2dfaeaf84b71a9741
5,353
py
Python
python/paddle/fluid/tests/unittests/test_lookahead.py
TingquanGao/Paddle
9b1015d90b4d498ab58df7cff2c3ed27863ce970
[ "Apache-2.0" ]
2
2021-09-07T05:00:00.000Z
2021-12-09T06:56:19.000Z
python/paddle/fluid/tests/unittests/test_lookahead.py
TingquanGao/Paddle
9b1015d90b4d498ab58df7cff2c3ed27863ce970
[ "Apache-2.0" ]
1
2020-09-22T08:54:49.000Z
2020-09-22T11:44:09.000Z
python/paddle/fluid/tests/unittests/test_lookahead.py
TingquanGao/Paddle
9b1015d90b4d498ab58df7cff2c3ed27863ce970
[ "Apache-2.0" ]
3
2021-01-07T12:51:20.000Z
2021-01-08T04:31:16.000Z
# Copyright (c) 2020 PaddlePaddle 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 ap...
36.414966
78
0.53428
18213ab761adc1fa6e9c728c02c154a6c1ce940f
4,861
py
Python
girder/models/api_key.py
HailLab/girder
974d869e6f53ec87a5e64730fee27eb6314fc006
[ "Apache-2.0" ]
null
null
null
girder/models/api_key.py
HailLab/girder
974d869e6f53ec87a5e64730fee27eb6314fc006
[ "Apache-2.0" ]
null
null
null
girder/models/api_key.py
HailLab/girder
974d869e6f53ec87a5e64730fee27eb6314fc006
[ "Apache-2.0" ]
1
2017-02-27T16:11:54.000Z
2017-02-27T16:11:54.000Z
# -*- coding: utf-8 -*- import datetime from .model_base import AccessControlledModel from girder.constants import AccessType, TokenScope from girder.exceptions import ValidationException from girder.settings import SettingKey from girder.utility import genToken class ApiKey(AccessControlledModel): """ This ...
34.971223
95
0.592059
73fa8080f7dd4c69646ccdab804fee19cee9163d
30,916
py
Python
networking_cisco/plugins/cisco/cfg_agent/device_drivers/asr1k/asr1k_routing_driver.py
CiscoSystems/networking-cisco
ed18627faf90caa1c0d1b7fe00f240a57901dee4
[ "Apache-2.0" ]
8
2016-02-12T01:25:29.000Z
2019-01-13T14:19:25.000Z
networking_cisco/plugins/cisco/cfg_agent/device_drivers/asr1k/asr1k_routing_driver.py
CiscoSystems/networking-cisco
ed18627faf90caa1c0d1b7fe00f240a57901dee4
[ "Apache-2.0" ]
25
2016-01-28T12:33:41.000Z
2016-07-28T21:18:03.000Z
networking_cisco/plugins/cisco/cfg_agent/device_drivers/asr1k/asr1k_routing_driver.py
CiscoSystems/networking-cisco
ed18627faf90caa1c0d1b7fe00f240a57901dee4
[ "Apache-2.0" ]
9
2015-05-07T02:47:55.000Z
2019-10-18T15:25:27.000Z
# Copyright 2015 Cisco Systems, 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 requir...
46.212257
79
0.60907
6ee5d332ad73985c44b604d59c8e6358aa9d4aa1
1,254
py
Python
apscheduler/schedulers/qt.py
AngelLiang/hacking_apscheduler
49d0ba778a5ded8f8aa6237bcd06cf286ac8749d
[ "MIT" ]
2
2019-01-24T15:09:15.000Z
2019-01-24T15:09:17.000Z
apscheduler/schedulers/qt.py
AngelLiang/hacking_apscheduler
49d0ba778a5ded8f8aa6237bcd06cf286ac8749d
[ "MIT" ]
null
null
null
apscheduler/schedulers/qt.py
AngelLiang/hacking_apscheduler
49d0ba778a5ded8f8aa6237bcd06cf286ac8749d
[ "MIT" ]
null
null
null
from __future__ import absolute_import from apscheduler.schedulers.base import BaseScheduler try: from PyQt5.QtCore import QObject, QTimer except (ImportError, RuntimeError): # pragma: nocover try: from PyQt4.QtCore import QObject, QTimer except ImportError: try: from PySide.Q...
29.162791
93
0.658692
7090d1b1849ce49d304a44c56203bfc317f72889
959
py
Python
tests/test_views.py
AgriConnect/django-rest-framework-orjson
0dc276b815f8ee7acff5810538553560e1dbe44d
[ "ISC" ]
null
null
null
tests/test_views.py
AgriConnect/django-rest-framework-orjson
0dc276b815f8ee7acff5810538553560e1dbe44d
[ "ISC" ]
null
null
null
tests/test_views.py
AgriConnect/django-rest-framework-orjson
0dc276b815f8ee7acff5810538553560e1dbe44d
[ "ISC" ]
null
null
null
import pytest from rest_framework.reverse import reverse from rest_framework import status from .models import Game pytestmark = pytest.mark.django_db def test_detail(client): url = reverse('game-detail', args=[1]) data = { 'name': 'The Legend of Zelda: Ocarina of Time', } Game.objects.creat...
25.918919
68
0.641293
63f4f080db4394e454efd157b5f1b9c7ea2c9161
713
py
Python
Lib/ufoLib/plistFromETree.py
medicalwei/ufolib-debian
f221b4c01682a7240ac2149a074c827dfee736f7
[ "BSD-3-Clause" ]
55
2017-08-02T14:52:04.000Z
2022-03-26T21:18:37.000Z
Lib/ufoLib/plistFromETree.py
medicalwei/ufolib-debian
f221b4c01682a7240ac2149a074c827dfee736f7
[ "BSD-3-Clause" ]
2
2019-06-01T10:51:43.000Z
2020-11-13T12:09:01.000Z
Lib/ufoLib/plistFromETree.py
medicalwei/ufolib-debian
f221b4c01682a7240ac2149a074c827dfee736f7
[ "BSD-3-Clause" ]
4
2018-01-30T07:19:03.000Z
2020-03-02T01:53:52.000Z
from ufoLib.plistlib import PlistParser __all__ = ["readPlistFromTree"] def readPlistFromTree(tree): """ Given an ElementTree Element *tree*, parse Plist data and return the root object. """ parser = PlistTreeParser() return parser.parseTree(tree) class PlistTreeParser(PlistParser): def parseTree(self, tre...
23
74
0.744741
81bf13112d29e0ce10b612d15abc2b5cdbb7a730
99,858
py
Python
openprocurement/auctions/insider/tests/tender.py
kukirokuk/dutchsales
41f6fca69c8ecd9dd4c4bba567635b418d371203
[ "Apache-2.0" ]
null
null
null
openprocurement/auctions/insider/tests/tender.py
kukirokuk/dutchsales
41f6fca69c8ecd9dd4c4bba567635b418d371203
[ "Apache-2.0" ]
null
null
null
openprocurement/auctions/insider/tests/tender.py
kukirokuk/dutchsales
41f6fca69c8ecd9dd4c4bba567635b418d371203
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from copy import deepcopy from datetime import timedelta, time from uuid import uuid4 from iso8601 import parse_date from openprocurement.api.utils import ROUTE_PREFIX from openprocurement.api.models import get_now, SANDBOX_MODE, TZ from openprocurement.auctions.insider.models i...
55.415094
209
0.613691
ed28f5010e8b83c687295c73ecd7564d6606c824
694
py
Python
setup.py
mgreklek/exowirc
a0e556653d0b28ce74d6113fca1b002eca8c28bd
[ "MIT" ]
null
null
null
setup.py
mgreklek/exowirc
a0e556653d0b28ce74d6113fca1b002eca8c28bd
[ "MIT" ]
1
2021-08-19T21:01:17.000Z
2021-08-19T21:01:17.000Z
setup.py
mgreklek/exowirc
a0e556653d0b28ce74d6113fca1b002eca8c28bd
[ "MIT" ]
2
2021-08-18T21:33:14.000Z
2022-03-18T05:50:24.000Z
import setuptools setuptools.setup( name = "exowirc", version = '0.0.1', url = "https://github.com/astroshrey/exowirc", description = "Image data reduction and calibration tool for the WIRC instrument", long_description = open("README.txt").read() + "\n\n" + open("CHANGELOG.txt").read(), author = "Shreyas Vissap...
46.266667
263
0.677233
14c7980e5dd3229b57316b417616a537b7949b61
562
py
Python
pystorm/hal/neuromorph/test_AllocateCore.py
Stanford-BIS/pystorm
4acaaee78a04b69ad17554126018016800e5a140
[ "MIT" ]
3
2018-12-19T06:46:15.000Z
2019-11-08T18:53:20.000Z
pystorm/hal/neuromorph/test_AllocateCore.py
Stanford-BIS/pystorm
4acaaee78a04b69ad17554126018016800e5a140
[ "MIT" ]
1
2018-12-13T00:30:08.000Z
2018-12-14T18:55:44.000Z
pystorm/hal/neuromorph/test_AllocateCore.py
Stanford-BIS/pystorm
4acaaee78a04b69ad17554126018016800e5a140
[ "MIT" ]
null
null
null
from test_hardware_resources import * from core import Core from core_pars import * from neuromorph import map_resources_to_core print("calling Map for various Resource graphs") print("writing results to net_dump/") print("inspection for correctness can be done manually") N1 = GetN1() N2 = GetN2() N3 = GetN3() N4 = G...
24.434783
56
0.709964
eabb825773c2e12add229baf5c62f6ba9f9893d3
4,009
py
Python
tests/core/discrete_barycenter_test.py
theouscidda6/ott
53a06973e417f579fc79795403f81ee829dbd575
[ "Apache-2.0" ]
null
null
null
tests/core/discrete_barycenter_test.py
theouscidda6/ott
53a06973e417f579fc79795403f81ee829dbd575
[ "Apache-2.0" ]
null
null
null
tests/core/discrete_barycenter_test.py
theouscidda6/ott
53a06973e417f579fc79795403f81ee829dbd575
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 Google LLC. # # 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 ...
32.593496
79
0.647792
da44cf88d6cfb792b00bb318896b03f76b1d7a83
5,483
py
Python
wildlifecompliance/management/commands/send_rego_to_dot.py
Djandwich/wildlifecompliance
ca296798526a56ce67ffc2f7e8ebdbae95077e6d
[ "Apache-2.0" ]
null
null
null
wildlifecompliance/management/commands/send_rego_to_dot.py
Djandwich/wildlifecompliance
ca296798526a56ce67ffc2f7e8ebdbae95077e6d
[ "Apache-2.0" ]
3
2020-03-12T00:45:31.000Z
2022-03-02T10:37:23.000Z
wildlifecompliance/management/commands/send_rego_to_dot.py
Djandwich/wildlifecompliance
ca296798526a56ce67ffc2f7e8ebdbae95077e6d
[ "Apache-2.0" ]
null
null
null
import datetime from django.db import transaction from django.core.management.base import BaseCommand from django.db.models import Q, Max from django.utils import timezone import logging from ledger.payments.invoice.models import Invoice from wildlifecompliance import settings from wildlifecompliance.components.sa...
52.219048
202
0.604414
dc852acef9e6083342519b31076e1c81d191628d
1,199
py
Python
chainercv/utils/testing/assertions/__init__.py
iory/chainercv
ecb1953f78c526dfd38308d68a4094c9f4df3a8d
[ "MIT" ]
1,600
2017-06-01T15:37:52.000Z
2022-03-09T08:39:09.000Z
chainercv/utils/testing/assertions/__init__.py
iory/chainercv
ecb1953f78c526dfd38308d68a4094c9f4df3a8d
[ "MIT" ]
547
2017-06-01T06:43:16.000Z
2021-05-28T17:14:05.000Z
chainercv/utils/testing/assertions/__init__.py
iory/chainercv
ecb1953f78c526dfd38308d68a4094c9f4df3a8d
[ "MIT" ]
376
2017-06-02T01:29:10.000Z
2022-03-13T11:19:59.000Z
from chainercv.utils.testing.assertions.assert_is_bbox import assert_is_bbox # NOQA from chainercv.utils.testing.assertions.assert_is_bbox_dataset import assert_is_bbox_dataset # NOQA from chainercv.utils.testing.assertions.assert_is_detection_link import assert_is_detection_link # NOQA from chainercv.utils.testing....
99.916667
134
0.889908
2bada4d9264451b315dfb172f1b01c9abbaae8a9
1,712
py
Python
photos/migrations/0006_auto_20181206_1527.py
cliffnyendwe/my-gallary
7df489bee02a86baed7d83bd1a54b27572cd3118
[ "MIT" ]
null
null
null
photos/migrations/0006_auto_20181206_1527.py
cliffnyendwe/my-gallary
7df489bee02a86baed7d83bd1a54b27572cd3118
[ "MIT" ]
null
null
null
photos/migrations/0006_auto_20181206_1527.py
cliffnyendwe/my-gallary
7df489bee02a86baed7d83bd1a54b27572cd3118
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-12-06 12:27 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('photos', '0005_auto_20181206_1142'), ] operations = ...
29.016949
114
0.547897
6ee39b420bcc5d376b934cf301c282a498f9a8ef
11,515
py
Python
conanfile.py
its-K/conan-skia
cf022a8b51d6e14fabbc4845a0365a1d4dc4a5a0
[ "MIT" ]
1
2021-12-12T21:24:14.000Z
2021-12-12T21:24:14.000Z
conanfile.py
its-K/conan-skia
cf022a8b51d6e14fabbc4845a0365a1d4dc4a5a0
[ "MIT" ]
null
null
null
conanfile.py
its-K/conan-skia
cf022a8b51d6e14fabbc4845a0365a1d4dc4a5a0
[ "MIT" ]
null
null
null
from conans import ConanFile, CMake, errors, tools import os def merge_two_dicts(x, y): z = x.copy() # start with x's keys and values z.update(y) # modifies z with y's keys and values & returns None return z class HelloConan(ConanFile): name = "skia" version = "1.1" license = "MIT License...
42.490775
124
0.611898
9e0061303810e3bc475218d223d854fce883390e
4,349
py
Python
wallsDox/settings.py
meanii/wallsDox
b731ee55139adfb04a43ef3177ab5a3d57698063
[ "MIT" ]
1
2021-08-07T07:18:40.000Z
2021-08-07T07:18:40.000Z
wallsDox/settings.py
meanii/wallsDox
b731ee55139adfb04a43ef3177ab5a3d57698063
[ "MIT" ]
null
null
null
wallsDox/settings.py
meanii/wallsDox
b731ee55139adfb04a43ef3177ab5a3d57698063
[ "MIT" ]
null
null
null
""" Django settings for wallsDox project. Generated by 'django-admin startproject' using Django 3.2.5. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ import os im...
26.357576
91
0.715107
b5bf807c0eaee1352b34aecac84bbbb4665e7246
908
py
Python
env/bin/rst2xetex.py
simotwo/Abilene-Paradox
c85961efb37aba43c0d99ed1c36d083507e2b2d3
[ "MIT" ]
null
null
null
env/bin/rst2xetex.py
simotwo/Abilene-Paradox
c85961efb37aba43c0d99ed1c36d083507e2b2d3
[ "MIT" ]
2
2021-05-12T06:25:57.000Z
2022-03-01T04:16:03.000Z
env/bin/rst2xetex.py
simotwo/AbileneParadox-ddd
c85961efb37aba43c0d99ed1c36d083507e2b2d3
[ "MIT" ]
null
null
null
#!/home/tuts/Desktop/duka/ddd_assessment/env/bin/python # $Id: rst2xetex.py 7847 2015-03-17 17:30:47Z milde $ # Author: Guenter Milde # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing Lua/XeLaTeX code. """ try: import locale locale.set...
32.428571
77
0.677313
866d49fb39156a21c16a30e8c4a95a3f9c63c137
1,197
py
Python
apps/imagens/utilidades/segmentacao.py
ravellys/app_easyporous
e339d9a45cbb185258570d9714d189286dd11dcc
[ "MIT" ]
null
null
null
apps/imagens/utilidades/segmentacao.py
ravellys/app_easyporous
e339d9a45cbb185258570d9714d189286dd11dcc
[ "MIT" ]
9
2021-01-10T03:29:52.000Z
2021-01-26T03:27:38.000Z
apps/imagens/utilidades/segmentacao.py
ravellys/app_easyporous
e339d9a45cbb185258570d9714d189286dd11dcc
[ "MIT" ]
null
null
null
import skimage as sk from skimage.filters import threshold_otsu, threshold_isodata, threshold_li, threshold_mean from apps.imagens.dash_app.utilidades.import_imagem import import_file METODOS_SEGMENTACAO = dict( otsu={'nome': 'Otsu', 'metodo': threshold_otsu}, isodata={'nome': 'Isod...
32.351351
116
0.674185
4461b8889fc17335ddf7d5864d4bff0b51c62129
14,607
py
Python
zerver/views/home.py
onkarshedge/zulip
4fa4ca53c2dd3a2b30b516a77fe6a8cf4ee4b4bf
[ "Apache-2.0" ]
1
2018-10-10T09:08:46.000Z
2018-10-10T09:08:46.000Z
zerver/views/home.py
hcxiong/zulip
bf22eefedebd50b25f32b22988217c13a89b65d1
[ "Apache-2.0" ]
4
2021-11-15T17:52:28.000Z
2022-02-27T10:43:15.000Z
zerver/views/home.py
hcxiong/zulip
bf22eefedebd50b25f32b22988217c13a89b65d1
[ "Apache-2.0" ]
9
2019-11-04T18:59:29.000Z
2022-03-22T17:46:37.000Z
from typing import Any, List, Dict, Optional, Iterator from django.conf import settings from django.urls import reverse from django.http import HttpResponseRedirect, HttpResponse, HttpRequest from django.shortcuts import redirect, render from django.utils import translation from django.utils.cache import patch_cache_c...
46.371429
104
0.690149
85aa555fab9898c1265c0850f96ba2611ef2a7d6
1,336
py
Python
application/api/users.py
hullo2chuks/react-redux-flask-mongodb
2e72b0e0dc417af74468e677ffb21d41c4b1f9d3
[ "MIT" ]
4
2018-08-28T10:53:06.000Z
2020-07-04T09:56:54.000Z
application/api/users.py
hullo2chuks/react-redux-flask-mongodb
2e72b0e0dc417af74468e677ffb21d41c4b1f9d3
[ "MIT" ]
null
null
null
application/api/users.py
hullo2chuks/react-redux-flask-mongodb
2e72b0e0dc417af74468e677ffb21d41c4b1f9d3
[ "MIT" ]
3
2018-06-08T14:28:05.000Z
2021-07-06T20:14:59.000Z
from flask import request, jsonify, g from ..utils.auth import generate_token, requires_auth, verify_token from ..api import api as api_bp from ..models import User @api_bp.route("/user", methods=["GET"]) @requires_auth def get_user(): return jsonify(result=g.current_user) @api_bp.route("/create_user", methods=[...
27.265306
100
0.685629
48a5c88b918b5d59420cfc72622645383cd87f6d
748
py
Python
raw_to_jpeg.py
mamikonyana/termiroom
f1c03a61e818420f3d2bfacd8336753a6c53205c
[ "MIT" ]
null
null
null
raw_to_jpeg.py
mamikonyana/termiroom
f1c03a61e818420f3d2bfacd8336753a6c53205c
[ "MIT" ]
null
null
null
raw_to_jpeg.py
mamikonyana/termiroom
f1c03a61e818420f3d2bfacd8336753a6c53205c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import rawpy from pathlib import Path import argparse from tqdm import tqdm from PIL import Image if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('-i', '--raw-folder', type=Path) parser.add_argument('-o', '--jpeg-folder', type=Path, ...
29.92
73
0.637701
412edc395d546644d5fae3da1706ff7f6ca51038
3,067
py
Python
keras/applications/audio_conv_utils.py
cnvrg/keras
7f9bea44d5d4512fe21d0263d00fd39a9fb5c671
[ "MIT" ]
1
2020-12-08T14:29:08.000Z
2020-12-08T14:29:08.000Z
keras/applications/audio_conv_utils.py
cnvrg/keras
7f9bea44d5d4512fe21d0263d00fd39a9fb5c671
[ "MIT" ]
null
null
null
keras/applications/audio_conv_utils.py
cnvrg/keras
7f9bea44d5d4512fe21d0263d00fd39a9fb5c671
[ "MIT" ]
null
null
null
import numpy as np from .. import backend as K try: import librosa except ImportError: librosa = None TAGS = ['rock', 'pop', 'alternative', 'indie', 'electronic', 'female vocalists', 'dance', '00s', 'alternative rock', 'jazz', 'beautiful', 'metal', 'chillout', 'male vocalists', ...
32.978495
76
0.58135
25409c4b92c02daf7e2b5360e55cc9cb6b59b84c
11,160
py
Python
monolithe/generators/lang/javascript/writers/apiversionwriter.py
rajeshnokia/monolithe
f07d1a53ed1ff82c293ebac6fc6f02bafdf6dfb6
[ "BSD-3-Clause" ]
18
2015-06-24T18:35:20.000Z
2022-01-19T19:04:00.000Z
monolithe/generators/lang/javascript/writers/apiversionwriter.py
rajeshnokia/monolithe
f07d1a53ed1ff82c293ebac6fc6f02bafdf6dfb6
[ "BSD-3-Clause" ]
63
2015-11-03T18:57:12.000Z
2020-09-30T02:54:49.000Z
monolithe/generators/lang/javascript/writers/apiversionwriter.py
rajeshnokia/monolithe
f07d1a53ed1ff82c293ebac6fc6f02bafdf6dfb6
[ "BSD-3-Clause" ]
38
2015-10-23T19:04:44.000Z
2021-06-04T08:13:33.000Z
from monolithe.generators.lib import TemplateFileWriter from monolithe.specifications import SpecificationAttribute from monolithe.lib import Printer import os import shutil import json class APIVersionWriter(TemplateFileWriter): """ This class is reponsible to write files for a particular api version. """ d...
49.821429
229
0.649104
eaaed0e8de648377d3d45a15faa4d54be20ea739
16,963
py
Python
selfdrive/updated.py
chengyu-k/openpilot
72bbddadc2a468c4436594326b5819bad03c078d
[ "MIT" ]
1
2021-12-24T03:06:22.000Z
2021-12-24T03:06:22.000Z
selfdrive/updated.py
chengyu-k/openpilot
72bbddadc2a468c4436594326b5819bad03c078d
[ "MIT" ]
null
null
null
selfdrive/updated.py
chengyu-k/openpilot
72bbddadc2a468c4436594326b5819bad03c078d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Safe Update: A simple service that waits for network access and tries to # update every 10 minutes. It's intended to make the OP update process more # robust against Git repository corruption. This service DOES NOT try to fix # an already-corrupt BASEDIR Git repo, only prevent it from happenin...
35.78692
126
0.72157
5758ee9692db6881e90e3d7a6354b4a20d405d91
14,545
py
Python
salt/modules/tomcat.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
1
2016-12-20T20:11:21.000Z
2016-12-20T20:11:21.000Z
salt/modules/tomcat.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
salt/modules/tomcat.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
''' Support for Tomcat This module uses the manager webapp to manage Apache tomcat webapps If the manager webapp is not configured some of the functions won't work The following grains/pillar should be set:: tomcat-manager.user: admin user name tomcat-manager.passwd: password and also configure a user in th...
25.034423
99
0.591406
f1f7233b5266dc8be602fbf1787f62412555a6a1
406
py
Python
src/functions/hello.py
Gilbertly/sls-starter-py
e8252c45ce910f80ae36d91c43c02bcd68cef78a
[ "MIT" ]
null
null
null
src/functions/hello.py
Gilbertly/sls-starter-py
e8252c45ce910f80ae36d91c43c02bcd68cef78a
[ "MIT" ]
44
2020-08-25T09:46:48.000Z
2021-05-07T08:58:36.000Z
src/functions/hello.py
Gilbertly/sls-starter-py
e8252c45ce910f80ae36d91c43c02bcd68cef78a
[ "MIT" ]
null
null
null
import sentry_sdk from os import environ from sentry_sdk import capture_exception sentry_sdk.init(dsn=environ.get('SENTRY_DSN')) def handler(event, context): try: event_param = event['some_param'] except Exception as error: capture_exception(error) return say_hello(event_param) def say_hello(param: ...
20.3
46
0.73399
ee26ef894175561f93978a542295aaae2682c65d
549
py
Python
src/goal_pub.py
Ice833/vfh3d
3256de1b55594092b859bb65691cafb88890cb69
[ "MIT" ]
1
2022-03-10T13:07:09.000Z
2022-03-10T13:07:09.000Z
src/goal_pub.py
Ice833/vfh3d
3256de1b55594092b859bb65691cafb88890cb69
[ "MIT" ]
1
2020-07-04T10:37:54.000Z
2020-07-30T09:27:51.000Z
src/goal_pub.py
Ice833/vfh3d
3256de1b55594092b859bb65691cafb88890cb69
[ "MIT" ]
7
2019-01-20T13:39:30.000Z
2021-09-29T09:03:04.000Z
#!/usr/bin/env python import rospy from geometry_msgs.msg import PoseStamped def init(): rospy.init_node("goal_pub", anonymous=True) pub = rospy.Publisher("/goal", PoseStamped, queue_size=10) rate = rospy.Rate(2) goal = PoseStamped() goal.pose.position.x = 30 goal.pose.position.y = 0 goal.p...
24.954545
62
0.655738
9765dfed16b674a8a9ed89930477d52e06cf2bc5
2,492
py
Python
software/utils/drc_utils/python/debugPlanMessage.py
liangfok/oh-distro
eeee1d832164adce667e56667dafc64a8d7b8cee
[ "BSD-3-Clause" ]
92
2016-01-14T21:03:50.000Z
2021-12-01T17:57:46.000Z
software/utils/drc_utils/python/debugPlanMessage.py
liangfok/oh-distro
eeee1d832164adce667e56667dafc64a8d7b8cee
[ "BSD-3-Clause" ]
62
2016-01-16T18:08:14.000Z
2016-03-24T15:16:28.000Z
software/utils/drc_utils/python/debugPlanMessage.py
liangfok/oh-distro
eeee1d832164adce667e56667dafc64a8d7b8cee
[ "BSD-3-Clause" ]
41
2016-01-14T21:26:58.000Z
2022-03-28T03:10:39.000Z
import lcm import drc as lcmdrc import datetime import select class LCMPoller(object): def __init__(self, lc): self.lc = lc self.poll = select.poll() self.poll.register(self.lc.fileno()) def handleLCM(self, timeout=100): if self.poll.poll(timeout): self.lc.handle()...
25.428571
112
0.653692
72c197d24ff46131619c6411f40057bd8f737ecd
9,437
py
Python
src/lib/models/losses.py
SyGoing/Centernet-custom
61f558eac844d4f44a7dae9890465b00221d8353
[ "Apache-2.0" ]
21
2020-03-05T15:32:49.000Z
2020-11-11T06:00:54.000Z
src/lib/models/losses.py
SyGoing/Centernet-custom
61f558eac844d4f44a7dae9890465b00221d8353
[ "Apache-2.0" ]
2
2020-07-14T03:13:41.000Z
2020-09-11T07:30:52.000Z
src/lib/models/losses.py
SyGoing/Centernet-custom
61f558eac844d4f44a7dae9890465b00221d8353
[ "Apache-2.0" ]
5
2020-04-30T10:05:04.000Z
2020-09-30T13:04:48.000Z
# ------------------------------------------------------------------------------ # Portions of this code are from # CornerNet (https://github.com/princeton-vl/CornerNet) # Copyright (c) 2018, University of Michigan # Licensed under the BSD 3-Clause License # -------------------------------------------------------------...
32.541379
80
0.643743
48eb7c4fdfa22ace16f8f009c8206336938c0ebc
1,312
py
Python
capitulo-05/ex15.py
bryan-lima/exercicios-livro-introd-prog-python-3ed
b6bc26dced9728510865704a80cb0d97f81f756b
[ "MIT" ]
3
2021-11-09T17:54:10.000Z
2022-01-30T22:32:25.000Z
capitulo-05/ex15.py
bryan-lima/exercicios-livro-introd-prog-python-3ed
b6bc26dced9728510865704a80cb0d97f81f756b
[ "MIT" ]
null
null
null
capitulo-05/ex15.py
bryan-lima/exercicios-livro-introd-prog-python-3ed
b6bc26dced9728510865704a80cb0d97f81f756b
[ "MIT" ]
null
null
null
# Escreva um programa para controlar uma pequena máquina registradora # Você deve solicitar ao usuário que digite o código do produto e a quantidade comprada # Utilize a tabela de códigos a seguir para obter o preço de cada produto # ________________ # | Código | Preço | # | 1 | 0,50 | # | 2 | 1,00 | # | ...
26.77551
87
0.601372
c8e397e544ecf61c4523ce5e65f0a18ba80eb626
1,356
py
Python
cars/models.py
zubev/my_cars
31e058d5b8de0c876b6384003b6115584ed9bd7f
[ "MIT" ]
null
null
null
cars/models.py
zubev/my_cars
31e058d5b8de0c876b6384003b6115584ed9bd7f
[ "MIT" ]
null
null
null
cars/models.py
zubev/my_cars
31e058d5b8de0c876b6384003b6115584ed9bd7f
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.core.validators import MinValueValidator, MaxValueValidator from django.db import models # Create your models here. from accounts.models import UserProfile from cars.choices import BRANDS, BODY_STYLES, FUELS, CONDITIONS from cars.validators import contains_only_d...
41.090909
82
0.768437
32381afc72fc7f4f5f2922f86535005786bc5b30
1,972
py
Python
tests/test_converters.py
beatrizuezu/simple-model
be59df8552a2cc7e5f14db909377f1f9f2fc61c4
[ "MIT" ]
76
2017-01-31T13:18:10.000Z
2021-09-11T17:26:23.000Z
tests/test_converters.py
beatrizuezu/simple-model
be59df8552a2cc7e5f14db909377f1f9f2fc61c4
[ "MIT" ]
37
2017-07-13T15:20:54.000Z
2019-07-12T18:41:18.000Z
tests/test_converters.py
beatrizuezu/simple-model
be59df8552a2cc7e5f14db909377f1f9f2fc61c4
[ "MIT" ]
22
2017-10-01T20:03:18.000Z
2021-09-11T17:26:25.000Z
from enum import Enum import pytest from simple_model import Model, to_dict from tests.conftest import MyModel def test_model_to_dict_invalid_argument(): with pytest.raises(TypeError): to_dict('') def test_model_to_dict_model_not_validated(model): with pytest.raises(AssertionError): to_dic...
20.122449
82
0.592292
4fc75f84ff9fea5e7997284fd6245c6596f0da14
318
py
Python
Utils/py/SimsparkTests/Tests/__init__.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/SimsparkTests/Tests/__init__.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/SimsparkTests/Tests/__init__.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import glob import importlib import os functions = {} for __file in glob.glob(os.path.join(os.path.dirname(__file__), '*.py')): __name = os.path.basename(__file) if not __name.startswith('_'): functions[__name[:-3]] = getattr(importlib.import_module(__name__ + '.' + __name[:-3]), __name[:-3], None)
28.909091
114
0.669811
f6f9295ff98ea50f1f89d88b8c326cbe055709ae
4,062
py
Python
project_files/OLD NDlib Composite 2.py
TheAkashain/NDLib-C19-UNB
b9769b7ce931e1fadba3c78e0f29b37834675e1c
[ "BSD-2-Clause" ]
null
null
null
project_files/OLD NDlib Composite 2.py
TheAkashain/NDLib-C19-UNB
b9769b7ce931e1fadba3c78e0f29b37834675e1c
[ "BSD-2-Clause" ]
null
null
null
project_files/OLD NDlib Composite 2.py
TheAkashain/NDLib-C19-UNB
b9769b7ce931e1fadba3c78e0f29b37834675e1c
[ "BSD-2-Clause" ]
1
2020-11-24T14:21:03.000Z
2020-11-24T14:21:03.000Z
import networkx as nx import ndlib.models.ModelConfig as mc import ndlib.models.CompositeModel as gc import ndlib.models.compartments as ns import time from ndlib.utils import multi_runs import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np # Network Definition for initialinfect in [1]: for i...
41.030303
144
0.58838
bfc3634ea96470bf3b0568a87d405ed8ef7883af
5,409
py
Python
tests_functional/test_koji_wrapper.py
adarshtri/doozer
88cd6f377fcb838ee068db100be2a908118d7693
[ "Apache-2.0" ]
1
2020-09-21T06:48:40.000Z
2020-09-21T06:48:40.000Z
tests_functional/test_koji_wrapper.py
adarshtri/doozer
88cd6f377fcb838ee068db100be2a908118d7693
[ "Apache-2.0" ]
null
null
null
tests_functional/test_koji_wrapper.py
adarshtri/doozer
88cd6f377fcb838ee068db100be2a908118d7693
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import unittest from . import DoozerRunnerTestCase import koji import logging from doozerlib import image, exectools, model from doozerlib import brew class TestKojiWrapper(DoozerRunnerTestCase): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) def set...
48.72973
216
0.705861
8821ece266fa7dc65aee55a7759395404c7200c3
1,777
py
Python
userbot/modules/logo.py
iegonxy/iegonxyisback
71e0b61b73fab2e6051cc980d302d8db3edf6535
[ "Naumen", "Condor-1.1", "MS-PL" ]
4
2022-02-27T16:12:25.000Z
2022-03-28T07:39:29.000Z
userbot/modules/logo.py
Doraucul/Man-Userbot
aebb7681c4ca657c5a5d18235d769d2d61740109
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2022-03-16T02:54:27.000Z
2022-03-17T09:17:12.000Z
userbot/modules/logo.py
Doraucul/Man-Userbot
aebb7681c4ca657c5a5d18235d769d2d61740109
[ "Naumen", "Condor-1.1", "MS-PL" ]
6
2022-03-11T20:17:36.000Z
2022-03-28T01:29:13.000Z
# 🍀 © @tofik_dn # ⚠️ Do not remove credits import asyncio from telethon.errors.rpcerrorlist import YouBlockedUserError from telethon.tl.functions.contacts import UnblockRequest from userbot import CMD_HANDLER as cmd from userbot import CMD_HELP from userbot.utils import edit_delete, edit_or_reply, man_cmd @man_cmd...
32.907407
88
0.627462
354622ffb9abc994caf75c1fd9c79729fe473a97
1,690
py
Python
news/tests.py
BRIGHTON-ASUMANI/news-art
a58a45f7fb8e9e7051a6cb2540a0b41f0e30954b
[ "MIT" ]
null
null
null
news/tests.py
BRIGHTON-ASUMANI/news-art
a58a45f7fb8e9e7051a6cb2540a0b41f0e30954b
[ "MIT" ]
null
null
null
news/tests.py
BRIGHTON-ASUMANI/news-art
a58a45f7fb8e9e7051a6cb2540a0b41f0e30954b
[ "MIT" ]
null
null
null
from django.test import TestCase from .models import Editor,Article,tags # Create your tests here. class EditorTestClass(TestCase): # Set up method def setUp(self): self.brighton= Editor(first_name = 'brighton', last_name ='Muriuki', email ='brighton@gmail.com') # Testing instance def test_...
31.296296
116
0.652071
fb7a6425ec29f118653062ce58957f83eef793bc
12,765
py
Python
lib-python/2.7/test/test_unicodedata.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
333
2015-08-08T18:03:38.000Z
2022-03-22T18:13:12.000Z
lib-python/2.7/test/test_unicodedata.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
7
2020-02-16T16:49:05.000Z
2021-11-26T09:00:56.000Z
lib-python/2.7/test/test_unicodedata.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
55
2015-08-16T02:41:30.000Z
2022-03-20T20:33:35.000Z
""" Test script for the unicodedata module. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """ import sys import unittest import hashlib import subprocess import test.test_support encoding = 'utf-8' ### Run tests class UnicodeMethodsTest(unittest.T...
38.333333
87
0.584019
217e1b9f68bdb56636f04daa2925fe16ed9108f6
2,453
py
Python
torchbenchmark/models/LearningToPaint/baseline_modelfree/utils/util.py
Chillee/benchmark
91e1b2871327e44b9b7d24d173ca93720fb6565b
[ "BSD-3-Clause" ]
1,196
2019-03-20T08:29:14.000Z
2019-07-22T15:19:37.000Z
torchbenchmark/models/LearningToPaint/baseline_modelfree/utils/util.py
Chillee/benchmark
91e1b2871327e44b9b7d24d173ca93720fb6565b
[ "BSD-3-Clause" ]
473
2017-06-11T02:36:40.000Z
2022-03-31T22:57:34.000Z
torchbenchmark/models/LearningToPaint/baseline_modelfree/utils/util.py
Chillee/benchmark
91e1b2871327e44b9b7d24d173ca93720fb6565b
[ "BSD-3-Clause" ]
134
2019-03-26T07:47:34.000Z
2019-07-22T14:34:33.000Z
import os import torch from torch.autograd import Variable USE_CUDA = torch.cuda.is_available() def prRed(prt): print("\033[91m {}\033[00m" .format(prt)) def prGreen(prt): print("\033[92m {}\033[00m" .format(prt)) def prYellow(prt): print("\033[93m {}\033[00m" .format(prt)) def prLightPurple(prt): print("\033[94m {}\...
35.042857
77
0.666531
f5ea6e7a5fe5b74497cbabd5d1b4302963729bed
5,583
py
Python
sg2im/drawer.py
davidhalladay/DSP-Auto-drawer-Generating-and-Modifying-Images-Continually-using-Knowledge-graph
1610bbd567a5caba0478d8f7026f98766e6e39f8
[ "Apache-2.0" ]
null
null
null
sg2im/drawer.py
davidhalladay/DSP-Auto-drawer-Generating-and-Modifying-Images-Continually-using-Knowledge-graph
1610bbd567a5caba0478d8f7026f98766e6e39f8
[ "Apache-2.0" ]
4
2021-03-19T10:11:14.000Z
2022-03-12T00:11:24.000Z
sg2im/drawer.py
davidhalladay/DSP-Auto-drawer-Generating-and-Modifying-Images-Continually-using-Knowledge-graph
1610bbd567a5caba0478d8f7026f98766e6e39f8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018 Google LLC # # 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 ag...
32.086207
90
0.612574
82062efc4cf670af1e7bc8a6d203b2114982abce
13,134
py
Python
Warlords/Assets/Python/EntryPoints/CvOptionsScreenCallbackInterface.py
f1rpo/Civ4CE
ba64c3545b479887739ad0ff78605b51b6fa57f9
[ "CNRI-Python" ]
null
null
null
Warlords/Assets/Python/EntryPoints/CvOptionsScreenCallbackInterface.py
f1rpo/Civ4CE
ba64c3545b479887739ad0ff78605b51b6fa57f9
[ "CNRI-Python" ]
null
null
null
Warlords/Assets/Python/EntryPoints/CvOptionsScreenCallbackInterface.py
f1rpo/Civ4CE
ba64c3545b479887739ad0ff78605b51b6fa57f9
[ "CNRI-Python" ]
null
null
null
from CvPythonExtensions import * import CvScreensInterface import Popup as PyPopup import CvUtil import string localText = CyTranslator() UserProfile = CyUserProfile() #""" #OPTIONS SCREEN CALLBACK INTERFACE - Any time something is changed in the Options Screen the result is determined here #""" def sav...
27.826271
208
0.705573
d6dff6c5e6f979b4a69f0acb7511000cb0e96283
17
py
Python
python/version.py
tied/rest-api-samples
41cb468f0e9465b0becb4e3a8b3b9a6a606287bb
[ "MIT" ]
1
2022-01-04T20:53:25.000Z
2022-01-04T20:53:25.000Z
python/version.py
tied/rest-api-samples
41cb468f0e9465b0becb4e3a8b3b9a6a606287bb
[ "MIT" ]
null
null
null
python/version.py
tied/rest-api-samples
41cb468f0e9465b0becb4e3a8b3b9a6a606287bb
[ "MIT" ]
null
null
null
VERSION = '3.14'
8.5
16
0.588235
a2dbe3b35fdbfbd73061aa325d5b58cfe1f6460e
24,000
py
Python
src/cc_interface.py
Jpfonseca/Blockchain_auction_management
99ea44e1f92b656c19e609eb9f7447b9323970a0
[ "MIT" ]
null
null
null
src/cc_interface.py
Jpfonseca/Blockchain_auction_management
99ea44e1f92b656c19e609eb9f7447b9323970a0
[ "MIT" ]
null
null
null
src/cc_interface.py
Jpfonseca/Blockchain_auction_management
99ea44e1f92b656c19e609eb9f7447b9323970a0
[ "MIT" ]
1
2020-11-17T06:39:03.000Z
2020-11-17T06:39:03.000Z
from os import listdir from time import sleep import PyKCS11 from PyKCS11 import PyKCS11Error, PyKCS11Lib, Mechanism from OpenSSL.crypto import load_certificate, load_crl, FILETYPE_ASN1, FILETYPE_PEM, Error, X509Store, X509StoreContext,\ X509StoreFlags, X509StoreContextError from cryptography import x509 from cry...
44.117647
155
0.551833
a7455ee61d6da9125dbb33a71079ba43a72651ce
1,483
py
Python
aslprep/workflows/bold/__init__.py
mflounders/aslprep
1ccc49455a65dc1443d56cce7367df671f6f82e9
[ "BSD-3-Clause" ]
null
null
null
aslprep/workflows/bold/__init__.py
mflounders/aslprep
1ccc49455a65dc1443d56cce7367df671f6f82e9
[ "BSD-3-Clause" ]
null
null
null
aslprep/workflows/bold/__init__.py
mflounders/aslprep
1ccc49455a65dc1443d56cce7367df671f6f82e9
[ "BSD-3-Clause" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ Pre-processing fMRI - BOLD signal workflows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. automodule:: fmriprep.workflows.bold.base .. automodule:: fmriprep.workflows.bold.hmc .. automodule:: fmripre...
24.311475
73
0.710047
c74675efd3f1d3aa18ada090bae061b82a73069e
20,550
py
Python
python-client/cloudera/director/v6/models/deployment_template.py
daanknoope/director-sdk
a099fedd5afe365aedbb50daa75de048ef6f7ab4
[ "Apache-2.0" ]
24
2015-03-04T01:39:36.000Z
2020-06-30T13:34:27.000Z
python-client/cloudera/director/v6/models/deployment_template.py
daanknoope/director-sdk
a099fedd5afe365aedbb50daa75de048ef6f7ab4
[ "Apache-2.0" ]
5
2015-11-04T08:18:47.000Z
2019-01-05T11:12:19.000Z
python-client/cloudera/director/v6/models/deployment_template.py
daanknoope/director-sdk
a099fedd5afe365aedbb50daa75de048ef6f7ab4
[ "Apache-2.0" ]
26
2015-02-24T21:13:53.000Z
2020-12-15T06:01:46.000Z
# coding: utf-8 """ Licensed to Cloudera, Inc. under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Cloudera, Inc. licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use thi...
33.910891
414
0.652457
8b80166318a5d7a9348870cfaa9595388fa4688e
158
py
Python
calculate.py
jackcbrown89/dv8-flask
9493af7ca202533452f0b0597b0359db3e868b61
[ "MIT" ]
null
null
null
calculate.py
jackcbrown89/dv8-flask
9493af7ca202533452f0b0597b0359db3e868b61
[ "MIT" ]
null
null
null
calculate.py
jackcbrown89/dv8-flask
9493af7ca202533452f0b0597b0359db3e868b61
[ "MIT" ]
null
null
null
import process import sentanalysis import sys ticker = 'AAPL' def total(ticker): score = sentanalysis.getScore(ticker) return score total(ticker)
12.153846
41
0.740506
2af03d6e2b203d82442f8959fc4d4fdcf132387b
2,842
py
Python
data/p3BR/R1/benchmark/startPyquil442.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R1/benchmark/startPyquil442.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R1/benchmark/startPyquil442.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=2 # total number=80 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(0) # number=1 pr...
27.066667
64
0.548909
c4a6848810dc12b2ae70575fa58cbf6227d50438
1,223
py
Python
Distribute Candies.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
Distribute Candies.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
Distribute Candies.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
''' Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one candy of the corresponding kind. You need to distribute these candies equally in number to brother and sister. Return the maximum number of kinds of candies the sister could ga...
39.451613
318
0.70646
89c6ad7759abcab5a4a6595e3c9deea15055bdda
596
py
Python
model/group.py
KateRuss/python_training
38ea3f710fd9ba3b555277aac84a1ccda752b056
[ "Apache-2.0" ]
null
null
null
model/group.py
KateRuss/python_training
38ea3f710fd9ba3b555277aac84a1ccda752b056
[ "Apache-2.0" ]
null
null
null
model/group.py
KateRuss/python_training
38ea3f710fd9ba3b555277aac84a1ccda752b056
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from sys import maxsize class Group: def __init__(self, name=None, header=None, footer=None, id = None): self.name = name self.header = header self.footer = footer self.id = id def __repr__(self): return "%s:%s:%s:%s" % (self.id, self.name, se...
24.833333
103
0.573826
e4ca0f0af22464dd92f3635f8dbe09ff3b3b1e43
26
py
Python
olive/core/__init__.py
liuyenting/olive-core
b532b29e29fe9f167369f66b8d922f5f644f9309
[ "Apache-2.0" ]
null
null
null
olive/core/__init__.py
liuyenting/olive-core
b532b29e29fe9f167369f66b8d922f5f644f9309
[ "Apache-2.0" ]
null
null
null
olive/core/__init__.py
liuyenting/olive-core
b532b29e29fe9f167369f66b8d922f5f644f9309
[ "Apache-2.0" ]
null
null
null
from .dispatcher import *
13
25
0.769231
6fb7892a9fda4aee17dd550afd719dd01b627df3
3,490
py
Python
accuracode/accura/mkref.py
singleron-RD/AccuraCode
5bf3832a7cb0dfbab298b7406de734e062417e5d
[ "MIT" ]
2
2021-11-17T06:55:36.000Z
2022-02-21T03:10:55.000Z
accuracode/accura/mkref.py
singleron-RD/AccuraCode
5bf3832a7cb0dfbab298b7406de734e062417e5d
[ "MIT" ]
null
null
null
accuracode/accura/mkref.py
singleron-RD/AccuraCode
5bf3832a7cb0dfbab298b7406de734e062417e5d
[ "MIT" ]
2
2022-02-14T06:41:19.000Z
2022-03-15T14:21:50.000Z
import configparser import subprocess import accuracode.tools.utils as utils from accuracode.tools.mkref import Mkref, parse_genomeDir from accuracode.tools.mkref import get_opts_mkref as opts def parse_genomeDir_rna(genomeDir): return parse_genomeDir(genomeDir, entrys=('fasta', 'gtf', 'mt_gene_list')) class M...
29.576271
109
0.599427