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
95de3b65d52623abb3de954098fd277c94d85626
263170e7dca79883314273bb35aef1449e018361
/tests/fixtures/linecoverage/setter_getter.py
ca3010d26b771110af55b11016cad85f7871d249
[ "CC-BY-4.0", "LGPL-2.1-or-later", "MIT" ]
permissive
se2p/pynguin
029cfd9c43c08a2f687a816749828054e409646e
cc083252c7054824bfaf200533a8b7ad45f7c4fb
refs/heads/main
2023-08-23T16:58:04.568755
2023-08-18T13:11:44
2023-08-18T13:11:44
282,944,472
1,223
65
MIT
2023-08-18T13:12:29
2020-07-27T15:50:19
Python
UTF-8
Python
false
false
308
py
setter_getter.py
# This file is part of Pynguin. # # SPDX-FileCopyrightText: 2019–2023 Pynguin Contributors # # SPDX-License-Identifier: MIT # class SetterGetter: attribute = 0 def setter(self, new_value) -> None: self.attribute = new_value def getter(self) -> int: return self.attribute
c46466571d167d5208b28e70eace77d1da61972d
ef2d4ed65259b3f614426664939e9fb938715299
/darknet/examples/detector.py
40bb365e68211c513db9d63847ac95070f5eab98
[ "MIT", "LicenseRef-scancode-yolo-1.0", "WTFPL", "LicenseRef-scancode-yolo-2.0", "GPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
guanshuicheng/invoice
292ab7bd20ab07d4bdf9ca0f60ae2cf0e3bb06a4
bd201ed8e977421277775075a107a475bce0490d
refs/heads/master
2023-06-24T05:20:37.849072
2023-06-16T02:56:09
2023-06-16T02:56:09
200,155,602
1,399
379
MIT
2023-03-25T01:35:03
2019-08-02T03:06:41
C
UTF-8
Python
false
false
775
py
detector.py
# Stupid python path shit. # Instead just add darknet.py to somewhere in your python path # OK actually that might not be a great idea, idk, work in progress # Use at your own risk. or don't, i don't care import sys, os sys.path.append(os.path.join(os.getcwd(),'python/')) import darknet as dn import pdb dn.set_gpu(0...
5b64b889c19e908514be254a9c61453177afb907
e63ba8150f2596aaf573a8a09f048c6d4478bd3d
/lib/python/mod_python/Session.py
40b2b53a9d65cc16e5a651e82fe0ec4c68fbc649
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
grisha/mod_python
44ec5d1557be4416fb4ecfbc7afefdcc751840e3
9db86bca5106b5cf7ceca7645ec0208446c71e25
refs/heads/master
2023-08-30T10:54:09.295971
2023-08-18T17:28:08
2023-08-18T17:28:08
7,504,434
199
81
Apache-2.0
2023-04-21T00:58:56
2013-01-08T16:00:35
C
UTF-8
Python
false
false
29,136
py
Session.py
# vim: set sw=4 expandtab : # # Copyright (C) 2000, 2001, 2013 Gregory Trubetskoy # Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Apache Software 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...
eaf1bfebe6488b2e48fe3ff84667281257b16ec9
0d105ee427502ab0d51d1330e13588a1a52bb500
/termsandconditions/decorators.py
895786924f1e9228cd40bd8c64ba8e71ae4d52c9
[ "BSD-3-Clause" ]
permissive
cyface/django-termsandconditions
959ada3a3f30b43c829afcf5b8c6afed03102d72
baa6305bcda0d326deae1fdbba16f506ba6e0b43
refs/heads/main
2023-08-31T03:55:23.363179
2023-08-29T14:11:52
2023-08-29T14:21:45
4,911,554
107
63
BSD-3-Clause
2023-09-13T13:02:08
2012-07-05T17:21:17
Python
UTF-8
Python
false
false
1,274
py
decorators.py
"""View Decorators for termsandconditions module""" from urllib.parse import urlparse, urlunparse from functools import wraps from django.http import HttpResponseRedirect, QueryDict from .models import TermsAndConditions from .middleware import ACCEPT_TERMS_PATH def terms_required(view_func): """ This decora...
cff12da0030e00e9772a4103be746fea458ba0fb
f4eaf2e121bc6238c16a788767f4836505f954b0
/crawler/code_base/csxbot-0.3/citeseerx_crawl/urls.py
5030f779d84aeae051d64b3b95e0d482c12c7cde
[ "Apache-2.0" ]
permissive
SeerLabs/CiteSeerX
5abd92bb16e0275ef3a91c29790c59ea04527e4d
49ecb503fb1ced8e2c2e94c3e100e5d4dc410ea6
refs/heads/master
2021-04-12T03:53:59.996465
2019-11-25T18:29:20
2019-11-25T18:29:20
11,351,492
114
53
NOASSERTION
2019-11-25T18:29:21
2013-07-11T19:51:28
HTML
UTF-8
Python
false
false
2,262
py
urls.py
from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', # Example: # (r'^citeseerx_crawl/', include('citeseerx_crawl.foo.urls')), # Uncomment the admin/doc line below and add 'django.c...
c708990119cab887cbeb356efcb98afb0f8d8ecb
fba876caecb7a55254cf92434a9a8a629ed47b93
/apps/jobs/migrations/0001_squashed_0005_upload_unique_random_filename.py
87e325825001bcf4f6dac758584fd954c79fa47b
[ "BSD-3-Clause" ]
permissive
Cloud-CV/EvalAI
f6eb96509f679cb5765fd4b4a49e5b3f5a5551d6
7e3485f2f3c77b146b72cbbc8de1b15bf0dfe0db
refs/heads/master
2023-09-04T05:03:59.087293
2023-08-30T19:26:13
2023-08-30T19:26:13
71,516,397
1,722
983
NOASSERTION
2023-09-07T18:02:48
2016-10-21T00:51:45
Python
UTF-8
Python
false
false
4,344
py
0001_squashed_0005_upload_unique_random_filename.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2017-02-21 17:01 from __future__ import unicode_literals import base.utils from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = ...
9810fac2577cc5f535f7097f3d86a395a38ac1b4
3a24f63c8742560993b5465b26339e7c0ed05a27
/crates/ruff_python_formatter/resources/test/fixtures/black/simple_cases/pep_604.py
2ff5ca48298eae2814eb0e13027dc21dc49e07b7
[ "BSD-3-Clause", "0BSD", "LicenseRef-scancode-free-unknown", "GPL-1.0-or-later", "MIT", "Apache-2.0" ]
permissive
astral-sh/ruff
8f1de11263474c6293454b02c728df2f113801db
82410524d9612f11387c2675a03869d489bb97ef
refs/heads/main
2023-08-02T23:20:34.351174
2023-08-02T21:32:43
2023-08-02T21:32:43
523,043,277
2,264
122
MIT
2023-09-14T20:08:59
2022-08-09T17:17:44
Rust
UTF-8
Python
false
false
269
py
pep_604.py
def some_very_long_name_function() -> my_module.Asdf | my_module.AnotherType | my_module.YetAnotherType | None: pass def some_very_long_name_function() -> my_module.Asdf | my_module.AnotherType | my_module.YetAnotherType | my_module.EvenMoreType | None: pass
b2507f4d39efa2c008cafdfa44380beeb7bb5c63
6f1f9107ed033fb189f5ed999ba7c356cb15b2bf
/ch14-interact-with-pdf-files/3-challenge-PdfFileSplitter-class.py
5357574552778286925a87d6b9c932c9362d7c96
[]
no_license
realpython/python-basics-exercises
f0b28c73517243950b4ee65e7f1278e889644beb
6aa39b8ed915d82060e24dcb691fcc3f133fc1dd
refs/heads/master
2023-08-19T16:50:51.456898
2023-08-02T14:10:24
2023-08-02T14:10:24
128,671,950
958
527
null
2023-08-02T10:58:41
2018-04-08T18:53:05
Python
UTF-8
Python
false
false
1,796
py
3-challenge-PdfFileSplitter-class.py
# 14.5 - Challenge: PdfFileSplitter Class # Solution to challenge from pathlib import Path from PyPDF2 import PdfFileReader, PdfFileWriter class PdfFileSplitter: """Class for splitting a PDF into two files.""" def __init__(self, pdf_path): # Open the PDF file with a new PdfFileReader instance ...
31eca0fd389bbc293b4ce8d97521dc8f4e034761
03a7f7a7eb8c16b537b65ec21f465bb0335bc3b8
/pythran/tests/scipy/hausdorff.py
ac3bd2cc80117b2bdd8a307546bff426a86c435a
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
serge-sans-paille/pythran
a0e22af1ac5e1f34f3f29dce36502f4a897b5186
d8ab07b4b3b690f50603cb4d08ba303d3af18b90
refs/heads/master
2023-09-01T16:04:03.289285
2023-08-30T09:13:58
2023-08-31T08:03:22
4,479,494
1,882
200
BSD-3-Clause
2023-09-06T20:08:10
2012-05-29T08:02:14
C++
UTF-8
Python
false
false
2,850
py
hausdorff.py
# # Copyright (C) Tyler Reddy, Richard Gowers, and Max Linke, 2016 # # Distributed under the same BSD license as Scipy. # # adapted from scipy's cython version import numpy as np import numpy.random as random #pythran export directed_hausdorff(float64[:,:], float64[:,:], int) #pythran export directed_hausdorff_noshuf...
557a7e7852c17a92d09610fa9fe11046f6f7d2fc
ea49dd7d31d2e0b65ce6aadf1274f3bb70abfaf9
/problems/0784_Letter_Case_Permutation/washing.py
22dfc50ad610bf4fe72c399118829a190af70aeb
[]
no_license
yychuyu/LeetCode
907a3d7d67ada9714e86103ac96422381e75d683
48384483a55e120caf5d8d353e9aa287fce3cf4a
refs/heads/master
2020-03-30T15:02:12.492378
2019-06-19T01:52:45
2019-06-19T01:52:45
151,345,944
134
331
null
2019-08-01T02:56:10
2018-10-03T01:26:28
C++
UTF-8
Python
false
false
526
py
washing.py
class Solution(object): def letterCasePermutation(self, S): """ :type S: str :rtype: List[str] """ str_list = [""] for i in range(len(S)): length = len(str_list) for j in range(length): str_list.append(str_list[j] + S[i].lower()...
90081cd8789f50e8998697623c1ea4ccbc0cf740
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-ccm/huaweicloudsdkccm/v1/__init__.py
17e33528b55229aa1b0cd1df6b0035e09b7a547b
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
11,428
py
__init__.py
# coding: utf-8 from __future__ import absolute_import from huaweicloudsdkccm.v1.ccm_client import CcmClient from huaweicloudsdkccm.v1.ccm_async_client import CcmAsyncClient from huaweicloudsdkccm.v1.model.batch_create_ca_tags_request import BatchCreateCaTagsRequest from huaweicloudsdkccm.v1.model.batch_create_ca_ta...
dcde02789d28227555fd9fc709c7e1dc045f3a50
0760fb4901a75766921a205b55686d6d6f049b30
/python/ray/_private/runtime_env/uri_cache.py
97871baba1cbb5d145de832ecdf693f24906a490
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
ray-project/ray
a4bb6940b08b59a61ef0b8e755a52d8563a2f867
edba68c3e7cf255d1d6479329f305adb7fa4c3ed
refs/heads/master
2023-08-31T03:36:48.164405
2023-08-31T03:20:38
2023-08-31T03:20:38
71,932,349
29,482
5,669
Apache-2.0
2023-09-14T21:48:14
2016-10-25T19:38:30
Python
UTF-8
Python
false
false
4,236
py
uri_cache.py
import logging from typing import Set, Callable default_logger = logging.getLogger(__name__) DEFAULT_MAX_URI_CACHE_SIZE_BYTES = (1024**3) * 10 # 10 GB class URICache: """ Caches URIs up to a specified total size limit. URIs are represented by strings. Each URI has an associated size on disk. Whe...
23e8cef8ee3cc3bf0f39d8993cdafbe6e4677d6f
974d04d2ea27b1bba1c01015a98112d2afb78fe5
/test/ir/inference/test_onednn_conv_concat_activation_fuse_pass.py
1a71841d22cc089d88d67c8d27dc483a28263e41
[ "Apache-2.0" ]
permissive
PaddlePaddle/Paddle
b3d2583119082c8e4b74331dacc4d39ed4d7cff0
22a11a60e0e3d10a3cf610077a3d9942a6f964cb
refs/heads/develop
2023-08-17T21:27:30.568889
2023-08-17T12:38:22
2023-08-17T12:38:22
65,711,522
20,414
5,891
Apache-2.0
2023-09-14T19:20:51
2016-08-15T06:59:08
C++
UTF-8
Python
false
false
6,014
py
test_onednn_conv_concat_activation_fuse_pass.py
# Copyright (c) 2022 PaddlePaddle 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 appli...
8132a55de1d7f2a2288085d3e599ea987bd28b5f
a5b66100762c0ca7076de26645ef1b732e0ee2d8
/python_toolbox/wx_tools/keyboard/keys/win_keys.py
766f2294b9d4e2e9646cd267dc47b5ec5f2553d2
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
cool-RR/python_toolbox
63400bbc004c63b32fe421b668a64bede4928e90
cb9ef64b48f1d03275484d707dc5079b6701ad0c
refs/heads/master
2022-01-26T14:41:29.194288
2021-12-25T06:49:40
2021-12-25T06:49:40
3,066,283
130
15
NOASSERTION
2021-12-25T06:49:41
2011-12-29T01:39:51
Python
UTF-8
Python
false
false
342
py
win_keys.py
# Copyright 2009-2017 Ram Rachum. # This program is distributed under the MIT license. '''This module defines Windows-specific keys.''' import wx from ..key import Key back_keys = ( Key(wx.WXK_LEFT, alt=True), ) back_key_string = u'Alt-\u00ab' forward_keys = ( Key(wx.WXK_RIGHT, alt=True), ) forward_key_...
22b0ebcc541db65a05ef2f979cb118938a565683
11cd362cdd78c2fc48042ed203614b201ac94aa6
/desktop/core/ext-py3/eventlet-0.30.2/tests/isolated/env_tpool_size.py
a34a9c7ca1b9171a58a239745f9252e75b2ffc1c
[ "MIT", "CC-BY-3.0", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "ZPL-2.0", "Unlicense", "LGPL-3.0-only", "CC0-1.0", "LicenseRef-scancode-other-permissive", "CNRI-Python", "LicenseRef-scancode-warranty-disclaimer", "GPL-2.0-or-later", "Python-2.0", ...
permissive
cloudera/hue
b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908
dccb9467675c67b9c3399fc76c5de6d31bfb8255
refs/heads/master
2023-08-31T06:49:25.724501
2023-08-28T20:45:00
2023-08-28T20:45:00
732,593
5,655
2,244
Apache-2.0
2023-09-14T03:05:41
2010-06-21T19:46:51
JavaScript
UTF-8
Python
false
false
611
py
env_tpool_size.py
__test__ = False if __name__ == '__main__': import sys import time from eventlet import tpool import eventlet current = [0] highwater = [0] def count(): current[0] += 1 time.sleep(0.01) if current[0] > highwater[0]: highwater[0] = current[0] cur...
62e2b260a3c6ab4abf87811acb904be6ce9910ac
5e601244fbf32ee5190fb5210a0cd334473a0abe
/projects/LinuxSystemOps/SoftwareManagement/nginx/retrieveLatestOpenSSLVersionUrl.py
604fd70cc591e2a829f3129f9320b6e3623b9125
[]
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
1,824
py
retrieveLatestOpenSSLVersionUrl.py
#!/usr/bin/python # encoding: utf-8 # -*- coding: utf8 -*- """ Created by PyCharm. File: LinuxBashShellScriptForOps:retrieveLatestOpenSSLVersionUrl.py User: Guodong Create Date: 2017/3/7 Create Time: 14:25 retrieve, fetch, find latest version of OpenSSL URL """ import re i...
f9fe6d0cecc5229853d71fb61eaee295048a0c78
a2b20597759990445081057d35d113434cfcf970
/stubs/typeshed/typeshed/stubs/pywin32/win32/lib/win32cryptcon.pyi
c3865abff6217b38f0cd8821730b629e01ec1545
[ "Apache-2.0", "MIT" ]
permissive
facebook/pyre-check
34059599c02b65605c574f13555229f3b931fd4e
fe8ccedc572cc1faa1fd01e9138f65e982875002
refs/heads/main
2023-09-03T19:10:11.587028
2023-09-02T07:40:35
2023-09-02T07:40:35
110,274,488
6,703
575
MIT
2023-09-13T17:02:32
2017-11-10T17:31:36
OCaml
UTF-8
Python
false
false
54,316
pyi
win32cryptcon.pyi
def GET_ALG_CLASS(x: int) -> int: ... def GET_ALG_TYPE(x: int) -> int: ... def GET_ALG_SID(x: int) -> int: ... ALG_CLASS_ANY: int ALG_CLASS_SIGNATURE: int ALG_CLASS_MSG_ENCRYPT: int ALG_CLASS_DATA_ENCRYPT: int ALG_CLASS_HASH: int ALG_CLASS_KEY_EXCHANGE: int ALG_CLASS_ALL: int ALG_TYPE_ANY: int ALG_TYPE_DSS: int ALG_TY...
502c1a3dc817cc5e2dcede8432c3104f8ac6a80c
d91d19da3589c3f69a834bbb9834386e80f100e0
/datashader/glyphs/line.py
05baad0cf61b4132a9fc5e3990624877914101e7
[]
permissive
holoviz/datashader
11d518371e974c02ba3843871e3e0905e0c83956
b510594eb771d14cff3b69efca8ddd37ca3a1046
refs/heads/main
2023-08-18T13:55:24.214980
2023-08-17T08:45:48
2023-08-17T08:45:48
48,504,165
1,040
133
BSD-3-Clause
2023-09-11T09:51:30
2015-12-23T18:02:20
Python
UTF-8
Python
false
false
66,326
py
line.py
from __future__ import annotations import math import numpy as np from toolz import memoize from datashader.antialias import two_stage_agg from datashader.glyphs.points import _PointLike, _GeometryLike from datashader.utils import isnull, isreal, ngjit from numba import cuda import numba.types as nb_types try: i...
7c7e658c1bab5a1dd21b35376e2dd16422e12ae1
b3db95f1741e50140a6dd14f199cc585e3b61254
/tools/releasetools/test_validate_target_files.py
48b563d7b009475db03191987349c6bfe1c71316
[ "Apache-2.0" ]
permissive
aosp-mirror/platform_build
58bc3f117b721b555203c04b9a2636c51dfc009d
ef9ba4d22bb56b0455a2d207300cf7ed18d8e5dc
refs/heads/main
2023-08-17T04:01:06.769170
2023-08-17T00:35:36
2023-08-17T00:35:36
65,832
215
251
null
2023-08-04T13:45:36
2008-10-21T18:19:56
Makefile
UTF-8
Python
false
false
13,647
py
test_validate_target_files.py
# # Copyright (C) 2018 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
f882140d16f2104a79f0bd5bd82023280af340c4
185946ad4ac5a1df75ad8b734c31e81f8d77e6c6
/tests/__init__.py
3d75d92e8a66c26ac00a6df235a1804155979c92
[ "MIT" ]
permissive
konstantint/PassportEye
ef4f9fd6dd3b97e18554a062fdb6aeb6bae5d365
a3541fc5689edcc24b86ba7392c750fd7468bb02
refs/heads/master
2023-03-09T22:04:11.925105
2023-02-26T22:18:16
2023-02-26T23:12:07
69,086,175
340
119
MIT
2022-03-17T13:46:59
2016-09-24T06:58:44
Python
UTF-8
Python
false
false
178
py
__init__.py
''' Tests module. Meant for use with py.test. Organize tests into files, each named xxx_test.py Read more here: http://pytest.org/ Author: Konstantin Tretyakov License: MIT '''
4589abe21350af736d1324d825f16566b64527ef
dee9d197c6adfbdb49cd9e33bd3f8614b7d98f06
/mt-bluebert/mt_bluebert/blue_train.py
615d8e9e3377adc2196e95789b5932b1102c9e72
[ "LicenseRef-scancode-us-govt-public-domain" ]
permissive
ncbi-nlp/bluebert
2ccd72a19283f8a206e30426375322ec6831398d
f4b8af9db9f8c4503d62d0c205de7256f38c5890
refs/heads/master
2023-05-30T11:13:51.757657
2022-04-11T01:44:30
2022-04-11T01:44:30
190,591,634
422
73
NOASSERTION
2023-03-25T01:21:44
2019-06-06T14:02:54
Python
UTF-8
Python
false
false
19,152
py
blue_train.py
# Copyright (c) Microsoft. All rights reserved. # Modified by Yifan Peng import argparse import copy import json import os import random from datetime import datetime import numpy as np import torch from pytorch_pretrained_bert.modeling import BertConfig from tensorboardX import SummaryWriter # from experiments.glue....
3df0a8ad1de8a7bb931d9e6cfb08bbb412e9d728
99d79ada2d3b7746573f071823ec61f5f853d7a3
/magma/mantle/queue.py
bfefffcacc918a7be16d60f7978cb8e753eb816f
[ "MIT" ]
permissive
phanrahan/magma
d8062c6163e2c2c2cedef82317dc8cc40038220a
b05fe5303ed17e668c6ec2ec3558cd5a52eff787
refs/heads/master
2023-08-23T18:08:22.494869
2023-08-08T18:53:05
2023-08-17T16:16:44
84,332,281
227
21
NOASSERTION
2023-09-14T21:32:19
2017-03-08T14:57:09
Python
UTF-8
Python
false
false
2,501
py
queue.py
""" Based on https://github.com/chipsalliance/chisel3/blob/master/src/main/scala/chisel3/util/Decoupled.scala (missing support for `flow` and `pipe` parameters). """ from magma.clock_io import ClockIO from magma.conversions import enable from magma.generator import Generator2 from magma.interface import IO from magma.m...
78b9af8dd716b0eb6af069c8ef0ab9997fdd4c9f
b347bc4b850dee4a8a9a171b563a3f31230ce1c7
/sktime/forecasting/adapters/__init__.py
522ab5d6cb15078171f5e874767207ce3ef4ed99
[ "BSD-3-Clause" ]
permissive
sktime/sktime
5963962df338c5931a2f9f1794d1203c50ddc27e
70b2bfaaa597eb31bc3a1032366dcc0e1f4c8a9f
refs/heads/main
2023-08-22T18:20:08.022950
2023-08-22T15:24:39
2023-08-22T15:24:39
156,401,841
1,117
268
BSD-3-Clause
2023-09-14T20:44:21
2018-11-06T15:08:24
Python
UTF-8
Python
false
false
256
py
__init__.py
"""Module containing adapters to other forecasting framework packages.""" # copyright: sktime developers, BSD-3-Clause License (see LICENSE file) __all__ = ["HCrystalBallAdapter"] from sktime.forecasting.adapters._hcrystalball import HCrystalBallAdapter
f24879467b065ea5486dee1ffd9a76201cd85317
cb35df97989fcc46831a8adb8de3434b94fd2ecd
/tests/test_materials.py
4a37fbebb6c10fdf3c48fcc30ba069f64d2bc63c
[ "MIT", "BSD-3-Clause" ]
permissive
facebookresearch/pytorch3d
6d93b28c0f36a4b7efa0a8143726200c252d3502
a3d99cab6bf5eb69be8d5eb48895da6edd859565
refs/heads/main
2023-09-01T16:26:58.756831
2023-08-26T20:55:56
2023-08-26T20:55:56
217,433,767
7,964
1,342
NOASSERTION
2023-08-25T10:00:26
2019-10-25T02:23:45
Python
UTF-8
Python
false
false
4,069
py
test_materials.py
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import unittest import torch from pytorch3d.renderer.materials import Materials from .common_testing import T...
c420f3871bf0fe8730beb6d41ccefc394a8e5cf1
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/HLTrigger/Configuration/python/HLT_75e33/eventsetup/hltESPKFFittingSmootherForL2Muon_cfi.py
cb1dad8e625a5be194199a515f0da68882c0a11e
[ "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
768
py
hltESPKFFittingSmootherForL2Muon_cfi.py
import FWCore.ParameterSet.Config as cms hltESPKFFittingSmootherForL2Muon = cms.ESProducer("KFFittingSmootherESProducer", BreakTrajWith2ConsecutiveMissing = cms.bool(False), ComponentName = cms.string('hltESPKFFittingSmootherForL2Muon'), EstimateCut = cms.double(-1.0), Fitter = cms.string('hltESPKFTraj...
f6c174729b2093bec96299dcc59e7b3d56c5508d
53940f2aaf1537bb0c701f3963225aae5edc56e0
/src/deepqmc/wf/nn_wave_function/env.py
65bedb40d6b50fb2fd03bbd57c0ed3d695fd8177
[ "MIT" ]
permissive
deepqmc/deepqmc
d44d32c7ed528bc2c0a32e0c8a7f1d3ce70ad007
bf297a34c0304f9deb3a5ad704ddd3a8a3d7eea0
refs/heads/master
2023-08-16T16:30:54.227839
2023-08-02T13:24:22
2023-08-08T09:18:02
226,350,919
313
64
MIT
2023-09-14T18:06:13
2019-12-06T14:50:59
Python
UTF-8
Python
false
false
3,631
py
env.py
import haiku as hk import jax.numpy as jnp from ...physics import pairwise_diffs from ...utils import norm, unflatten class ExponentialEnvelopes(hk.Module): r"""Create exponential envelopes centered on the nuclei.""" def __init__( self, mol, n_determinants, *, isotrop...
b2620023b28c55ed7d5f34bb79313e1012a2aae7
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/7_graph/带权图最短路和最小生成树/最短路扩展应用/AcWing 341. 最优贸易.py
b2ed106e964e00f263e776f966f539124beca2cd
[]
no_license
981377660LMT/algorithm-study
f2ada3e6959338ae1bc21934a84f7314a8ecff82
7e79e26bb8f641868561b186e34c1127ed63c9e0
refs/heads/master
2023-09-01T18:26:16.525579
2023-09-01T12:21:58
2023-09-01T12:21:58
385,861,235
225
24
null
null
null
null
UTF-8
Python
false
false
273
py
AcWing 341. 最优贸易.py
# 枚举中间点 # 从 1 走到 i 的过程中,买入水晶球的最低价格 dmin[i]; # 从 i 走到 n 的过程中,卖出水晶球的最高价格 dmax[i]; # 然后枚举每个城市作为买卖的中间城市,求出 dmax[i] - dmin[i] 的最大值即可。
023d7391a983facc8e38fd61eeca62c6ad0d294a
e17660bcf07fe3221a18dc3da68f06c85c40cbf9
/src/py2app/recipes/multiprocessing.py
b3b6e5870d4828065e6bfa6693dd0ef814529d2f
[ "MIT", "Python-2.0" ]
permissive
ronaldoussoren/py2app
bca832cab41b9a365342d400aed4ebbbe80bed0c
e9c7a88f34d79c41a3a344ccc14cd97c24904b9f
refs/heads/master
2023-09-01T05:14:53.388393
2023-04-16T08:34:06
2023-04-16T08:34:06
233,826,136
292
34
NOASSERTION
2023-08-30T17:54:44
2020-01-14T11:27:41
Python
UTF-8
Python
false
false
1,323
py
multiprocessing.py
import textwrap import typing from io import StringIO from modulegraph.modulegraph import ModuleGraph from .. import build_app from ._types import RecipeInfo def check(cmd: "build_app.py2app", mf: ModuleGraph) -> typing.Optional[RecipeInfo]: m = mf.findNode("multiprocessing") if m is None: return No...
523d839b9d2bd858b06ca5a9b2f18b565ff25faf
af101b467134e10270bb72d02f41f07daa7f57d8
/tests/test_models/test_utils/test_sampling_utils.py
4da730ffff207057d5699655b9ba883b90dc30e7
[ "Apache-2.0" ]
permissive
open-mmlab/mmagic
4d864853417db300de4dfe7e83ce380fd1557a23
a382f143c0fd20d227e1e5524831ba26a568190d
refs/heads/main
2023-08-31T14:40:24.936423
2023-08-30T05:05:56
2023-08-30T05:05:56
203,999,962
1,370
192
Apache-2.0
2023-09-14T11:39:18
2019-08-23T13:04:29
Jupyter Notebook
UTF-8
Python
false
false
2,130
py
test_sampling_utils.py
# Copyright (c) OpenMMLab. All rights reserved. import numpy as np import pytest import torch from mmagic.models.utils.sampling_utils import label_sample_fn, noise_sample_fn def test_noise_sample_fn(): # test noise is a callable function noise_callable = torch.randn noise = noise_sample_fn(noise_callable...
29fb2d5a0eabaf4fe512d4e18978b07a04eaac0d
c5f7ea2f03ce6e0ff398521031cadc83c023a4bf
/pythonping/__init__.py
2b3c29e2f07264c917a49c0ddf634d23274eef7d
[ "MIT" ]
permissive
alessandromaggio/pythonping
aec00a44f9386834919ed1e7c30efc88485e7235
afa1e9588002bb2cade23451326bdbea06e7496e
refs/heads/master
2023-04-09T17:12:36.659125
2022-10-25T10:31:35
2022-10-25T10:31:35
126,620,308
193
88
MIT
2023-08-19T23:13:36
2018-03-24T16:51:53
Python
UTF-8
Python
false
false
3,355
py
__init__.py
import sys from random import randint from . import network, executor, payload_provider from .utils import random_text # this needs to be available across all thread usages and will hold ints SEED_IDs = [] def ping(target, timeout=2, count=4, size=1, interval=0, payload=...
2a47150545ee0d8ca07af97c3e8438d921273b00
1b94c7cfd66804fe8d40b5def35e4b9b18d69ba2
/old_py2/controllers/apidocs_controller.py
c0405bf66b4a45e8c983751f378d00bab9c55b13
[ "MIT" ]
permissive
the-blue-alliance/the-blue-alliance
3dc210a9611ce9b240907ffd420f78040318dcdc
6d42f3cdb2f785d192f2871419e58aaae3445029
refs/heads/py3
2023-08-22T21:02:36.398100
2023-08-22T19:14:01
2023-08-22T19:14:01
888,427
344
263
MIT
2023-09-14T18:35:20
2010-09-04T20:34:11
HTML
UTF-8
Python
false
false
583
py
apidocs_controller.py
import os from google.appengine.ext.webapp import template from consts.notification_type import NotificationType from controllers.base_controller import CacheableHandler from template_engine import jinja2_engine class AddDataHandler(CacheableHandler): CACHE_VERSION = 1 CACHE_KEY_FORMAT = "add_data_instructi...
3d4b9ab67747479069a5b70f0f5e0d6c3e218c59
aee26a4c731a84481a499679c3d4cef9ec954aed
/tacker/tests/functional/base.py
3b4bd560f9c71deab183db0d998c55072efe5a42
[ "Apache-2.0" ]
permissive
openstack/tacker
6976cbee3afadfd9390849b56da2837feb93e912
9c7918f0b501cdeaffae40f585b76fc92b8e196e
refs/heads/master
2023-09-04T01:22:43.106241
2023-08-31T00:06:42
2023-08-31T00:42:20
21,259,951
125
172
Apache-2.0
2021-05-09T06:13:08
2014-06-27T01:11:56
Python
UTF-8
Python
false
false
20,311
py
base.py
# Copyright 2015 Brocade Communications System, 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 ...
ca72c056f3aa482e742cdab86c31a80e53cdf206
e9ef3cd143478660d098668a10e67544a42b5878
/Lib/corpuscrawler/crawl_tpi.py
54f5ca425d9457c2b7ab2ca68b8e2527ccf27e49
[ "Apache-2.0" ]
permissive
google/corpuscrawler
a5c790c19b26e6397b768ce26cf12bbcb641eb90
10adaecf4ed5a7d0557c8e692c186023746eb001
refs/heads/master
2023-08-26T04:15:59.036883
2022-04-20T08:18:11
2022-04-20T08:18:11
102,909,145
119
40
NOASSERTION
2022-04-20T08:18:12
2017-09-08T22:21:03
Python
UTF-8
Python
false
false
3,553
py
crawl_tpi.py
# coding: utf-8 # Copyright 2017 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 required by ap...
33f14264376721a29717051bc7af53cf27b36bdd
c3e0a6919caf85c35239ef23084df9bbf8dd61c3
/pypeit/deprecated/waveio_old.py
ad5b79136015ceb16a2d83fe49910730439330c9
[ "BSD-3-Clause" ]
permissive
pypeit/PypeIt
6eb9e5afd62acc9d363e497cd9e367d620f86ea4
0d2e2196afc6904050b1af4d572f5c643bb07e38
refs/heads/release
2023-08-25T21:15:59.113114
2023-06-04T15:23:39
2023-06-04T15:23:39
36,958,428
136
98
BSD-3-Clause
2023-09-12T17:42:15
2015-06-05T22:25:37
Python
UTF-8
Python
false
false
9,725
py
waveio_old.py
""" Module containing unused routines from ``pypeit.core.wavecal.waveio`` Created: 05-19-2022, TEB """ import glob import os import datetime import numpy as np from astropy.table import Table, Column, vstack from pypeit import msgs from pypeit.core.wavecal import defs, waveio from pypeit import data from IPython...
47a1cf6598597ae8bc32b60fb80bc0c10d8e99eb
35e52549f743bc6e4949a8d4ead4326e39c3e52b
/tests/test_fallback_or.py
692eb57dcafc0a16c104284304110e2f667e9b10
[ "MIT" ]
permissive
sspipe/sspipe
a825f8ae11c18085c08c49969f1afd01e2edb8e9
14930683631639f5821cde4881d7e0b4187681c1
refs/heads/master
2022-06-02T09:00:37.182086
2022-05-28T18:29:16
2022-05-28T18:30:12
137,625,559
149
4
MIT
2021-11-11T04:29:30
2018-06-17T03:14:45
Python
UTF-8
Python
false
false
190
py
test_fallback_or.py
from sspipe import p, px def test_divide_fallback(): assert (dict(x=2, y=3).keys() / p(list) | p(set)) == {'x', 'y'} assert (dict(x=2, y=3).values() / p(list) | p(set)) == {2, 3}
b99064fabe7f158ff50f1a486b31589c4d3137a8
77c4f4dd27b8d7497e66a7a5a87ad7ea83f2c4be
/python/benchmarks/microbenchmarks.py
f8ba383c70b1a8ff1683b194e8fe31ba2801e020
[ "Apache-2.0", "MIT", "BSD-3-Clause", "BSD-2-Clause", "ZPL-2.1", "BSL-1.0", "LicenseRef-scancode-public-domain", "NTP", "OpenSSL", "CC-BY-4.0", "LLVM-exception", "Python-2.0", "CC0-1.0", "LicenseRef-scancode-protobuf", "JSON", "Zlib", "CC-BY-3.0", "LicenseRef-scancode-unknown-licens...
permissive
apache/arrow
0714bfbf6fd491e1f4ed4acf838845ce4b94ec3e
59954225d4615f9b3bd7a3c266fb68761794229a
refs/heads/main
2023-08-24T09:04:22.253199
2023-08-24T07:21:51
2023-08-24T07:21:51
51,905,353
12,955
3,585
Apache-2.0
2023-09-14T20:45:56
2016-02-17T08:00:23
C++
UTF-8
Python
false
false
1,588
py
microbenchmarks.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...
33b1980d8f5b8d484b7ed333989f2551f6e13206
6e344abceebdd982f3609c4332af1408c0ab64ba
/src/logbook/__init__.py
abccb3311b7ce958d716314738ddc83b706a823b
[ "BSD-3-Clause" ]
permissive
getlogbook/logbook
c3d9393eb7552c0aa71c42162627cf3647aeac6f
2f9974daf984c4661941782e8df507c20c894688
refs/heads/develop
2023-08-18T14:18:41.212587
2023-08-13T13:30:58
2023-08-13T13:30:58
790,576
817
115
NOASSERTION
2023-09-12T11:33:30
2010-07-22T10:13:12
Python
UTF-8
Python
false
false
1,895
py
__init__.py
""" logbook ~~~~~~~ Simple logging library that aims to support desktop, command line and web applications alike. :copyright: (c) 2010 by Armin Ronacher, Georg Brandl. :license: BSD, see LICENSE for more details. """ import os from .base import ( CRITICAL, DEBUG, ERROR, INFO,...
9f235e5aa6d5da525040a8e47e8caf334d9ca944
529e713a78e82de2ae5d44cfb8ef209e0894d72a
/python-argparse/abbreviate.py
480e3413e6438848e095929a8f6edd2981b70695
[ "MIT" ]
permissive
realpython/materials
cd2f548276be2c82f134ca03eadb1cd279e0f26e
d2d62756d3854f54a12a767f2bf9470486c0ceef
refs/heads/master
2023-09-05T22:12:29.806738
2023-08-31T20:56:28
2023-08-31T20:56:28
132,374,697
4,678
6,482
MIT
2023-09-12T22:22:06
2018-05-06T20:46:18
HTML
UTF-8
Python
false
false
189
py
abbreviate.py
import argparse parser = argparse.ArgumentParser(allow_abbrev=False) parser.add_argument("--argument-with-a-long-name") args = parser.parse_args() print(args.argument_with_a_long_name)
3030505331a8fae7ca2524dccd5f77eec11f4362
977f7a7386899a5d0152b29b57ec26682b430437
/data_managers/data_manager_pangolearn/data_manager/pangolearn_dm.py
c7ea5357b441537c591043bd3b61ffe6d6e1bfba
[ "MIT" ]
permissive
galaxyproject/tools-iuc
0b87e21e1cb075ca6dc6b12622bc4e538a7c6507
96f8a533278b4b6394aebd7a8f537513b0d29b1a
refs/heads/main
2023-08-31T16:14:34.563541
2023-08-31T04:31:22
2023-08-31T04:31:22
23,992,530
164
508
MIT
2023-09-13T19:41:14
2014-09-13T11:18:49
HTML
UTF-8
Python
false
false
7,202
py
pangolearn_dm.py
#!/usr/bin/env python import argparse import datetime import json import operator import os import shutil import sys import tarfile import requests def get_model_list( existing_release_tags, url="https://api.github.com/repos/cov-lineages/pangoLEARN/releases" ): page_num = 0 while True: page_...
22b42dc103ba6b99610b3004a013934741a7bff4
ae28de03d8a17c1e43215d9f5396f6dab46aa7f1
/tests/sampletest/paramtest.py
848a8d158e1ef9ba50f68a765758c11756cf8a5f
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
Tencent/QTAF
0b1ee8a5e08f2dd03552d9d982d180495b0aa634
70a76bb78b9d9a603f7b679bac8e38ad5b1db2f0
refs/heads/master
2023-09-01T07:43:58.939781
2023-07-25T10:50:06
2023-07-25T10:50:06
68,911,733
518
156
NOASSERTION
2023-07-27T08:26:24
2016-09-22T10:43:37
Python
UTF-8
Python
false
false
1,789
py
paramtest.py
# -*- coding: utf-8 -*- """ 参数测试用例 """ import testbase class ParamTestWithoutAddParams(testbase.TestCase): """参数测试用例""" owner = "foo" status = testbase.TestCase.EnumStatus.Ready timeout = 0.1 priority = testbase.TestCase.EnumPriority.Normal def runTest(self): # pylint: disable=invalid-name...
4e11c7876d46d392971c9501acbd725d20aed885
704976ea552111c6a5af9cd7cb62b9d9abaf3996
/rpython/rtyper/exceptiondata.py
e0086cb0f2ba210f47e71b331821202db123e030
[ "BSD-3-Clause" ]
permissive
mesalock-linux/mesapy
4f02c5819ce7f2f6e249d34840f1aa097577645d
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
refs/heads/mesapy2.7
2023-08-16T21:33:02.239581
2019-08-13T10:29:43
2019-08-13T18:06:45
136,080,721
396
33
NOASSERTION
2020-04-01T03:05:18
2018-06-04T20:45:17
Python
UTF-8
Python
false
false
2,513
py
exceptiondata.py
from rpython.annotator import model as annmodel from rpython.annotator.exception import standardexceptions from rpython.rtyper.llannotation import SomePtr from rpython.rtyper.rclass import ( ll_issubclass, ll_type, ll_cast_to_object, getclassrepr, getinstancerepr) class UnknownException(Exception): pass clas...
5acb975f4247e512ea8e5bc1126e6d2f71a9bcd3
83b8b30ebb633eecd29ca0a7a20cc43a293c9333
/tests/cpydiff/types_str_keywords.py
77a4eac1c1db2aec33e270d98a9e42dda611ffa5
[ "MIT", "GPL-1.0-or-later" ]
permissive
adafruit/circuitpython
430ec895149d1eb814b505db39b4977a35ee88a7
506dca71b0cbb7af749bb51f86b01021db5483b3
refs/heads/main
2023-08-21T16:30:46.781068
2023-08-20T00:39:44
2023-08-20T00:39:44
66,166,069
3,806
1,560
MIT
2023-09-14T19:23:51
2016-08-20T20:10:40
C
UTF-8
Python
false
false
217
py
types_str_keywords.py
""" categories: Types,str description: str(...) with keywords not implemented cause: Unknown workaround: Input the encoding format directly. eg ``print(bytes('abc', 'utf-8'))`` """ print(str(b"abc", encoding="utf8"))
f723322810b5794b343ba617702fe91b3d18f51e
1e148aada79cb648872bb8ecc740a6a798b2e236
/audiomentations/augmentations/clipping_distortion.py
466268b6ee6683c357f68c834df8900c362add30
[ "MIT" ]
permissive
iver56/audiomentations
a40ae457ca03ab8c927ad804f489cef783dae8d4
498a7d4f149d8917813aa35ff18e748cff49cd09
refs/heads/main
2023-09-05T05:53:05.369792
2023-08-30T13:12:51
2023-08-30T13:12:51
170,352,817
1,520
182
MIT
2023-09-07T14:35:26
2019-02-12T16:36:24
Python
UTF-8
Python
false
false
2,161
py
clipping_distortion.py
import random import numpy as np from numpy.typing import NDArray from audiomentations.core.transforms_interface import BaseWaveformTransform class ClippingDistortion(BaseWaveformTransform): """Distort signal by clipping a random percentage of points The percentage of points that will be clipped is drawn f...
dd430785cedb789c8e30fa4745ec543d0b314f94
0760fb4901a75766921a205b55686d6d6f049b30
/rllib/utils/exploration/ornstein_uhlenbeck_noise.py
441f6914e6565f5a5784d43c8c8f72d7ce5595ab
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
ray-project/ray
a4bb6940b08b59a61ef0b8e755a52d8563a2f867
edba68c3e7cf255d1d6479329f305adb7fa4c3ed
refs/heads/master
2023-08-31T03:36:48.164405
2023-08-31T03:20:38
2023-08-31T03:20:38
71,932,349
29,482
5,669
Apache-2.0
2023-09-14T21:48:14
2016-10-25T19:38:30
Python
UTF-8
Python
false
false
10,448
py
ornstein_uhlenbeck_noise.py
import numpy as np from typing import Optional, Union from ray.rllib.models.action_dist import ActionDistribution from ray.rllib.utils.annotations import override, PublicAPI from ray.rllib.utils.exploration.gaussian_noise import GaussianNoise from ray.rllib.utils.framework import ( try_import_tf, try_import_to...
dc6669626029b3e8c5866b7f51ca24bce7d8c2aa
66f383fec502102bfec58ed8cb9c43a71e599c55
/apps/changelog/classes/release_version.py
75f585b1a81d7ead6812ceb833c6ada8b36d33df
[ "MIT" ]
permissive
hacktoolkit/django-htk
0a984a28f7fbc7eed8e2b1975d210792ddbee829
935c4913e33d959f8c29583825f72b238f85b380
refs/heads/master
2023-08-08T11:52:54.298160
2023-07-21T19:08:37
2023-07-21T19:08:37
15,924,904
210
65
MIT
2023-09-08T23:59:28
2014-01-15T04:23:40
Python
UTF-8
Python
false
false
861
py
release_version.py
# Python Standard Library Imports import datetime from collections import namedtuple class ReleaseVersion( namedtuple( 'ReleaseVersion', 'origin_url,ref,date,sha,branch', ) ): # origin_url: str # ref: str # date: str # sha: str # branch: str @property def readable_...
e138fa181db0d618c5fd56e73164a0935a500445
aa2dd0720ac3cf261c7e2d2cdf3d88dee68360d5
/tests/core/test_views_heartbeat.py
bee4a71eeda7e8c1c7a73c2ea35445f32c05b37e
[ "Apache-2.0" ]
permissive
Kinto/kinto
3025e269a5f2ecc8077fd44fbb1e6c38ae6a4a8b
6edf6453033e0106410fe1f8c70323b6fea2f2fe
refs/heads/master
2023-08-31T13:36:10.987472
2023-08-22T09:37:52
2023-08-22T09:37:52
31,315,021
4,764
575
NOASSERTION
2023-09-13T14:41:08
2015-02-25T13:34:23
Python
UTF-8
Python
false
false
2,543
py
test_views_heartbeat.py
from unittest import mock from kinto.core.testing import unittest from .support import BaseWebTest class SuccessTest(BaseWebTest, unittest.TestCase): def test_returns_storage_true_if_ok(self): response = self.app.get("/__heartbeat__") self.assertEqual(response.json["storage"], True) def tes...
b275f0d8407a5c435b88684a52b7c8c95ce175e9
b156aaaed17aa2b36e8f23c6cf92e732fb931525
/hpOneView/resources/servers/migratable_vc_domains.py
78d8cdb6f4cfda564e1cf11cc6ebdb0bc8823de2
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
HewlettPackard/python-hpOneView
48dba564bfeeddf5ca442c49a6eaa60638d4f3e5
678d53b338f6bc7af7adb63153d7d8d99dc94ac0
refs/heads/release/v4.8.0
2023-08-09T07:36:15.905572
2019-08-28T09:53:45
2019-08-28T09:53:45
14,697,221
108
80
MIT
2020-02-10T09:00:45
2013-11-25T20:18:55
Python
UTF-8
Python
false
false
5,291
py
migratable_vc_domains.py
# -*- coding: utf-8 -*- ### # (C) Copyright (2016-2017) Hewlett Packard Enterprise Development LP # # 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 limi...
6680ae80673196d5027d1011059e965ca041bbaf
cfa35dc2ea93ee0eceb2399a9e6112e987579c09
/stonesoup/writer/yaml.py
ae3f85ba99558184b9ad50346f576c39c0d8dc2e
[ "LicenseRef-scancode-proprietary-license", "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "Python-2.0", "LicenseRef-scancode-secret-labs-2011" ]
permissive
dstl/Stone-Soup
227e6a9e6fbdceca14af3f0259f311ec74095597
f24090cc919b3b590b84f965a3884ed1293d181d
refs/heads/main
2023-09-01T14:33:14.626428
2023-09-01T11:35:46
2023-09-01T11:35:46
98,420,803
315
126
MIT
2023-09-14T14:55:34
2017-07-26T12:34:28
Python
UTF-8
Python
false
false
2,394
py
yaml.py
from pathlib import Path from ..base import Property from ..serialise import YAML from ..reader import DetectionReader, GroundTruthReader, SensorDataReader from ..tracker import Tracker from .base import Writer class YAMLWriter(Writer): """YAML Writer""" path: Path = Property(doc="File to save data to. Str w...
b6e3889bc2bdb6e89596113c50f3050ebee10e24
d21e88c04d42ea34160768b9fa9f4bb51542f8b3
/chapter2-deep-networks/densenet-cifar10-2.4.1.py
50c26b146b3df4fc225b8f5a0b96460a0f9f9c14
[ "MIT" ]
permissive
PacktPublishing/Advanced-Deep-Learning-with-Keras
f8ecc5e7d4e352ebc49f18c0021dd29500c1461a
7f447a07eb2f3dc41c83d468ae102ab8fa9dff05
refs/heads/master
2023-07-04T19:54:29.548004
2023-01-30T09:52:34
2023-01-30T09:52:34
125,326,602
1,672
961
MIT
2023-04-12T21:42:17
2018-03-15T07:08:43
Python
UTF-8
Python
false
false
8,397
py
densenet-cifar10-2.4.1.py
"""Trains a 100-Layer DenseNet on the CIFAR10 dataset. With data augmentation: Greater than 93.55% test accuracy in 200 epochs 225sec per epoch on GTX 1080Ti Densely Connected Convolutional Networks https://arxiv.org/pdf/1608.06993.pdf http://openaccess.thecvf.com/content_cvpr_2017/papers/ Huang_Densely_Connected...
2df6761e433ca703405a77d7ae0abaf9b786625e
55a973178ab56ae2a99c7f30bb65dd11270f4acb
/capstone/capdb/migrations/0113_auto_20210414_1532.py
1da6308e147e4281b72d0ee23c6ed90f5e3c80a9
[ "MIT" ]
permissive
harvard-lil/capstone
fb8e72bedfe5d902293acb566c864e153da3298e
bec56eaa4bfb62a44260e85cf76b421172de10e0
refs/heads/develop
2023-08-25T11:15:54.572758
2023-08-23T13:04:38
2023-08-23T13:04:38
82,964,836
153
47
MIT
2023-09-13T15:07:30
2017-02-23T19:44:44
HTML
UTF-8
Python
false
false
1,599
py
0113_auto_20210414_1532.py
# Generated by Django 2.2.20 on 2021-04-14 15:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('capdb', '0112_auto_20210401_1632'), ] operations = [ migrations.AlterField( model_name='citation', name='cite', ...
f073d0e94a1ff2724c941f20ae8666afdb4e8964
e8b38b8dfa348ff006eb197a7906ca8e491a23dc
/tests/codegen/ccode/scripts/loops.py
927a52b85ce7e3784a761456539836ed507c145c
[ "MIT" ]
permissive
pyccel/pyccel
d79a81dbdff1172839a6a1227abfcc1f97e6c97b
1896b761ba662c90b14c195bbb6eb5cddc57cbfc
refs/heads/devel
2023-08-30T12:15:25.244401
2023-08-28T09:31:32
2023-08-28T09:31:32
100,463,736
307
39
MIT
2023-09-14T19:29:26
2017-08-16T07:59:14
Python
UTF-8
Python
false
false
1,184
py
loops.py
# pylint: disable=missing-function-docstring, missing-module-docstring #============================================================================== def sum_natural_numbers(n : int): x = 0 for i in range( 1, n+1 ): x += i return x # ... def factorial(n : int): x = 1 for i in range( 2, n...
97ec1aa0285530abbf8bae9033f018e46a5d22a2
f20112f340ac7a867a1534776b2635643f1538cc
/auth0/rest.py
41282b74772ac1dec9b6b23f313b31f23378d415
[ "MIT" ]
permissive
auth0/auth0-python
213fe75f8a064ee505066e1343ad997bbcb229ff
8e3e51bc9ff0cb2f5f68eededf5c4d5b9f5ebb00
refs/heads/master
2023-09-04T12:40:21.796991
2023-09-04T09:58:44
2023-09-04T09:58:44
22,433,990
451
180
MIT
2023-09-12T15:39:20
2014-07-30T15:38:33
Python
UTF-8
Python
false
false
11,953
py
rest.py
from __future__ import annotations import base64 import json import platform import sys from random import randint from time import sleep from typing import TYPE_CHECKING, Any, Mapping import requests from auth0.exceptions import Auth0Error, RateLimitError from auth0.types import RequestData, TimeoutType if TYPE_CH...
19cc677a7d30ba74c49b55cab070dd941ba66c8b
069c2295076c482afadfe6351da5ae02be8e18e6
/tests/urlpatterns/more_urls.py
8fc3abd51867a235f9bc1fea1ecbaf9d4a07d5b3
[ "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "GPL-1.0-or-later", "Python-2.0.1", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-other-permissive", "Python-2.0" ]
permissive
django/django
5eb557f57053631cd4f566f451e43197309dbeeb
c74a6fad5475495756a5bdb18b2cab2b68d429bc
refs/heads/main
2023-09-01T03:43:44.033530
2023-08-31T08:27:32
2023-08-31T08:27:32
4,164,482
73,530
38,187
BSD-3-Clause
2023-09-14T20:03:48
2012-04-28T02:47:18
Python
UTF-8
Python
false
false
209
py
more_urls.py
from django.urls import re_path from . import views urlpatterns = [ re_path( r"^more/(?P<extra>\w+)/$", views.empty_view, {"sub-extra": True}, name="inner-more", ), ]
2a7327aaf9807b1924f79e59d62d9d03846373fd
08fb252e3f70e245cdd0e5a8fed47f6fada8b6f8
/examples/BinaryTides/makeplot.py
b2d4dae9d0dee62b408e75cf23203db3adc53eef
[ "MIT" ]
permissive
VirtualPlanetaryLaboratory/vplanet
3bba2126520cbe7bee1a512f87435064d3545517
cb683af69e80e07bc17c06e45678effdc98fc19a
refs/heads/main
2023-08-31T04:13:58.700282
2023-08-30T05:10:20
2023-08-30T05:10:20
138,067,409
128
54
MIT
2023-09-06T21:30:37
2018-06-20T17:53:00
C
UTF-8
Python
false
false
2,887
py
makeplot.py
""" This script produces a reproduction of Figure 1 of Zahn & Bouchet (1989) using a coupled EQTIDE and STELLAR VPLANET run. David P. Fleming, University of Washington, 2018 """ import pathlib import sys import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np import vplot import vplanet # Path h...
731811a03b12daa0e273df9b0a0a3fa21ea95d6c
c491b5171775447a9ab33a036be1375f7b71ab2f
/tests/functional/order/test_emails.py
5136ba41651aab95f44227e1b6359d845053bdf7
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
django-oscar/django-oscar
e4abd486d51d6173dafbd9c10b59675858196e61
5edac196f41f8cc97f8a07f7579f1041db2a02af
refs/heads/master
2023-08-30T16:19:12.081909
2023-07-14T11:53:30
2023-07-14T11:53:30
1,151,051
5,320
2,524
BSD-3-Clause
2023-09-13T19:48:30
2010-12-08T21:30:32
Python
UTF-8
Python
false
false
3,759
py
test_emails.py
import os from django.core import mail from django.core.exceptions import ImproperlyConfigured from django.test import TestCase, override_settings from oscar.core.loading import get_class from oscar.test.factories import ProductImageFactory, create_order from oscar.test.utils import EmailsMixin, remove_image_folders ...
f98568e816cf58ca8e090c8152d2d6a18f0414f7
091e97bcfe5acc0635bd601aa8497e377b74d41a
/ansible/roles/lib_openshift_3.2/build/ansible/oc_label.py
b20c70758b45a6e71dcdba552761e3844c0fa69c
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
openshift/openshift-tools
d59b63778f25cb8fb3c7a0253afe22a173e72f9d
e342f6659a4ef1a188ff403e2fc6b06ac6d119c7
refs/heads/prod
2023-08-30T01:52:04.108978
2022-03-23T21:07:28
2022-03-23T21:07:28
36,827,699
170
254
Apache-2.0
2022-06-16T12:11:51
2015-06-03T20:09:22
Python
UTF-8
Python
false
false
4,247
py
oc_label.py
# vim: expandtab:tabstop=4:shiftwidth=4 # pylint: skip-file #pylint: disable=too-many-branches def main(): ''' ansible oc module for labels ''' module = AnsibleModule( argument_spec=dict( kubeconfig=dict(default='/etc/origin/master/admin.kubeconfig', type='str'), state=...
8067130d7f6280452761dbe8d0c5d4c2b4a98d68
12f0bd77926127cdacc2452d6f9cfed91806b2fe
/idaes/models/properties/modular_properties/coolprop/coolprop_forms.py
c6ea1f79fa7906516273247d1eeecc27c1af5aed
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
IDAES/idaes-pse
e03d2583ae1ba968a7099f9f439fd8c3efa12904
deacf4c422bc9e50cb347e11a8cbfa0195bd4274
refs/heads/main
2023-08-16T19:13:00.355572
2023-08-04T04:19:29
2023-08-04T04:19:29
168,622,088
173
227
NOASSERTION
2023-09-11T16:04:55
2019-02-01T01:12:51
Python
UTF-8
Python
false
false
7,380
py
coolprop_forms.py
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES). # # Copyright (c) 2018-2023 by the software own...
292ecfa0fdadfcdc5c2dfcbd58357ec4c2000aab
9de0cec678bc4a3bec2b4adabef9f39ff5b4afac
/PWGJE/EMCALJetTasks/Tracks/analysis/plots/TriggeredSpectrumComparisonPlot.py
db520bccbaad025a880ed2ee312525394989f616
[]
permissive
alisw/AliPhysics
91bf1bd01ab2af656a25ff10b25e618a63667d3e
5df28b2b415e78e81273b0d9bf5c1b99feda3348
refs/heads/master
2023-08-31T20:41:44.927176
2023-08-31T14:51:12
2023-08-31T14:51:12
61,661,378
129
1,150
BSD-3-Clause
2023-09-14T18:48:45
2016-06-21T19:31:29
C++
UTF-8
Python
false
false
3,279
py
TriggeredSpectrumComparisonPlot.py
#************************************************************************** #* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. * #* * #* Author: The ALICE Off-line Project. * #* Contributors ...
923a07a5405a31b39ce0a1f839b331783c7a9746
df1254b56f35b24644e00493c50d4b6eb3c15b7b
/colour/examples/appearance/examples_nayatani95.py
1ec159478d53aaa0a919c02bf51564358c9ad75c
[ "BSD-3-Clause" ]
permissive
colour-science/colour
908400b227cf81668675e41099256ce50b23ae4b
1fdf3b3042922e8d4f86b989b00a06e7e5d81102
refs/heads/develop
2023-09-01T23:17:07.186869
2023-08-26T09:40:45
2023-08-26T09:40:45
17,114,363
1,756
301
BSD-3-Clause
2023-09-14T10:24:37
2014-02-23T18:55:40
Python
UTF-8
Python
false
false
1,321
py
examples_nayatani95.py
"""Showcases *Nayatani (1995)* colour appearance model computations.""" import numpy as np import colour from colour.appearance.nayatani95 import CAM_ReferenceSpecification_Nayatani95 from colour.utilities import message_box message_box('"Nayatani (1995)" Colour Appearance Model Computations') XYZ = np.array([19.01...
05603932b9c677c80deb8c3a1bde6a4fe5056692
ff79c73d6c4d9f53099880a9ce5f614685268601
/fuzzers/machxo3/021-glb-entry/1300/fuzzer.py
35b9e7aaa10518808f44e31a6cbd950c151bf6a6
[ "ISC", "MIT" ]
permissive
YosysHQ/prjtrellis
79f88b5a398c67730601813330f77826902b7664
e830a28077e1a789d32e75841312120ae624c8d6
refs/heads/master
2023-08-06T17:00:57.091823
2023-07-03T15:20:30
2023-07-03T15:20:30
123,840,862
152
33
NOASSERTION
2023-09-08T23:34:29
2018-03-04T23:57:10
Python
UTF-8
Python
false
false
1,272
py
fuzzer.py
from fuzzconfig import FuzzConfig import interconnect import pytrellis jobs = [ { "cfg": FuzzConfig(job="GLB_ENTRY", family="MachXO3", device="LCMXO3LF-1300E", ncl="tap.ncl", tiles=["CENTER6:CENTER_EBR_CIB"]), "left_net": "R6C{}_HPSX{:02d}00", "right_net": "R6C{}_H...
30768f4bfa423d9174e52243536456c5710eb37f
93713f46f16f1e29b725f263da164fed24ebf8a8
/Library/lib/python3.7/site-packages/sympy/concrete/__init__.py
5ff320415b24b165c24060431c5125fd198e0b9a
[ "BSD-3-Clause" ]
permissive
holzschu/Carnets
b83d15136d25db640cea023abb5c280b26a9620e
1ad7ec05fb1e3676ac879585296c513c3ee50ef9
refs/heads/master
2023-02-20T12:05:14.980685
2023-02-13T15:59:23
2023-02-13T15:59:23
167,671,526
541
36
BSD-3-Clause
2022-11-29T03:08:22
2019-01-26T09:26:46
Python
UTF-8
Python
false
false
78
py
__init__.py
from .products import product, Product from .summations import summation, Sum
0062225066346b04fb1688d623bbd6f108bd3638
96c1f13473cf224113185902edd4c9c01091e106
/tests/theseus_tests/optimizer/linear/test_lu_cuda_sparse_solver.py
6a1db2aab7c0d6e180b1dd8767ccc3d6a0594a3b
[ "MIT" ]
permissive
facebookresearch/theseus
f1e488eb5a25f5ba74a6995911bee958b5da4cf3
240e1206329d42fedd40399684d6e17e455c6645
refs/heads/main
2023-08-11T07:33:12.328520
2023-08-02T12:58:01
2023-08-02T12:58:01
429,570,359
1,410
105
MIT
2023-08-01T14:30:01
2021-11-18T20:28:27
Python
UTF-8
Python
false
false
6,476
py
test_lu_cuda_sparse_solver.py
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import pytest # noqa: F401 import torch import theseus as th def _build_sparse_mat(batch_size, rng): all_cols = list(range(10)) ...
73ff215d7ce221475419ee388ae38b46c52d048c
6e0d8d91dd22e2275cd713822679d5cabbc9331a
/thespian/system/systemBase.py
634fa0a72b22f9878e7ee739c8b1927a49199210
[ "MIT" ]
permissive
kquick/Thespian
711712eb0a9ad3370f1013c8393cc461b9541dfe
dfc6d3e865c05f929328b85e98671a5c8fc3a54a
refs/heads/master
2023-05-26T15:51:57.959690
2023-05-22T15:08:00
2023-05-22T15:08:00
78,292,621
203
32
MIT
2021-06-22T14:42:09
2017-01-07T17:18:27
Python
UTF-8
Python
false
false
20,570
py
systemBase.py
'''The systemBase provides the base class implementation for standard system Base implementations. This systemBase itself is not intended to be instantiated as the regular Thespian System Base, but instead it provides a base class that should be subclassed by the various System Base implementations. ''' import loggi...
19d9371631d55e927327c8ab6d4d3b5fe14902e0
091a6200be74bf6577c86f623665bcc24e16b02b
/CPX_GBoard/touch_hid/code.py
4fa799f373775995358357a0c44a102a791e3ea2
[ "MIT" ]
permissive
adafruit/Adafruit_Learning_System_Guides
b5f7bce40a16da64e7a79d4b39de032f2cca41d4
5eaa7a15a437c533b89f359a25983e24bb6b5438
refs/heads/main
2023-09-05T18:31:41.621956
2023-09-05T15:36:09
2023-09-05T15:36:09
105,065,494
937
937
MIT
2023-09-12T18:48:53
2017-09-27T20:22:44
C
UTF-8
Python
false
false
1,048
py
code.py
# SPDX-FileCopyrightText: 2018 Dave Astels for Adafruit Industries # # SPDX-License-Identifier: MIT """ Circuit Playground Express GBoard: capacitive touch generating keycodes Adafruit invests time and resources providing this open source code. Please support Adafruit and open source hardware by purchasing products f...
fc6116397d330860a6bafd796c1a11b98674adb8
96b7ee94763d477ddbe1534a866fb7e3bd269a7b
/tests/unit/objects/test_timeactivity.py
fa9f870b662e3abdde22521bf3ee7a15a592e499
[ "MIT" ]
permissive
ej2/python-quickbooks
a83d088983f2aa6b001d2cb7445f42ea0ab4725a
5d29d1fa832496d00af927e35deb9ba78817550d
refs/heads/master
2023-09-03T23:49:59.551648
2023-08-29T16:10:29
2023-08-29T16:10:29
39,512,055
139
81
MIT
2023-08-29T16:15:24
2015-07-22T14:50:48
Python
UTF-8
Python
false
false
1,357
py
test_timeactivity.py
import unittest from quickbooks import QuickBooks from quickbooks.objects.timeactivity import TimeActivity class TimeActivityTests(unittest.TestCase): def test_unicode(self): time_activity = TimeActivity() time_activity.NameOf = "test" time_activity.TimeZone = "CST" time_activity...
684ebdc780a0a86077cd0d7c4d0cd08d52695647
b8bbdfc593b6d816e67a344f720f90ec05236778
/airflow/migrations/versions/0100_2_3_0_add_taskmap_and_map_id_on_taskinstance.py
9cac7cbc01f24ee37ea9c5be0ff186cbb49fca76
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
apache/airflow
ed78db0a8bab7e096990e143926e52f518e288ab
1b122c15030e99cef9d4ff26d3781a7a9d6949bc
refs/heads/main
2023-09-01T08:37:34.556097
2023-09-01T06:49:05
2023-09-01T06:49:05
33,884,891
22,756
11,558
Apache-2.0
2023-09-14T20:12:36
2015-04-13T18:04:58
Python
UTF-8
Python
false
false
5,032
py
0100_2_3_0_add_taskmap_and_map_id_on_taskinstance.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...
85b7ca1bc49fcc7ddf7e0b3c09029418d366a8c2
d4412fbe37540e2c4cbe59ed6503d3661ccb7d9c
/colossalai/testing/__init__.py
0db33361c6a004ababb8d118505ea46e81cccf7d
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0", "BSD-2-Clause", "MIT" ]
permissive
hpcaitech/ColossalAI
a082ed08a3807b53c49d1f86835b9808590d9042
c7b60f75470f067d1342705708810a660eabd684
refs/heads/main
2023-09-01T04:13:13.834565
2023-08-30T15:07:21
2023-08-30T15:07:21
422,274,596
32,044
4,084
Apache-2.0
2023-09-14T15:19:54
2021-10-28T16:19:44
Python
UTF-8
Python
false
false
772
py
__init__.py
from .comparison import ( assert_close, assert_close_loose, assert_equal, assert_equal_in_group, assert_hf_output_close, assert_not_equal, check_state_dict_equal, ) from .pytest_wrapper import run_on_environment_flag from .utils import ( clear_cache_before_run, free_port, paramet...
5bcb93a3676ef55f9dafe20ecfbb055e48968fbb
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/battle_royale/scripts/client/battle_royale/gui/Scaleform/daapi/view/battle/battle_level_panel.py
5cfe97452570787b8c9c927dec41aad2fa1962d6
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
3,505
py
battle_level_panel.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: battle_royale/scripts/client/battle_royale/gui/Scaleform/daapi/view/battle/battle_level_panel.py import BigWorld import BattleReplay from helpers import int2roman import WWISE from gui.Scaleform.daapi.view.meta.BattleLevelPanelMeta import BattleLe...
f6abb928ce5342eae962f2d9234cacc43570a8e9
bed34365a9dab825fd9f4a4ff1b0863f441266ac
/neutron/tests/unit/services/metering/test_metering_plugin.py
33961a20c6ae41931d4fffbf4e487f66a7207b8d
[ "Apache-2.0" ]
permissive
openstack/neutron
0913ee3cd69d5bdb9c10aa084d4e1803abee320c
dde31aae392b80341f6440eb38db1583563d7d1f
refs/heads/master
2023-08-31T13:09:41.831598
2023-08-31T11:37:30
2023-08-31T11:37:30
2,400,289
1,174
1,325
Apache-2.0
2022-06-29T08:00:05
2011-09-16T16:04:08
Python
UTF-8
Python
false
false
36,116
py
test_metering_plugin.py
# Copyright (C) 2013 eNovance SAS <licensing@enovance.com> # # 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 applicabl...
b9c8e7501b25592eee727073fd526703af2f598f
6c3989a6de8521ae478edcd6f457f54baa57f289
/plugin/symbols.py
a843c4644c1495cfa8a79a63d8508e16d760985a
[ "MIT" ]
permissive
sublimelsp/LSP
18ba4b72ad390ee4da713d9b383869112c6d2d98
e6bbc8ffecd9d705c884c69160132265294c6430
refs/heads/main
2023-08-31T13:29:36.341484
2023-08-18T16:07:57
2023-08-18T16:07:57
87,645,313
909
138
MIT
2023-09-13T19:55:06
2017-04-08T15:51:20
Python
UTF-8
Python
false
false
11,429
py
symbols.py
import weakref from .core.protocol import Request, DocumentSymbol, SymbolInformation, SymbolKind, SymbolTag from .core.registry import LspTextCommand from .core.sessions import print_to_status_bar from .core.typing import Any, List, Optional, Tuple, Dict, Generator, Union, cast from .core.views import range_to_region f...
fe1fe725ea41db51f741d557ab3154e2d0cd5b2e
b1f587ee6eed481af0e453903e1c1ae7a2e7ef87
/pyxtal/util.py
0a91f8b7195b1754abde3edcc2697fe0f5b816a6
[ "MIT" ]
permissive
qzhu2017/PyXtal
cdae49664c876c8d2b452b0c3f0db36587c34532
9fdb4ec509da6a97a239a3ae4fcfa427dcf32eff
refs/heads/master
2023-08-20T08:20:37.452641
2023-08-11T15:15:36
2023-08-11T15:15:36
128,165,891
194
62
MIT
2023-07-01T13:00:11
2018-04-05T06:08:04
Python
UTF-8
Python
false
false
18,088
py
util.py
""" some utilities """ import numpy as np from spglib import get_symmetry_dataset from pymatgen.symmetry.analyzer import SpacegroupAnalyzer as sga from pymatgen.core.structure import Structure from ase import Atoms from pyxtal.symmetry import Hall import re def find_dir(dirs): """ a short function to find the...
e5a39b15e634a40bd2973837e2784e6a045a04b9
119646d6e1f13582c577fd7b87c9654839a0b806
/tests/spec/cms/blogs/test_blogs.py
f3653c62ef4fa176cfb63a279e20fab0dda730c3
[]
permissive
HubSpot/hubspot-api-python
446daaceeb3a6ce27edcd0414603c6d4bc07e327
d51a64c413461c0b82d8a41743e752d878747ca1
refs/heads/master
2023-08-31T09:52:56.583803
2023-08-07T11:00:27
2023-08-07T11:00:27
248,865,684
227
98
Apache-2.0
2023-09-14T15:25:19
2020-03-20T22:41:24
Python
UTF-8
Python
false
false
188
py
test_blogs.py
from hubspot import HubSpot from hubspot.discovery.cms.blogs.discovery import Discovery def test_is_discoverable(): apis = HubSpot().cms assert isinstance(apis.blogs, Discovery)
0adc8ba34d11570d479c6327c49683d4ef5d6d88
b313f1b7b3ae2162a44f416baba8357f0d052003
/papers/SubTagger/dataset_readers/BC5CDR_dataset_reader.py
93fdcd7f92398dd9a359722e1b9553543fb90eb8
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
microsoft/vert-papers
e7cae3dc790c01447a48caa0456f555120f20e84
c47d103d872cf3db2859410211a6083e0d0caf63
refs/heads/master
2023-08-18T19:42:21.218463
2023-08-16T02:21:25
2023-08-16T02:21:25
198,793,756
248
93
MIT
2023-08-16T02:21:27
2019-07-25T08:48:16
Python
UTF-8
Python
false
false
7,880
py
BC5CDR_dataset_reader.py
from typing import Dict, List, Sequence, Iterable, Tuple import itertools import logging from overrides import overrides from allennlp.common.checks import ConfigurationError from allennlp.common.file_utils import cached_path from allennlp.data.dataset_readers.dataset_reader import DatasetReader from allennlp.data.da...
d7742cbec0571f2f99748d6769e0f50698e4b34d
7f620e7902c0b9ccb1fcfd1427acd5936ea33814
/mlrun/feature_store/ingestion.py
d3b9f923646b0c785c004768c1bea362c9c2be89
[ "Apache-2.0" ]
permissive
mlrun/mlrun
2074c230070129ce3becb211b92c90b29a2ce850
b5fe0c05ae7f5818a4a5a5a40245c851ff9b2c77
refs/heads/development
2023-09-06T00:09:21.546135
2023-09-05T19:38:13
2023-09-05T19:38:13
205,706,595
1,093
229
Apache-2.0
2023-09-14T14:14:10
2019-09-01T16:59:19
Python
UTF-8
Python
false
false
11,210
py
ingestion.py
# Copyright 2023 Iguazio # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softwa...
d02683b9d161706cc9b2d9c744ededaddc7239d4
dcc25b784213b17015d2080a7623c772d474dc22
/reproduce/AlphaFold2-Chinese/tests/st/mindsponge/test_covid/pres/test_case_covid_pres.py
7000f47d1c30fb7985bde03df0f3fa1015408c64
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
mindspore-ai/community
930c9d9fdbead852e3597d522a72fe5b66bfc005
c72ce898482419117550ad16d93b38298f4306a1
refs/heads/master
2023-07-19T19:43:20.785198
2023-07-17T06:51:22
2023-07-17T06:51:22
250,693,100
193
10
Apache-2.0
2022-10-29T10:01:40
2020-03-28T02:00:02
Python
UTF-8
Python
false
false
3,336
py
test_case_covid_pres.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...
eee1c82c03ff86add9ce2e5706c814c6ac193691
73a0f661f1423d63e86489d4b2673f0103698aab
/python/oneflow/test/modules/test_global_ctc_loss.py
5895404f0f9444ac7b09d74d4e49588ec63dbb9c
[ "Apache-2.0" ]
permissive
Oneflow-Inc/oneflow
4fc3e081e45db0242a465c4330d8bcc8b21ee924
0aab78ea24d4b1c784c30c57d33ec69fe5605e4a
refs/heads/master
2023-08-25T16:58:30.576596
2023-08-22T14:15:46
2023-08-22T14:15:46
81,634,683
5,495
786
Apache-2.0
2023-09-14T09:44:31
2017-02-11T06:09:53
C++
UTF-8
Python
false
false
5,842
py
test_global_ctc_loss.py
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
afb3cfed6d2d34a9deee7732348ac5e5005eacce
cb4f118412a55c52d720bc79e4074606622920ac
/arcade/gl/texture.py
437818cd16300b10ec5fe99d632495aca464ed67
[ "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
30,630
py
texture.py
from __future__ import annotations from ctypes import byref, string_at import weakref from typing import Optional, Tuple, Union, TYPE_CHECKING from pyglet import gl from .buffer import Buffer from .utils import data_to_ctypes from .types import PyGLuint, pixel_formats, BufferOrBufferProtocol from ..types import Buff...
0db1818096831704d66198669026f41b1f909cee
5917ffcb780cfcfe4e2b87b11fca1f68f387b239
/plenum/test/monitoring/test_request_time_tracker.py
851b1edef39594e4f12485b19cec356d5be61023
[ "Apache-2.0" ]
permissive
hyperledger/indy-plenum
6ff9f705af80dfa28d4cb92743683f78bb937aa3
698b9500ad3a7a15993af72a1c35a406c5673262
refs/heads/main
2023-08-29T01:32:26.384729
2023-06-20T16:42:11
2023-06-20T16:42:11
51,585,028
171
420
Apache-2.0
2023-06-20T16:42:14
2016-02-12T12:03:16
Python
UTF-8
Python
false
false
7,793
py
test_request_time_tracker.py
import pytest from plenum.server.monitor import RequestTimeTracker INSTANCE_COUNT = 4 @pytest.fixture(scope="function") def req_tracker(): instances = set(range(INSTANCE_COUNT)) removed_replica = INSTANCE_COUNT // 2 instances.remove(removed_replica) return RequestTimeTracker(instances) def test_re...
18b6bea6030f2732af8fbd44d3fa77c3602c4493
73e82424a0c2bbdff890bf6537707fe4d75f054b
/scripts/tfmodisco.py
036d9db9622d2fec0ce77a0b88e749e18d09b89b
[ "MIT" ]
permissive
kundajelab/tfmodisco
0bcfe2262927e598a7e880a745722835dfb69ae3
01a92d0f07799b504fcb149d5d09c9fd77b9f9a1
refs/heads/master
2023-05-24T18:47:42.447715
2023-05-18T22:15:01
2023-05-18T22:15:01
62,352,963
101
27
MIT
2023-05-18T22:15:02
2016-07-01T01:26:15
Jupyter Notebook
UTF-8
Python
false
false
2,633
py
tfmodisco.py
from __future__ import division, print_function, absolute_import import modisco import modisco.core import argparse def get_seqlets(task_names, contrib_scores, hypothetical_contribs, one_hot, coord_producer, overlap_resolver): contrib_scores_tracks = [ modisco.core.DataTrack( ...
e9d0fd01c0215ca2a4e61edc5fa064e47065809b
0e273c6db269d739dedd33260ece8f039491b8db
/tests/test_algo.py
f563e74012bae197df99291eecc60db455690d03
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
chris-hld/spaudiopy
c0b9410a36cfdb1148c0113a7d9dbe27f344ab0c
b3bdf8cc45eab66c95392690f03b743265e75e59
refs/heads/master
2023-08-04T15:45:22.239424
2023-07-28T15:16:43
2023-07-28T15:16:43
169,112,105
116
9
MIT
2023-07-07T11:27:08
2019-02-04T16:45:51
Python
UTF-8
Python
false
false
1,287
py
test_algo.py
# -*- coding: utf-8 -*- """ pytest @author: chris Test algorithms. """ import pytest import numpy as np from numpy.testing import assert_allclose import spaudiopy as spa # SH Order N_SPHS = [1, 3, 5] # higher orders might need more tolerance @pytest.mark.parametrize('test_n_sph', N_SPHS) def test_sph_filter_ban...
aeef743bf682fdafa0b490637dccbda4f2dcb0f0
061ed9ee920b935de7d96067d140e538cb4afd0c
/cortex/dataset/viewRGB.py
530a486c7d426220bc91cd977969e92a04d7f27f
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
gallantlab/pycortex
f8144d5d7d899709d596b07e18ea6d2215c4217d
e07c4b93d49d9eb9b40c853597b9bba82b4c2738
refs/heads/main
2023-08-17T22:20:58.589602
2023-07-20T18:53:16
2023-07-20T18:53:16
12,472,709
522
144
BSD-2-Clause
2023-09-06T17:25:49
2013-08-29T22:33:10
JavaScript
UTF-8
Python
false
false
24,394
py
viewRGB.py
import numpy as np import colorsys import warnings from .views import Dataview, Volume, Vertex from .braindata import VolumeData, VertexData, _hash from ..database import db from .. import options default_cmap = options.config.get("basic", "default_cmap") class Colors(object): """ Set of known colors ""...
1da3f9e809777c45eaa48f5b2223ec0d9ead3408
ec70ba5d21c21421db4e23b75fe9e0ada2d81a88
/Code-Code/ClozeTesting-maxmin/evaluator/evaluator.py
e8517ccff6b3245db8d8eef78eaa4a2e8390b4f0
[ "MIT", "Unlicense", "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
microsoft/CodeXGLUE
069bea1fca4701447fd47006202a16ddf7892501
e252e54a74dd55b1294e2379b213b1541dfefaf5
refs/heads/main
2023-08-08T22:19:33.162334
2023-07-31T12:21:09
2023-07-31T12:21:09
291,656,286
1,250
342
MIT
2023-07-31T08:41:12
2020-08-31T08:19:02
C#
UTF-8
Python
false
false
1,829
py
evaluator.py
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import logging import sys, json, os import numpy as np import argparse def read_answers(filename): answers = {} with open(filename, 'r', encoding='utf-8') as f: for line in f.readlines(): line = line.strip() ...
4c924f5736f577ebbc83390d08ae28ab61753488
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/EventFilter/L1TRawToDigi/python/gmtStage2Digis_cfi.py
a6dba0c9c4634f256d2823e45070b84e84885d0b
[ "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
223
py
gmtStage2Digis_cfi.py
import FWCore.ParameterSet.Config as cms gmtStage2Digis = cms.EDProducer( "L1TRawToDigi", InputLabel = cms.InputTag("rawDataCollector"), Setup = cms.string("stage2::GMTSetup"), FedIds = cms.vint32(1402), )
efd61b3f7d566ae11941a69328627a0faf517a1b
620323fc090cebaf7aca456ff3f7fbbe1e210394
/html_parsing/gametime__use_cubiq_ru/main.py
246166d800993cda2f28ee8260bd0ef02f0ccb38
[ "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
4,289
py
main.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "ipetrash" import re from dataclasses import dataclass from urllib.parse import urljoin import requests from bs4 import BeautifulSoup @dataclass class Time: text: str seconds: int @classmethod def from_text(cls, value: str) -> "Time": ...
17892a173fb59e5861d154e0e5e136be6935310b
e3bb1df7fa4c51900dec7e9ddf5295e1a80938bd
/hummingbot/connector/exchange/vertex/vertex_constants.py
56ca536b13c91c0f4bfe59340396cc513d77a773
[ "Apache-2.0" ]
permissive
CoinAlpha/hummingbot
0d1e2bd94de1280748647108c7d7800a09546eb8
c3f101759ab7e7a2165cd23a3a3e94c90c642a9b
refs/heads/development
2023-09-01T11:24:43.322137
2023-08-31T03:08:06
2023-08-31T03:08:06
439,330,952
135
98
Apache-2.0
2023-08-30T13:55:08
2021-12-17T12:50:42
Python
UTF-8
Python
false
false
9,758
py
vertex_constants.py
from typing import Any, Dict # A single source of truth for constant variables related to the exchange from hummingbot.core.api_throttler.data_types import LinkedLimitWeightPair, RateLimit from hummingbot.core.data_type.in_flight_order import OrderState # The max size of a digest is 66 characters (Vertex uses digests...
8925217fd98f9e72e56ad8d004915f7d301d8a9d
bf8d344b17e2ff9b7e38ad9597d5ce0e3d4da062
/deploy/pptracking/python/mot/tracker/ocsort_tracker.py
02b1028e1a59a74357d3ee8aef2446902458ffd2
[ "Apache-2.0" ]
permissive
PaddlePaddle/PaddleDetection
e7e0f40bef75a4e0b6dcbacfafa7eb1969e44961
bd83b98342b0a6bc8d8dcd5936233aeda1e32167
refs/heads/release/2.6
2023-08-31T07:04:15.357051
2023-08-18T02:24:45
2023-08-18T02:24:45
217,475,193
12,523
3,096
Apache-2.0
2023-09-10T10:05:56
2019-10-25T07:21:14
Python
UTF-8
Python
false
false
14,710
py
ocsort_tracker.py
# Copyright (c) 2022 PaddlePaddle 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 appli...
cdfd2919b570869456051aecd1a5f6db5ea5f93c
c7541429df08b30070aa87eda6aff9e08b601f91
/ipware/tests/tests_ipv6.py
8ee8fc14bbea52f045dc72736f8c415ccacb9a12
[ "MIT" ]
permissive
un33k/django-ipware
3489e251c7346fe98e41e685d658f5375314479a
930f3293eb11b2bfc221959434e8501c165a2b61
refs/heads/master
2023-09-04T12:42:49.904637
2023-03-08T02:07:32
2023-03-08T02:07:32
9,659,227
864
96
MIT
2023-09-12T16:21:49
2013-04-24T22:47:22
Python
UTF-8
Python
false
false
7,679
py
tests_ipv6.py
# -*- coding: utf-8 -*- from django.http import HttpRequest from django.test import TestCase from ipware import get_client_ip class IPv4TestCase(TestCase): """IP address Test""" def test_meta_none(self): request = HttpRequest() request.META = {} ip, routable = get_client_ip(request)...
943be2e5fdc9aceb18aa5c16bf5bc1c9525019d6
da1721d2783ea4d67ff4e73cee6eee71292f2ef7
/toontown/coghq/DistributedBanquetTable.py
4cf3c7303177ffc739ea66896d43aea5f004c73c
[ "BSD-3-Clause" ]
permissive
open-toontown/open-toontown
bbdeb1b7bf0fb2861eba2df5483738c0112090ca
464c2d45f60551c31397bd03561582804e760b4a
refs/heads/develop
2023-07-07T01:34:31.959657
2023-05-30T23:49:10
2023-05-30T23:49:10
219,221,570
143
104
BSD-3-Clause
2023-09-11T09:52:34
2019-11-02T22:24:38
Python
UTF-8
Python
false
false
46,566
py
DistributedBanquetTable.py
import math import random from panda3d.core import NodePath, Point3, VBase4, TextNode, Vec3, deg2Rad, CollisionSegment, CollisionHandlerQueue, CollisionNode, BitMask32 from panda3d.direct import SmoothMover from direct.fsm import FSM from direct.distributed import DistributedObject from direct.distributed.ClockDelta im...
b4c0882dae4e5fb0486033d0d8a287b6e55c6e69
2278989a22b2d230d238e3eb48ac9b94602b09ff
/Text/PresidioPIIAnonymization/powerskill/powerskill/__init__.py
c4adbb1b12281e5f53190ebcbfe544ce34185675
[ "MIT" ]
permissive
Azure-Samples/azure-search-power-skills
8c7d4a67c6cb0328043aff9fd0077be179e76fde
30cb169b0752a9648aa2c58fb0534053acbb636d
refs/heads/main
2023-08-19T04:41:44.935129
2023-07-31T20:41:57
2023-07-31T20:41:57
191,627,575
184
154
MIT
2023-09-12T23:00:30
2019-06-12T18:51:45
C#
UTF-8
Python
false
false
59
py
__init__.py
from .presidio import Presidio __all__ = [ "Presidio" ]
8e6fad7b5d70ec2a2a6fbbed43e540783ef5598f
14fcb8b3a1d1771e69f43fd6c10d1b930cc0c415
/flurs/model/user_knn.py
8af1cbd11f21b7bd44279d2d73c4bab0597e8cca
[ "MIT" ]
permissive
takuti/flurs
43f76f5d0917eb576c2869aa078b28711e17032a
04b8f4c2539f962fecf2d8fef342123230c1f263
refs/heads/master
2022-03-21T14:53:18.547818
2022-02-08T14:03:06
2022-02-08T14:03:06
71,954,398
116
23
MIT
2022-02-08T14:03:08
2016-10-26T01:37:28
Python
UTF-8
Python
false
false
2,956
py
user_knn.py
from sklearn.base import BaseEstimator import numpy as np class UserKNN(BaseEstimator): """Incremental User-based Collaborative Filtering using k-Nearest-Neighbor (kNN). Parameters ---------- k : int, default=5 Number of nearest neighbors. References ---------- .. [1] M. Pepage...
71b524e87965f538f26e1bfee25e97dd4ddf895b
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/unifiprotect/__init__.py
174f60fd1352a53db01e88b20c7c46661f084daa
[ "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
6,323
py
__init__.py
"""UniFi Protect Platform.""" from __future__ import annotations import asyncio from datetime import timedelta import logging from aiohttp.client_exceptions import ServerDisconnectedError from pyunifiprotect.exceptions import ClientError, NotAuthorized from homeassistant.config_entries import ConfigEntry from homeas...
cf7fe185d69ac6efc244ed4da2ed0e4033a4292d
4e212b61aeb142fca3b2ea801df76a9c37cf9d9d
/cuegui/cuegui/plugins/MonitorHostsPlugin.py
be40d74532fbfd2d1174832a8a84dad372fe8284
[ "Apache-2.0" ]
permissive
AcademySoftwareFoundation/OpenCue
90f2c9e90370966a9d7488e7022d484805abce33
c1f335d22e59cdf75859aa14ecdfe43d9cb43e95
refs/heads/master
2023-08-25T21:53:58.408872
2023-08-09T15:47:45
2023-08-09T15:47:45
133,735,379
439
191
Apache-2.0
2023-09-14T00:46:43
2018-05-16T23:58:12
Python
UTF-8
Python
false
false
2,824
py
MonitorHostsPlugin.py
# Copyright Contributors to the OpenCue Project # # 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...
22c758d99497e1f3715059d906c0242e8d87ada0
1cce1a31045943a27ebfd265002bf0c0a9af8757
/japonicus/configIndicators.py
3c885f15329899b1a1718cddc16217dd28000f53
[ "MIT" ]
permissive
Gab0/japonicus
e83ec8a0fe9a5d26ee21d8eaf4048137dc277dcd
af4aaf74f8b2195e1cdb512f00d33c5ad9868805
refs/heads/master
2023-08-04T19:26:41.523035
2019-11-08T22:44:15
2019-11-08T22:44:15
102,791,982
234
98
MIT
2023-07-06T21:14:08
2017-09-07T22:34:57
Python
UTF-8
Python
false
false
1,693
py
configIndicators.py
#!/bin/python cI = { "ADX": {"active": True, "period": 14, "thresholds.up": 70, "thresholds.down": 50}, "ATR": {"active": True, "period": 14, "thresholds.up": 70, "thresholds.down": 50}, "PPO": { "active": True, "short": (6, 18), # short EMA "long": (13, 39), # long EMA "si...
145e7283ab91a189a9eba04e6dc88bb3272d6eee
e7f2a8c466c14b9821e59740ed0407107e1254a4
/rasa/engine/storage/storage.py
a113c0efc609dbc90677a645b1bccd73e9f8083b
[ "LicenseRef-scancode-generic-cla", "Apache-2.0", "MIT" ]
permissive
RasaHQ/rasa
4a31134308a9a4d8824fe7faef02526accdd0f19
50857610bdf0c26dc61f3203a6cbb4bcf193768c
refs/heads/main
2023-08-28T01:53:56.981600
2023-08-25T10:20:49
2023-08-25T10:20:49
70,908,208
13,167
3,739
Apache-2.0
2023-09-14T09:54:40
2016-10-14T12:27:49
Python
UTF-8
Python
false
false
6,923
py
storage.py
from __future__ import annotations import abc import logging import typing from contextlib import contextmanager from dataclasses import dataclass from datetime import datetime from pathlib import Path from typing import List, Tuple, Union, Text, Generator, Dict, Any, Optional from packaging import version from rasa.c...
5975f0decc3c3f6a53794e4dc089ef675c91c7d6
2a76ca8c01e7abe6ef64d030ecbb65e88641b278
/glumpy/api/matplotlib/axes.py
26b3e34f379756afd8ea9bcef55f4dd397ea2cd6
[]
permissive
glumpy/glumpy
18bfc2d76b7a5fc126fbebddf2970d95238fc66b
75408635bd46e48ff10939e308a71eafdaff35e8
refs/heads/master
2023-09-03T11:48:52.087002
2023-04-20T15:23:59
2023-04-20T15:23:59
23,520,171
1,228
225
BSD-3-Clause
2023-07-07T07:25:18
2014-08-31T18:30:26
Python
UTF-8
Python
false
false
3,835
py
axes.py
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- import numpy as np from glumpy import app, gloo, g...
911bfd4dab55682398fc8b914ab3c2bf1eaa471a
abdbe2c4081ae1d52e81d19a71101a760508d524
/scripts/recombination/simulation/makeRandomRecombinants.py
00621deee529ad71c353ffe451e20c9041657ec5
[ "MIT" ]
permissive
yatisht/usher
70b501a3cf4d7f144164aa08682e1b57bcb2bcf4
2df81ee5108d6dc85dc7b3e8aaecf1c6a32fe312
refs/heads/master
2023-05-12T17:13:12.397649
2023-05-09T20:24:11
2023-05-09T20:24:11
296,144,053
121
37
MIT
2023-05-09T20:24:12
2020-09-16T20:44:57
C++
UTF-8
Python
false
false
15,510
py
makeRandomRecombinants.py
#!/usr/bin/env python3 # Name: Bryan Thornlow # Date: 2/1/2018 # compareDatabases.py import sys import os import datetime import numpy from numpy import random import gzip import math import argparse ########################## ###### COMMAND LINE ###### ########################## class CommandLine(object): """Ha...
bbde9886165f01adc74a0c70d3b94868077c0486
e665502aadb0c97d611a6a929dd1976763ca171c
/modules/lift_ori.py
6f4430a4d217a7afb5f3a79d4645db5cb3cf1704
[]
no_license
cvlab-epfl/tf-lift
b5da55596818809a44b9cb5a3c8a24655e84d1b0
5341909002e0a3269a115dc7f9ff7b5330961052
refs/heads/master
2022-12-25T19:42:27.275298
2020-09-30T22:16:25
2020-09-30T22:16:25
107,135,620
202
67
null
2020-04-13T15:54:52
2017-10-16T14:03:45
Python
UTF-8
Python
false
false
4,385
py
lift_ori.py
# lift_ori.py --- # # Filename: lift_ori.py # Description: WRITEME # Author: Kwang Moo Yi # Maintainer: Kwang Moo Yi # Created: Wed Jun 28 20:02:50 2017 (+0200) # Version: # Package-Requires: () # URL: # Doc URL: # Keywords: # Compatibility: # # # Commentary: # # # # # Change Log: # # # # Copyright (C), EPFL Computer...
499c539212c14e60b0adecc683c940442d641b4f
a5622dafafd782af153be2bc0bd19cb086fd07b2
/rest-service/manager_rest/storage/models_base.py
da99019d0a2e076e9ea54bb72274f2df40b07208
[ "Apache-2.0" ]
permissive
cloudify-cosmo/cloudify-manager
8b2d226ad5a9dd8103d7690b2f8081bef24078e1
c0de6442e1d7653fad824d75e571802a74eee605
refs/heads/master
2023-09-06T09:11:51.753912
2023-09-04T08:01:58
2023-09-04T08:01:58
18,326,574
146
84
Apache-2.0
2023-09-04T08:02:00
2014-04-01T11:06:47
Python
UTF-8
Python
false
false
11,229
py
models_base.py
from datetime import datetime import json from typing import Any from collections import OrderedDict from alembic.util.sqla_compat import _literal_bindparam from dateutil import parser as date_parser from sqlalchemy import inspect from flask_sqlalchemy import SQLAlchemy, BaseQuery from flask_restful import fields as ...
24226f5fa657b9a680ed27ca4b2a45c6424cc51c
850fb312d6cfa25546369b4950c47b04231dce8e
/src/gt4sd/frameworks/gflownet/train/core.py
12b0ecebf48061eb5b0919d633b4e167ae0251d4
[ "MIT" ]
permissive
GT4SD/gt4sd-core
825418303547c36cf64575ac4f8711877fd7e16b
0b69b7d5b261f2f9af3984793c1295b9b80cd01a
refs/heads/main
2023-09-02T21:23:46.156469
2023-08-30T08:28:40
2023-08-30T08:28:40
458,309,249
239
50
MIT
2023-08-25T06:14:52
2022-02-11T19:06:58
Jupyter Notebook
UTF-8
Python
false
false
5,208
py
core.py
# # MIT License # # Copyright (c) 2022 GT4SD team # # 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,...
2e8692153e8631b8e0a381191beddedb83a9b760
5e601244fbf32ee5190fb5210a0cd334473a0abe
/projects/WindowsSystemOps/Services/pyAutoResetPrinterWin32.py
c9fdba47c8f7031abcb85ddd9dc5a51b53b36df7
[]
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
8,573
py
pyAutoResetPrinterWin32.py
#!/usr/bin/python # encoding: utf-8 # -*- coding: utf-8 -*- """ Created by PyCharm. File Name: LinuxBashShellScriptForOps:pyAutoResetPrinterWin32.py Version: 0.0.1 Author: Guodong Author Email: dgdenterprise@gmail.com URL: https://github.com/DingG...