hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
795c0cd8856148044be5093e92209f0e3bdff85f
25,899
py
Python
src/saml2/assertion.py
zlpublic/pysaml2
e341cdc5fe2f0a0c47b94c1a58d38ac03786db34
[ "Apache-2.0" ]
null
null
null
src/saml2/assertion.py
zlpublic/pysaml2
e341cdc5fe2f0a0c47b94c1a58d38ac03786db34
[ "Apache-2.0" ]
null
null
null
src/saml2/assertion.py
zlpublic/pysaml2
e341cdc5fe2f0a0c47b94c1a58d38ac03786db34
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import importlib import logging import re from saml2.saml import NAME_FORMAT_URI import six from saml2 import xmlenc from saml2 import saml from saml2.time_util import instant, in_a_while from saml2.attribute_converter import from_local, get_local_name from saml2.s_utils...
33.332046
83
0.575196
795c0dc9427cfcd292b31ba73e26b57555e673e2
21,036
py
Python
bgx/cli/bgx_cli/identity.py
DGT-Network/DGT-SDK
3413ae22e79c13e71264271fa3f82203fd49f0b3
[ "Apache-2.0" ]
null
null
null
bgx/cli/bgx_cli/identity.py
DGT-Network/DGT-SDK
3413ae22e79c13e71264271fa3f82203fd49f0b3
[ "Apache-2.0" ]
null
null
null
bgx/cli/bgx_cli/identity.py
DGT-Network/DGT-SDK
3413ae22e79c13e71264271fa3f82203fd49f0b3
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 NTRLab # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softw...
34.260586
80
0.624739
795c0e78d098e50fbd8dd6775b2f8fa5e062933a
390
py
Python
2020/2a.py
msullivan/advent-of-code
ba4b0c3e229bca0f632d51d18ad72ecddd2405da
[ "MIT" ]
8
2016-12-01T19:41:50.000Z
2021-12-21T18:50:55.000Z
2020/2a.py
msullivan/advent-of-code
ba4b0c3e229bca0f632d51d18ad72ecddd2405da
[ "MIT" ]
null
null
null
2020/2a.py
msullivan/advent-of-code
ba4b0c3e229bca0f632d51d18ad72ecddd2405da
[ "MIT" ]
3
2018-12-23T06:58:47.000Z
2021-12-20T10:09:15.000Z
#!/usr/bin/env python3 import sys def main(args): data = [s.strip() for s in sys.stdin] data = [x.split(" ") for x in data] data = [(x.split('-'), y[0], z) for x,y,z in data] cnt = 0 for (lo, hi), l, s in data: n = s.count(l) if int(lo) <= n <= int(hi): cnt += 1 p...
16.956522
54
0.494872
795c0eb880187aabb4dd0e66d57a3bca0d18866d
20,529
py
Python
katcp/test/test_sampling.py
MESAProductSolutions/katcp-python-rta
54cbf1c9530035b1eff6fe2b04b4c307aaac4d1d
[ "BSD-3-Clause" ]
null
null
null
katcp/test/test_sampling.py
MESAProductSolutions/katcp-python-rta
54cbf1c9530035b1eff6fe2b04b4c307aaac4d1d
[ "BSD-3-Clause" ]
null
null
null
katcp/test/test_sampling.py
MESAProductSolutions/katcp-python-rta
54cbf1c9530035b1eff6fe2b04b4c307aaac4d1d
[ "BSD-3-Clause" ]
null
null
null
# test_sampling.py # -*- coding: utf8 -*- # vim:fileencoding=utf8 ai ts=4 sts=4 et sw=4 # Copyright 2009 SKA South Africa (http://ska.ac.za/) # BSD license - see COPYING for details """Tests for the katcp.sampling module. """ import unittest2 as unittest import threading import time import logging import katcp imp...
36.463588
85
0.622047
795c0ef2391b0728df23a06676d275e8c96310d5
14,419
py
Python
src/mqtt/user_mqtt.py
winkste/mp32_generic
4231ac4a1c63a7479b79a5693516e3e86a1b8c69
[ "MIT" ]
null
null
null
src/mqtt/user_mqtt.py
winkste/mp32_generic
4231ac4a1c63a7479b79a5693516e3e86a1b8c69
[ "MIT" ]
null
null
null
src/mqtt/user_mqtt.py
winkste/mp32_generic
4231ac4a1c63a7479b79a5693516e3e86a1b8c69
[ "MIT" ]
2
2020-11-03T08:54:28.000Z
2021-05-27T13:28:17.000Z
################################################################################ # filename: user_mqtt.py # date: 07. Oct. 2020 # username: winkste # name: Stephan Wink # description: This module controls the MQTT client and the subscriptions to it # #####################################################################...
40.276536
92
0.463555
795c0f63634a3b774cef111c8f29100042aef86b
1,244
py
Python
test/generic/frameworks/test_attributes.py
sparkingdark/PySyft
8fec86803dd20ca9ad58590ff0d16559991f1b08
[ "Apache-2.0" ]
3
2020-09-23T14:09:09.000Z
2020-09-23T19:26:28.000Z
test/generic/frameworks/test_attributes.py
sparkingdark/PySyft
8fec86803dd20ca9ad58590ff0d16559991f1b08
[ "Apache-2.0" ]
null
null
null
test/generic/frameworks/test_attributes.py
sparkingdark/PySyft
8fec86803dd20ca9ad58590ff0d16559991f1b08
[ "Apache-2.0" ]
1
2021-03-28T15:11:22.000Z
2021-03-28T15:11:22.000Z
import pytest import torch as th from syft.test import my_awesome_computation from syft.generic.utils import remote @pytest.mark.parametrize("return_value", [True, False]) def test_remote(workers, return_value): alice = workers["alice"] x = th.tensor([1.0]) expected = my_awesome_computation(x) p = ...
25.387755
70
0.68328
795c11f28cb71265d950ca959124000a6f0a647f
33
py
Python
__init__.py
spake/astrometry.net
12c76f4a44fe90a009eeb962f2ae28b0791829b8
[ "BSD-3-Clause" ]
null
null
null
__init__.py
spake/astrometry.net
12c76f4a44fe90a009eeb962f2ae28b0791829b8
[ "BSD-3-Clause" ]
null
null
null
__init__.py
spake/astrometry.net
12c76f4a44fe90a009eeb962f2ae28b0791829b8
[ "BSD-3-Clause" ]
null
null
null
__version__ = '0.78-4-g57ada2a6'
16.5
32
0.727273
795c121898277a0d44d4fe32f623298ef735ae55
2,608
py
Python
combined/load_CO2_data.py
jbonifield3/Climate-Visualization
629ec3a67cf56efc09298eb99f2867b399213b35
[ "MIT" ]
null
null
null
combined/load_CO2_data.py
jbonifield3/Climate-Visualization
629ec3a67cf56efc09298eb99f2867b399213b35
[ "MIT" ]
null
null
null
combined/load_CO2_data.py
jbonifield3/Climate-Visualization
629ec3a67cf56efc09298eb99f2867b399213b35
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ CO2 load class for CSE project By: D. CARVALLO """ import pandas as pd states = { 'Alabama': 'AL', 'Alaska': 'AK', 'Arizona': 'AZ', 'Arkansas': 'AR', 'California': 'CA', 'Colorado': 'CO', 'Connecticut': 'CT', 'Delaware': 'DE', 'Florida': '...
25.320388
86
0.459356
795c12d50bd8cf9396f0ebc143aec9dcdbbc329d
1,497
py
Python
samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_entity_type_async.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
1
2022-03-30T05:23:29.000Z
2022-03-30T05:23:29.000Z
samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_entity_type_async.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "Apache-2.0" ]
null
null
null
samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_entity_type_async.py
sakagarwal/python-aiplatform
62b4a1ea589235910c6e87f027899a29bf1bacb1
[ "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...
32.543478
85
0.765531
795c1407d9a2fb75731f5ab46cc072b97ecfa5ac
395
py
Python
rowingcrm/wsgi.py
Aleccc/gtcrew
7e6e7024afdbf48ee796cb1f9a86b913e6843dda
[ "MIT" ]
null
null
null
rowingcrm/wsgi.py
Aleccc/gtcrew
7e6e7024afdbf48ee796cb1f9a86b913e6843dda
[ "MIT" ]
21
2019-02-14T02:47:34.000Z
2022-01-23T02:22:54.000Z
rowingcrm/wsgi.py
Aleccc/gtcrew
7e6e7024afdbf48ee796cb1f9a86b913e6843dda
[ "MIT" ]
null
null
null
""" WSGI config for rowingcrm 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_SET...
23.235294
78
0.787342
795c142af1751586291a6a6782b06600289ab14a
1,536
py
Python
3.py
wilbertgeng/LeetCode_exercise
f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc
[ "MIT" ]
null
null
null
3.py
wilbertgeng/LeetCode_exercise
f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc
[ "MIT" ]
null
null
null
3.py
wilbertgeng/LeetCode_exercise
f00c08e0d28ffa88d61d4262c6d1f49f1fa91ebc
[ "MIT" ]
null
null
null
"""Longest Substring Without Repeating Characters Given a string s, find the length of the longest substring without repeating characters. Example 1: Input: s = "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2: Input: s = "bbbbb" Output: 1 Explanation: The answer is "b", with th...
24.380952
88
0.504557
795c1496f6fd708a62b6380324ae26de3aceec1d
2,321
py
Python
comment_parser/parsers/tests/c_parser_test.py
dexpota/comment_parser
420bb018ffaa7e5b29d34d818b8c900a535afe0a
[ "MIT" ]
null
null
null
comment_parser/parsers/tests/c_parser_test.py
dexpota/comment_parser
420bb018ffaa7e5b29d34d818b8c900a535afe0a
[ "MIT" ]
null
null
null
comment_parser/parsers/tests/c_parser_test.py
dexpota/comment_parser
420bb018ffaa7e5b29d34d818b8c900a535afe0a
[ "MIT" ]
null
null
null
#!/usr/bin/python """Tests for comment_parser.parsers.c_parser.py""" from comment_parser.parsers import common as common from comment_parser.parsers import c_parser as c_parser import unittest import builtins from unittest import mock from io import StringIO class CParserTest(unittest.TestCase): @mock.patch.obj...
36.265625
74
0.674278
795c1541b4747b007e59949ae085f76ccb612058
5,691
py
Python
keras2onnx/subgraph.py
vinitra-zz/keras-onnx
8cd5d3ec5ed6f35dc9d964555a89c4722304e9e0
[ "MIT" ]
null
null
null
keras2onnx/subgraph.py
vinitra-zz/keras-onnx
8cd5d3ec5ed6f35dc9d964555a89c4722304e9e0
[ "MIT" ]
null
null
null
keras2onnx/subgraph.py
vinitra-zz/keras-onnx
8cd5d3ec5ed6f35dc9d964555a89c4722304e9e0
[ "MIT" ]
1
2020-10-01T09:26:58.000Z
2020-10-01T09:26:58.000Z
############################################################################### # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. ############################################################################### imp...
38.979452
96
0.633456
795c1593d435459af636569c0d951ceef33a949e
21,923
py
Python
gnuradio-3.7.13.4/gnuradio-runtime/python/gnuradio/gr/gr_threading_23.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
1
2021-03-09T07:32:37.000Z
2021-03-09T07:32:37.000Z
gnuradio-3.7.13.4/gnuradio-runtime/python/gnuradio/gr/gr_threading_23.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
gnuradio-3.7.13.4/gnuradio-runtime/python/gnuradio/gr/gr_threading_23.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
"""Thread module emulating a subset of Java's threading model.""" # This started life as the threading.py module of Python 2.3 # It's been patched to fix a problem with join, where a KeyboardInterrupt # caused a lock to be left in the acquired state. import sys as _sys try: import thread except ImportError: ...
30.238621
79
0.564795
795c15fe20e4644c6284d0cae419bd6b6e24131a
5,295
py
Python
main.py
roytseng-tw/px2graph_lab
ab7d799d38ae32aa342b3aebce9edc246b140fa5
[ "BSD-3-Clause" ]
5
2018-08-07T16:37:04.000Z
2020-09-22T00:56:52.000Z
main.py
roytseng-tw/px2graph_lab
ab7d799d38ae32aa342b3aebce9edc246b140fa5
[ "BSD-3-Clause" ]
1
2020-10-04T08:40:46.000Z
2020-10-04T08:40:46.000Z
main.py
roytseng-tw/px2graph_lab
ab7d799d38ae32aa342b3aebce9edc246b140fa5
[ "BSD-3-Clause" ]
null
null
null
import tensorflow as tf import numpy as np import h5py from tqdm import tqdm from px2graph_lab.util import setup from px2graph_lab.opts import parse_command_line def main(): # Initial setup opt = parse_command_line() train_flag = tf.placeholder(tf.bool, []) task, loader, inp, label, sample_idx = setu...
41.692913
101
0.580737
795c18bd89a16c2e5d1e0a1bb03ebee6262449fb
427
py
Python
plotly/validators/pie/_hovertext.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/pie/_hovertext.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/pie/_hovertext.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class HovertextValidator(_plotly_utils.basevalidators.StringValidator): def __init__(self, plotly_name='hovertext', parent_name='pie', **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
28.466667
77
0.637002
795c18e84effecfa19ef25998e85b4b557801387
307
py
Python
S4/S4 Library/simulation/routing/walkstyle/walkstyle_enums.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/routing/walkstyle/walkstyle_enums.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/routing/walkstyle/walkstyle_enums.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
import enum from sims4.tuning.dynamic_enum import DynamicEnum class WalkStyleRunAllowedFlags(enum.IntFlags): RUN_ALLOWED_INDOORS = 1 RUN_ALLOWED_OUTDOORS = 2 class WalkstyleBehaviorOverridePriority(DynamicEnum): DEFAULT = 0 class WalkStylePriority(DynamicEnum): INVALID = 0 COMBO = 1
21.928571
53
0.781759
795c1a2bd0c918d0de31e88202b8f7d13d231868
5,579
py
Python
Previous_State_On_Repo/Present/Character_Recognition_Hindi_Tamil_rnnlib/LSTM_for_character_recognition/Student/combine.py
rohun-tripati/pythonRepo
91a7d536f7be05adc15e4d5add0a8a4a08c28c62
[ "Unlicense" ]
1
2018-06-25T19:20:48.000Z
2018-06-25T19:20:48.000Z
Previous_State_On_Repo/Present/Character_Recognition_Hindi_Tamil_rnnlib/LSTM_for_character_recognition/Student/combine.py
rohun-tripati/pythonRepo
91a7d536f7be05adc15e4d5add0a8a4a08c28c62
[ "Unlicense" ]
null
null
null
Previous_State_On_Repo/Present/Character_Recognition_Hindi_Tamil_rnnlib/LSTM_for_character_recognition/Student/combine.py
rohun-tripati/pythonRepo
91a7d536f7be05adc15e4d5add0a8a4a08c28c62
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python import netcdf_helpers from scipy import * from optparse import OptionParser import sys, time import os from xml.dom.minidom import parse from os import walk def location(path, function): datapath = path + "word_samples/" + function + "/" labelpath = path + "Label/" + function + "/" return la...
32.625731
285
0.68256
795c1a3128682e2dc560d1f33927a5c34650d9cd
3,646
py
Python
telemetry/telemetry/internal/actions/key_event.py
Martijnve23/catapult
5c63b19d221af6a12889e8727acc85d93892cab7
[ "BSD-3-Clause" ]
1,894
2015-04-17T18:29:53.000Z
2022-03-28T22:41:06.000Z
telemetry/telemetry/internal/actions/key_event.py
Martijnve23/catapult
5c63b19d221af6a12889e8727acc85d93892cab7
[ "BSD-3-Clause" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
telemetry/telemetry/internal/actions/key_event.py
Martijnve23/catapult
5c63b19d221af6a12889e8727acc85d93892cab7
[ "BSD-3-Clause" ]
698
2015-06-02T19:18:35.000Z
2022-03-29T16:57:15.000Z
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import absolute_import import string from telemetry.internal.actions import page_action # Map from DOM key values # (https://developer.moz...
31.431034
98
0.713385
795c1af440bd7b6ea259fa01ff799e7878e66728
2,673
py
Python
var/spack/repos/builtin/packages/py-petsc4py/package.py
vreshniak/spack-xsdk
b2da85f9309e38082db6b35a79028734ae5e0e96
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-petsc4py/package.py
vreshniak/spack-xsdk
b2da85f9309e38082db6b35a79028734ae5e0e96
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-petsc4py/package.py
vreshniak/spack-xsdk
b2da85f9309e38082db6b35a79028734ae5e0e96
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyPetsc4py(PythonPackage): """This package provides Python bindings for the PETSc package....
50.433962
96
0.7052
795c1ccee0b54d86fc9aa1961330782631b026f8
5,100
py
Python
tests/parsers/cookie_plugins/ganalytics.py
Defense-Cyber-Crime-Center/plaso
4f3a85fbea10637c1cdbf0cde9fc539fdcea9c47
[ "Apache-2.0" ]
2
2016-02-18T12:46:29.000Z
2022-03-13T03:04:59.000Z
tests/parsers/cookie_plugins/ganalytics.py
Defense-Cyber-Crime-Center/plaso
4f3a85fbea10637c1cdbf0cde9fc539fdcea9c47
[ "Apache-2.0" ]
null
null
null
tests/parsers/cookie_plugins/ganalytics.py
Defense-Cyber-Crime-Center/plaso
4f3a85fbea10637c1cdbf0cde9fc539fdcea9c47
[ "Apache-2.0" ]
6
2016-12-18T08:05:36.000Z
2021-04-06T14:19:11.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """Tests for the Google Analytics cookies.""" import unittest from plaso.formatters import ganalytics as _ # pylint: disable=unused-import from plaso.lib import eventdata from plaso.lib import timelib from plaso.parsers.cookie_plugins import ganalytics from plaso.parsers.sql...
40.15748
80
0.731373
795c1ccf77bb6337475c95a4dcf41a41a90bfc3d
1,850
py
Python
scripts/plot_comparison_potential.py
rsachetto/MonoAlg3D_C
082aac09297a1dcc5420f15b378e391ab63a49fc
[ "MIT" ]
6
2018-09-12T12:05:27.000Z
2022-03-04T14:38:37.000Z
scripts/plot_comparison_potential.py
rsachetto/MonoAlg3D_C
082aac09297a1dcc5420f15b378e391ab63a49fc
[ "MIT" ]
13
2019-01-16T16:34:49.000Z
2022-03-23T12:01:08.000Z
scripts/plot_comparison_potential.py
bergolho/MonoAlg3D_C
4a9ad99a94c7aa047427bbd36cce1a7d8b17d195
[ "MIT" ]
2
2020-04-28T19:55:48.000Z
2021-07-26T13:21:06.000Z
import sys import numpy as np import matplotlib.pyplot as plt def read_transmembrane_potential(input_file, dt, print_rate): data = np.genfromtxt(input_file) n = len(data) ms_each_step = dt*print_rate end_simulation = n / ms_each_step timesteps = np.arange(0,n)*ms_each_step vms = data re...
30.833333
96
0.576216
795c1d177529f2228fa41dd5dffa299188f86eab
3,929
py
Python
src/programy/config/brain/oobs.py
minhdc/documented-programy
fe947d68c0749201fbe93ee5644d304235d0c626
[ "MIT" ]
null
null
null
src/programy/config/brain/oobs.py
minhdc/documented-programy
fe947d68c0749201fbe93ee5644d304235d0c626
[ "MIT" ]
null
null
null
src/programy/config/brain/oobs.py
minhdc/documented-programy
fe947d68c0749201fbe93ee5644d304235d0c626
[ "MIT" ]
null
null
null
""" Copyright (c) 2016-2018 Keith Sterling http://www.keithsterling.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, m...
48.506173
120
0.679562
795c1d79a83fb7ba31c63d8414ea7f0fe9a6966d
3,602
py
Python
fixture/contact.py
marr-py/p_training2
2f44a1ab0f950f231865f1f99fcb891336b3374d
[ "Apache-2.0" ]
null
null
null
fixture/contact.py
marr-py/p_training2
2f44a1ab0f950f231865f1f99fcb891336b3374d
[ "Apache-2.0" ]
null
null
null
fixture/contact.py
marr-py/p_training2
2f44a1ab0f950f231865f1f99fcb891336b3374d
[ "Apache-2.0" ]
null
null
null
from model.contact import Contact class ContactHelper: def __init__(self, app): self.app = app def add_contact_no_group(self, contact): # fill contact form wd = self.app.wd self.open_home_page() wd.find_element_by_link_text("add new").click() self.fill_contact_...
37.915789
79
0.643531
795c1dca027f8e3b0a1e51fa048a0448b911ec60
2,065
py
Python
neorl/rl/baselines/a2c/run_atari.py
evdcush/neorl
a1af069072e752ab79e7279a88ad95d195a81821
[ "MIT" ]
20
2021-04-20T19:15:33.000Z
2022-03-19T17:00:12.000Z
neorl/rl/baselines/a2c/run_atari.py
evdcush/neorl
a1af069072e752ab79e7279a88ad95d195a81821
[ "MIT" ]
17
2021-04-07T21:52:41.000Z
2022-03-06T16:05:31.000Z
neorl/rl/baselines/a2c/run_atari.py
evdcush/neorl
a1af069072e752ab79e7279a88ad95d195a81821
[ "MIT" ]
8
2021-05-07T03:36:30.000Z
2021-12-15T03:41:41.000Z
#!/usr/bin/env python3 from neorl.rl.baselines.shared import logger from neorl.rl.baselines.a2c.a2c import A2C from neorl.rl.baselines.shared.cmd_util import make_atari_env, atari_arg_parser from neorl.rl.baselines.shared.vec_env import VecFrameStack from neorl.rl.baselines.shared.policies import CnnPolicy, CnnLstmPol...
37.545455
119
0.684746
795c1e2dd2adb1619f18626b7aa0084c741ebd23
663
py
Python
CybORG/CybORG/Shared/Actions/GameActions/ResetGame.py
rafvasq/cage-challenge-1
95affdfa38afc1124f1a1a09c92fbc0ed5b96318
[ "MIT" ]
18
2021-08-20T15:07:55.000Z
2022-03-11T12:05:15.000Z
CybORG/CybORG/Shared/Actions/GameActions/ResetGame.py
rafvasq/cage-challenge-1
95affdfa38afc1124f1a1a09c92fbc0ed5b96318
[ "MIT" ]
7
2021-11-09T06:46:58.000Z
2022-03-31T12:35:06.000Z
CybORG/CybORG/Shared/Actions/GameActions/ResetGame.py
rafvasq/cage-challenge-1
95affdfa38afc1124f1a1a09c92fbc0ed5b96318
[ "MIT" ]
13
2021-08-17T00:26:31.000Z
2022-03-29T20:06:45.000Z
# Copyright DST Group. Licensed under the MIT license. from CybORG.Shared import Observation from .GameAction import GameAction class ResetGame(GameAction): """Resets the game. """ def emu_execute(self, game_controller, *args, **kwargs) -> Observation: # this is a special action in that it's emu_exe...
36.833333
76
0.708899
795c1e3d4e65db7893134c06d63852ffef1e4874
1,287
py
Python
backend/auto_labeling/pipeline/execution.py
daobook/doccano
45122687740f74f19e2578c5cf28507f0839bf16
[ "MIT" ]
2
2021-12-11T22:25:27.000Z
2021-12-20T01:02:16.000Z
backend/auto_labeling/pipeline/execution.py
daobook/doccano
45122687740f74f19e2578c5cf28507f0839bf16
[ "MIT" ]
1
2022-02-15T10:50:18.000Z
2022-02-15T10:50:18.000Z
backend/auto_labeling/pipeline/execution.py
daobook/doccano
45122687740f74f19e2578c5cf28507f0839bf16
[ "MIT" ]
null
null
null
from typing import Type from auto_labeling_pipeline.labels import SequenceLabels, Seq2seqLabels, ClassificationLabels, Labels from auto_labeling_pipeline.mappings import MappingTemplate from auto_labeling_pipeline.models import RequestModelFactory from auto_labeling_pipeline.pipeline import pipeline from auto_labeling...
32.175
101
0.762238
795c1ee5fc81beea1462dc2b4c67768ec3e5ec4f
788
py
Python
profiles_api/migrations/0002_profilefeeditem.py
pauloandredm/profiles-rest-api
a9e61065245a1581f8cadeb07be68ba032702ca5
[ "MIT" ]
null
null
null
profiles_api/migrations/0002_profilefeeditem.py
pauloandredm/profiles-rest-api
a9e61065245a1581f8cadeb07be68ba032702ca5
[ "MIT" ]
null
null
null
profiles_api/migrations/0002_profilefeeditem.py
pauloandredm/profiles-rest-api
a9e61065245a1581f8cadeb07be68ba032702ca5
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2022-01-11 19:23 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('profiles_api', '0001_initial'), ] operations = [ migrations.CreateModel( ...
31.52
126
0.633249
795c1f76282c416b205b51de41593bab43848645
5,005
py
Python
src/flask_easy/scripts/cli.py
Josephmaclean/flask-easy
64cb647b0dbcd031cb8d27cc60889e50c959e1ca
[ "MIT" ]
1
2021-12-30T12:25:05.000Z
2021-12-30T12:25:05.000Z
src/flask_easy/scripts/cli.py
Josephmaclean/flask-easy
64cb647b0dbcd031cb8d27cc60889e50c959e1ca
[ "MIT" ]
null
null
null
src/flask_easy/scripts/cli.py
Josephmaclean/flask-easy
64cb647b0dbcd031cb8d27cc60889e50c959e1ca
[ "MIT" ]
null
null
null
""" cli.py Author: Joseph Maclean Arhin """ import click from flask import Flask from peewee_migrate import Router from flask_easy.factory import run_seeder from .resources import create_model, create_repository, create_view def init_cli(app: Flask, db_conn): # pylint: disable=R0915 """initialize all cli comman...
31.677215
97
0.527872
795c1fc522f4a8e51e07d7ca0949a39666658ecb
759
py
Python
HLTrigger/Configuration/python/HLT_75e33/psets/initialStepTrajectoryFilterShapePreSplitting_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:24:46.000Z
2021-11-30T16:24:46.000Z
HLTrigger/Configuration/python/HLT_75e33/psets/initialStepTrajectoryFilterShapePreSplitting_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
4
2021-11-29T13:57:56.000Z
2022-03-29T06:28:36.000Z
HLTrigger/Configuration/python/HLT_75e33/psets/initialStepTrajectoryFilterShapePreSplitting_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:16:05.000Z
2021-11-30T16:16:05.000Z
import FWCore.ParameterSet.Config as cms initialStepTrajectoryFilterShapePreSplitting = cms.PSet( ComponentType = cms.string('StripSubClusterShapeTrajectoryFilter'), layerMask = cms.PSet( TEC = cms.bool(False), TIB = cms.vuint32(1, 2), TID = cms.vuint32(1, 2), TOB = cms.bool(Fal...
33
71
0.665349
795c1ff746d8f3cdca2f6b323ea0018fdeca7c17
7,642
py
Python
google/ads/google_ads/v5/services/transports/keyword_plan_service_grpc_transport.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
1
2021-04-09T04:28:47.000Z
2021-04-09T04:28:47.000Z
google/ads/google_ads/v5/services/transports/keyword_plan_service_grpc_transport.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v5/services/transports/keyword_plan_service_grpc_transport.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
37.460784
103
0.649045
795c205accef45276e17b6024e1a3952fe9a0824
6,568
py
Python
ci/diff-json-doc.py
ju-sh/herbstluftwm
ff8778cc662135e43ed01c5406ae8895ccd452ee
[ "BSD-2-Clause-FreeBSD" ]
925
2015-01-05T01:00:12.000Z
2022-03-31T21:13:07.000Z
ci/diff-json-doc.py
ju-sh/herbstluftwm
ff8778cc662135e43ed01c5406ae8895ccd452ee
[ "BSD-2-Clause-FreeBSD" ]
1,286
2015-01-19T23:23:06.000Z
2022-03-31T21:05:48.000Z
ci/diff-json-doc.py
ju-sh/herbstluftwm
ff8778cc662135e43ed01c5406ae8895ccd452ee
[ "BSD-2-Clause-FreeBSD" ]
117
2015-01-23T08:09:37.000Z
2022-03-18T06:20:00.000Z
#!/usr/bin/env python3 import re import subprocess import os import sys import argparse import json import difflib class GitDir: def __init__(self, dirpath): self.dirpath = dirpath def run(self, cmd, check=True): """ run a git command in the git repository in the dir git_tmp.dir ...
39.095238
97
0.597747
795c20cbd0b44de1990b84b2edf9f544d841e600
6,129
py
Python
testing/test_strat.py
parrt/stratx
c190ecc32ac7b8dd3f5532a5d5b0de34a3693a22
[ "MIT" ]
54
2019-07-17T04:59:39.000Z
2022-03-18T15:25:00.000Z
testing/test_strat.py
parrt/stratx
c190ecc32ac7b8dd3f5532a5d5b0de34a3693a22
[ "MIT" ]
5
2019-07-27T16:18:37.000Z
2020-12-02T20:16:49.000Z
testing/test_strat.py
parrt/stratx
c190ecc32ac7b8dd3f5532a5d5b0de34a3693a22
[ "MIT" ]
13
2019-08-08T22:17:50.000Z
2022-02-11T10:19:23.000Z
""" MIT License Copyright (c) 2019 Terence Parr Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ...
38.068323
127
0.624735
795c214d3b3775458a5e70e92cb816c040f1dc6a
10,326
py
Python
plugins/modules/panos_config_element.py
nembery/pan-os-ansible
44ff421c99cfcfc998cb6b9d2da9b78a3cf3d42b
[ "Apache-2.0" ]
null
null
null
plugins/modules/panos_config_element.py
nembery/pan-os-ansible
44ff421c99cfcfc998cb6b9d2da9b78a3cf3d42b
[ "Apache-2.0" ]
5
2021-06-01T05:58:47.000Z
2022-02-01T19:01:44.000Z
plugins/modules/panos_config_element.py
nembery/pan-os-ansible
44ff421c99cfcfc998cb6b9d2da9b78a3cf3d42b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2019 Palo Alto Networks, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #...
30.550296
123
0.614178
795c21a9e9e9e4dec63ec3fad47f60bb3138a941
549
py
Python
Exercicios mundo 1/ex078.py
prc3333/Exercicios--de-Phyton-
a4b54af45f6bb3a89a205b570e1cf1164e505e29
[ "MIT" ]
null
null
null
Exercicios mundo 1/ex078.py
prc3333/Exercicios--de-Phyton-
a4b54af45f6bb3a89a205b570e1cf1164e505e29
[ "MIT" ]
null
null
null
Exercicios mundo 1/ex078.py
prc3333/Exercicios--de-Phyton-
a4b54af45f6bb3a89a205b570e1cf1164e505e29
[ "MIT" ]
null
null
null
'''listnum = [] for c in range(0, 5): listnum.append(int(input(f'Digite um valor para a posição {c}: '))) print(f'você digitou os valores {listnum}') print(f'O maior valor digitado foi:{max(listnum)}') print(f'O menor valor digitado foi:{min(listnum)}')''' lista = [] for c in range(0, 5): lista.append(int(inpu...
39.214286
77
0.67031
795c228dad2786e199b61e356feb46d381614ab1
3,977
py
Python
pdtable/io/load/_orchestrators.py
startable/pdtable
693af4f4d49a27f54c79887a42a0b1a1b68d77a9
[ "BSD-3-Clause" ]
5
2020-11-11T10:15:04.000Z
2021-08-19T07:45:12.000Z
pdtable/io/load/_orchestrators.py
startable/pdtable
693af4f4d49a27f54c79887a42a0b1a1b68d77a9
[ "BSD-3-Clause" ]
63
2020-09-02T12:40:14.000Z
2021-07-14T19:52:33.000Z
pdtable/io/load/_orchestrators.py
startable/pdtable
693af4f4d49a27f54c79887a42a0b1a1b68d77a9
[ "BSD-3-Clause" ]
4
2021-01-04T12:44:45.000Z
2022-03-02T00:38:01.000Z
from __future__ import annotations from typing import Iterable import re from pathlib import Path from pdtable.store import BlockIterator from pdtable.table_origin import ( NullInputIssueTracker, InputIssueTracker, InputError, LoadItem, ) from ._protocol import ( Loader, ) from ._loaders import mak...
35.19469
99
0.681921
795c229ad80068baad679d638d268a1a0252d1af
406
py
Python
gumbi/utils/gp_utils.py
JohnGoertz/Gumbi
7a7df9bf97bf10cdf5dc8af36026dba578e161c9
[ "Apache-2.0" ]
34
2021-11-29T11:40:52.000Z
2022-03-10T09:08:59.000Z
gumbi/utils/gp_utils.py
JohnGoertz/Gumbi
7a7df9bf97bf10cdf5dc8af36026dba578e161c9
[ "Apache-2.0" ]
13
2021-12-30T17:07:34.000Z
2022-02-18T18:46:37.000Z
gumbi/utils/gp_utils.py
JohnGoertz/Gumbi
7a7df9bf97bf10cdf5dc8af36026dba578e161c9
[ "Apache-2.0" ]
null
null
null
import numpy as np from scipy.spatial.distance import pdist from scipy.stats import ncx2 def get_ℓ_prior(points): distances = pdist(points[:, None]) distinct = distances != 0 ℓ_l = distances[distinct].min() if sum(distinct) > 0 else 0.1 ℓ_u = distances[distinct].max() if sum(distinct) > 0 els...
31.230769
66
0.635468
795c23542ffc0aa58701076a3123f61514d86df7
776
py
Python
yacms/pages/context_processors.py
minhhoit/yacms
39a9f1f2f8eced6d4cb89db36f3cdff89c18bdfe
[ "BSD-2-Clause" ]
null
null
null
yacms/pages/context_processors.py
minhhoit/yacms
39a9f1f2f8eced6d4cb89db36f3cdff89c18bdfe
[ "BSD-2-Clause" ]
null
null
null
yacms/pages/context_processors.py
minhhoit/yacms
39a9f1f2f8eced6d4cb89db36f3cdff89c18bdfe
[ "BSD-2-Clause" ]
null
null
null
from yacms.pages.models import Page def page(request): """ Adds the current page to the template context and runs its ``set_helper`` method. This was previously part of ``PageMiddleware``, but moved to a context processor so that we could assign these template context variables without the mid...
36.952381
75
0.681701
795c23de820c4df60dc5f1c166886952c1cfd515
4,914
py
Python
src/tests/conduit/python/t_python_conduit_generator.py
kant/conduit
420c69805942a77c10fa29f773f101eb61793f04
[ "BSD-3-Clause" ]
null
null
null
src/tests/conduit/python/t_python_conduit_generator.py
kant/conduit
420c69805942a77c10fa29f773f101eb61793f04
[ "BSD-3-Clause" ]
null
null
null
src/tests/conduit/python/t_python_conduit_generator.py
kant/conduit
420c69805942a77c10fa29f773f101eb61793f04
[ "BSD-3-Clause" ]
null
null
null
############################################################################### # Copyright (c) 2014-2019, Lawrence Livermore National Security, LLC. # # Produced at the Lawrence Livermore National Laboratory # # LLNL-CODE-666778 # # All rights reserved. # # This file is part of Conduit. # # For details, see: htt...
31.299363
79
0.583842
795c240914b719cb623e8b36ce2c06739001c49d
17,552
py
Python
src/graphql/__init__.py
nudjur/graphql-core
0f21717201da0db4463510c055427fd9aba2c74b
[ "MIT" ]
null
null
null
src/graphql/__init__.py
nudjur/graphql-core
0f21717201da0db4463510c055427fd9aba2c74b
[ "MIT" ]
null
null
null
src/graphql/__init__.py
nudjur/graphql-core
0f21717201da0db4463510c055427fd9aba2c74b
[ "MIT" ]
null
null
null
"""GraphQL-core-next The primary :mod:`graphql` package includes everything you need to define a GraphQL schema and fulfill GraphQL requests. GraphQL-core-next provides a reference implementation for the GraphQL specification but is also a useful utility for operating on GraphQL files and building sophisticated tools...
26.236173
86
0.719405
795c24b3da49e2ae090259bbe945b10b4a65b66a
925
py
Python
pyshley/discord/launch.py
IndiBowstring/pyshley
417976574833ffd1e2824e14d34c851cc238b2bc
[ "MIT" ]
null
null
null
pyshley/discord/launch.py
IndiBowstring/pyshley
417976574833ffd1e2824e14d34c851cc238b2bc
[ "MIT" ]
null
null
null
pyshley/discord/launch.py
IndiBowstring/pyshley
417976574833ffd1e2824e14d34c851cc238b2bc
[ "MIT" ]
null
null
null
import hikari from pyshley.discord.checks import * from pyshley.discord.dice import DicePlugin from pyshley.lib.config import token, prefix bot = lightbulb.BotApp( token=token, prefix=prefix, intents=hikari.Intents.ALL, default_enabled_guilds=(671825516310822959,), help_slash_command=True) bot.a...
28.030303
65
0.76973
795c256b521a415e23c0eeeffd11bb168c3e3d20
540
py
Python
django_project/blog/models.py
SuyashD95/Django-Tutorials
5684bd39eecfc4074df5f4ab0b0c3c9929e51f3f
[ "MIT" ]
null
null
null
django_project/blog/models.py
SuyashD95/Django-Tutorials
5684bd39eecfc4074df5f4ab0b0c3c9929e51f3f
[ "MIT" ]
null
null
null
django_project/blog/models.py
SuyashD95/Django-Tutorials
5684bd39eecfc4074df5f4ab0b0c3c9929e51f3f
[ "MIT" ]
null
null
null
from django.db import models from django.urls import reverse from django.utils import timezone from django.contrib.auth.models import User # Create your models here. class Post(models.Model): title = models.CharField(max_length=100) content = models.TextField() date_posted = models.DateTimeField(default=ti...
30
62
0.735185
795c256ecf063670465c6cfb12032923ec7736c2
2,888
py
Python
test/test3_linear_regression.py
hequn/MLLearning
e2b9b405ade00e7a69da28454aa8172c9006f0d0
[ "MIT" ]
null
null
null
test/test3_linear_regression.py
hequn/MLLearning
e2b9b405ade00e7a69da28454aa8172c9006f0d0
[ "MIT" ]
null
null
null
test/test3_linear_regression.py
hequn/MLLearning
e2b9b405ade00e7a69da28454aa8172c9006f0d0
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D # 本代码是一个最简单的线形回归问题,优化函数为经典的gradient descent rate = 0.1 # learning rate def da(y,y_p,x): return (y-y_p)*(-x) def db(y,y_p): return (y-y_p)*(-1) def calc_loss(a,b,x,y): tmp = y - (a * x + b) tmp = tmp ** 2 # 对矩阵内的...
23.867769
73
0.573407
795c259e6934d3f0e58ae5940054baceaa88d2c4
1,574
py
Python
viber_botapi/types/rich_media.py
EdiBoba/viber-botapi
8b9de4529ea19e4fe184fc12f17e63af4e4b5f78
[ "Apache-2.0" ]
1
2022-01-23T10:55:27.000Z
2022-01-23T10:55:27.000Z
viber_botapi/types/rich_media.py
EdiBoba/viber-botapi
8b9de4529ea19e4fe184fc12f17e63af4e4b5f78
[ "Apache-2.0" ]
null
null
null
viber_botapi/types/rich_media.py
EdiBoba/viber-botapi
8b9de4529ea19e4fe184fc12f17e63af4e4b5f78
[ "Apache-2.0" ]
null
null
null
from typing import Optional, Union from botapi import ListField, Field from .base import ViberModel from .button import Button from .favorites_metadata import FavoritesMetadata class RichMedia(ViberModel): """Represents a Viber rich media object Params: https://developers.viber.com/docs/api/rest-bot-ap...
32.122449
100
0.69568
795c2664cc3354d9d0e64eff94f43e7b6130f1ea
1,350
py
Python
pype/ftrack/actions/action_where_run_ask.py
tws0002/pype
80b1aad9990f6c7efabf0430a3da6633054bf4a8
[ "MIT" ]
null
null
null
pype/ftrack/actions/action_where_run_ask.py
tws0002/pype
80b1aad9990f6c7efabf0430a3da6633054bf4a8
[ "MIT" ]
null
null
null
pype/ftrack/actions/action_where_run_ask.py
tws0002/pype
80b1aad9990f6c7efabf0430a3da6633054bf4a8
[ "MIT" ]
null
null
null
import os from pype.vendor import ftrack_api from pype.ftrack import BaseAction from pype.vendor.ftrack_api import session as fa_session class ActionAskWhereIRun(BaseAction): """ Sometimes user forget where pipeline with his credentials is running. - this action triggers `ActionShowWhereIRun` """ # Ac...
30.681818
77
0.679259
795c2801193f177aa121a5a3c235a53a4ee7a04b
2,295
py
Python
src/gripit/gui/QLabelSlider.py
yor1001/GripIt
a06b300df56473f692cbb9154d60525d35137ee3
[ "MIT" ]
null
null
null
src/gripit/gui/QLabelSlider.py
yor1001/GripIt
a06b300df56473f692cbb9154d60525d35137ee3
[ "MIT" ]
null
null
null
src/gripit/gui/QLabelSlider.py
yor1001/GripIt
a06b300df56473f692cbb9154d60525d35137ee3
[ "MIT" ]
null
null
null
from __future__ import division from __future__ import unicode_literals from __future__ import print_function from __future__ import absolute_import from builtins import super from builtins import str from future import standard_library standard_library.install_aliases() from PyQt5 import QtCore, QtGui from PyQt5.QtGui...
37.016129
80
0.688017
795c28fcdf5666edd9c3c9a37648305728968195
35,525
py
Python
fkie_master_sync/src/fkie_master_sync/sync_thread.py
tkazik/multimaster_fkie
8b52a5066545548b205352a330fee9072d8ecc06
[ "BSD-3-Clause" ]
194
2015-01-21T12:46:42.000Z
2022-03-29T08:22:22.000Z
fkie_master_sync/src/fkie_master_sync/sync_thread.py
tkazik/multimaster_fkie
8b52a5066545548b205352a330fee9072d8ecc06
[ "BSD-3-Clause" ]
146
2015-01-13T23:02:24.000Z
2022-03-23T05:54:02.000Z
fkie_master_sync/src/fkie_master_sync/sync_thread.py
tkazik/multimaster_fkie
8b52a5066545548b205352a330fee9072d8ecc06
[ "BSD-3-Clause" ]
103
2015-02-08T23:20:02.000Z
2022-03-27T12:45:48.000Z
# Software License Agreement (BSD License) # # Copyright (c) 2012, Fraunhofer FKIE/US, Alexander Tiderko # 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 mus...
55.421217
236
0.593976
795c293d4fcfe03668995616f9a999b5418721ff
3,203
py
Python
var/spack/repos/builtin/packages/pdftk/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/pdftk/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/pdftk/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os from spack import * class Pdftk(MakefilePackage): """PDFtk Server is a command-line tool for working with...
37.682353
94
0.58133
795c29aa562394f51bbdbc4017515ee971b0dde0
330,911
py
Python
app_venv/Lib/site-packages/phonenumbers/geodata/data8.py
orlandofv/sianna
f07dd6dbc62a9604f31ab800e482e62f14fba766
[ "MIT" ]
null
null
null
app_venv/Lib/site-packages/phonenumbers/geodata/data8.py
orlandofv/sianna
f07dd6dbc62a9604f31ab800e482e62f14fba766
[ "MIT" ]
null
null
null
app_venv/Lib/site-packages/phonenumbers/geodata/data8.py
orlandofv/sianna
f07dd6dbc62a9604f31ab800e482e62f14fba766
[ "MIT" ]
null
null
null
"""Per-prefix data, mapping each prefix to a dict of locale:name. Auto-generated file, do not edit by hand. """ from ..util import u # Copyright (C) 2011-2022 The Libphonenumber Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Licens...
33.015165
109
0.570008
795c2af8db43716e31cde664e40ecb5695986470
23,854
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_11_01/operations/_interface_endpoints_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
2
2021-03-24T06:26:11.000Z
2021-04-18T15:55:59.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_11_01/operations/_interface_endpoints_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
4
2019-04-17T17:57:49.000Z
2020-04-24T21:11:22.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_11_01/operations/_interface_endpoints_operations.py
beltr0n/azure-sdk-for-python
2f7fb8bee881b0fc0386a0ad5385755ceedd0453
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
48.781186
205
0.663746
795c2b07b7eb434ff046ba77d00dd8fdfc6fc792
1,168
py
Python
heron/ui/src/python/log.py
dabaitu/heron
a7fdde5ca4484e4d6c4a73ec36ce43fc9dd1c4c8
[ "Apache-2.0" ]
null
null
null
heron/ui/src/python/log.py
dabaitu/heron
a7fdde5ca4484e4d6c4a73ec36ce43fc9dd1c4c8
[ "Apache-2.0" ]
null
null
null
heron/ui/src/python/log.py
dabaitu/heron
a7fdde5ca4484e4d6c4a73ec36ce43fc9dd1c4c8
[ "Apache-2.0" ]
1
2019-10-02T15:23:46.000Z
2019-10-02T15:23:46.000Z
# Copyright 2016 Twitter. 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 agree...
30.736842
79
0.728596
795c2b484c07b74c9589f3a265c36139b68d7a27
1,526
py
Python
app/api/products.py
gauravssnl/airbus-inventory
3416872f35d1b41016b5a5a304a02fa088592923
[ "MIT" ]
null
null
null
app/api/products.py
gauravssnl/airbus-inventory
3416872f35d1b41016b5a5a304a02fa088592923
[ "MIT" ]
null
null
null
app/api/products.py
gauravssnl/airbus-inventory
3416872f35d1b41016b5a5a304a02fa088592923
[ "MIT" ]
null
null
null
from flask import jsonify, request, current_app, url_for from flask_jwt_extended import jwt_required from app.api import utils from app.exceptions import ValidationError from . import api from ..models import ProductCategory, Product from .. import db @api.route('/products') @jwt_required() def get_products(): pr...
27.25
74
0.722149
795c2b666b98e12d384b2f7833ee6e4d3db9f688
14,762
py
Python
dirty.py
crusoe112/DirtyPipePython
4bbedf3119bfa8cebb973c11cae03f60bff62c25
[ "Unlicense" ]
1
2022-03-11T10:59:23.000Z
2022-03-11T10:59:23.000Z
dirty.py
crusoe112/DirtyPipePython
4bbedf3119bfa8cebb973c11cae03f60bff62c25
[ "Unlicense" ]
null
null
null
dirty.py
crusoe112/DirtyPipePython
4bbedf3119bfa8cebb973c11cae03f60bff62c25
[ "Unlicense" ]
2
2022-03-11T08:47:54.000Z
2022-03-18T08:30:08.000Z
################################################################################ # Author: Marc Bohler - https://github.com/crusoe112 # # # # Description: Uses Dirty Pipe vulnerability to pop a root shell using Pytho...
36.905
122
0.546471
795c2ba5cc3779cecc6990e3765a04ef5a4cdc5c
134
py
Python
numpy/shapeAndReshape.py
silvioedu/HackerRank-Python-Practice
e31ebe49d431c0a23fed0cd67a6984e2b0b7a260
[ "MIT" ]
null
null
null
numpy/shapeAndReshape.py
silvioedu/HackerRank-Python-Practice
e31ebe49d431c0a23fed0cd67a6984e2b0b7a260
[ "MIT" ]
null
null
null
numpy/shapeAndReshape.py
silvioedu/HackerRank-Python-Practice
e31ebe49d431c0a23fed0cd67a6984e2b0b7a260
[ "MIT" ]
null
null
null
import numpy if __name__ == '__main__': arr = numpy.array(input().strip().split(' '), int) print(numpy.reshape(arr, (3, 3)))
22.333333
54
0.61194
795c2c44e17d7bc98299e1d2e468ded4feb519a1
6,697
py
Python
bin/create_initial_weights_file_from_flplan.py
sbakas/OpenFederatedLearning-1
d8e2d22dfccfb8488f70f1fb5593d4e6ee1eca1f
[ "Apache-2.0" ]
3
2020-12-23T02:41:16.000Z
2021-12-07T00:01:56.000Z
bin/create_initial_weights_file_from_flplan.py
sbakas/OpenFederatedLearning-1
d8e2d22dfccfb8488f70f1fb5593d4e6ee1eca1f
[ "Apache-2.0" ]
null
null
null
bin/create_initial_weights_file_from_flplan.py
sbakas/OpenFederatedLearning-1
d8e2d22dfccfb8488f70f1fb5593d4e6ee1eca1f
[ "Apache-2.0" ]
1
2020-09-05T04:36:27.000Z
2020-09-05T04:36:27.000Z
#!/usr/bin/env python3 # Copyright (C) 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 applicab...
50.734848
169
0.718381
795c2cda2ed17a5ef8fba556e7cbb76e21d8f1f1
3,977
py
Python
lpot/adaptor/tf_utils/quantize_graph/quantize_graph_concatv2.py
deb-intel/LPOTtest
f7b7524c733e581668d15192b69f9d9a7ca5222d
[ "Apache-2.0" ]
null
null
null
lpot/adaptor/tf_utils/quantize_graph/quantize_graph_concatv2.py
deb-intel/LPOTtest
f7b7524c733e581668d15192b69f9d9a7ca5222d
[ "Apache-2.0" ]
null
null
null
lpot/adaptor/tf_utils/quantize_graph/quantize_graph_concatv2.py
deb-intel/LPOTtest
f7b7524c733e581668d15192b69f9d9a7ca5222d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2021 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 # # Unl...
45.712644
93
0.659291
795c2d4dc6e9e1b17096fa8f72856bcb7801d372
519
py
Python
code/experimentation.py
saint1729/cs6140_final_project
da529aaadfb82a67a21ace436a02536d9c712bc0
[ "MIT" ]
null
null
null
code/experimentation.py
saint1729/cs6140_final_project
da529aaadfb82a67a21ace436a02536d9c712bc0
[ "MIT" ]
null
null
null
code/experimentation.py
saint1729/cs6140_final_project
da529aaadfb82a67a21ace436a02536d9c712bc0
[ "MIT" ]
null
null
null
import numpy as np if __name__ == '__main__': l = np.load("./old/class8_313.npy") print(l.shape) l = np.load("./old/resources/pts_in_hull.npy") print(l[:, 0].shape) l = np.load("./old/resources/prior_lab_distribution_train.npz", allow_pickle=True) lst = l.files print(l['w_bins']) if np...
25.95
86
0.591522
795c3032c794b2ea0dcafe3349658e549e596d61
848
py
Python
ckb/scoring/transe.py
raphaelsty/ckb
325b170e64ea10280d5f08f7417b5d1bdc94a466
[ "MIT" ]
13
2021-03-09T15:18:48.000Z
2022-03-16T01:02:42.000Z
ckb/scoring/transe.py
raphaelsty/ckb
325b170e64ea10280d5f08f7417b5d1bdc94a466
[ "MIT" ]
1
2021-09-22T09:22:17.000Z
2021-09-22T14:14:38.000Z
ckb/scoring/transe.py
raphaelsty/ckb
325b170e64ea10280d5f08f7417b5d1bdc94a466
[ "MIT" ]
null
null
null
from .base import Scoring import torch __all__ = ["TransE"] class TransE(Scoring): """TransE scoring function. Examples -------- >>> from ckb import scoring >>> scoring.TransE() TransE scoring """ def __init__(self): super().__init__() def __call__(self, head, relat...
19.272727
70
0.541274
795c31b16523f90fb238bfb3a315c9cffe75a58d
212
py
Python
knn.py
CogitoNTNU/grunnkurs-template-1
f25a7dc8474ccfcf0d358e30b59a11e1487817fd
[ "MIT" ]
null
null
null
knn.py
CogitoNTNU/grunnkurs-template-1
f25a7dc8474ccfcf0d358e30b59a11e1487817fd
[ "MIT" ]
null
null
null
knn.py
CogitoNTNU/grunnkurs-template-1
f25a7dc8474ccfcf0d358e30b59a11e1487817fd
[ "MIT" ]
null
null
null
from util import load_data, alphabet from sklearn.metrics import classification_report from sklearn.neighbors import KNeighborsClassifier x_train, x_val, x_test, y_train, y_val, y_test = load_data('dataset.h5')
35.333333
72
0.830189
795c31c193681bb95b7790672de7f8bb627fe99f
278
py
Python
NFCow/malls/admin.py
jojoriveraa/titulacion-NFCOW
643f7f2cbe9c68d9343f38d12629720b12e9ce1e
[ "Apache-2.0" ]
null
null
null
NFCow/malls/admin.py
jojoriveraa/titulacion-NFCOW
643f7f2cbe9c68d9343f38d12629720b12e9ce1e
[ "Apache-2.0" ]
11
2016-01-09T06:27:02.000Z
2016-01-10T05:21:05.000Z
NFCow/malls/admin.py
jojoriveraa/titulacion-NFCOW
643f7f2cbe9c68d9343f38d12629720b12e9ce1e
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Mall class MallAdmin(admin.ModelAdmin): list_display = ('name', 'img', 'postcode', ) list_filter = ('name', ) search_fields = ('name', 'postcode', ) admin.site.register(Mall, MallAdmin, )
25.272727
46
0.705036
795c32f6823c9c37db462b1fb3632a0cc50774d4
387
py
Python
backend/crisis/migrations/0007_auto_20200404_1218.py
Hack-the-Crisis-Hackathon/Hackathon
708a5ee4576a720e5118c254e3d76e1fadea3b8c
[ "MIT" ]
null
null
null
backend/crisis/migrations/0007_auto_20200404_1218.py
Hack-the-Crisis-Hackathon/Hackathon
708a5ee4576a720e5118c254e3d76e1fadea3b8c
[ "MIT" ]
null
null
null
backend/crisis/migrations/0007_auto_20200404_1218.py
Hack-the-Crisis-Hackathon/Hackathon
708a5ee4576a720e5118c254e3d76e1fadea3b8c
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-04-04 12:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('crisis', '0006_document_name'), ] operations = [ migrations.AlterField( model_name='document', name='document', ...
20.368421
53
0.594315
795c343e653ea819622aad2bdf260984bed603d5
1,655
py
Python
hwtLib/peripheral/ethernet/rmii_adapter_test.py
Nic30/hwtLib
52fd28023c4a25f64da17bb4d7c3089d5c7348f4
[ "MIT" ]
24
2017-02-23T10:00:50.000Z
2022-01-28T12:20:21.000Z
hwtLib/peripheral/ethernet/rmii_adapter_test.py
Nic30/hwtLib
52fd28023c4a25f64da17bb4d7c3089d5c7348f4
[ "MIT" ]
32
2017-04-28T10:29:34.000Z
2021-04-27T09:16:43.000Z
hwtLib/peripheral/ethernet/rmii_adapter_test.py
Nic30/hwtLib
52fd28023c4a25f64da17bb4d7c3089d5c7348f4
[ "MIT" ]
8
2019-09-19T03:34:36.000Z
2022-01-21T06:56:58.000Z
import unittest from hwt.pyUtils.arrayQuery import iter_with_last from hwt.simulator.simTestCase import SimTestCase from hwtLib.peripheral.ethernet.constants import ETH from hwtLib.peripheral.ethernet.rmii_adapter import RmiiAdapter from hwtSimApi.constants import Time class RmiiAdapterTC(SimTestCase): CLK = int...
29.553571
77
0.625982
795c3587fef27d7158dd4fd6b909b3ade33f8f9c
934
py
Python
end2endPoC/data-generator/generator.py
mahima1997/trusty-ai-sandbox
739aa220527052b7080fbe178b9137a7ba3dff4f
[ "Apache-2.0" ]
1
2020-06-09T05:58:34.000Z
2020-06-09T05:58:34.000Z
end2endPoC/data-generator/generator.py
mahima1997/trusty-ai-sandbox
739aa220527052b7080fbe178b9137a7ba3dff4f
[ "Apache-2.0" ]
null
null
null
end2endPoC/data-generator/generator.py
mahima1997/trusty-ai-sandbox
739aa220527052b7080fbe178b9137a7ba3dff4f
[ "Apache-2.0" ]
null
null
null
import requests import os import json import random ENDPOINT = 'http://localhost:8080/dmn-loan-eligibility' def generate_random_request(): data = { "Client" : { "age" : int(random.normalvariate(40, 10)), "salary" : int(random.normalvariate(2000, 1000)), ...
28.30303
109
0.550321
795c35b8dbe8fbfb3bbe76d2d29d5772c2efd66a
618
py
Python
psana/psana/graphqt/DragCirc.py
JBlaschke/lcls2
30523ef069e823535475d68fa283c6387bcf817b
[ "BSD-3-Clause-LBNL" ]
16
2017-11-09T17:10:56.000Z
2022-03-09T23:03:10.000Z
psana/psana/graphqt/DragCirc.py
JBlaschke/lcls2
30523ef069e823535475d68fa283c6387bcf817b
[ "BSD-3-Clause-LBNL" ]
6
2017-12-12T19:30:05.000Z
2020-07-09T00:28:33.000Z
psana/psana/graphqt/DragCirc.py
JBlaschke/lcls2
30523ef069e823535475d68fa283c6387bcf817b
[ "BSD-3-Clause-LBNL" ]
25
2017-09-18T20:02:43.000Z
2022-03-27T22:27:42.000Z
""" Class :py:class:`DragCirc` - for draggable circle =================================================== Created on 2016-10-09 by Mikhail Dubrovin """ #import math #from graphqt.DragBase import DragBase from psana.graphqt.DragPoint import * # DragPoint, DragBase, Qt, QPen, QBrush #----------------------------- cla...
22.888889
77
0.52589
795c36007f0edfdd2035f61ef0158d89a25ad72e
644
py
Python
实验/1.1 猜数字.py
shao1chuan/pythonbook
cd9877d04e1e11422d38cc051e368d3d9ce2ab45
[ "MulanPSL-1.0" ]
95
2020-10-11T04:45:46.000Z
2022-02-25T01:50:40.000Z
实验/1.1 猜数字.py
shao1chuan/pythonbook
cd9877d04e1e11422d38cc051e368d3d9ce2ab45
[ "MulanPSL-1.0" ]
null
null
null
实验/1.1 猜数字.py
shao1chuan/pythonbook
cd9877d04e1e11422d38cc051e368d3d9ce2ab45
[ "MulanPSL-1.0" ]
30
2020-11-05T09:01:00.000Z
2022-03-08T05:58:55.000Z
# 随机数的处理 # 综合练习---猜数字 # 计算机要求用户输入数值范围的最小值和最大值。 # 计算机随后“思考”出在这个范围之内的一个随机数, # 并且重复地要求用户猜测这个数,直到用户猜对了。 # 在用户每次进行猜测之后,计算机都会给出一个提示, # 并且会在这个过程的最后显示出总的猜测次数。这 # 个程序包含了几种类型的我们学过的 Python 语句,例如,输入语句、输出语句、赋值语句、循环和条件语句 import random smaller = int(input("Enter the smaller number: ")) larger = int(input("Enter the larger number: "...
24.769231
54
0.678571
795c367c1ce495996955aa6642dc6e9b01bd9697
3,883
py
Python
manage.py
idbrii/podcastmagic
056da5b8c2e2d27f801679acb73ef6337db1a1a7
[ "MIT" ]
1
2018-08-25T13:15:06.000Z
2018-08-25T13:15:06.000Z
manage.py
idbrii/podcastmagic
056da5b8c2e2d27f801679acb73ef6337db1a1a7
[ "MIT" ]
null
null
null
manage.py
idbrii/podcastmagic
056da5b8c2e2d27f801679acb73ef6337db1a1a7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import shutil import sys import os import os.path as path import config as cfg import download as dl import util as u import namemanip # TODO: # FIX listening. it's not being emptied when files are copied # TEST pod downloading and processing at the same time # c...
26.060403
85
0.627865
795c36ef0460b57495e3c5557b3d2b8324af4cda
406
py
Python
lib/fmdplugins/filehash.py
GonzaloAlvarez/py-ga-sysadmin
fbbbbcad36df9f1b3e40328ff48c22bad13a56f4
[ "MIT" ]
2
2018-01-05T15:32:06.000Z
2021-06-02T13:15:05.000Z
lib/fmdplugins/filehash.py
GonzaloAlvarez/devops-tools
fbbbbcad36df9f1b3e40328ff48c22bad13a56f4
[ "MIT" ]
67
2017-01-09T19:39:19.000Z
2018-02-28T05:33:40.000Z
lib/fmdplugins/filehash.py
GonzaloAlvarez/devops-tools
fbbbbcad36df9f1b3e40328ff48c22bad13a56f4
[ "MIT" ]
null
null
null
import xxhash import mmap from lib.file import hashfile from lib.fmd.decorators import Action,AddStage @Action(AddStage.DATAGATHERING) def fid(context, output): BLOCKSIZE = 1024 ** 2 readdigest = xxhash.xxh64() with open(context.filename, 'rb') as in_file: for item in iter((lambda: in_file.read(BLO...
27.066667
64
0.704433
795c380f4260c4211b29a13e1043c9a601e54229
7,659
py
Python
rules/helpers/base.py
yutiansut/streamalert
7d198a3273781f66465420e90886a3ce53ec7559
[ "Apache-2.0" ]
7
2018-12-26T14:38:08.000Z
2022-03-09T13:21:00.000Z
rules/helpers/base.py
revaniki/streamalert
7d198a3273781f66465420e90886a3ce53ec7559
[ "Apache-2.0" ]
14
2018-05-09T19:18:15.000Z
2021-06-02T02:34:09.000Z
rules/helpers/base.py
revaniki/streamalert
7d198a3273781f66465420e90886a3ce53ec7559
[ "Apache-2.0" ]
1
2018-12-06T20:51:58.000Z
2018-12-06T20:51:58.000Z
""" Copyright 2017-present, Airbnb Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
30.153543
97
0.689254
795c384ee40d1de9d140e32cc9874142a7ed4d81
30,859
py
Python
chevah/compat/tests/normal/testing/test_testcase.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
5
2016-12-03T22:54:50.000Z
2021-11-17T11:17:39.000Z
chevah/compat/tests/normal/testing/test_testcase.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
76
2015-01-22T16:00:31.000Z
2022-02-09T22:13:34.000Z
chevah/compat/tests/normal/testing/test_testcase.py
chevah/compat
d22e5f551a628f8a1652c9f2eea306e17930cb8f
[ "BSD-3-Clause" ]
1
2016-12-10T15:57:31.000Z
2016-12-10T15:57:31.000Z
# Copyright (c) 2011 Adi Roiban. # See LICENSE for details. """ Tests for ChevahTestCase. """ from __future__ import print_function from __future__ import division from __future__ import absolute_import import os import sys import time from twisted.internet import defer, reactor, threads from twisted.internet.task imp...
31.55317
79
0.625134
795c39186f01c72a09d561e5998cc9a7780c3b36
3,762
py
Python
tests/test.py
emlazzarin/carbonSublime
b7f895c9ac1eb46547ada79f7eab56e2a36df419
[ "MIT" ]
120
2018-02-08T17:01:21.000Z
2022-02-16T16:54:40.000Z
tests/test.py
emlazzarin/carbonSublime
b7f895c9ac1eb46547ada79f7eab56e2a36df419
[ "MIT" ]
21
2018-02-08T16:05:30.000Z
2021-11-16T00:19:13.000Z
tests/test.py
emlazzarin/carbonSublime
b7f895c9ac1eb46547ada79f7eab56e2a36df419
[ "MIT" ]
10
2018-02-16T07:43:15.000Z
2020-08-27T02:10:23.000Z
"""Tests functions and classes in carbonSublime.py. """ import sys import unittest from unittest import mock import webbrowser import sublime carbonSublime = sys.modules["carbonSublime.carbonSublime"] class TestViewMixin: def setUp(self): self.view = sublime.active_window().new_file() def tearDown...
34.2
79
0.645667
795c39daac73488d4cf24a688059d887198ccdb7
28,603
py
Python
autocalibration/lib/python2.7/site-packages/matplotlib/sphinxext/plot_directive.py
prcalopa/reactable-autocalibration
eb67a5b5ee0e50f1effa773f6f3f934b5fda6fcf
[ "MIT" ]
4
2021-10-14T21:22:25.000Z
2022-03-12T19:58:48.000Z
lib/python2.7/site-packages/matplotlib/sphinxext/plot_directive.py
jppgibbs/Aegis
feac08cd3935569057e75531fe80bd0e1f982a93
[ "MIT" ]
2
2018-01-22T23:21:36.000Z
2018-01-22T23:31:27.000Z
lib/python2.7/site-packages/matplotlib/sphinxext/plot_directive.py
jppgibbs/Aegis
feac08cd3935569057e75531fe80bd0e1f982a93
[ "MIT" ]
5
2018-05-19T05:08:51.000Z
2021-04-29T16:03:45.000Z
""" A directive for including a matplotlib plot in a Sphinx document. By default, in HTML output, `plot` will include a .png file with a link to a high-res .png and .pdf. In LaTeX output, it will include a .pdf. The source code for the plot may be included in one of three ways: 1. **A path to a source file** as t...
32.764032
81
0.583121
795c3a2625fe5bde0a29c6be97427e2219b8ccb6
33,974
py
Python
test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/models/_models.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
null
null
null
test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/models/_models.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
null
null
null
test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/models/_models.py
qwordy/autorest.python
6b12df51c2a39a1285546b5a771b69f5896e794f
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
36.104145
364
0.628127
795c3be8a518727fe8cfc1afd456e15053e7eacb
984
py
Python
ds/kb/code/neural-network-from-scratch.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
ds/kb/code/neural-network-from-scratch.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
ds/kb/code/neural-network-from-scratch.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
import numpy as np def neural_network(X, y): W1 = np.random.rand(2, 4) W2 = np.random.rand(4, 1) output = np.zeros((4,1)) for epochs in range(10000): layer = 1 / (1 + np.exp(-np.dot(X, W1))) output = 1 / (1 + np.exp(-np.dot(layer, W2))) error = (y - output) W2 += np.d...
32.8
75
0.497967
795c3cb3b0a26c114d6e8cf4e651a300904f24dc
7,020
py
Python
tests/python/unittest/test_auto_scheduler_layout_rewrite.py
eleflea/tvm
d199243d8907b2d8062dd9c20b69dcb9765a970f
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
40
2021-06-14T23:14:46.000Z
2022-03-21T14:32:23.000Z
tests/python/unittest/test_auto_scheduler_layout_rewrite.py
eleflea/tvm
d199243d8907b2d8062dd9c20b69dcb9765a970f
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
14
2021-06-08T03:15:54.000Z
2022-02-01T23:50:24.000Z
tests/python/unittest/test_auto_scheduler_layout_rewrite.py
eleflea/tvm
d199243d8907b2d8062dd9c20b69dcb9765a970f
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
11
2021-06-14T05:56:18.000Z
2022-02-27T06:52:07.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.753927
100
0.663105
795c3d891ca00bbd99ba42a637644808de412d59
860
py
Python
ermez/connect/rabbitmq/rabbitmq_producer.py
ggekos/ermez
bdee5c704b77367af968abaf5760af6a9f083bad
[ "Apache-2.0" ]
1
2021-06-23T09:01:16.000Z
2021-06-23T09:01:16.000Z
ermez/connect/rabbitmq/rabbitmq_producer.py
ggekos/ermez
bdee5c704b77367af968abaf5760af6a9f083bad
[ "Apache-2.0" ]
null
null
null
ermez/connect/rabbitmq/rabbitmq_producer.py
ggekos/ermez
bdee5c704b77367af968abaf5760af6a9f083bad
[ "Apache-2.0" ]
null
null
null
import pika from urllib.parse import urlparse, parse_qs from ermez.connect.abstract_producer import AbstractProducer class Producer(AbstractProducer): def __init__(self, uri: str, credential: str): self.uri_parsed = urlparse(uri) self.query = parse_qs(self.uri_parsed.query) parameters = p...
29.655172
77
0.630233
795c3e37e664c72aa0adb00c1345bc5aa0590920
115
py
Python
mainAbout/views.py
h1gfun4/h1gfun4.github.io
e460467cb505b525ecd5b01b9eb3fd73de7ec6e1
[ "MIT" ]
null
null
null
mainAbout/views.py
h1gfun4/h1gfun4.github.io
e460467cb505b525ecd5b01b9eb3fd73de7ec6e1
[ "MIT" ]
null
null
null
mainAbout/views.py
h1gfun4/h1gfun4.github.io
e460467cb505b525ecd5b01b9eb3fd73de7ec6e1
[ "MIT" ]
null
null
null
from django.shortcuts import render def AboutView(request): return render(request, 'mainAbout/aboutPage.html')
28.75
54
0.791304
795c3fa1f627ef73fcc2dec83df4970507c95d65
41
py
Python
venv/lib/python3.6/encodings/undefined.py
JamesMusyoka/Blog
fdcb51cf4541bbb3b9b3e7a1c3735a0b1f45f0b5
[ "Unlicense" ]
2
2019-04-17T13:35:50.000Z
2021-12-21T00:11:36.000Z
venv/lib/python3.6/encodings/undefined.py
JamesMusyoka/Blog
fdcb51cf4541bbb3b9b3e7a1c3735a0b1f45f0b5
[ "Unlicense" ]
2
2021-03-31T19:51:24.000Z
2021-06-10T23:05:09.000Z
venv/lib/python3.6/encodings/undefined.py
JamesMusyoka/Blog
fdcb51cf4541bbb3b9b3e7a1c3735a0b1f45f0b5
[ "Unlicense" ]
2
2019-10-01T08:47:35.000Z
2020-07-11T06:32:16.000Z
/usr/lib/python3.6/encodings/undefined.py
41
41
0.829268
795c408986dcab29eab9113ff278e6ca54c36739
3,263
py
Python
utils/use.py
THU-CVlab/MEPDNet-pytorch
af033785fe183a4360f3f395087b45aba377d2bc
[ "MIT" ]
2
2021-06-13T05:58:52.000Z
2021-07-09T03:44:13.000Z
utils/use.py
THU-CVlab/MEPDNet-pytorch
af033785fe183a4360f3f395087b45aba377d2bc
[ "MIT" ]
null
null
null
utils/use.py
THU-CVlab/MEPDNet-pytorch
af033785fe183a4360f3f395087b45aba377d2bc
[ "MIT" ]
null
null
null
import os import cv2 import glob import torch import shutil import datetime import numpy as np import torch.nn as nn import torch.nn.functional as F from PIL import Image from tqdm import tqdm from os.path import split,splitext from utils import setup_logger, is_image_file, SeqUseDataset, SingleUseDataset from torch.u...
33.639175
98
0.583819
795c422063b058f08458cbae45cff6bd4425fe4d
660
py
Python
AA/Lessons/Lesson 8/primality.py
lengors/ua-repository
4a2ff60af8b190783e1992fe8edb40fc1147224a
[ "MIT" ]
null
null
null
AA/Lessons/Lesson 8/primality.py
lengors/ua-repository
4a2ff60af8b190783e1992fe8edb40fc1147224a
[ "MIT" ]
null
null
null
AA/Lessons/Lesson 8/primality.py
lengors/ua-repository
4a2ff60af8b190783e1992fe8edb40fc1147224a
[ "MIT" ]
null
null
null
import math, random def is_prime(number): if number == 1 or number == 2: return number == 2 if number % 2 == 0: return False for i in range(3, math.ceil(math.sqrt(number))): if number % i == 0: return False return True def is_prime2(number, count = 1000): if num...
24.444444
52
0.537879
795c434c109a7d7ff9880970e47fc9619da58fe9
5,623
py
Python
nncf/torch/quantization/precision_init/adjacent_quantizers.py
vuiseng9/nncf_pytorch
c2b1f069c867327203629201aecae3b7815e7895
[ "Apache-2.0" ]
136
2020-06-01T14:03:31.000Z
2020-10-28T06:10:50.000Z
nncf/torch/quantization/precision_init/adjacent_quantizers.py
vuiseng9/nncf_pytorch
c2b1f069c867327203629201aecae3b7815e7895
[ "Apache-2.0" ]
133
2020-05-26T13:48:04.000Z
2020-10-28T05:25:55.000Z
nncf/torch/quantization/precision_init/adjacent_quantizers.py
vuiseng9/nncf_pytorch
c2b1f069c867327203629201aecae3b7815e7895
[ "Apache-2.0" ]
36
2020-05-28T08:18:39.000Z
2020-10-27T14:46:58.000Z
""" Copyright (c) 2022 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 in writin...
53.552381
120
0.723457
795c4513472cdc452a125127416c848641ab2c4f
572
py
Python
vocompr/utils.py
EnzoBnl/vocompr
fdbe5df59a698e232fb4b107aba1d96d4f8dba80
[ "Apache-2.0" ]
null
null
null
vocompr/utils.py
EnzoBnl/vocompr
fdbe5df59a698e232fb4b107aba1d96d4f8dba80
[ "Apache-2.0" ]
5
2019-11-22T22:52:46.000Z
2020-04-21T13:09:36.000Z
vocompr/utils.py
EnzoBnl/vocompr
fdbe5df59a698e232fb4b107aba1d96d4f8dba80
[ "Apache-2.0" ]
null
null
null
def int_to_bits(i, fill_to_n=None): bits_str = "" while i != 0: bits_str = str(i % 2) + bits_str i = i // 2 return ((fill_to_n - len(bits_str)) if fill_to_n is not None else 0) * "0" + bits_str def bits_to_int(b): return int(b, 2) def bits_to_hex(bits): res = hex(int(bits, 2))[2:...
17.875
89
0.594406
795c454e7f23ded5d7bc3def6521dfe073a263f2
20,595
py
Python
tests/operators/test_python_operator.py
bluevine-dev/airflow
8b3847831391ef16c1aa139944542ff7b914bb2c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
tests/operators/test_python_operator.py
bluevine-dev/airflow
8b3847831391ef16c1aa139944542ff7b914bb2c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
tests/operators/test_python_operator.py
bluevine-dev/airflow
8b3847831391ef16c1aa139944542ff7b914bb2c
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-01-17T00:46:50.000Z
2020-01-17T00:46:50.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
37.377495
98
0.586307
795c456f314a7b43e35db9a5f0890ebeee9a1ba5
11,431
py
Python
sahara/utils/wsgi.py
esikachev/scenario
40a59114c7bac44fea510767a3c07d73649f4caf
[ "Apache-2.0" ]
null
null
null
sahara/utils/wsgi.py
esikachev/scenario
40a59114c7bac44fea510767a3c07d73649f4caf
[ "Apache-2.0" ]
null
null
null
sahara/utils/wsgi.py
esikachev/scenario
40a59114c7bac44fea510767a3c07d73649f4caf
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 OpenStack LLC. # 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 b...
36.404459
79
0.624705
795c45af952cb6a3e67ecfb862c15a9995272f73
647
py
Python
setup.py
grayfall/pymmds
05859093ed1a10240d69095eb4deb0388b5ff8c3
[ "MIT" ]
3
2018-03-29T00:14:42.000Z
2021-01-28T04:33:28.000Z
setup.py
grayfall/pymmds
05859093ed1a10240d69095eb4deb0388b5ff8c3
[ "MIT" ]
1
2018-07-11T13:07:37.000Z
2019-04-19T20:32:59.000Z
setup.py
grayfall/pymmds
05859093ed1a10240d69095eb4deb0388b5ff8c3
[ "MIT" ]
2
2018-06-11T02:28:49.000Z
2021-03-23T15:00:14.000Z
from setuptools import setup import sys if sys.version_info < (3, 5): print('This package requires Python >= 3.5') sys.exit(1) setup( name='pymmds', version='1.0', packages=['mmds'], url='https://github.com/grayfall/pymmds', download_url='https://github.com/grayfall/pymmds/archive/1.0.ta...
26.958333
74
0.652241
795c4695fdadf4db4546a20ea08e56b105626c20
722
py
Python
apps/properties/urls.py
FancyKat/django-portfolio
f261f8d3a37e5771f9f48a74a769b6e9b479d49d
[ "MIT" ]
null
null
null
apps/properties/urls.py
FancyKat/django-portfolio
f261f8d3a37e5771f9f48a74a769b6e9b479d49d
[ "MIT" ]
9
2022-03-22T04:30:50.000Z
2022-03-22T04:49:13.000Z
apps/properties/urls.py
FancyKat/django-portfolio
f261f8d3a37e5771f9f48a74a769b6e9b479d49d
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path("all/", views.ListAllPropertiesAPIView.as_view(), name="all-properties"), path( "agents/", views.ListAgentsPropertiesAPIView.as_view(), name="agent-properties" ), path("create/", views.create_property_api_view, name="propert...
36.1
88
0.684211
795c475df557fe9f2adb2c19a1fb6e93690fbd7b
237
py
Python
nlu/components/normalizers/drug_normalizer/drug_normalizer.py
milyiyo/nlu
d209ed11c6a84639c268f08435552248391c5573
[ "Apache-2.0" ]
480
2020-08-24T02:36:40.000Z
2022-03-30T08:09:43.000Z
nlu/components/normalizers/drug_normalizer/drug_normalizer.py
milyiyo/nlu
d209ed11c6a84639c268f08435552248391c5573
[ "Apache-2.0" ]
28
2020-09-26T18:55:43.000Z
2022-03-26T01:05:45.000Z
nlu/components/normalizers/drug_normalizer/drug_normalizer.py
milyiyo/nlu
d209ed11c6a84639c268f08435552248391c5573
[ "Apache-2.0" ]
76
2020-09-25T22:55:12.000Z
2022-03-17T20:25:52.000Z
from sparknlp_jsl.annotator import DrugNormalizer class DrugNorm: @staticmethod def get_default_model(): return DrugNormalizer() \ .setInputCols(["document"]) \ .setOutputCol("normalized_drugs")
23.7
49
0.666667
795c47a0b7051b247a677b967e9beb6a4e9d8092
1,139
py
Python
proto/server_server.py
119068489/game_server
6967d23cd795d7b30f75f563edf558218a17b6f2
[ "MIT" ]
1
2022-03-25T04:45:45.000Z
2022-03-25T04:45:45.000Z
proto/server_server.py
119068489/game_server
6967d23cd795d7b30f75f563edf558218a17b6f2
[ "MIT" ]
null
null
null
proto/server_server.py
119068489/game_server
6967d23cd795d7b30f75f563edf558218a17b6f2
[ "MIT" ]
2
2021-12-03T11:49:03.000Z
2021-12-24T07:02:21.000Z
import os import platform def BuildProto(): """ build .proto ---> .pb.go """ src = "./client_server_proto/server_server/" dest = "../pb/server_server/" rpc_map_file = "server_server" cmd = "python3 make_rpc_service.py src=%s dest=%s rpc_map_file=%s" % (src, dest, rpc_map_file) res1 = o...
39.275862
239
0.652327
795c4872f978d4a592e4c809ea9312c5f666217f
1,305
py
Python
pipenv/vendor/pip_shims/__init__.py
GPHemsley/pipenv
f640fcba77fb148b8c3a1fefbc540764d8e4010d
[ "MIT" ]
2
2017-12-08T05:38:44.000Z
2018-02-08T13:58:03.000Z
pipenv/vendor/pip_shims/__init__.py
GPHemsley/pipenv
f640fcba77fb148b8c3a1fefbc540764d8e4010d
[ "MIT" ]
54
2018-10-07T08:46:09.000Z
2020-08-19T14:25:31.000Z
pipenv/vendor/pip_shims/__init__.py
GPHemsley/pipenv
f640fcba77fb148b8c3a1fefbc540764d8e4010d
[ "MIT" ]
3
2018-10-17T13:59:30.000Z
2019-01-23T23:46:22.000Z
# -*- coding=utf-8 -*- """ This library is a set of compatibilty access shims to the ``pip`` internal API. It provides compatibility with pip versions 8.0 through the current release. The shims are provided using a lazy import strategy by hacking a module by overloading a class instance's ``getattr`` method. This libra...
24.622642
82
0.68046
795c487a949f4c49b74c95d9eca76883196dfc23
2,348
py
Python
piped/processors/test/test_datetime_processors.py
alexbrasetvik/Piped
0312c14d6c4c293df378c915cc9787bcc7faed36
[ "MIT" ]
3
2015-02-12T20:34:30.000Z
2016-08-06T06:54:48.000Z
piped/processors/test/test_datetime_processors.py
alexbrasetvik/Piped
0312c14d6c4c293df378c915cc9787bcc7faed36
[ "MIT" ]
null
null
null
piped/processors/test/test_datetime_processors.py
alexbrasetvik/Piped
0312c14d6c4c293df378c915cc9787bcc7faed36
[ "MIT" ]
2
2015-12-16T14:18:14.000Z
2019-04-12T01:43:10.000Z
# Copyright (c) 2010-2011, Found IT A/S and Piped Project Contributors. # See LICENSE for details. import datetime from twisted.trial import unittest from twisted.internet import defer from piped.processors import datetime_processors class DateTimeParserTest(unittest.TestCase): @defer.inlineCallbacks def t...
44.301887
115
0.689949
795c48acd77514df3b4c3fd7eeb0ffa83261b7e0
416
py
Python
individuals/mei/software text class.py
periode/software-art-text
bc512345bb8e293f165077587b343407fba61d71
[ "Unlicense" ]
2
2019-01-02T17:58:24.000Z
2019-09-15T16:26:00.000Z
individuals/mei/software text class.py
periode/software-art-text
bc512345bb8e293f165077587b343407fba61d71
[ "Unlicense" ]
null
null
null
individuals/mei/software text class.py
periode/software-art-text
bc512345bb8e293f165077587b343407fba61d71
[ "Unlicense" ]
null
null
null
class Thought: def __init__(self,letters,meanings,audience): self.letters=letters self.meanings=meanings[0] self.hidden_meaning=meanings[1] self.audience=audience def happen(self): if (self.hidden_meaning): print self.audience else: print s...
26
49
0.584135
795c49902c6952cef67af99b6911ba3dea279e72
23,280
py
Python
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_training_client.py
JianpingChen/azure-sdk-for-python
3072fc8c0366287fbaea1b02493a50259c3248a2
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_training_client.py
JianpingChen/azure-sdk-for-python
3072fc8c0366287fbaea1b02493a50259c3248a2
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_training_client.py
JianpingChen/azure-sdk-for-python
3072fc8c0366287fbaea1b02493a50259c3248a2
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
# coding=utf-8 # ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ # pylint: disable=protected-access import json from typing import ( Any, Dict, Union, List, TYPE_CHECKING, ) from azure.core.tracing...
44.090909
116
0.633849
795c49f7868e94e3a8461280513a3d7fe71eccbd
3,724
py
Python
utils/sdtw_pipeline.py
korhanpolat/phoenix_term_discovery
61532ff89d6de37dadd2a137dc1cfc3f66a04190
[ "MIT" ]
null
null
null
utils/sdtw_pipeline.py
korhanpolat/phoenix_term_discovery
61532ff89d6de37dadd2a137dc1cfc3f66a04190
[ "MIT" ]
1
2021-05-10T17:13:30.000Z
2021-05-10T17:13:30.000Z
utils/sdtw_pipeline.py
korhanpolat/phoenix_term_discovery
61532ff89d6de37dadd2a137dc1cfc3f66a04190
[ "MIT" ]
null
null
null
from utils.eval import evaluate from joblib import Parallel, delayed from itertools import combinations from utils.sdtw_funcs import sdtw_jit, LCMA_jit, joints_loss, sdtw_np, LCMA_jit_new from utils.ZR_utils import new_match_dict, change_post_disc_thr, post_disc2, get_nodes_df, get_clusters_list, run_disc_ZR, get_...
30.77686
138
0.644737
795c4bb6f08542b6f2386ee9e144a66598d2bc4d
4,614
py
Python
djmodels/contrib/gis/gdal/prototypes/generation.py
iMerica/dj-models
fbe4a55ac362f9355a2298f58aa0deb0b6082e19
[ "BSD-3-Clause" ]
5
2019-02-15T16:47:50.000Z
2021-12-26T18:52:23.000Z
djmodels/contrib/gis/gdal/prototypes/generation.py
iMerica/dj-models
fbe4a55ac362f9355a2298f58aa0deb0b6082e19
[ "BSD-3-Clause" ]
null
null
null
djmodels/contrib/gis/gdal/prototypes/generation.py
iMerica/dj-models
fbe4a55ac362f9355a2298f58aa0deb0b6082e19
[ "BSD-3-Clause" ]
2
2021-08-09T02:29:09.000Z
2021-08-20T03:30:11.000Z
""" This module contains functions that generate ctypes prototypes for the GDAL routines. """ from ctypes import POINTER, c_char_p, c_double, c_int, c_int64, c_void_p from functools import partial from djmodels.contrib.gis.gdal.prototypes.errcheck import ( check_arg_errcode, check_const_string, check_errcode, ch...
29.018868
85
0.684222
795c4cd1f7867e91f37a31a12dc8736f14b0411a
2,869
py
Python
fakebmc.py
samveen/PiZBMC
1d8a656f36e88b0519507026af8296fd3b9038ff
[ "BSD-2-Clause" ]
1
2020-09-17T15:10:36.000Z
2020-09-17T15:10:36.000Z
fakebmc.py
samveen/PiZBMC
1d8a656f36e88b0519507026af8296fd3b9038ff
[ "BSD-2-Clause" ]
null
null
null
fakebmc.py
samveen/PiZBMC
1d8a656f36e88b0519507026af8296fd3b9038ff
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python3 # Copyright 2015 Lenovo # # 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...
28.69
74
0.650749
795c4cdfc4716662fd17efe27b2507f28e0c7f69
3,559
py
Python
torchreid/models/__init__.py
jeongroseok/person-reid-research
f70463c6f55bb72d7c6376811d002c9d48d490f6
[ "MIT" ]
null
null
null
torchreid/models/__init__.py
jeongroseok/person-reid-research
f70463c6f55bb72d7c6376811d002c9d48d490f6
[ "MIT" ]
null
null
null
torchreid/models/__init__.py
jeongroseok/person-reid-research
f70463c6f55bb72d7c6376811d002c9d48d490f6
[ "MIT" ]
null
null
null
from __future__ import absolute_import import torch from .pcb import * from .mlfn import * from .hacnn import * from .osnet import * from .senet import * from .mudeep import * from .nasnet import * from .resnet import * from .densenet import * from .xception import * from .osnet_ain import * from .resnetmid import * f...
28.701613
81
0.683619
795c4db4e5328c7e93218aeae3f6dab6939e612a
2,896
py
Python
BestStore/product_master/migrations/0001_initial.py
rishabh-22/ECommerce
cc47c71bcfe60db5da10de6be37902a990506326
[ "MIT" ]
null
null
null
BestStore/product_master/migrations/0001_initial.py
rishabh-22/ECommerce
cc47c71bcfe60db5da10de6be37902a990506326
[ "MIT" ]
null
null
null
BestStore/product_master/migrations/0001_initial.py
rishabh-22/ECommerce
cc47c71bcfe60db5da10de6be37902a990506326
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-05-20 10:35 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
45.968254
177
0.58529
795c4defd93fa74efb960f59de713c1313b62378
646
py
Python
schedulingTasks/alarmCountDown.py
sunil-dhaka/automate-stuff-with-python
19e841e3ed89788c2c2e0bb4bb6a9ee0e0314ca3
[ "MIT" ]
null
null
null
schedulingTasks/alarmCountDown.py
sunil-dhaka/automate-stuff-with-python
19e841e3ed89788c2c2e0bb4bb6a9ee0e0314ca3
[ "MIT" ]
null
null
null
schedulingTasks/alarmCountDown.py
sunil-dhaka/automate-stuff-with-python
19e841e3ed89788c2c2e0bb4bb6a9ee0e0314ca3
[ "MIT" ]
null
null
null
import subprocess,sys,time def countDown(alarm_file,total_time=1): # in minutes total_time=total_time*60 # convert into seconds while(total_time>0): total_time-=1 time.sleep(1) print('playing alarm for 10 secs.') alarm_=subprocess.Popen(['see',alarm_file]) while(alarm_.poll() i...
24.846154
52
0.606811
795c4e26be44118609add768c675d1703eee8d46
2,204
gyp
Python
binding.gyp
yume-chan/node-svn
47f2eba70b55dcd15bda745b102668223a2b7f20
[ "MIT" ]
null
null
null
binding.gyp
yume-chan/node-svn
47f2eba70b55dcd15bda745b102668223a2b7f20
[ "MIT" ]
5
2018-03-16T06:48:29.000Z
2018-04-17T09:47:15.000Z
binding.gyp
yume-chan/node-svn
47f2eba70b55dcd15bda745b102668223a2b7f20
[ "MIT" ]
4
2018-04-11T00:06:05.000Z
2019-10-25T01:34:40.000Z
{ "variables": { "clang": 0 }, "targets": [ { "target_name": "svn", "dependencies": [ "deps/apr/apr.gyp:apr", "deps/subversion/client.gyp:libsvn_client" ], "include_dirs": [ "src" ...
29
59
0.28176
795c4e40f5affc951fe0dd4ac3fd094d4ffb213c
46,935
py
Python
client/isolate.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2019-04-25T17:50:34.000Z
2019-04-25T17:50:34.000Z
client/isolate.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
client/isolate.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
#!/usr/bin/env python # Copyright 2012 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Front end tool to operate on .isolate files. This includes creating, merging or compiling them to generate a .isolated f...
37.942603
113
0.703654
795c4ef437c07a09838321e55a08d6c079d38b67
8,630
py
Python
docs/conf.py
cuijialang/prjxray
7ddd5f88e60c9876a6d7171b343c1c855239dc85
[ "ISC" ]
1
2020-05-15T03:26:22.000Z
2020-05-15T03:26:22.000Z
docs/conf.py
cuijialang/prjxray
7ddd5f88e60c9876a6d7171b343c1c855239dc85
[ "ISC" ]
null
null
null
docs/conf.py
cuijialang/prjxray
7ddd5f88e60c9876a6d7171b343c1c855239dc85
[ "ISC" ]
null
null
null
# -*- coding: utf-8 -*- # # Project X-Ray documentation build configuration file, created by # sphinx-quickstart on Mon Feb 5 11:04:37 2018. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file....
31.043165
97
0.673349