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
38c75cfc45d548f77ad8feb7d242ef26154cd05b
3982e6daf88e453c726f6b39a081fc37ce15a08a
/discovery-provider/src/models/users/user_bank.py
84768fd85526d74e506bab7c1d31eebf203324ad
[ "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,007
py
user_bank.py
from sqlalchemy import Column, DateTime, Integer, String from src.models.base import Base from src.models.model_utils import RepresentableMixin class UserBankTx(Base, RepresentableMixin): __tablename__ = "user_bank_txs" signature = Column(String, primary_key=True) slot = Column(Integer, nullable=False, ...
475de514323b7862dcc88043b6017fcf252971b1
5dfa8f66e7d200117fec49a0b273bf97f1babd3d
/pyradio/config_window.py
7d8b040132d31d0089f25f42626047844957725d
[ "MIT" ]
permissive
coderholic/pyradio
08db8fb7fd105d0f137006d601fd8355e2101bbd
67e81c5dade03b20d65ebcca0c019f4d1493d7dc
refs/heads/master
2023-08-18T08:02:07.589209
2023-07-15T11:37:07
2023-07-15T11:37:07
55,984
828
135
MIT
2023-05-18T15:52:00
2008-09-24T11:51:13
Python
UTF-8
Python
false
false
116,415
py
config_window.py
# -*- coding: utf-8 -*- import curses from copy import deepcopy from textwrap import wrap import glob import csv from os import path, sep, remove from sys import platform, version_info from .common import * from .window_stack import Window_Stack_Constants from .cjkwrap import cjklen from .config import SUPPORTED_PLAYE...
5549a7944fa9f980ab373ea01979fb322a8f5aec
f6cc11462f27b92ad6018100c638662e98d84bc9
/specutils/spectra/spectrum_mixin.py
e067df95713666cf2c479689c07391536d1964a4
[ "BSD-3-Clause" ]
permissive
astropy/specutils
7d422b9e8792202b08c95ada4f88a64509e21cb7
85d07a98bf9ed6478d7ba43270e44e7ea990c43f
refs/heads/main
2023-09-01T17:42:16.027995
2023-08-23T16:46:57
2023-08-23T16:46:57
2,577,269
145
113
null
2023-09-12T21:59:52
2011-10-14T16:11:38
Python
UTF-8
Python
false
false
13,278
py
spectrum_mixin.py
from copy import deepcopy import numpy as np import astropy.units.equivalencies as eq from astropy import units as u from astropy.utils.decorators import deprecated from specutils.utils.wcs_utils import gwcs_from_array DOPPLER_CONVENTIONS = {} DOPPLER_CONVENTIONS['radio'] = u.doppler_radio DOPPLER_CONVENTIONS['optic...
edc5aaa0cd201681af0c0e4d0dbc0fc993c8067d
2337351b228818e41be3002bd38f68f77c2aa074
/core/stencil.py
9fff81644dfee1c8f4da92a5cf217c84caaa3f0a
[ "BSD-3-Clause" ]
permissive
nocproject/noc
57d40c680a1499374463e472434f9595ed6d1374
6e6d71574e9b9d822bec572cc629a0ea73604a59
refs/heads/master
2023-08-31T01:11:33.544573
2023-08-30T17:31:11
2023-08-30T17:31:11
107,815,776
105
33
BSD-3-Clause
2023-07-31T07:57:45
2017-10-21T21:04:33
Python
UTF-8
Python
false
false
3,603
py
stencil.py
# --------------------------------------------------------------------- # Stencil Registry # --------------------------------------------------------------------- # Copyright (C) 2007-2018 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- # Python modules...
f7a98f08dfe4ae017206bf9a244a5627e19ceb3a
2d05050d0ada29f7680b4df20c10bb85b0530e45
/python/tvm/autotvm/measure/measure.py
c9b82cd81c54012bc40c854d812f7fa1745a51a6
[ "Apache-2.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "Zlib", "LLVM-exception", "BSD-2-Clause" ]
permissive
apache/tvm
87cb617f9a131fa44e1693303aaddf70e7a4c403
d75083cd97ede706338ab413dbc964009456d01b
refs/heads/main
2023-09-04T11:24:26.263032
2023-09-04T07:26:00
2023-09-04T07:26:00
70,746,484
4,575
1,903
Apache-2.0
2023-09-14T19:06:33
2016-10-12T22:20:28
Python
UTF-8
Python
false
false
9,650
py
measure.py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
328767c339b12ea910bf952b9885dff3bcbb763d
698c8b4409db131dfb2a42468db6e5f532ff3eec
/cluster-trace-gpu-v2020/simulator/node.py
30b5c515fc04794b7e710c76f6aa8ed7ed185ba2
[ "CC-BY-4.0" ]
permissive
alibaba/clusterdata
125373a990be95ddc6713ff463290f164bcaad38
7358bbaf40778d4bd0464a64a430812088b7b74e
refs/heads/master
2023-09-01T00:12:43.572121
2023-08-24T03:15:53
2023-08-24T03:15:53
102,428,537
1,347
421
null
2023-09-09T02:37:18
2017-09-05T03:16:34
Jupyter Notebook
UTF-8
Python
false
false
7,997
py
node.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from utils import print_fn ''' Class Node ''' class Node(object): def __init__(self, id, num_gpus=8, num_cpus=96, mem=720, job_runn_list=None, gpu_type=0): self.id = id se...
8a491a33d08622cc80325fa1dbe876071fd44653
c85ec637dd7202eccbab3623f0e12608f2c58c73
/redditdownloader/sources/pushshift_subreddit.py
7b50ebb95d74afe33f92f57a99278c39b9475885
[]
no_license
shadowmoose/RedditDownloader
2d7b8d68d3be7cd63614c5019e2935e25d8548f8
ebcb791f78e5d761efcca28b5ebd5b7e1b61df85
refs/heads/master
2023-07-13T09:55:21.700858
2023-07-02T05:02:18
2023-07-02T05:02:18
93,103,288
1,134
120
null
2023-05-04T05:57:26
2017-06-01T22:03:41
Python
UTF-8
Python
false
false
2,428
py
pushshift_subreddit.py
from sources import source from psaw import PushshiftAPI from static.settings import Setting from processing.wrappers.redditelement import RedditElement import time class PushShiftSubmissionSource(source.Source): def __init__(self): super().__init__(source_type='pushshift-submission-source', description="PushShift...
063579fec7b6ab5c9443ca24827b972d09591805
fc89bb82dbb31cd876247e3decb9315cdf491d3e
/demos/moderator_bot/tests/conftest.py
1b491f3a116021e85a9558e2bdc2cb7be94fdd9c
[ "Apache-2.0" ]
permissive
aio-libs/aiohttp-demos
3c341f532fa41d17a804764c8c150a300cb4fd52
ea628d0307834645eb6eda032812fbfdcab9e1cc
refs/heads/master
2023-08-31T06:39:23.152144
2023-08-30T10:08:15
2023-08-30T10:08:15
108,527,536
728
313
NOASSERTION
2023-09-14T09:44:34
2017-10-27T09:35:41
Makefile
UTF-8
Python
false
false
388
py
conftest.py
import pytest from moderator_bot.server import init_application from moderator_bot.settings import PROJECT_ROOT from moderator_bot.utils import load_config @pytest.fixture def config(): return load_config(PROJECT_ROOT / "configs" / "base.yml") @pytest.fixture async def client(aiohttp_client, config): app = ...
3de0170fb027eb3ded772eb5584d2ae8573630ce
1e92cc7daabe240b374d73da462878e80814171b
/manila/share/drivers/quobyte/quobyte.py
e2c2ec071a9b3327d61be3df80d583ec3bdecb3f
[ "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
17,792
py
quobyte.py
# Copyright (c) 2015 Quobyte Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
07926b3c24fa79f7a8b648f9e43f2c7febfaf810
dcbef06d5a00f07756339b9e62c684dec2fee425
/tests/basics/GeneratorExpressionsTest.py
0c2c661acbd31b05e312c50b4c54d593cf6e9d81
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
Nuitka/Nuitka
f9543d8d95bfa0b81d4e60af0dfad99fb72893a4
d87faf2f7e1d6ed9bfe4cf8c1d648f34307e33f2
refs/heads/develop
2023-08-28T14:00:32.861328
2023-08-27T09:16:45
2023-08-27T09:16:45
9,626,741
8,573
599
Apache-2.0
2023-09-13T02:49:41
2013-04-23T15:40:33
Python
UTF-8
Python
false
false
5,809
py
GeneratorExpressionsTest.py
# Copyright 2023, Kay Hayen, mailto:kay.hayen@gmail.com # # Python tests originally created or extracted from other peoples work. The # parts were too small to be protected. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the ...
7f6c387d2a3e0a394b47427ad6524f5479806a94
184b40438287d124117dcd48cf9abdab71e116c7
/src/cosmic_ray/ast/ast_query.py
348b443baaad50122d60cc6b11a38ca8c23051fe
[ "MIT" ]
permissive
sixty-north/cosmic-ray
45bea97513eb75d00c514e0df2c5c3d156268f0f
aa63d36ef84659d941c22da9d4d39ae0408d488e
refs/heads/master
2023-08-26T07:57:57.939516
2023-03-14T13:49:49
2023-03-14T13:49:49
34,157,278
569
77
MIT
2023-01-02T07:58:54
2015-04-18T07:44:21
Python
UTF-8
Python
false
false
3,118
py
ast_query.py
"Tools for querying ASTs." class ASTQuery: """ Allowing to navigate into any object and test attribute of any object: Examples: >>> ASTQuery(node).parent.match(Node, type='node').ok Test if node.parent isinstance of Node and node.parent.type == 'node' At each step (each '.' (dot)) you receiv...
bc5ec1f75e278ca2b40ce23601c4e724d485cb71
6bf3efa384abc11398ab9c6cc902c6415bf7e478
/pyannotate_tools/fixes/tests/test_annotate_py3.py
e2c3f026496b8eb3a3568ad8d3bce8a907c400e2
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
dropbox/pyannotate
d9ab4919672e69853c6aa47f6b8d4ba85696de98
a7a46f394f0ba91a1b5fbf657e2393af542969ae
refs/heads/master
2022-08-14T03:55:19.082430
2021-10-12T20:53:49
2021-10-12T20:53:49
110,597,280
1,482
73
Apache-2.0
2023-02-01T22:35:54
2017-11-13T20:18:08
Python
UTF-8
Python
false
false
15,812
py
test_annotate_py3.py
# flake8: noqa # Our flake extension misfires on type comments in strings below. from lib2to3.tests.test_fixers import FixerTestCase import unittest # deadcode: fix_annotate is used as part of the fixer_pkg for this test from pyannotate_tools.fixes import fix_annotate class TestFixAnnotate3(FixerTestCase): def...
99b2d1a6087315c706ddd8de9691b330a84820d7
c4b8e1e09dedbccd37ca008ecaaca4438610bbaf
/z3/geometric_puzzle.py
440de76b9f532d8381c265e4893a6aa5dee5fdb8
[ "MIT" ]
permissive
hakank/hakank
4806598b98cb36dd51b24b0ab688f52dadfe9626
c337aaf8187f15dcdc4d5b09cd2ed0dbdb2e72c2
refs/heads/master
2023-08-15T00:21:52.750270
2023-07-27T16:21:40
2023-07-27T16:21:40
11,933,517
336
97
MIT
2023-07-27T11:19:42
2013-08-06T20:12:10
JavaScript
UTF-8
Python
false
false
2,668
py
geometric_puzzle.py
# # Geometric puzzle in z3. # # From https://stackoverflow.com/questions/63107267/solving-a-simple-geometric-puzzle-in-clpq-r-prolog # """ # Consider the following square: # # -------------------------- # | A | | # | | | # -------------------- | # | ...
0781f50ead243fbe64a0c24be8803783ac08a760
ea57d267ab31480d8d731b2c095e9da9ad989133
/tests/test_aea/test_cli/test_get_wealth.py
ed24716ae093c70445464c9f81a6abd9f67ae44d
[ "Apache-2.0" ]
permissive
fetchai/agents-aea
6d034f1db6f3beacf31dac2f5a1baaa60c8edb7d
bec49adaeba661d8d0f03ac9935dc89f39d95a0d
refs/heads/main
2023-08-08T23:19:06.276643
2023-02-04T10:46:39
2023-02-04T10:46:39
203,558,879
192
58
Apache-2.0
2023-07-19T04:45:26
2019-08-21T10:12:47
Python
UTF-8
Python
false
false
2,952
py
test_get_wealth.py
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2023 Fetch.AI Limited # # 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 ...
e650181393a51f301403ff2080e6ef0ac49fd798
3e63608e1cad90bc845c4580723e57ae7ca3f61d
/tests/unit/driftdetect/test_cli.py
8feb4b067175b0ec8bdae357e79ac6876f101e54
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
lyft/cartography
06dcbf13907cbb9a31b75cd8b21f5721f7cc1b01
830b8944879a01f52b21ee12b6fddf245f9733cb
refs/heads/master
2023-08-31T12:27:59.752452
2023-08-28T20:42:12
2023-08-28T20:42:12
172,811,550
2,778
334
Apache-2.0
2023-09-13T04:59:46
2019-02-27T00:16:29
Python
UTF-8
Python
false
false
2,460
py
test_cli.py
from unittest.mock import patch from cartography.driftdetect.cli import CLI from cartography.driftdetect.config import UpdateConfig from cartography.driftdetect.util import valid_directory from tests.integration import settings def test_valid_directory(): """ Tests valid directory function. """ confi...
e2fb108a1c09ca721db913f7c37d6287c0337b87
dd4cc30a2e4368c0d350ced7218295819e102fba
/sample_files/multibyte_before.py
3ed538d8630720dab0f67411ab957196cf9e7c7f
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "Apache-2.0" ]
permissive
Wilfred/difftastic
49c87b4feea6ef1b5ab97abdfa823aff6aa7f354
a4ee2cf99e760562c3ffbd016a996ff50ef99442
refs/heads/master
2023-08-28T17:28:55.097192
2023-08-27T04:41:41
2023-08-27T04:41:41
162,276,894
14,748
287
MIT
2023-08-26T15:44:44
2018-12-18T11:19:45
Rust
UTF-8
Python
false
false
17
py
multibyte_before.py
"foo€".format()
4d9310acc4e3a8f05a39836c8734617f442cf246
e61e664d95af3b93150cda5b92695be6551d2a7c
/vega/algorithms/nas/modnas/metrics/torch/rasp.py
3088339b7a43a83085e59875910f6e0a90efce18
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
huawei-noah/vega
44aaf8bb28b45f707ed6cd4e871ba70fc0c04846
12e37a1991eb6771a2999fe0a46ddda920c47948
refs/heads/master
2023-09-01T20:16:28.746745
2023-02-15T09:36:59
2023-02-15T09:36:59
273,667,533
850
184
NOASSERTION
2023-02-15T09:37:01
2020-06-20T08:20:06
Python
UTF-8
Python
false
false
6,541
py
rasp.py
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. 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...
46cb3193e3c8a14b6bc4bc46c6aa3cdc556bcca9
b6538247354ef14fcff6dcf41d1d22257e1c6cd3
/docs/video_moviepy.py
a778fcd4d10526737f17823a23a3432433657a73
[ "MIT" ]
permissive
dariober/ASCIIGenome
15af4752fce62183f432baebc2a2a6517a9bc22b
ec6cde3576388dee47142970a396033cfe6e291d
refs/heads/master
2023-09-01T09:29:29.123499
2023-03-01T15:44:25
2023-03-01T15:44:25
58,925,144
209
21
MIT
2023-03-01T15:37:11
2016-05-16T10:46:30
Java
UTF-8
Python
false
false
2,141
py
video_moviepy.py
#!/usr/bin/env ipython from moviepy.editor import * from moviepy import editor from moviepy.video.tools.subtitles import SubtitlesClip import os # ---------------------- 8< ---------------------------------------------------- def annotate(clip, txt, txt_color= 'grey20', fontsize=50, font='Xolonium-Bold'): """ Wr...
b3828be36bd20e56d44987b97eca84c4edc29193
5ef6c8d47864f471e26b9902d61f8c687e941f05
/src/genie/libs/parser/iosxe/c9600/tests/ShowPlatformFedSwitchActiveIfmMapping/cli/equal/golden_output_expected.py
75f840e2a55d9e0b35541a1c1381eb5d06b46212
[ "Apache-2.0" ]
permissive
CiscoTestAutomation/genieparser
169c196558f1c1a0f0d10650876096f993224917
b531eff760b2e44cd69d7a2716db6f866907c239
refs/heads/master
2023-09-03T08:56:18.831340
2023-08-29T22:32:02
2023-08-29T22:32:02
131,621,824
247
409
Apache-2.0
2023-08-29T22:32:04
2018-04-30T16:51:50
Python
UTF-8
Python
false
false
31,539
py
golden_output_expected.py
expected_output={ "interface":{ "FortyGigabitEthernet1/5/0/1":{ "IF_ID":"0x9", "Inst":0, "Asic":0, "Core":0, "Port":1, "SubPort":0, "Mac":10, "Cntx":4, "LPN":1, "GPN":385, "Typ...
9a266380841c9794d368366375b88faee177e63b
b84517cc27cf91e2a29be81314e7f2629996d0f6
/examples/cache_machine/redis_settings.py
3263e6621e0173d94b8fb0162d3e5dc413c1005c
[ "BSD-2-Clause" ]
permissive
django-cache-machine/django-cache-machine
7a881b38e445d4143f2acb31e3ab790cd344c30b
01f12b9a4907064440dcd8b2d4b1375b26b11e4d
refs/heads/main
2023-09-04T22:42:05.924757
2023-02-20T18:13:51
2023-02-20T18:13:51
510,383
403
87
BSD-3-Clause
2022-07-06T18:40:09
2010-02-09T23:01:12
Python
UTF-8
Python
false
false
98
py
redis_settings.py
# flake8: noqa from .settings import * CACHE_MACHINE_USE_REDIS = True REDIS_BACKEND = "redis://"
ed02667d9e21a9fe35a1d4db00d7773e8deaf442
eecd5e4c50d8b78a769bcc2675250576bed34066
/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/_doc_section_base.py
c174ffcfebfdb329e4f8053cd3243c5e44c5e63c
[ "BSD-2-Clause" ]
permissive
petsc/petsc
3b1a04fea71858e0292f9fd4d04ea11618c50969
9c5460f9064ca60dd71a234a1f6faf93e7a6b0c9
refs/heads/main
2023-08-17T20:51:16.507070
2023-08-17T16:08:06
2023-08-17T16:08:06
8,691,401
341
169
NOASSERTION
2023-03-29T11:02:58
2013-03-10T20:55:21
C
UTF-8
Python
false
false
40,484
py
_doc_section_base.py
#!/usr/bin/env python3 """ # Created: Sun Nov 20 12:27:36 2022 (-0500) # @author: Jacob Faibussowitsch """ from __future__ import annotations import re import enum import difflib import textwrap import itertools import collections from ..._typing import * from ..._error import ParsingError from .._diag import Di...
89b5cddbd7de4db993529f1f342e9c25daf1af5d
fe4486e433edb71645adfff3c183b32f7cf2df43
/sqlacodegen/codegen.py
29498223b98346042e5ab0a4b1bfeee4c8e7752b
[ "MIT" ]
permissive
ksindi/flask-sqlacodegen
f7d8af2d2767c97eec32758a8a4b9f3bf17ad80d
60797250801fc81fce17fe3e8d159973b71a25cc
refs/heads/master
2023-08-28T14:28:56.946789
2023-05-26T02:01:35
2023-05-26T02:01:35
18,734,623
295
66
NOASSERTION
2023-06-26T23:47:17
2014-04-13T17:06:26
Python
UTF-8
Python
false
false
31,073
py
codegen.py
"""Contains the code generation logic and helper functions.""" from __future__ import unicode_literals, division, print_function, absolute_import from collections import defaultdict from keyword import iskeyword import inspect import sys import re from sqlalchemy import (Enum, ForeignKeyConstraint, PrimaryKeyConstrain...
813b85626f3236c241dd211d12dd66f4d78d990a
e1e5c596f4ae06f8fddef063857fdd2961febb4d
/telnetlib3/tests/test_accessories.py
384065ae9ad10c17d159009b01b09898e43b896b
[ "BSD-3-Clause", "ISC" ]
permissive
jquast/telnetlib3
3ffcfd08f98c1bb90372273ce6cd5f5b922d3d50
5fbc6f723a6cb37651e782f6b35bd7e6cebabd5a
refs/heads/master
2023-07-29T21:34:56.668753
2023-07-23T16:03:53
2023-07-23T16:03:53
9,489,978
134
35
NOASSERTION
2023-06-16T17:28:24
2013-04-17T05:30:03
Python
UTF-8
Python
false
false
1,512
py
test_accessories.py
from telnetlib3.accessories import ( encoding_from_lang, name_unicode, eightbits, ) def test_name_unicode(): """ Test mapping of ascii table to name_unicode result. """ given_expected = { chr(0): r"^@", chr(1): r"^A", chr(26): r"^Z", chr(29): r"^]", chr(31):...
f190fd0bd91da471cbbf6464f520b919c6f4065d
010279e2ba272d09e9d2c4e903722e5faba2cf7a
/contrib/python/ipython/py2/IPython/testing/plugin/iptest.py
a75cab993fc684ab2ae8fd825d6e173fe1046f89
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
catboost/catboost
854c1a1f439a96f1ae6b48e16644be20aa04dba2
f5042e35b945aded77b23470ead62d7eacefde92
refs/heads/master
2023-09-01T12:14:14.174108
2023-09-01T10:01:01
2023-09-01T10:22:12
97,556,265
8,012
1,425
Apache-2.0
2023-09-11T03:32:32
2017-07-18T05:29:04
Python
UTF-8
Python
false
false
523
py
iptest.py
#!/usr/bin/env python """Nose-based test runner. """ from __future__ import print_function from nose.core import main from nose.plugins.builtin import plugins from nose.plugins.doctests import Doctest from . import ipdoctest from .ipdoctest import IPDocTestRunner if __name__ == '__main__': print('WARNING: this c...
e63109ab3dffc5e26f023c596a207daa508bfced
3083a4918f9a9a0670ce83566341eba04b290bc4
/kafka_utils/util/error.py
0e874da4d4649ab2433602f70d624f4ee548ad11
[ "Apache-2.0" ]
permissive
Yelp/kafka-utils
b122c0aad0dfc225e948623ceaf466e7e63d9f91
def433ec4d07c60290d5dc937d3b4e5189eca9dc
refs/heads/master
2023-08-31T06:20:33.740273
2023-08-24T10:15:43
2023-08-24T10:15:43
55,727,134
322
142
Apache-2.0
2023-08-24T10:15:44
2016-04-07T20:50:50
Python
UTF-8
Python
false
false
1,945
py
error.py
# Copyright 2016 Yelp 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...
1856ab96ad9a4389d8ebe112a6df6641b6ab5ffe
043f6c509d32f7cf83174a9dedcb27575d6b29fe
/models/CIE/model_config.py
6ec59d14e39a09ed2866ecb5b2d30d83d7c71286
[ "LicenseRef-scancode-mulanpsl-2.0-en" ]
permissive
Thinklab-SJTU/ThinkMatch
f07033e085d90496e796ce10e5ea6997c32ff3b9
cfd1c0d34b3614957a44ac73ed6090898a51c9f2
refs/heads/master
2023-07-19T13:40:37.929572
2023-07-19T05:55:45
2023-07-19T05:55:45
206,839,844
304
68
NOASSERTION
2023-07-19T05:55:46
2019-09-06T17:07:08
Python
UTF-8
Python
false
false
290
py
model_config.py
from easydict import EasyDict as edict __C = edict() model_cfg = __C # CIE model options __C.CIE = edict() __C.CIE.FEATURE_CHANNEL = 512 __C.CIE.SK_ITER_NUM = 20 __C.CIE.SK_EPSILON = 1.0e-10 __C.CIE.SK_TAU = 0.005 __C.CIE.GNN_LAYER = 5 __C.CIE.GNN_FEAT = 1024 __C.CIE.CROSS_ITER = False
98d9cbef34b1e4968b9a63349b43e0e23b6b66fc
b2bcf07493b5a1bbfb7e29c7f13ac0b380cefead
/deprecated/scripts/linear_autoencoder_pca_tf.py
58b9d413935b9af6f6b37d407f12e00eb5f3fa84
[ "MIT" ]
permissive
probml/pyprobml
e1952927bceec676eb414f9342470ba4b8e6703b
9cc22f3238ae092c2b9bff65d6283c93d38d25d4
refs/heads/master
2023-08-31T07:36:11.603301
2023-08-13T02:47:12
2023-08-13T02:47:12
65,924,871
6,263
1,598
MIT
2023-01-20T23:34:23
2016-08-17T16:42:24
Jupyter Notebook
UTF-8
Python
false
false
2,211
py
linear_autoencoder_pca_tf.py
# Linear autoencoder (ie PCA) applied to a 3d dataset projecting to 2d #https://github.com/ageron/handson-ml2/blob/master/17_autoencoders_and_gans.ipynb import superimport import numpy as np import matplotlib.pyplot as plt import os figdir = "../figures" def save_fig(fname): plt.savefig(os.path.join(figdir, fname)) ...
5f480cb74df8e1cd26334118e35829102e1ad893
2b66e0b0d7543585cc6be4ab5da19ae528f0c41a
/kaggler/const.py
8df2ec66721cd6bded2f8a7315d3377a50f9003d
[ "MIT" ]
permissive
jeongyoonlee/Kaggler
84896f0da4ac0c8440dbffffbecde272859c0614
736622e2a59461c69dc3dce87c2fdce8ea45a242
refs/heads/master
2023-08-21T01:04:57.019400
2023-02-18T00:46:47
2023-02-18T00:46:47
29,987,631
786
188
MIT
2023-02-18T00:46:49
2015-01-28T20:51:13
Python
UTF-8
Python
false
false
46
py
const.py
RANDOM_SEED = 42 SEC_PER_MIN = 60 EPS = 1e-15
8bc2954a01b18c7dbd4c66ddb0cb7bc2efaf6aaf
eda1a85f7948a4232b6ee55c81211235cf135e70
/tests/test_mapping.py
e37afa377c8dcd1b44cce6a8e9e1b7349ca34544
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
kinnala/scikit-fem
b37ceae412db77eeb83b2ef5a74aaeceb65e84d8
eb6c86d1ee6d6867c702edaea87a66facb24b534
refs/heads/master
2023-09-01T01:45:53.206323
2023-08-28T19:11:35
2023-08-28T19:11:35
115,345,426
355
77
BSD-3-Clause
2023-09-01T21:23:55
2017-12-25T14:57:10
Python
UTF-8
Python
false
false
3,785
py
test_mapping.py
import unittest import numpy as np from skfem.mesh import MeshHex, MeshQuad, MeshTri from skfem.element import ElementHex1, ElementQuad1, ElementHex2 from skfem.assembly import FacetBasis from skfem.mapping import MappingMortar class TestIsoparamNormals(unittest.TestCase): """Test that normals on x[i] == 0 are c...
881bce5c21a24509c830b2e62bdff0a94c09cac3
3dc647cd07a7361ed401e40d2b7cce8c826c8f6c
/Lib/test/test_sysconfig.py
6db1442980a338b288c1ee0592f79b00f3abf9bf
[ "Python-2.0", "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
23,065
py
test_sysconfig.py
import unittest import sys import os import subprocess import shutil from copy import copy from test.support import ( captured_stdout, PythonSymlink, requires_subprocess, is_wasi ) from test.support.import_helper import import_module from test.support.os_helper import (TESTFN, unlink, skip_unless_symlink, ...
7e89e9b51872074275d0ddab40d35cb4317b3f03
689a78e08c957abc02ea5f89fb657b1f78f88b6e
/tools/waymo_tracking/test.py
db14135162284103677a52f6ab4dfbc87be932a4
[ "MIT", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference" ]
permissive
tianweiy/CenterPoint
2bb9a7def8d4bf87b66af2e3b671736eae6fa275
d3a248fa56db2601860d576d5934d00fee9916eb
refs/heads/master
2023-08-30T23:11:49.528882
2022-10-24T13:09:52
2022-10-24T13:09:52
274,006,091
1,692
476
MIT
2023-05-06T10:30:06
2020-06-22T00:32:05
Python
UTF-8
Python
false
false
7,812
py
test.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import sys import json import numpy as np import time import copy import argparse import copy import json import os import numpy as np from tools.waymo_tracking.tracker import PubTracker as Tracker f...
1e497c9d6ddd82c288f7b937f755fd196940b498
6fdb4eaf5b0e6dbd7db4bf947547541e9aebf110
/api/tests/opentrons/protocol_runner/test_legacy_context_plugin.py
d7bb3fc9902f00da2944a7d1afca27331b96fb8a
[ "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
7,490
py
test_legacy_context_plugin.py
"""Tests for the PythonAndLegacyRunner's LegacyContextPlugin.""" import pytest from anyio import to_thread from decoy import Decoy, matchers from datetime import datetime from typing import Callable, cast from opentrons.broker import Broker from opentrons.equipment_broker import EquipmentBroker from opentrons.commands...
6f0220862230f3aecaf76ea6862a5d6a5fa9213f
796feb97223492c3b783caf96c8dbaef252dbc1b
/Chapter4/ch4_double_moving_average.py
2baaf56b6462a85c38ab3436cb94b93f0f337142
[ "MIT" ]
permissive
PacktPublishing/Learn-Algorithmic-Trading
08b8139403b724c8ccad7aebf9ebc613498768a7
df2c7862b8c63595dd066071801556016f29cda8
refs/heads/master
2023-01-24T01:24:10.961522
2023-01-18T09:50:12
2023-01-18T09:50:12
227,788,202
701
260
MIT
2023-02-10T18:28:55
2019-12-13T08:06:53
Python
UTF-8
Python
false
false
1,996
py
ch4_double_moving_average.py
#!/bin/python3 import pandas as pd import numpy as np from pandas_datareader import data import matplotlib.pyplot as plt def load_financial_data(start_date, end_date,output_file): try: df = pd.read_pickle(output_file) print('File data found...reading GOOG data') except FileNotFoundError: ...
dfc5ffc958d4cfe14815c75d4de8ac0df2f83b38
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_mongo_db_resources_operations.py
03c854fa5bae5aeb7a30cb4d52b247bc92b86252
[ "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
260,140
py
_mongo_db_resources_operations.py
# pylint: disable=too-many-lines # 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. # Code generated by Microsoft (R) AutoRe...
c5d3232ed7041ff3c788ca10b93847c907a0164b
9edbe7b1ec03b557aa8f5b8fc6b7623bdb9151b3
/sf_examples/atari/enjoy_atari.py
eb60019fe10c7536ab6fb5971d6daa08f43860a3
[ "MIT" ]
permissive
alex-petrenko/sample-factory
77c0370ef73902c5530acec7cb49cc1eff224173
7e1e69550f4de4cdc003d8db5bb39e186803aee9
refs/heads/master
2023-07-24T17:27:10.924055
2023-06-30T12:09:31
2023-06-30T12:09:31
192,824,415
644
99
MIT
2023-07-17T08:50:05
2019-06-20T00:59:01
Python
UTF-8
Python
false
false
350
py
enjoy_atari.py
import sys from sample_factory.enjoy import enjoy from sf_examples.atari.train_atari import parse_atari_args, register_atari_components def main(): """Script entry point.""" register_atari_components() cfg = parse_atari_args(evaluation=True) status = enjoy(cfg) return status if __name__ == "__...
89d2f87f977d1b967c77798512bec44b6678ee98
6212eced0deaf6fc921627cd85ae59f1ff414ce5
/tests/file/test_get_file.py
5c0cb68f11ccb698b752fce8ef902dac5ba54103
[ "MIT", "LGPL-2.0-or-later" ]
permissive
Azure/azure-storage-python
eae1b1b49f5ddf9d7ef75568a7dd00a077d3d5b6
21c232e6bd6528bbf9e93b103f78ccc921384168
refs/heads/master
2023-08-16T17:05:37.740248
2023-01-24T17:24:33
2023-01-24T17:24:33
39,039,065
370
291
MIT
2023-01-24T17:24:35
2015-07-13T21:45:05
Python
UTF-8
Python
false
false
37,161
py
test_get_file.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. # --------------------------------------------------------------------...
06826d1b8460d254da39f6ab42f62f209f05443e
62a65e9d151396b1ca640bd5c65f325fe99d1e12
/tests/syntax/test_properties.py
f7366303418c895207d6a810b82ae172b5ed073f
[ "BSD-3-Clause" ]
permissive
BerkeleyLearnVerify/Scenic
a4266c49c419a97bb9802ec5e4a535c251e83061
b397042601218ee77c82e3e835fa26820184245e
refs/heads/main
2023-08-31T17:44:34.774326
2023-08-30T23:55:22
2023-08-30T23:55:22
170,370,724
207
73
NOASSERTION
2023-09-13T20:03:20
2019-02-12T18:38:02
Python
UTF-8
Python
false
false
3,055
py
test_properties.py
import numpy as np import pytest from scenic.core.errors import SpecifierError from tests.utils import compileScenic, sampleEgoFrom def test_position_wrong_type(): with pytest.raises(TypeError): compileScenic("ego = new Object with position 4") def test_position_oriented_point(): sampleEgoFrom( ...
1546728203793a028134ad4cc6e2589b9591eb01
3be1b10269c9d976c1141f3017936782b8d024a9
/suod/test/test_model_save_load.py
f744687e3116b71ddfbc43033b36516a67d8703d
[ "BSD-2-Clause" ]
permissive
yzhao062/SUOD
a723c923024980b2bfad5a007ae40e0ceb1c2642
a733f2b704fbc98059a35760ce820c93eed55a77
refs/heads/master
2023-07-20T12:00:34.403125
2023-07-16T11:29:26
2023-07-16T11:29:26
222,815,883
376
51
BSD-2-Clause
2023-04-07T01:12:52
2019-11-20T00:23:54
Python
UTF-8
Python
false
false
4,063
py
test_model_save_load.py
# -*- coding: utf-8 -*- import os import sys import unittest import numpy as np # temporary solution for relative imports in case pyod is not installed # if suod # is installed, no need to use the following line sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from suod.models.base im...
45695760c59c6298e43b1f0119ba2928b521bda2
e7f2a8c466c14b9821e59740ed0407107e1254a4
/tests/cli/test_rasa_evaluate_markers.py
f9610ef23725f184b77922cf7af26d8fca9ae292
[ "LicenseRef-scancode-generic-cla", "Apache-2.0", "MIT" ]
permissive
RasaHQ/rasa
4a31134308a9a4d8824fe7faef02526accdd0f19
50857610bdf0c26dc61f3203a6cbb4bcf193768c
refs/heads/main
2023-08-28T01:53:56.981600
2023-08-25T10:20:49
2023-08-25T10:20:49
70,908,208
13,167
3,739
Apache-2.0
2023-09-14T09:54:40
2016-10-14T12:27:49
Python
UTF-8
Python
false
false
5,715
py
test_rasa_evaluate_markers.py
from pathlib import Path from typing import Callable, Text, Tuple, Dict, Any import csv import pytest from _pytest.pytester import RunResult import rasa.cli.evaluate from rasa.shared.core.events import ActionExecuted, SlotSet, UserUttered from rasa.shared.core.trackers import DialogueStateTracker from rasa.shared.co...
f764682b3efead2e1f6d91aad584c2020a488653
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/22_专题/小值域搜答案/1906. 查询差绝对值的最小值-个数前缀和.py
3804494f5404aae1c0915fed2b0077ef92db84a9
[]
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,866
py
1906. 查询差绝对值的最小值-个数前缀和.py
# 1 <= nums[i] <= 100 # 2 <= nums.length <= 105 # 1 <= queries.length <= 2 * 104 # 看到 100 这个数据,就知道可以暴力枚举了,直接开数组 # 我们需要知道不同区间之间有哪些数,所以前缀统计每个区间不同的数的个数(1-100) from typing import List INF = int(1e20) class Solution: def minDifference(self, nums: List[int], queries: List[List[int]]) -> List[int]: ...
181be2b42309d898128a39e82aaa3b8adfde628c
93713f46f16f1e29b725f263da164fed24ebf8a8
/Library/lib/python3.7/site-packages/networkx/algorithms/centrality/tests/test_load_centrality.py
880ab27983d8994dfbedd88c69ea2d13a3f5dbc0
[ "BSD-3-Clause" ]
permissive
holzschu/Carnets
b83d15136d25db640cea023abb5c280b26a9620e
1ad7ec05fb1e3676ac879585296c513c3ee50ef9
refs/heads/master
2023-02-20T12:05:14.980685
2023-02-13T15:59:23
2023-02-13T15:59:23
167,671,526
541
36
BSD-3-Clause
2022-11-29T03:08:22
2019-01-26T09:26:46
Python
UTF-8
Python
false
false
11,515
py
test_load_centrality.py
#!/usr/bin/env python from nose.tools import * import networkx as nx class TestLoadCentrality: def setUp(self): G = nx.Graph() G.add_edge(0, 1, weight=3) G.add_edge(0, 2, weight=2) G.add_edge(0, 3, weight=6) G.add_edge(0, 4, weight=4) G.add_edge(1, 3, weight=5) ...
4aeb7fa1ded77ff883fdf3e4087026c99c528b09
0194827522f5226ee1b50daeefd500df69fff173
/Bot/Trade.py
9c19731e35dc5d425904a6cced470253dd4a956f
[ "Apache-2.0" ]
permissive
iilunin/crypto-bot
99fc85904c18e0ea2e9ebd8bc469e1b26ff6b23d
0944641e9b2defb88d80dea03dd47c126f1c0b64
refs/heads/master
2023-03-08T21:07:39.016579
2022-04-24T04:01:44
2022-04-24T04:01:44
128,092,587
251
54
Apache-2.0
2023-03-02T10:47:38
2018-04-04T16:51:54
Python
UTF-8
Python
false
false
4,696
py
Trade.py
from collections import OrderedDict import uuid from typing import List from Bot.EntryExitSettings import EntryExitSettings from Bot.TradeEnums import Side from Bot.StopLossSettings import StopLossSettings from Bot.Target import * class Trade(CustomSerializable): # def __init__(self, symbol, side, asset, status=N...
dc35b82754983d62714aebd2edb3ee99928d9210
36437b397a855f3986325f1bfe41d7ced00b703a
/tests/reactor/conftest.py
99adc261386b2f40241b5067fc111f91d138e9fc
[ "MIT" ]
permissive
nolar/kopf
090cd21550e3a86e512a4c9150dfcf5f59ac14e4
538df59b88d1aab7b985d703483497f73c6c4783
refs/heads/main
2023-08-29T20:39:07.128912
2023-08-24T15:47:40
2023-08-24T15:47:40
288,234,242
1,627
154
MIT
2023-09-14T12:31:33
2020-08-17T16:45:35
Python
UTF-8
Python
false
false
2,016
py
conftest.py
import asyncio import functools import pytest from mock import AsyncMock from kopf._cogs.clients.watching import infinite_watch from kopf._core.reactor.queueing import watcher, worker as original_worker @pytest.fixture(autouse=True) def _autouse_resp_mocker(resp_mocker): pass @pytest.fixture() def processor()...
e9fe6a445e309502a9797c39db331a0cab403ab6
17e7ce051b02669eba49d775775c16581f66f1d5
/server/libs/audio_info.py
ef3edef74464865ad1b59437745a83ac90367d69
[ "MIT" ]
permissive
TobKra96/music_led_strip_control
576d27fa592c8df7e1fee5fdf0c6a8136280b422
ff1b9fc41fa68e2dd70ae1a1db90b8cc13e927ca
refs/heads/master
2023-08-30T12:56:55.012671
2022-07-06T23:54:19
2022-07-06T23:54:19
203,447,717
281
73
MIT
2023-08-27T05:45:49
2019-08-20T20:14:26
CSS
UTF-8
Python
false
false
2,094
py
audio_info.py
from libs.audio_device import AudioDevice # pylint: disable=E0611, E0401 import logging class AudioInfo: def get_audio_devices(py_audio): logger = logging.getLogger(__name__) logger.debug("Get audio devices.") audio_devices = [] try: audio_device_count = py_audio.get...
ab27d1430b9e3099b741596d4e2ea3983351b6c2
2d05050d0ada29f7680b4df20c10bb85b0530e45
/python/tvm/contrib/torch/module.py
cfa3ad264c3a78b39e3e54a5b09e2b619b456337
[ "Apache-2.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "Zlib", "LLVM-exception", "BSD-2-Clause" ]
permissive
apache/tvm
87cb617f9a131fa44e1693303aaddf70e7a4c403
d75083cd97ede706338ab413dbc964009456d01b
refs/heads/main
2023-09-04T11:24:26.263032
2023-09-04T07:26:00
2023-09-04T07:26:00
70,746,484
4,575
1,903
Apache-2.0
2023-09-14T19:06:33
2016-10-12T22:20:28
Python
UTF-8
Python
false
false
4,823
py
module.py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
b4e60ef65a119dfe651f7f41a0b6ed2212fd5ba2
11e227cc06dfce171fe521591909e347b67220ff
/build/create_simulated_single_header_file.py
36fba3f2b58ec9a67dcd775bc2e91a3cc2806170
[ "Apache-2.0" ]
permissive
approvals/ApprovalTests.cpp
45638b954cd84d2c154c250111c60b46d8efc5d0
d49cbcbd8a83ad8be12ad647e84162d6b2fe69b0
refs/heads/master
2023-08-17T17:13:51.713763
2023-08-05T17:38:09
2023-08-05T17:38:09
9,286,563
298
61
Apache-2.0
2023-09-04T17:23:47
2013-04-08T01:53:54
C++
UTF-8
Python
false
false
274
py
create_simulated_single_header_file.py
#! /usr/bin/env python3 import os from scripts.project_details import ProjectDetails from scripts.single_header_file import SingleHeaderFile if __name__ == '__main__': os.chdir("../ApprovalTests") SingleHeaderFile.create('.', ProjectDetails(), include_cpps=False)
556119ae18b97ac8b59ad7c16a929cabc59001f9
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-Photos/PyObjCTest/test_phassetresourcemanager.py
66a689fc1e81f2da15dad9961d942c45c34e0ccb
[ "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
1,024
py
test_phassetresourcemanager.py
from PyObjCTools.TestSupport import TestCase, min_os_level import Photos PHAssetResourceProgressHandler = b"vd" class TestPHAssetResourceManager(TestCase): @min_os_level("10.15") def testMethods(self): self.assertResultIsBOOL( Photos.PHContentEditingInputRequestOptions.isNetworkAccessAll...
64a7c6f0684c3dc9d0c32c01dd71777e9e5c024d
e9ef3cd143478660d098668a10e67544a42b5878
/Lib/corpuscrawler/crawl_my_t_d0_zawgyi.py
a686b0d4b9f89718fd9e73e8d7c4bb05cf103a71
[ "Apache-2.0" ]
permissive
google/corpuscrawler
a5c790c19b26e6397b768ce26cf12bbcb641eb90
10adaecf4ed5a7d0557c8e692c186023746eb001
refs/heads/master
2023-08-26T04:15:59.036883
2022-04-20T08:18:11
2022-04-20T08:18:11
102,909,145
119
40
NOASSERTION
2022-04-20T08:18:12
2017-09-08T22:21:03
Python
UTF-8
Python
false
false
1,986
py
crawl_my_t_d0_zawgyi.py
# Copyright 2017 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
a689404d7d5a77c0186e7fab227bd4602eea3f39
d1c2d00078520cd556f60b7213c27856f8b3460d
/sdks/python/apache_beam/io/snowflake.py
d789a72001df20b1e9f44b1ce764f5f42b620983
[ "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
18,521
py
snowflake.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...
65e920845a4c637d8d12e3f96b48779e2396fe7d
a641c7b07e91024f166ee25ee2d07874a704f40c
/data/WikiCS.py
7c1dadf3060d8c1f201f33d49be72cfe6742f791
[ "MIT" ]
permissive
graphdeeplearning/benchmarking-gnns
c901c87bf9441ff6a8f7427b2d0e3f5bcfd9489b
b6c407712fa576e9699555e1e035d1e327ccae6c
refs/heads/master
2023-07-31T21:35:04.971051
2022-05-10T13:22:20
2022-05-10T13:22:20
244,534,808
2,340
468
MIT
2023-06-22T04:03:54
2020-03-03T03:42:50
Jupyter Notebook
UTF-8
Python
false
false
2,788
py
WikiCS.py
import torch import pickle import torch.utils.data import time import os import numpy as np import dgl import json import networkx as nx from scipy import sparse as sp import itertools class WikiCSDataset(torch.utils.data.Dataset): """ Wiki-CS Dataset Adapted from https://github.com/pmer...
23dd79b201882ce1112f5c9ab678ef779f693178
686177a1034cee76ad040c62e3d3e49d44a9ee7a
/src/collectors/cpuacct_cgroup/test/testcpuacct_cgroup.py
4e2430262aa4f7fe28422822b5fd80f5a2f371c6
[ "MIT" ]
permissive
python-diamond/Diamond
8fce83a3d883dfa05b664fdd5cb6064f34c4ac41
461caf29e84db8cbf46f9fc4c895f56353e10c61
refs/heads/master
2023-07-20T01:44:18.504408
2023-01-29T19:46:36
2023-01-29T19:46:36
13,512,018
1,874
824
MIT
2023-07-10T11:06:38
2013-10-11T23:32:13
Python
UTF-8
Python
false
false
1,908
py
testcpuacct_cgroup.py
#!/usr/bin/python # coding=utf-8 ########################################################################## import os from test import CollectorTestCase from test import get_collector_config from test import unittest from mock import patch try: from cStringIO import StringIO except ImportError: from StringIO i...
f07d425b17d25a52baa89c9335fc286dc2ee4bee
66333a96a8806181228a860085ee5d01888c7b2f
/depth_estimation/fast-depth/fast_depth_utils.py
f931f368f80da34467ebb8eb7375fea1dad80ea1
[ "MIT" ]
permissive
axinc-ai/ailia-models
7c5c15d813a58fcae678a8107ebc9c39ee9912f2
da1c277b602606586cd83943ef6b23eb705ec604
refs/heads/master
2023-08-31T07:43:39.848448
2023-08-29T05:06:27
2023-08-29T05:06:27
206,917,330
1,554
286
null
2023-09-14T19:56:14
2019-09-07T04:50:59
Python
UTF-8
Python
false
false
950
py
fast_depth_utils.py
import matplotlib.pyplot as plt import numpy as np from PIL import Image import transforms.transforms as transforms IHEIGHT, IWIDTH = 480, 640 # raw image size cmap = plt.cm.viridis def colored_depthmap(depth, d_min=None, d_max=None): if d_min is None: d_min = np.min(depth) if d_max is None: ...
45aabfed34e96c8383e185776082c777da38c06e
bec0383f2afd255a72afeb9049a898615e547327
/electrum/electrumabc/tests/test_bip44_derivation_path.py
043ceb42491bd9a536594dfc6f39c5835f5b86e7
[ "MIT" ]
permissive
Bitcoin-ABC/bitcoin-abc
a73024a513be2c9c419f8bece06dbadde2af3fb7
57176a00e4d660487c41b92207da4bf27e5c0026
refs/heads/master
2023-09-04T11:26:24.295624
2023-09-01T14:24:40
2023-09-04T05:20:03
89,913,655
1,359
768
MIT
2023-07-19T16:41:26
2017-05-01T09:58:15
C++
UTF-8
Python
false
false
1,458
py
test_bip44_derivation_path.py
import unittest from .. import keystore, networks class TestBip44Derivations(unittest.TestCase): def setUp(self): self.initial_net = networks.net def tearDown(self): # make sure we restore the network settings, in case it affects other tests if self.initial_net == networks.MainNet: ...
6a763a27787b3b80f604c595bd384623a0401e09
8fa191cd4a67431a04eff62d35122ee83cc7b0af
/bookwyrm/tests/views/landing/test_login.py
eab08260929188ec0165f0b04ed724f3ab039f94
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
bookwyrm-social/bookwyrm
24678676a7a58dba96641194dfae3fffbf01574d
0f8da5b738047f3c34d60d93f59bdedd8f797224
refs/heads/main
2023-08-20T21:45:30.957277
2023-08-19T23:41:50
2023-08-19T23:41:50
236,415,735
1,398
216
NOASSERTION
2023-09-08T20:43:06
2020-01-27T03:51:54
Python
UTF-8
Python
false
false
6,207
py
test_login.py
""" test for app action functionality """ from unittest.mock import patch from django.contrib.auth.models import AnonymousUser from django.contrib.sessions.middleware import SessionMiddleware from django.template.response import TemplateResponse from django.test import TestCase from django.test.client import RequestFa...
293819f556aab8273370d60899aa0477e4f411e4
d0f1472c167339f1e5267f404a5b73e0c180b754
/local-sync.py
64232ff7eacb66b4313674f4c6d0d2ce1748fffb
[ "MIT" ]
permissive
DQinYuan/chinese_province_city_area_mapper
a756670401ac648b4b82991ee77651262790aca6
9bdfd6e8694b44ca3de0730bd9122c6df5916133
refs/heads/master
2023-09-01T13:48:16.396552
2021-12-12T09:20:04
2021-12-12T09:20:04
123,792,414
1,558
366
MIT
2022-12-08T11:46:07
2018-03-04T13:43:06
Python
UTF-8
Python
false
false
1,215
py
local-sync.py
import sys import os import csv from progress.bar import Bar if len(sys.argv) != 2: print("python local-sync.py <directory>") sys.exit(1) adcodes_root = sys.argv[1] # 代表整个中国 adcode china_base_adcode = "100000000000" with open("./cpca/resources/adcodes.csv", "w") as f: csv_writer = csv.writer(f) csv_...
c1b9cb88eaee77b9f1261e482d17782d0a0f98ba
807b63a4dda1e4bcf33a9b456cb9535eb69625fc
/python/stencila/types/product.py
3768e715e92dba13520920fb041d736840d0a693
[ "Apache-2.0" ]
permissive
stencila/stencila
4d63a5653adb67a45dd5eb11c7a27d569f57a49e
eac602910d009d7db7048b28b4049ecc952ecd32
refs/heads/main
2023-08-30T18:34:19.055238
2023-08-30T07:14:02
2023-08-30T07:14:02
4,503,128
719
51
Apache-2.0
2023-09-14T21:35:38
2012-05-31T02:43:31
Rust
UTF-8
Python
false
false
711
py
product.py
# Generated file; do not edit. See the Rust `schema-gen` crate. from .prelude import * from .brand import Brand from .image_object_or_str import ImageObjectOrStr from .thing import Thing @dataclass(kw_only=True, frozen=True) class Product(Thing): """ Any offered product or service. For example, a pair of sh...
95111879e3fb34bb7af1bd6192f0e54736109206
86f3973554eb61b12528835851cbdc96aba9ccc0
/io_scene_xray/formats/obj/exp/main.py
6e0bbd35a4cde33959a2bf2c5c24dc90468d6790
[ "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
19,138
py
main.py
# blender modules import bpy import mathutils # addon modules from . import mesh from . import bone from .. import fmt from ... import motions from .... import rw from .... import text from .... import utils from .... import log def export_version(chunked_writer): packed_writer = rw.write.PackedWriter() pack...
86d82af5c6c64998371ee8246207a7926851ab3d
bbd69601912a3361d788efd03a47f9d4e3bac09e
/demo/ContextHelp.py
f13f218c9f56bbe3b11c202bac275d0323a247c0
[]
no_license
wxWidgets/Phoenix
56929484460a0399a8f1d9582bc77c20aa14748d
a1184286703cf24c4b88e5bc14cf2979c1b1ea00
refs/heads/master
2023-09-01T07:10:17.437093
2023-08-31T05:38:01
2023-08-31T05:38:01
5,078,061
2,268
677
null
2023-09-09T17:06:59
2012-07-17T06:22:25
Python
UTF-8
Python
false
false
4,032
py
ContextHelp.py
#!/usr/bin/env python import wx #---------------------------------------------------------------------- # We first have to set an application-wide help provider. Normally you # would do this in your app's OnInit or in other startup code... provider = wx.SimpleHelpProvider() wx.HelpProvider.Set(provider) # This pan...
902f0a2022a3618051135774b82caf234e17cf89
9ee89ea711a14565d8664f180b213c0e0bd423ac
/pywinauto/unittests/test_common_controls.py
630c44ebbf033842a42d79933a99318d4d35c050
[ "BSD-3-Clause", "LGPL-2.1-or-later", "LGPL-2.1-only" ]
permissive
pywinauto/pywinauto
c55b3f42d0b9d5b18b005527edd791f4da05f805
bf7f789d01b7c66ccd0c213db0a029da7e588c9e
refs/heads/atspi
2023-08-30T21:05:31.992955
2022-12-29T15:23:40
2022-12-30T10:52:06
36,223,210
4,466
819
BSD-3-Clause
2023-09-12T02:26:23
2015-05-25T09:50:40
Python
UTF-8
Python
false
false
62,825
py
test_common_controls.py
# GUI Application automation and testing library # Copyright (C) 2006-2018 Mark Mc Mahon and Contributors # https://github.com/pywinauto/pywinauto/graphs/contributors # http://pywinauto.readthedocs.io/en/latest/credits.html # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
19b6552fb2cc373ce7dac36f3ed31c68a511b55a
f27e3fdc97290b1db6d3fa7039ad59e4f8b5a760
/keras/comet-keras-optimizer.py
a0fc1d3834c5d33eae20a62e35f9a8e53ad032dd
[]
no_license
comet-ml/comet-examples
9c7bcea8b97986fb7987cbe0f4533f619e2a0939
9da5d4f296e633bb7e63b47dc2d3f7a0780c0a4e
refs/heads/master
2023-08-19T03:32:51.864273
2023-08-09T09:30:34
2023-08-09T09:30:34
158,587,515
134
55
null
2023-09-13T16:58:41
2018-11-21T18:00:34
Jupyter Notebook
UTF-8
Python
false
false
3,182
py
comet-keras-optimizer.py
# -*- coding: utf-8 -*- # ******************************************************* # ____ _ _ # / ___|___ _ __ ___ ___| |_ _ __ ___ | | # | | / _ \| '_ ` _ \ / _ \ __| | '_ ` _ \| | # | |__| (_) | | | | | | __/ |_ _| | | | | | | # \____\___/|_| |_| |_|\___|\__(_)_| |_| |_|_|...
15d80433efc7e3c73c7dc1616f4b12fd5f6c85cc
10582263a62298203ddc5cd0c0130dd70046aa76
/tffm/utils.py
5aa3ed135c408f6f45b21c9713e94e0bed5b28a3
[ "MIT" ]
permissive
geffy/tffm
21faafde14b1cbb8714ddf28d3faaa54e27b478c
7bfe63e35e4a6264e095ae21882e9ceec3436f19
refs/heads/master
2022-07-28T03:34:26.416960
2022-01-17T20:38:58
2022-01-17T20:38:58
57,906,189
853
205
MIT
2020-05-22T21:40:58
2016-05-02T17:06:07
Jupyter Notebook
UTF-8
Python
false
false
6,836
py
utils.py
"""Supporting functions for arbitrary order Factorization Machines.""" import math import numpy as np import tensorflow as tf import itertools from itertools import combinations_with_replacement, takewhile, count from collections import defaultdict def get_shorter_decompositions(basic_decomposition): """Returns ...
0ea1c74760a3e4118a61b4cd7f8cb0d2531c7130
0337ca93de2a0c53eb36f5e2aa133ac76297731c
/data/lib/http_emitter.py
eb7dcb808d4e5b90bc24649761549c0614860267
[]
no_license
drivy/jobs
2589b9b26c115ac3b5671e319acdc403c9ed0a35
3333e75f70c50b60b678cba2259cb1d745df85d7
refs/heads/master
2022-03-13T09:15:49.712335
2022-03-08T21:50:44
2022-03-08T21:50:44
31,727,807
196
155
null
2022-03-14T16:45:58
2015-03-05T18:00:23
Ruby
UTF-8
Python
false
false
417
py
http_emitter.py
import itertools import requests import uuid import lib.log_generator as log_generator ENDPOINT = "http://127.0.0.1:3000" for i in range(1000): try: requests.post(ENDPOINT,json={ 'log': log_generator.sample(uuid.uuid4()) }, timeout=0.1) except requests.Timeout: print(f'Remote server timed-out o...
23f95cb5fdb969dc733472932fb0629db879d8e7
d965f13bdb6e89d0da17acc1b9d6fbbb09fe29ae
/app/src/CLEAN/losses.py
c9491603a75495ead28eb531bc0b39447de2c86e
[]
permissive
tttianhao/CLEAN
48fa6622823e1ba0bb7b6e3f98fcdee1098b78e1
cfc1a888bdb8fb2f38fc677437c8ee2a98c6775f
refs/heads/main
2023-07-25T10:19:45.687408
2023-07-22T08:47:37
2023-07-22T08:47:37
525,112,894
129
24
MIT
2023-06-01T22:08:32
2022-08-15T19:27:51
Python
UTF-8
Python
false
false
1,502
py
losses.py
import torch import torch.nn.functional as F def SupConHardLoss(model_emb, temp, n_pos): ''' return the SupCon-Hard loss features: model output embedding, dimension [bsz, n_all, out_dim], where bsz is batchsize, n_all is anchor, pos, neg (n_all = 1 + n_pos + n_neg) and ...
ebe30efa756282172e9ce8e2fa2c4f339dace425
c4a2ae65c06d53466e9db29430c5048ad9988c94
/muddery/server/quests/base_quest_status.py
8be0ce82eb003d2e3590dbbceaafd7a3b0ffc623
[ "BSD-3-Clause" ]
permissive
muddery/muddery
ac5a0dcb16b034844d91360e8154c70daca4c9d0
5fa06b29bf800646dc4da5851fdf7a1f299f15a7
refs/heads/master
2023-03-08T22:01:09.434955
2023-01-20T14:06:14
2023-01-20T14:06:14
33,435,868
139
64
NOASSERTION
2022-11-05T14:45:11
2015-04-05T09:07:47
Python
UTF-8
Python
false
false
269
py
base_quest_status.py
""" Quest dependency's base class. """ class BaseQuestStatus(object): """ Quest status's base class. """ key = "" name = "" def match(self, caller, quest_key): """ If the quest matches status. """ return True
4978fcc1b275b1973c5397d3fe2a5d68f0796152
8bf388105cb28af02b321849ff5302f0e6fa563d
/testapp/conftest.py
55a57bf10c34d9e85fa23a460850ed79011ca797
[ "MIT" ]
permissive
jrief/django-admin-sortable2
b3254015dbc5bc79df5fc1f16eeb9a9c09a9d4d6
b7169c5084ae9fd8dfae21fcc628129657213778
refs/heads/master
2023-08-27T08:17:30.285827
2023-08-01T06:27:53
2023-08-01T06:27:53
11,240,449
636
197
MIT
2023-08-26T16:59:47
2013-07-07T21:26:56
Python
UTF-8
Python
false
false
372
py
conftest.py
import os import pytest os.environ.setdefault('DJANGO_ALLOW_ASYNC_UNSAFE', 'true') @pytest.fixture(scope='function') def django_db_setup(django_db_blocker): from django.core.management import call_command with django_db_blocker.unblock(): call_command('migrate', verbosity=0) call_command('lo...
0a2dbd560c03bd016a951acad72bdf7609982ca5
37ba914737fba69b3a656ab0a9fcdbc45d113f70
/library/panos_gre_tunnel.py
901caef8d860228f32f9653cf76b8cfc428fe242
[ "Apache-2.0" ]
permissive
PaloAltoNetworks/ansible-pan
1a30def492393cb540d346b04dc5e7e0f217791c
dce32f6d1837dafb59f431e32d954c108c291a9a
refs/heads/develop
2023-06-23T13:30:26.444014
2023-06-14T13:13:14
2023-06-14T13:13:14
29,692,434
236
202
NOASSERTION
2023-06-14T13:13:10
2015-01-22T18:07:22
Python
UTF-8
Python
false
false
5,981
py
panos_gre_tunnel.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2020 Palo Alto Networks, 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...
cc536bf4d8dff5079f68df8cc9e524acdcfb3450
9ed4d46aedd4d4acadb48d610e940594b5b7b3fd
/project_euler/problem_191/sol1.py
6bff9d54eeca4360ec324ad5c1b0db84f7ccaa86
[ "CC-BY-NC-4.0", "CC-BY-NC-SA-4.0", "MIT" ]
permissive
TheAlgorithms/Python
7596a0e236ed12a61f9db19a7ea68309779cc85b
421ace81edb0d9af3a173f4ca7e66cc900078c1d
refs/heads/master
2023-09-01T17:32:20.190949
2023-08-29T13:18:10
2023-08-29T13:18:10
63,476,337
184,217
48,615
MIT
2023-09-14T02:05:29
2016-07-16T09:44:01
Python
UTF-8
Python
false
false
3,226
py
sol1.py
""" Prize Strings Problem 191 A particular school offers cash rewards to children with good attendance and punctuality. If they are absent for three consecutive days or late on more than one occasion then they forfeit their prize. During an n-day period a trinary string is formed for each child consisting of L's (lat...
c12d50cf825a847f68cbb47786f7a24f6fd5f357
d689b3caab44773d1c27327c7635748b7510eef0
/barbican/tests/tasks/test_common.py
044ade792bbf1b65653d5de3d57758af9c82c441
[ "Apache-2.0" ]
permissive
openstack/barbican
e9d8cd8c7821fbd0cd42381358040540e010d885
c8e3dc14e6225f1d400131434e8afec0aa410ae7
refs/heads/master
2023-09-04T03:08:34.120188
2023-08-28T08:06:46
2023-08-28T08:06:46
20,115,712
189
93
Apache-2.0
2021-07-27T06:00:23
2014-05-23T22:15:27
Python
UTF-8
Python
false
false
1,760
py
test_common.py
# Copyright (c) 2015 Rackspace, 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 wr...
05af7f4f8ecaaaeb047574f9e4c6dd4b7e8acb56
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/20_杂题/atc競プロ/AtCoder Beginner Contest/224/G - Roll or Increment .py
14ca7403e31121de48e6ba6426091d082e469edf
[]
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
370
py
G - Roll or Increment .py
# 掷骰子 # 给定起点 S 与终点 T,可以做两个操作 # !S => S + 1 代价为 A # !将S变为[1,N]的随机一个整数 代价为B # 问在最优策略下,从 S 走到 T 的期望代价最小是多少 # 有两种可能的情况: # !先随机走,如果随机到一个比较好的值,就一直加到T # !如果满足S<T的话可以直接加到T
cc75f1fb6111b4a0da947ee2368ec0c2ff5e2674
c1ab5fc6d37749cf7dd693a8f6d5475dfa54cd45
/kubernetes/client/api/core_v1_api.py
27c87ab84ebf59cdf708fe22ee737cdd85afa139
[ "Apache-2.0" ]
permissive
kubernetes-client/python
2d10e5d7c1358aa4473c1fcd54d2c5a1085cf56e
68d5a1479e7d735ea454021bc54e453c9b31baf7
refs/heads/master
2023-09-01T11:23:54.508420
2023-08-31T21:04:31
2023-08-31T21:04:31
72,473,727
5,792
3,654
Apache-2.0
2023-09-13T18:34:16
2016-10-31T20:08:03
Python
UTF-8
Python
false
false
2,251,164
py
core_v1_api.py
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.28 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import r...
53d9f714a94b006a450bf653145f70c231219545
b049a961f100444dde14599bab06a0a4224d869b
/sdk/python/pulumi_azure_native/azurestackhci/v20230301/get_update_run.py
95b22cf8afd27a7daa936b8f0858607d629effa6
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
pulumi/pulumi-azure-native
b390c88beef8381f9a71ab2bed5571e0dd848e65
4c499abe17ec6696ce28477dde1157372896364e
refs/heads/master
2023-08-30T08:19:41.564780
2023-08-28T19:29:04
2023-08-28T19:29:04
172,386,632
107
29
Apache-2.0
2023-09-14T13:17:00
2019-02-24T20:30:21
Python
UTF-8
Python
false
false
11,738
py
get_update_run.py
# coding=utf-8 # *** WARNING: this file was generated by pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from . im...
9a12ea3e83059c11508821862f9de4e48ad521d7
e7efae2b83216d9621bd93390959d652de779c3d
/snmp/datadog_checks/snmp/config.py
45ef331897e1e97636c6f62ca6a91407f386c435
[ "BSD-3-Clause", "MIT", "BSD-3-Clause-Modification", "Unlicense", "Apache-2.0", "LGPL-3.0-only", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "CC0-1.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
DataDog/integrations-core
ee1886cc7655972b2791e6ab8a1c62ab35afdb47
406072e4294edff5b46b513f0cdf7c2c00fac9d2
refs/heads/master
2023-08-31T04:08:06.243593
2023-08-30T18:22:10
2023-08-30T18:22:10
47,203,045
852
1,548
BSD-3-Clause
2023-09-14T16:39:54
2015-12-01T16:41:45
Python
UTF-8
Python
false
false
15,701
py
config.py
# (C) Datadog, Inc. 2010-present # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import ipaddress import time import weakref from collections import defaultdict from logging import Logger, getLogger # noqa: F401 from typing import Any, DefaultDict, Dict, Iterator, List, Optional, Set, Tuple...
1facb72df7b42a179a2b9b90e1bba73c3c421195
5b6ba0f288b1e2ac236af846a9bf546a63228476
/mmtbx/arrays.py
027245942fc80eebfd0846f9ae413ccfcf50e830
[ "BSD-3-Clause-LBNL" ]
permissive
cctbx/cctbx_project
5b547b416cadbdf95cca21dace9f54272a08d98a
7f4dfb6c873fd560920f697cbfd8a5ff6eed82fa
refs/heads/master
2023-08-17T17:44:05.077010
2023-08-16T22:40:22
2023-08-16T22:40:22
39,508,026
206
131
NOASSERTION
2023-09-14T17:12:55
2015-07-22T13:36:27
Python
UTF-8
Python
false
false
5,456
py
arrays.py
from __future__ import absolute_import, division, print_function from scitbx.array_family import flex from libtbx import adopt_init_args import boost_adaptbx.boost.python as bp from six.moves import range ext = bp.import_ext("mmtbx_f_model_ext") from cctbx import miller class init(object): # XXX PVA: Why Fobs, HL and ...
37888eac27f55c031a3a0c2d797687791449fa0a
d05c946e345baa67e7894ee33ca21e24b8d26028
/python-standard-library/handling-files/handling-files.py
65feb8c3ac81454dae9b02a9b8ee870d09550e1a
[ "MIT" ]
permissive
x4nth055/pythoncode-tutorials
327255550812f84149841d56f2d13eaa84efd42e
d6ba5d672f7060ba88384db5910efab1768c7230
refs/heads/master
2023-09-01T02:36:58.442748
2023-08-19T14:04:34
2023-08-19T14:04:34
199,449,624
1,858
2,055
MIT
2023-08-25T20:41:56
2019-07-29T12:35:40
Jupyter Notebook
UTF-8
Python
false
false
1,744
py
handling-files.py
import os import shutil # print the current directory print("The current directory:", os.getcwd()) # make an empty directory (folder) os.mkdir("folder") # running mkdir again with the same name raises FileExistsError, run this instead: # if not os.path.isdir("folder"): # os.mkdir("folder") # changing the current ...
4b0bd3d2469ff1d9790d1e5a0bcb7dfc31a24655
ff0ab350c70ada2e6182d68e99fe970eddf8b983
/aws_google_auth/tests/test_args_parser.py
ad55116fa6514773faacbd478f68b994979c546c
[ "MIT" ]
permissive
cevoaustralia/aws-google-auth
71b01d70db2747c997c5143be2d3850c7b39a492
dd42263bbeeb053e1b66a2db9a7b1f23606940f0
refs/heads/master
2023-08-15T16:59:54.246982
2022-05-02T21:48:28
2022-05-02T21:48:28
94,195,575
549
196
MIT
2023-07-20T09:34:34
2017-06-13T09:30:29
Python
UTF-8
Python
false
false
3,920
py
test_args_parser.py
#!/usr/bin/env python import unittest from aws_google_auth import parse_args class TestPythonFailOnVersion(unittest.TestCase): def test_no_arguments(self): """ This test case exists to validate the default settings of the args parser. Changes that break these checks should be considered...
f705060af70e52c8b7da813f30983a59c949d0ff
507103d591ed6993203db92fd8dffc992e8bcd5c
/k2/python/tests/top_sort_test.py
2468d683584f5c22e9f6f422dd6249384aad8675
[ "Apache-2.0" ]
permissive
k2-fsa/k2
6e661bd505f06583af779f4249bbb8ea87a0d662
2b2ac14b326d61d79d04e53fbd69b1ff6d630411
refs/heads/master
2023-09-03T11:57:13.505432
2023-08-23T21:58:26
2023-08-23T21:58:26
256,463,281
851
192
Apache-2.0
2023-08-26T06:51:21
2020-04-17T09:44:05
Cuda
UTF-8
Python
false
false
2,173
py
top_sort_test.py
#!/usr/bin/env python3 # # Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple 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...
489e0577e19bc8e1f9284d2f921c6e2ea0fd3f92
73cf7b1d2e75ee77e69f12044f5baa74035d9462
/latent_rationale/nn/bernoulli_gate.py
3f0be1987e683d3907017f0fba27d53256b96967
[ "MIT" ]
permissive
bastings/interpretable_predictions
c165d14adadebb0c17a00dd4b5c2cff10c5047f0
fef61833bd22205dc2d4f77e2c0ed3f40cbe8ea6
refs/heads/master
2021-06-16T23:34:19.500600
2021-05-07T16:49:38
2021-05-07T16:49:38
187,211,218
116
24
MIT
2021-04-02T10:39:50
2019-05-17T12:19:13
Python
UTF-8
Python
false
false
725
py
bernoulli_gate.py
# coding: utf-8 import torch.nn as nn from torch.nn import Linear, Sequential from torch.distributions.bernoulli import Bernoulli class BernoulliGate(nn.Module): """ Computes a Bernoulli Gate Assigns a 0 or a 1 to each input word. """ def __init__(self, in_features, out_features=1): supe...
38b4cdce9dcdcde06394a5760a79aa00c160814e
9b391863599ecc26a6804f9f272f8c7f2aee8a8c
/tick/base_model/model_lipschitz.py
869f2940203daf0c534b0e0b296763406385a1aa
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
X-DataInitiative/tick
4db1bce7471bb48757b54e86b0f7946f36e78dde
04dbb377b47783036a8343c6a61b60fc9f430dc3
refs/heads/master
2023-08-13T10:28:15.560632
2023-03-05T00:16:57
2023-03-05T00:16:57
75,284,069
475
120
BSD-3-Clause
2023-03-05T00:16:58
2016-12-01T10:59:08
Python
UTF-8
Python
false
false
2,632
py
model_lipschitz.py
# License: BSD 3 clause from abc import abstractmethod from . import Model __author__ = 'Stephane Gaiffas' class ModelLipschitz(Model): """An abstract base class for a model that implements lipschitz constants Parameters ---------- dtype : `{'float64', 'float32'}`, default='float64' Typ...
bfe991a07bb4d2283c066276b7ac0ef3d104ff0d
c43b5835b4499f4e6d6fa4efda9546dc67ae0767
/sfepy/examples/large_deformation/hyperelastic_ul.py
1fae3300ca3dfe230bdcc32015f80e256bcbce81
[ "BSD-3-Clause" ]
permissive
sfepy/sfepy
4b74e7839b5e7b5e8d90e19ab6e90a068fe33df4
0c2d1690e764b601b2687be1e4261b82207ca366
refs/heads/master
2023-09-04T22:07:28.041123
2023-08-28T14:47:50
2023-08-28T14:47:50
802,525
651
188
BSD-3-Clause
2023-09-12T07:28:19
2010-07-28T09:14:41
Python
UTF-8
Python
false
false
3,627
py
hyperelastic_ul.py
# -*- coding: utf-8 -*- r""" Nearly incompressible Mooney-Rivlin hyperelastic material model. Large deformation is described using the updated Lagrangian formulation. Models of this kind can be used to model e.g. rubber or some biological materials. """ from __future__ import print_function from __future__ import abso...
6b8f566e6a2aede9b5a89853fa79f2599529cfc2
529e713a78e82de2ae5d44cfb8ef209e0894d72a
/understanding-asynchronous-programming/example_3.py
7cbb00cff3a0c8dd9c94730b445d5069b08edee7
[ "MIT" ]
permissive
realpython/materials
cd2f548276be2c82f134ca03eadb1cd279e0f26e
d2d62756d3854f54a12a767f2bf9470486c0ceef
refs/heads/master
2023-09-05T22:12:29.806738
2023-08-31T20:56:28
2023-08-31T20:56:28
132,374,697
4,678
6,482
MIT
2023-09-12T22:22:06
2018-05-06T20:46:18
HTML
UTF-8
Python
false
false
993
py
example_3.py
import time import queue from codetiming import Timer def task(name, queue): timer = Timer(text=f"Task {name} elapsed time: {{:.1f}}") while not queue.empty(): delay = queue.get() print(f"Task {name} running") timer.start() time.sleep(delay) timer.stop() yield ...
323d70da12395766aa3c6cc6eef476957729b4e2
9ed83e0f003d9a196fd5ee4d46e935272889637f
/custom_components/microsoft_todo/outlook_tasks_api.py
181d0a6438af520cac204b3fac1d3551d1075a17
[ "MIT" ]
permissive
black-roland/homeassistant-microsoft-todo
02def72d0f7e630ad0e2c3b3cbf39ee664493cd6
9e1fa078bdbb68e4093d7a9f09f9b5b789b3d63f
refs/heads/master
2023-02-21T14:25:36.293628
2022-11-20T17:01:34
2022-11-20T17:01:34
218,158,850
103
17
MIT
2023-02-08T00:44:28
2019-10-28T22:43:35
Python
UTF-8
Python
false
false
3,663
py
outlook_tasks_api.py
import re from requests.exceptions import HTTPError import emoji # pylint: disable=import-error class OutlookTasksApi: api_endpoint = "https://graph.microsoft.com" def __init__(self, client, logger, timezone): self.client = client self.logger = logger self.timezone = timezone d...
34e6894e77368763beab46bacfb4ed392143465c
d694225d0deac8bda3f6cf4cfb37d43ca8a1d7a7
/pinn/networks/pinet.py
8b82302844e774020a4a9828d4881880b521582e
[ "BSD-3-Clause" ]
permissive
Teoroo-CMC/PiNN
e7ce5a021207b8b8ea03ff51757f4720626403fc
5717be6dab46c980d6c1e13949719e61b2ba335a
refs/heads/master
2023-09-04T07:50:57.893981
2023-08-18T07:24:11
2023-08-18T07:44:37
212,766,497
108
27
BSD-3-Clause
2019-12-17T11:49:10
2019-10-04T08:13:18
Python
UTF-8
Python
false
false
7,639
py
pinet.py
# -*- coding: utf-8 -*- import tensorflow as tf from pinn.utils import pi_named, connect_dist_grad from pinn.layers import CellListNL, CutoffFunc, \ PolynomialBasis, GaussianBasis, AtomicOnehot, ANNOutput class FFLayer(tf.keras.layers.Layer): """Feed-forward layer, a shortcut for constructing multiple layers ...
3221c5070e1ca770f5c6cd0be2a5f353f1c399b1
3a6a211ea0d32405497fbd6486c490bb147e25f9
/third_party/gsutil/gslib/__init__.py
6ab6c62afc6a187466c908a73e48bf41ab2642ce
[ "BSD-3-Clause", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
catapult-project/catapult
e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0
53102de187a48ac2cfc241fef54dcbc29c453a8e
refs/heads/main
2021-05-25T07:37:22.832505
2021-05-24T08:01:49
2021-05-25T06:07:38
33,947,548
2,032
742
BSD-3-Clause
2022-08-26T16:01:18
2015-04-14T17:49:05
HTML
UTF-8
Python
false
false
6,365
py
__init__.py
# -*- coding: utf-8 -*- # Copyright 2010 Google Inc. All Rights Reserved. # # 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 u...
257f1e2720255f3cff57a0bd0972de077bbc5ab7
21f35d6b81c94bd1ed07b923482c1a9e17423d4c
/examples/plot_1_exp.py
3d0253ce645f8324c6bb430f3e249557f15e3f94
[]
permissive
sphinx-gallery/sphinx-gallery
06378c2ecedf9cb306b3958327a1ba294c8d6725
4e298a6ccee1c4ff8b33cd65371127118f626032
refs/heads/master
2023-08-17T06:30:59.195322
2023-08-15T16:00:25
2023-08-15T16:00:25
25,860,190
382
235
BSD-3-Clause
2023-09-12T15:29:13
2014-10-28T08:41:46
Python
UTF-8
Python
false
false
1,088
py
plot_1_exp.py
""" Plotting the exponential function ================================= This example demonstrates how to import a local module and how images are stacked when two plots are created in one code block. The variable ``N`` from the example 'Local module' (file ``local_module.py``) is imported in the code below. Further, n...
1afd85b0baa3fa138ff10348a17febcae40556ab
3a3089cd8caba86cd4cb2bb043d2b42f91bf7647
/tests/test_key_utils.py
71ec16be9c046f5ca89fec757848dfe8c0a029d5
[ "Apache-2.0" ]
permissive
aws/aws-ec2-instance-connect-cli
ab17477afd5464695308dc41a5b178345577e78a
536a3e6ab02cfe62ddff7dcfaece279e67573fd7
refs/heads/master
2023-07-01T18:27:29.781011
2023-06-15T21:48:52
2023-06-15T21:48:52
141,064,336
156
49
Apache-2.0
2023-06-15T21:48:54
2018-07-15T23:03:03
Python
UTF-8
Python
false
false
7,261
py
test_key_utils.py
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file acc...
cd7eec6352b21a3c62a00d35f18e0f9358bb0f08
60d6b8501d0be546437b26a6ee1f9fab97ec3897
/platypush/schemas/system/_fan/__init__.py
d3433f3208c53e7d9e84e1f75c5d38c84951ea9f
[ "MIT" ]
permissive
BlackLight/platypush
68284a85b2f9eef303d26b04530f075927b5834a
446bc2f67493d3554c5422242ff91d5b5c76d78a
refs/heads/master
2023-08-31T21:01:53.519960
2023-08-29T22:05:38
2023-08-29T22:05:38
109,421,017
265
25
MIT
2023-09-01T23:15:49
2017-11-03T16:56:24
Python
UTF-8
Python
false
false
88
py
__init__.py
from ._model import Fan from ._schemas import FanSchema __all__ = ["Fan", "FanSchema"]
242c57808a8632394cf5a7873c90895bc0dd6faf
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/impl/gen/view_models/views/lobby/wt_event/tooltips/wt_event_ammunition_tooltip_view_model.py
b67683ffed1e10b3709647a5e461ba95ac6986a8
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
1,853
py
wt_event_ammunition_tooltip_view_model.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/impl/gen/view_models/views/lobby/wt_event/tooltips/wt_event_ammunition_tooltip_view_model.py from gui.impl.gen import R from frameworks.wulf import ViewModel class WtEventAmmunitionTooltipViewModel(ViewModel): __slots__ = (...
b84b594a5f97fcdba987f719156fb929d0108c0b
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-Contacts/PyObjCTest/test_cngroup.py
4b9fbd34b6077c65b5222275a2f28193b562d0a3
[ "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
288
py
test_cngroup.py
from PyObjCTools.TestSupport import TestCase, min_os_level import Contacts class TestCNGroup(TestCase): @min_os_level("10.11") def testConstants(self): self.assertIsInstance(Contacts.CNGroupIdentifierKey, str) self.assertIsInstance(Contacts.CNGroupNameKey, str)
1c09ad023d0c6e732131e18bf740f1dfa4d37a3c
1577e1cf4e89584a125cffb855ca50a9654c6d55
/pyobjc/pyobjc/pyobjc-framework-Quartz-2.5.1/PyObjCTest/test_cgdisplayconfiguration.py
aab8941c8a8d216e099eb9f79b1508d7aa1d6018
[ "MIT" ]
permissive
apple-open-source/macos
a4188b5c2ef113d90281d03cd1b14e5ee52ebffb
2d2b15f13487673de33297e49f00ef94af743a9a
refs/heads/master
2023-08-01T11:03:26.870408
2023-03-27T00:00:00
2023-03-27T00:00:00
180,595,052
124
24
null
2022-12-27T14:54:09
2019-04-10T14:06:23
null
UTF-8
Python
false
false
5,788
py
test_cgdisplayconfiguration.py
from PyObjCTools.TestSupport import * from Quartz.CoreGraphics import * try: long except NameError: long = int class TestCGDisplayConfiguration (TestCase): def testTypes(self): self.assertIsOpaquePointer(CGDisplayConfigRef) err, config = CGBeginDisplayConfiguration(None) self.as...
ad79aeaa79fbae6e35d4e1fc1d2a15c936f67906
c1ff870879152fba2b54eddfb7591ec322eb3061
/plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/deps/v8/tools/jsmin.py
236f511d447b228e9b5473dddba99fb93902397e
[ "ISC", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "Artistic-2.0", "NAIST-2003", "MIT", "BSD-3-Clause", "Zlib", "NTP", "LicenseRef-scancode-openssl", "ICU", "LicenseRef-scancode-unicode", "LicenseRef-scancode-unknown-license-reference", "bzip2-1.0.6", "SunPro", "LicenseRef-sca...
permissive
MTASZTAKI/ApertusVR
1a9809fb7af81c3cd7fb732ed481ebe4ce66fefa
424ec5515ae08780542f33cc4841a8f9a96337b3
refs/heads/0.9
2022-12-11T20:03:42.926813
2019-10-11T09:29:45
2019-10-11T09:29:45
73,708,854
188
55
MIT
2022-12-11T08:53:21
2016-11-14T13:48:00
C++
UTF-8
Python
false
false
11,383
py
jsmin.py
#!/usr/bin/python2.4 # Copyright 2012 the V8 project authors. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice...
5d495e04a2fcd969860bb1d5f47ebea3cae8c1b8
56a77194fc0cd6087b0c2ca1fb6dc0de64b8a58a
/applications/ExaquteSandboxApplication/python_scripts/WindGenerator/RandomMaterial.py
1375a8eba65b2e10efd46df281dc90433f616c96
[ "BSD-3-Clause" ]
permissive
KratosMultiphysics/Kratos
82b902a2266625b25f17239b42da958611a4b9c5
366949ec4e3651702edc6ac3061d2988f10dd271
refs/heads/master
2023-08-30T20:31:37.818693
2023-08-30T18:01:01
2023-08-30T18:01:01
81,815,495
994
285
NOASSERTION
2023-09-14T13:22:43
2017-02-13T10:58:24
C++
UTF-8
Python
false
false
6,724
py
RandomMaterial.py
import pyfftw from math import * import numpy as np from scipy.special import erfinv from scipy import misc from scipy.signal import convolve2d # from scipy.special import kv as Kv # from itertools import product import os, sys, csv from time import time from multiprocessing import Pool, Process # from joblib import P...
4acda681d69881e2ebff9fd618f84c4e2e50e3ee
2337351b228818e41be3002bd38f68f77c2aa074
/services/web/base/docinline.py
5cd7941ed422c92715f2c6e03dee72d494c99ef4
[ "BSD-3-Clause" ]
permissive
nocproject/noc
57d40c680a1499374463e472434f9595ed6d1374
6e6d71574e9b9d822bec572cc629a0ea73604a59
refs/heads/master
2023-08-31T01:11:33.544573
2023-08-30T17:31:11
2023-08-30T17:31:11
107,815,776
105
33
BSD-3-Clause
2023-07-31T07:57:45
2017-10-21T21:04:33
Python
UTF-8
Python
false
false
15,282
py
docinline.py
# --------------------------------------------------------------------- # DocInline # --------------------------------------------------------------------- # Copyright (C) 2007-2020 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- # Python modules from f...
67947e9837c168176436adcc4258adb9232f818b
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Sklearn_scipy_numpy/source/sklearn/utils/metaestimators.py
a131315320608da4c5d46941eb652fa0b98f8b5c
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
2,353
py
metaestimators.py
"""Utilities for meta-estimators""" # Author: Joel Nothman # Andreas Mueller # Licence: BSD from operator import attrgetter from functools import update_wrapper __all__ = ['if_delegate_has_method'] class _IffHasAttrDescriptor(object): """Implements a conditional property using the descriptor protocol. ...
f9e47a65e3f564e67e5ec509fbca86e6d1a47dad
6b3cc22e7b8d356b01d638dffc820322312da3e4
/pkg_pytorch/blendtorch/btt/file.py
29cdbb31542794b02daa5dea077db94b08d21f53
[ "MIT" ]
permissive
cheind/pytorch-blender
911961f760dde82a591f7cb26c0c648b120ad570
d2386df70e14c190669509e28009f46aed561c88
refs/heads/develop
2023-04-08T01:44:09.341680
2022-04-03T09:37:17
2022-04-03T09:37:17
169,447,021
509
43
MIT
2023-03-20T03:06:22
2019-02-06T17:32:38
Python
UTF-8
Python
false
false
4,628
py
file.py
import io import pickle import logging import numpy as np from pathlib import Path _logger = logging.getLogger("blendtorch") class FileRecorder: """Provides raw message recording functionality. `FileRecorder` stores received pickled messages into a single file. This file consists of a header and a seque...
0545c7c38adab0c1a993b8717f9e833dbbaa6609
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/FeedCyrenThreatInDepth/Scripts/CyrenThreatInDepthRandomHunt/CyrenThreatInDepthRandomHunt.py
36606bbba8af85c1f58004c5617e4707b67503d7
[ "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
3,166
py
CyrenThreatInDepthRandomHunt.py
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * from enum import Enum from random import randrange import yaml class FeedName(str, Enum): IP_REPUTATION = "ip_reputation" PHISHING_URLS = "phishing_urls" MALWARE_URLS = "malware_urls" MALWARE_FILES = ...
37a87e1a02790109b22c5da09f9e3c78efc8930f
b1a6c925f0d570463e46e7331ae95fdc0ef49211
/setup.py
ad6812afb77a13f52595078189242fb52c073791
[ "MIT" ]
permissive
EthanRosenthal/spacecutter
e35c55bb416bdaaae1e89fdb2fb360e7469e28c7
063fe875f5122063e6f616512cffd9ffa4df1974
refs/heads/master
2022-05-01T04:30:43.120191
2022-03-23T02:13:52
2022-03-23T02:13:52
160,105,172
112
13
MIT
2022-03-23T02:13:53
2018-12-02T23:05:01
Python
UTF-8
Python
false
false
1,233
py
setup.py
import os from setuptools import setup, find_packages from spacecutter import __version__ here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.md')) as f: long_description = f.read() with open(os.path.join(here, 'requirements.txt')) as f: requirements = f.read().splitlines...
c91f25679d754f837ba2fd83f9c323c0b14d784b
c268dcf432f3b7171be6eb307aafbe1bd173285a
/reddit2telegram/channels/~inactive/frontlinegirls/app.py
99df2a97921f488d1da05dd0837f66af7c254c7e
[ "MIT" ]
permissive
Fillll/reddit2telegram
a7162da2cc08c81bcc8078ea4160d4ee07461fee
5d8ee3097e716734d55a72f5a16ce3d7467e2ed7
refs/heads/master
2023-08-09T10:34:16.163262
2023-07-30T18:36:19
2023-07-30T18:36:19
67,726,018
258
205
MIT
2023-09-07T02:36:36
2016-09-08T17:39:46
Python
UTF-8
Python
false
false
163
py
app.py
#encoding:utf-8 subreddit = 'girlsfrontline+tacticaldolls' t_channel = '@frontlinegirls' def send_post(submission, r2t): return r2t.send_simple(submission)
75cf313857aaa2e89105d465741a73364d5aa23f
c75920a2967bcc5855fcd30abd581a1a527c11e6
/bin/bamsurgeon/mutableseq.py
a4428340590ddbc184bb1637a758a68956bf3ddd
[ "MIT" ]
permissive
adamewing/bamsurgeon
23f607c8316ae34c6774967ba5b84c0220e9cef1
1885dacdde61c0e18bb30fa6af1af6507e975e1c
refs/heads/master
2023-08-24T15:05:08.920899
2023-08-17T08:19:38
2023-08-17T08:19:38
4,290,471
216
86
MIT
2023-06-08T12:27:06
2012-05-10T22:18:31
Python
UTF-8
Python
false
false
2,756
py
mutableseq.py
#!i/usr/bin/env python ''' Methods for making mutations in a sequence ''' import operator from bamsurgeon.common import rc def dist(seq1, seq2): ''' Hamming distance ''' assert len(seq1) == len(seq2) if seq1 == seq2: return 0 return sum([c1 != c2 for c1, c2 in zip(seq1, seq2)]) class Muta...
3c795135d6c0abc06800e6098bfb43fa6bcd36ba
88c4d5b462998a9c0411a0243ab95ee05ffee60a
/tests/execution/test_defer.py
241a53b3745586b34468c5933a66ac4efaba7476
[ "MIT" ]
permissive
graphql-python/graphql-core
606f3f3d479d576a4bdcd7d7995c0fddc486282f
0c93b8452eed38d4f800c7e71cf6f3f3758cd1c6
refs/heads/main
2023-09-04T09:22:45.162575
2023-06-09T22:13:10
2023-06-09T22:13:10
143,207,933
259
101
MIT
2023-06-09T22:13:11
2018-08-01T20:57:07
Python
UTF-8
Python
false
false
28,846
py
test_defer.py
from asyncio import sleep from typing import Any, Dict, List, NamedTuple from pytest import mark, raises from graphql.error import GraphQLError from graphql.execution import ( ExecutionContext, ExecutionResult, ExperimentalIncrementalExecutionResults, IncrementalDeferResult, InitialIncrementalExec...
c820c97d25274268611320ea7dca055f47b0c84b
091e97bcfe5acc0635bd601aa8497e377b74d41a
/openshift/installer/vendored/openshift-ansible-3.9.40/roles/lib_vendored_deps/library/repoquery.py
ba608c4ddda63d1123a3a8cd231085dc4b4a009c
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
openshift/openshift-tools
d59b63778f25cb8fb3c7a0253afe22a173e72f9d
e342f6659a4ef1a188ff403e2fc6b06ac6d119c7
refs/heads/prod
2023-08-30T01:52:04.108978
2022-03-23T21:07:28
2022-03-23T21:07:28
36,827,699
170
254
Apache-2.0
2022-06-16T12:11:51
2015-06-03T20:09:22
Python
UTF-8
Python
false
false
36
py
repoquery.py
../../lib_utils/library/repoquery.py