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
b8ec49f2a8450bb2aafb64d16aace1fcb0b28281
3481023b43028c5ee9520a8be0978e914bdcb548
/manga_py/providers/chochox_com.py
ee1437168c42cb22631f91edb91bff67dfd01f6a
[ "MIT" ]
permissive
manga-py/manga-py
18f6818d8efc96c3e69efee7dff3f3d6c773e32a
0db97123acab1f2fb99e808b0ba54db08977e5c8
refs/heads/stable_1.x
2023-08-20T03:04:06.373108
2023-04-16T08:28:15
2023-04-16T08:28:15
98,638,892
444
56
MIT
2023-07-27T13:21:40
2017-07-28T10:27:43
Python
UTF-8
Python
false
false
731
py
chochox_com.py
from manga_py.provider import Provider from .helpers.std import Std class ChoChoxCom(Provider, Std): def get_archive_name(self) -> str: return 'archive' def get_chapter_index(self) -> str: return '0' def get_content(self): return self._get_content('{}/{}') def get_manga_nam...
7179e6db311070fc297499324bf94b415b5b904f
8ebc3925894d4f796efb703cdf3254fc56724c3a
/aws-py-dynamicresource/mysql_dynamic_provider.py
e3a7b318ac07eed48d427f0078c9a550db6c5afa
[ "Apache-2.0" ]
permissive
pulumi/examples
8db27b8847f8c05bcc8d99cdec8eb6c7b7ffa2a3
26ffb4bb327f00457796c96676e7db5e25e2bbd6
refs/heads/master
2023-09-04T04:56:53.098380
2023-08-31T14:33:12
2023-08-31T14:33:12
108,589,232
2,156
974
Apache-2.0
2023-09-13T23:27:18
2017-10-27T19:50:31
TypeScript
UTF-8
Python
false
false
4,754
py
mysql_dynamic_provider.py
# Copyright 2016-2020, Pulumi Corporation. All rights reserved. import mysql.connector as connector from mysql.connector import errorcode from pulumi import Input, Output, ResourceOptions from pulumi.dynamic import * from typing import Any, Optional import binascii import os # A class representing the arguments that...
2d80b01fb39abc1d846bece0586562063ba97bd3
fb1e852da0a026fb59c8cb24aeb40e62005501f1
/infoxlm/src-infoxlm/infoxlm/tasks/mlm.py
6c22c00e3f6aa3b52f7a1661e8fa69d6b83714b1
[ "LicenseRef-scancode-unknown-license-reference", "LGPL-2.1-or-later", "LicenseRef-scancode-free-unknown", "Apache-2.0", "MIT" ]
permissive
microsoft/unilm
134aa44867c5ed36222220d3f4fd9616d02db573
b60c741f746877293bb85eed6806736fc8fa0ffd
refs/heads/master
2023-08-31T04:09:05.779071
2023-08-29T14:07:57
2023-08-29T14:07:57
198,350,484
15,313
2,192
MIT
2023-08-19T11:33:20
2019-07-23T04:15:28
Python
UTF-8
Python
false
false
1,941
py
mlm.py
import os from fairseq.tasks import register_task, FairseqTask from fairseq.data.dictionary import Dictionary from infoxlm.data import mlm_utils @register_task("mlm") class Mlm(FairseqTask): @staticmethod def add_args(parser): mlm_utils.add_mlm_args(parser) parser.add_argument('data', help='colon separa...
e002dfaa7920c12f35c6d1e6b5863d93ba5bcdfa
5ea4a3a0e50d2cee386f497c8449d13cd80450f9
/xsdata/codegen/mixins.py
69f83ade62a4fddf0f9f534fea452363978fa0f8
[ "MIT" ]
permissive
tefra/xsdata
8df028ff79cd04b29ecf24401810562b8917b7be
31f672af84fd040a97996871916a41b1046fe46b
refs/heads/main
2023-08-17T03:20:06.912750
2023-08-12T15:24:40
2023-08-12T15:24:40
217,130,848
243
49
MIT
2023-08-30T15:25:31
2019-10-23T18:51:12
Python
UTF-8
Python
false
false
2,890
py
mixins.py
import abc from abc import ABCMeta from typing import Callable from typing import Iterator from typing import List from typing import Optional from xsdata.codegen.models import Attr from xsdata.codegen.models import Class from xsdata.models.config import GeneratorConfig from xsdata.utils.constants import return_true ...
a16b0e305d70ee272ab9f51d8e869a30abbecb31
d26bcefcb646e1bf9843d4872b2f85c12a0872db
/molfeat/trans/pretrained/__init__.py
fb7d39bb8d3f7950aef454c7f817abdf27257dd4
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
datamol-io/molfeat
2247335df72fb6ac715869a5752d7215f61c5af0
4390f9fce25fa2da94338227f7c8f33a23e25b2a
refs/heads/main
2023-08-31T18:27:43.933571
2023-08-01T13:42:04
2023-08-01T13:42:04
613,548,667
111
14
Apache-2.0
2023-09-08T12:31:02
2023-03-13T19:39:29
Python
UTF-8
Python
false
false
347
py
__init__.py
from molfeat.trans.pretrained.base import PretrainedMolTransformer from molfeat.trans.pretrained.fcd import FCDTransformer from molfeat.trans.pretrained.dgl_pretrained import PretrainedDGLTransformer from molfeat.trans.pretrained.graphormer import GraphormerTransformer from molfeat.trans.pretrained.hf_transformers impo...
2651217c414da4593610eec17cd64af49502802f
568a2667a1b6ec33a0dec9ac01844ef74e11ab2b
/tests/components/tectonics/test_listric_kinematic_extender.py
e680338bf72e41ec4e4639385e32a51ea15bef89
[ "MIT" ]
permissive
landlab/landlab
0bcc9b7b1d8c4d7f79bad687e1526b80ebc83728
1cd72e5832ece1aa922cd1b239e2e94ed0f11f8b
refs/heads/master
2023-08-31T07:24:21.545523
2023-08-29T18:51:06
2023-08-29T18:51:06
19,599,383
326
313
MIT
2023-09-14T19:12:23
2014-05-09T04:52:50
Python
UTF-8
Python
false
false
5,868
py
test_listric_kinematic_extender.py
#!/usr/bin/env python3 """ Created on Fri Mar 5 08:42:24 2021 @author: gtucker """ from numpy.testing import assert_array_almost_equal, assert_array_equal, assert_raises from landlab import HexModelGrid, RadialModelGrid, RasterModelGrid from landlab.components import Flexure, ListricKinematicExtender def test_han...
9e16b78b005558b78c5f98437463a3962a8a4899
8c39ba92cc71ff78242477d3256f6ee3daa872c7
/conan/cli/formatters/list/binary_html_table.py
266e02ea210612ef126f57a2c4c35c21a3bbc8a9
[ "MIT" ]
permissive
conan-io/conan
eb4427e534a0edbb1fb06c753d5d9587faaef93c
bac455d1329b6744cdc41747354a727c9233179f
refs/heads/release/2.0
2023-09-03T18:51:54.345761
2023-09-03T17:30:43
2023-09-03T17:30:43
47,190,624
7,754
1,182
MIT
2023-09-14T15:16:09
2015-12-01T13:17:02
Python
UTF-8
Python
false
false
4,612
py
binary_html_table.py
from collections import OrderedDict, defaultdict from conans.model.package_ref import PkgReference class RowResult(object): def __init__(self, remote, reference, data): self.remote = remote self.reference = reference self._data = data @property def recipe(self): return se...
258069732a85da7ee34589437a8b52c5707fd4fc
391fb5b11425d59ea917c6fed51fe1fa9c672764
/opytimizer/math/general.py
74ce73ac860e92293a081660c56141521b718bdc
[ "Apache-2.0" ]
permissive
gugarosa/opytimizer
89e60d582dee9e31b1723e35d08103d7f8f5d3e1
7326a887ed8e3858bc99c8815048d56d02edf88c
refs/heads/master
2023-08-01T08:09:12.055317
2023-05-11T15:21:58
2023-05-11T15:21:58
109,152,650
602
45
Apache-2.0
2023-09-07T14:26:13
2017-11-01T16:04:01
Python
UTF-8
Python
false
false
3,399
py
general.py
"""General-based mathematical functions. """ from itertools import islice from typing import Any, Iterable, List, Optional import numpy as np import opytimizer.math.random as r def euclidean_distance(x: np.ndarray, y: np.ndarray) -> float: """Calculates the Euclidean distance between two n-dimensional points. ...
3bc9f6db9040c164bcbadacfeaf13b3f40436623
2dd26e031162e75f37ecb1f7dd7f675eeb634c63
/tools/nemo_forced_aligner/utils/viterbi_decoding.py
78336f800e149b358c2fd9c9d1fb73b32f0ee76b
[ "Apache-2.0" ]
permissive
NVIDIA/NeMo
1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1
c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7
refs/heads/main
2023-08-21T15:28:04.447838
2023-08-21T00:49:36
2023-08-21T00:49:36
200,722,670
7,957
1,986
Apache-2.0
2023-09-14T18:49:54
2019-08-05T20:16:42
Python
UTF-8
Python
false
false
7,494
py
viterbi_decoding.py
# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
4ab82b0fbdcd92c9c2260cd7824f81796d8f88a8
74218ee28b26a2b0c28c69c01eabb8b81b9d1f1d
/tests/python/pyiexample/example/example.pyi
d01e3e74145c14c88f70d8c3d19061aa95c101c6
[ "MIT" ]
permissive
readthedocs/sphinx-autoapi
5f2cd9f996693b14325e9452165731b6fb0a89e6
92437c9af72b75fbccb451da95f85dbbf0c3f0da
refs/heads/main
2023-09-02T19:45:48.149162
2023-07-08T17:38:24
2023-07-08T17:38:24
36,524,868
277
129
MIT
2023-08-21T12:48:43
2015-05-29T19:32:28
Python
UTF-8
Python
false
false
1,089
pyi
example.pyi
# -*- coding: utf-8 -*- """Example module This is a description """ class Foo(object): """Can we parse arguments from the class docstring? :param attr: Set an attribute. :type attr: str """ class_var = 42 #: Class var docstring another_class_var = 42 """Another class var docstring""" ...
4b16c7532916eac4d4b9e3efe9c504fbb68cfbfc
89b0ace1c0b87f063fc598efc4232efd98604de7
/src/misc/mandelbrot.py
e7d963f84f28341fe3c9e6f7e046425aaf100f34
[ "MIT" ]
permissive
neozhaoliang/pywonderland
bdcc19d46caf12cd7bf50d3852fc6465119a4cd9
e3d24dc5c182a29db096163d1059afafaa79ce89
refs/heads/master
2023-06-28T20:52:23.784200
2023-03-21T02:43:10
2023-03-21T02:43:10
73,236,487
4,549
479
MIT
2022-01-30T08:05:28
2016-11-08T23:34:13
Python
UTF-8
Python
false
false
1,102
py
mandelbrot.py
""" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ A fast Mandelbrot set wallpaper renderer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ reddit discussion: "https://www.reddit.com/r/math/comments/2abwyt/smooth_colour_mandelbrot" """ import numpy as np from numba import jit from PIL import Image MAXITERS = 200 RADIUS = 10...
8340969e5a5056ad1568bdcbef03bbe4dd40591c
cbbdf8a0d08d6f0684e6b4bc7de4b32d11f6e36d
/textbox/model/abstract_model.py
f8864f75974102ea4c02645455f7e5639c6d148c
[ "MIT" ]
permissive
RUCAIBox/TextBox
e5ae0429bc3c60364b1584f32335190e7c476dc7
0d7debd9817c0f0278a52506e41ac2677d567550
refs/heads/2.0.0
2023-08-15T22:50:06.409200
2023-05-18T02:26:52
2023-05-18T02:26:52
311,009,578
1,002
130
MIT
2023-07-27T14:51:48
2020-11-08T07:35:46
Python
UTF-8
Python
false
false
6,325
py
abstract_model.py
import torch import torch.nn as nn from textbox import CLM_MODELS, SEQ2SEQ_MODELS, RNN_MODELS, PLM_MODELS from transformers import EncoderDecoderModel import os from typing import List, Optional, Tuple, Union from transformers.modeling_utils import get_parameter_dtype from collections import OrderedDict class Abstrac...
51a2e0c46309ccdeb1c86d7a635952fee99d73bd
6662fa24dfab8ace6c8a4852bc4e8b91e7abd9c4
/Python/Examples/Macros/DisplayItem.py
8e296e3d210d8beb06b40748a5d845e16a1acd54
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
RoboDK/RoboDK-API
7b71da015de3cabeaebf83e559bd3afb2aa189eb
9fa5b7bcc30bf0aab70e4b46aff9a0e0f4f27fd3
refs/heads/master
2023-08-30T11:05:04.165912
2023-08-24T23:13:39
2023-08-24T23:13:39
123,698,891
206
115
NOASSERTION
2023-07-19T09:47:15
2018-03-03T14:24:09
Python
UTF-8
Python
false
false
1,306
py
DisplayItem.py
# This script allows you to show or hide any objects as a program call # # For example, you can call the program like this: # DisplayItem(KUKA KR3, Show) # DisplayItem(KUKA KR3, Hide) from robodk.robolink import * from robodk.robodialogs import * # Name and visible variables ItemName = '' visible = True if len(sys.a...
2e3a5351b42d9e49c4f2c3d92848e363391bc18b
b74320ad439e37dfa48cd8db38dab3b7a20a36ff
/tests/pipelines/text_to_video/test_video_to_video.py
41e213c43deabe70f5bd56969e49ada531e79ddb
[ "Apache-2.0" ]
permissive
huggingface/diffusers
c82beba1ec5f0aba01b6744040a5accc41ec2493
5eeedd9e3336882d598091e191559f67433b6427
refs/heads/main
2023-08-29T01:22:52.237910
2023-08-28T18:16:27
2023-08-28T18:16:27
498,011,141
17,308
3,158
Apache-2.0
2023-09-14T20:57:44
2022-05-30T16:04:02
Python
UTF-8
Python
false
false
6,961
py
test_video_to_video.py
# coding=utf-8 # Copyright 2023 HuggingFace 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 ag...
99542fb845666434efd143cb3c22ffe75b03e19c
94724578994ab1438dcefb51b7ef4d8570da5d4c
/iterm2/changebg.py
e098d5f9378771d5668db1c0fb9029123df38020
[]
no_license
PegasusWang/collection_python
6648d83203634abf44fd42c0b37b0bf7cc406d8f
9ef019a737a0817860d3184924c67a0833bd1252
refs/heads/master
2023-09-01T23:15:39.813635
2023-08-24T06:46:12
2023-08-24T06:46:12
43,693,872
130
90
null
2021-04-26T15:12:55
2015-10-05T15:28:15
JavaScript
UTF-8
Python
false
false
1,302
py
changebg.py
#!/usr/bin/env python3 """ https://superuser.com/questions/1068105/iterm2-os-x-change-background-image-for-current-window-from-shell https://github.com/gnachman/iTerm2/blob/master/api/library/python/iterm2/iterm2/profile.py """ import asyncio import random import iterm2 async def main(connection): """修改背景图""" ...
bc34f9d870613fdeead36a505b36c3caf0649f25
57914280e8505404feea3417504deab69b74ab48
/src/pypkg/consolepi/power/outlets.py
2bde4edd06f3b95c0742b7cc7289e2c017a539e1
[ "MIT" ]
permissive
Pack3tL0ss/ConsolePi
1799ef3ec6e4b5c8629582a1f717e2b4b0d612bc
f7a19421bcf222f851bd138334954139e2e37454
refs/heads/master
2023-08-29T07:07:54.193774
2023-08-07T20:30:54
2023-08-07T20:30:54
163,647,608
147
16
MIT
2023-09-10T18:45:07
2018-12-31T07:10:13
Python
UTF-8
Python
false
false
31,884
py
outlets.py
#!/etc/ConsolePi/venv/bin/python3 import json import threading import time from typing import Any, Dict, List, Tuple, Union try: import RPi.GPIO as GPIO is_rpi = True except (RuntimeError, ModuleNotFoundError, ImportError): is_rpi = False from consolepi import log, config, requests, utils # type: ignore...
f73c29587437efa9bb8e43a67bbb6765d47dc57c
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/third_party/blink/web_tests/external/wpt/loading/early-hints/resources/csp-document-disallow-loader.h2.py
bffa90c753df8039846ac741c918d65d510ba950
[ "BSD-3-Clause", "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", "MIT", "Apache-2.0" ]
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
1,598
py
csp-document-disallow-loader.h2.py
import os def handle_headers(frame, request, response): # Send a 103 response. resource_url = request.GET.first(b"resource-url").decode() link_header_value = "<{}>; rel=preload; as=script".format(resource_url) early_hints = [ (b":status", b"103"), (b"link", link_header_value), ] ...
ac6327f380f7cba5b29dafb7c0ffd14e2222e2d1
3dc647cd07a7361ed401e40d2b7cce8c826c8f6c
/whats_left.py
7f3ad80c6364ef62d2dc15f1b4a73061f6a26346
[ "CC-BY-4.0", "MIT" ]
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
15,579
py
whats_left.py
#!/usr/bin/env -S python3 -I # This script generates Lib/snippets/whats_left_data.py with these variables defined: # expected_methods - a dictionary mapping builtin objects to their methods # cpymods - a dictionary mapping module names to their contents # libdir - the location of RustPython's Lib/ directory. # # TODO...
6c24c11095726999da47df4acfa8be3a5f6b9f25
0635a88f7e48f32c86246e1093b19f4cf48f1244
/tests/test_parse_cpu_string.py
27fdfd1313f911154ad1f2745cfea31aa21ec6f7
[ "Python-2.0", "MIT" ]
permissive
workhorsy/py-cpuinfo
0c8a14840849a53819a6a595812cd32b894c0503
f3f0fec58335b9699b9b294267c15f516045b1fe
refs/heads/master
2023-08-31T10:45:13.027313
2022-11-19T20:57:32
2022-11-19T20:57:32
16,787,349
290
62
MIT
2023-08-22T12:51:43
2014-02-13T00:49:47
Python
UTF-8
Python
false
false
5,885
py
test_parse_cpu_string.py
import unittest from cpuinfo import * import helpers class TestParseCPUString(unittest.TestCase): def test_to_decimal_string(self): self.assertEqual('2.8', cpuinfo._to_decimal_string('2.80')) self.assertEqual('2.0', cpuinfo._to_decimal_string('2')) self.assertEqual('3.0', cpuinfo._to_decimal_string(3)) s...
b15b935730501a7776107a71b66d725149703802
8c242933401f3a191b4b38494197bac72635dc42
/src/MyNotes.py
8987eebea6b4d13fd5fe53ae8a519f42be1568cc
[]
no_license
Acidham/alfred-markdown-notes
f7adbe4ff05622840275f8017930b4b79a28c7d7
7b196d905705f1c470edaef1c222ae91f29c99eb
refs/heads/master
2023-03-18T05:39:15.460611
2023-02-28T06:38:49
2023-02-28T06:38:49
183,815,202
123
17
null
2021-08-06T14:52:04
2019-04-27T19:46:53
Python
UTF-8
Python
false
false
20,713
py
MyNotes.py
#!/usr/bin/python3 # -*- coding: utf-8 -*- import datetime import os import re import sys from collections import Counter, OrderedDict from urllib.request import pathname2url from Alfred3 import Tools class Notes(object): REPL_MAP = { '[': '', ']': ' ', '(': '', ')': ' ', ...
52637feb5d6208375497efea90e48b0273015e7b
85373d45a83e4096affafa4f4e5b400787413e57
/src/programy/storage/stores/sql/dao/usergroup.py
0cda83d8aab8cf5317375f4f876cab1aa2b61ae1
[ "MIT" ]
permissive
keiffster/program-y
a02bb9d8278835547cc875f4f9cd668d5b1f44da
fc7b0a3afa4fa6ed683e0c817a9aa89f9543bb20
refs/heads/master
2023-08-23T13:55:39.255535
2022-12-13T09:51:57
2022-12-13T09:51:57
74,462,571
379
173
NOASSERTION
2023-05-23T00:51:21
2016-11-22T10:43:41
Python
UTF-8
Python
false
false
3,680
py
usergroup.py
""" Copyright (c) 2016-2020 Keith Sterling http://www.keithsterling.com 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, m...
4ba5f405021c104572b3ab19ce59dd16af3cb693
56d6257e932e1397ab03b1e7ccc6231378665b04
/KeyLab_mkII/view_control.py
98f8942a8213ed1dc6ed5704bc668fff5ec53b8b
[]
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
1,267
py
view_control.py
#Embedded file name: /Users/versonator/Jenkins/live/output/Live/mac_64_static/Release/python-bundle/MIDI Remote Scripts/KeyLab_mkII/view_control.py from __future__ import absolute_import, print_function, unicode_literals from ableton.v2.base import find_if, listens, liveobj_valid from ableton.v2.control_surface.control...
0e436897b3d34f3bce2f4abc512d6c0b400711de
584f7b51d7cd529448e2fc0147557e26931ab17e
/sphinx-sources/Examples/tests/LensTimingTest.py
30068a0409b61cba012c7c8bd77c58bafc8b32f0
[ "BSD-3-Clause" ]
permissive
opticspy/lightpipes
8ca0d2221a1b893de5e51fec9061e90b9145f5f8
f4ffdedb3ab2f9b5ae5a9a8e37985d2a7f8bb2ef
refs/heads/master
2023-09-04T19:07:11.376631
2023-09-04T15:24:55
2023-09-04T15:24:55
80,127,706
191
55
BSD-3-Clause
2023-08-23T00:45:33
2017-01-26T15:39:28
Python
UTF-8
Python
false
false
2,650
py
LensTimingTest.py
# -*- coding: utf-8 -*- """ Benchmarking script to make sure the porting of the code to Python produces correct results and compare the execution times. Created on Mon Apr 6 22:38:34 2020 @author: Lenny """ import numpy as np import matplotlib.pyplot as plt from LightPipes import tictoc from LightPipes.units impo...
16dd4646aae5daf97cfd3dcaee140acee4c496b1
baa2c6f22ff563d417e34692bf3345077eb8fa5f
/IPython/core/magic_arguments.py
24dd5418767244c39c3e7d0f8aff6d0071180a01
[ "BSD-3-Clause" ]
permissive
ipython/ipython
c42ea223b6e391bb7dd39888cb959d4d5d6b21a1
e5103f971233fd66b558585cce7a4f52a716cd56
refs/heads/main
2023-08-30T18:27:18.436521
2023-08-29T12:16:00
2023-08-29T12:16:00
658,518
13,673
4,729
BSD-3-Clause
2023-09-12T20:22:09
2010-05-10T04:46:06
Python
UTF-8
Python
false
false
9,734
py
magic_arguments.py
''' A decorator-based method of constructing IPython magics with `argparse` option handling. New magic functions can be defined like so:: from IPython.core.magic_arguments import (argument, magic_arguments, parse_argstring) @magic_arguments() @argument('-o', '--option', help='An optional argument...
1369c7632a4fb574d23dd43d768c105c8d84a0a2
725ac5a0bf72829be627bf8dc82fdc51ba0f94ae
/NER/BiLSTM_CRF_Ner/train.py
92e85436e6fa715851fbca8e5678457cb13e937d
[]
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
5,087
py
train.py
# -*- coding: utf-8 -*- # @Time    : 2020/6/29 19:35 # @Author  : xiaolu # @FileName: train.py # @Software: PyCharm import pickle import pdb import numpy as np from sklearn.metrics import precision_score, recall_score, f1_score, classification_report import torch from torch.utils.data import Dataset, DataLo...
d804bbcdd4fa41f6b51f91060f38347c2ceac22c
3982e6daf88e453c726f6b39a081fc37ce15a08a
/discovery-provider/src/models/users/usdc_purchase.py
e559a5d7994521b5730da9086deb9c07961b06a1
[ "Apache-2.0" ]
permissive
AudiusProject/audius-protocol
45808e11082608ad5b76a425d287cb6d94a6dab0
7cf1d8e378520460d24a7cc8c29e9927c0944cb3
refs/heads/main
2023-08-09T10:34:28.850436
2023-08-09T04:28:17
2023-08-09T04:28:17
201,821,771
531
108
NOASSERTION
2023-09-14T21:27:52
2019-08-11T22:31:43
TypeScript
UTF-8
Python
false
false
1,035
py
usdc_purchase.py
import enum from sqlalchemy import BigInteger, Column, DateTime, Enum, Integer, String, text from src.models.base import Base from src.models.model_utils import RepresentableMixin class PurchaseType(str, enum.Enum): track = "track" playlist = "playlist" album = "album" class USDCPurchase(Base, Represe...
f5f24a1bac8cf14449675e3a6354462807646fcb
f3806d9fb54773908cd9704121a543b114470aca
/angr/engines/soot/values/local.py
e252c35c9db7c6848e385922c24783e20b6cea54
[ "BSD-2-Clause" ]
permissive
angr/angr
8ae95fceca51b0a001de56477d984dd01193ac1d
37e8ca1c3308ec601ad1d7c6bc8081ff38a7cffd
refs/heads/master
2023-08-17T03:15:21.007865
2023-08-15T18:44:57
2023-08-15T18:44:57
40,328,394
7,184
1,306
BSD-2-Clause
2023-09-14T20:14:23
2015-08-06T21:46:55
Python
UTF-8
Python
false
false
385
py
local.py
from .base import SimSootValue class SimSootValue_Local(SimSootValue): __slots__ = ["id", "type"] def __init__(self, name, type_): super().__init__() self.id = name self.type = type_ def __repr__(self): return self.id @classmethod def from_sootvalue(cls, soot_val...
dc40452da4cde57bd1cce2f6054503cb43d061ed
86f3973554eb61b12528835851cbdc96aba9ccc0
/io_scene_xray/formats/dm/create.py
faabba09ad5f56f2fd8658e3f4179e9a4025e9ea
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
PavelBlend/blender-xray
02d68e424ae9088221bafc1d0d9019690323d9da
a3abb9eb805182eec8ed8de4058dd744aee0e291
refs/heads/develop
2023-09-03T15:10:56.022070
2023-08-22T17:50:23
2023-08-22T17:50:23
20,459,902
150
40
BSD-2-Clause
2023-08-10T15:01:24
2014-06-03T21:12:53
Python
UTF-8
Python
false
false
8,788
py
create.py
# standart modules import os # blender modules import bpy import bmesh # addon modules from ... import text from ... import log from ... import utils from ... import rw def create_object(object_name): bpy_mesh = bpy.data.meshes.new(object_name) bpy_object = bpy.data.objects.new(object_name, bpy_mesh) bp...
06581edc525e538557608dc2f4f679a98fe5d771
3ec38f732b21b0a00e822dac730bdc1748902144
/scar/providers/aws/resourcegroups.py
c0be463c1f3e0b8a41407f1de5cce2d4787823c3
[ "Apache-2.0" ]
permissive
grycap/scar
e5594c1eb79a0730409c97d48bc511757a05dcbd
e6c8b06a43b310d2c1e58d7826239e259dd826d7
refs/heads/master
2023-08-22T00:39:28.004454
2023-05-22T11:01:10
2023-05-22T11:01:10
91,441,209
613
59
Apache-2.0
2022-11-29T06:36:46
2017-05-16T09:35:57
Python
UTF-8
Python
false
false
1,835
py
resourcegroups.py
# Copyright (C) GRyCAP - I3M - UPV # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
446795c8d9a051705ffd73b755eca9cf5cf0992a
bb1ca2c507c0975e3c20c042c35237feec7f7554
/PyGitUp/tests/test_rebase_arguments.py
9d41cc818a54e96916c37da14b3c2a3ff524ed7a
[ "MIT" ]
permissive
msiemens/PyGitUp
655a9880642cff99b67eb008e994b986184d1166
0aa437834c08b63f439c53bb8a959f28d33e8559
refs/heads/master
2023-08-15T03:35:47.793548
2023-07-24T18:30:34
2023-07-24T18:30:34
7,652,428
452
44
MIT
2023-09-06T18:39:33
2013-01-16T19:39:48
Python
UTF-8
Python
false
false
1,524
py
test_rebase_arguments.py
# System imports import os from os.path import join import pytest from git import * from PyGitUp.git_wrapper import RebaseError from PyGitUp.tests import basepath, write_file, init_master, update_file, testfile_name test_name = 'rebase-arguments' repo_path = join(basepath, test_name + os.sep) def _read_file(path): ...
bc82013612d475f32188127e90f869fd89d95f7a
f6a2bcf29af64a1b89dfde9bdbe9496c3f8115dc
/assets/eip-6475/optional.py
2a1778aff063d0ff9388496730b2eed8be5b4ec2
[ "CC0-1.0" ]
permissive
ethereum/EIPs
cb4e60d893c19fad08a9ed72060d410eecdc4c8f
068867b920b357a18184fcf77813ffe8d32b7bdd
refs/heads/master
2023-08-31T11:16:51.351624
2023-08-30T23:34:51
2023-08-30T23:34:51
44,971,752
12,994
5,168
CC0-1.0
2023-09-14T16:57:20
2015-10-26T13:57:23
Solidity
UTF-8
Python
false
false
6,817
py
optional.py
from typing import Any, BinaryIO, Optional as PyOptional, TypeVar, Type, cast from remerkleable.basic import uint256 from remerkleable.complex import MonoSubtreeView from remerkleable.core import BasicView, View, ViewHook from remerkleable.tree import Gindex, Node, PairNode, get_depth, subtree_fill_to_contents, zero_no...
b1229513d39e47714d1050859574b4847eb92753
ecaba173879f92f24e3c951866fda23c0a4fc426
/perfkitbenchmarker/linux_benchmarks/hbase_ycsb_benchmark.py
1395107f17c3c306c9cdc37a477a87445c24cdb9
[ "Classpath-exception-2.0", "BSD-3-Clause", "AGPL-3.0-only", "MIT", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
GoogleCloudPlatform/PerfKitBenchmarker
2f4917fd796db4eb90822c557d8fa08a497fbd48
d0699f32998898757b036704fba39e5471641f01
refs/heads/master
2023-09-02T08:14:54.110308
2023-09-01T20:28:01
2023-09-01T20:28:38
21,950,910
1,923
567
Apache-2.0
2023-09-13T22:37:42
2014-07-17T17:23:26
Python
UTF-8
Python
false
false
9,098
py
hbase_ycsb_benchmark.py
# Copyright 2015 PerfKitBenchmarker Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
e214493ddecaa4bb8da7e824b076c69bf13784be
3cb75376d2104ffbbc1cfc08a9b7a1425931705f
/app/plugins/poem/config.py
32f85a9ad0741cb622bb9c75f9e62f3760b90c38
[ "Apache-2.0" ]
permissive
xiaoyunjie/openvpn-cms-flask
db6435432c2fd1a42ee9587ce5812b073f3584ee
1a39a984e6a8990c35bb79a103a794a3dc7fdd59
refs/heads/master
2023-05-25T07:19:03.130505
2023-05-23T08:19:52
2023-05-23T08:19:52
242,948,519
200
76
Apache-2.0
2022-05-06T06:08:10
2020-02-25T08:29:38
Python
UTF-8
Python
false
false
11
py
config.py
limit = 20
5087eadf45cd8fb84802279f30a18f9e356da7a5
674081023a48bba16349b49bb3a593d1231614ff
/src/PythonUnitTests/LargeArrayTests.py
30ca944f5e8d76ccb65d1dda458f8cf4c9285eea
[ "BSD-3-Clause" ]
permissive
Quansight-Labs/numpy.net
139fd8044412da2084c9498b53abc6996376ca13
c0d64d4bc56ee80cf4e0c0bc148c241b1c6c32b9
refs/heads/master
2023-06-28T14:15:08.080709
2023-06-16T13:48:48
2023-06-16T13:48:48
163,912,341
117
13
BSD-3-Clause
2023-04-02T00:26:29
2019-01-03T02:17:42
C#
UTF-8
Python
false
false
9,640
py
LargeArrayTests.py
import unittest import numpy as np from nptest import nptest class LargeArrayTests(unittest.TestCase): def test_largearray_matmul_INT64_1(self): width = 1024 height = 1024 x_range = np.arange(0,width, 1, dtype = np.int64) y_range = np.arange(0,height*2, 2, dtype = np.int64) ...
f0439bffcceec9b70754abf0e207e47f1c90f526
620323fc090cebaf7aca456ff3f7fbbe1e210394
/ReadURLsFromFile/ReadURLsFromFile.py
4dbc56e317a474159f99d3c53d2f444daad8fb35
[ "CC-BY-4.0" ]
permissive
gil9red/SimplePyScripts
bd2733372728bf9b9f00570e90316fa12116516b
773c2c9724edd8827a1dbd91694d780e03fcb05a
refs/heads/master
2023-08-31T04:26:09.120173
2023-08-30T17:22:59
2023-08-30T17:22:59
22,650,442
157
46
null
2023-09-08T17:51:33
2014-08-05T16:19:52
Python
UTF-8
Python
false
false
376
py
ReadURLsFromFile.py
# coding=utf-8 __author__ = "ipetrash" import argparse def create_parser(): parser = argparse.ArgumentParser(description="Read URLs from file with URL.") return parser if __name__ == "__main__": create_parser().parse_args() file_path = input("Input file path: ") with open(file_path) as f: ...
67d7ac653f3243a0d4d06a776cb2d35219f5f26b
d2621d10d6d0aa4fcecbb11c281e3dd680b985fc
/ts/torch_handler/object_detector.py
1539c0b9e8c68d1ab8c6fe7e4d80a03129d67bc3
[ "Apache-2.0" ]
permissive
pytorch/serve
7b562a4d6372e77ce28fc71a5b8d5455c6f02290
242895c6b4596c4119ec09d6139e627c5dd696b6
refs/heads/master
2023-08-31T05:24:10.950144
2023-08-31T02:49:22
2023-08-31T02:49:22
212,488,700
3,689
895
Apache-2.0
2023-09-13T22:34:31
2019-10-03T03:17:43
Java
UTF-8
Python
false
false
1,967
py
object_detector.py
""" Module for object detection default handler """ import torch from torchvision import transforms from torchvision import __version__ as torchvision_version from packaging import version from .vision_handler import VisionHandler from ..utils.util import map_class_to_label class ObjectDetector(VisionHandler): ""...
3dccc375fd80786d7e01504681ec66a3fcc64c23
2d3a0b9caaff0ec56de90ca9285648848395c18b
/tests/test_grab.py
89be5dbb0b5d68529e954aa0a61380f192a86ce1
[ "BSD-2-Clause" ]
permissive
imageio/imageio
f96a03fd0c0c704f76ec4ed2f3f5137b5d1d3d2b
a0091371dd42442ca3fae0fc0e8a4f0925757ac7
refs/heads/master
2023-09-04T11:09:46.646163
2023-09-04T02:23:41
2023-09-04T02:23:41
9,861,437
1,332
346
BSD-2-Clause
2023-09-04T13:54:07
2013-05-04T22:56:45
Python
UTF-8
Python
false
false
2,603
py
test_grab.py
import sys import numpy as np from pytest import raises import imageio.v2 as iio import imageio.plugins.grab def test_grab_plugin_load(): imageio.plugins.grab.BaseGrabFormat._ImageGrab = FakeImageGrab imageio.plugins.grab.BaseGrabFormat._pillow_imported = True _plat = sys.platform sys.platform = "w...
2330036781bf8f2412c6dcd78410e613afa7f10b
c46754b9600a12df4f9d7a6320dfc19aa96b1e1d
/tests/models/mvp/test_modeling_mvp.py
8e6143529a804588d03cf91f15a84f965308a8aa
[ "Apache-2.0" ]
permissive
huggingface/transformers
ccd52a0d7c59e5f13205f32fd96f55743ebc8814
4fa0aff21ee083d0197a898cdf17ff476fae2ac3
refs/heads/main
2023-09-05T19:47:38.981127
2023-09-05T19:21:33
2023-09-05T19:21:33
155,220,641
102,193
22,284
Apache-2.0
2023-09-14T20:44:49
2018-10-29T13:56:00
Python
UTF-8
Python
false
false
33,290
py
test_modeling_mvp.py
# coding=utf-8 # Copyright 2021, The HuggingFace Inc. team. 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 ...
57bce6112be89ed19296579f00ffdab200578eef
596697330ac6f9cc04f11f327b0342b2c531ba37
/Week02/FaceRecognition/data_utils.py
875b16d551a409cd72c6593e6ba9c49f8fe1d6cd
[]
no_license
snrazavi/Deep_Learning_in_Python_2018
302cd0cd415b67705081c91d4503311142047fba
4ce7b7abd154b8ef8982190b528809a39d8d167e
refs/heads/master
2023-02-07T20:38:13.706550
2023-02-06T13:43:01
2023-02-06T13:43:01
153,283,405
136
71
null
2021-09-20T06:32:10
2018-10-16T12:41:38
Jupyter Notebook
UTF-8
Python
false
false
1,541
py
data_utils.py
import os import glob import shutil import random from tqdm import tqdm def create_validation_data(trn_dir, val_dir, split=0.1, ext='png'): if not os.path.exists(val_dir): os.mkdir(val_dir) train_ds = glob.glob(trn_dir + f'/*/*.{ext}') print(len(train_ds)) valid_sz = int(split * ...
4f720ec3640d90a6a941b76c9474ed1b5a517f90
9ed3b16b3da72e4c47a04f2f2e3ef395e9fd9f20
/main/python-pyparsing/template.py
a105233640db415d4e1b7fa8cd670e2f1a3e8d24
[ "BSD-2-Clause" ]
permissive
chimera-linux/cports
fdae59dc25856942be3041e10e3533dbf8f883c3
714680161cd719dd047452c95fbb9b447bc23a86
refs/heads/master
2023-09-03T19:30:40.720670
2023-09-03T15:07:40
2023-09-03T15:07:40
374,000,317
118
37
BSD-2-Clause
2023-09-14T20:31:08
2021-06-05T02:07:34
Python
UTF-8
Python
false
false
639
py
template.py
pkgname = "python-pyparsing" pkgver = "3.0.9" pkgrel = 0 build_style = "python_pep517" hostmakedepends = [ "python-setuptools", "python-flit_core", "python-installer", ] depends = ["python"] pkgdesc = "Python parsing module" maintainer = "q66 <q66@chimera-linux.org>" license = "MIT" url = "https://github.co...
98805b1a8bcf90bbc116c5506408c0ed979d9a06
9da4adae4c389e84097a0da9bfce40f9132eef96
/pygame_menu/font.py
2fe87dff157a94c7698adc7601d0e1a2bc7ff765
[ "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
5,536
py
font.py
""" pygame-menu https://github.com/ppizarror/pygame-menu FONTS Menu fonts. """ __all__ = [ # Fonts path included in resources 'FONT_8BIT', 'FONT_BEBAS', 'FONT_COMIC_NEUE', 'FONT_DIGITAL', 'FONT_FRANCHISE', 'FONT_FIRACODE', 'FONT_FIRACODE_BOLD', 'FONT_FIRACODE_BOLD_ITALIC', 'FO...
243b6dcde18f941b70e0dae29ebdb6c7355207ef
7a19dfc7c8741e3c2e5e0c2f1b0260959c303ab4
/scripts/artifacts/viber.py
60f980506d5fa90219f1d2c3f5a131d3fe8d384a
[ "MIT" ]
permissive
abrignoni/iLEAPP
89735f04b96a697c16e0d2edc44d95e529c01584
d9c43007aca17554148dbd2b0ffaad44fe3869f1
refs/heads/main
2023-08-08T13:36:48.234249
2023-08-01T20:29:17
2023-08-01T20:29:17
229,842,283
528
104
MIT
2023-09-12T21:45:41
2019-12-24T00:28:42
Python
UTF-8
Python
false
false
27,193
py
viber.py
# Get Viber settings, contacts, recent calls and messages information # Author : Evangelos Dragonas (@theAtropos4n6) # website : atropos4n6.com # Date : 2022-03-15 # Version : 0.0.2 # # The script queries Settings.data and Contacts.data Viber dbs and creates a report of findings including KML geolcation data # Setting...
7b3322dfead3888a3d22f2e1834b910421a2d6f2
a29b8d6ae6642ef80d04ae99d721b703de06db69
/maro/simulator/scenarios/vm_scheduling/cluster.py
d598353bebcdd288a50fd75628ef19e2531e5a81
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
microsoft/maro
6aab1a4e86fddabf7f242f0d1020d985a5f7a5f3
b3c6a589ad9036b03221e776a6929b2bc1eb4680
refs/heads/master
2023-08-24T16:52:38.250279
2023-05-15T04:31:58
2023-05-15T04:31:58
230,389,247
764
158
MIT
2023-07-25T20:59:06
2019-12-27T06:48:27
Python
UTF-8
Python
false
false
2,081
py
cluster.py
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from typing import List from maro.backends.frame import NodeAttribute, NodeBase, node @node("clusters") class Cluster(NodeBase): """Cluster node definition in frame.""" id = NodeAttribute("i2") region_id = NodeAttribute("i2") ...
0b6067778adbc6a977875efb340d88f5abeaad1c
ed75170ffe743eea5f2fedd518c21b61de55f879
/tbats/error/__init__.py
9befdef3851603ca020185dd2bdd14db44cdd3c5
[ "MIT" ]
permissive
intive-DataScience/tbats
d294fe6d3dcb4ec0b2fc0db5e6aaaae08ade14b5
184bd635e1aea6bd1dd0ac7fa2339257b9ca6bdb
refs/heads/master
2023-04-30T02:25:00.961248
2023-04-17T10:20:31
2023-04-17T10:20:31
162,722,338
162
21
MIT
2022-12-09T07:30:53
2018-12-21T14:19:21
Python
UTF-8
Python
false
false
384
py
__init__.py
from .BatsException import BatsException from .BatsWarning import BatsWarning from .InputArgsException import InputArgsException from .InputArgsWarning import InputArgsWarning from .ModelWarning import ModelWarning from .ExceptionHandler import ExceptionHandler __all__ = ['BatsException', 'BatsWarning', 'InputArgsExce...
c78155c42db07f087be3d0a1cc20ed4590d147b7
8672b779b8f506ab7709319023307a44eba92218
/sample/sample_insert_dict.py
88ce0dfdc9afaac8142df406280294ab19b0834c
[ "MIT" ]
permissive
thombashi/SimpleSQLite
6975de1f873793783e8998ff30f18f4ed7270272
26dd2ab6bc32f766e67e338301a43f6213f61bba
refs/heads/master
2023-08-28T09:18:08.480668
2023-06-24T16:55:38
2023-06-24T16:55:38
52,209,201
140
20
MIT
2023-09-10T05:53:21
2016-02-21T14:01:23
Python
UTF-8
Python
false
false
804
py
sample_insert_dict.py
#!/usr/bin/env python3 from simplesqlite import SimpleSQLite def main(): table_name = "sample_table" con = SimpleSQLite("sample.sqlite", "w") con.create_table_from_data_matrix( table_name, ["attr_a", "attr_b", "attr_c", "attr_d", "attr_e"], [[1, 1.1, "aaa", 1, 1]] ) con.insert( t...
f41d5e249307284a6a1308aeb7c44aa06731d6e8
bb71b5b3ef0e6eb5cfd27e943e206f40cd0aeb90
/tests_e2e/orchestrator/scripts/check-agent-log.py
8807f8046abcb2dc2428d84d9c4ee808c3d08a74
[ "Apache-2.0" ]
permissive
Azure/WALinuxAgent
c35af1df7b52e3e9621757fe7992f3fa4c7c8c49
28345a55f9b21dae89472111635fd6e41809d958
refs/heads/master
2023-08-24T22:08:56.646723
2023-07-27T00:44:46
2023-07-27T00:44:46
4,576,639
473
436
Apache-2.0
2023-09-14T20:11:34
2012-06-06T18:55:55
Python
UTF-8
Python
false
false
1,460
py
check-agent-log.py
#!/usr/bin/env pypy3 # Microsoft Azure Linux Agent # # Copyright 2018 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0...
20583ae40330ebb316a3fa539f5277dbdc3c08cf
3551f4a2e2835ee0e83c307b2365eab7a3340641
/django_unused_media/remove.py
5c83e381d6302e799ad3e9602c9bd4675e8dc10b
[ "MIT" ]
permissive
akolpakov/django-unused-media
b6500ea6498271aa2ef42ed38c0a09c0a9db4a2b
6be3275bebd0b12871b0d94b0e941c68d6fee046
refs/heads/master
2021-11-24T20:06:23.983218
2021-11-23T21:53:11
2021-11-23T21:53:11
22,923,082
125
37
MIT
2021-11-23T21:53:12
2014-08-13T16:40:50
Python
UTF-8
Python
false
false
686
py
remove.py
# -*- coding: utf-8 -*- import os from django.conf import settings def remove_media(files): """ Delete file from media dir """ for filename in files: os.remove(os.path.join(settings.MEDIA_ROOT, filename)) def remove_empty_dirs(path=None): """ Recursively delete empty direct...
9e55a42d19c549f59d373dabec73e3ce6d235d7c
5e66707ccdea0c000e6e269fce6907ee3cfcdbde
/galaxy/main/migrations/0065_namespace_refactor.py
515d5e9edb84d5648941e30c997a075979e91cf9
[ "Apache-2.0" ]
permissive
ansible/galaxy
f629046d579d7cd4e484cdf1e27ad68fe7b170a2
6a374cacdf0f04de94486913bba5285e24e178d3
refs/heads/devel
2023-09-04T09:21:43.542346
2023-08-25T16:58:09
2023-08-25T16:58:09
24,333,272
972
419
Apache-2.0
2023-08-25T17:38:20
2014-09-22T15:04:57
Python
UTF-8
Python
false
false
9,266
py
0065_namespace_refactor.py
from django.db import models, migrations from django.conf import settings import galaxy.main.mixins import galaxy.main.fields COPY_NAMESPACE_DATA = """ INSERT INTO main_providernamespace ( description, created, modified, active, name, display_name, avatar_url, location, company, email, html_url, followers) SELEC...
516cd2a9ee07c2a700486ae9d0a26733b92417cf
ed01f578313f385496bd816a1c2206d5cdc6b090
/tests/test_surface.py
75d0749ec2b7b4240125ecd404f7f67f827d6d9f
[ "BSD-3-Clause" ]
permissive
oddt/oddt
5b4204d5abafa8d3947e0ab216bb29ebb98203ff
bfbf9ea99768b556684dc99c6ac87a9f16b16f80
refs/heads/master
2022-12-27T07:55:56.493227
2022-01-07T18:07:47
2022-02-03T17:55:07
23,150,687
363
118
BSD-3-Clause
2022-02-03T17:55:09
2014-08-20T14:01:11
Python
UTF-8
Python
false
false
5,818
py
test_surface.py
import os from distutils.version import LooseVersion import numpy as np import pytest from numpy.testing import assert_array_equal from skimage import __version__ as skimage_version import oddt from oddt.surface import (generate_surface_marching_cubes, find_surface_residues) test_data_dir =...
47e447eef03cc6cf44e32727735032df1e34c375
863bfa36852b84e2e2834abb67171e37d48b9b81
/returns/interfaces/altable.py
8f6ee31cf25d16df247a1f080f6f66f465cc5fd6
[ "BSD-2-Clause" ]
permissive
dry-python/returns
33f763a34439cb6aa5419f16c6f45f27610d82d4
ae8d9ffaf20c459296337b78ba5ecb2f98870f61
refs/heads/master
2023-09-04T07:33:39.768675
2023-09-01T20:45:59
2023-09-01T20:45:59
167,689,891
2,967
130
BSD-2-Clause
2023-09-11T15:18:58
2019-01-26T13:08:38
Python
UTF-8
Python
false
false
2,359
py
altable.py
from abc import abstractmethod from typing import ( Callable, ClassVar, Generic, NoReturn, Sequence, TypeVar, final, ) from returns.functions import compose, identity from returns.primitives.asserts import assert_equal from returns.primitives.hkt import KindN from returns.primitives.laws im...
5858ba698418c11b327cd1f2afcca0e1b38e08e3
b71a6e7050b0a4368007350d91ee078288a7318c
/examples/other/testMen.py
e0117b4206bc80c454ff3be915e77067bc43e863
[ "Apache-2.0" ]
permissive
jarvisteach/appJar
2dfd0da6cb85ea3535379ed000efd97fb42fe4f8
0b59ce041da2197dcff3410e20f298676f1f7266
refs/heads/appJar
2023-08-29T09:42:01.812005
2019-09-28T18:34:06
2019-09-28T18:34:06
39,996,518
696
103
NOASSERTION
2023-02-20T01:01:16
2015-07-31T08:59:20
Python
UTF-8
Python
false
false
2,269
py
testMen.py
from tkinter import * import os def ShowHelp(e=None): print("help") def showHelpDialog(e=None): print("help") class App(Frame): def __init__(self, parent): Frame.__init__(self, parent) parent.title("Menu Tester") # create menu bar object menubar = M...
65f6cf261d65bd60ae4ff205974785710bcc7eb7
f791462fb1286607d16459c1602d133f8d8c8b59
/test/test_optimizers.py
84dab38815d7c39a3e83ea2f7bd4322bf3bc1e36
[ "Apache-2.0" ]
permissive
pyro-ppl/numpyro
b071ed2bd93be41bafc3da8764c9f5617f996d92
ca96eca8e8e1531e71ba559ef7a8ad3b4b68cbc2
refs/heads/master
2023-09-03T15:56:13.252692
2023-08-28T14:32:25
2023-08-28T14:32:25
170,580,540
1,941
219
Apache-2.0
2023-09-04T11:26:11
2019-02-13T21:13:59
Python
UTF-8
Python
false
false
3,332
py
test_optimizers.py
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 from functools import partial import pytest from jax import grad, jit import jax.numpy as jnp from numpyro import optim try: import optax # the optimizer test is parameterized by different optax optimizers, but we have ...
3792578ea46a8c05b1547f7ba9c0cd0d1b047e1c
86bd1a9b92ffe3edb1982515be7d482584b990ba
/tcconfig/_network.py
bb01da8699258dcba1cdbde434d390c941283df1
[ "MIT" ]
permissive
thombashi/tcconfig
e9202538382d371f34190947cbd3ac0b7332c4db
e14f9fbdb235e2d6b2748962735dcf3fa1f356f3
refs/heads/master
2023-08-19T22:51:56.590952
2022-09-26T13:42:13
2022-09-26T13:42:13
49,825,187
753
86
MIT
2021-12-12T03:54:10
2016-01-17T16:24:09
Python
UTF-8
Python
false
false
3,249
py
_network.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import humanreadable as hr import typepy from pyroute2 import IPRoute from ._const import Network from ._error import NetworkInterfaceNotFoundError def get_anywhere_network(ip_version): ip_version_n = typepy.Integer(ip_version).try_convert...
2d7730d80ec1ba72d05eabc61dfafe19af637caa
4daab5ba90185bae65169ebb8183c635385ab3f8
/autode/plotting.py
e443c493f48feebcf845156a6e52f1f885c41c4b
[ "MIT" ]
permissive
duartegroup/autodE
bcf69440bd04411f97d39df0df0ae1f2bf6feb8c
4d6667592f083dfcf38de6b75c4222c0a0e7b60b
refs/heads/master
2023-09-01T15:08:16.028378
2023-07-25T08:09:05
2023-07-25T08:09:05
196,085,570
132
42
MIT
2023-09-12T15:20:54
2019-07-09T21:20:27
Python
UTF-8
Python
false
false
16,265
py
plotting.py
import os import numpy as np from typing import Sequence, Union, TYPE_CHECKING, List, Optional, Any, Tuple from scipy import interpolate from autode.values import Energy from autode.exceptions import CouldNotPlotSmoothProfile from scipy.optimize import minimize from autode.config import Config from autode.units import...
0baac9a14961c0a7261e104a4221c454934a06ae
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/aks/azure-mgmt-devspaces/azure/mgmt/devspaces/models/_models_py3.py
c20512f46cee1c4dffba718dd4ef9f7b8467bd97
[ "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
23,118
py
_models_py3.py
# coding=utf-8 # pylint: disable=too-many-lines # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
6832cd82fdc5bd1e82ea73aa3625400011b71df5
eda03521b87da8bdbef6339b5b252472a5be8d23
/Meta/check-emoji.py
ae8e7ace85ff285eaba6ea13314c7b91f6f93219
[ "BSD-2-Clause" ]
permissive
SerenityOS/serenity
6ba3ffb242ed76c9f335bd2c3b9a928329cd7d98
ef9b6c25fafcf4ef0b44a562ee07f6412aeb8561
refs/heads/master
2023-09-01T13:04:30.262106
2023-09-01T08:06:28
2023-09-01T10:45:38
160,083,795
27,256
3,929
BSD-2-Clause
2023-09-14T21:00:04
2018-12-02T19:28:41
C++
UTF-8
Python
false
false
2,799
py
check-emoji.py
#!/usr/bin/env python3 import os import re import sys RE_INVALID_CHAR = re.compile('[^A-FU0-9+_]') RE_MISSING_UNDERSCORE = re.compile('[^_]U') RE_MISSING_LETTER_U = re.compile('_(?!U)') RE_MISSING_SIGN_PLUS = re.compile('U(?!\\+)') def any_problems_here(): found_invalid_filenames = False for filename in os....
b29f44d18c22baf78b1edc8f8fc1f1257df1af4b
e6e888ea52987c5ac4e7ce143e947bc2c4839de8
/generate_poem.py
2aedc95404de74526efcffb0ea1717ebb258e4f9
[ "Apache-2.0" ]
permissive
IlyaGusev/rupo
23078b2b07bb6443c0dc09287a3d584728a2b6a8
3d114f92dec08c16d28e7e5a1076cd7ea871043f
refs/heads/master
2022-07-21T00:33:48.023357
2022-07-03T14:23:36
2022-07-03T14:23:36
85,340,357
185
35
null
2017-08-31T00:00:11
2017-03-17T17:54:37
Python
UTF-8
Python
false
false
1,315
py
generate_poem.py
import argparse from rupo.api import Engine from rupo.settings import RU_STRESS_DEFAULT_MODEL, ZALYZNYAK_DICT, GENERATOR_MODEL_DIR if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('--model-path', type=str, default=GENERATOR_MODEL_DIR) parser.add_argument('--token-vocab-pa...
0484afcc5349b2139a66d22661453f2c91749609
11ccb6827cf643b37c44a2e174422f9c6f9497f2
/falcon/request_helpers.py
7534db108cc088fc7bcd765a967badf5d88c2963
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
falconry/falcon
7506f838520e5105714702d9a9b2f0e608a704b9
32207fe8a7ebdfb95271d8430c4977c7a654928c
refs/heads/master
2023-08-31T05:32:03.755869
2023-08-21T21:45:34
2023-08-21T21:45:34
7,040,500
8,922
1,183
Apache-2.0
2023-09-09T20:58:36
2012-12-06T18:17:51
Python
UTF-8
Python
false
false
6,153
py
request_helpers.py
# Copyright 2013 by Rackspace Hosting, 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 t...
3d3b260cc83a550aaa286c774fdb9f66bf70d0bc
a9c359681631e8344f55163a2d69018ed02c0a90
/openr/py/openr/cli/clis/lm.py
d3753c75898200d497fe9bd5b6f4eab27e4521f1
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
facebook/openr
66c82707ae47fa5ed711c20f0355ad7100a3cf1c
8e4c6e553f0314763c1595dd6097dd578d771f1c
refs/heads/main
2023-09-03T02:55:03.399114
2023-07-26T16:46:46
2023-07-26T16:46:46
108,306,129
936
295
MIT
2023-08-31T23:03:31
2017-10-25T17:59:53
C++
UTF-8
Python
false
false
9,458
py
lm.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. from typing import List import bunch import click from openr.cli.commands import kvstore, lm from openr.cli.utils im...
37433f7cc6bd8877df7702065c77a3fbc679bd50
1a3b369d0eed3455545567400d37dca114042902
/pydexcom/__init__.py
2d5487071c296b7dd934bec66ab4e11a09fdf998
[ "MIT" ]
permissive
gagebenne/pydexcom
96bcd5bea346c785823d1d6f6af2ef0ae9016b62
b6982950757ee3fd85715bd4c67017637a646560
refs/heads/main
2023-08-11T06:57:26.691374
2023-08-09T01:05:30
2023-08-09T01:05:30
239,246,796
107
33
MIT
2023-09-08T16:05:51
2020-02-09T04:31:44
Python
UTF-8
Python
false
false
11,083
py
__init__.py
""" .. include:: ../README.md """ import logging import re from datetime import datetime from typing import Any, Dict, List, Optional import requests from .const import ( DEFAULT_UUID, DEXCOM_APPLICATION_ID, DEXCOM_AUTHENTICATE_ENDPOINT, DEXCOM_BASE_URL, DEXCOM_BASE_URL_OUS, DEXCOM_GLUCOSE_REA...
23df0fd9d243bced81ba69076bfa9bdcd6229bbb
d1f15554df2d5c0f74ddbcba6e870359841f682b
/wagtail/tests/test_audit_log.py
4faba09f31486f6933c79095a192495a63f043d7
[ "BSD-3-Clause", "LicenseRef-scancode-proprietary-license" ]
permissive
wagtail/wagtail
bd405f89b86e0c625fef0685fd6bfba41cf5cbfc
06a7bc6124bf62675c09fbe0a4ed9bbac183e025
refs/heads/main
2023-09-04T06:22:51.601208
2023-09-01T15:22:00
2023-09-01T15:22:00
16,479,108
12,974
3,580
BSD-3-Clause
2023-09-14T10:45:04
2014-02-03T12:41:59
Python
UTF-8
Python
false
false
22,789
py
test_audit_log.py
import datetime import json from django.conf import settings from django.contrib.auth import get_user_model from django.core.exceptions import ValidationError from django.core.serializers.json import DjangoJSONEncoder from django.test import TestCase from django.utils import timezone from freezegun import freeze_time ...
a67d83b291954bb50fd75df5ff5f2e04cd723e25
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/rainbird/config_flow.py
a784e4623d6e2694b52036e9378eb8213c183e91
[ "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
5,079
py
config_flow.py
"""Config flow for Rain Bird.""" from __future__ import annotations import asyncio import logging from typing import Any from pyrainbird.async_client import ( AsyncRainbirdClient, AsyncRainbirdController, RainbirdApiException, ) import voluptuous as vol from homeassistant import config_entries from home...
b8498d0c8c4a35aba63c147aba7c7b9aa707da9a
6436d1e6c23f9f43a8025889dc4414a3ad66acf2
/Assets/Python/BUG/FontUtil.py
f2bfe300010b8ae365eded61aec8d51f33a9f6b9
[ "MIT" ]
permissive
dguenms/Dawn-of-Civilization
b710195c4f46fe11d9229182c3b1e07b77f42637
a305e7846d085d6edf1e9c472e8dfceee1c07dd4
refs/heads/develop
2023-09-04T04:57:00.086384
2023-09-01T15:24:28
2023-09-01T15:24:28
45,362,597
116
121
MIT
2023-02-08T00:18:53
2015-11-01T23:52:28
C++
UTF-8
Python
false
false
6,297
py
FontUtil.py
## FontUtil ## ## Utilities for dealing with FontSymbols, "XXX_CHAR" keys, and "[ICON_XXX]" tags in XML messages. ## "init.xml" adds most of the built-in and BUG-related symbol keys by using this module's functions. ## You can add your own using the <symbol> XML entity. ## ## Getting Symbols ## ## getSymbol(s...
f4103c34a92e2faf453a58eb651b8fb1078a18e0
517c4d617819aa2090094e92f1817e593354409d
/spectral/tests/iterators.py
1da443e2dc6c150997cb405f3582ebfbbf27aa69
[ "MIT" ]
permissive
spectralpython/spectral
2080a7f5d304017827dded890c7617f57335f61b
0659ee71614455d99a80ffd4f5f5edd8d032608c
refs/heads/master
2023-09-04T07:34:08.699690
2022-11-13T16:54:18
2022-11-13T16:54:18
16,567,502
527
144
MIT
2023-09-07T11:33:02
2014-02-06T03:36:54
Python
UTF-8
Python
false
false
3,748
py
iterators.py
''' Runs unit tests for iterators. To run the unit tests, type the following from the system command line: # python -m spectral.tests.iterators ''' from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np from numpy.testing import assert_allclose import spectral as ...
8c5750e7d7134ba99d912d9aa99775d0c1c90647
1fb7d21fdb9d0ee6f2a53e626f862d54dcccdbce
/update.py
e55c8d871f301e9b87c52a46cfac8d28e6d556a0
[ "MIT" ]
permissive
xfgryujk/blivechat
2b1db9de1047344e45051d680461d8ff61bdd99e
fe141bc8fda73e2a683c43181bc4043f9739bb1b
refs/heads/dev
2023-09-04T10:21:50.371035
2023-09-03T14:53:15
2023-09-03T14:53:15
187,993,487
1,695
196
MIT
2023-09-11T11:07:26
2019-05-22T08:13:21
JavaScript
UTF-8
Python
false
false
916
py
update.py
# -*- coding: utf-8 -*- import asyncio import aiohttp import utils.request VERSION = 'v1.7.0' def check_update(): asyncio.get_event_loop().create_task(_do_check_update()) async def _do_check_update(): try: async with utils.request.http_session.get( 'https://api.github.com/repos/xfgryu...
c3cf85b87dce07638eca1ce82ac75c1529a0ddc2
c6e6c564cf03427de02e78f436bdf7483e13402f
/tests/test_visitors/test_tokenize/test_primitives/test_string_tokens/test_unicode_prefix.py
657bd2cd3e3d86addd9a82b213a5bdc4ea14fa7b
[ "MIT" ]
permissive
wemake-services/wemake-python-styleguide
5a60ff468bf7877008c8ed34467da8bdbc2398f2
96e482514a60c12e99ee235337e678c9a4e484e3
refs/heads/master
2023-08-31T14:42:36.827760
2023-08-29T05:54:18
2023-08-29T05:54:18
124,593,057
2,427
572
MIT
2023-09-13T07:15:00
2018-03-09T21:04:25
Python
UTF-8
Python
false
false
1,891
py
test_unicode_prefix.py
import pytest from wemake_python_styleguide.violations.consistency import ( UnicodeStringViolation, UppercaseStringModifierViolation, ) from wemake_python_styleguide.visitors.tokenize.primitives import ( WrongStringTokenVisitor, ) @pytest.mark.parametrize('primitive', [ 'u"text"', "u'unicode'", ...
75b83d93261df843f80084e6e03290227b92584f
eedebf357f678c1418c50c236b4bad1ef254c5be
/test/wdt_slow_receiver_test.py
0308df4c9f47a1f9a35dc6d5da327cd7f8cf1909
[ "BSD-3-Clause" ]
permissive
facebook/wdt
c915a71e42ea0d945015eff0140731856ab2d15d
3b52ef573129fb799319630bd438717761111f57
refs/heads/main
2023-09-05T07:25:03.544481
2023-07-11T18:42:54
2023-07-11T18:42:54
22,231,878
3,038
508
NOASSERTION
2023-04-16T13:37:33
2014-07-24T21:23:34
C++
UTF-8
Python
false
false
590
py
wdt_slow_receiver_test.py
#!/usr/bin/env python3 # In this test, the receiver is extremely slow. Sender should detect that and # wait for the receiver to finish. Read timeout for sender is small to trigger # tcp unacked bytes checking code. from common_utils import * # 1 time setup create_test_directory("/tmp") generate_random_files(140 * 10...
1d8fe7325cfad236a1576281ab8968af7ae4e987
c1b8b6080f29c8037100080298b897618a826475
/gammapy/astro/source/tests/test_pwn.py
d371bc38bb54b8e44b3e6d185ea52c829aae84e7
[ "BSD-3-Clause" ]
permissive
gammapy/gammapy
a5d7acbdde848e92e124fefbce9716faa296f572
60f03adb8fc7851b9f3ca039512c03a669e3fe10
refs/heads/main
2023-08-16T21:19:06.624561
2023-08-04T12:13:08
2023-08-04T12:13:08
10,073,640
204
184
BSD-3-Clause
2023-09-14T15:26:05
2013-05-15T07:50:40
Python
UTF-8
Python
false
false
675
py
test_pwn.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst import numpy as np from numpy.testing import assert_allclose from astropy.units import Quantity from gammapy.astro.source import PWN t = Quantity([0, 1, 10, 100, 1000, 10000, 100000], "yr") pwn = PWN() def test_PWN_radius(): """Test SNR luminosity""...
8086dac2dba479eaca377a7e256fb4dc8c3e17e0
154d2907648416fcecefed51deac0f5d021edabb
/tests/stream/test_playback.py
90cdc6b699c7105726707372d3fef905fe3d8982
[ "Apache-2.0" ]
permissive
mopidy/mopidy
dbeb376d9c8f85fc0008195a963877b5e0192e18
3e8c978d6ffe22fb581a0fec7a47c489ae9bafd4
refs/heads/develop
2023-08-30T02:09:54.224844
2023-08-21T16:29:02
2023-08-21T16:29:02
447,036
7,271
783
Apache-2.0
2023-08-21T16:29:03
2009-12-23T14:25:36
Python
UTF-8
Python
false
false
8,174
py
test_playback.py
import logging from pathlib import Path from unittest import mock import pytest import requests.exceptions import responses from mopidy import exceptions from mopidy.audio import scan from mopidy.stream import actor TIMEOUT = 1000 PLAYLIST_URI = "http://example.com/listen.m3u" STREAM_URI = "http://example.com/stream...
217b13daba87c011a98a0ae09ff5440d3077d02a
47c2ac07c2258d2227e5172df07fe3c8a058479f
/test/test_notebook_document.py
e8e7ac75fa4c4a22d5bd269d9cb741bb4379934f
[ "Python-2.0", "MIT" ]
permissive
python-lsp/python-lsp-server
883ad525458d0405a561febfccc6923f7c945b74
3f08d8cb96e20b79c042bc6b2a3ad8bc8f078c3a
refs/heads/develop
2023-08-31T20:39:54.399353
2023-08-22T14:26:00
2023-08-22T14:26:00
341,006,790
1,328
171
MIT
2023-09-10T17:22:18
2021-02-21T21:21:42
Python
UTF-8
Python
false
false
22,102
py
test_notebook_document.py
# Copyright 2021- Python Language Server Contributors. import os import time from unittest.mock import patch, call from test.fixtures import CALL_TIMEOUT_IN_SECONDS import pytest from pylsp import IS_WIN from pylsp.lsp import NotebookCellKind def wait_for_condition(condition, timeout=CALL_TIMEOUT_IN_SECONDS): ...
d3a45e8686982d0ec275cd1f241ec5cedb67a43b
e35dfcd6dbc5153a465f07b51980a8d38c8fb729
/newm/gestures/provider/__init__.py
1c5a813d5db163d87e7916368575e82efb28c056
[ "MIT" ]
permissive
jbuchermn/newm
3f51e05cc86d43474d311dda205b6a1c3b210a8f
d120fcc390eba70593aecfafbafefe8647fd5c92
refs/heads/master
2023-06-09T20:39:15.450449
2023-06-03T10:58:17
2023-06-03T10:58:17
336,638,297
952
49
MIT
2023-04-22T01:49:59
2021-02-06T21:16:57
Python
UTF-8
Python
false
false
132
py
__init__.py
from .provider import GestureProvider from .c_gestures import CGestureProvider from .pyevdev_provider import PyEvdevGestureProvider
39760c778c241daa3016ace7525df499d7b4e81e
5d180bd059521006615d10fa0d1ce097ba50217e
/end2you/models/model_provider.py
ee548cfe4e0ec079837f1a4fe9e47ff3d41f0f2c
[ "BSD-3-Clause" ]
permissive
end2you/end2you
618dce1c9cf739a280deff7ebfbae718a92997ac
29657c0b0f3952dd2e817bdfe8253f76800c2342
refs/heads/master
2022-09-16T11:44:41.916052
2022-07-06T22:15:40
2022-07-06T22:15:40
116,163,081
101
23
BSD-3-Clause
2022-08-24T11:58:20
2018-01-03T17:19:40
Python
UTF-8
Python
false
false
515
py
model_provider.py
import torch import torch.nn as nn from .audio import AudioRNNModel from .visual import VisualRNNModel from .multimodal import AudioVisualRNNModel def get_model(model:str = 'audio', *args, **kwargs): """ Factory method to provide a model of choice (`audio`, `visual`, `audiovisual`). Args: ...
23a364d4c3af35c1c384e5b32813a371e0dbb075
d46844ac1c4230579d6c87d800e07fb41bc99592
/pwncat/modules/linux/enumerate/creds/pam.py
f6cebbc0a80ca2359ea83f9a0fe8e97d06fc16d7
[ "MIT" ]
permissive
calebstewart/pwncat
14ade3e424fb70ce3e62b8b5c5053959515799e7
37f04d4e16ff47c7fd70e95162f9fccd327cca7e
refs/heads/master
2023-08-14T04:27:04.773361
2022-03-21T20:35:00
2022-03-21T20:35:00
261,925,766
2,177
267
MIT
2023-05-19T04:33:17
2020-05-07T02:02:40
Python
UTF-8
Python
false
false
2,172
py
pam.py
#!/usr/bin/env python3 from pwncat.facts import PotentialPassword from pwncat.platform.linux import Linux from pwncat.modules.enumerate import Schedule, EnumerateModule """ TODO: This module is specifically used to check if we have passwords set from previously running a paired PAM persistence backdoor. If the persis...
341f2769e029b244d3a27623926f1e618743de66
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/quickFixes/PyMakeFunctionFromMethodQuickFixTest/usageAssignment_after.py
51abce182ad827c9a134562840104e26a4cc3f66
[ "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
59
py
usageAssignment_after.py
def m(): print(1) class A: pass b = A() a = m()
e41b48d2b975ca66c1c0de7be8e287cc0fd28509
dd317f56cd0d93b66e174e93691dd09d4e191d30
/doc/examples/parametrized.py
dbf8fbbaf4ce19c271f2cb96599ec4d78dedfd23
[ "Apache-2.0" ]
permissive
RKrahl/pytest-dependency
32f87a10b86d21c7ec201153570e41144ca443d0
cab2f65ced816939a9041b9e67169073ef0ee412
refs/heads/develop
2023-04-27T13:06:40.853328
2022-02-17T17:06:21
2022-02-17T17:06:21
56,441,594
131
33
Apache-2.0
2022-03-25T10:00:08
2016-04-17T14:46:54
Python
UTF-8
Python
false
false
1,779
py
parametrized.py
import pytest @pytest.mark.parametrize("x,y", [ pytest.param(0, 0, marks=pytest.mark.dependency(name="a1")), pytest.param(0, 1, marks=[pytest.mark.dependency(name="a2"), pytest.mark.xfail]), pytest.param(1, 0, marks=pytest.mark.dependency(name="a3")), pytest.param(1, 1, ma...
7a2ab93146f91df457da3448fc440b2565e903d2
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/JoeSecurity/Integrations/JoeSecurity/JoeSecurity_test.py
82b5b9d56dc07ee782ec176386308ed8fff38568
[ "MIT" ]
permissive
demisto/content
6d4722d46f0ff0beea2748e9f7de585bf91a78b4
890def5a0e0ae8d6eaa538148249ddbc851dbb6b
refs/heads/master
2023-09-04T00:02:25.618032
2023-09-03T21:56:22
2023-09-03T21:56:22
60,525,392
1,023
1,921
MIT
2023-09-14T20:55:24
2016-06-06T12:17:02
Python
UTF-8
Python
false
false
1,172
py
JoeSecurity_test.py
def mock_http_post(suffix_url, data=None, files=None, parse_json=True): return {'data': {'webids': [files]}} def mock_info_request(web_id): return {'data': web_id} def mock_analysis_to_entry(title, info): return info def test_analyse_sample_file_request(mocker): """ Given: A file with ...
a984c8b2c6278b3140f5c8b10c8f58ecfa47ab76
5c3296ff65e5a07852ff9dad1cc5e07991d08270
/lingvo/model_registry_test.py
b76a6c445ce83da3680068983f9fdbe01d888394
[ "Apache-2.0" ]
permissive
tensorflow/lingvo
dee164ef6e69edb352f2e855660b9b5227ddcf6f
c00a74b260fcf6ba11199cc4a340c127d6616479
refs/heads/master
2023-09-01T22:08:55.758781
2023-08-30T00:50:34
2023-08-30T00:51:26
142,219,189
2,963
485
Apache-2.0
2023-09-07T00:52:48
2018-07-24T22:30:28
Python
UTF-8
Python
false
false
10,156
py
model_registry_test.py
# Copyright 2018 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...
e3eb4b0d6b4237236652eaf1afac7368632c274d
2883819589b815a96e992cf184a28a9cbafc19d5
/Versi Lama 20 - teknik looping/tekniklooping.py
080a28929be619219b9b1c53c32386b5fb239775
[]
no_license
kelasterbuka/Python3.x_Dasar_Programming
f944cbfdd990b50ffdb5c0abf68033d5256b5cad
0fd9299817ab5804d16d7981707d589b36a962e1
refs/heads/master
2023-01-08T21:13:39.395752
2022-11-02T07:46:40
2022-11-02T07:46:40
123,400,518
453
361
null
2023-02-02T11:48:48
2018-03-01T07:44:56
Python
UTF-8
Python
false
false
952
py
tekniklooping.py
# teknik looping nama_band = ['Payung Teduh', 'Fourtwnty', 'Dialog Dini Hari', 'Mr. Sonjaya', 'Parahyena', 'Syahrini'] kumpulan_lagu = ['Akad', 'Zona Nyaman', 'Rumahku', 'Sang Filsuf', 'Sindoro', 'Jodohku'] # enu...
6a09f45bf1fa088cfe074ffd7f54b14ef8e4e0ea
160f08e768d7271f9522ad2597ac4ee79c04477a
/src/c3nav/api/apps.py
ddb7ce775afb4d92ab9c1d6b0e13ddac63cd3052
[ "Apache-2.0" ]
permissive
c3nav/c3nav
6254724dfc8589ee03c6028577befd7c65b05857
1a4ef5caa06ddacc8d9370b5adcee248fd4f55f7
refs/heads/main
2023-08-04T08:36:18.431458
2023-07-24T09:57:18
2023-07-24T09:57:18
56,852,994
140
47
Apache-2.0
2023-07-05T22:55:27
2016-04-22T12:13:51
Python
UTF-8
Python
false
false
341
py
apps.py
from django.apps import AppConfig from django.conf import settings from django.db.models.signals import post_save class APIConfig(AppConfig): name = 'c3nav.api' def ready(self): from c3nav.api.signals import remove_tokens_on_user_save post_save.connect(remove_tokens_on_user_save, sender=setti...
c933e830e91b5281cf582b5ed9f0cf44fa4c419e
47776565cddf44cbca4a851943ef942867da57e1
/ITMO_FS/wrappers/randomized/__init__.py
c451a086478f30d49a0645bc554a2f378de22e61
[ "BSD-3-Clause" ]
permissive
ctlab/ITMO_FS
3466264895d79d51c98d2dfa843f126c69a51172
a2e61e2fabb9dfb34d90a1130fc7f5f162a2c921
refs/heads/master
2023-03-09T23:34:23.185421
2023-02-22T20:02:16
2023-02-22T20:02:16
243,206,210
120
33
BSD-3-Clause
2023-02-22T20:02:18
2020-02-26T08:13:44
Python
UTF-8
Python
false
false
125
py
__init__.py
from .HillClimbing import HillClimbingWrapper from .TPhMGWO import TPhMGWO from .SimulatedAnnealing import SimulatedAnnealing
fb5b624a0354f6a74d6842f4b53f53d1f63ef09c
50177ddaa15d7a6c04d5669130f43fec383bf7f4
/drf_extra_fields/relations.py
e40632d56a48a4e9e7395b57b86fb22d81004a4f
[ "Apache-2.0" ]
permissive
Hipo/drf-extra-fields
a1b561ec3c0f7ae9ab5e9c52ef016ac5c163cc5c
8c18a7542c8a38fe3dccd1874a74a38410aa3a7f
refs/heads/master
2023-08-21T18:05:30.125318
2023-08-08T18:13:21
2023-08-08T18:13:21
21,973,580
635
123
Apache-2.0
2023-08-08T18:13:22
2014-07-18T08:35:45
Python
UTF-8
Python
false
false
3,814
py
relations.py
from collections import OrderedDict from django.utils.module_loading import import_string from rest_framework.relations import ( PrimaryKeyRelatedField, SlugRelatedField, MANY_RELATION_KWARGS, ManyRelatedField as DRFManyRelatedField ) class ReadSourceMixin: """ This mixin override get_attribute metho...
f2301eecf88234ef043eabd59a0e69dd2af8cf19
24e6c105fb91da3454e0cc8833d3a9ba30f45896
/EduKTM/utils/torch/functional.py
1ae064897266a0161cfd1b4bb97156589acc781b
[ "Apache-2.0" ]
permissive
bigdata-ustc/EduKTM
df2b89f924df6e056b735dcc70a349c38b2ba204
c9912f0d29830b75b192bb63cdc5a4400f476300
refs/heads/main
2023-04-13T23:29:30.720104
2023-03-21T13:05:18
2023-03-21T13:05:18
348,569,820
130
51
Apache-2.0
2023-03-21T13:05:20
2021-03-17T03:37:43
Python
UTF-8
Python
false
false
1,337
py
functional.py
# coding: utf-8 # 2021/5/24 @ tongshiwei __all__ = ["pick", "tensor2list", "length2mask", "get_sequence_mask", "sequence_mask"] import torch from torch import Tensor def pick(tensor, index, axis=-1): return torch.gather(tensor, axis, index.unsqueeze(axis)).squeeze(axis) def tensor2list(tensor: Tensor): ret...
6b7e80f6b0d0209a735c95f484259f94352cccec
7ea5cb272f3acafce0f91e6fd29213cedccd7ef7
/data_pre/reg_preprocess_example/oai_longitude_reg.py
4b974cbb7461f064f987afa5afe8d13ab4837147
[ "Apache-2.0" ]
permissive
uncbiag/easyreg
e4434a5d7905d24e47cae9dfc9530a63afc86521
55339813d47c86a79268831f5b353924a2326fb3
refs/heads/master
2023-01-21T12:09:42.809367
2023-01-08T17:04:26
2023-01-08T17:04:26
109,648,136
139
11
NOASSERTION
2023-01-08T17:04:27
2017-11-06T04:35:37
Python
UTF-8
Python
false
false
25,790
py
oai_longitude_reg.py
import sys import os sys.path.insert(0,os.path.abspath('.')) sys.path.insert(0,os.path.abspath('..')) sys.path.insert(0,os.path.abspath('../easyreg')) import numpy as np from functools import reduce from easyreg.reg_data_utils import make_dir import random import SimpleITK as sitk from multiprocessing import Pool ...
319ca39db6283f9d7b254a5ac72916ca46f308f3
96dd2e2f3db81e9c5f01cc11e1c53c54f1865b4e
/benchmarks/bench_structs.py
33457339a04ef1d458c51766db1fec76c20f2d36
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
jcrist/msgspec
10d5658a618bdd823ecbece7786456707a81ccd9
e76221f770e9cdcf40e08759a5f88a328e3db8d6
refs/heads/main
2023-08-17T10:27:54.573787
2023-08-16T04:42:43
2023-08-16T04:47:32
332,952,543
1,191
44
BSD-3-Clause
2023-09-06T22:26:46
2021-01-26T02:53:57
Python
UTF-8
Python
false
false
5,249
py
bench_structs.py
"""This file benchmarks dataclass-like libraries. It measures the following operations: - Time to import a new class definition - Time to create an instance of that class - Time to compare an instance of that class with another instance. """ from time import perf_counter order_template = """ def __{method}__(sel...
02bc798de784aae6af42f14186d2705b804ef150
f9f074c44b67a11d4630b5e1cc15e016e8d73cc8
/Research/kubeflow-on-azure-stack-lab/04-KFServing/tensorflow_web_infer.py
0f2eb6bd1f84c1adb6a219a8c2f8144053008e9e
[ "MIT" ]
permissive
Azure-Samples/azure-intelligent-edge-patterns
361694680c7e48d3761c5416175788355b684dcd
1d2f42cbf9f21157c1e1abf044b26160dfed5b16
refs/heads/master
2023-05-26T13:15:47.085088
2023-02-28T17:25:53
2023-02-28T17:25:53
186,706,933
193
164
MIT
2023-02-28T17:25:55
2019-05-14T22:02:41
JavaScript
UTF-8
Python
false
false
2,597
py
tensorflow_web_infer.py
from PIL import Image import numpy as np import tensorflow as tf import requests import json sz=(224,224) myimagefilename = 'grace_hopper.jpg' # You need to put the host and port according to what you deployed in your system # eg. http://51.141.178.47:5001/score scoring_uri = 'http://<INGRESS_HOST>:<INGRES...
4afd434d9d01171b97cbc8d93ce069f348b582fa
ffb0b623455f22af81a03eb52889bd1bfed50566
/src/bandersnatch/configuration.py
30b050d7ced8e5a37d447a060b00bdf23a16495c
[ "AFL-3.0" ]
permissive
pypa/bandersnatch
c5ba356caae55e4edb80005da625b04e7fb70500
bf19ea547086c1b9dd997d1dc00081109b5cd626
refs/heads/main
2023-09-03T03:27:19.538217
2023-08-28T23:55:04
2023-08-28T23:55:04
133,377,409
405
157
AFL-3.0
2023-09-13T10:46:33
2018-05-14T14:52:22
Python
UTF-8
Python
false
false
8,196
py
configuration.py
""" Module containing classes to access the bandersnatch configuration file """ import configparser import importlib.resources import logging from pathlib import Path from typing import Any, NamedTuple from .simple import SimpleDigest, SimpleFormat, get_digest_value, get_format_value logger = logging.getLogger("bande...
30735c2c2a33271e2a0ff60b3610b0a6bad2728e
57c0a57269dfc516c7f46468940efb62cb863af4
/langchain/chains/__init__.py
09563968e5f865bac6d07b898f829b49b086ef43
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
microsoft/MM-REACT
e67a843faadf4752f5e9d0e2dbf0c80068dbd288
b8f29af7f3c24cf3a4554bebfa2053064467fbdb
refs/heads/main
2023-08-31T03:01:42.246514
2023-05-12T20:43:11
2023-05-12T20:43:11
614,230,777
705
57
MIT
2023-08-30T00:04:13
2023-03-15T06:56:13
Python
UTF-8
Python
false
false
2,045
py
__init__.py
"""Chains are easily reusable components which can be linked together.""" from langchain.chains.api.base import APIChain from langchain.chains.chat_vector_db.base import ChatVectorDBChain from langchain.chains.combine_documents.base import AnalyzeDocumentChain from langchain.chains.constitutional_ai.base import Constit...
5356f438d382cc4bc37bf344d7d5f371bc2b5cb9
6416b746ee71d897789eab1e450000831674dbd0
/src/otx/recipes/stages/_base_/schedules/schedule.py
46bbc94ddce880f566eb294262c523019a6ad830
[ "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
57
py
schedule.py
# base schedule setting lr_config = dict(policy="fixed")
2c777a3f63b6d38d468416f94de929e85cf0e8a0
ecaba173879f92f24e3c951866fda23c0a4fc426
/tests/providers/ibmcloud/ibmcloud_virtual_machine_test.py
3c134a6f174d66322e84316dc5ae7d3129b7b5f3
[ "Classpath-exception-2.0", "BSD-3-Clause", "AGPL-3.0-only", "MIT", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
GoogleCloudPlatform/PerfKitBenchmarker
2f4917fd796db4eb90822c557d8fa08a497fbd48
d0699f32998898757b036704fba39e5471641f01
refs/heads/master
2023-09-02T08:14:54.110308
2023-09-01T20:28:01
2023-09-01T20:28:38
21,950,910
1,923
567
Apache-2.0
2023-09-13T22:37:42
2014-07-17T17:23:26
Python
UTF-8
Python
false
false
4,835
py
ibmcloud_virtual_machine_test.py
# Copyright 2020 PerfKitBenchmarker Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
047b60dcee8c22f3e0f4f81b4d923fd302bd3a76
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/tools/perf/generate_legacy_perf_dashboard_json_unittest.py
b92b23bcba8935e006802d6f68e4d4396c340b27
[ "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
3,666
py
generate_legacy_perf_dashboard_json_unittest.py
#!/usr/bin/env vpython3 # Copyright 2016 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import json import os import unittest import six import generate_legacy_perf_dashboard_json class LegacyResultsProcessorUnittest(unittest.TestCase): ...
266c7f9b7aa1ff1442edf5960caf134dcb00fb29
25daa9604b83ddc199764309c39da106a5313c22
/test/test_pipeline_arg_parsing.py
0987bdf102430e6932fb4863286b46cdfaddfbbe
[ "MIT" ]
permissive
ThoughtWorksInc/CD4ML-Scenarios
83d3f162a2ddbb7e02662d03f769feb8978b4de9
a9200df2f926f7e398dd820b99a11515c9a3eacb
refs/heads/master
2023-05-12T07:11:39.677610
2022-05-31T14:14:57
2022-05-31T14:14:57
246,649,538
127
327
MIT
2023-05-01T23:38:18
2020-03-11T18:26:59
Python
UTF-8
Python
false
false
1,406
py
test_pipeline_arg_parsing.py
from scripts import pipeline as pipeline_script def test_no_arguments_parse(): argument_parser = pipeline_script.make_argument_parser() parsed_arguments = argument_parser.parse_args([]) assert parsed_arguments.problem_name == "houses" assert parsed_arguments.ml_pipeline_params_name == "default" ass...
10b5210b77dbc727a6ac0efe3b9d3efc16281d81
069c2295076c482afadfe6351da5ae02be8e18e6
/tests/pagination/custom.py
ea04083576be529dc6f1a927349453c56fa2a7cc
[ "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "GPL-1.0-or-later", "Python-2.0.1", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-other-permissive", "Python-2.0" ]
permissive
django/django
5eb557f57053631cd4f566f451e43197309dbeeb
c74a6fad5475495756a5bdb18b2cab2b68d429bc
refs/heads/main
2023-09-01T03:43:44.033530
2023-08-31T08:27:32
2023-08-31T08:27:32
4,164,482
73,530
38,187
BSD-3-Clause
2023-09-14T20:03:48
2012-04-28T02:47:18
Python
UTF-8
Python
false
false
503
py
custom.py
from django.core.paginator import Page, Paginator class ValidAdjacentNumsPage(Page): def next_page_number(self): if not self.has_next(): return None return super().next_page_number() def previous_page_number(self): if not self.has_previous(): return None ...
1628fe23fc43f7bfb2362f548686f0d2d34ac06f
67f6ca6dd3f8fb1d3104f931546c50445846083c
/src/main/python/smart/smartplots_run.py
12c3f19e054071192e4774a6316f5b76497da422
[ "BSD-3-Clause-LBNL" ]
permissive
LBNL-UCB-STI/beam
7e63cf28854a0b78e5f123629f5ff84966d75deb
ca433c85c592285cf4ff6c28620b3538fe9cc9ba
refs/heads/develop
2023-09-01T03:51:59.353627
2023-08-31T15:04:26
2023-08-31T15:04:26
73,118,824
142
71
NOASSERTION
2023-09-11T14:53:58
2016-11-07T20:38:29
Jupyter Notebook
UTF-8
Python
false
false
2,468
py
smartplots_run.py
from smartplots_setup import pltModeSplitByTrips from smartplots_setup import pltEnergyPerCapita from smartplots_setup import pltLdvRhOccupancy from smartplots_setup import pltLdvPersonHourTraveled from smartplots_setup import pltModeSplitInPMT from smartplots_setup import pltModeSplitInVMT from smartplots_setup import...
99ad930f0ebc1df253ccfaa36d0bb124069503f2
9abd182d02355ddf0b79afd4a35f7127a4a66f7a
/scripts/pose/directpose/tvm_evaluation/pose_model.py
26abcf1a713a718bd3888ec09bf59910f36ffeb8
[ "Apache-2.0" ]
permissive
dmlc/gluon-cv
e1303086419a5733661d0fcb9095c09d4f2382ad
567775619f3b97d47e7c360748912a4fd883ff52
refs/heads/master
2023-07-19T12:02:36.824294
2023-01-19T00:37:33
2023-01-19T00:37:33
122,896,249
6,064
1,458
Apache-2.0
2023-01-19T00:37:35
2018-02-26T01:33:21
Python
UTF-8
Python
false
false
9,833
py
pose_model.py
import tvm from tvm.contrib import graph_runtime from typing import List import cv2 import numpy as np try: import torch except ImportError: torch = None class PoseEstimationInferenceModel(): def __init__( self, model_prefix, gpu_id, image_width=1280, ...
b8de260edce783c65227ce6adc6dfee80569574a
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/22_专题/日程安排-扫描线+差分/2015_每个线段的平均高度-差分+扫描线.py
e20d36ddf096f035774bce2ed754fdae95fff731
[]
no_license
981377660LMT/algorithm-study
f2ada3e6959338ae1bc21934a84f7314a8ecff82
7e79e26bb8f641868561b186e34c1127ed63c9e0
refs/heads/master
2023-09-01T18:26:16.525579
2023-09-01T12:21:58
2023-09-01T12:21:58
385,861,235
225
24
null
null
null
null
UTF-8
Python
false
false
1,822
py
2015_每个线段的平均高度-差分+扫描线.py
from typing import List from collections import defaultdict # 将重叠区间内的所有大楼高度求平均值,返回这些区域可进行分段的大楼跨度及其高度平均值数组 # 且遇到楼层平均高度相同的相邻区间时要合并 # 1943. 描述绘画结果-扫描.py # 1. 使用map记录每个分界处的 差分信息 # 2. 排序,遍历每个分界点,更新 pre/preSum/preCount class Solution: def averageHeightOfBuildings(self, buildings: List[List[int]]) -> List[Li...
f793bcc8dc3af0c6e0ad33e561d9799c949cb916
eaba398a0ca5414c10dd1890e662fdcd87e157b6
/jirafs/commands/assign.py
2ffa71e32abed48cc1e29af97cfb37e9b73b4137
[ "MIT" ]
permissive
coddingtonbear/jirafs
a78f47e59836d9a6024bc287ea2a1247fb297e62
778cba9812f99eeaf726a77c1bca5ae2650a35e9
refs/heads/development
2023-06-16T00:06:33.262635
2022-09-20T04:06:26
2022-09-20T04:06:26
21,588,191
125
17
MIT
2023-06-02T05:48:53
2014-07-07T21:54:20
Python
UTF-8
Python
false
false
676
py
assign.py
from jirafs.plugin import CommandPlugin class Command(CommandPlugin): """Assign the current task to a user""" MIN_VERSION = "2.0.0" MAX_VERSION = "3.0.0" def main(self, args, folder, **kwargs): username = args.username if not username: username = folder.get_config().get( ...
2640f7e95a63eeb9b9c4700954479b0cac0ba9fa
3ef70fe63acaa665e2b163f30f1abd0a592231c1
/stackoverflow/venv/lib/python3.6/site-packages/twisted/plugins/twisted_core.py
3fb52f0c7868bd57389740e64f27867d2616e241
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
wistbean/learn_python3_spider
14914b63691ac032955ba1adc29ad64976d80e15
40861791ec4ed3bbd14b07875af25cc740f76920
refs/heads/master
2023-08-16T05:42:27.208302
2023-03-30T17:03:58
2023-03-30T17:03:58
179,152,420
14,403
3,556
MIT
2022-05-20T14:08:34
2019-04-02T20:19:54
Python
UTF-8
Python
false
false
589
py
twisted_core.py
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. from __future__ import absolute_import, division from twisted.internet.endpoints import ( _SystemdParser, _TCP6ServerParser, _StandardIOParser, _TLSClientEndpointParser) from twisted.protocols.haproxy._parser import ( HAProxyServerPa...
ebad710cf091b727469b963ca7dc704915032db5
6146e33102797407ede06ce2daa56c28fdfa2812
/python/GafferImageTest/OpenColorIOConfigPlugTest.py
0c85e5fe5d5edaa91d8710aa37143047429bc496
[ "BSD-3-Clause" ]
permissive
GafferHQ/gaffer
e1eb78ba8682bfbb7b17586d6e7b47988c3b7d64
59cab96598c59b90bee6d3fc1806492a5c03b4f1
refs/heads/main
2023-09-01T17:36:45.227956
2023-08-30T09:10:56
2023-08-30T09:10:56
9,043,124
707
144
BSD-3-Clause
2023-09-14T09:05:37
2013-03-27T00:04:53
Python
UTF-8
Python
false
false
6,254
py
OpenColorIOConfigPlugTest.py
########################################################################## # # Copyright (c) 2023, Cinesite VFX Ltd. 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 ...
a1401c11688379032d81da9036e698402a75beea
c675ff5fcd3b13fa39352bb8cac11d75262659a8
/reactivex/operators/_switchlatest.py
2d54a8a3123c65e2d74c7cb1853768cc95d717df
[ "MIT" ]
permissive
ReactiveX/RxPY
469eb714996c205989e99899a6f1ab1ae2f42dd0
af1663d35810fdcd4c25a3ed2e8f0d71b55c341d
refs/heads/master
2023-08-14T19:27:40.086304
2023-01-08T10:02:08
2023-03-04T15:33:19
8,946,089
4,764
467
MIT
2023-09-05T02:53:16
2013-03-22T06:16:54
Python
UTF-8
Python
false
false
2,906
py
_switchlatest.py
from asyncio import Future from typing import Any, Callable, Optional, TypeVar, Union from reactivex import Observable, abc, from_future from reactivex.disposable import ( CompositeDisposable, SerialDisposable, SingleAssignmentDisposable, ) _T = TypeVar("_T") def switch_latest_() -> Callable[ [Obser...
09c6b1708a63b9d94d3a4516d4f71dfa9e30cb8a
67cc5db4593e2cdd109e589e13fb07074bcff5d9
/tests/npbench/misc/azimint_naive_test.py
522b545f4caed687776da703cb115a879e49cd95
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
spcl/dace
39849b1488e8f59f880fc0e2572687556c51847d
c5ca99ad37e7ceef6da71026c3c8bb579f64117f
refs/heads/master
2023-08-31T10:45:09.480018
2023-08-30T06:05:10
2023-08-30T06:05:10
172,703,996
402
114
BSD-3-Clause
2023-09-14T15:18:29
2019-02-26T12:05:50
Python
UTF-8
Python
false
false
3,744
py
azimint_naive_test.py
# Copyright 2019-2022 ETH Zurich and the DaCe authors. All rights reserved. # Original application code: NPBench - https://github.com/spcl/npbench import dace.dtypes import numpy as np import dace import pytest import argparse from dace.transformation.auto.auto_optimize import auto_optimize from dace.fpga_testing impor...