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
cd925eff3cbd9ad5d9a16f17279d7cab57166259
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/concord232/alarm_control_panel.py
de5d4495a85e3f7321f8aed3c039c22d969e5ab9
[ "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
4,646
py
alarm_control_panel.py
"""Support for Concord232 alarm control panels.""" from __future__ import annotations import datetime import logging from concord232 import client as concord232_client import requests import voluptuous as vol import homeassistant.components.alarm_control_panel as alarm from homeassistant.components.alarm_control_pan...
04e9ff7b339f6814b4e8af949e8c420269cff122
b049a961f100444dde14599bab06a0a4224d869b
/sdk/python/pulumi_azure_native/datadog/__init__.py
b2fae64eecb8d38abc136a32e4bdd4e750d3024d
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
pulumi/pulumi-azure-native
b390c88beef8381f9a71ab2bed5571e0dd848e65
4c499abe17ec6696ce28477dde1157372896364e
refs/heads/master
2023-08-30T08:19:41.564780
2023-08-28T19:29:04
2023-08-28T19:29:04
172,386,632
107
29
Apache-2.0
2023-09-14T13:17:00
2019-02-24T20:30:21
Python
UTF-8
Python
false
false
790
py
__init__.py
# coding=utf-8 # *** WARNING: this file was generated by pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from .. import _utilities import typing # Export this package's modules as members: from ._enums import * from .get_monitor import * from .get_monitor_default_key import...
9f642f65537d7987c37a58f30355132bb66140ce
b347bc4b850dee4a8a9a171b563a3f31230ce1c7
/sktime/forecasting/trend.py
a1168dcfc9059fe84bf5f9a02977dee3d7799016
[ "BSD-3-Clause" ]
permissive
sktime/sktime
5963962df338c5931a2f9f1794d1203c50ddc27e
70b2bfaaa597eb31bc3a1032366dcc0e1f4c8a9f
refs/heads/main
2023-08-22T18:20:08.022950
2023-08-22T15:24:39
2023-08-22T15:24:39
156,401,841
1,117
268
BSD-3-Clause
2023-09-14T20:44:21
2018-11-06T15:08:24
Python
UTF-8
Python
false
false
24,799
py
trend.py
# !/usr/bin/env python3 -u # copyright: sktime developers, BSD-3-Clause License (see LICENSE file) """Implements trend based forecasters.""" __author__ = ["tensorflow-as-tf", "mloning", "aiwalter", "fkiraly"] __all__ = ["TrendForecaster", "PolynomialTrendForecaster", "STLForecaster"] import pandas as pd from sklearn....
63b3e2265f65d2ac45a2c3c31e851317d9134618
8f267fe1157904023004aa1fcee8cdcaf1d69f74
/tempest/api/volume/admin/test_volume_services_negative.py
bf39be5ada9eafdf91d7f014460c26549c6b0fd5
[ "Apache-2.0" ]
permissive
openstack/tempest
a65737f3e62d4ebeb7e387feac7bcc636d3f5fe0
3932a799e620a20d7abf7b89e21b520683a1809b
refs/heads/master
2023-08-28T15:04:21.241805
2023-08-28T10:16:57
2023-08-28T10:16:57
2,356,406
270
407
Apache-2.0
2022-06-29T15:52:45
2011-09-09T15:56:02
Python
UTF-8
Python
false
false
3,274
py
test_volume_services_negative.py
# Copyright 2018 FiberHome Telecommunication Technologies CO.,LTD # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LI...
49ab8fd507053a7b7572439d33e32c8de6da018c
2989f47a57cf23935a159180283463bc92d0ac18
/nalaf/features/relations/path.py
6e4a54d87c56ce441408df6a512e324d28bd096e
[ "Apache-2.0" ]
permissive
Rostlab/nalaf
a5d9fa7931242c8b757064da4870a176a6364994
f266480174107d5c8fbff0f4431b2bb54565907e
refs/heads/develop
2022-12-13T22:08:56.464434
2021-06-02T11:32:07
2021-06-02T11:32:07
33,038,465
112
29
Apache-2.0
2022-12-08T05:12:45
2015-03-28T15:27:20
Python
UTF-8
Python
false
false
14,691
py
path.py
from nalaf.features.relations import EdgeFeatureGenerator from nalaf.features.relations import TokenFeatureGenerator from nltk.stem import PorterStemmer from nalaf.utils.graph import get_path, build_walks class PathFeatureGenerator(EdgeFeatureGenerator): """ The length of the path from entity 1 to entity 2 an...
efa32c877a879adf9082c55a039adb28b9ea4036
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/build/toolchain/win/ml.py
8cc2c9e1ea4281eeffed1108c135a546de97613e
[ "BSD-3-Clause" ]
permissive
chromium/chromium
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
refs/heads/main
2023-08-24T00:35:12.585945
2023-08-23T22:01:11
2023-08-23T22:01:11
120,360,765
17,408
7,102
BSD-3-Clause
2023-09-10T23:44:27
2018-02-05T20:55:32
null
UTF-8
Python
false
false
11,861
py
ml.py
#!/usr/bin/env python3 # Copyright 2018 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Wraps ml.exe or ml64.exe and postprocesses the output to be deterministic. Sets timestamp in .obj file to 0, hence incompatible with link.exe /incremental...
6a5e6ed2b3e0d18eced9299cb08190ef2ad044e2
0933f9ecf49ed89db35cee051a64648886f13e40
/fs/opener/zipfs.py
10c979ccbed03bcc024433058c4ebbc2af29747d
[ "MIT" ]
permissive
PyFilesystem/pyfilesystem2
63da155692594d0405dd237db7d66be243658249
8ed9dc495d8ba2f83fbb2a1145d34d92e13644be
refs/heads/master
2023-09-01T17:05:54.176292
2022-10-18T10:59:07
2022-10-18T10:59:07
70,920,962
1,956
254
MIT
2023-08-24T20:00:22
2016-10-14T15:05:27
Python
UTF-8
Python
false
false
925
py
zipfs.py
# coding: utf-8 """`ZipFS` opener definition. """ from __future__ import absolute_import, print_function, unicode_literals import typing from .base import Opener from .errors import NotWriteable from .registry import registry if typing.TYPE_CHECKING: from typing import Text from ..zipfs import ZipFS # noq...
b0c46d039767ca8d1a39e2909e76b38c086b293a
674caa0d07acfa73a49a8762ca48eccef22e68d8
/parsers/id3v2.py
74399d88da0aa89f83d4a3dc358f223fe4f722dc
[ "MIT" ]
permissive
corkami/mitra
2e52d85d7a6fc158155299e8e5e786260fdc1759
c2a1939465a36b70a0ddf37c18e67c71352d8c9c
refs/heads/master
2023-04-16T23:49:36.719441
2023-04-11T09:37:40
2023-04-11T09:37:40
297,723,842
1,113
80
MIT
2020-11-02T15:54:03
2020-09-22T17:33:10
Python
UTF-8
Python
false
false
1,362
py
id3v2.py
#!/usr/bin/env python3 # MP3 (with an ID3v2.3/4 header) from parsers import FType import struct def _7to8(d): b3, b2, b1, b0 = struct.unpack('>4B', d[:4]) assert b3 < 0x80 assert b2 < 0x80 assert b1 < 0x80 assert b0 < 0x80 return (((b3 * 0x80 + b2) * 0x80 + b1) * 0x80 + b0) assert _7to8(b"\0\0\0\x7F") == 127...
4dc8c09b566dd4e14b3632a65d92896ab71aa180
b5ce6908490cfb8e6a1e1cbe4745d675122ddce0
/questions/day-of-the-week/Solution.py
ada2a7e2cb25f838dc21eaded1b0d221dfad08b1
[ "MIT" ]
permissive
franklingu/leetcode-solutions
8895910f13208e1d8e604100d84c2dd35684cde4
7ad7e5c1c040510b7b7bd225ed4297054464dbc6
refs/heads/master
2023-01-09T01:34:08.097518
2023-01-02T02:05:35
2023-01-02T02:05:35
43,345,677
155
66
MIT
2020-10-02T03:41:36
2015-09-29T04:54:38
Python
UTF-8
Python
false
false
752
py
Solution.py
""" Given a date, return the corresponding day of the week for that date. The input is given as three integers representing the day, month and year respectively. Return the answer as one of the following values {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"}.   Example 1: Input: day = 3...
66f6fef98450286231290b0ce89e0ce80851cb32
cad91ae76d2746a6c28ddda0f33a58f9d461378f
/PyTorch/DrugDiscovery/MoFlow/moflow/model/model.py
83e39950fccd78648193047b50b5d78c4222cb30
[ "MIT", "Apache-2.0" ]
permissive
NVIDIA/DeepLearningExamples
fe677521e7e2a16e3cb0b77e358f9aab72f8c11a
a5388a45f71a949639b35cc5b990bd130d2d8164
refs/heads/master
2023-08-31T20:57:08.798455
2023-08-23T10:09:12
2023-08-23T10:09:12
131,881,622
11,838
3,124
null
2023-08-28T16:57:33
2018-05-02T17:04:05
Jupyter Notebook
UTF-8
Python
false
false
10,235
py
model.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
4d939fa18835d34f3096a38b9aa0c08a42d130af
219ac33431182adf338c96d048f1c6edc2374978
/ursina/shaders/normals_shader.py
c153c47b7d12904c19338c960cbc2e078e500474
[ "MIT" ]
permissive
pokepetter/ursina
bd1b48f0bd58f53bfbf7c3505d7d80ea54744a0b
d369088aad31ef162caa8528547e45ca98c06265
refs/heads/master
2023-08-18T12:57:19.582711
2023-08-17T11:08:13
2023-08-17T11:08:13
97,768,581
2,014
464
MIT
2023-09-05T19:40:20
2017-07-19T23:04:19
Python
UTF-8
Python
false
false
1,309
py
normals_shader.py
from ursina import * normals_shader = Shader(name='normals_shader',language=Shader.GLSL, vertex = ''' #version 140 uniform mat4 p3d_ModelViewProjectionMatrix; uniform mat4 p3d_ModelMatrix; in vec4 p3d_Vertex; in vec3 p3d_Normal; out vec3 world_normal; void main() { gl_Position = p3d_ModelViewProjectionMatrix * p...
095ff8589ffe07e29aafdca380d7c45c0d275346
279f415dd1e06c594c6c87deda57e201c73c4542
/test/espnet2/enh/layers/test_conv_utils.py
2341fe316810d27083de3532d532057a110657c5
[ "Apache-2.0" ]
permissive
espnet/espnet
f7ba47271c1a6b1ed606dbbfb04a7f14220bb585
bcd20948db7846ee523443ef9fd78c7a1248c95e
refs/heads/master
2023-08-28T23:43:34.238336
2023-08-23T02:51:39
2023-08-23T02:51:39
114,054,873
7,242
2,244
Apache-2.0
2023-09-14T08:01:11
2017-12-13T00:45:11
Python
UTF-8
Python
false
false
1,984
py
test_conv_utils.py
import pytest import torch from espnet2.enh.layers.conv_utils import conv2d_output_shape, convtransp2d_output_shape @pytest.mark.parametrize("input_dim", [(10, 17), (10, 33)]) @pytest.mark.parametrize("kernel_size", [(1, 3), (3, 5)]) @pytest.mark.parametrize("stride", [(1, 1), (1, 2)]) @pytest.mark.parametrize("padd...
36887322f8c2da71ebfe0a287c86b02c2ab32344
ef1def58b933921ccf31bece9fc6eb5f7ffb9a18
/tests/unit/models/test_restrictionschedule_model.py
c44bf604a9ef7d4192dde8d43c39ff40cbda2e4e
[ "Apache-2.0" ]
permissive
roscisz/TensorHive
4b33acd727e0b294a4a12af972c471e1254136aa
5b50245d285618044a9a71c06ea5361a48ad4acb
refs/heads/master
2023-03-10T05:09:08.874394
2022-02-02T11:08:21
2022-02-02T11:08:21
98,513,283
153
26
Apache-2.0
2023-03-01T02:26:54
2017-07-27T08:37:35
Python
UTF-8
Python
false
false
2,425
py
test_restrictionschedule_model.py
import pytest import datetime from tensorhive.models.RestrictionSchedule import RestrictionSchedule from tensorhive.utils.Weekday import Weekday def test_schedule_creation(tables): schedule_expression = '12345' starts_at = datetime.time(8, 0, 0) ends_at = datetime.time(15, 0, 0) schedule = Restrictio...
4c33702ed5059d8ca7e7d05c78d29b08d4de688e
82f96a47af8d7dfea35f18ff57a0527812b016a1
/vendor/github.com/tilt-dev/starlark-lsp/pkg/analysis/builtins.py
590f7108df2879cea1e0af6cd6a41b4aaf4d75ce
[ "Apache-2.0" ]
permissive
tilt-dev/tilt
df987756490e16f4ba5c2785bfcf58a5f33b2a1f
70a53642fd1812fa6d09568a9a86ce320f65787a
refs/heads/master
2023-08-08T00:25:49.726804
2023-08-01T16:43:21
2023-08-01T16:43:21
143,896,900
3,468
175
Apache-2.0
2023-09-05T21:50:09
2018-08-07T16:00:26
Go
UTF-8
Python
false
false
14,835
py
builtins.py
# This file was generated by `make builtins` based on the spec at: # https://raw.githubusercontent.com/google/starlark-go/master/doc/spec.md def abs(x): """`abs(x)` returns the absolute value of its argument `x`, which must be an int or float. The result has the same type as `x`.""" pass def any(x) -> bool: """...
67d905ebef985e301c195c1e996c1daf03afae61
77fd60c4b7e7885b2ec4ca5203edf9489f6f37dc
/nipy/algorithms/diagnostics/timediff.py
59903b6b522ef6685c4e909e1f644153d0123225
[ "BSD-3-Clause" ]
permissive
nipy/nipy
156f379adbc07b259e25012662510b1f64aac4c5
7eede02471567487e454016c1e7cf637d3afac9e
refs/heads/master
2023-04-06T14:56:36.303421
2023-04-05T19:40:24
2023-04-05T19:40:24
642,344
275
115
BSD-3-Clause
2023-04-05T19:40:25
2010-05-02T10:00:33
Python
UTF-8
Python
false
false
8,360
py
timediff.py
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ''' Time series diagnostics These started life as ``tsdiffana.m`` - see http://imaging.mrc-cbu.cam.ac.uk/imaging/DataDiagnostics Oliver Josephs (FIL) gave me (MB) the idea of time-point to time-point subt...
8751391d9b1432c298b601468a8b5969fa5812cb
4e2117a4381f65e7f2bb2b06da800f40dc98fa12
/022_Learning_to_See_Moving_Objects_in_the_Dark/01_float32/config.py
b02c2847a30fc22cebc6585dc48271bb7219a678
[ "AGPL-3.0-only", "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
PINTO0309/PINTO_model_zoo
84f995247afbeda2543b5424d5e0a14a70b8d1f1
ff08e6e8ab095d98e96fc4a136ad5cbccc75fcf9
refs/heads/main
2023-09-04T05:27:31.040946
2023-08-31T23:24:30
2023-08-31T23:24:30
227,367,327
2,849
520
MIT
2023-08-31T23:24:31
2019-12-11T13:02:40
Python
UTF-8
Python
false
false
1,305
py
config.py
#!/usr/bin/env python # ---------------------------------------------------------------- # Configurations for Training and Testing Process # Written by Haiyang Jiang # Mar 1st 2019 # ---------------------------------------------------------------- # file lists =========================================================...
5a72fdbc5a5eff739bada859b347b0b111e43cc2
b74320ad439e37dfa48cd8db38dab3b7a20a36ff
/scripts/convert_stable_diffusion_controlnet_to_onnx.py
4af39b28783681c9e6626cd2c003f2b8635224a5
[ "Apache-2.0" ]
permissive
huggingface/diffusers
c82beba1ec5f0aba01b6744040a5accc41ec2493
5eeedd9e3336882d598091e191559f67433b6427
refs/heads/main
2023-08-29T01:22:52.237910
2023-08-28T18:16:27
2023-08-28T18:16:27
498,011,141
17,308
3,158
Apache-2.0
2023-09-14T20:57:44
2022-05-30T16:04:02
Python
UTF-8
Python
false
false
18,463
py
convert_stable_diffusion_controlnet_to_onnx.py
import argparse import os import shutil from pathlib import Path import onnx import onnx_graphsurgeon as gs import torch from onnx import shape_inference from packaging import version from polygraphy.backend.onnx.loader import fold_constants from torch.onnx import export from diffusers import ( ControlNetModel, ...
8091a41e56688c87aa24f617f20a706daebb812c
61004e474b7b2ad0071c16766f0f7874f04f9466
/examples/multicluster-dag-dependencies/pattern-2/dag/dags-for-pattern2-extended/workflow_1_pattern2_extended.py
2465a2af80e3fff89f819c4aeaea090ce0f5d2f3
[ "Apache-2.0" ]
permissive
GoogleCloudPlatform/professional-services
eb79751efae765a8c691a745e520f44f51bd715c
0f51121b945bd74c7f667e74e8861fceda87565c
refs/heads/main
2023-09-05T02:57:33.328973
2023-08-30T14:40:30
2023-08-30T14:40:30
91,730,359
2,626
1,381
Apache-2.0
2023-09-14T20:13:42
2017-05-18T19:29:27
Python
UTF-8
Python
false
false
1,181
py
workflow_1_pattern2_extended.py
# Copyright 2022 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
98d26eb59cfc82549cafd360396a68850bcd0597
61b353117076f502c6d41c7932de55468bd51078
/tests/test_zookeeper.py
dac5cfe7efa28190178707b3bd5885f1ed30901c
[ "Apache-2.0" ]
permissive
confluentinc/cp-docker-images
20a3727732ad7f0a74357d79eb017af577872953
027755d5b25afc4a9ad48dba10108eac8ea56839
refs/heads/5.3.3-post
2023-08-16T10:38:51.869440
2022-11-09T20:25:02
2022-11-09T20:25:02
61,352,799
1,237
896
Apache-2.0
2023-05-02T18:48:59
2016-06-17T07:01:23
Python
UTF-8
Python
false
false
17,195
py
test_zookeeper.py
import os import unittest import utils import time import string CURRENT_DIR = os.path.dirname(os.path.abspath(__file__)) FIXTURES_DIR = os.path.join(CURRENT_DIR, "fixtures", "debian", "zookeeper") MODE_COMMAND = "bash -c 'dub wait localhost {port} 30 && echo stat | nc localhost {port} | grep Mode'" HEALTH_CHECK = "ba...
033313f2d3373c08ac35a6033c793c00af953a2c
89f9da6c0bb99b654f6cb06073fe38f1de2af658
/contrib/populate-fixture-data.py
774a382aa410c926ac85f57f9629c45f2e061783
[ "Apache-2.0" ]
permissive
GerritCodeReview/gerrit
01449252ef9b8ee519ab33661cec1229cce1f92d
19f3f45ee1c6c245070563529889cb511bcd4b99
refs/heads/master
2023-08-10T14:01:21.811497
2023-08-10T10:57:39
2023-08-10T10:58:02
47,751,755
858
210
Apache-2.0
2023-05-12T18:09:50
2015-12-10T09:32:48
Java
UTF-8
Python
false
false
13,802
py
populate-fixture-data.py
#!/usr/bin/env python3 # Copyright (C) 2016 The Android Open Source Project # # 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 ...
4e265ca524541f53815b524d7fefec98a3fa8785
885d3e4017d96ed9fd56545d95ad63895e6dc01d
/rootpy/utils/path.py
d95929d072911a1bc0dff1c43593eaeeffc5f5d9
[ "BSD-3-Clause" ]
permissive
rootpy/rootpy
c3eb7f70d29e4779a0bda8356fb96922bb95537f
3926935e1f2100d8ba68070c2ab44055d4800f73
refs/heads/master
2021-01-17T04:08:51.330059
2019-01-05T17:05:50
2019-01-05T17:05:50
3,276,014
159
60
BSD-3-Clause
2019-12-08T12:35:08
2012-01-26T18:05:37
Python
UTF-8
Python
false
false
923
py
path.py
from __future__ import absolute_import import glob import os import errno __all__ = [ 'expand', 'expand_and_glob', 'expand_and_glob_all', 'mkdir_p', ] def expand(s): return os.path.expanduser(os.path.expandvars(s)) def expand_and_glob(s): return glob.glob(expand(s)) def expand_and_glob_a...
9d43c6580fe8af7a5570074059915038e7195bed
faa390890e17219fd763bd66e66bb6753c692b14
/jaclearn/rl/env.py
321b7fc9240263c0d8454c51795b8cda2ba49ab7
[ "MIT" ]
permissive
vacancy/Jacinle
7170b1c798e4a903186abe74d28e4a7e034ec766
20021790fd32ef1ad40c67fba7582c6db54235da
refs/heads/master
2023-07-20T03:54:46.693649
2023-07-12T21:00:10
2023-07-12T21:00:10
117,910,172
135
275
MIT
2023-01-18T17:41:33
2018-01-18T00:35:55
Python
UTF-8
Python
false
false
4,281
py
env.py
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # File : env.py # Author : Jiayuan Mao # Email : maojiayuan@gmail.com # Date : 02/17/2018 # # This file is part of Jacinle. # Distributed under terms of the MIT license. import collections from jacinle.utils.cache import cached_property __all__ = ['RLEnvBase', 'Si...
0383c575dde847f3bbd59fbad8772834cadc578b
23a865de75c38f1208f2e6e990475082f35cd407
/nssmf/routers.py
779811feb08870edd8238133a1e96a16d3f19c9f
[ "Apache-2.0" ]
permissive
free5gmano/free5gmano
c2a19dc9016750570e5deff46267f4cc426eebab
4e2f72a4584a3c1a4bc31eac0952217ceff06a3f
refs/heads/master
2023-05-25T17:08:01.960558
2023-03-31T05:58:47
2023-03-31T05:58:47
232,234,634
107
99
Apache-2.0
2023-05-22T22:17:49
2020-01-07T03:26:49
Python
UTF-8
Python
false
false
1,464
py
routers.py
from rest_framework.routers import Route, DynamicRoute, SimpleRouter class CustomReadOnlyRouter(SimpleRouter): routes = [ # List route. Route( url=r'^{prefix}{trailing_slash}$', mapping={ 'get': 'list', 'post': 'create' }, ...
b35ab4b95bd8ce40391bfa86fe627874e724964f
f594560136416be39c32d5ad24dc976aa2cf3674
/mmdet/apis/inference.py
795fce518c5cf2bcf73c8e84ab40ff0dfea8005c
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
ShiqiYu/libfacedetection.train
bd9eb472c2599cbcb2f028fe7b51294e76868432
dce01651d44d2880bcbf4e296ad5ef383a5a611e
refs/heads/master
2023-07-14T02:37:02.517740
2023-06-12T07:42:00
2023-06-12T07:42:00
245,094,849
732
206
Apache-2.0
2023-06-12T07:42:01
2020-03-05T07:19:23
Python
UTF-8
Python
false
false
8,485
py
inference.py
# Copyright (c) OpenMMLab. All rights reserved. import warnings from pathlib import Path import mmcv import numpy as np import torch from mmcv.ops import RoIPool from mmcv.parallel import collate, scatter from mmcv.runner import load_checkpoint from mmdet.core import get_classes from mmdet.datasets import replace_Ima...
4739d36f5cab0f83cb0b1b1653b2ef6bd90be639
0b134572e3ac3903ebb44df6d4138cbab9d3327c
/app/grandchallenge/algorithms/migrations/0033_job_attempt.py
f4cae94405e2d44f4d342de3c26f10cdf11066e5
[ "Apache-2.0" ]
permissive
comic/grand-challenge.org
660de3bafaf8f4560317f1dfd9ae9585ec272896
dac25f93b395974b32ba2a8a5f9e19b84b49e09d
refs/heads/main
2023-09-01T15:57:14.790244
2023-08-31T14:23:04
2023-08-31T14:23:04
4,557,968
135
53
Apache-2.0
2023-09-14T13:41:03
2012-06-05T09:26:39
Python
UTF-8
Python
false
false
416
py
0033_job_attempt.py
# Generated by Django 3.2.14 on 2022-07-05 10:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("algorithms", "0032_alter_job_time_limit"), ] operations = [ migrations.AddField( model_name="job", name="attempt", ...
95b7eb6b2d99001b3fd1709e674ef85edb9ad96b
bb90ad20468f9fe2039b8c16858bd8eae8bbc050
/doc/generate_config_rst.py
ef7fe6220d2c3e474562b78f8ac293dd3118968b
[ "Apache-2.0" ]
permissive
microsoft/CCF
0997fd81a924d36d775b219720b26b4ff196b18a
2fbf87840b9e8334c141f4a9c9b25aae979b0540
refs/heads/main
2023-09-05T15:39:37.265089
2023-09-05T15:27:25
2023-09-05T15:27:25
180,112,558
687
229
Apache-2.0
2023-09-14T14:28:39
2019-04-08T09:13:04
C++
UTF-8
Python
false
false
5,476
py
generate_config_rst.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache 2.0 License. import os import sys import json import tempfile import filecmp # Generated document is included in existing page, so # start at heading of depth 1 (equivalent to markdown h2.) START_DEPTH = 1 class MinimalRstGenera...
aad4dc1ede0a4a66e66fdd323e2c1d16a2c0afb6
12f0bd77926127cdacc2452d6f9cfed91806b2fe
/idaes/apps/grid_integration/tests/test_backcaster.py
0b8368c7feae9577db7da3ee61fe215d1303a915
[ "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
10,743
py
test_backcaster.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...
a87a2cdbe32ab51b29c20ee18a186003ef629b8f
c3542b98289c1ba85f62d08b5edbe1a3c18f3c80
/snake.py
3c66cc599d4b995d7564f1b1ed1da8749957bbd9
[ "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
3,929
py
snake.py
# SNAKES GAME # Use ARROW KEYS to play, SPACE BAR for pausing/resuming and Esc Key for exiting # Original Author : Sanchit Gangwar # Modified by : Rayan Dutta # Minor changes made to keep the game working. try: import curses from time import sleep from curses import KEY_RIGHT, KEY_LEFT, KEY_UP, KEY_DOWN ...
694ca6d5ce07e3a4254d37eeba1640f1e015613a
a2ca2b43bbc24b5479071033b4ba66442b466c2b
/.local/bin/set-theme
1080af9e430b9dfc5e148b1163b7a980d3463bd5
[ "MIT" ]
permissive
nickjj/dotfiles
12e20c628963a5be02ffe19871bee6130cfb2538
724a4ced674d2bb40f8d0bf1817c46761d1a3100
refs/heads/master
2023-08-30T06:26:30.000292
2023-07-29T21:52:34
2023-07-29T21:53:30
162,295,765
940
279
MIT
2022-05-06T21:56:46
2018-12-18T13:53:57
Vim script
UTF-8
Python
false
false
5,054
set-theme
#!/usr/bin/env python3 import argparse import fileinput import os import re import sys import textwrap from pathlib import Path from subprocess import run, PIPE THEMES = { "gruvbox": { "dark": { "terminal": { "colorScheme": "Gruvbox Dark", "cursorColor": "#ffb261", }, "tmux":...
3d65b4c44a5a4fa569dd08d1fefee4173be8d9cf
5dc77586e3e0f9de1f032fd2ca68494d8e58928f
/great_expectations/datasource/batch_kwargs_generator/subdir_reader_batch_kwargs_generator.py
7e8a620278b20885394537e50d8af576ede8d246
[ "Apache-2.0" ]
permissive
great-expectations/great_expectations
dd7c22e6277d6b08bee3ff38a015e6e8cd434df6
b0290e2fd2aa05aec6d7d8871b91cb4478e9501d
refs/heads/develop
2023-09-04T09:30:26.395518
2023-09-02T00:00:13
2023-09-02T00:00:13
103,071,520
8,931
1,535
Apache-2.0
2023-09-14T19:57:16
2017-09-11T00:18:46
Python
UTF-8
Python
false
false
11,415
py
subdir_reader_batch_kwargs_generator.py
import logging import os from typing import Dict, Iterable from great_expectations.datasource.batch_kwargs_generator.batch_kwargs_generator import ( BatchKwargsGenerator, ) from great_expectations.datasource.types import PathBatchKwargs from great_expectations.exceptions import BatchKwargsError logger = logging.g...
550fdd22eeedaac2d1006e47ad91581bceba71ef
9dd2bc9409bcdd7749cf0bad79092cd204200eb5
/polygon/rest/reference.py
38d15752d7285ac660030ba547c3c8eb1d3fbcc0
[ "MIT" ]
permissive
polygon-io/client-python
b36ccdd380fdf4b9ec344c3e9d43eaab0ce313cc
195d3a2894b979c4ad86c6bd170b674e09c30d9d
refs/heads/master
2023-08-29T12:04:36.823546
2023-08-28T16:19:25
2023-08-28T16:19:25
216,660,192
574
189
MIT
2023-09-11T19:50:33
2019-10-21T20:33:17
Python
UTF-8
Python
false
false
23,755
py
reference.py
from .base import BaseClient from typing import Optional, Any, Dict, List, Union, Iterator from .models import ( MarketHoliday, MarketStatus, Ticker, TickerChangeResults, TickerDetails, TickerNews, TickerTypes, Sort, Order, AssetClass, Locale, Split, Dividend, Div...
02f05b3eb0373a74093d1a07db8458c762cf0b78
5141195cd54aa2dcb7089e110cbe836d1308a01d
/tlm_convert_profile.py
9ce89d53ce3bc663d3fa1fc0dfdabb881d9499fb
[ "BSD-3-Clause" ]
permissive
amaxwell/tlutility
5bafaf390d78c25fc334680f6780b0873e7ce369
7e288057b25316363e1b3beb2d0e453976b2ee22
refs/heads/master
2023-07-05T16:14:03.899143
2023-04-17T04:57:27
2023-04-17T04:57:27
22,581,590
301
27
BSD-3-Clause
2021-09-15T14:04:26
2014-08-03T19:07:29
Objective-C
UTF-8
Python
false
false
3,953
py
tlm_convert_profile.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # This software is Copyright (c) 2009-2016 # Adam Maxwell. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # - Redistributions of source code m...
f8be8405ffe9b5e9251af79f0a03055c66d64b4f
856e9a8afcb81ae66dd998b0d2cc3556c9f315ea
/dexy/reporters/nodegraph/__init__.py
1c43c36c2ada9f5d833ee6c1c64f1c7f9dff279a
[ "MIT" ]
permissive
dexy/dexy
1d5c999830de4663c05a09f4cd00b1628dfc8d46
323c1806e51f75435e11d2265703e68f46c8aef3
refs/heads/develop
2023-06-10T08:02:45.076551
2021-02-28T22:40:41
2021-02-28T22:40:41
1,506,989
141
34
MIT
2020-06-15T17:44:50
2011-03-21T14:48:28
Python
UTF-8
Python
false
false
113
py
__init__.py
import dexy.reporters.nodegraph.d3 import dexy.reporters.nodegraph.text import dexy.reporters.nodegraph.graphviz
f645bc486d09582464794834ff51e42234c252a4
b2d49f04f220d46a7572bf424b6c02c7466786e8
/course/utils.py
d6a972fbc067ca02edb20ad453b3a222b5f69c42
[ "MIT" ]
permissive
inducer/relate
19a7b83e07de63216918d71e875eca53ee8ceb0c
7c28f65ef99a6f05007c518763762aca4504145b
refs/heads/main
2023-08-29T10:32:43.952986
2023-08-28T15:17:16
2023-08-28T18:40:16
20,311,659
352
138
null
2023-09-09T00:20:05
2014-05-29T23:39:42
Python
UTF-8
Python
false
false
45,559
py
utils.py
from __future__ import annotations __copyright__ = "Copyright (C) 2014 Andreas Kloeckner" __license__ = """ 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...
4433e2e892d5a82744045ded297ae6a9cda53b99
af368ad82efda90ca9de73c57f2822aa27a21044
/rigl/experimental/jax/pruning/init_test.py
d066d01c161f89c698fe02fe04d0c2e71dcc68f0
[ "Apache-2.0" ]
permissive
google-research/rigl
e24f05bfd872f31194a047cf1b3a0bfa12ab45aa
d39fc7d46505cb3196cb1edeb32ed0b6dd44c0f9
refs/heads/master
2023-08-25T04:54:29.014303
2023-01-13T13:40:32
2023-01-26T17:47:13
224,050,000
324
61
Apache-2.0
2022-07-04T22:02:04
2019-11-25T22:03:16
Python
UTF-8
Python
false
false
8,068
py
init_test.py
# coding=utf-8 # Copyright 2022 RigL 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 agree...
e1000982b953f148f8b16a46d4d1c80f1ef5bb58
a3c44a5f34c8fd2c26ddcc7593e265035a847c7e
/cuda_functions/nms_3D/pth_nms.py
3639b5bddb1655de0220aa066253ad21b4fd98db
[ "Apache-2.0" ]
permissive
MIC-DKFZ/medicaldetectiontoolkit
2531b3342305428a0499018563e1e2eab1cf86ef
6753237cc4bae558a94b919735d545a2de075e07
refs/heads/master
2023-07-26T00:34:00.406394
2022-04-04T08:29:54
2022-04-04T08:29:54
152,747,947
714
180
Apache-2.0
2023-07-18T12:33:26
2018-10-12T12:34:57
Python
UTF-8
Python
false
false
812
py
pth_nms.py
import torch from ._ext import nms def nms_gpu(dets, thresh): """ dets has to be a tensor """ scores = dets[:, -1] order = scores.sort(0, descending=True)[1] dets = dets[order].contiguous() keep = torch.LongTensor(dets.size(0)) num_out = torch.LongTensor(1) nms.gpu_nms(keep, num_out, dets, thresh)...
07dc554743359a3b9175ff0c823bf6531e8675ab
a28d672c50faf9632983287d206e8691282cab51
/basicsr/archs/basicvsr_arch.py
ed7b824eae108a9bcca57f1c14dd0d8afafc4f58
[ "Apache-2.0" ]
permissive
XPixelGroup/BasicSR
42cf240fbc91bee10cfa12930ab86820969e854c
033cd6896d898fdd3dcda32e3102a792efa1b8f4
refs/heads/master
2023-06-07T15:16:21.940587
2023-02-02T07:07:47
2023-02-02T07:07:47
130,259,654
2,088
300
Apache-2.0
2023-09-14T00:50:17
2018-04-19T18:58:00
Python
UTF-8
Python
false
false
12,595
py
basicvsr_arch.py
import torch from torch import nn as nn from torch.nn import functional as F from basicsr.utils.registry import ARCH_REGISTRY from .arch_util import ResidualBlockNoBN, flow_warp, make_layer from .edvr_arch import PCDAlignment, TSAFusion from .spynet_arch import SpyNet @ARCH_REGISTRY.register() class BasicVSR(nn.Modu...
1078f30357bdce1417a9f9f7f31e4f61488877d0
68a76875beffd7636bb6913f8e97b83b1638a3cb
/flaskshop/plugin/models.py
95a0babc484ad41e42cacc1cfe78771c8dc1bf92
[]
permissive
hjlarry/flask-shop
57d0d7f4ee82753041bdfbbcdd8c75517cffffc3
3ef48ed3b1899438df9ca9ae4a8ca8c722eab1f7
refs/heads/master
2023-07-20T07:19:13.168919
2023-07-16T09:35:18
2023-07-16T09:35:18
137,964,415
257
117
BSD-3-Clause
2023-07-16T09:35:19
2018-06-20T01:30:23
Python
UTF-8
Python
false
false
349
py
models.py
from flask import current_app from flaskshop.database import Column, Model, db class PluginRegistry(Model): __tablename__ = "plugin_registry" name = Column(db.String(100), unique=True) enabled = Column(db.Boolean(), default=True) @property def info(self): return current_app.pluggy.plugin...
f7b5b2b6dda36f77a6cb45eef1ab8b8ce9adae7b
1634f33c5021e8465a695fb5244504e2eeeecff5
/kitsune/messages/__init__.py
c67a9c3694ac9c38fa7e34f5a8f483fe2e0877c4
[]
permissive
mozilla/kitsune
fee4b8598eb01f5b4add00f2f010b45e2a6ca901
67ec527bfc32c715bf9f29d5e01362c4903aebd2
refs/heads/main
2023-09-01T21:41:59.076570
2023-08-31T22:34:05
2023-08-31T22:34:05
489,645
1,218
697
BSD-3-Clause
2023-09-14T08:43:19
2010-01-26T18:53:57
Python
UTF-8
Python
false
false
57
py
__init__.py
# The number of threads per page. MESSAGES_PER_PAGE = 20
6f57ad62dcb8c02c509a0ce319de6e525e3081fc
974d04d2ea27b1bba1c01015a98112d2afb78fe5
/test/collective/fleet/static_model_parallel_by_row.py
93c76ea71afb4c415091a1a7fd6bbfef8b073bdd
[ "Apache-2.0" ]
permissive
PaddlePaddle/Paddle
b3d2583119082c8e4b74331dacc4d39ed4d7cff0
22a11a60e0e3d10a3cf610077a3d9942a6f964cb
refs/heads/develop
2023-08-17T21:27:30.568889
2023-08-17T12:38:22
2023-08-17T12:38:22
65,711,522
20,414
5,891
Apache-2.0
2023-09-14T19:20:51
2016-08-15T06:59:08
C++
UTF-8
Python
false
false
4,005
py
static_model_parallel_by_row.py
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
3707464767049dde979c43e11362e2687e75c8cb
33fc96c5fcc983bb312518cfbe766e95173fb895
/setup.py
9a2095b63e9aa556f66aade864a9d021d07c3e22
[ "MIT" ]
permissive
jr-robotics/robo-gym
47439a319a40ed159ebdfed510e98f9e0a9d7611
93386e52d259399e3939dcef0e96fa5208c020e3
refs/heads/master
2022-05-06T07:54:11.917706
2022-03-09T15:02:26
2022-03-09T15:02:26
252,740,567
360
67
MIT
2020-05-26T11:32:49
2020-04-03T13:29:26
Python
UTF-8
Python
false
false
1,064
py
setup.py
import setuptools import sys, os sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'robo_gym')) from version import VERSION setuptools.setup(name='robo-gym', version=VERSION, description='robo-gym: an open source toolkit for Distributed Deep Reinforcement Learning on real and simulated robots.', ...
579c871867222e8fe561647e17f0bb2ba44d339f
34cf89f633059d0e5f2a444992c23278232aa3e3
/stix2/test/v20/test_base.py
18d3a50ab48b2fa71aced4a5ea9619b1c1021693
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unknown-license-reference" ]
permissive
oasis-open/cti-python-stix2
e578fe17e42216bf2635781511be8d0b8612fcc0
f1c1632f3aa916cfa30b0b3625200f01c12dc5ed
refs/heads/master
2023-08-08T17:40:47.992285
2023-06-06T17:51:34
2023-06-06T17:51:34
81,590,907
336
112
BSD-3-Clause
2023-08-17T17:41:02
2017-02-10T17:50:12
Python
UTF-8
Python
false
false
583
py
test_base.py
import datetime as dt import json import pytest import pytz from stix2.base import STIXJSONEncoder def test_encode_json_datetime(): now = dt.datetime(2017, 3, 22, 0, 0, 0, tzinfo=pytz.UTC) test_dict = {'now': now} expected = '{"now": "2017-03-22T00:00:00Z"}' assert json.dumps(test_dict, cls=STIXJSO...
e5f72cc609e301b869f666f0f5218c55d827c4bf
501e0774c35d8fa087e59e72f834cca3da463893
/beaver/tests/test_kinesis_transport.py
dbea972ecd6b0ae92490809766c4ec6c056a0fca
[ "MIT" ]
permissive
python-beaver/python-beaver
c98ba58257b9f651baa6da1213701cfd05a07479
c9b63350c435f1f4c8aff35acd5af6d0d7fbb73f
refs/heads/master
2023-09-01T03:52:08.700279
2023-05-30T01:07:39
2023-05-30T01:07:39
5,171,841
133
48
MIT
2023-08-24T00:42:30
2012-07-24T22:05:06
Python
UTF-8
Python
false
false
5,777
py
test_kinesis_transport.py
# -*- coding: utf-8 -*- import sys if sys.version_info < (2, 7): import unittest2 as unittest else: import unittest import mock import tempfile import logging import beaver from beaver.config import BeaverConfig from beaver.transports import create_transport from beaver.unicode_dammit import unicode_dammit f...
ba99a4218b8a6acee049fd3c2e9ef71794961369
0841643267b9fc1478f6e3d21bfccb17aba67af6
/gs_quant/backtests/data_sources.py
21f88beec244b46358640e258a9e1598ae11235f
[ "Apache-2.0" ]
permissive
goldmansachs/gs-quant
55618e0e4e961d4ee50b7393f27c258e2647a957
4cf8ec75c4d85b16ec08371c46cc1a9ede9d72a2
refs/heads/master
2023-08-20T00:55:43.324547
2023-08-16T16:55:22
2023-08-16T16:55:22
161,840,815
2,088
596
Apache-2.0
2023-08-16T16:55:23
2018-12-14T21:10:40
Jupyter Notebook
UTF-8
Python
false
false
6,958
py
data_sources.py
""" Copyright 2019 Goldman Sachs. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
13e41dbe78ab93e0aa2801421ec46742214bec07
64ab5b65afdf8d950c4b56ad2259133b95fc2fec
/zeus/api/resources/__init__.py
67ecb6af9e16bc3040d0ebaec6ff695cffb0e5ef
[ "Apache-2.0" ]
permissive
getsentry/zeus
3e88895443b23278fdb4c25121422ee214630512
6d4a490c19ebe406b551641a022ca08f26c21fcb
refs/heads/master
2023-09-01T14:20:11.396306
2021-04-30T17:08:33
2021-04-30T17:08:33
96,131,433
222
27
Apache-2.0
2022-06-01T03:17:16
2017-07-03T16:39:35
Python
UTF-8
Python
false
false
2,092
py
__init__.py
from .artifact_download import * # NOQA from .auth_index import * # NOQA from .build_artifacts import * # NOQA from .build_bundlestats import * # NOQA from .build_details import * # NOQA from .build_diff import * # NOQA from .build_failures import * # NOQA from .build_file_coverage_tree import * # NOQA from .bu...
f0aac02ebce6f4caed26adc876096572f2cc3e6a
2d05050d0ada29f7680b4df20c10bb85b0530e45
/tests/python/contrib/test_hexagon/topi/test_add_subtract_multiply.py
94cb5ffca543a731a9e313c5d91c028bdaf1cdcc
[ "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
13,076
py
test_add_subtract_multiply.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...
f83f02f00ba1369326a1dfd3cc298dd485c61653
69d8d91954f6623f3674d52d734d589f72383628
/openstack_dashboard/dashboards/admin/volume_types/qos_specs/forms.py
c71f19c3cf33a6be263067d8b8a273844fc916bd
[ "Apache-2.0" ]
permissive
openstack/horizon
d031cebe126c06ad9717bbc52790b3d890e8661e
7896fd8c77a6766a1156a520946efaf792b76ca5
refs/heads/master
2023-09-04T06:57:58.069907
2023-09-01T20:17:10
2023-09-01T20:17:10
2,665,166
1,060
1,175
Apache-2.0
2023-08-07T02:33:44
2011-10-28T13:12:05
Python
UTF-8
Python
false
false
3,337
py
forms.py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
2133c0da23cbabb8996cf130e06ce45171c183a7
a41e1498e3c080f47abd8e8e57157548df3ebbf1
/pandas/tests/series/methods/test_to_csv.py
76ca05a60eb7a02c4d71b4b8c68b410edb2d1fe5
[ "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
6,332
py
test_to_csv.py
from datetime import datetime from io import StringIO import numpy as np import pytest import pandas as pd from pandas import Series import pandas._testing as tm from pandas.io.common import get_handle class TestSeriesToCSV: def read_csv(self, path, **kwargs): params = {"index_col": 0, "header": None} ...
ba7e6b77066f5ecc4de1d423ed52324e72c3fd90
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Spacy/source2.7/spacy/lang/id/norm_exceptions.py
cb168dfeb7f623f79600ccbcb6c474a014a32b38
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
297
py
norm_exceptions.py
# coding: utf8 from __future__ import unicode_literals _exc = { "Rp": "$", "IDR": "$", "RMB": "$", "USD": "$", "AUD": "$", "GBP": "$", } NORM_EXCEPTIONS = {} for string, norm in _exc.items(): NORM_EXCEPTIONS[string] = norm NORM_EXCEPTIONS[string.title()] = norm
1660127964196ace001c495054d720809fe7cba8
f9f074c44b67a11d4630b5e1cc15e016e8d73cc8
/factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/feedback/apps.py
f80490c8f69bcb66142e73ce907a07d2f8bb38f2
[ "MIT" ]
permissive
Azure-Samples/azure-intelligent-edge-patterns
361694680c7e48d3761c5416175788355b684dcd
1d2f42cbf9f21157c1e1abf044b26160dfed5b16
refs/heads/master
2023-05-26T13:15:47.085088
2023-02-28T17:25:53
2023-02-28T17:25:53
186,706,933
193
164
MIT
2023-02-28T17:25:55
2019-05-14T22:02:41
JavaScript
UTF-8
Python
false
false
142
py
apps.py
"""App. """ from django.apps import AppConfig class FeedbackConfig(AppConfig): """App Config.""" name = "vision_on_edge.feedback"
8351357b3aa2ea8fac3a2660b1f46b8d2ee02884
9e1f60a867f66b1f4e4fc84fa4252c581e5e1a36
/Chapter10/service/libs/web/setup.py
830e43c309acc64d08585b312b94b8505fd087eb
[ "MIT" ]
permissive
PacktPublishing/Clean-Code-in-Python
c216e002485b8cd7736f97b59215a3930f35359a
7348d0f9f42871f499b352e0696e0cef51c4f8c6
refs/heads/master
2023-06-10T13:40:33.331115
2023-05-30T17:48:09
2023-05-30T17:48:09
145,072,942
523
181
MIT
2023-05-30T17:48:10
2018-08-17T04:48:38
Python
UTF-8
Python
false
false
450
py
setup.py
from setuptools import find_packages, setup with open("README.rst", "r") as longdesc: long_description = longdesc.read() install_requires = ["sanic"] setup( name="web", description="Library with helpers for the web-related functionality", long_description=long_description, author="Dev team", ...
cfc8dc00c143f4f3809730df3044986b311d24e1
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/refactoring/rename/overloadsAndImplementationInImportedModuleRenameCall/after/a.py
70e147726e0e433745ea08a218370d821edbb8a2
[ "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
27
py
a.py
from b import bar bar("5")
627563a06ce61eec50ae556a3af7942f46d7e9f4
867364dc92d3236f5b42aa4fe82ee69d008d09e5
/insomniac/actions_types.py
7633434c0521fc1b686df9d95cfff6acb57be8ae
[ "MIT" ]
permissive
alexal1/Insomniac
6acde5a6e4b4d50e4e0d4fb233fb2e0f98d52314
03e25aeaae5b38a0e47a4dfd705a3140ff2e8086
refs/heads/master
2023-09-03T16:56:23.546483
2022-09-03T14:21:08
2022-09-03T14:21:08
268,484,843
666
194
MIT
2022-03-01T23:12:28
2020-06-01T09:55:52
Python
UTF-8
Python
false
false
1,608
py
actions_types.py
from collections import namedtuple from enum import unique, Enum GetProfileAction = namedtuple('GetProfileAction', 'user') LikeAction = namedtuple('LikeAction', 'source_name source_type user') FollowAction = namedtuple('FollowAction', 'source_name source_type user') StoryWatchAction = namedtuple('StoryWatchAction', 's...
dc0dd5789f33143ae5f41a01456a23545054c6ac
c5378ac854725eff8e3fcda1f0ce4a36edf660ce
/tests/test_corpus.py
215693fe4b1f1c8602c29eb2a8371455f08f153e
[ "MIT" ]
permissive
jakelever/kindred
e9f49a7f272ea3a9f9fdf5f141eaa9b97e4c7b0f
b6eac60fa40086b4c44e98e0baa34b760310d284
refs/heads/master
2023-03-16T21:09:34.777474
2023-03-12T00:12:05
2023-03-12T00:12:05
88,295,711
158
39
MIT
2022-09-28T12:13:39
2017-04-14T19:14:44
Python
UTF-8
Python
false
false
3,765
py
test_corpus.py
import kindred from collections import Counter def test_corpus_split(): mainCorpus = kindred.Corpus() for i in range(100): doc = kindred.Document(text=str(i)) mainCorpus.addDocument(doc) corpusA,corpusB = mainCorpus.split(0.75) assert len(corpusA.documents) == 75 assert len(corpusB.documents) == 25 seen ...
5cd57ed43bd2c0831f47b4c20a3517552a244dff
420e7db695f82c7cf9d29735df956fa86bc0f14f
/actions/fragment.py
d942e57272a8789dda8771db8f37f55b0e612e17
[ "BSD-3-Clause" ]
permissive
Kkevsterrr/geneva
bf929e3056dc6215bca079f1fd587866907a1cd5
6b091060ed0946b98a2ff9196dfbf93d85cbb28a
refs/heads/master
2023-08-23T22:30:49.750259
2023-05-18T21:24:14
2023-05-18T21:24:14
221,001,148
1,771
168
BSD-3-Clause
2023-05-26T10:04:58
2019-11-11T14:37:39
Python
UTF-8
Python
false
false
10,022
py
fragment.py
import random from actions.action import Action import layers.packet from scapy.all import IP, TCP, fragment MAX_UINT = 4294967295 class FragmentAction(Action): """ Defines the FragmentAction for Geneva - fragments or segments the given packet. """ frequency = 2 def __init__(self, environment_i...
77a1f52811a0a047ad734afed4539d23bf2895f1
dc9ae9fe74432013ad61d6f19d8c825d37de6bf6
/tailer/__init__.py
3c9afdc21cb1d10d5764bedd390ff8b07c0473cc
[ "MIT" ]
permissive
six8/pytailer
5438ad1d002f54b44d4b00701a669e3fefb4e53c
a9e49714b5fd2f84b05ea2bc9de2f9a9fbad013a
refs/heads/master
2023-06-08T17:31:23.468727
2023-06-01T15:37:21
2023-06-01T15:37:21
3,564,015
114
41
MIT
2023-09-06T18:27:05
2012-02-27T19:50:23
Python
UTF-8
Python
false
false
8,700
py
__init__.py
import re import sys import time class Tailer(object): """\ Implements tailing and heading functionality like GNU tail and head commands. """ line_terminators = ("\r\n", "\n", "\r") def __init__(self, file, read_size=1024, end=False): self.read_size = read_size self.file = fi...
1b62d1bcd4fbd655a1303052a3851d9adc87d197
e0ed4496e94263643cedea56bfcdec1140ced8d6
/neupy/plots/hinton.py
829fdd8e8ab858ff6f032b50598e5e2032abfd4d
[ "MIT" ]
permissive
itdxer/neupy
6307666271807bd9028e3e60dd2536a544ed8421
317ed4204b5239e8be2b94a95fe3157c5f9edc65
refs/heads/master
2023-06-13T23:09:36.487633
2023-01-03T21:24:56
2023-01-03T21:24:56
41,323,480
840
206
MIT
2022-12-16T16:32:10
2015-08-24T19:45:11
Python
UTF-8
Python
false
false
3,283
py
hinton.py
import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import Rectangle from neupy.utils import format_data __all__ = ('hinton',) def hinton(matrix, max_weight=None, ax=None, add_legend=True): """ Draw Hinton diagram for visualizing a weight matrix. Parameters ---------- ma...
c3f0eea7a65115a232c769a40ea32c09fbfd87fc
56a77194fc0cd6087b0c2ca1fb6dc0de64b8a58a
/applications/PfemApplication/python_scripts/MainPfem.py
894d643b518da96aca7efade5e390aca72944a2e
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
KratosMultiphysics/Kratos
82b902a2266625b25f17239b42da958611a4b9c5
366949ec4e3651702edc6ac3061d2988f10dd271
refs/heads/master
2023-08-30T20:31:37.818693
2023-08-30T18:01:01
2023-08-30T18:01:01
81,815,495
994
285
NOASSERTION
2023-09-14T13:22:43
2017-02-13T10:58:24
C++
UTF-8
Python
false
false
8,431
py
MainPfem.py
# Import kratos core and applications import KratosMultiphysics import KratosMultiphysics.SolidMechanicsApplication import KratosMultiphysics.PfemApplication import MainSolid class PfemSolution(MainSolid.Solution): def __init__(self, Model, file_parameters = "ProjectParameters.json", file_name = None): ...
719993b0656fc08df2738d79ba89150612953347
952dc66c61966f099756cdb6c2d13b40352f63cc
/zerver/migrations/0209_user_profile_no_empty_password.py
67276d2e9e5c1736ed2fad7064926ccd021d94a0
[ "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
zulip/zulip
5ae6aad35fd9f72996c0a2a9cdd674400966ebf6
965a25d91b6ee2db54038f5df855215fa25146b0
refs/heads/main
2023-08-28T23:43:00.971110
2023-08-28T16:47:09
2023-08-28T19:33:02
43,160,685
20,239
8,996
Apache-2.0
2023-09-14T20:57:47
2015-09-25T16:37:25
Python
UTF-8
Python
false
false
11,109
py
0209_user_profile_no_empty_password.py
# Generated by Django 1.11.24 on 2019-10-16 22:48 from typing import Any, Set, Union import orjson from django.conf import settings from django.contrib.auth.hashers import check_password, make_password from django.db import migrations from django.db.backends.base.schema import BaseDatabaseSchemaEditor from django.db....
aaaaa9b02b499a1c01a56a8d0aae34ceed22360f
6c00499dfe1501294ac56b0d1607fb942aafc2ee
/eventregistry/QueryArticle.py
c090cc313984a545ff3e838df8ce9881a0955860
[ "MIT" ]
permissive
EventRegistry/event-registry-python
dd692729cb5c505e421d4b771804e712e5b6442b
bf3ce144fa61cc195840591bae5ca88b31ca9139
refs/heads/master
2023-07-06T11:04:41.033864
2023-06-23T08:40:31
2023-06-23T08:40:31
40,995,963
176
48
MIT
2020-10-21T09:17:06
2015-08-18T20:29:23
Python
UTF-8
Python
false
false
5,557
py
QueryArticle.py
from eventregistry.Base import * from eventregistry.ReturnInfo import * from typing import List, Union class QueryArticle(Query): def __init__(self, articleUriOrUriList: Union[str, List[str]], requestedResult: Union["RequestArticle", None] = None): """ Class for o...
9afeff51ab3211c08f70d4ef46f4c0d7f8c3bf02
9875d011bf7b478421a4a5a57c6b42c24c069903
/trame/app/demo.py
9a2ab05d4ca2f6b8514438f130c1f5eeca81e159
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Kitware/trame
bc9a0d7d6a845050f4fb386d514bd7e9b7060a21
861b60718798cca2db292e65e6ad39106ba75ccd
refs/heads/master
2023-08-20T22:42:57.129511
2023-08-18T04:25:32
2023-08-18T04:25:32
410,108,340
198
41
NOASSERTION
2023-09-14T15:29:10
2021-09-24T21:38:47
Python
UTF-8
Python
false
false
1,886
py
demo.py
from trame.app import get_server from trame.ui.vuetify import SinglePageLayout from trame.widgets import vuetify, vtk as vtk_widgets class Cone: def __init__(self, server=None): if server is None: server = get_server() if isinstance(server, str): server = get_server(server...
786a9cdbdde0befd53eb54d0528899df54de2bf9
5095200e9ca55cd3a37af34ed44448c02e2a1bb5
/modules/text/text_generation/plato2_en_large/model.py
0b322a7a29ab75d49f16e4199de152fe6b24738a
[ "Apache-2.0" ]
permissive
PaddlePaddle/PaddleHub
8712603ef486c45e83eb0bc5725b0b3ed3ddbbde
b402610a6f0b382a978e82473b541ea1fc6cf09a
refs/heads/develop
2023-07-24T06:03:13.172978
2023-03-28T11:49:55
2023-03-28T11:49:55
162,672,577
12,914
2,239
Apache-2.0
2023-07-06T21:38:19
2018-12-21T06:00:48
Python
UTF-8
Python
false
false
17,119
py
model.py
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
5849ea9ead3853b30f46093b94f1406dbc207295
cfb41f392fac304095a80d08497727c621550c00
/examples/euler_3d/Sedov.py
af665c3d2b21b9cb6c66f5b682609c2065b449bb
[ "BSD-3-Clause" ]
permissive
clawpack/pyclaw
5b7121b63609c2cf9af30e012c9318e3b5244f18
6323b7295b80f33285b958b1a2144f88f51be4b1
refs/heads/master
2023-04-16T23:48:31.519427
2023-03-21T06:08:21
2023-03-21T06:08:21
1,628,711
124
97
BSD-3-Clause
2023-09-12T12:22:30
2011-04-18T03:11:21
Fortran
UTF-8
Python
false
false
3,996
py
Sedov.py
#!/usr/bin/env python # encoding: utf-8 """ Test problem demonstrating a Sedov blast wave problem. A spherical step function energy perturbation is initialized at the center of the domain. This creates an expanding shock wave. This problem evolves the 3D Euler equations. The primary variables are: density (rho...
c3b63baa9d6bbd88c20f949750a3206c4b1a8394
769f6d88fd777459eb60eb1bbb0fba17cb20d963
/Chapter03/create_messages.py
b6ea5807c7af8888a4f54808140e00dbfebf1e97
[ "MIT" ]
permissive
PacktPublishing/Python-Web-Scraping-Cookbook
141379d09abe2c7d8f408858a2eb44ff0fe3ef26
030eb974ba1437b2590b59d38f19fb697bbf9d4c
refs/heads/master
2023-02-16T04:29:49.942243
2023-01-30T04:19:03
2023-01-30T04:19:03
120,744,571
115
105
MIT
2019-10-03T17:38:37
2018-02-08T10:08:48
HTML
UTF-8
Python
false
false
765
py
create_messages.py
from urllib.request import urlopen from bs4 import BeautifulSoup import boto3 import botocore # create sqs client sqs = boto3.client('sqs', "us-west-2") # create / open the SQS queue queue = sqs.create_queue(QueueName="PlanetMoreInfo") print (queue) # read and parse the planets HTML html = urlopen("http://127.0.0.1...
0ea32994be9721c20d6703d1b45e60ade33161f9
529e713a78e82de2ae5d44cfb8ef209e0894d72a
/iterate-through-dictionary-python/sort-values-only.py
8154866db3d68d12ff056c800060b6ff193c5054
[ "MIT" ]
permissive
realpython/materials
cd2f548276be2c82f134ca03eadb1cd279e0f26e
d2d62756d3854f54a12a767f2bf9470486c0ceef
refs/heads/master
2023-09-05T22:12:29.806738
2023-08-31T20:56:28
2023-08-31T20:56:28
132,374,697
4,678
6,482
MIT
2023-09-12T22:22:06
2018-05-06T20:46:18
HTML
UTF-8
Python
false
false
124
py
sort-values-only.py
incomes = {"apple": 5600.00, "orange": 3500.00, "banana": 5000.00} for value in sorted(incomes.values()): print(value)
7d0074dc89ef118903256023d109050d9d0d8ca0
a79c7c01b97e391bcd833a8b7b1dfd7cf982d59c
/tests/dummy_env.py
0c9e5e1a03fdffa335655bc700f8782bcdd16f7e
[ "Apache-2.0" ]
permissive
learnables/cherry
32f3a545563e0446ad3b0243a5cc8225033c0a7f
f4164a53dcc762ac5ce53a761fb54f3f69847f90
refs/heads/master
2023-06-27T14:20:06.027516
2023-06-26T01:34:54
2023-06-26T01:34:54
159,752,575
185
33
Apache-2.0
2023-06-26T01:34:56
2018-11-30T01:46:38
Python
UTF-8
Python
false
false
1,082
py
dummy_env.py
#!/usr/bin/env python3 import random import gym import numpy as np class Dummy(gym.Env): """ A dummy environment that returns random states and rewards. """ def __init__(self): low = np.array([-5, -5, -5, -5, -5]) high = -np.array([-5, -5, -5, -5, -5]) self.observation_space...
0f6acfbf7e7fb9aae4577f03455b0f1ae1bb8b20
9abc1fe64663e658c1926f0e238004ce890437bf
/tester/test_handlers/test_post_info_relation_handler.py
2f9d0fe832cd81a25bf18b950c950c9daeeb9623
[ "MIT" ]
permissive
bukun/TorCMS
e7a8a3a0e4e728e64d2a34c56d694e48e0e3a098
f9afae46a5029d213d5fb60850c93b37b813ae15
refs/heads/master
2023-08-31T05:37:35.861174
2023-08-29T02:41:12
2023-08-29T02:41:12
30,642,412
256
105
MIT
2023-07-20T02:24:20
2015-02-11T10:22:06
CSS
UTF-8
Python
false
false
392
py
test_post_info_relation_handler.py
# -*- coding:utf-8 -*- ''' Test ''' from tornado.testing import AsyncHTTPSTestCase from application import APP class TestPostHandler(AsyncHTTPSTestCase): def get_app(self): ''' Test ''' return APP def test_Rel(self): ''' Test post. ''' respons...
4e7c13a7298a6b997fc3ceddf93f66c506555a8d
b7314f9480634b2f2998c8181d4284d2b52ebba1
/src/python/txtai/cloud/storage.py
ac13b1ecd644acfc5b157027c66c2b7d54f71b24
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license" ]
permissive
neuml/txtai
3ca6fba11126d650ea4f2cf5199011a52ea56e4e
789a4555cb60ee9cdfa69afae5a5236d197e2b07
refs/heads/master
2023-08-31T08:09:31.834178
2023-08-29T15:36:23
2023-08-29T15:36:23
286,301,447
4,804
387
Apache-2.0
2023-09-11T17:12:40
2020-08-09T19:14:59
Python
UTF-8
Python
false
false
2,983
py
storage.py
""" Object storage module """ import os # Conditional import try: from libcloud.storage.providers import get_driver, DRIVERS from libcloud.storage.types import ContainerDoesNotExistError, ObjectDoesNotExistError LIBCLOUD = True except ImportError: LIBCLOUD, DRIVERS = False, None from .base import C...
606e1a95d33afeeefeb28a85d6f8b27d87392b78
c2d48caa5db7e746a38beca625406fcf47379d3c
/src/olympia/scanners/migrations/0051_auto_20221108_1701.py
fdce2685a89b7759860037f432b070f5e5199885
[]
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
734
py
0051_auto_20221108_1701.py
# Generated by Django 3.2.16 on 2022-11-08 17:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('scanners', '0050_auto_20221107_1721'), ] operations = [ migrations.AddField( model_name='scannerqueryrule', name='d...
6e9253116793f8cec4867e97fb38024252f5189e
8ca19f1a31070738b376c0370c4bebf6b7efcb43
/office365/sharepoint/publishing/video/channel.py
d5044a38ee42712566bbc309b5c9b7e7d08c689d
[ "MIT" ]
permissive
vgrem/Office365-REST-Python-Client
2ef153d737c6ed5445ba1e446aeaec39c4ef4ed3
cbd245d1af8d69e013c469cfc2a9851f51c91417
refs/heads/master
2023-09-02T14:20:40.109462
2023-08-31T19:14:05
2023-08-31T19:14:05
51,305,798
1,006
326
MIT
2023-08-28T05:38:02
2016-02-08T15:24:51
Python
UTF-8
Python
false
false
550
py
channel.py
from office365.runtime.client_result import ClientResult from office365.runtime.queries.service_operation import ServiceOperationQuery from office365.sharepoint.base_entity import BaseEntity class VideoChannel(BaseEntity): def get_video_count(self): return_type = ClientResult(self.context) qry = ...
c1a10892556d5a9959a2f6aaafcade20e33d6c7b
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/dts/airbyte/airbyte-integrations/connectors/source-linkedin-pages/source_linkedin_pages/source.py
49ea9e626d14fc14fe3b5cf1e47947e674466dba
[ "MIT", "Elastic-2.0", "Apache-2.0", "BSD-3-Clause" ]
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,349
py
source.py
# # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # from abc import ABC from typing import Any, Iterable, List, Mapping, MutableMapping, Optional, Tuple import requests from airbyte_cdk import AirbyteLogger from airbyte_cdk.models import SyncMode from airbyte_cdk.sources import AbstractSource from airbyte_c...
0a6fd93c95c3ee3d805ac3c6d91eaa59f09dcb1e
bf8d344b17e2ff9b7e38ad9597d5ce0e3d4da062
/ppdet/modeling/backbones/resnet.py
3b9508c49f932ffa34f53a946224ed8d7a3ae564
[ "Apache-2.0" ]
permissive
PaddlePaddle/PaddleDetection
e7e0f40bef75a4e0b6dcbacfafa7eb1969e44961
bd83b98342b0a6bc8d8dcd5936233aeda1e32167
refs/heads/release/2.6
2023-08-31T07:04:15.357051
2023-08-18T02:24:45
2023-08-18T02:24:45
217,475,193
12,523
3,096
Apache-2.0
2023-09-10T10:05:56
2019-10-25T07:21:14
Python
UTF-8
Python
false
false
19,872
py
resnet.py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
a13c98ba70920cc11bd3eae2bad46a5e652ece21
0577a46d8d28e1fd8636893bbdd2b18270bb8eb8
/chromium/third_party/blink/tools/blinkpy/w3c/directory_owners_extractor.py
ede6aa5047c25f82c0b7830525cc16e59af90169
[ "BSD-3-Clause", "Apache-2.0", "LGPL-2.0-or-later", "MIT", "GPL-1.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft" ]
permissive
ric2b/Vivaldi-browser
388a328b4cb838a4c3822357a5529642f86316a5
87244f4ee50062e59667bf8b9ca4d5291b6818d7
refs/heads/master
2022-12-21T04:44:13.804535
2022-12-17T16:30:35
2022-12-17T16:30:35
86,637,416
166
41
BSD-3-Clause
2021-03-31T18:49:30
2017-03-29T23:09:05
null
UTF-8
Python
false
false
8,903
py
directory_owners_extractor.py
# Copyright 2017 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """A limited finder & parser for Chromium OWNERS and DIR_METADATA files. This module is intended to be used within web_tests/external and is informative only. For authoritative us...
25bf794bbea0b621f1c4a884cf56bd31edf9e70d
eb76f82c474a327759888306910ccf584aee7ba1
/ocrd/ocrd/decorators/ocrd_cli_options.py
5723471ce74f433f06a5c8097aab5571ca4f53ac
[ "Apache-2.0" ]
permissive
OCR-D/core
cc2aa388f43823529437924c1d653e48387a180a
5d627396a5dfe9abcf11840608c87c94e1353647
refs/heads/master
2023-08-19T01:39:53.219760
2023-08-18T14:37:02
2023-08-18T14:37:02
112,337,283
112
26
Apache-2.0
2023-09-13T16:12:03
2017-11-28T13:13:24
Python
UTF-8
Python
false
false
1,972
py
ocrd_cli_options.py
import click from click import option, Path from .parameter_option import parameter_option, parameter_override_option from .loglevel_option import loglevel_option from ocrd_network import ( DatabaseParamType, ServerAddressParamType, QueueServerParamType ) def ocrd_cli_options(f): """ Implement MP ...
0c05b4f18fcf53e1a404be87041d3826433543de
554718851656376ad2bceb282de30459167ffeb2
/tests/core/test_state_store.py
bb0d0e50980862ffb79a2d7e61c357edc310c83a
[ "Apache-2.0" ]
permissive
awslabs/sagemaker-debugger
d6ae6a6177a6cb457972772e2b3021e8a9dcc621
37ecf0aaeb24ab2adbe7f0ad664d0e50fa4154f2
refs/heads/master
2023-09-05T05:20:02.458427
2023-04-20T20:48:11
2023-04-20T20:48:11
222,554,670
162
89
Apache-2.0
2023-08-23T14:31:27
2019-11-18T22:12:36
Python
UTF-8
Python
false
false
3,616
py
test_state_store.py
# Standard Library import json import os import shutil # First Party from smdebug.core.state_store import StateStore def setup_test(): try: shutil.rmtree("checkpoints_test_dir/") except: pass # create the checkpoints directory os.mkdir("checkpoints_test_dir/") dir_path = os.path.a...
40c54211850af6316bbfc5b7676be06b9bf7188a
6c4518d19073edefa988253ab978dce804a86fd0
/tests/api_tests/message_format_tests/condenser_api_tests/test_get_witness_schedule.py
dc693008b4071a352102d51b0000eb109c4ce4a4
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
openhive-network/hive
9c975d7f27729424306ae46a8971a1cb50d9bade
faa8b1d33aead9e555b98adb78a5183634d9f8f5
refs/heads/master
2023-08-08T10:29:51.616373
2023-04-04T22:02:30
2023-04-05T16:48:29
248,639,972
348
112
NOASSERTION
2021-08-28T22:34:07
2020-03-20T01:18:32
C++
UTF-8
Python
false
false
434
py
test_get_witness_schedule.py
from hive_local_tools import run_for @run_for('testnet', 'mainnet_5m', 'live_mainnet') def test_get_witness_schedule(node): node.api.condenser.get_witness_schedule() @run_for('testnet', 'mainnet_5m', 'live_mainnet') def test_get_witness_schedule_current(node): node.api.condenser.get_witness_schedule(False) ...
7fd3a88cb3ee9499ab90ebf44232b28f6af49cb3
7e6e932fc366be0258d4ff408b59c1e752fa149e
/adafruit_ble/services/nordic.py
569ace9ccff78cf22b161913baf6a78230401a8d
[ "MIT" ]
permissive
adafruit/Adafruit_CircuitPython_BLE
64ae4dacee391c4be8e81f8758db777173b555ad
f32e7b953ec93f71fcb292074b6d25c7c4355a88
refs/heads/main
2023-05-29T17:28:15.578870
2023-05-14T17:00:32
2023-05-24T01:17:19
163,691,781
114
61
MIT
2023-04-04T15:44:02
2018-12-31T19:05:01
Python
UTF-8
Python
false
false
3,263
py
nordic.py
# SPDX-FileCopyrightText: 2019 Dan Halbert for Adafruit Industries # SPDX-FileCopyrightText: 2019 Scott Shawcroft for Adafruit Industries # # SPDX-License-Identifier: MIT """ `nordic` ==================================================== This module provides Services used by Nordic Semiconductors. """ from __future_...
56f7ea1f140e94d89615cdc941941397019d0243
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/23_设计类/pandas/数据操作/177. 第N高的薪水.py
f68efa011a8095b9c3a632d20866764a65692d76
[]
no_license
981377660LMT/algorithm-study
f2ada3e6959338ae1bc21934a84f7314a8ecff82
7e79e26bb8f641868561b186e34c1127ed63c9e0
refs/heads/master
2023-09-01T18:26:16.525579
2023-09-01T12:21:58
2023-09-01T12:21:58
385,861,235
225
24
null
null
null
null
UTF-8
Python
false
false
727
py
177. 第N高的薪水.py
import pandas as pd # 查询 Employee 表中第 n 高的工资。如果没有第 n 个最高工资,查询结果应该为 null 。 # Employee table: # +----+--------+ # | id | salary | # +----+--------+ # | 1 | 100 | # | 2 | 200 | # | 3 | 300 | # +----+--------+ # n = 2 # # 输出: # +------------------------+ # | getNthHighestSalary(2) | # +----------------------...
ffa8e27952a574214876b1303a1043f300eea0a7
67cc5db4593e2cdd109e589e13fb07074bcff5d9
/tests/enumerator_test.py
6d7658ddaf12840efa2ad3695875db2da6ab2ebc
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
spcl/dace
39849b1488e8f59f880fc0e2572687556c51847d
c5ca99ad37e7ceef6da71026c3c8bb579f64117f
refs/heads/master
2023-08-31T10:45:09.480018
2023-08-30T06:05:10
2023-08-30T06:05:10
172,703,996
402
114
BSD-3-Clause
2023-09-14T15:18:29
2019-02-26T12:05:50
Python
UTF-8
Python
false
false
4,415
py
enumerator_test.py
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. from dace.transformation.estimator.enumeration.brute_force_enumerator import BruteForceEnumerator from dace.transformation.estimator.enumeration.connected_enumerator import ConnectedEnumerator import dace import numpy as np import pytest from ...
37314fceb32fea414bd2f7fabbd6b4ddcd1a617d
f4ceb49e5c7ff44964364a24838cb8049a9e82b1
/pangres/tests/test_yield_chunks.py
216fd54c277ca536ca7f3a5038d9315bb202cf7d
[ "Unlicense" ]
permissive
ThibTrip/pangres
b71eea437b3d5fd38bd8d6c837f1fc14d68d3552
d78296ef6320b89372706fb98251e09ae914f0f7
refs/heads/master
2023-09-01T08:26:25.080628
2023-04-07T19:53:18
2023-04-07T19:53:18
237,447,411
204
16
Unlicense
2023-08-22T21:30:10
2020-01-31T14:33:02
Python
UTF-8
Python
false
false
4,793
py
test_yield_chunks.py
#!/usr/bin/env python # coding: utf-8 # + """ This module tests we can get information back from the upserted chunks when the parameter `yield_chunks` is True. It also checks the integrity of the data. """ import math import pandas as pd from sqlalchemy import INT # local imports from pangres import aupsert, upsert fr...
2926bd2806654ce84f6b2754c7fc6804e2d73136
5511b2316df99a0d5e0fd3d64de964da911ec372
/sdk/python/pulumi_eks/node_group_security_group.py
4902a078650ba7ae6066c9fae1be6cb307518cd0
[ "Apache-2.0" ]
permissive
pulumi/pulumi-eks
b07299454f13beb4e06bfbe1a7a82c8199c564ad
7febe52e349208f0d715bcb8fcf002ac0d3ef8a4
refs/heads/master
2023-09-01T08:07:40.639070
2023-08-22T13:54:04
2023-08-22T13:54:04
145,051,421
150
78
Apache-2.0
2023-09-13T20:15:37
2018-08-17T00:09:55
Java
UTF-8
Python
false
false
8,405
py
node_group_security_group.py
# coding=utf-8 # *** WARNING: this file was generated by pulumi-gen-eks. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities imp...
566916dc8603d8057dde6d75fd3f8d543d32766a
2e3cbdf0b30ad85a049622a5b862976eb59a1730
/fireworks/user_objects/firetasks/tests/test_filepad_tasks.py
9be33fe2f27202f4b82ed627b07b3a1f65623ef0
[ "LicenseRef-scancode-generic-cla", "BSD-2-Clause", "LicenseRef-scancode-hdf5" ]
permissive
materialsproject/fireworks
dc754122374ffce4859b3418a40fc8796879c0e2
579bcf411196ce0bebb4f04ccd2410c091c966cf
refs/heads/main
2023-08-19T00:18:44.331744
2023-08-14T00:43:32
2023-08-14T00:44:39
7,507,548
298
195
NOASSERTION
2023-09-04T08:24:47
2013-01-08T19:18:02
Python
UTF-8
Python
false
false
10,385
py
test_filepad_tasks.py
__author__ = "Kiran Mathew, Johannes Hoermann" import os import unittest from ruamel.yaml import YAML from fireworks.user_objects.firetasks.filepad_tasks import ( AddFilesTask, DeleteFilesTask, GetFilesByQueryTask, GetFilesTask, ) from fireworks.utilities.filepad import FilePad module_dir = os.path....
ec9217bfcbaeca8bb46bfbe1161e1ff26bfd4fa3
ea7e87037d0a859250b3b0768fe657ab8520c8be
/Python/demos/d06_Algorithms01.py
af668bff3cfa9abafc9d2d2bb8e9a5f52e1afd80
[ "BSD-3-Clause" ]
permissive
CERN/TIGRE
80e99d4a49a2af2ec2248db8be3c48142df37134
aa4651538e9bce7d0fee2cd2fcf0baa9fcb2ae19
refs/heads/master
2023-09-03T15:12:02.100453
2023-08-16T09:54:34
2023-08-16T09:54:34
61,034,131
473
194
BSD-3-Clause
2023-09-11T11:41:49
2016-06-13T12:22:21
MATLAB
UTF-8
Python
false
false
2,624
py
d06_Algorithms01.py
##% Demo 6: Algorithms01 # # In this demo the usage of the FDK is explained # # -------------------------------------------------------------------------- # -------------------------------------------------------------------------- # This file is part of the TIGRE Toolbox # # Copyright (c) 2015, University of Bath and ...
95d400b14d8a5bb9c944e8fd401eaf12d6a4510b
3de3dae722829727edfdd6cc3b67443a69043475
/cave/com.raytheon.viz.gfe/localization/gfe/userPython/textUtilities/ModuleAccessor.py
68dcc4fb70ef08709c496e7a577cdf24f9af6630
[ "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
6,455
py
ModuleAccessor.py
## # This software was developed and / or modified by Raytheon Company, # pursuant to Contract DG133W-05-CQ-1067 with the US Government. # # U.S. EXPORT CONTROLLED TECHNICAL DATA # This software product contains export-restricted data whose # export/transfer/disclosure is restricted by U.S. law. Dissemination # to ...
67512510274713a41f9d405e8588d813b8f7a1c1
e26d9f2788dac5e21ddb0620b3bfee5777602a2b
/GayEmpire.bundle/Contents/Libraries/Shared/unidecode/x00b.py
294ea45b8aac3dfe7164a4002e6a3cc8838065f6
[ "MIT" ]
permissive
CodyBerenson/PGMA-Modernized
c0ea594d7de787aeec7365f0c05d2529032f11be
75b3507a73b978fc62f1534fa7fdb0261c91bd3a
refs/heads/master
2023-09-03T11:09:40.487806
2023-08-13T17:33:57
2023-08-13T17:33:57
247,320,844
141
37
MIT
2023-09-14T01:33:53
2020-03-14T17:20:43
Python
UTF-8
Python
false
false
4,019
py
x00b.py
data = ( None, # 0x00 'N', # 0x01 'N', # 0x02 'H', # 0x03 None, # 0x04 'a', # 0x05 'aa', # 0x06 'i', # 0x07 'ii', # 0x08 'u', # 0x09 'uu', # 0x0a 'R', # 0x0b 'L', # 0x0c None, # 0x0d None, # 0x0e 'e', # 0x0f 'ai', # 0x10 None, # 0x11 None, # 0x12 'o', # 0x13 '...
863982ab891b6c39734e11f28565a59a4c7f9bd3
1d363dfbe69b79bc1989251f085060232beb12f5
/thermo/mixture.py
1c2bdd7779ad9563e284f40940c1cef4cd830ea3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
CalebBell/thermo
ec602af2316875692e385287c6010e9f206b1bc3
8622fada3614179d4372192e0031b4a206384c93
refs/heads/master
2023-08-30T05:30:07.552575
2023-06-25T01:35:53
2023-06-25T01:35:53
62,404,647
529
127
MIT
2023-08-11T18:31:21
2016-07-01T16:04:56
Python
UTF-8
Python
false
false
124,962
py
mixture.py
'''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2017, 2018, 2019 Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softw...
7bf3384107a08222429612e930cb4fa0bfdc82f8
10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94
/Python/cherry-pickup.py
c74f6c4ca9505b0f48f4173eef02c317ce2c7dfe
[ "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
1,369
py
cherry-pickup.py
# Time: O(n^3) # Space: O(n^2) class Solution(object): def cherryPickup(self, grid): """ :type grid: List[List[int]] :rtype: int """ # dp holds the max # of cherries two k-length paths can pickup. # The two k-length paths arrive at (i, k - i) and (j, k - j), ...
b50f9e2ce5b9abce71598250d5753b3c579d7a30
19da539e0174f9139477c2105fb3ba75d4b3437e
/test.py
e6055d3c784791e053ef125a2eba53ccbdf03eee
[]
no_license
tg12/FAIG
b9d828960e8af1411b5a8303957bc11bed9f4038
dfa18b0137419f7018c3cf97db173300cb30f658
refs/heads/master
2023-07-11T00:39:46.613092
2023-06-21T17:43:06
2023-06-21T17:43:06
117,366,959
158
78
null
2023-06-21T17:43:07
2018-01-13T18:16:52
Python
UTF-8
Python
false
false
1,941
py
test.py
'''THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OT...
f047415307b42f58dac6c54ced69b6b215084316
80f94bea418d7956df1ba19d4d6a1d7715a94ade
/test/unit/app/tools/test_tool_deserialization.py
e7ce9f8cdf085e10cb2e93569b977d164bef56c8
[ "CC-BY-2.5", "MIT", "CC-BY-3.0", "AFL-3.0" ]
permissive
galaxyproject/galaxy
5748409eb6693b1611f289d164f85e20c3237495
b9ae7a16ba0465995e880ae9701b7e87226b9bab
refs/heads/dev
2023-08-28T22:35:51.248138
2023-08-26T08:02:33
2023-08-26T08:02:33
31,211,061
1,277
1,137
NOASSERTION
2023-09-14T19:39:01
2015-02-23T14:18:06
Python
UTF-8
Python
false
false
1,900
py
test_tool_deserialization.py
import pytest from galaxy.model.unittest_utils import GalaxyDataTestApp from galaxy.tool_util.parser import get_tool_source from galaxy.tool_util.parser.cwl import CwlToolSource from galaxy.tools import create_tool_from_source XML_TOOL = """ <tool id="tool_id" name="xml tool" version="1"/> """ CWL_TOOL = """ cwlVersi...
c519c5e810b792d3b21c9aa75532d8c060623ad1
749af8e81d5ccd2d8714a34434a9c77772df551b
/tools/generate_formula_api.py
8cc08c3f5ed0dffbf62724227b17f098240910d9
[ "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
2,700
py
generate_formula_api.py
#!/usr/bin/env python """ This will generate an API file for formula in dir/statsmodels/formula/api.py It first builds statsmodels in place, then generates the file. It's to be run by developers to add files to the formula API without having to maintain this by hand. usage generate_formula_api /home/skipper/statsmod...
edf12d65ee5503845364c70a5504e2d522c6696a
3f02defc58172182848e8d9a609ae69472abd899
/utils/threat-mvp/mail.py
91db2d4e089326f0167c764100ed01d0a16a42d4
[ "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
OWASP/threat-dragon
d50a6aeb1a3620308b0ce966cb2eab698b0a31d1
3419ec962ac1f9686245da103465be053173f4c1
refs/heads/main
2023-09-01T16:51:38.811499
2023-08-28T15:21:00
2023-08-28T15:21:00
268,796,991
590
196
Apache-2.0
2023-09-12T12:36:53
2020-06-02T12:37:47
JavaScript
UTF-8
Python
false
false
2,074
py
mail.py
# Local SMTP debugging server #python -m smtpd -c DebuggingServer -n localhost:1025 import logger as log import smtplib from socket import gaierror # Read Config file import configparser config = configparser.ConfigParser() config.read('config.ini') def sendErrorEmail(subject, body): try: receiver =...
d70dce075b04a2ed431f328d412cdb87278ffb3a
80d505489f5354d4b29156d6eea7e3516162bcc7
/exercises/concept/plane-tickets/plane_tickets.py
4399791b2235cf53de6094366dbfeb29f9d8de9d
[ "Python-2.0", "BSD-3-Clause", "MIT" ]
permissive
exercism/python
419e89690070eef42fc4c932faa0df0706d5c222
1e71b8a00c8b34c251d785f0a10843efc5234994
refs/heads/main
2023-08-29T03:18:02.845245
2023-08-25T12:50:16
2023-08-25T12:50:16
17,274,389
1,588
1,513
MIT
2023-09-14T20:33:13
2014-02-28T03:48:58
Python
UTF-8
Python
false
false
1,426
py
plane_tickets.py
"""Functions to automate Conda airlines ticketing system.""" def generate_seat_letters(amount): """ Generate a series of seat letters for airline boarding. :param amount: int - amount of seat letters to be generated. :return: generator - generator that yields seat letters. Seat letters are generated ...
1476940f1e8ea369c603ed7be442359e17553fdf
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stubs/fpdf2/fpdf/fonts.pyi
5a894fff627819cff9650fdc84e5a3482ce02be9
[ "Apache-2.0", "MIT" ]
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
58
pyi
fonts.pyi
from typing import Any courier: Any fpdf_charwidths: Any
c47b15212ff7663533da1dfe93f1d5cb08f3f3bb
a46bc4d0750de9c99b86ab45fd2e81eb18362a56
/scripts/process_json.py
e2069872e418e9540637eab709582b1c01b82486
[]
no_license
codebling/vs-code-default-keybindings
e11e8c06855abefd520bbd293575d5ce5ba02ae8
aa3817cbcf50c8f0cf306c74b6129d3cb3e48ada
refs/heads/master
2023-08-21T23:52:14.599573
2023-08-11T22:14:07
2023-08-11T22:14:07
186,748,839
166
90
null
2023-09-14T17:29:47
2019-05-15T04:25:33
Python
UTF-8
Python
false
false
3,834
py
process_json.py
#!/usr/bin/env python3 ''' you don't need to run this script, unless you'd like to update the files here with the latest version of VSCode. usage: 1) install and open the latest VSCode 2) press Ctrl-Shift-P or Cmd-Shift-P to open 'quick start' 3) type 'Open Default Keyboard Shortcuts (JSON)' into the box and press En...
d87e9a27c80892bd847bc0dd5fe23b33e8d9e202
d010607a23cd158210ba9710c3e9d2ab1166600b
/tests/model_selection/test_incremental_warns.py
d03f0a918f626dc421134fe8d11d59a8fedb2545
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
dask/dask-ml
b7ce11e8af2b22d33957ac120b7d1fe597da2c2d
b5640cbb913954a227585cae413d89d6b48f4c0f
refs/heads/main
2023-08-19T22:23:56.835722
2023-03-24T22:04:13
2023-03-24T22:04:13
94,455,745
883
278
BSD-3-Clause
2023-06-27T23:50:02
2017-06-15T15:56:06
Python
UTF-8
Python
false
false
1,534
py
test_incremental_warns.py
import numpy as np import pytest from distributed.utils_test import gen_cluster from dask_ml.datasets import make_classification from dask_ml.model_selection import IncrementalSearchCV, InverseDecaySearchCV from dask_ml.utils import ConstantFunction @gen_cluster(client=True) async def test_warns_decay_rate(c, s, a, ...
10a71577a5127a3fee9b9def9d044c0e7ebb1cc5
620323fc090cebaf7aca456ff3f7fbbe1e210394
/qt__pyqt__pyside__pyqode/QLineEdit__mask.py
12908ac7ef7ba9f0b92a0b7973210d3c50d51399
[ "CC-BY-4.0" ]
permissive
gil9red/SimplePyScripts
bd2733372728bf9b9f00570e90316fa12116516b
773c2c9724edd8827a1dbd91694d780e03fcb05a
refs/heads/master
2023-08-31T04:26:09.120173
2023-08-30T17:22:59
2023-08-30T17:22:59
22,650,442
157
46
null
2023-09-08T17:51:33
2014-08-05T16:19:52
Python
UTF-8
Python
false
false
893
py
QLineEdit__mask.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "ipetrash" # SOURCE: https://doc.qt.io/qt-5/qlineedit.html#inputMask-prop from PyQt5.QtWidgets import QApplication, QLineEdit, QWidget, QFormLayout class MainWindow(QWidget): def __init__(self): super().__init__() self.mask_qt = QLi...
d269606c5b2e0db290a7d18e8ce563307bee4a95
e2ae9cf5244150a4033bb4af9925b9335a756bf1
/lectures/demos/_cached_function.py
80349bb84bb05b8b38d2b7f26c6b2b2f09955587
[ "MIT" ]
permissive
PredictiveScienceLab/uq-course
7ebe2ed316e8e26e5ebdab1dbffd1d52a1d5222d
10d937ccd3bcc10e57fe3653f6fe3d49076b1839
refs/heads/master
2022-04-29T11:10:14.630384
2022-03-30T19:54:50
2022-03-30T19:54:50
115,515,599
236
106
MIT
2020-02-08T19:25:38
2017-12-27T11:45:19
Jupyter Notebook
UTF-8
Python
false
false
1,923
py
_cached_function.py
""" Implementation of a cached function of a numpy array input. Author: Ilias Bilionis Date: 6/6/2014 """ __all__ = ['CachedFunction'] from . import Cache from . import NumpyArrayCache class CachedFunction(object): """ A class representing a cached function. """ # The input cache ...
30cfc586f2e91c811d63899115361ee1c9b6ea5e
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/MybankCreditLoantradePayArSignModel.py
a1b1a4cfc0b9d442f04ee87e5ecfb2ab735cbce6
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
4,540
py
MybankCreditLoantradePayArSignModel.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class MybankCreditLoantradePayArSignModel(object): def __init__(self): self._alipay_open_id = None self._alipay_user_id = None self._biz_scene = None self._sign_param = ...
5bbccd53a5478b80a857a9fb97d04ba53a17813b
b7163b44b679e082fe97cf7fcd0c73b2fcdb38eb
/modules/dbnd/src/dbnd/_vendor/dulwich/lru_cache.py
821da5b804ca28eb5d8e795d6ee9cf404450a838
[ "Apache-2.0" ]
permissive
databand-ai/dbnd
70c95d95e12bfb8ab471a6dce27691ed658cb92d
d59c99dcdcd280d7eec36a693dd80f8c8c831ea2
refs/heads/develop
2023-06-24T18:07:56.524526
2023-05-28T07:57:36
2023-05-28T07:57:36
231,361,064
257
33
Apache-2.0
2023-08-06T08:30:28
2020-01-02T10:42:47
Python
UTF-8
Python
false
false
14,466
py
lru_cache.py
# lru_cache.py -- Simple LRU cache for dulwich # Copyright (C) 2006, 2008 Canonical Ltd # # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it and/or #...
c936fe95eadc92c167dbaf5f67dbd2ec96112289
e22e737d44349a7b976952cc32684b3088b2eabe
/extractive/GraphicalModel/graphicalModel.py
10758e4f3ee3800db4226cf8415220fa4c44ba6f
[]
no_license
Law-AI/summarization
7d70301ecdc9527fc6da2885c2e448a5b3c3485e
77edff66005cca4c897e608db6d47509c9e8d029
refs/heads/aacl
2022-11-25T18:08:49.327287
2022-11-09T07:15:46
2022-11-09T07:15:46
162,098,522
124
51
null
2022-10-10T18:21:15
2018-12-17T08:29:13
Python
UTF-8
Python
false
false
5,890
py
graphicalModel.py
from rouge import Rouge import os import html2text import nltk from collections import OrderedDict import operator import html2text import pycrfsuite import sys import time import crf_train import crf_test import k_mix_model_test FULL_TEXT = '../../FullText_html/' MANUAL_SUM = '../../CaseAnalysis/' MAX_LENGTH_SUMMAR...