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
abeff4c1fe56632bd1a1386e703f8df49c2f8a09
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/rflink/test_utils.py
9a9caebab174a6b4204b536f8491d50b4e0e3f30
[ "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
1,182
py
test_utils.py
"""Test for RFLink utils methods.""" from homeassistant.components.rflink.utils import ( brightness_to_rflink, rflink_to_brightness, ) from homeassistant.core import HomeAssistant async def test_utils(hass: HomeAssistant, monkeypatch) -> None: """Test all utils methods.""" # test brightness_to_rflink ...
b09bdd2d30733bffcee6651b732186ad286c9640
f450e9146c7bf938ee3ec306655df64da3cef686
/clickhouse_sqlalchemy/sql/ddl.py
d651646198d822fa287511e9d0b0e89ee7cb9acf
[ "MIT" ]
permissive
xzkostyan/clickhouse-sqlalchemy
7bd3a7f5b1df8225943a156146eed2e6080bff42
060c60131a7a830cb691c23bc9c9931f5e3e19cc
refs/heads/master
2023-09-01T14:09:43.331638
2023-07-27T07:33:27
2023-07-27T07:33:27
86,639,356
355
133
NOASSERTION
2023-07-27T07:33:28
2017-03-29T23:45:58
Python
UTF-8
Python
false
false
2,650
py
ddl.py
from sqlalchemy.sql.ddl import ( SchemaDropper as SchemaDropperBase, DropTable as DropTableBase, SchemaGenerator as SchemaGeneratorBase, _CreateDropBase ) from sqlalchemy.sql.expression import UnaryExpression from sqlalchemy.sql.operators import custom_op class DropTable(DropTableBase): def __init__(self,...
3aa0600acc794d387ee9185b5141b10661eae2a7
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/battle_royale/scripts/client/battle_royale/gui/Scaleform/daapi/view/lobby/hangar/carousel/handlers.py
5912ab6856a13c15b819646a6644d1112808344b
[]
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,853
py
handlers.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: battle_royale/scripts/client/battle_royale/gui/Scaleform/daapi/view/lobby/hangar/carousel/handlers.py from logging import getLogger from stats_params import BATTLE_ROYALE_STATS_ENABLED from gui.shared import event_dispatcher as shared_events from ...
125cbb8c5431cf90595322036bc270df38d03944
3ca67d69abd4e74b7145b340cdda65532f90053b
/BOJ/1213.팰린드롬 만들기/6047198844.py
a01ddd5495b1fc5c8ead71611d03d3ae45c60bc1
[]
no_license
DKU-STUDY/Algorithm
19549516984b52a1c5cd73e1ed1e58f774d6d30e
6f78efdbefd8eedab24e43d74c7dae7f95c2893b
refs/heads/master
2023-02-18T06:48:39.309641
2023-02-09T07:16:14
2023-02-09T07:16:14
258,455,710
175
49
null
2023-02-09T07:16:16
2020-04-24T08:42:27
Python
UTF-8
Python
false
false
338
py
6047198844.py
from collections import Counter s = input() res = '' even_alpha = '' for alpha, cnt in sorted(Counter(s).items()): res += alpha * (cnt // 2) if cnt % 2 != 0: if even_alpha == '': even_alpha = alpha else: print("I'm Sorry Hansoo") break else: print(res+eve...
dd03f7f9446eb400d88dab5d84d19bfa3bce2aaa
d7d63d3a36f147b9f03032f5890546248599ebce
/util/mongodb_binaries/errors.py
9e3fbe2ca302ccc79c12352a922e0dd9f4a86555
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
mongodb/mongo-perf
fb1f5bce96b8387b3c539225b92435d9068644e4
d4562b5d2d941613af2424192557b10b9cc24934
refs/heads/master
2023-08-31T09:02:22.271105
2023-06-27T20:46:25
2023-06-27T20:46:25
404,397
259
123
null
2023-09-14T20:54:36
2009-12-07T20:29:03
JavaScript
UTF-8
Python
false
false
265
py
errors.py
class BinariesNotAvailableError(Exception): """Exception to be thrown when no Binary package is found""" class DownloadDirectoryExistsError(Exception): """ Raised when a download directory exists but doest not appear to be a binaries directory """
cf2ae015a17c43a9df2111edb11f347040c6f1b5
5e9576c368e98927e2965bd2fb23bd35d9993d69
/featuretools/primitives/standard/aggregation/count_below_mean.py
c64a5d1f325c582237ab0292a45595d9e0c5fa1a
[ "BSD-3-Clause" ]
permissive
alteryx/featuretools
c6e319e063e8e84e7684bf232376f95dc5272160
c284c2d27a95b81e0bae913ac90df2b02c8f3b37
refs/heads/main
2023-08-25T12:21:33.945418
2023-08-23T16:30:25
2023-08-23T16:30:25
102,908,804
1,783
201
BSD-3-Clause
2023-09-07T18:53:19
2017-09-08T22:15:17
Python
UTF-8
Python
false
false
1,265
py
count_below_mean.py
import numpy as np from woodwork.column_schema import ColumnSchema from woodwork.logical_types import IntegerNullable from featuretools.primitives.base.aggregation_primitive_base import AggregationPrimitive class CountBelowMean(AggregationPrimitive): """Determines the number of values that are below the mean. ...
b37b771abc1b8d7e7e4f65d1eb9eb8cb5cbbb0a0
e910cca862905577212a514727ca8cbfa9213839
/policy_sentry/querying/arns.py
43078c17b24fb101595de52443dd3ceccb4295b3
[ "MIT" ]
permissive
salesforce/policy_sentry
1b0da6af01dd5507087ae7b266389036855ddb94
a06d95c4c20722e4a1c51da9943c52bac2154b41
refs/heads/master
2023-08-31T15:24:58.480240
2023-08-28T20:47:16
2023-08-29T20:52:56
209,652,627
1,864
151
MIT
2023-09-09T19:55:39
2019-09-19T21:35:53
Python
UTF-8
Python
false
false
6,020
py
arns.py
""" Methods that execute specific queries against the SQLite database for the ARN table. This supports the policy_sentry query functionality """ from __future__ import annotations import logging import functools import warnings from typing import Any from policy_sentry.querying.arns_v1 import get_arn_type_details_v1 ...
5bb3815ae55bb1e05fa04d9c6b8dfa47e9775558
a1d6c7e0489938bb197f0571ff19f43a9757b069
/src/sphinx/conf.py
70dcef5e880412742f1e8c73112ba36585159d43
[ "BSD-3-Clause", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
harrah/xsbt
79b122ce88d937c2b54a3e7e2058fa90001de198
92a38c604ee8d449135684b0d5887b6769bffc32
refs/heads/0.13
2023-05-27T12:45:42.000007
2013-01-07T14:58:58
2013-01-07T14:58:58
279,553
829
123
null
null
null
null
UTF-8
Python
false
false
3,133
py
conf.py
# -*- coding: utf-8 -*- import sys, os sys.path.append(os.path.abspath('_sphinx/exts')) extensions = ['sphinxcontrib.issuetracker', 'sphinx.ext.extlinks', 'howto'] # Project variables project = 'sbt' version = '0.13' release = '0.13.0-SNAPSHOT' scalaVersion = "2.10" scalaRelease = "2.10.0" # General settings need...
862a4caa6c22e37c38bff1714d59a9c8fde50aab
4a9b074e9cafebcffa4c8212bb966658c476a33b
/neo/Core/UInt256.py
1dc611e242604bb5d2440232cc9755ab3829900b
[ "LicenseRef-scancode-free-unknown", "MIT" ]
permissive
CityOfZion/neo-python
66a46c2509044d9b52ccce4643b4df74a1f14da2
99783bc8310982a5380081ec41a6ee07ba843f3f
refs/heads/master
2023-07-19T00:04:36.415986
2021-11-15T12:15:55
2021-11-15T12:15:55
97,416,422
396
288
MIT
2021-06-01T21:42:39
2017-07-16T23:05:32
Python
UTF-8
Python
false
false
688
py
UInt256.py
from neo.Core.UIntBase import UIntBase class UInt256(UIntBase): def __init__(self, data=None): super(UInt256, self).__init__(num_bytes=32, data=data) @staticmethod def ParseString(value): """ Parse the input str `value` into UInt256 Raises: ValueError: if the ...
22275fe59726a110709ac65b6c484096ed293d55
771fa3a01480527df835c593bf99c5b8ae702b6a
/tests/pylt/tests/t-mod-auth.py
bdad4152745ab4669d06aa347ed045deb55cf1a6
[ "CC0-1.0", "Apache-2.0", "MIT" ]
permissive
lighttpd/lighttpd2
cee558174b0a07174a4488591c16882845d43240
23164d557f10d4ccd948b34c5b1323e22ce5088f
refs/heads/master
2023-09-05T03:39:50.805344
2023-07-23T00:03:44
2023-07-23T00:03:44
1,767,422
459
135
NOASSERTION
2023-01-06T20:16:37
2011-05-18T18:13:11
C
UTF-8
Python
false
false
3,111
py
t-mod-auth.py
# -*- coding: utf-8 -*- from pylt.base import ModuleTest from pylt.requests import CurlRequest # userI:passI for I in [1..4] with [apr-md5, crypt, plain and apr-sha] PASSWORDS = """user1:$apr1$mhpONdUp$xSRcAbK2F6hLFUzW59tzW/ # user2:JTMoqfZHCS0aI user3:pass3 user4:{SHA}LbTBgR9CRYKpD41+53mVzwGNlEM= """ # user5:pass5...
5a80efdd3830c6e2fa2d5f930dcf09f89395559e
a1c7055f3e66fb802ae4c3ecdb952ff45579914f
/cmd2/rl_utils.py
52feacb9b26c02dcb24936595953e643ab333f7f
[ "MIT" ]
permissive
python-cmd2/cmd2
3e4ef2a1804554e8acd50898636a5685eab292c1
9886b82c71face043e1fac871a6cdbebbf0e864c
refs/heads/master
2023-09-05T14:55:50.702311
2023-09-04T16:44:01
2023-09-04T16:44:01
51,442,999
571
154
MIT
2023-09-04T16:44:03
2016-02-10T13:34:49
Python
UTF-8
Python
false
false
10,377
py
rl_utils.py
# coding=utf-8 """ Imports the proper Readline for the platform and provides utility functions for it """ import sys from enum import ( Enum, ) from typing import ( Union, ) ######################################################################################################################### # NOTE ON LIBED...
46400685c5b4a730fba3e232a476157aba2104ac
61a148d684047323f866017c6c95e0dc78682c43
/core/amber/src/main/python/core/architecture/handlers/update_input_linking_handler.py
95b9985dc146bd6ec68abf6f108458d29e207d7c
[ "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
Texera/texera
9dd92dd0999fd78ff37cb6241f3395d475549e27
ca554ecad8e161b489aa17bdb17c9249ef888b6d
refs/heads/master
2023-09-03T21:46:42.147647
2023-08-31T21:42:30
2023-08-31T21:42:30
53,976,910
129
61
Apache-2.0
2023-09-14T15:53:52
2016-03-15T20:38:46
Scala
UTF-8
Python
false
false
517
py
update_input_linking_handler.py
from core.architecture.handlers.handler_base import Handler from core.architecture.managers.context import Context from proto.edu.uci.ics.amber.engine.architecture.worker import UpdateInputLinkingV2 class UpdateInputLinkingHandler(Handler): cmd = UpdateInputLinkingV2 def __call__( self, context: Cont...
6ffbed51119bb8b6b58c1505c00bd20a0ed7e167
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/olap/ByConity/tests/testflows/rbac/tests/views/view.py
3fd12164ad6d51fe9085390c14146e15629dd7dc
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
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
61,176
py
view.py
from testflows.core import * from testflows.asserts import error from rbac.requirements import * from rbac.helper.common import * import rbac.helper.errors as errors @TestSuite @Requirements( RQ_SRS_006_RBAC_View_Create("1.0"), ) def create(self, node=None): """Test the RBAC functionality of the `CREATE VIEW`...
73dc13544e3bb49938642a19abdf129c08a57dbe
850fb312d6cfa25546369b4950c47b04231dce8e
/src/gt4sd/training_pipelines/torchdrug/__init__.py
64a9cc4fbda26e900ae552c3d81971ce862646d8
[ "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
2,578
py
__init__.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,...
bd599eee828d00db3dfa05a3b88093de38530f97
db43055180800e54526affb7941fc77e0226c4b3
/tests/test_chi_state_university.py
6dcc667b8898857a02f50f79f40047b47d29e021
[ "MIT" ]
permissive
City-Bureau/city-scrapers
53724d4e973d71ec331cd9749e350c460aa6fb9d
611fce6a2705446e25a2fc33e32090a571eb35d1
refs/heads/main
2023-08-15T01:06:49.336847
2023-07-01T20:39:28
2023-07-01T20:39:28
97,890,025
308
366
MIT
2023-09-07T07:30:12
2017-07-21T00:45:13
Python
UTF-8
Python
false
false
2,560
py
test_chi_state_university.py
from datetime import date, datetime from os.path import dirname, join import pytest from city_scrapers_core.constants import BOARD from city_scrapers_core.utils import file_response from freezegun import freeze_time from city_scrapers.spiders.chi_state_university import ChiStateUniversitySpider test_response = file_...
35211fde81e8c6f19e88f0f72411cb558442bfbe
35b6013c1943f37d1428afd2663c8aba0a02628d
/appengine/standard_python3/bigquery/main.py
d1d41b5a6e2ce5440c3f7f2178435d029ef72d2d
[ "Apache-2.0" ]
permissive
GoogleCloudPlatform/python-docs-samples
d2a251805fbeab15d76ed995cf200727f63f887d
44e819e713c3885e38c99c16dc73b7d7478acfe8
refs/heads/main
2023-08-28T12:52:01.712293
2023-08-28T11:18:28
2023-08-28T11:18:28
35,065,876
7,035
7,593
Apache-2.0
2023-09-14T20:20:56
2015-05-04T23:26:13
Jupyter Notebook
UTF-8
Python
false
false
2,375
py
main.py
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
cb90a7855b2fb76d25d0bfe43b6899fe03681224
5b8fdeb482307b05b43c51784b41b2fa92112d0a
/Code of Winning Methods/A1/3. code/1. preprocessing/1. preprocessing.py
b8105e49ddbbbc2ee2814c5d1444987c0ab1f43c
[]
no_license
Mcompetitions/M5-methods
77546b51161ea26e6aea6b96af9ed90e7792149b
18e4e776cfa1ded3b387fabe008c6c2c44922007
refs/heads/master
2023-04-28T04:30:05.475564
2023-04-19T05:55:10
2023-04-19T05:55:10
235,292,116
525
225
null
2022-11-22T06:21:28
2020-01-21T08:37:29
Jupyter Notebook
UTF-8
Python
false
false
16,116
py
1. preprocessing.py
#!/usr/bin/env python # coding: utf-8 # ## Please input your directory for the top level folder # folder name : SUBMISSION MODEL # In[ ]: dir_ = '/home/artemis/M5/A1-Yeon/' # input only here # In[ ]: raw_data_dir = dir_+'2. data/' processed_data_dir = dir_+'2. data/processed/' # # 1. Main setup # In[ ]: # ...
ed163c499ca8456f99f4397aeaf27634d99cb575
993252f0bab4d37b1ea0f0b9a95dbb96a200808f
/examples/sparse_eigen.py
ee331e49284f46a6184a50d84c859c9e8d4a758b
[]
no_license
cvxgrp/dccp
4dba3e8e5c517a7c314a20d6144e2268c4cd61a1
c94aba9881e9f39119c1a693a5a752f23cf0d403
refs/heads/master
2023-06-09T08:50:12.835704
2022-07-09T21:22:12
2022-07-09T21:22:12
55,815,696
115
29
null
2020-12-02T04:47:42
2016-04-08T23:28:30
Python
UTF-8
Python
false
false
2,105
py
sparse_eigen.py
__author__ = "Xinyue" from cvxpy import * import numpy as np import matplotlib.pyplot as plt import dccp np.random.seed(2) m = 10 n = 10 A0 = np.random.randn(m, n) / 3 A0[:, -1] = A0[:, -2] + A0[:, -3] # spark(A) = 3 for j in range(6, 8): A0[:, j] = A0[:, j - 1] + A0[:, j - 3] U, Sigma, V = np.linalg.svd(A0, 0) S...
e1a214080ca1b1b78443771a50bd96b6a293d5d4
93713f46f16f1e29b725f263da164fed24ebf8a8
/Library/lib/python3.7/site-packages/sympy/integrals/rubi/rules/special_functions.py
02013023b396332adffd9b72a575834b4efd4dd5
[ "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
89,418
py
special_functions.py
""" This code is automatically generated. Never edit it manually. For details of generating the code see `rubi_parsing_guide.md` in `parsetools`. """ from sympy.external import import_module matchpy = import_module("matchpy") if matchpy: from matchpy import Pattern, ReplacementRule, CustomConstraint, is_match ...
60c418a3ea5af9e28fa4ba5a085980e81856d838
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/components/optimization_guide/core/DEPS
416a75578789f033666300c982acecd958d6c235
[ "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
468
DEPS
include_rules = [ "+components/crx_file", "+components/download/public/background_service", "+components/services/unzip", "+components/ukm/test_ukm_recorder.h", "+crypto", "+mojo/public/cpp", "+services/metrics/public/cpp", "+third_party/mediapipe", "+third_party/tensorflow_models/src", "+third_part...
48adce20c42147d758ea78c657f0357b7996933d
3c65819102cf0bed7c044096b2ffac09ef48b81d
/tu_07_basic_shading.py
67d83810a6ac7c947752c313e93e8898ff2d17b5
[]
no_license
jcteng/python-opengl-tutorial
abbb42d8adb463d08b4e2dcf39fc84c8a382f914
d2045f7e6349628d4290c383607b21e530cb1f52
refs/heads/master
2022-11-24T01:15:35.796283
2021-09-14T04:17:57
2021-09-14T04:17:57
140,151,029
136
40
null
2022-11-22T08:48:48
2018-07-08T08:37:39
Python
UTF-8
Python
false
false
4,929
py
tu_07_basic_shading.py
# import os,sys # sys.path.append(os.path.abspath(os.path.dirname(__file__))) from OpenGL.GL import * # pylint: disable=W0614 from utils.meshViewer import MeshViewWindow, meshWithRender from utils.shaderLoader import Shader import glm class basicShading(meshWithRender): def __init__(self,meshNam...
8d6120b0505dfbbbdcf75f1694dee2768ec85737
6f2fef1b207299681f8d67d3831c400bb91de04b
/data_collection/gazette/spiders/sc_santa_rosa_de_lima.py
725191dd0a78ee667b35765593798fd86f50fbfe
[ "MIT" ]
permissive
okfn-brasil/querido-diario
76177747aa5ad47e99514f38402e6bc747b9a715
548a9b1b2718dc78ba8ccb06b36cf337543ad71d
refs/heads/main
2023-08-22T04:26:30.798196
2023-08-18T14:12:37
2023-08-18T14:12:37
127,598,755
402
233
MIT
2023-09-14T18:56:02
2018-04-01T05:01:21
Python
UTF-8
Python
false
false
212
py
sc_santa_rosa_de_lima.py
from gazette.spiders.base.fecam import FecamGazetteSpider class ScSantaRosaDeLimaSpider(FecamGazetteSpider): name = "sc_santa_rosa_de_lima" FECAM_QUERY = "cod_entidade:233" TERRITORY_ID = "4215604"
5c9308ce94a4561840fcff5ec2fb5f4a955a362c
e64f4410da97e445a61e1a78baf7fdbaa8296547
/flask_rest_jsonapi/decorators.py
adab2256880a642d2f3f07c206e76b22425b35b9
[ "MIT" ]
permissive
miLibris/flask-rest-jsonapi
b8eb3148be026d58e3720107d0b7222f452b761a
a4ff3f4d5be78071f015efe003e976d31d4eba10
refs/heads/master
2023-08-17T08:21:07.601145
2020-10-08T07:09:20
2020-10-08T07:09:20
71,563,227
693
147
MIT
2023-06-28T11:42:03
2016-10-21T12:29:30
Python
UTF-8
Python
false
false
4,629
py
decorators.py
# -*- coding: utf-8 -*- """Decorators to check headers and method requirements for each Api calls""" import json from functools import wraps from flask import request, make_response, jsonify, current_app from flask_rest_jsonapi.errors import jsonapi_errors from flask_rest_jsonapi.exceptions import JsonApiException ...
f599a4680de6a369e2fd21a02984e7ee5daf0593
263170e7dca79883314273bb35aef1449e018361
/tests/testcase/execution/test_executiontrace.py
85d434527ee9e7f26422b4029962baac6d194708
[ "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
2,598
py
test_executiontrace.py
# This file is part of Pynguin. # # SPDX-FileCopyrightText: 2019–2023 Pynguin Contributors # # SPDX-License-Identifier: MIT # from unittest.mock import MagicMock from pynguin.slicer.executedinstruction import ExecutedInstruction from pynguin.testcase.execution import ExecutedAssertion from pynguin.testcase.executio...
e01f804b95834b37a03f03b0ee6e04a3a7ea05d5
12091b1c0723759464f949b0a47b305c76549278
/tests/test_geneticmap.py
382df9112a56d97ff9dc35e56a7d9c8c610343fb
[ "MIT" ]
permissive
whatshap/whatshap
6311e13d36210f395206683bb00b2054ef639653
15c9ff8c4f5b04b86195396dbc6620c874b5ceb8
refs/heads/main
2023-09-04T07:58:09.567203
2023-08-31T08:45:45
2023-08-31T08:45:45
276,673,862
254
27
MIT
2023-09-10T06:47:19
2020-07-02T14:53:00
Python
UTF-8
Python
false
false
1,082
py
test_geneticmap.py
import pytest from whatshap.pedigree import GeneticMapRecombinationCostComputer, ParseError def test_read_genetic_map(tmp_path): path = tmp_path / "genetic.map" path.write_text("ignored header\n" "568527 0 0\n" "723891 2.9813105581 0.417644215424158\n") _ = GeneticMapRecombinationCostComputer(str(path)) ...
e8ba9352258b3311aa2925010a950345baaaa768
e95d1d4690d8d0bbcfa38f1e2e569497028a946b
/src/benchmarks/gc/src/mypy_stubs/flask_cors.pyi
ff2220cd8f49231f0654a698cc947f06e182a8de
[ "MIT" ]
permissive
dotnet/performance
003b5f3a407099ea2dbda5d325aa83901eb5e8a2
24bfc1a4bb8726bd8531036923e462117d5e6f87
refs/heads/main
2023-09-04T11:51:34.513827
2023-09-04T09:17:54
2023-09-04T09:17:54
124,948,838
672
262
MIT
2023-09-14T18:25:17
2018-03-12T20:41:10
F#
UTF-8
Python
false
false
59
pyi
flask_cors.pyi
from flask import Flask def CORS(app: Flask) -> None: ...
fec17a098c79dd7f5cf9267767519159c961a721
3dc647cd07a7361ed401e40d2b7cce8c826c8f6c
/Lib/test/test_importlib/test_path.py
6fc41f301d1cab196a26bacb7b8bd1a1535a62c3
[ "CC-BY-4.0", "MIT", "Python-2.0" ]
permissive
RustPython/RustPython
5ddce4a9848b9de8c041ffd2634f83c0105d3f39
b864e5da1f18897fc884180b7093df5aa170024f
refs/heads/main
2023-09-04T12:38:29.458699
2023-09-03T12:33:42
2023-09-03T12:33:42
135,201,145
15,815
1,302
MIT
2023-09-14T08:11:45
2018-05-28T19:27:01
Rust
UTF-8
Python
false
false
2,086
py
test_path.py
import io import unittest from importlib import resources from . import data01 from .resources import util class CommonTests(util.CommonTests, unittest.TestCase): def execute(self, package, path): with resources.as_file(resources.files(package).joinpath(path)): pass class PathTests: def...
d81153b21cff696f1e1052a35386c8b6a9f4ae81
8d1c7fba7cd15f8a1e33fd27d11eefd1c67d579f
/third_party/py/dataclasses/dataclasses/__init__.py
15d9756f5d4af619e926cec221599e799aa38dad
[ "Python-2.0", "Apache-2.0" ]
permissive
bazelbuild/bazel
5896162455f032efc899b8de60aa39b9d2cad4a6
171aae3f9c57b41089e25ec61fc84c35baa3079d
refs/heads/master
2023-08-22T22:52:48.714735
2023-08-22T18:01:53
2023-08-22T18:01:53
20,773,773
20,294
4,383
Apache-2.0
2023-09-14T18:38:44
2014-06-12T16:00:38
Java
UTF-8
Python
false
false
40,539
py
__init__.py
import sys import copy import types import inspect __all__ = ['dataclass', 'field', 'Field', 'FrozenInstanceError', 'InitVar', 'MISSING', # Helper functions. 'fields', 'asdict', 'astuple', 'make_dataclass', ...
17e9fe10ee922b29b3d2bb9997c460f1b7a54d1d
2337351b228818e41be3002bd38f68f77c2aa074
/sa/migrations/0237_objectnotification_routes.py
1121cb602abeb2a2dce70f5b60fa227aa88a5422
[ "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,619
py
0237_objectnotification_routes.py
# --------------------------------------------------------------------- # Migrate ObjectNotification to Route # --------------------------------------------------------------------- # Copyright (C) 2007-2022 The NOC Project # See LICENSE for details # --------------------------------------------------------------------...
a2a0adc60d7231ff1b7ee66dd8c1e05253835717
cf1cba50df334d63cdfae3f785c3d7bad1ed2c84
/imputed-v2-gwas/6_filter_gwas_variants.py
de34a6c31974a157a7b6ca66d397cb9309ffc0a7
[]
no_license
Nealelab/UK_Biobank_GWAS
3fc34adfc7790a1d882b99de52eb3d36f1cb2c41
68b6d4c40e3961655037ff4822fb7917904b3f58
refs/heads/master
2023-08-16T01:14:15.974149
2023-06-07T14:51:08
2023-06-07T14:51:08
99,874,476
300
108
null
2020-02-04T17:55:04
2017-08-10T02:56:14
Python
UTF-8
Python
false
false
1,111
py
6_filter_gwas_variants.py
from __future__ import print_function from pprint import pprint from hail import * hc = HailContext() BUCKET = '...' APPLICATION = 'test' VARIANT_VDS = BUCKET + 'all_variants.vds' GWAS_VARIANTS_VDS = BUCKET + 'gwas_variants.vds' GWAS_VARIANTS_TSV = BUCKET + 'gwas_variants.tsv' vds = ( hc .read(VARIANT_VDS)...
088b340f4e5236cafcc52052b369073cb24a3b24
6189f34eff2831e3e727cd7c5e43bc5b591adffc
/WebMirror/management/rss_parser_funcs/feed_parse_extractTandQ.py
2cf9c2855e68897acf35be7b46925fd55e073dec
[ "BSD-3-Clause" ]
permissive
fake-name/ReadableWebProxy
24603660b204a9e7965cfdd4a942ff62d7711e27
ca2e086818433abc08c014dd06bfd22d4985ea2a
refs/heads/master
2023-09-04T03:54:50.043051
2023-08-26T16:08:46
2023-08-26T16:08:46
39,611,770
207
20
BSD-3-Clause
2023-09-11T15:48:15
2015-07-24T04:30:43
Python
UTF-8
Python
false
false
4,349
py
feed_parse_extractTandQ.py
def extractTandQ(item): """ T&Q """ vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol or frag) or 'preview' in item['title'].lower(): return None bad = [ '#K-drama', 'fashion', 'C-Drama', '#Trending', 'Feature', '#Trailer', '#Eng Sub', 'M...
f78ea6eddf55e373527d3cae118bec6252cf0539
da1500e0d3040497614d5327d2461a22e934b4d8
/third_party/blink/Tools/Scripts/webkitpy/tool/commands/rebaseline_server.py
00f97fd4b45c5e1f69c10bafcf92f9f3da932381
[ "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "BSD-3-Clause", "Apache-2.0", "MIT" ]
permissive
youtube/cobalt
34085fc93972ebe05b988b15410e99845efd1968
acefdaaadd3ef46f10f63d1acae2259e4024d383
refs/heads/main
2023-09-01T13:09:47.225174
2023-09-01T08:54:54
2023-09-01T08:54:54
50,049,789
169
80
BSD-3-Clause
2023-09-14T21:50:50
2016-01-20T18:11:34
null
UTF-8
Python
false
false
4,677
py
rebaseline_server.py
# Copyright (c) 2010 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
bf6d95301852188982c94d0ec570937b44fa27c2
f509ab9825c542e09b0c6591d86ef1f9feb540a6
/pkgs/filetransferutils-pkg/src/genie/libs/filetransferutils/plugins/ios/sftp/fileutils.py
c8012c1929ecd5ae8a5826231b58751f764c2a68
[ "Apache-2.0" ]
permissive
CiscoTestAutomation/genielibs
97f597117193aaa18028defeb69078ebb241173a
e42e51475cddcb10f5c7814d0fe892ac865742ba
refs/heads/master
2023-08-11T16:39:41.959947
2023-07-27T17:58:42
2023-07-27T17:58:42
130,717,047
109
60
Apache-2.0
2023-08-29T22:32:08
2018-04-23T15:21:56
Python
UTF-8
Python
false
false
162
py
fileutils.py
""" File utils base class for SFTP on IOS devices. """ from ...iosxe.sftp.fileutils import FileUtils as FileUtilsXEBase class FileUtils(FileUtilsXEBase): pass
99c4d68af6a373b3984406f38e229ba6485a6265
1ab5036a95066a18d889aa1186fd1609ff4b5923
/petl/test/io/test_text_unicode.py
6721a854623da6cbd62c63d9331ea27190207e48
[ "MIT" ]
permissive
petl-developers/petl
b52d6ee6e0ab16a1ba17f98a4aa2f791d93ba796
e829532e2ed350d00b96680d2d6774dec4a7f2e0
refs/heads/master
2023-08-30T02:36:09.816551
2023-08-22T15:07:19
2023-08-22T15:22:53
2,233,194
663
109
MIT
2023-08-22T15:22:55
2011-08-19T09:51:03
Python
UTF-8
Python
false
false
2,041
py
test_text_unicode.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, division import io from tempfile import NamedTemporaryFile from petl.test.helpers import ieq, eq_ from petl.io.text import fromtext, totext def test_fromtext(): data = ( u"name,id\n" u"Արամ Խաչատրյան,1\n" u...
96ac19bb8adcf38ce5b40b5669a45ad824f99dfe
323897ae1b6a1afadb8fe8a35da25c9260bfb778
/tests/test_docs.py
86ce2e49bc7d85a10a4bc2cabe272bef8b14417c
[ "MIT" ]
permissive
koaning/doubtlab
33c7a95a6cf3f5f551be880982b6a8107c0ed8db
0dd59d4e1168b08db7bd08f9b0934133c7e6c33c
refs/heads/main
2022-12-05T21:23:28.519902
2022-11-25T16:06:50
2022-11-25T16:06:50
425,039,785
473
22
MIT
2022-11-25T16:06:51
2021-11-05T17:57:54
Python
UTF-8
Python
false
false
1,652
py
test_docs.py
import pytest from mktestdocs import check_docstring, check_md_file, get_codeblock_members from doubtlab.reason import ( ProbaReason, RandomReason, OutlierReason, DisagreeReason, LongConfidenceReason, ShortConfidenceReason, MarginConfidenceReason, WrongPredictionReason, AbsoluteDiff...
e970eec6431c05aa236e8d58719dca8c53a18321
5e9576c368e98927e2965bd2fb23bd35d9993d69
/featuretools/primitives/standard/transform/cumulative/cumulative_time_since_last_true.py
b237a5357bebc49cc69de314ef56d4e8a58b1ec0
[ "BSD-3-Clause" ]
permissive
alteryx/featuretools
c6e319e063e8e84e7684bf232376f95dc5272160
c284c2d27a95b81e0bae913ac90df2b02c8f3b37
refs/heads/main
2023-08-25T12:21:33.945418
2023-08-23T16:30:25
2023-08-23T16:30:25
102,908,804
1,783
201
BSD-3-Clause
2023-09-07T18:53:19
2017-09-08T22:15:17
Python
UTF-8
Python
false
false
2,013
py
cumulative_time_since_last_true.py
import numpy as np import pandas as pd from woodwork.column_schema import ColumnSchema from woodwork.logical_types import Boolean, Datetime, Double from featuretools.primitives.base import TransformPrimitive class CumulativeTimeSinceLastTrue(TransformPrimitive): """Determines the time (in seconds) since the last...
f219cfe0fc7fe4f1cd6553f61416be72f067d840
444a9480bce2035565332d4d4654244c0b5cd47b
/research/cv/FaceNet/eval.py
bd83a0d6f71658d106857fe0030de37d461f4379
[ "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
2,709
py
eval.py
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
c3902aeb2177129e0b066c9847479159d80574d8
f30fa69c3a568eda5665301265ecafca4f4aaabf
/skimage/util/tests/test_slice_along_axes.py
38c9a2cb7cd4d15a8a779d23308e4a28ea125b3a
[ "BSD-2-Clause", "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
scikit-image/scikit-image
7cf7f29424a7f98815d69ee9f5193e5fc64d829e
a45f2daf9fcac32e3e8d2c95ade807ac67351965
refs/heads/main
2023-09-05T07:08:10.970717
2023-08-26T19:38:11
2023-08-26T19:38:11
2,014,929
5,509
2,439
NOASSERTION
2023-09-14T10:46:45
2011-07-07T22:07:20
Python
UTF-8
Python
false
false
1,681
py
test_slice_along_axes.py
import numpy as np import pytest from skimage.util import slice_along_axes rng = np.random.default_rng() def test_2d_crop_0(): data = rng.random((50, 50)) out = slice_along_axes(data, [(0, 25)]) np.testing.assert_array_equal(out, data[:25, :]) def test_2d_crop_1(): data = rng.random((50, 50)) ...
b8017c75d0ce7464a3f24e8b84ea0c5379c76bb4
671a2603d05d5033e98623c9fa857c1ff0dbaf65
/application-workloads/python/vmss-bottle-autoscale/workserver.py
259485b69b047d9a954b23403aac3780258a2344
[ "MIT" ]
permissive
Azure/azure-quickstart-templates
ed26f54b289d7826c40e7ee768001d2826297168
e2b259b46ebef83fcd015188cbef01e276d0c1b4
refs/heads/master
2023-09-05T11:00:25.375647
2023-09-01T15:00:21
2023-09-01T15:00:22
34,407,651
14,694
19,074
MIT
2023-09-14T17:36:17
2015-04-22T18:19:03
Bicep
UTF-8
Python
false
false
1,699
py
workserver.py
# workserver.py - simple HTTP server with a do_work / stop_work API # GET /do_work activates a worker thread which uses CPU # GET /stop_work signals worker thread to stop import math import socket import threading import time from bottle import route, run hostname = socket.gethostname() hostport = 9000 keepworking = ...
9e04ac16057668835fb24c1de91976fa2ddc86e5
7400a2f7782a4b679f12cad8307ff7999a604c79
/puppetboard/errors.py
37c0cf7647a78aed682ee456c7156aa0f9070ff0
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
voxpupuli/puppetboard
49494649c00573bac7ed24021dbb7f266da8add5
43c21f59b95bd3fe3f8462cb91a252768223ed11
refs/heads/master
2023-09-03T07:44:54.047732
2023-08-23T10:08:10
2023-08-23T10:08:10
11,746,441
396
229
Apache-2.0
2023-09-12T13:58:07
2013-07-29T18:22:09
Python
UTF-8
Python
false
false
955
py
errors.py
from flask import render_template from werkzeug.exceptions import InternalServerError from puppetboard.core import environments, get_app app = get_app() @app.errorhandler(400) def bad_request(e): envs = environments() return render_template('400.html', envs=envs), 400 @app.errorhandler(403) def forbidden(...
c4acefa7e70f445bd8b9c33afe8c8feb7a0a416a
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Skimage_numpy/source/scipy/weave/vtk_spec.py
29afe6af6b4f684a40f4b723b10b79612215f82a
[ "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
4,214
py
vtk_spec.py
""" VTK type converter. This module handles conversion between VTK C++ and VTK Python objects so that one can write inline C++ code to manipulate VTK Python objects. It requires that you have VTK and the VTK-Python wrappers installed. It has been tested with VTK 4.0 and above. You will need to call inline with incl...
45b091d8eb7bdbec28d116137c44b76715cfdd3a
5e45ba79976ba805f6744f0bcb4ddfbde3e0a7a4
/alibi_detect/utils/tensorflow/misc.py
e3aed121abe3e143f1e075b1619eb28052f68383
[ "Apache-2.0" ]
permissive
SeldonIO/alibi-detect
e3293baa0603acace6f79bfb14953cf953943b10
4a1b4f74a8590117965421e86c2295bff0f33e89
refs/heads/master
2023-08-25T05:47:14.038826
2023-08-08T14:12:47
2023-08-08T14:12:47
213,390,927
1,922
195
Apache-2.0
2023-09-12T07:07:13
2019-10-07T13:29:13
Python
UTF-8
Python
false
false
2,661
py
misc.py
import tensorflow as tf def zero_diag(mat: tf.Tensor) -> tf.Tensor: """ Set the diagonal of a matrix to 0 Parameters ---------- mat A 2D square matrix Returns ------- A 2D square matrix with zeros along the diagonal """ return mat - tf.linalg.diag(tf.linalg.diag_part(...
2401520d56dc308faf67afafbb6dec328f797907
9a0eb3e292d57b59198c7c66a994372ced9cfa5b
/nodes/2.x/python/Color.ToDynamoColor.py
5263e85d733bde897f5b3ed4cf1c0d46a2759bb8
[ "MIT" ]
permissive
andydandy74/ClockworkForDynamo
544ddf0893f5c0072fca7934f4e128001771f767
528400c667c4c3f2b51814af84e85c8fab8a8059
refs/heads/master
2023-08-19T03:07:33.489926
2023-08-13T04:31:17
2023-08-13T04:31:17
15,043,988
184
100
MIT
2023-09-04T18:47:40
2013-12-09T10:11:01
Python
UTF-8
Python
false
false
420
py
Color.ToDynamoColor.py
import clr clr.AddReference('RevitAPI') from Autodesk.Revit.DB import * def GetColorComponents(color): if hasattr(color, "Red") and hasattr(color, "Blue") and hasattr(color, "Green"): return color.Red, color.Green, color.Blue else: return None, None, None colors = UnwrapElement(IN[0]) if isinstance(IN[0], list): O...
6b23052f84575dd2e3025396338cee04608252eb
965efc4d7a83c2b5592417aa7e0d25a51f5a8108
/backend/metering_billing/migrations/0068_rename_customer_historicalinvoice_old_customer_and_more.py
e111d1ca383d73a1341f80d54feb778de877804a
[ "MIT" ]
permissive
uselotus/lotus
f4ee23bb828605215f18aacd1d6fcff8e0986c53
c065fb33ee1a870d72bbd2adfddc08d50ca049b6
refs/heads/main
2023-08-17T03:38:35.770580
2023-07-26T18:50:17
2023-07-26T18:50:17
516,192,901
1,447
100
MIT
2023-06-25T22:53:06
2022-07-21T02:06:46
Python
UTF-8
Python
false
false
1,248
py
0068_rename_customer_historicalinvoice_old_customer_and_more.py
# Generated by Django 4.0.5 on 2022-11-10 23:29 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ( "metering_billing", "0067_remove_historicalinvoice_external_payment_obj_and_more", ), ] operations = [ migrations.Ren...
e1df1a68f98f0b648716d53e31d05fd0f4e68d40
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AlipayOpenAppLocalitemQueryResponse.py
b2de48f385866a5cf6fe66214ec434c1b7a55291
[ "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
8,326
py
AlipayOpenAppLocalitemQueryResponse.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.AppItemAttrVO import AppItemAttrVO from alipay.aop.api.domain.PhoneStructVO import PhoneStructVO from alipay.aop.api.domain.ItemRiskInfo import ItemRiskInfo from alipay...
1e7e9c51f6a3687af41e5c491c263a9c13bc7018
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/surround/SurroundWithTryExcept.py
6c333bb4172917d819a37e18a4080e33d53db96c
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
36
py
SurroundWithTryExcept.py
def foo(): pr<caret>int("hello")
779b6be7cb2254c156de223b17b9870514cf6bf1
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/shared/players_panel_items.py
75600faf2d2fe64b6784f22a8ebaa502a51e33a7
[]
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
4,221
py
players_panel_items.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/shared/players_panel_items.py import logging from enum import Enum import BigWorld _logger = logging.getLogger(__name__) class PlayersPanelItems(Enum): DEFAULT = 0 CAMP = 1 CAPTURED_BOMB = 3 FREE_BOMB = 4 clas...
2538b160c17010465f0f2bbea85f3d893787beb2
172258e84111128f67351029b1418f3e48b9ad28
/test-registry/numpy24/f.py
0367eb8c2aaf4090f7ee29d9e4b0dad2df97fd9c
[ "Apache-2.0" ]
permissive
open-lambda/open-lambda
41aff8e721d5df3298156dc34c20e98901d2b4ae
deaa1b6a8635c9cc789208a8beee17d8f07607b3
refs/heads/main
2023-08-30T21:56:32.180377
2023-08-27T02:06:28
2023-08-27T02:23:16
61,392,620
933
126
Apache-2.0
2023-09-07T17:08:45
2016-06-17T18:01:08
Go
UTF-8
Python
false
false
117
py
f.py
import numpy def f(event): return {'result': int(numpy.array(event).sum()), 'numpy-version': numpy.__version__}
43b992d956f1844fbb74650c66fbb43d5dd303fe
e79cb86744b9cc5d46912f2f9acdb5ffd434f745
/src/ifp/test/init_floorplan7.py
8a2f7a6910d566c3cee99b895be6c660e95088fe
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "MPL-2.0" ]
permissive
The-OpenROAD-Project/OpenROAD
555cbb00ec250bb09b9e4f9a7d1454e7ac7a01ab
1f6ccc9066e7df4509ed391d87b01eadb4b3b197
refs/heads/master
2023-08-31T05:35:25.363354
2023-08-31T05:04:27
2023-08-31T05:04:27
218,110,222
979
461
BSD-3-Clause
2023-09-14T21:51:36
2019-10-28T17:48:14
Verilog
UTF-8
Python
false
false
743
py
init_floorplan7.py
# init_floorplan called twice for some stupid reason from openroad import Tech, Design import helpers tech = Tech() tech.readLef("Nangate45/Nangate45.lef") tech.readLiberty("Nangate45/Nangate45_typ.lib") design = Design(tech) design.readVerilog("reg1.v") design.link("top") die1 = helpers.make_rect(design, 0, 0, 10...
80d2edecebcd71fc6719b3d7392826ff7d4b655f
ec7591c3f478c43e76257aaa500d8f6a2e763d74
/stanza/models/ner/data.py
13f9f806a7d464b841820ed795c1c731aa87b885
[ "Apache-2.0" ]
permissive
stanfordnlp/stanza
5cc3dbe70a96dd565639b7dae1efde6b4fa76985
c530c9af647d521262b56b717bcc38b0cfc5f1b8
refs/heads/main
2023-09-01T12:01:38.980322
2023-03-14T16:10:05
2023-03-14T16:10:05
104,854,615
4,281
599
NOASSERTION
2023-09-10T00:31:36
2017-09-26T08:00:56
Python
UTF-8
Python
false
false
8,760
py
data.py
import random import logging import torch from stanza.models.common.bert_embedding import filter_data from stanza.models.common.data import map_to_ids, get_long_tensor, sort_all from stanza.models.common.vocab import PAD_ID, VOCAB_PREFIX from stanza.models.pos.vocab import CharVocab, WordVocab from stanza.models.ner.v...
40b93b2b7e82b643bf1970c97313a9532c1cd199
77044a7d5beabe7dbdaed4cbf0add6f877f3bf3c
/python/image-content-search/src/imageData/helper/search.py
00982e2f8e3661974e72ccd97ad574691daf784e
[ "Apache-2.0" ]
permissive
aws-samples/aws-cdk-examples
1153f27ccbcc3b647e0a3f608a69279ebff1b27c
63caf4f3deddc8b00c9d2ae69c6886180143c3ee
refs/heads/master
2023-09-04T04:49:37.077412
2023-09-01T20:48:26
2023-09-01T20:48:26
168,772,474
4,366
2,083
Apache-2.0
2023-09-11T07:57:00
2019-02-01T23:16:42
Python
UTF-8
Python
false
false
1,778
py
search.py
import boto3 import botocore import os import logging import json from helper import execute_statement, logger # type: ignore aws_config = botocore.config.Config( region_name = os.getenv('REGION'), signature_version = 'v4', retries = { 'max_attempts': int(os.getenv('DEFAULT_MAX_CALL_ATTEMPTS') or...
85ce45667d5b825f517f7a8c00772aa192146df4
5f32d51807618bccf199f3942f5d92a45367b9a9
/examples/html-py-ever/tests/run_all.py
551350105ef0f693586ffffeb6bd3cf771e748e3
[ "MIT" ]
permissive
PyO3/setuptools-rust
89b1ad2bc01da47f8ed90854dd190da2822e9c41
322d5f8a642e66d3168025e864e68d84d8c115ea
refs/heads/main
2023-09-03T03:00:53.325718
2023-09-01T13:39:15
2023-09-01T13:39:15
84,393,574
508
98
MIT
2023-09-05T02:55:05
2017-03-09T03:24:55
Python
UTF-8
Python
false
false
1,819
py
run_all.py
#!/usr/bin/env python3 import os from glob import glob from time import perf_counter from typing import Tuple import html_py_ever from bs4 import BeautifulSoup try: import lxml HAVE_LXML = True except ImportError: HAVE_LXML = False def rust(filename: str) -> Tuple[int, float, float]: start_load = p...
5ac46a2a36957a1ec34396fdaf8e0dcde7f96895
a63d907ad63ba6705420a6fb2788196d1bd3763c
/src/dataflow/jobnavi/jobnavi-api-python/jobnavi/HAProxy.py
2b9511910b777ec57703627398010bc4dece6ae1
[ "MIT" ]
permissive
Tencent/bk-base
a38461072811667dc2880a13a5232004fe771a4b
6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2
refs/heads/master
2022-07-30T04:24:53.370661
2022-04-02T10:30:55
2022-04-02T10:30:55
381,257,882
101
51
NOASSERTION
2022-04-02T10:30:56
2021-06-29T06:10:01
Python
UTF-8
Python
false
false
3,401
py
HAProxy.py
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ------------------------------------------...
870511ae9ed605922864c756fa83dd329876f36c
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/dts/airbyte/airbyte-integrations/connectors/source-facebook-marketing/unit_tests/test_client.py
a3d3691e8e8c8fb73ca7031f94095d3411be8e93
[ "MIT", "Elastic-2.0", "Apache-2.0", "BSD-3-Clause" ]
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
6,502
py
test_client.py
# # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # import json import pendulum import pytest from airbyte_cdk.models import SyncMode from facebook_business import FacebookAdsApi, FacebookSession from facebook_business.exceptions import FacebookRequestError from source_facebook_marketing.streams import AdAcc...
86c9e046ddd120e19ab6174b18709b004bc96fb0
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayCommerceMedicalEcodeOpenQueryModel.py
d8004e01bb613eca57a10d2bbff74d3f9994b7b7
[ "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
1,406
py
AlipayCommerceMedicalEcodeOpenQueryModel.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayCommerceMedicalEcodeOpenQueryModel(object): def __init__(self): self._medical_code = None self._org_no = None @property def medical_code(self): return self....
884a5a365f7e3e5313e8d2452e59f1933e753500
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Keras_tensorflow/source/tensorflow/contrib/distributions/python/ops/chi2.py
210cbe95c8222fe50aec96cb8e66282723d8f5da
[ "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
3,839
py
chi2.py
# Copyright 2016 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...
d3cb5d4adf5d0bb3bdbbc7b322db4d67f0b2a9c9
5ca308ba58f66e2bd5bec49c01a819c700a05527
/workspace/data_collection/data_collection.py
77bfb693485c447466a322bb2cf053aac8957b55
[]
no_license
wfnian/posture_recognition
b1a3419695bd0ea57b9fb4b48a7024b6b754c3f4
95809a410ca5d7a956d9206b83c243f801354985
refs/heads/master
2022-05-31T10:35:52.800719
2022-05-08T08:09:27
2022-05-08T08:09:27
163,076,649
117
33
null
null
null
null
UTF-8
Python
false
false
8,894
py
data_collection.py
import math import os import sys import cv2 from PyQt5.QtCore import QTimer from PyQt5.QtGui import QPixmap, QImage from PyQt5.QtWidgets import QApplication, QMainWindow from data_collection_window import * picSN = 223 # ====================import openpose========================================= dir_path = os.path...
23445878cb86aeac2918888434d65aa641ca53d1
529e713a78e82de2ae5d44cfb8ef209e0894d72a
/docker-continuous-integration/web/test/conftest.py
4738e88c93763511598c8ee5a024d2bdd1407477
[ "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
604
py
conftest.py
import pytest import redis from page_tracker.app import app def pytest_addoption(parser): parser.addoption("--flask-url") parser.addoption("--redis-url") @pytest.fixture(scope="session") def flask_url(request): return request.config.getoption("--flask-url") @pytest.fixture(scope="session") def redis_...
5256100be937e7176993160e411739ae83f5ac46
36a094a44450d1353e9dfc8242a54e2bb70bb9b5
/examples/extensions/extension_model.py
b4078cd657251ac233cbb58eab58fdde2c05035a
[ "Apache-2.0" ]
permissive
zyfra/ebonite
52843ce847a3fd28e4ba8ab64d986dcfb23671c0
b01b662c43709d152940f488574d78ff25f89ecf
refs/heads/master
2022-11-29T21:20:02.358797
2020-10-19T12:22:49
2020-10-19T12:22:49
221,721,146
275
18
Apache-2.0
2022-11-21T22:44:02
2019-11-14T14:49:47
Python
UTF-8
Python
false
false
896
py
extension_model.py
"""This module shows how to load extensions from local code""" import ebonite def main(): # load extension # you just use plain module name, if it's installed from pip # or, you can just directly import your classes # to automatically load extension on startup, set EBONITE_EXTENSIONS env variable ...
8e112852eeed190a1bf14239724966049d35a1bf
71acb7214efd91c0d327f6d8958e1798eadb4401
/locations/spiders/the_good_guys_au.py
2aa6bc6fa7874219572cd2b608b9d4569f4bffb2
[ "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
1,772
py
the_good_guys_au.py
import chompjs import scrapy from locations.hours import DAYS_FULL from locations.structured_data_spider import StructuredDataSpider class TheGoodGuysAUSpider(StructuredDataSpider): name = "the_good_guys_au" item_attributes = {"brand": "The Good Guys", "brand_wikidata": "Q7737217"} allowed_domains = ["ww...
a37b3326b9e931c4ceb4577539c57061118b11f9
88ae8695987ada722184307301e221e1ba3cc2fa
/tools/gn/infra/recipe_modules/target/api.py
850c104e9baedbee07d25c55a52453120024ea24
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla" ]
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
2,291
py
api.py
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from recipe_engine import recipe_api PLATFORM_TO_TRIPLE = { 'fuchsia-amd64': 'x86_64-fuchsia', 'fuchsia-arm64': 'aarch64-fuchsia', 'linux-amd64': 'x8...
4e3a167aacb663e71491ceae48b971be0d583d52
704976ea552111c6a5af9cd7cb62b9d9abaf3996
/pypy/module/pypyjit/test_pypy_c/test_call.py
42981add486f6f89da04234c35a83fc9686d3a6a
[ "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
21,830
py
test_call.py
import py from pypy.module.pypyjit.test_pypy_c.test_00_model import BaseTestPyPyC from pypy.module.pypyjit.test_pypy_c.model import OpMatcher class TestCall(BaseTestPyPyC): def test_recursive_call(self): def fn(): def rec(n): if n == 0: return 0 ...
13099c271904366ae107c3258cee07515b360587
ac2f43c8e0d9649a7f063c59b3dffdfed9fd7ed7
/tests2/tests/wedge100/power_supply.py
a6a93c8415ad4566385261f6b2f260ff78e42cd2
[]
no_license
facebook/openbmc
bef10604ced226288600f55248b7f1be9945aea4
32777c66a8410d767eae15baabf71c61a0bef13c
refs/heads/helium
2023-08-17T03:13:54.729494
2023-08-16T23:24:18
2023-08-16T23:24:18
31,917,712
684
331
null
2023-07-25T21:19:08
2015-03-09T19:18:35
C
UTF-8
Python
false
false
2,294
py
power_supply.py
#!/usr/bin/env python3 # # Copyright 2021-present Facebook. All Rights Reserved. # # This program file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; version 2 of the License. # # This program is distributed ...
d122889fd87df3be01e3989b325e370d26dc4ce4
56d6257e932e1397ab03b1e7ccc6231378665b04
/Push/actions.py
62cf84a72eec0be8e35ca6a15036fc2bb1ce0081
[]
no_license
gluon/AbletonLive10.1_MIDIRemoteScripts
e6c8dc4956cff9630aaa36f3667994387ad1d0cf
2468b51eba7e5082b06f9e381b3e72027c5f272c
refs/heads/master
2023-01-10T18:37:46.504180
2022-12-23T09:21:48
2022-12-23T09:21:48
213,423,555
205
59
null
2021-02-12T16:15:01
2019-10-07T15:44:52
Python
UTF-8
Python
false
false
5,495
py
actions.py
#Embedded file name: /Users/versonator/Jenkins/live/output/Live/mac_64_static/Release/python-bundle/MIDI Remote Scripts/Push/actions.py from __future__ import absolute_import, print_function, unicode_literals import Live from ableton.v2.base import depends, listens, task from ableton.v2.control_surface import Component...
65045adcbebc38a21c52d9629e34123b8d82f233
313cdc3bd63a9d7f1a358758315f75bfe697720e
/Compiler/exceptions.py
fd9c6c8c751aace0efd594587396f6949b03109c
[ "BSD-2-Clause" ]
permissive
KULeuven-COSIC/SCALE-MAMBA
1abf9151940b77e7d8919443fa5ca5cbb137b638
c111516e3ebc1efd12a2bd47dd2122b160e13d1e
refs/heads/master
2022-08-20T07:15:37.749282
2022-03-30T06:57:03
2022-03-30T06:57:03
131,836,493
241
102
NOASSERTION
2023-09-06T08:24:55
2018-05-02T10:40:57
Verilog
UTF-8
Python
false
false
604
py
exceptions.py
# Copyright (c) 2017, The University of Bristol, Senate House, Tyndall Avenue, Bristol, BS8 1TH, United Kingdom. # Copyright (c) 2021, COSIC-KU Leuven, Kasteelpark Arenberg 10, bus 2452, B-3001 Leuven-Heverlee, Belgium. class CompilerError(Exception): """Base class for compiler exceptions.""" pass class Regi...
797f5876776a1087c39dc4c55540ad4b405a75e3
3a2071c34e3c35847b2bcc2a5d3b3a74114daa0f
/subversion/tests/cmdline/pegrev_parse_tests.py
c8d9ca4076aa8f37063bfc699f59db3b4e404541
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-other-permissive", "X11", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference", "MIT", "HPND-Markus-Kuhn", "LicenseRef-scancode-unicode", "Apache-2.0", "FSFAP" ]
permissive
apache/subversion
18a9142afe63f060ffc0814fe0c758c91ad8bd31
dd957c4991e61bde23cc60d13449ea8b65f80c43
refs/heads/trunk
2023-09-04T15:22:36.755177
2023-08-29T19:55:03
2023-08-29T19:55:03
454,263
520
207
Apache-2.0
2023-08-26T14:17:30
2009-12-31T09:00:10
C
UTF-8
Python
false
false
24,266
py
pegrev_parse_tests.py
#!/usr/bin/env python # # basic_tests.py: testing working-copy interactions with ra_local # # Subversion is a tool for revision control. # See https://subversion.apache.org for more information. # # ==================================================================== # Licensed to the Apache Software Foundation ...
c94ead1de990e4504070619b4961df633004d9aa
f8dee139258b7d971bd1cfa16bd16e356537bbac
/Contents/Libraries/Shared/guessit/rules/properties/date.py
0b6083bd7f459ec9bb31621b89acf83415b54b27
[ "MIT" ]
permissive
pannal/Sub-Zero.bundle
79673016ae68d1f2e9886fd30b8763b73a8f6cf8
4ced7d8c8f9f5fb47d12410f87fa33d782e9f0f4
refs/heads/master
2023-07-27T23:04:32.925845
2023-07-09T13:07:38
2023-07-09T13:08:04
21,959,699
1,820
178
NOASSERTION
2022-11-28T03:23:13
2014-07-17T22:19:13
Python
UTF-8
Python
false
false
2,491
py
date.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ date and year properties """ from rebulk import Rebulk, RemoveMatch, Rule from ..common.date import search_date, valid_year from ..common.validators import seps_surround def date(): """ Builder for rebulk object. :return: Created Rebulk object :rtype:...
9ccbad1d28cd807ef0a40e1c0491e16cc0e032d8
7ce570cd7fc2e97204b8e9c013e6352891d9a9e5
/__init__.py
d92cd1c32b230c99cf68b29f46d14dc7144c2dd3
[ "MIT" ]
permissive
SublimeLinter/SublimeLinter
e789aa5852514993620f0afc3638c404c2229811
33ab552b2683dea452ed83ee9d2a7d753b969853
refs/heads/master
2023-09-05T23:14:52.644954
2023-08-16T21:34:05
2023-08-16T21:34:05
13,782,029
745
160
MIT
2023-08-16T21:34:06
2013-10-22T18:27:36
Python
UTF-8
Python
false
false
101
py
__init__.py
"""Hi. If you're looking for the public API, it is over there: `SublimeLinter.lint.__init__.py` """
80dd18548060604dd8be6d756921fd1f0ea2f2f3
5821d864fb40417184cd37a3ee3c889895d39efb
/manuscript/img-src/prepie.py
d858570c4f7fd5f6c2e53ecd676c851f62c7b610
[ "WTFPL" ]
permissive
ssloy/least-squares-course
9c86d8c54894248440fba78206ce253559f4257b
13692cdfd40a8005893fd33887d6cc743c5f01ec
refs/heads/master
2022-08-18T15:53:15.313071
2021-12-01T12:44:59
2021-12-01T12:44:59
222,901,933
162
18
WTFPL
2022-07-28T21:16:03
2019-11-20T09:38:37
TeX
UTF-8
Python
false
false
1,261
py
prepie.py
import numpy as np fa = 1 # left constraint fb = 3 # right constraint n = 40 x = np.linspace(0, 2*np.pi, n) g = [np.sin(p) for p in x] A = np.matrix(np.zeros((n-1,n-2))) b = np.matrix(np.zeros((n-1,1))) A[0,0] = 1 b[0,0] = fa + g[1]-g[0] A[n-2, n-3] = -1 b[n-2,0] = -fb + g[-1]-g[-2] for i in range(1,n-...
ca2ff4798f65f1e5522acd434e7a1cb1aea2525a
20d4aac372684501ce6d1b35b8d0beeb20769341
/pyart/core/__init__.py
15788cac0014741a11dc1a7e6d213e88a7346e93
[ "BSD-3-Clause" ]
permissive
ARM-DOE/pyart
c108dd28a2d6eb1eaaa414408757feefac9515c3
172bbcf1cf3bcdb953c76ebae72c27c95dc2e606
refs/heads/main
2023-08-18T07:41:28.137014
2023-08-17T15:58:24
2023-08-17T15:58:24
6,248,645
455
255
NOASSERTION
2023-09-14T20:09:51
2012-10-16T17:51:30
Python
UTF-8
Python
false
false
719
py
__init__.py
""" Core Py-ART classes and function for interacting with weather radar data. """ from .grid import Grid # noqa from .radar import Radar # noqa from .radar_spectra import RadarSpectra # noqa from .transforms import antenna_to_cartesian # noqa from .transforms import antenna_vectors_to_cartesian # noqa from .tran...
305ecbd07d8ec32756c89ef1ab528b637684ece9
dcc25b784213b17015d2080a7623c772d474dc22
/sigs/dx/issue_analysis/scripts/event_classifier.py
3776f132ca4c32a5ecc4d9f50be0da569e22309c
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
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
1,886
py
event_classifier.py
# 遍历issue列表时调用,以判断该条issue是否满足三个条件 def is_promoted(owner_id, issue_operate_logs, issue_comments): # 这里某些项以后可以设置成integer,用以表示单条issue里正面行为的次数(比如打了多个标签) total_flag = False label_flag = False assign_flag = False other_flag = False # 先看日志里是否有推进issue解决的正面行为 for action in issue_operate_logs: ...
c29bf5e02b9f7e22217a020fd55daadc6d94a301
33392bbfbc4abd42b0c67843c7c6ba9e0692f845
/dsp/L2/meta/vmc/vmc_stream_mixer.py
72959488d76f47090889a02a08d200f7ddc08861
[ "Apache-2.0", "OFL-1.1", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "BSD-2-Clause", "MIT" ]
permissive
Xilinx/Vitis_Libraries
bad9474bf099ed288418430f695572418c87bc29
2e6c66f83ee6ad21a7c4f20d6456754c8e522995
refs/heads/main
2023-07-20T09:01:16.129113
2023-06-08T08:18:19
2023-06-08T08:18:19
210,433,135
785
371
Apache-2.0
2023-07-06T21:35:46
2019-09-23T19:13:46
C++
UTF-8
Python
false
false
769
py
vmc_stream_mixer.py
from dds_mixer import * #### VMC validators #### def vmc_validate_output_window_size(args): tempargs = {} tempargs["TP_INPUT_WINDOW_VSIZE"] = args["input_window_size"] tempargs["TT_DATA"] = args["data_type"] return validate_TP_WINDOW_VSIZE(tempargs) #### VMC graph generator #### def ...
82a9833d7630c9a001275305e80a70f04e0cda68
7eb3b417635cefc78a5cbba4239e4114142dd739
/mamba/error.py
f10ac3fe175be4923b9a8022937cca5aebd77967
[ "MIT" ]
permissive
nestorsalceda/mamba
0ff0f380cb3994991d8a34e7fff7541b8e0347fd
7b40daf79697710e6e269198e6496c2ff0d4a0b9
refs/heads/master
2023-08-11T17:10:12.547078
2020-11-16T12:31:58
2020-11-16T12:31:58
8,735,726
493
68
MIT
2022-12-08T10:54:51
2013-03-12T18:53:42
Python
UTF-8
Python
false
false
113
py
error.py
# -*- coding: utf-8 -*- import collections Error = collections.namedtuple('Error', ('exception', 'traceback'))
00db054910842e2910511bdb95b8958d8544bfc4
e03bce53de6f88c0e09f56e4fe11c36af0f1161f
/runway/_cli/commands/_dismantle.py
928893bc9acae0ed5cf159391d38c6ebe61a458d
[ "Apache-2.0" ]
permissive
onicagroup/runway
20c31df9cbc1a1ffc5c9aa468ce5cf7d6ac7899f
0763b06aee07d2cf3f037a49ca0cb81a048c5deb
refs/heads/master
2023-08-30T22:35:54.113981
2023-08-29T14:13:35
2023-08-29T14:13:35
122,529,924
156
79
Apache-2.0
2023-09-13T13:43:50
2018-02-22T20:12:55
Python
UTF-8
Python
false
false
796
py
_dismantle.py
"""``runway dismantle`` command.""" # docs: file://./../../../docs/source/commands.rst import logging from typing import TYPE_CHECKING, Any, cast import click from .. import options from ._destroy import destroy if TYPE_CHECKING: from ..._logging import RunwayLogger LOGGER = cast("RunwayLogger", logging.getLogg...
7fc755e503bfa9c330fed73be683429a2fb29b3f
0820f480ec00bbe3e7e75c38ee2c13adf1ace6ed
/buildutils/detect.py
7e4e3393091ef1ff08a3f0c7b9b22ca807a54608
[ "BSD-3-Clause", "LGPL-3.0-only", "LicenseRef-scancode-zeromq-exception-lgpl-3.0" ]
permissive
zeromq/pyzmq
9f2258d3bf1211cec9b12b4b0272e9ccd85b2ac5
9bee18aa4112bb6351c226c2000c7a858db386ab
refs/heads/main
2023-08-31T08:20:21.445949
2023-08-10T09:28:41
2023-08-10T09:28:41
788,264
2,944
656
BSD-3-Clause
2023-09-05T06:32:54
2010-07-21T07:20:37
Python
UTF-8
Python
false
false
4,825
py
detect.py
"""Detect zmq version""" # ----------------------------------------------------------------------------- # Copyright (C) PyZMQ Developers # # This file is part of pyzmq, copied and adapted from h5py. # h5py source used under the New BSD license # # h5py: <http://code.google.com/p/h5py/> # # Distributed under the t...
9ba9015d61dd2bd34dc979586d1e685769bbb577
6416b746ee71d897789eab1e450000831674dbd0
/src/otx/algorithms/common/utils/ir.py
946ef9b40c0ab99f77fb8b6f7e35340b58325e58
[ "Apache-2.0" ]
permissive
openvinotoolkit/training_extensions
c921f83ad52311af96ff45ae0b88d0aecddd855b
80454808b38727e358e8b880043eeac0f18152fb
refs/heads/develop
2023-08-31T06:29:07.229339
2023-08-31T01:57:26
2023-08-31T01:57:26
154,843,614
397
230
Apache-2.0
2023-09-14T06:17:01
2018-10-26T14:02:29
Python
UTF-8
Python
false
false
1,137
py
ir.py
"""Collections of IR-related utils for common OTX algorithms.""" # Copyright (C) 2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # from pathlib import Path from typing import Any, Dict, Tuple from openvino.runtime import Core, serialize def check_if_quantized(model: Any) -> bool: """Checks if Open...
35c57d3b1bf82f2cb66e5052def6e8b0fb6bacab
bb4e12f9155e7f67cb3974c8405253a0a5ffa516
/tests/test_parser.py
8c7acfcf37639f4505aba63388fe1f5262eb719b
[ "MIT", "CC-BY-4.0" ]
permissive
mido/mido
80c5c05e3eb38051253ccf40caf6ac7b917cc066
6970e045f1e66314ee266e8fb16432df75f6e87e
refs/heads/main
2023-08-15T09:47:38.967908
2023-08-07T18:46:25
2023-08-07T18:47:14
10,889,417
937
160
MIT
2023-08-08T07:11:05
2013-06-23T18:11:38
Python
UTF-8
Python
false
false
3,419
py
test_parser.py
# SPDX-FileCopyrightText: 2017 Ole Martin Bjorndalen <ombdalen@gmail.com> # # SPDX-License-Identifier: MIT import random from pytest import raises from mido.messages import Message, specs from mido.parser import Parser, parse, parse_all def test_parse(): """Parse a note_on msg and compare it to one created wit...
a6699ef0e7889e9278ae1a2b313786b41127baf9
c69fc4000c675f4405bd2b00e749fadaf629d3b3
/examples/optimization_applications/hyperpara_optimize.py
7d414387ea9202e7fbd67757d420042ff5233821
[ "MIT" ]
permissive
SimonBlanke/Hyperactive
dedf75e77bbd0c3020ce7b8f3d9382b7474f8590
23cc6adf36a13a9cac2b544117a41edd889563f0
refs/heads/master
2023-08-25T01:00:10.666237
2023-07-23T15:23:19
2023-07-23T15:23:19
155,687,643
473
45
MIT
2023-06-28T15:34:12
2018-11-01T08:53:30
Python
UTF-8
Python
false
false
1,180
py
hyperpara_optimize.py
""" This example shows the original purpose of Hyperactive. You can search for any number of hyperparameters and Hyperactive will return the best one after the optimization run. """ import numpy as np from sklearn.model_selection import cross_val_score from sklearn.ensemble import GradientBoostingClassifier from skle...
4089c9bc559cab6d1dcd3006ace69dcb1de14e16
8358c8d86600703663eb8a8f30493c20704cf586
/test/core/gen2/test_progress.py
66260d97a149a51e0c259ce5e9433ccbc284792a
[ "MIT" ]
permissive
dcs4cop/xcube
612ffeb416dfee4e6a32677a719eab1a26aee990
a5a4da14bdc2dba80e0dd7d89b221fb30d148b77
refs/heads/master
2023-08-17T06:36:57.207806
2023-08-08T15:16:09
2023-08-08T15:16:09
130,693,090
149
21
MIT
2023-09-14T07:38:55
2018-04-23T12:27:35
Python
UTF-8
Python
false
false
6,392
py
test_progress.py
import unittest from unittest.mock import patch import requests_mock from xcube.core.gen2.request import CubeGeneratorRequest from xcube.core.gen2.progress import ApiProgressCallbackObserver from xcube.core.gen2.progress import TerminalProgressCallbackObserver from xcube.core.gen2.progress import _ThreadedProgressObs...
f1fbfb2fe659387d0490bcf0a88b52b5cbe03781
8a3971656297d19c58d21721ad6d9310a81f21bb
/tensorflow_text/python/ops/greedy_constrained_sequence_op.py
693095f2a833d2b7905ac32efdb21878ec230186
[ "Apache-2.0" ]
permissive
tensorflow/text
6646b72cd8f9f1935814febb638707470feaf10c
fd0cdcf0756b521ff538e45bca14074013335f6e
refs/heads/master
2023-08-31T11:45:49.547133
2023-08-28T19:36:21
2023-08-28T19:37:03
189,305,903
1,211
319
Apache-2.0
2023-09-12T18:34:15
2019-05-29T22:10:03
C++
UTF-8
Python
false
false
7,939
py
greedy_constrained_sequence_op.py
# coding=utf-8 # Copyright 2023 TF.Text Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
e444ee53d7241ce980d2f63c77c732b5acd933e9
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayOpenMiniMiniappServiceconfigModifyModel.py
984b79dac66a791f7615d8a40cef5a8be7c2d044
[ "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
1,491
py
AlipayOpenMiniMiniappServiceconfigModifyModel.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayOpenMiniMiniappServiceconfigModifyModel(object): def __init__(self): self._home_open = None self._service_config = None @property def home_open(self): retur...
7bf203ee69d8a68ac7e85e0aebbe7dd5f98575c0
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/TemplateRightsContentDTO.py
1210ba97e74e1c950ffdda456542bdee5da12280
[ "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
1,723
py
TemplateRightsContentDTO.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class TemplateRightsContentDTO(object): def __init__(self): self._detail = None self._logo_id = None self._title = None @property def detail(self): return self....
867943ca617e323ee8d5a5765628599d350438e1
7bea5adf7d6284fbad0131d665e957d58adfe7c7
/allauth/socialaccount/providers/evernote/tests.py
8c96be38e384c9beb31fa4ea6f8698303302bce9
[ "MIT" ]
permissive
pennersr/django-allauth
50c9e71c3666785368e92ed9e19ea0f6a5438cd2
6b8911a5ebbabda0d446f2743bd4d00d250ed500
refs/heads/main
2023-09-03T16:48:10.988418
2023-09-02T08:00:53
2023-09-02T08:00:53
976,994
7,719
3,481
MIT
2023-09-14T15:06:57
2010-10-10T20:10:52
Python
UTF-8
Python
false
false
888
py
tests.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from allauth.socialaccount.tests import OAuthTestsMixin from allauth.tests import MockedResponse, TestCase from .provider import EvernoteProvider class EvernoteTests(OAuthTestsMixin, TestCase): provider_id = EvernoteProvider.id def get_mocked_...
c391301a331c8070160543046171619543564127
6c8305ea1df9687df1c0d2b0ace56733516c6322
/readthedocs/api/v2/migrations/0001_initial.py
c3a95da5aae3d76fdc9c25da2fc8b2996c7dd4d6
[ "MIT" ]
permissive
readthedocs/readthedocs.org
9806083aa744c2308267919480a692e1e003e45d
bf88ce6d1085d922322a5fadce63a22c5544c830
refs/heads/main
2023-09-05T20:22:34.281891
2023-09-05T12:41:52
2023-09-05T12:41:52
841,835
2,894
1,509
MIT
2023-09-14T20:36:00
2010-08-16T19:18:06
Python
UTF-8
Python
false
false
2,577
py
0001_initial.py
# Generated by Django 3.2.18 on 2023-05-31 20:40 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ("projects", "0100_project_readthedocs_yaml_path"), ] operations = [ migrations.CreateMod...
1f5e4d06e8bd70a681cf2467b51b2b2ff228d1cd
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/PhysicsTools/Heppy/python/physicsobjects/Particle.py
4edc6640debf3cdad5ce0ed41e411e5a21183571
[ "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
452
py
Particle.py
class Particle(object): def __str__(self): tmp = '{className} : {pdgId:>3}, pt={pt:5.1f}, eta={eta:5.2f}, phi={phi:5.2f}, mass={mass:5.2f}' return tmp.format( className = self.__class__.__name__, pdgId = self.pdgId(), pt = self.pt(), ...
03171bbcc496a0da916f5e4b585afe200d3a0261
45ce76f126ee8985e834d438413cccef437e0fa0
/discord/webhook/sync.py
7da6ada70818dc97eaaade33bbf73e6bb0580e15
[ "MIT" ]
permissive
Rapptz/discord.py
929437812bc9f59d78c2c43c6a9f2c4bdb3f8146
f74eb14d722aa1bc90f9d0478199250d2eb4e81b
refs/heads/master
2023-08-29T22:04:47.095128
2023-08-25T19:43:04
2023-08-25T19:43:04
41,179,827
15,894
8,049
MIT
2023-09-14T18:57:12
2015-08-21T22:19:08
Python
UTF-8
Python
false
false
42,586
py
sync.py
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz 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, merg...
510e8a99e9b28ce006651d720294f18f60440d8e
385c027fc4b9c09706a4d880bdb8aa5897d0ebca
/starry/_core/__init__.py
3d40bf22ba2e4ec2977143db8a0d6a7a86ffdcfa
[ "MIT" ]
permissive
rodluger/starry
076d46324473a6ac634781a3382021d02a5f4fdd
b72dff08588532f96bd072f2f1005e227d8e4ed8
refs/heads/master
2023-05-23T16:37:07.835744
2022-07-14T15:38:11
2022-07-14T15:38:11
120,621,593
131
31
MIT
2021-11-16T16:48:10
2018-02-07T13:54:20
Python
UTF-8
Python
false
false
81
py
__init__.py
# -*- coding: utf-8 -*- from . import core, ops, utils, math from .core import *
0aa7dddb39f9d6b73782f6e6bf9cb146bc776623
749af8e81d5ccd2d8714a34434a9c77772df551b
/statsmodels/robust/tests/test_scale.py
ced234f09d9a77fd8fd83fef129b0ce83a1b2bc3
[ "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
8,580
py
test_scale.py
""" Test functions for models.robust.scale """ import numpy as np from numpy.random import standard_normal from numpy.testing import assert_almost_equal, assert_equal import pytest from scipy.stats import norm as Gaussian import statsmodels.api as sm import statsmodels.robust.scale as scale from statsmodels.robust.sc...
b79cc328f68ef273685c857fdcaf2c8ca031cb0c
a63d907ad63ba6705420a6fb2788196d1bd3763c
/src/api/dataflow/component/handlers/cluster_config_handler.py
d0d3656e562204ce47edb0a5cab41d239032bb50
[ "MIT" ]
permissive
Tencent/bk-base
a38461072811667dc2880a13a5232004fe771a4b
6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2
refs/heads/master
2022-07-30T04:24:53.370661
2022-04-02T10:30:55
2022-04-02T10:30:55
381,257,882
101
51
NOASSERTION
2022-04-02T10:30:56
2021-06-29T06:10:01
Python
UTF-8
Python
false
false
4,709
py
cluster_config_handler.py
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ------------------------------------------...
7228c8fc139f3d3b3cbde0fbc17f20f96d7f4cc6
6d652aa802d90571a640ac0b538ff3055d0e34c5
/i3pystatus/updates/__init__.py
d0b93e75f6a44c4263121b1f51e9f97c01e96d10
[ "MIT" ]
permissive
enkore/i3pystatus
38eaea8203ed309ff90e1717bd3a9075f12590b0
0820dd4e3d479dddec7797b2ea9a83da0f62b7cf
refs/heads/current
2023-08-18T11:36:18.296269
2023-04-25T20:56:08
2023-04-25T20:56:08
8,130,605
438
244
MIT
2023-08-13T12:13:33
2013-02-11T01:01:15
Python
UTF-8
Python
false
false
5,263
py
__init__.py
import threading from i3pystatus import SettingsBase, Module, formatp from i3pystatus.core.util import internet, require from i3pystatus.core.desktop import DesktopNotification class Backend(SettingsBase): settings = () updates = 0 class Updates(Module): """ Generic update checker. To use selec...
9c7953c5fd9cf4d20379343699f2aee55994101e
32f2d6ccfdcbd94e9e022aaaaddc16a7251d0634
/augur/application/db/models/augur_operations_old.py
898b6f77f2dca551c9e7f6b3b03ba65eef8f2209
[ "MIT" ]
permissive
chaoss/augur
13565ba6094cd0b224ea458a7b36ed916fd3e330
03e5cf8bef4cd6fd5c3458393d1ae839d7bcc3c3
refs/heads/main
2023-08-24T20:27:17.200466
2023-08-13T21:15:24
2023-08-13T21:15:24
78,134,122
580
1,027
MIT
2023-09-14T14:56:36
2017-01-05T17:34:54
Python
UTF-8
Python
false
false
3,974
py
augur_operations_old.py
# from augur.application.db.models.base import Base # from sqlalchemy import ( # Index, # Column, # Integer, # String, # UniqueConstraint, # BigInteger, # TIMESTAMP, # PrimaryKeyConstraint, # func, # text, # ) # # Start of Augur Operations tablespoon # class All(Base): # all...
c94571982d873660c4a88bbb781ab453ed8acb49
4ae34a5179d7adf1037eb9a3cb249f9a5c06684e
/examples/v1beta1/trial-images/enas-cnn-cifar10/op_library.py
ab02ed4a7a0e742528d51d98d2f90f15fc1928b8
[ "Apache-2.0" ]
permissive
kubeflow/katib
367373c0452d49a7a115b86893f4dab9e1f278ea
e3e0aa24aeea1edfab0fd42f55392af651d2b3ae
refs/heads/master
2023-09-04T05:02:05.752156
2023-08-24T22:40:54
2023-08-24T22:40:54
127,941,481
1,385
422
Apache-2.0
2023-09-14T13:17:29
2018-04-03T17:07:12
Go
UTF-8
Python
false
false
4,686
py
op_library.py
# Copyright 2022 The Kubeflow Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
810c244b44d371edd8dfbee439d460085d0315b6
2b5ffa18e7198e45fa77674b96dac8d91159fed7
/setup.py
75485712d4b40f13a0a1137dd4946d72fd96f67a
[ "BSD-3-Clause" ]
permissive
potatolondon/djangae
73681d0c8302ac216f74bc00b980de368e8d4280
bef308632790bb6f87e71bb91183f57bad6bd149
refs/heads/master
2023-09-01T15:27:51.995232
2023-08-30T14:40:48
2023-08-30T14:40:48
10,217,788
474
155
BSD-3-Clause
2023-02-08T01:05:31
2013-05-22T10:55:55
Python
UTF-8
Python
false
false
1,810
py
setup.py
import os from setuptools import setup, find_packages NAME = 'djangae' PACKAGES = find_packages() DESCRIPTION = 'Django integration with Google App Engine' URL = "https://gitlab.com/potato-oss/djangae/djangae" LONG_DESCRIPTION = open(os.path.join(os.path.dirname(__file__), 'README.md')).read() AUTHOR = 'Potato London...
5109bfc575f41c98d8ff96dc2125f4f4d7e64f5f
511144d69b15df3f4bad6dc2fbee2ab6adc457d4
/tests/data/simple_cases/one_element_subscript.py
39205ba9f7aae25cafd20b132920bcb676420a57
[ "MIT" ]
permissive
psf/black
7345769d7932d474cb05ca62a73a940608728794
47676bf5939ae5c8e670d947917bc8af4732eab6
refs/heads/main
2023-09-02T12:44:37.458104
2023-08-26T13:44:17
2023-08-26T13:44:17
125,266,328
23,453
2,531
MIT
2023-09-13T07:40:43
2018-03-14T19:54:45
Python
UTF-8
Python
false
false
674
py
one_element_subscript.py
# We should not treat the trailing comma # in a single-element subscript. a: tuple[int,] b = tuple[int,] # The magic comma still applies to multi-element subscripts. c: tuple[int, int,] d = tuple[int, int,] # Magic commas still work as expected for non-subscripts. small_list = [1,] list_of_types = [tuple[int,],] # o...
e87a804b1a69edd34c383b2b2c8c575fe1458ac3
7a15271c7cddd199f43555469a67d26ce0f60836
/experimental/one_vs_all/main_cifar10.py
3950277c6e59edd5b3216cb25b60e6cd4349d113
[ "Apache-2.0" ]
permissive
google/uncertainty-baselines
b2c339d918bf3949ee066f9eafa6b51232a2ac3d
f5f6f50f82bd441339c9d9efbef3f09e72c5fef6
refs/heads/main
2023-09-02T13:59:26.355288
2023-08-14T16:35:22
2023-08-14T16:36:11
280,026,201
1,235
198
Apache-2.0
2023-09-11T22:21:48
2020-07-16T01:54:32
Python
UTF-8
Python
false
false
7,354
py
main_cifar10.py
# coding=utf-8 # Copyright 2023 The Uncertainty Baselines Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
29e512c40f683a70bfd97f1f6bc7eb059cd3b8af
c058f51b99f91faebf27183b2b579e9f96e0d8f5
/botorch/sampling/pathwise/features/generators.py
42fd30c8d29bbfaf08225055a84be0636ffb89a3
[ "MIT" ]
permissive
pytorch/botorch
255d62f698cc615c750e9343c278a63c7e96a586
4cc5ed59b2e8a9c780f786830c548e05cc74d53c
refs/heads/main
2023-08-22T15:23:51.071048
2023-08-22T05:30:38
2023-08-22T05:30:38
142,940,093
2,891
373
MIT
2023-09-13T00:16:13
2018-07-30T23:59:57
Jupyter Notebook
UTF-8
Python
false
false
6,229
py
generators.py
#!/usr/bin/env python3 # 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. r""" .. [rahimi2007random] A. Rahimi and B. Recht. Random features for large-scale kernel machines. Advances ...
a04b8f19cbe209b38f3d80186b27e799cf3c08f5
965efc4d7a83c2b5592417aa7e0d25a51f5a8108
/backend/metering_billing/management/commands/wait_for_db.py
ac0468cd334e65114f64ebaa6764f43443ad9b42
[ "MIT" ]
permissive
uselotus/lotus
f4ee23bb828605215f18aacd1d6fcff8e0986c53
c065fb33ee1a870d72bbd2adfddc08d50ca049b6
refs/heads/main
2023-08-17T03:38:35.770580
2023-07-26T18:50:17
2023-07-26T18:50:17
516,192,901
1,447
100
MIT
2023-06-25T22:53:06
2022-07-21T02:06:46
Python
UTF-8
Python
false
false
495
py
wait_for_db.py
import time from django.core.management.base import BaseCommand from django.db import connections class Command(BaseCommand): "Django command to pause execution until the database is available" def handle(self, *args, **options): "Pause execution until the database is available" db_connecti...
9a399db603029238d50ca7a0bf9c7995bca2b673
dbab4ef8ab69e46beed07e06523b920bdf4f0bfd
/fluffy/__init__.py
346176a0782d342df97aaf0a89e3dd1be6e0ae0d
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
chriskuehl/fluffy
9322f240d98576169f5a4e0fe4e4cd06e381745c
d1831685fa80e105d88d8e970d54ba51e502dcc9
refs/heads/main
2023-08-06T21:40:24.443183
2023-05-14T04:34:29
2023-05-14T04:34:29
15,094,183
158
25
NOASSERTION
2023-06-13T06:27:57
2013-12-11T00:49:44
Python
UTF-8
Python
false
false
19
py
__init__.py
version = '1.39.2'
cd6693b5afac51b8f4a76851577c8880ddd50150
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/Documentation/ReferenceManualScripts/python/TableParser.py
1d64a6080b0b8edb2420b56718a0d050a0ebd0bb
[ "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
5,423
py
TableParser.py
from __future__ import print_function from __future__ import absolute_import # email: cmsdoxy@cern.ch, ali.mehmet.altundag@cern.ch # please have a look at the namespaces.html (namespace list) and annotated.html # (~class list) html files to understand the tags/attributes that we use in # this script. from bs4 import ...
04f319f558802e4961adbbf79d7571b896207cf4
66d89bffa3c0aa598a3d4023536a5f7873cb206d
/requests_mock/response.py
58555392731bd9e34778e71935e5a320f3d9c653
[ "Apache-2.0" ]
permissive
jamielennox/requests-mock
45daaa1f0d4023b2cb3284e84b75e63d5406a48a
15df8e2b85ae71afea1013b5bf9fd010623acd39
refs/heads/master
2023-07-09T16:12:16.655445
2023-05-15T16:38:31
2023-06-08T13:33:22
28,104,322
396
81
Apache-2.0
2023-06-22T06:29:04
2014-12-16T20:06:51
Python
UTF-8
Python
false
false
11,181
py
response.py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under ...