blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
721
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
5
91
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
321 values
visit_date
timestamp[ns]date
2016-08-12 09:31:09
2023-09-06 10:45:07
revision_date
timestamp[ns]date
2010-09-28 14:01:40
2023-09-06 06:22:19
committer_date
timestamp[ns]date
2010-09-28 14:01:40
2023-09-06 06:22:19
github_id
int64
426
681M
star_events_count
int64
101
243k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[ns]date
2012-06-28 18:51:49
2023-09-14 21:59:16
gha_created_at
timestamp[ns]date
2008-02-11 22:55:26
2023-08-10 11:14:58
gha_language
stringclasses
147 values
src_encoding
stringclasses
26 values
language
stringclasses
2 values
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10.2M
extension
stringclasses
115 values
filename
stringlengths
3
113
content
stringlengths
6
10.2M
a4bbcef980b3d22943fdfba566982d8edf9f6e12
224a034669068398e59962d6470fb72dbe20e8c9
/docs/source/conf.py
c2ebdda082831d47b8d8224559261816deecc620
[ "MIT" ]
permissive
lightkurve/lightkurve
b892b54ffbf3cb956f88300cb7d72b7e99fefdbf
7d485b69e9bbe58a1e7ba8d988387dc5d469ab36
refs/heads/main
2023-08-28T05:20:55.072927
2023-08-22T20:42:53
2023-08-22T20:42:53
118,387,904
148
66
MIT
2023-09-14T02:24:36
2018-01-22T00:49:59
Python
UTF-8
Python
false
false
5,016
py
conf.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. import os import sys sys.path.appe...
a7222f6246a13b31c012dfd7eeb2811225320b75
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/manual_mqtt/test_alarm_control_panel.py
0df1114bf30d89726c015b3c98dc690a146f00b6
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
48,514
py
test_alarm_control_panel.py
"""The tests for the manual_mqtt Alarm Control Panel component.""" from datetime import timedelta from unittest.mock import patch from freezegun import freeze_time import pytest from homeassistant.components import alarm_control_panel from homeassistant.const import ( ATTR_CODE, ATTR_ENTITY_ID, SERVICE_AL...
0ad89341c86dd734f2743db405d23ce2a7a509d3
549270020f6c8724e2ef1b12e38d11b025579f8d
/recipes/at-spi2-atk/all/conanfile.py
e8f187953a737e56e8be043b399e228a3a5d99b5
[ "MIT" ]
permissive
conan-io/conan-center-index
1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43
3b17e69bb4e5601a850b6e006e44775e690bac33
refs/heads/master
2023-08-31T11:34:45.403978
2023-08-31T11:13:23
2023-08-31T11:13:23
204,671,232
844
1,820
MIT
2023-09-14T21:22:42
2019-08-27T09:43:58
Python
UTF-8
Python
false
false
3,080
py
conanfile.py
from conan import ConanFile from conan.errors import ConanInvalidConfiguration from conan.tools.files import get, rmdir from conans import Meson import os required_conan_version = ">=1.33.0" class AtSPI2AtkConan(ConanFile): name = "at-spi2-atk" description = "library that bridges ATK to At-Spi2 D-Bus service...
2ddc38540c9a237e3465e63db522bd333cba03be
a66149460eda1d5343ee8e94401d91f3f2270015
/notebooks/vae-inverse_autoregressive_flows/made.py
09faed76fb050911bf6ffc2779ada5e654de8b13
[ "MIT" ]
permissive
bjlkeng/sandbox
59ae04a984f9a6a01caac78141250c9388e40574
3dac79472df6e895d6eb57f4fdbdaf2032ec0cf6
refs/heads/master
2023-09-01T03:06:34.845840
2023-08-18T01:11:43
2023-08-18T01:11:43
89,071,009
190
83
MIT
2023-08-18T01:13:22
2017-04-22T13:17:10
Jupyter Notebook
UTF-8
Python
false
false
8,748
py
made.py
from random import randint import numpy as np from keras import backend as K from keras.engine import Layer from keras.layers import initializers from keras.layers import activations from keras.layers import regularizers from keras.layers import constraints class MaskingDense(Layer): """ Just copied code from k...
968595def93c6bd3bf3693f66e0509925a4381e2
0760fb4901a75766921a205b55686d6d6f049b30
/python/ray/autoscaler/local/coordinator_server.py
75c85b3966e54ea63980ea87a266cbd1e3d6fbb9
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
ray-project/ray
a4bb6940b08b59a61ef0b8e755a52d8563a2f867
edba68c3e7cf255d1d6479329f305adb7fa4c3ed
refs/heads/master
2023-08-31T03:36:48.164405
2023-08-31T03:20:38
2023-08-31T03:20:38
71,932,349
29,482
5,669
Apache-2.0
2023-09-14T21:48:14
2016-10-25T19:38:30
Python
UTF-8
Python
false
false
4,223
py
coordinator_server.py
"""Web server that runs on local/private clusters to coordinate and manage different clusters for multiple users. It receives node provider function calls through HTTP requests from remote CoordinatorSenderNodeProvider and runs them locally in LocalNodeProvider. To start the webserver the user runs: `python coordinator...
6683cc7b4c377515291f3efa98cd247f10940bfc
5dc35a39169d191166c44b7ac45389a14e5b0857
/twiml/voice/conference/conference-6/conference-6.8.x.py
9c8e558138288bc0cb3a09073c402295049e04f1
[ "MIT" ]
permissive
TwilioDevEd/api-snippets
035b7ceaf9c03c932010919ee1747bf895d4591e
ca6160d8e626bdf137f783324807285bb01d006f
refs/heads/master
2023-08-17T19:20:35.751733
2023-08-04T18:47:58
2023-08-04T18:47:58
49,965,712
267
551
MIT
2023-09-11T14:04:34
2016-01-19T16:21:44
Java
UTF-8
Python
false
false
326
py
conference-6.8.x.py
from twilio.twiml.voice_response import Conference, Dial, VoiceResponse response = VoiceResponse() dial = Dial() dial.conference( 'NoMusicNoBeepRoom', beep=False, wait_url='http://your-webhook-host.com', start_conference_on_enter=True, end_conference_on_exit=True ) response.append(dial) print(resp...
e10d7d360d97a5a1e7f208be0d0bae4207c26805
9ea5689a6cbe7782b433f3e8da1f6533a757159f
/python/dbgtest.py
35f05deadad5ccefd00bbbe1e36e4a9d256dd92a
[ "MIT" ]
permissive
radareorg/radare2-r2pipe
0b538429ed9155ccbf10bfc719036284d5bcb86f
3a1dba2db43832913f815f3af807f03125d82724
refs/heads/master
2023-08-31T00:14:51.679842
2023-08-27T15:59:30
2023-08-27T15:59:30
70,247,098
239
53
null
2022-11-25T10:23:57
2016-10-07T13:04:06
JavaScript
UTF-8
Python
false
false
195
py
dbgtest.py
#!/usr/bin/env python3 import r2pipe r2 = r2pipe.open("/bin/ls", ["-nd"]) for a in range(1, 10): regs = r2.cmdj("drj") print("0x%x 0x%x" % (regs["rip"], regs["rsp"])) r2.cmd("ds")
28fcb45f6d78a19ccf57f466bff4649002aa3e7e
85b402cd9e762b2749c978105ea362b10d335e5c
/175-breast_cancer_without_PCA.py
399fddd2a7b76d52c29f8ed8b5a36e194fa3b658
[]
no_license
bnsreenu/python_for_microscopists
29c08f17461baca95b5161fd4cd905be515605c4
4b8c0bd4274bc4d5e906a4952988c7f3e8db74c5
refs/heads/master
2023-09-04T21:11:25.524753
2023-08-24T18:40:53
2023-08-24T18:40:53
191,218,511
3,010
2,206
null
2023-07-25T07:15:22
2019-06-10T17:53:14
Jupyter Notebook
UTF-8
Python
false
false
3,552
py
175-breast_cancer_without_PCA.py
# https://youtu.be/e2sM7ccaA9c """ Using.... https://archive.ics.uci.edu/ml/datasets/Breast+Cancer+Wisconsin+(Diagnostic) """ import pandas as pd from matplotlib import pyplot as plt import seaborn as sns from keras.models import Sequential from keras.layers import Dense, Activation, Dropout df = pd....
3f0d14dc4106c43282724ed930f972ead629d0d8
24f10a85b5eaffd7619b6095ce1ae66dbfabe85e
/src/utils/args_utils.py
1e9b060c694fc674d782f375654a946aac002f44
[ "MIT" ]
permissive
madaan/minimal-text-diffusion
7f2aa8ce21effa25e1f86f917c32d49576a2f1ec
9303ffd481a2f647da24c6053e4dec44fd086a8d
refs/heads/main
2023-05-25T17:07:21.803835
2023-05-11T12:19:55
2023-05-11T12:19:55
539,045,602
199
17
null
null
null
null
UTF-8
Python
false
false
3,524
py
args_utils.py
""" Utilities for command line arguments. """ import argparse def create_argparser(): defaults = dict( data_dir="", schedule_sampler="uniform", lr=1e-4, weight_decay=0.0, lr_anneal_steps=30000, batch_size=1, microbatch=-1, # -1 disables microbatches ...
ceaf8e6539c1a96cad5bff56e27a6c9c4d53c78a
5b6ba0f288b1e2ac236af846a9bf546a63228476
/libtbx/tst_math_utils.py
92824c8642b81f477d46450799f1cec626f27471
[ "BSD-3-Clause-LBNL" ]
permissive
cctbx/cctbx_project
5b547b416cadbdf95cca21dace9f54272a08d98a
7f4dfb6c873fd560920f697cbfd8a5ff6eed82fa
refs/heads/master
2023-08-17T17:44:05.077010
2023-08-16T22:40:22
2023-08-16T22:40:22
39,508,026
206
131
NOASSERTION
2023-09-14T17:12:55
2015-07-22T13:36:27
Python
UTF-8
Python
false
false
5,324
py
tst_math_utils.py
from __future__ import absolute_import, division, print_function from libtbx.test_utils import approx_equal from six.moves import range def exercise_integer(): from libtbx.math_utils import iround, iceil, ifloor, nearest_integer assert iround(0) == 0 assert iround(1.4) == 1 assert iround(-1.4) == -1 assert i...
4451b4484319a5e8de4800677e5e1e395261aebe
fbea75f1590a1743da593c067d563324588f0725
/dev.py
2ea3080fb0a6d53700b52c3313ba12616d0c29c2
[ "BSD-2-Clause-Views" ]
permissive
neutronX/django-markdownx
5b30f4e4920444fbcc9c45db5ed06304f9e21371
f02caa69cbdfe11e14182d9a5c003de92eb91822
refs/heads/master
2023-08-13T17:54:22.973593
2023-03-31T10:40:55
2023-03-31T10:40:55
26,052,435
713
166
NOASSERTION
2023-09-10T23:56:31
2014-11-01T14:15:37
Python
UTF-8
Python
false
false
11,427
py
dev.py
# -*- coding: utf-8 -*- """ usage: dev.py [-h] (-v | -d | -c | -run-vagrant | -run-docker | -no-container) [--with-docs] [--with-npm-settings] optional arguments: -h, --help show this help message and exit -v, --vagrant Install Vagrant development environment (requires ...
099c2530fd8ad7e8b9385663e114a15178ea8075
de8cecd17d1d8a06532fb59d160faa18de855f12
/VBx/vbhmm.py
380ce3e049c0d4992a3ca6ce360ccf6ab93f3d1b
[ "Apache-2.0" ]
permissive
BUTSpeechFIT/VBx
df8bc3bf537e8206e7904830421c994d50e39255
7dfa3fab81c36b144cde9647fc80d96c0261a772
refs/heads/master
2023-03-06T17:40:30.329947
2023-02-23T08:07:16
2023-02-23T08:07:16
239,834,186
213
63
null
2023-02-23T08:07:17
2020-02-11T18:27:11
Python
UTF-8
Python
false
false
8,796
py
vbhmm.py
#!/usr/bin/env python # @Authors: Lukas Burget, Mireia Diez, Federico Landini, Jan Profant # @Emails: burget@fit.vutbr.cz, mireia@fit.vutbr.cz, landini@fit.vutbr.cz, jan.profant@phonexia.com # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Li...
017e16201515687d06c02b438c5b4e0d1f20d5d2
5c3296ff65e5a07852ff9dad1cc5e07991d08270
/lingvo/tasks/car/params/waymo_deepfusion.py
5aa56b6af524e852849e15f09028569d1542547c
[ "Apache-2.0" ]
permissive
tensorflow/lingvo
dee164ef6e69edb352f2e855660b9b5227ddcf6f
c00a74b260fcf6ba11199cc4a340c127d6616479
refs/heads/master
2023-09-01T22:08:55.758781
2023-08-30T00:50:34
2023-08-30T00:51:26
142,219,189
2,963
485
Apache-2.0
2023-09-07T00:52:48
2018-07-24T22:30:28
Python
UTF-8
Python
false
false
32,044
py
waymo_deepfusion.py
# Copyright 2022 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...
09acdb40ad2946946e2960d0a9f062464d957f2d
87491323e6295845dd7239fc213bc6b7955873c0
/models/algorithms/knearestneighbour.py
9f93a4ceaeab8d5c244917aab59204c1f0ef9c11
[ "Apache-2.0" ]
permissive
h2oai/driverlessai-recipes
e32d5632dfed52f19c9caeb406d30b956829658c
aeb082cfb773d6a0e45fbb7514610987f97b2799
refs/heads/master
2023-09-03T17:50:45.184460
2023-08-21T12:48:47
2023-08-21T12:48:47
174,063,977
239
103
Apache-2.0
2023-08-21T12:48:49
2019-03-06T03:26:19
Python
UTF-8
Python
false
false
9,971
py
knearestneighbour.py
"""K-Nearest Neighbor implementation by sklearn. For small data (< 200k rows).""" import os import datatable as dt import numpy as np import pandas as pd from h2oaicore.models_main import MainModel from h2oaicore.systemutils import config, physical_cores_count, loggerinfo from sklearn.preprocessing import LabelEncoder...
66949320d43d92f6833fc543e27980c27f7dd6e7
d87964cb5b12f542cd21f1ad7c6ed85b5325dc77
/unit_test/options_test.py
134db012ec43857be1fafa247f5fe18adc89c65e
[ "BSD-2-Clause" ]
permissive
pypa/cibuildwheel
65ddc98e9933ad4c7d408966c06cf4156941b68c
ce71f445deee7ac0dabd1ee900d6672370e60478
refs/heads/main
2023-08-17T02:56:29.658243
2023-08-14T16:15:53
2023-08-14T16:15:53
85,508,223
884
136
NOASSERTION
2023-09-13T20:10:43
2017-03-19T20:59:00
Python
UTF-8
Python
false
false
8,105
py
options_test.py
from __future__ import annotations import os import platform as platform_module import textwrap from pathlib import Path import pytest from cibuildwheel.__main__ import get_build_identifiers, get_platform_module from cibuildwheel.bashlex_eval import local_environment_executor from cibuildwheel.environment import par...
92882546e07f0a924811e0dc6506eb7c01a12eb1
5b6ba0f288b1e2ac236af846a9bf546a63228476
/iotbx/pdb/aa_utils.py
0f6ddb364b4f1c071a08bcb64ab31dab627e2447
[ "BSD-3-Clause-LBNL" ]
permissive
cctbx/cctbx_project
5b547b416cadbdf95cca21dace9f54272a08d98a
7f4dfb6c873fd560920f697cbfd8a5ff6eed82fa
refs/heads/master
2023-08-17T17:44:05.077010
2023-08-16T22:40:22
2023-08-16T22:40:22
39,508,026
206
131
NOASSERTION
2023-09-14T17:12:55
2015-07-22T13:36:27
Python
UTF-8
Python
false
false
3,731
py
aa_utils.py
from __future__ import division, print_function from iotbx.pdb import modified_aa_names from iotbx.pdb.amino_acid_codes import three_letter_given_one_letter from iotbx.pdb.amino_acid_codes import one_letter_given_three_letter from mmtbx.chemical_components import get_atom_names, get_bond_pairs def get_aa_parent(code)...
94a8243e671a226fb4962454e5940072cb0505ae
5ef6c8d47864f471e26b9902d61f8c687e941f05
/src/genie/libs/parser/junos/tests/ShowRouteAdvertisingProtocolDetail/cli/equal/golden_output_3_expected.py
db3a3ce812e230e6c33d5f8bf260b573341e71f0
[ "Apache-2.0" ]
permissive
CiscoTestAutomation/genieparser
169c196558f1c1a0f0d10650876096f993224917
b531eff760b2e44cd69d7a2716db6f866907c239
refs/heads/master
2023-09-03T08:56:18.831340
2023-08-29T22:32:02
2023-08-29T22:32:02
131,621,824
247
409
Apache-2.0
2023-08-29T22:32:04
2018-04-30T16:51:50
Python
UTF-8
Python
false
false
1,018
py
golden_output_3_expected.py
expected_output = { "route-information": { "route-table": [ { "active-route-count": "1", "destination-count": "1", "hidden-route-count": "0", "holddown-route-count": "0", "rt-entry": { "active-tag...
5c9d4095bc35186233f23337e5bde619e9a07456
820b6af9fd43b270749224bb278e5f714f655ac9
/IO/Geometry/Testing/Python/TestChacoReader.py
e099aefd963b87153c031c69185e1bb0e64e6e64
[ "BSD-3-Clause" ]
permissive
Kitware/VTK
49dee7d4f83401efce8826f1759cd5d9caa281d1
dd4138e17f1ed5dfe6ef1eab0ff6643fdc07e271
refs/heads/master
2023-09-01T10:21:57.496189
2023-09-01T08:20:15
2023-09-01T08:21:05
631,615
2,253
1,243
NOASSERTION
2023-09-14T07:53:03
2010-04-27T15:12:58
C++
UTF-8
Python
false
false
1,505
py
TestChacoReader.py
#!/usr/bin/env python from vtkmodules.vtkFiltersGeometry import vtkGeometryFilter from vtkmodules.vtkIOGeometry import vtkChacoReader from vtkmodules.vtkRenderingCore import ( vtkActor, vtkPolyDataMapper, vtkRenderWindow, vtkRenderWindowInteractor, vtkRenderer, ) import vtkmodules.vtkInteractionStyl...
cbe9fce0c4be7c6d2b4f396337ea8fe946fa6e6d
b483fde5aa84f38a2fd61ecf1ef2e13bfb62d5d1
/setup/migrate.py
9065cf40fd7bcbab96809d29f755f8c9e6a20f0a
[ "CC0-1.0" ]
permissive
mail-in-a-box/mailinabox
c6d05f9bb3d03106ab039cec3eb6699089858b15
e419b620347e7d3e4782466d540056a212d28ae1
refs/heads/main
2023-09-03T07:02:31.598535
2023-09-02T23:43:23
2023-09-02T23:46:24
12,271,469
10,188
1,757
CC0-1.0
2023-09-02T19:54:18
2013-08-21T13:56:50
Python
UTF-8
Python
false
false
10,770
py
migrate.py
#!/usr/bin/python3 # Migrates any file structures, database schemas, etc. between versions of Mail-in-a-Box. # We have to be careful here that any dependencies are already installed in the previous # version since this script runs before all other aspects of the setup script. import sys, os, os.path, glob, re, shuti...
8202722a079e2d2ce790d7cd027f7f517c8d3475
81c66d2c2910553a97f1229a924b95a3c94e77aa
/keras/data_loader.py
802c66f6d6caf2b2527f2545210ad59f4f57fa8a
[ "MIT" ]
permissive
guxd/deep-code-search
66033a13d405bd8660566a2afbe662f448fb0bf0
06c9de63d97308b5b0adcb20f38402e5d29c8704
refs/heads/master
2022-05-27T12:57:05.186200
2022-05-26T14:32:51
2022-05-26T14:32:51
121,241,775
290
98
MIT
2021-04-11T03:25:44
2018-02-12T12:04:09
Python
UTF-8
Python
false
false
2,442
py
data_loader.py
import pickle import codecs import tables import numpy as np from tqdm import tqdm import logging logger = logging.getLogger(__name__) logging.basicConfig(level=logging.INFO, format="%(asctime)s: %(name)s: %(levelname)s: %(message)s") def load_pickle(filename): return pickle.load(open(filename, 'rb')) ##### ...
354710d8c39bd1c07db32aac549138d3750fd565
54292bb222c6525217458e92ddacfc4e2635b83e
/python/phonenumbers/data/region_EE.py
18227bc3fad728e5f8227ae1cf6cbfef6cdb93b0
[ "Apache-2.0" ]
permissive
daviddrysdale/python-phonenumbers
0d69b48033d1464c0a6c358274062f1db2ee8c4a
2f06ef6db2ca83f3856fbb8019a0c665f5971b13
refs/heads/dev
2023-08-31T09:37:20.570690
2023-08-22T05:18:22
2023-08-22T05:18:22
1,643,611
2,944
406
Apache-2.0
2023-08-08T06:49:07
2011-04-21T03:06:38
Python
UTF-8
Python
false
false
2,063
py
region_EE.py
"""Auto-generated file, do not edit by hand. EE metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_EE = PhoneMetadata(id='EE', country_code=372, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{...
ff1ba5582b1fc7212dc7a593b2e343ba80fa76b7
4caa087dcb95a6a7dbe8cc49fde383e9f2aa4426
/mmtrack/core/track/correlation.py
9441392597e9ffbe4cbcc011954b54eb428ff1a9
[ "Apache-2.0" ]
permissive
open-mmlab/mmtracking
1e55c69cc1a264b3c9546c19332a38e9621430ed
e79491ec8f0b8c86fda947fbaaa824c66ab2a991
refs/heads/master
2023-09-01T15:41:04.322684
2023-04-25T13:25:18
2023-04-25T13:25:18
291,213,368
3,263
604
Apache-2.0
2023-08-26T04:05:00
2020-08-29T06:16:56
Python
UTF-8
Python
false
false
772
py
correlation.py
# Copyright (c) OpenMMLab. All rights reserved. import torch.nn.functional as F def depthwise_correlation(x, kernel): """Depthwise cross correlation. This function is proposed in `SiamRPN++ <https://arxiv.org/abs/1812.11703>`_. Args: x (Tensor): of shape (N, C, H_x, W_x). kernel (Ten...
d2134b17eef6b79c8ef1b87e363b85963ccee478
30158cbe4ef57ec85df07da8e8f8085a5001996c
/frame_2D_alg/alternative versions/compare_draft.py
4a76b98625eb08569d06248cc9ed1fbe2c1203e7
[ "CC-BY-4.0", "MIT" ]
permissive
boris-kz/CogAlg
951c00e202db8537d106b9794b5309f22f3d25b9
a56a369524c9435bfb20225b71e87b6b28c9d1e3
refs/heads/master
2023-09-04T04:07:52.028903
2023-09-04T00:58:53
2023-09-04T00:58:53
90,488,789
110
54
MIT
2023-05-04T11:27:04
2017-05-06T20:17:18
Python
UTF-8
Python
false
false
5,140
py
compare_draft.py
import numpy as np from cmath import phase from math import hypot # flags: f_angle = 0b00000001 f_rng_incr = 0b00000010 # ************ FUNCTIONS ************************************************************************************************ # -compare_i() # -construct_input_array() # -convolve() # -ca...
7bdb372ccabbefcaa712626293fd5ab3b1ea9fdd
8eb7e2224cd81cd21fd5b0c4dd54abe85ba07e49
/netmiko/ruijie/ruijie_os.py
f3a070da447adbf3b5f18efb7e0bf714c7105ec1
[ "MIT" ]
permissive
ktbyers/netmiko
f8b980569fd863f0a7bfe28580366339c4bd31ec
2e56b40ec639da130471c59dd1f3c93983471e41
refs/heads/develop
2023-08-30T20:33:05.554926
2023-08-29T21:50:45
2023-08-29T21:50:45
27,283,062
3,397
1,594
MIT
2023-09-04T03:04:31
2014-11-28T21:42:52
Python
UTF-8
Python
false
false
1,298
py
ruijie_os.py
"""Ruijie RGOS Support""" import time from typing import Any from netmiko.cisco_base_connection import CiscoBaseConnection class RuijieOSBase(CiscoBaseConnection): def session_preparation(self) -> None: """Prepare the session after the connection has been established.""" self._test_channel_read(p...
a03bb78c33106c968ed93c8c729d922a02298b06
c5489e28e60aadcc6b378419cb9fb5000443ee3d
/ci/config_token.py
ac28a1317de255ffe99107f6c59ae3dba02bab63
[ "BSD-3-Clause" ]
permissive
jupyterhub/jupyterhub-deploy-docker
1a43bee8f7a6c4671e6aa5201bb6594496e0f7f0
07b488325991230aab8427b6976a714da5f8a220
refs/heads/main
2023-09-02T00:28:24.998330
2023-08-28T06:51:33
2023-08-28T06:51:33
56,241,532
651
446
BSD-3-Clause
2023-08-28T06:51:35
2016-04-14T13:53:14
Python
UTF-8
Python
false
false
304
py
config_token.py
c.JupyterHub.load_roles = [ # noqa: F821 { "name": "test-admin", "scopes": ["admin:users", "admin:servers", "access:servers"], "services": ["test"], } ] c.JupyterHub.services = [ # noqa: F821 { "name": "test", "api_token": "test-token-123", } ]
2c255c98c1cc8fd159a06dd05ab13d1ffa448a31
568fa58296378fa129ab3349adf010daa44ed45b
/tests/common/test_op/ascend/apply_add_sign.py
c2fc833a08dc85e8f1b5d57dabc8de48548f49bf
[ "Apache-2.0", "BSD-3-Clause", "NCSA", "X11-distribute-modifications-variant", "Zlib", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "LLVM-exception", "BSD-2-Clause" ]
permissive
mindspore-ai/akg
37f471badc66de6a831f1f45ad84344f34d23ef2
99f33858d6972741748cbfc9ab0bf9600428fef7
refs/heads/master
2023-07-25T23:03:17.672665
2023-07-11T07:33:57
2023-07-11T07:33:57
274,077,856
319
36
Apache-2.0
2021-12-30T13:43:08
2020-06-22T08:09:05
Python
UTF-8
Python
false
false
3,597
py
apply_add_sign.py
# Copyright 2020-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
d83f62132400895966b21b270b1509a6b63fcb92
e61e664d95af3b93150cda5b92695be6551d2a7c
/vega/algorithms/nas/modnas/registry/registry.py
bab93f464b099d8c302c99f7363da01bd2c5d68d
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
huawei-noah/vega
44aaf8bb28b45f707ed6cd4e871ba70fc0c04846
12e37a1991eb6771a2999fe0a46ddda920c47948
refs/heads/master
2023-09-01T20:16:28.746745
2023-02-15T09:36:59
2023-02-15T09:36:59
273,667,533
850
184
NOASSERTION
2023-02-15T09:37:01
2020-06-20T08:20:06
Python
UTF-8
Python
false
false
2,158
py
registry.py
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. 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...
03acc80083655efcef67397e6555ee93c0bcbdc1
2337351b228818e41be3002bd38f68f77c2aa074
/sa/profiles/Raisecom/ROS/get_mac_address_table.py
a6fa36aa8121f97fb8bb0d8c369b02cfd5b52f90
[ "BSD-3-Clause" ]
permissive
nocproject/noc
57d40c680a1499374463e472434f9595ed6d1374
6e6d71574e9b9d822bec572cc629a0ea73604a59
refs/heads/master
2023-08-31T01:11:33.544573
2023-08-30T17:31:11
2023-08-30T17:31:11
107,815,776
105
33
BSD-3-Clause
2023-07-31T07:57:45
2017-10-21T21:04:33
Python
UTF-8
Python
false
false
1,567
py
get_mac_address_table.py
# --------------------------------------------------------------------- # Raisecom.ROS.get_mac_address_table # --------------------------------------------------------------------- # Copyright (C) 2007-2017 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------...
4155f42d48b7e52987817f66d1a279d84164bd89
fae16a539b7c1b0525aab40ddaeee3e451fc9b74
/tests/integration/client/feedback/dataset/remote/test_filtered.py
e550e6d912810b9dc21aa7d1e7cd8adf0f639c72
[ "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
argilla-io/argilla
a6b45f7f64e9db82f6d9a61771d758ffbb3dab4a
7c1b2368b444b7b7a281d37ad51bcb2d8e92acf5
refs/heads/develop
2023-09-04T03:58:05.914619
2023-09-01T15:58:31
2023-09-01T15:58:31
362,500,938
1,085
122
Apache-2.0
2023-09-14T15:31:07
2021-04-28T14:37:42
Python
UTF-8
Python
false
false
4,789
py
test_filtered.py
# Copyright 2021-present, the Recognai S.L. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
855295772a8310d88aabc5c8e126834db85abc90
6b4dbc04e8b2513634e8d25b9f8b69c82c07b6fe
/test/UdsTest.py
a49c458731bc1309f43f8cb2a7c8a26c2e023000
[ "MIT" ]
permissive
pylessard/python-udsoncan
57c62b59a88907c6a988501c65efa14cfb8153a0
1b93cc3cd0e09a21d48881ba53aed257f841bb89
refs/heads/master
2023-08-29T21:49:55.403246
2023-06-24T15:46:46
2023-06-24T15:46:46
99,459,987
477
181
MIT
2023-06-30T15:29:30
2017-08-06T02:40:37
Python
UTF-8
Python
false
false
177
py
UdsTest.py
import unittest import logging import sys class UdsTest(unittest.TestCase): def __init__(self, *args, **kwargs): unittest.TestCase.__init__(self, *args, **kwargs)
63c8a5a4990fa74b3630c8de997acb7e8ef56737
ab40571d5051ad53c0f205fa797ba36eac516d06
/language/xsp/data_preprocessing/nl_to_sql_example.py
c7e828bd70f3e0382c31e2a12928ed517c9a6dd2
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
google-research/language
e941b1a92ab46d40d8d03bb0c314905cb6902ce2
ac9447064195e06de48cc91ff642f7fffa28ffe8
refs/heads/master
2023-08-24T23:10:13.207294
2023-05-25T20:47:18
2023-05-25T22:29:27
153,201,352
1,567
371
Apache-2.0
2023-07-06T23:03:15
2018-10-16T00:58:14
Python
UTF-8
Python
false
false
4,052
py
nl_to_sql_example.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
e397d09629a99610697e3de6dbce9f401b2ccd7a
2f7dc0184e5b4c0c15973b498c589de2d049e277
/pre_commit_hooks/check_builtin_literals.py
d3054aa075569f89b84529ae6093888d247c4197
[ "MIT" ]
permissive
pre-commit/pre-commit-hooks
178ab044f0b18893d69521f13fc6cf9a29a13a09
3a569ca95749f562ff8b742e3568a077caeb5eb7
refs/heads/main
2023-08-18T02:31:00.550553
2023-08-15T14:18:50
2023-08-15T14:18:50
17,714,713
4,311
831
MIT
2023-09-14T20:13:15
2014-03-13T15:21:46
Python
UTF-8
Python
false
false
2,920
py
check_builtin_literals.py
from __future__ import annotations import argparse import ast from typing import NamedTuple from typing import Sequence BUILTIN_TYPES = { 'complex': '0j', 'dict': '{}', 'float': '0.0', 'int': '0', 'list': '[]', 'str': "''", 'tuple': '()', } class Call(NamedTuple): name: str line...
e862fa70f7cc1f43f2f29a5c978aa33e06a1d5d6
29eacf3b29753d65d8ec0ab4a60ea1f7ddecbd68
/setup.py
94d96ef1f119f85d0d5af99f2492c039438445db
[ "MIT" ]
permissive
lightly-ai/lightly
5b655fe283b7cc2ddf1d7f5bd098603fc1cce627
5650ee8d4057139acf8aa10c884d5d5cdc2ccb17
refs/heads/master
2023-08-17T11:08:00.135920
2023-08-16T12:43:02
2023-08-16T12:43:02
303,705,119
2,473
229
MIT
2023-09-14T14:47:16
2020-10-13T13:02:56
Python
UTF-8
Python
false
false
4,985
py
setup.py
import os import sys import setuptools try: import builtins except ImportError: import __builtin__ as builtins PATH_ROOT = PATH_ROOT = os.path.dirname(__file__) builtins.__LIGHTLY_SETUP__ = True import lightly def load_description(path_dir=PATH_ROOT, filename="DOCS.md"): """Load long description from ...
4c8f326d74f7e5a7f9fe36b38011fc88c6232d34
2dfbca22d0bacf7ba2bb4d270b2d3292f5f8a43b
/amulet/level/formats/leveldb_world/interface/chunk/leveldb_25.py
38432ed45cc5d1f99909ad87a5a9832264eea27c
[]
no_license
Amulet-Team/Amulet-Core
9715d888e2faf6c41f9414fd105aaa926aa501c2
dafef97fe4fd1f2f713ef1e3503d6b13b20c1c1f
refs/heads/main
2023-08-18T17:45:48.775423
2023-08-16T09:37:55
2023-08-16T09:37:55
130,729,079
117
26
null
2023-08-16T09:37:57
2018-04-23T17:00:04
Python
UTF-8
Python
false
false
673
py
leveldb_25.py
from __future__ import annotations import struct from .leveldb_24 import ( LevelDB24Interface as ParentInterface, ) class LevelDB25Interface(ParentInterface): chunk_version = 25 @staticmethod def _chunk_key_to_sub_chunk(cy: int, min_y: int) -> int: return cy + min_y @staticmethod de...
de197ee39eef817704a5936227806c5a45301108
09e2c0960db705664881c47cc1c4776289576f04
/noisereduce/generate_noise.py
d32a0c74bcbb5336d88eff10550660871004e1ad
[ "MIT" ]
permissive
timsainb/noisereduce
044e5cd513edc04eef8f3cc346e084d2b8fb0a02
658b8c61368e2cbc9ed1e86bf71ddf61c77852f0
refs/heads/master
2023-08-03T09:22:47.124089
2023-07-14T03:16:48
2023-07-14T03:16:48
174,219,582
1,066
230
MIT
2023-07-30T18:10:30
2019-03-06T20:55:12
Jupyter Notebook
UTF-8
Python
false
false
671
py
generate_noise.py
import numpy as np # from https://stackoverflow.com/questions/33933842/how-to-generate-noise-in-frequency-range-with-numpy def fftnoise(f): """ """ f = np.array(f, dtype="complex") Np = (len(f) - 1) // 2 phases = np.random.rand(Np) * 2 * np.pi phases = np.cos(phases) + 1j * np.sin(phases) f...
ecd714a4c512619cc7d9ad842510b56cae6eed06
9c774a31ff1e98a6366e71e54e84ea97e6f050a2
/examples/attributes1.py
07096d6b2a7ca09aa6e831f45e5127233e57d88c
[ "BSD-3-Clause" ]
permissive
PyTables/PyTables
65c355d47d68b5e8f4240fc7cc32906c3b6f2eea
f3817d7637b465de1a2ab5da9dffd3aba185c331
refs/heads/master
2023-08-30T02:46:42.212028
2023-08-18T05:32:06
2023-08-18T05:32:06
1,844,194
1,076
267
BSD-3-Clause
2023-09-09T06:56:39
2011-06-03T19:44:46
Python
UTF-8
Python
false
false
636
py
attributes1.py
import numpy as np import tables as tb # Open a new empty HDF5 file fileh = tb.open_file("attributes1.h5", mode="w", title="Testing attributes") # Get the root group root = fileh.root # Create an array a = np.array([1, 2, 4], np.int32) # Save it on the HDF5 file hdfarray = fileh.create_array(root, 'array', a, "Intege...
2d55d6c2f3e6dd7bbd4384f9623dbeacb6c178ab
fff196eb22df71d916c8b7113c28c82c0944ecb8
/toma/batchsize_cache.py
34aee396d0dd748530e6d8f23c2dcf6b155f2d82
[ "MIT" ]
permissive
BlackHC/toma
4b48f0f0d84394f493bef19671a3ceb8d88698fd
10cfe70efaba59ea669c50c0060cfddef65d0b16
refs/heads/master
2021-05-26T12:04:44.314625
2021-04-17T18:37:20
2021-04-17T18:37:20
254,126,044
343
9
null
null
null
null
UTF-8
Python
false
false
2,472
py
batchsize_cache.py
import functools from dataclasses import dataclass from typing import Optional import toma.cpu_memory from toma import stacktrace as tst, torch_cuda_memory as tcm import weakref @dataclass class Batchsize: value: Optional[int] = None def set_initial_batchsize(self, initial_batchsize: int): if not se...
8c5af51828fa14b3b9830254fdac0595c20e2771
84724b34b3f1e84dc53cbca5f3660590dbc34a9f
/nova/tests/unit/console/securityproxy/test_rfb.py
17cf8f7c5795e67a2fd07e2fabedad622499a692
[ "Apache-2.0" ]
permissive
openstack/nova
2c24b64e3677595611715bae6dda14edd3f90a24
065c5906d2da3e2bb6eeb3a7a15d4cd8d98b35e9
refs/heads/master
2023-08-28T15:10:05.126314
2023-08-25T20:31:27
2023-08-25T20:31:27
790,031
2,287
2,320
Apache-2.0
2023-07-08T02:10:29
2010-07-22T02:04:27
Python
UTF-8
Python
false
false
10,303
py
test_rfb.py
# Copyright (c) 2014-2016 Red Hat, Inc # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
396eaafa2a34b943de12c5630c7be2e7a7eb98aa
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/L1Trigger/L1TCalorimeter/test/TTbarRelVal_Stage2Test.py
8cc14265b76be4b3e36d22cd03a154419cb87b17
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
3,592
py
TTbarRelVal_Stage2Test.py
# Auto generated configuration file # using: # Revision: 1.19 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v # with command line options: l1 -s L1 --pileup=NoPileUp --geometry DB --conditions=auto:startup -n 1 --no_exec --filein=/store/mc/Fall13dr/TT_Tune4C_13TeV-pythia8-tauol...
74934da18fd1752ab7ba0a9a21bf103c54256a20
cd2d902d506e44f6775f8d0e69eb0de745da013e
/tests/integration/standard/test_control_connection.py
9d579476d29a77d44cbc98492234a5e98be8fc1c
[ "Apache-2.0" ]
permissive
datastax/python-driver
5135c3dcd227cfaa664d32ce1e0887e71b0e3878
8c41066330eb04c34eff57153ab2eda810844d5f
refs/heads/master
2023-08-18T22:57:43.761208
2023-06-06T21:24:28
2023-06-06T21:24:28
11,262,602
1,256
492
Apache-2.0
2023-09-12T21:25:45
2013-07-08T19:02:31
Python
UTF-8
Python
false
false
4,785
py
test_control_connection.py
# Copyright DataStax, 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, softwa...
2214bc30a65678556b0c832da1999f7a1c5f182b
899a427a903148d0d26e903faf8021b94b126911
/23-trie/python/0720-longest-word-in-dictionary(看不懂的解答).py
2228090bcdf7ec6202aaabe13a66253579ff8765
[ "Apache-2.0" ]
permissive
liweiwei1419/LeetCode-Solutions-in-Good-Style
033ab69b93fa2d294ab6a08c8b9fbcff6d32a178
acc8661338cc7c1ae067915fb16079a9e3e66847
refs/heads/master
2022-07-27T15:24:57.717791
2021-12-19T03:11:02
2021-12-19T03:11:02
161,101,415
2,016
351
Apache-2.0
2022-01-07T10:38:35
2018-12-10T01:50:09
Java
UTF-8
Python
false
false
1,450
py
0720-longest-word-in-dictionary(看不懂的解答).py
from typing import List class Node: def __init__(self, key, is_end=False): self.key = key self.children = {} self.is_end = is_end class Trie: def __init__(self): self.root = Node('') self.root.is_end = True def insert(self, word): node = self.root ...
9b2c18e9718eda06660bcf0b40cb5e199176f592
9ed4d46aedd4d4acadb48d610e940594b5b7b3fd
/strings/palindrome.py
bfdb3ddcf3961c7a051fe1235f5291d2eca08848
[ "MIT", "Giftware", "LicenseRef-scancode-proprietary-license" ]
permissive
TheAlgorithms/Python
7596a0e236ed12a61f9db19a7ea68309779cc85b
421ace81edb0d9af3a173f4ca7e66cc900078c1d
refs/heads/master
2023-09-01T17:32:20.190949
2023-08-29T13:18:10
2023-08-29T13:18:10
63,476,337
184,217
48,615
MIT
2023-09-14T02:05:29
2016-07-16T09:44:01
Python
UTF-8
Python
false
false
2,975
py
palindrome.py
# Algorithms to determine if a string is palindrome from timeit import timeit test_data = { "MALAYALAM": True, "String": False, "rotor": True, "level": True, "A": True, "BB": True, "ABC": False, "amanaplanacanalpanama": True, # "a man a plan a canal panama" } # Ensure our test data is...
a79c1181b3866142475e78d7d8895cf1ca8488ca
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/22_专题/前缀与差分/差分数组/370. 区间加法-差分模板.py
efd606023048fe25d60cf69db6e2a23f2c26ed37
[]
no_license
981377660LMT/algorithm-study
f2ada3e6959338ae1bc21934a84f7314a8ecff82
7e79e26bb8f641868561b186e34c1127ed63c9e0
refs/heads/master
2023-09-01T18:26:16.525579
2023-09-01T12:21:58
2023-09-01T12:21:58
385,861,235
225
24
null
null
null
null
UTF-8
Python
false
false
690
py
370. 区间加法-差分模板.py
from typing import List # 假设你有一个长度为 n 的数组,初始情况下所有的数字均为 0,你将会被给出 k​​​​​​​ 个更新的操作。 # 请你返回 k 次操作后的数组。 class Solution: def getModifiedArray(self, length: int, updates: List[List[int]]) -> List[int]: res = [0] * (length + 1) for left, right, delta in updates: res[left] += delta ...
d852008afac8ab352534fc4de9507c5ed78c3815
a4ded6a73551bcb7cb3d70679f07a8f31a165465
/tests/test_view_functions.py
f69b21557bc29a1ef17656debc7c21b7bf7d1891
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
GoogleCloudPlatform/functions-framework-python
d324c4d99f0bb59bda3b930872f1294417e6cf93
45aed538b5e39655318c7841457399fa3376ceaf
refs/heads/main
2023-09-05T08:05:03.935120
2023-08-28T23:28:46
2023-08-28T23:28:46
231,433,569
740
136
Apache-2.0
2023-09-08T00:40:30
2020-01-02T18:01:56
Python
UTF-8
Python
false
false
7,354
py
test_view_functions.py
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
0d4d76a2a6c7764fd7cfbeb14cc0483f6bb41986
019f03d6713a2bc5344b644aeb5ebe70aaf7cfd0
/src/super_gradients/common/data_interface/adnn_model_repository_data_interface.py
0011ff44695448b91dc49a8336c12e1333e86dbd
[ "LicenseRef-scancode-proprietary-license", "Apache-2.0" ]
permissive
Deci-AI/super-gradients
6f52cd15bc2f9f39e3cdc6067292b6512aba5dd0
7240726cf6425b53a26ed2faec03672f30fee6be
refs/heads/master
2023-08-25T17:47:02.595029
2023-08-24T11:50:50
2023-08-24T11:50:50
432,652,408
3,237
331
Apache-2.0
2023-09-14T11:24:46
2021-11-28T07:58:02
Jupyter Notebook
UTF-8
Python
false
false
9,699
py
adnn_model_repository_data_interface.py
import os import sys from super_gradients.common.data_connection.s3_connector import S3Connector from super_gradients.common.decorators.explicit_params_validator import explicit_params_validation from super_gradients.common.environment.env_variables import env_variables from super_gradients.common.abstractions.abstrac...
055e2f5fcc1974fc3f843c905690a517238cd37c
ea57d267ab31480d8d731b2c095e9da9ad989133
/tests/test_packages/test_skills/test_tac_negotiation/test_helpers.py
19d2fc0852def6b2026f84d1e26b3aff4026d575
[ "Apache-2.0" ]
permissive
fetchai/agents-aea
6d034f1db6f3beacf31dac2f5a1baaa60c8edb7d
bec49adaeba661d8d0f03ac9935dc89f39d95a0d
refs/heads/main
2023-08-08T23:19:06.276643
2023-02-04T10:46:39
2023-02-04T10:46:39
203,558,879
192
58
Apache-2.0
2023-07-19T04:45:26
2019-08-21T10:12:47
Python
UTF-8
Python
false
false
10,674
py
test_helpers.py
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2023 Fetch.AI Limited # # 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 ...
052a55a981d5523aec693e2100805f9c6125e2f1
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/resolve/multiFile/importOsPath/yos/__init__.py
e87f1d2c7a3017b77c3ca9af54fdf6079f945022
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
32
py
__init__.py
def makedir(foo): print foo
79365c2aec95e79224a3ba87a0642d09b0782a14
39b021eabbb8e3be1734cf92fd641965a796b0eb
/deepchem/feat/material_featurizers/element_property_fingerprint.py
c7bb2ee5039d06377509d0f11b09f49bc451a81b
[ "MIT" ]
permissive
deepchem/deepchem
066cbf42316b2f6bec0166727e0264a485d5266f
ee6e67ebcf7bf04259cf13aff6388e2b791fea3d
refs/heads/master
2023-09-02T01:32:17.860111
2023-08-31T18:49:00
2023-08-31T18:49:00
43,098,215
4,876
1,905
MIT
2023-09-14T19:10:44
2015-09-24T23:20:28
Python
UTF-8
Python
false
false
3,508
py
element_property_fingerprint.py
import numpy as np from deepchem.utils.typing import PymatgenComposition from deepchem.feat import MaterialCompositionFeaturizer from typing import Any class ElementPropertyFingerprint(MaterialCompositionFeaturizer): """ Fingerprint of elemental properties from composition. Based on the data source chos...
07b3d7c50572b518c1cac1970163cadb4125c630
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AntProdpaasArrangementCommonQueryModel.py
972cb67e8154c75a9e978bc94efbff4d0bf72f96
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
4,658
py
AntProdpaasArrangementCommonQueryModel.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.ArrangementBaseSelector import ArrangementBaseSelector from alipay.aop.api.domain.ArrangementConditionGroupSelector import ArrangementConditionGroupSelector from alipay.aop.api.doma...
58358e7250015934d7c168ad728d5a4b0dc1393a
adebaf6fa8518bb8119b4edd6e8dbb319f79e947
/release/rollback/steps.py
5068109f4656ac226b1db894583416614da7e484
[ "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
google/nomulus
a482d1e15dd7e9f0faedea404c3137385a1633f7
7b59c4abbff56f37a0cf0bf0467e0f520b2056a5
refs/heads/master
2023-08-27T10:51:26.301885
2023-08-25T20:30:37
2023-08-25T20:30:37
52,821,506
1,785
324
Apache-2.0
2023-09-14T20:53:52
2016-02-29T20:16:48
Java
UTF-8
Python
false
false
6,997
py
steps.py
# Copyright 2020 The Nomulus 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 applicable...
c89161ba84913cc6d8ab5d8e8a9b71aa1e613d1d
c140ad38b1463024e289ceb0d5d6d44a45c91724
/hpccm/building_blocks/fftw.py
8b733c206da6799165fb61d86a377e1f25886af1
[ "Apache-2.0" ]
permissive
NVIDIA/hpc-container-maker
3a333526decbd18352ef8d1fb3bec0033be221e8
60fd2a51c171258a6b3f93c2523101cb7018ba1b
refs/heads/master
2023-08-21T13:32:27.132476
2023-06-12T21:12:40
2023-06-12T21:12:40
126,385,168
419
88
Apache-2.0
2023-09-11T18:33:26
2018-03-22T19:26:41
Python
UTF-8
Python
false
false
7,929
py
fftw.py
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
610b2a203911684ccee85589f44753fdc6f1190f
2150466ca493d7659d8e65ca4498a4e4e88c0854
/clients/vpn_linux_tornado.py
5d003e65d410674eef9af32a6a89e41d80635961
[ "MIT" ]
permissive
unbit/vpn-ws
43ce0287d869611a1a6ab354f38ad59aeab456b2
f57aaf73164de3abd85955e74ff41a962d9fe185
refs/heads/master
2023-06-08T06:22:40.245353
2023-04-03T04:36:17
2023-04-03T04:36:17
26,267,188
494
120
MIT
2023-04-03T04:36:18
2014-11-06T11:32:35
C
UTF-8
Python
false
false
617
py
vpn_linux_tornado.py
from tornado import ioloop from ws4py.client.tornadoclient import TornadoWebSocketClient from pytun import TunTapDevice, IFF_TAP, IFF_NO_PI import sys io_loop = ioloop.IOLoop.instance() tap = TunTapDevice(flags=IFF_TAP|IFF_NO_PI, name='vpn-ws%d') class VpnWSClient(TornadoWebSocketClient): def received_message(s...
e8a72528f56e1f8d2ab2dbe115a49632f5687349
474c281c47aed69036b2a13e9a60d150d8ecddc5
/jsons/_dump_impl.py
c37165774d49b83a8e17676682d636d5909cf13c
[ "MIT" ]
permissive
ramonhagenaars/jsons
c2445eb7c002544abdfde4ac63d42f5a93e4d776
9abbf3a3bd32435ac74bc98c3554ad3c71086036
refs/heads/master
2023-07-23T22:08:10.093119
2022-06-09T19:50:52
2022-06-09T19:50:52
140,337,655
286
52
MIT
2023-07-14T15:20:59
2018-07-09T20:18:08
Python
UTF-8
Python
false
false
3,997
py
_dump_impl.py
""" PRIVATE MODULE: do not import (from) it directly. This module contains functionality for dumping stuff to json. """ import json from typing import Optional, Dict from jsons._cache import clear from jsons._common_impl import StateHolder from jsons._extra_impl import announce_class from jsons._lizers_impl import ge...
d79f7f770e2968fa9fe0f430cb47f6bd7884e654
d88458a65a173999df390117005fa813735e5fe2
/astroquery/utils/tap/model/shared_to_item.py
f30876b280dc385c760710e6cafd4b08bcc95c84
[]
permissive
astropy/astroquery
9a2793826229ba4b41ec3607ca77832036a534e9
51316d7417d7daf01a8b29d1df99037b9227c2bc
refs/heads/main
2023-09-01T20:52:41.625935
2023-08-29T23:22:40
2023-08-29T23:22:40
4,787,269
636
365
BSD-3-Clause
2023-09-14T21:56:33
2012-06-25T20:52:07
Python
UTF-8
Python
false
false
719
py
shared_to_item.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ ============= TAP plus ============= @author: Javier Durtan @contact: javier.duran@sciops.esa.int European Space Astronomy Centre (ESAC) European Space Agency (ESA) Created on 28 sep. 2018 """ class TapSharedToItem: """TAP shared to item obj...
0eae673c108a4a13f7ab3cb5284d86d9698337bb
e2d31e3754624eeb0a2dace8691c5c25ed3b988e
/generate_gmake2_vulkan.py
f6a3fbfabead915e0bbf9465aeb49a2594bde651
[ "MIT" ]
permissive
PanosK92/SpartanEngine
da7950d3e5a673b3fd7881c6e9370d84c8e361a1
9cf38d84c344dad43a2cb45f018914f7504f1047
refs/heads/master
2023-09-01T09:01:47.784814
2023-08-24T09:42:53
2023-08-24T09:42:53
61,415,047
1,655
169
MIT
2023-09-11T15:08:52
2016-06-18T03:27:49
C++
UTF-8
Python
false
false
262
py
generate_gmake2_vulkan.py
import os import subprocess import sys # change working directory to script directory os.chdir(os.path.dirname(__file__)) # run script subprocess.Popen("python3 build_scripts/generate_project_files.py gmake2 vulkan", shell=True).communicate() # exit sys.exit(0)
1151146929c813d7d0881b19e41a92ebd008353b
10cb11f83e1c8b51b9d72c28d6259a56ff1a97c8
/samcli/local/layers/layer_downloader.py
a600a032fe10aa524f0464b256298f39c35c96c3
[ "Apache-2.0", "BSD-3-Clause", "MIT", "BSD-2-Clause" ]
permissive
aws/aws-sam-cli
6d4411aacf7f861e75e5cf4882a32858797a276d
b297ff015f2b69d7c74059c2d42ece1c29ea73ee
refs/heads/develop
2023-08-30T23:28:36.179932
2023-08-30T21:58:26
2023-08-30T21:58:26
92,205,085
1,402
470
Apache-2.0
2023-09-14T21:14:23
2017-05-23T18:16:23
Python
UTF-8
Python
false
false
5,967
py
layer_downloader.py
""" Downloads Layers locally """ import logging from pathlib import Path from typing import List import boto3 from botocore.exceptions import ClientError, NoCredentialsError from samcli.commands.local.cli_common.user_exceptions import CredentialsRequired, ResourceNotFound from samcli.lib.providers.provider import La...
556c7237e6bd357fdaaa314c0d80b7c1616125da
5ef6c8d47864f471e26b9902d61f8c687e941f05
/src/genie/libs/parser/iosxe/tests/ShowInterfaces/cli/equal/golden_output_2_expected.py
e7883907e661cfd76e8ee83a1c45a910567f3017
[ "Apache-2.0" ]
permissive
CiscoTestAutomation/genieparser
169c196558f1c1a0f0d10650876096f993224917
b531eff760b2e44cd69d7a2716db6f866907c239
refs/heads/master
2023-09-03T08:56:18.831340
2023-08-29T22:32:02
2023-08-29T22:32:02
131,621,824
247
409
Apache-2.0
2023-08-29T22:32:04
2018-04-30T16:51:50
Python
UTF-8
Python
false
false
10,343
py
golden_output_2_expected.py
expected_output = { "TenGigabitEthernet0/1/0": { "arp_timeout": "04:00:00", "arp_type": "arpa", "auto_negotiate": False, "bandwidth": 10000000, "counters": { "in_broadcast_pkts": 7, "in_crc_errors": 0, "in_errors": 0, "in_frame"...
c66ebc70c8f53427c2f9cd46185ed9496bc65936
fdb9bdc6c4ab2f14ba71e544493706d5e275899f
/fhir/resources/R4B/evidencevariable.py
248c00c2229c3e04c42ccc77d988e217a00ed883
[ "BSD-3-Clause" ]
permissive
nazrulworld/fhir.resources
6ae8aea8180c611b0c5050759c6dcdf63e4cb061
1fd6ea476b27b3fcb8c4ef8f23bc51cf161e69e3
refs/heads/main
2023-08-30T18:27:27.277249
2023-07-03T19:57:06
2023-07-03T19:57:06
165,297,877
256
83
NOASSERTION
2023-08-24T15:34:05
2019-01-11T19:26:41
Python
UTF-8
Python
false
false
34,996
py
evidencevariable.py
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/EvidenceVariable Release: R4B Version: 4.3.0 Build ID: c475c22 Last updated: 2022-05-28T12:47:40.239+10:00 """ import typing from pydantic import Field, root_validator from pydantic.error_wrappers import ErrorWrapper, ValidationError from pyd...
ac71cd2ee4553db02ba1c6dfac5a5f46eafab65c
689a78e08c957abc02ea5f89fb657b1f78f88b6e
/det3d/torchie/trainer/hooks/optimizer.py
9a50e620af4705cb66732dd2551adc4618a13323
[ "MIT", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference" ]
permissive
tianweiy/CenterPoint
2bb9a7def8d4bf87b66af2e3b671736eae6fa275
d3a248fa56db2601860d576d5934d00fee9916eb
refs/heads/master
2023-08-30T23:11:49.528882
2022-10-24T13:09:52
2022-10-24T13:09:52
274,006,091
1,692
476
MIT
2023-05-06T10:30:06
2020-06-22T00:32:05
Python
UTF-8
Python
false
false
609
py
optimizer.py
from torch.nn.utils import clip_grad from .hook import Hook class OptimizerHook(Hook): def __init__(self, grad_clip=None): self.grad_clip = grad_clip def clip_grads(self, params): clip_grad.clip_grad_norm_( filter(lambda p: p.requires_grad, params), **self.grad_clip ) ...
edda75b4b97058a66dbf7f5338ff4cbf8dc09dd6
6dfc23ef65e5943712340ef2b4b648cc25ea1fad
/2022/08/10/How to Cancel a Running Task in Celery/celery_example/app/myapp/__init__.py
26b10e9d95f01165ed3a242c54c98733fca0b0b2
[ "Unlicense" ]
permissive
PrettyPrinted/youtube_video_code
6d265c910de18d780cdb99f7ea11b8b963929dc2
5654e5feba854d3b41b8dd75218e0221408e7831
refs/heads/master
2023-09-04T21:28:57.386174
2023-08-11T07:07:45
2023-08-11T07:07:45
186,743,986
698
2,347
Unlicense
2022-10-06T04:06:56
2019-05-15T03:40:45
HTML
UTF-8
Python
false
false
1,206
py
__init__.py
from celery import Celery from celery.contrib.abortable import AbortableTask from flask import Flask, render_template from time import sleep def make_celery(app): celery = Celery(app.name) celery.conf.update(app.config["CELERY_CONFIG"]) class ContextTask(celery.Task): def __call__(self, *args, **k...
ef87a393ab1bc476ed1e04cd620d97b21363e401
bee4b8a10d36f6b9a2b9ec860129b4754449330c
/tutorials/adaptive_attacks/patch_loss_gradient.py
418ff2b124b78af070bcfb79e72efe75899d6d90
[ "MIT" ]
permissive
twosixlabs/armory
abe314ceacfd081b0bf269074d44cdc59748cd8e
3efd21652cfdc8cd192681e9daf58a4b08e82db4
refs/heads/master
2023-07-19T17:31:30.729681
2023-07-03T15:30:23
2023-07-03T15:30:23
222,796,322
153
79
MIT
2023-09-05T17:17:03
2019-11-19T21:48:44
Python
UTF-8
Python
false
false
1,460
py
patch_loss_gradient.py
from art.attacks.evasion import ProjectedGradientDescent from patch_loss_gradient_model import get_art_model import torch from torch.autograd import Variable from torchvision.transforms import RandomErasing from armory.utils.evaluation import patch_method DEVICE = torch.device("cuda" if torch.cuda.is_available() else...
9c9521ecdba651fbd3d0284893e45f8b208b3b93
9ca55981d3245d87d45debce8e9825b60db43046
/chemicals/viscosity.py
3a1f00bfb25da247eed17bfed0798893a06a9849
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
CalebBell/chemicals
c6b1ebd409c32e0e1053c4f97668a8ebcc92b969
37e32a7c7f819e0cb8e2a8784f8448f68b9a4215
refs/heads/master
2023-07-25T23:34:17.754310
2023-07-25T02:00:14
2023-07-25T02:00:14
264,697,738
137
33
MIT
2022-06-05T18:21:02
2020-05-17T15:27:11
Python
UTF-8
Python
false
false
100,177
py
viscosity.py
r"""Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2016, 2017, 2018, 2019, 2020 Caleb Bell <Caleb.Andrew.Bell@gmail.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...
dd8bf1780e93a6c8c695d36a1cfcd3af34645e79
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/L1Trigger/L1ExtraFromDigis/python/l1extraParticles_cfi.py
32c704cfa392b0c0bc303d382692f4badfab8510
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
2,542
py
l1extraParticles_cfi.py
import FWCore.ParameterSet.Config as cms l1extraParticles = cms.EDProducer("L1ExtraParticlesProd", muonSource = cms.InputTag("gtDigis"), etTotalSource = cms.InputTag("gctDigis"), nonIsolatedEmSource = cms.InputTag("gctDigis","nonIsoEm"), etMissSource = cms.InputTag("gctDigis"), htMissSource = cms.I...
f63b5b4cfc3d2ea9faf169f8d6777755b37db644
e5ba883c7ae6761e119e245d66b01efc41631d97
/examples/secuinside2016mbrainfuzz/solve.py
8cc9242cbe90d3129615e4f094d617b9ec067424
[ "BSD-2-Clause" ]
permissive
angr/angr-doc
e40ffb5e68a7f08c1d4aa0e27788b985826ff196
bf380700f2baa092c2970a2dceb0eb2793bd9837
refs/heads/master
2023-08-18T15:55:38.508443
2023-04-27T22:54:12
2023-04-27T22:54:12
40,329,995
926
595
BSD-2-Clause
2023-04-12T12:51:06
2015-08-06T22:37:54
TeX
UTF-8
Python
false
false
5,791
py
solve.py
# This example is for secuinsides mbrainfuzz challenge (2016) # The challenge gave you binaries which you automatically had # to exploit - since the service is not online anymore, 4 example # binaries, obtained during the ctf, are included in this example # The script is based on the writeup at # https://tasteless.eu/p...
3d9c1a4d08525e2d29ca41e481c6f316e16cb9ce
e65a4dbfbfb0e54e59787ba7741efee12f7687f3
/hebrew/py-pyluach/files/test.py
d234c73a2cee9bc949602ebd17076287ed9934c9
[ "BSD-2-Clause" ]
permissive
freebsd/freebsd-ports
86f2e89d43913412c4f6b2be3e255bc0945eac12
605a2983f245ac63f5420e023e7dce56898ad801
refs/heads/main
2023-08-30T21:46:28.720924
2023-08-30T19:33:44
2023-08-30T19:33:44
1,803,961
916
918
NOASSERTION
2023-09-08T04:06:26
2011-05-26T11:15:35
null
UTF-8
Python
false
false
762
py
test.py
from pyluach import dates, hebrewcal, parshios today = dates.HebrewDate.today() lastweek_gregorian = (today - 7).to_greg() print(f"lastweek_gregorian<today: ={lastweek_gregorian < today}") print(f"today-lastweek_gregorian={today - lastweek_gregorian}") greg = dates.GregorianDate(1986, 3, 21) heb = dates.HebrewDate(574...
1d06aa89a92d4ca297b0544b0e240ed230d3a134
cadb6dceb7bb67ce47ef48b2c83f480a65d6b01a
/s3prl/task/scene_prediction.py
5e125ead71c0d46e6079060c6bd74029c2e2ff3a
[ "Apache-2.0", "CC-BY-NC-4.0" ]
permissive
s3prl/s3prl
52ec2ae4df5a61c786c122085603aa9c5e8c2681
76a9432b824f6ae3eae09a35a67782c4ed582832
refs/heads/main
2023-08-17T02:26:57.524087
2023-06-10T17:12:27
2023-06-10T17:12:27
196,905,457
1,549
398
Apache-2.0
2023-09-14T13:07:05
2019-07-15T01:54:52
Python
UTF-8
Python
false
false
4,463
py
scene_prediction.py
# Copyright Hear Benchmark Team # Copyright Shu-wen Yang (refactor from https://github.com/hearbenchmark/hear-eval-kit) from typing import List import torch from s3prl.dataio.encoder.category import CategoryEncoder from s3prl.task.base import Task from ._hear_score import available_scores, validate_score_return_typ...
64c15ad15c51d9482ce54828aa94c49794c68933
dbd1399c4e8d01e02f4f94de7b1bbdb123838c0c
/tests/test_tags.py
a877b2265e9bad4b3e62a84a9227d366e242163c
[ "Apache-2.0", "GPL-1.0-or-later" ]
permissive
xhtml2pdf/xhtml2pdf
fe4416904bf2cedcce5af67b413152545c7d2499
f5bd8520699a2742aa2d960826b19d9594864fe0
refs/heads/master
2023-08-09T23:27:01.613275
2023-07-24T12:19:19
2023-07-24T12:19:19
1,755,413
1,218
398
Apache-2.0
2023-07-24T12:19:20
2011-05-16T13:45:29
Python
UTF-8
Python
false
false
1,156
py
test_tags.py
from unittest import TestCase from xml.dom import minidom from xhtml2pdf import tags from xhtml2pdf.parser import AttrContainer from xhtml2pdf.context import pisaContext from xhtml2pdf.parser import AttrContainer, pisaGetAttributes class PisaTagTestCase(TestCase): def test_pisa_tag_will_set_attrs_on_init(self): ...
417b3b6e7df04710fa16fcb4ef8776bb15bb742f
df4679cc6ef97f3af38e01a712c84b59cd6056e2
/appdaemon/stream/socketio_handler.py
0d970592d99e2672954eb7d4b6defbef419a9a19
[ "Apache-2.0" ]
permissive
AppDaemon/appdaemon
60041128fa59c7cdf257b5603590a75602be19d4
02a45c36c0e4d22ae14e630e7e747406fad4b753
refs/heads/dev
2023-09-04T06:15:53.938410
2023-06-28T13:23:20
2023-06-28T13:23:20
63,267,110
319
155
NOASSERTION
2023-07-20T16:09:46
2016-07-13T17:43:46
Python
UTF-8
Python
false
false
3,634
py
socketio_handler.py
import socketio import json import traceback import appdaemon.utils as utils class SocketIOHandler: def __init__(self, ADStream, app, path, ad): self.AD = ad self.ADStream = ADStream self.app = app self.path = path self.logger = ad.logging.get_child("_stream") sel...
9a11b1660128aec0ce51919fceb67bd9df3c0a1b
87597df3a60b0fc985b43d7a64cafa58ac9de339
/kubric/scripts/download_hdri_haven.py
112f035b371a3b9ddad59de2630e16032b74054e
[ "Apache-2.0" ]
permissive
google-research/kubric
f139e72891c30d4330ab4e195b7fbe3b0f649a81
bb534357a0e3a316979bfc35900279737b3cbf26
refs/heads/main
2023-09-04T09:53:33.144226
2023-08-16T23:07:32
2023-08-16T23:07:32
281,770,989
1,947
183
Apache-2.0
2023-09-13T04:31:51
2020-07-22T19:56:38
Jupyter Notebook
UTF-8
Python
false
false
5,418
py
download_hdri_haven.py
# Copyright 2023 The Kubric Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
4c6c309e2d729e3d5a5f15524bb43b63ce44f704
abe6c00f9790df7e6ef20dc02d0b1b225b5020cb
/src/prefect/server/database/migrations/versions/sqlite/2022_10_19_155810_af52717cf201_track_retries_restarts.py
ca6a58aa802522f4c17add1cd903bdf5676d0961
[ "Apache-2.0" ]
permissive
PrefectHQ/prefect
000e6c5f7df80f76a181f0a30f8661c96417c8bd
2c50d2b64c811c364cbc5faa2b5c80a742572090
refs/heads/main
2023-09-05T20:25:42.965208
2023-09-05T18:58:06
2023-09-05T18:58:06
139,199,684
12,917
1,539
Apache-2.0
2023-09-14T20:25:45
2018-06-29T21:59:26
Python
UTF-8
Python
false
false
771
py
2022_10_19_155810_af52717cf201_track_retries_restarts.py
"""Add retry and restart metadata Revision ID: af52717cf201 Revises: ad4b1b4d1e9d Create Date: 2022-10-19 15:58:10.016251 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "af52717cf201" down_revision = "3ced59d8806b" branch_labels = None depends_on = None def u...
818c43e24a4782428bda8d02fe115827887757f4
e1cddfd754d952134e72dfd03522c5ea4fb6008e
/test/asf/test_bihash.py
24639bd7a3b15707430c579e43963e3f8390ccf0
[ "Apache-2.0" ]
permissive
FDio/vpp
0ad30fa1bec2975ffa6b66b45c9f4f32163123b6
f234b0d4626d7e686422cc9dfd25958584f4931e
refs/heads/master
2023-08-31T16:09:04.068646
2022-03-14T09:49:15
2023-08-31T09:50:00
96,556,718
1,048
630
Apache-2.0
2023-06-21T05:39:17
2017-07-07T16:29:40
C
UTF-8
Python
false
false
2,201
py
test_bihash.py
#!/usr/bin/env python3 import unittest from config import config from asfframework import VppTestCase, VppTestRunner from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath class TestBihash(VppTestCase): """Bihash Test Cases""" @classmethod def setUpClass(cls): # increase vapi timeout, to...
64d274be1febe1c9b10fe0b80a2d3c2d43ed1608
2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5
/tests/layer_tests/pytorch_tests/test_stack.py
670033c7b294c198d4317e100ea0c045f2d9033f
[ "Apache-2.0" ]
permissive
openvinotoolkit/openvino
38ea745a247887a4e14580dbc9fc68005e2149f9
e4bed7a31c9f00d8afbfcabee3f64f55496ae56a
refs/heads/master
2023-08-18T03:47:44.572979
2023-08-17T21:24:59
2023-08-17T21:24:59
153,097,643
3,953
1,492
Apache-2.0
2023-09-14T21:42:24
2018-10-15T10:54:40
C++
UTF-8
Python
false
false
2,423
py
test_stack.py
# Copyright (C) 2018-2023 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest from pytorch_layer_test_class import PytorchLayerTest class TestStack2D(PytorchLayerTest): def _prepare_input(self): return self.input_tensors def create_model(self, dim): impo...
627bb11be9d78307e71d667177cf9c32bafe2d17
a702fb476539272b78328f64a3a49c1012ac3ed4
/django_slack/api.py
2a3997f7cd8a6dbe24f855cef316b7e90a915e13
[ "BSD-3-Clause" ]
permissive
lamby/django-slack
7f8dea40e5b3cad93f2e207b2815327993743774
5b92410fadc1a91b9415c0991f0ff2547cd633c7
refs/heads/master
2023-03-10T23:54:17.789584
2023-03-02T08:07:43
2023-03-02T08:07:43
27,838,503
250
88
BSD-3-Clause
2023-03-01T15:08:41
2014-12-10T20:34:18
Python
UTF-8
Python
false
false
5,595
py
api.py
import json from django.conf import settings from django.utils.encoding import force_str from django.template.loader import render_to_string from .utils import get_backend from .app_settings import app_settings def slack_message( template, context=None, attachments=None, blocks=None, fail_silent...
fa86121089319c2401973498a35e5957cbe922f0
8e6203db7383475f1c24a590f0456330b969bb4b
/optbinning/binning/multidimensional/mip_2d.py
e3113275f0291d87407cf6e39fe8197087f4bbcd
[ "Apache-2.0" ]
permissive
guillermo-navas-palencia/optbinning
6fdfc764a214052b4d7d8e0b59114f0a63e6d5a8
73aee82008ebe88b732430e7c5764da57fb4d3ae
refs/heads/master
2023-08-28T13:33:43.536143
2023-08-22T19:20:18
2023-08-22T19:20:18
231,076,826
377
91
Apache-2.0
2023-09-05T20:14:14
2019-12-31T11:17:44
Python
UTF-8
Python
false
false
7,663
py
mip_2d.py
""" Generalized assigment problem: solve constrained optimal 2D binning problem. Mixed-Integer programming implementation. """ # Guillermo Navas-Palencia <g.navas.palencia@gmail.com> # Copyright (C) 2021 import numpy as np from ortools.linear_solver import pywraplp class Binning2DMIP: def __init__(self, monoto...
c0e864939d5b1e74a62b232eec4e3b6100e226c9
73a63ce92e2eab1973ac136dfe453bd6945f56f8
/agent/tandem/agent/utils/hole_punching.py
8a9ead998c3adc5521c23cda0b16723d03f5d35c
[ "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
typeintandem/tandem
5791af34c7d023c40297fa8ba4d66103d5ac78c5
81e76f675634f1b42c8c3070c73443f3f68f8624
refs/heads/master
2023-04-28T09:32:29.089076
2018-03-15T20:27:24
2018-03-15T20:27:24
91,004,353
746
24
Apache-2.0
2023-04-18T12:06:50
2017-05-11T17:10:31
Python
UTF-8
Python
false
false
951
py
hole_punching.py
from tandem.agent.protocol.messages.interagent import ( InteragentProtocolUtils, Ping, Syn, ) class HolePunchingUtils: PING_INTERVAL = 0.15 SYN_INTERVAL = 0.15 TIMEOUT = 3 @staticmethod def generate_send_ping(gateway, addresses, id): def send_ping(): HolePunchingUt...
961bc6847a34220b5b5bf2682e1ed13dad732e14
057a475216e9beed41983481aafcaf109bbf58da
/tests/integration/test_fetch_partition_should_reset_mutation/test.py
7037393a3d26298f682df14d32fd444299e85001
[ "Apache-2.0" ]
permissive
ClickHouse/ClickHouse
fece5204263a5b4d693854b6039699265f1bb27f
6649328db809d51a694c358571539bc5820464be
refs/heads/master
2023-08-31T18:48:36.615225
2023-08-31T17:51:24
2023-08-31T17:51:24
60,246,359
23,878
5,449
Apache-2.0
2023-09-14T20:10:52
2016-06-02T08:28:18
C++
UTF-8
Python
false
false
2,429
py
test.py
import pytest from helpers.client import QueryRuntimeException from helpers.cluster import ClickHouseCluster from helpers.test_tools import TSV cluster = ClickHouseCluster(__file__) node = cluster.add_instance( "node", main_configs=["configs/zookeeper_config.xml"], with_zookeeper=True ) @pytest.fixture(scope="mo...
6dedb73429743ead3090ab57a37ccc65fb73de78
4edd01a0d66f6f3336f7396cec13f5da671a8dcb
/cmdstanpy/stanfit/__init__.py
6a7dd7caab2d805b32c177c8fecf02fd66b1b572
[ "BSD-3-Clause" ]
permissive
stan-dev/cmdstanpy
c0a33ca6d3a6f5e1486b797e5a402df6cc66c92c
107a347f12b1abb4f3d7b8a380d1138f6633d26b
refs/heads/develop
2023-09-03T19:03:09.568378
2023-08-28T19:19:40
2023-08-28T19:19:40
163,899,458
135
75
BSD-3-Clause
2023-09-11T20:33:23
2019-01-02T23:18:04
Python
UTF-8
Python
false
false
8,659
py
__init__.py
"""Container objects for results of CmdStan run(s).""" import glob import os from typing import Any, Dict, List, Optional, Union from cmdstanpy.cmdstan_args import ( CmdStanArgs, OptimizeArgs, SamplerArgs, VariationalArgs, ) from cmdstanpy.utils import check_sampler_csv, get_logger, scan_config from ...
65244afbc0358152f637fa7e65e0b0e0d50b0394
045ec3ae16fc554a05510abc3697557ebc5ce304
/tools/load_balancing_tool/layouts.py
7b4e0b32d790c5f69c5940f201f24db8a9f3b428
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
ESMCI/cime
c09223ee9b8a463bd00741ff39f60fda7639af89
02fad90a379cdbd3c1106cbd63324480f0bf7a22
refs/heads/master
2023-08-16T07:03:22.224344
2023-08-03T19:47:53
2023-08-03T19:47:53
31,605,662
159
179
NOASSERTION
2023-09-12T18:38:42
2015-03-03T15:33:00
Python
UTF-8
Python
false
false
15,250
py
layouts.py
import optimize_model import pulp class IceLndAtmOcn(optimize_model.OptimizeModel): """ Optimized the problem based on the Layout ____________________ | ICE | LND | | |______|_______| | | | OCN | | ATM | | ...
334973f8dd925830870712b1d74f843d12e53f7d
f8a2dfa9f6f1fec00863ab054b3874e71374c605
/urduhack/pipeline/__init__.py
1c06981152e9896b6c97afbca925dbc93f26fadc
[ "MIT" ]
permissive
urduhack/urduhack
eff6164c1e1135963b44b8b75ab75a7239d6ffd0
f7f0aa26ef516ce7907429dff0863577190beca7
refs/heads/master
2023-05-10T19:25:25.761716
2023-04-27T07:01:48
2023-04-27T07:01:48
163,254,580
285
44
MIT
2023-04-27T07:01:49
2018-12-27T06:11:05
Python
UTF-8
Python
false
false
65
py
__init__.py
# coding: utf8 """Pipeline module""" from .core import Pipeline
48cc6d25492ab36554a234abc67a26c5f5ca0e05
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/fritz/test_image.py
cbcbded56920af84d57e85006973f2f36482b672
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
5,499
py
test_image.py
"""Tests for Fritz!Tools image platform.""" from datetime import timedelta from http import HTTPStatus from unittest.mock import patch import pytest from syrupy.assertion import SnapshotAssertion from homeassistant.components.fritz.const import DOMAIN from homeassistant.components.image import DOMAIN as IMAGE_DOMAIN ...
8a478cc09afbff9c3d89c382988ae8954d4368bd
3f763cf893b09a3be562858613c928703ff349e4
/client/verta/verta/_vendored/__init__.py
04fbc04b03fc25a9e6bcc83ba933105501e593c4
[ "Apache-2.0" ]
permissive
VertaAI/modeldb
636e46fc025b01a514d599b10e228c8735503357
ec9ac7712500adb13fd815dfd476ce9f536c6921
refs/heads/main
2023-08-31T00:45:37.220628
2023-08-30T18:45:13
2023-08-30T18:45:13
71,305,435
844
142
Apache-2.0
2023-09-14T19:24:13
2016-10-19T01:07:26
Java
UTF-8
Python
false
false
77
py
__init__.py
""" .. versionchanged:: 0.24.0 Moved here from ``verta.external``. """
2da91d7df0532ed56c51c406dfa9d2ad54db7330
35ffbadf2f410ba8a195271af28ee2804121661f
/avatar2/plugins/arm/armv7m_interrupts.py
2ed860f2d28be6042e6f0a370678317605387866
[ "Apache-2.0" ]
permissive
avatartwo/avatar2
08799f13fd416c24eef374333e87eaa831573f60
a2d06c9313db55f11a10579c8a45d05b025fa9ea
refs/heads/main
2023-08-29T21:17:23.962466
2023-03-21T16:33:07
2023-03-21T16:33:07
94,234,201
498
118
Apache-2.0
2023-03-21T16:33:09
2017-06-13T16:31:51
Python
UTF-8
Python
false
false
7,402
py
armv7m_interrupts.py
from types import MethodType from threading import Thread, Event, Condition from avatar2 import TargetStates from avatar2.archs import ARMV7M from avatar2.protocols.coresight import CoreSightProtocol from avatar2.protocols.armv7m_interrupt import ARMV7MInterruptProtocol from avatar2.targets import OpenOCDTarget, QemuT...
0bcb98cb77c4d644ac84b8978e1b458fc6d42a50
119646d6e1f13582c577fd7b87c9654839a0b806
/hubspot/crm/pipelines/models/pipeline_stage_patch_input.py
2a7e788e93eb0cb7c61132a45508503c785dc9e8
[]
permissive
HubSpot/hubspot-api-python
446daaceeb3a6ce27edcd0414603c6d4bc07e327
d51a64c413461c0b82d8a41743e752d878747ca1
refs/heads/master
2023-08-31T09:52:56.583803
2023-08-07T11:00:27
2023-08-07T11:00:27
248,865,684
227
98
Apache-2.0
2023-09-14T15:25:19
2020-03-20T22:41:24
Python
UTF-8
Python
false
false
8,127
py
pipeline_stage_patch_input.py
# coding: utf-8 """ CRM Pipelines Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support `deals` and `tickets` object types. ## Pipeline ID validation When calling endpoin...
eb02b29fadb92ac2c56eb66a785da265c76668a3
46732d613208ee4096fbbd3fd74f22146471d1ce
/weixin_crawler/project/crawler/crawler/pipelines/load_more.py
32c2ec8f94200c75033e0cd81c7a1e5d2f3abc06
[]
no_license
cassieeric/python_crawler
7cb02f612382801ae024e2cee70e0c2bcdba927c
6d2b4db3d34183d729f6fd30555c6d6f04514260
refs/heads/master
2022-11-30T20:30:50.031960
2022-11-27T02:53:22
2022-11-27T02:53:22
118,204,154
322
283
null
2022-12-21T09:33:08
2018-01-20T03:17:14
HTML
UTF-8
Python
false
false
783
py
load_more.py
from db import update_article_from_template from db import insert_many class ResponseArticleListPipeline(object): def __init__(self): pass def open_spider(self, spider): pass def process_item(self, item, spider): article_list = item['article_list'] nickname = item['nickna...
b48f52f4b542d628543b0c37013e5c761b46c5f7
379ad926bb76a7732f5d43e15cc5b254ad608a8a
/profiler/translation/seq2seq/train/lr_scheduler.py
999f642c99e1f19e9e3ad1d3a9d0610982d5c58c
[ "MIT" ]
permissive
msr-fiddle/pipedream
ed5ff9a823779ba63b64edc8955edc88b989e381
7db6a1c3e64996d5b319faec6ca38cb31bfea1c4
refs/heads/pipedream
2022-11-20T21:35:17.056988
2021-07-22T18:59:30
2021-07-22T18:59:30
203,689,837
356
125
MIT
2022-11-04T14:51:26
2019-08-22T01:18:23
Python
UTF-8
Python
false
false
1,731
py
lr_scheduler.py
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import torch import math class WarmupMultiStepLR(torch.optim.lr_scheduler._LRScheduler): def __init__( self, optimizer, lr_method="mlperf", warmup_iters=100, remain_steps=600, decay_steps=100,...
b7807574f8123cd437f6c29b61eec9623f75f8a2
977f7a7386899a5d0152b29b57ec26682b430437
/data_managers/data_manager_humann_database_downloader/data_manager/data_manager_humann_download.py
6723922b5c1e3e9932da270542096d627930a027
[ "MIT" ]
permissive
galaxyproject/tools-iuc
0b87e21e1cb075ca6dc6b12622bc4e538a7c6507
96f8a533278b4b6394aebd7a8f537513b0d29b1a
refs/heads/main
2023-08-31T16:14:34.563541
2023-08-31T04:31:22
2023-08-31T04:31:22
23,992,530
164
508
MIT
2023-09-13T19:41:14
2014-09-13T11:18:49
HTML
UTF-8
Python
false
false
8,023
py
data_manager_humann_download.py
#!/usr/bin/env python # # Data manager for reference data for the 'humann' Galaxy tools import argparse import json import subprocess from datetime import date from pathlib import Path HUMANN_REFERENCE_DATA = { "chocophlan": { "full": "Full ChocoPhlAn for HUManN", "DEMO": "Demo ChocoPhlAn for HUMan...
8927fd7fa8b0bd1865f43c9b0995a06435a9bc14
7b7c570b30d6d7a0e9b904c7cb378cfb0d0f0e07
/mlflow/statsmodels.py
4720cc61e54b2416f4372b56106953e4dbd4d440
[ "Apache-2.0" ]
permissive
mlflow/mlflow
ca97bfbbf32f8e59f454e428f5e46eb3d34d062f
37298ffafcd34002352d01d579d4524790544267
refs/heads/master
2023-09-01T13:15:53.902815
2023-09-01T09:00:42
2023-09-01T09:00:42
136,202,695
14,102
3,748
Apache-2.0
2023-09-14T21:52:42
2018-06-05T16:05:58
Python
UTF-8
Python
false
false
23,318
py
statsmodels.py
""" The ``mlflow.statsmodels`` module provides an API for logging and loading statsmodels models. This module exports statsmodels models with the following flavors: statsmodels (native) format This is the main flavor that can be loaded back into statsmodels, which relies on pickle internally to serialize a mod...
b02c5ddb9318fe8b8c1c7f79fc851d6c959b9606
fdb9bdc6c4ab2f14ba71e544493706d5e275899f
/fhir/resources/tests/test_schedule.py
3b855ab47f067208d92448ee310f0b9259358371
[ "BSD-3-Clause" ]
permissive
nazrulworld/fhir.resources
6ae8aea8180c611b0c5050759c6dcdf63e4cb061
1fd6ea476b27b3fcb8c4ef8f23bc51cf161e69e3
refs/heads/main
2023-08-30T18:27:27.277249
2023-07-03T19:57:06
2023-07-03T19:57:06
165,297,877
256
83
NOASSERTION
2023-08-24T15:34:05
2019-01-11T19:26:41
Python
UTF-8
Python
false
false
9,772
py
test_schedule.py
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/Schedule Release: R5 Version: 5.0.0 Build ID: 2aecd53 Last updated: 2023-03-26T15:21:02.749+11:00 """ from pydantic.validators import bytes_validator # noqa: F401 from .. import fhirtypes # noqa: F401 from .. import schedule def impl_sche...
a6c8be9715f006ca89baac2fa9a3cf78931e7f92
c50e7eb190802d7849c0d0cea02fb4d2f0021777
/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/models/_monitor_client_enums.py
13a81ab93fa6a71b5425f43d8bcb61ba2d072ed2
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Azure/azure-cli-extensions
c1615b19930bba7166c282918f166cd40ff6609c
b8c2cf97e991adf0c0a207d810316b8f4686dc29
refs/heads/main
2023-08-24T12:40:15.528432
2023-08-24T09:17:25
2023-08-24T09:17:25
106,580,024
336
1,226
MIT
2023-09-14T10:48:57
2017-10-11T16:27:31
Python
UTF-8
Python
false
false
5,898
py
_monitor_client_enums.py
# 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 ...
23df8b35d41873d34f370ee3fe63f30a32a411ce
786f9ae62cb62d2b8f193350d8beb695c47d2e98
/tests/scripts/test_atvremote.py
1154f6a478ea23730f0e60d9e4b51beba53f5c2d
[ "MIT" ]
permissive
postlund/pyatv
a4213957d4d9b557c16310450bfd444cc715e17c
05ca46d2a8bbc8e725ad63794d14b2d1fb9913fa
refs/heads/master
2023-09-01T20:11:48.374857
2023-08-29T04:23:22
2023-08-29T11:13:17
80,614,028
749
120
MIT
2023-09-14T04:54:01
2017-02-01T11:30:30
Python
UTF-8
Python
false
false
3,391
py
test_atvremote.py
"""Smoke test for atvremote.""" from pyatv.auth.hap_pairing import parse_credentials from pyatv.auth.server_auth import CLIENT_CREDENTIALS from pyatv.const import Protocol from tests.fake_device.airplay import DEVICE_CREDENTIALS, DEVICE_PIN from tests.scripts.script_env import AIRPLAY_ID, DMAP_ID, IP_1, IP_2, MRP_ID,...
2b6acffe597694160680ac0600e698d03bcdbadc
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/Configuration/Skimming/test/SDmaker_6SD_3CS_PDMinBias_1e28_cfg.py
b1d3db427d03f5fdcb72ea1b437089967893621a
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
16,026
py
SDmaker_6SD_3CS_PDMinBias_1e28_cfg.py
import FWCore.ParameterSet.Config as cms process = cms.Process("makeSD") process.configurationMetadata = cms.untracked.PSet( version = cms.untracked.string('$Revision: 1.2 $'), annotation = cms.untracked.string('SD and central skims'), name = cms.untracked.string('$Source: /cvs_server/repositories/CMSSW/...
003a40926894575eabe1398b53e939f845cc566e
8c4af05e0257661195c95b0b9e0873eeb6391dab
/eng/scripts/python_sdk_report.py
af4dc3502023f094a7d01a6d7a0ff3b52d0c8ebc
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
Azure/azure-sdk-tools
6d171054800807fcbe7b8b878c5903a202d31faa
2dce521dedc3f5169007d4c481ae8ec077be4450
refs/heads/main
2023-09-01T00:00:32.662190
2023-08-31T22:21:44
2023-08-31T22:21:44
170,592,186
113
174
MIT
2023-09-14T21:53:41
2019-02-13T22:55:46
C#
UTF-8
Python
false
false
2,472
py
python_sdk_report.py
#!/usr/bin/python3 """ python_sdk_report.py Generate APIView for all SDKs in the azure-sdk-for-python repo and report on any failures. """ import glob import json import os import re import sys from typing import Optional from apistub import StubGenerator ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__...
b7f1a30ef657571a8bb86310583c07843165aca3
c9614a0155feaf23f7149e6f469ac0dc5694edec
/code/recursion.py
fbda706b7d7a7043a152070569aeb62ef806d740
[ "MIT" ]
permissive
BYRIO/BUPTBachelorThesis
28e798d6b2fbdf77c893459f5879ad782ade883f
4cc82737009db5cec15230e41b4774e9a786baee
refs/heads/master
2023-06-23T23:24:41.906595
2023-06-01T02:48:46
2023-06-01T02:48:46
134,641,972
136
47
MIT
2023-06-15T02:42:20
2018-05-24T00:56:52
TeX
UTF-8
Python
false
false
68
py
recursion.py
def numbers(x): if x > 0: print(x) numbers(x-1)
0fbab27c094914a96fcf3f49e901aa1bd34347c4
8d6ca1631ef5dd98c65147b01a4b186af055813f
/awsiot/greengrasscoreipc/__init__.py
c60e68f840d64c7c523eee556873ba61504b809a
[ "Apache-2.0" ]
permissive
aws/aws-iot-device-sdk-python-v2
fc888c3c08ccca9b7871ceb60ecb51c87d1bcc34
30d6fb27c9ba5b553d25fda5911d16279960f175
refs/heads/main
2023-09-04T10:57:42.561856
2023-08-28T21:09:34
2023-08-28T21:09:34
157,452,080
346
224
Apache-2.0
2023-09-13T18:25:20
2018-11-13T21:52:37
Python
UTF-8
Python
false
false
2,337
py
__init__.py
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0. import os from typing import Optional from awscrt.io import ( ClientBootstrap, DefaultHostResolver, EventLoopGroup, SocketDomain, SocketOptions, ) from awsiot.eventstreamrpc import ( Con...
aa14dfdb94b09de291c40c50f5f6b27b55647043
cfdd6d24f7139d057d13afe32f1dc1de64b33c3f
/test/test_indices.py
e607fcbb6425bd428fffadb8f5e6ebcf31f08e80
[ "MIT" ]
permissive
timduly4/pyglow
cec15d7afe7f90dc5f2f019626f63622da4c3de0
1988757f3b6a4bd5ed98266a3fb1dc64f2513fc5
refs/heads/master
2023-05-10T19:02:52.777677
2023-05-02T19:07:51
2023-05-02T19:07:51
12,006,247
105
60
MIT
2023-05-02T19:09:55
2013-08-09T17:06:55
Fortran
UTF-8
Python
false
false
814
py
test_indices.py
from datetime import datetime import math import unittest from src.pyglow import Indice from src.pyglow.constants import DIR_FILE as pyglow_file print("pyglow file: {}".format(pyglow_file)) class TestIndice(unittest.TestCase): def setUp(self): # Instantiate indice data structure: dn = datetime...
ec097e2d95db1f832ac3ec20245c1960482f6915
2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5
/tools/mo/openvino/tools/mo/ops/lstm_sequence.py
56401ec05bd648d21fbb35aff27f46be97c8c092
[ "Apache-2.0" ]
permissive
openvinotoolkit/openvino
38ea745a247887a4e14580dbc9fc68005e2149f9
e4bed7a31c9f00d8afbfcabee3f64f55496ae56a
refs/heads/master
2023-08-18T03:47:44.572979
2023-08-17T21:24:59
2023-08-17T21:24:59
153,097,643
3,953
1,492
Apache-2.0
2023-09-14T21:42:24
2018-10-15T10:54:40
C++
UTF-8
Python
false
false
6,465
py
lstm_sequence.py
# Copyright (C) 2018-2023 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np from openvino.tools.mo.front.common.partial_infer.utils import mark_input_bins, shape_array, shape_insert from openvino.tools.mo.front.common.partial_infer.utils import int64_array from openvino.tools.mo.graph.graph i...
14bcaa42fb9231dbb99dac4abbc886f43b7ef376
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-Quartz/PyObjCTest/test_civector.py
bb5398861c5a7b1a0fd502c3c33815fe4e5d5707
[ "MIT" ]
permissive
ronaldoussoren/pyobjc
29dc9ca0af838a56105a9ddd62fb38ec415f0b86
77b98382e52818690449111cd2e23cd469b53cf5
refs/heads/master
2023-09-01T05:15:21.814504
2023-06-13T20:00:17
2023-06-13T20:00:17
243,933,900
439
49
null
2023-06-25T02:49:07
2020-02-29T08:43:12
Python
UTF-8
Python
false
false
414
py
test_civector.py
from PyObjCTools.TestSupport import TestCase import Quartz class TestCIVector(TestCase): def testMethods(self): self.assertArgIsIn(Quartz.CIVector.vectorWithValues_count_, 0) self.assertArgSizeInArg(Quartz.CIVector.vectorWithValues_count_, 0, 1) self.assertArgIsIn(Quartz.CIVector.initWithV...
fbf864f7745bb0da4dfc3a3b88de8abdd8ead9c4
05643b9b4d20db912c3dbfbc191cadea3143016c
/instrumentation/opentelemetry-instrumentation-aio-pika/src/opentelemetry/instrumentation/aio_pika/span_builder.py
056f3dab25a950bf02ea4c8d9f2a6672a122d036
[ "Apache-2.0" ]
permissive
open-telemetry/opentelemetry-python-contrib
35566cd088aa0b23ca977109fcd435ee480784b9
0871dd455c0adfa125a2f258a0b55c47a5da5227
refs/heads/main
2023-08-26T07:30:40.212226
2023-08-21T16:42:12
2023-08-21T16:42:12
220,524,743
476
401
Apache-2.0
2023-09-14T21:36:33
2019-11-08T18:23:43
Python
UTF-8
Python
false
false
3,206
py
span_builder.py
# Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
d852302bfef7da09c408f4b456855cd38ae1247b
11cd362cdd78c2fc48042ed203614b201ac94aa6
/desktop/core/ext-py3/eventlet-0.30.2/tests/timeout_test_with_statement.py
cd452a26e679bbb482715c0a5942c51f0d0e4498
[ "MIT", "CC-BY-3.0", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "ZPL-2.0", "Unlicense", "LGPL-3.0-only", "CC0-1.0", "LicenseRef-scancode-other-permissive", "CNRI-Python", "LicenseRef-scancode-warranty-disclaimer", "GPL-2.0-or-later", "Python-2.0", ...
permissive
cloudera/hue
b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908
dccb9467675c67b9c3399fc76c5de6d31bfb8255
refs/heads/master
2023-08-31T06:49:25.724501
2023-08-28T20:45:00
2023-08-28T20:45:00
732,593
5,655
2,244
Apache-2.0
2023-09-14T03:05:41
2010-06-21T19:46:51
JavaScript
UTF-8
Python
false
false
4,136
py
timeout_test_with_statement.py
"""Tests with-statement behavior of Timeout class.""" import gc import sys import time import weakref from eventlet import sleep from eventlet.timeout import Timeout from tests import LimitedTestCase DELAY = 0.01 class Error(Exception): pass class Test(LimitedTestCase): def test_cancellation(self): ...
d0e9de82c3c634251a9365710a3515ef5c9e5414
84724b34b3f1e84dc53cbca5f3660590dbc34a9f
/nova/tests/functional/notification_sample_tests/test_instance.py
1db77b91ddf295af4cea3138384fc87de2a92cb4
[ "Apache-2.0" ]
permissive
openstack/nova
2c24b64e3677595611715bae6dda14edd3f90a24
065c5906d2da3e2bb6eeb3a7a15d4cd8d98b35e9
refs/heads/master
2023-08-28T15:10:05.126314
2023-08-25T20:31:27
2023-08-25T20:31:27
790,031
2,287
2,320
Apache-2.0
2023-07-08T02:10:29
2010-07-22T02:04:27
Python
UTF-8
Python
false
false
85,580
py
test_instance.py
# 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, software # d...