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
659973c9465b2faa19a09b8496388bb0b3209fb6
5e2202f0d0087a2bc00f9916dad00fd9050d905c
/tests/test_statemachine.py
900ae1eeb5f380048d0906ec850aead682c1b99c
[ "MIT" ]
permissive
fgmacedo/python-statemachine
1e34d18486a5c4bf0841c9152e51bc69ccee7569
be10b53b34b9d1b445b666d9aebe4d9b10417a1c
refs/heads/develop
2023-08-31T14:00:01.563599
2023-08-19T08:11:13
2023-08-19T08:11:13
85,780,522
506
70
MIT
2023-08-19T10:17:21
2017-03-22T03:24:42
Python
UTF-8
Python
false
false
11,900
py
test_statemachine.py
import pytest from statemachine import State from statemachine import StateMachine from statemachine import exceptions from tests.models import MyModel def test_machine_repr(campaign_machine): model = MyModel() machine = campaign_machine(model) assert ( repr(machine) == "CampaignMachine(model=MyM...
f5697408f3bec374b353fd678d1f1c7556095d5b
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/SimG4CMS/Forward/python/test/runCastorWithShowerLibrary_cfg.py
7d0befe7a9e31fd3cd8c06d196d6219983e917f6
[ "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
4,380
py
runCastorWithShowerLibrary_cfg.py
import FWCore.ParameterSet.Config as cms process = cms.Process("CastorTest") process.load("SimGeneral.HepPDTESSource.pdt_cfi") process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi") # process.load("Configuration.StandardSequences.GeometryExtended_cff") process.load("SimG4CMS.Forward.castorGeometryXML_cfi") ...
499a6867a9b625edb64c9ab713f77f92f5b99c15
df4361db61d10a10c46ed5f18973d89e4efda82c
/armi/utils/mathematics.py
7b4b3d0dc3bfe0212d66818e88415b054c951733
[ "Apache-2.0", "GPL-1.0-or-later", "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
terrapower/armi
5524741c5e80781e136ea3422aed0db8398f76ae
360791847227df3f3a337a996ef561e00f846a09
refs/heads/main
2023-09-04T05:16:29.080518
2023-09-01T16:10:29
2023-09-01T16:10:29
218,863,590
204
75
Apache-2.0
2023-09-14T20:42:24
2019-10-31T21:18:34
Python
UTF-8
Python
false
false
19,692
py
mathematics.py
# Copyright 2022 TerraPower, 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 writi...
c9cfaf8ec0422c7406248a434682ddc926d68edf
6f509fd95f182099f5447b6e597a03eedb9bb408
/awsume/configure/autocomplete.py
93b40c93d9bc3a9365d3689a369e0c85bc955d90
[ "MIT" ]
permissive
trek10inc/awsume
596e15aa74f0e896430bb6e383ac12e87ae62aa7
c9062cb6bd0d3067ba61558c445a92db0fde6e3a
refs/heads/master
2023-08-23T20:43:39.104563
2023-08-18T20:24:45
2023-08-18T20:24:45
55,160,220
790
105
MIT
2023-09-12T20:58:04
2016-03-31T15:12:15
Python
UTF-8
Python
false
false
2,701
py
autocomplete.py
import os, pathlib BASH_AUTOCOMPLETE_SCRIPT = """ _awsume() { local cur prev opts COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" opts=$(awsume-autocomplete) COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 } complete -F _awsume awsume """ ZSH_AUTOCO...
8c11d4d4e00a777cca336c2cee47201ec2de45b9
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/A_Primer_on_Scientific_Programming_with_Python/random/uniform_numbers1.py
30c757fed88675db24dea88d2072234bde8e18b5
[]
no_license
burakbayramli/books
9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0
5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95
refs/heads/master
2023-08-17T05:31:08.885134
2023-08-14T10:05:37
2023-08-14T10:05:37
72,460,321
223
174
null
2022-10-24T12:15:06
2016-10-31T17:24:00
Jupyter Notebook
UTF-8
Python
false
false
330
py
uniform_numbers1.py
import sys N = int(sys.argv[1]) import numpy as np np.random.seed(12) # Vectorized generation of random numbers samples = np.random.random(size=N) # Plot histogram import scitools.std as st x, y = st.compute_histogram(samples, nbins=20) st.plot(x, y, title='%d samples of uniform numbers on [0,1)' % N) st.hardcopy('tm...
5f711b43f41f086e5dddcd30caa6f7b546a70f29
03666e5f961946fc1a0ac67781ac1425562ef0d7
/src/visitpy/pyavt/py_src/templates/simple_expression.py
e996de69ecaf9b7f1c789c79003a8f3f3228ea26
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
visit-dav/visit
e9f81b4d4b9b9930a0db9d5282cd1bcabf465e2e
601ae46e0bef2e18425b482a755d03490ade0493
refs/heads/develop
2023-09-06T08:19:38.397058
2023-09-05T21:29:32
2023-09-05T21:29:32
165,565,988
335
120
BSD-3-Clause
2023-09-14T00:53:37
2019-01-13T23:27:26
C
UTF-8
Python
false
false
1,106
py
simple_expression.py
# # Template for a Simple Python Expression. # class PyExpr(SimplePythonExpression): def __init__(self): """ Constructor. """ SimplePythonExpression.__init__(self) # set to provide a name & description for your expression. self.name = "PyExpr" self.description...
173be3dc7c98b6297d05206bdceb985a9470d66e
3a6a211ea0d32405497fbd6486c490bb147e25f9
/third_party/gsutil/gslib/ui_controller.py
4aa9f320c36ef828f5e9e9145057072062b33797
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
catapult-project/catapult
e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0
53102de187a48ac2cfc241fef54dcbc29c453a8e
refs/heads/main
2021-05-25T07:37:22.832505
2021-05-24T08:01:49
2021-05-25T06:07:38
33,947,548
2,032
742
BSD-3-Clause
2022-08-26T16:01:18
2015-04-14T17:49:05
HTML
UTF-8
Python
false
false
48,563
py
ui_controller.py
# -*- coding: utf-8 -*- # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
cd62326b338dd1571816321e7d78909bd5bd25c1
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/hardware/websocket_api.py
918c96c5643292e50668d9c35af8d1746228b4cd
[ "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
4,323
py
websocket_api.py
"""The Hardware websocket API.""" from __future__ import annotations import contextlib from dataclasses import asdict, dataclass from datetime import datetime, timedelta from typing import Any import psutil_home_assistant as ha_psutil import voluptuous as vol from homeassistant.components import websocket_api from h...
19faa15b4648bb91d059d53fb9c6aefe5a3d2ab4
96d6e8e34bc10c769a0407612deaeb6255dea449
/rpyc/core/reactor.py
9821c5062546fd09276a7dcaf36b2f130971aa78
[ "MIT" ]
permissive
tomerfiliba-org/rpyc
d02115577b478ee49b1348f68f6e6905832847f3
9632c6db04b321b2fbcef3b99760436633874c29
refs/heads/master
2023-08-06T16:30:42.277071
2023-06-10T01:55:50
2023-06-10T01:55:50
145,733
524
62
NOASSERTION
2023-06-10T01:55:51
2009-03-08T11:23:29
Python
UTF-8
Python
false
false
924
py
reactor.py
import os import select import threading class SelectReactor(object): TIMEOUT = 0.5 if os.name == "nt" else None def __init__(self): self._active = False self._readfds = set() def register_read(self, fileobj): self._readfds.append(fileobj) def run(self): self._active...
3811cceb8d22c61f63a293226cb2df21fdaed4e0
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/govern/data-quality/soda-core/soda/core/soda/sodacl/freshness_check_cfg.py
4489d68508df67f31d28f6c354ed400e03387291
[ "Apache-2.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-free-unknown" ]
permissive
alldatacenter/alldata
7bc7713c9f1d56ad6b8e59ea03206d1073b7e047
8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6
refs/heads/master
2023-08-05T07:32:25.442740
2023-08-03T13:17:24
2023-08-03T13:17:24
213,321,771
774
250
Apache-2.0
2023-09-06T17:35:32
2019-10-07T07:36:18
null
UTF-8
Python
false
false
981
py
freshness_check_cfg.py
from __future__ import annotations from datetime import timedelta from soda.sodacl.check_cfg import CheckCfg from soda.sodacl.location import Location class FreshnessCheckCfg(CheckCfg): def __init__( self, source_header: str, source_line: str, source_configurations: str | None, ...
1c1c88d6641a36209cca158144865272c62ac8c8
acf7457d3a799cb9bff12686d2d616688bcd4b5b
/packages/python/plotly/plotly/validators/layout/selection/__init__.py
12ba4f55b40f6f8aa9daa0bee5c4dc6f682e8c65
[ "MIT" ]
permissive
plotly/plotly.py
f4f61639f08160f16195efc95b5901dc5a937346
975a704074f01c078e0fdfa32bdf17130bf89e69
refs/heads/master
2023-09-06T06:15:08.340035
2023-08-24T12:28:14
2023-08-24T12:28:14
14,579,099
14,751
2,989
MIT
2023-09-08T19:55:32
2013-11-21T05:53:08
Python
UTF-8
Python
false
false
1,169
py
__init__.py
import sys from typing import TYPE_CHECKING if sys.version_info < (3, 7) or TYPE_CHECKING: from ._yref import YrefValidator from ._y1 import Y1Validator from ._y0 import Y0Validator from ._xref import XrefValidator from ._x1 import X1Validator from ._x0 import X0Validator from ._type import...
b6f265c103e2f43130edcad26a8f48f9c7b76383
9cdd1751bc27310f486427aaaae901ca06b79003
/tests/metadata/test_recover_partitions.py
362c0fa8300b42c753850ede20521ebbcf11e57e
[ "Apache-2.0", "OpenSSL", "bzip2-1.0.6", "LicenseRef-scancode-openssl", "LicenseRef-scancode-ssleay-windows", "LicenseRef-scancode-google-patent-license-webrtc", "PSF-2.0", "BSD-3-Clause", "dtoa", "MIT", "LicenseRef-scancode-mit-modification-obligations", "Minpack", "BSL-1.0", "LicenseRef-s...
permissive
apache/impala
bb9970c64a43824950ec5b69f2ef4b50158a1e8a
b718d63860356a04814e07d91711c3c748b3e769
refs/heads/master
2023-09-03T04:29:12.639452
2023-06-07T23:51:15
2023-08-30T04:56:51
56,128,733
985
475
Apache-2.0
2023-08-31T14:15:44
2016-04-13T07:00:08
C++
UTF-8
Python
false
false
22,362
py
test_recover_partitions.py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
91a4628649d5c90069d6f179548f97bbc7184266
e210c28eeed9d38eb78c14b3a6388eca1e0e85d8
/nvflare/security/logging.py
07bd2c66394cd4eaa45cea66fba4e377a8efda91
[ "Apache-2.0" ]
permissive
NVIDIA/NVFlare
5a2d2e4c85a3fd0948e25f1ba510449727529a15
1433290c203bd23f34c29e11795ce592bc067888
refs/heads/main
2023-08-03T09:21:32.779763
2023-07-05T21:17:16
2023-07-05T21:17:16
388,876,833
442
140
Apache-2.0
2023-09-14T19:12:35
2021-07-23T17:26:12
Python
UTF-8
Python
false
false
4,133
py
logging.py
# Copyright (c) 2022, 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...
a7b4a05b19bb83bafa2bd1acddf00e42cab671af
c26483bc1399e7879471a9e53d0288cb2c756088
/onnxmltools/convert/sparkml/operator_converters/element_wise_product.py
068111fb234fb32b85dbaa11a2c5f3f661640373
[ "Apache-2.0" ]
permissive
onnx/onnxmltools
6782d9e1d2c75be7618b1378405d31198a310027
024a62f6915e6c3b9e040befaf058c7e60c271de
refs/heads/main
2023-09-04T04:57:10.943548
2023-08-28T16:43:37
2023-08-28T16:43:37
121,798,175
827
189
Apache-2.0
2023-09-13T16:07:20
2018-02-16T20:37:33
Python
UTF-8
Python
false
false
1,383
py
element_wise_product.py
# SPDX-License-Identifier: Apache-2.0 from onnx import onnx_pb as onnx_proto from ...common.data_types import FloatTensorType from ...common.utils import check_input_and_output_numbers, check_input_and_output_types from ...common._apply_operation import apply_mul from ...common._registration import register_converter,...
dfd647b6c14692b6d2ba56285367f2b753594117
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/DS_and_ML_Mathematical_and_Statistical_Methods_Kroese_Taimre/Chapter2/polyregCV.py
f02460f0d9451cd428c553cd016e75826df16cbe
[]
no_license
burakbayramli/books
9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0
5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95
refs/heads/master
2023-08-17T05:31:08.885134
2023-08-14T10:05:37
2023-08-14T10:05:37
72,460,321
223
174
null
2022-10-24T12:15:06
2016-10-31T17:24:00
Jupyter Notebook
UTF-8
Python
false
false
1,447
py
polyregCV.py
""" polyregCV.py """ from polyreg3 import * K_vals = [5, 10, 100] # number of folds cv = np.zeros((len(K_vals), max_p)) X = np.ones((n, 1)) for p in p_range: if p > 1: X = np.hstack((X, u**(p-1))) j = 0 for K in K_vals: loss = [] for k in range(1, K+1): #...
1b033b1bbfd0bef056ab42ec5f021401f1b1d19d
444a9480bce2035565332d4d4654244c0b5cd47b
/research/cv/pcb/src/eval_callback.py
2b2fbd0fa20fa16040be1045dac14ab0848c28f1
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license" ]
permissive
mindspore-ai/models
7ede9c6454e77e995e674628204e1c6e76bd7b27
eab643f51336dbf7d711f02d27e6516e5affee59
refs/heads/master
2023-07-20T01:49:34.614616
2023-07-17T11:43:18
2023-07-17T11:43:18
417,393,380
301
92
Apache-2.0
2023-05-17T11:22:28
2021-10-15T06:38:37
Python
UTF-8
Python
false
false
3,968
py
eval_callback.py
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
99221d1dccdcde3795a49404d2417fc59dc287fa
a4f9164f5bd4405312afb5073342766a40fa3356
/efficientdet/aug/mosaic_test.py
65e6d572f30dec2663daa72dbb34ed91fc5a75fb
[ "Apache-2.0" ]
permissive
google/automl
3dd46487265241cebe7040b22556c9b259a5fb33
c7392f2bab3165244d1c565b66409fa11fa82367
refs/heads/master
2023-08-19T10:11:45.269690
2023-08-09T22:59:26
2023-08-09T22:59:26
246,738,676
6,415
1,692
Apache-2.0
2023-08-09T22:59:27
2020-03-12T03:52:47
Jupyter Notebook
UTF-8
Python
false
false
1,866
py
mosaic_test.py
# Copyright 2020 Google Research. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
9b264b5c6682a2721e5378f2c8d2a6e3b02a1f53
40ca168bbb9c865a13c83ef479838981c5b7a1c0
/packages/hagrid/hagrid/parse_template.py
3e4c5b351be0e4cebac5fcb9db9e825a6383d454
[ "Apache-2.0", "Python-2.0" ]
permissive
OpenMined/PySyft
6907171bc35062d04c1b6320097c3bcafb65ae68
1833278212d89e66853f28a7ca365261550bbe4f
refs/heads/dev
2023-09-05T05:50:48.773703
2023-09-05T04:00:44
2023-09-05T04:00:44
97,641,933
9,473
2,530
Apache-2.0
2023-09-14T12:50:53
2017-07-18T20:41:16
Python
UTF-8
Python
false
false
10,890
py
parse_template.py
# stdlib import hashlib import os import shutil from typing import Dict from typing import List from typing import Optional from typing import Tuple from typing import Union from urllib.parse import urlparse # third party from jinja2 import Environment from jinja2 import FileSystemLoader from jinja2 import Template im...
0417de38b3afd4118b20dc527e62bd83e363e199
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/HLTrigger/Configuration/python/HLT_75e33/sequences/HLTEndSequence_cfi.py
e78fca75928111ff8d3eaf3fcb83a43dd9acc5bb
[ "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
130
py
HLTEndSequence_cfi.py
import FWCore.ParameterSet.Config as cms from ..modules.hltBoolEnd_cfi import * HLTEndSequence = cms.Sequence( hltBoolEnd )
ef0232f68386e396af71c43792391b5f34c98df2
2b1bfccfada588b047b513e24db0c0f6bc41e154
/src/trajdata/dataset_specific/sdd_peds/sddpeds_dataset.py
a94bf888d98db44bda85825370bf458aa65c86f3
[ "Apache-2.0" ]
permissive
NVlabs/trajdata
8363b79dc3e5f1ff61d240b49e68df52319d9fee
5bc8ab59dc1fc44b3e8f4f78546109b314da098e
refs/heads/main
2023-09-01T02:00:11.016946
2023-08-23T01:44:58
2023-08-23T01:44:58
488,789,438
110
19
Apache-2.0
2023-08-23T01:08:11
2022-05-05T01:04:05
Python
UTF-8
Python
false
false
12,254
py
sddpeds_dataset.py
from pathlib import Path from random import Random from typing import Any, Dict, Final, List, Optional, Tuple, Type import numpy as np import pandas as pd from trajdata.caching import EnvCache, SceneCache from trajdata.data_structures.agent import AgentMetadata, AgentType, FixedExtent from trajdata.data_structures.en...
b137b645df1fd2f6b611a8ae0324ebafbfdd8ee7
08e1045024dcea6c5e2ac9c9b5aeac2e4580a710
/scrapers/test/test_district_data.py
4fdf8c9d3f62ff875d7771b9a7e1213d779dc01e
[ "CC-BY-4.0" ]
permissive
openZH/covid_19
c298feb48f47b041699bbee1d88eac54ed7e9088
1a2b8c3a600928a122a801ffddf8225416063fc9
refs/heads/master
2023-08-31T10:51:25.951503
2023-08-31T07:50:49
2023-08-31T07:50:49
246,001,728
491
227
CC-BY-4.0
2023-05-12T10:53:02
2020-03-09T10:07:28
Python
UTF-8
Python
false
false
1,033
py
test_district_data.py
from scrapers.scrape_common import DistrictData def test_district_data(): dd = DistrictData() dd.date = '1' dd.week = 2 dd.year = 3 dd.canton = '4' dd.district = '5' dd.district_id = 6 dd.population = 7 dd.total_cases = 8 dd.new_cases = 9 dd.total_deceased = 10 dd.new_de...
afdc0efaf802dfb30bdce8370c12b7f719091ce3
86f3973554eb61b12528835851cbdc96aba9ccc0
/tests/cases/test_ogf_import.py
efd090cf02bed4bd059b46774267ec4668b64924
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
PavelBlend/blender-xray
02d68e424ae9088221bafc1d0d9019690323d9da
a3abb9eb805182eec8ed8de4058dd744aee0e291
refs/heads/develop
2023-09-03T15:10:56.022070
2023-08-22T17:50:23
2023-08-22T17:50:23
20,459,902
150
40
BSD-2-Clause
2023-08-10T15:01:24
2014-06-03T21:12:53
Python
UTF-8
Python
false
false
1,245
py
test_ogf_import.py
from tests import utils import re import bpy class TestOgfImport(utils.XRayTestCase): def test_import_general(self): bpy.ops.xray_import.ogf( directory=self.binpath(), files=[{'name': 'test_fmt_ogf_st.ogf'}], ) bpy.ops.xray_import.ogf( directory=self.bi...
eef1a92cae8e91e83bdfc7aadb1ce3dc91b7a110
9ed3b16b3da72e4c47a04f2f2e3ef395e9fd9f20
/contrib/yajl/template.py
0a0ddd77f7a5a1de17aa7358d499bc56475a0b68
[ "BSD-2-Clause" ]
permissive
chimera-linux/cports
fdae59dc25856942be3041e10e3533dbf8f883c3
714680161cd719dd047452c95fbb9b447bc23a86
refs/heads/master
2023-09-03T19:30:40.720670
2023-09-03T15:07:40
2023-09-03T15:07:40
374,000,317
118
37
BSD-2-Clause
2023-09-14T20:31:08
2021-06-05T02:07:34
Python
UTF-8
Python
false
false
902
py
template.py
pkgname = "yajl" pkgver = "2.1.0" pkgrel = 0 build_style = "cmake" hostmakedepends = [ "cmake", "ninja", "pkgconf", ] pkgdesc = "Yet Another JSON Library" maintainer = "psykose <alice@ayaya.dev>" license = "ISC" url = "https://github.com/lloyd/yajl" source = f"{url}/archive/refs/tags/{pkgver}.tar.gz" sha256...
8e61715696db780059641170d6d915713edb9436
c475cd8531a94ffae69cc92371d41531dbbddb6c
/Projects/bullet3-2.89/examples/pybullet/examples/createMultiBodyBatch.py
dd53d99b084eac789f6a6943eaebfe567dc6cd25
[ "Apache-2.0", "LicenseRef-scancode-free-unknown", "Zlib" ]
permissive
WolfireGames/overgrowth
72d3dd29cbd7254337265c29f8de3e5c32400114
594a2a4f9da0855304ee8cd5335d042f8e954ce1
refs/heads/main
2023-08-15T19:36:56.156578
2023-05-17T08:17:53
2023-05-17T08:20:36
467,448,492
2,264
245
Apache-2.0
2023-05-09T07:29:58
2022-03-08T09:38:54
C++
UTF-8
Python
false
false
5,504
py
createMultiBodyBatch.py
import pybullet as p import time import math cid = p.connect(p.SHARED_MEMORY) if (cid < 0): p.connect(p.GUI, options="--minGraphicsUpdateTimeMs=16000") p.setPhysicsEngineParameter(numSolverIterations=4, minimumSolverIslandSize=1024) p.setTimeStep(1. / 120.) logId = p.startStateLogging(p.STATE_LOGGING_PROFILE_TIMING...
3e450795f59c782c733f714b04e5b28c2e202d65
374b3f27fe3cf032e88eccac5992c83eba0ad1b2
/tutorials/W1D3_GeneralizedLinearModels/solutions/W1D3_Tutorial2_Solution_89590c8d.py
49a3af5a9831d374d463bc2e4d602155b2a56fd0
[ "CC-BY-4.0", "BSD-3-Clause" ]
permissive
NeuromatchAcademy/course-content
e2fdca96bcbdc78afaa209e4e77438f44a56c82d
3d638d00f02d9fd269fa2aff7d062558afdcb126
refs/heads/main
2023-08-16T16:09:09.314153
2023-08-02T06:21:49
2023-08-02T06:21:49
262,856,980
2,678
1,079
CC-BY-4.0
2023-08-17T00:32:24
2020-05-10T19:09:05
Jupyter Notebook
UTF-8
Python
false
false
193
py
W1D3_Tutorial2_Solution_89590c8d.py
def sigmoid(z): """Return the logistic transform of z.""" sigmoid = 1 / (1 + np.exp(-z)) return sigmoid # Visualize with plt.xkcd(): plot_function(sigmoid, "\sigma", "z", (-10, 10))
f4dc113eda1c12bcdd66ec452e4a0d326cfe39ee
fcc3fcd8da44b7d6bd46098df9693d6fb01cef73
/jans-cli-tui/cli_tui/plugins/030_scim/main.py
87bd52ec28fb8c41dbaa75a976fbc1fa18c0fa64
[ "Apache-2.0" ]
permissive
JanssenProject/jans
cb633472825787b68ecfba7db97b5b7e5c87e7a5
66c4ef766a62788437cce88974357a9a2b20de21
refs/heads/main
2023-09-01T07:04:48.645163
2023-08-31T10:57:05
2023-08-31T10:57:05
309,721,058
400
68
Apache-2.0
2023-09-14T17:42:33
2020-11-03T15:00:37
Java
UTF-8
Python
false
false
9,819
py
main.py
import asyncio from prompt_toolkit.application import Application from prompt_toolkit.layout.containers import HSplit, VSplit, Window from prompt_toolkit.layout.dimension import D from prompt_toolkit.widgets import Button, Frame from wui_components.jans_drop_down import DropDownWidget from utils.utils import DialogUti...
c3398d59b4db2fee25a45240c418dcf2c38dd2ac
97d7455fbaa56813e97cf601e4a23786d47c2e2c
/general_itests/steps/tron_steps.py
164d99f1de9f29e65480a6c3abe158ce25a9e100
[ "Apache-2.0" ]
permissive
Yelp/paasta
9138fbb0beaaa6146520c1483144679f9d5d4941
6fafc7c86073f136e64b959b963994be3d6160ab
refs/heads/master
2023-08-17T00:00:47.610727
2023-08-10T21:40:26
2023-08-10T21:40:26
44,998,824
1,805
291
Apache-2.0
2023-09-13T20:40:04
2015-10-26T21:35:53
Python
UTF-8
Python
false
false
1,081
py
tron_steps.py
# Copyright 2015-2016 Yelp 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 writin...
1824e5fa6bc47e5bf270e2715430bb2cdcc27249
c5311176cd07f267fb1ca4f9cd71b308ed0778c5
/dygie/predictors/__init__.py
f74c49dc60c99db3a2cd56ddac964da75b317686
[ "MIT" ]
permissive
dwadden/dygiepp
1a71885b0588bb5f0997dec13b27ebfd30169e7c
ab764cd0d48b7c430a78a1edddf5acaeec13c109
refs/heads/master
2023-07-27T19:30:00.399646
2023-07-19T20:52:06
2023-07-19T20:52:06
171,385,430
534
129
MIT
2023-07-19T20:52:08
2019-02-19T01:48:41
Python
UTF-8
Python
false
false
50
py
__init__.py
from dygie.predictors.dygie import DyGIEPredictor
bf04c27cfff4193e28c9066a5ce51f1c2e6711b7
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/cognitivelanguage/azure-ai-language-questionanswering/tests/helpers.py
cc14e7d32549804dc01bcd623b603390c5bf1401
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
4,555
py
helpers.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. # ----------------------------------------------------------------------...
ac76d254373e75927f4907edbf6412532121ac2f
2853845c003d03db22f67c3303fa1ec333180ae7
/web_console_v2/api/fedlearner_webconsole/utils/system_envs.py
b75f607a6a1a7563eb6bf85d7d120271979d5ea6
[ "LicenseRef-scancode-proprietary-license", "Apache-2.0" ]
permissive
bytedance/fedlearner
fc1dd2ba2ec88092e83a32732eccea52451ce552
436e4959952c970917ee8f47b920f0a76cd4dd05
refs/heads/master
2023-08-14T23:01:02.875453
2023-05-23T03:44:03
2023-05-23T03:44:03
235,348,659
893
243
Apache-2.0
2023-06-08T07:37:18
2020-01-21T13:26:35
Python
UTF-8
Python
false
false
3,348
py
system_envs.py
# Copyright 2021 The FedLearner 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...
984ff605ee87b1cfaa4c7bc54558cd8d985754ca
a41e1498e3c080f47abd8e8e57157548df3ebbf1
/pandas/tests/reshape/merge/test_merge_asof.py
d4cb89dadde9bc6cc756485a1cdc03405d3431be
[ "BSD-3-Clause" ]
permissive
pandas-dev/pandas
e7e639454a298bebc272622e66faa9829ea393bb
c7325d7e7e77ecb4a4e57b48bc25265277c75712
refs/heads/main
2023-09-01T12:42:07.927176
2023-09-01T11:14:10
2023-09-01T11:14:10
858,127
36,166
18,728
BSD-3-Clause
2023-09-14T21:18:41
2010-08-24T01:37:33
Python
UTF-8
Python
false
false
56,701
py
test_merge_asof.py
import datetime import numpy as np import pytest import pytz import pandas.util._test_decorators as td import pandas as pd from pandas import ( Index, Timedelta, merge_asof, read_csv, to_datetime, ) import pandas._testing as tm from pandas.core.reshape.merge import MergeError @pytest.fixture(pa...
177fe577129058a1c93f1b34d25566ce76708bc1
47d69d21f53333d93d5ba9973840ef192808a090
/src/tox/config/cli/ini.py
adcee2cb75707d4dd4bc82fbde204e6457edb714
[ "MIT" ]
permissive
tox-dev/tox
27ce3072e7faf5c88ed5305bbd66359369bba13d
da0885cd162fb02de866831a75eca9dcfe87eb36
refs/heads/main
2023-09-01T11:45:18.097559
2023-08-31T14:51:57
2023-08-31T14:51:57
68,465,360
3,512
624
MIT
2023-09-11T20:58:32
2016-09-17T16:54:22
Python
UTF-8
Python
false
false
3,166
py
ini.py
"""Provides configuration values from tox.ini files.""" from __future__ import annotations import logging import os from configparser import ConfigParser from pathlib import Path from typing import Any, ClassVar from platformdirs import user_config_dir from tox.config.loader.api import ConfigLoadArgs from tox.config...
419d9ca7a27be52f3d249250cbeb088d0ba7e765
c83ea832a92bc6622dd851c46871fa6e5c9ad2f5
/_scripts/dependency_update.py
af634b286d8f58b3b6eb503db74e314e486e15bb
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
drycc/workflow
c57add44e765df372f632ae03f21e4bad100f15a
621c6039b54d135dc14e3fe6d31ab8724bc13f09
refs/heads/main
2023-08-29T06:58:25.784297
2023-08-28T01:21:20
2023-08-28T01:21:20
166,907,435
471
107
Apache-2.0
2023-06-21T07:11:45
2019-01-22T01:43:07
SCSS
UTF-8
Python
false
false
817
py
dependency_update.py
import sys import yaml import requests from contextlib import closing def load_index(url): with closing(requests.get(url)) as response: return yaml.load(response.text, Loader=yaml.Loader) def load_requirements(requirements_file): with open(requirements_file) as f: return yaml.load(f, Loader=y...
af2f0bec5f1f539c314335282728abdb473d1594
3cd9fc36f4abba93bffb11dc43f145db6c6f5408
/azure-iot-device/azure/iot/device/common/auth/__init__.py
f588624512ebe0229b1437642c406e66eedfabba
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Azure/azure-iot-sdk-python
457eb035e772268559ee8fa3310c210c84e52aa6
5d343d5904aaa98c6a88101e0dc40263acff4db2
refs/heads/main
2023-09-01T05:19:57.710222
2023-08-28T16:52:26
2023-08-28T16:52:26
70,936,068
441
438
MIT
2023-08-28T16:52:28
2016-10-14T18:17:15
Python
UTF-8
Python
false
false
317
py
__init__.py
from .signing_mechanism import SymmetricKeySigningMechanism # noqa: F401 # NOTE: Please import the connection_string and sastoken modules directly # rather than through the package interface, as the modules contain many # related items for their respective domains, which we do not wish to expose # at length here.
be3ce58c6eaa893c18111fbb63b3c50b9cfddaac
94c0d1574ad8ba81a1ef0d48020b92ba681a5c6a
/bin/snakePipes
9930daecf5ed7781a6b18684de02300566946d88
[ "MIT" ]
permissive
maxplanck-ie/snakepipes
650de654c8bb6b197743d5bb59628df2d91d3a79
6144e3fdc1bdaa26e05b1cb234df7414c61e283a
refs/heads/master
2023-09-05T09:25:33.130890
2023-06-05T13:38:57
2023-06-05T13:38:57
54,579,435
318
91
MIT
2023-08-22T12:07:49
2016-03-23T17:23:31
Python
UTF-8
Python
false
false
15,442
snakePipes
#!/usr/bin/env python import sys import argparse import subprocess import snakePipes import os import yaml import glob import hashlib import shutil import snakePipes.common_functions as cof from snakePipes import __version__ def parse_arguments(): parser = argparse.ArgumentParser( description="Setup and i...
1eda102ad5c6a1fd859247c3bfd6a482875751d2
c2c212ba42ebfa35f3b6122344978bc94ec8fa67
/tests/test_eatingwell.py
58d76cd39f9b0960fe292af02c03a3de01381634
[ "MIT" ]
permissive
hhursev/recipe-scrapers
0cd6b7db4ef23ca825f2354f5d1ba76076a14813
8ced0227b3b16c532fc5ebf3060c99ee0452adab
refs/heads/main
2023-09-03T07:33:29.684121
2023-09-01T21:15:50
2023-09-01T21:15:50
42,446,168
1,276
443
MIT
2023-09-14T16:34:09
2015-09-14T12:05:00
Python
UTF-8
Python
false
false
2,760
py
test_eatingwell.py
from recipe_scrapers.eatingwell import EatingWell from tests import ScraperTest class TestEatingWell(ScraperTest): scraper_class = EatingWell def test_host(self): self.assertEqual("eatingwell.com", self.harvester_class.host()) def test_title(self): self.assertEqual( self.harv...
21c4ca6fc0dd624f08e592810042e3be97a2128f
5e255ad1360c90478393744586663741a9569c21
/tests/models/serialize_test_case.py
13de0bcdc71f3fcd911340216a1b137e0bf0cdd5
[ "Apache-2.0" ]
permissive
line/line-bot-sdk-python
d76268e8b542060d6eccbacc5dbfab16960ecc35
cffd35948238ae24982173e30b1ea1e595bbefd9
refs/heads/master
2023-08-31T22:12:31.698183
2023-08-28T01:10:09
2023-08-28T01:10:09
70,553,423
1,898
1,181
Apache-2.0
2023-09-11T05:14:07
2016-10-11T03:42:26
Python
UTF-8
Python
false
false
2,551
py
serialize_test_case.py
# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
dbec761712613088eeb631e0e473acaf71f39dd5
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/RecoPPS/Local/test/re_alignment/reco_align_corr_cfg.py
d98a81602518c0561c2dca0255da062515bfc074
[ "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
1,382
py
reco_align_corr_cfg.py
import FWCore.ParameterSet.Config as cms from Configuration.StandardSequences.Eras import eras process = cms.Process('ReAlignment', eras.Run2_2018) # minimum of logs process.MessageLogger = cms.Service("MessageLogger", cerr = cms.untracked.PSet( enable = cms.untracked.bool(False) ), cout = cms.unt...
3087d0c6213721a255ef0bf71d9b4cdb49bc1ea0
0d543b6f877114fc7ff7f5c2485230f606f6d98d
/2020/7.py
2c0751a494ad589dec912a6a33716a40f8980063
[]
no_license
jonathanpaulson/AdventOfCode
eca9d1732ec80dd640d6eed01b3a18d3b3ee455b
215f18d7d5b9761ec181954d2e62b6fed3bd12f5
refs/heads/master
2023-01-08T00:25:09.651009
2022-12-25T05:39:11
2022-12-25T05:39:11
321,228,487
227
103
null
2022-12-01T09:31:36
2020-12-14T04:03:53
Python
UTF-8
Python
false
false
1,910
py
7.py
import fileinput import re from collections import deque, defaultdict # For part1, we need to keep track of which bags have other bags as containers # For part2, we need to keep track of which bags (and how many!) each bag contains # We can think of both of these as graphs where the vertices are the bags and the edges...
498cb1dafd839530071432e0d9770c1e42427109
26bbcfdb811f7df13f7b5a95ba551da7adac4e9b
/src/certfuzz/bff/errors.py
b9af9dbb3cf541cb8899e7c8e8e4064d5f02cf97
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
CERTCC/certfuzz
080c3a5448a39d02049253fad96498ba50191586
892dae8676535b0ae5b77eea95ffbc21e9e1c959
refs/heads/develop
2022-11-11T06:12:09.032184
2020-06-10T19:57:26
2020-06-10T19:57:26
20,684,363
161
25
NOASSERTION
2023-05-10T14:27:00
2014-06-10T12:29:53
Python
UTF-8
Python
false
false
129
py
errors.py
''' Created on Apr 4, 2014 @author: adh ''' from certfuzz.errors import CERTFuzzError class BFFerror(CERTFuzzError): pass
09d065ea854cef3f32f52bae68fd344ba593531f
ddddaa700e4642f46a2c1e1e0271a7c8ea62ba0f
/harness/determined/deploy/errors.py
45e5557443e65bf7d28524c3031f9b4f05c0fc17
[ "Apache-2.0" ]
permissive
determined-ai/determined
9d563cb5ffd074c88ee5edc9bf22ab9c3cb78c7e
8239b1993f4f44390f4e88901ffaf3b12429b83c
refs/heads/main
2023-08-21T12:13:36.651298
2023-08-21T08:34:16
2023-08-21T08:34:16
253,846,879
2,531
330
Apache-2.0
2023-09-14T21:54:17
2020-04-07T16:12:29
Go
UTF-8
Python
false
false
94
py
errors.py
class PreflightFailure(Exception): pass class MasterTimeoutExpired(Exception): pass
e019a436868e17cf4b8b66f7f82e83662584a8f8
aa793c2b787ff591f69147e2cc5e23d6c7b4d77e
/proxyclient/m1n1/asm.py
0ada7b5c8d6f7e62f3fb8b56b548e500c287a2d1
[ "MIT", "BSD-3-Clause", "OFL-1.1", "GPL-2.0-only", "CC0-1.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
AsahiLinux/m1n1
8280a8342c407936beabda0f08a700759a636b05
6d0979e71e83f47c5da5fdb8c5e21eb1268d54e8
refs/heads/main
2023-08-22T20:52:30.090704
2023-08-21T14:16:08
2023-08-21T14:16:08
329,707,886
2,966
200
MIT
2023-09-07T10:19:39
2021-01-14T18:59:03
Python
UTF-8
Python
false
false
3,999
py
asm.py
# SPDX-License-Identifier: MIT import os, tempfile, shutil, subprocess, re from . import sysreg __all__ = ["AsmException", "ARMAsm"] uname = os.uname() if uname.sysname == "Darwin": DEFAULT_ARCH = "aarch64-linux-gnu-" if uname.machine == "arm64": TOOLCHAIN = "/opt/homebrew/opt/llvm/bin/" else: ...
3157f1d3266d4351bf519b1275c842853ea6094f
76fb0a3cfc9d9362ab29174bd1d55e888ea4d7f6
/tfx/orchestration/portable/input_resolution/partition_utils_test.py
d54d22168fe429131054b37a1cdc5e7981366fd4
[ "Apache-2.0" ]
permissive
tensorflow/tfx
0cfc9c55171352ecc98c9dfa8ffe976c689d7073
1b328504fa08a70388691e4072df76f143631325
refs/heads/master
2023-08-30T11:56:50.894497
2023-08-29T22:47:19
2023-08-29T22:48:26
169,116,405
2,116
899
Apache-2.0
2023-09-14T21:51:42
2019-02-04T17:14:36
Python
UTF-8
Python
false
false
4,795
py
partition_utils_test.py
# Copyright 2022 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
6d2dd1c19d7b7185c6b169a82ec0b39ffa55f3e9
5c363c50c54175a982330ec888401b3e394373ab
/syne_tune/backend/simulator_backend/events.py
743d632b57349a5d187392d90f956b0ebb21eff3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
awslabs/syne-tune
b14fb008f63def6a172bea6cc451f4e1906647f5
c35686e1b5947d45384fd1d41a44e013da53ef43
refs/heads/main
2023-08-14T14:21:48.995716
2023-08-03T12:57:13
2023-08-03T12:57:13
417,499,108
313
47
Apache-2.0
2023-09-14T14:06:54
2021-10-15T12:54:45
Python
UTF-8
Python
false
false
3,404
py
events.py
# Copyright 2021 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
1fd9ea05529b56a7cc34f2cf334b7ba4c2f15ca8
013e32a2789cf8dceb3a3dd142baa8cab0b421c5
/src/pydicom/encoders/pylibjpeg.py
5e3083b76e5aa14bda1e4d171d9ae8b79cae0e76
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
pydicom/pydicom
59c7c1328a5fbfc3fe489c7bdde42d519f57d80c
f2add283f3f58296b67c4b73b53a10caa8609da8
refs/heads/main
2023-08-31T17:39:25.539975
2023-08-28T19:03:14
2023-08-28T19:28:53
14,006,067
1,539
406
NOASSERTION
2023-09-11T19:50:51
2013-10-31T02:58:52
Python
UTF-8
Python
false
false
1,126
py
pylibjpeg.py
# Copyright 2008-2021 pydicom authors. See LICENSE file for details. """Interface for *Pixel Data* encoding, not intended to be used directly.""" from typing import Any, cast from pydicom.uid import RLELossless try: from pylibjpeg.utils import get_pixel_data_encoders HAVE_PYLJ = True except ImportError: ...
59b760181c53f3e955d68d3bd9b9820d5664d575
389b75e672fde1f282bb80c3da798a59b90b41cd
/peartree/plot.py
c45e3f719e6adfc8dbf9e04f410a1c15ea22d021
[ "MIT" ]
permissive
kuanb/peartree
ee18dd72c542a42e4761b6cb00b3cec2265c3eb2
494acf962b5d76f0759b400999619641a1f13301
refs/heads/master
2023-05-13T19:43:24.040544
2021-01-18T00:45:28
2021-01-18T00:45:28
110,452,875
192
23
MIT
2023-05-05T14:06:11
2017-11-12T17:22:00
Python
UTF-8
Python
false
false
1,363
py
plot.py
import networkx as nx from .utilities import log def generate_plot(G: nx.MultiDiGraph, use_agg=False): # Load matplotlib only when plot requested import matplotlib # noqa if use_agg: # Force matplotlib to not use any Xwindows backend matplotlib.use('Agg') # OSMnx is not a dependency...
3334621f0d4d84f7ade6a7f19417bfd8ca930a1d
59359e4821554f559c9ffc5bf1a7f52fff0c6051
/descarteslabs/core/catalog/tests/base.py
368fe5d4d29a31d385b25badcfc337352d93b3b1
[ "Apache-2.0" ]
permissive
descarteslabs/descarteslabs-python
706acfc594721a1087872744c9cb72fe2b3d2e5b
a8a3859b8ced6d4478b93ff205caad06d508501d
refs/heads/master
2023-08-23T12:01:36.802085
2023-08-21T14:57:22
2023-08-21T15:20:01
84,609,153
176
49
NOASSERTION
2023-05-02T15:54:37
2017-03-10T23:27:12
Python
UTF-8
Python
false
false
2,298
py
base.py
# Copyright 2018-2023 Descartes Labs. # # 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 ...
79b0a14dbb8daed9460268fb10e12b965b923873
6564f42640e11689c2ddb6b92325afe6fddc6a6f
/cumulusci/utils/git.py
2e822bf7d6edf902a510dc5ff03a4273a2b04043
[ "LicenseRef-scancode-free-unknown" ]
permissive
SFDO-Tooling/CumulusCI
32d4509fa8a36905cfc84fd6283403fd7f4b78c4
9ccf3c9566f78c6e9102ac214db30470cef660c1
refs/heads/main
2023-08-18T04:53:55.733027
2023-08-11T20:52:08
2023-08-11T20:52:08
15,592,459
226
134
BSD-3-Clause
2023-09-14T05:09:26
2014-01-02T20:01:31
Python
UTF-8
Python
false
false
2,707
py
git.py
import pathlib import re from typing import Any, Optional, Tuple def git_path(repo_root: str, tail: Any = None) -> Optional[pathlib.Path]: """Returns a Path to the .git directory in repo_root with tail appended (if present) or None if repo_root is not set. """ path = None if repo_root: pat...
7e3842e0471a910626abf39803656734ea5989d7
b21e53a2d47d2bc8ad943de5dfd001535f347a7e
/PyFiSync/main.py
9b05f8e510fce600fad6bca70bcc4112ba2da1cc
[ "MIT" ]
permissive
Jwink3101/PyFiSync
1b8b08b6c15f6952f7cb1ef8ff9c0923d4fb71d0
086fa6e90fd647f020d570671ee1a300e7f9b722
refs/heads/master
2021-10-28T10:50:00.944630
2021-10-17T13:45:50
2021-10-17T13:46:09
139,068,551
113
15
MIT
2018-07-07T02:34:37
2018-06-28T21:09:40
Python
UTF-8
Python
false
false
36,581
py
main.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals from io import open __version__ = '20211017.0' __author__ = 'Justin Winokur' __license__ = 'MIT' import os import sys import fnmatch import subprocess import time import shutil import datetime import argpar...
b30d776b4f5077218d3ba264471cbf68b74b001d
8188f026dcfa3ca6c4e2d58e6c56d04d24e37a18
/examples/quantum_random_numbers.py
34dc61acc6e51fbc81998665cc0976da01559e14
[ "Apache-2.0" ]
permissive
ProjectQ-Framework/ProjectQ
2e342da0622d4b5d513c15504556e95d3d0e2aea
67c660ca18725d23ab0b261a45e34873b6a58d03
refs/heads/develop
2023-09-04T02:18:25.581119
2023-03-09T16:03:57
2023-03-09T16:03:57
77,520,796
886
335
Apache-2.0
2023-07-24T07:07:15
2016-12-28T09:31:53
Python
UTF-8
Python
false
false
370
py
quantum_random_numbers.py
# pylint: skip-file """Example of a simple quantum random number generator.""" from projectq import MainEngine from projectq.ops import H, Measure # create a main compiler engine eng = MainEngine() # allocate one qubit q1 = eng.allocate_qubit() # put it in superposition H | q1 # measure Measure | q1 eng.flush() ...
9eabe465bf4b7b608bc55aa0a1aa1891a8cb473a
df6563876db2ec1404ac0e412361e50f8ba75cdf
/_content/talks/2013/go4python/deco.py
bf463184ee3a120985a6f69301bf907b96ce46d4
[ "CC-BY-4.0", "BSD-3-Clause", "LicenseRef-scancode-google-patent-license-golang" ]
permissive
golang/website
a3b77461aaaa5e849d6028725a485ce408881b9e
07cc88f98dbde10db7d92f8e392aa1bc72476cc4
refs/heads/master
2023-08-17T20:36:11.437973
2023-08-16T18:22:07
2023-08-17T12:37:07
163,893,962
355
340
BSD-3-Clause
2023-09-12T19:35:19
2019-01-02T21:59:00
HTML
UTF-8
Python
false
false
612
py
deco.py
#!/usr/bin/python from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer from urlparse import urlparse,parse_qs PORT_NUMBER = 8080 def auth_required(myfunc): def checkuser(self): user = parse_qs(urlparse(self.path).query).get('user') if user: self.user = user[0] myfunc(self) else: self.wfile.wr...
af8f386624e6f238cbf6d08fd971fc3ee007f3bf
e7efae2b83216d9621bd93390959d652de779c3d
/ibm_db2/tests/test_integration_e2e.py
2340617476913b5f30970d0f67cb7b42d5e2fe55
[ "BSD-3-Clause", "MIT", "BSD-3-Clause-Modification", "Unlicense", "Apache-2.0", "LGPL-3.0-only", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "CC0-1.0" ]
permissive
DataDog/integrations-core
ee1886cc7655972b2791e6ab8a1c62ab35afdb47
406072e4294edff5b46b513f0cdf7c2c00fac9d2
refs/heads/master
2023-08-31T04:08:06.243593
2023-08-30T18:22:10
2023-08-30T18:22:10
47,203,045
852
1,548
BSD-3-Clause
2023-09-14T16:39:54
2015-12-01T16:41:45
Python
UTF-8
Python
false
false
925
py
test_integration_e2e.py
# (C) Datadog, Inc. 2019-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import pytest from datadog_checks.base import AgentCheck from datadog_checks.ibm_db2 import IbmDb2Check from . import metrics @pytest.mark.integration @pytest.mark.usefixtures('dd_environment') def tes...
bd959195a1388de9c64f20e36654fcec3e387868
c618bbf2719431999b1007461df0865bab60c883
/dali/test/python/operator_1/test_noise_gaussian.py
991ef1e99dcfa8a3e1333658c8e5ec71699071b3
[ "Apache-2.0" ]
permissive
NVIDIA/DALI
3d0d061135d19e092647e6522046b2ff23d4ef03
92ebbe5c20e460050abd985acb590e6c27199517
refs/heads/main
2023-09-04T01:53:59.033608
2023-09-01T13:45:03
2023-09-01T13:45:03
135,768,037
4,851
648
Apache-2.0
2023-09-12T18:00:22
2018-06-01T22:18:01
C++
UTF-8
Python
false
false
2,529
py
test_noise_gaussian.py
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES. 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 ...
4b3b9b1c390c0dff6ba56ee63c3389902fc1c6dc
b8a803694c283a5acd13ab6760a36710884ab24f
/llvm_cbuilder/tests/test_translate.py
b9e39ead3d63115ba965a304242033db54427e15
[ "NCSA", "BSD-3-Clause" ]
permissive
llvmpy/llvmpy
8a4c31e731364ead802231b97e058b8f8c444f96
13130fe35f1fb03a7051ad46c36146002391a6fa
refs/heads/master
2016-09-05T16:48:54.694686
2015-04-28T16:21:34
2015-04-28T16:21:34
3,375,197
155
13
null
2015-05-27T18:36:45
2012-02-07T07:09:59
HTML
UTF-8
Python
false
false
2,123
py
test_translate.py
from llvm.core import Module from llvm_cbuilder import * from llvm_cbuilder.translator import translate import llvm_cbuilder.shortnames as C import unittest, logging #logging.basicConfig(level=logging.DEBUG) class FooIf(CDefinition): _name_ = 'foo_if' _retty_ = C.int _argtys_ = [('x', C.int), ...
b7ddc01970d7de470df4285c63c8431a9c56d7f9
043f6c509d32f7cf83174a9dedcb27575d6b29fe
/src/feature_align.py
19792bca6b8b6967fe4822355e00f0e7c15c1f06
[ "LicenseRef-scancode-mulanpsl-2.0-en" ]
permissive
Thinklab-SJTU/ThinkMatch
f07033e085d90496e796ce10e5ea6997c32ff3b9
cfd1c0d34b3614957a44ac73ed6090898a51c9f2
refs/heads/master
2023-07-19T13:40:37.929572
2023-07-19T05:55:45
2023-07-19T05:55:45
206,839,844
304
68
NOASSERTION
2023-07-19T05:55:46
2019-09-06T17:07:08
Python
UTF-8
Python
false
false
4,816
py
feature_align.py
import torch from torch import Tensor def feature_align(raw_feature: Tensor, P: Tensor, ns_t: Tensor, ori_size: tuple, device=None) -> Tensor: r""" Perform feature align on the image feature map. Feature align performs bi-linear interpolation on the image feature map. This operation is inspired by "ROIAl...
e696e06f73ab9c271174fdb17c46d811a092f2da
e7efae2b83216d9621bd93390959d652de779c3d
/clickhouse/datadog_checks/clickhouse/clickhouse.py
4693d0b5f4697c9b3cd51743c6cd05b557c99243
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "MIT", "BSD-3-Clause-Modification", "Unlicense", "Apache-2.0", "LGPL-3.0-only", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "CC0-1.0" ]
permissive
DataDog/integrations-core
ee1886cc7655972b2791e6ab8a1c62ab35afdb47
406072e4294edff5b46b513f0cdf7c2c00fac9d2
refs/heads/master
2023-08-31T04:08:06.243593
2023-08-30T18:22:10
2023-08-30T18:22:10
47,203,045
852
1,548
BSD-3-Clause
2023-09-14T16:39:54
2015-12-01T16:41:45
Python
UTF-8
Python
false
false
5,284
py
clickhouse.py
# (C) Datadog, Inc. 2019-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import clickhouse_driver from six import raise_from from datadog_checks.base import AgentCheck, ConfigurationError, is_affirmative from datadog_checks.base.utils.db import QueryManager from . import quer...
5240058bf1e3db54835237cd0c518142d6e54c52
fa3f6d4e9169fb95f828013d179d03accdff381b
/grr/server/grr_response_server/blob_stores/encrypted_blob_store.py
e4dd11f4221813dd0d36ac0dc69f3984a6f63cb0
[ "Apache-2.0" ]
permissive
google/grr
c51a2bd251ed2f7adae538541990a2cc01fdcc8c
44c0eb8c938302098ef7efae8cfd6b90bcfbb2d6
refs/heads/master
2023-09-05T20:02:36.823914
2023-07-26T09:34:09
2023-07-26T09:34:09
14,909,673
4,683
927
Apache-2.0
2023-07-26T09:34:10
2013-12-04T00:17:53
Python
UTF-8
Python
false
false
5,480
py
encrypted_blob_store.py
#!/usr/bin/env python """An module with implementation of the encrypted blobstore.""" import logging from typing import Iterable from typing import Optional from grr_response_server import blob_store from grr_response_server.databases import db as abstract_db from grr_response_server.keystore import abstract as abstra...
70dbf5ac397307d75caa0dae11c8d0b679333f96
dcbef06d5a00f07756339b9e62c684dec2fee425
/nuitka/nodes/BuiltinAllNodes.py
01dac5115cdbf350815b4acf08239612cde4453d
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
Nuitka/Nuitka
f9543d8d95bfa0b81d4e60af0dfad99fb72893a4
d87faf2f7e1d6ed9bfe4cf8c1d648f34307e33f2
refs/heads/develop
2023-08-28T14:00:32.861328
2023-08-27T09:16:45
2023-08-27T09:16:45
9,626,741
8,573
599
Apache-2.0
2023-09-13T02:49:41
2013-04-23T15:40:33
Python
UTF-8
Python
false
false
3,823
py
BuiltinAllNodes.py
# Copyright 2023, Batakrishna Sahu, mailto:<Batakrishna.Sahu@suiit.ac.in> # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file e...
e1f9a97d2ec1f236e39a894dd63ec7f9c3c3173a
a198aa98679ae1fc70388f8376a9a41444040319
/transit-network-analysis-tools/parallel_cpap.py
841004f005f4ff238865d7dd192821fba72131b1
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Esri/public-transit-tools
8437831328e94fa9fe74469922c204eb6fb74b22
47cbc3de67a7b1bf9255e07e88cba7b051db0505
refs/heads/master
2023-09-05T17:01:23.375328
2023-08-30T19:58:50
2023-08-30T19:58:50
42,553,165
155
67
Apache-2.0
2023-08-30T19:58:51
2015-09-15T23:38:22
Python
UTF-8
Python
false
false
14,182
py
parallel_cpap.py
############################################################################ ## Tool name: Transit Network Analysis Tools ## Created by: Melinda Morang, Esri ## Last updated: 30 August 2023 ############################################################################ """Do the core logic for the Create Percent Acce...
a8fac012f5dea2c828f94b2996caa4bac3e2f5e6
2b6df7693bb74c7ed204f0773c5d47a5de914d09
/generator/modules/chainer.py
64335cde3b027b287d2e97e8edae127b8e9a4c2d
[ "MIT" ]
permissive
ufoym/deepo
7136db50f68d04b389b1280517fa511ad5db41df
d8cbd2c6e063609c42e09b137f7f84f0b1015634
refs/heads/master
2023-03-08T15:54:10.588149
2023-01-29T05:49:54
2023-01-29T05:49:54
108,539,084
6,774
928
MIT
2019-08-05T03:35:53
2017-10-27T11:41:49
Python
UTF-8
Python
false
false
473
py
chainer.py
# -*- coding: utf-8 -*- from .__module__ import Module, dependency, source from .python import Python @dependency(Python) @source('pip') class Chainer(Module): def build(self): return r''' $PIP_INSTALL \ '''.rstrip() + ( '' if self.composer.cuda_ver is None else \ ...
238056d89c54d75eb5da05760b35ad0d36d6ce97
77fee94c58cd5b6305eef2f13d74b488db428c59
/litex/soc/cores/timer.py
45a7d2472caa154bea395386fb403ba69c8a7034
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
enjoy-digital/litex
de5919d649c1b884c47a5e0364c2a9a584ebd614
405296b7fd99764af21fffd94afa5075c22affa8
refs/heads/master
2023-08-31T23:52:33.895792
2023-08-31T17:34:55
2023-08-31T17:36:21
45,734,719
2,351
524
NOASSERTION
2023-09-14T21:26:26
2015-11-07T12:02:12
C
UTF-8
Python
false
false
4,217
py
timer.py
# # This file is part of LiteX. # # Copyright (c) 2013-2015 Sebastien Bourdeauducq <sb@m-labs.hk> # Copyright (c) 2019 Sean Cross <sean@xobs.io> # Copyright (c) 2019 Florent Kermarrec <florent@enjoy-digital.fr> # SPDX-License-Identifier: BSD-2-Clause from migen import * from litex.gen import * from litex.soc.interc...
0756fea87400e28ab0b532d39931f82fb48f2fe7
7f7cc38779ecb42ef8d703106171f7ce30a0a539
/comment/views/comments.py
5eecd3392460b0f49d117ea23ab22105047813ea
[ "MIT" ]
permissive
Radi85/Comment
3209458b7f208d99c63152ec200a41273c8f2349
0d600b951ac9e9dff0c5791a6bf32c898ac180c7
refs/heads/develop
2022-11-10T20:46:32.386656
2022-11-01T06:26:42
2022-11-01T12:06:32
147,228,387
106
49
MIT
2022-11-01T12:06:34
2018-09-03T16:19:08
Python
UTF-8
Python
false
false
4,737
py
comments.py
from django.shortcuts import render, redirect, get_object_or_404 from django.template.loader import render_to_string from django.utils import timezone from django.contrib import messages from comment.models import Comment from comment.forms import CommentForm from comment.utils import get_comment_from_key, get_user_fo...
9c8f5327ea4553f3a3c1111a4363a2e073552638
952dc66c61966f099756cdb6c2d13b40352f63cc
/zerver/webhooks/alertmanager/tests.py
e0bb206545589163d1f27c1d3e2b292534a4dac4
[ "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
zulip/zulip
5ae6aad35fd9f72996c0a2a9cdd674400966ebf6
965a25d91b6ee2db54038f5df855215fa25146b0
refs/heads/main
2023-08-28T23:43:00.971110
2023-08-28T16:47:09
2023-08-28T19:33:02
43,160,685
20,239
8,996
Apache-2.0
2023-09-14T20:57:47
2015-09-25T16:37:25
Python
UTF-8
Python
false
false
1,426
py
tests.py
from zerver.lib.test_classes import WebhookTestCase class AlertmanagerHookTests(WebhookTestCase): STREAM_NAME = "alertmanager" URL_TEMPLATE = "/api/v1/external/alertmanager?&api_key={api_key}&stream={stream}&name=topic&desc=description" WEBHOOK_DIR_NAME = "alertmanager" def test_error_issue_message(s...
e9833f47715e7f832e9a35626541ce2d802d3b3b
7a6aca7d300c0752f2a73730b743a1a7361e941b
/tensorflow_graphics/projects/points_to_3Dobjects/train_multi_objects/train.py
a248bb10a7ab07b96e635d776ee46fcb3ed00870
[ "Apache-2.0" ]
permissive
tensorflow/graphics
ef0abe102398a58eb7c41b709393df3d0b0a2811
1b0203eb538f2b6a1013ec7736d0d548416f059a
refs/heads/master
2023-09-03T20:41:25.992578
2023-08-08T21:16:36
2023-08-08T21:17:31
164,626,274
2,920
413
Apache-2.0
2023-08-27T14:26:47
2019-01-08T10:39:44
Python
UTF-8
Python
false
false
43,750
py
train.py
# Copyright 2020 The TensorFlow 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
a24960a7579f2af2df0c220cd6b59a65d379cc3c
2b8d9d7ac0e3836ef978ad10a424dcacacbb93bc
/sample models/Demo animate 2_yieldless.py
32885d570c50408c6ff831a149820fe743c04677
[ "MIT" ]
permissive
salabim/salabim
64854780c45a886b29888ec18f376b7beecd1e83
1fc66bcf903ebbdc1570757043ee9075975796c9
refs/heads/master
2023-09-05T02:26:08.942708
2023-08-22T14:11:33
2023-08-22T14:11:33
98,032,067
219
74
MIT
2023-08-25T12:35:50
2017-07-22T13:10:08
Python
UTF-8
Python
false
false
1,280
py
Demo animate 2_yieldless.py
# Demo animate 2.py import salabim as sim sim.yieldless(True) class AnimateWaitSquare(sim.Animate): def __init__(self, i): self.i = i sim.Animate.__init__( self, rectangle0=(-12, -10, 12, 10), x0=300 - 30 * i, y0=100, fillcolor0="red", linewidth0=0 ) def visibl...
eb60457c5da1090d0693769bb021ed7d46ae33ba
5ef6c8d47864f471e26b9902d61f8c687e941f05
/src/genie/libs/parser/nxos/tests/ShowMacAddressTable/cli/equal/golden_output_2_expected.py
0fa0627f0d90d3ba39cfecf19ce5960daa0804f4
[ "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
5,083
py
golden_output_2_expected.py
expected_output = { "mac_table": { "vlans": { "390": { "mac_addresses": { "000f.53ff.e5a5": { "entry": "*", "interfaces": { "Port-channel113": { "age": ...
3c4792d7f7fd6fffc93c79e8c3825fba4eb00b7b
a838c711a218bbdb661132eaf252fa417ca8f273
/influxdb_client/service/remote_connections_service.py
7c591078a32d0591f3e138ea1061ca8e4f2321d7
[ "MIT" ]
permissive
influxdata/influxdb-client-python
9ae84038c1145466dd40c3a9096a74983f29bedb
1ec64b7e1039c891ac3a667ee6697731c61ddbaf
refs/heads/master
2023-08-23T09:14:38.727662
2023-08-09T03:59:54
2023-08-09T03:59:54
192,689,401
623
215
MIT
2023-09-11T05:46:26
2019-06-19T08:17:20
Python
UTF-8
Python
false
false
29,037
py
remote_connections_service.py
# coding: utf-8 """ InfluxDB OSS API Service. The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech """ from __future__ import absolute_...
d52cefc73ea01472a6198507297c695f708ccf73
8f267fe1157904023004aa1fcee8cdcaf1d69f74
/tempest/tests/lib/services/compute/test_certificates_client.py
9faef6f47782ebe2ef191ff7553433b20b20dca2
[ "Apache-2.0" ]
permissive
openstack/tempest
a65737f3e62d4ebeb7e387feac7bcc636d3f5fe0
3932a799e620a20d7abf7b89e21b520683a1809b
refs/heads/master
2023-08-28T15:04:21.241805
2023-08-28T10:16:57
2023-08-28T10:16:57
2,356,406
270
407
Apache-2.0
2022-06-29T15:52:45
2011-09-09T15:56:02
Python
UTF-8
Python
false
false
2,339
py
test_certificates_client.py
# Copyright 2015 NEC 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 ...
8fef27d48dd61f5b878d811df096c8db0e52b96a
2ff46c0d2ae8381ae735d0413186240b45b88071
/server/glusterfsd.py
e8762ad2f3e6feb1718ba748066dd0574a73bf06
[ "Apache-2.0" ]
permissive
kadalu/kadalu
4d30fc2a8acfbe4f961040c9af5aa3cd5461bb60
cbac104df11d2f4e0dfba52618abbbda1e62b070
refs/heads/devel
2023-09-05T12:58:52.940594
2023-07-25T13:34:30
2023-07-25T13:34:30
196,231,281
685
130
NOASSERTION
2023-09-02T01:19:06
2019-07-10T15:31:42
Python
UTF-8
Python
false
false
8,562
py
glusterfsd.py
""" Starts Gluster Brick(fsd) process """ import logging import os import sys import uuid import json import xattr from kadalulib import (CommandException, Proc, execute, logf, send_analytics_tracker) from serverutils import (generate_brick_volfile, generate_client_volf...
4397b6ac4063466c478daddd9ce66e272051436e
3dc3bbe607ab7b583eb52dbaae86636eb642960a
/mmaction/models/backbones/x3d.py
23f962ab7e2cb8277f48b9f6a082c1564c10033e
[ "Apache-2.0" ]
permissive
open-mmlab/mmaction2
659c36c6083fd3d9d072e074a8d4b3a50342b9bd
582b78fd6c3240500d5cacd292339d7d1ddbb056
refs/heads/main
2023-08-28T18:14:50.423980
2023-08-10T09:20:06
2023-08-10T09:20:06
278,810,244
3,498
1,028
Apache-2.0
2023-09-07T06:50:44
2020-07-11T07:19:10
Python
UTF-8
Python
false
false
19,483
py
x3d.py
# Copyright (c) OpenMMLab. All rights reserved. import math import torch.nn as nn import torch.utils.checkpoint as cp from mmcv.cnn import ConvModule, Swish, build_activation_layer from mmengine.logging import MMLogger from mmengine.model.weight_init import constant_init, kaiming_init from mmengine.runner import load_...
1151f7ed03de24063703e5ddb158d6bc568230aa
6fdb4eaf5b0e6dbd7db4bf947547541e9aebf110
/api/tests/opentrons/protocol_engine/execution/test_movement_handler.py
7eb048441797494944d5ff516e237d752ba59a1c
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
Opentrons/opentrons
874321e01149184960eeaeaa31b1d21719a1ceda
026b523c8c9e5d45910c490efb89194d72595be9
refs/heads/edge
2023-09-02T02:51:49.579906
2023-08-31T16:02:45
2023-08-31T16:02:45
38,644,841
326
174
Apache-2.0
2023-09-14T21:47:20
2015-07-06T20:41:01
Python
UTF-8
Python
false
false
12,968
py
test_movement_handler.py
"""MovementHandler command subject.""" import pytest from decoy import Decoy from typing import NamedTuple from opentrons.types import MountType, Point, DeckSlotName from opentrons.hardware_control import API as HardwareAPI from opentrons.hardware_control.types import CriticalPoint from opentrons.motion_planning impor...
bb5efb859fc4e8e26da720e4c6b4a841e7b661a0
975b2d421d3661e6770b601929d5f11d981d8985
/msgraph/generated/models/security/event_propagation_status.py
80e0ea084463fae5cbd827d1026b7a6eda1f8557
[ "MIT" ]
permissive
microsoftgraph/msgraph-sdk-python
a7c551b85daadeebf76ec4ae12668664ea639b42
27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949
refs/heads/main
2023-09-03T21:45:27.989672
2023-08-31T06:22:18
2023-08-31T06:22:18
534,665,999
135
18
MIT
2023-09-14T11:04:11
2022-09-09T14:00:17
Python
UTF-8
Python
false
false
215
py
event_propagation_status.py
from enum import Enum class EventPropagationStatus(str, Enum): None_ = "none", InProcessing = "inProcessing", Failed = "failed", Success = "success", UnknownFutureValue = "unknownFutureValue",
ae1e847da83108a61eb040d961869c181026ba7b
5d55e0885bacd718588f25b71675c1127c93fc0a
/river/covariance/test_emp.py
53167d1cf10f93a7377340636863df9477bb7950
[ "BSD-3-Clause" ]
permissive
online-ml/river
5698b60e65493eba28d0c0c1992f19eb996c0bfa
c658393084ed4147a782daa6bcd4a467c3abb0cb
refs/heads/main
2023-09-03T00:12:55.121301
2023-08-29T12:04:20
2023-08-29T12:04:20
167,388,434
3,372
389
BSD-3-Clause
2023-09-12T08:11:15
2019-01-24T15:18:26
Python
UTF-8
Python
false
false
4,922
py
test_emp.py
from __future__ import annotations import math import random import numpy as np import pandas as pd import pytest from river import covariance, stream @pytest.mark.parametrize( "ddof", [ pytest.param( ddof, id=f"{ddof=}", ) for ddof in (0, 1, 2) ], ) def ...
1f1ac016b1a3b926b846712b8ca19a286c0c7469
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayPcreditHuabeiFqqrcodeLogisticsQueryModel.py
d5041074f0f2043ebbcb44abfccab510c483de56
[ "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
3,310
py
AlipayPcreditHuabeiFqqrcodeLogisticsQueryModel.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.FqQrCodeExtendParams import FqQrCodeExtendParams class AlipayPcreditHuabeiFqqrcodeLogisticsQueryModel(object): def __init__(self): self._fqqr_code_ext_info = None ...
7915d6428c85937525388aa679397e755c8d4190
ffdc77394c5b5532b243cf3c33bd584cbdc65cb7
/tests/st/ops/dynamic_shape/test_pad_dyn.py
373f806e3aef43d07f3ac0fc6f0c4bc14097227b
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "MPL-1.0", "OpenSSL", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause-Open-MPI", "MIT", "MPL-2.0-no-copyleft-exception", "NTP", "BSD-3-Clause", "GPL-1.0-or-later", "0BSD", "MPL-2.0", "LicenseRef-scancode-f...
permissive
mindspore-ai/mindspore
ca7d5bb51a3451c2705ff2e583a740589d80393b
54acb15d435533c815ee1bd9f6dc0b56b4d4cf83
refs/heads/master
2023-07-29T09:17:11.051569
2023-07-17T13:14:15
2023-07-17T13:14:15
239,714,835
4,178
768
Apache-2.0
2023-07-26T22:31:11
2020-02-11T08:43:48
C++
UTF-8
Python
false
false
2,406
py
test_pad_dyn.py
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
9a29755f64af2d5d38d6d892faafc1a0225229e3
856e9a8afcb81ae66dd998b0d2cc3556c9f315ea
/dexy/filters/easy.py
0ce3121d1d6b5453c326c02a980bbc453277027d
[ "MIT" ]
permissive
dexy/dexy
1d5c999830de4663c05a09f4cd00b1628dfc8d46
323c1806e51f75435e11d2265703e68f46c8aef3
refs/heads/develop
2023-06-10T08:02:45.076551
2021-02-28T22:40:41
2021-02-28T22:40:41
1,506,989
141
34
MIT
2020-06-15T17:44:50
2011-03-21T14:48:28
Python
UTF-8
Python
false
false
1,983
py
easy.py
# The easyhtml filter is defined in dexy.filters.fluid_html from dexy.filter import DexyFilter from pygments.formatters import LatexFormatter class EasyLatex(DexyFilter): """ Wraps your text in LaTeX article header/footer. Easy way to generate a document which can be compiled using LaTeX (includes Pyg...
d9a73f6c379c29b90116cb899eeb98ae0715a5f3
4feb5744ab5a26aeeb04573e4944d2bf4d1a6a2a
/peeringdb_server/migrations/0098_alter_environmentsetting_setting.py
c9f0c12f2f7cdb53c712f4ec46fc2a23c9d4feee
[ "BSD-2-Clause" ]
permissive
peeringdb/peeringdb
cb79f809c4bb8cc5192180366df1f05d8fc0111f
3f62b2d97c78ccf151fb1a5761637e28463b9541
refs/heads/master
2023-09-04T09:26:43.741086
2023-08-22T19:20:34
2023-08-22T19:20:34
60,563,174
311
121
BSD-2-Clause
2023-09-13T02:13:42
2016-06-06T21:49:25
Python
UTF-8
Python
false
false
4,970
py
0098_alter_environmentsetting_setting.py
# Generated by Django 3.2.16 on 2022-10-15 04:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("peeringdb_server", "0097_user_never_flag_for_deletion"), ] operations = [ migrations.AlterField( model_name="environmentsetting"...
97d1bffd97505f38c1f846911e0a320af36167e1
b4faab9b904d155ce6e781a675f972dcb810c008
/nunif/modules/fourier_unit.py
3eebf82fa9cc87a3ab3934b11ff252d19944d587
[ "MIT", "CC-BY-NC-4.0", "Apache-2.0" ]
permissive
nagadomi/nunif
0c595d3e61f3c89082ce7481cfba139b85ac863d
6d4b92da09801572e984b05f6733d460b60250aa
refs/heads/master
2023-08-31T21:29:56.460275
2023-08-21T18:16:01
2023-08-21T18:16:01
202,088,108
486
59
MIT
2023-08-04T05:51:17
2019-08-13T07:23:32
Python
UTF-8
Python
false
false
3,319
py
fourier_unit.py
import torch import torch.nn as nn from torch.nn.utils.parametrizations import spectral_norm as _spectral_norm # NOTE: This module does not support export to ONNX (at 2023-04, rfftn and irfftn) class FourierUnit(nn.Module): """ From LaMa: Resolution-robust Large Mask Inpainting with Fourier Convolutions ...
5f0387e0636801b684ed4daf4f3187ab51fd3355
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/FireEyeHelix/Integrations/FireEyeHelix/test_data/constants.py
d706095e8e7986eabac6cb42ade5b8dc67a10b13
[ "MIT" ]
permissive
demisto/content
6d4722d46f0ff0beea2748e9f7de585bf91a78b4
890def5a0e0ae8d6eaa538148249ddbc851dbb6b
refs/heads/master
2023-09-04T00:02:25.618032
2023-09-03T21:56:22
2023-09-03T21:56:22
60,525,392
1,023
1,921
MIT
2023-09-14T20:55:24
2016-06-06T12:17:02
Python
UTF-8
Python
false
false
593
py
constants.py
DICT_1to5 = {'1': 1, '2': 2, '3': 3, '4': 4, '5': 5} DICT_NESTED_123 = {'nested': {'1': 1, '2': 2, '3': 3}} DICT_LST_AAB2B = {'aa_b': [{'2': 2}, {'2': 3}], 'b': 4} DICT_LST_NESTED = {'master': {'id': 1, 'assets': [{'id': 1, 'name': 'a'}, {'id': 2, 'name': 'b'}]}} TRANS_DICT_134 = {'1': 'one', '3': 'three', '4': 'four'...
f9ce63fbcd5748bc7e8a12377b4aac84af3dd528
adf3ca8f0ce8b3333d70c83118932d0e46d90182
/tiledb/tests/conftest.py
9465eb1656c5fa54078a6e0e0322754f62ec91c8
[ "MIT" ]
permissive
TileDB-Inc/TileDB-Py
77ccce93e1607ce4280d57d2f715cf490aa9f0d3
223ee9939e23ecb618bd98d89dc9e874ebd47a2d
refs/heads/dev
2023-08-28T14:13:52.112262
2023-08-25T20:03:54
2023-08-26T01:19:46
91,851,641
167
35
MIT
2023-09-14T19:07:10
2017-05-19T23:06:53
Python
UTF-8
Python
false
false
2,512
py
conftest.py
import ctypes import sys import pytest import tiledb from .common import DiskTestCase # fixture wrapper to use with pytest: # mark.parametrize does not work with DiskTestCase subclasses # (unittest.TestCase methods cannot take arguments) @pytest.fixture(scope="class") def checked_path(): dtc = DiskTestCase() ...
0d6a6812da72af86793e8334af0c9b82501a2af2
8475af3849ca19094d3aa95c9108d7f8ef3e2536
/shub/deploy_egg.py
4f514ca58f17333b1d3cd3737632881ab02e9a9c
[ "BSD-3-Clause" ]
permissive
scrapinghub/shub
9b1b9df4caad48861707aca3685fe8b2544e433b
519809d7eb16212f2644f6e2bf1672b1e86a78c2
refs/heads/master
2023-09-03T01:43:35.014440
2023-04-14T16:02:25
2023-04-14T16:02:25
20,890,335
124
84
BSD-3-Clause
2023-04-14T14:43:21
2014-06-16T15:38:11
Python
UTF-8
Python
false
false
4,164
py
deploy_egg.py
from __future__ import absolute_import import os import tempfile import click from shub import utils, DEPLOY_DOCS_LINK from shub.config import get_target_conf from shub.exceptions import (BadParameterException, NotFoundException, SubcommandException) from shub.utils import (decompress_egg...
7b6409568e8cf757fc5279e3e59f1604117b6bfc
98810fbf90a42028915a88bfac9fb8cb8681008e
/azure-devops/azext_devops/dev/repos/_format.py
f7d2becd123eedf0b045565658fa6d8166b2da8d
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unicode", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "PSF-2.0", "PostgreSQL", "LicenseRef-scancode-python-cwi", "LGPL-2.1-or-later", "LicenseRef-scancode-proprietary-license", "LGPL-2.1-only", "C...
permissive
Azure/azure-devops-cli-extension
ba87357a8243e1318f100791fc32acbb59448d05
bd34a6fd0658a15dadf6c09c7f6217ca5ffa662b
refs/heads/master
2023-08-29T10:56:54.228674
2023-07-17T04:37:06
2023-07-17T04:37:06
107,708,057
419
208
MIT
2023-08-02T02:10:10
2017-10-20T17:39:11
Python
UTF-8
Python
false
false
11,398
py
_format.py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
76b2be583c80442f0dd04f0e21074527a3ab0bd4
9a2bbc25016326b3b1da275e3b9d9a3c5c5878a6
/project/utils/settings_handler.py
6159657c23d7eab8c6bc001278608a42d7f97b3a
[ "MIT" ]
permissive
MahjongRepository/tenhou-python-bot
3daabf510d58dfe7525bccf0df1575f027b632d2
112b08faab08ee862813de06cb5acc5db1c4feb0
refs/heads/dev
2023-07-20T14:51:02.101557
2023-07-08T10:11:47
2023-07-08T10:11:47
56,445,019
217
75
MIT
2023-05-23T02:05:41
2016-04-17T15:54:58
Python
UTF-8
Python
false
false
804
py
settings_handler.py
import importlib class SettingsSingleton: """ Let's load a settings in the memory one time when the app starts Than override some settings with command arguments After this we not should change the object """ instance = None def __init__(self): if not SettingsSingleton.instance: ...
cf23f4bbef7252fd696b159c156700d4e5ecf525
9e01e9cca5bae23d2345c944dc672068c1c15582
/code/exercises/ex_5_10/__init__.py
ea915ae237214aac8568bcfcace8e1dea58e9c4e
[ "MIT" ]
permissive
brynhayder/reinforcement_learning_an_introduction
ecb1fc564a956492b3cea80eb01102025409c719
d8b1945f61a8397b684f8d8d800ed0d9308a9a35
refs/heads/master
2022-10-18T03:02:20.263347
2022-10-02T08:35:31
2022-10-02T08:35:31
128,968,562
315
79
MIT
2022-06-21T21:21:03
2018-04-10T17:08:35
TeX
UTF-8
Python
false
false
138
py
__init__.py
#!/usr/bin/env python """ -------------------------------- project: code created: 06/06/2018 15:59 --------------------------------- """
3f26488f616720c55adfe43320f596a283115338
e7efae2b83216d9621bd93390959d652de779c3d
/teamcity/tests/test_e2e.py
449cbb017b4a5fab7e15b999567a744a5b21680f
[ "BSD-3-Clause", "MIT", "BSD-3-Clause-Modification", "Unlicense", "Apache-2.0", "LGPL-3.0-only", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "CC0-1.0" ]
permissive
DataDog/integrations-core
ee1886cc7655972b2791e6ab8a1c62ab35afdb47
406072e4294edff5b46b513f0cdf7c2c00fac9d2
refs/heads/master
2023-08-31T04:08:06.243593
2023-08-30T18:22:10
2023-08-30T18:22:10
47,203,045
852
1,548
BSD-3-Clause
2023-09-14T16:39:54
2015-12-01T16:41:45
Python
UTF-8
Python
false
false
2,206
py
test_e2e.py
# (C) Datadog, Inc. 2021-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import pytest from six import PY2 from datadog_checks.base import AgentCheck from datadog_checks.teamcity.constants import SERVICE_CHECK_OPENMETRICS from .common import ( LEGACY_REST_INSTANCE, OP...
ece79d9d3d5dac80f309d0a8ba5d698b3f69fa36
549270020f6c8724e2ef1b12e38d11b025579f8d
/recipes/nvcloth/1.1.6/conanfile.py
c303576ad28c2a46f9e9028991ef5f4c3290ad3b
[ "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
7,464
py
conanfile.py
import os import shutil from conans import ConanFile, CMake, tools from conans.errors import ConanInvalidConfiguration from conan.tools.microsoft import msvc_runtime_flag, is_msvc_static_runtime, is_msvc required_conan_version = ">=1.35.0" class NvclothConan(ConanFile): name = "nvcloth" license = "Nvidia Sou...
537c5fac9a22d36140f69b868c289e34fee5642d
6babafccb70ec391db9fdaf7e388ccd00eb1aeed
/test/run_tests.py
28c722682c8988d7e1bb966e388a1e134dcfe9d1
[ "MIT" ]
permissive
neherlab/treetime
31140f60ec1c2c9ca7df1afd3ddd648b155dede5
52e7cd106a9e0b9a8ea661f213e7e5338e1165cd
refs/heads/master
2023-08-18T18:38:57.211722
2023-07-31T09:33:26
2023-07-31T09:33:26
55,709,169
196
57
MIT
2023-09-07T15:20:32
2016-04-07T16:12:19
Jupyter Notebook
UTF-8
Python
false
false
220
py
run_tests.py
from test_treetime import * test_import_short() test_assign_gamma() test_GTR() test_ancestral() test_seq_joint_reconstruction_correct() test_seq_joint_lh_is_max() print('\n\n TEST HAVE FINISHED SUCCESSFULLY\n\n')
93f7c09d5b43a7a31244d167b8f95a4085e6d4f1
cf8182ecc88888719cfaff79751834500800151a
/examples/undocumented/python/distribution_ppwm.py
444776b6b78a5924d42e8db018d290d4d2686a65
[ "BSD-3-Clause", "DOC", "GPL-3.0-only" ]
permissive
shogun-toolbox/shogun
17beb82a04fbf1179d300c4fcd16ee68850ad994
9b8d856971af5a295dd6ad70623ae45647a6334c
refs/heads/develop
2023-03-11T04:46:36.167073
2020-12-08T16:56:38
2020-12-08T16:56:38
1,555,094
2,938
1,246
BSD-3-Clause
2022-08-12T11:12:34
2011-04-01T10:44:32
C++
UTF-8
Python
false
false
1,395
py
distribution_ppwm.py
#!/usr/bin/env python import shogun as sg import numpy as np from tools.load import LoadMatrix lm=LoadMatrix() traindna = lm.load_dna('../data/fm_train_dna.dat') parameter_list = [[traindna,3],[traindna,4]] def distribution_ppwm (fm_dna=traindna, order=3): charfeat=sg.create_string_features(fm_dna, sg.DNA) feats=...
52b6c748196f6b1474635927f80abac540409f37
db12b990924703cd74748d8585cd9c11fafa6746
/h2o-py/tests/testdir_algos/glm/pyunit_shuffling_glm_large.py
0912b50894d70ce5f647d85f2a8d7fdf81f96a08
[ "Apache-2.0" ]
permissive
h2oai/h2o-3
919019a8f297eec676011a9cfd2cc2d97891ce14
d817ab90c8c47f6787604a0b9639b66234158228
refs/heads/master
2023-08-17T18:50:17.732191
2023-08-17T16:44:42
2023-08-17T16:44:42
17,371,412
6,872
2,345
Apache-2.0
2023-09-14T18:05:40
2014-03-03T16:08:07
Jupyter Notebook
UTF-8
Python
false
false
2,370
py
pyunit_shuffling_glm_large.py
from builtins import zip from builtins import range import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils from h2o.estimators.glm import H2OGeneralizedLinearEstimator def shuffling_large(): print("Reading in Arcene training data for binomial modeling.") train_data = h2o.upload_file(p...
3a77bf224fde2047de6e85af1603157d4d05dabd
c268dcf432f3b7171be6eb307aafbe1bd173285a
/reddit2telegram/channels/~inactive/catmemes_reddit/app.py
5a3bb95032aaf5a6856389cb2d81bbef0381ddf6
[ "MIT" ]
permissive
Fillll/reddit2telegram
a7162da2cc08c81bcc8078ea4160d4ee07461fee
5d8ee3097e716734d55a72f5a16ce3d7467e2ed7
refs/heads/master
2023-08-09T10:34:16.163262
2023-07-30T18:36:19
2023-07-30T18:36:19
67,726,018
258
205
MIT
2023-09-07T02:36:36
2016-09-08T17:39:46
Python
UTF-8
Python
false
false
144
py
app.py
#encoding:utf-8 subreddit = 'Catmemes' t_channel = '@catmemes_reddit' def send_post(submission, r2t): return r2t.send_simple(submission)
9b936a1ac9c6f5827c3f73a879858535250dd7f8
d110546d747d7e3865ce5742d5fca09f404623c0
/salt/cloud/clouds/hetzner.py
e666769ee6aa703d6138a409e814722747828dfc
[ "Apache-2.0", "MIT", "BSD-2-Clause" ]
permissive
saltstack/salt
354fc86a7be1f69514b3dd3b2edb9e6f66844c1d
1ef90cbdc7203f97775edb7666db86a41eb9fc15
refs/heads/master
2023-07-19T20:56:20.210556
2023-06-29T23:12:28
2023-07-19T11:47:47
1,390,248
11,026
6,296
Apache-2.0
2023-09-14T20:45:37
2011-02-20T20:16:56
Python
UTF-8
Python
false
false
16,880
py
hetzner.py
""" Hetzner Cloud Module ==================== The Hetzner cloud module is used to control access to the hetzner cloud. https://docs.hetzner.cloud/ :depends: hcloud >= 1.10 Use of this module requires the ``key`` parameter to be set. .. code-block:: yaml my-hetzner-cloud-config: key: <your api key> ...
7c34d6785142ba648f493f02c700198d357409f2
bb90ad20468f9fe2039b8c16858bd8eae8bbc050
/tests/infra/proposal.py
07ade979d5f1dcfe791fb07fba3536568f6db16b
[ "Apache-2.0" ]
permissive
microsoft/CCF
0997fd81a924d36d775b219720b26b4ff196b18a
2fbf87840b9e8334c141f4a9c9b25aae979b0540
refs/heads/main
2023-09-05T15:39:37.265089
2023-09-05T15:27:25
2023-09-05T15:27:25
180,112,558
687
229
Apache-2.0
2023-09-14T14:28:39
2019-04-08T09:13:04
C++
UTF-8
Python
false
false
1,462
py
proposal.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache 2.0 License. from enum import Enum class ProposalNotCreated(Exception): def __init__(self, response): super(ProposalNotCreated, self).__init__() self.response = response class ProposalNotAccepted(Exception):...
1e637b67368dbda49ad540574dbf1cd9ffb67406
75bee875a2d26ed71513f46a2acbb564dd9a1c44
/migrations/versions/81ce4ac01c45_migrate_static_roles.py
c1ae927bab50f5fa9e3ef799cbae1f592e715d8b
[ "MIT" ]
permissive
frol/flask-restplus-server-example
d096aa1f4e3b6024ecb16af3d0769ccc20e7cff8
53a3a156cc9df414537860ed677bd0cc98dd2271
refs/heads/master
2023-08-28T14:27:34.047855
2023-06-21T14:30:54
2023-06-21T14:30:54
46,421,329
1,487
412
MIT
2023-06-21T14:30:55
2015-11-18T13:43:34
Python
UTF-8
Python
false
false
1,305
py
81ce4ac01c45_migrate_static_roles.py
"""Migrate static roles (new "internal" role type requires data migration) Revision ID: 81ce4ac01c45 Revises: beb065460c24 Create Date: 2016-11-08 15:58:55.932297 """ # revision identifiers, used by Alembic. revision = '81ce4ac01c45' down_revision = 'beb065460c24' from alembic import op import sqlalchemy as sa Use...
efa2c02c2635c40010e8a85f29780fcd8898ec0c
807438e6974bf68762208ec24cf824dd0e5fabd6
/docs/examples/compute/cloudsigma/tag_server.py
7115d347484844e67e4d08bb809b012d6f7516ee
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
apache/libcloud
019c5bd839dedd2423f9604936886eaff252e04b
abba8c1719a8bda6db8efde2d46fd1b423ae4304
refs/heads/trunk
2023-08-31T20:14:22.369970
2023-08-21T20:17:57
2023-08-21T20:17:57
419,555
1,644
968
Apache-2.0
2023-09-13T19:34:44
2009-12-11T09:00:14
Python
UTF-8
Python
false
false
533
py
tag_server.py
from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver cls = get_driver(Provider.CLOUDSIGMA) driver = cls("username", "password", region="zrh", api_version="2.0") node = driver.list_nodes()[0] tag_names = ["zrh", "database-server", "monited"] tags = [] # 1. Create necessary t...
860f4ea5453419a50d910280f706c69c41b0c86d
4262804598ec9669d3537459591bf8e710436b5a
/src/imagetagger/images/migrations/0001_initial.py
4528301346e1531537a7a6cd34a681120995f382
[ "MIT" ]
permissive
bit-bots/imagetagger
5a639c35bf57e28eec2f340f0786cc3c5c34c982
f8ac5f25bf7375baeef8b23b1be7da331246bde2
refs/heads/master
2022-11-28T22:57:05.551770
2021-11-26T10:59:18
2021-11-26T10:59:18
96,428,939
255
59
MIT
2022-11-22T09:21:10
2017-07-06T12:41:41
HTML
UTF-8
Python
false
false
1,896
py
0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-22 09:59 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Image'...
cc2e7071b60c9036a84d74f281a0baabf121067d
4aa2afa66d7e5778a8de2a0de5fbecffe536d382
/scripts/loadTimes.py
f489cdad78c01fd240883693d266b0beb16da072
[ "MIT" ]
permissive
RunestoneInteractive/RunestoneServer
576f2dcb24f51535bfb5c25ba1e9d6b47e7c98eb
6d565838b7d2d61c06c5ed49e340083ce4008637
refs/heads/master
2023-08-28T22:00:59.888847
2023-06-07T16:50:45
2023-06-07T16:50:45
3,278,888
376
318
NOASSERTION
2023-06-07T16:49:06
2012-01-27T00:25:53
C++
UTF-8
Python
false
false
5,760
py
loadTimes.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # <nbformat>3.0</nbformat> # <codecell> # # {address space usage: 359067648 bytes/342MB} {rss usage: 107823104 bytes/102MB} [pid: 11266|app: 0|req: 99163/885977] 64.208.17.170 () {48 vars in 1249 bytes} [Thu Feb 15 16:28:43 2018] GET /runestone/ajax/getnumonline => gener...
e4dae92f99349b8a2192ddd24aec91157d445202
160f08e768d7271f9522ad2597ac4ee79c04477a
/src/c3nav/mapdata/management/commands/importsvg.py
5ec55727c784846ca110076bcc31f7c7c75ed5df
[ "Apache-2.0" ]
permissive
c3nav/c3nav
6254724dfc8589ee03c6028577befd7c65b05857
1a4ef5caa06ddacc8d9370b5adcee248fd4f55f7
refs/heads/main
2023-08-04T08:36:18.431458
2023-07-24T09:57:18
2023-07-24T09:57:18
56,852,994
140
47
Apache-2.0
2023-07-05T22:55:27
2016-04-22T12:13:51
Python
UTF-8
Python
false
false
8,461
py
importsvg.py
import argparse import logging import re from xml.etree import ElementTree from django.core.management.base import BaseCommand, CommandError from django.utils.translation import gettext_lazy as _ from shapely.affinity import scale, translate from shapely.geometry import Polygon from c3nav.mapdata.models import Area, ...
247a1b9cfce61d5c9bc5dc604b19f51c83de4120
6946f9a3e9d57b00ea275b2303ced0dedcdba1d4
/qf_lib/plotting/decorators/scatter_decorator.py
bbd23e8d5c235090e5321919268ae9fb11f2fd10
[ "Apache-2.0" ]
permissive
quarkfin/qf-lib
8eaf76e3db385295ff8845b3250ba64a6fcfc7a6
f707e51bc2ff45f6e46dcdd24d59d83ce7dc4f94
refs/heads/master
2023-08-31T17:41:57.213680
2023-08-29T10:01:49
2023-08-29T10:01:49
202,696,503
379
51
Apache-2.0
2023-09-05T06:11:35
2019-08-16T09:10:20
Python
UTF-8
Python
false
false
2,595
py
scatter_decorator.py
# Copyright 2016-present CERN – European Organization for Nuclear Research # # 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...
5db43f8dffe740c4681a2dad76b2989c3987a1cc
7030c780db36c7d8efedb1152cf945a3cc248fdb
/python/cuml/tsa/batched_lbfgs.py
4089b04954a69c5b0d2038fc4a653ff734e42297
[ "Apache-2.0" ]
permissive
rapidsai/cuml
546af8151fd2ee0f737cc4e62386d4b0ede74f3d
7d86042b8de06bc8acce632230fe5821bd36c17d
refs/heads/branch-23.10
2023-08-30T19:17:41.816373
2023-08-28T13:23:15
2023-08-28T13:23:15
152,616,802
3,615
569
Apache-2.0
2023-09-14T00:21:52
2018-10-11T15:45:35
C++
UTF-8
Python
false
false
7,502
py
batched_lbfgs.py
# # Copyright (c) 2019-2023, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
ff62a69eb884c139dea6fa3562d61e703e730b05
2b5ffa18e7198e45fa77674b96dac8d91159fed7
/djangae/tasks/tests/test_deferred.py
1c506512f479bd131fac0bfea5a3135e07eb3316
[ "BSD-3-Clause" ]
permissive
potatolondon/djangae
73681d0c8302ac216f74bc00b980de368e8d4280
bef308632790bb6f87e71bb91183f57bad6bd149
refs/heads/master
2023-09-01T15:27:51.995232
2023-08-30T14:40:48
2023-08-30T14:40:48
10,217,788
474
155
BSD-3-Clause
2023-02-08T01:05:31
2013-05-22T10:55:55
Python
UTF-8
Python
false
false
4,755
py
test_deferred.py
import os from django.db import models from gcloudc.db import transaction from djangae.contrib import sleuth from djangae.tasks.deferred import defer, PermanentTaskFailure from djangae.test import ( TaskFailedError, TestCase, ) def test_task(*args, **kwargs): pass def assert_cache_wiped(instance): ...