hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
eecd0acdc8c34c95ce411eeea15ce8b98f975328
12,787
py
Python
jupyterhub_singleuser_profiles/profiles.py
harshad16/jupyterhub-singleuser-profiles
c925a69d4c0165b65e34d8f415183e63789e40fa
[ "MIT" ]
null
null
null
jupyterhub_singleuser_profiles/profiles.py
harshad16/jupyterhub-singleuser-profiles
c925a69d4c0165b65e34d8f415183e63789e40fa
[ "MIT" ]
null
null
null
jupyterhub_singleuser_profiles/profiles.py
harshad16/jupyterhub-singleuser-profiles
c925a69d4c0165b65e34d8f415183e63789e40fa
[ "MIT" ]
null
null
null
import kubernetes import os import yaml import json import logging from kubernetes.client import V1EnvVar, V1ResourceRequirements, V1ConfigMap, V1ObjectMeta, V1SecurityContext, V1Capabilities, V1SELinuxOptions from kubernetes.client.rest import ApiException from openshift.dynamic import DynamicClient from .service impo...
34.841962
147
0.664894
7fa328a3dcf09f0415761b4a65cfecec8b282603
1,478
py
Python
experiments/gridworld_ac_mp.py
ranok92/deepirl
88c7e76986243cf0b988d8d7dc0eef6b58e07864
[ "MIT" ]
2
2019-01-04T22:03:15.000Z
2019-04-03T00:16:11.000Z
experiments/gridworld_ac_mp.py
ranok92/deepirl
88c7e76986243cf0b988d8d7dc0eef6b58e07864
[ "MIT" ]
null
null
null
experiments/gridworld_ac_mp.py
ranok92/deepirl
88c7e76986243cf0b988d8d7dc0eef6b58e07864
[ "MIT" ]
null
null
null
import pdb import sys # NOQA sys.path.insert(0, '..') # NOQA: E402 import numpy as np import argparse import torch.multiprocessing as mp from envs.gridworld_clockless import GridWorldClockless as GridWorld from rlmethods.b_actor_critic import ActorCritic from utils import step_wrapper, reset_wrapper parser = argpa...
31.446809
78
0.679296
b7ca730d00da7a86862b3b4b905de92067a6862a
2,662
py
Python
salt/utils/async.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
2
2015-08-04T21:54:38.000Z
2019-04-25T21:47:08.000Z
salt/utils/async.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/utils/async.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
1
2020-10-19T11:49:50.000Z
2020-10-19T11:49:50.000Z
# -*- coding: utf-8 -*- ''' Helpers/utils for working with tornado async stuff ''' from __future__ import absolute_import import tornado.ioloop import tornado.concurrent try: import zmq.eventloop.ioloop # support pyzmq 13.0.x, TODO: remove once we force people to 14.0.x if not hasattr(zmq.eventloop.ioloop...
30.25
91
0.638618
69e2ce3439b3f3ac484fe206fbd152fa9ffea2f8
461
py
Python
DMOJ/DMOPC/DMOPC_17_C5P3_Mimi_and_Primes.py
Togohogo1/pg
ee3c36acde47769c66ee13a227762ee677591375
[ "MIT" ]
null
null
null
DMOJ/DMOPC/DMOPC_17_C5P3_Mimi_and_Primes.py
Togohogo1/pg
ee3c36acde47769c66ee13a227762ee677591375
[ "MIT" ]
1
2021-10-14T18:26:56.000Z
2021-10-14T18:26:56.000Z
DMOJ/DMOPC/DMOPC_17_C5P3_Mimi_and_Primes.py
Togohogo1/pg
ee3c36acde47769c66ee13a227762ee677591375
[ "MIT" ]
1
2021-08-06T03:39:55.000Z
2021-08-06T03:39:55.000Z
import sys from math import sqrt input = sys.stdin.readline def GCD(a, b): if b == 0: return a return GCD(b, a%b) N = int(input()) nums = list(map(int, input().split())) g = m = 0 for i in nums: g = GCD(g, i) while g % 2 == 0: m = max(2, m) g //= 2 for i in range(3, int(sqrt(g))+1, ...
12.131579
38
0.470716
c6e33f1f2c31f3464824090ae526931639d64191
4,960
py
Python
pyenvdiff/environment.py
jnmclarty/pyenvdiff-lib
9661a8d487cf732bf7f65e29a4e672cfddc08253
[ "BSD-3-Clause" ]
23
2017-01-03T02:35:57.000Z
2020-01-24T06:41:57.000Z
pyenvdiff/environment.py
jnmclarty/pyenvdiff-lib
9661a8d487cf732bf7f65e29a4e672cfddc08253
[ "BSD-3-Clause" ]
15
2017-02-16T04:31:57.000Z
2021-03-25T21:41:08.000Z
pyenvdiff/environment.py
jnmclarty/pyenvdiff-lib
9661a8d487cf732bf7f65e29a4e672cfddc08253
[ "BSD-3-Clause" ]
3
2017-02-15T03:31:47.000Z
2018-11-12T16:19:03.000Z
# -*- coding: utf-8 -*- # We shouldn't have any import errors here, they should be inside # any given class, to maximize compatibility. from .collectors import harmless_collector_classes, collector_class_lookup, \ CollectorDiff, Collector from .version import __version__ from .import_macros import import_json DEB...
29.700599
89
0.582258
54a433a2475c9f22a8705ce5d6ca387d6fea65a7
9,821
py
Python
ocs_ci/deployment/ibm.py
annagitel/ocs-ci
284fe04aeb6e3d6cb70c99e65fec8ff1b1ea1dd5
[ "MIT" ]
130
2019-04-08T06:22:53.000Z
2022-03-23T06:11:19.000Z
ocs_ci/deployment/ibm.py
annagitel/ocs-ci
284fe04aeb6e3d6cb70c99e65fec8ff1b1ea1dd5
[ "MIT" ]
4,359
2019-04-09T18:48:47.000Z
2022-03-31T20:04:55.000Z
ocs_ci/deployment/ibm.py
annagitel/ocs-ci
284fe04aeb6e3d6cb70c99e65fec8ff1b1ea1dd5
[ "MIT" ]
183
2019-04-18T15:55:30.000Z
2022-03-11T06:16:50.000Z
""" This module implements the OCS deployment for IBM Power platform Base code in deployment.py contains the required changes to keep code duplication to minimum. Only destroy_ocs is retained here. """ import json import logging import subprocess import time from ocs_ci.deployment.deployment import Deployment from oc...
40.920833
226
0.585378
2c2ab738f2f7b1129f14f4d97d92e44aaedcd148
27,069
py
Python
starnet_v1_TF2.py
NevesLucas/starnet
b838b636fcc41e93aac7c0e18172531f641e0e67
[ "MIT" ]
208
2018-03-29T06:04:53.000Z
2022-03-23T15:34:42.000Z
starnet_v1_TF2.py
NevesLucas/starnet
b838b636fcc41e93aac7c0e18172531f641e0e67
[ "MIT" ]
19
2019-03-10T13:16:18.000Z
2022-03-18T14:48:37.000Z
starnet_v1_TF2.py
NevesLucas/starnet
b838b636fcc41e93aac7c0e18172531f641e0e67
[ "MIT" ]
23
2019-02-25T17:45:57.000Z
2021-09-13T04:11:23.000Z
from PIL import Image as img from os import listdir from os.path import isfile, join import numpy as np import tensorflow as tf import tensorflow.keras as K import tensorflow.keras.layers as L import copy import pickle import tifffile as tiff from matplotlib import pyplot as plt from IPython import dis...
48.597846
179
0.521741
1690f43ed6a8e0c4b5d48ccc8c39e0ade7d81657
62,923
py
Python
apero/science/velocity/general.py
njcuk9999/apero-drs
83b043e9f277a011b03e0227c77307961b200901
[ "MIT" ]
1
2021-03-09T17:49:31.000Z
2021-03-09T17:49:31.000Z
apero/science/velocity/general.py
njcuk9999/apero-drs
83b043e9f277a011b03e0227c77307961b200901
[ "MIT" ]
43
2020-10-06T18:42:24.000Z
2022-03-28T21:23:10.000Z
apero/science/velocity/general.py
njcuk9999/apero-drs
83b043e9f277a011b03e0227c77307961b200901
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ # CODE NAME HERE # CODE DESCRIPTION HERE Created on 2019-08-21 at 12:28 @author: cook """ from astropy.table import Table from astropy import constants as cc from astropy import units as uu import numpy as np import os from scipy.optimize import curve_fit import warn...
44.374471
80
0.547415
f9d4f04e884b4bbf5601192318d3265f7add26c9
3,324
py
Python
flavio/physics/bdecays/test_bxlnu.py
jackypheno/flavio
2fe4e8af49b7449bd12bd352c39326e9bbcd9cc6
[ "MIT" ]
null
null
null
flavio/physics/bdecays/test_bxlnu.py
jackypheno/flavio
2fe4e8af49b7449bd12bd352c39326e9bbcd9cc6
[ "MIT" ]
null
null
null
flavio/physics/bdecays/test_bxlnu.py
jackypheno/flavio
2fe4e8af49b7449bd12bd352c39326e9bbcd9cc6
[ "MIT" ]
null
null
null
import unittest import numpy as np import flavio from flavio.physics.bdecays.bxlnu import g, gLR, gVS, gVSp par = flavio.default_parameters.get_central_all() wc_obj = flavio.WilsonCoefficients() par['Vcb'] = 0.04221 # inclusive Vcb: see 1411.6560 class TestBXlnu(unittest.TestCase): def test_bxclnu(self): ...
43.168831
89
0.626655
372479a4dfd410a39c11ef8534323c1eea27666a
97,507
py
Python
ironic/tests/unit/drivers/modules/test_deploy_utils.py
ISCAS-VDI/ironic-base
404e41530c4005f3b3967bda3e8bb9d266db1c54
[ "Apache-2.0" ]
null
null
null
ironic/tests/unit/drivers/modules/test_deploy_utils.py
ISCAS-VDI/ironic-base
404e41530c4005f3b3967bda3e8bb9d266db1c54
[ "Apache-2.0" ]
null
null
null
ironic/tests/unit/drivers/modules/test_deploy_utils.py
ISCAS-VDI/ironic-base
404e41530c4005f3b3967bda3e8bb9d266db1c54
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 NTT DOCOMO, INC. # Copyright 2011 OpenStack Foundation # Copyright 2011 Ilya Alekseyev # # 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:...
41.992679
79
0.602346
835133ad6ec2b04293ab4a969b8200b3688f2609
15,966
py
Python
electra_pyt/data/dataPrep.py
puririshi98/benchmark
79f554f1e1cf36f62994c78e0e6e5b360f554022
[ "BSD-3-Clause" ]
null
null
null
electra_pyt/data/dataPrep.py
puririshi98/benchmark
79f554f1e1cf36f62994c78e0e6e5b360f554022
[ "BSD-3-Clause" ]
null
null
null
electra_pyt/data/dataPrep.py
puririshi98/benchmark
79f554f1e1cf36f62994c78e0e6e5b360f554022
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2019 NVIDIA CORPORATION. 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 applicabl...
45.87931
275
0.631028
76b898d7187c41270de893281e069bd2dc86a4c2
744
py
Python
pfrl/functions/lower_triangular_matrix.py
ummavi/pfrl-1
e856a7cca30fcc3871024cdf7522d066006a5f0c
[ "MIT" ]
824
2020-07-29T00:30:14.000Z
2022-03-29T13:12:34.000Z
pfrl/functions/lower_triangular_matrix.py
ummavi/pfrl-1
e856a7cca30fcc3871024cdf7522d066006a5f0c
[ "MIT" ]
124
2020-07-30T01:53:47.000Z
2022-03-15T07:05:38.000Z
pfrl/functions/lower_triangular_matrix.py
ummavi/pfrl-1
e856a7cca30fcc3871024cdf7522d066006a5f0c
[ "MIT" ]
122
2020-07-29T04:33:35.000Z
2022-03-13T13:29:41.000Z
import numpy as np import torch def set_batch_non_diagonal(array, non_diag_val): batch_size, m, n = array.shape assert m == n rows, cols = np.tril_indices(n, -1) array[:, rows, cols] = non_diag_val def set_batch_diagonal(array, diag_val): batch_size, m, n = array.shape assert m == n rows...
25.655172
60
0.678763
721026078bde11789b65d740c476f3d942ce0e8d
5,645
py
Python
reco/face.py
CSC722-AML/FaceRecognizer
f6c74410d239e79872d302f5f771c22260a703f7
[ "MIT" ]
null
null
null
reco/face.py
CSC722-AML/FaceRecognizer
f6c74410d239e79872d302f5f771c22260a703f7
[ "MIT" ]
null
null
null
reco/face.py
CSC722-AML/FaceRecognizer
f6c74410d239e79872d302f5f771c22260a703f7
[ "MIT" ]
null
null
null
from __future__ import print_function, division import sys, os import numpy as np import cv2 from PIL import Image import random sys.dont_write_bytecode = True HAAR_PATH = "haarconfigs/" face_cascade = cv2.CascadeClassifier(HAAR_PATH + 'haarcascade_frontalface_default.xml') # sift = cv2.SIFT() # faces = face_cascade...
30.679348
115
0.602834
e7d8f84bd8994e53493926a7aae3308d5cd454ae
922
py
Python
setup.py
lboeman/solarforecastarbiter_dashboard
cd4dcffa922625b548d93f83be2b7c10457e1bbe
[ "MIT" ]
4
2020-06-02T01:40:40.000Z
2021-06-01T20:15:00.000Z
setup.py
lboeman/solarforecastarbiter_dashboard
cd4dcffa922625b548d93f83be2b7c10457e1bbe
[ "MIT" ]
181
2020-05-14T15:42:55.000Z
2021-12-02T20:27:44.000Z
setup.py
lboeman/solarforecastarbiter_dashboard
cd4dcffa922625b548d93f83be2b7c10457e1bbe
[ "MIT" ]
2
2018-11-02T19:32:16.000Z
2018-11-06T17:06:28.000Z
from setuptools import setup, find_packages import versioneer setup( name='sfa-dash', version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), description=('Dashboard for interacting with Solar Forecast Arbiter' 'Backend'), url='https://github.com/SolarArbiter/solarfor...
26.342857
73
0.611714
601f62aa201ff107302e13a161a2b3b61900f6e2
6,593
py
Python
corehq/apps/commtrack/migrations/0012_auto__chg_field_sqlproduct_domain__add_field_stockstate_sql_location.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2017-02-10T03:14:51.000Z
2017-02-10T03:14:51.000Z
corehq/apps/commtrack/migrations/0012_auto__chg_field_sqlproduct_domain__add_field_stockstate_sql_location.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/commtrack/migrations/0012_auto__chg_field_sqlproduct_domain__add_field_stockstate_sql_location.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
null
null
null
# encoding: 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): # Changing field 'SQLProduct.domain' db.alter_column(u'commtrack_sqlproduct', 'domain', self.gf('django.db...
74.078652
181
0.581678
f1ce28539ed925c976f0efd3227b2903737fb99c
3,960
py
Python
chip/ish/util/pack_ec.py
junaruga/EmbeddedController
6e38e82b9553240820c241c80a7d94fdc3ae5914
[ "BSD-3-Clause" ]
627
2022-01-21T17:48:25.000Z
2022-03-31T21:02:21.000Z
chip/ish/util/pack_ec.py
junaruga/EmbeddedController
6e38e82b9553240820c241c80a7d94fdc3ae5914
[ "BSD-3-Clause" ]
9
2022-01-21T20:03:35.000Z
2022-03-09T01:31:49.000Z
chip/ish/util/pack_ec.py
junaruga/EmbeddedController
6e38e82b9553240820c241c80a7d94fdc3ae5914
[ "BSD-3-Clause" ]
25
2022-01-21T18:06:01.000Z
2022-03-18T22:07:29.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*-" # Copyright 2019 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # A script to pack EC binary with manifest header according to # Based on 607297_Host_ISH_Firmware_Load_C...
36.330275
139
0.653283
9434fb1a411e4e7c4a2083cad8b2e07e850ac685
5,795
py
Python
tests/components/media_player/test_init.py
rchl/core
974e099e2a9527d38445531c6d9bc1461ba4c36f
[ "Apache-2.0" ]
2
2021-05-19T19:05:08.000Z
2021-06-06T06:51:05.000Z
tests/components/media_player/test_init.py
jrhubott/core
89fe232643134f283c041537e9f6841f47dc1c5e
[ "Apache-2.0" ]
56
2020-08-03T07:30:54.000Z
2022-03-31T06:02:04.000Z
tests/components/media_player/test_init.py
jrhubott/core
89fe232643134f283c041537e9f6841f47dc1c5e
[ "Apache-2.0" ]
2
2020-12-25T16:31:22.000Z
2020-12-30T20:53:56.000Z
"""Test the base functions of the media player.""" import base64 from homeassistant.components import media_player from homeassistant.components.websocket_api.const import TYPE_RESULT from homeassistant.setup import async_setup_component from tests.async_mock import patch async def test_get_image(hass, hass_ws_clie...
30.989305
88
0.639862
1da3f4b16ea1ed8995abbca206c62ef6d7d062c9
10,076
py
Python
floating_point_representation.py
PrabalChowdhury/CSE330-NUMERICAL-METHODS
aabfea01f4ceaecfbb50d771ee990777d6e1122c
[ "MIT" ]
null
null
null
floating_point_representation.py
PrabalChowdhury/CSE330-NUMERICAL-METHODS
aabfea01f4ceaecfbb50d771ee990777d6e1122c
[ "MIT" ]
null
null
null
floating_point_representation.py
PrabalChowdhury/CSE330-NUMERICAL-METHODS
aabfea01f4ceaecfbb50d771ee990777d6e1122c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Floating Point Representation.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/12nSHKI6ejUtlXsSnH445SCDzfKOPyuXJ Before you turn this problem in, make sure everything runs as expected. First, restart the kernel (in the m...
32.398714
271
0.559051
d8a2bec6037437c85e99edef53cb521647d07a54
6,610
py
Python
Lab5/base_code.py
AleksanderGondek/GUT_PaDP_Labs
b89d1ae126a20f67b5e67adaf91c82eb770ac4c2
[ "MIT" ]
null
null
null
Lab5/base_code.py
AleksanderGondek/GUT_PaDP_Labs
b89d1ae126a20f67b5e67adaf91c82eb770ac4c2
[ "MIT" ]
null
null
null
Lab5/base_code.py
AleksanderGondek/GUT_PaDP_Labs
b89d1ae126a20f67b5e67adaf91c82eb770ac4c2
[ "MIT" ]
null
null
null
""" Parallel & Distributed Algorithms - laboratory Examples: - Launch 8 workers with default parameter values: > python arir.py 8 - Launch 12 workers with custom parameter values: > python arir.py 12 --shared-memory-size 128 --delay-connect 2.0 --delay-transmit 0.5 --delay-process 0.75 """ __author__ = 'moo...
27.656904
115
0.643268
eb9bbc0f1b16bfa895a8e14fc037a29ce865122a
8,724
py
Python
quex/engine/analyzer/position_register_map.py
smmckay/quex-mirror
7d75ed560e9f3a591935e59243188676eecb112a
[ "MIT" ]
null
null
null
quex/engine/analyzer/position_register_map.py
smmckay/quex-mirror
7d75ed560e9f3a591935e59243188676eecb112a
[ "MIT" ]
null
null
null
quex/engine/analyzer/position_register_map.py
smmckay/quex-mirror
7d75ed560e9f3a591935e59243188676eecb112a
[ "MIT" ]
null
null
null
from quex.constants import E_TransitionN from collections import defaultdict from operator import itemgetter, attrgetter def do(analyzer): """ RETURNS: A dictionary that maps: post-context-id --> position register index where post-context-id == E_PostContextIDs.NONE means 'l...
43.188119
97
0.575883
deebde7a7c7751f66990f03c6f4ea2bc2367a252
39,106
py
Python
django/template/base.py
yamila-moreno/django
4ab53a558ac01c2dd7dafb8350cd72c630372335
[ "BSD-3-Clause" ]
null
null
null
django/template/base.py
yamila-moreno/django
4ab53a558ac01c2dd7dafb8350cd72c630372335
[ "BSD-3-Clause" ]
null
null
null
django/template/base.py
yamila-moreno/django
4ab53a558ac01c2dd7dafb8350cd72c630372335
[ "BSD-3-Clause" ]
null
null
null
""" This is the Django template system. How it works: The Lexer.tokenize() function converts a template string (i.e., a string containing markup with custom template tags) to tokens, which can be either plain text (TOKEN_TEXT), variables (TOKEN_VAR) or block statements (TOKEN_BLOCK). The Parser() class takes a list ...
36.581852
106
0.580346
9de7c7b4e9ec0f2d9bea50fe85f8f80cfaed4314
1,867
py
Python
log.py
VeritasYin/DEGNN_node_classification
87d8f80d680a945fc6dba521d7066861b040e39d
[ "MIT" ]
5
2020-12-23T05:20:42.000Z
2022-02-23T09:23:13.000Z
log.py
VeritasYin/DEGNN_node_classification
87d8f80d680a945fc6dba521d7066861b040e39d
[ "MIT" ]
null
null
null
log.py
VeritasYin/DEGNN_node_classification
87d8f80d680a945fc6dba521d7066861b040e39d
[ "MIT" ]
1
2022-02-06T05:54:38.000Z
2022-02-06T05:54:38.000Z
import logging import os import socket import time def set_up_log(args, sys_argv): log_dir = args.log_dir dataset_log_dir = os.path.join(log_dir, args.dataset) if not os.path.exists(log_dir): os.mkdir(log_dir) if not os.path.exists(dataset_log_dir): os.mkdir(dataset_log_dir) file_p...
33.945455
111
0.670059
97ff3898e639a4eeaa222327167fe6eb9f3d8fcd
86,211
py
Python
vnpy/api/apex/fiddef.py
fakecoinbase/ChenYuHoslashvnpy
928c83b5cf970f31554fe72da4fb89f4afc4221b
[ "MIT" ]
null
null
null
vnpy/api/apex/fiddef.py
fakecoinbase/ChenYuHoslashvnpy
928c83b5cf970f31554fe72da4fb89f4afc4221b
[ "MIT" ]
null
null
null
vnpy/api/apex/fiddef.py
fakecoinbase/ChenYuHoslashvnpy
928c83b5cf970f31554fe72da4fb89f4afc4221b
[ "MIT" ]
null
null
null
FID_BCZJYE = 501 # 本次資金餘額 DT:C FID_BFXJJ = 502 # 買風險金 DT:C FID_BGHF = 503 # 買過戶費 DT:C FID_BJE = 504 # 買入金額 DT:C FID_BJSF = 505 # 買經手費 DT:C FID_BPGDH = 506 # 報盤股東號 DT:C FID_CODE = 507 # 返回碼 DT:C FID_MESSAGE = 508 # 返回說明 DT:C FID_BSL = 509 # 買入數量 DT:C FID_BYHS = 510 # 買印花稅...
35.639107
60
0.605491
4fbbaaed10ff9077ebb936d8ae4b954cc6df2b1f
12,483
py
Python
src/model_lib/MiniFASNet.py
infinityglow/Silent-Face-Anti-Spoofing
eba8c1cfc5cf10747c4b170c8c4cd1e5aee3ec0e
[ "Apache-2.0" ]
1
2021-11-29T13:29:04.000Z
2021-11-29T13:29:04.000Z
src/model_lib/MiniFASNet.py
infinityglow/Silent-Face-Anti-Spoofing
eba8c1cfc5cf10747c4b170c8c4cd1e5aee3ec0e
[ "Apache-2.0" ]
null
null
null
src/model_lib/MiniFASNet.py
infinityglow/Silent-Face-Anti-Spoofing
eba8c1cfc5cf10747c4b170c8c4cd1e5aee3ec0e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 20-6-3 下午4:45 # @Author : zhuying # @Company : Minivision # @File : MiniFASNet.py # @Software : PyCharm import torch import torch.nn.functional as F from torch.nn import Linear, Conv2d, BatchNorm1d, BatchNorm2d, PReLU, ReLU, Sigmoid, \ AdaptiveAvgPool2d, Sequential, Module class ...
42.030303
126
0.560843
5c23b77e47cfd1fa47b662de201f12b9373a190c
107
py
Python
app/baremetal_openstack/apps.py
21vcloud/Controller
63169d220f412330a22e3a2fe9964c73893d4e0f
[ "Apache-2.0" ]
null
null
null
app/baremetal_openstack/apps.py
21vcloud/Controller
63169d220f412330a22e3a2fe9964c73893d4e0f
[ "Apache-2.0" ]
null
null
null
app/baremetal_openstack/apps.py
21vcloud/Controller
63169d220f412330a22e3a2fe9964c73893d4e0f
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class BaremetalAuthConfig(AppConfig): name = 'baremetal_openstack'
17.833333
37
0.794393
7f944528117c6faf212bccdd799e5a6b5b75b299
4,877
py
Python
cattle/compute/__init__.py
cjellick/python-agent
6991369e309d050a43cba770df6e8ddd758f671d
[ "Apache-2.0" ]
8
2015-07-20T15:29:25.000Z
2018-06-27T13:30:13.000Z
cattle/compute/__init__.py
cjellick/python-agent
6991369e309d050a43cba770df6e8ddd758f671d
[ "Apache-2.0" ]
47
2015-07-13T23:47:35.000Z
2020-07-31T16:06:34.000Z
cattle/compute/__init__.py
cjellick/python-agent
6991369e309d050a43cba770df6e8ddd758f671d
[ "Apache-2.0" ]
21
2015-08-21T01:58:47.000Z
2021-01-24T11:59:25.000Z
import logging import hashlib from cattle.agent.handler import BaseHandler from cattle.progress import Progress from cattle.lock import lock log = logging.getLogger("BaseComputeDriver") class BaseComputeDriver(BaseHandler): def _get_handler_category(self, req): return "compute" def instance_activa...
34.588652
77
0.60652
ee7eca546277dd8f2faf79cca231d09ad5c1a20f
1,382
py
Python
snmpsim/grammar/sap.py
FCG-LLC/snmpsim
a55ecde4cde65d2364ea334ab85df4cd1bb21f3b
[ "BSD-2-Clause" ]
null
null
null
snmpsim/grammar/sap.py
FCG-LLC/snmpsim
a55ecde4cde65d2364ea334ab85df4cd1bb21f3b
[ "BSD-2-Clause" ]
null
null
null
snmpsim/grammar/sap.py
FCG-LLC/snmpsim
a55ecde4cde65d2364ea334ab85df4cd1bb21f3b
[ "BSD-2-Clause" ]
1
2019-12-16T09:51:38.000Z
2019-12-16T09:51:38.000Z
# # This file is part of snmpsim software. # # Copyright (c) 2010-2017, Ilya Etingof <etingof@gmail.com> # License: http://snmpsim.sf.net/license.html # from pysnmp.proto import rfc1902 from pyasn1.type import univ from pyasn1.compat.octets import octs2str from snmpsim.grammar import abstract from snmpsim import error ...
30.711111
86
0.607815
d248792c62dba9a604c0bbdc2349bbb1517173d3
2,260
py
Python
sdk/cognitiveservices/azure-cognitiveservices-knowledge-qnamaker/azure/cognitiveservices/knowledge/qnamaker/authoring/models/qn_adto.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/cognitiveservices/azure-cognitiveservices-knowledge-qnamaker/azure/cognitiveservices/knowledge/qnamaker/authoring/models/qn_adto.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/cognitiveservices/azure-cognitiveservices-knowledge-qnamaker/azure/cognitiveservices/knowledge/qnamaker/authoring/models/qn_adto.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.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 ...
37.666667
83
0.597788
79bba0e23d4cf9a5c76ee0bbdc8baff0b14795e2
11,135
py
Python
hack/libbuild/libbuild.py
appscodecloud/git-apiserver
f69cff6c23a5196f7a3e984d6ed37440193027de
[ "Apache-2.0" ]
186
2016-12-21T07:24:43.000Z
2019-02-13T09:32:21.000Z
hack/libbuild/libbuild.py
appscodecloud/git-apiserver
f69cff6c23a5196f7a3e984d6ed37440193027de
[ "Apache-2.0" ]
154
2017-01-26T11:59:00.000Z
2019-01-31T19:25:03.000Z
hack/libbuild/libbuild.py
appscodecloud/git-apiserver
f69cff6c23a5196f7a3e984d6ed37440193027de
[ "Apache-2.0" ]
17
2017-03-08T07:28:15.000Z
2019-03-11T01:20:26.000Z
#!/usr/bin/env python # Needed for antipackage with python 2 from __future__ import absolute_import import datetime import fnmatch import glob import io import json import os import os.path import re import socket import subprocess import sys from collections import OrderedDict from os.path import expandvars REPO_R...
32.653959
223
0.572339
fe47e62bced241be4242378db0899d9f044f7a24
17,062
py
Python
setup.py
BurcuAkbulut/galpy
cabb42bef3b4f88a2f593cdb123452cd41451db3
[ "BSD-3-Clause" ]
1
2019-02-07T10:58:17.000Z
2019-02-07T10:58:17.000Z
setup.py
BurcuAkbulut/galpy
cabb42bef3b4f88a2f593cdb123452cd41451db3
[ "BSD-3-Clause" ]
null
null
null
setup.py
BurcuAkbulut/galpy
cabb42bef3b4f88a2f593cdb123452cd41451db3
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup from distutils.core import Extension import sys import distutils.sysconfig as sysconfig import distutils.ccompiler from distutils.errors import DistutilsPlatformError import os, os.path import platform import subprocess import glob PY3= sys.version > '3' WIN32= platform.system() == 'Windows...
45.37766
653
0.687141
3cc0dc0809cf36ad39d67380bce7d8145d5842d9
29,639
py
Python
wifiphisher.py
vaginessa/wifiphisher
844fb22f4e9a0f1bfc0906b4b0f96fd24d71eae3
[ "MIT" ]
2
2018-09-23T05:59:05.000Z
2019-08-29T05:27:41.000Z
wifiphisher.py
vicgc/wifiphisher
844fb22f4e9a0f1bfc0906b4b0f96fd24d71eae3
[ "MIT" ]
null
null
null
wifiphisher.py
vicgc/wifiphisher
844fb22f4e9a0f1bfc0906b4b0f96fd24d71eae3
[ "MIT" ]
1
2016-12-08T22:50:30.000Z
2016-12-08T22:50:30.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- import os import ssl import re import time import sys import SimpleHTTPServer import BaseHTTPServer import httplib import SocketServer import cgi import argparse import fcntl from threading import Thread, Lock from subprocess import Popen, PIPE, check_output import loggin...
35.709639
249
0.564425
13158dde3bf13049c81fe86f1a4856321fd3c5e1
48,579
py
Python
tensorflow/python/ops/math_ops.py
fanoyong/tensorflow
263d00d2710779d5c4ac66e335b2ba07d8385b6b
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/math_ops.py
fanoyong/tensorflow
263d00d2710779d5c4ac66e335b2ba07d8385b6b
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/math_ops.py
fanoyong/tensorflow
263d00d2710779d5c4ac66e335b2ba07d8385b6b
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
32.779352
86
0.684185
d6a107d01aa69c9ce9aa38fd64041ff4b151e1b6
410
py
Python
summer-grpc/client.py
mgh35/lab-grpc
d387e00c17b479e2cfc5cc77e62e626fe639bf2d
[ "MIT" ]
null
null
null
summer-grpc/client.py
mgh35/lab-grpc
d387e00c17b479e2cfc5cc77e62e626fe639bf2d
[ "MIT" ]
null
null
null
summer-grpc/client.py
mgh35/lab-grpc
d387e00c17b479e2cfc5cc77e62e626fe639bf2d
[ "MIT" ]
null
null
null
from generated import summer_pb2, summer_pb2_grpc import grpc import sys import typing def run(values: typing.List[int]): with grpc.insecure_channel('localhost:50051') as channel: stub = summer_pb2_grpc.SummerStub(channel) summed = stub.Sum(summer_pb2.ToSum(values=values)) print(summed) ...
22.777778
61
0.7
a1065c937b8171468a1f82da49f68f6f8c43878a
7,936
py
Python
faster-rcnn-RGB/model/region_proposal_network.py
tghoshmo/faster-rcnn-rgbd
02479e12396e4f6de360becb11dcaa324155608e
[ "MIT" ]
18
2018-06-07T12:17:51.000Z
2021-09-28T08:47:11.000Z
faster-rcnn-RGB/model/region_proposal_network.py
tghoshmo/faster-rcnn-rgbd
02479e12396e4f6de360becb11dcaa324155608e
[ "MIT" ]
9
2018-11-09T07:11:01.000Z
2020-07-23T04:20:19.000Z
model/region_proposal_network.py
jimypeter/faster-rcnn-rgbd
02479e12396e4f6de360becb11dcaa324155608e
[ "MIT" ]
9
2018-11-07T08:59:00.000Z
2021-09-20T07:39:50.000Z
# -*- coding: utf-8 -*- import numpy as np from torch.nn import functional as F import torch as t from torch import nn from model.utils.bbox_tools import generate_anchor_base from model.utils.creator_tool import ProposalCreator class RegionProposalNetwork(nn.Module): """Region Proposal Network introduced in Fast...
39.482587
95
0.607233
e0e9926552d49e3389d31b05e90f7392b820a5a8
3,554
py
Python
yawast/scanner/plugins/http/retirejs.py
sasqwatch/yawast
41572108e4d46f76cb83eae6dd3727bc02bd46c7
[ "BSD-3-Clause" ]
null
null
null
yawast/scanner/plugins/http/retirejs.py
sasqwatch/yawast
41572108e4d46f76cb83eae6dd3727bc02bd46c7
[ "BSD-3-Clause" ]
null
null
null
yawast/scanner/plugins/http/retirejs.py
sasqwatch/yawast
41572108e4d46f76cb83eae6dd3727bc02bd46c7
[ "BSD-3-Clause" ]
null
null
null
import json from typing import List, Dict, Tuple, Any, Union from urllib.parse import urljoin, urlparse from bs4 import BeautifulSoup from yawast.external import retirejs from yawast.reporting.enums import Vulnerabilities from yawast.scanner.plugins.result import Result from yawast.shared import output, network, util...
28.66129
105
0.528981
9040a02fad85b1158132c676cebba99b6bbf2762
3,279
py
Python
layers/functions/prior_box.py
I-am-a-AI-lover/ssd.pytorch
6adf6d0828c3f74546c3dae85b197ce3d3f6997a
[ "MIT" ]
1
2019-08-30T00:55:31.000Z
2019-08-30T00:55:31.000Z
layers/functions/prior_box.py
I-am-a-AI-lover/ssd.pytorch
6adf6d0828c3f74546c3dae85b197ce3d3f6997a
[ "MIT" ]
null
null
null
layers/functions/prior_box.py
I-am-a-AI-lover/ssd.pytorch
6adf6d0828c3f74546c3dae85b197ce3d3f6997a
[ "MIT" ]
null
null
null
from __future__ import division from math import sqrt as sqrt from itertools import product as product import torch class PriorBox(object): """ Compute priorbox coordinates in center-offset form for each source feature map. """ """ cfg = voc = { 'num_classes': 21, 'l...
35.258065
81
0.505947
f84206f190f1282fc94d9e5ca1e2295d3a9affd1
897
py
Python
learn2learn/data/utils.py
JasonMa2016/learn2learn
502e1ea6db64481d7464fdda4d4d0be9b0f1089a
[ "MIT" ]
13
2019-08-12T09:33:09.000Z
2021-11-09T00:16:36.000Z
learn2learn/data/utils.py
JasonMa2016/learn2learn
502e1ea6db64481d7464fdda4d4d0be9b0f1089a
[ "MIT" ]
20
2019-08-13T16:23:26.000Z
2019-09-04T17:38:46.000Z
learn2learn/data/utils.py
JasonMa2016/learn2learn
502e1ea6db64481d7464fdda4d4d0be9b0f1089a
[ "MIT" ]
1
2019-09-01T00:01:37.000Z
2019-09-01T00:01:37.000Z
#!/usr/bin/env python3 import requests def download_file_from_google_drive(id, destination): URL = "https://docs.google.com/uc?export=download" session = requests.Session() response = session.get(URL, params={'id': id}, stream=True) token = get_confirm_token(response) if token: params ...
24.916667
63
0.667781
07fff842f4955e18f18e210b02827c9afa3e2d8a
2,285
py
Python
aries_cloudagent/protocols/present_proof/v2_0/handlers/pres_proposal_handler.py
SmartLoan/smartloan-cloud-agent
3d1e4b506f02e25bdece194240110c71b1786911
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/protocols/present_proof/v2_0/handlers/pres_proposal_handler.py
SmartLoan/smartloan-cloud-agent
3d1e4b506f02e25bdece194240110c71b1786911
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/protocols/present_proof/v2_0/handlers/pres_proposal_handler.py
SmartLoan/smartloan-cloud-agent
3d1e4b506f02e25bdece194240110c71b1786911
[ "Apache-2.0" ]
null
null
null
"""Presentation proposal message handler.""" from .....messaging.base_handler import BaseHandler, HandlerException from .....messaging.request_context import RequestContext from .....messaging.responder import BaseResponder from .....utils.tracing import trace_event, get_timer from ..manager import V20PresManager fro...
33.602941
84
0.643764
790354328b4bbc6897980046f5649be0ca6d7552
2,459
py
Python
simplegist/simplegist.py
acatiadroid/simplegist
ae677872219d0697abf1fdc726e1a15470e3324f
[ "MIT" ]
null
null
null
simplegist/simplegist.py
acatiadroid/simplegist
ae677872219d0697abf1fdc726e1a15470e3324f
[ "MIT" ]
null
null
null
simplegist/simplegist.py
acatiadroid/simplegist
ae677872219d0697abf1fdc726e1a15470e3324f
[ "MIT" ]
null
null
null
import requests import json from simplegist.mygist import Mygist from simplegist.do import Do from comments import Comments try: from simplegist.config import USERNAME, API_TOKEN, BASE_URL, GIST_URL except: pass class Simplegist: """ Gist Base Class This class is to used to instantiate the wrapper and authentica...
22.981308
97
0.646604
05efaed9cf24e41d02b1f1bbc2a64ffb48067921
885
py
Python
obztak/utils/testing.py
mcnanna/obztak
fdbdac79348c207b13fdd2a9956fe349cc0e00ef
[ "MIT" ]
4
2019-01-18T20:34:29.000Z
2022-01-26T14:35:31.000Z
obztak/utils/testing.py
mcnanna/obztak
fdbdac79348c207b13fdd2a9956fe349cc0e00ef
[ "MIT" ]
8
2017-06-22T19:12:31.000Z
2020-01-27T03:52:59.000Z
obztak/utils/testing.py
mcnanna/obztak
fdbdac79348c207b13fdd2a9956fe349cc0e00ef
[ "MIT" ]
3
2017-12-15T21:51:23.000Z
2019-08-10T05:07:53.000Z
#!/usr/bin/env python """ Testing code """ __author__ = "Alex Drlica-Wagner" import subprocess from subprocess import Popen, PIPE, check_call def call(cmd,**kwargs): p = Popen(cmd,stdout=PIPE,stderr=PIPE,**kwargs) stdout,stderr = p.communicate() if p.returncode > 0: msg = str(cmd + '\n' + str(stdo...
23.918919
64
0.610169
3ed1bf6fcca6f27199695659b72c28061d0d1b6a
20,398
py
Python
examples/eg3/pdftabextract/clustering.py
SagarRoy1996/TabularDataExtraction
59b05dde00272e7f04f56b89bd2139e3a4e252e5
[ "Apache-2.0" ]
2
2020-12-26T20:15:20.000Z
2022-02-19T09:26:11.000Z
pdftabextract/clustering.py
asitang/pdftabextract
80d57a330acae1db2f0f3bb385b50c1a81150a1e
[ "Apache-2.0" ]
null
null
null
pdftabextract/clustering.py
asitang/pdftabextract
80d57a330acae1db2f0f3bb385b50c1a81150a1e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Common clustering functions and utilities. Created on Fri Dec 16 14:14:30 2016 @author: mkonrad """ import itertools import numpy as np from scipy.stats import chisquare from pdftabextract.common import (fill_array_a_with_values_from_b, sorted_by_attr, flatten_list, update_text_dict_dim...
39.684825
134
0.644818
6ca77c31e900caa334b83ed291ebcf49a41eec2f
847
py
Python
setup.py
atreanor/OnYourBike
2fcec795a46ec3f28f2bc2727ab2f679c7ddcbd0
[ "BSD-2-Clause" ]
1
2018-03-29T09:55:32.000Z
2018-03-29T09:55:32.000Z
setup.py
atreanor/OnYourBike
2fcec795a46ec3f28f2bc2727ab2f679c7ddcbd0
[ "BSD-2-Clause" ]
null
null
null
setup.py
atreanor/OnYourBike
2fcec795a46ec3f28f2bc2727ab2f679c7ddcbd0
[ "BSD-2-Clause" ]
1
2018-04-16T16:11:51.000Z
2018-04-16T16:11:51.000Z
# -*- coding: utf-8 -*- # Learn more: https://github.com/kennethreitz/setup.py from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='Application_Server', version='0.2.0', description='A Python pack...
27.322581
62
0.682409
eb1db15e48598b23668e9c7c016bcfadc6d6a7eb
529
py
Python
mmdet/version.py
gradient1706/mmdetection
0bfa19abb841d151e7a584953195d5d679cbfabf
[ "Apache-2.0" ]
13
2021-08-28T05:13:18.000Z
2022-03-26T10:29:54.000Z
mmdet/version.py
gradient1706/mmdetection
0bfa19abb841d151e7a584953195d5d679cbfabf
[ "Apache-2.0" ]
1
2021-05-20T12:08:44.000Z
2021-05-22T02:44:46.000Z
mmdet/version.py
gradient1706/mmdetection
0bfa19abb841d151e7a584953195d5d679cbfabf
[ "Apache-2.0" ]
8
2020-11-03T04:05:14.000Z
2020-11-13T01:22:02.000Z
# Copyright (c) Open-MMLab. All rights reserved. __version__ = '2.5.0' short_version = __version__ def parse_version_info(version_str): version_info = [] for x in version_str.split('.'): if x.isdigit(): version_info.append(int(x)) elif x.find('rc') != -1: patch_version...
26.45
56
0.640832
36924147b892255ea095ee7efc5de865d7f1bc16
24,480
py
Python
PythonAPI/pycocotools/cocoeval.py
joshuasmith44/cocoapi
9cc1806b5352a280fa6bb8866f706615c82d362f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
PythonAPI/pycocotools/cocoeval.py
joshuasmith44/cocoapi
9cc1806b5352a280fa6bb8866f706615c82d362f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
PythonAPI/pycocotools/cocoeval.py
joshuasmith44/cocoapi
9cc1806b5352a280fa6bb8866f706615c82d362f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
__author__ = 'tsungyi' import numpy as np import datetime import time from collections import defaultdict from . import mask as maskUtils import copy class COCOeval: # Interface for evaluating detection on the Microsoft COCO dataset. # # The usage for CocoEval is as follows: # cocoGt=..., cocoDt=... ...
45.501859
118
0.50723
9f93dc1f65a997c4f2db73d6cc74d1f897d71d96
375
py
Python
tools/leetcode.089.Gray Code/leetcode.089.Gray Code.submission5.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
4
2015-10-10T00:30:55.000Z
2020-07-27T19:45:54.000Z
tools/leetcode.089.Gray Code/leetcode.089.Gray Code.submission5.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
tools/leetcode.089.Gray Code/leetcode.089.Gray Code.submission5.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
class Solution: # @param {integer} n # @return {integer[]} def grayCode(self, n): if n == 0: return [0] res = self.helper(n) return [int(i, base=2) for i in res] def helper(self,n): if n == 1: return ['0','1'] r = self.helper(n-1) retu...
375
375
0.448
a8fd1869043bac09a00e6e7e0a4f47587d44ddd3
4,491
py
Python
nemo_text_processing/text_normalization/run_evaluate.py
Rajathbharadwaj/NeMo
21a17b267fac68d4cdd20f3969a580a0a40dbdb4
[ "Apache-2.0" ]
null
null
null
nemo_text_processing/text_normalization/run_evaluate.py
Rajathbharadwaj/NeMo
21a17b267fac68d4cdd20f3969a580a0a40dbdb4
[ "Apache-2.0" ]
null
null
null
nemo_text_processing/text_normalization/run_evaluate.py
Rajathbharadwaj/NeMo
21a17b267fac68d4cdd20f3969a580a0a40dbdb4
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, NVIDIA CORPORATION. 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 appli...
41.971963
133
0.692941
2fe79e21acab49ecb796aad8322fa60d5c47c463
7,271
py
Python
sympy/unify/core.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/unify/core.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
sympy/unify/core.py
Michal-Gagala/sympy
3cc756c2af73b5506102abaeefd1b654e286e2c8
[ "MIT" ]
null
null
null
""" Generic Unification algorithm for expression trees with lists of children This implementation is a direct translation of Artificial Intelligence: A Modern Approach by Stuart Russel and Peter Norvig Second edition, section 9.2, page 276 It is modified in the following ways: 1. We allow associative and ...
30.940426
79
0.528125
a685261a824dc1ac83462f5f3d80958a2e371b3b
6,062
py
Python
main.py
streamlit-badge-bot/fake_news
77374cd61ad458c5d09e34864b4a14b7db4877cc
[ "MIT" ]
1
2020-11-12T11:00:21.000Z
2020-11-12T11:00:21.000Z
main.py
streamlit-badge-bot/fake_news
77374cd61ad458c5d09e34864b4a14b7db4877cc
[ "MIT" ]
null
null
null
main.py
streamlit-badge-bot/fake_news
77374cd61ad458c5d09e34864b4a14b7db4877cc
[ "MIT" ]
2
2020-11-06T09:59:45.000Z
2020-11-28T20:05:27.000Z
from tensorflow import keras as ke import tensorflow.python.keras.backend as K from tensorflow.keras.models import Model, load_model import streamlit as st from nltk.tokenize import word_tokenize from tensorflow.keras.preprocessing.sequence import pad_sequences import pickle import re import string import nltk import s...
44.903704
259
0.698944
4765c3b8926241d922a28d794a317477f73349ad
2,089
py
Python
filters/crossrefs.py
mrtzh/unbuch
bdcf7faf844e18eca93b5ae2e76bc77d2b37c22e
[ "MIT" ]
150
2019-09-19T17:30:28.000Z
2022-03-14T11:35:42.000Z
filters/crossrefs.py
mrtzh/unbuch
bdcf7faf844e18eca93b5ae2e76bc77d2b37c22e
[ "MIT" ]
7
2019-09-19T15:57:19.000Z
2021-08-25T12:02:59.000Z
filters/crossrefs.py
mrtzh/unbuch
bdcf7faf844e18eca93b5ae2e76bc77d2b37c22e
[ "MIT" ]
18
2019-09-19T17:48:08.000Z
2022-03-09T02:40:08.000Z
#!/usr/bin/env python3 """ Minimal cross references. Create a reference by writing `!{kind:name}`, e.g., `!{theorem:main}`, anywhere outside math or code environments. Use reference with the same syntax, e.g., `Theorem !{theorem:main}`. Another reference of the form `!{theorem:second}` will increment `theorem` count...
22.462366
77
0.57731
10b6218f44eaf6671f6b59e3575109e6f573d7ed
5,697
py
Python
tests/test_dashboard_view.py
rclement/datasette-dashboards
107fc2b80c54e924b8e184f64b269d51989ee3b7
[ "Apache-2.0" ]
18
2021-04-24T20:09:12.000Z
2021-12-25T22:36:14.000Z
tests/test_dashboard_view.py
rclement/datasette-dashboards
107fc2b80c54e924b8e184f64b269d51989ee3b7
[ "Apache-2.0" ]
9
2021-04-25T12:40:54.000Z
2022-03-21T11:46:20.000Z
tests/test_dashboard_view.py
rclement/datasette-dashboards
107fc2b80c54e924b8e184f64b269d51989ee3b7
[ "Apache-2.0" ]
1
2021-09-23T10:24:34.000Z
2021-09-23T10:24:34.000Z
import copy import pytest from datasette.app import Datasette @pytest.mark.asyncio async def test_dashboard_views(datasette): dashboards = datasette._metadata["plugins"]["datasette-dashboards"] for slug, dashboard in dashboards.items(): response = await datasette.client.get(f"/-/dashboards/{slug}") ...
37.98
146
0.615236
c4ca06975a92fad0f39d7f370c35c58b7852b3a2
4,590
py
Python
test/units/modules/network/ios/test_ios_user.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
test/units/modules/network/ios/test_ios_user.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
test/units/modules/network/ios/test_ios_user.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
# (c) 2016 Red Hat Inc. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is dis...
39.230769
102
0.700436
f9d7615f04a192c14ad37c14c06f2cd20d109eb2
27,858
py
Python
python/pvc_configure.py
GauthierLaurent/cats
a5a3519fcc77329f3142a0fa9e3dc8975286d0aa
[ "MIT" ]
null
null
null
python/pvc_configure.py
GauthierLaurent/cats
a5a3519fcc77329f3142a0fa9e3dc8975286d0aa
[ "MIT" ]
null
null
null
python/pvc_configure.py
GauthierLaurent/cats
a5a3519fcc77329f3142a0fa9e3dc8975286d0aa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on Wed Jul 09 10:18:28 2014 @author: Laurent ''' ################## # Import libraries ################## ## Native import ConfigParser, os ################## # Code Version ################## class Version: def __init__(self): ''' version is R...
70.705584
444
0.542824
cd47793cca2f061ecc9e75359d144473f0e77871
23,516
py
Python
python/LAMBDA_ROLE_ALLOWED_ON_LOGGING/LAMBDA_ROLE_ALLOWED_ON_LOGGING_test.py
docebo/aws-config-rules
75f92bcad644bd71f19bbc15cf99e6d6de6b8227
[ "CC0-1.0" ]
1,295
2016-03-01T23:06:33.000Z
2022-03-31T07:17:53.000Z
python/LAMBDA_ROLE_ALLOWED_ON_LOGGING/LAMBDA_ROLE_ALLOWED_ON_LOGGING_test.py
tied/aws-config-rules
7c66e109c1225111d2ab8d1811d6e80dea0affcb
[ "CC0-1.0" ]
287
2016-03-01T19:51:43.000Z
2022-01-06T04:59:55.000Z
python/LAMBDA_ROLE_ALLOWED_ON_LOGGING/LAMBDA_ROLE_ALLOWED_ON_LOGGING_test.py
tied/aws-config-rules
7c66e109c1225111d2ab8d1811d6e80dea0affcb
[ "CC0-1.0" ]
744
2016-03-01T18:33:00.000Z
2022-03-31T18:46:44.000Z
# # This file made available under CC0 1.0 Universal (https://creativecommons.org/publicdomain/zero/1.0/legalcode) # # Created with the Rule Development Kit: https://github.com/awslabs/aws-config-rdk # Can be used stand-alone or with the Rule Compliance Engine: https://github.com/awslabs/aws-config-engine-for-complianc...
53.20362
157
0.721254
45483bd58440ccbd12520db56302f866e6f2b4ab
1,397
py
Python
mutpy/test/utils.py
f-str/mutpy
180200a20abf62fde125dcbf5b02ee003be30efd
[ "Apache-2.0" ]
284
2017-07-29T14:23:43.000Z
2022-03-27T07:54:05.000Z
mutpy/test/utils.py
Marvinmw/mutpy
5c8b3ca0d365083a4da8333f7fce8783114371fa
[ "Apache-2.0" ]
46
2017-07-31T12:20:14.000Z
2022-03-07T17:46:59.000Z
mutpy/test/utils.py
Marvinmw/mutpy
5c8b3ca0d365083a4da8333f7fce8783114371fa
[ "Apache-2.0" ]
45
2017-07-27T21:36:19.000Z
2022-02-25T11:32:05.000Z
import os import sys import tempfile import types class MockModulesLoader: def __init__(self, name, source): self.names = [name] self.source = source self.module = types.ModuleType(name) self.module.__file__ = '<string>' self.load() def load(self, *args, **kwargs): ...
27.94
81
0.645669
f8e3a2fb69272329ae6d08cf66ad973b1a7e441b
5,799
py
Python
tofuplot.py
Louwrensth/tofu
df2841d24eaf223ae07d862ffaa33fdb2fc079d3
[ "MIT" ]
null
null
null
tofuplot.py
Louwrensth/tofu
df2841d24eaf223ae07d862ffaa33fdb2fc079d3
[ "MIT" ]
null
null
null
tofuplot.py
Louwrensth/tofu
df2841d24eaf223ae07d862ffaa33fdb2fc079d3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Built-in import sys import os import argparse # Generic import matplotlib.pyplot as plt plt.switch_backend('Qt5Agg') plt.ioff() # tofu # test if in a tofu git repo _HERE = os.path.abspath(os.path.dirname(__file__)) istofugit = False if '.git' in _HERE and 'tofu' in _HERE: istofugit = True...
35.576687
88
0.555613
1c1858ebbae51ef418559aa5a5ec58f77f126058
3,460
py
Python
opentelemetry-sdk/src/opentelemetry/sdk/metrics/export/batcher.py
LetzNico/opentelemetry-python
b565d6b643f175faee3f57ef81c8b7edbf50ec41
[ "Apache-2.0" ]
null
null
null
opentelemetry-sdk/src/opentelemetry/sdk/metrics/export/batcher.py
LetzNico/opentelemetry-python
b565d6b643f175faee3f57ef81c8b7edbf50ec41
[ "Apache-2.0" ]
null
null
null
opentelemetry-sdk/src/opentelemetry/sdk/metrics/export/batcher.py
LetzNico/opentelemetry-python
b565d6b643f175faee3f57ef81c8b7edbf50ec41
[ "Apache-2.0" ]
null
null
null
# Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
37.204301
109
0.676301
381aa55fe6f117bace52fe2726b8e4d393cb5803
1,384
py
Python
plugins/Coc7.py
Nicholasjl/python-OPQBot
616318beac9f4187f6e20052222eeb9a42a65fc7
[ "MIT" ]
8
2020-08-09T05:21:22.000Z
2022-01-11T01:54:45.000Z
plugins/Coc7.py
Nicholasjl/python-OPQBot
616318beac9f4187f6e20052222eeb9a42a65fc7
[ "MIT" ]
null
null
null
plugins/Coc7.py
Nicholasjl/python-OPQBot
616318beac9f4187f6e20052222eeb9a42a65fc7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import random from Control import on_command from Message import send, sendGroup @on_command("COC") async def COC(message): try: num =int( message.Content.split()[-1]) except: num = 1 characteristics = '' for i in range(num): t...
32.952381
116
0.551301
a2a1842e040e3b6967c398675be4aeaf482c712f
5,490
py
Python
calendar.py
trombonehero/memorial-calendar
206426906759b77df12ef14a24a6e91fabbe6e14
[ "Apache-2.0" ]
null
null
null
calendar.py
trombonehero/memorial-calendar
206426906759b77df12ef14a24a6e91fabbe6e14
[ "Apache-2.0" ]
null
null
null
calendar.py
trombonehero/memorial-calendar
206426906759b77df12ef14a24a6e91fabbe6e14
[ "Apache-2.0" ]
null
null
null
# Copyright 2014, 2017 Jonathan Anderson # # 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 la...
27.727273
77
0.638069
0bf3cd2122af867d88475dd0156aae38073daf42
1,790
py
Python
tcfcli/cmds/local/libs/docker/manager.py
TencentCloud/Serverless-cli
57f98b24cfd10712770a4806212cfb69d981a11a
[ "Apache-2.0" ]
1
2019-10-15T12:12:19.000Z
2019-10-15T12:12:19.000Z
tcfcli/cmds/local/libs/docker/manager.py
TencentCloud/Serverless-cli
57f98b24cfd10712770a4806212cfb69d981a11a
[ "Apache-2.0" ]
null
null
null
tcfcli/cmds/local/libs/docker/manager.py
TencentCloud/Serverless-cli
57f98b24cfd10712770a4806212cfb69d981a11a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import docker import click import traceback from tcfcli.common.operation_msg import Operation class ContainerManager(object): def __init__(self, docker_network_id=None, skip_pull_image=False, is_quiet=False): self._docker_network...
31.403509
84
0.590503
3728608ed23e9e0a8a3b47bba0a7f5fd01d72f27
615
py
Python
api/utils/general_utils.py
MarcDonald/mtg-deck-builder
bfd01379e9bb3726f860921e223c5d1bc6998866
[ "MIT" ]
null
null
null
api/utils/general_utils.py
MarcDonald/mtg-deck-builder
bfd01379e9bb3726f860921e223c5d1bc6998866
[ "MIT" ]
null
null
null
api/utils/general_utils.py
MarcDonald/mtg-deck-builder
bfd01379e9bb3726f860921e223c5d1bc6998866
[ "MIT" ]
null
null
null
from bson import ObjectId from utils.exceptions import InvalidIdError def validate_id(id_to_check, name): if not ObjectId.is_valid(id_to_check): raise InvalidIdError("{} is not valid".format(name)) def stringify_id(item): item_id = str(item['_id']) del item['_id'] item['id'] = item_id def...
23.653846
60
0.713821
dcdeb55f81f06aad89700cf92cf6591ce6bbe5ca
5,479
py
Python
examples/example2_knockdown/example2_knockdown.py
LoaloaF/DPre
fd153a65a8d16924c931c07f7ed9330ee7d66ba6
[ "MIT" ]
2
2019-04-17T05:42:06.000Z
2019-04-17T10:00:30.000Z
examples/example2_knockdown/example2_knockdown.py
LoaloaF/DPre
fd153a65a8d16924c931c07f7ed9330ee7d66ba6
[ "MIT" ]
null
null
null
examples/example2_knockdown/example2_knockdown.py
LoaloaF/DPre
fd153a65a8d16924c931c07f7ed9330ee7d66ba6
[ "MIT" ]
1
2019-07-10T23:09:08.000Z
2019-07-10T23:09:08.000Z
from DPre import samples from DPre import preset_targets from DPre import plot_color_legend from DPre import annotate from DPre import config # inititae the samples s = samples(diff_genes = './knockdown_deseq_res', expression = 'knockdown_expression.tsv', ctrl = 'shLuc', name = 'sh...
47.232759
380
0.54499
e3e60ba9be12919b11cb644d898aa59e96408497
323
py
Python
optimus/ml/contants.py
XD-DENG/Optimus
13e7b180f0970addae77cafe128bd2a93be138a2
[ "Apache-2.0" ]
1
2020-08-15T06:58:59.000Z
2020-08-15T06:58:59.000Z
optimus/ml/contants.py
XD-DENG/Optimus
13e7b180f0970addae77cafe128bd2a93be138a2
[ "Apache-2.0" ]
null
null
null
optimus/ml/contants.py
XD-DENG/Optimus
13e7b180f0970addae77cafe128bd2a93be138a2
[ "Apache-2.0" ]
null
null
null
CLUSTER_COL = "cluster" COUNT_COL = "count" RECOMMENDED_COL = "recommended" CLUSTER_COUNT_COL = "cluster_count" CLUSTER_SUM_COL = "cluster_sum" NGRAM_COL = "ngram" FINGERPRINT_COL = "fingerprint" NGRAM_FINGERPRINT_COL = "ngram_fingerprint" LEVENSHTEIN_DISTANCE = "LEVENSHTEIN_DISTANCE" STRING_TO_INDEX = "string_to_ind...
26.916667
45
0.811146
5851729923646bb7cfee8374a3280651f6e4096e
100
py
Python
narcissus/util.py
Shivelight/narcissus
fb6de54df1173c53730a1d6e8f6e635e9140c9e1
[ "MIT" ]
1
2020-01-16T03:00:40.000Z
2020-01-16T03:00:40.000Z
narcissus/util.py
Shivelight/narcissus
fb6de54df1173c53730a1d6e8f6e635e9140c9e1
[ "MIT" ]
null
null
null
narcissus/util.py
Shivelight/narcissus
fb6de54df1173c53730a1d6e8f6e635e9140c9e1
[ "MIT" ]
null
null
null
import os def get_resource_path(file, path): return os.path.join(os.path.dirname(file), path)
16.666667
52
0.73
a4a08389c6878712385912d0a60076b874196318
1,617
py
Python
plotting/basic.py
anthony-walker/me499
1ec5761a822956b4e18f83b3e0cda93715b74b3e
[ "BSD-3-Clause" ]
11
2020-03-31T21:27:19.000Z
2022-01-11T09:50:13.000Z
plotting/basic.py
anthony-walker/me499
1ec5761a822956b4e18f83b3e0cda93715b74b3e
[ "BSD-3-Clause" ]
null
null
null
plotting/basic.py
anthony-walker/me499
1ec5761a822956b4e18f83b3e0cda93715b74b3e
[ "BSD-3-Clause" ]
5
2020-05-13T05:47:23.000Z
2021-09-27T18:43:25.000Z
#!/usr/bin/env python3 # Import the basic plotting package # plt has all of the plotting commands - all of your plotting will begin with ply.[blah] # To have this behave more like MatLab, do # import matplotlib.pyplot # in which case the plt scoping isn't needed import matplotlib.pyplot as plt # Get some thin...
53.9
117
0.716141
307bfb2d31ebfdaa2fc955140df1994788a43a80
888
py
Python
google-cloud-sdk/lib/surface/bio/operations/__init__.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/surface/bio/operations/__init__.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/surface/bio/operations/__init__.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
3
2017-07-27T18:44:13.000Z
2020-07-25T17:48:53.000Z
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
32.888889
74
0.76464
5fc7edb426517d221bf3492fc6273c44f41e42b4
2,938
py
Python
code/utils/vectors.py
autonomousvision/handheld_svbrdf_geometry
41218b0546e7386229b87c94d528cd193127acff
[ "MIT" ]
53
2020-03-29T04:15:44.000Z
2022-03-19T02:49:12.000Z
code/utils/vectors.py
autonomousvision/handheld_svbrdf_geometry
41218b0546e7386229b87c94d528cd193127acff
[ "MIT" ]
3
2020-07-13T12:54:58.000Z
2020-11-18T15:50:04.000Z
code/utils/vectors.py
autonomousvision/handheld_svbrdf_geometry
41218b0546e7386229b87c94d528cd193127acff
[ "MIT" ]
7
2020-06-16T14:42:48.000Z
2021-04-13T04:34:52.000Z
""" Copyright (c) 2020 Autonomous Vision Group (AVG), Max Planck Institute for Intelligent Systems, Tuebingen, Germany 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, includin...
34.162791
114
0.684479
155261e93cf98e51cd018d8388fe62770a4f2da1
591
py
Python
pose_estimation/utils/metrics/PCK.py
talsperre/hrnet-pytorch
7bff2e7aebfcfdc4b56f01dc5f0dafc8d9a1d9df
[ "MIT" ]
1
2020-12-11T02:00:22.000Z
2020-12-11T02:00:22.000Z
pose_estimation/utils/metrics/PCK.py
talsperre/hrnet-pytorch
7bff2e7aebfcfdc4b56f01dc5f0dafc8d9a1d9df
[ "MIT" ]
null
null
null
pose_estimation/utils/metrics/PCK.py
talsperre/hrnet-pytorch
7bff2e7aebfcfdc4b56f01dc5f0dafc8d9a1d9df
[ "MIT" ]
null
null
null
import numpy as np class PCK(object): def __init__(self, targets, preds, pck_threshold=5): self.targets = targets self.preds = preds self.pck_threshold = pck_threshold def get_heatmap_accuracy(self): pred = np.unravel_index(self.preds.argmax(), self.preds.shape) tar...
34.764706
77
0.604061
7ead200d520fd51ab9f4d51632e3350e9eb12cdd
30,590
py
Python
app/business/marketplace/views.py
Anioko/reusable
de6480bc23fb8cfff474985128be91f4dd391be6
[ "MIT" ]
null
null
null
app/business/marketplace/views.py
Anioko/reusable
de6480bc23fb8cfff474985128be91f4dd391be6
[ "MIT" ]
null
null
null
app/business/marketplace/views.py
Anioko/reusable
de6480bc23fb8cfff474985128be91f4dd391be6
[ "MIT" ]
null
null
null
import datetime import json import math import stripe from flask import Blueprint, render_template, request, flash, redirect, url_for, session, abort, make_response from flask_jwt_extended import decode_token, create_access_token from flask_login import login_required from flask_rq import get_queue from flask_uploads ...
46.418816
161
0.643544
a50f4159fea958fb8f27d496558c7054b43b3d7d
39,298
py
Python
managers/operatorsTranscribe/metadata_epochgenerator.py
HarshKhilawala/cerebmodels
d2a2f2ef947ef9dc23ddce6e55159240cd3233cb
[ "BSD-3-Clause" ]
null
null
null
managers/operatorsTranscribe/metadata_epochgenerator.py
HarshKhilawala/cerebmodels
d2a2f2ef947ef9dc23ddce6e55159240cd3233cb
[ "BSD-3-Clause" ]
9
2020-03-24T17:09:03.000Z
2021-05-17T16:11:17.000Z
managers/operatorsTranscribe/metadata_epochgenerator.py
myHBPwork/cerebmodels
371ea7f1bbe388f1acade17c7128b8ca6ab8fb7a
[ "BSD-3-Clause" ]
1
2021-05-21T03:08:41.000Z
2021-05-21T03:08:41.000Z
# ~/managers/operatorsTranscribe/metadata_epochgenerator.py from managers.operatorsYield.regionparser import RegionParser as rp class EpochGenerator(object): """ **Available Methods:** +------------------------------------------------+---------------+ | Method name |...
61.307332
293
0.410428
33ce44941ce11089f64a9a1201d42f4f701156d2
2,299
py
Python
workflows/pipe-common/scripts/configure_cloud_data_win.py
AlfiyaRF/cloud-pipeline
532c02a7e88928f42b28be87545aab93db404df5
[ "Apache-2.0" ]
126
2019-03-22T19:40:38.000Z
2022-02-16T13:01:44.000Z
workflows/pipe-common/scripts/configure_cloud_data_win.py
AlfiyaRF/cloud-pipeline
532c02a7e88928f42b28be87545aab93db404df5
[ "Apache-2.0" ]
1,189
2019-03-25T10:39:27.000Z
2022-03-31T12:50:33.000Z
workflows/pipe-common/scripts/configure_cloud_data_win.py
AlfiyaRF/cloud-pipeline
532c02a7e88928f42b28be87545aab93db404df5
[ "Apache-2.0" ]
62
2019-03-22T22:09:49.000Z
2022-03-08T12:05:56.000Z
# Copyright 2017-2021 EPAM Systems, Inc. (https://www.epam.com/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
41.053571
93
0.743367
d2f2396152f190db82b2bbad62c13f96652f71f5
1,960
py
Python
fico_train.py
PhilippFaller/tree-regularization-public
ded641023b13e635a63432ef0c22fc1c4478159c
[ "MIT" ]
null
null
null
fico_train.py
PhilippFaller/tree-regularization-public
ded641023b13e635a63432ef0c22fc1c4478159c
[ "MIT" ]
null
null
null
fico_train.py
PhilippFaller/tree-regularization-public
ded641023b13e635a63432ef0c22fc1c4478159c
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn.metrics import roc_auc_score, mean_squared_error, accuracy_score from train import GRUTree from train import visualize import os import cPickle if __name__ == "__main__": dataframe = pd.read_csv("fico_data/helo...
38.431373
99
0.69898
3c079ac142c797a095362eea76ab2a3d3d6552bc
673
py
Python
manage.py
django-mart/custom_user_model
8dfbe6dea4a301c55a97f2fd022428411b077f38
[ "MIT" ]
null
null
null
manage.py
django-mart/custom_user_model
8dfbe6dea4a301c55a97f2fd022428411b077f38
[ "MIT" ]
null
null
null
manage.py
django-mart/custom_user_model
8dfbe6dea4a301c55a97f2fd022428411b077f38
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'custom_user_model.settings') try: from django.core.management import execute_from_command_line e...
29.26087
81
0.683507
97ad190cb63fc09d1e0003628b18f8ba5b83097e
3,681
py
Python
src/server/db/MitgliedschaftMapper.py
JanCwik/SoftwarePraktikum
d4a2b196f21a5379188cb78b31c59d69f739964f
[ "RSA-MD" ]
7
2020-05-18T14:20:17.000Z
2020-07-27T17:37:38.000Z
src/server/db/MitgliedschaftMapper.py
JanCwik/SoftwarePraktikum
d4a2b196f21a5379188cb78b31c59d69f739964f
[ "RSA-MD" ]
null
null
null
src/server/db/MitgliedschaftMapper.py
JanCwik/SoftwarePraktikum
d4a2b196f21a5379188cb78b31c59d69f739964f
[ "RSA-MD" ]
2
2020-05-18T14:20:22.000Z
2020-07-27T17:37:05.000Z
from .Mapper import Mapper class MitgliedschaftMapper(Mapper): def __init__(self): super().__init__() def deleteByAnwenderverbund(self, anwenderverbund): """ Mapper-Methode zum löschen einer Mitgliedschaft aus der Datenbank. Beim Aufruf der Methode wird eine zuvor erstellte Instanz ...
39.580645
117
0.658788
1ddfbb7179921212b50ef489188aae3f32ead6e2
1,923
py
Python
qcos_addons/default_data/loaders.py
masami10/airflow
3df5353d7a31ec890925dc4fd7c2a82fd349a483
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-03-03T07:00:02.000Z
2021-03-03T07:00:02.000Z
qcos_addons/default_data/loaders.py
masami10/airflow
3df5353d7a31ec890925dc4fd7c2a82fd349a483
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
36
2021-11-26T00:08:49.000Z
2021-11-26T00:09:33.000Z
qcos_addons/default_data/loaders.py
masami10/airflow
3df5353d7a31ec890925dc4fd7c2a82fd349a483
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
3
2020-06-30T02:38:17.000Z
2022-01-19T06:14:08.000Z
from qcos_addons.utils.load_data_from_csv import load_data_from_csv from qcos_addons.utils.load_data_from_json import load_data_from_json import os from airflow.utils.log.logging_mixin import LoggingMixin log = LoggingMixin().log def _do_import(sub_path, data_keys=None): current_dir = os.path.dirname(os.path.abs...
27.471429
96
0.656266
cc43349713457078ea32fca4ee609ba5594d520f
621
py
Python
example/scripts/010_ProcessSomething.py
kaalam/kpipe
3f0c6155b20fdd17c4a12326caaa076778730dd4
[ "MIT" ]
null
null
null
example/scripts/010_ProcessSomething.py
kaalam/kpipe
3f0c6155b20fdd17c4a12326caaa076778730dd4
[ "MIT" ]
null
null
null
example/scripts/010_ProcessSomething.py
kaalam/kpipe
3f0c6155b20fdd17c4a12326caaa076778730dd4
[ "MIT" ]
null
null
null
import json class ProcessSomething(): """ This is a typical script. We put everything (or part of what) we just did together to compute something and store it. """ def inputs(self): return ImportSomething.output() def output(self): return './data/selected.json' def build(self): with open(self.inputs()) a...
19.40625
122
0.621578
02931428b4563f8bfec3982a200f53eed3dd010d
9,999
py
Python
fabfile.py
b7w/bviewer
59d5baeeeffd43d69587228ebc5cce1811dc9f63
[ "MIT" ]
null
null
null
fabfile.py
b7w/bviewer
59d5baeeeffd43d69587228ebc5cce1811dc9f63
[ "MIT" ]
3
2019-11-20T19:22:55.000Z
2019-11-20T19:22:55.000Z
fabfile.py
b7w/bviewer
59d5baeeeffd43d69587228ebc5cce1811dc9f63
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json import time from os import path from fabric.colors import cyan, green from fabric.context_managers import cd, settings, hide, shell_env from fabric.contrib.files import exists, upload_template from fabric.decorators import task, hosts from fabric.main import main from fabric.operati...
31.742857
120
0.634963
76344c348a5a9263ef541d7bf41ec246746d0b8e
14,143
py
Python
LuciferMoringstar_Robot/callback.py
Fayis9633/v3AutofilterBotv3
7969be73adcc9183bc0995758f893ededc0b84fa
[ "MIT" ]
null
null
null
LuciferMoringstar_Robot/callback.py
Fayis9633/v3AutofilterBotv3
7969be73adcc9183bc0995758f893ededc0b84fa
[ "MIT" ]
null
null
null
LuciferMoringstar_Robot/callback.py
Fayis9633/v3AutofilterBotv3
7969be73adcc9183bc0995758f893ededc0b84fa
[ "MIT" ]
null
null
null
from pyrogram import Client as LuciferMoringstar_Robot, filters as Worker from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton from pyrogram.errors import UserIsBlocked, PeerIdInvalid from LuciferMoringstar_Robot.database.autofilter_db import is_subscribed, get_file_details from LuciferMoringstar_Robot...
45.185304
268
0.545287
12226cfb69e7ceb28645ed617680a0b9bc577f75
5,700
py
Python
tests/test_zoo_models.py
ayush29/Doubly-Stochastic-DGP
5bf96b57a7571fe367083c8fd95e61bd1d534f55
[ "Apache-2.0" ]
126
2017-05-26T07:10:58.000Z
2021-12-24T07:56:36.000Z
tests/test_zoo_models.py
SourangshuGhosh/Doubly-Stochastic-DGP
e22f5c94b1a60ee04e3ebca9eb140510eab54724
[ "Apache-2.0" ]
39
2017-08-04T11:29:13.000Z
2021-02-16T09:52:29.000Z
tests/test_zoo_models.py
SourangshuGhosh/Doubly-Stochastic-DGP
e22f5c94b1a60ee04e3ebca9eb140510eab54724
[ "Apache-2.0" ]
56
2017-05-29T11:48:47.000Z
2021-09-09T15:19:46.000Z
import unittest import numpy as np from numpy.testing import assert_allclose from doubly_stochastic_dgp.layers import GPMC_Layer, GPR_Layer from gpflow import settings as _settings from gpflow import session_manager as _session_manager custom_config = _settings.get_settings() custom_config.numerics.jitter_level = 1...
40.140845
96
0.630351
712c12efbdf34af25b61084f25f43990f32f4581
2,640
py
Python
terrain.py
true-grue/terrain
c6a3ac3352fd525929e1448f1fa4870f2dbf764c
[ "MIT" ]
37
2019-09-01T21:03:52.000Z
2022-03-25T07:50:34.000Z
terrain.py
true-grue/terrain
c6a3ac3352fd525929e1448f1fa4870f2dbf764c
[ "MIT" ]
null
null
null
terrain.py
true-grue/terrain
c6a3ac3352fd525929e1448f1fa4870f2dbf764c
[ "MIT" ]
1
2020-01-03T15:13:59.000Z
2020-01-03T15:13:59.000Z
# A simple Python port of VoxelSpace by Sebastian Macke # Autor: Peter Sovietov import json import gzip import tkinter as tk SCREEN_WIDTH = 320 SCREEN_HEIGHT = 200 BACK_COLOR = (153, 204, 255) def to_ppm(array, width, height): return bytes("P6\n%d %d\n255\n" % (width, height), "ascii") + array def load_data(...
29.333333
78
0.568182
cc22100c5983980e8238eb2d53ce2c7b91c6776c
8,095
py
Python
timm/data/loader.py
DOGEwbx/pytorch-image-models
93ce1b0be2cc5b1e57852ce824c2bf6c5e9aa955
[ "Apache-2.0" ]
null
null
null
timm/data/loader.py
DOGEwbx/pytorch-image-models
93ce1b0be2cc5b1e57852ce824c2bf6c5e9aa955
[ "Apache-2.0" ]
null
null
null
timm/data/loader.py
DOGEwbx/pytorch-image-models
93ce1b0be2cc5b1e57852ce824c2bf6c5e9aa955
[ "Apache-2.0" ]
null
null
null
import torch.utils.data import numpy as np from .transforms_factory import create_transform from .constants import IMAGENET_DEFAULT_MEAN, IMAGENET_DEFAULT_STD from .distributed_sampler import OrderedDistributedSampler from .random_erasing import RandomErasing from .mixup import FastCollateMixup def fast_collate(batc...
32.906504
110
0.618159
17c806d651103e317a9deb7e9d04bf10be94ff2d
401
py
Python
uwsgi/encore-old/encore/wsgi.py
btardio/encore-swarm
e81d6a28cdd55ca593e19d3a91c069dbca41b736
[ "MIT" ]
null
null
null
uwsgi/encore-old/encore/wsgi.py
btardio/encore-swarm
e81d6a28cdd55ca593e19d3a91c069dbca41b736
[ "MIT" ]
null
null
null
uwsgi/encore-old/encore/wsgi.py
btardio/encore-swarm
e81d6a28cdd55ca593e19d3a91c069dbca41b736
[ "MIT" ]
null
null
null
""" WSGI config for django_parts project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_...
23.588235
78
0.790524
ab9755f7d40dc14e06462cc5c5b9f2cf1725961f
281
py
Python
src/lib/data.py
dough10/MX-Macro-Pad-Micropython
1d0131a6d902bfc8de7ea1a18d1b6fb95b0571ed
[ "Unlicense" ]
null
null
null
src/lib/data.py
dough10/MX-Macro-Pad-Micropython
1d0131a6d902bfc8de7ea1a18d1b6fb95b0571ed
[ "Unlicense" ]
null
null
null
src/lib/data.py
dough10/MX-Macro-Pad-Micropython
1d0131a6d902bfc8de7ea1a18d1b6fb95b0571ed
[ "Unlicense" ]
null
null
null
from machine import UART class DATA: def __init__(self, leds, buttons, knob): self.leds = leds self.buttons = buttons.buttons print('data init') def process(self): for button in self.buttons: if button.isPressed(): print(button.index)
23.416667
43
0.637011
eb09969f85f3fb081cda48d9c2a6e0c00a45844f
7,083
py
Python
skxray/core/constants/tests/test_xrf.py
celiafish/scikit-xray
660a37821d58544b6443c5b8cd9c96daef577ed2
[ "BSD-3-Clause" ]
null
null
null
skxray/core/constants/tests/test_xrf.py
celiafish/scikit-xray
660a37821d58544b6443c5b8cd9c96daef577ed2
[ "BSD-3-Clause" ]
null
null
null
skxray/core/constants/tests/test_xrf.py
celiafish/scikit-xray
660a37821d58544b6443c5b8cd9c96daef577ed2
[ "BSD-3-Clause" ]
1
2019-03-04T07:12:02.000Z
2019-03-04T07:12:02.000Z
# ###################################################################### # Copyright (c) 2014, Brookhaven Science Associates, Brookhaven # # National Laboratory. All rights reserved. # # # # @author: Li Li (lili@bnl.g...
43.722222
77
0.575039
2909344c9d596f1671f3e6f9acd02635fbd2f041
35,259
py
Python
google/cloud/forseti/services/inventory/storage.py
aarontp/forseti-security
6d03c14114468ff6170846392b7d14a0619fa9f0
[ "Apache-2.0" ]
921
2017-03-09T01:01:24.000Z
2019-04-16T11:38:25.000Z
google/cloud/forseti/services/inventory/storage.py
aarontp/forseti-security
6d03c14114468ff6170846392b7d14a0619fa9f0
[ "Apache-2.0" ]
1,996
2017-03-03T22:07:50.000Z
2019-04-17T00:02:28.000Z
google/cloud/forseti/services/inventory/storage.py
aarontp/forseti-security
6d03c14114468ff6170846392b7d14a0619fa9f0
[ "Apache-2.0" ]
241
2017-03-09T01:00:04.000Z
2019-04-15T18:53:35.000Z
# Copyright 2017 The Forseti Security 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...
33.548049
87
0.604583
533ab33c939ce2ba5e59a5ad1c6cb8defb3503fc
376
py
Python
django_project/apps/third_django_app/urls.py
AnatoleCI/D-p-t-GitHub---Django-API-REST-SwaggerURL
056869aa31223d2bcce0bbdeb3b57a2ab5899661
[ "MIT" ]
2
2021-04-15T01:08:05.000Z
2021-11-23T21:48:02.000Z
django_project/apps/third_django_app/urls.py
AnatoleCI/D-p-t-GitHub---Django-API-REST-SwaggerURL
056869aa31223d2bcce0bbdeb3b57a2ab5899661
[ "MIT" ]
null
null
null
django_project/apps/third_django_app/urls.py
AnatoleCI/D-p-t-GitHub---Django-API-REST-SwaggerURL
056869aa31223d2bcce0bbdeb3b57a2ab5899661
[ "MIT" ]
null
null
null
from django.urls import path from .views import converter, create, result, history urlpatterns = [ path("", converter, name="third_converter"), path("converter/", converter, name="third_converter"), path("create/", create, name="third_create"), path("result/", result, name="third_result"), path("hi...
37.6
66
0.694149
6aaf29233773492a58830d90182d7ee9bfd7a2c5
1,516
py
Python
State/Variable.py
Mohsin-Ul-Islam/YAPL
163da2dfd879fc6dee9bc0e1b1c94972c75935cd
[ "MIT" ]
null
null
null
State/Variable.py
Mohsin-Ul-Islam/YAPL
163da2dfd879fc6dee9bc0e1b1c94972c75935cd
[ "MIT" ]
null
null
null
State/Variable.py
Mohsin-Ul-Islam/YAPL
163da2dfd879fc6dee9bc0e1b1c94972c75935cd
[ "MIT" ]
null
null
null
from Errors import * class Variable: def __init__(self, name, value=None, specifier=None): self.name = name self.specifier = specifier self.value = "" self.setValue(value) def getValue(self): return self.value def getSpecifier(self): return self.specifier...
28.074074
80
0.560026
60344251b018d311ef2606fc8ff28972c8395e05
333
py
Python
examples/00_tutorials/03_spartans/one_spartan.py
hiway/python-zentropi
006f4a6de8b6691477fa1416476cd6cef665c918
[ "Apache-2.0" ]
5
2017-05-28T18:15:38.000Z
2021-07-15T22:31:33.000Z
examples/00_tutorials/03_spartans/one_spartan.py
hiway/python-zentropi
006f4a6de8b6691477fa1416476cd6cef665c918
[ "Apache-2.0" ]
null
null
null
examples/00_tutorials/03_spartans/one_spartan.py
hiway/python-zentropi
006f4a6de8b6691477fa1416476cd6cef665c918
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 from zentropi import Agent, on_message, run_agents class Spartan(Agent): @on_message('Spartans?', fuzzy=True) def war_cry(self, message): return 'Ahoo!' if __name__ == '__main__': warrior = Spartan(name='Spartan') run_agents(warrior, space='Thermopylae',...
20.8125
56
0.684685
94de8b93730faecf2186cf1d40029b82b1e46563
723
py
Python
parsers/py_1.3.1/test.py
CetusGroup/csiface-css
337c12c36518cb0f299981fcf8c2eff5ea2c40f2
[ "MIT" ]
null
null
null
parsers/py_1.3.1/test.py
CetusGroup/csiface-css
337c12c36518cb0f299981fcf8c2eff5ea2c40f2
[ "MIT" ]
null
null
null
parsers/py_1.3.1/test.py
CetusGroup/csiface-css
337c12c36518cb0f299981fcf8c2eff5ea2c40f2
[ "MIT" ]
null
null
null
import antlr3 from css21Lexer import css21Lexer as Lexer from css21Parser import css21Parser as Parser input = ''' p { font-family: Garamond, serif; } h2 { font-size: 110%; color: red; background: white; } .note { color: red; background: yellow; font-weight: bold; } p#paragraph1 { margin: 0; } a:hover...
18.538462
59
0.720609
960288a9510515420a7297b4545ec2ad6e1faaae
363
py
Python
blog/project/migrations/0003_auto_20190928_2027.py
Monroe100/blog
c9ddff57c93bc65dab4252fbd79309b7888dbae3
[ "MIT" ]
1
2019-10-07T18:52:05.000Z
2019-10-07T18:52:05.000Z
blog/project/migrations/0003_auto_20190928_2027.py
Monroe100/blog
c9ddff57c93bc65dab4252fbd79309b7888dbae3
[ "MIT" ]
null
null
null
blog/project/migrations/0003_auto_20190928_2027.py
Monroe100/blog
c9ddff57c93bc65dab4252fbd79309b7888dbae3
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2019-09-28 20:27 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('project', '0002_auto_20190928_1919'), ] operations = [ migrations.RenameField( model_name='post', old_name='resident', ...
19.105263
47
0.586777
41741a7546fed781d8f91e9b1ed874b16ca4f148
783
py
Python
example_test.py
b2wads/baas-account
4290e1651d47f9e056c31bfe34d689e3c0e8e5ab
[ "BSD-3-Clause" ]
null
null
null
example_test.py
b2wads/baas-account
4290e1651d47f9e056c31bfe34d689e3c0e8e5ab
[ "BSD-3-Clause" ]
4
2020-03-16T14:45:44.000Z
2021-12-13T20:43:29.000Z
example_test.py
b2wads/baas-account
4290e1651d47f9e056c31bfe34d689e3c0e8e5ab
[ "BSD-3-Clause" ]
null
null
null
from asynctest import TestCase from example import Calculadora class CalculadoraTest(TestCase): async def test_min(self): calc = Calculadora() self.assertEqual(10, calc.min(10, 20)) self.assertEqual(10, calc.min(20, 10)) self.assertEqual(-10, calc.min(-1, -10)) self.assert...
30.115385
48
0.61175
f3653447e015fa2313888354e8b3ad2761bcec0e
1,991
py
Python
manager/director/apps/users/migrations/0001_initial.py
darius-kia/director4
1d2c2c4c3ec12cc9b7f846d5dc075ea3bbef36f9
[ "MIT" ]
7
2020-08-23T23:08:34.000Z
2021-12-02T04:17:37.000Z
manager/director/apps/users/migrations/0001_initial.py
darius-kia/director4
1d2c2c4c3ec12cc9b7f846d5dc075ea3bbef36f9
[ "MIT" ]
43
2020-08-24T16:48:29.000Z
2022-03-02T19:45:54.000Z
manager/director/apps/users/migrations/0001_initial.py
darius-kia/director4
1d2c2c4c3ec12cc9b7f846d5dc075ea3bbef36f9
[ "MIT" ]
10
2020-08-17T20:42:52.000Z
2021-07-16T03:46:51.000Z
# Generated by Django 2.2.7 on 2019-11-18 04:19 import director.apps.users.models from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='User...
39.039216
107
0.566047
3548b3694bf8f5356b7674052397c6b8d256dd7a
2,621
py
Python
src/oci/core/models/change_dedicated_vm_host_compartment_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/core/models/change_dedicated_vm_host_compartment_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/core/models/change_dedicated_vm_host_compartment_details.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
34.038961
245
0.694391
3fa827682359d29e628ebce5ddc8a73052a2bc88
5,473
py
Python
workstation/library/grub_cmdline.py
oxyno-zeta/ansible-playbooks
1e3fe4ffdada6f36f64d0b3d86ddc8274ef90cbb
[ "MIT" ]
null
null
null
workstation/library/grub_cmdline.py
oxyno-zeta/ansible-playbooks
1e3fe4ffdada6f36f64d0b3d86ddc8274ef90cbb
[ "MIT" ]
null
null
null
workstation/library/grub_cmdline.py
oxyno-zeta/ansible-playbooks
1e3fe4ffdada6f36f64d0b3d86ddc8274ef90cbb
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2017 Objectif-Libre import datetime import os import re import subprocess import shutil import datetime DOCUMENTATION = """ --- module: grub_cmdline short_description: modify GRUB_CMDLINE_LINUX in grub2 configuration description: - This module allows the manipulation ...
30.405556
124
0.511968
c2c054e6683a4e6437209c50528e1ae03abb1414
106,015
py
Python
framework/DataObjects/DataSet.py
PaulTalbot-INL/raven
d26897db0485b0d4b0a2399afd40792b3087b296
[ "Apache-2.0" ]
2
2017-04-13T14:11:56.000Z
2021-10-04T19:21:39.000Z
framework/DataObjects/DataSet.py
PaulTalbot-INL/raven
d26897db0485b0d4b0a2399afd40792b3087b296
[ "Apache-2.0" ]
13
2018-08-10T14:51:32.000Z
2020-03-26T19:16:53.000Z
framework/DataObjects/DataSet.py
PaulTalbot-INL/raven
d26897db0485b0d4b0a2399afd40792b3087b296
[ "Apache-2.0" ]
1
2018-07-10T14:36:15.000Z
2018-07-10T14:36:15.000Z
# Copyright 2017 Battelle Energy Alliance, 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 t...
46.702643
183
0.643909
b6eee3a2d4c676fb6e22bd3828939df9e654aa44
10,826
py
Python
google-datacatalog-apache-atlas-connector/src/google/datacatalog_connectors/apache_atlas/prepare/datacatalog_tag_factory.py
skadinyo/datacatalog-connectors-hive
4239faf72f5c9a7d55b8538c8ddc556cd6071c6d
[ "Apache-2.0" ]
null
null
null
google-datacatalog-apache-atlas-connector/src/google/datacatalog_connectors/apache_atlas/prepare/datacatalog_tag_factory.py
skadinyo/datacatalog-connectors-hive
4239faf72f5c9a7d55b8538c8ddc556cd6071c6d
[ "Apache-2.0" ]
null
null
null
google-datacatalog-apache-atlas-connector/src/google/datacatalog_connectors/apache_atlas/prepare/datacatalog_tag_factory.py
skadinyo/datacatalog-connectors-hive
4239faf72f5c9a7d55b8538c8ddc556cd6071c6d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2020 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...
40.546816
78
0.615648
f2fa766c4bc56a26d84589a2452860d9df1cd066
786
py
Python
apps/contrib/sites/migrations/0003_auto_20160321_1628.py
WarmongeR1/feedly-filter
163076de967e3a4385b77ac94780ad56d7e67ad9
[ "MIT" ]
null
null
null
apps/contrib/sites/migrations/0003_auto_20160321_1628.py
WarmongeR1/feedly-filter
163076de967e3a4385b77ac94780ad56d7e67ad9
[ "MIT" ]
null
null
null
apps/contrib/sites/migrations/0003_auto_20160321_1628.py
WarmongeR1/feedly-filter
163076de967e3a4385b77ac94780ad56d7e67ad9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-03-21 16:28 from __future__ import unicode_literals import django.contrib.sites.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sites', '0002_set_site_domain_and_name'), ] opera...
28.071429
164
0.624682
8b53a94c0b191233ad04efc4938c33c051526648
3,234
py
Python
flask_rest_jsonapi/exceptions.py
pysalt/flask-rest-jsonapi
a4bac73c2a18a658bfd9bab4b40f9880dafa737d
[ "MIT" ]
null
null
null
flask_rest_jsonapi/exceptions.py
pysalt/flask-rest-jsonapi
a4bac73c2a18a658bfd9bab4b40f9880dafa737d
[ "MIT" ]
null
null
null
flask_rest_jsonapi/exceptions.py
pysalt/flask-rest-jsonapi
a4bac73c2a18a658bfd9bab4b40f9880dafa737d
[ "MIT" ]
null
null
null
"""Collection of useful http error for the Api""" class JsonApiException(Exception): """Base exception class for unknown errors""" title = 'Unknown error' status = '500' source = None def __init__(self, detail, source=None, title=None, status=None, code=None, id_=None, links=None, meta=None): ...
28.368421
116
0.669759
239a2f8621db67d3a0455bb982c556902c5e8b07
1,337
py
Python
stations/heathen/migrations/0001_initial.py
boyombo/django-stations
93a70be7eb8268f9d48f6e3cf9a532bcb27ff895
[ "MIT" ]
null
null
null
stations/heathen/migrations/0001_initial.py
boyombo/django-stations
93a70be7eb8268f9d48f6e3cf9a532bcb27ff895
[ "MIT" ]
null
null
null
stations/heathen/migrations/0001_initial.py
boyombo/django-stations
93a70be7eb8268f9d48f6e3cf9a532bcb27ff895
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-11-20 16:56 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Creat...
35.184211
116
0.5819
42c86310dda12fbe2c2f6499bb30db23fc964570
4,423
py
Python
app/recipe/tests/test_ingredients_api.py
rxhe0916/recipe-app-api
f6244e59bca67b3368313ea16dd94dc051b30d63
[ "MIT" ]
null
null
null
app/recipe/tests/test_ingredients_api.py
rxhe0916/recipe-app-api
f6244e59bca67b3368313ea16dd94dc051b30d63
[ "MIT" ]
6
2020-06-06T01:23:39.000Z
2022-02-10T09:08:24.000Z
app/recipe/tests/test_ingredients_api.py
rxhe0916/recipe-app-api
f6244e59bca67b3368313ea16dd94dc051b30d63
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Ingredient, Recipe from recipe.serializers import IngredientSerializer INGREDIENTS_URL = reverse('recipe...
34.023077
78
0.657472
73006223473f406290809f793153633b21343a8c
2,088
py
Python
tests/test_item.py
phloem7/pystac
0655dd0dd366cf3d8b6a3a0ec5fd989a22e4d894
[ "Apache-2.0" ]
null
null
null
tests/test_item.py
phloem7/pystac
0655dd0dd366cf3d8b6a3a0ec5fd989a22e4d894
[ "Apache-2.0" ]
null
null
null
tests/test_item.py
phloem7/pystac
0655dd0dd366cf3d8b6a3a0ec5fd989a22e4d894
[ "Apache-2.0" ]
null
null
null
import unittest import json from pystac import Asset, Item from tests.utils import (TestCases, test_to_from_dict) class ItemTest(unittest.TestCase): def test_to_from_dict(self): self.maxDiff = None m = TestCases.get_path('data-files/itemcollections/sample-item-collection.json') with open(...
39.396226
94
0.667625