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
3d4fe06378ebe096502af1bb338d0b8aa6f903c1
07b158ab4d91f779eefa007d3c6dc71ea9508a2b
/demo/tessagon_common_demo.py
590d79e9e312b64e58ae662b23ded3e11951eeb8
[ "Apache-2.0" ]
permissive
cwant/tessagon
dac1f2dce4f876b823a80c9def856817a543d720
e5b9e87aead33e2377240d5925bf328a99031229
refs/heads/master
2023-08-31T17:37:58.906444
2023-07-03T16:42:02
2023-07-03T16:42:02
104,539,159
214
21
Apache-2.0
2022-11-18T03:06:24
2017-09-23T03:40:37
Python
UTF-8
Python
false
false
17,151
py
tessagon_common_demo.py
import inspect import re from tessagon import TessagonDiscovery from tessagon.misc.shapes import cylinder, torus, one_sheet_hyperboloid, \ klein, mobius, sphere, paraboloid, general_torus, warp_var class TessagonCommonDemo: # This is an abstract class that handles common code for the # demos. Each subclas...
c17a39e406f08cf877736b581f1690cddcfd80bd
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/trafficmanager/azure-mgmt-trafficmanager/azure/mgmt/trafficmanager/operations/__init__.py
6528d2d2ddfc2c31d95a9d1bad83999c0f97371a
[ "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
1,210
py
__init__.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. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
59f5f349d5772493ed5e763709e240c4beea04e9
b10e501b17337b685a2fef01f63d91c427bf62d6
/raytracing/examples/sourceCollection.py
72e10331e515596427e280ce9052ce9910012b90
[ "MIT" ]
permissive
DCC-Lab/RayTracing
5ebd1a982e390fab5397a6309aa832efe9c62d20
bbf715b9b9dc8317d3d5d5bd550a726f6908b3bb
refs/heads/master
2023-04-08T16:41:59.211239
2023-02-22T06:02:02
2023-02-22T06:02:02
166,473,288
185
38
MIT
2023-08-14T11:39:05
2019-01-18T21:13:35
Python
UTF-8
Python
false
false
988
py
sourceCollection.py
import envexamples from raytracing import * path = ImagingPath(label="Original setup") path.append(Space(d=100)) path.append(Lens(f=35,diameter=25)) path.append(Space(d=35)) path.append(Aperture(diameter=0.2)) path.displayWithObject(diameter=1, removeBlocked=False) path.reportEfficiency(objectDiameter=1, emissionHalfA...
44c57625cc2681cb49c2ecd01f65a5f761c63b9d
8ca19f1a31070738b376c0370c4bebf6b7efcb43
/office365/sharepoint/fields/image_value.py
8900222abac0b54b409ba517ea02c6d768b69d61
[ "MIT" ]
permissive
vgrem/Office365-REST-Python-Client
2ef153d737c6ed5445ba1e446aeaec39c4ef4ed3
cbd245d1af8d69e013c469cfc2a9851f51c91417
refs/heads/master
2023-09-02T14:20:40.109462
2023-08-31T19:14:05
2023-08-31T19:14:05
51,305,798
1,006
326
MIT
2023-08-28T05:38:02
2016-02-08T15:24:51
Python
UTF-8
Python
false
false
533
py
image_value.py
from office365.runtime.client_value import ClientValue class ImageFieldValue(ClientValue): def __init__(self, server_relative_url=None): """ :param str server_relative_url: """ self.serverRelativeUrl = server_relative_url self.type = "thumbnail", self.fileName = No...
129be1a69d1c1d84ee672b8335cf892544d032ca
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/android_ip_webcam/binary_sensor.py
6f17616a216bb08db79399b5c5393f6e5a2e3dec
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
1,911
py
binary_sensor.py
"""Support for Android IP Webcam binary sensors.""" from __future__ import annotations from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, BinarySensorEntityDescription, ) from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeA...
5d31bf1918df231facee10e50c01c22cb5958f88
318b737f3fe69171f706d2d990c818090ee6afce
/demo/predict-taxi-trip-duration/script/convert_data.py
7808dadc689af878ac7ed6cf3425076ea63117df
[ "Apache-2.0" ]
permissive
4paradigm/OpenMLDB
e884c33f62177a70749749bd3b67e401c135f645
a013ba33e4ce131353edc71e27053b1801ffb8f7
refs/heads/main
2023-09-01T02:15:28.821235
2023-08-31T11:42:02
2023-08-31T11:42:02
346,976,717
3,323
699
Apache-2.0
2023-09-14T09:55:44
2021-03-12T07:18:31
C++
UTF-8
Python
false
false
1,024
py
convert_data.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2021 4Paradigm # # 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 ...
4ecaac67e82bdc440e758980347b64d89981035f
98f1a0bfa5b20a0b81e9e555d76e706c62d949c9
/python/dgl/distributed/partition.py
da0ab445690eb8497c4633f59022fd91f335827e
[ "Apache-2.0" ]
permissive
dmlc/dgl
3a8fbca3a7f0e9adf6e69679ad62948df48dfc42
bbc8ff6261f2e0d2b5982e992b6fbe545e2a4aa1
refs/heads/master
2023-08-31T16:33:21.139163
2023-08-31T07:49:22
2023-08-31T07:49:22
130,375,797
12,631
3,482
Apache-2.0
2023-09-14T15:48:24
2018-04-20T14:49:09
Python
UTF-8
Python
false
false
51,241
py
partition.py
"""Functions for partitions. """ import json import logging import os import time import numpy as np from .. import backend as F from ..base import DGLError, EID, ETYPE, NID, NTYPE from ..convert import to_homogeneous from ..data.utils import load_graphs, load_tensors, save_graphs, save_tensors from ..partition impo...
9f7589a3bf0201f13222b9fe87c0f8b25156af25
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayInsAutoAutoaftermarketOutorderSyncModel.py
20c33323b82b8671889420e59ca40d7398e8001a
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
4,470
py
AlipayInsAutoAutoaftermarketOutorderSyncModel.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayInsAutoAutoaftermarketOutorderSyncModel(object): def __init__(self): self._action = None self._actual_pay_amount = None self._alipay_id = None self._biz_time...
19fc0363a6023f797ec489a5b082b64b1e77f78e
7c91ff850f81bf8759b055971d592a71ef025732
/examples/programming_guide/image_viewer.py
40044bfd7182a0d5c577f2264c54191ce42ce07a
[ "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
pyglet/pyglet
d9da2cccd52a6bc5c09548536876602f6e1412f0
094c638f0529fecab4e74556487b92453a78753c
refs/heads/master
2023-08-17T15:08:09.192350
2023-08-17T01:51:50
2023-08-17T01:51:50
191,043,601
1,687
427
BSD-3-Clause
2023-09-14T08:51:31
2019-06-09T18:55:00
Python
UTF-8
Python
false
false
269
py
image_viewer.py
#!/usr/bin/env python """ """ __docformat__ = 'restructuredtext' __version__ = '$Id$' import pyglet window = pyglet.window.Window() image = pyglet.resource.image('kitten.jpg') @window.event def on_draw(): window.clear() image.blit(0, 0) pyglet.app.run()
a1cefd4bb235c2aef694c53f1604835e326a2c22
6a531e292af43d3e7aec6d3019e0333362afe454
/src/cactus/refmap/cactus_refmap.py
081cda30154967331dac127b61df32ebc01a88a2
[ "MIT" ]
permissive
ComparativeGenomicsToolkit/cactus
2d4d891b6b3af0a22b64aba11f18a867a7666e58
41d99360cfa79ada5bdca307883c30c7fb59a06d
refs/heads/master
2023-09-01T20:38:37.550816
2023-09-01T14:47:06
2023-09-01T14:47:06
1,317,650
369
106
NOASSERTION
2023-09-05T20:27:44
2011-02-01T20:17:33
C
UTF-8
Python
false
false
16,851
py
cactus_refmap.py
#!/usr/bin/env python3 """Feature Wishlist Top priority: Internal contig name system (see prependUniqueIDs in cactus/src/cactus/pipeline/cactus_workflow.py, line 465) Called in line 529: renamedInputSeqDir = fileStore.getLocalTempDir() uniqueFas = prependUniqueIDs(sequences, renamedInputSeqDir) uniqueFaIDs...
28e5a6195af8bf9f660235d157b778c133ccca94
701e168c325bbe17364db74c46bb8230029f4956
/rqt_joint_trajectory_controller/scripts/rqt_joint_trajectory_controller
d0eb860fc585f765b3b1df265f5da2b1c6400db1
[ "BSD-3-Clause" ]
permissive
ros-controls/ros_controllers
d1c1a9e79e55ed6d13a2d71ba21f1f3abac5ca42
dce87855e1adf3a66271db8243d58561da9f2cdb
refs/heads/noetic-devel
2023-08-16T13:13:49.159897
2023-03-04T04:35:52
2023-03-05T08:56:35
6,659,004
504
500
BSD-3-Clause
2023-08-29T10:53:39
2012-11-12T19:20:05
C++
UTF-8
Python
false
false
157
rqt_joint_trajectory_controller
#!/usr/bin/env python3 import sys from rqt_gui.main import Main main = Main() sys.exit(main.main(sys.argv, standalone='rqt_joint_trajectory_controller'))
862d8795ec9753c720dcb577a63e34e31e85a9be
f1973e136f49f0b5ea2ec63c4d862188d197e5a5
/gui/dc/network/forms.py
1d97e433e3af5a5d32e034696ece5e4cee7d4cf3
[ "Apache-2.0" ]
permissive
erigones/esdc-ce
65dc7d84e1bca3e3fcec668f54acae20183096a2
7e3dedddbe821283d909393f333eed4acd452953
refs/heads/master
2023-02-07T17:57:15.970089
2022-02-03T12:55:14
2022-02-03T12:55:14
73,122,985
123
36
Apache-2.0
2023-01-24T23:22:54
2016-11-07T21:34:53
Python
UTF-8
Python
false
false
11,559
py
forms.py
from django import forms from django.utils.translation import ungettext_lazy, ugettext_lazy as _ from django.utils.six import text_type # noinspection PyCompatibility import ipaddress from api.dc.network.views import dc_network from api.network.base.views import net_manage from api.network.ip.views import net_ip, net...
61b646ed968064c0394943cf8b6e87e21eab329e
1b94c7cfd66804fe8d40b5def35e4b9b18d69ba2
/stubs/google/appengine/api/__init__.pyi
a6f574fcd84a071532d806e3160d5cb867a60bc7
[ "MIT" ]
permissive
the-blue-alliance/the-blue-alliance
3dc210a9611ce9b240907ffd420f78040318dcdc
6d42f3cdb2f785d192f2871419e58aaae3445029
refs/heads/py3
2023-08-22T21:02:36.398100
2023-08-22T19:14:01
2023-08-22T19:14:01
888,427
344
263
MIT
2023-09-14T18:35:20
2010-09-04T20:34:11
HTML
UTF-8
Python
false
false
152
pyi
__init__.pyi
from google.appengine.api import full_app_id as full_app_id def wrap_wsgi_app(app, use_legacy_context_mode: bool = ..., use_deferred: bool = ...): ...
c47abe72969d6dcde71cfc5d843c75b5c88aab15
539431f1d968b1f89ddb428b606ee3f13c160dbe
/fuzzinator/fuzzer/random_content.py
b696f2576c382cc1fa65a33caa3e73ca00f38f30
[ "BSD-3-Clause" ]
permissive
renatahodovan/fuzzinator
b5228398d1b53c7c2b74b3e59d771087504cc3aa
06abd0da776e217192417b167e9ed8ae09909dab
refs/heads/master
2023-06-28T20:26:43.522672
2023-06-17T16:56:16
2023-06-17T16:56:16
71,513,784
208
45
BSD-3-Clause
2023-06-17T16:56:18
2016-10-20T23:56:41
Python
UTF-8
Python
false
false
1,480
py
random_content.py
# Copyright (c) 2016-2021 Renata Hodovan, Akos Kiss. # # Licensed under the BSD 3-Clause License # <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>. # This file may not be copied, modified, or distributed except # according to those terms. import random import string from .fuzzer import Fuzzer class Ra...
c4740ce52bfacac9b7d74d104964e823b73fd548
3076bd73c41ed665c987d99218b8a3599fa05ec2
/demos/reversible_demo.py
d9151cecc2e610a915a61a9c0371ee3aa05b6c81
[ "Apache-2.0" ]
permissive
lantunes/cellpylib
5135a6986e68424d9ec8b09fb42421b3dcf046d1
743e936d48f8520f6f4ac652570ac7bb46414189
refs/heads/master
2023-03-07T03:31:32.380400
2023-02-21T12:34:28
2023-02-21T12:34:28
126,618,694
203
32
Apache-2.0
2023-02-15T03:40:38
2018-03-24T16:33:15
Python
UTF-8
Python
false
false
643
py
reversible_demo.py
import numpy as np import cellpylib as cpl # NKS page 437 - Rule 214R # run the CA forward for 32 steps to get the initial condition for the next evolution cellular_automaton = cpl.init_simple(63) rule = cpl.ReversibleRule(cellular_automaton[0], 214) cellular_automaton = cpl.evolve(cellular_automaton, timesteps=32, ...
a93d2d689109b36239173c0104826ff19bb3c541
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/containerregistry/azure-containerregistry/azure/containerregistry/_generated/aio/operations/_patch.py
a2da554aba841c0f6daa4863937672d53454eb75
[ "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
8,679
py
_patch.py
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ """Customize generated code here. Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ from typing import Any, Callable, Dict,...
ca9c40ca5b90067a6c7b9bf7d31b25ebba8151dd
0ce57820de9602752451f901657021ebcea46fa2
/Solver/operand/operand.py
84985ce878790dddfa1116ba5bc746fdb0c3c1d6
[ "MIT" ]
permissive
NCIC-PARALLEL/GSWITCH-LIB
ca085d5f3e34b839cc391c6a69bf8f3121ffd44a
e25efae3dc868d90aee5b78abe0290441398ce2b
refs/heads/master
2023-06-19T06:32:07.286524
2019-10-08T00:08:45
2019-10-08T00:08:45
388,358,938
204
69
null
null
null
null
UTF-8
Python
false
false
7,926
py
operand.py
from sets import Set from subprocess import Popen, PIPE, STDOUT import subprocess import struct import sys import os from collections import defaultdict types=[] d=[] def check_mode(arch): if (arch == "SM21" or arch=="Fermi" or arch == "SM35" or arch=="Kepler"): return 1 elif (arch == "SM52" or arch ...
9fcfa4ed7e4656971a3009acad9fe995d2ad1974
71acb7214efd91c0d327f6d8958e1798eadb4401
/locations/spiders/aldi_nord_be.py
16b2e1a080c0ad0bf6878bf9c0de0f49504c10c0
[ "CC0-1.0", "MIT" ]
permissive
alltheplaces/alltheplaces
21b9f8b4ace1352e52ae7b8f8825a930d2cb033e
1bcbb55cfcf06f2c714465570711f6e83f205c22
refs/heads/master
2023-08-30T19:45:35.098658
2023-08-30T17:51:54
2023-08-30T17:51:54
61,166,935
453
176
NOASSERTION
2023-09-14T17:16:40
2016-06-15T01:09:18
Python
UTF-8
Python
false
false
554
py
aldi_nord_be.py
from locations.storefinders.uberall import UberallSpider class AldiNordBESpider(UberallSpider): name = "aldi_nord_be" item_attributes = {"brand": "ALDI", "brand_wikidata": "Q41171373"} key = "ALDINORDBE_4QRaIWlJgn529tNr9oXuh0fFhxYo9V" def parse_item(self, item, feature, **kwargs): item["ref"]...
0098a1b3b3853917adc22f8c257ba69e38f85e4b
0760fb4901a75766921a205b55686d6d6f049b30
/python/ray/data/tests/test_pipeline_nohang.py
875207e00aba2e93fe3075061d6eaeac1e188d29
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
ray-project/ray
a4bb6940b08b59a61ef0b8e755a52d8563a2f867
edba68c3e7cf255d1d6479329f305adb7fa4c3ed
refs/heads/master
2023-08-31T03:36:48.164405
2023-08-31T03:20:38
2023-08-31T03:20:38
71,932,349
29,482
5,669
Apache-2.0
2023-09-14T21:48:14
2016-10-25T19:38:30
Python
UTF-8
Python
false
false
847
py
test_pipeline_nohang.py
import pytest import ray from ray.data.tests.util import column_udf, extract_values from ray.tests.conftest import * # noqa NUM_REPEATS = 10 NUM_TASKS = 10 # This test can be flaky if there is resource deadlock between the pipeline # stages. Run it a lot to ensure no regressions. def test_basic_actors(shutdown_onl...
d5ad77b3a6e66c5c83a4020202195451b9262bb8
b8bbdfc593b6d816e67a344f720f90ec05236778
/tests/utils/test_cli_util.py
99ee65fc5e47d0eb4744666b25d233582a94d1a5
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
apache/airflow
ed78db0a8bab7e096990e143926e52f518e288ab
1b122c15030e99cef9d4ff26d3781a7a9d6949bc
refs/heads/main
2023-09-01T08:37:34.556097
2023-09-01T06:49:05
2023-09-01T06:49:05
33,884,891
22,756
11,558
Apache-2.0
2023-09-14T20:12:36
2015-04-13T18:04:58
Python
UTF-8
Python
false
false
7,972
py
test_cli_util.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...
7241436787db8909661c3c6f77c7daf9a4917001
3c41443364da8b44c74dce08ef94a1acd1b66b3e
/website/conferences/signals.py
861af183dc9b2f79450ebfe7239d7e699b8de577
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-warranty-disclaimer", "AGPL-3.0-only", "LGPL-2.0-or-later", "LicenseRef-scancode-proprietary-license", "MPL-1.1", "CPAL-1.0", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause", "Apache-2.0" ]
permissive
CenterForOpenScience/osf.io
71d9540be7989f7118a33e15bc4a6ce2d2492ac1
a3e0a0b9ddda5dd75fc8248d58f3bcdeece0323e
refs/heads/develop
2023-09-04T03:21:14.970917
2023-08-31T14:49:20
2023-08-31T14:49:20
10,199,599
683
390
Apache-2.0
2023-09-14T17:07:52
2013-05-21T15:53:37
Python
UTF-8
Python
false
false
130
py
signals.py
# -*- coding: utf-8 -*- import blinker signals = blinker.Namespace() osf4m_user_created = signals.signal('osf4m-user-created')
e8f4d1ac45f700f7f9bc1f3755746cf6d2aed8d9
5c49bd272a10e76b051c862ddaaa0745ea6300e9
/fairmotion/tasks/clustering/split_bvh.py
e6ac89867c1567dff4470af76852ad0432fa9bbd
[ "BSD-3-Clause" ]
permissive
facebookresearch/fairmotion
5ff27d2d9b52f5747d99dc556fb33712cb324d19
e400e564deac93bb74ffecd9c366d76b3406e217
refs/heads/main
2023-08-25T02:23:12.826849
2022-12-22T16:55:25
2022-12-22T16:55:25
210,951,863
551
103
NOASSERTION
2023-02-23T17:34:19
2019-09-25T22:27:29
Python
UTF-8
Python
false
false
1,394
py
split_bvh.py
# Copyright (c) Facebook, Inc. and its affiliates. import argparse import os import tqdm from fairmotion.data import bvh from fairmotion.ops import motion as motion_ops def split_bvh(filepath, time_window, output_folder): motion = bvh.load(filepath) frames_per_time_window = time_window * motion.fps for n...
3466c7125a5fece1e93dfb057f25a29911ab64b9
2b7e3535fdf055643d07499a5eff12c6e9e29e2f
/sopel/tools/identifiers.py
017aa0fd064728cadc97244553a490516ef20788
[ "EFL-2.0" ]
permissive
sopel-irc/sopel
fb9669d82df137a322f38d9a9b38911dd2fdb5c2
bc688b4eaee25a1be4fef66477f016bc21ea61d8
refs/heads/master
2023-09-03T20:10:40.233784
2023-08-16T20:55:45
2023-08-16T20:55:45
3,035,586
598
422
NOASSERTION
2023-09-04T06:59:41
2011-12-22T17:59:00
Python
UTF-8
Python
false
false
9,665
py
identifiers.py
"""Identifier tools to represent IRC names (nick or channel). Nick and channel are defined by their names, which are "identifiers": their names are used to differentiate users from each others, channels from each others. To ensure that two channels or two users are the same, their identifiers must be processed to be c...
e4a923aae0e8847214a918f04d43f88638e8a8ad
c511dbbe18091d88d1142776f48f88e75de34a93
/seglearn/__init__.py
cb89d5b8e98ea99c38dc5fd6569cac48d4b52f28
[]
permissive
dmbee/seglearn
8a052dc0c5de81f0528e6eef9004258218dac612
b93b670fd62d4ff22bd44d15023422f20789fd23
refs/heads/master
2023-08-25T07:22:38.051119
2022-08-27T09:00:35
2022-08-27T09:00:35
123,977,530
566
72
BSD-3-Clause
2022-06-16T18:12:40
2018-03-05T20:53:59
Python
UTF-8
Python
false
false
1,122
py
__init__.py
# Author: David Burns # License: BSD from . import transform, pipe, util, split, datasets, feature_functions from ._version import __version__ from .base import TS_Data from .datasets import load_watch from .feature_functions import base_features, all_features from .pipe import Pype from .preprocessing import TargetRu...
16249fc1de8495458faafd118300f54203b5c0e8
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/Intro_Solid_Mechanics_Adeeb/6.4.3.py
28a0a67f6f9b504060ffb540634d48b8eeba49b8
[]
no_license
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
444
py
6.4.3.py
from sympy import Eq,diff,integrate, dsolve import sympy as sp sp.init_printing(use_latex="mathjax") rho, b1, x1, c, s = sp.symbols("rho b_1 x_1 C sigma") f = sp.Function("f") equation = f(x1).diff(x1)+rho*b1 print("equation of equilibrium =",Eq(equation,0)) #intEqu = integrate(equation, x1) #intEqu = intEqu.subs({b1:1...
cc0e7060b90d87cc1ea1dfb6fd36d93126a66ed4
4e4e03b75ed4a89a5bb463d29da2a650edbf829a
/transforms3d/tests/test_zooms_shears.py
4fc1f32d9924c2344d54dbfe6fbbc8a3b1e853d2
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
matthew-brett/transforms3d
98bf30e4ea18dc22248c018da692f4b9d59ce413
76213cc35212ffe8f6a3c92cfc4a8c6bc8026d2b
refs/heads/main
2023-09-05T01:57:37.630640
2022-10-11T14:40:05
2022-10-11T14:40:05
313,553
437
95
NOASSERTION
2023-09-12T09:35:20
2009-09-21T20:03:09
Python
UTF-8
Python
false
false
5,857
py
test_zooms_shears.py
""" Testing zooms and shears """ import math import numpy as np import transforms3d.zooms as tzs import transforms3d.shears as tss from transforms3d.utils import vector_norm, random_unit_vector from numpy.testing import assert_array_equal, assert_array_almost_equal from transforms3d.testing import assert_raises ...
171dce8e55ae8dae8dfa4e3f2058975072c7b6cb
7af0ff378525ef6132f74bac0b1eb54ce4c40c08
/indico/core/oauth/protector.py
e0b6bed816fa594339090fe7ab61fb167581c822
[ "MIT" ]
permissive
indico/indico
1126ee0ac3e9d36510a64989ce71be9c02680831
463951511d3a8409f944f98f29875c4323f3e897
refs/heads/master
2023-08-31T11:15:00.092526
2023-08-30T11:07:25
2023-08-30T11:07:25
2,113,067
1,549
429
MIT
2023-09-13T20:09:56
2011-07-27T13:56:30
Python
UTF-8
Python
false
false
2,545
py
protector.py
# This file is part of Indico. # Copyright (C) 2002 - 2023 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from authlib.integrations.flask_oauth2 import ResourceProtector from authlib.oauth2.rfc6750.validator impo...
88acd39a0bacfe98ef741e1048beb56ac7f13d31
31e3e0ce6d8b8cd1b286971aa1ea3c56a338ca48
/sunpy/database/tables.py
67beddd54445a78db2c939f2ffa62df6cd2d1906
[ "BSD-2-Clause" ]
permissive
sunpy/sunpy
d8df998cf7753834ffd7add6911c0e4f6828b5b8
edd3ea805f4540d41ce2932a0e865cab2d6a4cf5
refs/heads/main
2023-09-01T12:05:09.343909
2023-08-31T13:36:35
2023-08-31T13:36:35
2,165,383
792
683
BSD-2-Clause
2023-09-14T14:03:09
2011-08-06T15:34:08
Python
UTF-8
Python
false
false
32,359
py
tables.py
# Author: Simon Liedtke <liedtke.simon@googlemail.com> # # This module was developed with funding provided by # the Google Summer of Code (2013). import os import fnmatch from datetime import datetime import numpy as np from sqlalchemy import Boolean, Column, DateTime, Float, ForeignKey, Integer, String, Table from sq...
4c53152250c68b3bcffdfc695cbec9b26fd75741
0e94b30ee428326fb65a15f6cdbd2826bea282f0
/Chapter11/microservices/users_backend/UsersBackend/tests/conftest.py
1138212e930ed6f858cb839ae0d383fca801cc36
[ "MIT" ]
permissive
PacktPublishing/Hands-On-Docker-for-Microservices-with-Python
a9874ef3e70ad65b8550401e08499129beb87c8d
2ed9899e9df566c0a087682b3a85798b1c0380e9
refs/heads/master
2023-05-11T16:01:07.509199
2023-01-30T08:25:38
2023-01-30T08:25:38
185,544,286
200
249
MIT
2023-05-01T20:52:30
2019-05-08T06:26:17
Python
UTF-8
Python
false
false
244
py
conftest.py
import pytest from users_backend.app import create_app @pytest.fixture def app(): application = create_app(script=True) application.app_context().push() # Initialise the DB application.db.create_all() return application
860e921ff847c0b217803ea3cce0fb48ec4d99a9
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/completion/innerClassesNotSuggestedForKeywordPatterns.py
5d6487a350cbb0756fb55dcfe526ead0e331265f
[ "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
103
py
innerClassesNotSuggestedForKeywordPatterns.py
class C: class InnerClass: pass match C(): case C(Inner<caret>): pass
36a8ab92641c133ed96c81165440ed1623c2355d
58919431a7fb4da999b8584d5fa7ace5232b3e8a
/heudiconv/heuristics/studyforrest_phase2.py
c9151d9a1a13c810d38f115dca20efc76c9dbd03
[ "Apache-2.0" ]
permissive
nipy/heudiconv
1eb767cbf2bcf00b6d08d78584a9ee6b037cab2e
bf9b75b34ea002f73cc6cf54189e4de5efcb2a91
refs/heads/master
2023-08-08T01:00:14.261232
2023-07-25T19:55:56
2023-07-25T19:55:56
42,650,211
207
141
NOASSERTION
2023-09-11T13:52:41
2015-09-17T10:34:11
Python
UTF-8
Python
false
false
2,031
py
studyforrest_phase2.py
from __future__ import annotations from typing import Optional from heudiconv.utils import SeqInfo scaninfo_suffix = ".json" def create_key( template: Optional[str], outtype: tuple[str, ...] = ("nii.gz",), annotation_classes: None = None, ) -> tuple[str, tuple[str, ...], None]: if template is None ...
d073be17373f1ca4b0caa4905379392de10327c4
93134d8429cc7c5251ea76e19bf1856466bd2b48
/trajnetbaselines/classical/orca.py
0eb3d97bedce3cf0d3106982c0930bd8d1b9f336
[ "MIT" ]
permissive
vita-epfl/trajnetplusplusbaselines
0bd7ce75740f3ed39ba82d1bfaa5d3c279da474f
99a6e9d8675face1aeeb17227b73dd3d1267f463
refs/heads/master
2023-04-14T23:21:54.217111
2022-10-04T09:52:01
2022-10-04T09:52:01
218,013,163
221
83
MIT
2023-04-04T15:07:11
2019-10-28T09:42:36
Python
UTF-8
Python
false
false
4,832
py
orca.py
import numpy as np from scipy.interpolate import interp1d import rvo2 import trajnetplusplustools MAX_SPEED_MULTIPLIER = 1.3 # with respect to initial speed def predict(input_paths, dest_dict=None, dest_type='interp', orca_params=[1.5, 1.5, 0.4], predict_all=True, n_predict=12, obs_length=9): pred_l...
aece7e53fb10b8b9ffd08452321335983a61746a
d8810093406a2ba401ac6ea300ed414bfab6b6a0
/kraken/ketos/util.py
e71b535053c08b1372076b6a6180429000c16b68
[ "Apache-2.0" ]
permissive
mittagessen/kraken
11b8eeaff5dcfaa62a96b0af73ebe65bc2d9bef2
3e966a3e5c881394b882da95fa5941c4305aec43
refs/heads/main
2023-08-29T05:52:06.301403
2023-08-17T11:25:56
2023-08-17T11:25:56
35,872,353
565
140
Apache-2.0
2023-09-08T10:28:33
2015-05-19T09:24:38
Python
UTF-8
Python
false
false
1,889
py
util.py
# # Copyright 2022 Benjamin Kiessling # # 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 writ...
8029110e4858b804d6748afd822d2d620db3386a
9b1eda0abdc5dea7c6e9695ff4e1098abe0a708b
/tests/snapshot_tests/snapshot_apps/fr_margins.py
204e6154f8a8cf31f99a03bdc60dcafd03abd988
[ "MIT" ]
permissive
Textualize/textual
b8cf4b5d18069fccc7623b3116436f479e1ef446
b74ac1e47fdd16133ca567390c99ea19de278c5a
refs/heads/main
2023-08-30T21:40:21.563823
2023-08-30T10:18:27
2023-08-30T10:18:27
355,959,597
14,818
588
MIT
2023-09-14T20:22:02
2021-04-08T15:24:47
Python
UTF-8
Python
false
false
780
py
fr_margins.py
from textual.app import App, ComposeResult from textual.widgets import Label from textual.containers import Container # Test fr dimensions and margins work in an auto container # https://github.com/Textualize/textual/issues/2220 class TestApp(App): CSS = """ Container { background: green 20%; ...
ebff52eba75860e34806d305cc443092f9f95907
4fafaf50c41b1ad99849248f9872a199f7df2d0d
/git_code_debt/metrics/curse_words.py
cdc97b163b4e145298df40d32b54e4c76867aed8
[ "MIT" ]
permissive
asottile/git-code-debt
3dd05a58a19f8d55ea8244f6eaf6d8d6ecb99f33
16b60f43dd6ee22d9fe074541d2418411dda03c4
refs/heads/main
2023-08-11T18:28:12.813666
2023-08-01T15:55:52
2023-08-01T15:55:52
14,399,837
287
18
MIT
2023-09-05T13:06:16
2013-11-14T16:05:41
Python
UTF-8
Python
false
false
5,438
py
curse_words.py
from __future__ import annotations word_list = {b'4r5e', b'5h1t', b'5hit', b'a55', b'anal', b'anus', b'ar5e', b'arrse', b'arse', b'ass', b'ass-fucker', b'asses', b'assfucker', b'assfukka', b'asshole', b'assholes', b'asswhole', b'a_s_s', b'b!tch', b'b00bs', b'b17ch', b'b1tch', b'ballbag', b'balls', b'ballsack', b'bastar...
6eab14306e112f1281d23300eddc302aeb8e3e47
e0ed4496e94263643cedea56bfcdec1140ced8d6
/neupy/architectures/__init__.py
562eae9865fc341065aa497b90baea7b13a0af92
[ "MIT" ]
permissive
itdxer/neupy
6307666271807bd9028e3e60dd2536a544ed8421
317ed4204b5239e8be2b94a95fe3157c5f9edc65
refs/heads/master
2023-06-13T23:09:36.487633
2023-01-03T21:24:56
2023-01-03T21:24:56
41,323,480
840
206
MIT
2022-12-16T16:32:10
2015-08-24T19:45:11
Python
UTF-8
Python
false
false
125
py
__init__.py
from .vgg16 import * from .vgg19 import * from .squeezenet import * from .resnet import * from .mixture_of_experts import *
1f32144404465786d3b76b86fc3961405c15009e
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/FeedCyrenThreatInDepth/Scripts/CyrenThreatInDepthRelatedWidget/CyrenThreatInDepthRelatedWidget.py
6f194dac8ed9bb01e65d363e826be48aa3a51d80
[ "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
877
py
CyrenThreatInDepthRelatedWidget.py
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * def cyren_feed_relationship(args) -> CommandResults: indicator = args.get("indicator") if not indicator: raise ValueError("Please provide 'indicator' argument!") result = demisto.executeCommand("Cy...
20e652e97b17fe2d530c3da95a1fa0fa91b0b882
8b5d61f17ab2e4c158270cf6dda79f9a47870df1
/sknetwork/topology/weisfeiler_lehman.py
572b9711a26af5fecfce0573fce6c1f4e6d0d27c
[ "BSD-3-Clause" ]
permissive
sknetwork-team/scikit-network
55a5ecbbbd2dfc78095aa74f3953c770357cadbb
95cec38d56b086b95616d2f1d13a9b98c6c8b534
refs/heads/master
2023-09-03T21:56:42.345214
2023-05-22T14:12:57
2023-05-22T14:12:57
135,287,970
581
73
NOASSERTION
2023-07-21T05:42:25
2018-05-29T11:45:42
Python
UTF-8
Python
false
false
4,308
py
weisfeiler_lehman.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created in July 2020 @author: Pierre Pebereau <pierre.pebereau@telecom-paris.fr> @author: Alexis Barreaux <alexis.barreaux@telecom-paris.fr> """ from typing import Union import numpy as np from scipy import sparse from sknetwork.topology.weisfeiler_lehman_core import...
55f5f4d2847e72f4a82394780c8d41c74689b0dd
a3e2d421f94a8adf2c41ff1d093b5a06de1448d6
/product/runtime/src/main/python/java/_vendor/elftools/dwarf/abbrevtable.py
6d29d5cfe8ca3fc9a69efe295c50453e0f4ced03
[ "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
2,546
py
abbrevtable.py
#------------------------------------------------------------------------------- # elftools: dwarf/abbrevtable.py # # DWARF abbreviation table # # Eli Bendersky (eliben@gmail.com) # This code is in the public domain #------------------------------------------------------------------------------- from ..common.utils imp...
b67307bebb573f31df58371dd2f6d3736263c88c
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/L1Trigger/L1TNtuples/python/RelValInputFiles.py
0081ce9db035a9d5edc89016f79890730952381d
[ "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
692
py
RelValInputFiles.py
# these files allow to test the workflows starting from different event content # AOD def RelValInputFile_AOD(): return '/store/relval/CMSSW_7_5_0_pre1/RelValProdTTbar_13/AODSIM/MCRUN2_74_V7-v1/00000/48159643-5EE3-E411-818F-0025905A48F0.root' # DIGI (only available in RelVal, not a realistic workflow) def RelVal...
db0107fd6facf1518e9f559c34fd4ffe70a9f46c
30a03b509ed189f6a0e0574883a255774965e93e
/flightrl/setup.py
1f6a44e29e791c70458ffd587dac2abd3d35ad53
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
uzh-rpg/flightmare
efdf34f546348b870307e4c375b0bf82fbf256d2
d4218aedac18cbe9364a0a0df10ab992c4b65e4f
refs/heads/master
2023-08-13T17:25:46.427864
2023-05-15T08:41:51
2023-05-15T08:41:51
279,581,575
811
346
NOASSERTION
2023-04-18T04:30:00
2020-07-14T12:40:25
C++
UTF-8
Python
false
false
556
py
setup.py
import os import re import sys import platform import subprocess from setuptools import setup, Extension, find_packages from setuptools.command.build_ext import build_ext from distutils.version import LooseVersion setup( name='rpg_baselines', version='0.0.1', author='Yunlong Song', author_email='song@...
b07f3f7d973b2493f8fe0813e276cb13a996cd41
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-codehub/huaweicloudsdkcodehub/v3/model/add_deploy_key_request_body.py
b7386de5309f296c789781b00cb93f0c8fd734aa
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
5,522
py
add_deploy_key_request_body.py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class AddDeployKeyRequestBody: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attr...
a770833a5c93ca1624392d0cee5bbbcefcbb1d9c
2a64017ddbf28d00109ed4e3105e1f7ccc78ccc1
/forms101/forms/contact_form.py
47531f8a2cb3f5de020348f2360b61b221853c0b
[]
no_license
viewflow/cookbook
25f9379510ced08dbdbae9d5cfb3df0c68f95a08
04189977cd894b5166d088949f30e07189889189
refs/heads/main
2023-08-17T09:22:26.226335
2023-08-11T15:12:23
2023-08-11T15:12:23
35,273,541
286
179
null
2023-01-19T10:44:18
2015-05-08T10:32:49
Python
UTF-8
Python
false
false
813
py
contact_form.py
from django import forms from viewflow.forms import Layout, Row from . import Form class ContactForm(Form): name = forms.CharField( widget=forms.TextInput( attrs={"leading-icon": "account_box"}, ) ) email = forms.EmailField( widget=forms.EmailInput( attrs={"...
1daf59aa1bcdd15bb083f50f192ac5e94f933182
67c0bc2b2292857fcc19b3c6e6da5570dc09749c
/chapter_4_modeling/train_audioregression.py
3af115a0b6fc0c7cb74f82b968d73331cc7bf244
[ "Apache-2.0" ]
permissive
jim-schwoebel/voicebook
9d28f638fa6a31cb8c4915f9871c07da261b3ea6
0e8eae0f01487f15589c0daa2cf7ca3c6f3b8ad3
refs/heads/master
2022-12-11T13:41:24.005431
2021-04-15T13:51:35
2021-04-15T13:51:35
137,778,789
363
84
Apache-2.0
2022-12-08T03:58:01
2018-06-18T16:37:37
Python
UTF-8
Python
false
false
32,618
py
train_audioregression.py
''' ================================================ ## VOICEBOOK REPOSITORY ## ================================================ repository name: voicebook repository version: 1.0 repository link: https://github.com/jim-schwoebel/voicebook author: Jim Schwoebel author contact: js@neur...
ae94ca910f88d795aef2db8c7e800cbf1d012b54
cb4b3f0b1ebd13d0c448c8267873ab3ff1b7ee1f
/flask_appbuilder/fields.py
001ed4255348e3f7ec2576947b2225fffe99576f
[ "BSD-3-Clause" ]
permissive
dpgaspar/Flask-AppBuilder
2681797993a08c324777866d69f30d6a56401c3d
74f37e21a3c9c7ca7fb3e56f73759e3eaa2ead6b
refs/heads/master
2023-09-05T18:45:21.119981
2023-08-22T10:58:54
2023-08-22T10:58:54
14,265,145
4,550
1,566
BSD-3-Clause
2023-09-12T04:02:09
2013-11-09T21:13:29
Python
UTF-8
Python
false
false
8,785
py
fields.py
from __future__ import unicode_literals import operator from wtforms import widgets from wtforms.fields import Field, SelectField, SelectFieldBase from wtforms.validators import ValidationError class AJAXSelectField(Field): """ Simple class to convert primary key to ORM objects for SQLAlchemy and fab no...
88448369190ee1943d43fb81821286af37774e43
2481cde6506743565dff2b405a2396daf208ab3e
/src/ranking/management/modules/quora.py
cbe7708d30e9a35ed5580a34a309053922c04d35
[ "Apache-2.0" ]
permissive
aropan/clist
4819a3036d179595e4df8c646aff2ed593b9dad3
5c805b2af71acee97f993f19d8d4e229f7f5b411
refs/heads/master
2023-08-31T11:15:17.987776
2023-08-27T21:51:14
2023-08-27T21:52:16
187,111,853
276
35
Apache-2.0
2023-09-06T18:42:53
2019-05-16T22:57:03
Python
UTF-8
Python
false
false
2,598
py
quora.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import collections import csv import arrow from ranking.management.modules.common import REQ, BaseModule, parsed_table class Statistic(BaseModule): def get_standings(self, users=None, statistics=None): result = {} result = {} problems_info...
1c30acf4ee575e5e9c154cd7c1335dd025a34c7e
9f84d91a8ae3df53b07fe3267992fba00a99ac9e
/torch_geometric/utils/to_dense_adj.py
e2423735a5ffa5441ac1a8149072b8a9d45c8b08
[ "MIT" ]
permissive
pyg-team/pytorch_geometric
ebea601eae228f3905465b5c2349d3fb3bb5cb26
a52af694b8ce6a80811e20966fe6d08a3e7511fe
refs/heads/master
2023-08-31T04:13:40.943308
2023-08-30T12:48:42
2023-08-30T12:48:42
106,024,057
6,775
1,563
MIT
2023-09-14T17:10:18
2017-10-06T16:03:03
Python
UTF-8
Python
false
false
3,449
py
to_dense_adj.py
from typing import Optional import torch from torch import Tensor from torch_geometric.typing import OptTensor from torch_geometric.utils import scatter def to_dense_adj( edge_index: Tensor, batch: OptTensor = None, edge_attr: OptTensor = None, max_num_nodes: Optional[int] = None, batch_size: Op...
494cbac7921933e8d333c55469dd9b18628551fa
74218ee28b26a2b0c28c69c01eabb8b81b9d1f1d
/tests/test_integration.py
1dc99062ce39b4fef8b45fdb8ff7503cad3cbc41
[ "MIT" ]
permissive
readthedocs/sphinx-autoapi
5f2cd9f996693b14325e9452165731b6fb0a89e6
92437c9af72b75fbccb451da95f85dbbf0c3f0da
refs/heads/main
2023-09-02T19:45:48.149162
2023-07-08T17:38:24
2023-07-08T17:38:24
36,524,868
277
129
MIT
2023-08-21T12:48:43
2015-05-29T19:32:28
Python
UTF-8
Python
false
false
1,574
py
test_integration.py
import io import os import shutil from contextlib import contextmanager from sphinx.application import Sphinx @contextmanager def sphinx_build(test_dir, confoverrides=None): os.chdir("tests/{0}".format(test_dir)) try: app = Sphinx( srcdir=".", confdir=".", outdir="...
90f66304dd53e830d1e2aa1c75483ab06717a559
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/HLTrigger/Configuration/python/HLT_75e33/modules/hltPixelLayerPairsUnseeded_cfi.py
4f4ff5cf247062ed05069ec4b4b38ace5ef77d8d
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
1,827
py
hltPixelLayerPairsUnseeded_cfi.py
import FWCore.ParameterSet.Config as cms hltPixelLayerPairsUnseeded = cms.EDProducer("SeedingLayersEDProducer", BPix = cms.PSet( HitProducer = cms.string('siPixelRecHits'), TTRHBuilder = cms.string('TTRHBuilderWithoutAngle4PixelTriplets'), skipClusters = cms.InputTag("hltElePixelHitTriplets...
7b9945b4ab496d7ce2d877f2e00d402818b33b24
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-Cocoa/PyObjCTest/test_nsurlconnection.py
e138383b474ea047b0444e919e147efd47a93e38
[ "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
3,750
py
test_nsurlconnection.py
import Foundation from PyObjCTools.TestSupport import TestCase, min_os_level, min_sdk_level import objc class TestNSURLConnectionHelper(Foundation.NSObject): def connection_canAuthenticateAgainstProtectionSpace_(self, a, b): return 1 def connectionShouldUseCredentialStorage_(self, a): return ...
78868b645e523dea3d882ea6da3da1d2b2083378
ad89d921c37ab2a6cc952181a4a15c41c0637270
/controller/urls.py
6053190d77fe2b7e685726e362f985ce503bb64e
[]
no_license
vulhub/MetaDockers
f3b693e3dab73de482a04f7e63307c70a106343e
da82440fdfc90e4c92fc553a0cdb278cf9d7798d
refs/heads/master
2023-05-20T01:59:04.449519
2020-03-03T09:30:03
2020-03-03T09:30:03
103,743,717
131
38
null
2021-06-10T18:39:13
2017-09-16T10:21:01
Python
UTF-8
Python
false
false
513
py
urls.py
from django.conf.urls import url, handler404, handler500 from . import views urlpatterns = [ url(r'^info/$', views.infoRouting), url(r'^images', views.imageRouting), url(r'^index/$', views.indexRouting), url(r'^about/$', views.aboutRouting), url(r'^vulhubs/$', views.vulhubRouting), url(r'^volumes/$', views.volum...
11c2f8cd3a1e029fdedcdecc0822e9f578df02c4
045ec3ae16fc554a05510abc3697557ebc5ce304
/CIME/case/__init__.py
db92711a2e60eba6da1bc33b5e8e06122af0dcac
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
ESMCI/cime
c09223ee9b8a463bd00741ff39f60fda7639af89
02fad90a379cdbd3c1106cbd63324480f0bf7a22
refs/heads/master
2023-08-16T07:03:22.224344
2023-08-03T19:47:53
2023-08-03T19:47:53
31,605,662
159
179
NOASSERTION
2023-09-12T18:38:42
2015-03-03T15:33:00
Python
UTF-8
Python
false
false
32
py
__init__.py
from CIME.case.case import Case
a916fb0252d3ce3862ded03ccf394baa9632f365
b049a961f100444dde14599bab06a0a4224d869b
/sdk/python/pulumi_azure_native/securityinsights/v20230701preview/get_aws_s3_data_connector.py
63ab84c51bfe72b23f41e0c39d3b2265ab0a0833
[ "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
7,637
py
get_aws_s3_data_connector.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...
6b1e267d8c7648dd5733ed924a13eff50729b0e1
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/govern/data-security/ranger/intg/src/test/python/test_ranger_client.py
cbedcbf763199e75d82804e67f71ae829c135b03
[ "Apache-2.0", "BSD-3-Clause", "WTFPL", "MIT", "GPL-2.0-only" ]
permissive
alldatacenter/alldata
7bc7713c9f1d56ad6b8e59ea03206d1073b7e047
8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6
refs/heads/master
2023-08-05T07:32:25.442740
2023-08-03T13:17:24
2023-08-03T13:17:24
213,321,771
774
250
Apache-2.0
2023-09-06T17:35:32
2019-10-07T07:36:18
null
UTF-8
Python
false
false
4,386
py
test_ranger_client.py
#!/usr/bin/env python # # 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 "Li...
946b4b6fddeb01392fbc589695ed58933b275558
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/RecoMET/METFilters/python/badGlobalMuonTaggersAOD_cff.py
b2d5b1619298d89a3254a407fc309db9f11bfe72
[ "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
454
py
badGlobalMuonTaggersAOD_cff.py
import FWCore.ParameterSet.Config as cms badGlobalMuonTagger = cms.EDFilter("BadGlobalMuonTagger", muons = cms.InputTag("muons"), vtx = cms.InputTag("offlinePrimaryVertices"), muonPtCut = cms.double(20), selectClones = cms.bool(False), taggingMode = cms.bool(False), ) cloneGlobalMuonTagger = badG...
e55d8bde30d28ba712b65a023f8e56194159a230
6181fcd4a266d963a0ee85971768c97922ca77cd
/src/garage/tf/q_functions/discrete_mlp_dueling_q_function.py
dd7e142ae67d97cb8a247e9f4404933dde01cfad
[ "MIT" ]
permissive
rlworkgroup/garage
5d215bbecb3a4e74b504988d6684a7b04df69a80
2d594803636e341660cab0e81343abbe9a325353
refs/heads/master
2023-08-21T22:58:49.338034
2023-01-04T06:06:27
2023-01-04T06:06:27
136,846,372
1,832
363
MIT
2023-09-11T11:36:40
2018-06-10T21:31:23
Python
UTF-8
Python
false
false
6,015
py
discrete_mlp_dueling_q_function.py
"""Discrete MLP QFunction.""" import tensorflow as tf from garage.tf.models import MLPDuelingModel class DiscreteMLPDuelingQFunction(MLPDuelingModel): """Discrete Q Function with dualing MLP network. This class implements a Q-value network. It predicts Q-value based on the input state and action. It use...
6a838fdf87885bd04e2fac349dcc9a0ff4650e3a
568fa58296378fa129ab3349adf010daa44ed45b
/third_party/incubator-tvm/tests/python/integration/test_reduce.py
acbec36c510eb370e1de86ab3751a71071edd876
[ "Apache-2.0", "BSD-3-Clause", "NCSA", "X11-distribute-modifications-variant", "Zlib", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "LLVM-exception", "BSD-2-Clause" ]
permissive
mindspore-ai/akg
37f471badc66de6a831f1f45ad84344f34d23ef2
99f33858d6972741748cbfc9ab0bf9600428fef7
refs/heads/master
2023-07-25T23:03:17.672665
2023-07-11T07:33:57
2023-07-11T07:33:57
274,077,856
319
36
Apache-2.0
2021-12-30T13:43:08
2020-06-22T08:09:05
Python
UTF-8
Python
false
false
12,105
py
test_reduce.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...
25e87b62adcfbd7ce6da0654824bf49f7c84b3bd
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/RecoJets/FFTJetProducers/python/pileup_shape_Fall10_L1Hybrid_AK5PF_v1_cfi.py
7c4a13f99b5614f60d082d8d1dda3de400711886
[ "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,116
py
pileup_shape_Fall10_L1Hybrid_AK5PF_v1_cfi.py
fftjet_pileup_eta_max = 5.0 fftjet_pileup_eta_bins = 256 fftjet_pileup_magnitude_factors = (0.925272109973, 0.925272109973, 0.925272109973, 0.925272109973, 0.925272109973, 0.925272109973, 0.925272109973, 0.925272109973, 0.925272109973, 0.925272109973, 0.925272109973, 0.925272109973, 0.925272109973, 0.925272109973, 0.92...
115f101033bf00610b8a986a1b1705b86ba5ec20
8880226d2ca1c9448c44b3e9f21226a58e61ac93
/awacs/servicequotas.py
7c38e2f865c572db14202fded34108825ede40c6
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
cloudtools/awacs
2f82958ccc7ba2177492c29c706a5737f19dd2d1
c449a9637f01c26e73b827a9f8d5cc7715bbbea2
refs/heads/main
2023-08-31T00:58:28.636568
2023-08-28T05:13:01
2023-08-28T05:13:01
9,062,692
385
107
BSD-2-Clause
2023-08-13T23:21:39
2013-03-27T20:16:27
Python
UTF-8
Python
false
false
2,022
py
servicequotas.py
# Copyright (c) 2012-2021, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from typing import Optional from .aws import Action as BaseAction from .aws import BaseARN service_name = "Service Quotas" prefix = "servicequotas" class Action(BaseAction): def __init__(self, act...
b44d9e8822ed036a7869f67891b646d67405bb37
8a85eb9b50864626cd2674f15b07df3d5dbe0b73
/neo/io/openephysbinaryio.py
aad629fa9cc94b735b647283f1a2a7e25644e58b
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
NeuralEnsemble/python-neo
287d3457a44c45f4dcbee0e9f9a2a5d83142de69
354c8d9d5fbc4daad3547773d2f281f8c163d208
refs/heads/master
2023-09-06T03:29:34.835053
2023-09-01T09:17:14
2023-09-01T09:17:14
3,949,530
265
213
BSD-3-Clause
2023-09-14T19:09:24
2012-04-06T12:48:48
Python
UTF-8
Python
false
false
383
py
openephysbinaryio.py
from neo.io.basefromrawio import BaseFromRaw from neo.rawio.openephysbinaryrawio import OpenEphysBinaryRawIO class OpenEphysBinaryIO(OpenEphysBinaryRawIO, BaseFromRaw): _prefered_signal_group_mode = 'group-by-same-units' mode = 'dir' def __init__(self, dirname): OpenEphysBinaryRawIO.__init__(self...
17ed59bd3f2380f4b23869e432495c434ed61260
6a63f3baf8a5a54bba1974acd3a4dc14f486eb88
/pyexcel/internal/meta.py
eeac18b963262567f4ae759308f8e8924c7a83b2
[ "BSD-3-Clause" ]
permissive
pyexcel/pyexcel
7ecda49447a7576119441a9a72fb5ecbd46f9ec0
f1bf5fe0f9119b64c9a87ad57d9fc771cbc1a52d
refs/heads/dev
2023-08-04T14:33:11.890759
2023-07-16T11:19:18
2023-07-16T11:19:18
23,225,199
1,190
182
NOASSERTION
2023-07-18T00:16:44
2014-08-22T12:52:20
Python
UTF-8
Python
false
false
13,164
py
meta.py
""" pyexcel.internal.meta ~~~~~~~~~~~~~~~~~~~~~~ Annotate sheet and book class' attributes :copyright: (c) 2015-2022 by Onni Software Ltd. :license: New BSD License """ import sys from functools import partial from pyexcel import constants from pyexcel import docstrings as docs from pyexcel._comp...
1fc7497831427755c8b56eb433d564f445fc3e2e
2258118ac438188696e058b821aa5e8166d94f82
/pre/ShotDetection/shotdetect/shot_detector.py
1d28456a2a391735b8b23bcc95781c7b49bf48a6
[ "BSD-3-Clause" ]
permissive
AnyiRao/SceneSeg
4c5ea7f6823e9006d0df21702a7ab69e8be17a3d
87adf90160a1f490e5c49732227c500d38a7d933
refs/heads/master
2023-08-16T22:31:41.814091
2023-08-14T22:20:05
2023-08-14T22:20:05
245,794,561
210
46
null
null
null
null
UTF-8
Python
false
false
2,993
py
shot_detector.py
# The codes below partially refer to the PySceneDetect. According # to its BSD 3-Clause License, we keep the following. # # PySceneDetect: Python-Based Video Scene Detector # --------------------------------------------------------------- # [ Site: http://www.bcastell.com/projects/PySceneDetect/ ] # ...
60ede307a0d9ba940e3441ac4b7bfcdcf54b7041
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/PhysicsTools/Heppy/python/analyzers/examples/ntuple.py
9b398d871770235b35314e26c7ebf5b8ed6785af
[ "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,155
py
ntuple.py
#!/bin/env python from __future__ import print_function def var( tree, varName, type=float ): tree.var(varName, type) def fill( tree, varName, value ): tree.fill( varName, value ) # event information def bookEvent(tree): var(tree, 'run') var(tree, 'lumi') var(tree, 'event') def fillEvent(tree...
b106f2ec0ed1498c76f348336c22370dc2f4fc99
da1721d2783ea4d67ff4e73cee6eee71292f2ef7
/toontown/minigame/IceTreasure.py
84b4e519c9084763ad620be6838f813825445129
[ "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
3,174
py
IceTreasure.py
from panda3d.core import Point3, CollisionSphere, CollisionNode, BitMask32 from direct.interval.IntervalGlobal import Sequence, LerpScaleInterval, Parallel, Func, SoundInterval from direct.directnotify import DirectNotifyGlobal from direct.showbase.DirectObject import DirectObject from toontown.toonbase import Toontown...
efacbbde56b67f21546a24bd366b5ff7ca41d31c
da1500e0d3040497614d5327d2461a22e934b4d8
/starboard/tools/win_symlink_fast.py
8c5e9407b174c2bfadcb5d447f04dfd6ac918140
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
youtube/cobalt
34085fc93972ebe05b988b15410e99845efd1968
acefdaaadd3ef46f10f63d1acae2259e4024d383
refs/heads/main
2023-09-01T13:09:47.225174
2023-09-01T08:54:54
2023-09-01T08:54:54
50,049,789
169
80
BSD-3-Clause
2023-09-14T21:50:50
2016-01-20T18:11:34
null
UTF-8
Python
false
false
7,216
py
win_symlink_fast.py
#!/usr/bin/python # Copyright 2019 The Cobalt 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 requi...
6f3c8310f0275cf0f7a072e7aa0457c0182aaee9
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/chrome/tools/history-viz.py
4a4d787826b5435f7793ea917990b9f708ad72f9
[ "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
8,007
py
history-viz.py
#!/usr/bin/env python # Copyright 2011 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Process a History database and dump a .dot file suitable for GraphViz. This is useful for debugging history redirect flows. An example run of this progr...
e1ce1f32dae73160a5a64838c2353e329828cb3a
642ba1746fed0b722a127b8426eca987df6efc61
/share/lib/python/neuron/rxd/__init__.py
6685bd28fb73b00d87156ae494aa49c285d42ab6
[ "BSD-3-Clause" ]
permissive
neuronsimulator/nrn
23781d978fe9253b0e3543f41e27252532b35459
b786c36d715ba0f6da1ba8bdf5d2338c939ecf51
refs/heads/master
2023-08-09T00:13:11.123525
2023-08-04T13:11:02
2023-08-04T13:11:02
71,627,569
313
171
NOASSERTION
2023-09-14T17:48:03
2016-10-22T08:47:37
C++
UTF-8
Python
false
false
4,240
py
__init__.py
from .rxdException import RxDException # import sys # if 'neuron.rxd' in sys.modules: # raise RxDException('NEURON CRxD module cannot be used with NEURON RxD module.') from . import rxd, constants from .species import Species, Parameter, State from .region import Region, Extracellular from .rate import Rate from ....
0a974063c833d4e2535d6ace9dc2ee1109ed1cfd
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-VideoToolbox/PyObjCTest/test_vtutilities.py
0a2d398564a967e9b55b30e8e6d8ebb03683529a
[ "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
462
py
test_vtutilities.py
import VideoToolbox from PyObjCTools.TestSupport import TestCase, min_os_level class TestVTUtilities(TestCase): @min_os_level("10.11") def test_functions(self): self.assertArgIsOut(VideoToolbox.VTCreateCGImageFromCVPixelBuffer, 2) self.assertArgIsCFRetained(VideoToolbox.VTCreateCGImageFromCVPi...
19e3038ac3810b1b8d257ac7280772dcfbbf376d
a53076722d9696422b2d9f8b6166c21ed7876607
/boltons/mathutils.py
bf7e95eff0af6d154c634fb5d2c743fa7a17ecc3
[ "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
8,218
py
mathutils.py
# -*- coding: utf-8 -*- # Copyright (c) 2013, Mahmoud Hashemi # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of condit...
9713ef426a033ae632fe55bcac69ec1f611721ea
ae31542273a142210a1ff30fb76ed9d45d38eba9
/src/test/isolation/specs/fk-contention.spec
f11a1d8cefc4795ab5a49925f06a9a3d34455efd
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "PostgreSQL", "OpenSSL", "LicenseRef-scancode-stream-benchmark", "ISC", "LicenseRef-scancode-openssl", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-ssleay-windows", "BSD-2-Clause", "Python-2.0" ]
permissive
greenplum-db/gpdb
8334837bceb2d5d51a684500793d11b190117c6a
2c0f8f0fb24a2d7a7da114dc80f5f5a2712fca50
refs/heads/main
2023-08-22T02:03:03.806269
2023-08-21T22:59:53
2023-08-22T01:17:10
44,781,140
6,417
2,082
Apache-2.0
2023-09-14T20:33:42
2015-10-23T00:25:17
C
UTF-8
Python
false
false
330
spec
fk-contention.spec
setup { CREATE TABLE foo (a int PRIMARY KEY, b text); CREATE TABLE bar (a int NOT NULL REFERENCES foo); INSERT INTO foo VALUES (42); } teardown { DROP TABLE foo, bar; } session s1 setup { BEGIN; } step ins { INSERT INTO bar VALUES (42); } step com { COMMIT; } session s2 step upd { UPDATE foo SET b = 'Hello ...
e7d1c24528e8cc6bfdc68e93175b0c3557c4c867
7d52b1853b4099ee96e5c44296d2ab30d9ccea47
/pkg/win32/mod_tools/tools/scripts/objloader.py
747e60fbe0c6091081aa362dbe24f158b03e108d
[ "MIT" ]
permissive
kleientertainment/ds_mod_tools
858e81c2b48b2025516cc499a061248230689a50
3fe0cad89848c9d0fca8a4139a0491d188497636
refs/heads/master
2023-05-26T02:33:34.069420
2021-02-08T15:00:32
2021-02-08T15:00:32
13,852,231
129
37
NOASSERTION
2023-05-14T10:35:21
2013-10-25T05:25:15
Python
UTF-8
Python
false
false
1,690
py
objloader.py
# taken from the pygame wiki http://pygame.org/wiki/OBJFileLoader class ObjFile: def __init__(self, file): """Loads a Wavefront OBJ file. """ self.vertices = [] self.normals = [] self.texcoords = [] self.faces = [] material = None for line in fil...
2b7a0840987efe2c42cadeb602f1ceb8f3f797bd
f20112f340ac7a867a1534776b2635643f1538cc
/auth0/management/hooks.py
3c03aa5bfe325429c1a45db3e8a6e1489359820b
[ "MIT" ]
permissive
auth0/auth0-python
213fe75f8a064ee505066e1343ad997bbcb229ff
8e3e51bc9ff0cb2f5f68eededf5c4d5b9f5ebb00
refs/heads/master
2023-09-04T12:40:21.796991
2023-09-04T09:58:44
2023-09-04T09:58:44
22,433,990
451
180
MIT
2023-09-12T15:39:20
2014-07-30T15:38:33
Python
UTF-8
Python
false
false
6,505
py
hooks.py
from __future__ import annotations from typing import Any from ..rest import RestClient, RestClientOptions from ..types import TimeoutType class Hooks: """Hooks endpoint implementation. Args: domain (str): Your Auth0 domain, e.g: 'username.auth0.com' token (str): Management API v2 Token ...
b0be80ce23025d3dd82a05b018669bc490780e92
1742b6719b988e5519373002305e31d28b8bd691
/sdk/python/pulumi_aws/ssoadmin/outputs.py
c59d0107a1daa222b58c45001d5bb0088f7e023e
[ "BSD-3-Clause", "Apache-2.0", "MPL-2.0" ]
permissive
pulumi/pulumi-aws
4f7fdb4a816c5ea357cff2c2e3b613c006e49f1a
42b0a0abdf6c14da248da22f8c4530af06e67b98
refs/heads/master
2023-08-03T23:08:34.520280
2023-08-01T18:09:58
2023-08-01T18:09:58
97,484,940
384
171
Apache-2.0
2023-09-14T14:48:40
2017-07-17T14:20:33
Java
UTF-8
Python
false
false
7,409
py
outputs.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload fr...
fa5b02bd157c1896aea4691981044e10a6c0682a
0bfdffafb30b8c7df81bba17585378fc8b4c1f49
/safe_control_gym/envs/env_wrappers/vectorized_env/dummy_vec_env.py
34870f1f4fb23157074c65610a435dbb9c076f67
[ "MIT" ]
permissive
utiasDSL/safe-control-gym
9c50bca04a255831108f386d5b228bcaa653fc75
140ed17dbd91d73a1f6537520b610adff732b9aa
refs/heads/main
2023-07-26T13:25:07.592019
2023-06-13T18:50:09
2023-06-13T18:50:09
392,837,160
387
94
MIT
2023-07-02T11:39:33
2021-08-04T22:14:15
Python
UTF-8
Python
false
false
4,022
py
dummy_vec_env.py
'''Dummy Vectorized Environments.''' import copy import numpy as np from safe_control_gym.envs.env_wrappers.vectorized_env.vec_env import VecEnv from safe_control_gym.envs.env_wrappers.vectorized_env.vec_env_utils import _flatten_obs from safe_control_gym.utils.utils import get_random_state, set_random_state class...
7bca2d82d70996b12fb8679008a541e6a802a5e7
c235b42b85d08249f34009f6718bf421174300b7
/setup.py
12a5fab1bce104efb7469f203bc8481342ea3599
[ "Apache-2.0" ]
permissive
vinayak-mehta/nbcommands
ba4c64083397663e9ad24734bcc1fdc7c9a9c2e5
5bc82cf9ca5ce03d0d11524d9cd081f1bc4cd768
refs/heads/master
2021-09-23T20:31:35.168360
2021-06-20T20:46:09
2021-06-20T20:46:09
218,704,085
214
10
Apache-2.0
2021-09-20T13:54:03
2019-10-31T07:01:19
Python
UTF-8
Python
false
false
2,072
py
setup.py
# -*- coding: utf-8 -*- import os from setuptools import find_packages here = os.path.abspath(os.path.dirname(__file__)) about = {} with open(os.path.join(here, "nbcommands", "__version__.py"), "r") as f: exec(f.read(), about) with open("README.md", "r") as f: readme = f.read() requires = [ "black>=19...
984393d54acaf8345ee102fbc7204d1cf18edb0d
a02ccb5dff094fad8bcd691dda234d50ff768299
/tools/pytorch-quantization/tests/quant_instancenorm_test.py
118fd0dea4389e7b4837b9d1131afe3c4d97ad68
[ "Apache-2.0", "BSD-3-Clause", "MIT", "ISC", "BSD-2-Clause" ]
permissive
NVIDIA/TensorRT
5520d5a6a5926a2b30dbdd2c5b2e4dfe6d1b429b
a167852705d74bcc619d8fad0af4b9e4d84472fc
refs/heads/release/8.6
2023-07-29T05:39:45.688091
2023-06-09T22:29:09
2023-06-09T23:04:18
184,657,328
8,026
2,096
Apache-2.0
2023-09-13T17:30:16
2019-05-02T22:02:08
C++
UTF-8
Python
false
false
9,591
py
quant_instancenorm_test.py
# # SPDX-FileCopyrightText: Copyright (c) 1993-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # # 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...
ff903800d5c98fb7e834c2dfc4270abb54dc2cd1
b538bd01143101731766551f15eb39e6655799b6
/controle_estoque/mainclientes.py
a0497e8e32c53b8bc96cc4acea9d76119f3969b0
[ "MIT" ]
permissive
andrersp/controleEstoque
aa3eecbce19d3c87c33b5513298c98ba99d508d0
08bd223c6491ce0994f5eaccd82cc3a32aafcd60
refs/heads/master
2023-09-03T11:12:23.625788
2023-08-31T11:19:20
2023-08-31T11:19:20
168,267,539
178
118
MIT
2023-08-31T11:19:21
2019-01-30T02:44:52
Python
UTF-8
Python
false
false
8,751
py
mainclientes.py
# -*- coding: utf-8 -*- import re from functools import partial from PyQt5.QtCore import QUrl from PyQt5.QtWebEngineWidgets import QWebEngineView from Views.mainClientes import Ui_ct_MainClientes from Views.formClientes import Ui_ct_FormClientes from Crud.CrudCliente import CrudCliente from Crud.CrudVenda import Cr...
9adb7d6d608678c3f1caf968b1abe4c64d592104
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/pyaf/TS/Temporal_Hierarchy.py
427957b919ec9a9bff820ce5077a14093f14a2cd
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
antoinecarme/pyaf
a105d172c2e7544f8d580d75f28b751351dd83b6
b12db77cb3fa9292e774b2b33db8ce732647c35e
refs/heads/master
2023-09-01T09:30:59.967219
2023-07-28T20:15:53
2023-07-28T20:15:53
70,790,978
457
77
BSD-3-Clause
2023-03-08T21:45:40
2016-10-13T09:30:30
Python
UTF-8
Python
false
false
7,373
py
Temporal_Hierarchy.py
# Copyright (C) 2016 Antoine Carme <Antoine.Carme@outlook.com> # All rights reserved. # This file is part of the Python Automatic Forecasting (PyAF) library and is made available under # the terms of the 3 Clause BSD license import pandas as pd import numpy as np from . import DateTime_Functions as dtfunc from . imp...
994027343e76062af9b1ac06e858671dc70cbb5f
03a7f7a7eb8c16b537b65ec21f465bb0335bc3b8
/pythran/tests/test_nogil.py
5197781e84a1a5d46679908618e2a738aa8e2123
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
serge-sans-paille/pythran
a0e22af1ac5e1f34f3f29dce36502f4a897b5186
d8ab07b4b3b690f50603cb4d08ba303d3af18b90
refs/heads/master
2023-09-01T16:04:03.289285
2023-08-30T09:13:58
2023-08-31T08:03:22
4,479,494
1,882
200
BSD-3-Clause
2023-09-06T20:08:10
2012-05-29T08:02:14
C++
UTF-8
Python
false
false
1,273
py
test_nogil.py
from pythran.tests import TestEnv from pythran.typing import List, Set, Dict, NDArray import numpy as np class TestNoGil(TestEnv): def test_list_param(self): code=""" def list_param(l): return l, sum(i*j for i in l for j in l) """ self.run_test(code, list(range(30)), li...
2cf33ea676a7358b95db94ddadfb2777498bcedc
80f94bea418d7956df1ba19d4d6a1d7715a94ade
/test/unit/tool_util/data/test_tool_data.py
deff586e924235d6b21bc3c5de8c15653b226f21
[ "CC-BY-2.5", "MIT", "CC-BY-3.0", "AFL-3.0" ]
permissive
galaxyproject/galaxy
5748409eb6693b1611f289d164f85e20c3237495
b9ae7a16ba0465995e880ae9701b7e87226b9bab
refs/heads/dev
2023-08-28T22:35:51.248138
2023-08-26T08:02:33
2023-08-26T08:02:33
31,211,061
1,277
1,137
NOASSERTION
2023-09-14T19:39:01
2015-02-23T14:18:06
Python
UTF-8
Python
false
false
1,882
py
test_tool_data.py
LOC_ALPHA_CONTENTS_V2 = """ data1 data1name ${__HERE__}/data1/entry.txt data2 data2name ${__HERE__}/data2/entry.txt data3 data3name ${__HERE__}/data3/entry.txt """ def test_data_tables_as_dictionary(tdt_manager): assert "testalpha" in tdt_manager.data_tables assert "testdelta" not in tdt_manager.data_tables ...
2b80837429278296a0d25a16a77d1d5188a676be
71fe2884262c26d9f7f61fea003700ca37f5513c
/ArticutAPI/Toolkit/graphQL.py
1735df78021e77a1f3ef8e62f82e4123d59e5c25
[ "MIT" ]
permissive
Droidtown/ArticutAPI
aa522577f92d86454bf38573326f2f31214057ed
e5bdec66ddfd040c6e3df9d00fd28a2f6fc70124
refs/heads/master
2023-08-22T07:51:19.033369
2023-08-21T03:15:20
2023-08-21T03:15:20
183,543,778
418
39
MIT
2021-07-09T11:06:57
2019-04-26T02:38:33
Python
UTF-8
Python
false
false
12,197
py
graphQL.py
#!/usr/bin/env python # -*- coding:utf-8 -*- from graphene.types.resolver import dict_resolver import graphene import sys import os import json import re from pprint import pprint # Articut Result 檔案路徑 resultFilePath = '' """ Articut GraphQL Schema """ class Persons(graphene.ObjectType): class Meta: de...
61a1b51d8bacc1a6a84db0022e599cae582689e2
a902290fb3b911676358ae4d93f83061a6c2bd0f
/InvenTree/company/migrations/0039_auto_20210701_0509.py
74dadcc34006929be88e9e497fdbd3d31aef32cf
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
inventree/InvenTree
a15e54182c9bfafdf5348cc9a66da1004e23e760
e88a8e99a5f0b201c67a95cba097c729f090d5e2
refs/heads/master
2023-09-03T19:32:35.438375
2023-08-30T00:25:40
2023-08-30T00:25:40
85,894,461
3,077
549
MIT
2023-09-14T14:21:01
2017-03-23T01:44:10
Python
UTF-8
Python
false
false
889
py
0039_auto_20210701_0509.py
# Generated by Django 3.2.4 on 2021-07-01 05:09 import InvenTree.fields from django.db import migrations import djmoney.models.fields class Migration(migrations.Migration): dependencies = [ ('common', '0004_inventreesetting'), ('company', '0038_manufacturerpartparameter'), ] operations ...
91eb458be4f96e2a49944bad90ef33f2f95a1dbc
0760fb4901a75766921a205b55686d6d6f049b30
/python/ray/_private/thirdparty/pathspec/compat.py
37c6480510f4918fec453ad960be4e7e168dde7d
[ "MIT", "BSD-3-Clause", "Apache-2.0", "MPL-2.0" ]
permissive
ray-project/ray
a4bb6940b08b59a61ef0b8e755a52d8563a2f867
edba68c3e7cf255d1d6479329f305adb7fa4c3ed
refs/heads/master
2023-08-31T03:36:48.164405
2023-08-31T03:20:38
2023-08-31T03:20:38
71,932,349
29,482
5,669
Apache-2.0
2023-09-14T21:48:14
2016-10-25T19:38:30
Python
UTF-8
Python
false
false
777
py
compat.py
# encoding: utf-8 """ This module provides compatibility between Python 2 and 3. Hardly anything is used by this project to constitute including `six`_. .. _`six`: http://pythonhosted.org/six """ import sys if sys.version_info[0] < 3: # Python 2. unicode = unicode string_types = (basestring,) from collections i...
8ef61df68c801f45286a88ba3aab52b65f78cdc5
62179a165ec620ba967dbc20016e890978fbff50
/examples/tensorflow/classification/main.py
b6e63e81feef8579ad57a30257409ad58e973b17
[ "Apache-2.0" ]
permissive
openvinotoolkit/nncf
91fcf153a96f85da166aacb7a70ca4941e4ba4a4
c027c8b43c4865d46b8de01d8350dd338ec5a874
refs/heads/develop
2023-08-24T11:25:05.704499
2023-08-23T14:44:05
2023-08-23T14:44:05
263,687,600
558
157
Apache-2.0
2023-09-14T17:06:41
2020-05-13T16:41:05
Python
UTF-8
Python
false
false
13,557
py
main.py
# Copyright (c) 2023 Intel Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writ...
c546a7a874ab569e4c5cc217157101c94398e3fe
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/gogogate2/test_sensor.py
8df88b2b4b78d2c4af1ff6b62b50e7adcf98a40e
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
11,084
py
test_sensor.py
"""Tests for the GogoGate2 component.""" from datetime import timedelta from unittest.mock import MagicMock, patch from ismartgate import GogoGate2Api, ISmartGateApi from ismartgate.common import ( DoorMode, DoorStatus, GogoGate2ActivateResponse, GogoGate2Door, GogoGate2InfoResponse, ISmartGate...
0563c0404e6abc21b6a027fab6d94c70d994ea09
81a0a8218a45edcc8f295de5d41a3fd29cdc3ce6
/switch_model/balancing/operating_reserves/areas.py
e434d7a2233b704305e46a23446b45ecbd60d165
[ "Apache-2.0" ]
permissive
switch-model/switch
af5ea212a141d97613ef1f13e550ee898fa352da
35bd3596a031fac7891f762cc87af610ded13615
refs/heads/master
2023-06-19T17:57:22.298285
2022-11-01T23:56:15
2022-11-01T23:56:15
33,576,546
114
81
NOASSERTION
2023-01-29T17:30:41
2015-04-08T00:59:34
Python
UTF-8
Python
false
false
2,268
py
areas.py
# Copyright (c) 2015-2022 The Switch Authors. All rights reserved. # Licensed under the Apache License, Version 2.0, which is in the LICENSE file. """ Defines balancing areas for operational reserves. """ import os from pyomo.environ import * from switch_model.utilities import unique_list dependencies = "switch_model...
16a431ea099fe4d023cc7cfb0761a0d206beb80c
d3c87e641adfe702ccac00101909f4f7d179a7f3
/pyrgg/graph_gen.py
e4d48d8fa918fc0657b95f3b827bae7484be06e5
[ "MIT" ]
permissive
sepandhaghighi/pyrgg
21941bdc6c8f2ea083e66a5cab7317512ac777a3
d4fe3604c4e1a27f44ed8c482a8188057dda15ee
refs/heads/master
2023-09-01T05:20:43.389161
2023-07-06T18:09:32
2023-07-06T18:09:32
89,410,101
204
32
MIT
2023-08-19T12:47:25
2017-04-25T21:49:53
Python
UTF-8
Python
false
false
29,378
py
graph_gen.py
# -*- coding: utf-8 -*- """Pyrgg graph generators module.""" import random import datetime from pyrgg.params import * from pyrgg.functions import * # random_system=random.SystemRandom() random_system = random def dimacs_init( file, file_name, min_weight, max_weight, vertices, ...
4b103a71372c48ca21cc843cf7a8b2df0eeb29b6
d068d41e02ab116cbd83ee9298c9ba357c668f85
/ipypublish/sphinx/notebook/__init__.py
fb494d9ab05ecb9614acc6df4a10c472b050cc50
[ "BSD-3-Clause" ]
permissive
chrisjsewell/ipypublish
01f362cdf0989e119111a089bb307f52e23c1ef7
53fa92c4c7f18e36d8a9790b10de27219882f4e4
refs/heads/develop
2022-02-08T04:26:32.081511
2020-08-14T01:18:09
2020-08-14T01:18:09
96,322,423
233
42
BSD-3-Clause
2021-11-20T18:58:33
2017-07-05T13:29:38
HTML
UTF-8
Python
false
false
104
py
__init__.py
# expose setup function for sphinx from ipypublish.sphinx.notebook.extension import setup # noqa: F401
fe82c027bd180ce33576fe57e2f6b804b0bdd002
3bc139860403ebd05e278c95fca26e24d5189271
/tests/check_pytest_monitor_output.py
f6a740272d40882301aa8ecb00342331c548d2eb
[ "Apache-2.0" ]
permissive
Chia-Network/chia-blockchain
a09183b7240b159419b45f8373a41a1062f77ef3
d966f3f9e63aed52dbd73544164202a9f11ce3d2
refs/heads/main
2023-08-31T09:37:13.741283
2023-08-30T18:27:22
2023-08-30T18:27:22
197,153,676
12,936
2,474
Apache-2.0
2023-09-14T19:08:51
2019-07-16T08:32:40
Python
UTF-8
Python
false
false
924
py
check_pytest_monitor_output.py
#!/usr/bin/env python3 from __future__ import annotations import sys ret = 0 # example input line # test_non_tx_aggregate_limits 0.997759588095738 1.45325589179993 554.45703125 for ln in sys.stdin: line = ln.strip().split() print(f"{float(line[1]) * 100.0: 8.1f}% CPU {float(line[2]):7.1f}s {float(line[3]): ...
0b53105aae0209f0f44cc5a35271c9ed87f93f1f
9c2e531ec004adef7d8d07fa0b263b9f2f83cdc6
/eemont/dataframe.py
1bc2dbeb8353713203ab17e36a37c41039bc30fe
[ "MIT" ]
permissive
davemlz/eemont
ac0a19938cd5a9457771ac65d345834ce86faf6b
7bddd88aa9ba040eff78009f2cafc55351911023
refs/heads/master
2023-08-17T03:36:29.013230
2023-08-17T00:22:47
2023-08-17T00:22:47
322,478,954
356
65
MIT
2022-04-05T08:11:22
2020-12-18T03:33:12
Python
UTF-8
Python
false
false
2,534
py
dataframe.py
import warnings import ee import pandas as pd def _extend_pdDataFrame(): """Decorator. Extends the pd.DataFrame class.""" return lambda f: (setattr(pd.core.frame.DataFrame, f.__name__, f) or f) @_extend_pdDataFrame() def toEEFeatureCollection(self, latitude=None, longitude=None): """Converts a pd.DataF...
4d27a8138a1bd53a731f27f0a70fbde3ffc3089b
db12b990924703cd74748d8585cd9c11fafa6746
/h2o-docs/src/booklets/v2_2015/source/GLM_Vignette_code_examples/glm_recalculate_predict.py
1f05dbb4dad7740532d93513e89434f08e40cda2
[ "Apache-2.0" ]
permissive
h2oai/h2o-3
919019a8f297eec676011a9cfd2cc2d97891ce14
d817ab90c8c47f6787604a0b9639b66234158228
refs/heads/master
2023-08-17T18:50:17.732191
2023-08-17T16:44:42
2023-08-17T16:44:42
17,371,412
6,872
2,345
Apache-2.0
2023-09-14T18:05:40
2014-03-03T16:08:07
Jupyter Notebook
UTF-8
Python
false
false
140
py
glm_recalculate_predict.py
#manually define threshold for predictions to 0.3 import pandas as pd pred = binomial_fit.predict(h2o_df) pred['predict'] = pred['p1']>0.3
e533d3751c6cd5b70287ee2b8db5eb56ac834348
ac235a23f22be0d6f1818bb53902177f9969813a
/tests/contrib/django_celery/test_django_celery.py
98fc5874a2c6cec6f90109b8782de3c57a643813
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
DataDog/dd-trace-py
f09d6d48c4c69aea68f999fc8a458ade5c6150cf
1e3bd6d4edef5cda5a0831a6a7ec8e4046659d17
refs/heads/1.x
2023-09-01T20:25:26.746324
2023-09-01T18:54:37
2023-09-01T18:54:37
61,572,326
461
426
NOASSERTION
2023-09-14T20:38:57
2016-06-20T18:52:23
Python
UTF-8
Python
false
false
1,331
py
test_django_celery.py
from os.path import dirname from os.path import sep import subprocess from tests.utils import call_program def test_django_celery_gevent_startup(): """Test that Celery starts correctly with the Django integration enabled. If the Django integration force-loads some modules while patching, it is likely th...
2647ca3e7bb93c2862ca7e15e8236a0e2ccca942
fb1e852da0a026fb59c8cb24aeb40e62005501f1
/edgelm/examples/speech_text_joint_to_text/criterions/__init__.py
93924b75550a6b9a7c7de7f4defba9b8f8465926
[ "LGPL-2.1-or-later", "LicenseRef-scancode-free-unknown", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
microsoft/unilm
134aa44867c5ed36222220d3f4fd9616d02db573
b60c741f746877293bb85eed6806736fc8fa0ffd
refs/heads/master
2023-08-31T04:09:05.779071
2023-08-29T14:07:57
2023-08-29T14:07:57
198,350,484
15,313
2,192
MIT
2023-08-19T11:33:20
2019-07-23T04:15:28
Python
UTF-8
Python
false
false
502
py
__init__.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import importlib import os for file in os.listdir(os.path.dirname(__file__)): if file.endswith(".py") and not file.startswith(...
ddaf922da8a981b54d066f7c9adafb0e18be2b16
58a0baa4abf592b4618a5e2adc1a84777a39504f
/anytree/search.py
0a9c075fc4367b2d87fcbcec55ab18726bec83fa
[ "Apache-2.0" ]
permissive
c0fec0de/anytree
baa64ad650beb310c9a6321242ca557cf7c1e92e
27ff97eed4c09b4f0eb9ae61b45dd30b794a135c
refs/heads/main
2023-09-01T00:26:02.398101
2022-09-20T20:58:59
2022-09-20T20:58:59
66,707,325
861
133
Apache-2.0
2023-06-25T20:17:17
2016-08-27T09:42:38
Python
UTF-8
Python
false
false
7,330
py
search.py
""" Node Searching. .. note:: You can speed-up node searching, by installing https://pypi.org/project/fastcache/ and using :any:`cachedsearch`. """ from anytree.iterators import PreOrderIter def findall(node, filter_=None, stop=None, maxlevel=None, mincount=None, maxcount=None): """ Search nodes m...
47a8057c3a7ff282254a541d8e9bcccf6ae7bc7b
cde096ba977b63becc1b9066677331ef4594a797
/csfieldguide/interactives/migrations/0017_merge_0015_auto_20210805_0142_0016_auto_20191129_0012.py
65e80d5a9da172b4cd6edbfa5e4f43eff36dd4eb
[ "CC-BY-NC-SA-4.0", "BSD-3-Clause", "CC0-1.0", "ISC", "Unlicense", "LicenseRef-scancode-secret-labs-2011", "WTFPL", "Apache-2.0", "LGPL-3.0-only", "MIT", "CC-BY-SA-4.0", "LicenseRef-scancode-public-domain", "CC-BY-NC-2.5", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown...
permissive
uccser/cs-field-guide
655524b161fab0ab422679dd80720f660f2cfa98
ea3281ec6f4d17538f6d3cf6f88d74fa54581b34
refs/heads/develop
2023-08-28T14:33:58.789843
2023-08-28T08:24:03
2023-08-28T08:24:03
34,356,619
364
97
MIT
2023-09-14T08:58:55
2015-04-21T23:00:26
JavaScript
UTF-8
Python
false
false
283
py
0017_merge_0015_auto_20210805_0142_0016_auto_20191129_0012.py
# Generated by Django 3.2.6 on 2021-08-18 22:37 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('interactives', '0015_auto_20210805_0142'), ('interactives', '0016_auto_20191129_0012'), ] operations = [ ]
98dcfd33553697d420b74abf0f863b9be6b23e0f
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/chrome/browser/browser_controls/android/DEPS
5437f8905b6a2f4bd67068d8962ba50b7be6c5c6
[ "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
193
DEPS
noparent = True include_rules = [ "+base/android", "+base/test/android", "+chrome/browser/flags", "+content/public/android", "+components/browser_ui/util/android", "+ui/android", ]
14b9afb08a15873983148f58d56239ad160c8c76
1180c0bfe29959d95f3c131e6e839950e528d4ee
/13/realnitinworks/directors.py
332ed1d6a1a2164f4950ab31c2f2e693a073bc12
[]
no_license
pybites/challenges
e3e461accd8e7f890aee8007ba5070086ef983fc
02b77652d0901e6e06cb9b1e7cb3e59c675445c2
refs/heads/community
2023-08-20T18:19:02.982214
2022-11-17T09:23:31
2022-11-17T09:23:31
78,264,928
764
3,115
null
2023-07-21T05:58:19
2017-01-07T07:17:50
Jupyter Notebook
UTF-8
Python
false
false
3,649
py
directors.py
from collections import namedtuple, Counter, defaultdict import csv import statistics MOVIES_DATASET = "movie_metadata.csv" FROM_YEAR = "1960" MIN_MOVIES = 4 TOP_N = 20 Movie = namedtuple('Movie', 'director title year rating') def convert_csv_to_dict(data=MOVIES_DATASET): """ Yield Movie(director, title, year, ...
233307d388408095a072784aecccba6eacb2128f
97829061d8ed7965caad494278380fa8e8c35cb4
/experiments/utils.py
a55b2b20a195ee789792f6b33ee844ec7d6eb184
[ "MIT" ]
permissive
ContinualAI/continual-learning-baselines
70b699fc1b910c46495945aa230fa18e39d3a217
118f10c0f049b451997bade5971d4ac9c749683c
refs/heads/main
2023-08-09T21:30:15.215420
2023-07-31T12:14:32
2023-07-31T12:14:32
359,855,911
116
15
MIT
2023-07-31T12:14:34
2021-04-20T15:01:32
Python
UTF-8
Python
false
false
1,864
py
utils.py
import random from types import SimpleNamespace from typing import Dict, Union import numpy as np import torch from avalanche.benchmarks import dataset_benchmark from avalanche.benchmarks.utils import AvalancheSubset def set_seed(seed): if seed is None: return torch.manual_seed(seed) torch.cuda....
2ffdc684b3defe4ce7e108852adae20ce4bd336d
0f2b08b31fab269c77d4b14240b8746a3ba17d5e
/orttraining/orttraining/test/python/orttraining_test_python_bindings.py
56338ddbaffefef5dd8e5f48bb2b8a665e53c95b
[ "MIT" ]
permissive
microsoft/onnxruntime
f75aa499496f4d0a07ab68ffa589d06f83b7db1d
5e747071be882efd6b54d7a7421042e68dcd6aff
refs/heads/main
2023-09-04T03:14:50.888927
2023-09-02T07:16:28
2023-09-02T07:16:28
156,939,672
9,912
2,451
MIT
2023-09-14T21:22:46
2018-11-10T02:22:53
C++
UTF-8
Python
false
false
20,821
py
orttraining_test_python_bindings.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from __future__ import annotations import os import pathlib import tempfile import numpy as np import onnx import pytest import torch from orttraining_test_onnxblock import _get_models import onnxruntime.training.onnxblock...
d3bb24ed175bb6b7cfecd8efb76b4404d42e1da6
ce267742f0513584f897e5016daa9d698c7460b5
/plasmapy/simulation/particletracker.py
25339a742940d832b41220eaf169a3167be6e85b
[ "BSD-3-Clause" ]
permissive
PlasmaPy/PlasmaPy
6a84db38a6ec05abe2eb8426d426d585193e628f
9b8c641c81a622b0ec1d75f5113c42aa1897495b
refs/heads/main
2023-09-01T12:23:21.722165
2023-08-30T22:23:41
2023-08-30T22:23:41
46,810,954
539
346
BSD-3-Clause
2023-09-11T16:01:55
2015-11-24T18:36:24
Python
UTF-8
Python
false
false
8,930
py
particletracker.py
""" Class representing a group of particles. .. attention:: |expect-api-changes| """ __all__ = ["ParticleTracker"] import astropy.units as u import numpy as np import scipy.interpolate as interp from astropy import constants from plasmapy.particles import atomic from plasmapy.simulation import particle_integrat...