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
7c769ad6cf9a73b1cea6417113b4bac867f2f54e
9abd182d02355ddf0b79afd4a35f7127a4a66f7a
/scripts/detection/center_net/fit_center_net.py
812087e8e36d4ef40c3728af7c087df56b5a10cd
[ "Apache-2.0" ]
permissive
dmlc/gluon-cv
e1303086419a5733661d0fcb9095c09d4f2382ad
567775619f3b97d47e7c360748912a4fd883ff52
refs/heads/master
2023-07-19T12:02:36.824294
2023-01-19T00:37:33
2023-01-19T00:37:33
122,896,249
6,064
1,458
Apache-2.0
2023-01-19T00:37:35
2018-02-26T01:33:21
Python
UTF-8
Python
false
false
961
py
fit_center_net.py
import logging import gluoncv as gcv gcv.utils.check_version('0.8.0') from gluoncv.auto.estimators import CenterNetEstimator from gluoncv.auto.tasks.utils import config_to_nested from d8.object_detection import Dataset if __name__ == '__main__': # specify hyperparameters config = { 'dataset': 'sheep...
5300d1315b01eb5a43c6d3888c93cd44bec04d38
2d0bada349646b801a69c542407279cc7bc25013
/src/vai_optimizer/example/pruning/tensorflow_v1/mnist_pruning.py
8044d1c9698868f6f913dd1e827ce1f26a1e858d
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSD-3-Clause-Open-MPI", "LicenseRef-scancode-free-unknown", "Libtool-exception", "GCC-exception-3.1", "LicenseRef-scancode-mit-old-style", "OFL-1.1", "JSON", "LGPL-2.1-only", "LGPL-2.0-or-later", "ICU", "LicenseRef-scancode-other-permissive...
permissive
Xilinx/Vitis-AI
31e664f7adff0958bb7d149883ab9c231efb3541
f74ddc6ed086ba949b791626638717e21505dba2
refs/heads/master
2023-08-31T02:44:51.029166
2023-07-27T06:50:28
2023-07-27T06:50:28
215,649,623
1,283
683
Apache-2.0
2023-08-17T09:24:55
2019-10-16T21:41:54
Python
UTF-8
Python
false
false
2,974
py
mnist_pruning.py
# MIT License # # Copyright (c) 2023 Advanced Micro Devices, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy...
96ad443149a4eefd210144a9bcc868230c727c10
501887e82173e138683aff04fc579618786fd795
/seldom/utils/diff.py
2fdd83d6a5373134b84a04fa863b6825707d7507
[ "Apache-2.0" ]
permissive
SeldomQA/seldom
a66e6975f0e09e341d8adb6f89b2bf5a69458cd5
b3ad3da2ecfd5b3c56520179e431f9b34ba47c69
refs/heads/master
2023-09-02T18:48:32.656208
2023-09-02T12:47:53
2023-09-02T12:47:53
39,141,541
544
198
Apache-2.0
2023-08-08T16:59:37
2015-07-15T14:29:33
Python
UTF-8
Python
false
false
2,327
py
diff.py
""" diff file """ from typing import Any from seldom.logging import log class AssertInfo: warning = [] error = [] def diff_json(response_data: Any, assert_data: Any, exclude: list = None) -> None: """ Compare the JSON data format """ if exclude is None: exclude = [] if isinstanc...
4d683ad95c3c40e480755d7d82edb267c2508ffc
07c27d72f10dbf64c11b6d6cae83d4dc757a2384
/pbxproj/pbxcli/pbxproj_show.py
e263752402e0366665b939ec4bbd102f29c7b019
[ "MIT" ]
permissive
kronenthaler/mod-pbxproj
a481cded65a4f082338c1c8b290aa3382124b6ce
e0c42005cdcee3b10522ba5709f4228ec10c049c
refs/heads/master
2023-06-09T03:12:32.120613
2022-10-04T12:14:11
2022-10-04T12:14:11
8,949,989
1,089
278
MIT
2023-01-09T10:50:43
2013-03-22T10:50:15
Python
UTF-8
Python
false
false
3,870
py
pbxproj_show.py
""" usage: pbxproj show [options] <project> pbxproj show [options] (--target <target>...) <project> [(-s | --source-files) | (-H | --header-files) | (-r | --resource-files) | ...
bd1ab8435f0e785c554c40b788e8947b6b69bf12
bb381602af72b83a38b381a6518c4d01af3c8409
/robosuite/models/objects/object_groups.py
eb1100920fbb4a49db4c30bef139870f215dac30
[ "Apache-2.0", "MIT" ]
permissive
ARISE-Initiative/robosuite
64b8daeec1b2aba26f87300b0fbbde1ffe44a6a7
eb01e1ffa46f1af0a3aa3ac363d5e63097a6cbcc
refs/heads/master
2023-08-21T20:04:15.283656
2023-07-28T08:22:40
2023-07-28T08:22:40
154,626,012
670
247
NOASSERTION
2023-09-14T02:34:46
2018-10-25T07:11:07
Python
UTF-8
Python
false
false
1,533
py
object_groups.py
class ObjectGroup: """ An abstraction that encompasses a group of objects that interact together in a meaningful way name (str): Name of this object group. This will be prepended to all objects generated by this group. """ def __init__(self, name): # Store internal variables self.na...
88baf23fb43679c1a3f4e7734143b248d83b6696
0869d7edac80e8aebe951682a2cc311a083eade3
/Python/tdw/add_ons/physics_audio_recorder.py
29955bf6493b46199d4f5caf478d09da16668288
[ "BSD-2-Clause" ]
permissive
threedworld-mit/tdw
7d5b4453832647733ff91ad7a7ce7ec2320454c1
9df96fba455b327bb360d8dd5886d8754046c690
refs/heads/master
2023-09-01T11:45:28.132298
2023-08-31T16:13:30
2023-08-31T16:13:30
245,492,977
427
75
BSD-2-Clause
2023-09-14T17:36:12
2020-03-06T18:42:09
Python
UTF-8
Python
false
false
4,773
py
physics_audio_recorder.py
from typing import List, Union from pathlib import Path import numpy as np from tdw.output_data import OutputData, AudioSources, Rigidbodies, Transforms from tdw.audio_utils import AudioUtils from tdw.add_ons.add_on import AddOn class PhysicsAudioRecorder(AddOn): """ Record audio generated by physics events. ...
4ae482c425e81de3583c15c3726dccc8dcb800de
87bcc79d3742213175de9d2c81a830a942ef8cd9
/tools/utils.py
b07beb9bc9db39a46d6803d06839206df543a829
[ "Apache-2.0" ]
permissive
saltstack/salt-bootstrap
4840efe648e99c19820eebb478e565aa5bda3e9a
61709aac2b077372e6166e6f1e78191d8bcc5eea
refs/heads/develop
2023-09-01T20:32:10.115517
2023-08-10T21:45:00
2023-08-11T17:09:50
6,910,286
713
554
NOASSERTION
2023-09-11T20:13:58
2012-11-28T21:30:33
Shell
UTF-8
Python
false
false
2,547
py
utils.py
# pylint: disable=resource-leakage,broad-except,3rd-party-module-not-gated from __future__ import annotations import os import pathlib from ptscripts import Context from rich.progress import BarColumn from rich.progress import Column from rich.progress import DownloadColumn from rich.progress import Progress from ric...
dff7e3e1e28b647a8ae43d3fe3f98d55b9b54bca
e885a46c240a8579d01489787c9b03f4e6e0f0a2
/sd_material_ui/CollapseTransition.py
43bed6e60397a924ce0d0e3a1a7cee24fd3928b0
[ "MIT" ]
permissive
StratoDem/sd-material-ui
4b5212ab6c037fbbef3a51aec05ec2e041dda396
4c6332946092685ce9a39b46f66704c6de3f5139
refs/heads/master
2023-01-30T14:37:35.403181
2021-12-21T18:27:13
2021-12-21T18:27:13
112,852,873
189
29
MIT
2023-01-23T10:41:30
2017-12-02T15:25:33
Python
UTF-8
Python
false
false
1,711
py
CollapseTransition.py
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args class CollapseTransition(Component): """A CollapseTransition component. Keyword arguments: - children (a list of or a singular dash component, string or number; optional): The contents of the trans...
1aebf7a496b75d24ae5dad7fe8ce779d22572f34
bad44a92fb338260f9c077689d7fa5472526c3fe
/models/tensorflow/lstm.py
c51f80aa034d95444562fa87e2e9c061683a4156
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
microsoft/nnfusion
ebc4c06331b8e93dbf5e176e5ecd3382e322ff21
bd4f6feed217a43c9ee9be16f02fa8529953579a
refs/heads/main
2023-08-25T17:41:37.517769
2022-09-16T05:59:01
2022-09-16T05:59:01
252,069,995
872
157
MIT
2023-07-19T03:06:21
2020-04-01T04:15:38
C++
UTF-8
Python
false
false
3,665
py
lstm.py
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. from __future__ import absolute_import from __future__ import division from __future__ import print_function import time import numpy as np import sys import tensorflow as tf from tensorflow.python.client import timeline from tensorflow.python.o...
e0190b261d721ab2c642b26544a26353d27ace11
12f0bd77926127cdacc2452d6f9cfed91806b2fe
/idaes/apps/caprese/examples/cstr_nmpc.py
c388d520361a5ee44d2a6f91a0306ac8f42a83a1
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
IDAES/idaes-pse
e03d2583ae1ba968a7099f9f439fd8c3efa12904
deacf4c422bc9e50cb347e11a8cbfa0195bd4274
refs/heads/main
2023-08-16T19:13:00.355572
2023-08-04T04:19:29
2023-08-04T04:19:29
168,622,088
173
227
NOASSERTION
2023-09-11T16:04:55
2019-02-01T01:12:51
Python
UTF-8
Python
false
false
8,863
py
cstr_nmpc.py
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES). # # Copyright (c) 2018-2023 by the software own...
1ea22e3efea4cb007026337c5ec7d719406138b6
cb6f6c0facd81317508fec7b7da160c111446113
/tests/test_internal_db.py
b41cabb431bf9c5f0675396cb5493e8b35fa1f02
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
simonw/datasette
d3c96e9eb2538abd7a87103224d3c654c6965cfe
fd083e37ec53e7e625111168d324a572344a3b19
refs/heads/main
2023-09-04T04:58:07.794317
2023-08-31T23:06:30
2023-08-31T23:06:30
107,914,493
8,274
628
Apache-2.0
2023-09-14T13:27:41
2017-10-23T00:39:03
Python
UTF-8
Python
false
false
1,771
py
test_internal_db.py
import pytest # ensure refresh_schemas() gets called before interacting with internal_db async def ensure_internal(ds_client): await ds_client.get("/fixtures.json?sql=select+1") return ds_client.ds.get_internal_database() @pytest.mark.asyncio async def test_internal_databases(ds_client): internal_db = a...
a2421ef665935028f7360e8eaa68a188210daf99
578db86c51d44ebddd0dc7b1738985b3dc69eb74
/corehq/apps/reports/generic.py
88d134894ca7897f3723312cf15cbf3852c2af01
[ "BSD-3-Clause" ]
permissive
dimagi/commcare-hq
a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b
e7391ddae1af1dbf118211ecb52c83fc508aa656
refs/heads/master
2023-08-16T22:38:27.853437
2023-08-16T19:07:19
2023-08-16T19:07:19
247,278
499
203
BSD-3-Clause
2023-09-14T19:03:24
2009-07-09T17:00:07
Python
UTF-8
Python
false
false
42,263
py
generic.py
import datetime import io import json import re from itertools import chain from django.http import ( Http404, HttpResponse, HttpResponseRedirect, JsonResponse, ) from django.shortcuts import render from django.template.loader import render_to_string from django.urls import NoReverseMatch from django.u...
8b9d0e913e8a4209d804cc32a71af403bbe0775f
1dbbb05b30d27c6419b9f34eea3b9a47f92582a0
/parlai/tasks/multidogo/build.py
e8adedc05b8e2d3d6f2457179753a4f571f787f9
[ "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
12,446
py
build.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 parlai.core.build_data as build_data from parlai.core.build_data import DownloadableFile import csv from itertoo...
4e3a433b683459515a4760647a7a7deca26889ac
6c3259af340d28cdfe7aad63cfb1fb6bc81fb3da
/docs/conf.py
668bfaeeb471bbfb34d4713d907f8d22e714770b
[ "BSD-3-Clause" ]
permissive
pytest-dev/pytest-django
df91bfb5536d6fb0a94cff647c4eb68c005c9e0d
53373573f905ec5e0ec5786f49efdcdca5ae41fd
refs/heads/master
2023-08-31T08:33:58.355321
2023-04-05T08:15:33
2023-04-05T08:15:33
2,484,397
1,169
344
NOASSERTION
2023-08-05T14:24:05
2011-09-29T19:35:55
Python
UTF-8
Python
false
false
1,634
py
conf.py
import os import sys import datetime # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.append(os.path.abspath(os.path.joi...
fdcac0a733c57300abcc2b39aae1e84de5876c8c
7fe5cb99188c7270f726b1145fc356fd2922df9d
/geoapi-java-python/src/main/python/opengis/bridge/java/referencing.py
e21992ff8a312ea341a4d4a6360f75724c084673
[ "Apache-2.0" ]
permissive
opengeospatial/geoapi
eedcf2d3259284fc614f7fa132c77fcef67d7ecc
7a0872373e4ad70039b5ec9be2f086081fb5c746
refs/heads/master
2023-08-17T23:37:23.874101
2023-08-10T20:02:27
2023-08-10T20:02:27
27,879,839
111
33
NOASSERTION
2021-06-28T08:08:29
2014-12-11T16:13:54
Java
UTF-8
Python
false
false
2,870
py
referencing.py
# # GeoAPI - Programming interfaces for OGC/ISO standards # Copyright © 2019-2023 Open Geospatial Consortium, Inc. # http://www.geoapi.org # # # This module requires jpy module to be installed on the local machine. # That Java-Python module is documented at http://jpy.readthedocs.io/. # In addition, the PYTHO...
b81f9a52fd7a3ed1440d96e21d5989270e7ad4b6
6bb45c5892b4c9692dcc44116fb73dc9e7ab90ff
/introduction_to_applying_machine_learning/visual_object_detection/src/prepare_RecordIO.py
ca3f183363b220fe821e17ffab2242c30d1a5a6f
[ "Apache-2.0", "BSD-2-Clause" ]
permissive
aws/amazon-sagemaker-examples
8359afe544e873662bda5b8d2b07399c437213c9
43dae4b28531cde167598f104f582168b0a4141f
refs/heads/main
2023-08-26T04:42:52.342776
2023-08-25T14:37:19
2023-08-25T14:37:19
107,937,815
4,797
3,519
Apache-2.0
2023-09-14T19:47:03
2017-10-23T05:55:22
Jupyter Notebook
UTF-8
Python
false
false
5,847
py
prepare_RecordIO.py
import json import os import random import argparse import numpy as np from collections import defaultdict from pathlib import Path def write_line(img_path, width, height, boxes, ids, idx): """Create a line for each image with annotations, width, height and image name.""" # for header, we use minimal length 2...
0ba6a124c275c4e35a3a32d60fcf7db07a7d520e
ff7afe98eaaf7b5b0b7d77ea37dacb0e355fc141
/test/test_nonparametric.py
bf40d1730201cd7f216b3594165bbd7c23d8fd4d
[ "MIT" ]
permissive
jameschapman19/cca_zoo
d433c14037ec22ce464531a2a523899d76c3a139
084901cf1a0d484d0d8c6a30775971569b5b8da0
refs/heads/main
2023-08-08T00:39:16.412081
2023-08-07T12:31:07
2023-08-07T12:31:07
303,801,602
166
34
MIT
2023-09-14T11:34:24
2020-10-13T18:58:42
Python
UTF-8
Python
false
false
2,694
py
test_nonparametric.py
""" Test the kernel methods """ import numpy as np from cca_zoo.linear import GCCA, MCCA, TCCA from cca_zoo.nonparametric import KCCA, KGCCA, KTCCA, NCCA np.random.seed(1) X = np.random.normal(size=(100, 10)) Y = np.random.normal(size=(100, 10)) Z = np.random.normal(size=(100, 10)) # test that MCCA is the same as...
3e97b33167652834528854352a033fcb2c8ea592
8c0b804f1cc8cbf2f8788727df22a2cc149f7b5c
/gala/potential/scf/__init__.py
34778fe9caa2cf4084b70d98e7b769701342661a
[ "MIT" ]
permissive
adrn/gala
579cc5a4ecb22df118e1c8a2322a46e935825054
f62e1a6ae7a8466a4db5c8407471b524cf085637
refs/heads/main
2023-09-04T11:42:07.278388
2023-08-18T18:04:35
2023-08-18T18:04:35
17,577,779
115
89
MIT
2023-09-05T11:40:10
2014-03-10T00:56:18
Python
UTF-8
Python
false
false
198
py
__init__.py
""" Implementation of the Self-Consistent Field (SCF) expansion method. """ from .core import compute_coeffs, compute_coeffs_discrete from ._bfe_class import SCFPotential, SCFInterpolatedPotential
98beb624c8b780855cbd25aea50fcbc7e78a277b
55defa28b5bd395e7ead2f9ca848f378ee2c8b13
/python/tvm/contrib/hexagon/build.py
ef081f2d79e3eabffed031212549eb4631c2e215
[ "Apache-2.0", "BSD-3-Clause", "Zlib", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "BSD-2-Clause" ]
permissive
neo-ai/tvm
456d48c8d80bd7190c91b488b8f9d6cf22918706
da529bf421fcfddd914b41bbe9bf9d5863671266
refs/heads/dev
2023-03-06T03:28:18.303189
2022-05-09T04:25:16
2022-05-09T04:25:16
167,632,700
101
43
Apache-2.0
2023-02-17T20:49:09
2019-01-26T00:35:54
Python
UTF-8
Python
false
false
10,516
py
build.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...
30a84c439cd38adac02774ed4ebe9269a4ce48ab
7f16d69f3f66ce1973ee0325924685bd8cfbfb51
/assignment1/q3_sgd.py
5b4d7af1ee51afea6a156e795786f9934087c3d5
[ "MIT" ]
permissive
bogatyy/cs224d
f9c894d1cfb23b1e75ab1cc797429a3a21660300
cfa36b582f681d425ae373baf61a6a1940170c9a
refs/heads/master
2021-07-11T22:11:04.427078
2020-06-11T10:38:57
2020-06-11T10:38:57
68,249,301
256
117
null
2019-03-01T02:14:44
2016-09-14T22:44:17
Python
UTF-8
Python
false
false
4,021
py
q3_sgd.py
# Save parameters every a few SGD iterations as fail-safe SAVE_PARAMS_EVERY = 1000 import glob import random import numpy as np import os.path as op import cPickle as pickle def load_saved_params(): """ A helper function that loads previously saved parameters and resets iteration start """ st = 0 for f in...
1b04a603cf29fa41db15d18210b3727c19853543
9704880cedb299fff566cb0a2b8996abedf945fe
/Data Structures and Algorithms Nanodegree/P1 - Unscramble Computer Science Problems/Task2.py
4f61bd2e1c50398d36a4b15981dd3efac493febd
[ "MIT" ]
permissive
manishbisht/Udacity
b25eeaf0267bfedeac81b01b673d533a0e35952b
b53690e508c2ae3fa04b56393e6c8eea3c60f940
refs/heads/master
2023-03-07T03:02:58.993961
2022-09-08T14:39:09
2022-09-08T14:39:09
63,041,835
173
143
MIT
2023-03-03T19:30:26
2016-07-11T06:19:30
JavaScript
UTF-8
Python
false
false
1,119
py
Task2.py
""" Read file into texts and calls. It's ok if you don't understand how to read files """ import csv with open('texts.csv', 'r') as f: reader = csv.reader(f) texts = list(reader) with open('calls.csv', 'r') as f: reader = csv.reader(f) calls = list(reader) """ TASK 2: Which telephone number spent the ...
552e148741f844f395bc8cc5e53a4611f4a0dd7a
40062e1545591a1a93c04e0ea084c48405c665fa
/examples/python/basic/benchmarks.py
a895522eedeada476af51e1f120ca1d3d3ea65c0
[ "MIT" ]
permissive
neka-nat/cupoch
ad1f55eba2f4fb810ff2cd3af620f11a90aef69a
122b69b5312885734c224f9deef813e2b1463017
refs/heads/master
2023-07-09T00:08:50.033219
2023-06-30T07:53:53
2023-06-30T07:53:53
216,847,240
739
103
MIT
2023-04-04T15:30:55
2019-10-22T15:26:24
C++
UTF-8
Python
false
false
2,900
py
benchmarks.py
import os os.environ["OMP_NUM_THREADS"] = str(1) import numpy as np import cupoch as cph cph.initialize_allocator(cph.PoolAllocation, 1000000000) import open3d as o3d import time def measure_time(obj, method_name, device, *args): fn = getattr(obj, method_name) start = time.time() res = fn(*args) ela...
993bfbaec4aeac075f9c68edb2b30fb95acdd4d0
749af8e81d5ccd2d8714a34434a9c77772df551b
/statsmodels/datasets/danish_data/__init__.py
58e9c0abac4c7493518e4a550694016fae82ff21
[ "BSD-3-Clause" ]
permissive
statsmodels/statsmodels
98ca67192c08bcc611ed3a75edaded2c7181ab98
01b19d7d111b29c183f620ff0a949ef6391ff8ee
refs/heads/main
2023-09-05T13:05:49.497076
2023-09-01T10:54:50
2023-09-01T10:54:50
1,885,237
8,666
3,023
BSD-3-Clause
2023-09-13T17:51:48
2011-06-12T17:04:50
Python
UTF-8
Python
false
false
264
py
__init__.py
__all__ = [ "load", "load_pandas", "COPYRIGHT", "TITLE", "SOURCE", "DESCRSHORT", "DESCRLONG", "NOTE", ] from .data import ( load, load_pandas, COPYRIGHT, TITLE, SOURCE, DESCRSHORT, DESCRLONG, NOTE, )
789eeb26892d9c1eaf43eaa0bfa3ef15791a37df
32e910f5440c10b384bb26b5555ac7adb77540ee
/tools/InterfaceGenerator/generator/generators/__init__.py
57e528dc8daa176fd9673bb7fa5413555b96c13f
[]
permissive
smartdevicelink/sdl_core
76658282fd85b16ed6d91d8d4087d8cd1353db76
7343fc72c12edc8ac42a62556c9e4b29c9408bc3
refs/heads/master
2022-11-04T12:17:58.725371
2022-10-26T15:34:13
2022-10-26T15:34:13
24,724,170
269
306
BSD-3-Clause
2022-10-26T15:34:15
2014-10-02T15:16:26
C++
UTF-8
Python
false
false
97
py
__init__.py
"""Package that contains generators from internal model representation to different formats. """
5787492820b96b6fe7e60564e3d32cca06e60c10
77706ad1eef0f6ff1d8963311018a28949ffbf1e
/Examples/Simple Beam - Factored Envelope.py
859c7b07d548c19acd20a0f7958b28b4faaf75e1
[ "MIT" ]
permissive
JWock82/PyNite
883b6ad3bbbea1c68e5de7ae1a4ae23a3e60e17f
2e43996278a590ba0681190bfea9d3dabe5470af
refs/heads/master
2023-08-17T23:51:33.874310
2023-08-12T23:57:21
2023-08-12T23:57:21
109,416,263
327
89
MIT
2023-08-26T05:32:42
2017-11-03T16:11:07
Python
UTF-8
Python
false
false
2,434
py
Simple Beam - Factored Envelope.py
# Units used for the model in this example are inches and kips # Import `FEModel3D` from `PyNite` from PyNite import FEModel3D from matplotlib import pyplot as plt import numpy as np # Import 'Visualization' for rendering the model from PyNite import Visualization # Create a new finite element model simple_beam = FE...
92aecbd662e949161dd51cfc6ac4365af5632e4a
c18fcfe534a1c5ff8112aa84076fb43e17da5f2a
/recipes/quast/quast-download-busco
e75e2f7173c9a9ad281f626aba7b88eaab036a28
[ "MIT" ]
permissive
bioconda/bioconda-recipes
fa262767710502be6d174b1d1409f551f1bb5e91
78414cd3322c817449fccbdf6ebc07eca9f95901
refs/heads/master
2023-08-17T01:20:42.943416
2023-08-17T00:25:32
2023-08-17T00:25:32
42,372,094
1,664
4,797
MIT
2023-09-14T20:55:01
2015-09-12T20:33:30
Shell
UTF-8
Python
false
false
293
quast-download-busco
#!/usr/bin/env python from quast_libs import qconfig from quast_libs.log import get_logger from quast_libs.run_busco import download_all_db, download_augustus logger = get_logger(qconfig.LOGGER_DEFAULT_NAME) logger.set_up_console_handler() download_augustus(logger) download_all_db(logger)
32ce98122f5996b93617b1d2021c128a3eac27e0
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/netatmo/application_credentials.py
5536343ebe6a6888c0c44e5ad3ef88dfdc314aff
[ "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
467
py
application_credentials.py
"""Application credentials platform for Netatmo.""" from homeassistant.components.application_credentials import AuthorizationServer from homeassistant.core import HomeAssistant from .const import OAUTH2_AUTHORIZE, OAUTH2_TOKEN async def async_get_authorization_server(hass: HomeAssistant) -> AuthorizationServer: ...
33da5f1bd797f4798d293d353e6a448235735e60
2f1e3f24f2798507c9eb73185a955c9bfb735140
/libserving/sanic_serving/tf_deploy.py
f58c7f9a02b7546f32e0f55b0573fc2da75e4fe8
[ "MIT" ]
permissive
massquantity/LibRecommender
e4f55b06b2208c794a3f97f7ff89413fa9beaffa
8d5fbe9c177f5b91c2b6f19a155a83320dd0e20c
refs/heads/master
2023-08-31T23:48:37.634663
2023-08-20T11:58:15
2023-08-20T11:58:15
174,493,761
251
55
MIT
2023-08-20T11:58:16
2019-03-08T07:58:27
Python
UTF-8
Python
false
false
7,895
py
tf_deploy.py
import os from typing import Any, Dict, List, Optional, Tuple import aiohttp import numpy as np import redis.asyncio as redis import ujson from sanic import Sanic from sanic.exceptions import SanicException from sanic.log import logger from sanic.request import Request from sanic.response import HTTPResponse, json fr...
a378cccd23d961f1bf2bc36393aa045984d2ffb4
70ae32de39e93b5c7514ed9c54ebb98fa1e56e38
/src/sidecar.py
a48b0a1634cb98090808c6d05c265155a471e1e4
[ "MIT" ]
permissive
kiwigrid/k8s-sidecar
33cd58072027942705d2904b1ce7917036db9166
1d7a3566c129b8f7c0def292e9407ee856a9e0d4
refs/heads/master
2023-08-31T13:14:19.637183
2023-08-29T13:24:51
2023-08-29T13:24:51
131,828,020
437
175
MIT
2023-09-12T19:31:20
2018-05-02T09:24:28
Python
UTF-8
Python
false
false
6,040
py
sidecar.py
#!/usr/bin/env python import os import re from kubernetes import client, config from kubernetes.client import ApiException from kubernetes.config.kube_config import KUBE_CONFIG_DEFAULT_LOCATION from requests.packages.urllib3.util.retry import Retry from helpers import REQ_RETRY_TOTAL, REQ_RETRY_CONNECT, REQ_RETRY_RE...
42c6535bff72b6599e26212666d25235cbd24e97
0760fb4901a75766921a205b55686d6d6f049b30
/python/ray/train/_internal/storage.py
1c54276605af281a07652eadf5c3fbba4ca91d3d
[ "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
24,808
py
storage.py
import dataclasses import fnmatch import logging import os from pathlib import Path import shutil from typing import Callable, Dict, List, Optional, Tuple, Type, Union, TYPE_CHECKING try: import fsspec # noqa from fsspec.implementations.local import LocalFileSystem except (ImportError, ModuleNotFoundError) a...
701bdf5892c2dfc27ccd0d3df2a4f2f1ab6a5b44
7453911cee47edd9414ecfc66d189dc578f7e421
/src/gevent/_socketcommon.py
9d883bfc87a067152db4465ad931de842b79addc
[ "Python-2.0", "MIT" ]
permissive
gevent/gevent
f20eca1852098e47f32eb062db646acfead36e71
6b22af0fa8eb2efa89fce36c35808948c67352b0
refs/heads/master
2023-08-31T19:27:29.410236
2023-08-31T10:26:35
2023-08-31T10:26:35
5,801,666
4,981
866
NOASSERTION
2023-09-13T14:16:59
2012-09-13T22:03:03
Python
UTF-8
Python
false
false
26,199
py
_socketcommon.py
# Copyright (c) 2009-2014 Denis Bilenko and gevent contributors. See LICENSE for details. from __future__ import absolute_import # standard functions and classes that this module re-implements in a gevent-aware way: _implements = [ 'create_connection', 'socket', 'SocketType', 'fromfd', 'socketpair'...
aa339b957cfc8e7135a2060240ad4fe4f66796d8
3de3dae722829727edfdd6cc3b67443a69043475
/cave/com.raytheon.viz.gfe/localization/gfe/userPython/procedures/SendProposedToWFO.py
6bc101527f298be05140af049cb4ead808090625
[ "LicenseRef-scancode-public-domain", "Apache-2.0" ]
permissive
Unidata/awips2
9aee5b7ec42c2c0a2fa4d877cb7e0b399db74acb
d76c9f96e6bb06f7239c563203f226e6a6fffeef
refs/heads/unidata_18.2.1
2023-08-18T13:00:15.110785
2023-08-09T06:06:06
2023-08-09T06:06:06
19,332,079
161
75
NOASSERTION
2023-09-13T19:06:40
2014-05-01T00:59:04
Java
UTF-8
Python
false
false
5,191
py
SendProposedToWFO.py
# ------------------------------------------------------------------------------ # This software is in the public domain, furnished "as is", without technical # support, and with no warranty, express or implied, as to its usefulness for # any purpose. # # SendProposedToWFO # Version 3.0 - Code cleanup and refactoring #...
e4bb92c1bb5bd901535bafd6ce294bcd4dcc7b9b
f07e66293cc41a9fe71fc44f765b432fd7a0997c
/selfdrive/car/fw_versions.py
2584618ebddaa944372938dcef21bfdf76e839e0
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
kegman/openpilot
c9ba96a72d905956f02c684e065091e023942883
b35291c91783657a5fc83abfff012d3bb49dd89f
refs/heads/kegman-ultimate
2022-05-22T17:07:16.656336
2021-10-25T13:35:28
2021-10-25T13:35:28
229,979,925
105
212
MIT
2022-03-13T05:47:51
2019-12-24T17:27:11
C
UTF-8
Python
false
false
7,982
py
fw_versions.py
#!/usr/bin/env python3 import struct import traceback from typing import Any from tqdm import tqdm import panda.python.uds as uds from cereal import car from selfdrive.car.fingerprints import FW_VERSIONS, get_attr_from_cars from selfdrive.car.isotp_parallel_query import IsoTpParallelQuery from selfdrive.car.toyota.va...
5eb656a3a1ec5aa8a671cb895d31177bb3862e90
c3542b98289c1ba85f62d08b5edbe1a3c18f3c80
/FizzBuzz.py
59c78fad2a92034ad6580ba199fbd9b4ed1e7a09
[ "LicenseRef-scancode-unknown", "GPL-1.0-or-later", "MIT" ]
permissive
geekcomputers/Python
16674289843f89f6cc287097f033b928f4181d84
bc55e2a2c5a98f4c7597e901a04457dfb9d5df0c
refs/heads/master
2023-08-18T21:04:18.163283
2023-08-17T17:38:16
2023-08-17T17:38:16
2,881,789
32,418
15,024
MIT
2023-09-02T18:40:33
2011-11-30T09:04:08
Python
UTF-8
Python
false
false
639
py
FizzBuzz.py
# FizzBuzz # A program that prints the numbers from 1 to num (User given number)! # For multiples of ‘3’ print “Fizz” instead of the number. # For the multiples of ‘5’ print “Buzz”. # If the number is divisible by both 3 and 5 then print "FizzBuzz". # If none of the given conditions are true then just print the number!...
4b6ee0092078b2efe698fc7cceba1de5b5fa6007
ffdc77394c5b5532b243cf3c33bd584cbdc65cb7
/tests/ut/python/parallel/test_comparison_function_info.py
8e1930ee2a856f6a2a4b2b9883117993ceae17ae
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "MPL-1.0", "OpenSSL", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause-Open-MPI", "MIT", "MPL-2.0-no-copyleft-exception", "NTP", "BSD-3-Clause", "GPL-1.0-or-later", "0BSD", "MPL-2.0", "LicenseRef-scancode-f...
permissive
mindspore-ai/mindspore
ca7d5bb51a3451c2705ff2e583a740589d80393b
54acb15d435533c815ee1bd9f6dc0b56b4d4cf83
refs/heads/master
2023-07-29T09:17:11.051569
2023-07-17T13:14:15
2023-07-17T13:14:15
239,714,835
4,178
768
Apache-2.0
2023-07-26T22:31:11
2020-02-11T08:43:48
C++
UTF-8
Python
false
false
13,842
py
test_comparison_function_info.py
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
d048c088441791f6f6d5e652b91d8d803d17413f
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/govern/data-meta/amundsen/databuilder/databuilder/models/query/query_join.py
971686073d956b95581f91614ca73d8020cd904c
[ "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
8,878
py
query_join.py
# Copyright Contributors to the Amundsen project. # SPDX-License-Identifier: Apache-2.0 from typing import Iterator, Optional from databuilder.models.graph_node import GraphNode from databuilder.models.graph_relationship import GraphRelationship from databuilder.models.graph_serializable import GraphSerializable from...
08179727805c9d038376f96d8de1a42a49d24151
2feeb893ef5e25383ca5029be8bd556538639982
/commands/developer-utils/sentry/sentry-unresolved-issues-by-project.template.py
a4b51945f3b2d42f3cd67b9864c2ee3ae9807be3
[ "MIT" ]
permissive
raycast/script-commands
c62175cc1e897174407cecdda2e6b053f397f131
e74432024f71f783f7125eba56603cc82160149c
refs/heads/master
2023-09-03T21:06:51.794246
2023-08-28T09:32:36
2023-08-28T09:32:36
299,712,981
5,249
1,133
MIT
2023-09-07T15:33:07
2020-09-29T19:06:27
Shell
UTF-8
Python
false
false
3,038
py
sentry-unresolved-issues-by-project.template.py
#!/usr/bin/env python3 # How to use this script? # It's a template which needs further setup. Duplicate the file, # remove `.template.` from the filename and set an API token as # well as the Sentry organization. # # API: https://docs.sentry.io/api/events/list-a-projects-issues/ # Parameters # Required parameters: ...
39e8f014caf36218fe8ccce2be3a8fbd5ebeee8c
3e1f6dfde5c940f7acde208d098e56a54550945f
/dash_docs/chapters/dash_vtk/other/examples/t05_reader.py
de148a2bd0c9ed523e7886ae8641709d4250a936
[ "MIT" ]
permissive
plotly/dash-docs
a4d1b9e450aa19e811f8ae043fd56de330cce63a
f494e987701be1085ba9fb7b29bd875ee2146d5b
refs/heads/master
2023-08-03T02:18:16.257115
2021-12-14T18:51:52
2021-12-14T18:51:52
84,095,619
396
210
MIT
2023-01-18T20:29:56
2017-03-06T16:30:08
Python
UTF-8
Python
false
false
693
py
t05_reader.py
import os import dash import dash_html_components as html import dash_vtk # Get it here: https://github.com/plotly/dash-vtk/blob/master/demos/data/cow-nonormals.obj obj_file = "datasets/cow-nonormals.obj" txt_content = None with open(obj_file, 'r') as file: txt_content = file.read() content = dash_vtk.View([ ...
77e8f22553213ff2b050713464b66ad2b4816e37
38e5c18fdb3da2fd51d6ffcdbd30fca1f4197220
/events/migrations/0046_require_sponsor_logo.py
a4088394fd3f175fb3bce02dba36cffd7990d4a6
[ "BSD-2-Clause" ]
permissive
GetTogetherComm/GetTogether
3472c00e94c25930bb5f854bdf5ddf6f0b25fe70
6708944bbcecb6d3d1467b096b2d72e991583d51
refs/heads/master
2023-08-20T17:57:30.082021
2022-04-18T22:22:54
2022-04-18T22:22:54
115,438,321
462
106
BSD-2-Clause
2023-02-15T18:23:18
2017-12-26T16:34:28
Python
UTF-8
Python
false
false
569
py
0046_require_sponsor_logo.py
# Generated by Django 2.0 on 2018-09-26 22:14 from django.db import migrations import imagekit.models.fields class Migration(migrations.Migration): dependencies = [("events", "0045_change_field_help_text")] operations = [ migrations.AlterField( model_name="sponsor", name="l...
543a6c75ff117a835ecff14f5fff20c62298d2b5
e8846f706a428a91659ac6e24974dc696089fe4a
/pandapower/pf/pfsoln_numba.py
d43a593d6bba5f31b2274ffae75bf05d6e2fdd64
[ "BSD-3-Clause" ]
permissive
e2nIEE/pandapower
3e434bf81b29e9c88905abbd82fd0309e2191ffb
5592ba1f6fcd727053a37dcf246b9bf36874c24a
refs/heads/develop
2023-09-03T23:21:25.979973
2023-08-31T11:00:17
2023-08-31T11:00:17
78,748,060
608
481
NOASSERTION
2023-09-14T18:22:08
2017-01-12T13:27:53
Python
UTF-8
Python
false
false
5,857
py
pfsoln_numba.py
# -*- coding: utf-8 -*- # Copyright 1996-2015 PSERC. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Copyright (c) 2016-2023 by University of Kassel and Fraunhofer Institute for Energy Economics # and Energy System Technology (IEE), Kassel. ...
b45c8f8450d53f0a63702ab7aef9f470ed3c1963
8f48cf56bbb19560c8f65a81e0ce42e2a9fc27a6
/tools/schemacode/bidsschematools/tests/test_render_tables.py
be41b8c5ebe91d125c09f52ffe70d4427b5e4765
[ "LicenseRef-scancode-public-domain", "CC-BY-4.0", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
bids-standard/bids-specification
7b48af9353a805aa34e90bb669b0a7564fa377b4
e1f853873036e2079d39a4fcb1357a04c8afbb80
refs/heads/master
2023-08-23T09:18:46.250752
2023-08-22T05:45:00
2023-08-22T05:45:00
150,465,237
242
164
CC-BY-4.0
2023-09-13T14:09:30
2018-09-26T17:35:34
Python
UTF-8
Python
false
false
5,353
py
test_render_tables.py
"""Tests for the bidsschematools package.""" from bidsschematools.render import tables def test_make_entity_table(schema_obj): """ Test whether expected entities are present and listed correctly. This should be robust with respect to schema format. """ entity_table = tables.make_entity_table(schem...
c172a9a2691735bd329c940c255256c1a5a16fa7
ecaba173879f92f24e3c951866fda23c0a4fc426
/perfkitbenchmarker/linux_benchmarks/tensorflow_benchmark.py
97cc07c6dd391bbb86d113dd696151ada1b73aab
[ "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
23,728
py
tensorflow_benchmark.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...
58de7c6e040abeededadd28c0013b49c2195eb1a
6ed034d0a5e239d7b0c528b287451409ffb4a494
/mmpose/datasets/datasets/mesh/mesh_h36m_dataset.py
9ac9ead1f5c1c1de40604c6830f6b0c762ad70eb
[ "Apache-2.0" ]
permissive
ViTAE-Transformer/ViTPose
8f9462bd5bc2fb3e66de31ca1d03e5a9135cb2bf
d5216452796c90c6bc29f5c5ec0bdba94366768a
refs/heads/main
2023-05-23T16:32:22.359076
2023-03-01T06:42:22
2023-03-01T06:42:22
485,999,907
869
132
Apache-2.0
2023-03-01T06:42:24
2022-04-27T01:09:19
Python
UTF-8
Python
false
false
3,823
py
mesh_h36m_dataset.py
# Copyright (c) OpenMMLab. All rights reserved. import os from collections import OrderedDict import json_tricks as json import numpy as np from mmpose.core.evaluation import keypoint_mpjpe from mmpose.datasets.builder import DATASETS from .mesh_base_dataset import MeshBaseDataset @DATASETS.register_module() class ...
dc8dcc117094fb48dc9cf5f4ba7b44fb1c0d019c
c2d48caa5db7e746a38beca625406fcf47379d3c
/src/olympia/amo/management/commands/get_changed_files.py
a84d4b530fad56ee0b264cc058e1644e65aa0997
[]
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
3,542
py
get_changed_files.py
import os from datetime import datetime, timedelta from os import scandir from django.conf import settings from django.core.management.base import BaseCommand from olympia.addons.models import Addon, Preview from olympia.amo.utils import id_to_path from olympia.blocklist.utils import datetime_to_ts from olympia.files...
a2a785a76b2c7f033e1c9ea74c776ab680eb995f
4658aa41017b2e6da830f1e879774e4a7296c314
/holoviews/core/data/cudf.py
4a608a4fd6af778ddfd71207a37e97425083da4f
[ "BSD-3-Clause" ]
permissive
holoviz/holoviews
3f133e572933c94cedad7bae6fb6d071152842fc
e3dee5443dad84b507734c0a3d2bba8ec44f5653
refs/heads/main
2023-09-03T05:08:42.682432
2023-08-28T20:40:36
2023-08-28T20:40:36
19,542,768
1,223
223
BSD-3-Clause
2023-09-14T18:15:53
2014-05-07T16:59:22
Python
UTF-8
Python
false
false
12,589
py
cudf.py
import sys import warnings from itertools import product import numpy as np import pandas as pd from .. import util from ..dimension import dimension_name from ..element import Element from ..ndmapping import NdMapping, item_check, sorted_context from .interface import DataError, Interface from .pandas import Pandas...
568b1fe51241f4f32195f307a478d8c325d70f62
3ef70fe63acaa665e2b163f30f1abd0a592231c1
/stackoverflow/venv/lib/python3.6/site-packages/pip-19.0.3-py3.6.egg/pip/_internal/cli/main_parser.py
b17c7492803db60d9f5eb404aa24138bae462836
[ "MIT" ]
permissive
wistbean/learn_python3_spider
14914b63691ac032955ba1adc29ad64976d80e15
40861791ec4ed3bbd14b07875af25cc740f76920
refs/heads/master
2023-08-16T05:42:27.208302
2023-03-30T17:03:58
2023-03-30T17:03:58
179,152,420
14,403
3,556
MIT
2022-05-20T14:08:34
2019-04-02T20:19:54
Python
UTF-8
Python
false
false
3,016
py
main_parser.py
"""A single place for constructing and exposing the main parser """ import os import sys from pip import __version__ from pip._internal.cli import cmdoptions from pip._internal.cli.parser import ( ConfigOptionParser, UpdatingDefaultsHelpFormatter, ) from pip._internal.commands import ( commands_dict, get_simi...
94d297ca4eb8cd991e71b3fee4e8dfa44a2d57aa
ccb50906170929899c1eb0b115ee2e4e25380019
/tests/conftest.py
5f6c0fa5b21660c1f0c24369f3636a41d545d50c
[ "MIT" ]
permissive
click-contrib/sphinx-click
1ba02a04998ba9f84f494dffc53c819d03380a6a
620ce83b652f6a2af671fa14584ff5efcae6cda0
refs/heads/master
2023-08-21T16:30:10.475787
2023-08-17T16:39:56
2023-08-17T16:43:37
87,362,999
199
65
MIT
2023-08-09T09:45:02
2017-04-05T22:41:38
Python
UTF-8
Python
false
false
855
py
conftest.py
import pathlib import shutil import sphinx import pytest # this is necessary because Sphinx isn't exposing its fixtures # https://docs.pytest.org/en/7.1.x/how-to/writing_plugins.html#requiring-loading-plugins-in-a-test-module-or-conftest-file pytest_plugins = ['sphinx.testing.fixtures'] # TODO: Remove when we no lo...
ae93172d7fb0c416215cc2829803b5c304607470
15f0514701a78e12750f68ba09d68095172493ee
/Python3/799.py
592e5e37d53d50f50370a9544e6af6344660f22e
[ "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,469
py
799.py
__________________________________________________________________________________________________ sample 56 ms submission class Solution: def champagneTower(self, poured: int, query_row: int, query_glass: int) -> float: d = query_row - query_glass q = collections.deque([(0, 0, poured)]) whi...
d344c9eefd418478922306cffe6800b023645944
0ba2e5061577f6286ff9265ef1df9aca96769445
/cryptography/operations/ExtendedGreatestCommonDivisor.py
d597961f7af9224604bee9f9da47baa059e12ba3
[ "CC0-1.0" ]
permissive
ZoranPandovski/al-go-rithms
68d5d02f80a61de9baf8e50a81a52e7d0b3983a0
4ae6ba54e90af14af236e03e435eb0402dcac787
refs/heads/master
2023-09-04T16:04:04.321676
2023-06-06T15:22:16
2023-06-06T15:22:16
93,438,176
1,421
2,445
CC0-1.0
2023-06-15T14:24:28
2017-06-05T19:20:20
Jupyter Notebook
UTF-8
Python
false
false
469
py
ExtendedGreatestCommonDivisor.py
# extended gcd and inverse mod from math import gcd def extgcd(a, b): if (abs(a) >= abs(b)): if a % b == 0: v1 = [b, 0, 1] return v1 else: q = a // b r = a % b D, s, t = extgcd(b, r) v2 = [D, t, s - t*q] return v2 ...
a7cca741c8730b192bc630a9f00cf03b623cb0ce
b8bbdfc593b6d816e67a344f720f90ec05236778
/dev/breeze/src/airflow_breeze/utils/shared_options.py
6e9b1e5b54633a335523739a598c210bf07f4e87
[ "Apache-2.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
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
1,957
py
shared_options.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...
a8515a976877ab4e1084fb6f9f519e803f00502a
70238f403826253b36323e0c4700795788c61187
/thirdparty/iPlug2/Scripts/select_host.py
bd6b9439b1b2ae35fa0a7f2dc9e593b3a295a320
[ "MIT", "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-unknown-license-reference" ]
permissive
tommitytom/RetroPlug
d4d1c9d671cec7373bf3e27030bc0d29b46191be
40c6f01352d50cb31b1d4f31b7cc17fd2cf47ce8
refs/heads/main
2023-06-30T00:28:58.282288
2022-11-01T02:03:57
2022-11-01T02:03:57
185,368,230
262
11
MIT
2021-08-15T04:15:59
2019-05-07T09:23:48
C++
UTF-8
Python
false
false
4,256
py
select_host.py
#!/usr/bin/python #python shell script to modify common-win.props to select a host for debugging VST plug-ins SAVIHOST_PATH = "$(ProgramFiles)\\vsthost\savihost.exe" LIVE_PATH = "$(ProgramData)\Ableton\Live 10 Suite\Program\Ableton Live 10 Suite.exe" FL_PATH = "$(ProgramFiles)\Image-Line\FL Studio 20\FL.exe" CUBASE_P...
59de5ec87ad56d78ff8a8c5995e9851ab42eec31
d795a741bf0fadaa36d48cc758d9b750953539e4
/railroad.py
33fa5770a86ead46147971877da57a9d235b90b3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
tabatkins/railroad-diagrams
9e3f99981025bd1c7c718a221c7669a8aab796e2
c3a16b9dcb06f5d0ae2260f8414136917871d4c5
refs/heads/gh-pages
2023-02-22T02:17:40.209289
2023-02-14T21:23:30
2023-02-14T21:23:30
5,742,095
1,464
156
MIT
2022-06-24T23:56:13
2012-09-09T22:03:24
Python
UTF-8
Python
false
false
49,093
py
railroad.py
# -*- coding: utf-8 -*- from __future__ import annotations import math as Math import sys from typing import TYPE_CHECKING if TYPE_CHECKING: from typing import ( Any, Callable, Dict, Generator, List, Optional as Opt, Sequence as Seq, Tuple, ...
234c1dea838108f50869ddc9510fc891a92aeccc
eea5b171d492bd7f3f8caa800dce34cfa034bc8f
/src/pydoc_markdown/util/misc_test.py
40a05dd5ebec4fcfbc69cd780825d8bcec0d5df5
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
NiklasRosenstein/pydoc-markdown
356538ca2964ea7f324e5b71a23c15199f2bdb6b
e2e1acde6434779239878fcb60077a688289b97e
refs/heads/develop
2023-09-03T07:30:25.142166
2023-07-31T03:42:04
2023-07-31T03:42:04
40,528,750
421
142
NOASSERTION
2023-07-31T03:42:06
2015-08-11T07:47:39
Python
UTF-8
Python
false
false
378
py
misc_test.py
from pydoc_markdown.util.misc import escape_except_blockquotes def test__escape_except_blockquotes() -> None: assert ( escape_except_blockquotes( """ 1 < 2? ``` Yes, 1 < 2. ``` """ ) == ( """ 1 &lt; 2? ``` ...
9ea29ddcf6541d34052b77f52e9bf01ed2a4c9c1
61096fcd8c78814a17933adb3d35299d93945ba0
/src/09-built-on-asyncio/the_trio/prod_trio.py
90723ff8fc2070cc65d6901dc179ba114c9ad514
[ "MIT" ]
permissive
talkpython/async-techniques-python-course
88261a7fa4deb95d262f475662ab41e0e836f3d7
3780f9ea2ebe89b2f4e01191927594c8d1c33fb0
refs/heads/master
2023-08-06T06:57:10.804176
2022-10-21T14:55:16
2022-10-21T14:55:16
145,053,438
441
247
MIT
2022-01-24T18:48:55
2018-08-17T00:42:04
Python
UTF-8
Python
false
false
1,876
py
prod_trio.py
import datetime import colorama import random import trio async def main(): t0 = datetime.datetime.now() print(colorama.Fore.WHITE + "App started.", flush=True) """ trio.Queue was removed in v0.11.0: - Replacing the call to trio.Queue() by trio.open_memory_channel() - Using a MemorySendChanne...
260b4ae5b99dcb726a35531e4618a6e5ec4a4a57
df1654f9c70184c04206616b446ce3cde9e737a8
/src/scripts/dev_tools/gen_mp_monty.py
44ce2d1fb606ef05fc6f9fd8869d9dbf1ae5d1b3
[ "BSD-2-Clause" ]
permissive
randombit/botan
cade596b58b74c12fb70a58baf1a40bf2f5b1b85
560aec3a8bfa2456cc309bac478aca9ae53f0fff
refs/heads/master
2023-09-01T07:01:06.013013
2023-09-01T03:07:14
2023-09-01T03:07:14
8,608,254
2,362
686
BSD-2-Clause
2023-09-14T19:18:13
2013-03-06T16:51:39
C++
UTF-8
Python
false
false
2,534
py
gen_mp_monty.py
#!/usr/bin/env python3 import sys import datetime # (C) 2018,2023 Jack Lloyd # Botan is released under the Simplified BSD License (see license.txt) # Used to generate src/lib/math/mp/mp_monty_n.cpp def monty_redc_code(n): lines = [] lines.append("word w2 = 0, w1 = 0, w0 = 0;") lines.append("w0 = z[0];...
3aadd3aaeddceb53b63ab5c661263d915cf859a9
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/DQMOffline/Trigger/python/MuonMonitor_cfi.py
da4f079ad4cbe40a8630b2f69cbbb848143a1895
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
2,662
py
MuonMonitor_cfi.py
import FWCore.ParameterSet.Config as cms from DQMOffline.Trigger.muonMonitoring_cfi import muonMonitoring hltMuonmonitoring = muonMonitoring.clone( FolderName = 'HLT/Muon/TrkMu16_DoubleTrkMu6NoFiltersNoVtx/', met = "pfMet", # pfMet muons = "muons", # while pfIsolatedElectronsEI are reco::PFCandidate...
929159d54e03427bf1fea2711123c28bbb4cd003
889bc07d40091813906bf253785b08333196e6db
/nodebook/ipython/nodebookext.py
85040923b2979976246150990753011dfa5d0b67
[ "Apache-2.0" ]
permissive
stitchfix/nodebook
7715f9731f9d01d7ccfd30a4bdc4d31da1b92ecb
fc7103451ed9cc64ff627afbde910b5ae6e771ed
refs/heads/master
2022-08-22T08:22:30.083249
2022-07-28T17:20:46
2022-07-28T17:20:46
98,476,264
271
22
Apache-2.0
2022-07-28T17:20:47
2017-07-27T00:20:18
Jupyter Notebook
UTF-8
Python
false
false
3,360
py
nodebookext.py
from __future__ import absolute_import import six.moves.cPickle as pickle import os import sys import errno from nodebook.nodebookcore import Node, Nodebook, ReferenceFinder from nodebook.pickledict import PickleDict NODEBOOK_STATE = { "cache_dir": None, "nodebook": None, } MODE_DISK = "disk" MODE_MEMORY = "...
f0f52bc5b22c001b87294ced924ca154c75b0a05
270937d32c2bc8e33622d96c045b43b8a23bc086
/ion/text/fonts/font_target.gypi
a60e2a2bf5ce66df517b31ef75f4cc312c902583
[ "Apache-2.0" ]
permissive
google/ion
32491fc26a0a2a5fd602e4008296ccba5017d689
514ce797458d02e7cd3a1b2d0b5c7ff8ccb5f5d1
refs/heads/master
2023-09-04T18:10:40.343013
2022-06-09T07:56:18
2022-06-09T07:56:18
50,387,855
1,651
132
Apache-2.0
2018-05-12T02:16:47
2016-01-25T23:13:46
C++
UTF-8
Python
false
false
1,764
gypi
font_target.gypi
# # Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
b1a1eac20de8049b21fa8a3e71f3aa8a80b926b5
e910cca862905577212a514727ca8cbfa9213839
/test/querying/test_query_actions.py
7fcec85df81e2b918c7349835d6fa084023ac94d
[ "MIT" ]
permissive
salesforce/policy_sentry
1b0da6af01dd5507087ae7b266389036855ddb94
a06d95c4c20722e4a1c51da9943c52bac2154b41
refs/heads/master
2023-08-31T15:24:58.480240
2023-08-28T20:47:16
2023-08-29T20:52:56
209,652,627
1,864
151
MIT
2023-09-09T19:55:39
2019-09-19T21:35:53
Python
UTF-8
Python
false
false
25,083
py
test_query_actions.py
import unittest import os import json from schema import Optional, Schema, And, Use, SchemaError from policy_sentry.shared.iam_data import get_service_prefix_data from policy_sentry.querying.actions import ( get_actions_for_service, get_privilege_info, get_action_data, get_actions_that_support_wildcard_...
4c1101cf0ad60d99c3fb26775488225d3b70e8c1
bad6940b201987d55edb3d7128f2ce3718d3b40f
/tests/int/test_corpora.py
c352353b70b8d39db954d98093a2bc9fecaf32b0
[ "MIT" ]
permissive
pyconll/pyconll
ff985ef2e80820a0dd86b5d7c81914712f5dd5cd
1bb8cd31fe18bfb048e6e26bc583004952094bff
refs/heads/master
2023-06-23T12:17:10.758862
2023-06-21T03:20:45
2023-06-21T03:20:45
107,349,042
148
11
MIT
2023-06-21T03:13:56
2017-10-18T02:30:31
Python
UTF-8
Python
false
false
15,498
py
test_corpora.py
import hashlib import logging import operator import os from pathlib import Path import tarfile from urllib import parse import pytest import requests import pyconll from .workflow import conditional as _if, fail, partial, pipe, sequence, value def _cross_platform_stable_fs_iter(dir): """ Provides a stable ...
5feb63c16068bdc24e551c7d9a7e5279e8d1e096
803bab6f782099d995bcdb99d163486f4fff8c50
/habitat-lab/habitat/datasets/utils.py
ef8b08d692acfe7d848db88514926f35e66f76c8
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "CC-BY-NC-SA-3.0" ]
permissive
facebookresearch/habitat-lab
7088506509f64da6d682f5dc69427589f71a58a9
f5b29e62df0788d70ba3618fc738fa4e947428ba
refs/heads/main
2023-08-24T14:00:02.707343
2023-08-23T04:53:48
2023-08-23T04:53:48
169,164,391
792
298
MIT
2023-09-14T15:20:03
2019-02-04T23:12:51
Python
UTF-8
Python
false
false
6,402
py
utils.py
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, 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. """ Tokenize and vocabulary utils originally authored by @apsdehal and are taken from Pythia. """ import json imp...
b920ac8ce8aef98ac06565161ae4f48fedfa7164
e8b38b8dfa348ff006eb197a7906ca8e491a23dc
/tests/codegen/fcode/scripts/classes_4.py
29a24d78af6cc212c2abab54adfbe3823e98a469
[ "MIT" ]
permissive
pyccel/pyccel
d79a81dbdff1172839a6a1227abfcc1f97e6c97b
1896b761ba662c90b14c195bbb6eb5cddc57cbfc
refs/heads/devel
2023-08-30T12:15:25.244401
2023-08-28T09:31:32
2023-08-28T09:31:32
100,463,736
307
39
MIT
2023-09-14T19:29:26
2017-08-16T07:59:14
Python
UTF-8
Python
false
false
1,388
py
classes_4.py
# pylint: disable=missing-function-docstring, missing-module-docstring, missing-class-docstring #An example of a class #$ header class Shape(public) #$ header method __init__(Shape, double, double) #$ header method area(Shape) results(double) #$ header method perimeter(Shape) results(double) #$ header method describe(S...
16c26d9cbe7e088af24ab846e69e1e95652eb768
68073b5bbec051890bce2cdb0abbf1c7652002ed
/src/robotide/lib/robot/utils/robottypes.py
2ebb1d002204a21702d1f4e334042629a8d3133f
[ "Apache-2.0" ]
permissive
robotframework/RIDE
3b6dc9629e34b6f350e154e5f76d106fa48eaaa8
ed4d650dbd806672401d4341fecc30274c4972c7
refs/heads/master
2023-09-05T15:59:01.151700
2023-09-02T22:39:16
2023-09-02T22:39:16
2,467,257
897
419
Apache-2.0
2023-09-10T03:43:39
2011-09-27T11:53:40
Python
UTF-8
Python
false
false
2,016
py
robottypes.py
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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 ...
80a2891951136990874fdc82cde97246db02badd
a0447b03ad89a41a5c2e2073e32aeaf4d6279340
/ironic/db/api.py
8aeda4b2939a15ecf975d2f91a22f53124e9463b
[ "Apache-2.0" ]
permissive
openstack/ironic
2ae87e36d7a62d44b7ed62cad4e2e294d48e061b
ab76ff12e1c3c2208455e917f1a40d4000b4e990
refs/heads/master
2023-08-31T11:08:34.486456
2023-08-31T04:45:05
2023-08-31T04:45:05
10,066,301
411
365
Apache-2.0
2023-07-25T02:05:53
2013-05-14T22:28:24
Python
UTF-8
Python
false
false
55,952
py
api.py
# -*- encoding: utf-8 -*- # # Copyright 2013 Hewlett-Packard Development Company, L.P. # # 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 # # ...
1077291b0c5eb9ee57abb9ea4244293ee7888985
55540f3e86f1d5d86ef6b5d295a63518e274efe3
/toolchain/riscv/MSYS/python/Lib/idlelib/idle_test/test_tooltip.py
a4dbc48ae9976f9dd23be49a81c738890eab606d
[ "bzip2-1.0.6", "LicenseRef-scancode-proprietary-license", "OpenSSL", "Python-2.0", "LicenseRef-scancode-newlib-historical", "TCL", "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
bouffalolab/bl_iot_sdk
bc5eaf036b70f8c65dd389439062b169f8d09daa
b90664de0bd4c1897a9f1f5d9e360a9631d38b34
refs/heads/master
2023-08-31T03:38:03.369853
2023-08-16T08:50:33
2023-08-18T09:13:27
307,347,250
244
101
Apache-2.0
2023-08-28T06:29:02
2020-10-26T11:16:30
C
UTF-8
Python
false
false
5,546
py
test_tooltip.py
"""Test tooltip, coverage 100%. Coverage is 100% after excluding 6 lines with "# pragma: no cover". They involve TclErrors that either should or should not happen in a particular situation, and which are 'pass'ed if they do. """ from idlelib.tooltip import TooltipBase, Hovertip from test.support import requir...
6552589ace2b100e6672f165f07dae5d414a62dd
27b86f422246a78704e0e84983b2630533a47db6
/tests/test_05_tools/test_530_acis_sab.py
4b1675a23001b5aeffeac14503381895cc015163
[ "MIT" ]
permissive
mozman/ezdxf
7512decd600896960660f0f580cab815bf0d7a51
ba6ab0264dcb6833173042a37b1b5ae878d75113
refs/heads/master
2023-09-01T11:55:13.462105
2023-08-15T11:50:05
2023-08-15T12:00:04
79,697,117
750
194
MIT
2023-09-14T09:40:41
2017-01-22T05:55:55
Python
UTF-8
Python
false
false
1,988
py
test_530_acis_sab.py
# Copyright (c) 2022, Manfred Moitzi # License: MIT License import pytest from datetime import datetime from ezdxf.acis import sab T = sab.Tags def test_decode_header(cube_sab): decoder = sab.Decoder(cube_sab) header = decoder.read_header() assert header.version == 21800 assert header.n_records ==...
22dce54ad5a868ff7635c1fa7ead779069bc79b0
e93097f04bb3e49c1c6b326ccf91a59ab2a158e7
/petlib/cipher.py
d68f8eda1527d0ac2b909bfde2da2ce95e791284
[ "BSD-2-Clause" ]
permissive
gdanezis/petlib
ce7a4a241e3a72492cfe4af8a5406c5ecd71a62a
7aafddb46f5e643c0a1addb1067acc3dc74ce59d
refs/heads/master
2022-11-06T04:28:44.094953
2021-05-11T13:58:48
2021-05-11T13:58:48
27,001,491
123
41
BSD-2-Clause
2022-01-25T12:30:56
2014-11-22T14:37:53
Python
UTF-8
Python
false
false
18,373
py
cipher.py
from .bindings import _FFI, _C, _OPENSSL_VERSION, OpenSSLVersion import pytest def _check(return_val): """Checks the return code of the C calls""" if isinstance(return_val, int) and return_val == 1: return if isinstance(return_val, bool) and return_val == True: return raise Exception...
c69210fe78c435d43e84d1a36936bdfdc0ff9c56
35b55815a7278fffbf05aedb256e84fbf9536b14
/modeltranslation/widgets.py
702c3729d8add65adc90c9e9c7f28cc97abade30
[ "BSD-3-Clause" ]
permissive
deschler/django-modeltranslation
1dadf1efca1ed573f0f2dbd16b2d11d6e65fbeaa
b1d32066ed46c9223c94053bb817beb04fec9522
refs/heads/master
2023-08-10T09:14:24.994377
2023-08-03T07:27:14
2023-08-09T06:45:53
6,241,977
1,107
278
BSD-3-Clause
2023-09-08T06:00:00
2012-10-16T09:33:56
Python
UTF-8
Python
false
false
3,683
py
widgets.py
from django.forms.widgets import CheckboxInput, Media, Widget from django.utils.html import conditional_escape from django.utils.safestring import mark_safe from django.utils.translation import gettext_lazy as _ class ClearableWidgetWrapper(Widget): """ Wraps another widget adding a clear checkbox, making it ...
d6e68f374b2ee9d358a59a23c2652c3b12fbdc33
a0eb6744e6f7f509b96d21f0bc8b3f8387f6861c
/notebook/pandas_option_display.py
630242f151ef9822bf1a7d2e6ca2bb30b4066e0c
[ "MIT" ]
permissive
nkmk/python-snippets
a6c66bdf999502e52f4795a3074ced63bf440817
f9dd286a9cf93f474e20371f8fffc4732cb3c4d5
refs/heads/master
2023-08-03T04:20:05.606293
2023-07-26T13:21:11
2023-07-26T13:21:11
98,900,570
253
77
MIT
2020-10-25T01:12:53
2017-07-31T14:54:47
Jupyter Notebook
UTF-8
Python
false
false
9,346
py
pandas_option_display.py
import pandas as pd import numpy as np print(pd.__version__) # 0.23.0 print(pd.options.display.precision) # 6 s_decimal = pd.Series([123.456, 12.3456, 1.23456, 0.123456, 0.0123456, 0.00123456]) print(s_decimal) # 0 123.456000 # 1 12.345600 # 2 1.234560 # 3 0.123456 # 4 0.012346 # 5 0.0012...
2041133e19fa69530c869a333ee9b5c9fc95523c
7c1b7d19b6d6a1f1cd50495f006bdbac4ea85313
/Contrib/TranslationToolkit/Convert_Compile.py
dac64cc5a9cc67a8eae279114ea9243ba4e2496e
[ "BSD-2-Clause", "curl", "LGPL-2.0-or-later", "Zlib", "NCSA", "GPL-1.0-or-later", "MPL-2.0", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
MediaArea/MediaInfo
9280deb0b6f4967dce363aeaa0a04a7d51375ce3
aebdbf83098ec8a06e5ccf83d5a06d74b9d61683
refs/heads/master
2023-09-03T21:04:26.706366
2023-08-16T08:33:01
2023-08-16T08:33:01
20,677,163
1,069
176
BSD-2-Clause
2023-09-14T13:44:38
2014-06-10T07:59:01
Pascal
UTF-8
Python
false
false
2,694
py
Convert_Compile.py
# Type: Python 3 script # Author: Steven Sun <stevenlele@outlook.com> # Date: Feb 28, 2020 # Notes: Put "Language.csv" and "Language_parsed.csv" in this folder # and run the script. It converts the parsed file back into the # original CSV, and generates a single language file for testing. import c...
abf6baf22bc7ba4cf14133cfca478eeab5d90d47
cbbf0ebc36ec7a49ff4d26b9f334f2d1e8bf492d
/code/val_2D.py
1d3735368451e0113e72fb488d71f57e5b132051
[ "MIT" ]
permissive
HiLab-git/SSL4MIS
e9c9d0eee6058d576da533191762a7c588b4d365
769258bcb25cc64292c95d18ce18a6f9f028a8a4
refs/heads/master
2023-08-23T07:32:16.616731
2023-07-26T03:36:43
2023-07-26T03:36:43
298,459,550
1,710
354
MIT
2022-08-17T02:27:30
2020-09-25T03:39:19
Python
UTF-8
Python
false
false
2,359
py
val_2D.py
import numpy as np import torch from medpy import metric from scipy.ndimage import zoom def calculate_metric_percase(pred, gt): pred[pred > 0] = 1 gt[gt > 0] = 1 if pred.sum() > 0: dice = metric.binary.dc(pred, gt) hd95 = metric.binary.hd95(pred, gt) return dice, hd95 else: ...
53288ae0de54f8ca838294d2e310b62649b6983c
c530897cb72b6943c7226b25824444cad5f3503b
/usaspending_api/idvs/tests/conftest.py
6dc70012d52532bc5212ba46e74910657d673128
[ "CC0-1.0" ]
permissive
fedspendingtransparency/usaspending-api
fc63a22d32ea0207b7273d3e1ef26ba9dbabc42a
38f920438697930ae3ac57bbcaae9034877d8fb7
refs/heads/master
2023-09-01T22:00:36.633612
2023-08-29T18:39:18
2023-08-29T18:39:18
65,394,827
276
118
CC0-1.0
2023-09-14T20:33:15
2016-08-10T15:39:45
Python
UTF-8
Python
false
false
325
py
conftest.py
from usaspending_api.idvs.tests.data.idv_rollup_data import ( basic_idvs, idv_with_unreleased_submissions, idv_with_released_submissions, ) from usaspending_api.disaster.tests.fixtures.helpers import helpers __all__ = ["basic_idvs", "helpers", "idv_with_released_submissions", "idv_with_unreleased_submissio...
b7eb79cd62e8af10a2b296d22d1f2e872b1a4e60
2342b8737b9ffeb9715158b8ec74a33c7a4947f6
/koku/api/resource_types/serializers.py
32bfa4615f214d1d8345a50a44931a5f69f8bbd4
[ "Apache-2.0" ]
permissive
project-koku/koku
444d8df05da5416c9cee606c42481c99be45f13d
0416e5216eb1ec4b41c8dd4999adde218b1ab2e1
refs/heads/main
2023-08-20T11:30:17.510182
2023-08-17T18:27:30
2023-08-17T18:27:30
126,496,611
225
94
Apache-2.0
2023-09-14T17:38:08
2018-03-23T14:29:23
Python
UTF-8
Python
false
false
554
py
serializers.py
# # Copyright 2021 Red Hat Inc. # SPDX-License-Identifier: Apache-2.0 # """Serializer for Resource Types.""" from rest_framework import serializers class ResourceTypeSerializer(serializers.Serializer): """Serializer for resource-specific resource-type APIs.""" extra_kwargs = {"test": {"error_messages": {"req...
440ebaf889f2a6b985fe1285a55883d51682d9cd
fae16a539b7c1b0525aab40ddaeee3e451fc9b74
/src/argilla/metrics/commons.py
563c08683ac25ff982a6171af2debcf3427229f8
[ "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
argilla-io/argilla
a6b45f7f64e9db82f6d9a61771d758ffbb3dab4a
7c1b2368b444b7b7a281d37ad51bcb2d8e92acf5
refs/heads/develop
2023-09-04T03:58:05.914619
2023-09-01T15:58:31
2023-09-01T15:58:31
362,500,938
1,085
122
Apache-2.0
2023-09-14T15:31:07
2021-04-28T14:37:42
Python
UTF-8
Python
false
false
3,758
py
commons.py
# Copyright 2021-present, the Recognai S.L. team. # # 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 la...
43c648cc6af693e115ce910b66f3c21de7e4db51
6fe5c42adc0d55a9f792c5627a2da79be7910444
/tests/unit/tree/request_node/test_validate.py
9077703a47c62c149af643f647a862364d35d908
[ "MIT" ]
permissive
scanapi/scanapi
31570a51b4ee8c5c40887073e4d8f221bbfa6299
1e419f29364585123cb1bc14c2d7ebd2c9b117b7
refs/heads/main
2023-09-03T13:12:47.521987
2023-07-24T09:01:22
2023-07-24T09:01:22
197,915,529
1,330
95
MIT
2023-09-11T03:44:07
2019-07-20T10:31:47
Python
UTF-8
Python
false
false
1,275
py
test_validate.py
from pytest import fixture, mark from scanapi.tree import EndpointNode, RequestNode, tree_keys @mark.describe("request node") @mark.describe("_validate") class TestValidate: @fixture def mock_validate_keys(self, mocker): return mocker.patch("scanapi.tree.request_node.validate_keys") @mark.it("sh...
90ed1668b516ffd323c282d7906d28ce17e28bb0
88dda5e76cef286c7db3ae7e5d1a32d28f7815a3
/reviewboard/reviews/tests/test_review_file_attachment_view.py
c6d6effcf10195aa26f4473e16713809803d42a0
[ "MIT" ]
permissive
reviewboard/reviewboard
f4d3bada08ba9d6ef53add2d1fdb82bd6cc63a1e
c3a991f1e9d7682239a1ab0e8661cee6da01d537
refs/heads/master
2023-08-31T09:03:14.170335
2023-08-30T08:22:43
2023-08-30T08:22:43
285,304
1,141
353
MIT
2023-06-07T16:51:02
2009-08-22T21:39:49
Python
UTF-8
Python
false
false
10,040
py
test_review_file_attachment_view.py
"""Unit tests for reviewboard.reviews.views.ReviewFileAttachmentView.""" from reviewboard.site.urlresolvers import local_site_reverse from reviewboard.testing import TestCase class ReviewFileAttachmentViewTests(TestCase): """Unit tests for reviewboard.reviews.views.ReviewFileAttachmentView.""" fixtures = ['...
2a02bb17ba88277bcd32485e2def6f98912a652e
fad4aa5a174627b8930beb8f5f987dd62c88957e
/sky/skylet/providers/kubernetes/config.py
d684c4b461799d9f18ca30ae858dd53c1b993126
[ "Apache-2.0" ]
permissive
skypilot-org/skypilot
603e29ecb3ce3b25d308f018fd402488ee352ef0
e58f33f315ca08c6e057ab9a2d00cd27476529a1
refs/heads/master
2023-08-16T21:46:53.379586
2023-08-16T02:17:21
2023-08-16T02:17:21
395,140,743
3,416
220
Apache-2.0
2023-09-14T21:20:44
2021-08-11T23:32:15
Python
UTF-8
Python
false
false
11,154
py
config.py
import copy import logging import math import re from sky.adaptors import kubernetes from sky.skylet.providers.kubernetes import utils logger = logging.getLogger(__name__) MEMORY_SIZE_UNITS = { "K": 2**10, "M": 2**20, "G": 2**30, "T": 2**40, 'P': 2**50, } log_prefix = 'KubernetesNodeProvider: ' ...
2c8990d5e72d58d2b14965fddfda24e07eaa8fc1
7bea5adf7d6284fbad0131d665e957d58adfe7c7
/allauth/socialaccount/providers/gitlab/views.py
addcf932f1b7e12a7be614c56ede49caa0737118
[ "MIT" ]
permissive
pennersr/django-allauth
50c9e71c3666785368e92ed9e19ea0f6a5438cd2
6b8911a5ebbabda0d446f2743bd4d00d250ed500
refs/heads/main
2023-09-03T16:48:10.988418
2023-09-02T08:00:53
2023-09-02T08:00:53
976,994
7,719
3,481
MIT
2023-09-14T15:06:57
2010-10-10T20:10:52
Python
UTF-8
Python
false
false
2,427
py
views.py
# -*- coding: utf-8 -*- import requests from allauth.socialaccount import app_settings from allauth.socialaccount.providers.gitlab.provider import GitLabProvider from allauth.socialaccount.providers.oauth2.client import OAuth2Error from allauth.socialaccount.providers.oauth2.views import ( OAuth2Adapter, OAuth...
d6790bdb8c70e7832781b56867cbcced316c0f1f
24051779055e60e5ea0537c36782a0c8c550631e
/cryptos/wallet.py
ee07c82d7235ed0f847f7cae4e405119351aa0af
[ "LicenseRef-scancode-public-domain", "MIT" ]
permissive
primal100/pybitcointools
58c2df69a06c453b6d8abd0845a8d5fd4dd949e7
e7c96bfe1f4be08a9f3c540e598a73dc20ca2462
refs/heads/master
2023-07-23T21:44:49.362775
2023-07-18T14:55:43
2023-07-18T14:55:43
111,823,327
298
180
NOASSERTION
2023-09-09T12:03:19
2017-11-23T15:11:22
Python
UTF-8
Python
false
false
11,948
py
wallet.py
from .main import * from .transaction import select class Wallet: def __init__(self, keystore, transaction_history=None): self.coin = keystore.coin self.keystore = keystore self.address_derivations = {} self.is_watching_only = self.keystore.is_watching_only() self.transactio...
297bc25154232acb612d864e3473dd06f8b34810
68073b5bbec051890bce2cdb0abbf1c7652002ed
/src/robotide/application/pluginloader.py
379fb12bc1af7cc1f99fb6c03cd4fac5678b8120
[ "Apache-2.0" ]
permissive
robotframework/RIDE
3b6dc9629e34b6f350e154e5f76d106fa48eaaa8
ed4d650dbd806672401d4341fecc30274c4972c7
refs/heads/master
2023-09-05T15:59:01.151700
2023-09-02T22:39:16
2023-09-02T22:39:16
2,467,257
897
419
Apache-2.0
2023-09-10T03:43:39
2011-09-27T11:53:40
Python
UTF-8
Python
false
false
3,027
py
pluginloader.py
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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 ...
95e3dc8395fc3885adbc1a8dc90f20d91c99ada1
578db86c51d44ebddd0dc7b1738985b3dc69eb74
/corehq/motech/tests/test_repeater_helpers.py
bd66083eb40b11d5e9379c3a4fa50c4b46c046c8
[ "BSD-3-Clause" ]
permissive
dimagi/commcare-hq
a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b
e7391ddae1af1dbf118211ecb52c83fc508aa656
refs/heads/master
2023-08-16T22:38:27.853437
2023-08-16T19:07:19
2023-08-16T19:07:19
247,278
499
203
BSD-3-Clause
2023-09-14T19:03:24
2009-07-09T17:00:07
Python
UTF-8
Python
false
false
6,115
py
test_repeater_helpers.py
from datetime import datetime from unittest.mock import patch from django.test.testcases import TestCase from corehq.form_processor.models import CommCareCase from corehq.motech.repeater_helpers import get_relevant_case_updates_from_form_json class TestRepeaterHelpers(TestCase): def setUp(self): self.d...
6208360d76361ad22c088716113868cfe933089e
9ee89ea711a14565d8664f180b213c0e0bd423ac
/pywinauto/unittests/test_menuwrapper.py
494317972c9e1e39730135a503d934b145791482
[ "BSD-3-Clause", "LGPL-2.1-or-later", "LGPL-2.1-only" ]
permissive
pywinauto/pywinauto
c55b3f42d0b9d5b18b005527edd791f4da05f805
bf7f789d01b7c66ccd0c213db0a029da7e588c9e
refs/heads/atspi
2023-08-30T21:05:31.992955
2022-12-29T15:23:40
2022-12-30T10:52:06
36,223,210
4,466
819
BSD-3-Clause
2023-09-12T02:26:23
2015-05-25T09:50:40
Python
UTF-8
Python
false
false
6,282
py
test_menuwrapper.py
# GUI Application automation and testing library # Copyright (C) 2006-2018 Mark Mc Mahon and Contributors # https://github.com/pywinauto/pywinauto/graphs/contributors # http://pywinauto.readthedocs.io/en/latest/credits.html # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
a1adf4a5f40b95ba24f1e8051dc71190aeacf310
bbf0c3294b8aac4cbabf255c2904556144c85610
/modoboa/ldapsync/management/commands/update_dovecot_conf.py
dc476beeb8931c2e40e338057dd70b1dca6f4cb2
[ "ISC" ]
permissive
modoboa/modoboa
4a170fabcb15b892fe627795b02a02d4c16783d6
df699aab0799ec1725b6b89be38e56285821c889
refs/heads/master
2023-08-30T12:58:51.313642
2023-08-29T13:22:14
2023-08-29T13:22:14
9,469,271
2,201
370
ISC
2023-09-13T12:47:28
2013-04-16T09:43:55
Python
UTF-8
Python
false
false
927
py
update_dovecot_conf.py
"""Command to overwrite dovecot LDAP configuration (auth).""" from django.core.management.base import BaseCommand from modoboa.parameters import tools as param_tools from ... import lib from modoboa.core import models class Command(BaseCommand): """Command definition.""" help = "Update dovecot configurati...
85c112c4d05de368a38ffd9040112a9fd2e13366
8f4488494507da4cb6f15073b8aa2e6f97fabb35
/test/functional/test_intermediate_output.py
82169b6c9faa3df3bd221d800eec047545f87e3c
[ "Apache-2.0" ]
permissive
aws/sagemaker-training-toolkit
025966a1216aeb78b58f7abab19c6ccb01b0897d
e4a765e699e16c5849bbdfd789edbfc9820fdd77
refs/heads/master
2023-08-21T12:33:59.831391
2023-08-08T16:46:40
2023-08-08T16:46:40
212,439,434
415
110
Apache-2.0
2023-09-07T19:58:23
2019-10-02T20:54:32
Python
UTF-8
Python
false
false
9,114
py
test_intermediate_output.py
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the 'License'). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the 'license' file acc...
07772cff9e091a44e23bb021ab41cd5e0afcf0c2
db12b990924703cd74748d8585cd9c11fafa6746
/h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2olazy_import.py
a1c2efb45d7e65b733bee2dfeeff94e78f0615d9
[ "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
455
py
pyunit_h2olazy_import.py
import sys sys.path.insert(1,"../../../") from tests import pyunit_utils import h2o from h2o.utils.typechecks import assert_is_type def h2olazy_import(): """ Python API test: h2o.lazy_import(path) """ training_data = h2o.lazy_import(pyunit_utils.locate("smalldata/prostate/prostate_cat.csv")) asser...
d96e80aae7e48e027750e289033610839bb56436
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/HLTrigger/Configuration/python/HLT_75e33/modules/hltPhase2L3MuonInitialStepSeeds_cfi.py
e070e1e12253b6e87ff04af536b81ff9e272bf34
[ "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
598
py
hltPhase2L3MuonInitialStepSeeds_cfi.py
import FWCore.ParameterSet.Config as cms hltPhase2L3MuonInitialStepSeeds = cms.EDProducer("SeedGeneratorFromProtoTracksEDProducer", InputCollection = cms.InputTag("hltPhase2L3MuonPixelTracks"), InputVertexCollection = cms.InputTag(""), SeedCreatorPSet = cms.PSet( refToPSet_ = cms.string('hltPhase2L...
29afb22790a604376ab6037e622dba2972864bec
5fe00998d48c5fcf6f2e0a48599cdfbf3853004f
/pydm/tests/widgets/test_curve_editor.py
09e8c09d2b32032a247b68975ddee0e490529f61
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
slaclab/pydm
859e6e8240de286c0ed617031a37a84e91947cbc
ac354b744d358e05d6e0606acc114a3a511d7e5d
refs/heads/master
2023-08-16T18:08:29.656670
2023-08-15T20:13:19
2023-08-15T20:13:19
59,700,161
109
82
NOASSERTION
2023-09-14T04:45:36
2016-05-25T21:50:56
Python
UTF-8
Python
false
false
7,627
py
test_curve_editor.py
from qtpy.QtWidgets import QTableView from ...widgets.baseplot import BasePlot from ...widgets.baseplot_curve_editor import (AxisColumnDelegate, ColorColumnDelegate, LineColumnDelegate, SymbolColumnDelegate, RedrawModeColumnDelegate, PlotStyleColumnDelegate) from ...widgets...
93a4a73212de8c4f3e50ae66ab3f3052b6fe974b
a41e1498e3c080f47abd8e8e57157548df3ebbf1
/pandas/tests/series/methods/test_convert_dtypes.py
d1c79d0f00365ed5e2bd2fae08ce57483f51182c
[ "BSD-3-Clause" ]
permissive
pandas-dev/pandas
e7e639454a298bebc272622e66faa9829ea393bb
c7325d7e7e77ecb4a4e57b48bc25265277c75712
refs/heads/main
2023-09-01T12:42:07.927176
2023-09-01T11:14:10
2023-09-01T11:14:10
858,127
36,166
18,728
BSD-3-Clause
2023-09-14T21:18:41
2010-08-24T01:37:33
Python
UTF-8
Python
false
false
8,302
py
test_convert_dtypes.py
from itertools import product import numpy as np import pytest import pandas as pd import pandas._testing as tm # Each test case consists of a tuple with the data and dtype to create the # test Series, the default dtype for the expected result (which is valid # for most cases), and the specific cases where the resul...
60ac98acfe4d685cbe057536bbdd69ccb58d2335
305d26e6cb4929e36fd333362be006edf46401cd
/cle/backends/elf/relocation/amd64.py
44361f7ea1a6193d98d30b40303309e802744845
[ "BSD-2-Clause" ]
permissive
angr/cle
192ecf000618661e151e15440fc9c2e5f26842b9
23edc1e95b0b1bace308ca80b5a8189bf8cbf8f3
refs/heads/master
2023-08-25T10:28:15.602744
2023-08-22T17:14:21
2023-08-22T17:14:21
36,358,216
389
158
BSD-2-Clause
2023-09-11T22:08:49
2015-05-27T09:53:48
Python
UTF-8
Python
false
false
1,638
py
amd64.py
from .generic import ( GenericAbsoluteAddendReloc, GenericCopyReloc, GenericIRelativeReloc, GenericJumpslotReloc, GenericPCRelativeAddendReloc, GenericRelativeReloc, GenericTLSDoffsetReloc, GenericTLSModIdReloc, GenericTLSOffsetReloc, RelocGOTMixin, RelocTruncate32Mixin, ) a...
956eebc9cfba61211976c43319ce86e8cc46e45a
35cd401ef876bec39366e5724bae71581c0cb658
/Python/control-examples/klampt_catkin/src/klampt/scripts/serialcontroller.py
25fc29ab8d7c69f7b87a03f28254f05a3a98cf44
[]
permissive
krishauser/Klampt
bd450b8c67189b31abe4eb056707d50da3aa651b
dbaf38ca290a36fba9a8f4f9b6a49fda689f6585
refs/heads/master
2023-08-29T21:54:40.758699
2023-07-21T12:34:38
2023-07-21T12:34:38
13,944,923
327
98
BSD-3-Clause
2023-08-26T04:20:26
2013-10-29T02:46:08
C++
UTF-8
Python
false
false
8,460
py
serialcontroller.py
"""An adaptor between python controllers and the Klamp't serial controller interface (SerialController). """ import asyncore,socket import errno import json import time import controller headerlen = 4 def packStrlen(s): l = len(s) assert(l <= 0xffffffff) bytes = [None]*4 bytes[0] = chr(l&0xff) byt...
d85e50d4798a01171823405aff0a4772057c08e9
1969460112e17d3cc42c8172ce2e4efe1509c774
/replication_handler/util/misc.py
48972f462cffbac877ecb77a7a6ddbbed00143f1
[ "Apache-2.0" ]
permissive
Yelp/mysql_streamer
9dcc3655d1ba70b424340adaa504f648a4e413dc
b88183ac00b88f5dff9c01ad87a46da9e3615d9e
refs/heads/master
2023-09-02T10:54:21.589275
2022-08-17T18:35:50
2022-08-17T18:35:50
66,398,331
433
92
Apache-2.0
2022-08-17T18:30:59
2016-08-23T19:52:38
Python
UTF-8
Python
false
false
5,042
py
misc.py
# -*- coding: utf-8 -*- # Copyright 2016 Yelp Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
952d41aef74919e7e8a847d849cb50eb3f25c888
10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94
/Python/complex-number-multiplication.py
8e8221bfe95088d491a97e44b031ff6207aa1696
[ "MIT" ]
permissive
kamyu104/LeetCode-Solutions
f54822059405ef4df737d2e9898b024f051fd525
4dc4e6642dc92f1983c13564cc0fd99917cab358
refs/heads/master
2023-09-02T13:48:26.830566
2023-08-28T10:11:12
2023-08-28T10:11:12
152,631,182
4,549
1,651
MIT
2023-05-31T06:10:33
2018-10-11T17:38:35
C++
UTF-8
Python
false
false
338
py
complex-number-multiplication.py
# Time: O(1) # Space: O(1) class Solution(object): def complexNumberMultiply(self, a, b): """ :type a: str :type b: str :rtype: str """ ra, ia = map(int, a[:-1].split('+')) rb, ib = map(int, b[:-1].split('+')) return '%d+%di' % (ra * rb - ia * ib, ra...
640f198deb63753b34cb6252b706ab4b8c079ed9
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-VideoToolbox/PyObjCTest/test_vtsession.py
9eb494bb840111f169718d13c07566199c927820
[ "MIT" ]
permissive
ronaldoussoren/pyobjc
29dc9ca0af838a56105a9ddd62fb38ec415f0b86
77b98382e52818690449111cd2e23cd469b53cf5
refs/heads/master
2023-09-01T05:15:21.814504
2023-06-13T20:00:17
2023-06-13T20:00:17
243,933,900
439
49
null
2023-06-25T02:49:07
2020-02-29T08:43:12
Python
UTF-8
Python
false
false
1,999
py
test_vtsession.py
import VideoToolbox import objc from PyObjCTools.TestSupport import TestCase, min_os_level, expectedFailure class TestVTSession(TestCase): @expectedFailure @min_os_level("10.10") def test_types(self): self.assertIsCFType(VideoToolbox.VTSessionRef) def test_constants(self): self.assert...
c5f04a081831d3c7c7f5fac58e44ed04106f04e7
767c07db1fb131047af3d9b0a065b8fdc8aac9ab
/45-stats1/40G5_quantiles.py
f6a1572bc0b43e70956d2674a17da7ff18c85941
[]
no_license
DUanalytics/pyAnalytics
e52c5469da30a5f436ec0f3120d9f15fb82fd9b3
107a08bebe46ea51afccfeae4a666213bb405d41
refs/heads/master
2023-07-08T04:32:54.758902
2023-07-03T14:37:04
2023-07-03T14:37:04
202,094,535
394
31
null
null
null
null
UTF-8
Python
false
false
1,679
py
40G5_quantiles.py
#Topic: Quantiles in #----------------------------- #libraries from pydataset import data mtcars = data('mtcars') mtcars.head() df=mtcars df.quantile() #0,100 ; #40,60 df.mpg.mean() df.mpg.median() df.mpg.sort_values() df.quantile(q=.5) #default 50% Q2 df.quantile([0,.25, .50, .75, 1.0]) #quartiles:Q1, Q2, Q3, Q4 df.qu...
b8b58e1e2194d4174e42f498520fc4ceb849b359
997645d6bb9c404f2f195328f29afa0eaa3c55b4
/piccolo/apps/migrations/commands/new.py
09f6ac9e87a6a2aade7d8acf5db7a2b22548a930
[ "MIT" ]
permissive
piccolo-orm/piccolo
e43ea13c05c53ac00d9d20474c53ad2c49a40e80
83ea66323ef5a8e4010ea3ee19f34163bc881ace
refs/heads/master
2023-08-08T19:31:37.783445
2023-07-28T06:19:35
2023-07-28T06:19:35
155,008,334
1,139
90
MIT
2023-09-08T16:54:45
2018-10-27T20:53:26
Python
UTF-8
Python
false
false
7,849
py
new.py
from __future__ import annotations import datetime import os import string import sys import typing as t from dataclasses import dataclass from itertools import chain from types import ModuleType import black import jinja2 from piccolo import __VERSION__ from piccolo.apps.migrations.auto import ( AlterStatements...
75e663ee0a2a6fcf3724dfdd92fc2ab24a30565c
8f76cee606ca901d6b9c1ecdcadaa172aa861c00
/languages/python/software_engineering_xmlrpcclient.py
96eb298a4d402c1af0c36d4125ee5e523475d5ce
[ "BSD-3-Clause" ]
permissive
uthcode/learntosolveit
b0cdc386ab17dadcefef9867aacc5ef0326b7215
88b1cbfea313fdca50f48573c396bed9ba38c354
refs/heads/master
2023-05-24T14:00:34.115585
2023-05-15T00:18:02
2023-05-15T00:18:02
14,986,557
171
1,714
NOASSERTION
2022-09-13T13:37:07
2013-12-06T15:44:38
Java
UTF-8
Python
false
false
675
py
software_engineering_xmlrpcclient.py
import xmlrpc.client proxy = xmlrpc.client.ServerProxy('http://localhost:9000') # Call expliciting registered function print('dir():',proxy.dir('/')) try: print('list_contents():', proxy.list_contents('/')) except: print('You should use a registered name.') # Call the standard functions registered with serve...
5f4da0f9a025334746123271c3749c80642a669a
d88458a65a173999df390117005fa813735e5fe2
/astroquery/imcce/tests/test_miriade_remote.py
4037850cca07c749fb5cdad8e494b15cd549f71d
[]
permissive
astropy/astroquery
9a2793826229ba4b41ec3607ca77832036a534e9
51316d7417d7daf01a8b29d1df99037b9227c2bc
refs/heads/main
2023-09-01T20:52:41.625935
2023-08-29T23:22:40
2023-08-29T23:22:40
4,787,269
636
365
BSD-3-Clause
2023-09-14T21:56:33
2012-06-25T20:52:07
Python
UTF-8
Python
false
false
647
py
test_miriade_remote.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst import numpy.testing as npt import pytest from .. import core @pytest.mark.remote_data class TestMiriadeClass: def test_ephemerides(self): # check values of Ceres for a given epoch # orbital uncertainty of Ceres is basically zero ...
c5d5070648aa3cbfdbe5d409a9110b8a9699402d
a3c36ea1ad9a13dcaf152cdfed9aebf8ab84f1e1
/RePoE/parser/modules/stat_translations.py
ae42777311eda4a1e08aa895d029589be6939db0
[ "MIT" ]
permissive
brather1ng/RePoE
e976db980de93db34efe8dfdc05673bb4cea6aff
8023a1d696dbddc836c05ac3fcedd072da1767d2
refs/heads/master
2022-10-08T03:37:41.167923
2022-09-06T19:43:56
2022-09-06T19:43:56
76,997,578
278
42
NOASSERTION
2022-08-23T08:22:40
2016-12-20T22:51:10
Python
UTF-8
Python
false
false
3,254
py
stat_translations.py
from PyPoE.poe.file.translations import get_custom_translation_file from RePoE.parser.util import write_json, call_with_default_args, get_stat_translation_file_name from RePoE.parser import Parser_Module def _convert_tags(n_ids, tags, tags_types): f = ["ignore" for _ in range(n_ids)] for tag, tag_type in zip(...
e5aa57a5343b0198c4e1e63d15dafb59d41583a5
010279e2ba272d09e9d2c4e903722e5faba2cf7a
/catboost/spark/catboost4j-spark/core/src/test/python/config.py
cd3c8b838d1d6354736665b42fbcdda4ac15a0b9
[ "Apache-2.0" ]
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
58
py
config.py
CATBOOST_TEST_DATA_DIR = '../../../../../../pytest/data'
d23ab2dbad2521d37cba50da6d858b105cd804dd
22c465bfe12ccff5e6bb8cd072436bb0697d538a
/ssod/utils/vars.py
49da8fdef9932072a28ea405a29caa743ca71401
[]
no_license
ligang-cs/PseCo
4c2391961668f8882e5bc998352494f45a48234f
33b06eeebaf456213f7c2b0cb25122b81fa50897
refs/heads/master
2023-05-24T03:15:47.279723
2022-08-26T05:37:57
2022-08-26T05:37:57
514,835,957
119
20
null
null
null
null
UTF-8
Python
false
false
1,076
py
vars.py
import re from typing import Union pattern = re.compile("\$\{[a-zA-Z\d_.]*\}") def get_value(cfg: dict, chained_key: str): keys = chained_key.split(".") if len(keys) == 1: return cfg[keys[0]] else: return get_value(cfg[keys[0]], ".".join(keys[1:])) def resolve(cfg: Union[dict, list], ba...