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
9c8f7904074bb9ce6b58051b3df70e3b317ad317
4,996
py
Python
tests/tensor/random/test_op.py
fshart/aesara
1ddf96a7b8e8503fb8773b09c3ca77483fd884c4
[ "BSD-3-Clause" ]
111
2021-01-29T06:12:58.000Z
2021-06-04T20:27:51.000Z
tests/tensor/random/test_op.py
fshart/aesara
1ddf96a7b8e8503fb8773b09c3ca77483fd884c4
[ "BSD-3-Clause" ]
253
2020-02-07T15:19:38.000Z
2021-01-27T20:26:55.000Z
tests/tensor/random/test_op.py
fshart/aesara
1ddf96a7b8e8503fb8773b09c3ca77483fd884c4
[ "BSD-3-Clause" ]
38
2020-07-20T12:09:06.000Z
2021-01-27T13:38:50.000Z
import numpy as np from pytest import fixture, raises import aesara.tensor as aet from aesara import config from aesara.gradient import NullTypeGradError, grad from aesara.raise_op import Assert from aesara.tensor.math import eq from aesara.tensor.random.op import RandomVariable, default_shape_from_params from aesara....
27.60221
86
0.607086
4c9b9272616123fe6fddfbe34580de18de3df511
1,716
py
Python
script.py
unknownerror1019/Auto-Filter-Bot-V2
619136b56621111e1009871e16a626d14a0d3c26
[ "MIT" ]
null
null
null
script.py
unknownerror1019/Auto-Filter-Bot-V2
619136b56621111e1009871e16a626d14a0d3c26
[ "MIT" ]
null
null
null
script.py
unknownerror1019/Auto-Filter-Bot-V2
619136b56621111e1009871e16a626d14a0d3c26
[ "MIT" ]
null
null
null
class script(object): START_MSG = """ <b>Hi {} Ada ni e group join chyada @chat_with_gopuzzedit .E group join chytha pine ni Vara group join chyanda athe editing materialum E group kidm eshta patta kuda kudiko kuda nammal unde Any other help contact owner: @GOPUZZ_EDIT02 💞💞💞💞💞💞💞💞💞💞💞💞💞 For more clic...
26.4
224
0.681235
5110effc9e4f4bdcf6870077894fc86f20c93bbc
773
py
Python
egs2/jmd/tts1/local/clean_text.py
texpomru13/espnet
7ef005e832e2fb033f356c16f54e0f08762fb4b0
[ "Apache-2.0" ]
5,053
2017-12-13T06:21:41.000Z
2022-03-31T13:38:29.000Z
egs2/jmd/tts1/local/clean_text.py
texpomru13/espnet
7ef005e832e2fb033f356c16f54e0f08762fb4b0
[ "Apache-2.0" ]
3,666
2017-12-14T05:58:50.000Z
2022-03-31T22:11:49.000Z
egs2/jmd/tts1/local/clean_text.py
texpomru13/espnet
7ef005e832e2fb033f356c16f54e0f08762fb4b0
[ "Apache-2.0" ]
1,709
2017-12-13T01:02:42.000Z
2022-03-31T11:57:45.000Z
#!/usr/bin/env python # Copyright 2021 Takenori Yoshimura # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) import argparse import re if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument( "--skip-header", action="store_true", help="if true, skip first line" ...
30.92
77
0.583441
c81132dd79b8e373639f24418966a0cbb369b1d8
5,589
py
Python
assets/lib/shaka-player/build/shakaBuildHelpers.py
amitrai1095/uFaberTemp
279ba03e507ac0b4b7a87ea5c39e2c9d1fe67e29
[ "CC0-1.0" ]
null
null
null
assets/lib/shaka-player/build/shakaBuildHelpers.py
amitrai1095/uFaberTemp
279ba03e507ac0b4b7a87ea5c39e2c9d1fe67e29
[ "CC0-1.0" ]
null
null
null
assets/lib/shaka-player/build/shakaBuildHelpers.py
amitrai1095/uFaberTemp
279ba03e507ac0b4b7a87ea5c39e2c9d1fe67e29
[ "CC0-1.0" ]
null
null
null
# # Copyright 2016 Google 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...
31.755682
80
0.688674
c3be8f87ab68461e718f8746c01f74b7d2d36c61
739
py
Python
ppq/quantization/measure/statistic.py
openppl-public/ppq
0fdea7d4982bc57feb6bb8548c7f012707fbd607
[ "Apache-2.0" ]
100
2021-12-31T09:34:06.000Z
2022-03-25T02:54:51.000Z
ppq/quantization/measure/statistic.py
openppl-public/ppq
0fdea7d4982bc57feb6bb8548c7f012707fbd607
[ "Apache-2.0" ]
12
2021-12-31T10:28:15.000Z
2022-03-31T07:08:44.000Z
ppq/quantization/measure/statistic.py
openppl-public/ppq
0fdea7d4982bc57feb6bb8548c7f012707fbd607
[ "Apache-2.0" ]
21
2021-12-31T09:51:02.000Z
2022-03-30T12:21:55.000Z
import torch def torch_KL_divergence(hist: torch.Tensor, ref_hist: torch.Tensor, eps=1e-30) -> float: if hist.ndim != 1 or ref_hist.ndim != 1: raise ValueError( 'Only 1 dimension tensor can compute KL divergence with another tensor. '\ f'While your input hist has dimension {hist.ndim} and ref_hist ...
56.846154
115
0.7023
0d40300c8911c8d4d559c5cbfced72c9a7468104
965
py
Python
py/tools/get_version_unittest.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
3
2022-01-06T16:52:52.000Z
2022-03-07T11:30:47.000Z
py/tools/get_version_unittest.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
null
null
null
py/tools/get_version_unittest.py
arccode/factory
a1b0fccd68987d8cd9c89710adc3c04b868347ec
[ "BSD-3-Clause" ]
1
2021-10-24T01:47:22.000Z
2021-10-24T01:47:22.000Z
#!/usr/bin/env python3 # Copyright 2014 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. """Unit tests for get_version.""" import os import unittest from cros.factory.tools import get_version SCRIPT_DIR = os.path.di...
24.74359
74
0.737824
ebb3edef0b312bb6f8daff1089a76e79781af012
146
py
Python
src/constants.py
BridgeMia/ProductEmbedding
90f18fd7e8abc4ac629ad0ea1a5a87d4f397650f
[ "MIT" ]
null
null
null
src/constants.py
BridgeMia/ProductEmbedding
90f18fd7e8abc4ac629ad0ea1a5a87d4f397650f
[ "MIT" ]
null
null
null
src/constants.py
BridgeMia/ProductEmbedding
90f18fd7e8abc4ac629ad0ea1a5a87d4f397650f
[ "MIT" ]
null
null
null
import os from src.utils import pathfinder root = pathfinder.find_root() # Data TRAIN_DATA_PATH = os.path.join(root, r'data/train_data.csv')
13.272727
60
0.753425
c17b073ea5bd137e6a1dd9120f771e0b2cb4d8c9
18,668
py
Python
gammal kod/Cartpole_main_v5.py
Monras/KEXinatorn
7191f2384440f50bede999c8f66d5b909dc4918f
[ "CC-BY-3.0" ]
1
2021-03-05T21:46:51.000Z
2021-03-05T21:46:51.000Z
gammal kod/Cartpole_main_v5.py
Monras/KEXinatorn
7191f2384440f50bede999c8f66d5b909dc4918f
[ "CC-BY-3.0" ]
null
null
null
gammal kod/Cartpole_main_v5.py
Monras/KEXinatorn
7191f2384440f50bede999c8f66d5b909dc4918f
[ "CC-BY-3.0" ]
4
2020-10-28T17:47:23.000Z
2021-11-24T22:08:08.000Z
# By Måns Rasmussen and Gustaf Holte """Simulates an inverted pendulum and balance it using Neural Network coding version 3: - Can load and save models and training data - Can train itself itteratevly with theta_limit getting narrower for each time as well as having different \ sc...
49.386243
214
0.595457
d3c361f9f76dac40c261aa917b84714218a71c19
12,308
py
Python
notebooks/python/cartopy_mapping_pyproj.py
Pearl-Ayem/ATSC_Notebook_Data
c075d166c235ac4e68a4b77750e02b2a5e77abd0
[ "MIT" ]
null
null
null
notebooks/python/cartopy_mapping_pyproj.py
Pearl-Ayem/ATSC_Notebook_Data
c075d166c235ac4e68a4b77750e02b2a5e77abd0
[ "MIT" ]
null
null
null
notebooks/python/cartopy_mapping_pyproj.py
Pearl-Ayem/ATSC_Notebook_Data
c075d166c235ac4e68a4b77750e02b2a5e77abd0
[ "MIT" ]
null
null
null
# coding: utf-8 # <h1>Table of Contents<span class="tocSkip"></span></h1> # <div class="toc"><ul class="toc-item"><li><span><a href="#Using-pyproj-with-cartopy" data-toc-modified-id="Using-pyproj-with-cartopy-1"><span class="toc-item-num">1&nbsp;&nbsp;</span>Using pyproj with cartopy</a></span><ul class="toc-item"><l...
34
3,820
0.699139
c8976f1cf20b3d0cc5a62458348d2a554fb53054
4,659
py
Python
FastRCNN/FastRCNN_config.py
jakkaj/CNTK_AMLWorkbench
27a496c665f2565e15450da8743807f528326d5e
[ "MIT" ]
6
2017-11-16T21:26:38.000Z
2020-05-04T21:06:10.000Z
FastRCNN/FastRCNN_config.py
jakkaj/CNTK_AMLWorkbench
27a496c665f2565e15450da8743807f528326d5e
[ "MIT" ]
null
null
null
FastRCNN/FastRCNN_config.py
jakkaj/CNTK_AMLWorkbench
27a496c665f2565e15450da8743807f528326d5e
[ "MIT" ]
2
2017-11-22T05:42:27.000Z
2018-12-31T11:18:26.000Z
# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE.md file in the project root # for full license information. # ============================================================================== import os import os.path as osp import numpy as np from easydict import EasyDict as...
39.151261
114
0.767976
32aae0b93240779f53c5f6af2e2bb969e6691b9f
14,983
py
Python
evaluation/precision_recall.py
ratschlab/circEWS
b2b1f00dac4f5d46856a2c7abe2ca4f12d4c612d
[ "MIT" ]
34
2020-03-17T16:42:00.000Z
2022-03-29T15:53:24.000Z
evaluation/precision_recall.py
ranxiao/circEWS
1e52880c268f8f763bbc16763131634ffc217153
[ "MIT" ]
3
2020-07-30T22:37:10.000Z
2021-08-10T00:02:30.000Z
evaluation/precision_recall.py
ranxiao/circEWS
1e52880c268f8f763bbc16763131634ffc217153
[ "MIT" ]
14
2020-04-22T01:13:54.000Z
2021-11-27T20:23:41.000Z
import matplotlib textsize = 12 matplotlib.rcParams['font.weight'] = 'bold' matplotlib.rcParams['font.size'] = textsize matplotlib.rcParams['axes.labelweight'] = 'bold' matplotlib.rcParams['axes.labelsize'] = textsize matplotlib.rcParams['axes.titleweight'] = 'bold' matplotlib.rcParams['axes.titlesize'] = textsize matp...
40.168901
132
0.602483
1d621c0c5bb3827a618f4c47b114309af65ae344
859
py
Python
sayi_siralama/sayi_siralama.py
EnesMercan/Python-General
1213e7dc2b6852f3c50121e712fafed6eb909dbc
[ "MIT" ]
null
null
null
sayi_siralama/sayi_siralama.py
EnesMercan/Python-General
1213e7dc2b6852f3c50121e712fafed6eb909dbc
[ "MIT" ]
null
null
null
sayi_siralama/sayi_siralama.py
EnesMercan/Python-General
1213e7dc2b6852f3c50121e712fafed6eb909dbc
[ "MIT" ]
null
null
null
number1 = 0 number2 = 0 number3 = 0 number1 = int(input("\nplease input a fucking number : \n")) number2 = int(input("\nplease input another number : \n")) number3 = int(input("\nplease input the last fucking number : \n")) if number1 > number2 : if number1 > number3 : print("\nthe biggest number is \t%6d...
30.678571
67
0.608847
565df45458dabb403a120b68b8e859bd6be039ee
6,627
py
Python
run_realtime.py
daisukelab/ML-KWS-for-MCU
8de2ef937f72a091aafee13a77c2a561c99fb847
[ "Apache-2.0" ]
null
null
null
run_realtime.py
daisukelab/ML-KWS-for-MCU
8de2ef937f72a091aafee13a77c2a561c99fb847
[ "Apache-2.0" ]
null
null
null
run_realtime.py
daisukelab/ML-KWS-for-MCU
8de2ef937f72a091aafee13a77c2a561c99fb847
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
33.811224
97
0.70092
0af8cca09c445d8209f9dc5b91583d6568942745
2,837
py
Python
idunn/utils/settings.py
amatissart/idunn
cae32024165a85ad99881c373a88ea5702631d71
[ "Apache-2.0" ]
null
null
null
idunn/utils/settings.py
amatissart/idunn
cae32024165a85ad99881c373a88ea5702631d71
[ "Apache-2.0" ]
null
null
null
idunn/utils/settings.py
amatissart/idunn
cae32024165a85ad99881c373a88ea5702631d71
[ "Apache-2.0" ]
null
null
null
import os import yaml from typing import Any from inspect import Parameter import logging from apistar import Component def _load_yaml_file(file): with open(file, 'r') as default: return yaml.load(default) class Settings(dict): """The type of settings dictionaries. Annotate your handler paramete...
33.77381
112
0.682411
02f8d0e2df70ad82c0841c87e76db1677064d76e
189
py
Python
1480-running-sum-of-1d-array/1480-running-sum-of-1d-array.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
1480-running-sum-of-1d-array/1480-running-sum-of-1d-array.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
1480-running-sum-of-1d-array/1480-running-sum-of-1d-array.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def runningSum(self, nums: List[int]) -> List[int]: output=[nums[0]] for num in nums[1:]: output.append(num+output[-1]) return output
31.5
55
0.560847
373c45c55c6b7c05ed018ee91cbbb07b39a23ca8
675
py
Python
src/HABApp/config/_conf_location.py
DerOetzi/HABApp
a123fbfa9928ebb3cda9a84f6984dcba593c8236
[ "Apache-2.0" ]
44
2018-12-13T08:46:44.000Z
2022-03-07T03:23:21.000Z
src/HABApp/config/_conf_location.py
DerOetzi/HABApp
a123fbfa9928ebb3cda9a84f6984dcba593c8236
[ "Apache-2.0" ]
156
2019-03-02T20:53:31.000Z
2022-03-23T13:13:58.000Z
src/HABApp/config/_conf_location.py
DerOetzi/HABApp
a123fbfa9928ebb3cda9a84f6984dcba593c8236
[ "Apache-2.0" ]
18
2019-03-08T07:13:21.000Z
2022-03-22T19:52:31.000Z
import logging.config import eascheduler import voluptuous from EasyCo import ConfigContainer, ConfigEntry log = logging.getLogger('HABApp.Config') class Location(ConfigContainer): latitude: float = ConfigEntry(default=0.0, validator=voluptuous.Any(float, int)) longitude: float = ConfigEntry(default=0.0, va...
32.142857
85
0.745185
bd48a981172c58261c35241410e55cb12eb0e25c
492
py
Python
windows_packages_gpu/matplotlib/_version.py
codeproject/DeepStack
d96368a3db1bc0266cb500ba3701d130834da0e6
[ "Apache-2.0" ]
353
2020-12-10T10:47:17.000Z
2022-03-31T23:08:29.000Z
windows_packages_gpu/matplotlib/_version.py
codeproject/DeepStack
d96368a3db1bc0266cb500ba3701d130834da0e6
[ "Apache-2.0" ]
80
2020-12-10T09:54:22.000Z
2022-03-30T22:08:45.000Z
windows_packages_gpu/matplotlib/_version.py
codeproject/DeepStack
d96368a3db1bc0266cb500ba3701d130834da0e6
[ "Apache-2.0" ]
63
2020-12-10T17:10:34.000Z
2022-03-28T16:27:07.000Z
# This file was generated by 'versioneer.py' (0.15) from # revision-control system data, or from the parent directory name of an # unpacked source archive. Distribution tarballs contain a pre-generated copy # of this file. import json import sys version_json = ''' { "dirty": false, "error": null, "fu...
22.363636
78
0.699187
894e841234d4007864df5bfdbe11548b815472a2
1,879
py
Python
examples/GenerateDealsWithDoubleDummyResults.py
BSalita/endplay
e99acff2e781e084f1982b336be7ee55b0417309
[ "MIT" ]
null
null
null
examples/GenerateDealsWithDoubleDummyResults.py
BSalita/endplay
e99acff2e781e084f1982b336be7ee55b0417309
[ "MIT" ]
null
null
null
examples/GenerateDealsWithDoubleDummyResults.py
BSalita/endplay
e99acff2e781e084f1982b336be7ee55b0417309
[ "MIT" ]
null
null
null
# Generate hands, with constraints, and their double dummy results. # Contains example code to: # 1. Calculate distribution points. # 2. Function to handle constraint. # 3. Specifying a predeal string. # 4. Generate multiple deals. # 5. Calculate double dummy for all deals. # 6. Create tuples of double dummy results f...
32.396552
163
0.705162
e199b92e33fa0d37fb986a0553201a6749e2c6c7
4,428
py
Python
bin/executor/staging_area.py
rohansachdeva1990/cassandra-db-loader
a368e225973ddccbf1f5462e596f65df65e22549
[ "MIT" ]
null
null
null
bin/executor/staging_area.py
rohansachdeva1990/cassandra-db-loader
a368e225973ddccbf1f5462e596f65df65e22549
[ "MIT" ]
1
2021-04-03T17:51:49.000Z
2021-04-03T17:51:49.000Z
bin/executor/staging_area.py
rohansachdeva1990/cassandra-db-loader
a368e225973ddccbf1f5462e596f65df65e22549
[ "MIT" ]
null
null
null
from Queue import Queue import threading from bin.executor.batch_generator import BatchGeneratorForSubscriberWithoutDependents, \ BatchGeneratorForSubscriberWithDependents, BatchGeneratorForDependents from bin.commons.key_saver import CustomerKeySaver class StagingAreaForSubscribersWithoutDependents: de...
44.28
168
0.653342
8aa967d269b9380b1a3bd727d806fbb4ba500a17
482
py
Python
python/qipy/test/projects/a_lib/setup.py
aldebaran/qibuild
efea6fa3744664348717fe5e8df708a3cf392072
[ "BSD-3-Clause" ]
51
2015-01-05T14:35:13.000Z
2021-07-27T06:46:59.000Z
python/qipy/test/projects/a_lib/setup.py
aldebaran/qibuild
efea6fa3744664348717fe5e8df708a3cf392072
[ "BSD-3-Clause" ]
104
2015-04-09T10:48:42.000Z
2020-09-16T16:33:29.000Z
python/qipy/test/projects/a_lib/setup.py
aldebaran/qibuild
efea6fa3744664348717fe5e8df708a3cf392072
[ "BSD-3-Clause" ]
46
2015-01-05T14:35:16.000Z
2022-02-13T20:39:36.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2012-2021 SoftBank Robotics. All rights reserved. # Use of this source code is governed by a BSD-style license (see the COPYING file). """ QiBuild """ from __future__ import absolute_import from __future__ import unicode_literals from __future__ import print...
25.368421
84
0.707469
cee3c12b5dcae8faad1baba1e08780966caaf1be
51
py
Python
matsuri_monitor/__init__.py
vancassa/matsuri-monitor
0ad639303dbc9098098a87743b4bd115e8a855f2
[ "MIT" ]
15
2020-05-14T09:05:41.000Z
2022-01-07T09:46:17.000Z
matsuri_monitor/__init__.py
uwupp/matsuri-monitor
e54adbda5cbbb99b312f1dd42f2aa4a0b9c358d5
[ "MIT" ]
2
2021-03-31T19:37:06.000Z
2021-12-13T20:36:35.000Z
matsuri_monitor/__init__.py
uwupp/matsuri-monitor
e54adbda5cbbb99b312f1dd42f2aa4a0b9c358d5
[ "MIT" ]
14
2020-03-30T13:06:27.000Z
2021-10-08T09:31:33.000Z
from matsuri_monitor._supervisor import Supervisor
25.5
50
0.901961
b19a79ce7d450362ddc51cbca77d4958d7a9e02e
3,299
py
Python
lulu/extractors/ixigua.py
fakegit/Lulu
940c9344df8aab6044ec603f8e78d145b0f9bad7
[ "MIT" ]
922
2018-01-17T09:22:26.000Z
2022-03-28T04:10:45.000Z
lulu/extractors/ixigua.py
fakegit/Lulu
940c9344df8aab6044ec603f8e78d145b0f9bad7
[ "MIT" ]
83
2018-01-16T08:33:55.000Z
2021-06-25T06:18:24.000Z
lulu/extractors/ixigua.py
fakegit/Lulu
940c9344df8aab6044ec603f8e78d145b0f9bad7
[ "MIT" ]
156
2018-02-03T06:24:14.000Z
2022-01-05T05:39:14.000Z
#!/usr/bin/env python import re import json import base64 import random import binascii from urllib import parse from lulu.common import ( match1, url_info, print_info, get_content, download_urls, ) __all__ = ['ixigua_download', 'ixigua_download_playlist'] site_info = '西瓜视频 ixigua.com' def get...
29.19469
79
0.641103
1772b03e9f8d7a0077aa0255f2ada98d6a02ca82
1,477
py
Python
rlmodels/nets/FullyConnected.py
nestorSag/rlmodels
c703acb1e7c10c1c65d7e96753f8a7a4a62880a1
[ "MIT" ]
2
2021-03-17T07:22:34.000Z
2021-12-22T19:46:16.000Z
rlmodels/nets/FullyConnected.py
nestorSag/rlmodels
c703acb1e7c10c1c65d7e96753f8a7a4a62880a1
[ "MIT" ]
1
2022-01-30T20:42:49.000Z
2022-01-30T20:42:49.000Z
rlmodels/nets/FullyConnected.py
nestorSag/rlmodels
c703acb1e7c10c1c65d7e96753f8a7a4a62880a1
[ "MIT" ]
2
2021-03-17T07:22:38.000Z
2021-03-22T20:06:10.000Z
import random import numpy as np import torch import torch.autograd as autograd import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import itertools class FullyConnected(nn.Module): """neural network with variable number and size of hidden layers. Uses ReLu for all of them and an allo...
29.54
168
0.709546
53074aab817987375f7f5cc55cbc64fc0f9cd9d4
1,201
py
Python
nipype/interfaces/diffusion_toolkit/tests/test_auto_SplineFilter.py
PAmcconnell/nipype
39fbd5411a844ce7c023964d3295eb7643b95af5
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/diffusion_toolkit/tests/test_auto_SplineFilter.py
PAmcconnell/nipype
39fbd5411a844ce7c023964d3295eb7643b95af5
[ "Apache-2.0" ]
2
2018-04-26T12:09:32.000Z
2018-04-27T06:36:49.000Z
nipype/interfaces/diffusion_toolkit/tests/test_auto_SplineFilter.py
PAmcconnell/nipype
39fbd5411a844ce7c023964d3295eb7643b95af5
[ "Apache-2.0" ]
1
2019-11-14T14:16:57.000Z
2019-11-14T14:16:57.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from ..postproc import SplineFilter def test_SplineFilter_inputs(): input_map = dict( args=dict(argstr='%s', ), environ=dict( nohash=True, usedefault=True, ), output_file=dict( argstr='%s', ...
28.595238
68
0.562864
ef4e61c466563650531f91cdc6d3e36843421594
20,189
py
Python
test/ibm/test_ibm_jobmanager.py
LucyXing/qiskit-ibm
eddb59519e7f501a619a4bfbf2a8112a2057f848
[ "Apache-2.0" ]
null
null
null
test/ibm/test_ibm_jobmanager.py
LucyXing/qiskit-ibm
eddb59519e7f501a619a4bfbf2a8112a2057f848
[ "Apache-2.0" ]
null
null
null
test/ibm/test_ibm_jobmanager.py
LucyXing/qiskit-ibm
eddb59519e7f501a619a4bfbf2a8112a2057f848
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
42.955319
96
0.616029
70dc0abc23d5e80ea44487b8c36cf755d15c0795
39,084
py
Python
Packs/TrustwaveSEG/Integrations/TrustwaveSEG/TrustwaveSEG.py
mazmat-panw/content
024a65c1dea2548e2637a9cbbe54966e9e34a722
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/TrustwaveSEG/Integrations/TrustwaveSEG/TrustwaveSEG.py
mazmat-panw/content
024a65c1dea2548e2637a9cbbe54966e9e34a722
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/TrustwaveSEG/Integrations/TrustwaveSEG/TrustwaveSEG.py
henry-sue-pa/content
043c6badfb4f9c80673cad9242fdea72efe301f7
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * import hashlib import time from datetime import datetime import dateparser import requests import urllib3 # Disable insecure warnings urllib3.disable_warnings() DATE_FORMAT = '%d/%m/%Y, %H:%M:%S' class Client(BaseC...
40.797495
113
0.578498
a575e717b622807eadb136fccfa522891cd67dd1
144
py
Python
codigo/Live30/_chainmap.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
572
2018-04-03T03:17:08.000Z
2022-03-31T19:05:32.000Z
codigo/Live30/_chainmap.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
176
2018-05-18T15:56:16.000Z
2022-03-28T20:39:07.000Z
codigo/Live30/_chainmap.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
140
2018-04-18T13:59:11.000Z
2022-03-29T00:43:49.000Z
from collections import ChainMap # problema: Unir dois dicionário a = {1: 'a', 2: 'b', 3: 'c'} b = {2: 'x', 3: 'z', 4: 'w'} c = ChainMap(a, b)
20.571429
32
0.555556
c1666dd3c7490494522ab4c33080f262d9b0ce02
2,464
py
Python
aphla/contrib/rampgenerator/loaders/fullramploader.py
NSLS-II/aphla
ceb5410dc836a8fb16321b6dc5e10d442be765c5
[ "BSD-3-Clause" ]
null
null
null
aphla/contrib/rampgenerator/loaders/fullramploader.py
NSLS-II/aphla
ceb5410dc836a8fb16321b6dc5e10d442be765c5
[ "BSD-3-Clause" ]
1
2020-02-17T18:56:18.000Z
2020-02-20T17:06:20.000Z
aphla/contrib/rampgenerator/loaders/fullramploader.py
NSLS-II/aphla
ceb5410dc836a8fb16321b6dc5e10d442be765c5
[ "BSD-3-Clause" ]
1
2021-03-08T16:07:11.000Z
2021-03-08T16:07:11.000Z
from __future__ import print_function, division, absolute_import from ramploader import RampLoader from ..images.fullrampimage import FullRampImage from ..core.defaults import MAX_TIME_SLICES # catools try: from cothread.catools import caput, caget, connect _NO_CATOOLS_ = False except ImportError: if __d...
32.853333
117
0.64651
0f69fad2ea4197985fb9463e3d5a6036bf5359be
1,919
py
Python
built-in/TensorFlow/Research/reinforcement-learning/ModelZoo_PPO_TensorFlow/rl/xt/algorithm/qmix/transforms.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
null
null
null
built-in/TensorFlow/Research/reinforcement-learning/ModelZoo_PPO_TensorFlow/rl/xt/algorithm/qmix/transforms.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
3
2021-03-31T20:15:40.000Z
2022-02-09T23:50:46.000Z
built-in/TensorFlow/Research/reinforcement-learning/ModelZoo_QMIX_TensorFlow/xt/algorithm/qmix/transforms.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
null
null
null
"""transform utils for qmix algorithm.""" import numpy as np import tensorflow as tf class Transform: """transform base class""" def transform(self, tensor): raise NotImplementedError def infer_output_info(self, vshape_in, dtype_in): raise NotImplementedError class OneHotTf(Transform):...
24.922078
67
0.602918
b97932e5a339c78c4e1129f1f5546a5f5b1e2dd0
21,633
py
Python
lib/googlecloudsdk/third_party/apis/dataproc/v1/dataproc_v1_client.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/third_party/apis/dataproc/v1/dataproc_v1_client.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/third_party/apis/dataproc/v1/dataproc_v1_client.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
1
2020-07-24T20:13:29.000Z
2020-07-24T20:13:29.000Z
"""Generated client library for dataproc version v1.""" # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.py import base_api from googlecloudsdk.third_party.apis.dataproc.v1 import dataproc_v1_messages as messages class DataprocV1(base_api.BaseApiClient): """Generated client li...
42.251953
605
0.697499
a58d576260aca31bb3e607d45bf80334fca1ecf7
9,929
py
Python
supervisor/medusa/rpc_server.py
LexMachinaInc/supervisor
65221682eb2590b2de504586f5736d55327e81d6
[ "ZPL-2.1" ]
2
2017-09-17T21:24:44.000Z
2019-08-26T03:02:43.000Z
supervisor/medusa/rpc_server.py
LexMachinaInc/supervisor
65221682eb2590b2de504586f5736d55327e81d6
[ "ZPL-2.1" ]
null
null
null
supervisor/medusa/rpc_server.py
LexMachinaInc/supervisor
65221682eb2590b2de504586f5736d55327e81d6
[ "ZPL-2.1" ]
3
2021-02-23T08:36:03.000Z
2021-02-23T08:36:54.000Z
# -*- Mode: Python -*- # Copyright 1999, 2000 by eGroups, Inc. # # All Rights Reserved # # Permission to use, copy, modify, and distribute this software and # its documentation for any purpose and without fee is hereby # granted, provided that the above copyright notice appear in all # copies a...
30.739938
86
0.538926
71179deb5c3fff6c175ad3bb98c694140a45798c
32,854
py
Python
tech_project/lib/python2.7/site-packages/cms/tests/test_rendering.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
5
2015-03-08T08:46:58.000Z
2021-11-16T12:34:15.000Z
cms/tests/test_rendering.py
thisisalamin/django-cms
eeb1e4712b3866e243daf800c142e2199e4be9df
[ "BSD-3-Clause" ]
102
2020-08-11T23:57:18.000Z
2022-03-12T00:46:00.000Z
cms/tests/test_rendering.py
thisisalamin/django-cms
eeb1e4712b3866e243daf800c142e2199e4be9df
[ "BSD-3-Clause" ]
4
2019-01-26T09:58:37.000Z
2019-06-24T08:12:43.000Z
# -*- coding: utf-8 -*- from django.core.cache import cache from django.test.utils import override_settings from sekizai.context import SekizaiContext from cms import plugin_rendering from cms.api import create_page, add_plugin from cms.cache.placeholder import get_placeholder_cache from cms.models import Page, Place...
44.638587
127
0.623486
f23349e20ff55bedb9031bdc1a6293e721ee8054
2,657
py
Python
sdk/keyvault/azure-keyvault-certificates/samples/contacts.py
lmcarreiro/azure-sdk-for-python
0bde943383725320eaaa1408fa6264fb0cd0febf
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault-certificates/samples/contacts.py
lmcarreiro/azure-sdk-for-python
0bde943383725320eaaa1408fa6264fb0cd0febf
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault-certificates/samples/contacts.py
lmcarreiro/azure-sdk-for-python
0bde943383725320eaaa1408fa6264fb0cd0febf
[ "MIT" ]
null
null
null
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import os from azure.identity import DefaultAzureCredential from azure.keyvault.certificates import CertificateClient, CertificateContact from azure.core.exceptions impo...
43.557377
125
0.646218
1f50cbc7f0b43bfd620b67ecee1bee66c3613b49
4,951
py
Python
src/data_processing/mask_rcnn_segmentation.py
claudius-kienle/self-supervised-depth-denoising
4dffb30e8ef5022ef665825d26f45f67bf712cfd
[ "MIT" ]
2
2021-12-02T15:06:28.000Z
2021-12-03T09:48:32.000Z
src/data_processing/mask_rcnn_segmentation.py
claudius-kienle/self-supervised-depth-denoising
4dffb30e8ef5022ef665825d26f45f67bf712cfd
[ "MIT" ]
23
2022-02-24T09:17:03.000Z
2022-03-21T16:57:58.000Z
src/data_processing/mask_rcnn_segmentation.py
alr-internship/self-supervised-depth-denoising
4dffb30e8ef5022ef665825d26f45f67bf712cfd
[ "MIT" ]
null
null
null
from argparse import ArgumentParser from ctypes import resize import os import cv2 import numpy as np from tqdm import tqdm os.environ["KERAS_BACKEND"] = "tensorflow" import sys ROOT_DIR = os.path.abspath(__file__ + "/../../../") SRC_DIR = os.path.join(ROOT_DIR, "src") sys.path.append(SRC_DIR) from dataset.dataset_...
42.316239
122
0.683498
9b33de0fdca2d92ac9bb6786c0a79d6e126f7f26
2,824
py
Python
rpg/generator.py
happy-mammal/password-zilla
9cf39803fbe1107a97e7324c6c1ecfeb52c66d40
[ "MIT" ]
null
null
null
rpg/generator.py
happy-mammal/password-zilla
9cf39803fbe1107a97e7324c6c1ecfeb52c66d40
[ "MIT" ]
null
null
null
rpg/generator.py
happy-mammal/password-zilla
9cf39803fbe1107a97e7324c6c1ecfeb52c66d40
[ "MIT" ]
null
null
null
import random class RandomPasswordGenerator: res = [] length = 0 isUnique = False def definedGeneration(self,strength): picks=[] uniques=set() password="" if(self.isUnique): while(len(uniques)!=self.length): uniques.add...
33.619048
98
0.581445
20fe393fe5e6792c2c1993f847c7d64ed5d3cd64
760
py
Python
h/assets.py
pombredanne/h
9c4c2dc0d53ed5bed5183936c24b4c27b23070b4
[ "BSD-2-Clause" ]
2,103
2015-01-07T12:47:49.000Z
2022-03-29T02:38:25.000Z
h/assets.py
pombredanne/h
9c4c2dc0d53ed5bed5183936c24b4c27b23070b4
[ "BSD-2-Clause" ]
4,322
2015-01-04T17:18:01.000Z
2022-03-31T17:06:02.000Z
h/assets.py
admariner/h
25ef1b8d94889df86ace5a084f1aa0effd9f4e25
[ "BSD-2-Clause" ]
389
2015-01-24T04:10:02.000Z
2022-03-28T08:00:16.000Z
"""View for serving static assets under `/assets`.""" import importlib_resources from h_assets import Environment, assets_view from pyramid.settings import asbool def includeme(config): auto_reload = asbool(config.registry.settings.get("h.reload_assets", False)) h_files = importlib_resources.files("h") ...
31.666667
80
0.719737
62df64e9b20c4a983d786c413aca8baa9c5d0781
4,702
py
Python
pnf-wavenet/audio.py
ishine/pnf-sampling
d92a6b82c2abd8ce26aae6a470cd78f686c7282a
[ "MIT" ]
22
2021-05-19T05:11:00.000Z
2022-02-07T00:15:20.000Z
pnf-wavenet/audio.py
ishine/pnf-sampling
d92a6b82c2abd8ce26aae6a470cd78f686c7282a
[ "MIT" ]
2
2021-05-28T03:38:00.000Z
2022-03-01T21:51:06.000Z
pnf-wavenet/audio.py
ishine/pnf-sampling
d92a6b82c2abd8ce26aae6a470cd78f686c7282a
[ "MIT" ]
4
2021-05-19T23:19:51.000Z
2021-07-19T12:59:18.000Z
import librosa import librosa.filters import numpy as np from hparams import hparams from scipy.io import wavfile from nnmnkwii import preprocessing as P def low_cut_filter(x, fs, cutoff=70): """APPLY LOW CUT FILTER. https://github.com/kan-bayashi/PytorchWaveNetVocoder Args: x (ndarray): Wavefor...
27.022989
83
0.661208
088fde1b379c4266a9d909a1a0a87161fb7f2d03
880
py
Python
client/app.py
wezzyofficial/discord_soft
1fdbeffa2b4511a95e147fd7bac09a83d1546a7b
[ "MIT" ]
null
null
null
client/app.py
wezzyofficial/discord_soft
1fdbeffa2b4511a95e147fd7bac09a83d1546a7b
[ "MIT" ]
null
null
null
client/app.py
wezzyofficial/discord_soft
1fdbeffa2b4511a95e147fd7bac09a83d1546a7b
[ "MIT" ]
null
null
null
from engine import console def menu(): console.log(text='(Client) доступные варианты работы:') console.log('(Client) 1. Синхронизировать аккаунты') console.log('(Client) 2. Синхронизировать прокси') console.log('(Client) 3. Синхронизировать логи') console.log('(Client) 4. Наблюдать за процессом')...
30.344828
98
0.638636
a81b5ae2f40c4c4f8389b051630a1df2722439e9
2,516
py
Python
python/seldon_deploy_sdk/models/label_selector_operator.py
adriangonz/seldon-deploy-sdk
c5504838630a87053387cec57ec2e1e7251971e2
[ "Apache-2.0" ]
6
2021-02-18T14:37:54.000Z
2022-01-13T13:27:43.000Z
python/seldon_deploy_sdk/models/label_selector_operator.py
adriangonz/seldon-deploy-sdk
c5504838630a87053387cec57ec2e1e7251971e2
[ "Apache-2.0" ]
14
2021-01-04T16:32:03.000Z
2021-12-13T17:53:59.000Z
python/seldon_deploy_sdk/models/label_selector_operator.py
adriangonz/seldon-deploy-sdk
c5504838630a87053387cec57ec2e1e7251971e2
[ "Apache-2.0" ]
7
2021-03-17T09:05:55.000Z
2022-01-05T10:39:56.000Z
# coding: utf-8 """ Seldon Deploy API API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 OpenAPI spec version: v1alpha1 Contact: hello@seldon.io Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint...
28.590909
122
0.56399
a4bd5d39f8cdb883f40c3c6561f755f96d86b745
72
py
Python
Math/411/411-148.py
anaconda121/School
eefc30a780171082dae00591e2a7bdd8ad1a6d68
[ "MIT" ]
1
2022-03-10T02:18:19.000Z
2022-03-10T02:18:19.000Z
Math/411/411-148.py
anaconda121/School
eefc30a780171082dae00591e2a7bdd8ad1a6d68
[ "MIT" ]
null
null
null
Math/411/411-148.py
anaconda121/School
eefc30a780171082dae00591e2a7bdd8ad1a6d68
[ "MIT" ]
null
null
null
ans = 1 m = -1 for i in range((99999)): ans = 1 + m * ans print(ans)
10.285714
24
0.527778
6071570371249e2e059c7d5096990d9ff06f43fc
935
py
Python
test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/models/dog.py
iscai-msft/autorest.python
a9f38dd762fbc046ce6197bfabea2f56045d2957
[ "MIT" ]
null
null
null
test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/models/dog.py
iscai-msft/autorest.python
a9f38dd762fbc046ce6197bfabea2f56045d2957
[ "MIT" ]
null
null
null
test/vanilla/Expected/AcceptanceTests/BodyComplex/bodycomplex/models/dog.py
iscai-msft/autorest.python
a9f38dd762fbc046ce6197bfabea2f56045d2957
[ "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 ...
26.714286
76
0.500535
6dbd9a33d03d84313c2d5714dfb9e6cfb31ab9e7
9,492
py
Python
common/net_builder.py
scotty1373/Torcs_PPO
864e30e7d02bef852907cd2abb9bba7a0630b53a
[ "MIT" ]
3
2022-01-07T09:04:42.000Z
2022-02-06T16:32:56.000Z
common/net_builder.py
scotty1373/Torcs_PPO
864e30e7d02bef852907cd2abb9bba7a0630b53a
[ "MIT" ]
null
null
null
common/net_builder.py
scotty1373/Torcs_PPO
864e30e7d02bef852907cd2abb9bba7a0630b53a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import time import torch from torch import nn from torch.distributions import Normal from itertools import chain class Common(nn.Module): def __init__(self, in_channel): super(Common, self).__init__() self.Conv1 = nn.Conv2d(in_channels=in_channel, out_channels=32, ...
42.950226
104
0.599768
4b5c5068757bebf829822632199a27ce5ba05975
2,152
py
Python
metadata-ingestion/src/datahub/ingestion/api/source.py
buggythepirate/datahub
cd8acd23cf0a7aeae3d34c7d92a140eb7b466ced
[ "Apache-2.0" ]
null
null
null
metadata-ingestion/src/datahub/ingestion/api/source.py
buggythepirate/datahub
cd8acd23cf0a7aeae3d34c7d92a140eb7b466ced
[ "Apache-2.0" ]
1
2022-02-02T17:26:16.000Z
2022-02-02T17:26:16.000Z
metadata-ingestion/src/datahub/ingestion/api/source.py
liftoffio/datahub
ff163059587a137a22fa0c655f568a40eda44236
[ "Apache-2.0" ]
1
2022-01-27T04:44:22.000Z
2022-01-27T04:44:22.000Z
import platform import sys from abc import ABCMeta, abstractmethod from dataclasses import dataclass, field from typing import Dict, Generic, Iterable, List, TypeVar import datahub from datahub.ingestion.api.closeable import Closeable from datahub.ingestion.api.common import PipelineContext, RecordEnvelope, WorkUnit f...
30.309859
85
0.707249
41f00d2cd3da853f3a0785cedf7e76b360dc2538
18,117
py
Python
PyAnalysisTools/PlottingUtils/EventComparisonPlotter.py
morgenst/PyAnalysisTools
f3b1f89870e7bbae1549c228a56d2c36bbba7af3
[ "MIT" ]
null
null
null
PyAnalysisTools/PlottingUtils/EventComparisonPlotter.py
morgenst/PyAnalysisTools
f3b1f89870e7bbae1549c228a56d2c36bbba7af3
[ "MIT" ]
null
null
null
PyAnalysisTools/PlottingUtils/EventComparisonPlotter.py
morgenst/PyAnalysisTools
f3b1f89870e7bbae1549c228a56d2c36bbba7af3
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import division from builtins import next from builtins import str from past.utils import old_div from builtins import object import collections from copy import copy import pandas as pd import PyAnalysisTools.PlottingUtils.Formatting as FM import PyAnalysisTools...
47.302872
117
0.607496
b45caab8660f170c5933c584b2cb35d9b91be6c0
172,183
py
Python
sympy/polys/polytools.py
pbrady/sympy
7163137e22fbefbb645147a15147b26dad220d49
[ "BSD-3-Clause" ]
null
null
null
sympy/polys/polytools.py
pbrady/sympy
7163137e22fbefbb645147a15147b26dad220d49
[ "BSD-3-Clause" ]
null
null
null
sympy/polys/polytools.py
pbrady/sympy
7163137e22fbefbb645147a15147b26dad220d49
[ "BSD-3-Clause" ]
null
null
null
"""User-friendly public interface to polynomial functions. """ from __future__ import print_function, division from sympy.core import ( S, Basic, Expr, I, Integer, Add, Mul, Dummy, Tuple ) from sympy.core.mul import _keep_coeff from sympy.core.symbol import Symbol from sympy.core.basic import preorder_traversal ...
25.302425
104
0.505288
a77bc30e54ea73edb1570b928cc30163da630de7
237
py
Python
deploy/virenv/lib/python2.7/site-packages/haystack/allocators/__init__.py
wangvictor2012/liuwei
0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1
[ "BSD-3-Clause" ]
null
null
null
deploy/virenv/lib/python2.7/site-packages/haystack/allocators/__init__.py
wangvictor2012/liuwei
0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1
[ "BSD-3-Clause" ]
null
null
null
deploy/virenv/lib/python2.7/site-packages/haystack/allocators/__init__.py
wangvictor2012/liuwei
0a06f8fd56d78162f81f1e7e7def7bfdeb4472e1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2011 Loic Jaquemet loic.jaquemet+python@gmail.com # __author__ = "Loic Jaquemet loic.jaquemet+python@gmail.com" __doc__ = """ Structures used in haystack """ all = [ ]
15.8
65
0.670886
3d3c0c69e7cd36c838a830a558e7d0a0c3c84fd1
878
py
Python
userbot/core/vcbot/ytdl.py
Cloder07/Gojo-userbot
38b687b129f81c66e27c537e6501987143a76760
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2022-03-27T17:56:08.000Z
2022-03-27T17:56:08.000Z
userbot/core/vcbot/ytdl.py
Cloder07/Gojo-userbot
38b687b129f81c66e27c537e6501987143a76760
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/core/vcbot/ytdl.py
Cloder07/Gojo-userbot
38b687b129f81c66e27c537e6501987143a76760
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2022-03-25T08:16:40.000Z
2022-03-25T08:16:40.000Z
# Copyright (c) 2022 Man-Userbot # Credits: @mrismanaziz # This file is a part of < https://github.com/mrismanaziz/Man-Userbot/ > # from youtubesearchpython import VideosSearch from userbot import LOGS from userbot.utils import bash def ytsearch(query: str): try: search = VideosSearch(query, limit=1).r...
25.823529
72
0.611617
0c7528cdd909663473930f0a54e21bcf6edbe4ee
1,983
py
Python
rpython/jit/backend/arm/detect.py
jptomo/pypy-lang-scheme
55edb2cec69d78f86793282a4566fcbc1ef9fcac
[ "MIT" ]
34
2015-07-09T04:53:27.000Z
2021-07-19T05:22:27.000Z
rpython/jit/backend/arm/detect.py
jptomo/pypy-lang-scheme
55edb2cec69d78f86793282a4566fcbc1ef9fcac
[ "MIT" ]
6
2015-05-30T17:20:45.000Z
2017-06-12T14:29:23.000Z
rpython/jit/backend/arm/detect.py
jptomo/pypy-lang-scheme
55edb2cec69d78f86793282a4566fcbc1ef9fcac
[ "MIT" ]
11
2015-09-07T14:26:08.000Z
2020-04-10T07:20:41.000Z
import os from rpython.translator.tool.cbuild import ExternalCompilationInfo from rpython.rtyper.tool import rffi_platform from rpython.rlib.clibffi import FFI_DEFAULT_ABI, FFI_SYSV, FFI_VFP from rpython.translator.platform import CompilationError from rpython.rlib.debug import debug_print, debug_start, debug_stop ec...
30.045455
73
0.644982
7e0abb190372ed705317a98ec94e5a0e6f271a19
994
py
Python
saleor/core/permissions.py
nobism/saleor
a199bee5ef8cb2ecd1d7fd4bcc708f3b4903aa2d
[ "BSD-3-Clause" ]
3
2018-06-14T22:52:38.000Z
2019-01-24T03:48:46.000Z
saleor/core/permissions.py
nobism/saleor
a199bee5ef8cb2ecd1d7fd4bcc708f3b4903aa2d
[ "BSD-3-Clause" ]
null
null
null
saleor/core/permissions.py
nobism/saleor
a199bee5ef8cb2ecd1d7fd4bcc708f3b4903aa2d
[ "BSD-3-Clause" ]
1
2018-06-29T10:54:09.000Z
2018-06-29T10:54:09.000Z
from django.contrib.auth.models import Permission MODELS_PERMISSIONS = [ 'menu.view_menu', 'menu.edit_menu', 'order.view_order', 'order.edit_order', 'page.view_page', 'page.edit_page', 'product.view_category', 'product.edit_category', 'product.view_product', 'product.edit_produc...
26.157895
79
0.681087
d07339f3fec36acd7c2971bf286533a4277a3345
15,257
py
Python
tests/test_scheduler.py
FakeEmperor/rq
c481792c5c7816061ec07170fc9b47e2d638b8ce
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_scheduler.py
FakeEmperor/rq
c481792c5c7816061ec07170fc9b47e2d638b8ce
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_scheduler.py
FakeEmperor/rq
c481792c5c7816061ec07170fc9b47e2d638b8ce
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import os from datetime import datetime, timedelta, timezone from multiprocessing import Process import mock from rq import Queue from rq.compat import PY2 from rq.exceptions import NoSuchJobError from rq.job import Job, Retry from rq.registry import FinishedJobRegistry, ScheduledJobRegistry from rq.scheduler import R...
43.09887
102
0.669004
4896bffc94a0cb963182f10726d0af9dbaa8d46e
926
py
Python
src/apps/surveys20/migrations/0004_product_new_type.py
COAStatistics/alss
e1b14cb13de7b8455fa6835587cb1ceb16e4595c
[ "MIT" ]
null
null
null
src/apps/surveys20/migrations/0004_product_new_type.py
COAStatistics/alss
e1b14cb13de7b8455fa6835587cb1ceb16e4595c
[ "MIT" ]
81
2018-09-04T13:16:02.000Z
2022-03-11T23:20:40.000Z
src/apps/surveys20/migrations/0004_product_new_type.py
COAStatistics/alss
e1b14cb13de7b8455fa6835587cb1ceb16e4595c
[ "MIT" ]
4
2018-08-21T22:17:59.000Z
2019-03-15T01:14:29.000Z
# Generated by Django 2.2.14 on 2020-08-15 09:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('surveys20', '0003_auto_20200527_1035'), ] operations = [ migrations.AddField( model_name='product', name='new_type'...
31.931034
128
0.579914
6939e73bffbe55bb96b1cfbcff74f3fbc7388db3
4,533
py
Python
Phoenix/features/google_calendar.py
DevangML/Phoenix-The-Virtual-Assistant
3fa6949216c49f88717b7c5eaedaf84441029347
[ "BSD-3-Clause" ]
null
null
null
Phoenix/features/google_calendar.py
DevangML/Phoenix-The-Virtual-Assistant
3fa6949216c49f88717b7c5eaedaf84441029347
[ "BSD-3-Clause" ]
null
null
null
Phoenix/features/google_calendar.py
DevangML/Phoenix-The-Virtual-Assistant
3fa6949216c49f88717b7c5eaedaf84441029347
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import datetime, pytz, pyttsx3, pickle, os.path from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request MONTHS = ["january", "february", "march", "april", "may", "june", "july", "august",...
34.082707
119
0.585484
d834745a5e80763763a617dc85502a1827cb7611
401
py
Python
src/presquel/__init__.py
groboclown/presquel
83a099729678a1d0a5e46ac55f07c772a5410e34
[ "CC0-1.0" ]
null
null
null
src/presquel/__init__.py
groboclown/presquel
83a099729678a1d0a5e46ac55f07c772a5410e34
[ "CC0-1.0" ]
null
null
null
src/presquel/__init__.py
groboclown/presquel
83a099729678a1d0a5e46ac55f07c772a5410e34
[ "CC0-1.0" ]
null
null
null
__author__ = 'Groboclown' import sys req_version = (3, 1) cur_version = sys.version_info assert cur_version >= req_version, "You must run this with Python 3" from .parser import load_package from .schemagen import (get_generator, BranchUpgradeAnalysis) from . import (model, codegen, schemagen, parser...
22.277778
69
0.710723
6bc424e324341ebd1f017c6b8bdd1f31db6c3b02
2,954
py
Python
code/tests/test_S4_SR_class.py
claudiavr/AIS
5a9b9db8377efbfba3e8bfc8bf126845ef6e9aea
[ "MIT" ]
null
null
null
code/tests/test_S4_SR_class.py
claudiavr/AIS
5a9b9db8377efbfba3e8bfc8bf126845ef6e9aea
[ "MIT" ]
null
null
null
code/tests/test_S4_SR_class.py
claudiavr/AIS
5a9b9db8377efbfba3e8bfc8bf126845ef6e9aea
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """SPARC4 spectrum response tests. This script tests the operation of the SPARC4 spectrum response classes. """ from S4_SR import (Abstract_SPARC4_Spectral_Response, Concrete_SPARC4_Spectral_Response_1, Concrete_SPARC4_Spectral_Response_2, ...
23.259843
72
0.587678
8e983814c4d4f18baea340c3739c7eea9dfc3de3
3,507
py
Python
src/main/python/daggit/core/nodes/keras.py
aleenaraj/sunbird-ml-workbench
e971357c8030200cfa645e0cc31ffcfc3916d9d9
[ "MIT" ]
14
2019-06-07T11:32:49.000Z
2021-11-14T18:34:31.000Z
src/main/python/daggit/core/nodes/keras.py
aleenaraj/sunbird-ml-workbench
e971357c8030200cfa645e0cc31ffcfc3916d9d9
[ "MIT" ]
16
2019-06-28T12:14:29.000Z
2022-03-12T00:17:08.000Z
src/main/python/daggit/core/nodes/keras.py
aleenaraj/sunbird-ml-workbench
e971357c8030200cfa645e0cc31ffcfc3916d9d9
[ "MIT" ]
47
2019-03-06T06:54:41.000Z
2021-05-31T16:59:45.000Z
import importlib import pandas as pd from daggit.core.base.factory import BaseOperator from daggit.core.io.io import Pandas_Dataframe, Pickle_Obj, File_Txt from daggit.core.nodes.registry import get_node_callable def baseline_model_svm(): from keras.models import Sequential from keras.layers import Dense, Dro...
35.07
74
0.646421
975413966d4c0b83d55d34ec10cd43aceb616a78
640
py
Python
prototype/anissa.py
thecsw/sandissa-dev
85e37c90127a0b2e0834f98de066b0d183c3c3cb
[ "MIT" ]
1
2021-05-24T18:43:42.000Z
2021-05-24T18:43:42.000Z
prototype/anissa.py
thecsw/sandissa-dev
85e37c90127a0b2e0834f98de066b0d183c3c3cb
[ "MIT" ]
null
null
null
prototype/anissa.py
thecsw/sandissa-dev
85e37c90127a0b2e0834f98de066b0d183c3c3cb
[ "MIT" ]
1
2021-07-13T20:19:24.000Z
2021-07-13T20:19:24.000Z
from flask import Flask, request, current_app import RPi.GPIO as GPIO LED_OUT = 11 app = Flask(__name__) @app.route('/', methods = ['GET']) def index(): return current_app.send_static_file("index.html") @app.route('/turn_on', methods = ['POST']) def turnOn(): GPIO.output(LED_OUT, GPIO.HIGH) return "succ...
19.393939
53
0.642188
1bdc746f54dc18052e6a32e1b77a76ae6ffb9521
5,321
py
Python
midca/examples/cogsci_demo_mortar_construction.py
COLAB2/midca
18d6b13e3d6b0d980cd3453196e82fad7302e79b
[ "MIT" ]
12
2018-01-23T01:31:33.000Z
2022-02-03T04:47:10.000Z
midca/examples/cogsci_demo_mortar_construction.py
COLAB2/midca
18d6b13e3d6b0d980cd3453196e82fad7302e79b
[ "MIT" ]
32
2017-11-02T20:58:03.000Z
2021-04-15T18:59:27.000Z
midca/examples/cogsci_demo_mortar_construction.py
COLAB2/midca
18d6b13e3d6b0d980cd3453196e82fad7302e79b
[ "MIT" ]
5
2017-12-01T17:28:01.000Z
2020-03-18T14:43:32.000Z
#!/usr/bin/env python import midca from midca.worldsim import domainread, stateread from midca.modules.perceive import PerfectObserver from midca.modules.plan import PyHopPlanner from midca.modules.intend import SimpleIntend_construction from midca.modules.act import SimpleAct from midca.modules.interpret import TFFire...
43.260163
337
0.77617
5f3903cfa65ddc4297b0f433657826a19fab226c
3,482
py
Python
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_agent_extension_api.py
ISCAS-VDI/neutron-base
687f03d7131839ae8bc324d5823194d1245bb050
[ "Apache-2.0" ]
null
null
null
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_agent_extension_api.py
ISCAS-VDI/neutron-base
687f03d7131839ae8bc324d5823194d1245bb050
[ "Apache-2.0" ]
3
2015-02-27T00:48:55.000Z
2015-04-21T05:29:37.000Z
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_agent_extension_api.py
ISCAS-VDI/neutron-base
687f03d7131839ae8bc324d5823194d1245bb050
[ "Apache-2.0" ]
3
2015-02-26T00:55:17.000Z
2020-03-01T17:05:40.000Z
# Copyright 2016 Intel 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 requir...
34.475248
78
0.674325
2c94e5757a1d13a655e913b83d211006bb756c3f
4,606
py
Python
zenml/components/tokenizer/executor.py
ORG-MARS/zenml
8ee9a9264397d4e24a34c906e34a443782b189d3
[ "Apache-2.0" ]
1
2021-08-13T03:07:53.000Z
2021-08-13T03:07:53.000Z
zenml/components/tokenizer/executor.py
ORG-MARS/zenml
8ee9a9264397d4e24a34c906e34a443782b189d3
[ "Apache-2.0" ]
null
null
null
zenml/components/tokenizer/executor.py
ORG-MARS/zenml
8ee9a9264397d4e24a34c906e34a443782b189d3
[ "Apache-2.0" ]
null
null
null
# Copyright (c) maiot GmbH 2021. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.705882
76
0.65393
056769b3ffe60575ac3bb5ec1e6e550ff94956f2
520
py
Python
digits_multiplication.py
lisprolog/python
3d2acea2721873d57418b9158ed3bed6e160eb16
[ "BSD-3-Clause" ]
null
null
null
digits_multiplication.py
lisprolog/python
3d2acea2721873d57418b9158ed3bed6e160eb16
[ "BSD-3-Clause" ]
null
null
null
digits_multiplication.py
lisprolog/python
3d2acea2721873d57418b9158ed3bed6e160eb16
[ "BSD-3-Clause" ]
null
null
null
# multiply digits of number def checkio(number): if (number < 1 or number > 10**6 ): return "Error" text = str(number); text = text.split('0'); text = ''.join(text); result = 1; for ch in text: result *= int(ch); return result #These "asserts" using only for s...
20.8
80
0.594231
da471bdb5b6735f81db27d54424ab6a15bf5a127
1,662
py
Python
src/src/urls.py
HershyKing/MealPlannerApp
d654ea71bb6dd79efb7a03d432b4a6af2bb06250
[ "MIT" ]
1
2018-02-19T00:46:39.000Z
2018-02-19T00:46:39.000Z
src/src/urls.py
HershyKing/FreeRangeHuman
d654ea71bb6dd79efb7a03d432b4a6af2bb06250
[ "MIT" ]
null
null
null
src/src/urls.py
HershyKing/FreeRangeHuman
d654ea71bb6dd79efb7a03d432b4a6af2bb06250
[ "MIT" ]
null
null
null
"""src URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based ...
40.536585
124
0.711191
7d49bf6a9ae0b377863a9cdcf786318d50f55723
4,155
py
Python
rename_subs/rename_subs.py
Namdrib/rename-subs
968212af29c24e91640cd566dfb2e3a01ea9cc45
[ "MIT" ]
null
null
null
rename_subs/rename_subs.py
Namdrib/rename-subs
968212af29c24e91640cd566dfb2e3a01ea9cc45
[ "MIT" ]
null
null
null
rename_subs/rename_subs.py
Namdrib/rename-subs
968212af29c24e91640cd566dfb2e3a01ea9cc45
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Created on 19 Feb. 2018 @author: Namdrib """ import argparse import glob import re import subprocess def filename_without_extension(filename): return filename[:filename.rfind('.')] def get_extension(filename): return filename[filename.rfind('.'):] # Given an input scene release...
29.468085
138
0.60698
15ca172bf53f2e6c37bfab5620cefbfa6e1f856f
896
py
Python
scripts/addons/animation_nodes/nodes/geometry/point_list_normal.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2020-04-16T22:12:40.000Z
2022-01-22T17:18:45.000Z
scripts/addons/animation_nodes/nodes/geometry/point_list_normal.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
null
null
null
scripts/addons/animation_nodes/nodes/geometry/point_list_normal.py
Tilapiatsu/blender-custom_conf
05592fedf74e4b7075a6228b8448a5cda10f7753
[ "MIT" ]
2
2019-05-16T04:01:09.000Z
2020-08-25T11:42:26.000Z
import bpy from ... base_types import AnimationNode class PointListNormalNode(bpy.types.Node, AnimationNode): bl_idname = "an_PointListNormalNode" bl_label = "Point List Normal" bl_width_default = 160 errorHandlingType = "MESSAGE" searchTags = ["Points Normal", "Calculate Normal"] def create(s...
33.185185
76
0.631696
fa52fddce85167880b97a8656528b8fbb4a2de79
606
py
Python
neighbuor/migrations/0010_alter_location_user.py
Rubyroy12/neighbourinfo
619e6e7b20c7f06310d55c3922d9372c0e2455f7
[ "MIT" ]
null
null
null
neighbuor/migrations/0010_alter_location_user.py
Rubyroy12/neighbourinfo
619e6e7b20c7f06310d55c3922d9372c0e2455f7
[ "MIT" ]
null
null
null
neighbuor/migrations/0010_alter_location_user.py
Rubyroy12/neighbourinfo
619e6e7b20c7f06310d55c3922d9372c0e2455f7
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-25 17:19 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('neighbuor', '0009_auto_2...
27.545455
135
0.683168
402f38e1ce8733d8c0504ed8489c983c2179c311
1,035
py
Python
fm/migrations/0032_ingnore_event_rules.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
fm/migrations/0032_ingnore_event_rules.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
fm/migrations/0032_ingnore_event_rules.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# ---------------------------------------------------------------------- # ignore event rules # ---------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- # Third-par...
35.689655
77
0.479227
e8179bf53261551bf3e0bb825d5ef6060a5c1f96
2,455
py
Python
matplotcheck/tests/test_timeseries_module.py
earthlab/matPlotCheck
c1b6a3bf805b1b813b9bdf98752f2bf4baa9cdcf
[ "BSD-3-Clause" ]
12
2019-03-01T15:07:10.000Z
2022-03-04T08:23:26.000Z
matplotcheck/tests/test_timeseries_module.py
earthlab/matPlotCheck
c1b6a3bf805b1b813b9bdf98752f2bf4baa9cdcf
[ "BSD-3-Clause" ]
382
2018-12-20T23:05:47.000Z
2022-01-13T02:34:44.000Z
matplotcheck/tests/test_timeseries_module.py
earthlab/matPlotCheck
c1b6a3bf805b1b813b9bdf98752f2bf4baa9cdcf
[ "BSD-3-Clause" ]
8
2019-01-23T23:10:51.000Z
2021-11-03T16:17:51.000Z
import matplotlib.pyplot as plt import numpy as np import pandas as pd import pytest from matplotcheck.timeseries import TimeSeriesTester @pytest.fixture def pd_df_timeseries(): """Create a pandas dataframe for testing, with timeseries in one column""" return pd.DataFrame( { "time": pd.dat...
32.302632
78
0.701833
16768390b371d34bd7c235fa0c83f2cacf5edc20
14,343
py
Python
c7n/resources/iam.py
nyetsche/cloud-custodian
e4e3e538f1242a7f5516b557f91d269035141b06
[ "Apache-2.0" ]
null
null
null
c7n/resources/iam.py
nyetsche/cloud-custodian
e4e3e538f1242a7f5516b557f91d269035141b06
[ "Apache-2.0" ]
null
null
null
c7n/resources/iam.py
nyetsche/cloud-custodian
e4e3e538f1242a7f5516b557f91d269035141b06
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Capital One Services, 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 to in...
32.159193
78
0.615213
0ad26a2274d9f9df369c6fd266f6ab7d9e74aead
3,562
py
Python
KNNClassifier.py
suhail-ansari/Machine-Learning-Algortihms
e116c28848a2cb2132a09fcfdc0301ae89ebcf8b
[ "MIT" ]
null
null
null
KNNClassifier.py
suhail-ansari/Machine-Learning-Algortihms
e116c28848a2cb2132a09fcfdc0301ae89ebcf8b
[ "MIT" ]
null
null
null
KNNClassifier.py
suhail-ansari/Machine-Learning-Algortihms
e116c28848a2cb2132a09fcfdc0301ae89ebcf8b
[ "MIT" ]
null
null
null
import sys import csv import math import numpy as np from collections import OrderedDict, Counter class KNNClassifier(object): def __init__(self): pass def train(self, data): self.raw_data = data self.attr_count = len(data[0]) - 2 self.total_samples = len(data) ...
32.09009
156
0.56429
6b46ddc3687add27ea6ddf696ecad034ccdc1079
522
py
Python
env/lib/python3.6/site-packages/django/utils/html_parser.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
58
2018-10-03T19:41:36.000Z
2022-03-14T21:24:43.000Z
env/lib/python3.6/site-packages/django/utils/html_parser.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
env/lib/python3.6/site-packages/django/utils/html_parser.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
import html.parser try: HTMLParseError = html.parser.HTMLParseError except AttributeError: # create a dummy class for Python 3.5+ where it's been removed class HTMLParseError(Exception): pass class HTMLParser(html.parser.HTMLParser): """Explicitly set convert_charrefs to be False. This s...
29
90
0.731801
b2088c016190e16018000108d1db2fc2dee1cdfd
16,266
py
Python
edkrepo/commands/list_repos_command.py
iberkun/edk2-edkrepo
f925099497dea2584612c47e42a7fe75b4c64255
[ "BSD-2-Clause-Patent" ]
4
2021-04-18T22:04:59.000Z
2022-03-31T03:59:17.000Z
edkrepo/commands/list_repos_command.py
iberkun/edk2-edkrepo
f925099497dea2584612c47e42a7fe75b4c64255
[ "BSD-2-Clause-Patent" ]
19
2021-04-06T21:07:29.000Z
2022-03-25T17:17:25.000Z
edkrepo/commands/list_repos_command.py
iberkun/edk2-edkrepo
f925099497dea2584612c47e42a7fe75b4c64255
[ "BSD-2-Clause-Patent" ]
9
2021-03-16T23:13:09.000Z
2021-11-20T09:19:38.000Z
#!/usr/bin/env python3 # ## @file # list_repos_command.py # # Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # import collections import os #from git import Repo from colorama import Fore, Style # Our modules from edkrepo.commands...
52.302251
143
0.591356
54048879f7a5a699f19e2e604092047c7710c78a
772
py
Python
maru/pymorphy/tag.py
chomechome/maru
dae41e250a64a8b6f6ab9647fd60221d5ede8ab6
[ "MIT" ]
47
2018-09-25T05:17:13.000Z
2022-03-31T09:27:15.000Z
maru/pymorphy/tag.py
ojomio/maru
7a44be7f974c0962f3023f5d064a391d2b4f20b1
[ "MIT" ]
2
2019-11-26T08:48:54.000Z
2020-09-10T10:00:39.000Z
maru/pymorphy/tag.py
ojomio/maru
7a44be7f974c0962f3023f5d064a391d2b4f20b1
[ "MIT" ]
5
2019-01-05T17:36:23.000Z
2021-06-29T08:55:24.000Z
import pymorphy2.analyzer from maru.pymorphy.grammeme import ( get_animacy, get_aspect, get_case, get_degree, get_gender, get_mood, get_number, get_part_of_speech, get_person, get_tense, get_verbform, get_voice, ) from maru.tag import Tag def get_tag(parse: pymorphy2.a...
22.057143
52
0.645078
d0016ca11f68272e15c9f98bf5585d55fe9f2384
1,222
py
Python
Handler/data_handler.py
H-BlackGom/StockDataCrawler-Python
47b8a5685189f2f194a71ae5ed4d51a87c589a7d
[ "Apache-2.0" ]
null
null
null
Handler/data_handler.py
H-BlackGom/StockDataCrawler-Python
47b8a5685189f2f194a71ae5ed4d51a87c589a7d
[ "Apache-2.0" ]
null
null
null
Handler/data_handler.py
H-BlackGom/StockDataCrawler-Python
47b8a5685189f2f194a71ae5ed4d51a87c589a7d
[ "Apache-2.0" ]
null
null
null
import yaml import types import pandas as pd from Handler.mongo_handler import MongoHandler from Utils.utils import Log yaml.warnings({'YAMLLoadWarning': False}) with open("config.yaml", "rt", encoding="utf-8") as stream: CONFIG = yaml.load(stream)['StockCrawler'] class DataHandler: def __init__(self): ...
33.027027
88
0.695581
a180a99dcf5a21554de9a47a681001a3ba2e1f23
3,823
py
Python
sigpy/interp_test.py
davidyzeng/sigpy
56f8eb9be57b5a80e53ae09f2ba0802586fe69bc
[ "BSD-3-Clause" ]
null
null
null
sigpy/interp_test.py
davidyzeng/sigpy
56f8eb9be57b5a80e53ae09f2ba0802586fe69bc
[ "BSD-3-Clause" ]
null
null
null
sigpy/interp_test.py
davidyzeng/sigpy
56f8eb9be57b5a80e53ae09f2ba0802586fe69bc
[ "BSD-3-Clause" ]
null
null
null
import unittest import numpy as np from sigpy import util, interp, config if config.cupy_enabled: import cupy as cp if __name__ == '__main__': unittest.main() class TestInterp(unittest.TestCase): def test_interp(self): batch = 2 for ndim in [1, 2, 3]: shape = [3] + [1] * (...
37.116505
91
0.414073
249bc0588e2f700066a1a01e12351fc637ca32d3
3,389
py
Python
influxdb_client/domain/check.py
wasted925/influxdb-client-python
afee531fd1dc244b3d9d270e262b0a1865a7c89d
[ "MIT" ]
380
2019-09-19T20:20:10.000Z
2022-03-31T12:59:33.000Z
influxdb_client/domain/check.py
wasted925/influxdb-client-python
afee531fd1dc244b3d9d270e262b0a1865a7c89d
[ "MIT" ]
362
2019-09-16T11:53:29.000Z
2022-03-29T03:11:59.000Z
influxdb_client/domain/check.py
wasted925/influxdb-client-python
afee531fd1dc244b3d9d270e262b0a1865a7c89d
[ "MIT" ]
130
2019-09-20T08:02:35.000Z
2022-03-30T16:44:45.000Z
# coding: utf-8 """ Influx OSS API Service. No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class Check(object): ...
27.552846
120
0.564178
e834d7fd18646b1f51eacb71e70054f75decc17d
3,282
py
Python
lib/spack/spack/cmd/extensions.py
alkino/spack
b87ff60c7e23d7b50fac620ad60c8e2537312ebd
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-06-25T15:25:29.000Z
2020-06-25T15:25:29.000Z
lib/spack/spack/cmd/extensions.py
alkino/spack
b87ff60c7e23d7b50fac620ad60c8e2537312ebd
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
lib/spack/spack/cmd/extensions.py
alkino/spack
b87ff60c7e23d7b50fac620ad60c8e2537312ebd
[ "ECL-2.0", "Apache-2.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) import argparse import llnl.util.tty as tty from llnl.util.tty.colify import colify import spack.environment as ev impor...
32.49505
77
0.631322
22145a49459d42e4cf746cab6672f2dbc1d1e0da
31
py
Python
src/campaign/api/models/hex.py
zdog234/campaign
61a0f556762ce9977190cb132c52318e40edf610
[ "MIT" ]
1
2020-11-26T09:08:16.000Z
2020-11-26T09:08:16.000Z
src/campaign/api/models/hex.py
zdog234/campaign
61a0f556762ce9977190cb132c52318e40edf610
[ "MIT" ]
1
2021-02-19T12:48:22.000Z
2021-02-19T12:48:22.000Z
src/divergent/api/models_v1.py
kibalabs/divergent-api
e01229cceff72693a23ce3da9079a52fd9b1fc2e
[ "MIT" ]
null
null
null
from pydantic import BaseModel
15.5
30
0.870968
950e4dd2ac1f32d408bc2376d0aaeda83ef2e0ef
385
py
Python
tests/parser/sugar_test.py
fifth-postulate/nand-optimizer
936d278411a073b8a7b860a47c9032e310736ba2
[ "MIT" ]
null
null
null
tests/parser/sugar_test.py
fifth-postulate/nand-optimizer
936d278411a073b8a7b860a47c9032e310736ba2
[ "MIT" ]
null
null
null
tests/parser/sugar_test.py
fifth-postulate/nand-optimizer
936d278411a073b8a7b860a47c9032e310736ba2
[ "MIT" ]
null
null
null
from parser.kernel import Any, Filter, Map, Predicate, Sequence, Success, Word, atleast, many from parser.sugar import intersperse from tests.parser.kernel_test import assert_unique_parse def test_intersperse(): parser = intersperse(Word(','), [Word('A'), Word('B'), Word('C')]) parses = parser.parse('A,B,C') ...
32.083333
93
0.672727
9d8f2a8060ecde0cf11f5f58ca4c2eeb4248e97e
16,798
py
Python
bann_demo/pytorch/networks/ae_net_demo.py
arturOnRails/BANN
027af04349304941fb73c2ede502aca4b76f1ad1
[ "MIT" ]
null
null
null
bann_demo/pytorch/networks/ae_net_demo.py
arturOnRails/BANN
027af04349304941fb73c2ede502aca4b76f1ad1
[ "MIT" ]
null
null
null
bann_demo/pytorch/networks/ae_net_demo.py
arturOnRails/BANN
027af04349304941fb73c2ede502aca4b76f1ad1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """.. moduleauthor:: Artur Lissin""" import sys from copy import deepcopy from enum import Enum from typing import Type, Callable, Dict, Tuple, List, Optional, final, Final import numpy as np # type: ignore import torch from torch import nn from torch.utils.data import Dataset from torchvision...
42.20603
100
0.677521
d9d6e35a5ff535616eb1b656f47c30a0b9ea2cdd
1,719
py
Python
tests/config/test_methods_partial.py
Playfloor/bonobo
feb7ec850566ca3c2ccc139610201dbd237d6083
[ "Apache-2.0" ]
1,573
2016-12-09T09:28:50.000Z
2022-03-31T06:16:45.000Z
tests/config/test_methods_partial.py
Playfloor/bonobo
feb7ec850566ca3c2ccc139610201dbd237d6083
[ "Apache-2.0" ]
257
2016-12-25T06:54:33.000Z
2022-03-18T22:12:17.000Z
tests/config/test_methods_partial.py
Playfloor/bonobo
feb7ec850566ca3c2ccc139610201dbd237d6083
[ "Apache-2.0" ]
153
2016-12-09T07:23:58.000Z
2022-03-18T22:01:23.000Z
from unittest.mock import MagicMock from bonobo.config import Configurable, ContextProcessor, Method, Option from bonobo.util.inspect import inspect_node class Bobby(Configurable): handler = Method() handler2 = Method() foo = Option(positional=True) bar = Option(required=False) @ContextProcessor...
25.656716
72
0.602676
8c9610ac420dd6f6ffe70f378b8179c6ec971618
4,177
py
Python
readthedocs/rtd_tests/tests/test_domains.py
agarwalrounak/readthedocs.org
4911600c230809bd6fb3585d1903121db2928ad6
[ "MIT" ]
10
2019-05-21T03:00:40.000Z
2022-03-12T11:24:39.000Z
readthedocs/rtd_tests/tests/test_domains.py
agarwalrounak/readthedocs.org
4911600c230809bd6fb3585d1903121db2928ad6
[ "MIT" ]
12
2019-12-05T04:47:01.000Z
2022-01-09T00:56:58.000Z
readthedocs/rtd_tests/tests/test_domains.py
agarwalrounak/readthedocs.org
4911600c230809bd6fb3585d1903121db2928ad6
[ "MIT" ]
5
2019-07-08T23:45:10.000Z
2021-02-26T07:29:49.000Z
# -*- coding: utf-8 -*- import json from django.core.cache import cache from django.test import TestCase from django.test.client import RequestFactory from django.test.utils import override_settings from django_dynamic_fixture import get from readthedocs.core.middleware import SubdomainMiddleware from readthedocs.pr...
32.130769
98
0.627723
63fb27979251b68aed29b57a621d9dc6e4231a8f
21,789
py
Python
neutron/db/securitygroups_rpc_base.py
p0i0/openstack-neutron
df2ee28ae9a43cc511482bd6ece5396eb1288814
[ "Apache-2.0" ]
null
null
null
neutron/db/securitygroups_rpc_base.py
p0i0/openstack-neutron
df2ee28ae9a43cc511482bd6ece5396eb1288814
[ "Apache-2.0" ]
null
null
null
neutron/db/securitygroups_rpc_base.py
p0i0/openstack-neutron
df2ee28ae9a43cc511482bd6ece5396eb1288814
[ "Apache-2.0" ]
null
null
null
# Copyright 2012, Nachi Ueno, NTT MCL, 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 # # Unles...
46.359574
79
0.62091
a089bebc79de82e1c18c083c89da4bb77bf38546
793
py
Python
dz5/zad2.py
vedrankolka/APR
4f8afefc74f3d0f67f5d2ec665c93a4b38fbdf2f
[ "Apache-2.0" ]
null
null
null
dz5/zad2.py
vedrankolka/APR
4f8afefc74f3d0f67f5d2ec665c93a4b38fbdf2f
[ "Apache-2.0" ]
null
null
null
dz5/zad2.py
vedrankolka/APR
4f8afefc74f3d0f67f5d2ec665c93a4b38fbdf2f
[ "Apache-2.0" ]
null
null
null
from main import * integrate(EulerIntegrator(A, B, step=step), x0, start, end, title="Euler") integrate(ReversedEulerIntegrator(A, B, step=step), x0, start, end, title="Reversed Euler") integrate(TrapezeIntegrator(A, B, step=step), x0, start, end, title="Trapeze") integrate(RungeKutta4Real(A, B, step=step), x0, start,...
49.5625
91
0.747793
4c717d1877f52a20556478bfb4e0043e8a6a2ef8
4,010
py
Python
src/third_party/skia/infra/bots/recipes/recreate_skps.py
rhencke/engine
1016db292c4e73374a0a11536b18303c9522a224
[ "BSD-3-Clause" ]
54
2016-04-05T17:45:19.000Z
2022-01-31T06:27:33.000Z
src/third_party/skia/infra/bots/recipes/recreate_skps.py
rhencke/engine
1016db292c4e73374a0a11536b18303c9522a224
[ "BSD-3-Clause" ]
25
2016-03-18T04:01:06.000Z
2020-06-27T15:39:35.000Z
src/third_party/skia/infra/bots/recipes/recreate_skps.py
rhencke/engine
1016db292c4e73374a0a11536b18303c9522a224
[ "BSD-3-Clause" ]
50
2016-03-03T20:31:58.000Z
2022-03-31T18:26:13.000Z
# Copyright 2014 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. """Recipe for the Skia RecreateSKPs Bot.""" DEPS = [ 'checkout', 'depot_tools/gclient', 'infra', 'recipe_engine/context', 'recipe_engine/file', ...
31.574803
79
0.634913
96b207cbdbc5e3d05f47f56b5a7aa60c4a124f4f
2,418
py
Python
dual_tb9051ftg_rpi.py
dakoner/rpi_balance_bot
7ca013924c486548f6a87ae30cce5ff5e0082c0f
[ "BSD-3-Clause" ]
4
2019-12-22T03:33:22.000Z
2020-09-07T14:36:32.000Z
dual_tb9051ftg_rpi.py
pololu/dual-tb9051ftg-motor-driver-rpi
4496583444e4a4d37c081b6d59bd78bfcbfaf912
[ "MIT" ]
null
null
null
dual_tb9051ftg_rpi.py
pololu/dual-tb9051ftg-motor-driver-rpi
4496583444e4a4d37c081b6d59bd78bfcbfaf912
[ "MIT" ]
null
null
null
import pigpio _pi = pigpio.pi() if not _pi.connected: raise IOError("Can't connect to pigpio") # Motor speeds for this library are specified as numbers between -MAX_SPEED and # MAX_SPEED, inclusive. # This has a value of 480 for historical reasons/to maintain compatibility with # older libraries for other Pololu ...
26.866667
83
0.65426
b3b1cc0fc1b7c224bcb1a4cbd30f542b4be290f5
1,142
py
Python
disk.py
Manishkumarlinux/Linux
b86ac6ab5124faa4af4f394294a2f6b7cdb7601d
[ "Apache-2.0" ]
null
null
null
disk.py
Manishkumarlinux/Linux
b86ac6ab5124faa4af4f394294a2f6b7cdb7601d
[ "Apache-2.0" ]
null
null
null
disk.py
Manishkumarlinux/Linux
b86ac6ab5124faa4af4f394294a2f6b7cdb7601d
[ "Apache-2.0" ]
null
null
null
#Object-oriented Python disk-monitoring script from subprocess import Popen, PIPE import re class DiskMonitor(): """Disk Monitoring Class""" def __init__(self, pattern="2[0-9]%", message="CAPACITY WARNING", cmd= "df -h"): self.pattern = pattern self.message = message self.cmd = cmd ...
30.052632
84
0.57268
0fd071f40a763b4fde266b13ac521fe698997032
5,381
py
Python
Data/download.py
softbankrobotics-research/Generative_Continual_Learning
66b121437c248993b41f154b5a2d6b7197278578
[ "MIT" ]
55
2018-10-24T11:43:16.000Z
2022-02-28T20:13:31.000Z
Data/download.py
softbankrobotics-research/Generative_Continual_Learning
66b121437c248993b41f154b5a2d6b7197278578
[ "MIT" ]
null
null
null
Data/download.py
softbankrobotics-research/Generative_Continual_Learning
66b121437c248993b41f154b5a2d6b7197278578
[ "MIT" ]
12
2019-01-15T09:47:01.000Z
2022-03-26T15:07:58.000Z
""" Modification of https://github.com/stanfordnlp/treelstm/blob/master/scripts/download.py Downloads the following: - Celeb-A dataset - LSUN dataset - MNIST dataset """ from __future__ import print_function import os import sys import gzip import json import shutil import zipfile import argparse import requests impo...
29.894444
102
0.676826
975a718248d0210c554491aaade99ea287d226d0
9,252
py
Python
dossiers/models.py
dezede/dezede
985ed1b42a2a6bab996e26c1b92444ae04afcc2c
[ "BSD-3-Clause" ]
15
2015-02-10T21:16:31.000Z
2021-03-25T16:46:20.000Z
dossiers/models.py
dezede/dezede
985ed1b42a2a6bab996e26c1b92444ae04afcc2c
[ "BSD-3-Clause" ]
4
2021-02-10T15:42:08.000Z
2022-03-11T23:20:38.000Z
dossiers/models.py
dezede/dezede
985ed1b42a2a6bab996e26c1b92444ae04afcc2c
[ "BSD-3-Clause" ]
6
2016-07-10T14:20:48.000Z
2022-01-19T18:34:02.000Z
from datetime import datetime from django.db.models import ( CharField, DateField, ManyToManyField, TextField, PositiveSmallIntegerField, Q, ForeignKey, SlugField, CASCADE) from django.urls import reverse from django.utils.encoding import smart_text from django.utils.html import strip_tags from django.utils...
43.032558
95
0.631431
053f50ffa11ec061ab740f05b6cedf0c894a8fc7
1,987
py
Python
dask_sql/physical/rel/logical/filter.py
DaceT/dask-sql
c545f2bf9a786b0e9ff7f68c90da4dcc39cdcd73
[ "MIT" ]
154
2020-08-28T03:03:39.000Z
2021-08-07T02:02:36.000Z
dask_sql/physical/rel/logical/filter.py
DaceT/dask-sql
c545f2bf9a786b0e9ff7f68c90da4dcc39cdcd73
[ "MIT" ]
192
2020-08-26T20:05:24.000Z
2021-08-13T16:14:00.000Z
dask_sql/physical/rel/logical/filter.py
DaceT/dask-sql
c545f2bf9a786b0e9ff7f68c90da4dcc39cdcd73
[ "MIT" ]
29
2020-08-28T17:15:51.000Z
2021-08-02T20:19:44.000Z
import logging from typing import TYPE_CHECKING, Union import dask.dataframe as dd import numpy as np from dask_sql.datacontainer import DataContainer from dask_sql.physical.rel.base import BaseRelPlugin from dask_sql.physical.rex import RexConverter if TYPE_CHECKING: import dask_sql from dask_sql.java impor...
32.57377
93
0.691495
0bace9f8fd8a1fb48157e844a1e4f3e7cc78b4ce
650
py
Python
leetcode/1768_merge_strings_alternately.py
jacquerie/leetcode
a05e6b832eb0e0740aaff7b2eb3109038ad404bf
[ "MIT" ]
3
2018-05-10T09:56:49.000Z
2020-11-07T18:09:42.000Z
leetcode/1768_merge_strings_alternately.py
jacquerie/leetcode
a05e6b832eb0e0740aaff7b2eb3109038ad404bf
[ "MIT" ]
null
null
null
leetcode/1768_merge_strings_alternately.py
jacquerie/leetcode
a05e6b832eb0e0740aaff7b2eb3109038ad404bf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- class Solution: def mergeAlternately(self, word1: str, word2: str) -> str: result, i, j = [], 0, 0 while i < len(word1) or j < len(word2): if i < len(word1): result.append(word1[i]) i += 1 if j < len(word2): ...
27.083333
62
0.52
302aa4f781d0c94bf69a4478072f68fc72a85512
2,776
py
Python
stage/configuration/test_field_order_processor.py
Sentienz/datacollector-tests
ca27988351dc3366488098b5db6c85a8be2f7b85
[ "Apache-2.0" ]
null
null
null
stage/configuration/test_field_order_processor.py
Sentienz/datacollector-tests
ca27988351dc3366488098b5db6c85a8be2f7b85
[ "Apache-2.0" ]
null
null
null
stage/configuration/test_field_order_processor.py
Sentienz/datacollector-tests
ca27988351dc3366488098b5db6c85a8be2f7b85
[ "Apache-2.0" ]
1
2019-10-29T08:46:11.000Z
2019-10-29T08:46:11.000Z
import pytest from streamsets.testframework.decorators import stub @stub @pytest.mark.parametrize('stage_attributes', [{'default_type': 'BOOLEAN', 'missing_fields': 'USE_DEFAULT'}, {'default_type': 'DATE', 'missing_fields': 'USE_DEFAULT'}, ...
37.513514
113
0.598703
db908598429bc37e215ce119bc03a5a30009cd8d
5,051
py
Python
asv_bench/benchmarks/xr_vs_xs.py
bradyrx/xskillscore
6521f9d114edf012a2829e5ac7f423190bb8de4a
[ "Apache-2.0" ]
1
2020-07-09T01:21:54.000Z
2020-07-09T01:21:54.000Z
asv_bench/benchmarks/xr_vs_xs.py
bradyrx/xskillscore
6521f9d114edf012a2829e5ac7f423190bb8de4a
[ "Apache-2.0" ]
null
null
null
asv_bench/benchmarks/xr_vs_xs.py
bradyrx/xskillscore
6521f9d114edf012a2829e5ac7f423190bb8de4a
[ "Apache-2.0" ]
null
null
null
# Write the benchmarking functions here. # See "Writing benchmarks" in the asv docs for more information. import numpy as np import pandas as pd import xarray as xr from xskillscore import mse as xs_mse, pearson_r as xs_pearson_r from . import parameterized, randn, requires_dask def xr_mse(a, b, dim): """mse ...
29.887574
86
0.592952
de14b21db1a0693735f089d1a667dd2ffcec6cea
3,454
py
Python
bigmler/options/externalconnector.py
bigmlcom/bigmler
91973ca1e752954302bf26bb22aa6874dc34ce69
[ "Apache-2.0" ]
32
2015-01-12T10:11:42.000Z
2021-11-14T19:45:14.000Z
bigmler/options/externalconnector.py
bigmlcom/bigmler
91973ca1e752954302bf26bb22aa6874dc34ce69
[ "Apache-2.0" ]
42
2015-02-12T09:54:11.000Z
2022-03-31T11:33:39.000Z
bigmler/options/externalconnector.py
bigmlcom/bigmler
91973ca1e752954302bf26bb22aa6874dc34ce69
[ "Apache-2.0" ]
23
2015-03-04T13:25:23.000Z
2020-07-15T18:25:52.000Z
# -*- coding: utf-8 -*- # # Copyright 2020-2021 BigML # # 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 ...
32.584906
77
0.54806
40d69850ab47f7458b4fead9b5c8f8b7fcaefd7a
8,583
py
Python
cpu_ver/hyperserver/experimentResult/meta30/initial_mnist.py
bigaidream-projects/drmad
a4bb6010595d956f29c5a42a095bab76a60b29eb
[ "MIT" ]
119
2016-02-24T17:20:50.000Z
2021-05-28T21:35:16.000Z
cpu_ver/hyperserver/experimentResult/meta30/initial_mnist.py
LinZichuan/drmad
a4bb6010595d956f29c5a42a095bab76a60b29eb
[ "MIT" ]
8
2016-02-25T03:13:38.000Z
2017-09-15T00:54:52.000Z
cpu_ver/hyperserver/experimentResult/meta30/initial_mnist.py
LinZichuan/drmad
a4bb6010595d956f29c5a42a095bab76a60b29eb
[ "MIT" ]
31
2016-03-10T04:57:11.000Z
2021-05-02T01:00:04.000Z
"""Runs for paper""" import sys import os project_dir = os.environ['EXPERI_PROJECT_PATH'] sys.path.append(project_dir) sys.path.append(project_dir+"/hyperParamServerSubSet") sys.path.append(project_dir+"/library") sys.path.append(project_dir+"/library/autogradwithbay") sys.path.append(project_dir+"/library/hypergrad") ...
35.614108
93
0.649656
0b9cde3675f7c3c24b4b57a7ff8463afe5566dfb
3,476
py
Python
NeuralNet.py
xiaoqing1993/Neural_Net
fd6d18f2c9191172a4adf25d385ee8f8ed6c1b4e
[ "MIT" ]
null
null
null
NeuralNet.py
xiaoqing1993/Neural_Net
fd6d18f2c9191172a4adf25d385ee8f8ed6c1b4e
[ "MIT" ]
null
null
null
NeuralNet.py
xiaoqing1993/Neural_Net
fd6d18f2c9191172a4adf25d385ee8f8ed6c1b4e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Oct 28 19:36:17 2016 @author: Xiaoqing """ from Layer import Layer from Weights import Weights from sklearn.metrics import accuracy_score from sklearn.model_selection import train_test_split import numpy as np import copy class NeuralNet(): def __init__(self, n_Hlayer, n_...
35.835052
82
0.590621
16dd85cb6a3e3ce944d09b0368431edb1a27b058
796
py
Python
migrations/versions/331e9b9a47a8_link_one_engine_many_ship.py
StahlFerro/Erlenmeyer
a337813eb18f1a688dfe7da8b194c7887aa89bdb
[ "MIT" ]
1
2018-11-28T12:46:52.000Z
2018-11-28T12:46:52.000Z
migrations/versions/331e9b9a47a8_link_one_engine_many_ship.py
StahlFerro/IMVR
a337813eb18f1a688dfe7da8b194c7887aa89bdb
[ "MIT" ]
null
null
null
migrations/versions/331e9b9a47a8_link_one_engine_many_ship.py
StahlFerro/IMVR
a337813eb18f1a688dfe7da8b194c7887aa89bdb
[ "MIT" ]
null
null
null
"""Link_One_Engine_Many_Ship Revision ID: 331e9b9a47a8 Revises: 7c1fe1050867 Create Date: 2018-11-20 21:55:16.175271 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '331e9b9a47a8' down_revision = '7c1fe1050867' branch_labels = None depends_on = None def upgra...
25.677419
78
0.690955
ff7786b5b09280c62d94e5690af3826d338c9f92
1,002
py
Python
dfirtrack_main/views/taskstatus_views.py
thomas-kropeit/dfirtrack
b1e0e659af7bc8085cfe2d269ddc651f9f4ba585
[ "Apache-2.0" ]
273
2018-04-18T22:09:15.000Z
2021-06-04T09:15:48.000Z
dfirtrack_main/views/taskstatus_views.py
stuhli/dfirtrack
9260c91e4367b36d4cb1ae7efe4e2d2452f58e6e
[ "Apache-2.0" ]
75
2018-08-31T11:05:37.000Z
2021-06-08T14:15:07.000Z
dfirtrack_main/views/taskstatus_views.py
thomas-kropeit/dfirtrack
b1e0e659af7bc8085cfe2d269ddc651f9f4ba585
[ "Apache-2.0" ]
61
2018-11-12T22:55:48.000Z
2021-06-06T15:16:16.000Z
from django.contrib.auth.mixins import LoginRequiredMixin from django.views.generic import DetailView, ListView from dfirtrack_main.logger.default_logger import debug_logger from dfirtrack_main.models import Taskstatus class TaskstatusList(LoginRequiredMixin, ListView): login_url = '/login' model = Taskstatu...
34.551724
78
0.758483
29492b87d56dacd6d76d24116a743590cfce8273
3,231
py
Python
CIS1_PA2/distortion_correction.py
JiaheXu/CIS
01881beb8db270ecda917af07c2588ed66dddbc9
[ "MIT" ]
null
null
null
CIS1_PA2/distortion_correction.py
JiaheXu/CIS
01881beb8db270ecda917af07c2588ed66dddbc9
[ "MIT" ]
null
null
null
CIS1_PA2/distortion_correction.py
JiaheXu/CIS
01881beb8db270ecda917af07c2588ed66dddbc9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """distortion_correction.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1gglk8QCSftUUW1lES8tGVs3g-WG2nWsq """ import numpy as np import glob from distort_calibration import * from cartesian import* from registration_3d im...
33.309278
112
0.638812
feb53f462e29b8192533849f79f439dbd23c393c
4,418
py
Python
lab4/main.py
khaoulabelahsen/MVA-AlteGrad
517cd62ef359bce0a7a8c939466f8bad61b5d743
[ "MIT" ]
1
2021-01-30T12:01:15.000Z
2021-01-30T12:01:15.000Z
lab4/main.py
khaoulabelahsen/MVA-AlteGrad
517cd62ef359bce0a7a8c939466f8bad61b5d743
[ "MIT" ]
null
null
null
lab4/main.py
khaoulabelahsen/MVA-AlteGrad
517cd62ef359bce0a7a8c939466f8bad61b5d743
[ "MIT" ]
null
null
null
import sys import json import torch from torch.utils import data import matplotlib.pyplot as plt from matplotlib import ticker from model import * # = = = = = = = = = = = path_root = '/content/drive/My Drive/for_moodle'# fill me ! path_to_model = path_root + '/code/' sys.path.insert(0, path_to_model) #from model ...
33.469697
100
0.596876
2d523e044a72e998e205c332454c7b6c569881c0
1,438
py
Python
tools/nntool/interpreter/commands/onnx.py
00-01/gap_sdk
25444d752b26ccf0b848301c381692d77172852c
[ "Apache-2.0" ]
118
2018-05-22T08:45:59.000Z
2022-03-30T07:00:45.000Z
tools/nntool/interpreter/commands/onnx.py
00-01/gap_sdk
25444d752b26ccf0b848301c381692d77172852c
[ "Apache-2.0" ]
213
2018-07-25T02:37:32.000Z
2022-03-30T18:04:01.000Z
tools/nntool/interpreter/commands/onnx.py
00-01/gap_sdk
25444d752b26ccf0b848301c381692d77172852c
[ "Apache-2.0" ]
76
2018-07-04T08:19:27.000Z
2022-03-24T09:58:05.000Z
# Copyright (C) 2020 GreenWaves Technologies, SAS # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This progr...
44.9375
163
0.730876
546171b345ffe41d57c7f4ca623957ed58875b93
4,108
py
Python
models/model_s2s.py
gheyret/EfficientConformer
b28a0aaa3b182f72abaccbeb12df0402adf96097
[ "Apache-2.0" ]
101
2021-09-06T03:52:37.000Z
2022-03-17T07:57:43.000Z
models/model_s2s.py
entn-at/EfficientConformer
d75c2dc74c44941ca34c62b4196488d34a4fb3a0
[ "Apache-2.0" ]
11
2021-09-13T05:52:33.000Z
2022-02-18T04:40:50.000Z
models/model_s2s.py
entn-at/EfficientConformer
d75c2dc74c44941ca34c62b4196488d34a4fb3a0
[ "Apache-2.0" ]
17
2021-09-06T01:34:28.000Z
2022-03-24T06:36:46.000Z
# Copyright 2021, Maxime Burchi. # # 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 writi...
34.233333
174
0.659932