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
615f06e35c0bead8c5720a05b833738f2b174c43
30050476426b416b7bbcf1e2e6da2c39de5f5f71
/tests/test_segment.py
4602d150d3a10cd76ee8ffa7ebfc4803974eeddc
[ "ISC" ]
permissive
librosa/librosa
b2cdbfde4692d980c1ea28b68ca829912610a9ac
09e4a622456bbad314e2e6d5c75879f56d728b9b
refs/heads/main
2023-08-27T12:53:38.102224
2023-08-15T17:52:04
2023-08-15T17:52:04
6,309,729
5,907
1,048
ISC
2023-09-14T19:13:28
2012-10-20T14:21:01
Python
UTF-8
Python
false
false
16,449
py
test_segment.py
#!/usr/bin/env python # -*- encoding: utf-8 -*- """Tests for segmentation functions""" from typing import Union import warnings # Disable cache import os try: os.environ.pop("LIBROSA_CACHE_DIR") except: pass import numpy as np import scipy from scipy.spatial.distance import cdist, pdist, squareform import py...
7eb5881e09255e448e12c9cc1d7910c84273762b
6c6a9aea1443e99dd85caa67d8b53f8ce5436461
/tweepy/error.py
753e2fe676cf2f581a9fe032a71d9c4d638cc471
[ "MIT" ]
permissive
anka-213/fuckeveryword
72bcaf2404b65c6d49014de9700ac2b92c98627e
1fbfd329b950c1a8f71b812273d1d08281063848
refs/heads/master
2023-07-17T00:23:59.982075
2018-11-27T13:45:41
2018-11-27T13:45:41
115,251,644
152
48
MIT
2021-09-07T01:45:26
2017-12-24T09:02:58
Python
UTF-8
Python
false
false
344
py
error.py
# Tweepy # Copyright 2009-2010 Joshua Roesslein # See LICENSE for details. class TweepError(Exception): """Tweepy exception""" def __init__(self, reason, response=None): self.reason = unicode(reason) self.response = response Exception.__init__(self, reason) def __str__(self): ...
e22f79030f82173d1f7f47c57d7a6846e098f553
d7fd46dfd8aab520c4958fa065367e168b6bfee7
/examples/llvm_rl/model/benchmarks.py
48f500c8e14fbb688c82b6fd28d3721515434e8b
[ "MIT" ]
permissive
facebookresearch/CompilerGym
f04a79fbfdbaf8afd6920ec205db6f1b6003d073
9e0c0beb12da1e1ea82ae6ce920713ee28dda4c9
refs/heads/development
2023-08-31T09:17:48.967970
2023-03-10T19:29:56
2023-03-10T19:29:56
312,059,069
787
126
MIT
2023-03-10T19:29:58
2020-11-11T18:44:35
Python
UTF-8
Python
false
false
4,197
py
benchmarks.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. from itertools import islice from typing import Iterable, List, Union from pydantic import BaseModel, Field, root_validator, validator from c...
4fd364d4cbb1123d13d15a2cde5eb8a50bae93e8
c475cd8531a94ffae69cc92371d41531dbbddb6c
/Projects/bullet3-2.89/examples/pybullet/examples/internalEdge.py
fa8dbcb9bd5899e47254eaa6e4fd2506b630d8ad
[ "Apache-2.0", "LicenseRef-scancode-free-unknown", "Zlib" ]
permissive
WolfireGames/overgrowth
72d3dd29cbd7254337265c29f8de3e5c32400114
594a2a4f9da0855304ee8cd5335d042f8e954ce1
refs/heads/main
2023-08-15T19:36:56.156578
2023-05-17T08:17:53
2023-05-17T08:20:36
467,448,492
2,264
245
Apache-2.0
2023-05-09T07:29:58
2022-03-08T09:38:54
C++
UTF-8
Python
false
false
1,375
py
internalEdge.py
import pybullet as p import time p.connect(p.GUI) if (1): box_collision_shape_id = p.createCollisionShape(shapeType=p.GEOM_BOX, halfExtents=[0.01, 0.01, 0.055]) box_mass = 0.1 box_visual_shape_id = -1 box_position = [0, 0.1, 1] box_orientation = [0, 0, 0, 1]...
2bea0705f51b2f0bae7f560ca3eeee02c6a131e0
e441a2f416c83f04889ecd43d6b6bdcf5172b287
/web3/providers/base.py
3f8c175dbfba6c46a6887583abb86ae90cee3129
[ "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
4,149
py
base.py
import itertools from typing import ( TYPE_CHECKING, Any, Callable, Sequence, Tuple, cast, ) from eth_utils import ( to_bytes, to_text, ) from web3._utils.encoding import ( FriendlyJsonSerde, ) from web3.exceptions import ( ProviderConnectionError, ) from web3.middleware import...
59ea819364168ec42fbb6280fce9eb5d6293ce1a
a1d5bf1b155cd2de95e57e9734c961465ce901b4
/sklift/viz/__init__.py
51fd7263a92575f3821b3327068e32ae2c3d04b1
[ "MIT" ]
permissive
maks-sh/scikit-uplift
88792a757f34290407fe9a82b19dc6ae96ca7312
0038e659428f6e7a49b935b850651cd9a9db3f54
refs/heads/master
2023-04-06T22:53:28.358650
2022-08-11T20:33:03
2022-08-11T20:33:03
229,347,545
636
104
MIT
2023-03-30T02:39:09
2019-12-20T22:51:58
Python
UTF-8
Python
false
false
335
py
__init__.py
from .base import ( plot_uplift_curve, plot_qini_curve, plot_uplift_preds, plot_uplift_by_percentile, plot_treatment_balance_curve, UpliftCurveDisplay ) __all__ = [ 'plot_uplift_curve', 'plot_qini_curve', 'plot_uplift_preds', 'plot_uplift_by_percentile', 'plot_treatment_balance_curve', 'UpliftC...
6db00585f30048d4fd349a2c6901d40020aa3982
b1d185d32bb3b049c19390f478f7a4005fb1753b
/geomancer/spells/length_of.py
70df5d100d55fc7bbd68f449d1f61d40627d91c9
[ "MIT" ]
permissive
thinkingmachines/geomancer
a48311bf8ac7c8c92db95117e9b0dcadef664e0b
d1748c4c4f8f77fc4456ce1deef23f8f017c9549
refs/heads/master
2021-06-19T04:42:40.102835
2021-02-23T05:44:29
2021-02-23T06:04:44
172,477,092
223
18
MIT
2021-02-23T06:04:45
2019-02-25T09:39:01
Python
UTF-8
Python
false
false
4,931
py
length_of.py
# -*- coding: utf-8 -*- """ Spell LengthOf obtains the length of all Lines-of-Interest with a certain radius. Suppose you want to find the length of residential roads given a set of points: .. code-block:: python from geomancer.spells import LengthOf from tests.conftest import sample_points # Load sampl...
86cd32c541081b4a1dc2baafe44d64f313856bd7
5db0fab37c2b8a618d85d3b60fab9f806c416474
/src/python/pants/backend/python/goals/repl.py
0d3c6c4d50d26c48d871ee397070e2678f95a3a4
[ "Apache-2.0" ]
permissive
pantsbuild/pants
4988d1ac5474ec95f94ce2218aeb759401e4b011
98cbda8545f0d58c586ed2daa76fefd729d5e0d5
refs/heads/main
2023-09-05T03:44:17.646899
2023-09-01T19:52:09
2023-09-01T19:52:09
7,209,075
2,708
593
Apache-2.0
2023-09-14T19:33:33
2012-12-17T17:39:04
Python
UTF-8
Python
false
false
7,504
py
repl.py
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import os from typing import Iterable from pants.backend.python.subsystems import ipython from pants.backend.python.subsystems.ipython import IPython f...
910474681b206842682160f336929a9e866ac9e5
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/skybell/coordinator.py
55e34df5c63ddc38f41b1dc8eeb042c363541785
[ "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,114
py
coordinator.py
"""Data update coordinator for the Skybell integration.""" from datetime import timedelta from aioskybell import SkybellDevice, SkybellException from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.update_coordinator import DataUpdateCoordinator...
6b311fdcbe33f115f2ed8098afcb6f56e0ef9cd8
09a6d8dbad5b92f93791948b5bf9b75f5cb2e5ce
/tests/measurements/test_sample.py
18b9d3f5ad3e86296581d730572a18f6a0d0d844
[ "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
16,023
py
test_sample.py
# Copyright 2018-2020 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...
9ffa2a36efa3fee7b0b3b30763946899e165b931
7f620e7902c0b9ccb1fcfd1427acd5936ea33814
/tests/system/runtimes/test_archives.py
0d8a1152d77a33e55270ca886be66243484c90ce
[ "Apache-2.0" ]
permissive
mlrun/mlrun
2074c230070129ce3becb211b92c90b29a2ce850
b5fe0c05ae7f5818a4a5a5a40245c851ff9b2c77
refs/heads/development
2023-09-06T00:09:21.546135
2023-09-05T19:38:13
2023-09-05T19:38:13
205,706,595
1,093
229
Apache-2.0
2023-09-14T14:14:10
2019-09-01T16:59:19
Python
UTF-8
Python
false
false
13,765
py
test_archives.py
# Copyright 2023 Iguazio # # 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, softwa...
3e190eb589c4e7a85fbeaf2b3252c2b4c4999368
b26c41926fa3a7c2c061132d80e91a2750f2f468
/tensorflow_probability/python/distributions/lkj.py
ad94401e0ed65c2d864fff03145f3ae4538c4cf5
[ "Apache-2.0" ]
permissive
tensorflow/probability
22e679a4a883e408f8ef237cda56e3e3dfa42b17
42a64ba0d9e0973b1707fcd9b8bd8d14b2d4e3e5
refs/heads/main
2023-09-04T02:06:08.174935
2023-08-31T20:30:00
2023-08-31T20:31:33
108,053,674
4,055
1,269
Apache-2.0
2023-09-13T21:49:49
2017-10-23T23:50:54
Jupyter Notebook
UTF-8
Python
false
false
27,178
py
lkj.py
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
27d68bba5f3f27b6de585b1141d8965ce6a7b8ec
e9869359c839c8c175ae7877bc35dcfdfe4058f8
/kornia/augmentation/_2d/mix/jigsaw.py
8cc3423af714ef546f83b2a56c73268aaa7cc11d
[ "Apache-2.0" ]
permissive
kornia/kornia
80f93eae6a70b8bc0c9784f92a842ab9a6ab54ae
1e0f8baa7318c05b17ea6dbb48605691bca8972f
refs/heads/master
2023-08-31T06:32:45.960859
2023-08-30T21:59:41
2023-08-30T21:59:41
145,693,916
7,351
833
Apache-2.0
2023-09-12T21:59:29
2018-08-22T10:31:37
Python
UTF-8
Python
false
false
3,580
py
jigsaw.py
from typing import Any, Dict, List, Optional, Tuple, Union import torch from kornia.augmentation import random_generator as rg from kornia.augmentation._2d.mix.base import MixAugmentationBaseV2 from kornia.constants import DataKey from kornia.core import Tensor __all__ = ["RandomJigsaw"] class RandomJigsaw(MixAugm...
15937f4968b44765a674f572b4a68a320de19547
a173777f4ba02c1e683d75810fa6932487ba42cc
/2022/plaid-ctf-2022/flagsong/solve.py
fdb28cf4e2d99b7c794a52dd34eb9132184d4cf3
[]
no_license
perfectblue/ctf-writeups
ba9454ef06e1004253f004154fba6ae00d88ca09
3f2a8a2c2598d700f33cb3f39ceb515e2ba46312
refs/heads/master
2023-06-25T19:28:05.222110
2022-12-11T04:55:13
2022-12-11T04:55:13
133,306,580
606
75
null
2023-01-20T22:38:17
2018-05-14T04:53:27
Python
UTF-8
Python
false
false
4,034
py
solve.py
from pathlib import Path import time import pyautogui from python_speech_features import mfcc, logfbank import scipy.io.wavfile as wav import lib_generate # for python_speech_features :| import logging logging.getLogger().setLevel(logging.CRITICAL) WINDOW_POS = (0, 0) def ustx_to_wav() -> Path: """ NOT...
14d722c0aaed620ba9055f1f8523f75de0319dc1
ed865aed525556fd7aa5ac5a024af720de8438e3
/cli/tests/pcluster/aws/test_elb.py
3fa7d582b75f6ab099c5c22f2dc7473ce69ebf95
[ "Python-2.0", "GPL-1.0-or-later", "MPL-2.0", "MIT", "LicenseRef-scancode-python-cwi", "BSD-3-Clause", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-free-unknown", "Apache-2.0", "MIT-0", "BSD-2-Clause" ]
permissive
aws/aws-parallelcluster
7bb33a6e175168f63a1e0acb1a9a7e9cbc405eff
a213978a09ea7fc80855bf55c539861ea95259f9
refs/heads/develop
2023-09-05T15:12:18.533270
2023-09-05T14:38:59
2023-09-05T14:38:59
19,718,034
520
226
Apache-2.0
2023-09-14T15:56:30
2014-05-12T22:42:19
Python
UTF-8
Python
false
false
6,900
py
test_elb.py
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file except in compliance # with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the 'LICENSE.txt' file accom...
6449cead461638987a08b225d7cf47249a1cd2dc
965efc4d7a83c2b5592417aa7e0d25a51f5a8108
/backend/metering_billing/migrations/0209_remove_historicalplan_addon_spec_and_more.py
52c597555b87464859558c1b9360500730878f60
[ "MIT" ]
permissive
uselotus/lotus
f4ee23bb828605215f18aacd1d6fcff8e0986c53
c065fb33ee1a870d72bbd2adfddc08d50ca049b6
refs/heads/main
2023-08-17T03:38:35.770580
2023-07-26T18:50:17
2023-07-26T18:50:17
516,192,901
1,447
100
MIT
2023-06-25T22:53:06
2022-07-21T02:06:46
Python
UTF-8
Python
false
false
1,726
py
0209_remove_historicalplan_addon_spec_and_more.py
# Generated by Django 4.0.5 on 2023-02-24 23:06 from django.db import migrations, models import metering_billing.utils.utils class Migration(migrations.Migration): dependencies = [ ("metering_billing", "0208_copy_addon_specs"), ] operations = [ migrations.RemoveField( model_...
2b3ecb033c8be7bfee661d7596fd7d1442302007
73a0f661f1423d63e86489d4b2673f0103698aab
/python/oneflow/test/graph/test_graph_nccl_logical_fusion.py
81cc91d99670092771e704c8c078e12b3160f8e3
[ "Apache-2.0" ]
permissive
Oneflow-Inc/oneflow
4fc3e081e45db0242a465c4330d8bcc8b21ee924
0aab78ea24d4b1c784c30c57d33ec69fe5605e4a
refs/heads/master
2023-08-25T16:58:30.576596
2023-08-22T14:15:46
2023-08-22T14:15:46
81,634,683
5,495
786
Apache-2.0
2023-09-14T09:44:31
2017-02-11T06:09:53
C++
UTF-8
Python
false
false
6,529
py
test_graph_nccl_logical_fusion.py
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
cca997aeadb78f369b2bffff8ef492deb1b15e26
80a3d98eae1d755d6914b5cbde63fd10f5cc2046
/autox/autox_video/mmaction2/configs/skeleton/stgcn/stgcn_80e_babel120_wfl.py
63516b2e1f73f680e01d1cd0fe0fbe27a86371b8
[ "Apache-2.0" ]
permissive
4paradigm/AutoX
efda57b51b586209e1d58e1dab7d0797083aadc5
7eab9f4744329a225ff01bb5ec360c4662e1e52e
refs/heads/master
2023-05-24T00:53:37.109036
2023-02-14T14:21:50
2023-02-14T14:21:50
388,068,949
752
162
Apache-2.0
2022-07-12T08:28:09
2021-07-21T09:45:41
Jupyter Notebook
UTF-8
Python
false
false
3,056
py
stgcn_80e_babel120_wfl.py
samples_per_cls = [ 518, 1993, 6260, 508, 208, 3006, 431, 724, 4527, 2131, 199, 1255, 487, 302, 136, 571, 267, 646, 1180, 405, 72, 731, 842, 1619, 271, 27, 1198, 1012, 110, 865, 462, 526, 405, 487, 101, 24, 84, 64, 168, 271, 609, 503, 76, 167, 415, 137, 421, 283, 2069, 715, 196, 66, 44, 989, 122, 43, 59...
f20187e92f37d9a5a30b9cc8715252b3d95c0028
56d6257e932e1397ab03b1e7ccc6231378665b04
/_Komplete_Kontrol/selection_linked_session_ring_component.py
4970719c5bfde6f2547152ee8b505bcfe1322e58
[]
no_license
gluon/AbletonLive10.1_MIDIRemoteScripts
e6c8dc4956cff9630aaa36f3667994387ad1d0cf
2468b51eba7e5082b06f9e381b3e72027c5f272c
refs/heads/master
2023-01-10T18:37:46.504180
2022-12-23T09:21:48
2022-12-23T09:21:48
213,423,555
205
59
null
2021-02-12T16:15:01
2019-10-07T15:44:52
Python
UTF-8
Python
false
false
952
py
selection_linked_session_ring_component.py
#Embedded file name: /Users/versonator/Jenkins/live/output/Live/mac_64_static/Release/python-bundle/MIDI Remote Scripts/_Komplete_Kontrol/selection_linked_session_ring_component.py from __future__ import absolute_import, print_function, unicode_literals from ableton.v2.base import listens from ableton.v2.control_surfac...
460dd622c0920f69d3e0391e51bb3997685253a4
e79cb86744b9cc5d46912f2f9acdb5ffd434f745
/src/mpl2/test/plot_floorplan.py
01d6782a7fa20d119157a58f1d351f9ee8792142
[ "BSD-3-Clause", "MPL-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
The-OpenROAD-Project/OpenROAD
555cbb00ec250bb09b9e4f9a7d1454e7ac7a01ab
1f6ccc9066e7df4509ed391d87b01eadb4b3b197
refs/heads/master
2023-08-31T05:35:25.363354
2023-08-31T05:04:27
2023-08-31T05:04:27
218,110,222
979
461
BSD-3-Clause
2023-09-14T21:51:36
2019-10-28T17:48:14
Verilog
UTF-8
Python
false
false
2,886
py
plot_floorplan.py
import os import matplotlib.pyplot as plt from math import log import json import argparse parser = argparse.ArgumentParser() parser.add_argument("--directory", default = "./results/mp_test1", help = "result directory") parser.add_argument("--net_threshold", default = -1, help = "nets with weight below net_threshold w...
d87d8a4c8329829a6899b173ae521fad7107e4a4
fa3f6d4e9169fb95f828013d179d03accdff381b
/grr/test_lib/fleetspeak_test_lib.py
d2950a7189a33e2bebc2eb49b338d51cdb5312fd
[ "Apache-2.0" ]
permissive
google/grr
c51a2bd251ed2f7adae538541990a2cc01fdcc8c
44c0eb8c938302098ef7efae8cfd6b90bcfbb2d6
refs/heads/master
2023-09-05T20:02:36.823914
2023-07-26T09:34:09
2023-07-26T09:34:09
14,909,673
4,683
927
Apache-2.0
2023-07-26T09:34:10
2013-12-04T00:17:53
Python
UTF-8
Python
false
false
2,716
py
fleetspeak_test_lib.py
#!/usr/bin/env python """Fleetspeak-related helpers for use in tests.""" import collections import functools import threading from typing import Optional, Text from unittest import mock from grr_response_core.lib.rdfvalues import flows as rdf_flows from grr_response_proto import jobs_pb2 from grr_response_server impo...
a21004dfcd9c013db64d18c728f4c34bddb1942b
70e9a7da3d4e2a41b30544516e166dab2495253c
/l10n_br_sicoob/models/res_bank.py
f61a06dffe0966439b49565403690498d9db30a7
[ "MIT" ]
permissive
Trust-Code/odoo-brasil
bf06ea58a4e0376cb5c297c18bf48eaf97104e54
d456a10e32f56e259061afbd989942ea1aae2c2d
refs/heads/16.0
2023-08-31T16:06:21.038792
2023-01-26T19:31:31
2023-01-26T19:31:31
72,882,959
206
253
MIT
2023-08-18T17:05:49
2016-11-04T20:28:03
Python
UTF-8
Python
false
false
160
py
res_bank.py
from odoo import models, fields class ResBank(models.Model): _inherit = 'res.partner.bank' l10n_br_branch_number = fields.Char("Agência Bancária")
0f2f97e547d1861f7e4675b52acd74d7d4a3b3df
ea57d267ab31480d8d731b2c095e9da9ad989133
/tests/test_packages/test_skills/test_registration_aw1/test_handlers.py
602c8ecb1a8248338ff456babc8381ca93efc2d4
[ "Apache-2.0" ]
permissive
fetchai/agents-aea
6d034f1db6f3beacf31dac2f5a1baaa60c8edb7d
bec49adaeba661d8d0f03ac9935dc89f39d95a0d
refs/heads/main
2023-08-08T23:19:06.276643
2023-02-04T10:46:39
2023-02-04T10:46:39
203,558,879
192
58
Apache-2.0
2023-07-19T04:45:26
2019-08-21T10:12:47
Python
UTF-8
Python
false
false
15,192
py
test_handlers.py
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2023 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the ...
8629aaef45a20ac217580bdd0326b89bd53ebf2a
0dddc0508138396c740901be4a0f9eebefb8fded
/ax/core/tests/test_optimization_config.py
e5597f5594335c77406276656cd82b28111f7399
[ "MIT" ]
permissive
facebook/Ax
473beb143016f95f4ec381ed1bd95b32c1ca31f8
6443cee30cbf8cec290200a7420a3db08e4b5445
refs/heads/main
2023-09-01T09:29:13.684709
2023-08-31T21:49:30
2023-08-31T21:49:30
169,880,381
2,207
315
MIT
2023-09-14T21:26:51
2019-02-09T15:23:44
Jupyter Notebook
UTF-8
Python
false
false
22,183
py
test_optimization_config.py
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from ax.core.metric import Metric from ax.core.objective import MultiObjective, Objective, ScalarizedObjective from a...
bf69c8a5f361370d9f593572194a124133638eb7
ecaba173879f92f24e3c951866fda23c0a4fc426
/perfkitbenchmarker/linux_packages/pgbench.py
c325ddc0de029230acc6978599cd6236625a1cfd
[ "Classpath-exception-2.0", "BSD-3-Clause", "AGPL-3.0-only", "MIT", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
GoogleCloudPlatform/PerfKitBenchmarker
2f4917fd796db4eb90822c557d8fa08a497fbd48
d0699f32998898757b036704fba39e5471641f01
refs/heads/master
2023-09-02T08:14:54.110308
2023-09-01T20:28:01
2023-09-01T20:28:38
21,950,910
1,923
567
Apache-2.0
2023-09-13T22:37:42
2014-07-17T17:23:26
Python
UTF-8
Python
false
false
4,583
py
pgbench.py
# Copyright 2017 PerfKitBenchmarker Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
1c1110069a94d2fcd3394821ee5e8dd209f0b105
9868f287cfa54a8ed6c67b91b59d4f09bbd9410c
/retired_benchmarks/minigo/tensorflow/minigo/bigtable_output.py
421b13f52a24be6aa423242aac4e3ee6a851c895
[ "Apache-2.0" ]
permissive
mlcommons/training
41c7e21ea074b5f5bb040d3602e621c3e987cc0e
2f4a93fb4888180755a8ef55f4b977ef8f60a89e
refs/heads/master
2023-09-05T12:45:53.020925
2023-08-03T15:43:54
2023-08-03T15:43:54
127,351,529
431
162
Apache-2.0
2023-09-07T23:35:53
2018-03-29T21:56:06
Python
UTF-8
Python
false
false
1,732
py
bigtable_output.py
# Copyright 2018 Google LLC # # 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, ...
e0591d6d3a33ca7d151f2df99186565f9be65be2
96cc2d2af983dd2df0e59cf8ecd1181b0a091ab2
/02分词/分词算法/02HMM分词/HMM_segment.py
e0bf587aeffa38c18ff65352e2eacc50806361f7
[]
no_license
zhang17173/Event-Extraction
37400d4e46363340d8e61a9dc7eca300caebe26a
9fb0780868b9b605ed5ace2855d6b5d4cb05dd51
refs/heads/master
2023-02-18T10:54:53.847749
2023-02-15T12:39:16
2023-02-15T12:39:16
199,839,243
532
137
null
null
null
null
UTF-8
Python
false
false
5,457
py
HMM_segment.py
#!/usr/bin/env python # _*_coding:utf-8 _*_ # @Author:Zhang Shiwei import numpy as np import math # 每一个字的4个隐藏状态 0123/start(该字是一个词的开头) middle(该字是一个词的中间部分) end(该字是一个词的结束) single(该字是单独就是一个词) # 监督学习:用的语料库是分好词的来训练 # 注:ord()函数获取一个字符的Unicode编码 infinite = float(-2.0 ** 31) # 负无穷 # 训练参数(已知O和I的情况下监督学习),只需要做一个统计就可以得到参数 # 传入字符...
b1510c65349c19945695927b189f93fb768261d1
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/dts/airbyte/airbyte-integrations/connectors/source-mixpanel/unit_tests/test_streams.py
a44bd95af01340c3c626783d27d8a4469873dcc6
[ "Apache-2.0", "BSD-3-Clause", "MIT", "Elastic-2.0" ]
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
16,707
py
test_streams.py
# # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # import json from datetime import timedelta from unittest.mock import MagicMock import pendulum import pytest from airbyte_cdk import AirbyteLogger from airbyte_cdk.models import SyncMode from source_mixpanel.streams import ( Annotations, CohortMembe...
040f4b40812bc43b24d70c983db271c896a4d5c6
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/EventFilter/DTRawToDigi/python/dtunpackerCommissioning_cfi.py
f5bd0a5c9fed975b232e7cae11d55b443e07ebf1
[ "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,033
py
dtunpackerCommissioning_cfi.py
import FWCore.ParameterSet.Config as cms import EventFilter.DTRawToDigi.dtUnpackingModule_cfi # Module for DT data unpacking: produces a DTDigiCollection and - on demand - # a DTLocalTriggerCollection # Configuration for Comissioning data dtunpacker = EventFilter.DTRawToDigi.dtUnpackingModule_cfi.dtUnpackingModule.cl...
377d75a2c5df33c015d1f2895c35be9822b704d9
15f0514701a78e12750f68ba09d68095172493ee
/Python3/111.py
28bba69a81903621d48dd30954a08ac4e9fd726e
[ "MIT" ]
permissive
strengthen/LeetCode
5e38c8c9d3e8f27109b9124ae17ef8a4139a1518
3ffa6dcbeb787a6128641402081a4ff70093bb61
refs/heads/master
2022-12-04T21:35:17.872212
2022-11-30T06:23:24
2022-11-30T06:23:24
155,958,163
936
365
MIT
2021-11-15T04:02:45
2018-11-03T06:47:38
null
UTF-8
Python
false
false
1,698
py
111.py
__________________________________________________________________________________________________ sample 28 ms submission # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def minDepth(s...
2dc789011b5871c14e124da3e6425a601d3265b7
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/snooz/test_init.py
a7a0566d7c61c762e2226cf629217df1b906a592
[ "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,165
py
test_init.py
"""Test Snooz configuration.""" from __future__ import annotations import pytest from homeassistant.core import HomeAssistant from . import SnoozFixture # This tests needs to be adjusted to remove lingering tasks @pytest.mark.parametrize("expected_lingering_tasks", [True]) async def test_removing_entry_cleans_up_c...
8f631c5934d51dd7f5673731c1362399fde90f08
0ac2d343bad7e25df1a2f2be951854d86b3ad173
/pycket/ast_visitor.py
ede8a4e77529e9597fee821b11d131352dcbed0a
[ "MIT" ]
permissive
pycket/pycket
8c28888af4967b0f85c54f83f4ccd536fc8ac907
05ebd9885efa3a0ae54e77c1a1f07ea441b445c6
refs/heads/master
2021-12-01T16:26:09.149864
2021-08-08T17:01:12
2021-08-08T17:01:12
14,119,907
158
14
MIT
2021-08-08T17:01:12
2013-11-04T18:39:34
Python
UTF-8
Python
false
false
7,595
py
ast_visitor.py
from pycket.interpreter import ( App, Begin, Begin0, BeginForSyntax, CaseLambda, Cell, CellRef, DefineValues, If, Lambda, Let, Letrec, LexicalVar, Module, ModuleVar, LinkletVar, Quote, QuoteSyntax, Require, SetBang, ToplevelVar, Va...
1eabc730e74d184c8cbb1bbd58d1813f776c236d
951c578186220f2499a7aecf99a314e46778fa75
/tests/columns/test_low_cardinality.py
f7d1ac173843c6240e5e32b9a710322741b06604
[ "MIT", "Python-2.0" ]
permissive
mymarilyn/clickhouse-driver
0d06fb1d3b28f61b267307fb6cea1a33d7997df4
ce712b5bc7a7900e844c7c8f99a1e3426aa326f7
refs/heads/master
2023-07-20T08:41:27.193499
2023-06-30T08:29:06
2023-06-30T08:29:31
90,912,724
1,108
229
NOASSERTION
2023-05-24T02:54:41
2017-05-10T22:13:04
Python
UTF-8
Python
false
false
6,724
py
test_low_cardinality.py
from datetime import date, timedelta from decimal import Decimal from uuid import UUID from tests.testcase import BaseTestCase from tests.util import require_server_version class LowCardinalityTestCase(BaseTestCase): required_server_version = (19, 3, 3) stable_support_version = (19, 9, 2) def cli_client...
94545fa9bb64969ed3d0a2045a424b7850ec2af1
3481023b43028c5ee9520a8be0978e914bdcb548
/manga_py/providers/mangamew_com.py
d07844f6519daca30e3d9741fd00d1e02f627e45
[ "MIT" ]
permissive
manga-py/manga-py
18f6818d8efc96c3e69efee7dff3f3d6c773e32a
0db97123acab1f2fb99e808b0ba54db08977e5c8
refs/heads/stable_1.x
2023-08-20T03:04:06.373108
2023-04-16T08:28:15
2023-04-16T08:28:15
98,638,892
444
56
MIT
2023-07-27T13:21:40
2017-07-28T10:27:43
Python
UTF-8
Python
false
false
1,069
py
mangamew_com.py
from manga_py.provider import Provider from .helpers.std import Std class MangaMewCom(Provider, Std): _type = 'manga' def get_chapter_index(self) -> str: re = r'%s/[^/]+/.+?-(\d+(?:-\d+)?)-\d+' % self._type return self.re.search(re, self.chapter).group(1) def get_content(self): u...
c063e3ca9e8236b3b1139ee9509ff80b4cd4b6e0
5e9576c368e98927e2965bd2fb23bd35d9993d69
/featuretools/primitives/standard/transform/__init__.py
90bf8bd9e16a378b95dd38bba97b23a85545915a
[ "BSD-3-Clause" ]
permissive
alteryx/featuretools
c6e319e063e8e84e7684bf232376f95dc5272160
c284c2d27a95b81e0bae913ac90df2b02c8f3b37
refs/heads/main
2023-08-25T12:21:33.945418
2023-08-23T16:30:25
2023-08-23T16:30:25
102,908,804
1,783
201
BSD-3-Clause
2023-09-07T18:53:19
2017-09-08T22:15:17
Python
UTF-8
Python
false
false
1,685
py
__init__.py
# flake8: noqa from featuretools.primitives.standard.transform.absolute_diff import AbsoluteDiff from featuretools.primitives.standard.transform.binary import * from featuretools.primitives.standard.transform.cumulative import * from featuretools.primitives.standard.transform.datetime import * from featuretools.primiti...
14352f4198cfb906c65f793b14656c7dc9ec2412
47ef6997d03f4d5c921c83cc09aef1dfc6828e2c
/zeus/networks/pytorch/losses/reduce_loss.py
2948a08d5d991540122a0303a6c1c0bbb9b6509b
[ "MIT" ]
permissive
huawei-noah/xingtian
620c9f245183d636e0a65659fd99a984397ecbd4
e4ef3a1c92d19d1d08c3ef0e2156b6fecefdbe04
refs/heads/master
2023-09-03T01:10:21.768245
2022-03-21T03:39:39
2022-03-21T03:39:39
287,759,621
308
91
MIT
2023-09-12T11:33:22
2020-08-15T14:13:06
Python
UTF-8
Python
false
false
1,971
py
reduce_loss.py
# -*- coding: utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the...
c5effee25626efcc2f72d5c2447989e122ad27de
096017db9ecf688ea56e577628579ea73969808f
/bionic/protocol.py
fcb5fabd8b83342c800c46198bef1f791abee11f
[ "Apache-2.0" ]
permissive
square/bionic
eb44d9d8b0c80b68c607c0f9327b39988b47ed4d
3b88338923bd84df2c48cb6bd3d282c6283305b9
refs/heads/master
2023-06-15T10:07:52.399855
2022-11-16T05:16:45
2022-11-16T05:16:45
204,986,901
107
24
Apache-2.0
2023-03-18T23:11:51
2019-08-28T17:29:02
Python
UTF-8
Python
false
false
3,138
py
protocol.py
from . import protocols from .utils.misc import oneline # These are callable with or without arguments. See BaseProtocol.__call__ for # why we instantiate them here. picklable = protocols.PicklableProtocol() # noqa: F401 dillable = protocols.DillableProtocol() # noqa: F401 dask = protocols.DaskProtocol() # noqa: F...
323fbc48209cc4c08f167b5e974159dfe324c596
21f35d6b81c94bd1ed07b923482c1a9e17423d4c
/sphinx_gallery/tests/tinybuild/examples/plot_webp.py
a7c3da3243d02dd1027108e9ab2fe025268192fd
[]
permissive
sphinx-gallery/sphinx-gallery
06378c2ecedf9cb306b3958327a1ba294c8d6725
4e298a6ccee1c4ff8b33cd65371127118f626032
refs/heads/master
2023-08-17T06:30:59.195322
2023-08-15T16:00:25
2023-08-15T16:00:25
25,860,190
382
235
BSD-3-Clause
2023-09-12T15:29:13
2014-10-28T08:41:46
Python
UTF-8
Python
false
false
98
py
plot_webp.py
""" ============ Save as WebP ============ """ import matplotlib.pyplot as plt plt.plot([1, 2])
4c9ac1d8cf490922c9e66198f2d1a7b2ba063f6f
e3f5f41b242650b4bef68aa191a5779aedd3e02e
/Chapter10/webapp/blog/tasks.py
3fac59a9b4824544003883d6d42d46ea1bb030ee
[ "MIT" ]
permissive
PacktPublishing/Mastering-Flask-Web-Development-Second-Edition
d4675c047bb51b0154958205f53c962ab4d32e4c
c3174127b40f8af1e2ab5e614994ffed7acbc11b
refs/heads/master
2023-05-11T00:23:30.213655
2023-01-18T09:14:14
2023-01-18T09:14:14
154,667,293
168
131
MIT
2023-05-01T20:52:13
2018-10-25T12:30:58
Python
UTF-8
Python
false
false
1,968
py
tasks.py
import datetime import logging from flask import render_template from flask_mail import Message from .. import celery, mail from .models import Reminder, Post logging.basicConfig(format='%(asctime)s:%(levelname)s:%(name)s:%(message)s') logging.getLogger().setLevel(logging.DEBUG) logs = logging.getLogger(__name__) @c...
8517498091dbe0052bad5ca76c310711ec22af73
095e5e86c931af6553996b0a128c07d94b38cbca
/test/test_hpyunicode.py
481d3029ca3b8a899679ec3972f88506cce4fb46
[ "MIT" ]
permissive
hpyproject/hpy
1dc9e5e855fa006b1728703c5925addbb43cf792
8310a762d78e3412464b1869959a77da013e6307
refs/heads/master
2023-09-03T21:18:17.273371
2023-07-24T07:26:14
2023-07-24T07:26:14
196,559,763
681
41
MIT
2023-07-24T07:26:16
2019-07-12T10:27:56
Python
UTF-8
Python
false
false
43,142
py
test_hpyunicode.py
# -*- encoding: utf-8 -*- import itertools import re import sys import pytest from .support import HPyTest class TestUnicode(HPyTest): def test_Check(self): mod = self.make_module(""" HPyDef_METH(f, "f", HPyFunc_O) static HPy f_impl(HPyContext *ctx, HPy self, HPy arg) ...
b487cde8cbb1062c033c3806000deff7d03371c3
1095cfe2e29ddf4e4c5e12d713bd12f45c9b6f7d
/src/arch/arm/ArmFsWorkload.py
a9474fe119ae37868d7a951b37e364f7a551e05f
[ "BSD-3-Clause", "LicenseRef-scancode-proprietary-license", "LGPL-2.0-or-later", "MIT" ]
permissive
gem5/gem5
9ec715ae036c2e08807b5919f114e1d38d189bce
48a40cf2f5182a82de360b7efa497d82e06b1631
refs/heads/stable
2023-09-03T15:56:25.819189
2023-08-31T05:53:03
2023-08-31T05:53:03
27,425,638
1,185
1,177
BSD-3-Clause
2023-09-14T08:29:31
2014-12-02T09:46:00
C++
UTF-8
Python
false
false
4,180
py
ArmFsWorkload.py
# Copyright (c) 2009, 2012-2013, 2015-2020 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation...
bce696fde65119ccba5467402171ff33a2560687
ac2f43c8e0d9649a7f063c59b3dffdfed9fd7ed7
/tests2/tests/cloudripper/test_fscd.py
3572d1d4ccde218a724565bb1de31a7ecabe8303
[]
no_license
facebook/openbmc
bef10604ced226288600f55248b7f1be9945aea4
32777c66a8410d767eae15baabf71c61a0bef13c
refs/heads/helium
2023-08-17T03:13:54.729494
2023-08-16T23:24:18
2023-08-16T23:24:18
31,917,712
684
331
null
2023-07-25T21:19:08
2015-03-09T19:18:35
C
UTF-8
Python
false
false
7,873
py
test_fscd.py
#!/usr/bin/env python3 # # Copyright 2021-present Facebook. All Rights Reserved. # # This program file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; version 2 of the License. # # This program is distributed ...
62fa59116e00d489c0ed80b316f872afbed0ce30
89021435261d62f34c4d4d619e03409df72f156b
/sample/u2_demo.py
eb9bca27868de448d164ee8f0db5c86184fcbe79
[ "Apache-2.0" ]
permissive
SeldomQA/poium
7018d080a55be112cc0e56a3d33476f8c9a485a5
fedcfa4a046a21d159ca5cffa6fa865569757e6a
refs/heads/master
2023-09-01T15:08:41.802432
2023-08-23T15:20:27
2023-08-23T15:20:27
154,795,650
251
96
Apache-2.0
2023-03-11T17:24:16
2018-10-26T07:35:21
Python
UTF-8
Python
false
false
768
py
u2_demo.py
""" uiautomator2 Library test demo https://github.com/openatx/uiautomator2 """ import uiautomator2 as u2 from poium.u2 import Page, Element, Setting Setting.click_screenshots = False class BBSPage(Page): search_input = Element(resourceId="com.meizu.flyme.flymebbs:id/ko", describe="搜索输入框") search_button = Ele...
7977b9644a3d597f7c71e219219cb8c1268cec58
cfedc55053631e336cd3639f5a8fff25bff7d373
/chapter2/solutions/expenditures_barchart.py
54a88177e7b2857508782bb3eead3f79a6066166
[ "MIT" ]
permissive
doingmathwithpython/code
53db61c74eeb421fe8ba50e8f1aba3f3013e5aea
03ed863cd94e1a64912c0c273e3972e2019f9e60
refs/heads/master
2022-05-22T00:26:13.151556
2022-05-09T01:47:10
2022-05-09T01:47:10
41,512,525
118
84
MIT
2021-05-01T07:25:49
2015-08-27T21:34:19
Jupyter Notebook
UTF-8
Python
false
false
997
py
expenditures_barchart.py
''' expenditures_barchart.py Visualizing the weekly expenditure using a bar chart ''' import matplotlib.pyplot as plt def create_bar_chart(data, labels): # number of bars num_bars = len(data) # this list is the point on the y-axis where each # bar is centered. Here it will be [1, 2, 3..] position...
a5f9a062515879efece9a76eff327551025ccd74
010279e2ba272d09e9d2c4e903722e5faba2cf7a
/contrib/python/scipy/py3/scipy/stats/_hypotests.py
a5dd37b08f774d025719b6b2eb94c9a8d9febcd6
[ "Python-2.0", "LicenseRef-scancode-unknown-license-reference", "MIT", "Qhull", "BSD-3-Clause", "BSL-1.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
catboost/catboost
854c1a1f439a96f1ae6b48e16644be20aa04dba2
f5042e35b945aded77b23470ead62d7eacefde92
refs/heads/master
2023-09-01T12:14:14.174108
2023-09-01T10:01:01
2023-09-01T10:22:12
97,556,265
8,012
1,425
Apache-2.0
2023-09-11T03:32:32
2017-07-18T05:29:04
Python
UTF-8
Python
false
false
53,545
py
_hypotests.py
from collections import namedtuple from dataclasses import make_dataclass import numpy as np import warnings from itertools import combinations import scipy.stats from scipy.optimize import shgo from . import distributions from ._continuous_distns import chi2, norm from scipy.special import gamma, kv, gammaln from . im...
6fef79f32f8e235cb0e56433da8280843e3f74ca
751fe2de18f00596e4f1ed342b56bd6f38ee2053
/examples/04_openmdao/betz_limit.py
e74e041e17c9f958cb96a7da5db8a205345dcfd0
[ "Apache-2.0" ]
permissive
WISDEM/WISDEM
42fa780915d62fd4e4203050e886093ecc806c8a
d7270ebe1c554293a9d36730d67ab555c071cb17
refs/heads/master
2023-08-04T01:22:43.215105
2023-06-22T23:36:07
2023-06-22T23:36:07
23,678,280
120
86
Apache-2.0
2023-06-22T19:26:34
2014-09-04T20:30:24
Python
UTF-8
Python
false
false
4,303
py
betz_limit.py
# Import the OpenMDAO library import openmdao.api as om # -- # Specific the Actuator Disc theory into a derived OpenMDAO class class ActuatorDisc(om.ExplicitComponent): # Inputs and Outputs def setup(self): # Inputs into the the model self.add_input("a", 0.5, desc="Indcued velocity factor") ...
783f5d9207d92501edb677b3f565e867ab300a37
eb47bf8011f957e95a84ac64aab29598c59081a1
/sample/WRS2018/script/T1M-AizuSpiderSA.py
cdd7c5472b6844173663b9a72921b7b42fe56892
[ "Zlib", "MIT" ]
permissive
choreonoid/choreonoid
fd776aaab99d9ec544e5ceec04fbc283b8a3aee3
94b353722d5b9ff10e9c0ca8982e549f85b5f59f
refs/heads/master
2023-09-01T12:27:17.849641
2023-08-04T13:54:12
2023-08-04T13:54:12
274,977,786
117
30
NOASSERTION
2023-05-23T08:25:33
2020-06-25T17:36:56
C++
UTF-8
Python
false
false
98
py
T1M-AizuSpiderSA.py
import WRSUtil WRSUtil.loadProject( "MultiSceneViews", "T1M", "AGXSimulator", "AizuSpiderSA")
38127cb24c1f684b02ed77730b5dc941b42bdb01
4763ee2164b4c2531688b0e787ed762089b3d112
/pygrim/formulas/coulomb_wave.py
cf391e90146e8876753d1f0891e3adc6b2231597
[ "MIT" ]
permissive
fredrik-johansson/fungrim
39dc106f69fb72c6046e4a6a27b1cff5b1e21183
b7c3ca6e565e1058638cab6ba2bc811090296767
refs/heads/master
2023-08-31T19:47:15.115965
2021-03-15T19:09:32
2021-03-15T19:09:32
175,661,931
111
14
MIT
2022-02-24T14:55:23
2019-03-14T16:42:45
Python
UTF-8
Python
false
false
11,870
py
coulomb_wave.py
# -*- coding: utf-8 -*- from ..expr import * def_Topic( Title("Coulomb wave functions"), Section("Definitions"), Entries( "8b2cb9", "f25e3d", "16a4e7", "2b12f4", "512063", ), Section("Differential equations"), Entries( "ad8df6", "74274a",...
2e963e3f47db2397bd5dd996a772383d5cc982d3
5770a3fc8bd224d926d4aff5b7d8f1863f145cab
/quarkchain/cluster/neighbor.py
2a20d143f18743dff40904df434900f6f0232cca
[ "MIT" ]
permissive
QuarkChain/pyquarkchain
d06a59d630fd0c4a07e1c10548ba044329da95ba
2068153c9386a1eacb5eccb8cf93d98f87537203
refs/heads/master
2023-02-27T14:16:07.419575
2022-04-18T20:35:59
2022-04-18T20:35:59
143,354,339
253
133
MIT
2023-02-07T21:54:01
2018-08-02T23:28:47
Python
UTF-8
Python
false
false
595
py
neighbor.py
from quarkchain.core import Branch from quarkchain.utils import is_p2, check def is_neighbor(b1: Branch, b2: Branch, shard_size: int): """A naive algorithm to decide neighbor relationship TODO: a better algorithm, because the current one ensures 32 neighbors ONLY when there are 2^32 shards """ if shar...
f31a60067975aec1aa405af50e1efb8b42db903c
c9b0174cc2e2222571223b0da4730a785437ac42
/modulos/var_es.py
71a26dc371255768579a7b98697dd94cd8ad3d79
[ "CC0-1.0" ]
permissive
Zian25/UniTools-Termux
5fedfdad7d4075d129e5adfa2144c1d85dcf2175
774bd1a894bfc0eddf378b318f361609b562b886
refs/heads/master
2023-08-31T17:01:42.127681
2023-08-11T12:01:03
2023-08-11T12:01:03
188,270,589
205
20
MIT
2022-05-12T20:24:42
2019-05-23T16:31:08
Python
UTF-8
Python
false
false
1,209
py
var_es.py
import sys import random from Zawiencom import * from osint import * from dos import * from phishing import * from exploit import * from bruteforce import * from autoinstalador import * def pedido_7_es(): os.system("clear") print ("En breve...\n") print("¿Qué será??") print("Un terminal con diversas ...
321fdf5edaa288cbfbd1f7f074a69351d2f6b5c4
be815aacbd7b06ac0ce3f412831639aa0297b988
/workflows/pipe-common/pipeline/hpc/logger.py
670a9cee3951dafcfbd565a49bef31bc27db6dd9
[ "Apache-2.0" ]
permissive
epam/cloud-pipeline
8a861dae60d0f86089ff55e2f278e8593fc5e112
570dd898e96de931b96e584c86e72296b0e40607
refs/heads/develop
2023-08-30T08:03:18.672866
2023-08-29T17:07:13
2023-08-29T17:07:13
174,065,041
155
73
Apache-2.0
2023-09-14T13:36:36
2019-03-06T03:34:40
Java
UTF-8
Python
false
false
1,129
py
logger.py
# Copyright 2017-2023 EPAM Systems, Inc. (https://www.epam.com/) # # 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...
25b6c59c428e78bd6a6998b6323a86efad44ddda
cf9f0e04f0bc37defce1b869e15a1198f6534129
/electrum_ltc/lnurl.py
b610ea698fc6575566eb3ff02fcc93746a4b994f
[ "MIT" ]
permissive
pooler/electrum-ltc
9aa496328c61cef017adb53b9df4d119088ded68
f9cbfaca5f8b2ab3eef89758bf78b7e4c2c554a0
refs/heads/master
2022-11-13T05:31:20.393685
2022-11-05T19:18:03
2022-11-05T19:37:26
18,324,571
224
162
MIT
2021-12-09T10:06:33
2014-04-01T09:39:17
Python
UTF-8
Python
false
false
3,991
py
lnurl.py
"""Module for lnurl-related functionality.""" # https://github.com/sipa/bech32/tree/master/ref/python # https://github.com/lnbits/lnurl import asyncio import json from typing import Callable, Optional, NamedTuple, Any, TYPE_CHECKING import re import aiohttp.client_exceptions from aiohttp import ClientResponse from e...
48c7c360bf2174af233e308692395791e943568d
3a24f63c8742560993b5465b26339e7c0ed05a27
/crates/ruff/resources/test/fixtures/flake8_use_pathlib/py_path_2.py
fc25529fb2e9089564110748636192a2230f2730
[ "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
52
py
py_path_2.py
from py.path import local as path p = path("/foo")
8a326c287c6512ea9338c90a2c1f4c484da3032d
17b4b0b4714f3a784466d0209a40b8880dfb5fb0
/owtf/scripts/verify_nikto.py
b0442f83d317590c312b619c96d6e2b2d81bc646
[ "BSD-3-Clause" ]
permissive
owtf/owtf
8b72d43ee01272d100408200a898d76deeb1569f
240825989a3850241b6b5dba6bcae1042a5dc384
refs/heads/develop
2023-08-31T20:25:57.364620
2023-08-30T23:02:24
2023-08-30T23:02:24
3,215,654
1,683
534
BSD-3-Clause
2023-09-01T17:23:00
2012-01-19T06:42:44
Python
UTF-8
Python
false
false
2,004
py
verify_nikto.py
#!/usr/bin/env python """ Tries to put links around nikto findings to save a bit of time in manual verification This files actually converts target urls & OSVDB codes into clickable links """ import re import sys import tornado.template from owtf.utils.strings import to_str if len(sys.argv) < 3: print("Usage: %...
1111ea73c6e5bd4b661e75513e63176813bc44ec
e324c6b59764a9739ae246b452af0a7198408569
/approvaltests/command.py
24bc75a4d81a4d960c6c4a437d83e166422a1d44
[ "Apache-2.0" ]
permissive
approvals/ApprovalTests.Python
6a124ccd51f04835bd4e7ff6f299fb850ac4a75d
f9990385a7d898d7c42458ef99fac6c5636cfff5
refs/heads/main
2023-08-30T21:28:32.381629
2023-08-28T19:48:14
2023-08-28T19:48:14
12,657,590
124
57
Apache-2.0
2023-09-10T16:34:02
2013-09-07T00:48:46
Python
UTF-8
Python
false
false
643
py
command.py
import os from typing import Optional class Command: def __init__(self, cmd: str) -> None: self.command = cmd @staticmethod def executable(cmd: str) -> bool: return os.path.isfile(cmd) and os.access(cmd, os.X_OK) def locate(self) -> Optional[str]: path, _ = os.path.split(self...
712c866fd2fa3647eb916b85dd5e2d294382d7ea
ea1845e05c86a85d3e51d6765a0efdd5003db553
/flags/tests/test_conditions_validators.py
3e0db48d1ee4c27a7997f374e5b655c1a8d8fb1b
[ "CC0-1.0" ]
permissive
cfpb/django-flags
806a693ddc48ceacf3f3381faab278b965df837b
9cfbb6c6a3afd956b740e7d4c74ed589e6a38f5c
refs/heads/main
2023-08-09T11:30:43.375403
2023-07-27T13:00:38
2023-07-27T13:00:38
137,590,135
197
31
CC0-1.0
2023-07-27T13:00:39
2018-06-16T15:23:55
Python
UTF-8
Python
false
false
3,422
py
test_conditions_validators.py
import django from django.contrib.auth import get_user_model from django.core.exceptions import ValidationError from django.test import TestCase, override_settings from flags.conditions.validators import ( validate_boolean, validate_date, validate_parameter, validate_path_re, validate_user, ) cla...
99852e421c5a98db6f9ac69a3d20f6976b28c2d0
1095cfe2e29ddf4e4c5e12d713bd12f45c9b6f7d
/src/python/m5/simulate.py
587bfa0202309be1b66e0bb8e49b7fc58ce1bbb2
[ "BSD-3-Clause", "LicenseRef-scancode-proprietary-license", "LGPL-2.0-or-later", "MIT" ]
permissive
gem5/gem5
9ec715ae036c2e08807b5919f114e1d38d189bce
48a40cf2f5182a82de360b7efa497d82e06b1631
refs/heads/stable
2023-09-03T15:56:25.819189
2023-08-31T05:53:03
2023-08-31T05:53:03
27,425,638
1,185
1,177
BSD-3-Clause
2023-09-14T08:29:31
2014-12-02T09:46:00
C++
UTF-8
Python
false
false
15,862
py
simulate.py
# Copyright (c) 2012, 2019, 2021 Arm Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the fu...
b35a9cc8922725863b825be4028cea2876e746a2
2d05050d0ada29f7680b4df20c10bb85b0530e45
/python/tvm/autotvm/task/topi_integration.py
a4f3636edbbe8c905a30120e15b0422a4c89c9e4
[ "Apache-2.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "Zlib", "LLVM-exception", "BSD-2-Clause" ]
permissive
apache/tvm
87cb617f9a131fa44e1693303aaddf70e7a4c403
d75083cd97ede706338ab413dbc964009456d01b
refs/heads/main
2023-09-04T11:24:26.263032
2023-09-04T07:26:00
2023-09-04T07:26:00
70,746,484
4,575
1,903
Apache-2.0
2023-09-14T19:06:33
2016-10-12T22:20:28
Python
UTF-8
Python
false
false
8,590
py
topi_integration.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...
ed5b809ea625a77d9bb3640f3a32ade4c1ca051e
b2a0015525eb65d143891c911a30f9f6c30f246a
/nms_wrapper.py
ca900e8968a28957540a6dfc309243e8052f11ab
[ "MIT" ]
permissive
qhgz2013/anime-face-detector
65a381848ff89293af422ed16aaa18ebb1c7101a
94d75475a17f48c7636345cd316c2eeae242a58e
refs/heads/master
2022-03-08T09:33:30.513973
2022-02-21T11:48:33
2022-02-21T11:48:33
143,052,594
240
37
MIT
2022-02-21T11:48:34
2018-07-31T18:31:29
Python
UTF-8
Python
false
false
770
py
nms_wrapper.py
from enum import Enum class NMSType(Enum): PY_NMS = 1 CPU_NMS = 2 GPU_NMS = 3 default_nms_type = NMSType.PY_NMS class NMSWrapper: def __init__(self, nms_type=default_nms_type): assert type(nms_type) == NMSType if nms_type == NMSType.PY_NMS: from nms.py_cpu_nms import py...
b101863489d3feff4b43bc4328144990439b86b9
8613f9f389578e7c7b9e150a4fa2334fc3e5b49c
/tests/test_drive.py
9158e5d1f0314bdc50d9d2e4044256af96ca78d4
[ "MIT" ]
permissive
picklepete/pyicloud
e38ba2f3146c61e27fd137fb7966e368678aaeef
332cc9fa767862480c27253233c2cfdf9f2ea0d9
refs/heads/master
2023-06-25T13:05:18.006587
2022-02-17T16:55:05
2022-02-17T16:55:05
7,379,566
2,217
478
MIT
2023-06-18T12:08:56
2012-12-30T19:27:15
Python
UTF-8
Python
false
false
3,265
py
test_drive.py
"""Drive service tests.""" from unittest import TestCase import pytest from . import PyiCloudServiceMock from .const import AUTHENTICATED_USER, VALID_PASSWORD class DriveServiceTest(TestCase): """Drive service tests.""" service = None def setUp(self): """Set up tests.""" self.service =...
14e2feff7e0be239716580c866baf98464daefaf
f241df59f8e6c13cab13ec3b5d5d9ade89c419f7
/leo/modes/batch.py
1058c9a2d75f8058ab8aa996bcff6452eda688e1
[ "BSD-3-Clause", "MIT" ]
permissive
leo-editor/leo-editor
6c6e09c1ae89cb9b1952c9f5b0c3a6c76ae9e625
a3f6c3ebda805dc40cd93123948f153a26eccee5
refs/heads/devel
2023-08-28T08:57:01.365701
2023-08-23T10:21:57
2023-08-23T10:21:57
16,728,437
1,671
219
NOASSERTION
2023-09-14T19:39:01
2014-02-11T11:14:41
Python
UTF-8
Python
false
false
8,670
py
batch.py
#@+leo-ver=5-thin #@+node:ekr.20221129095254.1: * @file ../modes/batch.py #@@language python # Leo colorizer control file for batch mode. # This file is in the public domain. # Properties for batch mode. properties = { "lineComment": "rem", } # Attributes dict for batch_main ruleset. batch_main_attributes_dict =...
1f15f5356a0e963990c0b11a6e30e5c2137ca3aa
ee87c715e5d937b0380ddb87d56e9ebc4877a02b
/sklearn/cluster/_optics.py
c1665b28d0060832cec76d98d99dc52f9765f1bf
[ "BSD-3-Clause" ]
permissive
scikit-learn/scikit-learn
27a2196f3173e0f32f7a5c5d652b70a6c57c7644
061f8777b48e5491b0c57bb8e0bc7067c103079d
refs/heads/main
2023-08-18T15:32:59.764468
2023-08-18T14:39:08
2023-08-18T14:39:08
843,222
58,456
29,777
BSD-3-Clause
2023-09-14T19:08:34
2010-08-17T09:43:38
Python
UTF-8
Python
false
false
42,163
py
_optics.py
"""Ordering Points To Identify the Clustering Structure (OPTICS) These routines execute the OPTICS algorithm, and implement various cluster extraction methods of the ordered list. Authors: Shane Grigsby <refuge@rocktalus.com> Adrin Jalali <adrinjalali@gmail.com> Erich Schubert <erich@debian.org> ...
6880341ee8bac9ebaf410f0dbd671875d863c681
57d5f2bffb4947ddfb61d70668067e6c284f4c05
/app/job/daka.py
45e280f0611c99f952952a55895ce7361e5e1ed0
[ "Apache-2.0" ]
permissive
CaoZ/JD-Coin
05a5cbdeb6cab41a41fc9f33650970abd6da90ab
287af555c530d68b095018416b67c7d2fb1bad73
refs/heads/browser
2021-04-29T09:28:52.625505
2019-10-14T06:53:43
2019-10-14T06:53:43
85,375,295
1,108
440
null
2019-07-15T06:24:51
2017-03-18T04:19:59
Python
UTF-8
Python
false
false
4,062
py
daka.py
import traceback from requests import Session import browser import job from .common import find_value, RequestError class Daka: job_name = '小白卡钢镚打卡' index_url = 'https://bk.jd.com/m/channel/login/daka.html' login_url = 'https://home.m.jd.com' sign_url = 'https://bk.jd.com/m/channel/login/clock.htm...
7fd5ddad97216eb9204b9e246268bd7541a91171
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/SimTracker/TrackTriggerAssociation/python/StubAssociator_cff.py
f5ac90c9667f313568403bcc97709ae094f2971d
[ "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
889
py
StubAssociator_cff.py
#--------------------------------------------------------------------------------------------------------- # This definess StubAssociator which produces StubAssociation which will be used by L1Tigger/trackerDTC and # trackerTFP Analyzer to associate Stubs with MC truth either by using TTStubAssociationMap or # TTCluste...
f0b6e9385e5c36b6c5869de772c0b7db5b9c948d
f1973e136f49f0b5ea2ec63c4d862188d197e5a5
/api/paginator.py
7247ff514a309399bdb869556c1b8fcbb17cebb6
[ "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
1,990
py
paginator.py
from collections import OrderedDict from django.core.paginator import InvalidPage, Paginator as DjangoPaginator from api.exceptions import NotFound from api.utils.urls import replace_query_param class Paginator(DjangoPaginator): """ API paginator that has a get_response_results() method used in api_views vi...
f4eba255d50c2fa1dc06245201d1ea0488ca20bb
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/govern/data-meta/amundsen/frontend/tests/unit/api/mail/test_v0.py
77c96bb8fceab10cd4e4d4abb216f8ba9ea2d7e2
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "MIT" ]
permissive
alldatacenter/alldata
7bc7713c9f1d56ad6b8e59ea03206d1073b7e047
8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6
refs/heads/master
2023-08-05T07:32:25.442740
2023-08-03T13:17:24
2023-08-03T13:17:24
213,321,771
774
250
Apache-2.0
2023-09-06T17:35:32
2019-10-07T07:36:18
null
UTF-8
Python
false
false
6,241
py
test_v0.py
# Copyright Contributors to the Amundsen project. # SPDX-License-Identifier: Apache-2.0 import unittest from unittest.mock import Mock from http import HTTPStatus from typing import Dict, List, Optional from flask import Response, jsonify, make_response from amundsen_application import create_app from amundsen_appl...
7a1bb8672e9157d27daa9708e2f7d38f7eb465d7
28cf7b16dd29a5802d09b44b0186f6ae2c5ff0ed
/kuryr_kubernetes/cni/handlers.py
5e90f0dd61889f656cf1af367bac0ca51edd1f0e
[ "Apache-2.0" ]
permissive
openstack/kuryr-kubernetes
c292826abfb8aa0d3f8ef3b1007362162db16956
4993c7a4b2d7e4b053832bf39602f2573fad6266
refs/heads/master
2023-08-18T19:21:02.487908
2023-08-03T13:58:11
2023-08-03T13:58:11
58,626,548
169
78
Apache-2.0
2022-04-13T02:27:52
2016-05-12T09:14:29
Python
UTF-8
Python
false
false
4,714
py
handlers.py
# Copyright (c) 2016 Mirantis, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
42b565d3a8e1865fb2e30695749928c595f6e1e0
f7863c02970118d251846b896ddca4a7dff1066f
/hwt/synthesizer/rtlLevel/__init__.py
978d92882e4ba771ce52af6b0d61b130659c1494
[ "MIT" ]
permissive
Nic30/hwt
6fea29e61422ed1c91ad924971b8f8e805d41b88
0c8e617fa7f56b261607c0acd9c977928e94276d
refs/heads/master
2023-09-04T06:44:31.103089
2023-08-23T13:05:21
2023-08-23T13:05:21
35,898,469
166
23
MIT
2020-07-30T15:16:54
2015-05-19T17:45:47
Python
UTF-8
Python
false
false
71
py
__init__.py
""" rtlLevel is responsible for RtlSignal manipulation and design. """
620a2cf6a528198ee2b7f9d7cb26b218a6e01e49
4cccbd59c06b10f3bbe1d5e8c3082c8b0c9a8145
/tests/test_edgeql_volatility.py
228b5eb04936e997db148adf2aa4bd2b540c8e39
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
edgedb/edgedb
ff26656ee449208b88ae85a6ad9823fce4f2ecad
4d614ce5de15e0b08575b0bf6738ece02c516ded
refs/heads/master
2023-09-05T07:10:05.409260
2023-09-01T23:20:13
2023-09-01T23:20:13
95,817,032
11,683
404
Apache-2.0
2023-09-14T17:25:49
2017-06-29T20:30:48
Python
UTF-8
Python
false
false
60,519
py
test_edgeql_volatility.py
# # This source file is part of the EdgeDB open source project. # # Copyright 2019-present MagicStack Inc. and the EdgeDB authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http...
5bf795ffa1e84cdaaa30c0904a14d9ea185e7150
2337351b228818e41be3002bd38f68f77c2aa074
/sa/profiles/Alentis/NetPing/get_chassis_id.py
0ebba776b5febafb3b4f6d6bab75d0bd6f259783
[ "BSD-3-Clause" ]
permissive
nocproject/noc
57d40c680a1499374463e472434f9595ed6d1374
6e6d71574e9b9d822bec572cc629a0ea73604a59
refs/heads/master
2023-08-31T01:11:33.544573
2023-08-30T17:31:11
2023-08-30T17:31:11
107,815,776
105
33
BSD-3-Clause
2023-07-31T07:57:45
2017-10-21T21:04:33
Python
UTF-8
Python
false
false
920
py
get_chassis_id.py
# --------------------------------------------------------------------- # Alentis.NetPing.get_chassis_id # --------------------------------------------------------------------- # Copyright (C) 2007-2014 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- # ...
62e074f4be77085317913d29204dd853579ea989
8bd04e1685be72706b3c28a159cc8f744a4a5f65
/uefi_firmware/guids/efiguids.py
25338edc8709e9df28e740d0a06274628db23505
[ "MIT" ]
permissive
theopolis/uefi-firmware-parser
e55384b638026d79c03f51e2760ada6047db3269
f05ed14eaf4013f62aa19e74c434a6a465583423
refs/heads/master
2023-08-24T03:14:54.480442
2023-08-12T15:59:06
2023-08-12T15:59:06
16,303,018
656
171
NOASSERTION
2023-08-12T17:12:01
2014-01-28T05:25:47
Python
UTF-8
Python
false
false
80,833
py
efiguids.py
""" efiguids.py This is a giant list of protocol GUIDs I grepped out of the TianoCore source code. It should be relatively complete, but won't contain any of Apple's proprietary GUIDs. I'll add those as I come across them. See the following URL for more info and the latest version: https://github.com/snarez/ida-efiut...
1123f4bb237219dea693931b6e026ece250a971c
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/web/web_client_api/ui/util.py
33fc0cd2ae703ee7e50aee80222762718e1772f4
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
12,141
py
util.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/web/web_client_api/ui/util.py import typing from account_helpers import AccountSettings from account_helpers.AccountSettings import NEW_LOBBY_TAB_COUNTER from dossiers2.ui.achievements import ACHIEVEMENT_BLOCK from gui.Scaleform.daa...
727152c0a05dabe91231c593cfca029ea11e5aa4
8188f026dcfa3ca6c4e2d58e6c56d04d24e37a18
/projectq/cengines/_cmdmodifier.py
1f8769304227f6138cb1f7c02b2248450eaee7a6
[ "Apache-2.0" ]
permissive
ProjectQ-Framework/ProjectQ
2e342da0622d4b5d513c15504556e95d3d0e2aea
67c660ca18725d23ab0b261a45e34873b6a58d03
refs/heads/develop
2023-09-04T02:18:25.581119
2023-03-09T16:03:57
2023-03-09T16:03:57
77,520,796
886
335
Apache-2.0
2023-07-24T07:07:15
2016-12-28T09:31:53
Python
UTF-8
Python
false
false
2,177
py
_cmdmodifier.py
# Copyright 2017 ProjectQ-Framework (www.projectq.ch) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
ab646a6a29a0f613bb02b7bd295afbaf40834360
c94d31edf92c1f7a85e5f132ebeddfd2678801bf
/aiomisc/version.py
13502ee9a6d19214df3a9fde368b36046912ae7f
[ "MIT" ]
permissive
aiokitchen/aiomisc
56abb33ec32be7278888f1a5e1fadca80aa95925
d9dcce797ac1be7ae7737c5478c152f7aec72ee7
refs/heads/master
2023-08-04T11:26:38.779711
2023-07-24T10:51:09
2023-07-24T10:51:09
129,414,094
314
25
MIT
2023-07-25T23:17:09
2018-04-13T14:33:37
Python
UTF-8
Python
false
false
154
py
version.py
# THIS FILE WAS GENERATED AUTOMATICALLY # BY: poem-plugins "git" plugin # NEVER EDIT THIS FILE MANUALLY version_info = (17, 3, 0) __version__ = "17.3.0"
3b12f1ba0443989fb1e46a2adc8e853bd9f1f7e5
e579188f958ae43ee5bbcce5e85a3494b829a6d3
/tests/plantuml/test_note.py
778e6f728c3161e94b822bfd8fb055c4fc2c0639
[ "MIT" ]
permissive
pinetr2e/napkin
2797542abeadefff5ade9945961eba2e34208695
fb1da3d3b3b9fceb59a4adc1287a93393d0baa4c
refs/heads/master
2021-07-19T12:32:06.746980
2021-07-18T07:21:34
2021-07-18T07:21:34
27,030,611
203
9
MIT
2021-07-18T03:57:20
2014-11-23T11:43:17
Python
UTF-8
Python
false
false
915
py
test_note.py
def test_over_object(check_puml): def f(c): foo = c.object('foo') bar = c.object('bar') with foo: c.note('blah') bar.func() check_puml(f, """ participant foo participant bar note over foo : blah foo -> bar : func() """) def test_multiple_line_text(check_puml):...
a7eb502d90f9a22dcc60e12859b3de4a9a805365
6dd5027d9f02b2c40c96fdea9796a4fba6ee7e46
/tests/polybench/gramschmidt.py
02aa5f77f250ca2047359b85d2c299df38b595c6
[ "Apache-2.0" ]
permissive
cornell-zhang/heterocl
fb4fd3c9cdbb7c7ccbdb2a8a09f47b436200c8f6
b794409e68e326cafa6c3eaec2e3560ff066e129
refs/heads/main
2023-07-22T16:33:57.900104
2023-07-19T19:58:13
2023-07-19T19:58:13
114,906,951
312
111
Apache-2.0
2023-07-19T19:58:15
2017-12-20T16:13:52
Python
UTF-8
Python
false
false
1,993
py
gramschmidt.py
# Copyright HeteroCL authors. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import os import heterocl as hcl def top_gramschmidt(M=30, N=20, dtype=hcl.Int(), target=None): hcl.init(dtype) # Rank N matrix A = hcl.placeholder((M, N), "A") # Orthogonal matrix Q = hcl.placeholder((M, N),...
c6263c299bc837778080b69e16a175a7f7130cfe
8d37f57da7c991381c9fc3d7d5d3c9f610ac10d4
/snoop/utils.py
478ab550c691e6fdc91acfd97b029f213d6b7fbc
[ "MIT" ]
permissive
alexmojaki/snoop
b91615844ed9f8c9f34071774ed4aaeb197d3a6a
98102bde87d092640828590927ef144d069dc56f
refs/heads/master
2023-08-21T11:59:00.497603
2022-12-22T13:48:56
2022-12-22T13:48:56
186,476,740
975
40
MIT
2022-12-22T13:47:56
2019-05-13T18:45:35
Python
UTF-8
Python
false
false
4,754
py
utils.py
import ast import inspect import os import sys from itertools import chain import six from cheap_repr import cheap_repr, try_register_repr PY34 = sys.version_info[:2] == (3, 4) NO_ASTTOKENS = PY34 PYPY = 'pypy' in sys.version.lower() NO_BIRDSEYE = NO_ASTTOKENS or PYPY pp_name_prefix = '__deep_pp_hidden__' file_read...
f1a39ac9463a6eabdd788af044c1f84a7666df58
75b050312d5367b8ebfd287d78e90b02421a389c
/rl/monte_carlo_no_es.py
245ccb2f237a97bd0d21009de483e799764d2127
[]
no_license
lazyprogrammer/machine_learning_examples
2fd0b0fc4da95a8a5940be62fca70bd44d148d43
ed82ac3cc886fc06060ed459bfd528a057256fbc
refs/heads/master
2023-09-01T07:17:11.476040
2023-08-21T06:57:28
2023-08-21T06:57:28
22,489,033
8,242
7,095
null
2023-06-29T11:51:47
2014-07-31T23:40:45
Python
UTF-8
Python
false
false
4,369
py
monte_carlo_no_es.py
# https://deeplearningcourses.com/c/artificial-intelligence-reinforcement-learning-in-python # https://www.udemy.com/artificial-intelligence-reinforcement-learning-in-python from __future__ import print_function, division from builtins import range # Note: you may need to update your version of future # sudo pip instal...
798f9fb9826a055d77d18f9b54facd85e393ddfb
1ad268817e4f048815df6e7b7669c45257a37b0e
/tests/core/test_builder.py
fa2d9300de56ab3326bee2e915f1d1e49de6dfdf
[ "MIT" ]
permissive
JDASoftwareGroup/kartothek
07c7f2fceb3dcee5cf8d0a6a93f4c1060eb0bcf4
1821ea5df60d4079d3911b3c2f17be11d8780e22
refs/heads/master
2023-05-26T11:43:04.781173
2021-12-10T09:15:19
2021-12-10T09:15:19
184,608,549
178
59
MIT
2023-05-15T21:56:50
2019-05-02T15:45:42
Python
UTF-8
Python
false
false
6,562
py
test_builder.py
# -*- coding: utf-8 -*- import pytest import simplejson import kartothek.core._zmsgpack as msgpack from kartothek.core.dataset import DatasetMetadata, DatasetMetadataBuilder from kartothek.core.index import ExplicitSecondaryIndex from kartothek.core.partition import Partition from kartothek.core.testing import TIME_...
53ef24dbc8d3b85143a9a67aa5e4ea081a236a19
7d232f51e2330a4f537c50ede9c6bc023d656fd4
/examples/python/auth/async_customized_auth_server.py
71dbe544841392fa18feddccc2268aaad47f2490
[ "BSD-3-Clause", "MPL-2.0", "Apache-2.0" ]
permissive
grpc/grpc
6975af3ba6f07a6fe965b875a0c09abf18999a52
e4d598ab64aa54f1da78c6ed6133b741742d11d4
refs/heads/master
2023-08-31T01:10:22.666618
2023-08-30T22:35:17
2023-08-30T22:35:17
27,729,880
42,330
13,022
Apache-2.0
2023-09-14T21:54:19
2014-12-08T18:58:53
C++
UTF-8
Python
false
false
3,498
py
async_customized_auth_server.py
# Copyright 2020 The gRPC Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ef9410a8e2034eb279f228925cefce7226108e2b
d5e1591a6b96ec0e35ea223269da38b15fffe600
/tests/web/test_wsgi_application_yield.py
db7a2277657dfca522a77ba2e376d9b3e5a1dc04
[ "MIT" ]
permissive
circuits/circuits
630cfa0fa13b19f84bfb96705912f3f6a26c69e1
87fb5a3380069d907d2ac500d13418b1abdeb2f2
refs/heads/master
2023-07-31T07:17:06.706151
2023-02-07T19:39:20
2023-02-07T19:39:20
12,450,349
310
80
NOASSERTION
2023-01-06T00:08:37
2013-08-29T03:05:42
Python
UTF-8
Python
false
false
432
py
test_wsgi_application_yield.py
#!/usr/bin/env python from circuits.web import Controller from circuits.web.wsgi import Application from .helpers import urlopen class Root(Controller): def index(self): yield "Hello " yield "World!" application = Application() + Root() def test(webapp): f = urlopen(webapp.server.http.ba...
a0d0767b0270913d16b01e0c44b158d56b80ac08
a63d907ad63ba6705420a6fb2788196d1bd3763c
/src/datamgr/datamanager/dataquality/sampling_consume.py
1c80a2f813b9684723bb28c1c40cc74a9c5b3dcf
[ "MIT" ]
permissive
Tencent/bk-base
a38461072811667dc2880a13a5232004fe771a4b
6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2
refs/heads/master
2022-07-30T04:24:53.370661
2022-04-02T10:30:55
2022-04-02T10:30:55
381,257,882
101
51
NOASSERTION
2022-04-02T10:30:56
2021-06-29T06:10:01
Python
UTF-8
Python
false
false
3,008
py
sampling_consume.py
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ---------------------------------------------...
803e89f64d2711a04a5b5486392d1941f03b1a07
bb3b304edd0c41247ea405ad9614417defc75076
/pythonz/commands/help.py
bafae83cf59d23ea2140875bf3744c10e47af3d6
[ "MIT" ]
permissive
saghul/pythonz
9f2fbc7e1971de06ba92ae9ab1daddb5ba416a98
b22abb33b106e599c8ac56c8e82e067548bf0e3d
refs/heads/master
2023-08-27T15:09:20.312374
2022-07-08T08:36:08
2022-12-12T07:05:55
3,885,342
371
48
MIT
2022-12-12T07:05:56
2012-03-31T12:31:20
Python
UTF-8
Python
false
false
902
py
help.py
from pythonz.commands import Command, command_map from pythonz.log import logger class HelpCommand(Command): name = "help" usage = "%prog [COMMAND]" summary = "Show available commands" def run_command(self, options, args): if args: command = args[0] if command not in ...
2c6280f88fc8727893c0f8de73f842e3f5be991c
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/Scaleform/daapi/view/lobby/prb_windows/squad_action_button_state_vo.py
cd8d2fe4053ae3656c257b5b9d7089823a9e53db
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
1,171
py
squad_action_button_state_vo.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/prb_windows/squad_action_button_state_vo.py from gui.Scaleform.daapi.view.lobby.rally.action_button_state_vo import ActionButtonStateVO from gui.Scaleform.locale.CYBERSPORT import CYBERSPORT from gui.p...
833911069c17c37df7529bce9de23c4f30db48b0
c2d48caa5db7e746a38beca625406fcf47379d3c
/src/olympia/devhub/permissions.py
ac5610f605e16ee982d179cd09fbf8cc9de08331
[]
permissive
mozilla/addons-server
1f6269ec0a4aa5a0142a5f81978ef674daf213a7
e0f043bca8a64478e2ba62f877c9dc28620be22f
refs/heads/master
2023-09-01T09:34:41.867534
2023-09-01T07:21:22
2023-09-01T07:21:22
16,416,867
920
590
BSD-3-Clause
2023-09-14T16:15:01
2014-01-31T18:44:15
Python
UTF-8
Python
false
false
836
py
permissions.py
from rest_framework.permissions import BasePermission from olympia.users.utils import RestrictionChecker class IsSubmissionAllowedFor(BasePermission): """ Like is_submission_allowed_for_request, but in Permission form for use in the API. If the client is disallowed, a message property specifiying the ...
09bc0e8435b404b6c98bbdf7816c4c931ae8cb67
faf7ed9d56d408a261a69fcc9eb3b5f9c6e38873
/tests/test_customers.py
1c849b039cc5b892120765869a0f6da5155d6639
[ "Apache-2.0" ]
permissive
alerta/alerta
53eaf5e491da46a8faae37824eebd02e92b25dac
5b572c3aa9b086f02e366e3f8a2173174b0c5a87
refs/heads/master
2023-08-19T19:21:55.272638
2023-06-30T08:38:25
2023-06-30T08:38:25
3,877,327
1,468
282
Apache-2.0
2023-09-04T17:32:20
2012-03-30T14:19:34
Python
UTF-8
Python
false
false
17,393
py
test_customers.py
import json import unittest from flask import g from alerta.app import create_app, db, plugins from alerta.exceptions import ApiError from alerta.models.enums import Scope from alerta.models.key import ApiKey from alerta.utils.api import assign_customer class CustomersTestCase(unittest.TestCase): def setUp(sel...
b3066ec98a7d68dcf0ac3152db9d52dd302f3a02
b20dcf585fcda752d567a17fe1e0eb3b3dcdbf81
/tllib/vision/__init__.py
89b87c7d98f1b40109b810d9df57d70ec10cd165
[ "MIT" ]
permissive
thuml/Transfer-Learning-Library
1dc1402025ac842e361221f4fe1ed72bc36e9eac
ed03f0b11c16062e7faacb547f6eb9f83ce5f15e
refs/heads/master
2023-08-18T00:46:42.764139
2023-08-09T02:31:20
2023-08-09T02:31:20
240,494,185
2,786
527
MIT
2023-05-04T09:53:41
2020-02-14T11:33:06
Python
UTF-8
Python
false
false
47
py
__init__.py
__all__ = ['datasets', 'models', 'transforms']
424d0f08ab3ece2901ad0cbe6def858d1750956b
f779e1efe1f9b737dcb26fe712ee5c4392df30c0
/cmake/translation_tmpl.py
1ec22c6a5bbaa551c531bf80d186c96fd514eeed
[ "Apache-2.0", "GPL-3.0-or-later", "BSD-3-Clause", "BSL-1.0", "GPL-2.0-or-later", "MIT", "LicenseRef-scancode-public-domain", "Autoconf-exception-3.0", "FSFUL" ]
permissive
znc/znc
0ef033e8271e4788ccb8a92b7015696eb527a27e
41032f895581c541fdbf6b1847e46699ae22aa77
refs/heads/master
2023-09-02T23:13:04.457263
2023-08-13T10:31:46
2023-08-13T10:31:46
465,681
1,552
439
Apache-2.0
2023-09-10T21:17:08
2010-01-09T23:44:05
C++
UTF-8
Python
false
false
1,953
py
translation_tmpl.py
#!/usr/bin/env python3 # # Copyright (C) 2004-2023 ZNC, see the NOTICE file for details. # # 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 # #...
95b31fcd07d7549c1ce9fb1dae53453b456a0cb0
b8441dc1987be9e64fa3081d456b2a3060ec44d1
/mars/services/scheduling/supervisor/tests/test_assigner.py
37660694980af2d690b0c8cb3077d6b79d538f6f
[ "BSD-3-Clause", "MIT", "ISC", "Apache-2.0", "CC0-1.0", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mars-project/mars
f99fefbce999d58a9249bc72046787a9731c9c73
c36c53fa22e10ef9477d9c454401a2f281375f31
refs/heads/master
2023-07-23T00:23:55.133015
2023-07-03T11:44:54
2023-07-03T11:44:54
160,543,708
2,704
362
Apache-2.0
2023-09-11T07:57:35
2018-12-05T16:04:03
Python
UTF-8
Python
false
false
13,613
py
test_assigner.py
# Copyright 1999-2021 Alibaba Group Holding 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 a...
e01582bcc41605b5131008bef678ec2967aa6540
1e6d68e3bfe8cdc54cec1f28317eb4419ef44afa
/09_Deep_Learning_Prediction/ch09_09_RNN_StockPrediction.py
4d84aa211bd9b1b5deefa3eff88b654a997226a6
[]
no_license
INVESTAR/StockAnalysisInPython
5018dd54937050e0c19a9a0d95f5b6bd8f3f9ba5
0077b3d7ad2d195b914eb2e6d4d831928f81504f
refs/heads/master
2023-02-24T23:20:53.570309
2023-01-23T14:25:51
2023-01-23T14:25:51
250,962,342
484
462
null
2023-02-16T01:32:14
2020-03-29T05:40:59
Python
UTF-8
Python
false
false
2,165
py
ch09_09_RNN_StockPrediction.py
from tensorflow.keras import Sequential from tensorflow.keras.layers import Dense, LSTM, Dropout import numpy as np import matplotlib.pyplot as plt from Investar import Analyzer mk = Analyzer.MarketDB() raw_df = mk.get_daily_price('삼성전자', '2018-05-04', '2020-01-22') window_size = 10 data_size = 5 def MinMaxScaler(d...
a1f1de464dfada8927f0f12d5c4361cdc2016513
4b27890b4ce6e7fd0791eeba09e9ddd6bd23e658
/src/core/tests/test_distr_1d.py
53e0586c89d70a14a5158890393f8dc5bc96819f
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla" ]
permissive
mitsuba-renderer/mitsuba3
f7008bd9056c8f4c2c5f93c3219e8330294a33b7
91b0b7e7c2732a131fac9149bf1db81429e946b0
refs/heads/master
2023-08-18T23:13:51.877647
2023-08-17T09:44:00
2023-08-18T13:08:41
362,484,572
1,510
171
NOASSERTION
2023-09-14T15:28:50
2021-04-28T13:50:41
C++
UTF-8
Python
false
false
9,356
py
test_distr_1d.py
import pytest import drjit as dr import mitsuba as mi def test01_discr_empty(variants_all_backends_once): # Test that operations involving the empty distribution throw d = mi.DiscreteDistribution() assert d.empty() with pytest.raises(RuntimeError) as excinfo: d.update() assert 'empty dist...
71e10455ae54439d20b800a67456ac011dd39f8f
0eb78414767c4dd1d49127f44b1204abe08115a6
/task_utils.py
20387ae9def897757642de2af0a26311f2551acb
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
spcl/ncc
9b688bb80d247d6b718fda2bec3f07e2257a1459
45c3619ba193585579c7feedbe046bac3ff9e7b5
refs/heads/master
2023-08-29T00:35:57.669037
2021-08-12T22:21:37
2021-08-12T22:21:37
138,141,023
201
60
BSD-3-Clause
2023-08-14T22:15:12
2018-06-21T08:20:41
Python
UTF-8
Python
false
false
19,289
py
task_utils.py
# NCC: Neural Code Comprehension # https://github.com/spcl/ncc # Copyright 2018 ETH Zurich # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the follo # wing conditions are met: # 1. Redistributions of source code must retain the abov...
b553724ff900e8847dcc5feaaf4456191ad6244d
1f399edf85d995443d01f66d77eca0723886d0ff
/misc/config_tools/scenario_config/validator.py
dabb4583e751b48aafa8cfbc064e1b5ffa06d757
[ "BSD-3-Clause" ]
permissive
projectacrn/acrn-hypervisor
f9c5864d54929a5d2fa36b5e78c08f19b46b8f98
390740aa1b1e9d62c51f8e3afa0c29e07e43fa23
refs/heads/master
2023-08-18T05:07:01.310327
2023-08-11T07:49:36
2023-08-16T13:20:27
123,983,554
1,059
686
BSD-3-Clause
2023-09-14T09:51:10
2018-03-05T21:52:25
C
UTF-8
Python
false
false
12,055
py
validator.py
#!/usr/bin/env python3 # # Copyright (C) 2022 Intel Corporation. # # SPDX-License-Identifier: BSD-3-Clause # import sys, os import argparse import logging from copy import copy from collections import namedtuple import re try: import elementpath import elementpath_overlay from elementpath.xpath_context im...
05a3952d5c5a71e5c9ebbaa05a893f5a5553c07c
6729b201b2bd3cc6f3994d781826bd2c45dd38ab
/benchmarks/expand4_sage.py
961f5d3b5dc2ecb088980cf6a04627b158cda98c
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "LGPL-3.0-or-later", "LGPL-2.0-or-later", "Apache-2.0" ]
permissive
symengine/symengine.py
b700f1d8cc261c1f0bc7ca7802b32cd59fa9e2bb
8d5d63c7842ca92f7f3c5436f9825ace984e4af0
refs/heads/master
2023-08-19T00:27:14.815140
2023-08-16T15:41:32
2023-08-16T15:41:32
41,312,700
156
64
MIT
2023-08-16T15:41:34
2015-08-24T15:56:54
Cython
UTF-8
Python
false
false
283
py
expand4_sage.py
print("import...") from timeit import default_timer as clock from sage.all import var var("x") e = 1 print("constructing expression...") for i in range(1, 351): e *= (i+x)**3 print("running benchmark...") t1 = clock() f = e.expand() t2 = clock() print("Total time:", t2-t1, "s")
a078760be79de7d51eccab6ce2f55a16cddd364c
09a7fa80d420634848b5e6af7b59353afd8c726b
/src/main/resources/resource/Esp8266/Esp8266.py
c6c474f858c2012666cf0b9e41adcec2f46a42ec
[ "Apache-2.0", "CC-BY-2.5" ]
permissive
MyRobotLab/myrobotlab
cf789956d9f97a98eead44faf7a8b61f70348dc3
0ecdc681b4928ab65649404779c095d352dd96b1
refs/heads/develop
2023-09-04T10:57:19.041683
2023-08-30T14:04:44
2023-08-30T14:04:44
18,051,302
213
114
Apache-2.0
2023-09-07T14:14:58
2014-03-24T03:59:27
Java
UTF-8
Python
false
false
64
py
Esp8266.py
# start the service esp8266 = runtime.start("esp8266","Esp8266")
efea785d7c01c6fcfaa6710ba0f811cffaf85620
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/pyi/resolve/canonicalName/pkg/__init__.pyi
449a68a9b944e0fa4f45f4b0f99dfb29e557dee6
[ "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
64
pyi
__init__.pyi
from .mod import Exported as Exported from .mod import Internal
58600bdc7b37d038d99e1c1a964beb4765b473c2
85ba0a1df162642fe5ca7e14e06f60e5ae3f6d00
/searching/binary-search-recursive-pointers.py
ae0f5514c1d2d45560101b218477666e757fbf98
[ "MIT" ]
permissive
ivanmmarkovic/Problem-Solving-with-Algorithms-and-Data-Structures-using-Python
ad478564167b7f3f8eed607cb23bd0190f4d81f8
1a6e8fd5b93c9fe87231bef57bd92b81a40ae38d
refs/heads/master
2023-02-08T10:49:18.390691
2023-01-23T22:22:58
2023-01-23T22:22:58
157,221,493
138
42
null
null
null
null
UTF-8
Python
false
false
763
py
binary-search-recursive-pointers.py
def binary_search(nums: list, target: int) -> bool: def binary_search_helper(numbers: list, element, start: int, end: int) -> bool: if start > end: return False else: midpoint: int = start + (end - start) // 2 if nums[midpoint] == element: return...
bd279b164b420356afad04db2aa5a76ec3d519ab
8d44e796eaf0c8e11bbc2a27ef093e97a25b6f4a
/haystack/modeling/data_handler/data_silo.py
c9db096ade2e50fbf0b5e571304a568f185a2cc2
[ "Apache-2.0" ]
permissive
deepset-ai/haystack
caa5287051d1771395ea624b58097000825bad81
5f1256ac7e5734c2ea481e72cb7e02c34baf8c43
refs/heads/main
2023-09-01T02:41:23.490526
2023-08-31T15:33:12
2023-08-31T15:33:12
221,654,678
10,599
1,558
Apache-2.0
2023-09-14T17:09:42
2019-11-14T09:05:28
Python
UTF-8
Python
false
false
38,558
py
data_silo.py
from typing import TYPE_CHECKING, Optional, List, Tuple, Dict, Union import hashlib import json import logging import random from itertools import groupby from pathlib import Path import numpy as np from tqdm import tqdm import torch from torch.utils.data import ConcatDataset, Dataset from torch.utils.data.distributed...
37ccd94db797e07bb9de9af164019bd8a3905717
1dbbb05b30d27c6419b9f34eea3b9a47f92582a0
/parlai/tasks/wizard_of_internet/mutators.py
b44668c641a358488dc358eb5051eca33600ebc7
[ "CC-BY-4.0", "MIT" ]
permissive
facebookresearch/ParlAI
815334323d0ebef51bf9837336fe3eef6fe1655d
e1d899edfb92471552bae153f59ad30aa7fca468
refs/heads/main
2023-08-31T22:20:45.918129
2023-08-14T19:39:56
2023-08-14T19:39:56
89,266,735
10,943
2,395
MIT
2023-09-13T23:07:40
2017-04-24T17:10:44
Python
UTF-8
Python
false
false
9,597
py
mutators.py
#!/usr/bin/env python3 # 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 torch from parlai.core.mutators import register_mutator, MessageMutator, ManyEpisodeMutator from typing import Op...
b93213356e45cbe9114955d7e4bb102422f27123
eda6e7b8f399dedcdb960f4b48a2134b978f8d83
/examples/03_faithful/plot-01-demo=vb_algs-model=mix_gauss.py
c3a87475dbcd2de50d9cde6cadc7119db19cd291
[ "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
6,893
py
plot-01-demo=vb_algs-model=mix_gauss.py
""" ============================================== Variational training for Mixtures of Gaussians ============================================== Showcase of different models and algorithms applied to same dataset. In this example, we show how bnpy makes it easy to apply different models and algorithms to the same dat...