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
4acaa351f88448965dc205002d3a57d51c5f629c
3daa53a2190f365ee2e2acae39ca4e84919f2f50
/test/functional/tests.py
ff3cf5c934e20a0e67c88c72186671bdeea8b867
[ "Apache-2.0" ]
permissive
openstack/swift
4c8e4a14c1c6f7efb049f983ede28e89bd2e9140
f06e5369579599648cc78e4b556887bc6d978c2b
refs/heads/master
2023-08-28T15:04:33.200849
2023-08-24T20:35:07
2023-08-24T21:05:48
790,019
2,370
957
Apache-2.0
2023-06-22T02:45:53
2010-07-22T01:50:07
Python
UTF-8
Python
false
false
125,316
py
tests.py
#!/usr/bin/python -u # Copyright (c) 2010-2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
bdf7012e2264d45815b4d4127419f6e6190bf033
5eaf43964c2646479f33ad5a89cbf475b466be00
/soccer_common/src/soccer_common/transformation2d.py
31764b6c62437720c3cbc83a57480a69861a9f9f
[ "BSD-3-Clause" ]
permissive
utra-robosoccer/soccerbot
12f738017f460a8949df1d2e6fbd93e79ea0662a
5509c07931d85583b0d99606f66817afb6fbcbe1
refs/heads/master
2023-08-18T10:50:02.286728
2023-07-20T17:29:01
2023-07-20T17:29:01
134,985,794
118
5
BSD-3-Clause
2023-09-12T10:17:56
2018-05-26T18:31:10
C
UTF-8
Python
false
false
1,326
py
transformation2d.py
"""EXPERIMENTAL, USE AT YOUR OWN RISK!""" import math import numpy as np class Transformation2D(np.ndarray): def __new__(cls, matrix=None, pos_theta=None, *args, **kwargs): cls = np.eye(3).view(cls) if matrix is not None: cls.matrix = matrix else: cls.pos_theta = ...
ae3a5e4e4829d549533f9070d815fca6e4a46994
2cc3a438a51895eb729cf4e1b702e824b75b9d21
/confidnet/learners/selfconfid_learner.py
84f78965c5a1464dba5e70946b5b2c2c36ae2af5
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
permissive
valeoai/ConfidNet
97005765e82a3095de510cfe238d87ff0e2235db
57d4a056adab1eb75f4a54c73422e60751ea3709
refs/heads/master
2022-12-07T21:09:35.091996
2022-11-29T14:46:40
2022-11-29T14:46:40
210,617,673
173
35
null
null
null
null
UTF-8
Python
false
false
8,291
py
selfconfid_learner.py
import os from collections import OrderedDict import numpy as np import torch from tqdm import tqdm from confidnet.learners.learner import AbstractLeaner from confidnet.utils import misc from confidnet.utils.logger import get_logger from confidnet.utils.metrics import Metrics LOGGER = get_logger(__name__, level="DEB...
a024c4bf663803cf58b44e917b32362c673a2dcc
8d402df39c18eba7e1c86c762f205c944357c5df
/www/tests/test_sys.py
2c36f8fd30213202e8a10028573095cecc4caf58
[ "BSD-3-Clause" ]
permissive
brython-dev/brython
87cc023e25550dec9ce459ba68774189f33712b6
b33958bff0e8c7a280babc30232dc389a2500a7a
refs/heads/master
2023-09-04T04:49:29.156209
2023-09-01T06:36:08
2023-09-01T06:36:08
24,046,239
6,569
625
BSD-3-Clause
2023-07-05T06:13:32
2014-09-15T06:58:21
Python
UTF-8
Python
false
false
3,084
py
test_sys.py
import sys # issue 1218 x = "Outer stack frame" def t(): x = "Inner stack frame" my_locals = sys._getframe(0).f_locals assert my_locals['x'] == "Inner stack frame" outer_locals = sys._getframe(1).f_locals assert outer_locals['x'] == "Outer stack frame" t() # trace functions traces = [] def f(fra...
dfcb3fdd410d4ccb6b10b2d7c4bc3807c1cf0952
7ebb2f0458d3813737dd045473d7c1398d08392d
/pyclesperanto_prototype/_tier4/_dilate_labels.py
6ad085b01c8fb3ab9dae1107672adc0eabb85ff6
[ "Python-2.0", "BSD-3-Clause" ]
permissive
clEsperanto/pyclesperanto_prototype
b3192d6984f45571fe0a7dfcceee2058bc4debbe
b465c8669f8e9326874139cf4b9c9af22c22757c
refs/heads/master
2023-09-04T11:07:55.828329
2023-08-25T17:18:30
2023-08-25T17:18:30
248,206,619
152
36
BSD-3-Clause
2023-05-23T09:44:51
2020-03-18T10:56:29
Jupyter Notebook
UTF-8
Python
false
false
1,967
py
_dilate_labels.py
from .._tier0 import Image from .._tier0 import plugin_function from .._tier0 import push from .._tier0 import pull from .._tier0 import create_like, create_labels_like from .._tier1 import copy from .._tier1 import set from .._tier1 import onlyzero_overwrite_maximum_box from .._tier1 import onlyzero_overwrite_maximum_...
81c5bbc50488533c481d2c739481456fac5c8664
b728c792b5171f6be6ad91919b4a76a6f198b3e9
/src/lib/python/bundy/testutils/ccsession_mock.py
5f886787d57bf6cb6706791d146c487c15a73676
[ "LicenseRef-scancode-unknown-license-reference", "ISC", "BSL-1.0" ]
permissive
bundy-dns/bundy
c8beeca2c051924590794c92a3a58d1980a86024
3d41934996b82b0cd2fe22dd74d2abc1daba835d
refs/heads/master
2021-09-28T16:24:39.037808
2021-09-22T06:04:17
2021-09-22T06:04:17
19,160,469
110
33
NOASSERTION
2021-09-22T06:04:18
2014-04-25T20:54:37
C++
UTF-8
Python
false
false
1,587
py
ccsession_mock.py
# Copyright (C) 2012 Internet Systems Consortium. # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SYST...
e79dce1a94b26ac4b685517550a01840648de7b0
568a2667a1b6ec33a0dec9ac01844ef74e11ab2b
/landlab/components/flexure/funcs.py
43f5c004ecb5feaa7ca9a0bc54a81976c6f93460
[ "MIT" ]
permissive
landlab/landlab
0bcc9b7b1d8c4d7f79bad687e1526b80ebc83728
1cd72e5832ece1aa922cd1b239e2e94ed0f11f8b
refs/heads/master
2023-08-31T07:24:21.545523
2023-08-29T18:51:06
2023-08-29T18:51:06
19,599,383
326
313
MIT
2023-09-14T19:12:23
2014-05-09T04:52:50
Python
UTF-8
Python
false
false
4,799
py
funcs.py
#!/usr/bin/env python import numpy as np import scipy.special _POISSON = 0.25 _N_PROCS = 4 def get_flexure_parameter(h, E, n_dim, gamma_mantle=33000.0): """ Calculate the flexure parameter based on some physical constants. *h* is the Effective elastic thickness of Earth's crust (m), *E* is Young's ...
01f17d99711027f73756df75f510bd400f297308
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Spacy/source2.7/spacy/tests/regression/test_issue118.py
b4e1f02b2787a2814dde46393597b774033323e9
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
1,820
py
test_issue118.py
# coding: utf-8 from __future__ import unicode_literals from ...matcher import Matcher import pytest pattern1 = [[{'LOWER': 'celtics'}], [{'LOWER': 'boston'}, {'LOWER': 'celtics'}]] pattern2 = [[{'LOWER': 'boston'}, {'LOWER': 'celtics'}], [{'LOWER': 'celtics'}]] pattern3 = [[{'LOWER': 'boston'}], [{'LOWER': 'boston...
e25adfa7df9301833fe032517384c5d6637f73d7
c3493b2d99ea73b71d6a930482a906c11432c568
/muspy/schemas/utils.py
8c70def6a62680d2eb71579cc57ecdfa7c4a2c36
[ "MIT" ]
permissive
salu133445/muspy
bdf1a1cc2d28e5fc8423ec7fe2e467fb0b67122c
b2d4265c6279e730903d8abe9dddda8484511903
refs/heads/main
2023-07-08T09:29:22.413086
2023-06-26T08:08:22
2023-06-26T08:08:22
247,167,654
380
54
MIT
2023-01-02T20:20:21
2020-03-13T21:53:38
Python
UTF-8
Python
false
false
2,526
py
utils.py
"""Utility functions for working with schemas.""" import json from pathlib import Path from typing import Union try: import jsonschema _HAS_JSONSCHEMA = True except ImportError: _HAS_JSONSCHEMA = False try: import xmlschema _HAS_XMLSCHEMA = True except ImportError: _HAS_XMLSCHEMA = False tr...
c7d490a0e8c4dab97c52557750e50b7602b17b46
0be19cd3a3ec44141f03dd523da6fb770b08f569
/src/detext/layers/feature_normalizer.py
8916618e225472d47d1be7386faf848807cee16c
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
linkedin/detext
f2cdace77d4b3c6cc88d3992a67dde305e2b8a52
671d43c5ffc83cae635174ed15c58d0bc84b76ef
refs/heads/master
2023-09-01T00:53:57.571516
2023-03-02T22:27:06
2023-03-02T22:27:06
234,432,813
1,289
151
BSD-2-Clause
2023-03-02T22:03:34
2020-01-16T23:38:58
Python
UTF-8
Python
false
false
807
py
feature_normalizer.py
import tensorflow as tf class FeatureNormalizer(tf.keras.layers.Layer): """Feature normalizer to normalize dense features This layer improves numeric stability and is useful for network convergence """ def __init__(self, ftr_mean, ftr_std): super(FeatureNormalizer, self).__init__() s...
8abaaf452754f809d599fbdf37edb934a27fd938
b3950a2a6912c9b494d22b9353322c3357df0110
/tock/projects/migrations/0026_auto_20200519_1616.py
46b99eea5cb557c8c2bab50cd3f51032025e3545
[ "CC0-1.0", "LicenseRef-scancode-public-domain", "MIT" ]
permissive
18F/tock
df1fa5e817e690ce0bff315a15799e2f78915882
99005d8f6c4605a69fbb620c41f38447ecbee459
refs/heads/main
2023-08-31T01:34:55.299577
2023-08-23T18:49:10
2023-08-23T18:49:10
30,162,008
135
50
NOASSERTION
2023-09-07T18:40:30
2015-02-01T22:19:32
Python
UTF-8
Python
false
false
1,198
py
0026_auto_20200519_1616.py
# Generated by Django 2.2.12 on 2020-05-19 20:16 from django.db import migrations def populate_project_organizations(apps, schema_editor): Project = apps.get_model('projects', 'Project') Organization = apps.get_model('organizations', 'Organization') # assignment of existing projects to orgs based on proj...
c93052f13af0ebae53673d956159025c2b67bc85
cb4f118412a55c52d720bc79e4074606622920ac
/tests/unit/paths/test_line_of_sight.py
cace5d6da4722e3e3de389b056392b0fa636ee35
[ "MIT" ]
permissive
pythonarcade/arcade
3e536306f0c44f911de149b58958d8b609ffad4b
908664efc256697d3098a347f63d217d97841782
refs/heads/development
2023-08-29T02:53:01.599145
2023-08-26T16:54:34
2023-08-26T16:54:34
49,003,082
786
215
NOASSERTION
2023-09-12T18:38:54
2016-01-04T14:46:52
Python
UTF-8
Python
false
false
1,276
py
test_line_of_sight.py
import arcade def test_line_of_sight(window): player = arcade.Sprite(":resources:images/animated_characters/female_person/femalePerson_idle.png") player.center_x = 0 player.center_y = 350 enemy = arcade.Sprite(":resources:images/animated_characters/female_person/femalePerson_idle.png") enemy.cent...
75844a58ed98cffab6dd7a3b99e62cd87efc1c26
749af8e81d5ccd2d8714a34434a9c77772df551b
/statsmodels/stats/oneway.py
04dbd1d97dafc793bc5927cf9bb1727cfce84615
[ "BSD-3-Clause" ]
permissive
statsmodels/statsmodels
98ca67192c08bcc611ed3a75edaded2c7181ab98
01b19d7d111b29c183f620ff0a949ef6391ff8ee
refs/heads/main
2023-09-05T13:05:49.497076
2023-09-01T10:54:50
2023-09-01T10:54:50
1,885,237
8,666
3,023
BSD-3-Clause
2023-09-13T17:51:48
2011-06-12T17:04:50
Python
UTF-8
Python
false
false
45,809
py
oneway.py
# -*- coding: utf-8 -*- """ Created on Wed Mar 18 10:33:38 2020 Author: Josef Perktold License: BSD-3 """ import numpy as np from scipy import stats from scipy.special import ncfdtrinc # functions that use scipy.special instead of boost based function in stats from statsmodels.stats.power import ncf_cdf, ncf_ppf f...
ddf2c34c96889dfee06a108ef609935d4670d972
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/KoubeiRetailWmsOutboundworkCreateModel.py
637db579824b5b3c8c1ad184527640eaac28de46
[ "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,334
py
KoubeiRetailWmsOutboundworkCreateModel.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.OperateContext import OperateContext from alipay.aop.api.domain.WorkDetail import WorkDetail class KoubeiRetailWmsOutboundworkCreateModel(object): def __init__(self): ...
f9db37baddb8202e84dbdf87ae3f65d6aa319741
08a8c973eaa984b96be2306c325c4a0b3f997aec
/py3status/modules/dpms.py
98469ec2ad3dce2f63b676bff4970f083e697615
[]
permissive
ultrabug/py3status
889ec6679b7aa7d886bc98d86fc4051c7529b469
7ada9276ee12fe80491768d60603f8c5e1dc0639
refs/heads/master
2023-08-24T02:40:10.865393
2023-07-29T15:51:42
2023-07-29T15:51:42
8,292,338
934
426
BSD-3-Clause
2023-09-10T09:21:17
2013-02-19T14:59:13
Python
UTF-8
Python
false
false
2,732
py
dpms.py
""" Turn on and off DPMS and screen saver blanking. Configuration parameters: button_off: mouse button to turn off screen (default None) button_toggle: mouse button to toggle DPMS (default 1) cache_timeout: refresh interval for this module (default 15) format: display format for this module (default '{...
b20d83cec8bfd0d638b02eb85faad65419a6b5cc
749af8e81d5ccd2d8714a34434a9c77772df551b
/statsmodels/stats/tests/test_nonparametric.py
5d874b43744e2623902601b10cbf4956d27e2485
[ "BSD-3-Clause" ]
permissive
statsmodels/statsmodels
98ca67192c08bcc611ed3a75edaded2c7181ab98
01b19d7d111b29c183f620ff0a949ef6391ff8ee
refs/heads/main
2023-09-05T13:05:49.497076
2023-09-01T10:54:50
2023-09-01T10:54:50
1,885,237
8,666
3,023
BSD-3-Clause
2023-09-13T17:51:48
2011-06-12T17:04:50
Python
UTF-8
Python
false
false
18,623
py
test_nonparametric.py
# -*- coding: utf-8 -*- """ Created on Fri Jul 05 14:05:24 2013 Aug 15 2020: add brunnermunzel, rank_compare_2indep Author: Josef Perktold """ from statsmodels.compat.python import lzip import numpy as np from numpy.testing import (assert_allclose, assert_almost_equal, assert_approx_equal, ...
43bc76039058c2227cf7252559a0a48d22e21641
234c46d1249c9209f268417a19018afc12e378b4
/allennlp/data/token_indexers/elmo_indexer.py
5172d44c0cab046626fa540790103268d65c7d55
[ "Apache-2.0" ]
permissive
allenai/allennlp
1f4bcddcb6f5ce60c7ef03a9a3cd6a38bdb987cf
80fb6061e568cb9d6ab5d45b661e86eb61b92c82
refs/heads/main
2023-07-07T11:43:33.781690
2022-11-22T00:42:46
2022-11-22T00:42:46
91,356,408
12,257
2,712
Apache-2.0
2022-11-22T00:42:47
2017-05-15T15:52:41
Python
UTF-8
Python
false
false
5,637
py
elmo_indexer.py
from typing import Dict, List import torch from allennlp.common.util import pad_sequence_to_length from allennlp.data.tokenizers import Token from allennlp.data.token_indexers.token_indexer import TokenIndexer, IndexedTokenList from allennlp.data.vocabulary import Vocabulary def _make_bos_eos( character: int, ...
16e0f33bf70258dab95b548c4554232a8ecfb1eb
56a77194fc0cd6087b0c2ca1fb6dc0de64b8a58a
/kratos/tests/test_eigen_solvers.py
4a9fef91c3a6a835c155656c54f460dea336baaa
[ "BSD-3-Clause" ]
permissive
KratosMultiphysics/Kratos
82b902a2266625b25f17239b42da958611a4b9c5
366949ec4e3651702edc6ac3061d2988f10dd271
refs/heads/master
2023-08-30T20:31:37.818693
2023-08-30T18:01:01
2023-08-30T18:01:01
81,815,495
994
285
NOASSERTION
2023-09-14T13:22:43
2017-02-13T10:58:24
C++
UTF-8
Python
false
false
6,529
py
test_eigen_solvers.py
import KratosMultiphysics import KratosMultiphysics.KratosUnittest as KratosUnittest from KratosMultiphysics import eigen_solver_factory import os def GetFilePath(fileName): return os.path.join(os.path.dirname(os.path.realpath(__file__)), fileName) class TestEigenSolvers(KratosUnittest.TestCase): ...
05708034c090080c3f660a9a96ef55b44d95a2af
c9c84c7fd52b3e8063411d705ae639094b1214ae
/pywsd/baseline.py
f839e59bcedadcc6b0cb1e9f68f6df7f38b6c80d
[ "MIT" ]
permissive
alvations/pywsd
3a1d092da804ba4dba429bf3219098127d9b0998
42d85192bf54fec5657f84e69fb1d423adfaad95
refs/heads/master
2023-08-21T09:42:03.269268
2022-07-29T17:01:50
2022-07-29T17:01:50
15,606,309
614
139
MIT
2021-11-08T18:16:24
2014-01-03T09:48:52
Python
UTF-8
Python
false
false
1,712
py
baseline.py
#!/usr/bin/env python -*- coding: utf-8 -*- # # Python Word Sense Disambiguation (pyWSD): Baseline WSD # # Copyright (C) 2014-2020 alvations # URL: # For license information, see LICENSE.md import random custom_random = random.Random(0) def random_sense(ambiguous_word: str, pos=None) -> "wn.Synset": """ Ret...
747f1bc7988e48c9951e3f91d9f843fca29085df
a9fdace9236af6c73133fd8dddb80843697efc7d
/catalyst/callbacks/metrics/r2_squared.py
08bf0c8cd07602b20f1867629ea14a54dd90ac02
[ "Apache-2.0" ]
permissive
catalyst-team/catalyst
026c38f26dad471cd77347adbc13423b156a5d8b
e99f90655d0efcf22559a46e928f0f98c9807ebf
refs/heads/master
2023-08-26T23:12:49.277005
2022-04-29T04:19:24
2022-04-29T04:19:24
145,385,156
3,038
487
Apache-2.0
2023-08-12T03:40:14
2018-08-20T07:56:13
Python
UTF-8
Python
false
false
2,312
py
r2_squared.py
from catalyst.callbacks.metric import LoaderMetricCallback from catalyst.metrics._r2_squared import R2Squared class R2SquaredCallback(LoaderMetricCallback): """R2 Squared metric callback. Args: input_key: input key to use for r2squared calculation, specifies our ``y_true`` target_key: output...
a0b92c7925e2883717ad4816fea75071aeeb34da
85373d45a83e4096affafa4f4e5b400787413e57
/test/programytest/services/rest/newsapi/responses.py
b9b56269269f5c2ec8f090cfc022287237bb164b
[ "MIT" ]
permissive
keiffster/program-y
a02bb9d8278835547cc875f4f9cd668d5b1f44da
fc7b0a3afa4fa6ed683e0c817a9aa89f9543bb20
refs/heads/master
2023-08-23T13:55:39.255535
2022-12-13T09:51:57
2022-12-13T09:51:57
74,462,571
379
173
NOASSERTION
2023-05-23T00:51:21
2016-11-22T10:43:41
Python
UTF-8
Python
false
false
82,224
py
responses.py
everything_success_response = {'status': 'ok', 'totalResults': 851, 'articles': [ {'source': {'id': 'business-insider', 'name': 'Business Insider'}, 'author': 'feedback@businessinsider.com (Mai-Hanh Nguyen), Mai-Hanh Nguyen', 'title': 'How artificial intelligence and machine learning produced robots we ca...
51fb1514eea3b1cbc4edca7828f6fd72a516f0b6
aeef2494b283012ed619870c4275e7d015f4017a
/sdk/python/pulumi_gcp/gkebackup/backup_plan.py
82557466aebb0f08e7651fa535427eabe5f8b17e
[ "BSD-3-Clause", "MPL-2.0", "Apache-2.0" ]
permissive
pulumi/pulumi-gcp
d4fd3f80c3df5290edaf33eb5eafe34e6699d0ff
7deea0a50a4ee5ab7bd722a83eca01707e298f85
refs/heads/master
2023-08-31T07:12:45.921522
2023-08-31T06:16:27
2023-08-31T06:16:27
97,485,806
160
63
Apache-2.0
2023-09-14T19:49:36
2017-07-17T14:28:37
Java
UTF-8
Python
false
false
49,904
py
backup_plan.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload fr...
7193b1ffa877dc1a8ebb952d9de048e5187b0472
2481cde6506743565dff2b405a2396daf208ab3e
/src/ranking/migrations/0063_auto_20210828_2200.py
f7ce94d7ee2fdb196a31e487743d612d94bd46d9
[ "Apache-2.0" ]
permissive
aropan/clist
4819a3036d179595e4df8c646aff2ed593b9dad3
5c805b2af71acee97f993f19d8d4e229f7f5b411
refs/heads/master
2023-08-31T11:15:17.987776
2023-08-27T21:51:14
2023-08-27T21:52:16
187,111,853
276
35
Apache-2.0
2023-09-06T18:42:53
2019-05-16T22:57:03
Python
UTF-8
Python
false
false
514
py
0063_auto_20210828_2200.py
# Generated by Django 3.1.12 on 2021-08-28 22:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ranking', '0062_auto_20210828_2145'), ] operations = [ migrations.RemoveField( model_name='module', name='long_cont...
477a912a124b5fbcc330c45d8d7715886c3eae5a
771c1e2011a85a287c766b1a3d299ced2e6f799f
/src/electionguard_gui/services/authorization_service.py
328111f74a86104bfefd56f3833ec23442e7348d
[ "MIT" ]
permissive
microsoft/electionguard-python
f50f64a473a8d77984a2faf4aa8db40cebb5c201
b3ddc2a732f6c5f078a3afbe05b00d632a2ff5e0
refs/heads/main
2023-08-03T12:44:35.322716
2022-10-28T12:47:18
2022-10-28T12:47:18
246,392,956
143
117
MIT
2023-08-02T00:24:32
2020-03-10T19:46:06
Python
UTF-8
Python
false
false
1,119
py
authorization_service.py
from typing import Optional import eel from electionguard_gui.services.configuration_service import ConfigurationService from electionguard_gui.services.service_base import ServiceBase class AuthorizationService(ServiceBase): """Responsible for functionality related to authorization and user identify""" _is...
f8418456d54478d5631dcf421737e02696d87acf
c6e6c564cf03427de02e78f436bdf7483e13402f
/tests/fixtures/formatter/formatter1.py
5c1e36fc56c490451c440b7eed474572dfe895e5
[ "MIT" ]
permissive
wemake-services/wemake-python-styleguide
5a60ff468bf7877008c8ed34467da8bdbc2398f2
96e482514a60c12e99ee235337e678c9a4e484e3
refs/heads/master
2023-08-31T14:42:36.827760
2023-08-29T05:54:18
2023-08-29T05:54:18
124,593,057
2,427
572
MIT
2023-09-13T07:15:00
2018-03-09T21:04:25
Python
UTF-8
Python
false
false
52
py
formatter1.py
def s(handle: int) -> int: return handle + 2_00
346bd5607e7a15a58c8fd717bdbb87b8f6aa9386
39b4397767371b6f978287e7bae80fc983a1163f
/nebula3/sclient/net/__init__.py
2723625ac94712a1850635af6c904e46eab37ef8
[]
no_license
vesoft-inc/nebula-python
a8fa80a104a70a3ca3ba2cf1dccdc2c67905c2e1
1fe9a44aa7b0f9fdfc35fec12af63e30d7f3546e
refs/heads/master
2023-08-06T02:47:24.445679
2023-07-24T07:42:31
2023-07-24T07:42:31
214,361,893
163
76
null
2023-07-24T07:42:33
2019-10-11T06:37:53
Python
UTF-8
Python
false
false
2,092
py
__init__.py
#!/usr/bin/env python # --coding:utf-8-- # Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License. import socket from nebula3.Exception import InValidHostname from nebula3.storage import GraphStorageService from nebula3.fbthrift.transport import TSocket, THeade...
924da93662e7cdc8bee9e6f27822fa91cc3309df
afbae26b958b5ef20548402a65002dcc8e55b66a
/release/stubs.min/Autodesk/Revit/DB/__init___parts/ConicalSurface.py
7156b4a71c4a6e8eab46632637b6e76354580aa7
[ "MIT" ]
permissive
gtalarico/ironpython-stubs
d875cb8932c7644f807dc6fde9dd513d159e4f5c
c7f6a6cb197e3949e40a4880a0b2a44e72d0a940
refs/heads/master
2023-07-12T01:43:47.295560
2022-05-23T18:12:06
2022-05-23T18:12:06
95,340,553
235
88
NOASSERTION
2023-07-05T06:36:28
2017-06-25T05:30:46
Python
UTF-8
Python
false
false
3,303
py
ConicalSurface.py
class ConicalSurface(Surface,IDisposable): """ A Conical Surface. """ @staticmethod def Create(frameOfReference,halfAngle): """ Create(frameOfReference: Frame,halfAngle: float) -> ConicalSurface Creates a conical surface defined by a local reference frame and a half angle. frameOfRef...
069338d66832e80a124eef0371d6ad17a19ef54d
b7163b44b679e082fe97cf7fcd0c73b2fcdb38eb
/orchestration/dbnd-spark/src/dbnd_spark/spark_ctrl.py
1e582e93df2b372f7a88699bda004daed3a64240
[ "Apache-2.0" ]
permissive
databand-ai/dbnd
70c95d95e12bfb8ab471a6dce27691ed658cb92d
d59c99dcdcd280d7eec36a693dd80f8c8c831ea2
refs/heads/develop
2023-06-24T18:07:56.524526
2023-05-28T07:57:36
2023-05-28T07:57:36
231,361,064
257
33
Apache-2.0
2023-08-06T08:30:28
2020-01-02T10:42:47
Python
UTF-8
Python
false
false
4,576
py
spark_ctrl.py
# © Copyright Databand.ai, an IBM Company 2022 import shlex from typing import List import six from dbnd import current from dbnd._core.configuration.environ_config import ( DBND_TASK_RUN_ATTEMPT_UID, ENV_DBND__CORE__PLUGINS, ENV_DBND__DISABLE_PLUGGY_ENTRYPOINT_LOADING, ENV_DBND__TRACKING, ENV_D...
4761ed417dff9e496a152e1fc2c3a8da4a32c087
6186a3787d1e74f1866844491da48b9643c8f1a9
/ghostwriter/rolodex/forms_client.py
c43e27a3a8baa1caebb8b273aac1cf9a3f908c9d
[ "BSD-3-Clause" ]
permissive
GhostManager/Ghostwriter
b46b2421e5737ed0afbf49182dce9eeb5eb31936
b9eae4459ba192fbb2d4a5b66f8210d57fd7112a
refs/heads/master
2023-09-04T02:34:54.085997
2023-07-13T22:38:44
2023-07-13T22:38:44
197,269,443
1,011
197
BSD-3-Clause
2023-09-08T00:19:52
2019-07-16T21:19:43
Python
UTF-8
Python
false
false
13,495
py
forms_client.py
"""This contains all client-related forms used by the Rolodex application.""" # Django Imports from django import forms from django.core.exceptions import ValidationError from django.core.validators import validate_email from django.forms.models import BaseInlineFormSet, inlineformset_factory from django.utils.transla...
faabb36d4c30580bec5dfc154546792a688a80fc
90d02fee4d02962c9e3d03314cd1597c70bf2f8c
/asdf/compression.py
8c0e2741d586c92134de1c5b5854a6c7bb819bfc
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
asdf-format/asdf
08e19f5d603c738b0ae94ccd1a339ff6b8cf4209
a5b2b2d94f2fc71746f896c6d322439a27dd0bdd
refs/heads/main
2023-08-17T17:06:20.828932
2023-08-08T10:53:27
2023-08-08T10:53:27
18,112,754
328
25
BSD-3-Clause
2023-09-13T15:57:22
2014-03-25T19:00:43
Python
UTF-8
Python
false
false
10,587
py
compression.py
import bz2 import struct import warnings import zlib import numpy as np from .config import get_config from .exceptions import AsdfWarning def validate(compression): """ Validate the compression string. Parameters ---------- compression : str, bytes or None Returns ------- compress...
f443120953734e259b490c6c443b181347890a7c
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/Salesforce/Integrations/SalesForceEventCollector/SalesForceEventCollector.py
31014fcb416c45e9b32b5bb7aead4e7d43c6c428
[ "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
8,806
py
SalesForceEventCollector.py
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 import urllib3 from collections.abc import Generator import tempfile import requests import csv from SiemApiModule import * # noqa: E402 urllib3.disable_warnings() VENDOR = "salesforce" PRODUCT = 'event-audit' class Salesforc...
388354aab2b8a17913c698e7cc29009e77d03a3f
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/google_maps/__init__.py
929df26fa0f389fe526042c6177c327973586757
[ "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
33
py
__init__.py
"""The google_maps component."""
31d62f7dc4836803af8a6046e662320764f624b7
ea1089efcc1a67b1d2352f1a650d8c27cf22585b
/django_jinja/builtins/filters.py
3a4bfef977b11c9cbbe471f76085887fb85a5c13
[ "BSD-2-Clause" ]
permissive
niwinz/django-jinja
8646fced6a441b0c1e1de7464b099fde056d7ee2
59fec9e388eca203a3d73a5133f8a1130aee07bd
refs/heads/master
2023-09-04T02:56:41.733130
2023-09-03T21:00:00
2023-09-03T21:00:00
3,247,274
232
95
BSD-3-Clause
2023-09-03T20:06:38
2012-01-23T14:34:36
Python
UTF-8
Python
false
false
3,306
py
filters.py
from django.utils.encoding import force_str from django.urls import reverse as django_reverse from django.contrib.staticfiles.storage import staticfiles_storage def reverse(value, *args, **kwargs): """ Shortcut filter for reverse url on templates. Is a alternative to django {% url %} tag, but more simple....
3dc1d78ddb55e4b8fa623c5cfa14acd275cc948b
409b066a195db9bb6c65abcfbc1c312b077522b4
/doc/_source/codes/scheme_D1Q3_wave.py
4cd2f7e1dbbe5165ebeb07ab4deb1776667def36
[ "BSD-3-Clause" ]
permissive
pylbm/pylbm
41311bc817219e9d8e4b8b4983865c556edbdc1b
4876d32a67c98cefa50ebb85aa3c232605edc8ea
refs/heads/master
2023-07-19T04:35:23.545111
2023-07-11T16:43:09
2023-07-11T16:43:09
61,373,685
137
42
NOASSERTION
2023-07-11T16:43:11
2016-06-17T12:58:15
Jupyter Notebook
UTF-8
Python
false
false
623
py
scheme_D1Q3_wave.py
# Authors: # Loic Gouarin <loic.gouarin@polytechnique.edu> # Benjamin Graille <benjamin.graille@math.u-psud.fr> # # License: BSD 3 clause """ Example of a D1Q3 for the wave equation """ import sympy as sp import pylbm u, v, X = sp.symbols("u, v, X") c = 0.5 d = { "dim": 1, "scheme_velocity": 1.0, ...
db899652522c76d29da72aa46452517b49e72c09
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/Validation/RecoHI/python/TrackValidationHeavyIons_cff.py
0b15dd38c78fe46a64775db31d6f9bd08476daff
[ "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,919
py
TrackValidationHeavyIons_cff.py
import FWCore.ParameterSet.Config as cms # track associator settings import SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi # to do the track<->TP association with TrackerHitAssociator trackAssociatorByHitsRecoDenom = SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi.quickTrackAssoc...
9e9c8b374a6c836acf7831595e7d5e4a99b91ddb
0db19410e9751790af8ce4a0a9332293e379c02f
/mmpose/codecs/utils/post_processing.py
75356388dc408d8dda0a72324aa16c3b4f3b6068
[ "Apache-2.0" ]
permissive
open-mmlab/mmpose
2c9986521d35eee35d822fb255e8e68486026d94
537bd8e543ab463fb55120d5caaa1ae22d6aaf06
refs/heads/main
2023-08-30T19:44:21.349410
2023-07-04T13:18:22
2023-07-04T13:18:22
278,003,645
4,037
1,171
Apache-2.0
2023-09-14T09:44:55
2020-07-08T06:02:55
Python
UTF-8
Python
false
false
7,054
py
post_processing.py
# Copyright (c) OpenMMLab. All rights reserved. from itertools import product from typing import Tuple import cv2 import numpy as np import torch import torch.nn.functional as F from torch import Tensor def get_simcc_normalized(batch_pred_simcc, sigma=None): """Normalize the predicted SimCC. Args: b...
6446ab1bac4caafc5701ea56ad638ca476793496
45bb84e25010002d53cb2c21606d4095c0afe185
/examples/gromov/plot_gnn_TFGW.py
de745031d4c5a6949cc26e440ea6d12fd4bbf2af
[ "MIT" ]
permissive
PythonOT/POT
63d3a8cbdf913fb18320df5f89e2e37e5c5d71d2
533148009dd9fa49f64f0c7af21e298e0150ca9a
refs/heads/master
2023-09-04T06:01:30.388482
2023-08-30T15:08:24
2023-08-30T15:08:24
71,472,695
1,417
489
MIT
2023-09-06T11:43:48
2016-10-20T14:42:14
Python
UTF-8
Python
false
false
7,436
py
plot_gnn_TFGW.py
# -*- coding: utf-8 -*- """ ============================== Graph classification with Tempate Based Fused Gromov Wasserstein ============================== This example first illustrates how to train a graph classification gnn based on the Template Fused Gromov Wasserstein layer as proposed in [52] . [53] C. Vincent-C...
ae7af1bed411fe352871c89dee42a2f046718429
63ace5832d453e325681d02f6496a0999b72edcb
/bip_utils/utils/crypto/aes_ecb.py
62ac596b594470b2d4691dc7cb99beaf4853dc01
[ "MIT" ]
permissive
ebellocchia/bip_utils
c9ec04c687f4247e57434319e36b2abab78f0b32
d15c75ddd74e4838c396a0d036ef6faf11b06a4b
refs/heads/master
2023-09-01T13:38:55.567370
2023-08-16T17:04:14
2023-08-16T17:04:14
251,130,186
244
88
MIT
2023-08-23T13:46:19
2020-03-29T20:42:48
Python
UTF-8
Python
false
false
3,891
py
aes_ecb.py
# Copyright (c) 2021 Emanuele Bellocchia # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish,...
c932516022c02ef9a2f011efc0f2a39565b8d8c3
c6f236361649a4bf56576fcb499ca80b4b00bc7f
/tests/instancemethods_test.py
297ca46df29a907333349e895b92d539c0330305
[ "MIT" ]
permissive
kaste/mockito-python
e3ae81630f3123aed5ef1cbcb247e61a6bf63f9d
7483a5f76c7e7fb8121c2dc129bfb147a24e8eca
refs/heads/master
2022-10-09T04:37:02.227871
2022-09-30T21:07:49
2022-09-30T21:07:49
56,911,241
111
18
MIT
2022-08-25T20:46:41
2016-04-23T09:23:52
Python
UTF-8
Python
false
false
14,407
py
instancemethods_test.py
# Copyright (c) 2008-2016 Szczepan Faber, Serhiy Oplakanets, Herr Kaste # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use...
ea9d1d3d4f1fc434c03b46bcf4060e4f22b22074
2d6d5424e881252898b898fbfbc47fe1487371cf
/examples/01-filter/image-fft.py
248fa52c8b547f7c7e3d44aa54cce26dbca11d9d
[ "MIT" ]
permissive
pyvista/pyvista
333e55bfaa6b8bcdb47e2df04c823d35f05db364
1b450b23340f367315fc914075d551e0a4df8cc3
refs/heads/main
2023-08-20T08:04:27.146062
2023-08-20T01:14:03
2023-08-20T01:14:03
92,974,124
1,885
389
MIT
2023-09-14T21:09:28
2017-05-31T18:01:42
Python
UTF-8
Python
false
false
3,715
py
image-fft.py
""" .. _image_fft_example: Fast Fourier Transform ~~~~~~~~~~~~~~~~~~~~~~ This example shows how to apply a Fast Fourier Transform (FFT) to a :class:`pyvista.ImageData` using :func:`pyvista.ImageDataFilters.fft` filter. Here, we demonstrate FFT usage by denoising an image, effectively removing any "high frequency" co...
6c0c5b23f0dc4f1b574b601b80549cbce00f19ba
ff465fb53545024d2718f64e1fdf72eb8e74aee4
/src/pyaC/importCheck.py
b7a85e3769513f6b1f93956f75c18ebb8f867d29
[ "MIT" ]
permissive
sczesla/PyAstronomy
9232b4296a83e06ee2d514e39f6f7ee2e8c7d841
e85314678882624baf870443c670b4f5abb70e7d
refs/heads/master
2023-09-03T15:36:25.506441
2023-08-24T11:35:18
2023-08-24T11:35:18
8,031,607
129
44
null
2021-11-12T15:05:39
2013-02-05T15:21:35
Python
UTF-8
Python
false
false
4,265
py
importCheck.py
from . import pyaErrors as PE import importlib import traceback def pyaimportallfrom(mn, pak, globs, cra=False, rf=False, re=False): """ Mimics the behavior of 'from X import *'. Get some help here. # https://stackoverflow.com/questions/21221358/python-how-to-import-all-methods-and-attributes-from-a-...
8893fe387480b47190cd55f7f629a0c9f495b38d
0b134572e3ac3903ebb44df6d4138cbab9d3327c
/app/grandchallenge/verifications/tokens.py
c8bdbb94bf44fb9bc0ad9085796ad6926ffd7663
[ "Apache-2.0" ]
permissive
comic/grand-challenge.org
660de3bafaf8f4560317f1dfd9ae9585ec272896
dac25f93b395974b32ba2a8a5f9e19b84b49e09d
refs/heads/main
2023-09-01T15:57:14.790244
2023-08-31T14:23:04
2023-08-31T14:23:04
4,557,968
135
53
Apache-2.0
2023-09-14T13:41:03
2012-06-05T09:26:39
Python
UTF-8
Python
false
false
335
py
tokens.py
from django.contrib.auth.tokens import PasswordResetTokenGenerator class EmailVerificationTokenGenerator(PasswordResetTokenGenerator): def _make_hash_value(self, user, timestamp): return f"{user.pk}{timestamp}{user.verification.email_is_verified}" email_verification_token_generator = EmailVerificationTo...
b9a6eb2628c99dcb6c55e12c42aada3dcbaeb98d
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Pdf_docx_pptx_xlsx_epub_png/source/setuptools/__init__.py
8188f1252884acac985fcf4c6c85e21db2177312
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
5,033
py
__init__.py
"""Extensions to the 'distutils' for large or complex distributions""" import os import distutils.core import distutils.filelist from distutils.core import Command as _Command from distutils.util import convert_path from fnmatch import fnmatchcase import setuptools.version from setuptools.extension import Extension f...
d7eddeeab2ad0c3a66e20c26509c9ea383adde7f
7f0ed84404abb57c3bc062cd986b67c6a254d3f3
/tests/test_circular_imports.py
9fd74ebe4e5ee11c97ef9d09e688f1bb248127e8
[ "BSD-3-Clause" ]
permissive
abhinavsingh/proxy.py
ad8eff50476815c4654cade3b6fe628e1ecea2eb
30574fd0414005dfa8792a6e797023e862bdcf43
refs/heads/develop
2023-09-01T03:40:13.473734
2023-04-17T04:12:18
2023-04-17T04:12:18
12,228,178
2,691
657
BSD-3-Clause
2023-09-08T11:56:39
2013-08-19T21:33:51
Python
UTF-8
Python
false
false
3,685
py
test_circular_imports.py
# -*- coding: utf-8 -*- """ proxy.py ~~~~~~~~ ⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on Network monitoring, controls & Application development, testing, debugging. :copyright: (c) 2013-present by Abhinav Singh and contributors. :license: BSD, see LICENSE...
f4aa01bf725a1d9ad20ffc8ca2b379e2bc9d5dc2
ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb
/python_modules/dagster/dagster/_core/storage/alembic/versions/009_add_partition_column_postgres.py
b541b660b4fb31e337dc7084131cfc08e9680a1f
[ "Apache-2.0" ]
permissive
dagster-io/dagster
6adb5deee8bcf3ea1866a6a64f2ed81e1db5e73a
fe21995e0402878437a828c6a4244025eac8c43b
refs/heads/master
2023-09-05T20:46:08.203794
2023-09-05T19:54:52
2023-09-05T19:54:52
131,619,646
8,565
1,154
Apache-2.0
2023-09-14T21:57:37
2018-04-30T16:30:04
Python
UTF-8
Python
false
false
1,170
py
009_add_partition_column_postgres.py
"""add partition column. Revision ID: 3e0770016702 Revises: 224640159acf Create Date: 2020-12-21 10:13:54.430623 """ import sqlalchemy as sa from alembic import op from sqlalchemy import inspect # revision identifiers, used by Alembic. revision = "3e0770016702" down_revision = "224640159acf" branch_labels = None dep...
d1cafcfe5752cbe05f63a28958005535bf2610a6
71acb7214efd91c0d327f6d8958e1798eadb4401
/locations/spiders/staples.py
1cf6dcd2e5d22725d48bcec4c3c5753f808b8fca
[ "CC0-1.0", "MIT" ]
permissive
alltheplaces/alltheplaces
21b9f8b4ace1352e52ae7b8f8825a930d2cb033e
1bcbb55cfcf06f2c714465570711f6e83f205c22
refs/heads/master
2023-08-30T19:45:35.098658
2023-08-30T17:51:54
2023-08-30T17:51:54
61,166,935
453
176
NOASSERTION
2023-09-14T17:16:40
2016-06-15T01:09:18
Python
UTF-8
Python
false
false
3,442
py
staples.py
import re import scrapy from locations.hours import OpeningHours from locations.items import Feature from locations.spiders.vapestore_gb import clean_address class StaplesSpider(scrapy.Spider): name = "staples" item_attributes = {"brand": "Staples", "brand_wikidata": "Q785943"} allowed_domains = ["store...
9525f6bd270f77b8069065a49fcf48933c4f9f42
01891a781b63c0ca4413e1bd9bbe1e4dee9d081f
/benchmarks/setup.py
73f83b12a26f64506c18c6d1e9517a729a09c17d
[ "MIT" ]
permissive
dedupeio/dedupe
f933fa07cadb62c19c478cd801c8a3ff22f7563e
f72d4a161bfc66c9e1de9b39e2bd7e01bcad3c49
refs/heads/main
2023-08-23T15:18:36.902429
2023-02-17T16:34:52
2023-02-17T16:34:52
4,087,724
2,702
407
MIT
2023-05-29T02:57:35
2012-04-20T14:57:36
Python
UTF-8
Python
false
false
190
py
setup.py
# Dummy file to allow editable installs from setuptools import find_packages, setup if __name__ == "__main__": setup( name="benchmarks", packages=find_packages(), )
db77b30337ca69f0c72ba1a9052b28f54ad51287
20ef5a192d8fa9c1eb25b0198ba059e002036229
/aif360/sklearn/datasets/openml_datasets.py
4525087d80e8c71ea55c10ba48aff580a793578b
[ "Apache-2.0" ]
permissive
Trusted-AI/AIF360
8ee9835e0c394f38ebb70f9351b113dac8710435
6f9972e4a7dbca2402f29b86ea67889143dbeb3e
refs/heads/master
2023-08-31T07:48:43.056722
2023-07-27T19:09:06
2023-07-27T19:09:06
145,761,123
1,157
432
Apache-2.0
2023-09-08T10:42:28
2018-08-22T20:47:15
Python
UTF-8
Python
false
false
10,742
py
openml_datasets.py
import os import pandas as pd from sklearn.datasets import fetch_openml from aif360.sklearn.datasets.utils import standardize_dataset # cache location DATA_HOME_DEFAULT = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'data', 'raw') def fetch_adult(subset='all', *, ...
7ba6250753ed26519d7add29d8b78313fb62d1a7
52a677b94056d3397b4a499bc9185adb68a63f05
/image/docker/test/test_schema1.py
4be2c12fdb7dc2af127ddd34401ef148092992d7
[ "Apache-2.0" ]
permissive
quay/quay
9b6fcff54efc0dbf7c6d91fa80676950555b6f1a
e400a0c22c5f89dd35d571654b13d262b1f6e3b3
refs/heads/master
2023-08-28T15:08:38.001842
2023-08-28T13:52:31
2023-08-28T13:52:31
220,517,730
2,363
322
Apache-2.0
2023-09-14T17:43:48
2019-11-08T17:37:05
Python
UTF-8
Python
false
false
13,299
py
test_schema1.py
# -*- coding: utf-8 -*- import json import os import re import pytest from app import docker_v2_signing_key from image.docker.schema1 import ( DockerSchema1Manifest, DockerSchema1ManifestBuilder, MalformedSchema1Manifest, ) from util.bytes import Bytes @pytest.mark.parametrize( "json_data", [ ...
f3a7e902c28f33a8355ca69cb0cf3dfa0982b790
d79190b06a1a2811fc0786817df0aa3ec15881ca
/tests/test_axis.py
a6dfb1c9d3013a29958dd89da4c375ab8e140eeb
[ "BSD-3-Clause" ]
permissive
scikit-hep/hist
165e29a3822366bc9dc96ae91a7d7ba4e3f38391
6caab065da1e992193b0acbbe08ce72d169c2994
refs/heads/main
2023-08-17T14:02:27.091813
2023-08-10T15:09:34
2023-08-10T15:09:34
239,605,861
119
23
BSD-3-Clause
2023-09-14T15:13:41
2020-02-10T20:24:52
Python
UTF-8
Python
false
false
2,078
py
test_axis.py
from __future__ import annotations import pytest from hist import axis, hist def test_axis_names(): """ Test axis names -- whether axis names work. """ assert axis.Regular(50, -3, 3, name="x0") assert axis.Boolean(name="x_") assert axis.Variable(range(-3, 3), name="xx") assert axis.Inte...
dc3b0e383c03e0c17b7c040887018dd24d80b2de
7678a802e83ba88cc0ca59066493a581cf3ae009
/Giveme5W1H/examples/evaluation/evaluation.py
b70e957ebbcebc3d86ee0695f72eb19c685e06c2
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
fhamborg/Giveme5W1H
152145eee92062ae227da910080bcd6c6b24db4a
657738781fe387d76e6e0da35ed009ccf81f4290
refs/heads/master
2023-08-24T21:58:50.638812
2022-03-31T19:00:28
2022-03-31T19:00:28
91,314,968
495
95
Apache-2.0
2023-08-15T09:10:43
2017-05-15T08:43:39
HTML
UTF-8
Python
false
false
3,017
py
evaluation.py
import csv import os """ evaluates results by calculating: - ICR(pairwise intercoder reliability AB, BC, AC) - GP(precision_generalized) Results are global and per category """ filename = 'evaluation_data_how.csv' # change csv column index, if necessary here category_index = 2 coder_a_index = 5 coder_b_index = ...
25b892a7b763009f31b4af0432e175415aa879d6
04e5b6df2ee3bcfb7005d8ec91aab8e380333ac4
/Lib/objc/_IconServices.py
9337e9cd0796aa005685cc549851ed611e8adf9a
[ "MIT" ]
permissive
ColdGrub1384/Pyto
64e2a593957fd640907f0e4698d430ea7754a73e
7557485a733dd7e17ba0366b92794931bdb39975
refs/heads/main
2023-08-01T03:48:35.694832
2022-07-20T14:38:45
2022-07-20T14:38:45
148,944,721
884
157
MIT
2023-02-26T21:34:04
2018-09-15T22:29:07
C
UTF-8
Python
false
false
3,037
py
_IconServices.py
""" Classes from the 'IconServices' framework. """ try: from rubicon.objc import ObjCClass except ValueError: def ObjCClass(name): return None def _Class(name): try: return ObjCClass(name) except NameError: return None ISImageSpecification = _Class("ISImageSpecification") I...
a8164939675a5ed511690b1f66d085e89edce484
172ef065015432a6e7ce44cf936fdbf22d71571f
/bin/gogo
257a0b311ae98ffa156160ca168942e7f169cd3a
[ "MIT" ]
permissive
reubano/pygogo
360b559b12332090e850157d94b28f405da93c43
7a78062b1f996c541c5ff68ffafc231bdc07ebcf
refs/heads/master
2022-06-04T13:19:16.650470
2021-12-28T18:35:03
2021-12-28T18:35:03
48,742,215
310
20
MIT
2023-08-31T14:44:25
2015-12-29T10:31:02
Python
UTF-8
Python
false
false
309
gogo
#!/usr/bin/env python # -*- coding: utf-8 -*- """ A Python logger with super powers """ from __future__ import ( absolute_import, division, print_function, with_statement, unicode_literals) import sys sys.path.append('../pygogo') from pygogo import main if __name__ == '__main__': main.run()
aedce828cf2704b8c67c536cf750e613c7b600ba
af41ca2086f7da6ca036921b2e2cec89e0e5d522
/src/Pyro4/socketserver/threadpoolserver.py
31aa7557942f81263b02448fbd8159fc8eca5737
[ "MIT" ]
permissive
irmen/Pyro4
023830905bb0d8fc25aed8e990631268f7fbe52c
8ec0db055d76ae1512239710b1e30883ee6bd74b
refs/heads/master
2023-08-22T10:18:47.878310
2023-06-04T16:00:32
2023-06-04T16:00:32
11,037,154
667
105
MIT
2022-06-26T14:23:01
2013-06-28T20:25:58
Python
UTF-8
Python
false
false
10,057
py
threadpoolserver.py
""" Socket server based on a worker thread pool. Doesn't use select. Uses a single worker thread per client connection. Pyro - Python Remote Objects. Copyright by Irmen de Jong (irmen@razorvine.net). """ from __future__ import print_function import socket import logging import sys import time import threading impo...
0f7f2d2d1a2696af422056df6263413eaa36fb33
2337351b228818e41be3002bd38f68f77c2aa074
/core/topology/constraint/vlan.py
7e27c1604e543e1d3a682f1adea11ad3f5d24578
[ "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
3,298
py
vlan.py
# ---------------------------------------------------------------------- # VLANConstraint # ---------------------------------------------------------------------- # Copyright (C) 2007-2020 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- # Python module...
0a3240f01292bc0d85cc75e2b96d402c78b308f9
13800b7827598e76428a335559b7bf11867ec2f0
/python/ccxt/okcoin.py
8796a7658aec75d7f5f7dcb3cbb5a97ebcb16771
[ "MIT" ]
permissive
ccxt/ccxt
b40a0466f5c430a3c0c6026552ae697aa80ba6c6
e4065f6a490e6fc4dd7a72b375428b2faa570668
refs/heads/master
2023-09-04T03:41:29.787733
2023-09-03T19:25:57
2023-09-03T19:25:57
91,253,698
30,798
8,190
MIT
2023-09-14T21:59:09
2017-05-14T15:41:56
Python
UTF-8
Python
false
false
178,057
py
okcoin.py
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange from ccxt.abstract.okcoin import ImplicitAPI import hashlib from ccxt.base.types import OrderSide f...
54d464d9f205bc82b96a12f9aa12c09d8e7277b1
6b003a8f98f23a8d0ff8f8bd00e30f81ac2ffce1
/tests/django20/transactions_regress/models.py
e09e81d93d037bbb67930312ef9a9c724fd08202
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "BSD-2-Clause" ]
permissive
lionheart/django-pyodbc
804f91436b82113ab7f78fb8ac5bee8e30af1480
22daac2355f2e2c35450b056dcf8b0e8ba6d6190
refs/heads/master
2023-02-11T19:16:00.269448
2023-01-29T16:42:06
2023-01-29T16:42:06
9,633,067
174
93
Apache-2.0
2023-01-29T16:42:07
2013-04-23T20:52:21
Python
UTF-8
Python
false
false
282
py
models.py
from django.db import models class Mod(models.Model): fld = models.IntegerField() class SubMod(Mod): cnt = models.IntegerField(unique=True) class M2mA(models.Model): others = models.ManyToManyField('M2mB') class M2mB(models.Model): fld = models.IntegerField()
0c79e57ddce6a4c4a039650ea56fda4fe446b279
57551a0f6395f3a9aea9b7389ad934cc234e58c0
/f5discovery.py
67016e62ea949677975affb2ff02993cbad6fbdd
[]
no_license
Th4nat0s/Chall_Tools
2712df73ab8c2c309537dbef196431b8f7382677
7db9f5d38a1c26d74a68e1e967c92429af88a002
refs/heads/master
2021-12-21T15:54:52.102083
2021-12-20T16:53:01
2021-12-20T16:53:01
6,964,540
113
50
null
2017-07-13T08:26:51
2012-12-02T07:45:54
Python
UTF-8
Python
false
false
1,347
py
f5discovery.py
#!/usr/bin/python # v 0.1 # Copyleft Thanat0s # http://Thanat0s.trollprod.org # # Licence GNU GPL # A F5 cookie dissector/finder import re import sys import cookielib import urllib2 import struct cookies = cookielib.LWPCookieJar() handlers = [ urllib2.HTTPHandler(), urllib2.HTTPSHandler(), urllib2.HTTP...
5585acc75283e8e18a2171b7e43c8abb884372c9
444a9480bce2035565332d4d4654244c0b5cd47b
/research/cv/SPPNet/train.py
9cb3497eb42619ea89887f444bea3a6b067742db
[ "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
8,519
py
train.py
# Copyright 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 agreed to...
e672b61e94200f2ac0db29d70362502cde6777dd
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/tools/usb_gadget/composite_gadget.py
04985ddb81d4a2ee726bec527c2788c6118caeb6
[ "BSD-3-Clause" ]
permissive
chromium/chromium
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
refs/heads/main
2023-08-24T00:35:12.585945
2023-08-23T22:01:11
2023-08-23T22:01:11
120,360,765
17,408
7,102
BSD-3-Clause
2023-09-10T23:44:27
2018-02-05T20:55:32
null
UTF-8
Python
false
false
9,378
py
composite_gadget.py
# Copyright 2014 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """A composite USB gadget is built from multiple USB features. """ import gadget import usb_constants import usb_descriptors class CompositeGadget(gadget.Gadget): """Basic fu...
cd8ad9a27c55978f8c73c5e425c7e50c415d7db8
67cc5db4593e2cdd109e589e13fb07074bcff5d9
/tests/library/einsum_blas_test.py
a474ff523c626ee7b87089eaeb7d0f8ab046d7fe
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
spcl/dace
39849b1488e8f59f880fc0e2572687556c51847d
c5ca99ad37e7ceef6da71026c3c8bb579f64117f
refs/heads/master
2023-08-31T10:45:09.480018
2023-08-30T06:05:10
2023-08-30T06:05:10
172,703,996
402
114
BSD-3-Clause
2023-09-14T15:18:29
2019-02-26T12:05:50
Python
UTF-8
Python
false
false
4,323
py
einsum_blas_test.py
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. """ These tests are mostly from daceml, testing that the einsums for the BERT encoder are correctly specialized to BLAS nodes. """ import pytest import numpy as np import dace from dace.library import change_default from dace.libraries import ...
8480032949f2382ffd0fd109f7775d7c2b85ced4
5e601244fbf32ee5190fb5210a0cd334473a0abe
/functions/performance/timeMeasure/timeMeasure.py
3e0f5e432076900d56f62080857edebcebc13bce
[]
no_license
DingGuodong/LinuxBashShellScriptForOps
69ebe45cf3f92b741a078b9b78c2600328ce9b9e
b2ca1e4c870626dd078d447e2d1479b08602bdf6
refs/heads/master
2023-08-21T20:53:40.617397
2023-07-17T01:41:05
2023-07-17T01:41:05
57,015,255
453
343
null
2023-02-16T01:29:23
2016-04-25T05:55:28
Python
UTF-8
Python
false
false
2,609
py
timeMeasure.py
#!/usr/bin/python # encoding: utf-8 # -*- coding: utf8 -*- """ Created by PyCharm. File: LinuxBashShellScriptForOps:timeMeasure.py User: Guodong Create Date: 2017/1/16 Create Time: 9:50 Refer: http://www.jb51.net/article/63244.htm Others: 1. 'time' command in UNIX system o...
05912a9e349b49d37140e902a3e1b51357eea7ce
b2bcf07493b5a1bbfb7e29c7f13ac0b380cefead
/deprecated/scripts/transposed_conv_torch.py
8f1bfa672427231840663abf18456964d1bf4a94
[ "MIT" ]
permissive
probml/pyprobml
e1952927bceec676eb414f9342470ba4b8e6703b
9cc22f3238ae092c2b9bff65d6283c93d38d25d4
refs/heads/master
2023-08-31T07:36:11.603301
2023-08-13T02:47:12
2023-08-13T02:47:12
65,924,871
6,263
1,598
MIT
2023-01-20T23:34:23
2016-08-17T16:42:24
Jupyter Notebook
UTF-8
Python
false
false
1,546
py
transposed_conv_torch.py
# Based on http://d2l.ai/chapter_computer-vision/transposed-conv.html import superimport import torch from torch import nn import numpy as np def trans_conv(X, K): h, w = K.shape Y = torch.zeros((X.shape[0] + h - 1, X.shape[1] + w - 1)) for i in range(X.shape[0]): for j in range(X.shape[1]): ...
5af38d0e13bc011fe7f5eadd619bd9f28c6de827
9b46842f67129d8b3df3b151d5f1311c22e99745
/runlike/runlike.py
77fd2447199562f13471b2b818d12b158932b817
[ "BSD-2-Clause-Views" ]
permissive
lavie/runlike
4584b22fa54bd427ca631826479a459f50f914a5
1e5a8a279f48d5ab95b04d4e5ce81bfe80d7708b
refs/heads/master
2023-03-08T10:46:48.943787
2023-02-25T20:19:38
2023-02-25T20:19:38
36,849,312
1,609
96
NOASSERTION
2023-02-25T22:45:41
2015-06-04T05:12:31
Python
UTF-8
Python
false
false
1,018
py
runlike.py
#!/usr/bin/env python import click import sys try: from .inspector import Inspector except (ValueError, ImportError): from inspector import Inspector @click.command( help="Shows command line necessary to run copy of existing Docker container.") @click.argument("container", required=False) @click.option(...
794b2cac5ce1f44bb3a19347a7144c7a248f73f8
40b42ccf2b6959d6fce74509201781be96f04475
/mmocr/models/textdet/detectors/ocr_mask_rcnn.py
3cfbff57856fed3066df9548e80d20bc8f4d467e
[ "Apache-2.0" ]
permissive
xdxie/WordArt
2f1414d8e4edaa89333353d0b28e5096e1f87263
89bf8a218881b250d0ead7a0287526c69586c92a
refs/heads/main
2023-05-23T02:04:22.185386
2023-03-06T11:51:43
2023-03-06T11:51:43
515,485,694
106
12
null
null
null
null
UTF-8
Python
false
false
2,238
py
ocr_mask_rcnn.py
# Copyright (c) OpenMMLab. All rights reserved. from mmdet.models.detectors import MaskRCNN from mmocr.core import seg2boundary from mmocr.models.builder import DETECTORS from .text_detector_mixin import TextDetectorMixin @DETECTORS.register_module() class OCRMaskRCNN(TextDetectorMixin, MaskRCNN): """Mask RCNN t...
426a61bcec773c2cdfe839d07360916f7f9aabde
2270e0fb290591a21fd13a3980dccf4ff47d83fa
/tf2_gnn/test/layers/test_RGAT.py
1609365b1423ba9be13a4727f301cb50e31c3870
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
microsoft/tf2-gnn
d0251e48c0d7cfa67fbd4d1cd8579cbf6845059b
fa608555c68c41027a44e1ec68c160e92b570632
refs/heads/master
2023-08-30T01:09:37.653689
2023-07-13T13:47:00
2023-07-13T13:47:00
242,964,823
411
80
MIT
2023-07-12T18:33:59
2020-02-25T09:49:36
Python
UTF-8
Python
false
false
1,989
py
test_RGAT.py
"""Tests for the RGAT message passing layer.""" import tensorflow as tf import pytest from tf2_gnn.layers.message_passing import MessagePassingInput, RGAT # fmt: off shape_test_data = [ ( tf.TensorShape(dims=(None, 3)), tuple(tf.TensorShape(dims=(None, 2)) for _ in range(3)), 16, ...
5a930fc6225a0c25a18075e0eaae97dc751f139b
578db86c51d44ebddd0dc7b1738985b3dc69eb74
/corehq/pillows/domain.py
854712cab6644e457d99c565c1a371003a0d44a4
[ "BSD-3-Clause" ]
permissive
dimagi/commcare-hq
a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b
e7391ddae1af1dbf118211ecb52c83fc508aa656
refs/heads/master
2023-08-16T22:38:27.853437
2023-08-16T19:07:19
2023-08-16T19:07:19
247,278
499
203
BSD-3-Clause
2023-09-14T19:03:24
2009-07-09T17:00:07
Python
UTF-8
Python
false
false
2,307
py
domain.py
from corehq.apps.change_feed.consumer.feed import KafkaChangeFeed, KafkaCheckpointEventHandler from corehq.apps.change_feed import topics from corehq.apps.domain.models import Domain from corehq.apps.es.domains import domain_adapter from corehq.util.doc_processor.couch import CouchDocumentProvider from pillowtop.checkp...
b9fb576c01f88efdb008312900d99a81dbf933ba
b049a961f100444dde14599bab06a0a4224d869b
/sdk/python/pulumi_azure_native/costmanagement/v20190301preview/cloud_connector.py
813354835f89688374a1efdfe924a7723763b54a
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
pulumi/pulumi-azure-native
b390c88beef8381f9a71ab2bed5571e0dd848e65
4c499abe17ec6696ce28477dde1157372896364e
refs/heads/master
2023-08-30T08:19:41.564780
2023-08-28T19:29:04
2023-08-28T19:29:04
172,386,632
107
29
Apache-2.0
2023-09-14T13:17:00
2019-02-24T20:30:21
Python
UTF-8
Python
false
false
17,895
py
cloud_connector.py
# coding=utf-8 # *** WARNING: this file was generated by pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from . im...
645f08ed26aa64b2545a94ec5a767968dbd4be7d
749af8e81d5ccd2d8714a34434a9c77772df551b
/statsmodels/regression/tests/results/lme_r_results.py
61515e0f2b094aacb3633ed49ccfe7dfe9caa74c
[ "BSD-3-Clause" ]
permissive
statsmodels/statsmodels
98ca67192c08bcc611ed3a75edaded2c7181ab98
01b19d7d111b29c183f620ff0a949ef6391ff8ee
refs/heads/main
2023-09-05T13:05:49.497076
2023-09-01T10:54:50
2023-09-01T10:54:50
1,885,237
8,666
3,023
BSD-3-Clause
2023-09-13T17:51:48
2011-06-12T17:04:50
Python
UTF-8
Python
false
false
15,667
py
lme_r_results.py
import numpy as np coef_ml_drf_0 = np.array([-0.9887517]) vcov_ml_drf_0 = np.array([0.001317148]).reshape(1, 1, order='F') cov_re_ml_drf_0 = np.array([0.2522485]).reshape(1, 1, order='F') scale_ml_drf_0 = np.array([0.2718486]) loglike_ml_drf_0 = np.array([-240.1254]) ranef_mean_ml_drf_0 = np.array([0.04977167]) ...
6672b00ea2dc24b7763c4772646a70e73e7737d2
0f59e486ea9d7c96b8c3f7f92bf063fc8389f1e8
/visgraph/dbcore.py
622b4b755f0af6fc4b3497a8834303af5c557f59
[ "Apache-2.0" ]
permissive
vivisect/vivisect
ac259918b6281d9431c32a0b2307c61f9cab0dec
b07e161cc28b19fdda0d047eefafed22c5b00f15
refs/heads/master
2023-08-25T09:02:00.526532
2023-07-26T03:07:07
2023-07-26T03:07:07
26,651,759
833
181
Apache-2.0
2023-09-07T03:43:53
2014-11-14T18:28:47
Python
UTF-8
Python
false
false
18,970
py
dbcore.py
''' Visgraph supports backing the graph objects with a postgres db. ''' import psycopg2 import collections import visgraph.graphcore as vg_graphcore init_db = ''' DROP TABLE IF EXISTS vg_edges; CREATE TABLE vg_edges ( eid BIGSERIAL, n1 BIGINT, n2 BIGINT, created T...
15cfee1a746d9be7c05fe7b916855adf97bbbe15
5105403f2b75990654519438d8ceabcf80962ebf
/examples/styling/visuals/specifying_colors.py
edc7123460418dbdec3223c020467d546ba0b114
[ "BSD-3-Clause" ]
permissive
bokeh/bokeh
ed1d81eb07d27d27c6710c9fec9114886047f528
310cb2cbeabc4c4b8180cbda566df16039737cdc
refs/heads/branch-3.3
2023-08-31T23:53:06.537061
2023-08-30T03:43:05
2023-08-30T03:43:05
3,834,332
17,174
5,251
BSD-3-Clause
2023-09-14T11:37:23
2012-03-26T15:40:01
Python
UTF-8
Python
false
false
708
py
specifying_colors.py
import numpy as np from bokeh.plotting import figure, show x = [1, 2, 3] y1 = [1, 4, 2] y2 = [2, 1, 4] y3 = [4, 3, 2] # use a single RGBA color single_color = (255, 0, 0, 0.5) # use a list of different colors list_of_colors = [ "hsl(60deg 100% 50% / 1.0)", "rgba(0, 0, 255, 0.9)", "LightSeaGreen", ] # u...
8b0ad149b5ee64c56b6aca6152c4e83fbf299ee6
67ce6a1d1369463b15023cc5bd1be9e823bab398
/lib/pymedphys/_dicom/rtplan/__init__.py
8e811ffe4549926d5a717a97f3277ea4894af0e9
[ "Apache-2.0" ]
permissive
pymedphys/pymedphys
2487efe7259cc4e226e93d32fe86cef01673016e
f6acdf9bd2e8a32e372966879284fbd71c612358
refs/heads/main
2023-08-05T06:27:48.110296
2023-06-07T18:22:09
2023-06-07T18:22:09
168,238,552
288
79
Apache-2.0
2023-05-30T03:23:50
2019-01-29T22:20:04
Python
UTF-8
Python
false
false
593
py
__init__.py
from .adjust import convert_to_one_fraction_group from .build import ( build_control_points, merge_beam_sequences, replace_beam_sequence, replace_fraction_group, restore_trailing_zeros, ) from .core import ( get_beam_indices_of_fraction_group, get_cp_attribute_leaning_on_prior, get_fract...
c4ff31d01c9c92d1feff62bd995f4181078c6108
9b391863599ecc26a6804f9f272f8c7f2aee8a8c
/tick/hawkes/inference/tests/hawkes_conditional_law_test.py
8689b7e7114c15fbb6ff464549aa35f915f4c62e
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
X-DataInitiative/tick
4db1bce7471bb48757b54e86b0f7946f36e78dde
04dbb377b47783036a8343c6a61b60fc9f430dc3
refs/heads/master
2023-08-13T10:28:15.560632
2023-03-05T00:16:57
2023-03-05T00:16:57
75,284,069
475
120
BSD-3-Clause
2023-03-05T00:16:58
2016-12-01T10:59:08
Python
UTF-8
Python
false
false
4,381
py
hawkes_conditional_law_test.py
# License: BSD 3 clause import os import unittest import numpy as np from numpy.random import random, randint from tick.base.inference import InferenceTest from tick.hawkes.inference import HawkesConditionalLaw class Test(InferenceTest): def setUp(self): self.dim = 2 np.random.seed(320982) ...
457256779262f43a5a4a446b75fa5a3e476267c4
082cb56436631f16585dc6c667a8b384cee3335f
/script/talk/source/t400120.py
867bd2ff823173e6a9865644673b9c518cb8e8dc
[]
no_license
vawser/Cinders-DS3
abf2c5e1c163f2e556a0d89e437eead3ddd6992c
d086ebce45b27806f757e04778dad1615e405dab
refs/heads/master
2023-09-01T00:48:00.500866
2023-08-07T12:25:24
2023-08-07T12:25:24
230,333,994
192
203
null
2022-02-13T21:09:26
2019-12-26T22:08:06
Python
UTF-8
Python
false
false
25,931
py
t400120.py
#------------------------------------------- #-- Fire Keeper #------------------------------------------- # -*- coding: utf-8 -*- def t400120_1(): """ State 0,1 """ assert GetCurrentStateElapsedTime() > 1 """ State 2 """ while True: call = t400120_x14() assert IsClientPlayer() == 1 ...
b0a3d69883a507edfcc9090db801e6484b9bd616
620323fc090cebaf7aca456ff3f7fbbe1e210394
/selenium__examples/screenshot_from_local_file_with_fixed_window_size.py
03bb037130ab9ed71dbf3b4af9b049bb0d84b673
[ "CC-BY-4.0" ]
permissive
gil9red/SimplePyScripts
bd2733372728bf9b9f00570e90316fa12116516b
773c2c9724edd8827a1dbd91694d780e03fcb05a
refs/heads/master
2023-08-31T04:26:09.120173
2023-08-30T17:22:59
2023-08-30T17:22:59
22,650,442
157
46
null
2023-09-08T17:51:33
2014-08-05T16:19:52
Python
UTF-8
Python
false
false
389
py
screenshot_from_local_file_with_fixed_window_size.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "ipetrash" import time from pathlib import Path # pip install selenium from selenium import webdriver file_name = "file_test.html" driver = webdriver.Firefox() driver.set_window_size(500, 500) driver.get("file://" + str(Path(file_name).resolve())) time...
41213096a9a7f5a8b4fb0c38d001fd72fb7cc1e0
36437b397a855f3986325f1bfe41d7ced00b703a
/tests/k8s/test_errors.py
706142676a027b09114765b0b339016e2049271c
[ "MIT" ]
permissive
nolar/kopf
090cd21550e3a86e512a4c9150dfcf5f59ac14e4
538df59b88d1aab7b985d703483497f73c6c4783
refs/heads/main
2023-08-29T20:39:07.128912
2023-08-24T15:47:40
2023-08-24T15:47:40
288,234,242
1,627
154
MIT
2023-09-14T12:31:33
2020-08-17T16:45:35
Python
UTF-8
Python
false
false
3,882
py
test_errors.py
import aiohttp import pytest from kopf._cogs.clients.auth import APIContext, authenticated from kopf._cogs.clients.errors import APIClientError, APIConflictError, APIError, \ APIForbiddenError, APINotFoundError, \ APIServerError, check_respons...
bc8a2f5809f48cfcff77daf2663330a3b306ab36
9317a3ce2d972e65d4c08242606e10ad99c93c23
/src/autogpt_plugins/bing_search/bing_search.py
ddcb67a4c757d5ebf1a7f468e0215fc98483589c
[ "MIT" ]
permissive
Significant-Gravitas/Auto-GPT-Plugins
c751b43fedf34a6e157e09c8b5cd5f9f4e3d17ac
397589394138f9ed43660b1aa99d501a8bfff061
refs/heads/master
2023-08-24T12:28:02.320683
2023-06-29T07:09:16
2023-06-29T07:09:16
625,411,260
3,377
499
MIT
2023-09-01T18:31:29
2023-04-09T02:54:14
Python
UTF-8
Python
false
false
1,488
py
bing_search.py
import json import os import re import requests def clean_text(text: str) -> str: cleaned_text = re.sub("<[^>]*>", "", text) # Remove HTML tags cleaned_text = cleaned_text.replace( "\\n", " " ) # Replace newline characters with spaces return cleaned_text def _bing_search(query: str, num_r...
837d5ab7fa483c6ca22cf73480c4345c2857e809
26c238e12dd9eaca7872c83799c3be22d8f4fc64
/tests/test_app/library/loans/admin.py
37f57e46f9f9adb655b1a0930224aed655bce6c7
[ "MIT" ]
permissive
farridav/django-jazzmin
324c62d7f79c07077a5792cf2943dd3106f2d9cc
586e81f204033add57b67f657e43681801356a9a
refs/heads/master
2023-08-03T01:30:12.556940
2023-02-02T11:52:14
2023-02-02T11:52:14
263,143,255
1,394
257
MIT
2023-09-11T16:51:31
2020-05-11T19:50:44
HTML
UTF-8
Python
false
false
1,396
py
admin.py
from django.contrib import admin from django.urls import path from .models import BookLoan, Library from .views import CustomView class BookLoanInline(admin.StackedInline): model = BookLoan extra = 1 readonly_fields = ("id", "duration") fields = ( "book", "imprint", "status", ...
e6f1ce89c260693564cfdaf903a5a976ec97c06e
cc6ffb5053d526224567058bbed0c450ebf670e6
/generate_keyczart.py
b8b022eaf4a76c0552ce03a461672dade4d8ca46
[ "Apache-2.0" ]
permissive
grahamgilbert/Crypt-Server
3415709d56ff432a81ffd05f0e243ba98ab85445
8562fb56f3cecf931bc3e79a8279ea1e42983460
refs/heads/master
2023-08-04T15:26:45.585122
2023-07-16T10:26:46
2023-07-16T10:26:46
7,164,538
115
64
Apache-2.0
2023-08-02T02:19:50
2012-12-14T11:42:32
Python
UTF-8
Python
false
false
582
py
generate_keyczart.py
import keyczar import subprocess import os directory = os.path.join(os.path.dirname(os.path.abspath(__file__)), "keyset") if not os.path.exists(directory): os.makedirs(directory) if not os.listdir(directory): location_string = "--location={}".format(directory) cmd = ["keyczart", "create", location_string...
29b9417fbd52a98e1e000b949d131d28730e02ea
bade5b29e8ba58adbe440f8eda491e43b2155132
/pronto/utils/io.py
e756248e1598332521be5e7a7a1e0d8b38eba787
[ "MIT" ]
permissive
althonos/pronto
72697bd0aa0e69b728d70038d340b546de2d5b76
9e11c06e71c24685404fc1d0d3a560f4e2cdd3de
refs/heads/master
2023-08-20T19:46:30.418518
2023-08-17T10:27:39
2023-08-17T10:27:39
62,424,052
228
60
MIT
2023-09-04T04:39:11
2016-07-01T23:02:01
Python
UTF-8
Python
false
false
4,906
py
io.py
import bz2 import codecs import gzip import io import lzma import typing import urllib.request import warnings from http.client import HTTPResponse from typing import BinaryIO, ByteString, Dict, Optional, Union, cast import chardet MAGIC_GZIP = bytearray([0x1F, 0x8B]) MAGIC_LZMA = bytearray([0xFD, 0x37, 0x7A, 0x58, 0...
e17c7c4a1136b8c2559b87b8c022232e40bb9d8e
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/dts/airbyte/airbyte-integrations/connectors/source-rki-covid/source_rki_covid/source.py
65fe10330a2e6f7d115469200312beec6d148cbb
[ "MIT", "Apache-2.0", "BSD-3-Clause", "Elastic-2.0" ]
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
24,292
py
source.py
# # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # from abc import ABC from datetime import datetime from typing import Any, Iterable, List, Mapping, MutableMapping, Optional, Tuple import requests from airbyte_cdk.sources import AbstractSource from airbyte_cdk.sources.streams import Stream from airbyte_cd...
a376eeed17199c43858b33dc87980d64d7728399
88ae8695987ada722184307301e221e1ba3cc2fa
/third_party/tflite/src/tensorflow/python/lib/core/custom_float_test.py
a182b32e1524372168dfa9217ff4ca452d373efa
[ "Apache-2.0", "LGPL-2.0-or-later", "MIT", "GPL-1.0-or-later", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
iridium-browser/iridium-browser
71d9c5ff76e014e6900b825f67389ab0ccd01329
5ee297f53dc7f8e70183031cff62f37b0f19d25f
refs/heads/master
2023-08-03T16:44:16.844552
2023-07-20T15:17:00
2023-07-23T16:09:30
220,016,632
341
40
BSD-3-Clause
2021-08-13T13:54:45
2019-11-06T14:32:31
null
UTF-8
Python
false
false
28,108
py
custom_float_test.py
# Copyright 2015 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...
0905befc579b61a02fdd335d35d7ed3f0c02883f
82b05fc158acbb10263a9e2415caf31ed4ea1ff4
/graphbrain/constants.py
e89ea8474993d01e50e063d6ecba1c182666faf8
[ "MIT" ]
permissive
graphbrain/graphbrain
e655de5c9f7d755b7a34649a461762d7def501ff
8cb019eeea4bfba036f66ca742f1b4c3fc2c9c6a
refs/heads/master
2023-09-04T04:07:04.985162
2023-07-19T12:41:20
2023-07-19T12:41:20
51,751,006
534
60
MIT
2023-03-10T21:32:47
2016-02-15T11:25:11
Python
UTF-8
Python
false
false
1,103
py
constants.py
# Pre-defined system atoms sequence_connector = '_seq' sequence_attrs_connector = '_seq_attrs' compound_noun_builder = '+/B/.' lemma_connector = '_lemma' coref_connector = '_coref' coref_res_connector = '_coref_res' main_coref_connector = '_main_coref' type_of_connector = '_type_of' is_connector = '_is' possessive_buil...
ed55c4d3c89f3d665c5a570b1a28c25bf81d26ac
f791462fb1286607d16459c1602d133f8d8c8b59
/examples/zero_inflated_poisson.py
b216563345d6a319a0a96b88c314042558414d25
[ "Apache-2.0" ]
permissive
pyro-ppl/numpyro
b071ed2bd93be41bafc3da8764c9f5617f996d92
ca96eca8e8e1531e71ba559ef7a8ad3b4b68cbc2
refs/heads/master
2023-09-03T15:56:13.252692
2023-08-28T14:32:25
2023-08-28T14:32:25
170,580,540
1,941
219
Apache-2.0
2023-09-04T11:26:11
2019-02-13T21:13:59
Python
UTF-8
Python
false
false
5,856
py
zero_inflated_poisson.py
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 """ Example: Zero-Inflated Poisson regression model ================================================ In this example, we model and predict how many fish are caught by visitors to a state park. Many groups of visitors catch zero fish, ...
96637f09ebfa7426b343f7d1b42598e2a1987f0e
86c9e888f522ede1b231ad324c234555268224cc
/tests/block/test_block_2.py
a2aea4dab6ddf695da6844de0c18f88d36fd02e2
[ "BSD-3-Clause" ]
permissive
python-lz4/python-lz4
4502344a73340ad9207a1d824ac6d3407bdcb22c
58df0834b57d485f2483bf5ccf1007c313b25557
refs/heads/master
2023-08-15T10:16:21.588003
2023-01-01T16:18:26
2023-01-01T16:18:26
57,201,963
250
85
BSD-3-Clause
2023-01-01T16:18:27
2016-04-27T09:39:00
C
UTF-8
Python
false
false
1,816
py
test_block_2.py
import pytest import sys import lz4.block import psutil import os # This test requires allocating a big lump of memory. In order to # avoid a massive memory allocation during byte compilation, we have # to declare a variable for the size of the buffer we're going to # create outside the scope of the function below. Se...
ce89018488971db547ab6b75fb6b9c03bdf83b18
afbae26b958b5ef20548402a65002dcc8e55b66a
/release/stubs.min/Autodesk/Revit/DB/__init___parts/StructuralAsset.py
4c50f48b07aaa8a2fd6033546f3686bf428bd1df
[ "MIT" ]
permissive
gtalarico/ironpython-stubs
d875cb8932c7644f807dc6fde9dd513d159e4f5c
c7f6a6cb197e3949e40a4880a0b2a44e72d0a940
refs/heads/master
2023-07-12T01:43:47.295560
2022-05-23T18:12:06
2022-05-23T18:12:06
95,340,553
235
88
NOASSERTION
2023-07-05T06:36:28
2017-06-25T05:30:46
Python
UTF-8
Python
false
false
9,799
py
StructuralAsset.py
class StructuralAsset(object,IDisposable): """ Represents the properties of a material pertinent to structural analysis. StructuralAsset(name: str,structuralAssetClass: StructuralAssetClass) """ def Copy(self): """ Copy(self: StructuralAsset) -> StructuralAsset Produces a copy of the ...
d80bf8a35efabc883a17d6662e83bd13784253f8
dfa1a1a263eab3ac8bbcb2a00297da7fc82bccfd
/src/graphs/zombie_in_a_matrix.py
7d3699821aa76845ce55d02f9a61179715dc5fb9
[]
no_license
monpro/algorithm
07e79e7a85ca9fe86fac0b3c740de2f2037f5e89
a330e92191642e2965939a06b050ca84d4ed11a6
refs/heads/master
2021-07-01T03:49:59.040611
2020-08-25T12:36:54
2020-08-25T12:36:54
143,118,129
102
0
null
2020-05-31T04:22:46
2018-08-01T07:12:45
Python
UTF-8
Python
false
false
1,103
py
zombie_in_a_matrix.py
class Solution: """ @param grid: a 2D integer grid @return: an integer """ def zombie(self, grid): # write your code here if grid == []: return 0 delta = [[0, 1], [1, 0], [0, -1], [-1, 0]] queue = [] row, column = len(grid), len(gr...
e6dfda080edbf66157bc688b28ae01a4e96e359e
6fdb4eaf5b0e6dbd7db4bf947547541e9aebf110
/app-testing/tests/protocol_analyze_test.py
f513820e07c0124201bf691ec6df2fc357ee6ff9
[ "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
4,311
py
protocol_analyze_test.py
"""Test the Protocol Landing of the page.""" import os import pytest from automation.data.protocol import Protocol from automation.data.protocols import Protocols from automation.driver.drag_drop import drag_and_drop_file from automation.menus.left_menu import LeftMenu from automation.pages.labware_landing import Labw...
73f5f26784274cac3ac5934818ba44874ffbfdcb
2469e5c76c0f70ac64b0f333ad20ccc84a760522
/algos/ppo/ppo_utils/util.py
6f2735cc7f9d22629cb0d2d1060272a589ee1be9
[ "MIT" ]
permissive
facebookresearch/nocturne
8454c10643ea4ff063e10d5f83a5a0d2d90ad1c2
ae0a4e361457caf6b7e397675cc86f46161405ed
refs/heads/main
2023-05-24T02:25:48.963308
2022-10-15T19:19:29
2022-10-15T19:19:29
503,843,020
216
21
MIT
2023-04-22T16:46:06
2022-06-15T16:28:46
Python
UTF-8
Python
false
false
690
py
util.py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # Code modified from https://github.com/marlbenchmark/on-policy import copy import numpy as np import torch import torch....
b06d9e6c226fc1cae1330129e28a4dfcf6f9b94f
098e9d4eed49a0e4573d67022d78e85fd6d2944a
/utils/video_feature/merge_align_i3d.py
fb18c539255dfa91d6375f82404139131e3109c2
[ "MIT" ]
permissive
jayleicn/TVRetrieval
36db2714b7a0c16c5fdfc2a69dd213bdc41e0670
d99a9ea7e724249047d6357f2a607c7ae256f8c6
refs/heads/master
2022-09-16T05:26:28.845738
2022-08-20T22:13:18
2022-08-20T22:13:18
236,402,810
141
28
MIT
2021-06-22T23:18:00
2020-01-27T01:41:06
Python
UTF-8
Python
false
false
3,930
py
merge_align_i3d.py
""" Merge i3d features from all shows. Meanwhile, align it with the imagenet feature so that they have the same number of feature vectors. """ import os import h5py import numpy as np from tqdm import tqdm from collections import Counter def convert_for_single_h5(src_h5, tgt_h5, align_h5_key2len, debug=False): ""...
97f2f98e1dfdd03f77343bb48829b21630562480
44d7c1c8c50b3008125298a4b76350cdfde2e229
/sr_model/Experimental_root/models/__init__.py
367d9611607dffe04cb99e615bdfc821947c5a3d
[ "MIT" ]
permissive
Meta-Portrait/MetaPortrait
f501c0cab2443cc76b82d96f07b4d79e6a85052b
4c3c9e38d000f7db50c3a7ab736161f7aecc741a
refs/heads/main
2023-05-23T16:26:24.479909
2023-05-21T02:11:34
2023-05-21T02:11:34
578,117,887
357
22
null
null
null
null
UTF-8
Python
false
false
517
py
__init__.py
import importlib from basicsr.utils import scandir from os import path as osp # automatically scan and import model modules for registry # scan all the files that end with '_model.py' under the model folder model_folder = osp.dirname(osp.abspath(__file__)) model_filenames = [osp.splitext(osp.basename(v))[0] for v in s...
75ab6690d77e99948cf4bf3eaf9bc3afd8d4ff8e
af1306b0f3e99a2862c067fcdac3c47e7924422e
/scripts/transform2cfradial.py
f6c5335b2bae698f5271a8ba73123114002217ca
[ "MIT" ]
permissive
YvZheng/pycwr
39b2345e2e9fa5313c7f0cd43060480e0d0558e6
8e2fc9b4b6434887fbb3f9450b1bb88ef0305e17
refs/heads/master
2023-09-04T08:11:55.758433
2023-08-30T03:35:05
2023-08-30T03:35:05
210,337,815
184
73
MIT
2023-08-15T06:55:02
2019-09-23T11:27:32
Python
UTF-8
Python
false
false
775
py
transform2cfradial.py
from pycwr.io import read_auto import pyart import sys import os def save_cfradial(china_radar_file, save_file=None): """ :param china_radar_file: radar data filename :param save_file: savename of cfradial format data :return: """ radar = read_auto(china_radar_file).ToPyartRadar() if save_f...
19dde5a7fdc1921d386ea78e7ea4876375843c75
a902290fb3b911676358ae4d93f83061a6c2bd0f
/InvenTree/stock/migrations/0042_auto_20200523_0121.py
66db1441e3cf32008c08cfc6570a45ec619cfbb7
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
inventree/InvenTree
a15e54182c9bfafdf5348cc9a66da1004e23e760
e88a8e99a5f0b201c67a95cba097c729f090d5e2
refs/heads/master
2023-09-03T19:32:35.438375
2023-08-30T00:25:40
2023-08-30T00:25:40
85,894,461
3,077
549
MIT
2023-09-14T14:21:01
2017-03-23T01:44:10
Python
UTF-8
Python
false
false
564
py
0042_auto_20200523_0121.py
# Generated by Django 3.0.5 on 2020-05-23 01:21 from django.db import migrations, models import stock.models class Migration(migrations.Migration): dependencies = [ ('stock', '0041_stockitemtestresult_notes'), ] operations = [ migrations.AlterField( model_name='stockitemtest...
767264cb26a1502b23883c66917de54afa528485
2d05050d0ada29f7680b4df20c10bb85b0530e45
/python/tvm/autotvm/record.py
cde78d1dbc312218e20bb419afcd27bdcad5786f
[ "Apache-2.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "Zlib", "LLVM-exception", "BSD-2-Clause" ]
permissive
apache/tvm
87cb617f9a131fa44e1693303aaddf70e7a4c403
d75083cd97ede706338ab413dbc964009456d01b
refs/heads/main
2023-09-04T11:24:26.263032
2023-09-04T07:26:00
2023-09-04T07:26:00
70,746,484
4,575
1,903
Apache-2.0
2023-09-14T19:06:33
2016-10-12T22:20:28
Python
UTF-8
Python
false
false
12,207
py
record.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...
4f82829aa25c21d0b34c727189810c710c285578
2481cde6506743565dff2b405a2396daf208ab3e
/src/clist/migrations/0047_resource_icon.py
aa101b57e48949003a46bfc8337ff59023a5ff62
[ "Apache-2.0" ]
permissive
aropan/clist
4819a3036d179595e4df8c646aff2ed593b9dad3
5c805b2af71acee97f993f19d8d4e229f7f5b411
refs/heads/master
2023-08-31T11:15:17.987776
2023-08-27T21:51:14
2023-08-27T21:52:16
187,111,853
276
35
Apache-2.0
2023-09-06T18:42:53
2019-05-16T22:57:03
Python
UTF-8
Python
false
false
407
py
0047_resource_icon.py
# Generated by Django 2.2.13 on 2020-07-19 11:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('clist', '0046_auto_20200712_2220'), ] operations = [ migrations.AddField( model_name='resource', name='icon', ...
d5c40491eb58f3409a35c195c888d900b84ba82f
0b134572e3ac3903ebb44df6d4138cbab9d3327c
/app/tests/evaluation_tests/test_tasks.py
50f3f1c2a9e2b09bbf9765f7a6bde38c8b3053fc
[ "Apache-2.0" ]
permissive
comic/grand-challenge.org
660de3bafaf8f4560317f1dfd9ae9585ec272896
dac25f93b395974b32ba2a8a5f9e19b84b49e09d
refs/heads/main
2023-09-01T15:57:14.790244
2023-08-31T14:23:04
2023-08-31T14:23:04
4,557,968
135
53
Apache-2.0
2023-09-14T13:41:03
2012-06-05T09:26:39
Python
UTF-8
Python
false
false
14,620
py
test_tasks.py
from pathlib import Path import pytest import requests from actstream.actions import unfollow from django.conf import settings from django.core.cache import cache from django.test import TestCase from django.utils.html import format_html from redis.exceptions import LockError from grandchallenge.algorithms.models imp...
66338ec0910b8b4513c22ee5fa767d1122767f39
ff4ce3522d502248f56b32438b303c3301185709
/cwltool/singularity_utils.py
e4cc889182accfb85cf6a3aca43fc78eae0cd425
[ "Apache-2.0" ]
permissive
common-workflow-language/cwltool
d8304f3dcd6e31bda6d0ea11452b692987e39b28
bd89c5694685bff46bf56fb32316c8f6fe0d799d
refs/heads/main
2023-08-24T09:43:39.331516
2023-08-23T15:05:17
2023-08-23T16:45:11
43,816,051
336
258
Apache-2.0
2023-09-13T10:55:19
2015-10-07T13:03:05
Python
UTF-8
Python
false
false
1,094
py
singularity_utils.py
"""Support for executing Docker format containers using Singularity {2,3}.x or Apptainer 1.x.""" import os import os.path from subprocess import DEVNULL, PIPE, Popen, TimeoutExpired # nosec from typing import Optional _USERNS: Optional[bool] = None def singularity_supports_userns() -> bool: """Confirm if the v...
ee39cbbdc6c4f5b16768b4cb648d98d42a85d1b1
b8d80a23cb27af08a1c4d34b478c76228ae5fbb4
/insights/tests/parsers/test_networkmanager_config.py
042599855f55ef6e094a62a861bfffdb02b6de7a
[ "Apache-2.0" ]
permissive
RedHatInsights/insights-core
bb243e2bf8a52446fefb95ebe05478d6e35efe2e
b0ea07fc3f4dd8801b505fe70e9b36e628152c4a
refs/heads/master
2023-09-04T21:15:40.456257
2023-09-04T10:46:56
2023-09-04T10:46:56
92,518,221
144
290
Apache-2.0
2023-09-14T02:40:13
2017-05-26T14:23:11
Python
UTF-8
Python
false
false
5,114
py
test_networkmanager_config.py
from insights.parsers.networkmanager_config import NetworkManagerConfig from insights.parsers import networkmanager_config from insights.tests import context_wrap import doctest NETWORKMANAGER_CONF = """ # Configuration file for NetworkManager. # # See "man 5 NetworkManager.conf" for details. # # The directories /usr/...
48249e1f40d9b05badcdf1fb5358968ec2206616
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/A_Primer_on_Scientific_Programming_with_Python/diffeq/inverse_function.py
bf283384079fbeb7fba41146398585c794d779fb
[]
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,088
py
inverse_function.py
""" Given a set of coordinates in the array xcoor, and a Python function f(x), compute the inverse of f(x), call it g(x), and return the array g(xcoor). The computation is done point by point. We have f(g(x)) = x which holds at every point xi: f(g(xi)) = xi We do not know the value g(xi) so let us call it g...
73fe3967672eb07a5267bb50ba9e590587433aba
3ec38f732b21b0a00e822dac730bdc1748902144
/scar/providers/aws/clients/iam.py
e85783990bb41d28fff00a456c63b47df6d9fe64
[ "Apache-2.0" ]
permissive
grycap/scar
e5594c1eb79a0730409c97d48bc511757a05dcbd
e6c8b06a43b310d2c1e58d7826239e259dd826d7
refs/heads/master
2023-08-22T00:39:28.004454
2023-05-22T11:01:10
2023-05-22T11:01:10
91,441,209
613
59
Apache-2.0
2022-11-29T06:36:46
2017-05-16T09:35:57
Python
UTF-8
Python
false
false
2,092
py
iam.py
# Copyright (C) GRyCAP - I3M - UPV # # 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...