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
d70ac3d09b70a6a5a1a071b9d8ed5bad7fdd3bc4
6146e33102797407ede06ce2daa56c28fdfa2812
/python/GafferUITest/FrameTest.py
076407c7619ede58440ae47a00dbfbe04fe9e68d
[ "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
3,084
py
FrameTest.py
########################################################################## # # Copyright (c) 2011-2012, John Haddon. All rights reserved. # Copyright (c) 2011-2012, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted prov...
75c417275544c5d9faf8c430ac76ad405b576c65
e8b38b8dfa348ff006eb197a7906ca8e491a23dc
/pyccel/ast/operators.py
d863a85d00d3d2aa679d646e47ce06ea687dd6e9
[ "MIT" ]
permissive
pyccel/pyccel
d79a81dbdff1172839a6a1227abfcc1f97e6c97b
1896b761ba662c90b14c195bbb6eb5cddc57cbfc
refs/heads/devel
2023-08-30T12:15:25.244401
2023-08-28T09:31:32
2023-08-28T09:31:32
100,463,736
307
39
MIT
2023-09-14T19:29:26
2017-08-16T07:59:14
Python
UTF-8
Python
false
false
35,482
py
operators.py
#------------------------------------------------------------------------------------------# # This file is part of Pyccel which is released under MIT License. See the LICENSE file or # # go to https://github.com/pyccel/pyccel/blob/master/LICENSE for full license details. # #----------------------------------------...
13e483275b169b32de20488e3b4307ff82a8b8c1
a3e2d421f94a8adf2c41ff1d093b5a06de1448d6
/server/pypi/packages/cmake-example/test.py
dd8e7dc66a8a0b82d7e074b0609c2260799fa921
[ "MIT" ]
permissive
chaquo/chaquopy
09ef057015a756ce9b862732477b2549562720b4
e09bbe6ca5efd859d484b01e30131ccc944aa2b6
refs/heads/master
2023-08-31T22:09:22.230601
2023-08-31T13:07:57
2023-08-31T13:07:57
95,140,462
607
121
MIT
2023-09-13T19:17:29
2017-06-22T17:33:02
Python
UTF-8
Python
false
false
416
py
test.py
import unittest class TestCmakeExample(unittest.TestCase): def test_basic(self): import cmake_example self.assertEqual(4, cmake_example.add(2, 2)) with self.assertRaisesRegexp(TypeError, "incompatible function arguments"): cmake_example.add("one", "two") self.assertEq...
5aef60e68f47c840dbe451b1f13345c1fc12d8f7
0d1af55a4299a17a4e44ab2cc7ccd7ff259747ac
/tests/scanner/scanner.py
d3dc4aa542e43dcaef8e552cef59446cd69f76c8
[ "Apache-2.0" ]
permissive
AdoptOpenJDK/openjdk-docker
551468f7d883bfdd0b64eec803c6c75a482321cb
e499808a1fd1d009c2855db9aee274add22f9aa0
refs/heads/master
2023-05-10T19:43:30.873783
2023-04-27T13:52:14
2023-04-27T13:52:14
104,258,329
442
285
Apache-2.0
2023-04-27T13:52:16
2017-09-20T19:21:31
Slim
UTF-8
Python
false
false
42,458
py
scanner.py
# ------------------------------------------------------------------------------ # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unles...
034c94f5cb075231c3ca0ffea5b510d47a7805bd
fce81b804cae23f525a5ad4370b684bf0dc531a5
/tools/ci/push_docs_to_repo.py
0471e38246e3215ee91090f545d67d354a1044c4
[ "Zlib", "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
numpy/numpy
ba2abcc1d2d46affbb6aabe5aed6407b4b57507e
dc2ff125493777a1084044e6cd6857a42ee323d4
refs/heads/main
2023-09-05T10:10:52.767363
2023-09-04T18:03:29
2023-09-04T18:03:29
908,607
25,725
11,968
BSD-3-Clause
2023-09-14T21:26:09
2010-09-13T23:02:39
Python
UTF-8
Python
false
false
2,596
py
push_docs_to_repo.py
#!/usr/bin/env python3 import argparse import subprocess import tempfile import os import sys import shutil parser = argparse.ArgumentParser( description='Upload files to a remote repo, replacing existing content' ) parser.add_argument('dir', help='directory of which content will be uploaded') parser.add_argumen...
9b6bbc7b2e3e8430749a0010ee9e371d539997c9
4c4deee160ee4a3056b2973f6202e5cbaafb5925
/tests/functional/directory/test_proxy.py
371e87414740084cd374061021d35adcef705e16
[ "AGPL-3.0-only", "LGPL-3.0-only" ]
permissive
open-io/oio-sds
b9bc7cec283838a59b83b5279cb181cded69034f
08abd65aac86e47cf324826487ab9b475e014938
refs/heads/master
2023-09-05T05:09:29.653325
2023-08-01T16:37:37
2023-08-31T16:05:19
32,169,193
663
121
MIT
2022-03-04T13:08:03
2015-03-13T17:06:25
Python
UTF-8
Python
false
false
1,218
py
test_proxy.py
# Copyright (C) 2018 OpenIO SAS, as part of OpenIO SDS # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 3.0 of the License, or (at your option) any later version. # # Th...
653be7576bca6574e38f581a43d0275caea23cc9
d08cf46d3e16ab8e6a958731168469ba38daf069
/demo/poisson1D.py
126ff98eb63f178d558ad735a5b50d7fc1912518
[ "BSD-2-Clause" ]
permissive
spectralDNS/shenfun
ce808edc5258c896f2cccfbd88e67153e3f621c9
bcda39d8d8e4741df1cafe719d81733cc1024def
refs/heads/master
2023-07-27T20:29:57.075970
2023-07-11T12:33:04
2023-07-11T12:33:04
79,914,066
190
46
BSD-2-Clause
2022-05-11T19:10:33
2017-01-24T13:29:02
Python
UTF-8
Python
false
false
2,768
py
poisson1D.py
r""" Solve the Poisson equation in 1D .. math:: -\nabla^2 u(x) = f(x), \quad x \in [a, b] where :math:`a < b`. The equation to solve is .. math:: -(\nabla^2 u, v) = (f, v) and we need two boundary conditions. These boundary conditions can be any combination of Dirichlet or Neumann, specified on either sid...
9dd49e156892e28636d9e9708c9fdd3dc22bee6c
ffdc77394c5b5532b243cf3c33bd584cbdc65cb7
/tests/st/ops/gpu/test_instancenorm2d.py
fc2af91a23ea51d7a8709541f0fca7f960fb236c
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "MPL-1.0", "OpenSSL", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause-Open-MPI", "MIT", "MPL-2.0-no-copyleft-exception", "NTP", "BSD-3-Clause", "GPL-1.0-or-later", "0BSD", "MPL-2.0", "LicenseRef-scancode-f...
permissive
mindspore-ai/mindspore
ca7d5bb51a3451c2705ff2e583a740589d80393b
54acb15d435533c815ee1bd9f6dc0b56b4d4cf83
refs/heads/master
2023-07-29T09:17:11.051569
2023-07-17T13:14:15
2023-07-17T13:14:15
239,714,835
4,178
768
Apache-2.0
2023-07-26T22:31:11
2020-02-11T08:43:48
C++
UTF-8
Python
false
false
2,377
py
test_instancenorm2d.py
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
a12d9dec752772afa2a55829420b239d5644fd9f
65078b8087c2040cf0188e2550ea298d20518f62
/src/bentoml/grpc/types.py
942aa44db0f686519ef483354e92ff6b6b2f17a9
[ "Apache-2.0" ]
permissive
bentoml/BentoML
20ab6f8351b1c5cd116d6d60a28098246a1581b3
4a14f073d8a3e700aff29483b17ea053058c0c63
refs/heads/main
2023-09-05T16:03:08.909692
2023-09-04T18:54:33
2023-09-04T18:54:33
178,976,529
5,712
732
Apache-2.0
2023-09-14T20:07:54
2019-04-02T01:39:27
Python
UTF-8
Python
false
false
3,246
py
types.py
# pragma: no cover """ Specific types for BentoService gRPC server. """ from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: import typing as t from functools import partial import grpc from grpc import aio from bentoml.grpc.v1.service_pb2 import Request from...
f402ad4897823824f14d4b27eb03888a384b62ee
a53076722d9696422b2d9f8b6166c21ed7876607
/misc/linkify_changelog.py
9656677f73c22c4863416683e89e3cb32bcc2361
[ "BSD-3-Clause" ]
permissive
mahmoud/boltons
e22ef2b596d64240a2cbd924aedaa8f9e17f0c8c
46599bc0d498dd8adc3aea833ce1445feed349dd
refs/heads/master
2023-09-04T07:43:37.357470
2023-05-06T17:25:38
2023-05-06T17:25:38
8,307,391
6,607
449
NOASSERTION
2023-09-07T02:09:03
2013-02-20T06:17:12
Python
UTF-8
Python
false
false
1,367
py
linkify_changelog.py
from __future__ import print_function import re import sys BASE_RTD_URL = 'http://boltons.readthedocs.org/en/latest/' BASE_ISSUES_URL = 'https://github.com/mahmoud/boltons/issues/' _issues_re = re.compile(r'#(\d+)') _member_re = re.compile(r'((\w+utils)\.[a-zA-Z0-9_.]+)') URL_MAP = {} def sub_member_match(match): ...
8e21580cc115d18c614a983b597fd58a35df8a23
a3559134386a4c00ab910b6da469fd566f7bc660
/examples/keystore/main.py
a81fb504e8d342cf01cf7a05db4686f04d28cf6d
[ "OLDAP-2.8" ]
permissive
jnwatson/py-lmdb
a3fd6c39464a9cfbe4daf3c39646b306103c678e
57c692050b8d4f67ff7bcdec7acf38598de7c295
refs/heads/master
2023-04-24T12:15:09.041804
2023-04-06T06:32:04
2023-04-06T06:32:04
8,014,135
285
46
NOASSERTION
2023-04-06T06:20:40
2013-02-04T19:10:07
C
UTF-8
Python
false
false
622
py
main.py
from __future__ import absolute_import import webbrowser import twisted.internet.reactor import lmdb import keystore.lmdb import keystore.webapi def main(): port = 9999 interface = '127.0.0.1' url = 'http://%s:%d/' % (interface, port) env = lmdb.open('/tmp/foo') reactor = twisted.internet.react...
85166de0b04cd1e463709d886d815e354752177d
04142fdda9b3fb29fb7456d5bc3e504985f24cbe
/tests/test_cnn/test_context_block.py
864cb417937603d162235c4a72b4eff09b151518
[ "Apache-2.0" ]
permissive
open-mmlab/mmcv
419e301bbc1d7d45331d67eccfd673f290a796d5
6e9ee26718b22961d5c34caca4108413b1b7b3af
refs/heads/main
2023-08-31T07:08:27.223321
2023-08-28T09:02:10
2023-08-28T09:02:10
145,670,155
5,319
1,900
Apache-2.0
2023-09-14T02:37:16
2018-08-22T07:05:26
Python
UTF-8
Python
false
false
2,204
py
test_context_block.py
# Copyright (c) OpenMMLab. All rights reserved. import pytest import torch from mmcv.cnn.bricks import ContextBlock def test_context_block(): with pytest.raises(AssertionError): # pooling_type should be in ['att', 'avg'] ContextBlock(16, 1. / 4, pooling_type='unsupport_type') with pytest.rai...
310b50818bc77e547af0d5a602a9c9bcc3505de6
1e528494a929deada984822438b3ab569762e6c6
/rx/concurrency/__init__.py
c546822d68bd30343d24b9e0494c9af6c679b1ab
[ "MIT" ]
permissive
Sprytile/Sprytile
a0233a00a243f263691921d7e1f6af05c5eb5442
6b68d0069aef5bfed6ab40d1d5a94a3382b41619
refs/heads/master
2022-07-10T06:54:01.003723
2020-09-26T07:25:35
2020-09-26T07:25:35
72,276,917
860
91
MIT
2022-07-07T23:37:19
2016-10-29T09:47:09
Python
UTF-8
Python
false
false
1,130
py
__init__.py
from .scheduleditem import ScheduledItem from .immediatescheduler import ImmediateScheduler, immediate_scheduler from .currentthreadscheduler import CurrentThreadScheduler, \ current_thread_scheduler from .virtualtimescheduler import VirtualTimeScheduler from .timeoutscheduler import TimeoutScheduler, timeout_sche...
2c03d9e004f463da65c7f09ab9544195e475ad9b
300a5e74fda0966941faf72646e38f3be54d77b5
/library/test/is31fl3730_test.py
36085dfa2ae6821941e691205de252d15403a657
[ "MIT" ]
permissive
pimoroni/scroll-phat
c79f5f38a07546e5c82ee6546d9d09d85e20af36
5a0a47f6e4faac649d89054135baa542889ff3fa
refs/heads/master
2023-08-05T22:50:09.221052
2023-05-25T12:46:19
2023-05-25T12:46:19
46,125,454
119
76
MIT
2023-07-20T13:10:50
2015-11-13T14:08:48
Python
UTF-8
Python
false
false
2,196
py
is31fl3730_test.py
import unittest from scrollphat.IS31FL3730 import IS31FL3730, I2cConstants # Fakes i2c to allow testing off-device # - May return canned data (stubbing) # - May record method calls (mocking) class FakeI2c: def __init__(self): self.write_i2c_block_data_calls = [] pass def write_i2c_block_data(...
83ae29b19b987bc6dd06c467dff2f5d9afff9b57
09d0d2143026b731ad3c906581291a3c0a83e849
/src/poliastro/twobody/propagation/cowell.py
26b8af2df65ca516b65885d7fe41227f53bd13a0
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
poliastro/poliastro
5fbfeddd44ba5af234452d42f56bbd47c90a8bc4
55e96432b27301c5dffb4ef6b4f383d970c6e9c0
refs/heads/main
2023-08-21T17:20:58.631529
2023-05-07T07:54:00
2023-05-07T07:54:00
11,178,845
814
357
MIT
2023-08-29T10:03:59
2013-07-04T14:14:45
Python
UTF-8
Python
false
false
2,029
py
cowell.py
import sys from astropy import units as u from poliastro.core.propagation import cowell from poliastro.core.propagation.base import func_twobody from poliastro.twobody.propagation.enums import PropagatorKind from poliastro.twobody.states import RVState from ._compat import OldPropagatorModule sys.modules[__name__]....
7549e10c6a908e57167bfac141c1c81b43f36d00
6f36df6219f8e50374068bb4b3e1a5387c7a2f34
/_setup/build_docs.py
acf634904c19da95124f5b066bc3dd6a4ff56e8b
[ "NIST-PD" ]
permissive
usnistgov/fipy
0a3db715fea452ae710eea3999d9cd42dfe76fe7
fdc17193bc293da7511be9021e6d4766757e1966
refs/heads/master
2023-08-31T21:59:36.611448
2023-06-27T16:28:58
2023-06-27T16:28:58
23,316,495
444
171
NOASSERTION
2023-09-06T19:21:19
2014-08-25T14:27:58
Python
UTF-8
Python
false
false
2,786
py
build_docs.py
from distutils.core import Command import os __all__ = ["build_docs"] class build_docs(Command): description = "build the FiPy documentation" # List of option tuples: long name, short name (None if no short # name), and help string. user_options = [('pdf', None, "compile the PDF variant of the docum...
98f831f6a4aaf6e4d1597151a4fc94fb6746aa96
1ab5036a95066a18d889aa1186fd1609ff4b5923
/petl/test/io/test_sqlite3.py
5e9e72b46c54d44c2cd003355ea88aee8f89b68b
[ "MIT" ]
permissive
petl-developers/petl
b52d6ee6e0ab16a1ba17f98a4aa2f791d93ba796
e829532e2ed350d00b96680d2d6774dec4a7f2e0
refs/heads/master
2023-08-30T02:36:09.816551
2023-08-22T15:07:19
2023-08-22T15:22:53
2,233,194
663
109
MIT
2023-08-22T15:22:55
2011-08-19T09:51:03
Python
UTF-8
Python
false
false
4,804
py
test_sqlite3.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, division from tempfile import NamedTemporaryFile import sqlite3 from petl.test.helpers import ieq from petl.io.db import fromdb, todb, appenddb def test_fromsqlite3(): # initial data f = NamedTemporaryFile(delete=False) f...
2b24f423b58ccdc071aa333fbf8597a2124bbbdf
bca3d1e208a5d0e3365a8a1766a0bfd09932367b
/tests/test_iterators.py
17d6846aaffa2c9c90b17d191beb2b2bcf4ab503
[ "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
trailofbits/polyfile
998f57d9ca015248019ec55c37f43fa743df8d6c
a116740e4baa5765699ca6b5049e9c41d262c325
refs/heads/master
2023-09-02T07:33:10.380904
2023-05-24T23:48:39
2023-05-24T23:48:39
193,975,534
303
18
Apache-2.0
2023-09-05T08:27:51
2019-06-26T20:48:20
Python
UTF-8
Python
false
false
1,258
py
test_iterators.py
import random from typing import Iterator from unittest import TestCase from polyfile.iterators import LazyIterableSequence, LazyIterableSet, unique class TestIterators(TestCase): @staticmethod def random_sequence(min_len: int = 0, max_len: int = 1000) -> Iterator[str]: seq_length = random.randint(mi...
39feee5e45db39f08963061a31c3f6424ec095dc
5b0ff689a3e14f42bdf688864cae40c931a5f685
/msa/modulos/apertura/constants.py
2d278d7676dd3dfcb4a526cc3b97e7bfdf424a1f
[]
no_license
prometheus-ar/vot.ar
cd7012f2792a2504fb7f0ee43796a197fc82bd28
72d8fa1ea08fe417b64340b98dff68df8364afdf
refs/heads/2017-ago-salta
2021-01-02T22:19:41.591077
2017-08-25T11:55:49
2017-08-25T11:55:49
37,735,555
171
110
null
2020-06-30T13:33:49
2015-06-19T17:15:52
JavaScript
UTF-8
Python
false
false
626
py
constants.py
"""Constantes para el modulo de apertura.""" TEXTOS = ( "muchas_gracias", "introduzca_acta_apertura", "puede_retirar_boleta", "no_retirar_boleta", "agradecimiento", "aguarde_unos_minutos", "aceptar", "cancelar", "retire_acta_apertura", "confirmar", "acta_contiene_informacion", "volver_al_inicio", "...
2850a2a63d500349e7e955f4acf95828b005193d
f3e2559f9f03135ef71a9573932d6e09360a6a38
/miniupnpc/setup.py
bbb102e2663f778a681df08d91bc6ad52783804e
[ "BSD-3-Clause" ]
permissive
miniupnp/miniupnp
75751b7513dbf7dbf9aef2be7c3f49b459fdaee2
fb5c328a5e8fd57a3ec0f5d33915377a5d3581f3
refs/heads/master
2023-08-22T19:12:55.862346
2023-08-06T22:50:37
2023-08-06T22:50:37
2,435,778
1,246
475
BSD-3-Clause
2023-08-06T22:50:38
2011-09-22T08:25:20
C
UTF-8
Python
false
false
1,149
py
setup.py
#! /usr/bin/env python # vim: tabstop=8 shiftwidth=8 expandtab # $Id: setup.py,v 1.14 2020/04/06 10:23:02 nanard Exp $ # the MiniUPnP Project (c) 2007-2021 Thomas Bernard # https://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/ # # python script to build the miniupnpc module under unix # # Uses MAKE environment va...
877766bc25a42f31d47e921a55c9f651493b5072
3a24f63c8742560993b5465b26339e7c0ed05a27
/crates/ruff/resources/test/fixtures/pyflakes/F821_0.py
82c098db1c8d891ded67acb6971e479d5feca1dd
[ "BSD-3-Clause", "0BSD", "LicenseRef-scancode-free-unknown", "GPL-1.0-or-later", "MIT", "Apache-2.0" ]
permissive
astral-sh/ruff
8f1de11263474c6293454b02c728df2f113801db
82410524d9612f11387c2675a03869d489bb97ef
refs/heads/main
2023-08-02T23:20:34.351174
2023-08-02T21:32:43
2023-08-02T21:32:43
523,043,277
2,264
122
MIT
2023-09-14T20:08:59
2022-08-09T17:17:44
Rust
UTF-8
Python
false
false
2,320
py
F821_0.py
def get_name(): return self.name def get_name(): return (self.name,) def get_name(): del self.name def get_name(self): return self.name x = list() def randdec(maxprec, maxexp): return numeric_string(maxprec, maxexp) def ternary_optarg(prec, exp_range, itr): for _ in range(100): ...
93fb1e8d4ea4a42863555a1383900a011a08a350
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/EgammaAnalysis/ElectronTools/python/calibratedElectronsRun2_cfi.py
c3f7c180dec8880d3fd56342ea6540a589dbab4d
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
2,291
py
calibratedElectronsRun2_cfi.py
import FWCore.ParameterSet.Config as cms correctionType = "80Xapproval" files = {"Prompt2015":"EgammaAnalysis/ElectronTools/data/ScalesSmearings/74X_Prompt_2015", "76XReReco" :"EgammaAnalysis/ElectronTools/data/ScalesSmearings/76X_16DecRereco_2015_Etunc", "80Xapproval" : "EgammaAnalysis/ElectronTools...
5c40c48a25d3b92de02f849009b1f60de2d171da
d818edebb14d90c0b82186fb80e547e41a66e339
/src/Python/Filtering/PerlinNoise.py
77e0abfa721fe89cbedf7c192ec687f818db0332
[ "Apache-2.0" ]
permissive
Kitware/vtk-examples
900de7c3cbbb42c014d2bc1ae70fe9783df01997
e696d92dcdc452cbde5df77d06877404542a3aae
refs/heads/master
2023-09-05T17:18:32.943962
2023-09-05T06:20:11
2023-09-05T06:20:11
281,112,041
162
64
Apache-2.0
2023-01-26T00:37:52
2020-07-20T12:36:50
C++
UTF-8
Python
false
false
1,761
py
PerlinNoise.py
#!/usr/bin/env python # noinspection PyUnresolvedReferences import vtkmodules.vtkInteractionStyle # noinspection PyUnresolvedReferences import vtkmodules.vtkRenderingOpenGL2 from vtkmodules.vtkCommonColor import vtkNamedColors from vtkmodules.vtkCommonDataModel import vtkPerlinNoise from vtkmodules.vtkFiltersCore impo...
1d2ff8c540cbea4ca53395552c246d61342fb877
5142e81b50d15202ff79a34c9b888f18d2baec27
/plotnine/facets/__init__.py
9be638ce416b81a746e24d70ef37413988e4b4e1
[ "MIT" ]
permissive
has2k1/plotnine
03c0e979b6b05b5e92cb869cca903cfce20988dc
ef5650c4aabb29dcfe810043fb0fc8a4ea83f14b
refs/heads/main
2023-08-30T22:17:07.835055
2023-08-08T07:57:53
2023-08-08T07:57:53
89,276,692
3,719
233
MIT
2023-08-08T13:09:24
2017-04-24T19:00:44
Python
UTF-8
Python
false
false
392
py
__init__.py
""" Facets """ from .facet_grid import facet_grid from .facet_null import facet_null from .facet_wrap import facet_wrap from .labelling import ( as_labeller, label_both, label_context, label_value, labeller, ) __all__ = ( "facet_grid", "facet_null", "facet_wrap", "label_value", ...
f0fe31dbbd0a55b703e3e6b637f0042777c43e5a
e1ea5f615a2ee3130926cdb506d4804742bc9fee
/tests/gold_tests/forward_proxy/forward_proxy.test.py
71bcc87630c19ab51a41d1c2343ccacaf477e2a0
[ "TCL", "LicenseRef-scancode-proprietary-license", "BSD-3-Clause", "LicenseRef-scancode-openssl", "LicenseRef-scancode-ssleay-windows", "ISC", "OpenSSL", "MIT", "HPND", "Apache-2.0", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain", "Licen...
permissive
apache/trafficserver
1507804151ab2c2ac50012fdecee6200f2c52c1f
c5d7b19d60646de902fc847f80f57030779a4bfc
refs/heads/master
2023-08-31T20:10:00.381763
2023-08-31T19:15:34
2023-08-31T19:15:34
356,066
1,570
981
Apache-2.0
2023-09-14T21:04:36
2009-10-31T08:00:10
C++
UTF-8
Python
false
false
4,904
py
forward_proxy.test.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");...
912867eaa54dd5367a60384fc33dac48cc46e2b9
2ed0210bc41f848a0e67fce3ad6b7a3e85228261
/src/pykeen/hpo/__init__.py
6ac6b50862ef812553972021e17c2b8a1510fe08
[ "MIT" ]
permissive
pykeen/pykeen
f7483445bd99d3a404bc4ff42538550d56702b66
5ff3597b18ab9a220e34361d3c3f262060811df1
refs/heads/master
2023-08-25T20:29:55.021639
2023-08-24T20:05:20
2023-08-24T20:05:20
242,672,435
1,308
199
MIT
2023-09-13T18:18:36
2020-02-24T07:26:03
Python
UTF-8
Python
false
false
25,342
py
__init__.py
# -*- coding: utf-8 -*- """The easiest way to optimize a model is with the :func:`pykeen.hpo.hpo_pipeline` function. All of the following examples are about getting the best model when training :class:`pykeen.models.TransE` on the :class:`pykeen.datasets.Nations` dataset. Each gives a bit of insight into usage of the...
847cc979b61de7d7f0536c6a2b1e51770a20505d
b5ce6908490cfb8e6a1e1cbe4745d675122ddce0
/questions/restore-ip-addresses/Solution.py
ad926eb01c689049e406b86513b398a510227014
[ "MIT" ]
permissive
franklingu/leetcode-solutions
8895910f13208e1d8e604100d84c2dd35684cde4
7ad7e5c1c040510b7b7bd225ed4297054464dbc6
refs/heads/master
2023-01-09T01:34:08.097518
2023-01-02T02:05:35
2023-01-02T02:05:35
43,345,677
155
66
MIT
2020-10-02T03:41:36
2015-09-29T04:54:38
Python
UTF-8
Python
false
false
2,329
py
Solution.py
""" Given a string s containing only digits, return all possible valid IP addresses that can be obtained from s. You can return them in any order. A valid IP address consists of exactly four integers, each integer is between 0 and 255, separated by single dots and cannot have leading zeros. For example, "0.1.2.201" an...
e01a1e3106b36f5201f5f3e55c485052641118dc
60f3761284aa01d309446850bf9b87e0bf32ad4c
/braintree/merchant_account/merchant_account.py
13f81cf26f17d896e754e763a1f8d157f6b38f80
[ "MIT" ]
permissive
braintree/braintree_python
e8cc05016e65a79ad6b40c3fef557a196dbfce44
673f70a60d1db03d633f0758b5b2d40a28c79f67
refs/heads/master
2023-09-04T15:38:50.037101
2023-08-29T22:51:14
2023-08-29T22:51:14
579,729
212
119
MIT
2023-06-15T01:05:55
2010-03-25T21:29:00
Python
UTF-8
Python
false
false
1,759
py
merchant_account.py
from braintree.configuration import Configuration from braintree.resource import Resource from braintree.merchant_account import BusinessDetails, FundingDetails, IndividualDetails class MerchantAccount(Resource): class Status(object): Active = "active" Pending = "pending" Suspended = "susp...
0dd07270bcdc22bba5210cb0acf1683ae4a860be
52107637d2687db30f168ba15ffd1e1e534f4cb4
/tests/datasets/test_acousticbrainz_genre.py
0ddf024d227d09f449b514800b13e23e506a6120
[ "BSD-3-Clause" ]
permissive
mir-dataset-loaders/mirdata
9be10e0201b08abf51fc72338ccaaacc8216145b
496eb4a9120aa16ff6963792f0c8b738a0c3f310
refs/heads/master
2023-05-07T13:15:16.517429
2023-03-27T13:54:37
2023-03-27T13:54:37
170,765,267
297
65
BSD-3-Clause
2023-08-05T22:48:48
2019-02-14T22:11:33
Python
UTF-8
Python
false
false
4,957
py
test_acousticbrainz_genre.py
import os import shutil from mirdata import download_utils from mirdata.datasets import acousticbrainz_genre from tests.test_utils import run_track_tests def test_track(): default_trackid = "tagtraum#validation#be9e01e5-8f93-494d-bbaa-ddcc5a52f629#2b6bfcfd-46a5-3f98-a58f-2c51d7c9e960#trance########" data_hom...
666b35da46d5e4584dd3dfd71837db46b7417ac7
90f9bdb537573ae3081e2a93e05cfc93b5f99612
/LoopStructural/analysis/__init__.py
899d41accb58666c860d0e3cf330a76c8be913fa
[ "MIT" ]
permissive
Loop3D/LoopStructural
d0fa201d9ff8d99fb47006e3def0fbfb30ece5c4
c6175623450dbc79ed06ed8d8bbff21b63fc8b4c
refs/heads/master
2023-06-25T21:17:47.595673
2023-06-19T00:40:20
2023-06-19T00:40:20
181,411,760
123
21
MIT
2023-06-19T00:49:32
2019-04-15T04:25:27
Python
UTF-8
Python
false
false
546
py
__init__.py
""" Analysis ======== Various tools for analysing loopstructural models, including calculating fault intersections and fault toplogies """ from ..utils import getLogger import LoopStructural logger = getLogger(__name__) if LoopStructural.experimental: logger.warning( "LoopStructural.analysis is experiment...
d85b11e8e2a59452b86b286381226d3d078c8bac
bed34365a9dab825fd9f4a4ff1b0863f441266ac
/neutron/db/models/dns.py
651a04275ec5df95754c616c0474414e3c74bbc7
[ "Apache-2.0" ]
permissive
openstack/neutron
0913ee3cd69d5bdb9c10aa084d4e1803abee320c
dde31aae392b80341f6440eb38db1583563d7d1f
refs/heads/master
2023-08-31T13:09:41.831598
2023-08-31T11:37:30
2023-08-31T11:37:30
2,400,289
1,174
1,325
Apache-2.0
2022-06-29T08:00:05
2011-09-16T16:04:08
Python
UTF-8
Python
false
false
5,200
py
dns.py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
6fd017be79633bc0cfa1be483d9f56306122c7f5
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/Mastering_Probabilistic_Graphical_Models_Using_Python/pgmpy/tests/test_models/test_JunctionTree.py
01042a6ed4843267e2a638238e0a5bc143234e97
[ "MIT" ]
permissive
burakbayramli/books
9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0
5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95
refs/heads/master
2023-08-17T05:31:08.885134
2023-08-14T10:05:37
2023-08-14T10:05:37
72,460,321
223
174
null
2022-10-24T12:15:06
2016-10-31T17:24:00
Jupyter Notebook
UTF-8
Python
false
false
1,530
py
test_JunctionTree.py
from pgmpy.models import JunctionTree from pgmpy.tests import help_functions as hf import unittest class TestJunctionTreeCreation(unittest.TestCase): def setUp(self): self.graph = JunctionTree() def test_add_single_node(self): self.graph.add_node(('a', 'b')) self.assertListEqual(self....
c5d88a3f9609d934a391b53ff64fe869cc632c95
eb752c0386a217c95ce640bfb78f627dc56f2cad
/tests/test_endpoints.py
c9d71a30d8c7d8931fe2e6895b41050332607eb5
[ "MIT" ]
permissive
MikeWooster/api-client
8cacad002406766e85f507f2a66a6374efcf8c69
380c28c9d28f05139e4d41aab1ea7d2729cbbbe1
refs/heads/master
2023-02-08T08:27:56.599632
2022-08-10T17:20:51
2022-08-10T17:20:51
170,163,866
153
41
MIT
2023-02-02T18:43:51
2019-02-11T16:39:57
Python
UTF-8
Python
false
false
2,082
py
test_endpoints.py
import os import pytest from apiclient import endpoint @endpoint(base_url="http://foo.com") class Endpoint: search = "search" integer = 3 search_id = "search/{id}" _protected = "protected" @endpoint(base_url="http://foo.com///") class EndpointWithExtraSlash: search = "///search" class Endpoi...
026975265d317e6008383b39429b27fa8deee35c
cfa35dc2ea93ee0eceb2399a9e6112e987579c09
/stonesoup/hypothesiser/categorical.py
669a7f475eb7dda8e2731825bf83ad19a4c76595
[ "LicenseRef-scancode-proprietary-license", "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "Python-2.0", "LicenseRef-scancode-secret-labs-2011" ]
permissive
dstl/Stone-Soup
227e6a9e6fbdceca14af3f0259f311ec74095597
f24090cc919b3b590b84f965a3884ed1293d181d
refs/heads/main
2023-09-01T14:33:14.626428
2023-09-01T11:35:46
2023-09-01T11:35:46
98,420,803
315
126
MIT
2023-09-14T14:55:34
2017-07-26T12:34:28
Python
UTF-8
Python
false
false
3,818
py
categorical.py
from .base import Hypothesiser from ..base import Property from ..measures import ObservationAccuracy from ..predictor.categorical import HMMPredictor from ..types.detection import MissedDetection from ..types.hypothesis import SingleProbabilityHypothesis from ..types.multihypothesis import MultipleHypothesis from ..ty...
21c49a035e7518ea567a5c8083a8d1d6136d7a49
5c363c50c54175a982330ec888401b3e394373ab
/examples/training_scripts/height_with_cost/train_height_with_cost.py
bbb844ef6d6478406ce74d46a92db9d923b5b36c
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
awslabs/syne-tune
b14fb008f63def6a172bea6cc451f4e1906647f5
c35686e1b5947d45384fd1d41a44e013da53ef43
refs/heads/main
2023-08-14T14:21:48.995716
2023-08-03T12:57:13
2023-08-03T12:57:13
417,499,108
313
47
Apache-2.0
2023-09-14T14:06:54
2021-10-15T12:54:45
Python
UTF-8
Python
false
false
4,189
py
train_height_with_cost.py
# Copyright 2021 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://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
80d76bd7381bec237d63a7f6fffe7a3f02b5ed98
767dae79df18f9868855774464d08864a1d8629b
/protonfixes/gamefixes/242640.py
c70822ade5ec6ab21c8d77ec152227e57c6673bf
[ "BSD-2-Clause" ]
permissive
simons-public/protonfixes
05cd9c2c37c35ce56ec4c3cdcdba375c6eadf530
681411ba8ceb5d2d790e674eb7a5b98951d426e6
refs/heads/master
2022-11-16T04:16:32.764931
2022-11-15T00:24:24
2022-11-15T00:24:24
150,211,569
245
75
NOASSERTION
2022-11-15T00:24:25
2018-09-25T05:20:02
Python
UTF-8
Python
false
false
486
py
242640.py
""" Game fix for Styx: Master of Shadows """ #pylint: disable=C0103 from protonfixes import util def main(): """ Install dotnet40 Works, but gives a popup twice at the beginning of launch: 'Unable to find a version of the runtime to run this application. (OK) """ # https://github.com/ValveSof...
76667c5e0e94e1efaaa39849d3c234d9f2b2eff4
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/CarbonBlackProtect/Scripts/CBPFindRule/CBPFindRule_test.py
32d105d3dae78729b13a206a14f8f2f1a1f9b256
[ "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
746
py
CBPFindRule_test.py
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 def test_cbp_find_rule(mocker): from CBPFindRule import cbp_find_rule args = {"hash": "some_hash"} rule = [{"Type": 3, "Contents": [{"hash": "some_hash", "fileState": 1}]}] mocker.patch.object(demisto, 'executeC...
978bcf394bcbe1c1f0b34ed0b45836d133fbedd0
bf001de41a72db2f0fc957fd4ba24a5b38ef1db5
/packages/camphr/camphr/tokenizer/juman/__init__.py
a17029a62398b62fb2a20a108b86457ebbc0790e
[ "Apache-2.0" ]
permissive
PKSHATechnology-Research/camphr
b8e6e896238d0ea2c04db9709f6e68445e66cbee
d464d079e71fed0d53f78d45a42c1fdf6637c10a
refs/heads/master
2023-08-05T14:39:46.209210
2021-08-18T06:06:51
2021-08-18T06:06:51
239,420,805
373
23
Apache-2.0
2022-12-09T05:56:02
2020-02-10T03:39:58
Python
UTF-8
Python
false
false
5,083
py
__init__.py
"""The package juman defines Japanese spacy.Language with JUMAN tokenizer.""" from dataclasses import dataclass from camphr.doc import Doc, UserDataProto import itertools import distutils.spawn from typing import Any, Callable, Dict, Iterator, List, Optional from typing_extensions import Literal from camphr.serde imp...
20eb1f1ae0787830101c73542659053f904f1cc8
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/completion/className/alreadyImportedModulesPreference/alreadyImportedModulesPreference.py
54fc8eda0a2a3034e70c3213611a8f2acd83d374
[ "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
28
py
alreadyImportedModulesPreference.py
from pkg3 import B A<caret>
b134774d45d80b19ff3e533a77c6f76cb84f6690
3079aff5691cc3452c86c9a76c0309bf66c920a1
/python/cufinufft/tests/test_array_ordering.py
d42fd8fa717c43037a582d77a350d4eea02eaa79
[ "Apache-2.0" ]
permissive
flatironinstitute/finufft
dd332853a8900b9ea8a5a6ad21a3842f07bc9fc8
0e5f3f3b3ec07ac8b7e7ccd26d88d2c912c1b9a6
refs/heads/master
2023-08-30T12:19:36.644780
2023-08-22T11:44:39
2023-08-23T10:08:35
78,682,506
209
80
NOASSERTION
2023-09-08T21:51:05
2017-01-11T21:42:14
C++
UTF-8
Python
false
false
1,592
py
test_array_ordering.py
import pytest import numpy as np import pycuda.autoinit # NOQA:401 import pycuda.gpuarray as gpuarray from cufinufft import Plan import utils def test_type2_ordering(dtype=np.float32, shape=(16, 16, 16), M=4096, tol=1e-3): complex_dtype = utils._complex_dtype(dtype) k = utils.gen_nu_pts(M).astype(dtype) ...
f8225930346faaadd6e7e65cf25d3ec28c91ee66
1658f312f3aee37c6c4e2714ac081e081e73a7b8
/python/ctranslate2/converters/transformers.py
3e54354d0c6c21155614ef1ad029c3ee1dac92b0
[ "MIT" ]
permissive
OpenNMT/CTranslate2
c96ac260e5a910ba8c7bec1f2ad7945599d90ec4
61d34502325bfa3c5ef8a11cd2e391d0efed1bf9
refs/heads/master
2023-08-16T03:02:30.003902
2023-08-04T13:33:06
2023-08-04T13:33:06
210,299,376
1,744
185
MIT
2023-09-13T07:58:59
2019-09-23T08:10:42
C++
UTF-8
Python
false
false
63,756
py
transformers.py
import abc import argparse import gc import itertools import os from typing import List, Optional import numpy as np try: import huggingface_hub import torch import transformers except ImportError: pass from ctranslate2.converters import utils from ctranslate2.converters.converter import Converter f...
b66730e82652e2af97baa2347c7277b1096bedcb
8ed15d43652dbcab332c78923da416b91b139323
/python/fedml/core/mlops/mlops_utils.py
af2e2833dd403754385b2dcf0a56f4ade9e2022e
[ "Apache-2.0" ]
permissive
FedML-AI/FedML
74d144038c9de4a0621eb328d00987abac35e2d1
b436fbd95cbb62f6c58d2233d7affa0f62cb1817
refs/heads/master
2023-08-31T22:15:39.786371
2023-08-24T03:41:58
2023-08-24T03:41:58
281,519,510
3,197
807
Apache-2.0
2023-09-14T02:14:20
2020-07-21T22:41:25
Python
UTF-8
Python
false
false
1,762
py
mlops_utils.py
import os from os.path import expanduser import time class MLOpsUtils: _ntp_offset = None @staticmethod def calc_ntp_from_config(mlops_config): if mlops_config is None: return ntp_response = mlops_config.get("NTP_RESPONSE", None) if ntp_response is None: r...
4d304e8de29ef3f60d82bbae57fcf5d346f4a591
3c2ee998c99a693b3b04d44f8c5af0fc5fb2c49d
/migrations/versions/dc250d726600_.py
9cb55b873d675a6664b4ae42be07f464e5ba607b
[ "BSD-2-Clause" ]
permissive
hotosm/tasking-manager
4520a56b31b35ebfc82a337bc7e676f1f8bc946a
45bf3937c74902226096aee5b49e7abea62df524
refs/heads/develop
2023-09-01T02:43:43.875659
2023-08-16T21:26:02
2023-08-29T13:15:52
80,733,077
526
316
BSD-2-Clause
2023-09-14T10:15:55
2017-02-02T14:31:35
JavaScript
UTF-8
Python
false
false
1,047
py
dc250d726600_.py
"""empty message Revision ID: dc250d726600 Revises: ee5315dcf3e1 Create Date: 2017-05-29 10:14:06.958352 """ from alembic import op import sqlalchemy as sa import geoalchemy2 # revision identifiers, used by Alembic. revision = "dc250d726600" down_revision = "ee5315dcf3e1" branch_labels = None depends_on = None de...
829aeca95c7d02c05661e5857eb2367820590c4d
620323fc090cebaf7aca456ff3f7fbbe1e210394
/get_actual_news_from_rss_ya/webserver/web.py
0f1758f93d8e3026add0a355ee00c221b331f34d
[ "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
2,384
py
web.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "ipetrash" from collections import defaultdict from flask import Flask, jsonify, redirect, request from common import get_news_list, get_news_list_and_mark_as_read, reset_all_is_read app = Flask(__name__) @app.route("/") def index(): # return "Тут...
ebcdd92e653ae80e7b79729301a286e0ce36f0be
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/testing/merge_scripts/standard_gtest_merge_test.py
14a5b9db80c4c022cfe612104a67c04bd08235e6
[ "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
17,548
py
standard_gtest_merge_test.py
#!/usr/bin/env vpython3 # Copyright 2014 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 logging import os import shutil import six import sys import tempfile import unittest import common_merge_script_tests import six THIS...
d11081fa9c3b28a3a9464f40854ce36c455075bb
09a6d8dbad5b92f93791948b5bf9b75f5cb2e5ce
/pennylane/devices/default_qubit_autograd.py
dfe038a6ed2ee461b73374c4069ed1638a913959
[ "Apache-2.0" ]
permissive
PennyLaneAI/pennylane
458efd5d9457e90ada31ca2ef0fb6bb96a24e9a7
0843183ff15a013c2622af5e61fea431d18076d3
refs/heads/master
2023-09-03T17:00:43.105784
2023-09-01T16:15:07
2023-09-01T16:15:07
129,936,360
1,431
410
Apache-2.0
2023-09-14T21:30:56
2018-04-17T16:45:42
Python
UTF-8
Python
false
false
5,284
py
default_qubit_autograd.py
# Copyright 2018-2021 Xanadu Quantum Technologies 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...
99655dca603148385aecf39f715210b41a9386ba
3359c58a44333b57b07dec4c3b0dbbc76aabe7f1
/helios/management/commands/__init__.py
bf2b23205932ba1c11187cd6513913dcffe79d66
[ "Apache-2.0", "GPL-1.0-or-later", "GPL-3.0-only" ]
permissive
benadida/helios-server
f92b6267f64245afb85a7a1ad93d9ceba484c4c7
cea7411b83ca3ea3a419e218b9ab815418c83985
refs/heads/master
2023-08-26T00:12:53.626294
2023-04-09T08:22:22
2023-04-09T13:46:00
260,654
617
277
Apache-2.0
2023-09-07T20:37:10
2009-07-26T00:25:38
Python
UTF-8
Python
false
false
17
py
__init__.py
""" commands """
b81aa59784a95095b2b76eb3fa12b1657601b14d
b200f895b66e682b2419fa758d73dee317830349
/autotorrent/clients/tests/test_qbittorrent.py
75e27767edcd876c9f895062ba597e0c0f44f497
[ "MIT" ]
permissive
JohnDoee/autotorrent
8fe33abba8eafabb6a6d2b0e8cf317641c1ab966
4f1f1669eb3f8a8ea5751881cbf78db518f115d0
refs/heads/develop
2022-06-20T20:10:59.366051
2022-05-29T12:50:55
2022-05-29T12:50:55
13,565,210
302
51
MIT
2021-11-05T04:13:00
2013-10-14T15:32:11
Python
UTF-8
Python
false
false
2,972
py
test_qbittorrent.py
import os import shutil import tempfile from unittest import TestCase from ...bencode import bencode, bdecode from ..qbittorrent import QBittorrentClient, UnableToLoginException current_path = os.path.dirname(__file__) class FakeSession: status_code = None _response = None def __init__(self): ...
67179c5cce3f50ab5c3042cbfb279e1086194014
ead6ec54c304046e8017289ecae2acb69f2e463d
/flotilla/external/combat.py
04e6784cffb1a869889d7e4e209623f4a7e3d7ea
[]
permissive
YeoLab/flotilla
93e3576002f1b51917bc8576897d399176e1fa3a
31da64567e59003c2b9c03fc8f4eb27ee62e299c
refs/heads/master
2023-04-28T04:23:30.408159
2017-04-19T07:03:03
2017-04-19T07:03:03
19,319,564
104
27
BSD-3-Clause
2023-04-15T19:16:52
2014-04-30T16:14:31
Jupyter Notebook
UTF-8
Python
false
false
8,720
py
combat.py
""" """ from __future__ import (absolute_import, division, print_function, unicode_literals) import sys import pandas as pd import patsy import numpy.linalg as la import numpy as np def adjust_nums(numerical_covariates, drop_idxs): # if we dropped some values, have to adjust those with ...
79e1d64133f0918ec60cd22a17998cbca19a0974
6e0956238a85d5202f823dcc2317901b07817eb3
/languagechecker.py
0305b05b53ca5977a06ad1e0503e5dcedf61f9a0
[]
no_license
vyos/vyos-documentation
7359a0d9267202f65bd4d3e367b8f9b0eb943871
60232115d3e89c57644cd943b1b689a1e17f5de5
refs/heads/master
2023-08-30T11:28:47.951186
2023-08-28T19:24:05
2023-08-28T19:24:05
150,965,003
169
402
null
2023-09-14T17:11:42
2018-09-30T12:23:17
Python
UTF-8
Python
false
false
1,638
py
languagechecker.py
''' Parse gettext pot files and extract path:line and msgid information compare this with downloaded files from localazy the output are the elements which are downloaded but not needed anymore. TODO: better output ''' import os from babel.messages.pofile import read_po def extract_content(file): content = [] ...
b948bb01502aceaffa12e98672c78507b090c64d
572afc77a246acb9483b47fc9e1839f47005d736
/python/federatedml/model_selection/stepwise/step.py
febecb8900d897649cdd8405b7c79ded49aab7af
[ "Apache-2.0" ]
permissive
FederatedAI/FATE
7c787c308cca9ff46f287d24569c68de0a1cac07
8767db5ec0cb93784f64b290bc39b7b545c530fb
refs/heads/master
2023-08-17T10:13:00.302529
2023-06-14T07:01:38
2023-06-14T07:01:38
167,349,656
4,942
1,571
Apache-2.0
2023-09-14T07:02:29
2019-01-24T10:32:43
Python
UTF-8
Python
false
false
3,082
py
step.py
# # Copyright 2019 The FATE 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...
0f7d7020576e273030845274280660faaa0eb0d4
a2b429075098ef615a104845b8434e7fdeff9d14
/antspynet/architectures/create_transformer_model.py
b6a98b298ce927d7b6731ff412647e2d4bb336d2
[ "Apache-2.0" ]
permissive
ANTsX/ANTsPyNet
de95ec1ceca6bd146b99127c36273ba4649be40b
1703acb58ed053ce3348aa061e4087bac953dd07
refs/heads/master
2023-08-09T17:26:33.179674
2023-08-04T14:22:18
2023-08-04T14:22:18
189,067,098
171
36
Apache-2.0
2023-07-13T15:57:34
2019-05-28T16:44:24
Python
UTF-8
Python
false
false
16,923
py
create_transformer_model.py
import tensorflow as tf from tensorflow.keras.models import Model from tensorflow.keras.layers import (Add, Dense, Dropout, Flatten, Input, LayerNormalization, MultiHeadAttention) from antspynet.utilities import (ExtractPatches2D, ExtractPatches3D, EncodePatches, ...
47a88cc1376deb4d5305c38cdecdc8bb94948842
376e1818d427b5e4d32fa6dd6c7b71e9fd88afdb
/x11/qt5-qtwebengine/patches/patch-src_3rdparty_chromium_third__party_blink_renderer_bindings_scripts_bind__gen_codegen__expr.py
53f40a109daa8f8ea463d5f23280e6398f255f79
[]
no_license
NetBSD/pkgsrc
a0732c023519650ef821ab89c23ab6ab59e25bdb
d042034ec4896cc5b47ed6f2e5b8802d9bc5c556
refs/heads/trunk
2023-09-01T07:40:12.138283
2023-09-01T05:25:19
2023-09-01T05:25:19
88,439,572
321
138
null
2023-07-12T22:34:14
2017-04-16T20:04:15
null
UTF-8
Python
false
false
2,164
py
patch-src_3rdparty_chromium_third__party_blink_renderer_bindings_scripts_bind__gen_codegen__expr.py
$NetBSD: patch-src_3rdparty_chromium_third__party_blink_renderer_bindings_scripts_bind__gen_codegen__expr.py,v 1.1 2023/06/08 20:38:06 markd Exp $ build with python3 --- src/3rdparty/chromium/third_party/blink/renderer/bindings/scripts/bind_gen/codegen_expr.py.orig 2022-03-30 09:48:18.000000000 +0000 +++ src/3rdparty...
fd9a6d8b72ada10e23c6a6865720428b0edd8670
8ab40da4bdee2c0941251379fcf32bc096c63094
/modules/auth.py
1d356db3fb335267cb6417c522430a5f4683943a
[ "Apache-2.0" ]
permissive
flipkart-incubator/Astra
e4c795a94c0bcfb9d38e201b67a03e0877812996
57c1e41a4355cdf849c662c59f0e0a4211db1672
refs/heads/master
2023-08-01T07:54:20.104528
2023-02-16T09:33:40
2023-02-16T09:33:40
116,951,658
2,347
391
Apache-2.0
2023-07-11T17:47:23
2018-01-10T11:56:11
Python
UTF-8
Python
false
false
5,747
py
auth.py
import requests import utils.logger as logger import utils.logs as logs from . import sendrequest as req import json import ast import base64 import sys try: import requests requests.packages.urllib3.disable_warnings() except: print("[-]Failed to import requests module") sys.path.append('../') from utils...
cd991b06da3a261a9db46c799b6a95e4663acdab
e76a79816ff5203be2c4061e263a09d31072c940
/test/com/facebook/buck/features/lua/testdata/lua_binary/packager.py
dbb86d4792a233406e01b0e151b1b4740b7744e1
[ "Apache-2.0" ]
permissive
facebook/buck
ef3a833334499b1b44c586e9bc5e2eec8d930e09
9c7c421e49f4d92d67321f18c6d1cd90974c77c4
refs/heads/main
2023-08-25T19:30:28.803205
2023-04-19T11:32:59
2023-04-19T11:32:59
9,504,214
8,481
1,338
Apache-2.0
2023-05-04T22:13:59
2013-04-17T18:12:18
Java
UTF-8
Python
false
false
337
py
packager.py
import json import optparse import shutil import sys def main(argv): parser = optparse.OptionParser() parser.add_option("--entry-point") parser.add_option("--interpreter") options, args = parser.parse_args(argv[1:]) with open(args[0], "w") as f: shutil.copyfileobj(sys.stdin, f) sys.exit...
3ec52d7fb92b0d4800a863bce513e4fd21d8fe2f
0ca218c0f54dac33a2ade4accfdf8f5be3207588
/test/ext/mypy/plugin_files/mixin_not_mapped.py
9a4865eb6d351ac7efaba477f0cb28d4a0532554
[ "MIT" ]
permissive
sqlalchemy/sqlalchemy
9d949c67c9b5396b1f33e7ff0f3230c81babf5be
b382bff6e3464f039db0fd1f2ce1b79038675e48
refs/heads/main
2023-08-31T17:40:59.565421
2023-08-30T15:01:41
2023-08-30T15:01:41
159,271,175
8,083
1,489
MIT
2023-09-12T18:53:55
2018-11-27T03:35:03
Python
UTF-8
Python
false
false
814
py
mixin_not_mapped.py
from sqlalchemy import Column from sqlalchemy import Integer from sqlalchemy import String from sqlalchemy.orm import declarative_base from sqlalchemy.orm import registry reg: registry = registry() Base = declarative_base() class SomeAbstract(Base): __abstract__ = True class HasUpdatedAt: updated_at = Co...
d5535100bc3f285cefbce3e09fa11ef6815ee18b
8bc2bfc34352aac01bef774209e651e81c61c681
/pox/lib/packet/packet_utils.py
aba8cdc268d65ed303519cee9792055556e95c26
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
noxrepo/pox
0925260bc723cda49dd0dab7e827f61548e1370c
5f82461e01f8822bd7336603b361bff4ffbd2380
refs/heads/gar-experimental
2023-04-30T00:04:33.991794
2020-05-20T12:00:13
2020-05-20T12:00:13
3,382,021
467
370
Apache-2.0
2023-06-01T02:19:33
2012-02-07T22:18:46
Python
UTF-8
Python
false
false
3,744
py
packet_utils.py
# Copyright 2011,2012 James McCauley # Copyright 2008 (C) Nicira, 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 ...
a2fcf2aa89699d426de719ea64033b3e511bee26
e441a2f416c83f04889ecd43d6b6bdcf5172b287
/tests/ethpm/tools/test_builder.py
d05f060e2c51ebcd5750328bf92e281a35888c8a
[ "MIT" ]
permissive
ethereum/web3.py
f8d66eefaa84d30fa51a0978d1d1c44c6807b355
76da2146267fa03760f35c33ca8b9a96d9e24835
refs/heads/main
2023-08-31T18:34:30.144026
2023-08-29T15:43:25
2023-08-29T15:43:25
56,251,096
4,403
1,680
MIT
2023-09-14T20:46:08
2016-04-14T15:59:35
Python
UTF-8
Python
false
false
29,738
py
test_builder.py
import json from pathlib import ( Path, ) import pytest from eth_utils import ( to_canonical_address, ) from eth_utils.toolz import ( assoc, assoc_in, ) from ethpm import ( ASSETS_DIR, Package, ) from ethpm.backends.ipfs import ( get_ipfs_backend, ) from ethpm.exceptions import ( EthPM...
fadd346c6906427ba5103641f49084cd6582024e
66af5573eef648ba76fcf0156de41b411ca38c6c
/sikuli-ide/sample-scripts/skype.sikuli/skype.py
73eb9698be32b5c2d9ed4e5b7ba0ca1b9fe5458f
[ "MIT" ]
permissive
sikuli/sikuli
5221f35a5fb9114bcaaab12d75fcf67ae341966b
4adaab7880d2f3e14702ca7287ae9c9e4f4de9ab
refs/heads/develop
2023-08-28T09:39:58.135194
2019-10-27T08:34:31
2019-10-27T08:34:31
2,393,437
1,486
302
MIT
2018-10-04T11:47:59
2011-09-15T15:47:51
HTML
UTF-8
Python
false
false
275
py
skype.py
v = VDict({ "1254515416894.png" : "1254512196727.png", "1254512579147.png" : "1254512182329.png"}) while True: call = find(Pattern("1254810120075.png").similar(0.27).firstN(1)) if call: face = capture(call[0].x, call[0].y, 65, 65) doubleClick(v[face][0])
65989fb372ce2bf455c2f22d52bc5885e48d7b89
b74320ad439e37dfa48cd8db38dab3b7a20a36ff
/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py
82e609ce7cd1d373ff9b286830fa74d1eb309112
[ "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
16,967
py
pipeline_kandinsky2_2_img2img.py
# Copyright 2023 The HuggingFace 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 required by applicabl...
f5832499c2bb7215b1c6c223f417876830e4c064
7ed2ef754060465709897be60ff14a0f4e2c9578
/delfin/drivers/hpe/hpe_msa/ssh_handler.py
9d58b20d6f4656ec416dae8cdc342eafed6db8cf
[ "Apache-2.0" ]
permissive
sodafoundation/delfin
967b7ff276c20ea546e07538c2b02a7920aaddf4
978eff481945203bfbc3d84123e151f836748428
refs/heads/master
2023-09-04T11:27:21.103714
2023-07-13T09:02:14
2023-07-13T09:02:14
254,367,182
220
336
Apache-2.0
2023-09-13T07:04:15
2020-04-09T12:37:29
Python
UTF-8
Python
false
false
36,674
py
ssh_handler.py
import hashlib import time import six from oslo_log import log as logging from operator import itemgetter from itertools import groupby from delfin import exception from delfin.common import constants, alert_util from delfin.drivers.utils.ssh_client import SSHPool from delfin.drivers.utils.tools import Tools from delf...
c18f225d6fa7241802f2d152422467353f1da04c
59b43642e6d96af4ec0f9e89228576d196342b0e
/finplot/examples/btc-long-term.py
cd0499c9c4bbde3f920064c41e80daf6fec78a1d
[ "MIT" ]
permissive
highfestiva/finplot
a6065e8db3e924193755b62fbeab3f92f1c36ad1
3c0f3c63ac46654299ec3e5a40eaa92d4a649990
refs/heads/master
2023-08-21T18:55:33.778807
2023-08-14T16:01:41
2023-08-14T16:01:41
145,775,657
746
173
MIT
2023-05-28T18:25:47
2018-08-22T23:56:19
Python
UTF-8
Python
false
false
917
py
btc-long-term.py
#!/usr/bin/env python3 from datetime import date import finplot as fplt import requests import pandas as pd now = date.today().strftime('%Y-%m-%d') r = requests.get('https://www.bitstamp.net/api-internal/tradeview/price-history/BTC/USD/?step=86400&start_datetime=2011-08-18T00:00:00.000Z&end_datetime=%sT00:00:00.000Z'...
4d385785d90cb8845335d9489b52081e5cfbc503
aaabf5c6cea75fb6649fafff57d4e92e9b7142b8
/smote_variants/base/_metrics.py
5a3ad472d5d9a15712f7b6044d5e7c0d3db82868
[ "MIT" ]
permissive
analyticalmindsltd/smote_variants
febcdad7c64c5d6bce5a69a51d7228ea629aa7c4
708568e5b44abdc798d9329f993ac6561ad1439d
refs/heads/master
2023-05-12T21:24:57.222534
2023-04-17T10:43:06
2023-04-17T10:43:06
151,773,885
434
106
MIT
2023-05-04T14:18:28
2018-10-05T20:21:54
Jupyter Notebook
UTF-8
Python
false
false
6,519
py
_metrics.py
""" This module implements some imbalanced classification metrics. """ import numpy as np from sklearn.metrics import roc_auc_score, log_loss __all__ = ['prediction_labels', 'calculate_atoms', 'calculate_label_scores', 'calculate_prob_scores', 'calculate_all_scores', ...
f6969fe69f2261ab6b24b8bc5c3ab3b1cba5c340
3b6b6a580bf6127b288a42ab4519565adc720fbd
/days/053-056-django-registration/demo/mysite/urls.py
60443a059f4ef79b066cd64a990272163c4d4bdc
[]
no_license
talkpython/100daysofweb-with-python-course
f1f296a5e52670fccba895e078318a5098f96e2f
c6f2fb22a29f74284b2d52ee019e0ace6a6353fc
refs/heads/master
2023-07-19T11:21:46.515974
2023-04-25T21:34:27
2023-04-25T21:34:27
134,765,291
627
495
null
2023-04-25T21:34:28
2018-05-24T20:28:21
JavaScript
UTF-8
Python
false
false
313
py
urls.py
from django.contrib import admin from django.urls import include, path urlpatterns = [ path('', include('quotes.urls')), path('my-backend/', admin.site.urls), path(r'accounts/', include('django_registration.backends.activation.urls')), path(r'accounts/', include('django.contrib.auth.urls')), ]
d02742d016aee7d6badd5b07b4d55628ac543647
c33e5b0d8182b5aa05bd31fa052f4d23e83ec6a7
/parakeet/modules/attention.py
154625cc3c1d9426ed2d21edc3064798b73ccd3a
[ "Apache-2.0" ]
permissive
PaddlePaddle/Parakeet
baad66e2ca4f89cc996b865fcb0cb814f7ae4f7f
8705a2a8405e3c63f2174d69880d2b5525a6c9fd
refs/heads/develop
2021-11-27T20:22:08.102845
2021-11-19T02:21:01
2021-11-19T02:21:01
243,677,660
609
92
NOASSERTION
2022-01-27T02:27:56
2020-02-28T04:24:13
Python
UTF-8
Python
false
false
12,163
py
attention.py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
2251bdbb0e4646f046e0f32c606ef857a555a74e
63cb78527bcb90f984788587a29f8f115e94ab64
/dash_bio/Jsme.py
83d47b6a34e47121e55222170a385f143db023c0
[ "BSD-3-Clause", "MIT", "Apache-2.0", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
plotly/dash-bio
2b3468626c7f021c083c8b9170e61862d5dc151d
8a97db7811cc586d7e0bf1d33c17b898052b2e8f
refs/heads/master
2023-09-03T13:30:45.743959
2023-08-16T15:26:27
2023-08-16T15:26:27
141,365,566
505
228
MIT
2023-08-23T01:28:46
2018-07-18T01:40:23
Python
UTF-8
Python
false
false
3,171
py
Jsme.py
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args class Jsme(Component): """A Jsme component. JSME is a molecule editor that supports drawing and editing of molecules and reactions on in a web app, supporting both desktop and mobile devices. A built-in s...
8b1f800dc9a2f296d7dddb38290fff9df438f8cb
f24fff4a91925831a92aff11581da59fbe0e719a
/lib/locast_service.py
9655749d21e156e71801b2d2b71bbcac78032a21
[ "MIT" ]
permissive
tgorgdotcom/locast2plex
6e1672185f41d7df75bc6726b312b2caeb2bb834
e57aeadae2ce6bbd92b515038da805209838cf1f
refs/heads/main
2023-08-31T11:32:02.580614
2021-08-26T03:29:52
2021-08-26T03:29:52
237,564,821
263
72
MIT
2021-08-05T21:27:22
2020-02-01T05:02:06
Python
UTF-8
Python
false
false
8,153
py
locast_service.py
# pylama:ignore=E722,E303 import json import sys import urllib.error import urllib.parse import urllib.request import pathlib from datetime import datetime import lib.m3u8 as m3u8 import lib.stations as stations from lib.l2p_tools import handle_url_except class LocastService: location = { "lati...
54bd12b037e5ab01bef178aeb58d7e6ed030cbaf
da1721d2783ea4d67ff4e73cee6eee71292f2ef7
/toontown/effects/FireworkShow.py
2f1302f6590bc657cb6dc3159a9114d51f33337e
[ "BSD-3-Clause" ]
permissive
open-toontown/open-toontown
bbdeb1b7bf0fb2861eba2df5483738c0112090ca
464c2d45f60551c31397bd03561582804e760b4a
refs/heads/develop
2023-07-07T01:34:31.959657
2023-05-30T23:49:10
2023-05-30T23:49:10
219,221,570
143
104
BSD-3-Clause
2023-09-11T09:52:34
2019-11-02T22:24:38
Python
UTF-8
Python
false
false
60,564
py
FireworkShow.py
from panda3d.core import * from direct.interval.IntervalGlobal import * from toontown.effects.FireworkGlobals import * from toontown.effects.Firework import Firework from toontown.toonbase import ToontownGlobals from toontown.parties import PartyGlobals import random colors = [Vec4(1, 1, 1, 1), Vec4(1, 0.1, 0.1, 1), ...
15088fb2c72a2fc53fc483c4cd2495f36ebd4828
bc5f2a47f94b026b4f63316954fa1c50ef69fcd7
/syntaxeditor/Data/syntaxeditor/PythonSource.py
b859616a8a5478ab41bc554e6df384eb32388cdb
[]
no_license
syncfusion/wpf-demos
a3d74687af51159ead5fb8802541df866275e2bd
4de3b817518bdcf2aaece7776008e476d3d534e4
refs/heads/master
2023-08-09T21:05:44.170803
2023-07-28T06:03:54
2023-07-28T06:03:54
144,170,538
224
129
null
2023-03-24T10:19:34
2018-08-09T15:21:03
null
UTF-8
Python
false
false
5,066
py
PythonSource.py
import clr clr.AddReference("WindowsBase") clr.AddReference("PresentationCore") clr.AddReference("PresentationFramework") from System.Collections.Generic import * from System import * from System.ComponentModel import * from System.Collections.ObjectModel import * from System.Windows.Threading import * from System.Text...
b64616e6b19affdcce9f61dd1cf5cb9f8a719aca
e05d08569d36c7bc2b3d5ac5c90dceb63e4a7719
/setup.py
699e12536d7e0c19f3a0ed51a8ac0166ae324861
[ "MIT" ]
permissive
korymath/talk-generator
612c7619edccc5ec33fdaa62f1f85f89b6b24dfc
bc1fa3a2a628e7f3033513236603d6902668ae29
refs/heads/master
2022-12-21T04:37:30.718955
2021-11-23T00:01:39
2021-11-23T00:01:39
139,507,918
125
11
MIT
2022-11-22T08:49:03
2018-07-03T00:19:42
Python
UTF-8
Python
false
false
1,943
py
setup.py
from os import listdir from os.path import isfile, join from setuptools import setup from setuptools import find_packages # Build a list of text-templates to install DATA_PATH = "talkgenerator/data/" text_templates_path = DATA_PATH + "text-templates/" text_template_files = [ f for f in listdir(text_templates_path...
14ee4915b5a597f898cf2e2201fcbd81c366d164
a4c119e6990f3aae298136b389a36afe190991ca
/test/test_fee_setting.py
b9ddf150dac9d73ad80ec766333b487457c5c971
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
bitromortac/lndmanage
1a429b3d8431a5df1c44c236bb1b3431bd05fe87
7885f02f13eda3c89fda3d53f76310b6f50960d7
refs/heads/master
2023-08-04T22:20:15.289217
2023-04-26T06:33:06
2023-04-26T06:33:06
180,768,481
178
22
MIT
2023-07-20T12:13:22
2019-04-11T10:24:07
Python
UTF-8
Python
false
false
2,820
py
test_fee_setting.py
from unittest import TestCase import sys import logging from test import testing_common from lndmanage.lib.fee_setting import delta_demand, delta_min, optimization_parameters testing_common.logger.addHandler(logging.StreamHandler(sys.stdout)) class TestFeeSetter(TestCase): def test_delta_min(self): cap...
1222e7f26419435a7d4d2884c5e9ba70b2c2d33c
5e8e7a9f9ece885b2182d3a08a4f41d1812222c5
/alibi/models/pytorch/model.py
f0ad44addb6ba04a3ddc9065ad870f48b903b170
[ "Apache-2.0" ]
permissive
SeldonIO/alibi
a69007b635b0fe7e02e817baf49355e3a9ed4697
54d0c957fb01c7ebba4e2a0d28fcbde52d9c6718
refs/heads/master
2023-08-29T13:16:14.970241
2023-08-01T10:17:08
2023-08-01T10:17:08
172,687,028
2,143
244
Apache-2.0
2023-09-05T00:34:00
2019-02-26T10:10:56
Python
UTF-8
Python
false
false
12,988
py
model.py
""" This module tries to provided a class wrapper to mimic the TensorFlow API of `tensorflow.keras.Model`. It is intended to simplify the training of a model through methods like compile, fit and evaluate which allow the user to define custom loss functions, optimizers, evaluation metrics, train a model and evaluate it...
edf158b15e9df4962d436123a3f854f83143fd52
e22fd36933c9114a9df1694e7a6274bf059de2a6
/tools/joystick/joystickd.py
82847e3fa11a4c1f2917535bd84efc197a85ab4f
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
commaai/openpilot
66dfb7f31290bc8f58c9ead95d56697a52b45afb
a0b49d54222c52ff0112c402bc0e0d9262e77a66
refs/heads/master
2023-09-05T21:34:14.076796
2023-09-05T21:15:18
2023-09-05T21:15:18
74,627,617
46,071
9,878
MIT
2023-09-14T21:51:23
2016-11-24T01:33:30
Python
UTF-8
Python
false
false
4,579
py
joystickd.py
#!/usr/bin/env python import os import argparse import threading from inputs import get_gamepad import cereal.messaging as messaging from openpilot.common.realtime import Ratekeeper from openpilot.common.numpy_fast import interp, clip from openpilot.common.params import Params from openpilot.tools.lib.kbhit import KBH...
033b83a31252ca3adfa7f1a743d551b05f021430
61673ab9a42f7151de7337608c442fa6247f13bb
/__scraping__/vanglaini.org - requests, BS/main.py
c10b93a127d343d8abd836f5e78b4c26deb71bd7
[ "MIT" ]
permissive
furas/python-examples
22d101670ecd667a29376d7c7d7d86f8ec71f6cf
95cb53b664f312e0830f010c0c96be94d4a4db90
refs/heads/master
2022-08-23T23:55:08.313936
2022-08-01T14:48:33
2022-08-01T14:48:33
45,575,296
176
91
MIT
2021-02-17T23:33:37
2015-11-04T23:54:32
Python
UTF-8
Python
false
false
573
py
main.py
#!/usr/bin/env python3 # date: 2019.10.12 import requests from bs4 import BeautifulSoup import pandas as pd response = requests.get('https://www.vanglaini.org/') soup = BeautifulSoup(response.text, 'lxml') data = [] for article in soup.find_all('article'): if article.a is None: continue row = [ ...
fa9cef351f55a41432d90b73fe3f8dca2db3c031
e9b2c7531440e99afa208f63f8a0fa814b422d58
/treenode/metadata.py
f5dc9492e0f83f30e1fe9411493eacc4e9814aaa
[ "MIT" ]
permissive
fabiocaccamo/django-treenode
1adffcac9f178a40c83a45ffe274a817d08d5fb5
4bb8ec3d2f4f76d293351e4153b7109f40d38d0f
refs/heads/main
2023-08-29T03:22:34.982127
2023-07-18T08:33:50
2023-07-18T08:33:50
127,927,721
487
33
MIT
2023-09-08T06:16:46
2018-04-03T15:16:32
Python
UTF-8
Python
false
false
285
py
metadata.py
__author__ = "Fabio Caccamo" __copyright__ = "Copyright (c) 2018-present Fabio Caccamo" __description__ = "probably the best abstract model/admin for your tree based stuff." __email__ = "fabio.caccamo@gmail.com" __license__ = "MIT" __title__ = "django-treenode" __version__ = "0.20.1"
3d09c933cde265aa3fc2d2e189ba48423ba15dfd
fdbfbcf4d6a0ef6f3c1b600e7b8037eed0f03f9e
/bindings/pydrake/multibody/_math_extra.py
08c6aba11ad595436e8344031861fb4f67b1c4c6
[ "BSD-3-Clause" ]
permissive
RobotLocomotion/drake
4529c397f8424145623dd70665531b5e246749a0
3905758e8e99b0f2332461b1cb630907245e0572
refs/heads/master
2023-08-30T21:45:12.782437
2023-08-30T15:59:07
2023-08-30T15:59:07
16,256,144
2,904
1,270
NOASSERTION
2023-09-14T20:51:30
2014-01-26T16:11:05
C++
UTF-8
Python
false
false
1,392
py
_math_extra.py
import pydrake.autodiffutils as _ad from pydrake.common import ( _MangledName, pretty_class_name as _pretty_class_name, ) import pydrake.symbolic as _sym def _indented_repr(o): """Returns repr(o), with any lines beyond the first one indented +2.""" return repr(o).replace("\n", "\n ") def _spatial_v...
bea23c6975592423e288042416c2a71e082be802
612a0320d504226f80d25be53fb9564e1c7aa2ac
/lbworkflow/flowgen/__init__.py
20d3c2c466b0fa85875a90e2d06114db85af22c0
[ "MIT" ]
permissive
vicalloy/django-lb-workflow
e174510f41bddb33004fd73989989dc78ec30117
117dedd331032841540d8bc6b9056fa9d05faecf
refs/heads/master
2023-06-26T19:48:28.600744
2023-06-14T07:21:51
2023-06-14T07:21:51
86,919,849
217
73
MIT
2023-04-21T21:47:52
2017-04-01T14:43:42
Python
UTF-8
Python
false
false
5,452
py
__init__.py
import inspect import os import shutil import stat from jinja2 import Environment, FileSystemLoader __all__ = ("FlowAppGenerator", "clean_generated_files") def clean_generated_files(model_class): folder_path = os.path.dirname(inspect.getfile(model_class)) for path, dirs, files in os.walk(folder_path): ...
af59b17d4a09471653bec122798c097cb831525c
2bbc6975dec5786a1895611d9ca391de841a5616
/mkdocs-material/setup.py
b2816a043203877e7f0bd247b189a01a298f9eaf
[ "MIT" ]
permissive
youzan/ZanRedisDB
8a7a2b2fa084f218f18097f3f79eeae9ceece3e4
b620268e208d6c09ea2da6eef0811af04ff24843
refs/heads/master
2023-07-15T00:04:18.356283
2022-07-08T03:00:44
2022-07-08T03:00:44
134,360,234
413
68
MIT
2021-06-18T16:21:06
2018-05-22T04:23:45
Go
UTF-8
Python
false
false
2,025
py
setup.py
# Copyright (c) 2016-2017 Martin Donath <martin.donath@squidfunk.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, c...
d392124362118b5b68b5b4b70e7c29ff0367bbbf
adb83e5cec36bf7c079bc1b69b45eba3f495f5f4
/toggl/cli/themes.py
f0bba4130a3267eef2c15064ab45b2dfe536326b
[ "MIT" ]
permissive
AuHau/toggl-cli
b1cda6b361c6cf6759bd857f33a5a18b394310b9
7ee7aa8ace000a88035c00a0de7842dbbf83d293
refs/heads/master
2023-05-10T19:14:07.328960
2023-02-18T08:20:38
2023-02-18T08:20:38
4,233,630
224
41
NOASSERTION
2023-05-01T04:57:31
2012-05-05T12:32:49
Python
UTF-8
Python
false
false
824
py
themes.py
""" The values of the themes are derived from click.style https://click.palletsprojects.com/en/7.x/api/#click.style """ class PlainTheme: code = 'plain' name = 'Plain theme' title = {} title_id = {} header = {} success = {} error_color = 'red' class LightTheme: code = 'light' ...
b5fe2c35be834481c85b14a5bb21e11edeb46dbf
9a101fbc437b37e4f263781dd9a329b97a7587b8
/scripts/benchmark_vincenty.py
be1688d8b62af2d40af6161ea87d4d9bb9697d82
[ "BSD-2-Clause" ]
permissive
geospace-code/pymap3d
2aa3e8dfd764df1f248036f1b3b9f1dd6fd2d2cd
81172e221a4c9884450a38ec8a7ee382198cb7e3
refs/heads/main
2023-05-22T20:33:31.022682
2023-03-05T03:08:28
2023-03-05T05:31:37
22,567,162
202
46
BSD-2-Clause
2023-05-03T09:05:44
2014-08-03T04:28:03
Python
UTF-8
Python
false
false
1,394
py
benchmark_vincenty.py
#!/usr/bin/env python """ vreckon and vdist are iterative algorithms. How much does PyPy help over Cpython? Hmm, PyPy is slower than Cpython.. $ pypy3 tests/benchmark_vincenty.py 10000 2.1160879135131836 0.06056046485900879 $ python tests/benchmark_vincenty.py 10000 0.3325080871582031 0.02107095718383789 """ import...
27a856a479b8bacf391d09b47154f5cbbc122c67
bb7300cb147c439241684dd0086dafb3aadbe495
/MAXIMUM_SUBARRAY/maximum_subarray_brownbear.py
451254b80dfec9c97b7273fdcde47e683b463616
[]
no_license
29rithm/algospot
2f043ea9f20346e246d28e40d99cc4abb5f01929
3b4c671d089b58e49a558573b4e05abb80de04d8
refs/heads/master
2020-09-12T08:15:28.560875
2020-02-23T07:14:59
2020-02-23T07:14:59
222,365,096
174
8
null
2020-03-08T11:47:45
2019-11-18T04:42:29
Python
UTF-8
Python
false
false
358
py
maximum_subarray_brownbear.py
class Solution: def maxSubArray(self, nums): sequence_sum = 0 max_sum = -9999999999999 for num in nums: if sequence_sum < 0: sequence_sum = num else: sequence_sum += num if sequence_sum > max_sum: max_sum =...
7436db4e95755e7079ce646881cad8f16a6beee1
7b7c570b30d6d7a0e9b904c7cb378cfb0d0f0e07
/tests/entities/test_metric.py
66821a9b5e22e62c03f07f75331dd181756175d3
[ "Apache-2.0" ]
permissive
mlflow/mlflow
ca97bfbbf32f8e59f454e428f5e46eb3d34d062f
37298ffafcd34002352d01d579d4524790544267
refs/heads/master
2023-09-01T13:15:53.902815
2023-09-01T09:00:42
2023-09-01T09:00:42
136,202,695
14,102
3,748
Apache-2.0
2023-09-14T21:52:42
2018-06-05T16:05:58
Python
UTF-8
Python
false
false
905
py
test_metric.py
from mlflow.entities import Metric from mlflow.utils.time_utils import get_current_time_millis from tests.helper_functions import random_int, random_str def _check(metric, key, value, timestamp, step): assert type(metric) == Metric assert metric.key == key assert metric.value == value assert metric.t...
693321e5bb697ac3c139e283cbe9952c9aa5adfe
6189f34eff2831e3e727cd7c5e43bc5b591adffc
/WebMirror/management/rss_parser_funcs/feed_parse_extractLostInTranslation.py
c3942407124ff98f865a2ac3d8001064fb39381b
[ "BSD-3-Clause" ]
permissive
fake-name/ReadableWebProxy
24603660b204a9e7965cfdd4a942ff62d7711e27
ca2e086818433abc08c014dd06bfd22d4985ea2a
refs/heads/master
2023-09-04T03:54:50.043051
2023-08-26T16:08:46
2023-08-26T16:08:46
39,611,770
207
20
BSD-3-Clause
2023-09-11T15:48:15
2015-07-24T04:30:43
Python
UTF-8
Python
false
false
772
py
feed_parse_extractLostInTranslation.py
def extractLostInTranslation(item): """ """ vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or 'preview' in item['title'].lower(): return None if 'Third Prince Elmer' in item['tags']: return buildReleaseMessageWithType(item, 'Third Prince Elmer', vol, chp, frag=fr...
de707a8ead1682a410685a1eaffecb181ea75025
578db86c51d44ebddd0dc7b1738985b3dc69eb74
/corehq/form_processor/migrations/0031_add_details_field_to_case_transaction.py
26bd10533b9aa2171f2c14397cc5c188a5771d25
[ "BSD-3-Clause" ]
permissive
dimagi/commcare-hq
a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b
e7391ddae1af1dbf118211ecb52c83fc508aa656
refs/heads/master
2023-08-16T22:38:27.853437
2023-08-16T19:07:19
2023-08-16T19:07:19
247,278
499
203
BSD-3-Clause
2023-09-14T19:03:24
2009-07-09T17:00:07
Python
UTF-8
Python
false
false
788
py
0031_add_details_field_to_case_transaction.py
from django.db import models, migrations import jsonfield.fields class Migration(migrations.Migration): dependencies = [ ('form_processor', '0030_casetransaction_revoked'), ] operations = [ migrations.AddField( model_name='casetransaction', name='details', ...
3aeff222d6503d0d1454708e6371bdd654344f73
afd2087e80478010d9df66e78280f75e1ff17d45
/test/test_complex.py
36f17b3b01f6a7d472c39f5aec0485756f758157
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-secret-labs-2011", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
pytorch/pytorch
7521ac50c47d18b916ae47a6592c4646c2cb69b5
a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4
refs/heads/main
2023-08-03T05:05:02.822937
2023-08-03T00:40:33
2023-08-03T04:14:52
65,600,975
77,092
24,610
NOASSERTION
2023-09-14T21:58:39
2016-08-13T05:26:41
Python
UTF-8
Python
false
false
9,347
py
test_complex.py
# Owner(s): ["module: complex"] import torch from torch.testing._internal.common_device_type import ( instantiate_device_type_tests, dtypes, onlyCPU, ) from torch.testing._internal.common_utils import TestCase, run_tests from torch.testing._internal.common_dtype import complex_types devices = (torch.devic...
5814711b2c55cc3e647495ad752b0d8381ca039e
8fa191cd4a67431a04eff62d35122ee83cc7b0af
/bookwyrm/tests/views/lists/test_embed.py
4191ffe0d712c420c7a01915a6c0d997d88baddc
[ "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
3,429
py
test_embed.py
""" test for app action functionality """ from unittest.mock import patch from django.contrib.auth.models import AnonymousUser from django.http.response import Http404 from django.template.response import TemplateResponse from django.test import TestCase from django.test.client import RequestFactory from bookwyrm imp...
a35577f57ad33639bd5813b42ff47c4f48ce4c56
0d1e4c4a75bae5d5516b2066f680b62a25e1dd81
/vdirsyncer/storage/http.py
177e769326b79f32f55f25d1df69223fc3c9066f
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
pimutils/vdirsyncer
3e79768183598a8328a8b6d1391acdb408374239
adc974bdd1b2c6d4b34163beb66b10a627de5777
refs/heads/main
2023-08-18T23:25:49.567099
2023-08-05T22:05:06
2023-08-06T10:45:42
16,865,424
1,155
167
NOASSERTION
2023-09-08T11:03:01
2014-02-15T15:33:41
Python
UTF-8
Python
false
false
2,718
py
http.py
import urllib.parse as urlparse import aiohttp from .. import exceptions from ..http import USERAGENT from ..http import prepare_auth from ..http import prepare_client_cert from ..http import prepare_verify from ..http import request from ..vobject import Item from ..vobject import split_collection from .base import ...
35263c3375cddcee3d69a9972b21257dfa56e798
38e5c18fdb3da2fd51d6ffcdbd30fca1f4197220
/events/models/locale.py
8277990855f01b480edf8bdbf8d841b477796471
[ "BSD-2-Clause" ]
permissive
GetTogetherComm/GetTogether
3472c00e94c25930bb5f854bdf5ddf6f0b25fe70
6708944bbcecb6d3d1467b096b2d72e991583d51
refs/heads/master
2023-08-20T17:57:30.082021
2022-04-18T22:22:54
2022-04-18T22:22:54
115,438,321
462
106
BSD-2-Clause
2023-02-15T18:23:18
2017-12-26T16:34:28
Python
UTF-8
Python
false
false
3,882
py
locale.py
from django.db import models from django.utils.translation import ugettext_lazy as _ import pytz from rest_framework import serializers class Language(models.Model): class Meta: ordering = ("name",) name = models.CharField(_("Language"), max_length=150, null=True) code = models.CharField(_("Lang...
3abd3d7ffc64594c3343447ac72511df6c25b98c
becf2cde221ca33b165d348203400e3290630f81
/winpython/_vendor/qtpy/tests/QtPrintSupport.py
263747d2c8f1f5d8ed7d62c582cfdff56fb90856
[ "MIT" ]
permissive
winpython/winpython
620fe3c7aa91e593f614d5806184f28eb6c8f480
323c6fef4100220a84daf964ed0b78058862bc29
refs/heads/master
2023-09-05T00:43:32.719477
2023-08-26T14:59:41
2023-08-26T14:59:41
24,275,324
1,796
373
MIT
2023-08-26T14:59:42
2014-09-20T21:47:26
Python
UTF-8
Python
false
false
1,064
py
QtPrintSupport.py
# ----------------------------------------------------------------------------- # Copyright © 2009- The Spyder Development Team # # Licensed under the terms of the MIT License # (see LICENSE.txt for details) # ----------------------------------------------------------------------------- """Provides QtPrintSupport clas...
f93eb94b4e7dd5088fc1c671d15f73e5cc049461
2c91404d3f2061426135fc6022bd590180693b05
/src/query_spec.py
246a10b85099e22d96ea411de65b12bcd5947ba4
[]
no_license
logv/snorkel
2b7e2b8ad306bf99cfd80b24ba42dc525141b73b
f8f33dc7d9b23d1e5bb208601731439ba4bad594
refs/heads/slite
2023-02-21T12:42:53.915381
2020-05-22T02:58:06
2020-05-22T02:58:06
8,814,504
153
21
null
2023-02-15T23:43:18
2013-03-16T05:10:17
JavaScript
UTF-8
Python
false
false
2,644
py
query_spec.py
import werkzeug try: import dotmap except: dotmap = None try: import addict except: addict = None class QuerySpec(object): def __init__(self, query): # TODO: list all attributes of a query spec up front so others know what to expect md = werkzeug.MultiDict() for q in query...
4d525e9841a651b6cac4fc7f35461dc1addc5134
156623a5f9fcef7d0bf42f245dcea624a834a4eb
/twitch/helix/models/follow.py
d5a48a6526c22afb6186337075d18a3d3e482f58
[ "MIT" ]
permissive
PetterKraabol/Twitch-Python
2129998114be85e62527cf2cca03c3c3dbda9f26
1c60f04030c5fad379e4de290474da4d36297152
refs/heads/main
2023-01-13T11:50:42.676901
2022-05-01T12:17:50
2022-05-01T12:17:50
151,992,604
224
57
MIT
2022-12-26T22:05:26
2018-10-07T22:59:11
Python
UTF-8
Python
false
false
921
py
follow.py
from typing import Dict, Any import twitch.helix as helix from twitch.api import API from .model import Model class Follow(Model): def __init__(self, api: API, data: Dict[str, Any]): super().__init__(api, data) self.from_id: str = data.get('from_id') self.from_name: str = data.get('from...
8571570b626f14b914df8edf6eb1ffd4c1de7c35
160f08e768d7271f9522ad2597ac4ee79c04477a
/src/c3nav/mapdata/migrations/0022_remove_space_category.py
9110b31afbe7a2e9a49767eee701df63ff9ada4b
[ "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
1,401
py
0022_remove_space_category.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-07-11 15:10 from __future__ import unicode_literals from django.db import migrations def convert_space_category_to_location_group(apps, schema_editor): Space = apps.get_model('mapdata', 'Space') LocationGroupCategory = apps.get_model('mapdata', 'Lo...
ba85b7e28eed7e23d6232abfa8ba01c3422f2942
0c9e50d589a934b1d4bfd4448b793a75c0950e3f
/examples/streaming/server.py
fce98a8f5a644282db3241efb3a2fbfbae9f0f9d
[ "BSD-3-Clause" ]
permissive
vmagamedov/grpclib
6eb4471e23d152e95325d9d6f5317cfa8d60fa80
0b9b171c8d439a76b8cad10b86a52f8585348dba
refs/heads/master
2023-08-31T22:34:57.510125
2023-08-02T05:49:52
2023-08-02T05:49:52
79,909,496
905
103
BSD-3-Clause
2023-07-28T05:29:17
2017-01-24T12:27:42
Python
UTF-8
Python
false
false
2,181
py
server.py
import asyncio from grpclib.utils import graceful_exit from grpclib.server import Server, Stream from .helloworld_pb2 import HelloRequest, HelloReply from .helloworld_grpc import GreeterBase class Greeter(GreeterBase): # UNARY_UNARY - simple RPC async def UnaryUnaryGreeting( self, stream: S...
a28a0a654e82d65cf6e44b11bf88eac75c3a14ae
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/EventFilter/RPCRawToDigi/test/testRPCDigiMerger_cfg.py
0e0272426146dd0025c67222367c84a60a7b7b18
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
4,736
py
testRPCDigiMerger_cfg.py
import FWCore.ParameterSet.Config as cms from FWCore.PythonUtilities.LumiList import LumiList from FWCore.ParameterSet.VarParsing import VarParsing options = VarParsing("analysis") process = cms.Process("testRPCDigiMerger") process.load("FWCore.MessageService.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport...
7dff3edeeb8b8ef90574789552f5b1ce3b78a06d
8d8eef5fdc9228f079ae4351df726eb017707872
/tests/modisco/test_core.py
0127af159c21302947aae46bd1f2ff9cbd41503c
[ "MIT" ]
permissive
kundajelab/bpnet
046afe1c9b275a481c36865c502bc01d4db95c50
1c6e5c4caf97cf34ccf716ef5b8b9c8de231cca2
refs/heads/master
2022-05-28T02:28:27.199847
2022-05-15T19:46:21
2022-05-15T19:46:21
199,090,254
128
31
MIT
2022-04-15T17:00:58
2019-07-26T23:10:04
Jupyter Notebook
UTF-8
Python
false
false
531
py
test_core.py
"""Test core objects """ from pytest import fixture from bpnet.modisco.files import ModiscoFile, ModiscoFileGroup from bpnet.modisco.core import Seqlet @fixture def pattern(modisco_dir): mf = ModiscoFile(modisco_dir / 'modisco.h5') return mf.get_pattern("metacluster_0/pattern_0") @fixture def seqlet(): ...
f062e4e7fe8655a79a12d6cead9f5957ae77cbab
e210c28eeed9d38eb78c14b3a6388eca1e0e85d8
/nvflare/fuel/f3/drivers/aio_grpc_driver.py
38c122eef7e51d0fffb4d386fee215b47f3a5358
[ "Apache-2.0" ]
permissive
NVIDIA/NVFlare
5a2d2e4c85a3fd0948e25f1ba510449727529a15
1433290c203bd23f34c29e11795ce592bc067888
refs/heads/main
2023-08-03T09:21:32.779763
2023-07-05T21:17:16
2023-07-05T21:17:16
388,876,833
442
140
Apache-2.0
2023-09-14T19:12:35
2021-07-23T17:26:12
Python
UTF-8
Python
false
false
16,267
py
aio_grpc_driver.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...
4b822e4a906918402694ff484087674ea1eb0c23
1518698c3f7c70912f4079261a3b7b81608bed63
/python/pyxel/editor/app.py
11c94c4284e5a39a06574a6dbf08cf1cdbd12100
[ "MIT" ]
permissive
kitao/pyxel
2cff908a302ed316b31f55511977769e4c356fa5
5bffc3516e6f961b45098512ea90bf08c804d71e
refs/heads/main
2023-07-13T19:46:27.473953
2023-07-12T14:23:47
2023-07-12T14:23:47
136,780,445
13,103
1,060
MIT
2023-08-27T13:58:10
2018-06-10T04:58:54
Python
UTF-8
Python
false
false
7,290
py
app.py
import os import pyxel from .image_editor import ImageEditor from .music_editor import MusicEditor from .settings import APP_HEIGHT, APP_WIDTH, EDITOR_IMAGE, HELP_MESSAGE_COLOR from .sound_editor import SoundEditor from .tilemap_editor import TilemapEditor from .widgets import ImageButton, RadioButton, Widget from .w...
4cd6996760a560df50e41009821418ca5cddabe2
25a6ea5c1cfbec72c5899ea49984de14080af680
/tests/input_files/config.py
edf04d5e3350b105419eb8a71e6d0d333c689001
[ "MIT" ]
permissive
statgen/pheweb
a08aa0cabcffdcd5bd727ef518a1b2f05c64333c
1ecace294c1313a6efff11d775d4bc6cfde54b23
refs/heads/master
2023-08-31T14:37:15.397202
2023-08-21T16:33:29
2023-08-21T16:33:29
52,133,265
135
67
MIT
2023-07-18T19:28:00
2016-02-20T02:53:21
Python
UTF-8
Python
false
false
1,115
py
config.py
# this file will be interpreted as python3 urlprefix = '/test' # Minor allele frequency (MAF) filters: # Note: # "Association" means an association between a variant and a phenotype. # Every association has a p-value. It may also have other attributes. # MAF-filters will apply to allele frequency (AF) and ...
404a2a3212a2771d6460fc63786e1acdd3cd4adf
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/remoterendering/azure-mixedreality-remoterendering/tests/test_client_async.py
199eed12fc29e29c0f3bd2c1569d75eb8913898c
[ "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
12,404
py
test_client_async.py
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import pyt...
25cf5359e3541b5140fde55ef897374246d2cb4e
eda6e7b8f399dedcdb960f4b48a2134b978f8d83
/tests/zzz_deprecated_unmaintained/movetests/MergeMoveEndToEndTest.py
6d2c41e148ee92c3e7f203ea9a6d6dd31b4be4d5
[ "BSD-3-Clause" ]
permissive
bnpy/bnpy
8ed61bc4fe2f0ed99e0254c11a21c27c0cee59b2
ffc2242427451aa6a61dcac1473c47577a5ade6f
refs/heads/master
2023-08-16T06:49:58.716279
2022-10-15T15:59:12
2022-10-15T15:59:12
75,731,181
197
54
NOASSERTION
2023-07-21T20:59:10
2016-12-06T12:56:07
Python
UTF-8
Python
false
false
20,554
py
MergeMoveEndToEndTest.py
''' Generic tests for using merge moves during model training with bnpy. ''' import os import sys import numpy as np import unittest from nose.plugins.attrib import attr import bnpy def arg2name(aArg): if isinstance(aArg, dict): aName = aArg['name'] elif isinstance(aArg, str): aName = aArg ...