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
ce86505457c7de064a81101b9bf8d69f3f48849a
9da4adae4c389e84097a0da9bfce40f9132eef96
/pygame_menu/controls.py
e18514bb98df1b0deaa8941362ae642418446092
[ "MIT" ]
permissive
ppizarror/pygame-menu
f8fd2ff3acefad25b07e19499a2dfebd50507403
bcfaccbb11d4a6ecba588eec2851932dc46c2337
refs/heads/master
2023-07-07T10:38:09.651797
2023-06-28T18:00:25
2023-06-28T18:00:25
89,940,842
570
207
NOASSERTION
2023-08-19T19:17:59
2017-05-01T16:26:50
Python
UTF-8
Python
false
false
9,166
py
controls.py
""" pygame-menu https://github.com/ppizarror/pygame-menu CONTROLS Default controls of Menu object and key definition. """ __all__ = [ # Joy pad 'JOY_AXIS_X', 'JOY_AXIS_Y', 'JOY_BUTTON_BACK', 'JOY_BUTTON_SELECT', 'JOY_DEADZONE', 'JOY_DELAY', 'JOY_DOWN', 'JOY_LEFT', 'JOY_REPEAT'...
0bc4e85e7b350872c4a1554d004ebcc70299ce3c
5988ce18871f856332b5be0f0e44f1217494d3f7
/tests/messages_data/mime_emails/raw_email11.py
b1111b42cf3f82c82cd909b7babe8e09817fb747
[ "Apache-2.0" ]
permissive
ikvk/imap_tools
5c17efc61e6ca4ab5b978cc97b30a9c24fd6d98d
5c74f76301bccc5cdd529d23bceaaba43190b973
refs/heads/master
2023-08-03T18:22:22.805958
2023-08-01T05:51:55
2023-08-01T05:51:55
74,050,445
571
87
Apache-2.0
2023-08-01T05:48:34
2016-11-17T17:23:11
Python
UTF-8
Python
false
false
991
py
raw_email11.py
import datetime from imap_tools import EmailAddress DATA = dict( subject='worse when you use them.', from_='xxxxx@xxxxx', to=('',), cc=(), bcc=(), reply_to=(), date=datetime.datetime(2005, 4, 27, 14, 15, 31, tzinfo=datetime.timezone(datetime.timedelta(-1, 61200))), date_str='Wed, 27 Apr...
41686e3858b6dcb3f4b0e658c85e1b96df8d7060
c531778b6b568e5924fcf438dce274067b6e1d31
/resources/lib/services/playback/am_section_skipping.py
bc649d39f4b5c39872a0ea1df9964949a6046e0f
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
CastagnaIT/plugin.video.netflix
a5180fbbaea244a490f750a2dd417b4e7303321a
ece10d24449faaccd7d65a4093c6b5679ee0b383
refs/heads/master
2023-07-01T23:32:20.442923
2023-06-27T06:42:18
2023-06-27T06:42:18
164,314,803
2,019
456
MIT
2023-09-13T13:34:06
2019-01-06T14:27:56
Python
UTF-8
Python
false
false
3,009
py
am_section_skipping.py
# -*- coding: utf-8 -*- """ Copyright (C) 2017 Sebastian Golasch (plugin.video.netflix) Copyright (C) 2018 Caphm (original implementation module) Skipping of video sections (recap, intro) SPDX-License-Identifier: MIT See LICENSES/MIT.md for more information. """ import xbmc import resources.lib.co...
1b1ffb93520911c63b9eb04f996811f3e37c1c54
6f36df6219f8e50374068bb4b3e1a5387c7a2f34
/fipy/viewers/matplotlibViewer/matplotlib1DViewer.py
3ac220b9bee56221a8017eb9cac34a154949e114
[ "NIST-PD" ]
permissive
usnistgov/fipy
0a3db715fea452ae710eea3999d9cd42dfe76fe7
fdc17193bc293da7511be9021e6d4766757e1966
refs/heads/master
2023-08-31T21:59:36.611448
2023-06-27T16:28:58
2023-06-27T16:28:58
23,316,495
444
171
NOASSERTION
2023-09-06T19:21:19
2014-08-25T14:27:58
Python
UTF-8
Python
false
false
4,425
py
matplotlib1DViewer.py
from __future__ import unicode_literals from builtins import zip __docformat__ = 'restructuredtext' from fipy.viewers.matplotlibViewer.matplotlibViewer import AbstractMatplotlibViewer __all__ = ["Matplotlib1DViewer"] from future.utils import text_to_native_str __all__ = [text_to_native_str(n) for n in __all__] class...
52607d0225b694480190d528c2a3c99555e50a6e
c40cde6f5959e9af69a95befec4a238fad7f46f8
/src/mici/states.py
8f6556ae908ddc4bceaef6e7dbc0250c34a4f918
[ "MIT" ]
permissive
matt-graham/mici
ab98f5313d6f6c24916aeb8df922dd6ffebf50c0
7f5c73e65b858e73ca813d59eaf110fb3f8d25c1
refs/heads/main
2023-08-21T08:00:25.546739
2023-08-16T14:13:29
2023-08-16T14:13:29
52,494,384
161
24
MIT
2023-08-16T14:13:30
2016-02-25T03:36:01
Python
UTF-8
Python
false
false
13,925
py
states.py
"""Objects for recording state of a Markov chain and caching computations.""" from __future__ import annotations import copy from collections import Counter from functools import wraps from typing import TYPE_CHECKING from mici.errors import ReadOnlyStateError if TYPE_CHECKING: from collections.abc import Itera...
9174ce94fe2111e35121abc1912379c23e842705
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/govern/data-meta/OpenMetadata/ingestion/tests/unit/test_credentials.py
57940db244678fa5df06b2d33c4b9d9de8ac8fa9
[ "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
3,236
py
test_credentials.py
# Copyright 2021 Collate # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software...
fd6921c1dcf7599b010750e63dd8f362fc196057
6d162c19c9f1dc1d03f330cad63d0dcde1df082d
/util/test/tests/Vulkan/VK_SPIRV_13_Shaders.py
ebfc759678ebf6cca81964095180dfdfb5082f2e
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "CC-BY-3.0", "BSD-3-Clause", "Apache-2.0" ]
permissive
baldurk/renderdoc
24efbb84446a9d443bb9350013f3bfab9e9c5923
a214ffcaf38bf5319b2b23d3d014cf3772cda3c6
refs/heads/v1.x
2023-08-16T21:20:43.886587
2023-07-28T22:34:10
2023-08-15T09:09:40
17,253,131
7,729
1,358
MIT
2023-09-13T09:36:53
2014-02-27T15:16:30
C++
UTF-8
Python
false
false
3,571
py
VK_SPIRV_13_Shaders.py
import renderdoc as rd import rdtest class VK_SPIRV_13_Shaders(rdtest.TestCase): demos_test_name = 'VK_SPIRV_13_Shaders' def check_capture(self): action = self.find_action("Draw") self.check(action is not None) self.controller.SetFrameEvent(action.eventId, False) pipe: rd.P...
960cfdb22a27013e40efee09cfcb5dfb35ed355e
6fdb4eaf5b0e6dbd7db4bf947547541e9aebf110
/hardware-testing/hardware_testing/examples/__init__.py
ce566ba03016d906d0037592a4d232449c3e4122
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
Opentrons/opentrons
874321e01149184960eeaeaa31b1d21719a1ceda
026b523c8c9e5d45910c490efb89194d72595be9
refs/heads/edge
2023-09-02T02:51:49.579906
2023-08-31T16:02:45
2023-08-31T16:02:45
38,644,841
326
174
Apache-2.0
2023-09-14T21:47:20
2015-07-06T20:41:01
Python
UTF-8
Python
false
false
16
py
__init__.py
"""Examples."""
32c439af82b91361896b59dc6e619262b71bcee7
b710dc871264de7167c04962e893aea0a352882d
/src/aaf2/mobs.py
8eb33cd9255d9cd726b1fd959dffc00d28cae950
[ "MIT" ]
permissive
markreidvfx/pyaaf2
4f632fadfae0eecd7d10a691f8d089ed090169e9
23b61437452e8f18fc445d5a8c8b605972fa2349
refs/heads/main
2023-08-31T20:21:47.906137
2023-05-29T20:06:11
2023-05-29T20:06:11
102,393,631
108
32
MIT
2023-08-31T18:35:05
2017-09-04T19:07:29
C
UTF-8
Python
false
false
15,828
py
mobs.py
from __future__ import ( unicode_literals, absolute_import, print_function, division, ) from datetime import datetime import io from . import core from . mobid import MobID from . utils import register_class, rescale from . misc import TaggedValueHelper from . import essence from . import video fr...
d86842288d3af47329fe2aa998b1ede56dc91f8f
94866c11a78c1a999a8e11e2fbe03845e6a56318
/src/robomaster/action.py
e5f9c706f12ff9341c6509f07fa8c156927ebec8
[ "Apache-2.0" ]
permissive
dji-sdk/RoboMaster-SDK
f4bc4d6de7a7f2b797b68287221033c0a10794af
ff6646e115ab125af3207a4ed3df42cc76c795b2
refs/heads/master
2023-05-12T09:06:11.705254
2022-11-10T03:54:51
2022-11-10T03:54:51
232,267,793
281
142
Apache-2.0
2023-05-08T09:47:07
2020-01-07T07:26:10
C
UTF-8
Python
false
false
14,037
py
action.py
# -*-coding:utf-8-*- # Copyright (c) 2020 DJI. # # 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 in the file LICENSE.txt or at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...
10261c0391e940724f5208e847f254e25f1a7f53
c0eeaae1a689a349a86b1e0cf672f7b90fa32886
/solara/template/portal/solara_portal/components/__init__.py
6ddd1cf1f17620be9d95920cee361c70f4b8650a
[ "MIT" ]
permissive
widgetti/solara
a624b9e6408b080cb9845c46d9a3dd56da61a1b7
baa36623c3eb7db50672d8eb3d3cdab9220a50a6
refs/heads/master
2023-08-31T06:59:51.637969
2023-07-31T19:04:29
2023-07-31T19:04:29
467,834,772
959
68
MIT
2023-09-13T19:33:42
2022-03-09T08:12:01
Python
UTF-8
Python
false
false
70
py
__init__.py
from .header import Header # noqa from .layout import Layout # noqa
cdca5fb8b3637b543cd172ffeefc42f3e188a8b6
bec3ad1268b2b45941a2f4277ccd8e2a0860952e
/2020/KAPO/Baby_Bubmi/flag.py
d041a37a429f5ae57af6d45725b4896e1ff16617
[]
no_license
pcw109550/write-up
7a5e19e6c52f7831c6c7709331eb84b9a67cfd2c
bf6ab22619a107c8eb4011861a3c1ea80ac1c9f8
refs/heads/master
2023-07-08T18:10:56.780156
2023-07-04T17:28:12
2023-07-04T17:28:12
186,902,436
168
34
null
2023-02-08T05:21:24
2019-05-15T21:03:53
Sage
UTF-8
Python
false
false
32
py
flag.py
flag = b'flag{r341_e1s3nst13n}'
e176bdbfe681e1b71715a3e2d7462224f5ff54bd
e7e536df0263ae2a7ac44ef30f19110f891213a9
/src/pretalx/event/migrations/0018_auto_20190223_1543.py
a5dcb4b9ce9d7817618c34575092e86709378a25
[ "Apache-2.0" ]
permissive
pretalx/pretalx
b3b3808266f4810dfc8445dc1ed33ba398e7a9c2
269dce90a6fb1ce0064008c40ce5dd4dad61e2e3
refs/heads/main
2023-09-05T11:09:23.538325
2023-09-04T19:57:47
2023-09-04T19:57:47
83,081,285
563
195
Apache-2.0
2023-09-13T19:12:28
2017-02-24T20:46:51
Python
UTF-8
Python
false
false
631
py
0018_auto_20190223_1543.py
# Generated by Django 2.1.5 on 2019-02-23 15:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("submission", "0031_auto_20190223_0730"), ("event", "0017_auto_20180922_0511"), ] operations = [ migrations.AddField( mode...
a90a987994d8ae53726658b7f5b0f558fc4127cf
c8d98c2101a2932c4449183c9e8bd6501c57345f
/copulae/marginal/__init__.py
e649a94086aba077dedf8fea28089a9ce030477e
[ "MIT" ]
permissive
DanielBok/copulae
a9af8fa88a212a5436226a22d59799d671d78645
d48fbd064426605b8784684114844758e3ffc90d
refs/heads/master
2023-07-08T09:52:31.815899
2023-06-14T04:29:39
2023-06-14T05:22:31
165,516,660
131
30
MIT
2023-06-14T05:22:32
2019-01-13T14:43:39
Jupyter Notebook
UTF-8
Python
false
false
37
py
__init__.py
from .marginal import MarginalCopula
1ab9cdd9c2d1c9991d165d8c4b3cb012f8f58388
167c6226bc77c5daaedab007dfdad4377f588ef4
/python/ql/src/Security/CVE-2018-1281/BindToAllInterfaces.py
e3de8345c6d73ff2d334070952cf4575bf461073
[ "MIT" ]
permissive
github/codeql
1eebb449a34f774db9e881b52cb8f7a1b1a53612
d109637e2d7ab3b819812eb960c05cb31d9d2168
refs/heads/main
2023-08-20T11:32:39.162059
2023-08-18T14:33:32
2023-08-18T14:33:32
143,040,428
5,987
1,363
MIT
2023-09-14T19:36:50
2018-07-31T16:35:51
CodeQL
UTF-8
Python
false
false
373
py
BindToAllInterfaces.py
import socket # binds to all interfaces, insecure s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind(('0.0.0.0', 31137)) # binds to all interfaces, insecure s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind(('', 4040)) # binds only to a dedicated interface, secure s = socket.socket(socket.AF_INE...
174f2ac89d50ec9e0b9bd52352061dac9c1dc99a
725ac5a0bf72829be627bf8dc82fdc51ba0f94ae
/Reading_comprehension/BERT_MRC/dataset/args.py
99645936e1492645dfa2e08783d2b2fd2e85ae9c
[]
no_license
shawroad/NLP_pytorch_project
fa14b6e4a156229765e1d552901d0492d8e1def3
1272fed2dc8fef78a9ded0f1ae1644d613a3b57b
refs/heads/master
2023-06-25T02:37:35.503251
2023-06-12T10:57:11
2023-06-12T10:57:11
229,694,655
530
104
null
2020-12-08T09:21:47
2019-12-23T06:54:29
Python
UTF-8
Python
false
false
978
py
args.py
""" @file : args.py @author: xiaolu @time : 2020-03-03 """ import torch # 抽取出数据集的位置 search_input_file = "../data/extract/train/search.train.json" zhidao_input_file = "../data/extract/train/zhidao.train.json" dev_zhidao_input_file = "../data/extract/dev/zhidao.dev.json" dev_search_input_file = "....
75326e2964f1fb034823b4c525d99a4fea97d827
f56a1c0d5af368c38bf4d05e0f251dc525c84ba4
/pulser-core/pulser/devices/__init__.py
3502506d90433aad45a9664a7c71a9af876589a8
[ "Apache-2.0" ]
permissive
pasqal-io/Pulser
11197eb386057f4fbbd4ed254bd874fb134f5cd3
2315989dbfbf0e90a8701e9e7b537f18388b404a
refs/heads/develop
2023-08-30T13:38:50.553841
2023-08-29T13:07:10
2023-08-29T13:07:10
294,159,001
123
56
Apache-2.0
2023-09-14T16:16:56
2020-09-09T15:49:00
Python
UTF-8
Python
false
false
1,114
py
__init__.py
# Copyright 2020 Pulser Development Team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
ba80978786f356d5caecd507759219f808fb6223
79cd7118917561ab5b8d25f04143e0975578b74f
/pytorch_widedeep/bayesian_models/tabular/bayesian_mlp/_layers.py
13eaa91d448d3ec439ab7f5ff271982c407e09c7
[ "Apache-2.0", "MIT" ]
permissive
jrzaurin/pytorch-widedeep
aac80263ba8e94d36b41fb1f47181a66471d7594
74f1ab6feb2e231fdb8c10478638d9e8d5cf3a47
refs/heads/master
2023-09-06T06:41:41.800801
2023-09-04T15:32:38
2023-09-04T15:32:38
107,763,164
1,036
124
Apache-2.0
2023-09-04T15:32:39
2017-10-21T08:11:44
Python
UTF-8
Python
false
false
1,686
py
_layers.py
from torch import nn from pytorch_widedeep.wdtypes import List, Tensor from pytorch_widedeep.bayesian_models import bayesian_nn as bnn from pytorch_widedeep.models._get_activation_fn import get_activation_fn class BayesianMLP(nn.Module): def __init__( self, d_hidden: List[int], activation...
afa5f11b30e58ed1cc6e7cd8c7bcba861848263f
d1c2d00078520cd556f60b7213c27856f8b3460d
/sdks/python/apache_beam/transforms/display.py
b52a8fd5b6dd999cf681d150ba2b9b23bfbbdc61
[ "BSD-3-Clause", "MIT", "LicenseRef-scancode-protobuf", "Apache-2.0", "Python-2.0" ]
permissive
apache/beam
ed11b9e043465c720659eac20ac71b5b171bfa88
6d5048e05087ea54abc889ce402ae2a0abb9252b
refs/heads/master
2023-09-04T07:41:07.002653
2023-09-01T23:01:05
2023-09-01T23:01:05
50,904,245
7,061
4,522
Apache-2.0
2023-09-14T21:43:38
2016-02-02T08:00:06
Java
UTF-8
Python
false
false
14,458
py
display.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 us...
ed2b3b3d3ff7a018a71359322ae050c4bf03c7dc
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_feedback.py
ea6b4b9499626bde18c21cd5ff31449f40bb083c
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
5,053
py
sample_feedback.py
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------------...
c318026c61546cf85182e7480124c9f2f953d332
99833651e4a6a0bc1221d577d9fc43b8568abedd
/nltk_contrib/tiger/query/tsqlparser.py
6bb73d6825b63ce3bc5a0b8e6bbd5b6df2acac58
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
nltk/nltk_contrib
689e2683aa01b120c7473b9a4fc50bc49f014390
95d1806e2f4e89e960b76a685b1fba2eaa7d5142
refs/heads/master
2023-07-31T13:32:47.358897
2022-11-21T18:49:33
2022-11-21T18:49:33
2,530,774
145
127
NOASSERTION
2022-11-21T18:49:34
2011-10-07T05:59:13
Python
UTF-8
Python
false
false
16,332
py
tsqlparser.py
# -*- coding: utf-8 -*- # Copyright © 2007-2008 Stockholm TreeAligner Project # Author: Torsten Marek <shlomme@gmx.net> # Licensed under the GNU GPLv2 """Defines the grammar and parser class for the TigerSearch query language. For a complete description, see the `TigerSearch Manual`_. The grammar will create an abstr...
e51f4c33a3da22e7acc17b393f3146f8a93853be
14efffc101321421dea2bc696e931738c1dff8c0
/test/e2e/toggle-scaledown.py
d23acd2e0cdf41e348587e6808e1d39326b2a604
[ "MIT" ]
permissive
zalando-incubator/kubernetes-on-aws
c85bb2f62ac0f754b0db034866cc68759e7a431d
5904517d74b78401e453b58590539824d1a0407f
refs/heads/dev
2023-09-04T23:00:29.601571
2023-09-04T16:48:40
2023-09-04T16:48:40
70,882,616
642
175
MIT
2023-09-14T16:24:35
2016-10-14T06:55:28
Go
UTF-8
Python
false
false
1,796
py
toggle-scaledown.py
#!/usr/bin/env python3 import argparse import json import subprocess def toggle_scaledown(enabled): current = json.loads( subprocess.check_output( ["kubectl", "get", "daemonset", "-o", "json", "-n", "kube-system", "kube-cluster-autoscaler"] ).decode("utf-8") ) for i, container ...
b3a6c566a2b92a0a57704f6ba187fecf3fa3b9c0
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/pydev/pydev_tests_python/resources/_debugger_case_unhandled_exception_get_stack.py
e013693c8764ae6d8eab4d4e6d65e44a76e7903c
[ "Apache-2.0", "EPL-1.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
208
py
_debugger_case_unhandled_exception_get_stack.py
from contextlib import contextmanager @contextmanager def something(): yield with something(): raise ValueError('TEST SUCEEDED') # break line on unhandled exception print('a') print('b')
bdcca135c78843f7729a9c50090dec26808d24cc
1f297a6fabc562cc57bc8f67cbd3c8074839e0ad
/python数据结构与算法练习/singal.py
0e55853dd02560c5f3552f98b495cf244f3462df
[]
no_license
imtiantian/Python_Awesome_Interview
22cbef021cbdb76233bcd8246f8ef583c305ecfa
be786f31bce583739a33535a63bce5c8d3968d6b
refs/heads/master
2023-02-03T17:37:05.528093
2023-02-02T06:08:08
2023-02-02T06:08:08
82,277,513
205
98
null
2023-02-02T06:08:10
2017-02-17T08:57:09
Python
UTF-8
Python
false
false
323
py
singal.py
class Node: def __init__(self): self.data=None self.nextNode=None def set_and_return_Next(self): self.nextNode=Node() return self.nextNode def getNext(self): return self.nextNode def getData(self): return self.data def setDate(self,d): self.dat...
42297e8406327579f0f62a116b94846a5fd4473f
abe704eb3b53944cdd6505f922f58558e334c589
/tools/cmake_utilities/scripts/relinker/configuration.py
d744d0a83fda3d97bc1c2edac80d1340156a2e12
[ "Apache-2.0" ]
permissive
espressif/esp-iot-solution
c25079eb26a8f54ddacd23689a7288533c721916
2227f0ca21ab37df9cf9d74182fa84c52dffc76f
refs/heads/master
2023-09-01T15:06:17.000154
2023-08-31T10:26:21
2023-08-31T10:26:21
99,690,601
1,612
758
Apache-2.0
2023-09-08T08:43:59
2017-08-08T12:32:16
C
UTF-8
Python
false
false
6,406
py
configuration.py
#!/usr/bin/env python3 # # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD # SPDX-License-Identifier: Apache-2.0 import argparse import csv import os import subprocess import sys import re from io import StringIO OPT_MIN_LEN = 7 espidf_objdump = None espidf_missing_function_info = True class ...
34120d38ac9e7454642439c80ff86ea5d5ad1d7b
9c8e06301f6559a106b805dfe0b372ad2e6bc4d8
/scripts/get_prerelease_version.py
431fda2a6f3c246c631bafc77368982748b82e58
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "Zlib", "BSD-3-Clause", "WTFPL", "MIT", "MPL-2.0", "MPL-1.1", "CC0-1.0", "GPL-2.0-only", "AFL-2.1", "CC-BY-3.0", "Unlicense" ]
permissive
streamlit/streamlit
beecb89300d6f219f3a43ed328f22d3656243f26
4f45c18a4323a796440d651ba77b5eb29409cb2b
refs/heads/develop
2023-09-06T06:22:40.853489
2023-09-04T13:53:20
2023-09-04T13:53:20
204,086,862
27,877
2,739
Apache-2.0
2023-09-14T19:08:39
2019-08-24T00:14:52
Python
UTF-8
Python
false
false
3,032
py
get_prerelease_version.py
#!/usr/bin/env python # Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022) # # 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 # # U...
923e074893467d1f793b05771117da7061a8c3a7
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/sensibo/conftest.py
b2798224b148a02e0ac779148c507f1b3b8d925f
[ "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
2,306
py
conftest.py
"""Fixtures for the Sensibo integration.""" from __future__ import annotations import json from typing import Any from unittest.mock import patch from pysensibo import SensiboClient from pysensibo.model import SensiboData import pytest from homeassistant.components.sensibo.const import DOMAIN from homeassistant.conf...
0a025c663112470c633e81883f15326914e92610
65bb11770578babd76ffe83e6a6ff7c6d7c0f614
/test/mockupdb/test_mongos_command_read_mode.py
62bd76cf0f00868a32442b0610915c0be250bedf
[ "Apache-2.0" ]
permissive
mongodb/mongo-python-driver
51e4672dd00488d571a70b196e55067daabdf6f8
f2867a9abf277e664b46d3d30dd380e6ae77c9d4
refs/heads/master
2023-08-31T17:55:32.242839
2023-08-29T20:40:15
2023-08-29T20:40:15
108,051
3,303
989
Apache-2.0
2023-09-14T21:40:03
2009-01-15T15:18:06
Python
UTF-8
Python
false
false
4,206
py
test_mongos_command_read_mode.py
# Copyright 2015 MongoDB, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
5bcf1289ee3c86f2c57cec8ba8468961519e1637
23652304566b1869ca65b95b116ee43d16e134f3
/h/models/user.py
80547740a5d5f917bbf5f0511dff1f03ef7596ab
[ "BSD-2-Clause", "BSD-3-Clause", "BSD-2-Clause-Views" ]
permissive
hypothesis/h
29399a26990856c336b05022e827541dd8aeedab
232446d776fdb906d2fb253cf0a409c6813a08d6
refs/heads/main
2023-08-30T16:21:33.754658
2023-08-30T09:26:50
2023-08-30T09:40:48
3,910,945
2,558
452
BSD-2-Clause
2023-09-14T11:25:06
2012-04-02T19:56:59
Python
UTF-8
Python
false
false
10,733
py
user.py
import datetime import re import sqlalchemy as sa from sqlalchemy.ext.declarative import declared_attr from sqlalchemy.ext.hybrid import Comparator, hybrid_property from h.db import Base from h.exceptions import InvalidUserId from h.util.user import split_user USERNAME_MIN_LENGTH = 3 USERNAME_MAX_LENGTH = 30 USERNAM...
95a35bac2702cdaf6e8d73e6ac0eda394913d77a
4deb45c2aad0f6530c79abf35a4cb74c6c55f164
/examples/minimal.py
231586db5eaa6211762b74fcd783b13e66f076e2
[ "MIT" ]
permissive
ERGO-Code/HiGHS
cd4e94a9db7ec82f8aeab756c69864b7a8190d98
9e519472fb3e630552178d8196b54e9b58dab27d
refs/heads/master
2023-09-04T20:30:12.901207
2023-07-05T21:29:49
2023-07-05T21:29:49
126,994,758
610
148
MIT
2023-09-14T09:57:08
2018-03-27T13:57:58
C++
UTF-8
Python
false
false
555
py
minimal.py
import highspy import numpy as np inf = highspy.kHighsInf h = highspy.Highs() h.addVars(2, np.array([-inf, -inf]), np.array([inf, inf])) h.changeColsCost(2, np.array([0, 1]), np.array([0, 1], dtype=np.double)) num_cons = 2 lower = np.array([2, 0], dtype=np.double) upper = np.array([inf, inf], dtype=np.double) num_new_n...
e11fbfdb7be78926e050dfaeec46152bc98c88db
ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb
/python_modules/libraries/dagster-pagerduty/dagster_pagerduty/resources.py
e124b8a8cee3775f0b46c3a225252fc3a8e10410
[ "Apache-2.0" ]
permissive
dagster-io/dagster
6adb5deee8bcf3ea1866a6a64f2ed81e1db5e73a
fe21995e0402878437a828c6a4244025eac8c43b
refs/heads/master
2023-09-05T20:46:08.203794
2023-09-05T19:54:52
2023-09-05T19:54:52
131,619,646
8,565
1,154
Apache-2.0
2023-09-14T21:57:37
2018-04-30T16:30:04
Python
UTF-8
Python
false
false
7,939
py
resources.py
from typing import Dict, Optional, cast import pypd from dagster import ConfigurableResource, resource from dagster._config.pythonic_config import infer_schema_from_config_class from dagster._core.definitions.resource_definition import dagster_maintained_resource from dagster._utils.warnings import suppress_dagster_wa...
3b955755d11ee5025eea77cfa2fc4c91e1fc7ed1
92141e59ff8f6d923769b1cbfeb8413c069deb5f
/pyupgrade/_token_helpers.py
3d28bc7e0a2a013bb8905b8c4aabe57c10e48341
[ "MIT" ]
permissive
asottile/pyupgrade
de70614c2f8be3693a864a185ef255754fc77587
83350b641a97064541c9a02792986eba4edd4ae2
refs/heads/main
2023-08-25T00:12:16.172350
2023-08-22T13:08:14
2023-08-22T13:08:14
83,462,592
2,802
211
MIT
2023-09-12T20:06:22
2017-02-28T17:50:31
Python
UTF-8
Python
false
false
14,118
py
_token_helpers.py
from __future__ import annotations import ast import keyword from typing import NamedTuple from typing import Sequence from tokenize_rt import NON_CODING_TOKENS from tokenize_rt import Token from tokenize_rt import tokens_to_src from tokenize_rt import UNIMPORTANT_WS _OPENING = frozenset('([{') _CLOSING = frozenset(...
23cf086d41958d4ad6a3c5533ab0f36f50c8e8ff
e45c6f36a065b6a44e873a773428105de4d3758e
/bases/br_cgu_servidores_executivo_federal/code_/settings.py
b74aa26236f984c9d069f99b49ede83a5f62ecaf
[ "MIT" ]
permissive
basedosdados/mais
080cef1de14376699ef65ba71297e40784410f12
2836c8cfad11c27191f7a8aca5ca26b94808c1da
refs/heads/master
2023-09-05T20:55:27.351309
2023-09-02T03:21:02
2023-09-02T03:21:02
294,702,369
376
98
MIT
2023-08-30T21:17:28
2020-09-11T13:26:45
SQL
UTF-8
Python
false
false
1,732
py
settings.py
""" Settings for the project. """ # pylint: disable=invalid-name from pathlib import Path URL_CGU_DOWNLOADS = "http://www.portaltransparencia.gov.br/download-de-dados/servidores" CGU_FILES = { "militar": {"ativo": ["Militares"], "reservista": ["Reserva_Reforma_Militares"]}, "civil": { "ativo": ["Serv...
4e7606862974bf9b22993c85e51623c537584cb4
376e1818d427b5e4d32fa6dd6c7b71e9fd88afdb
/lang/python27/patches/patch-Lib_test_test__urlparse.py
971fab41e97691be5eee0abd64660ebd06299844
[]
no_license
NetBSD/pkgsrc
a0732c023519650ef821ab89c23ab6ab59e25bdb
d042034ec4896cc5b47ed6f2e5b8802d9bc5c556
refs/heads/trunk
2023-09-01T07:40:12.138283
2023-09-01T05:25:19
2023-09-01T05:25:19
88,439,572
321
138
null
2023-07-12T22:34:14
2017-04-16T20:04:15
null
UTF-8
Python
false
false
18,200
py
patch-Lib_test_test__urlparse.py
$NetBSD: patch-Lib_test_test__urlparse.py,v 1.3 2023/05/29 23:33:48 gutteridge Exp $ Fix CVE-2021-23336: Add `separator` argument to parse_qs; warn with default Via Fedora: https://src.fedoraproject.org/rpms/python2.7/blob/rawhide/f/00359-CVE-2021-23336.patch Fix CVE-2022-0391: urlparse does not sanitize URLs contain...
9b1022dd2dd8110093708185848c8b64d1198124
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/quickFixes/PyAddImportQuickFixTest/beforeStatementBelowFileCommentBlock/main_after.py
1f1375ed8d892d8c204bb814bb20f21066c01a89
[ "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
52
py
main_after.py
# some comment # ################ import a print(a)
182e39a2fbb654c6425d394695fe775067ccfcff
3b1cdc517234d1e2baa77ee6190589c9e6d8ed30
/graphlearn/examples/tf/seal_v2/seal_link_predict.py
56ce7200ed93dac66b79de0a446951d8ec45a1c2
[ "Apache-2.0" ]
permissive
alibaba/graph-learn
e7ef7ee75f0d40a4d57f51691338b7826cf947b2
9682c9b399a57ea318325cdb0c9f4f2f79644e82
refs/heads/master
2023-09-01T05:37:28.606948
2023-08-31T04:52:47
2023-08-31T04:52:47
250,229,724
1,302
289
Apache-2.0
2023-08-31T04:52:48
2020-03-26T10:39:32
C++
UTF-8
Python
false
false
6,948
py
seal_link_predict.py
# Copyright 2023 Alibaba Group Holding Limited. 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 ...
3c806efe03de9632397de28fc6cf56ce1ab2c4de
057a475216e9beed41983481aafcaf109bbf58da
/tests/queries/0_stateless/00386_long_in_pk.python
c7b04102dc504070cf3e0d5738e1f9cdb9b35d03
[ "Apache-2.0", "BSL-1.0" ]
permissive
ClickHouse/ClickHouse
fece5204263a5b4d693854b6039699265f1bb27f
6649328db809d51a694c358571539bc5820464be
refs/heads/master
2023-08-31T18:48:36.615225
2023-08-31T17:51:24
2023-08-31T17:51:24
60,246,359
23,878
5,449
Apache-2.0
2023-09-14T20:10:52
2016-06-02T08:28:18
C++
UTF-8
Python
false
false
3,060
python
00386_long_in_pk.python
#!/usr/bin/env python3 def gen_queries(): create_template = "create table tab_00386 (a Int8, b String, c Tuple(Int8), d Tuple(Tuple(Int8)), e Tuple(Int8, String), f Tuple(Tuple(Int8, String))) engine = MergeTree order by ({}) partition by {}" drop_query = "drop table if exists tab_00386" values = ("1", "'...
87fb93cbfaed53809f6c10a33222be70ed918a6f
e83005ad68df95d4976099620bc60dc9f539355c
/tests/test_sqlalchemy_data_layer.py
2ae1b64af165b85b33009226d70951f789547801
[ "MIT" ]
permissive
fossasia/flask-rest-jsonapi
6c921dcfbd912929bf5d86f68b4d824925377c2d
a03408bffd5ef96bf3b8abe3a30d147db46fbe47
refs/heads/fossasia
2021-08-07T08:42:05.441633
2021-04-14T12:58:15
2021-04-14T12:58:15
124,872,416
1,827
40
MIT
2021-04-14T12:52:22
2018-03-12T10:29:51
Python
UTF-8
Python
false
false
54,424
py
test_sqlalchemy_data_layer.py
# -*- coding: utf-8 -*- from six.moves.urllib.parse import urlencode import pytest import json from sqlalchemy import create_engine, Column, Integer, DateTime, String, ForeignKey from sqlalchemy.orm import sessionmaker, relationship from sqlalchemy.ext.declarative import declarative_base from flask import Blueprint, ...
041081c608ce0d661cef51309b16406d3d45e14d
6d088ec295b33db11e378212d42d40d5a190c54c
/contrib/brl/bseg/bstm/pyscripts/bstm_scene_adaptor.py
f0438b997ad80a4677b34349b6a8e5210b39a8a1
[]
no_license
vxl/vxl
29dffd5011f21a67e14c1bcbd5388fdbbc101b29
594ebed3d5fb6d0930d5758630113e044fee00bc
refs/heads/master
2023-08-31T03:56:24.286486
2023-08-29T17:53:12
2023-08-29T17:53:12
9,819,799
224
126
null
2023-09-14T15:52:32
2013-05-02T18:32:27
C++
UTF-8
Python
false
false
20,572
py
bstm_scene_adaptor.py
""" Wrapper around bstm_adaptor functions. Creates "Scene" class to manage scene, caches, etc. """ import brl_init import bstm_batch as batch dbvalue = brl_init.register_batch(batch) import sys from os.path import basename, splitext import bstm_adaptor import vil_adaptor_bstm_batch as vil import vpgl_adaptor_bstm_bat...
6579a88ce8de2d56f15e8fb6d2d830deb096bb0c
083e6e9cb64b15df45de504890581616225041ff
/mean.py
222f32ac68cc510daf34d36ebf3b46bd56ff398f
[ "MIT" ]
permissive
okankop/Efficient-3DCNNs
50cc32da0e9a621bf19c0f7332349bf1e28a7b48
9db09f629d8acad06b316e40c351fa96d01c2268
refs/heads/master
2023-06-04T07:05:45.268148
2021-10-18T09:24:26
2021-10-18T09:24:26
179,437,464
723
160
MIT
2022-12-21T17:46:28
2019-04-04T06:42:05
Python
UTF-8
Python
false
false
635
py
mean.py
def get_mean(norm_value=255, dataset='activitynet'): assert dataset in ['activitynet', 'kinetics'] if dataset == 'activitynet': return [ 114.7748 / norm_value, 107.7354 / norm_value, 99.4750 / norm_value ] elif dataset == 'kinetics': # Kinetics (10 videos for each class)...
6c6023f54fae562376a0e0998b33517eaf228382
119646d6e1f13582c577fd7b87c9654839a0b806
/hubspot/discovery/communication_preferences/discovery.py
3e6287106900786bbb03f2ccc8399c102a999905
[]
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
407
py
discovery.py
import hubspot.communication_preferences as api_client from ..discovery_base import DiscoveryBase class Discovery(DiscoveryBase): @property def definition_api(self) -> api_client.DefinitionApi: return self._configure_api_client(api_client, "DefinitionApi") @property def status_api(self) -> ap...
41413cfdd5863a7c41a8c6539156a4a3da684e2c
6b265b404d74b09e1b1e3710e8ea872cd50f4263
/Python/Interfacing_C_C++_Fortran/F2py/comp_pi_f2py.py
6f3d6d699afb7966b9d1c11324477310b224dc24
[ "CC-BY-4.0" ]
permissive
gjbex/training-material
cdc189469ae2c7d43784ecdcb4bcca10ecbc21ae
e748466a2af9f3388a8b0ed091aa061dbfc752d6
refs/heads/master
2023-08-17T11:02:27.322865
2023-04-27T14:42:55
2023-04-27T14:42:55
18,587,808
130
60
CC-BY-4.0
2023-08-03T07:07:25
2014-04-09T06:35:58
Jupyter Notebook
UTF-8
Python
false
false
502
py
comp_pi_f2py.py
#!/usr/bin/env python from argparse import ArgumentParser import sys from comp_pi import compute_pi def main(): arg_parser = ArgumentParser(description='compute pi using Fortran ' 'function') arg_parser.add_argument('n', default=1000, nargs='?', hel...
d592e40af2e101afddcca11226c2e2e55150e3cb
6181fcd4a266d963a0ee85971768c97922ca77cd
/benchmarks/src/garage_benchmarks/parameters.py
10ec5cccbbac21b7da0fd6c4b8fee9be280d0ed5
[ "MIT" ]
permissive
rlworkgroup/garage
5d215bbecb3a4e74b504988d6684a7b04df69a80
2d594803636e341660cab0e81343abbe9a325353
refs/heads/master
2023-08-21T22:58:49.338034
2023-01-04T06:06:27
2023-01-04T06:06:27
136,846,372
1,832
363
MIT
2023-09-11T11:36:40
2018-06-10T21:31:23
Python
UTF-8
Python
false
false
651
py
parameters.py
"""Global parameters for benchmarking.""" from garage_benchmarks import benchmarks Fetch1M_ENV_SET = [ task['env_id'] for task in benchmarks.get_benchmark('Fetch1M')['tasks'] ] MuJoCo1M_ENV_SET = [ task['env_id'] for task in benchmarks.get_benchmark('Mujoco1M')['tasks'] ] Atari10M_ENV_SET = [ task['env_i...
9faf0bf9fbf25aa25e5fb4928025e6a8c92c1694
7f6c49d23b0b1d90a84f40dcba674f2543a39592
/wan2good/백준/19주차_새로운게임.py
0242a5cc65c60c4f46b832a58a2f813988dd6656
[]
no_license
CodeTest-StudyGroup/Code-Test-Study
76c130007b94508d72c4ac4dd2ccd7c250707e02
ef90f26c47d92ed46a512d46a043550d32369658
refs/heads/master
2023-08-03T15:52:40.487588
2022-07-11T13:20:15
2022-07-11T13:20:15
253,215,176
1,205
241
null
2023-07-26T09:06:20
2020-04-05T11:06:52
C++
UTF-8
Python
false
false
1,256
py
19주차_새로운게임.py
import sys input=sys.stdin.readline MIS=lambda:map(int,input().rstrip().split()) dx=[0,0,-1,1];dy=[1,-1,0,0] n,k=MIS();board=[] for _ in range(n): board.append(list(MIS())) chess_board=[[[] for _ in range(n)] for _ in range(n)] chess=[0 for _ in range(k)] for i in range(k): x,y,z=MIS() chess_board[x-1][y-...
5dbcf6936bc4215aa262b683dbcce76858cf0a12
e7aad0b1c5d8907dbb52000c482c396d1b801751
/test/functional/test-framework/test_tools/fio/fio_param.py
8db911b47bd9d3ef345e5b267d2ff895b21679d0
[ "BSD-3-Clause", "MIT" ]
permissive
Open-CAS/open-cas-linux
c57d60f860702d7bc380c5d85cf502c0bf5e1bae
93334b4675afee8815f8ea12bb7297e0fd2a4195
refs/heads/master
2023-07-12T10:32:26.921455
2023-07-03T12:24:47
2023-07-03T12:24:47
178,356,155
202
84
BSD-3-Clause
2023-07-03T12:24:49
2019-03-29T07:37:15
Python
UTF-8
Python
false
false
13,426
py
fio_param.py
# # Copyright(c) 2019-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # import datetime import json import secrets from enum import Enum from types import SimpleNamespace as Namespace from connection.base_executor import BaseExecutor from core.test_run import TestRun from storage_devices.device import ...
c95ccab01c1bb1e27143bb02fb3d6f6c5a21ddef
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-iotanalytics/huaweicloudsdkiotanalytics/v1/model/run.py
f97a8d98630da7f0c2a2a198ae3b12ef943125ea
[ "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
10,279
py
run.py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class Run: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name ...
db76daab0aca284201133a88c0dc298a4dc429cb
518bf342bc4138982af3e2724e75f1d9ca3ba56c
/solutions/0092. Reverse Linked List II/0092.py
bd46373390664b6cd2ebed2895063cb75418f951
[ "MIT" ]
permissive
walkccc/LeetCode
dae85af7cc689882a84ee5011f0a13a19ad97f18
a27be41c174565d365cbfe785f0633f634a01b2a
refs/heads/main
2023-08-28T01:32:43.384999
2023-08-20T19:00:45
2023-08-20T19:00:45
172,231,974
692
302
MIT
2023-08-13T14:48:42
2019-02-23T15:46:23
C++
UTF-8
Python
false
false
516
py
0092.py
class Solution: def reverseBetween(self, head: Optional[ListNode], left: int, right: int) -> Optional[ListNode]: if left == 1: return self.reverseN(head, right) head.next = self.reverseBetween(head.next, left - 1, right - 1) return head def reverseN(self, head: Optional[ListNode], n: int) -> Opt...
70fd200e72e8454a2b5c6959561ca864c057cfb2
1b364500b756c5096d94358d3ad745e248c20dc4
/wradlib/io/hdf.py
dda7af964f1e2124706bea27ab4d1026a2ffd9a8
[ "MIT" ]
permissive
wradlib/wradlib
fdf3b3670aa8b2ea6ddf4bb6083321992eb361a9
17f876c2c6257171888d6e04f5cbb86f0ac46f90
refs/heads/main
2023-08-26T09:07:45.866267
2023-05-31T06:12:50
2023-05-31T06:12:50
52,089,638
228
89
MIT
2023-09-11T23:29:48
2016-02-19T13:32:22
Python
UTF-8
Python
false
false
25,910
py
hdf.py
#!/usr/bin/env python # Copyright (c) 2011-2023, wradlib developers. # Distributed under the MIT License. See LICENSE.txt for more info. """ HDF Data I/O ^^^^^^^^^^^^ Former available xarray based code has been ported to xradar-package `[1]`_. .. _[1]: https://xradar.rtfd.io .. autosummary:: :nosignatures: :to...
c6ad04c0add09b5b20c5ef906253c157868c21df
35271f6bd874799df9a93dbe5bcc50272b619dc1
/ML/TensorFlow/Basics/tutorial7-indepth-functional.py
74034e13153dc8eb751872fcc246d7753e1cf047
[ "MIT" ]
permissive
aladdinpersson/Machine-Learning-Collection
c724186b64ae52efa6f9d4e97f37477900901d35
558557c7989f0b10fee6e8d8f953d7269ae43d4f
refs/heads/master
2023-08-31T20:52:06.493437
2023-03-21T11:44:08
2023-03-21T11:44:08
250,184,708
5,653
2,543
MIT
2023-09-02T03:51:36
2020-03-26T07:02:40
Python
UTF-8
Python
false
false
2,943
py
tutorial7-indepth-functional.py
import os os.environ["TF_CPP_MIN_LOG_LEVEL"] = "2" import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers, regularizers from tensorflow.keras.datasets import mnist # Use Pandas to load dataset from csv file import pandas as pd # HYPERPARAMETERS BATCH_SIZE = 64 WEIGHT_DECAY = 0.001 L...
4614d67e290e75f366badd8c026d1ac97c224601
3a24f63c8742560993b5465b26339e7c0ed05a27
/crates/ruff/resources/test/fixtures/flake8_quotes/singles_implicit.py
146fda7fa8b19ce58359139176ef996f902928b8
[ "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
263
py
singles_implicit.py
x = ( 'This' 'is' 'not' ) x = ( 'This' \ 'is' \ 'not' ) x = ( 'This' 'is "actually"' 'fine' ) x = ( 'This' \ 'is "actually"' \ 'fine' ) if True: 'This can use "single" quotes' 'But this needs to be changed'
8168859e1104bafa78fff57da01f1c1776e7e94e
ec7b8378698ed9dfc5e62b94c20524bf3aefc3c3
/tiatoolbox/models/architecture/micronet.py
2e552ab3795299dff4f43632c155d4a0f23d0e0d
[ "BSD-3-Clause" ]
permissive
TissueImageAnalytics/tiatoolbox
52fe15704b396a055d9b4fccc678787ef489aed8
f26387f46f675a7b9a8a48c95dad26e819229f2f
refs/heads/develop
2023-08-16T15:47:19.282604
2023-08-14T16:50:45
2023-08-14T16:50:45
267,705,904
222
44
NOASSERTION
2023-09-14T16:57:15
2020-05-28T22:02:51
Python
UTF-8
Python
false
false
17,873
py
micronet.py
"""Define MicroNet architecture. Raza, SEA et al., “Micro-Net: A unified model for segmentation of various objects in microscopy images,” Medical Image Analysis, Dec. 2018, vol. 52, p. 160-173. """ from __future__ import annotations from collections import OrderedDict import numpy as np import torch from scipy impo...
43a4cc5c4f5bc15d3a2700b15986a43a674293ca
96b7ee94763d477ddbe1534a866fb7e3bd269a7b
/tests/unit/test_exception.py
393d6a2cd8747f4059161976d4cf721dff6601e5
[ "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
638
py
test_exception.py
import unittest from quickbooks.exceptions import QuickbooksException, AuthorizationException class QuickbooksExceptionTests(unittest.TestCase): def test_init(self): exception = QuickbooksException("message", 100, "detail") self.assertEqual(exception.message, "message") self.assertEqual...
39fa3d967e6c6878eb63c01a098ad899817aa7f7
e5beafe9aac8a90eb360ca46628d547d5c50677c
/tests/unit/core/profiler/util/test_util.py
d8058d49ebe4431a54018d5474f46b5f66f07c19
[ "MIT" ]
permissive
flask-dashboard/Flask-MonitoringDashboard
84c3a479d6eb2bc16201984d3988e52091b23208
bd41a2396d0770ad14e5b739db42c69ecd85cd49
refs/heads/master
2023-09-01T03:09:12.583145
2023-08-22T21:16:55
2023-08-22T21:16:55
87,939,708
747
168
MIT
2023-08-22T21:07:23
2017-04-11T13:50:14
Python
UTF-8
Python
false
false
338
py
test_util.py
from flask_monitoringdashboard.core.profiler.util import order_histogram def test_order_histogram(): histogram = {('0:42->1:12', 'c'): 610, ('0:42', 'a'): 1234, ('0:42->1:13', 'b'): 614} assert order_histogram(histogram.items()) == ( [(('0:42', 'a'), 1234), (('0:42->1:13', 'b'), 614), (('0:42->1:12', ...
129320cdabb766c187a16ca5000bc905782da01f
bece8b97cdb15988562c8c8dc27a5b58cd3acb90
/sandworm/Resources/browser-creds/Windows/lazagne/config/lib/memorpy/SunProcess.py
831c7f63d519dbd1c01fa8dc257a28ffde3308cf
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
center-for-threat-informed-defense/adversary_emulation_library
4382e78f56faa635d5a6cc89bce5b36f3b74476c
4b1d1327ebfbd550ba7e5f1b5562c1f3db61311e
refs/heads/master
2023-08-12T20:08:57.078612
2023-07-17T16:54:16
2023-07-17T16:54:16
259,753,257
1,220
243
Apache-2.0
2023-09-06T16:23:00
2020-04-28T21:16:54
C
UTF-8
Python
false
false
5,069
py
SunProcess.py
# This file is part of memorpy. # # memorpy 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, either version 3 of the License, or # (at your option) any later version. # # memorpy is distributed in the hope that...
33afc6bd098d5a8fc68c5af1b41a5789349df3b7
b756605d6552079c3f43f08102433ce96b3d21e6
/src/pipelinex/extras/ops/numpy_ops.py
5d770a0f4a33d3052371799db2ec85f85562937d
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
Minyus/pipelinex
c35a7d01c0e1d4add84728c9c3663209bb5f1f7a
88ada1393962205e5532094bc0ef2bb4a5b3519b
refs/heads/master
2022-11-25T19:17:13.957991
2022-11-11T13:32:49
2022-11-11T13:32:49
221,912,857
223
16
NOASSERTION
2021-05-02T12:46:32
2019-11-15T11:43:39
Python
UTF-8
Python
false
false
981
py
numpy_ops.py
import numpy as np _to_channel_last_dict = {3: (-2, -1, -3), 4: (0, -2, -1, -3)} def to_channel_last_arr(a): if a.ndim in {3, 4}: return np.transpose(a, axes=_to_channel_last_dict.get(a.ndim)) else: return a _to_channel_first_dict = {3: (-1, -3, -2), 4: (0, -1, -3, -2)} def to_channel_fir...
bca320d54e2bd4fe5289519f4691f3e43ecc8e9f
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stubs/braintree/braintree/util/datetime_parser.pyi
eb12ffa4057cfcf0aad97c0705388fcf6aa09427
[ "Apache-2.0", "MIT" ]
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
35
pyi
datetime_parser.pyi
def parse_datetime(timestamp): ...
6690272ef9b56a4e87760e67cbce149156c403eb
afa75947ca301d55865342e09ad58ab128c5b1e8
/praw/models/reddit/draft.py
2872c803128c0510c4e8b8dd61942fc380e20168
[ "GPL-3.0-only", "BSD-2-Clause" ]
permissive
praw-dev/praw
ab6a6f188d22922618406360143b12c3de3e90df
f1d5506b7a3df240f748e1b7749fd5636aa67b32
refs/heads/master
2023-09-01T06:30:03.060189
2023-09-01T01:54:01
2023-09-01T01:54:01
847,957
2,825
646
BSD-2-Clause
2023-09-11T17:52:22
2010-08-19T04:00:07
Python
UTF-8
Python
false
false
11,734
py
draft.py
"""Provide the draft class.""" from __future__ import annotations from typing import TYPE_CHECKING, Any from ...const import API_PATH from ...exceptions import ClientException from .base import RedditBase from .subreddit import Subreddit from .user_subreddit import UserSubreddit if TYPE_CHECKING: # pragma: no cover...
c787b9f5c92ae52c21283233fe4beb38d6a86100
64a000d42240493e054c39528efca48aca19998a
/distributed/versions.py
05325dae2176c80ac495784ad64a27d549ce5cfb
[ "BSD-3-Clause" ]
permissive
dask/distributed
1ee853c7d1273a421601247954d242d21330bd3d
ec40daa12dc690e4e33dbe12dc40488633e0f67b
refs/heads/main
2023-08-30T12:17:49.467926
2023-08-29T16:51:52
2023-08-29T16:51:52
42,408,083
1,534
982
BSD-3-Clause
2023-09-14T17:21:47
2015-09-13T18:42:29
Python
UTF-8
Python
false
false
5,165
py
versions.py
""" utilities for package version introspection """ from __future__ import annotations import importlib import os import platform import struct import sys from collections.abc import Callable, Iterable from itertools import chain from types import ModuleType from typing import Any from packaging.requirements import ...
a859fa8b98e420ee3a7ee28848aaae686564c4ed
80f94bea418d7956df1ba19d4d6a1d7715a94ade
/test/unit/data/model/migrations/testing_utils/versions/db1/2e8a580bc79a_drop_sqlachemymigrate_table.py
d80b518976b8edf338ab65b3d5a62fed2411caf6
[ "CC-BY-2.5", "MIT", "CC-BY-3.0", "AFL-3.0" ]
permissive
galaxyproject/galaxy
5748409eb6693b1611f289d164f85e20c3237495
b9ae7a16ba0465995e880ae9701b7e87226b9bab
refs/heads/dev
2023-08-28T22:35:51.248138
2023-08-26T08:02:33
2023-08-26T08:02:33
31,211,061
1,277
1,137
NOASSERTION
2023-09-14T19:39:01
2015-02-23T14:18:06
Python
UTF-8
Python
false
false
916
py
2e8a580bc79a_drop_sqlachemymigrate_table.py
"""drop sqlachemymigrate table Revision ID: 2e8a580bc79a Revises: 62695fac6cc0 Create Date: 2021-11-05 16:29:19.123118 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "2e8a580bc79a" down_revision = "62695fac6cc0" branch_labels = None depends_on = None def upgr...
80aa73d4de5081ed3b7e483c69b58cd6d93f54b9
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-Intents/PyObjCTest/test_inpersonhandle.py
ff4b7da73716abd2b02175c01604be9868ad54e1
[ "MIT" ]
permissive
ronaldoussoren/pyobjc
29dc9ca0af838a56105a9ddd62fb38ec415f0b86
77b98382e52818690449111cd2e23cd469b53cf5
refs/heads/master
2023-09-01T05:15:21.814504
2023-06-13T20:00:17
2023-06-13T20:00:17
243,933,900
439
49
null
2023-06-25T02:49:07
2020-02-29T08:43:12
Python
UTF-8
Python
false
false
456
py
test_inpersonhandle.py
from PyObjCTools.TestSupport import TestCase, min_os_level import Intents class TestINPersonHandle(TestCase): def test_enum_types(self): self.assertIsEnumType(Intents.INPersonHandleType) @min_os_level("10.12") def testConstants(self): self.assertEqual(Intents.INPersonHandleTypeUnknown, 0)...
b30a4d6a1d51bf88305c130eea39a1375884c1c2
9241974e50a37303163303660f66f6b77cc5632a
/pre_commit/staged_files_only.py
8812356560385b4b706b8ac196c884f74f43791b
[ "MIT" ]
permissive
pre-commit/pre-commit
c138e1bd540c7515c10f0d61f3d7a4ef66d5bf0a
a1f1d1915646865be2fe84d04633ba964feb0ba0
refs/heads/main
2023-08-19T08:07:21.342724
2023-08-15T14:19:29
2023-08-15T14:19:29
17,689,377
10,804
912
MIT
2023-09-12T00:06:21
2014-03-13T00:39:38
Python
UTF-8
Python
false
false
3,922
py
staged_files_only.py
from __future__ import annotations import contextlib import logging import os.path import time from typing import Generator from pre_commit import git from pre_commit.errors import FatalError from pre_commit.util import CalledProcessError from pre_commit.util import cmd_output from pre_commit.util import cmd_output_b...
4d80b13ca5339af09d834a6301252dffcaefc0e1
e9869359c839c8c175ae7877bc35dcfdfe4058f8
/kornia/feature/disk/__init__.py
396caa4755adb5c41f952d76e0c2f5eb23978d41
[ "Apache-2.0" ]
permissive
kornia/kornia
80f93eae6a70b8bc0c9784f92a842ab9a6ab54ae
1e0f8baa7318c05b17ea6dbb48605691bca8972f
refs/heads/master
2023-08-31T06:32:45.960859
2023-08-30T21:59:41
2023-08-30T21:59:41
145,693,916
7,351
833
Apache-2.0
2023-09-12T21:59:29
2018-08-22T10:31:37
Python
UTF-8
Python
false
false
57
py
__init__.py
from .disk import DISK from .structs import DISKFeatures
676b7997c153a6d763eda671713a7c8f47c414e2
eb7afa613940f5a3f202352a94dd996edcb6bed5
/boto3_type_annotations/boto3_type_annotations/xray/client.py
cb6e6e74dce0bd41f9245add32734023373fdec6
[ "MIT" ]
permissive
alliefitter/boto3_type_annotations
e4da614e27a1d2ad3c9c653c50b8e30108180da5
2a88aa562b1aee6e8a6cc30402980884b3707fbb
refs/heads/master
2020-04-05T22:05:12.689913
2019-11-28T03:32:13
2019-11-28T03:32:13
157,244,330
131
11
MIT
2023-04-21T17:17:03
2018-11-12T16:38:57
Python
UTF-8
Python
false
false
2,861
py
client.py
from typing import Optional from botocore.client import BaseClient from typing import Dict from typing import Union from botocore.paginate import Paginator from datetime import datetime from botocore.waiter import Waiter from typing import List class Client(BaseClient): def batch_get_traces(self, TraceIds: List, ...
d307f39a6f3b3b50b33b052f5afa3a5e0689db07
444a9480bce2035565332d4d4654244c0b5cd47b
/research/cv/SE-Net/modelarts/start_train.py
55d61040bc72ce18118d388fbcc9569568c2eda9
[ "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
10,825
py
start_train.py
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
270471499d14f52ae58989aaa374c02576db763e
1aa2efeffa14d4e409a2749ebdb09fce460a38f5
/poker/scraper/table.py
75762b7f844021f571e1ca4aa19af51faec3551e
[]
no_license
dickreuter/Poker
a87d03a515c88da68d1c125755d14f77bd524f68
f472ca29e3e7b2384dd1b9cd13b390ddd869bbbb
refs/heads/master
2023-08-28T07:21:57.239803
2023-08-21T15:33:49
2023-08-21T15:33:49
55,018,634
1,781
583
null
2023-08-14T23:30:32
2016-03-29T23:58:12
Python
UTF-8
Python
false
false
9,691
py
table.py
import logging import sys import time import numpy as np from poker.decisionmaker.genetic_algorithm import GeneticAlgorithm from poker.scraper.table_scraper import TableScraper from poker.tools.helper import get_config from poker.tools.vbox_manager import VirtualBoxController # pylint: disable=no-member,unused-vari...
f112d6d2cee84c76654108eeba56ee93f20ee3e5
2bd7a9bd2aa6ea6ef41745af4388d607ade5800e
/pySOT/controller/controller.py
9aeb2837649c24fdf9d1d2198b87435a5aca226a
[ "BSD-3-Clause" ]
permissive
dme65/pySOT
c5071eca7bc35d90d590b517bbabca13cb3e27fd
c8f04fd4ed30d49bb61adb008134741319b512a4
refs/heads/master
2021-11-06T02:57:12.418452
2021-09-07T15:33:47
2021-10-27T17:48:18
36,836,292
208
52
NOASSERTION
2021-09-07T17:49:25
2015-06-03T23:27:06
Jupyter Notebook
UTF-8
Python
false
false
3,857
py
controller.py
""" .. module:: controller :synopsis: pySOT controllers .. moduleauthor:: David Eriksson <dme65@cornell.edu>, :Module: controller :Author: David Eriksson <dme65@cornell.edu>, """ import copy import os.path import dill class CheckpointController(object): """Checkpoint controller Controller that uses d...
d15f1428ae1a2410f1d69a7993c55bf9d3101288
c2d48caa5db7e746a38beca625406fcf47379d3c
/src/olympia/addons/migrations/0012_remove_addon_public_stats.py
0e953e04fc2652de95470d90acfe3632c456a939
[]
permissive
mozilla/addons-server
1f6269ec0a4aa5a0142a5f81978ef674daf213a7
e0f043bca8a64478e2ba62f877c9dc28620be22f
refs/heads/master
2023-09-01T09:34:41.867534
2023-09-01T07:21:22
2023-09-01T07:21:22
16,416,867
920
590
BSD-3-Clause
2023-09-14T16:15:01
2014-01-31T18:44:15
Python
UTF-8
Python
false
false
333
py
0012_remove_addon_public_stats.py
# Generated by Django 2.2.12 on 2020-06-10 08:19 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('addons', '0011_auto_20200610_0553'), ] operations = [ migrations.RemoveField( model_name='addon', name='public_stats', ...
ad3834cb8faf27cec32c7a9cf786825847abfaf2
90502c84304eac37315b77351ce877ad13edad7f
/comicweb/comic/__init__.py
da35ecdbc1c8e85b0f063149d297abf77c752044
[]
no_license
LoyalWilliams/comic
38fc8812120a0bb771d68dde4b533e91dc5afdb9
00fadfcfb6f4ca8d5e714e31416aebb8e12f2aaf
refs/heads/master
2021-11-26T20:22:26.995310
2021-08-29T14:10:00
2021-08-29T14:10:00
162,074,370
107
35
null
2021-06-10T21:05:35
2018-12-17T04:26:39
CSS
UTF-8
Python
false
false
5,833
py
__init__.py
img_urls=[[u'https://manhua.qpic.cn/manhua_detail/0/13_14_14_bab8fc39a723b36151072d336c983001_5174.jpg/0'], [u'https://manhua.qpic.cn/manhua_detail/0/13_14_11_55bf2b04ac0a8d7feee4d4289cf0eb78_5128.jpg/0'], [u'https://manhua.qpic.cn/manhua_detail/0/13_14_11_24280a7c97c3a06644a7ec5c36a5674f_5129.jpg/0...
32f3c14603e0f0221e939f8ddc27f311212ad86d
15eb68a30bd1bcd8c153ce3c8774e09ef3f4135d
/NightlyTests/tensorflow/non_eager/test_bn_reestimation.py
94ea12e33c1fa64e5e45146d2572701b2ab578d9
[ "BSD-3-Clause" ]
permissive
quic/aimet
77a984af68fc3c46d98c707d18a14c95a3efdacf
5a406e657082b6a4f6e4bf48f0e46e085cb1e351
refs/heads/develop
2023-08-21T12:51:10.500286
2023-08-18T18:35:39
2023-08-18T18:35:39
257,688,216
1,676
339
NOASSERTION
2023-09-08T06:59:39
2020-04-21T18:57:10
Python
UTF-8
Python
false
false
18,391
py
test_bn_reestimation.py
# /usr/bin/env python3.6 # -*- mode: python -*- # ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification,...
1dab38d3d25b8d0bf410ffc6c6a74a6fe0c21946
302ce5ab1045ee93845608c96580c63d54d730af
/src/spikeinterface/sortingcomponents/tools.py
45b9079ea9fefcec98087cf320ab3d74d005c9d0
[ "MIT" ]
permissive
SpikeInterface/spikeinterface
f900b62720860b2881d2e6b5fa4441e0e560f625
ee2237b3f5ce2347b2ec9df90e97b0ee6c738dcf
refs/heads/main
2023-09-02T11:27:54.687021
2023-09-01T13:48:29
2023-09-01T13:48:29
196,581,117
295
133
MIT
2023-09-14T19:12:16
2019-07-12T13:07:46
Python
UTF-8
Python
false
false
1,280
py
tools.py
import numpy as np from spikeinterface.core.node_pipeline import run_node_pipeline, ExtractSparseWaveforms, PeakRetriever def make_multi_method_doc(methods, ident=" "): doc = "" doc += "method: " + ", ".join(f"'{method.name}'" for method in methods) + "\n" doc += ident + " Method to use.\n" f...
48cbfb507ac1b61978f84d14be4add56b85ccb98
e3db4c51862ae9d2504db4ca9693e758d2add747
/train_twec.py
14d80fbec09b5d6fe4a6ebeb32a3a691b31c217e
[ "MIT" ]
permissive
rajaswa/DRIFT
59f2398ca2d42958c8dd25dea159259b9b13d23f
21977752ac2468057b7661e460d6a5bd5e5fe73c
refs/heads/main
2023-05-23T19:34:52.967311
2023-01-26T12:41:11
2023-01-26T12:41:11
347,655,676
115
11
MIT
2021-07-02T08:43:20
2021-03-14T14:14:16
Python
UTF-8
Python
false
false
2,252
py
train_twec.py
import os import time import numpy as np import streamlit as st from twec.twec import TWEC def train( data_dir="./data/", embedding_size=300, skipgram=False, siter=10, diter=10, negative_samples=10, window_size=5, output_path="./model", overwrite_compass=True, streamlit=False...
91d3021cdb64dd3ab2f3154e99c1e524b8dbea73
a838c711a218bbdb661132eaf252fa417ca8f273
/influxdb_client/domain/template_summary_summary.py
5ca10021a9cd7fff478ba5da131eadcf5ff21422
[ "MIT" ]
permissive
influxdata/influxdb-client-python
9ae84038c1145466dd40c3a9096a74983f29bedb
1ec64b7e1039c891ac3a667ee6697731c61ddbaf
refs/heads/master
2023-08-23T09:14:38.727662
2023-08-09T03:59:54
2023-08-09T03:59:54
192,689,401
623
215
MIT
2023-09-11T05:46:26
2019-06-19T08:17:20
Python
UTF-8
Python
false
false
12,436
py
template_summary_summary.py
# coding: utf-8 """ InfluxDB OSS API Service. The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa:...
ce9397dd709771c688eed8724cdc9bf08c30bd91
e3cfab409afb5ff9a0b3812bf848be6ca9239cee
/pygeodesy/triaxials.py
a4e2cc6816a1e0466e3f2a5fea3607abf5454322
[ "MIT" ]
permissive
mrJean1/PyGeodesy
565266a4f7f6cda5abe98e915bbd868f6cbe1760
eba35704b248a7a0388b30f3cea19793921e99b7
refs/heads/master
2023-08-23T13:58:20.069917
2023-08-20T18:50:45
2023-08-20T18:50:45
68,028,481
283
66
null
2022-04-09T00:40:52
2016-09-12T16:49:10
Python
UTF-8
Python
false
false
60,718
py
triaxials.py
# -*- coding: utf-8 -*- u'''Triaxal ellipsoid classes I{ordered} L{Triaxial} and I{unordered} L{Triaxial_} and Jacobi conformal projections L{JacobiConformal} and L{JacobiConformalSpherical}, transcoded from I{Charles Karney}'s C++ class U{JacobiConformal<https://GeographicLib.SourceForge.io/C++/doc/ classGeographicL...
66098cc7f759b1235a0678f0b8eb956f5be9c4bb
1742b6719b988e5519373002305e31d28b8bd691
/sdk/python/pulumi_aws/imagebuilder/get_distribution_configurations.py
ab2048968af4de2751b742084c4e18cabd480c53
[ "BSD-3-Clause", "MPL-2.0", "Apache-2.0" ]
permissive
pulumi/pulumi-aws
4f7fdb4a816c5ea357cff2c2e3b613c006e49f1a
42b0a0abdf6c14da248da22f8c4530af06e67b98
refs/heads/master
2023-08-03T23:08:34.520280
2023-08-01T18:09:58
2023-08-01T18:09:58
97,484,940
384
171
Apache-2.0
2023-09-14T14:48:40
2017-07-17T14:20:33
Java
UTF-8
Python
false
false
4,954
py
get_distribution_configurations.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload fr...
22d2ef24553a3df2add79bae3a38965e31dc8d63
df91e6d46cd520039f9366d601ae2be82cbb9a98
/tests/test_conv_gate.py
9b4c8531236d92eb4a7c0a8c14713d29cf8611dc
[]
no_license
AlexxIT/XiaomiGateway3
aeb63a4bccb7f206140b65836a45fc7216e0bf79
ff8a4a6d4f8c08803fb4c84e97d21f7bcc15eda3
refs/heads/master
2023-08-29T23:41:34.257447
2023-08-26T16:37:16
2023-08-26T16:37:16
291,484,700
2,051
374
null
2023-09-07T14:03:41
2020-08-30T14:19:34
Python
UTF-8
Python
false
false
1,885
py
test_conv_gate.py
from custom_components.xiaomi_gateway3.core.converters import GATEWAY from custom_components.xiaomi_gateway3.core.device import XDevice DID = "123456789" MAC = "112233aabbcc" def test_gateway(): device = XDevice(GATEWAY, "lumi.gateway.mgl03", DID, MAC) assert device.info.name == "Xiaomi Multimode Gateway" ...
89d12880bd52ee4676ea5c24bc81afaf8091e211
8988a329c571cb04a5d97c691d0cd8bc4caf81d4
/tests/test_trackingcomposite.py
a8564e08b01faa850c1959cb9b94bbf6c7b1eb13
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
dwavesystems/dimod
85329cbee86bdf5a73de05fa25884c877ea53002
8433f221a1e79101e1db0d80968ab5a2f59b865d
refs/heads/main
2023-08-29T08:37:24.565927
2023-08-17T17:14:58
2023-08-17T17:14:58
100,658,303
118
93
Apache-2.0
2023-09-13T18:15:37
2017-08-18T01:02:17
Python
UTF-8
Python
false
false
3,767
py
test_trackingcomposite.py
# Copyright 2019 D-Wave Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
f1be361afdb7125a9a30aff8c6203be6dd98dd5d
c710fa2a979b19d26a45c0821b1c4a46134ba0ae
/baton/autodiscover/admin.py
af64e3f9d6660987911f3f46a0d9507aa1a12664
[ "MIT" ]
permissive
otto-torino/django-baton
4e1c6fb321e613ac8af9dba496e508fa6a194cb4
a20b2f84c41639c6626357c1486fa86f9ef935c1
refs/heads/master
2023-08-26T20:27:31.907955
2023-08-11T09:45:30
2023-08-11T09:45:30
81,565,159
827
103
MIT
2023-08-28T17:26:42
2017-02-10T12:54:24
Python
UTF-8
Python
false
false
938
py
admin.py
from django.contrib import admin from ..config import get_config class BatonAdminSite(admin.AdminSite): site_header = get_config('SITE_HEADER') site_title = get_config('SITE_TITLE') index_title = get_config('INDEX_TITLE') index_template = 'baton/index.html' if get_config( 'ANALYTICS') else 'a...
3c83656a8db8628df51e61777ca2375759a91acc
0545a8f13cde075572335d05dc74586965c62f8f
/examples/video.py
295f3714ffbde4707f68fdb42e5ffea97c5fcd09
[ "MIT" ]
permissive
rm-hull/luma.examples
cabf85927f9dcad55fc627fdf105b94141a7e2ae
464812ea21c836b9f9047a4f78d5076cb0b110d1
refs/heads/master
2023-08-31T00:13:32.515806
2023-08-03T06:45:12
2023-08-03T06:45:12
78,778,717
335
161
MIT
2023-08-27T16:21:28
2017-01-12T19:20:20
Python
UTF-8
Python
false
false
1,343
py
video.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2017-2023 Richard Hull and contributors # See LICENSE.rst for details. # PYTHON_ARGCOMPLETE_OK """ Display a video clip. Make sure to install the av system packages: $ sudo apt-get install -y libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev ...
25ec5ca1a8c5f56cf4b14db40fcd0fdf042c0802
8188f026dcfa3ca6c4e2d58e6c56d04d24e37a18
/projectq/setups/decompositions/rz2rx_test.py
7418c5a1d52b66b82c5b2d8eb136ffabac47342a
[ "Apache-2.0" ]
permissive
ProjectQ-Framework/ProjectQ
2e342da0622d4b5d513c15504556e95d3d0e2aea
67c660ca18725d23ab0b261a45e34873b6a58d03
refs/heads/develop
2023-09-04T02:18:25.581119
2023-03-09T16:03:57
2023-03-09T16:03:57
77,520,796
886
335
Apache-2.0
2023-07-24T07:07:15
2016-12-28T09:31:53
Python
UTF-8
Python
false
false
4,542
py
rz2rx_test.py
# Copyright 2017 ProjectQ-Framework (www.projectq.ch) # # 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 app...
5a19f5133b3074b9804546bd5a969f839598ba50
f8215144c61ef88ed63ed536334a74abc53c5631
/keras_nlp/models/deberta_v3/relative_embedding.py
6c08424f3c8c77d5f2d0ad47895dfc1bb8bedd3e
[ "Apache-2.0" ]
permissive
keras-team/keras-nlp
3906a35c64f543dc3713ed619eb5a790a6ff4a32
43cf146cb7670fc94f98ba88ed940f12d9848726
refs/heads/master
2023-08-16T05:12:06.003760
2023-08-15T22:51:58
2023-08-15T22:51:58
267,715,375
579
175
Apache-2.0
2023-09-14T19:33:47
2020-05-28T23:03:54
Python
UTF-8
Python
false
false
3,490
py
relative_embedding.py
# Copyright 2023 The KerasNLP Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
b695d365502a842ef2f5d5e1a2596de473b1898e
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/CommonTools/TriggerUtils/test/GenericTriggerEventFlag_AlCaRecoTriggerBitsRcd_read_cfg.py
7acb905832b00ed86ac33b91ae7f75d8809ce9db
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
1,215
py
GenericTriggerEventFlag_AlCaRecoTriggerBitsRcd_read_cfg.py
import FWCore.ParameterSet.Config as cms process = cms.Process( "READ" ) process.load( "FWCore.MessageLogger.MessageLogger_cfi" ) process.MessageLogger.cerr.enable = False process.MessageLogger.cout = cms.untracked.PSet( INFO = cms.untracked.PSet( reportEvery = cms.untracked.int32( 250 ) ) ) process.source =...
1aea2338ddb5b8e4313d471e6b755087cb0c6b77
e65a4dbfbfb0e54e59787ba7741efee12f7687f3
/deskutils/bookworm/files/patch-data_scripts_mobi__lib_mobi__ncx.py
efc028ed0cd2b3776828b2042de37b4c6bbb9c16
[ "BSD-2-Clause" ]
permissive
freebsd/freebsd-ports
86f2e89d43913412c4f6b2be3e255bc0945eac12
605a2983f245ac63f5420e023e7dce56898ad801
refs/heads/main
2023-08-30T21:46:28.720924
2023-08-30T19:33:44
2023-08-30T19:33:44
1,803,961
916
918
NOASSERTION
2023-09-08T04:06:26
2011-05-26T11:15:35
null
UTF-8
Python
false
false
4,614
py
patch-data_scripts_mobi__lib_mobi__ncx.py
--- data/scripts/mobi_lib/mobi_ncx.py.orig 2021-08-16 04:25:11 UTC +++ data/scripts/mobi_lib/mobi_ncx.py @@ -34,8 +34,8 @@ class ncxExtract: if self.ncxidx != 0xffffffff: outtbl, ctoc_text = self.mi.getIndexData(self.ncxidx) if DEBUG_NCX: - print ctoc_text - ...
50c2e580bf749afe5f902565a450d2785b369141
a902290fb3b911676358ae4d93f83061a6c2bd0f
/InvenTree/plugin/samples/integration/broken_file.py
f56932e876c47909446faed8ae3671c6c13e1e48
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
inventree/InvenTree
a15e54182c9bfafdf5348cc9a66da1004e23e760
e88a8e99a5f0b201c67a95cba097c729f090d5e2
refs/heads/master
2023-09-03T19:32:35.438375
2023-08-30T00:25:40
2023-08-30T00:25:40
85,894,461
3,077
549
MIT
2023-09-14T14:21:01
2017-03-23T01:44:10
Python
UTF-8
Python
false
false
217
py
broken_file.py
"""Sample of a broken python file that will be ignored on import.""" from plugin import InvenTreePlugin class BrokenFileIntegrationPlugin(InvenTreePlugin): """An very broken plugin.""" aaa = bb # noqa: F821
f3f6462f6ec8bf7102c57882a0a5263295b50b92
73a0f661f1423d63e86489d4b2673f0103698aab
/python/oneflow/test/modules/test_fused_attention_ops.py
25929bb8b3b3f446320c451bd7548f109a9338bd
[ "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
25,128
py
test_fused_attention_ops.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...
af01ea02ca497177ee672bdabfba58684dc9607b
35b55815a7278fffbf05aedb256e84fbf9536b14
/modeltranslation/management/commands/update_translation_fields.py
751ac513b3cc56d1ae1307930f12df25eee4c2a8
[ "BSD-3-Clause" ]
permissive
deschler/django-modeltranslation
1dadf1efca1ed573f0f2dbd16b2d11d6e65fbeaa
b1d32066ed46c9223c94053bb817beb04fec9522
refs/heads/master
2023-08-10T09:14:24.994377
2023-08-03T07:27:14
2023-08-09T06:45:53
6,241,977
1,107
278
BSD-3-Clause
2023-09-08T06:00:00
2012-10-16T09:33:56
Python
UTF-8
Python
false
false
4,016
py
update_translation_fields.py
from django.core.management.base import BaseCommand, CommandError from django.db.models import F, ManyToManyField, Q from modeltranslation.settings import AVAILABLE_LANGUAGES, DEFAULT_LANGUAGE from modeltranslation.translator import translator from modeltranslation.utils import build_localized_fieldname COMMASPACE = ...
a9992af589ed9d073a55851c1f4c12d9e23313fa
c56f70ff9e593118ada1f188e79b0f3015f91f24
/mesh_tensorflow/transformer/gin/models/lm_base.gin
a743ad4ea9aafc89fc308aa1b8268317646f0e85
[ "Apache-2.0" ]
permissive
tensorflow/mesh
44f567ec4d5fa0db58f1a41b818702603d781c64
fbf7b1e547e8b8cb134e81e1cd350c312c0b5a16
refs/heads/master
2023-08-15T09:18:33.205493
2023-05-16T13:01:43
2023-05-16T13:01:43
149,666,254
1,508
290
Apache-2.0
2023-05-16T13:01:48
2018-09-20T20:23:34
Python
UTF-8
Python
false
false
44
gin
lm_base.gin
# -*-Python-*- utils.run.model_type = "lm"
1af0c0a9b01c8f7729a59998afeb8b2c2bf79e98
aef0a344e13f6a10f7145e8cd63a514adaa2f5a7
/example/fb2CG/fpga/tb/fpga_core/test_fpga_core.py
56b91ea37b68607babad12bd643bd03521d64251
[ "MIT" ]
permissive
alexforencich/verilog-pcie
a0ff59662e2d9cac100295b43a9b4ad374bcd406
75126f133318b31f226ae13ebc46a40eb52cf3ac
refs/heads/master
2023-07-20T01:19:06.004282
2023-06-24T05:38:06
2023-06-24T05:38:06
164,569,208
765
223
MIT
2023-07-18T08:36:17
2019-01-08T05:28:51
Verilog
UTF-8
Python
false
false
20,544
py
test_fpga_core.py
""" Copyright (c) 2020 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute...
dcd9d39f3f38cd5f80f0da183def646769eb51b1
578db86c51d44ebddd0dc7b1738985b3dc69eb74
/testapps/test_pillowtop/tests/test_sms_pillow.py
9f0308c1aeacd312dc9fe4fe2990ad233caae937
[ "BSD-3-Clause" ]
permissive
dimagi/commcare-hq
a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b
e7391ddae1af1dbf118211ecb52c83fc508aa656
refs/heads/master
2023-08-16T22:38:27.853437
2023-08-16T19:07:19
2023-08-16T19:07:19
247,278
499
203
BSD-3-Clause
2023-09-14T19:03:24
2009-07-09T17:00:07
Python
UTF-8
Python
false
false
2,497
py
test_sms_pillow.py
from datetime import datetime from unittest.mock import patch from django.test import TestCase from dimagi.utils.parsing import json_format_datetime from corehq.apps.change_feed import topics from corehq.apps.change_feed.consumer.feed import ( change_meta_from_kafka_message, ) from corehq.apps.change_feed.tests....
feb3f7d1bd0b479b698eebfa6bd81f836c334a5d
cb6c99094c81387c41aa85c80c9151f283e5307e
/validate_nb.py
8d2092b7e54528b4271395d535245d013100fb84
[ "Apache-2.0" ]
permissive
bernhard-42/jupyter-cadquery
9789d2edfe47ea76fd16c28431531f7d040c280e
578b430af6e03ba05187e4fa22f64624b58a9cf5
refs/heads/master
2023-05-13T12:56:03.865420
2023-01-03T18:11:12
2023-01-03T18:11:12
180,015,957
266
41
Apache-2.0
2023-04-27T22:40:51
2019-04-07T19:52:57
Python
UTF-8
Python
false
false
181
py
validate_nb.py
import nbformat import json import sys with open(sys.argv[1], "r") as fd: nb = json.load(fd) try: nbformat.validate(nb) print("==> OK") except: print("==> ERROR")
851435578fa9abaa5deb27f88bc0a4bc67ebb963
67371573b8b88aa90c0623382e2e0196ca67acbd
/flowkit/tests/gating_strategy_reused_gates_tests.py
3e4f66e8a3d307ed985798e01eb76694ffa1e3f6
[ "BSD-3-Clause" ]
permissive
whitews/FlowKit
3542c4fa56f1066a48b3a12d37fa2db5b9a6dd21
e539236c7b480582b80eeacbf47533ff12bb19de
refs/heads/master
2023-06-24T01:51:29.605400
2023-05-08T22:52:32
2023-05-08T22:52:32
138,655,889
142
33
BSD-3-Clause
2023-09-12T16:39:16
2018-06-25T22:19:17
Python
UTF-8
Python
false
false
4,727
py
gating_strategy_reused_gates_tests.py
""" Tests for re-used gates in the GatingStrategy Class """ import unittest import flowkit as fk class GatingStrategyReusedGatesTestCase(unittest.TestCase): def setUp(self): """ This TestCase tests more complex GatingStrategy use cases, particularly the re-use of a gate in 2 different bran...
d34c1376fa21dc52495215167da60a963416feda
5130754859e274cd06f63260439e5203c2000a11
/stubs/elasticsearch/client/__init__.pyi
ea1b2098ea2024416b24d5bbad8a8704943a1003
[ "Apache-2.0" ]
permissive
oppia/oppia
8ebc9c7c7f2b336e9a79ce04533abe3956f48cbe
d16fdf23d790eafd63812bd7239532256e30a21d
refs/heads/develop
2023-09-04T07:50:13.661276
2023-09-03T09:21:32
2023-09-03T09:21:32
40,687,563
6,172
4,666
Apache-2.0
2023-09-14T18:25:11
2015-08-14T00:16:14
Python
UTF-8
Python
false
false
8,127
pyi
__init__.pyi
import logging from typing import Any, MutableMapping, Optional, Type, Union, Collection from .indices import IndicesClient from ..transport import Transport logger: logging.Logger class Elasticsearch(object): indices: IndicesClient def __init__( self, hosts: Any = ..., transport_class: Type[Transpo...
7eb6de8ed610650206a3bd24216a52730588d75c
46c0e11d52c6ebcd384a5759ce0868b0350d1c94
/algorithms/c04_tree/__init__.py
40e8162f774b0a2bdf52216c1699dc29cf6f67e2
[ "Apache-2.0" ]
permissive
yidao620c/core-algorithm
7835580109fe3b33d7984762cff043abea7eb3dc
322cb388295e7085a3772b2dcd7b83c34165c98e
refs/heads/master
2023-08-31T01:25:22.303598
2023-08-06T10:09:05
2023-08-06T10:09:05
13,033,144
869
346
null
2018-09-21T15:34:23
2013-09-23T10:42:19
Python
UTF-8
Python
false
false
59
py
__init__.py
# -*- encoding: utf-8 -*- """ 树结构、堆结构。 """
64c61d1402dfd48a837d713acec9a94ded14db9e
f8215144c61ef88ed63ed536334a74abc53c5631
/keras_nlp/models/xlnet/xlnet_backbone.py
dd6abd577327077eb2d9ebd1bae5c24b83f469f7
[ "Apache-2.0" ]
permissive
keras-team/keras-nlp
3906a35c64f543dc3713ed619eb5a790a6ff4a32
43cf146cb7670fc94f98ba88ed940f12d9848726
refs/heads/master
2023-08-16T05:12:06.003760
2023-08-15T22:51:58
2023-08-15T22:51:58
267,715,375
579
175
Apache-2.0
2023-09-14T19:33:47
2020-05-28T23:03:54
Python
UTF-8
Python
false
false
7,488
py
xlnet_backbone.py
# Copyright 2023 The KerasNLP Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
2258e91bf32e362c3f92d849f3db06e2a8e2b1ec
1e92cc7daabe240b374d73da462878e80814171b
/manila/api/views/scheduler_stats.py
a7e3505c8ca96527e89cff80761fbc5c875e23af
[ "Apache-2.0" ]
permissive
openstack/manila
e211281dd16128ac5685cd7b1a13a09d9e6456e1
a93a844398a11a8a85f204782fb9456f7caccdbe
refs/heads/master
2023-08-19T04:23:24.084637
2023-08-17T14:55:58
2023-08-17T14:55:58
24,245,238
178
141
Apache-2.0
2023-08-03T10:43:19
2014-09-19T20:57:05
Python
UTF-8
Python
false
false
1,818
py
scheduler_stats.py
# Copyright (c) 2014 eBay Inc. # Copyright (c) 2015 Rushil Chugh # Copyright (c) 2015 Clinton Knight # 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 # # ...
d19f8771e497b9818d5beea73ee4359365d7deab
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/insteon/schemas.py
e6b22a8cbb964e1627905d2a0fe9064bbc8a139c
[ "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,889
py
schemas.py
"""Schemas used by insteon component.""" from __future__ import annotations from binascii import Error as HexError, unhexlify from pyinsteon.address import Address from pyinsteon.constants import HC_LOOKUP import voluptuous as vol from homeassistant.const import ( CONF_ADDRESS, CONF_DEVICE, CONF_ENTITY_I...
aeb814723079525aa01d216b4d57b8461609c955
1095cfe2e29ddf4e4c5e12d713bd12f45c9b6f7d
/src/python/m5/util/fdthelper.py
136936c51278e941e4cf893c30b2ce05382855f5
[ "BSD-3-Clause", "LicenseRef-scancode-proprietary-license", "LGPL-2.0-or-later", "MIT" ]
permissive
gem5/gem5
9ec715ae036c2e08807b5919f114e1d38d189bce
48a40cf2f5182a82de360b7efa497d82e06b1631
refs/heads/stable
2023-09-03T15:56:25.819189
2023-08-31T05:53:03
2023-08-31T05:53:03
27,425,638
1,185
1,177
BSD-3-Clause
2023-09-14T08:29:31
2014-12-02T09:46:00
C++
UTF-8
Python
false
false
10,684
py
fdthelper.py
# Copyright (c) 2016,2019 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functiona...
b0b21148c077bc12a88c18e066d32fa1ca49cb44
ec7b8378698ed9dfc5e62b94c20524bf3aefc3c3
/tiatoolbox/tools/pyramid.py
2529a69802269ceb14102cad4af660642ec40074
[ "BSD-3-Clause" ]
permissive
TissueImageAnalytics/tiatoolbox
52fe15704b396a055d9b4fccc678787ef489aed8
f26387f46f675a7b9a8a48c95dad26e819229f2f
refs/heads/develop
2023-08-16T15:47:19.282604
2023-08-14T16:50:45
2023-08-14T16:50:45
267,705,904
222
44
NOASSERTION
2023-09-14T16:57:15
2020-05-28T22:02:51
Python
UTF-8
Python
false
false
24,119
py
pyramid.py
"""Tile pyramid generation in standard formats. Included methods are DeepZoom and Zoomify in addition to a generic method. These are generally intended for serialisation or streaming via a web UI. The `get_tile` method returns a Pillow Image object which can be easily serialised via the use of an io.BytesIO object or...
bd8021964bc08f806bb9a002590af41adc0e8b4b
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/Learning_TF_Hope/05__text_and_visualizations/BasicRNNCell.py
a9101d0c646719453a491b25488b1df5b5892de4
[ "MIT" ]
permissive
burakbayramli/books
9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0
5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95
refs/heads/master
2023-08-17T05:31:08.885134
2023-08-14T10:05:37
2023-08-14T10:05:37
72,460,321
223
174
null
2022-10-24T12:15:06
2016-10-31T17:24:00
Jupyter Notebook
UTF-8
Python
false
false
2,548
py
BasicRNNCell.py
# -*- coding: utf-8 -*- """ Created on Tue Dec 20 17:34:43 2016 @author: tomhope """ from __future__ import print_function import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("/tmp/data/", one_hot=True) element_size = 28;time_steps = 28;num_classes = 10...
cb83cb0203e315352280e6f890fd1860f3adfd03
167c6226bc77c5daaedab007dfdad4377f588ef4
/python/ql/test/library-tests/frameworks/stdlib/pep249.py
6f601f5b6c28c206ec685bea0679285b78210954
[ "MIT", "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-other-copyleft", "GPL-1.0-or-later", "LicenseRef-scancode-free-unknown", "Python-2.0" ]
permissive
github/codeql
1eebb449a34f774db9e881b52cb8f7a1b1a53612
d109637e2d7ab3b819812eb960c05cb31d9d2168
refs/heads/main
2023-08-20T11:32:39.162059
2023-08-18T14:33:32
2023-08-18T14:33:32
143,040,428
5,987
1,363
MIT
2023-09-14T19:36:50
2018-07-31T16:35:51
CodeQL
UTF-8
Python
false
false
427
py
pep249.py
import sqlite3 db = sqlite3.connect("example.db") # non standard db.execute("some sql", (42,)) # $ getSql="some sql" cursor = db.cursor() cursor.execute("some sql", (42,)) # $ getSql="some sql" cursor.executescript("sql") # $ getSql="sql" cursor.executescript(sql_script="sql") # $ getSql="sql" import sqlite3.dbap...
699fffb33966709950f977f24a8b9fa3b03a4854
0da4f9195a7e1c4651b709463a66308dc7cf771e
/python/examples/xgboost_regressor.py
49a43b2cd5fb7829cc35681aa2fc7577fd1b56d2
[ "MIT" ]
permissive
NorskRegnesentral/shapr
6437ab6d4bb2de004dc5937397ab8e15ab2cf43c
25f207d2e20835cb114ca13224fac49b91443bdb
refs/heads/master
2023-08-17T22:12:15.012082
2023-08-17T14:02:38
2023-08-17T14:02:38
133,624,629
128
27
NOASSERTION
2023-09-11T11:13:53
2018-05-16T07:05:13
R
UTF-8
Python
false
false
1,122
py
xgboost_regressor.py
import xgboost as xgb from shaprpy import explain from shaprpy.datasets import load_california_housing dfx_train, dfx_test, dfy_train, dfy_test = load_california_housing() ## Fit model model = xgb.XGBRegressor() model.fit(dfx_train, dfy_train.values.flatten()) ## Shapr df_shapley, pred_explain, internal, timing = ex...