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
0e2f34f31939ecb9f845d29bc5b3cbf52b5f14e2
546fa893b9c796371113e6b63ee3c829bc7357ab
/backend-sample-app.py
970c3ab37609a24aca81d19ed806cf708861f432
[ "BSD-2-Clause" ]
permissive
nginxinc/nginx-ldap-auth
d7642da31acfa6c9879dbc5a690fd42ef257e7d1
c98eb555f5faba6b6efdddad4071afa56464d2c5
refs/heads/master
2023-08-24T18:52:56.103986
2023-03-04T11:12:13
2023-03-04T11:12:13
33,192,728
707
242
NOASSERTION
2022-04-19T08:34:42
2015-03-31T15:18:09
Python
UTF-8
Python
false
false
4,783
py
backend-sample-app.py
#!/bin/sh ''''which python >/dev/null && exec python "$0" "$@" # ''' # Copyright (C) 2014-2015 Nginx, Inc. # Example of an application working on port 9000 # To interact with nginx-ldap-auth-daemon this application # 1) accepts GET requests on /login and responds with a login form # 2) accepts POST requests on /lo...
10ca58d860d5f097de5ead3cd1f482ebdae65211
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/govern/data-quality/soda-core/soda/trino/soda/data_sources/trino_data_source.py
f985c3c637ca13a61353cc00913b87fa352ecdec
[ "Apache-2.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-free-unknown" ]
permissive
alldatacenter/alldata
7bc7713c9f1d56ad6b8e59ea03206d1073b7e047
8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6
refs/heads/master
2023-08-05T07:32:25.442740
2023-08-03T13:17:24
2023-08-03T13:17:24
213,321,771
774
250
Apache-2.0
2023-09-06T17:35:32
2019-10-07T07:36:18
null
UTF-8
Python
false
false
4,994
py
trino_data_source.py
# (c) 2022 Walt Disney Parks and Resorts U.S., Inc. # (c) 2022 Soda Data NV. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless requir...
c462c25baa20d1bbd018ac6728013b8d479f58ec
0a616a3ec554abb13e0cd283419a5355e3e23052
/nltk/chat/suntsu.py
347348293e2981d6c1ff11b16384c57f53e0cde9
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "CC-BY-NC-ND-3.0", "LicenseRef-scancode-proprietary-license" ]
permissive
nltk/nltk
79487b84bb96aab4bfc2acde3e12ce34a42f5c73
582e6e35f0e6c984b44ec49dcb8846d9c011d0a8
refs/heads/develop
2023-09-05T04:05:54.002721
2023-06-02T02:45:47
2023-06-02T02:45:47
299,862
11,860
3,171
Apache-2.0
2023-08-02T03:12:33
2009-09-07T10:53:58
Python
UTF-8
Python
false
false
7,045
py
suntsu.py
# Natural Language Toolkit: Sun Tsu-Bot # # Copyright (C) 2001-2023 NLTK Project # Author: Sam Huston 2007 # URL: <https://www.nltk.org/> # For license information, see LICENSE.TXT """ Tsu bot responds to all queries with a Sun Tsu sayings Quoted from Sun Tsu's The Art of War Translated by LIONEL GILES, M.A. 1910 Hos...
af899355e28ae8bc68c726e4cbf12646b922b87f
2bb96128322c0307742c6809f0d8c7eddb09c523
/Enum_tutorial.py
ba3f99f4f4f9572ca9493f793886a5161dfad54f
[ "MIT" ]
permissive
twtrubiks/python-notes
2390c66d25b39f5a73968829702d4fd02ccf1b28
042a651aaa04c07f76c52bc52bace665d0df99d7
refs/heads/master
2023-08-17T11:50:13.122573
2023-08-05T04:14:56
2023-08-05T04:14:56
90,001,387
122
49
MIT
2021-12-21T07:18:06
2017-05-02T06:55:21
Python
UTF-8
Python
false
false
750
py
Enum_tutorial.py
from enum import Enum class Color(Enum): red = 1 green = 2 blue = 3 def example_1(): print('Color.red:', Color.red) print('repr(Color.red):', repr(Color.red)) print('Color(1):', Color(1)) member = Color.red print('member.name:', member.name) print('member.value:', member.value) ...
201665dbfc9fb039fa824d3ea1ad7338ed1b9ab3
c132a3aaf59c676b63bcc4516ab6c5378208e57c
/scale_build/config.py
d2327c460323731f820dc7f62b2f46c5f35a6446
[]
no_license
truenas/scale-build
1e54791ea1e76fb14f2a9faaad5c31c747ba28b6
902db23d3b95b86923b0dccf5e7ebcf29c343dde
refs/heads/master
2023-09-01T06:53:55.037018
2023-08-21T13:04:05
2023-08-21T13:04:05
261,532,179
209
80
null
2023-09-13T18:25:07
2020-05-05T16:56:12
Python
UTF-8
Python
false
false
2,343
py
config.py
from os import environ, cpu_count from time import time from datetime import datetime IDENTITY_FILE_PATH_OVERRIDE_SUFFIX = '_OVERRIDE_IDENTITY_FILE_PATH' _VERS = '24.04-MASTER' def get_env_variable(key, _type, default_value=None): return get_normalized_value(environ.get(key), _type, default_value) def get_norm...
e623768bb9a4e36384a65f3d44de6889203dfbbd
90446a6169fc6e0eee42e50127d84140c45024f3
/funsor/util.py
feb9893fa90a7227bf0d8dc21bd81bf58731c65d
[ "Apache-2.0" ]
permissive
pyro-ppl/funsor
ab13a1fa6c9931143302daa7d3150db308797fdb
ff5e410de720bc1f423f57cf156592fc194b058c
refs/heads/master
2023-08-31T17:16:00.126501
2023-02-06T22:03:09
2023-02-06T22:03:09
168,430,006
230
23
Apache-2.0
2023-08-31T18:34:44
2019-01-30T23:13:39
Python
UTF-8
Python
false
false
9,751
py
util.py
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 import functools import inspect import pprint import re import sys import numpy as np _FUNSOR_BACKEND = "numpy" _JAX_LOADED = False _JAX_COMPILED_FUNCTION_TYPE = None class lazy_property(object): def __init__(self, fn): ...
ecedc0b241e288b39ccdf557648850ab142e5783
f7f3dd55fa7ab6833f3c2d8e457884c127cc203d
/linkml/validators/__init__.py
d8b4af48539746d4b578a393cc2ec1d8c5282897
[ "CC0-1.0" ]
permissive
linkml/linkml
0fe41590ea729f10b1a6e2de4a85c585f284dc22
2354a45838c6207b01ffabc6eda92512c3fb147b
refs/heads/main
2023-08-17T05:59:08.486218
2023-08-11T21:31:59
2023-08-11T21:31:59
348,419,208
198
63
CC0-1.0
2023-09-14T16:04:30
2021-03-16T16:34:43
Python
UTF-8
Python
false
false
202
py
__init__.py
from linkml.validators.jsonschemavalidator import JsonSchemaDataValidator from linkml.validators.sparqlvalidator import SparqlDataValidator __all__ = ["JsonSchemaDataValidator", "SparqlDataValidator"]
247a5bf862bf4ae01e20276731220ee26ff4f289
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/completion/className/function/mypackage/__init__.py
3f9f1aa84468e9ca23bdeb0eb699d4eaa94480f7
[ "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
121
py
__init__.py
def shazam(): pass class MyClass: def shazzy(self): # should not be offered as completion variant pass
37a83c60a873faa80f012cb18ff5400fcb8f5aa6
08e2e43161fa07e568bc22532169acd775ab77ec
/bootcamp/activities/admin.py
19610eeedbc066668f4280989ccf396a261036d0
[ "MIT" ]
permissive
qulc/bootcamp
2e8b7c9c8ff17891096ac391459e620bc0012b07
481395ecf4f53d1e9eae2a947b71728def8ba2c3
refs/heads/master
2023-04-14T15:27:45.278409
2023-04-07T07:12:14
2023-04-07T07:12:14
28,624,940
117
39
MIT
2018-05-17T09:07:04
2014-12-30T09:21:53
Python
UTF-8
Python
false
false
142
py
admin.py
from django.contrib import admin from .models import Activity, Notification admin.site.register(Activity) admin.site.register(Notification)
7b6e813b4fdad04d8169e62a2677b6565a15503c
054b9765fe8442b4bce01dfedb19cff219824af1
/plugins/slack/alerta_slack.py
fbfc918345632a65373101eb79aef9068e710510
[ "MIT" ]
permissive
alerta/alerta-contrib
224bcbf34b338813face6fab180fc1545687820a
4ba3682468fdd5308e964dc0097860edf8c7da15
refs/heads/master
2023-07-25T17:15:09.819639
2023-03-20T23:33:15
2023-03-20T23:33:15
19,289,833
125
210
MIT
2023-07-05T21:05:07
2014-04-29T20:00:45
Python
UTF-8
Python
false
false
10,303
py
alerta_slack.py
import ast import json import logging import os import traceback import requests from alerta.plugins import PluginBase LOG = logging.getLogger('alerta.plugins.slack') try: from jinja2 import Template except Exception as e: LOG.error( 'SLACK: ERROR - Jinja template error: %s, template functionality wi...
75362c1b0fd57ad2d6d5b71ed9ff320dbc0db9d5
3e1ae16ca94c652b5a05a9c150d85d5e909186b7
/experimental/auxiliary_sampling/run_training.py
82d7a355bd0bfaedf41583052a153bf17d914db8
[ "Apache-2.0" ]
permissive
google/edward2
c2c75f2b7a72b96eb9cdef94756c47fc205e3110
ccdb9bfb11fe713bc449f0e884b405f619f58059
refs/heads/main
2023-08-31T10:33:16.291114
2023-07-27T20:36:19
2023-07-27T20:37:25
201,102,332
710
96
Apache-2.0
2023-09-11T20:41:55
2019-08-07T18:01:40
Jupyter Notebook
UTF-8
Python
false
false
11,444
py
run_training.py
# coding=utf-8 # Copyright 2023 The Edward2 Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
23500de4835a88857718efdc8beeeac8c0ba3b0c
1742b6719b988e5519373002305e31d28b8bd691
/sdk/python/pulumi_aws/ec2/subnet.py
d68063510dc8073ec4b3f214032f3cae4d59b885
[ "BSD-3-Clause", "Apache-2.0", "MPL-2.0" ]
permissive
pulumi/pulumi-aws
4f7fdb4a816c5ea357cff2c2e3b613c006e49f1a
42b0a0abdf6c14da248da22f8c4530af06e67b98
refs/heads/master
2023-08-03T23:08:34.520280
2023-08-01T18:09:58
2023-08-01T18:09:58
97,484,940
384
171
Apache-2.0
2023-09-14T14:48:40
2017-07-17T14:20:33
Java
UTF-8
Python
false
false
62,089
py
subnet.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload fr...
3ed9e4f5cea3f2eb08457a6c366303692e56a500
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/mysensors/const.py
7f9326091fe2840c86641f5f92e74f147b5bc1f2
[ "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
5,650
py
const.py
"""MySensors constants.""" from __future__ import annotations from collections import defaultdict from typing import Final, Literal, TypedDict from homeassistant.const import Platform ATTR_DEVICES: Final = "devices" ATTR_GATEWAY_ID: Final = "gateway_id" CONF_BAUD_RATE: Final = "baud_rate" CONF_DEVICE: Final = "devi...
d24a8f70ef35a2e6b64884462264d3bb4c3ceea0
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/template/azure-template/samples/sample_simple.py
f54fb2b05eb829382359b3f23ec378807a28bcbc
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
896
py
sample_simple.py
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # ------------------------------------------------------------------------- """ FILE: ...
017112a37aded2098eaf6c8642a835d550e094b0
eca37de3be161edfeff5e10a88e699b174572d30
/kymatio/scattering2d/backend/torch_backend.py
0ad6d00159eb68bc549bbafca50b18d16988eb72
[ "BSD-3-Clause" ]
permissive
kymatio/kymatio
e9cc782673dcb0fe72a14c673ff547996bec87aa
7e4099539c5c59eea8a76edcd5c940489e8d6cee
refs/heads/main
2023-08-21T22:18:28.591466
2022-06-12T02:03:25
2023-07-05T01:21:41
151,186,173
680
153
BSD-3-Clause
2023-09-11T21:43:35
2018-10-02T01:45:46
Python
UTF-8
Python
false
false
5,620
py
torch_backend.py
import torch from torch.nn import ReflectionPad2d from collections import namedtuple from packaging import version from ...backend.torch_backend import TorchBackend if version.parse(torch.__version__) >= version.parse('1.8'): _fft = lambda x: torch.view_as_real(torch.fft.fft2(torch.view_as_complex(x))) _ifft...
292941662ff5c13a31be035e54a01f637def84b7
2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5
/tools/mo/openvino/tools/mo/front/global_pooling_to_reduce.py
eb3dc77c1b791139dac78c6d5fbb1f20628d84b8
[ "Apache-2.0" ]
permissive
openvinotoolkit/openvino
38ea745a247887a4e14580dbc9fc68005e2149f9
e4bed7a31c9f00d8afbfcabee3f64f55496ae56a
refs/heads/master
2023-08-18T03:47:44.572979
2023-08-17T21:24:59
2023-08-17T21:24:59
153,097,643
3,953
1,492
Apache-2.0
2023-09-14T21:42:24
2018-10-15T10:54:40
C++
UTF-8
Python
false
false
2,635
py
global_pooling_to_reduce.py
# Copyright (C) 2018-2023 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import logging as log from openvino.tools.mo.front.rank_decomposer import RankDecomposer from openvino.tools.mo.ops.ReduceOps import ReduceMax, ReduceMean from openvino.tools.mo.ops.range import Range from openvino.tools.mo.ops.rank imp...
f2a2a465eb41dbb53a66666b2c08c038a06e6e10
ea17827a415cb2eb8cc911fb8b13ce4ee8f0d6fe
/src/test/resources/python-code-examples/global_test/file2.py
f3ab20c27de4aebc97addaf99ae7a3fae8029d0b
[ "MIT" ]
permissive
multilang-depends/depends
835eaedfdac2dea25d3318605ce3ebb8017a2e09
933150b0263ad30b633314eba66a29037ef6e884
refs/heads/master
2023-05-12T23:57:20.221231
2023-05-10T05:05:35
2023-05-10T05:05:35
169,956,182
191
48
MIT
2023-04-12T23:30:50
2019-02-10T08:08:28
Java
UTF-8
Python
false
false
60
py
file2.py
def bar(): global global_var global_var = 1 pass
1e33581db4b156b9a20bc20bbe53c27ef36f3496
c50e7eb190802d7849c0d0cea02fb4d2f0021777
/src/networkcloud/azext_networkcloud/tests/unit/test_clustermetricsconfiguration.py
749499dce0011424eeb9e63805d423976a7d3a4a
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Azure/azure-cli-extensions
c1615b19930bba7166c282918f166cd40ff6609c
b8c2cf97e991adf0c0a207d810316b8f4686dc29
refs/heads/main
2023-08-24T12:40:15.528432
2023-08-24T09:17:25
2023-08-24T09:17:25
106,580,024
336
1,226
MIT
2023-09-14T10:48:57
2017-10-11T16:27:31
Python
UTF-8
Python
false
false
4,574
py
test_clustermetricsconfiguration.py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Tests custom CLI code for Cluster metricsconfiguration commands. # ...
22f7e9cff1ccb10c217f4391043c05044f7a4882
8c39ba92cc71ff78242477d3256f6ee3daa872c7
/conans/test/integration/remote/token_refresh_test.py
46ecbd0eef9e8bbe555fa43a8b37585f6e5c99ff
[ "MIT" ]
permissive
conan-io/conan
eb4427e534a0edbb1fb06c753d5d9587faaef93c
bac455d1329b6744cdc41747354a727c9233179f
refs/heads/release/2.0
2023-09-03T18:51:54.345761
2023-09-03T17:30:43
2023-09-03T17:30:43
47,190,624
7,754
1,182
MIT
2023-09-14T15:16:09
2015-12-01T13:17:02
Python
UTF-8
Python
false
false
4,550
py
token_refresh_test.py
import unittest import mock from mock import Mock from conans.client.cache.remote_registry import Remote from conans.client.rest.auth_manager import ConanApiAuthManager from conans.client.rest.rest_client import RestApiClientFactory from conans.model.conf import ConfDefinition from conans.model.recipe_ref import Reci...
18f75beb0898a71312eedc28d20de479eb055b5c
f8dc8b1ef176fd8202681028d2ede2907032a0fa
/fips
8f8a21cd99b7ca7da22cc9d7dd96a24ebe1be55c
[ "MIT" ]
permissive
fungos/cr
48d428845299b8a54b56f3228c88a23706af44e4
0e7fef63555cf73c70e4d9ae42f8a6e9cefb8e69
refs/heads/master
2022-11-17T15:01:46.557651
2022-11-05T20:12:33
2022-11-05T20:12:33
111,479,211
1,447
125
MIT
2022-11-08T12:44:21
2017-11-21T00:44:14
C++
UTF-8
Python
false
false
635
fips
#!/usr/bin/env python """fips main entry""" import os import sys import subprocess proj_path = os.path.dirname(os.path.abspath(__file__)) fips_path = os.path.dirname(proj_path) + '/fips' if not os.path.isdir(fips_path) : print("\033[93m=== cloning fips build system to '{}':\033[0m".format(fips_path)) subprocess...
2c6776630cbdb5ff755a80224e97c84d50235fdf
f0b741f24ccf8bfe9bd1950425d83b6291d21b10
/components/aws/sagemaker/MonitoringSchedule/src/MonitoringSchedule_component.py
58ca97ecec6e598b119719a37eab6c5abdb2de9e
[ "Apache-2.0", "PSF-2.0", "LicenseRef-scancode-python-cwi", "GPL-1.0-or-later", "LicenseRef-scancode-proprietary-license", "MIT", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-other-copyleft", "Unlicense", "Python-2.0", "Li...
permissive
kubeflow/pipelines
e678342b8a325559dec0a6e1e484c525fdcc8ce8
3fb199658f68e7debf4906d9ce32a9a307e39243
refs/heads/master
2023-09-04T11:54:56.449867
2023-09-01T19:07:33
2023-09-01T19:12:27
133,100,880
3,434
1,675
Apache-2.0
2023-09-14T20:19:06
2018-05-12T00:31:47
Python
UTF-8
Python
false
false
6,295
py
MonitoringSchedule_component.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 the Li...
8efd3c4a5248324701f052b0f8dbac39094db413
e5de04caeb8ae7fae9a0c0604aa93008c27569fd
/src/metpy/io/_nexrad_msgs/msg18.py
8c81a5c2dba1a49099b58e4c68426607316abe09
[ "BSD-3-Clause" ]
permissive
Unidata/MetPy
2c92c93173ce2458b54212fa7c18761048a8520e
c7124e6f375eb5810ce49d53c9d5501c2efdfb75
refs/heads/main
2023-08-31T15:37:55.649855
2023-08-30T18:48:58
2023-08-30T18:48:58
1,409,621
1,041
395
BSD-3-Clause
2023-09-14T13:47:18
2011-02-25T04:20:25
Python
UTF-8
Python
false
false
43,236
py
msg18.py
# Copyright (c) 2014,2015 MetPy Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause # flake8: noqa # Generated file -- do not modify descriptions = {"ADAP_FILE_NAME": "NAME OF ADAPTATION DATA FILE", "ADAP_FORMAT": "FORMAT OF ADAPTATION DATA FIL...
84e0f117a6c05d23c06a39b9767130acd96f210a
3ec8780e39eeb329e90d6bd02a8638912fc21a93
/NAS/single-path-one-shot/src/Single/warmup.py
028f519281cd925f7a42ca7e6331e316344edef3
[ "Apache-2.0" ]
permissive
pprp/SimpleCVReproduction
446b50c229bb925016ef09676e6a2e137ebb9217
b2cb05d6f31970354f15fec590f1557a7c92c39e
refs/heads/master
2023-01-21T04:58:35.097090
2023-01-08T14:13:48
2023-01-08T14:13:48
227,360,230
1,186
315
Apache-2.0
2022-10-10T00:23:30
2019-12-11T12:25:06
Python
UTF-8
Python
false
false
2,172
py
warmup.py
# encoding: utf-8 """ @author: liaoxingyu @contact: sherlockliao01@gmail.com """ from bisect import bisect_right import torch # FIXME ideally this would be achieved with a CombinedLRScheduler, # separating MultiStepLR with WarmupLR # but the current LRScheduler design doesn't allow it class WarmupMultiStepLR(to...
9dd40ce604e67a20419f60ca8aa26d42272a80b0
2804432fba5a4fe639d07a207bb01f71e03d9189
/test/cts/tool/CTSConverter/src/nn/specs/V1_1/fully_connected_float_relaxed.mod.py
acee27f5bc96d136f4041fe2462ac8b8fba39428
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
intel/webml-polyfill
5685299e1b6d91a010c5e057685bf010d5646e4f
bd014955c5bcc9dc5465aea06721072f45ab4a75
refs/heads/master
2023-09-01T17:30:55.961667
2023-04-14T01:18:47
2023-04-14T01:18:47
126,892,425
168
75
Apache-2.0
2023-04-14T05:16:41
2018-03-26T21:31:32
Python
UTF-8
Python
false
false
1,163
py
fully_connected_float_relaxed.mod.py
# # Copyright (C) 2018 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 by applicable la...
299ae62a0a6d57643e7e78907d2e3a3a60955cd5
2b5ffa18e7198e45fa77674b96dac8d91159fed7
/djangae/contrib/search/models.py
8bac58ea9508e04c497942af5ea73992d91937f9
[ "BSD-3-Clause" ]
permissive
potatolondon/djangae
73681d0c8302ac216f74bc00b980de368e8d4280
bef308632790bb6f87e71bb91183f57bad6bd149
refs/heads/master
2023-09-01T15:27:51.995232
2023-08-30T14:40:48
2023-08-30T14:40:48
10,217,788
474
155
BSD-3-Clause
2023-02-08T01:05:31
2013-05-22T10:55:55
Python
UTF-8
Python
false
false
3,548
py
models.py
import uuid from django.db import models from gcloudc.db.models.fields.json import JSONField from djangae.contrib.search.document import Document from djangae.contrib.search.constants import WORD_DOCUMENT_JOIN_STRING class DocumentRecord(models.Model): """ 'Document' is intentionally not a model; ...
502727cb958263d98036ff3b2fe1b34f58fd30ad
59bb398c5f23770e4725f35f932f3a5fd013efae
/jwst/associations/lib/constraint.py
2612e815e7c46d48b57c840cffc181053a82f7dc
[ "BSD-2-Clause" ]
permissive
spacetelescope/jwst
9826d86781c6e01aced951882471f8b967fa1f6e
a4a0e8ad2b88249f01445ee1dcf175229c51033f
refs/heads/master
2023-09-04T09:54:04.504036
2023-08-31T20:19:27
2023-08-31T20:19:27
60,551,519
449
106
NOASSERTION
2023-09-14T21:21:33
2016-06-06T18:34:23
Jupyter Notebook
UTF-8
Python
false
false
28,602
py
constraint.py
"""Constraints """ import abc import collections from copy import deepcopy from itertools import chain import logging import re import typing from .process_list import ListCategory, ProcessList from .utilities import ( evaluate, getattr_from_list, is_iterable ) from ..pool import PoolRow __all__ = [ '...
3b594095d33711c2be57dfd72de77470b0a91b72
7d29d9368fbf3a1b10e2ec12c5e2d1692c4a4f6e
/tools/xcframework_processor_tool/xcframework_processor_tool.py
c871cde8a438a5596c8ec05e8e60f8f213a75558
[ "Apache-2.0" ]
permissive
bazelbuild/rules_apple
57d61c39d54554b4043e3e5bd9139367df49d441
55cf5c2bec04b05b9ab435e24174834c5681be12
refs/heads/master
2023-08-31T07:30:14.363250
2023-08-30T21:14:51
2023-08-30T21:14:51
86,610,729
449
232
Apache-2.0
2023-09-14T14:41:24
2017-03-29T17:30:02
Starlark
UTF-8
Python
false
false
11,588
py
xcframework_processor_tool.py
# Copyright 2022 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
d35b7443aa71932271d6327ca8c3858d0ff0cebd
cb6d0a660cfcb28ee9e8a1c0266925f8f541edfb
/tools/compactsnoop.py
2b395dec55d07ec78ea922d54e4184d7f9dec450
[ "Apache-2.0" ]
permissive
iovisor/bcc
0e002769364523caeb731216021b0a3c881a723f
ec49363e2e9daec026ee6cae4c5fc316f8fab0ff
refs/heads/master
2023-09-03T22:37:47.238198
2023-08-31T14:44:55
2023-09-01T11:21:30
34,921,116
18,467
3,907
Apache-2.0
2023-09-13T21:22:53
2015-05-01T19:52:32
C
UTF-8
Python
false
false
10,932
py
compactsnoop.py
#!/usr/bin/env python # @lint-avoid-python-3-compatibility-imports # # compactsnoop Trace compact zone and print details including issuing PID. # For Linux, uses BCC, eBPF. # # This uses in-kernel eBPF maps to cache process details (PID and comm) by # compact zone begin, as well as a starting timestamp for calcu...
1a4295a91a07dd9a54f02f1e45c05bdba757d4c3
b347bc4b850dee4a8a9a171b563a3f31230ce1c7
/sktime/datatypes/_panel/_check.py
8203aadcfc3318ce9205dc837df784a8923b5146
[ "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
17,283
py
_check.py
"""Machine type checkers for Series scitype. Exports checkers for Series scitype: check_dict: dict indexed by pairs of str 1st element = mtype - str 2nd element = scitype - str elements are checker/validation functions for mtype Function signature of all elements check_dict[(mtype, scitype)] Parameters --------...
c713a2b666c28433063c2c0732c51c9213af09ed
65bb11770578babd76ffe83e6a6ff7c6d7c0f614
/pymongo/server_api.py
47812818de998b95c7ba91907425e485b40609b8
[ "Apache-2.0" ]
permissive
mongodb/mongo-python-driver
51e4672dd00488d571a70b196e55067daabdf6f8
f2867a9abf277e664b46d3d30dd380e6ae77c9d4
refs/heads/master
2023-08-31T17:55:32.242839
2023-08-29T20:40:15
2023-08-29T20:40:15
108,051
3,303
989
Apache-2.0
2023-09-14T21:40:03
2009-01-15T15:18:06
Python
UTF-8
Python
false
false
6,157
py
server_api.py
# Copyright 2020-present MongoDB, 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 wr...
ef67674861e3a23f78fcc3b2d38c1b58804ed411
ce1c91c33d9b612e97361527e5a974996208c90d
/glue/viewers/common/qt/tool.py
00e2226830ec454970b15eff8579eb1b76fcf9c3
[ "BSD-3-Clause" ]
permissive
glue-viz/glue
5f52faaf91e1ca4822d3983b6a4b9b60e8807f38
1a5c7676c025a1a025068b806f6f90ed53bba543
refs/heads/main
2023-09-04T09:24:00.519833
2023-08-17T09:40:04
2023-08-17T09:40:04
1,768,238
609
149
NOASSERTION
2023-09-13T20:56:14
2011-05-18T20:58:54
Python
UTF-8
Python
false
false
257
py
tool.py
import warnings from glue.utils.error import GlueDeprecationWarning warnings.warn('Importing from glue.viewers.common.qt.tool is deprecated, use glue_qt.viewers.common.tool instead', GlueDeprecationWarning) from glue_qt.viewers.common.tool import * # noqa
c0a31e9c0dfb54d63e3d3c047f3d0e3b0ca4f88e
ea890e0db720028312e4587477aabe15893e5154
/Scenarios/Informative_Image_Selection_FR_Pattern/mlops/common/attach_compute.py
e2c04e42a3d98b3e54940b6130a40d69c09f9856
[ "MIT", "BSD-3-Clause", "LGPL-2.1-or-later", "Apache-2.0" ]
permissive
microsoft/knowledge-extraction-recipes-forms
18a7fcc0f6c13e76985d6e291dbc3b093477fc9d
edded8e8076322684336cc3d90f75859987100cc
refs/heads/master
2023-08-22T13:28:05.257078
2023-07-18T08:14:33
2023-07-18T08:14:33
259,083,417
145
47
MIT
2023-08-02T02:23:03
2020-04-26T16:49:19
Jupyter Notebook
UTF-8
Python
false
false
2,187
py
attach_compute.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. """ Create a compute cluster or return a reference to an existing one """ import sys from logging import getLogger from azureml.core import Workspace from azureml.core.compute import AmlCompute from azureml.core.compute imp...
0e5bd7b3dfd1994b20eadffc318db7d122e0631e
1fc0cc24dfb0231f35a99ae6ced7b01bb2814830
/tests/allure_pytest/acceptance/pytest_pluginmanager/pytest_get_allure_plugin_test.py
24d0cf8125b7bfb475472781e5a5be114f36b03e
[ "Apache-2.0" ]
permissive
allure-framework/allure-python
54dd07bbde954c0a75b47443ea5fa892a730da29
200b7175218f27fef576d77c2ec791d0ea5ebe90
refs/heads/master
2023-08-23T09:14:15.292120
2023-08-08T16:19:36
2023-08-08T16:19:36
79,346,720
672
261
Apache-2.0
2023-08-25T09:58:13
2017-01-18T14:17:16
Python
UTF-8
Python
false
false
709
py
pytest_get_allure_plugin_test.py
from hamcrest import assert_that from tests.allure_pytest.pytest_runner import AllurePytestRunner import allure from allure_commons_test.report import has_test_case from allure_commons_test.result import with_status @allure.feature("Integration") def test_pytest_get_allure_listener_plugin( allure_pytest_runner: ...
84ab1e3946de5685f5d64a32aa3d5734b5fa4ccb
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/config/auth.py
1699a4c850983a3bfebd6afa789604992499a7f7
[ "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
5,044
py
auth.py
"""Offer API to configure Home Assistant auth.""" from typing import Any import voluptuous as vol from homeassistant.components import websocket_api from homeassistant.core import HomeAssistant WS_TYPE_LIST = "config/auth/list" SCHEMA_WS_LIST = websocket_api.BASE_COMMAND_MESSAGE_SCHEMA.extend( {vol.Required("typ...
e87786ab5ae42e93289b80d9f835907d7f3a11c8
518bf342bc4138982af3e2724e75f1d9ca3ba56c
/solutions/0792. Number of Matching Subsequences/0792.py
32e7e18199a9e67d8a9c9b874774f9bdb4bd4f92
[ "MIT" ]
permissive
walkccc/LeetCode
dae85af7cc689882a84ee5011f0a13a19ad97f18
a27be41c174565d365cbfe785f0633f634a01b2a
refs/heads/main
2023-08-28T01:32:43.384999
2023-08-20T19:00:45
2023-08-20T19:00:45
172,231,974
692
302
MIT
2023-08-13T14:48:42
2019-02-23T15:46:23
C++
UTF-8
Python
false
false
715
py
0792.py
class Solution: def numMatchingSubseq(self, s: str, words: List[str]) -> int: root = {} def insert(word: str) -> None: node = root for c in word: if c not in node: node[c] = {'count': 0} node = node[c] node['count'] += 1 for word in words: insert(word) ...
044eafd4995b4e112e42355ccd93496caf0f5190
52a32a93942b7923b7c0c6ca5a4d5930bbba384b
/dojo/tools/gitlab_container_scan/parser.py
0912d2fd2e6d73fa2a7b47dc37e54fa8f9af1733
[ "MIT-open-group", "GCC-exception-2.0", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "LGPL-3.0-only", "GPL-3.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-3.0-or-later", "IJG", "Zlib", "LicenseRef-scancode-proprietary-license", "PSF-2.0", "LicenseRef-scancode-python-cwi...
permissive
DefectDojo/django-DefectDojo
43bfb1c728451335661dadc741be732a50cd2a12
b98093dcb966ffe972f8719337de2209bf3989ec
refs/heads/master
2023-08-21T13:42:07.238370
2023-08-14T18:00:34
2023-08-14T18:00:34
31,028,375
2,719
1,666
BSD-3-Clause
2023-09-14T19:46:49
2015-02-19T17:53:47
HTML
UTF-8
Python
false
false
5,294
py
parser.py
import json import textwrap from dateutil.parser import parse from dojo.models import Finding class GitlabContainerScanParser(object): """ GitLab's container scanning report See more: https://gitlab.com/gitlab-org/security-products/security-report-schemas/-/blob/master/dist/container-scanning-report-form...
03b987b9038e9850ca31058c4c8386dfc2acaa8a
069c2295076c482afadfe6351da5ae02be8e18e6
/django/contrib/gis/geos/point.py
06b266862152ea0f81215ce62de005cb775b9c33
[ "BSD-3-Clause", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later", "Python-2.0.1", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-other-permissive", "Python-2.0" ]
permissive
django/django
5eb557f57053631cd4f566f451e43197309dbeeb
c74a6fad5475495756a5bdb18b2cab2b68d429bc
refs/heads/main
2023-09-01T03:43:44.033530
2023-08-31T08:27:32
2023-08-31T08:27:32
4,164,482
73,530
38,187
BSD-3-Clause
2023-09-14T20:03:48
2012-04-28T02:47:18
Python
UTF-8
Python
false
false
4,781
py
point.py
from ctypes import c_uint from django.contrib.gis import gdal from django.contrib.gis.geos import prototypes as capi from django.contrib.gis.geos.error import GEOSException from django.contrib.gis.geos.geometry import GEOSGeometry class Point(GEOSGeometry): _minlength = 2 _maxlength = 3 has_cs = True ...
fbb91ddc1a771736b604778b373f6f1008ad1f4a
902abf2c8a0ae6147975864802575b5e543ef1e4
/src/ZODB/tests/testDB.py
5b80d8e5689110d2d004473bba5f6e7e96594863
[ "ZPL-2.1" ]
permissive
zopefoundation/ZODB
b4d37dfe232a60dccf226f82276d630148fe43db
0632974df76e90a3f00b45b995bdff0209dd2def
refs/heads/master
2023-09-04T05:26:06.885522
2023-08-01T17:16:24
2023-08-01T17:16:24
7,357,595
629
104
NOASSERTION
2023-08-01T17:16:26
2012-12-28T17:47:39
Python
UTF-8
Python
false
false
14,747
py
testDB.py
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
99fe560983889c5b7d427c3db1d87db1d33e849b
8355bc4e1ad1a863124c1d80d4a00b28ef587b48
/src/probnum/diffeq/odefilter/approx_strategies/_ek.py
353ad0e499385005a8fc0826f0cc9d93ff72a7dc
[ "MIT" ]
permissive
probabilistic-numerics/probnum
af62f04253a08da71174e5c1b7d733deb1914eee
af410278783069542610d16b10ba12d2940a05a6
refs/heads/main
2023-08-31T05:12:08.877238
2023-06-19T20:34:15
2023-06-19T20:34:15
218,856,084
384
56
MIT
2023-09-10T18:52:24
2019-10-31T20:29:11
Python
UTF-8
Python
false
false
3,386
py
_ek.py
"""Extended Kalman filter-based approximation strategies. Make an intractable information operator tractable with local linearization. """ from typing import Optional import numpy as np from probnum import problems from probnum.diffeq.odefilter import information_operators from probnum.diffeq.odefilter.approx_strate...
824fda09cdb3cecc8f2f7ad22c9dfa536eabdd2e
ebb876c645d30d384b78f08842d6fd59b7de8e90
/nematus/shuffle.py
de6ff61f16dec747f222a57e2892213c24031f27
[ "BSD-3-Clause" ]
permissive
EdinburghNLP/nematus
7dab10d263dabc69877034c11882278ef110311b
49d050863bc9644b8c0a9d9ab6e54ccd30f927dd
refs/heads/master
2023-05-28T15:29:50.397105
2022-12-09T09:59:42
2022-12-09T09:59:42
57,130,858
598
203
BSD-3-Clause
2022-05-16T14:37:54
2016-04-26T13:34:49
Python
UTF-8
Python
false
false
18
py
shuffle.py
../data/shuffle.py
893c6c04507d4db2f0d85dbe69618e57ca05278f
9f84d91a8ae3df53b07fe3267992fba00a99ac9e
/test/sampler/test_sampler_base.py
dc8142176bf6245dc9e0ae3cdc5a6c6e69d70283
[ "MIT" ]
permissive
pyg-team/pytorch_geometric
ebea601eae228f3905465b5c2349d3fb3bb5cb26
a52af694b8ce6a80811e20966fe6d08a3e7511fe
refs/heads/master
2023-08-31T04:13:40.943308
2023-08-30T12:48:42
2023-08-30T12:48:42
106,024,057
6,775
1,563
MIT
2023-09-14T17:10:18
2017-10-06T16:03:03
Python
UTF-8
Python
false
false
4,011
py
test_sampler_base.py
import pytest import torch from torch_geometric.sampler.base import ( HeteroSamplerOutput, NumNeighbors, SamplerOutput, ) from torch_geometric.testing import get_random_edge_index from torch_geometric.utils import is_undirected def test_homogeneous_num_neighbors(): with pytest.raises(ValueError, matc...
81e76d3ab4b4f1e84cce0f36600e81426ac8e83c
e7efae2b83216d9621bd93390959d652de779c3d
/airflow/tests/common.py
61bd56eb71f56ac06b0e784e3b77303ad345556d
[ "BSD-3-Clause", "MIT", "BSD-3-Clause-Modification", "Unlicense", "Apache-2.0", "LGPL-3.0-only", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "CC0-1.0" ]
permissive
DataDog/integrations-core
ee1886cc7655972b2791e6ab8a1c62ab35afdb47
406072e4294edff5b46b513f0cdf7c2c00fac9d2
refs/heads/master
2023-08-31T04:08:06.243593
2023-08-30T18:22:10
2023-08-30T18:22:10
47,203,045
852
1,548
BSD-3-Clause
2023-09-14T16:39:54
2015-12-01T16:41:45
Python
UTF-8
Python
false
false
484
py
common.py
# (C) Datadog, Inc. 2010-2018 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import os from datadog_checks.dev import get_docker_hostname HOST = get_docker_hostname() URL = 'http://{}:8080'.format(HOST) AIRFLOW_VERSION = os.getenv('AIRFLOW_VERSION') INSTANCE = {'url': URL, 'tags': ['k...
898659c533d0dd56758d004e20ada71619c61057
a33e380ba70fa915bd3a6199cf88dcfa38ca5fab
/backpack/extensions/secondorder/sqrt_ggn/linear.py
4aecca6f56ba0d9461bc3879dad34feeea903e2a
[ "MIT" ]
permissive
f-dangel/backpack
1c90aaacad4569dd3153342ad68864466389767c
1ebfb4055be72ed9e0f9d101d78806bd4119645e
refs/heads/master
2023-08-14T05:49:31.904383
2023-07-12T18:17:34
2023-07-12T18:17:34
196,406,270
505
61
MIT
2023-09-05T14:06:32
2019-07-11T14:03:56
Python
UTF-8
Python
false
false
495
py
linear.py
"""Contains extension for the linear layer used by ``SqrtGGN{Exact, MC}``.""" from backpack.core.derivatives.linear import LinearDerivatives from backpack.extensions.secondorder.sqrt_ggn.base import SqrtGGNBaseModule class SqrtGGNLinear(SqrtGGNBaseModule): """``SqrtGGN{Exact, MC}`` extension for ``torch.nn.Linear...
664d7e76c92f003ab161b3a8bd36c11b1a1b2c8c
ab40571d5051ad53c0f205fa797ba36eac516d06
/language/xsp/evaluation/official_evaluation.py
e32c2662f7f19a36c56c105db56e07017698f89e
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
google-research/language
e941b1a92ab46d40d8d03bb0c314905cb6902ce2
ac9447064195e06de48cc91ff642f7fffa28ffe8
refs/heads/master
2023-08-24T23:10:13.207294
2023-05-25T20:47:18
2023-05-25T22:29:27
153,201,352
1,567
371
Apache-2.0
2023-07-06T23:03:15
2018-10-16T00:58:14
Python
UTF-8
Python
false
false
19,353
py
official_evaluation.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
a46d4cc76d436ba00b70b12decb2bae7263535ab
aa4c2e6ba174ac8de4b0b053f54a26006f74d682
/fx/profiling_tracer.py
19a0b0546b0c36877e056a28e612f59811f7992b
[ "BSD-3-Clause" ]
permissive
pytorch/examples
cde8a193c6e25e918a16aabf049d887ce3e969e0
13009eff7a80ebcf6ae89ed217d5d176bd3e019d
refs/heads/main
2023-08-28T10:01:58.283401
2023-08-20T05:29:44
2023-08-20T05:29:44
66,424,871
22,842
11,294
BSD-3-Clause
2023-09-14T01:25:01
2016-08-24T03:12:48
Python
UTF-8
Python
false
false
5,966
py
profiling_tracer.py
""" This file demonstrates using a custom FX Tracer to override the behavior of `torch.autograd.profiler.record_function` and make profiler ranges appear in FX-traced code. This is done with Python dynamic patching magic, allowing us to explicitly emit calls to `torch.ops.profiler._record_function_enter/_record_functio...
def974e8d3862c9a79dcf4d38fa0f0c65b4ad2dd
620323fc090cebaf7aca456ff3f7fbbe1e210394
/winapi__windows__ctypes/winapi_get_desktop_icon_list/get_desktop_icon_list.py
b2d7d6de80996c235480500c816591da81377e1c
[ "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
6,709
py
get_desktop_icon_list.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "ipetrash" import struct import ctypes from ctypes.wintypes import POINT, RECT import commctrl from commctrl import ( LVIF_TEXT, LVM_GETITEMTEXT, LVM_GETITEMPOSITION, LVIR_BOUNDS, LVM_GETITEMRECT, ) from win32con import PROCESS_ALL_ACC...
348321e325dc6318f229b7db08fe97fe6cbb49f0
32c1a6b75b73b2fe68d9e33a368754a5860f2f01
/qcengine/programs/tests/test_turbomole.py
e372f2c76e9ecad255471838b8a50ac97dbf5492
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
MolSSI/QCEngine
44d6bbf9a2c8c2c6ea5a0e1ee011d512357d4346
cbec059bb52162c3db7a747d680871749d101f41
refs/heads/master
2023-08-20T15:05:17.353145
2023-08-18T21:06:46
2023-08-18T21:06:46
123,499,436
139
88
BSD-3-Clause
2023-09-09T02:41:01
2018-03-01T22:25:35
Python
UTF-8
Python
false
false
7,091
py
test_turbomole.py
import numpy as np import pytest import qcelemental from qcelemental.testing import compare_values import qcengine as qcng from qcengine.programs.turbomole.harvester import parse_hessian from qcengine.testing import using @pytest.fixture def h2o(): mol = qcelemental.models.Molecule.from_data( """ ...
a083f8bf6107dec3d5be04aa76b1cd9f0e6602e2
105f8bb5f417248b2c56fec113746472cea94f5d
/labs/05_conv_nets_2/solutions/classif_and_loc.py
30625be37c614f000b4ec3ef4c721bd1f6c6731f
[ "MIT", "CC-BY-4.0" ]
permissive
m2dsupsdlclass/lectures-labs
659ce7d8f7a9eb94e776f16a10d0d1df3f037365
a41bdfde52081eaa615d86c46fceeae1c4b1d0cd
refs/heads/master
2023-06-01T20:30:17.669627
2022-12-07T11:20:05
2022-12-07T11:20:05
82,718,394
1,482
674
MIT
2022-03-10T21:34:29
2017-02-21T19:27:20
Jupyter Notebook
UTF-8
Python
false
false
1,891
py
classif_and_loc.py
# test acc: 0.898, mean iou: 0.457, acc_valid: 0.496 # This is by no means the best model; however the lack # of input data forbids us to build much deeper networks def classif_and_loc(num_classes): model_input = Input(shape=(7, 7, 2048)) # For single object classification, the exact spatial information # ...
82eb9e2a81f8ba3bebc3b617e329efc26d385d06
8d44e796eaf0c8e11bbc2a27ef093e97a25b6f4a
/examples/conversational_agent.py
78a084944e0665baa6d703beb509c5bac18f68ff
[ "Apache-2.0" ]
permissive
deepset-ai/haystack
caa5287051d1771395ea624b58097000825bad81
5f1256ac7e5734c2ea481e72cb7e02c34baf8c43
refs/heads/main
2023-09-01T02:41:23.490526
2023-08-31T15:33:12
2023-08-31T15:33:12
221,654,678
10,599
1,558
Apache-2.0
2023-09-14T17:09:42
2019-11-14T09:05:28
Python
UTF-8
Python
false
false
2,511
py
conversational_agent.py
import os from haystack.agents.base import Tool from haystack.agents.conversational import ConversationalAgent from haystack.agents.memory import ConversationSummaryMemory from haystack.nodes import PromptNode, WebRetriever, PromptTemplate from haystack.pipelines import WebQAPipeline from haystack.agents.types import ...
fa9a0c3d5d7f2c61fa524c35ce8dfde83d3be197
6212685234047cbca58be36b97e0414b5d9caa2b
/scanpy/external/pp/__init__.py
50b07c002f7f963afdcd17addd22d5f715c6e9d4
[ "BSD-3-Clause" ]
permissive
scverse/scanpy
139fb1e34bb21c67786020e12129fc9d44634671
0bf043c84b4bf59ad684b69178dddc2a5732c972
refs/heads/master
2023-08-30T06:59:01.154055
2023-08-29T07:26:11
2023-08-29T07:26:11
80,342,493
437
146
BSD-3-Clause
2023-09-14T08:48:01
2017-01-29T11:31:11
Python
UTF-8
Python
false
false
308
py
__init__.py
from ._mnn_correct import mnn_correct from ._bbknn import bbknn from ._dca import dca from ._harmony_integrate import harmony_integrate from ._magic import magic from ._scanorama_integrate import scanorama_integrate from ._hashsolo import hashsolo from ._scrublet import scrublet, scrublet_simulate_doublets
ed944e4a996b4996a8db9e3f4c065adbc5b2c227
3a6a211ea0d32405497fbd6486c490bb147e25f9
/third_party/google-endpoints/endpoints/api_exceptions.py
8ab4e3024d1ac534d610e1872361bd71f25257e4
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
catapult-project/catapult
e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0
53102de187a48ac2cfc241fef54dcbc29c453a8e
refs/heads/main
2021-05-25T07:37:22.832505
2021-05-24T08:01:49
2021-05-25T06:07:38
33,947,548
2,032
742
BSD-3-Clause
2022-08-26T16:01:18
2015-04-14T17:49:05
HTML
UTF-8
Python
false
false
2,601
py
api_exceptions.py
# Copyright 2016 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 a...
a98f0986810f7359ebfc3fdf34f1c5d6fe64eeda
35b6013c1943f37d1428afd2663c8aba0a02628d
/batch/list/list_jobs.py
fabb55aaedc6d1589584cb092fb3d682dbaab35b
[ "Apache-2.0" ]
permissive
GoogleCloudPlatform/python-docs-samples
d2a251805fbeab15d76ed995cf200727f63f887d
44e819e713c3885e38c99c16dc73b7d7478acfe8
refs/heads/main
2023-08-28T12:52:01.712293
2023-08-28T11:18:28
2023-08-28T11:18:28
35,065,876
7,035
7,593
Apache-2.0
2023-09-14T20:20:56
2015-05-04T23:26:13
Jupyter Notebook
UTF-8
Python
false
false
1,221
py
list_jobs.py
# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
843de52173adb9b51378544ad939045ac5ea8025
9a66c86732ab355d3bb2f8c28e9e650dd9ef0eea
/ctfs/RCTF/2018/stringer/exploit.py
5d32e2201c2292068c870f2992b625b2fb370b14
[ "MIT" ]
permissive
sajjadium/ctf-writeups
15ac05decb93f66e1a378e249dd43f689267d3dd
1fed8bd75274fd50981977a845d961ecd7dd99ef
refs/heads/master
2023-05-11T11:05:49.492682
2023-05-06T06:15:13
2023-05-06T06:15:13
132,529,239
116
28
null
null
null
null
UTF-8
Python
false
false
3,481
py
exploit.py
#!/usr/bin/env python from pwn import * def add_string(size, content, is_attack=False): p.recvuntil('choice: ') p.sendline('1') p.recvuntil('please input string length: ') p.sendline(str(size)) if not is_attack: p.recvuntil('please input the string content: ') p.send(content) ...
0ad0417b2b22149e2aff1327c4e6e68aca873972
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/commerce/azure-mgmt-commerce/azure/mgmt/commerce/models/_usage_management_client_enums.py
a1083b2f49004f6ad1fc00d68725c26047e8a5ca
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
930
py
_usage_management_client_enums.py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
7226d97b103974b610d961045896f06573915f50
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/RecoBTag/Skimming/python/btagMC_ttbar_SkimPaths_cff.py
63d40e2ea0caedca7e7d9ee2385d5078222dde3a
[ "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
134
py
btagMC_ttbar_SkimPaths_cff.py
import FWCore.ParameterSet.Config as cms from RecoBTag.Skimming.btagMC_ttbar_cfi import * btagMC_ttbarPath = cms.Path(btagMC_ttbar)
89ee660279036bc64d3e2acf5926b6498a93740d
23895eba556353a116d97a3e9fa60f7ed9c9f693
/Test/Pangram Helper.py
24eb794a145ed69dd4068460183c47bb9da54c90
[ "Apache-2.0" ]
permissive
mekkablue/Glyphs-Scripts
9970200e6b7223be58ff9122dd519af176f210de
fe09b4cf3754bc10c3037c3312a19c1b909a74d6
refs/heads/master
2023-08-28T15:02:21.931491
2023-08-25T17:12:34
2023-08-25T17:12:34
2,517,418
322
108
Apache-2.0
2023-08-15T15:24:50
2011-10-05T07:12:37
Python
UTF-8
Python
false
false
5,052
py
Pangram Helper.py
#MenuTitle: Pangram Helper # -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals __doc__ = """ Helps you write pangrams by displaying which letters are still missing. """ import vanilla from AppKit import NSStringPboardType, NSPasteboard fullAlphabets = ( "abcdefghijklmnopqrstuvwxy...
e7c22ab16acd4c282bcca4d4695481db0947bde8
65f701245abf47c39aa46a56fde46443606a601e
/N2System/kikokugai/ext.py
db62fb900191b5c8c39273f09c7ec3c7f60295ce
[]
no_license
regomne/chinesize
401aaccd744cef245b114f74a8c06f9f8c467519
0c7be6eed8e1a0c5ab7b25024fc5e21125967c7f
refs/heads/master
2023-06-26T06:52:37.530610
2023-06-17T14:49:55
2023-06-17T14:49:55
14,193,455
239
110
null
2023-04-10T09:36:23
2013-11-07T03:43:50
C++
UTF-8
Python
false
false
1,176
py
ext.py
#py3.2 import os path1='0nss' path2='1nss' path3='rubys' def exp(lines): newl=[] i=0 while i<len(lines): if len(lines[i].lstrip())<=1: i+=1 continue elif lines[i].lstrip()[0]>=0x80: newl.append(lines[i]) if len(lines[i+1])>0...
6a60cfd3af776b51538208a4f7709f423020228f
198d9c17c1564dcec45af536af2c54ab2423e398
/pyzx/scripts/circuit_router.py
900fd6882ce5db107cac8785f60e8a284aec4552
[ "Apache-2.0" ]
permissive
Quantomatic/pyzx
6feb6e8da90ee3b91bddfa49a64548d17ea29b7e
41b8be280bec7de042eff2cbf0986ee274b892e1
refs/heads/master
2023-08-19T00:22:44.229049
2023-08-18T15:32:57
2023-08-18T15:32:57
139,429,046
322
102
Apache-2.0
2023-09-14T09:12:47
2018-07-02T10:37:07
OpenQASM
UTF-8
Python
false
false
56,659
py
circuit_router.py
# PyZX - Python library for quantum circuit rewriting # and optimisation using the ZX-calculus # Copyright (C) 2019 - Aleks Kissinger, John van de Wetering, # and Arianne Meijer-van de Griend # This program is free software: you can redistribute it and/or modify # it under the terms of the ...
d5cdfa4cc4f5ddbb6c0e78a00660bf85879ca35f
d2011e970e0ecb31eaf3714ff2b936e40a80ead6
/grappelli/dashboard/modules.py
cbaf0963345b0986ebdfe671b3dbfdb00f29c0ee
[ "MIT", "BSD-2-Clause" ]
permissive
sehmaschine/django-grappelli
351444fd419c14fac3345b06a0798541729a591a
67b002fa64db578117bb4bce02c2c46a67a90df2
refs/heads/master
2023-08-19T23:18:32.535470
2023-08-15T14:45:49
2023-08-15T14:45:49
580,566
2,769
633
NOASSERTION
2023-09-13T13:25:41
2010-03-26T12:25:59
HTML
UTF-8
Python
false
false
13,104
py
modules.py
# coding: utf-8 """ Module where grappelli dashboard modules classes are defined. """ from django.apps import apps as django_apps from django.utils.text import capfirst from django.utils.translation import gettext_lazy as _ from grappelli.dashboard.utils import AppListElementMixin class DashboardModule(object): ...
a7888c399e02481fc8fe07cd603f457e2c45e13f
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/pydev/pydev_tests_python/resources/_debugger_case_generator_py3.py
f8cf55aaa03c507c110c9c839f315b8613829e89
[ "Apache-2.0", "EPL-1.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
184
py
_debugger_case_generator_py3.py
def generator2(): yield from range(4) def generator(): a = 42 # break here yield from generator2() sum = 0 for i in generator(): sum += i print('TEST SUCEEDED!')
e19f47b2d845e84be036201331a6593733f6bf49
fdb9bdc6c4ab2f14ba71e544493706d5e275899f
/fhir/resources/DSTU2/tests/test_documentmanifest.py
5119405c72576e49ed1650030d7d45ed745a5c0a
[ "BSD-3-Clause" ]
permissive
nazrulworld/fhir.resources
6ae8aea8180c611b0c5050759c6dcdf63e4cb061
1fd6ea476b27b3fcb8c4ef8f23bc51cf161e69e3
refs/heads/main
2023-08-30T18:27:27.277249
2023-07-03T19:57:06
2023-07-03T19:57:06
165,297,877
256
83
NOASSERTION
2023-08-24T15:34:05
2019-01-11T19:26:41
Python
UTF-8
Python
false
false
2,498
py
test_documentmanifest.py
# -*- coding: utf-8 -*- from pydantic.datetime_parse import parse_date, parse_datetime from .. import fhirtypes # noqa: F401 from .. import documentmanifest def test_DocumentManifest_1(base_settings): filename = ( base_settings["unittest_data_dir"] / "documentmanifest-example.canonical.json" ) i...
20ac28e7609fe809010525489d4f4aa28df8c12d
cb560437b44771d9b7cba2043501a1f3d54f3d40
/cyp/data/exporting.py
7b3be294a9f7bc47cb6d37ad5d93ed2e070c8ce5
[ "MIT" ]
permissive
gabrieltseng/pycrop-yield-prediction
88c0a9fec4de10a0338f8cc208d4686fbb7123ea
b4790dc2f87a73e8a0604e8c22466314090c5abf
refs/heads/master
2022-02-02T14:30:59.868766
2022-01-17T15:32:54
2022-01-17T15:32:54
171,045,076
140
56
MIT
2022-01-17T15:32:54
2019-02-16T19:50:51
Python
UTF-8
Python
false
false
11,317
py
exporting.py
import ee import ssl import time from pathlib import Path import numpy as np from .utils import load_clean_yield_data as load from .utils import get_tif_files from .. import MAJOR_STATES class MODISExporter: """A class to export MODIS data from the Google Earth Engine to Google Drive Parameters ----...
f60c4f2c0cfc4b21736b0b1214e210219de9f15c
e5c56a266fc3fd7d0d77e7cbcd0939b2ca54cda6
/pandasticsearch/errors.py
3eee8b554d8385bd15c3309036e424119e7198d6
[ "MIT" ]
permissive
onesuper/pandasticsearch
a1cc106c33e4ad309b63f9c52be81b64e4840e2a
f99a01a1dc0dc57dacefd0280598055922372418
refs/heads/master
2023-08-30T11:50:34.845980
2021-11-04T08:10:57
2021-11-04T08:10:57
72,193,052
303
54
MIT
2023-04-01T09:13:53
2016-10-28T09:17:57
Python
UTF-8
Python
false
false
426
py
errors.py
# -*- coding: UTF-8 -*- class PandasticSearchException(RuntimeError): def __init__(self, msg): super(PandasticSearchException, self).__init__(msg) class NoSuchDependencyException(PandasticSearchException): pass class ServerDefinedException(PandasticSearchException): pass class ParseResultExc...
2ee14ec80343b33ebf6f4daadf13561fc98612fa
967e5d3f3cdb9e6c458ae516452ddbb342a200e6
/fmpy/fmi3.py
8847ecd12c74114ef768b929e43ef1e2e74b1c19
[ "BSD-3-Clause", "BSD-2-Clause", "MIT", "CC-BY-4.0" ]
permissive
CATIA-Systems/FMPy
46685e67c627613955c04558bdd7ed63d9c6ebbb
5cec29bd25937885c7d4062766891dea5fcc4bdb
refs/heads/main
2023-09-04T01:17:29.851581
2023-08-21T15:21:09
2023-08-21T15:21:09
91,576,871
339
120
NOASSERTION
2023-08-22T18:27:02
2017-05-17T12:59:50
Python
UTF-8
Python
false
false
43,181
py
fmi3.py
""" FMI 3.0 interface """ import os from ctypes import * from typing import Tuple, Sequence, List from . import sharedLibraryExtension, platform_tuple from .fmi1 import _FMU, FMICallException, printLogMessage fmi3Instance = c_void_p fmi3InstanceEnvironment = c_void_p fmi3FMUState =...
22e3d8b0362339f2a084da1522133067005b2b11
1ad268817e4f048815df6e7b7669c45257a37b0e
/kartothek/serialization/_parquet.py
41c550a5d1ae942b65b7e083a18e45fec8df604d
[ "MIT" ]
permissive
JDASoftwareGroup/kartothek
07c7f2fceb3dcee5cf8d0a6a93f4c1060eb0bcf4
1821ea5df60d4079d3911b3c2f17be11d8780e22
refs/heads/master
2023-05-26T11:43:04.781173
2021-12-10T09:15:19
2021-12-10T09:15:19
184,608,549
178
59
MIT
2023-05-15T21:56:50
2019-05-02T15:45:42
Python
UTF-8
Python
false
false
23,335
py
_parquet.py
# -*- coding: utf-8 -*- """ This module contains functionality for persisting/serialising DataFrames. """ import datetime import logging import time from typing import Iterable, Optional import numpy as np import pandas as pd import pyarrow as pa import pyarrow.parquet as pq from pyarrow.parquet import ParquetFile f...
5c669a1c5406ee24258c27829bf09d94eb572b34
ce32e0e1b9568c710a3168abc3c638d6f9f6c31b
/vnpy/api/da/generator/da_typedef.py
3711cc497b0c1ad1104250741c81a67f78d1d771
[ "MIT" ]
permissive
msincenselee/vnpy
55ae76ca32cae47369a66bd2d6589c13d7a0bdd4
7f4fd3cd202712b083ed7dc2f346ba4bb1bda6d7
refs/heads/vnpy2
2022-05-19T10:06:55.504408
2022-03-19T15:26:01
2022-03-19T15:26:01
38,525,806
359
158
MIT
2020-09-09T00:09:12
2015-07-04T07:27:46
C++
UTF-8
Python
false
false
185
py
da_typedef.py
TDACharType = "char" TDAStringType = "string" TDABrokerType = "string" TDAIntType = "int" TDAVolumeType = "int" TDADoubleType = "double" TDAPriceType = "double" TDAMoneyType = "double"
96c81803cddf4cefe75b5486f7a919891255098d
76f23cc69dc10c44bc7cf00b78e37db04c7a9c45
/tools/coverage-bin/sitecustomize.py
c1ba919b94d8ff87a41ec099cf336a31154eb02c
[ "BSD-3-Clause", "MIT" ]
permissive
datalad/datalad
2d9c247344d340325ba84e7ab674ac320e57f30c
40332b5ad25bf8744f7399f6c3575f7d28f71384
refs/heads/maint
2023-09-04T11:03:02.264714
2023-08-10T15:56:19
2023-08-10T15:56:19
14,052,034
453
134
NOASSERTION
2023-09-14T19:10:18
2013-11-01T19:40:08
Python
UTF-8
Python
false
false
65
py
sitecustomize.py
#!/usr/bin/env python import coverage coverage.process_startup()
49caae3153992fab59007b9dfee938d0cc45e73e
512cead4ebe1f3d2b68a075ffd47a693b94e4030
/src/flupy/cli/utils.py
02ee150b56a97284c9de5a769be0e5e8dfcc1fec
[ "MIT" ]
permissive
olirice/flupy
2d15116fa499198ffb182afd140127bd0ebba86d
a1d35b5aaa69b5cb1f380090d169fdcc426d5f3f
refs/heads/master
2023-04-27T08:03:52.420187
2023-04-25T16:26:01
2023-04-25T16:26:01
116,499,113
180
11
NOASSERTION
2023-04-25T16:26:02
2018-01-06T16:46:04
Python
UTF-8
Python
false
false
916
py
utils.py
# pylint: disable=invalid-name import os from typing import Generator from flupy.fluent import Fluent, flu def walk_files(*pathes: str, abspath: bool = True) -> "Fluent[str]": """Yield files recursively starting from each location in *pathes""" if pathes == (): pathes = (".",) def _impl() -> Ge...
403ecb8656712e3fd0677c060ac94152102fcc24
45ba55b4fbdaf1657fde92beaeba4f173265afcd
/strawberry/starlite/handlers/graphql_ws_handler.py
e1285ed1df02e16d99cd650180424b62b9a0a87f
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
strawberry-graphql/strawberry
af96afd4edd1788c59e150597a12501fbc7bf444
6d86d1c08c1244e00535840d9d87925431bc6a1c
refs/heads/main
2023-08-30T03:34:12.929874
2023-08-24T12:01:09
2023-08-24T12:01:09
162,690,887
3,408
529
MIT
2023-09-14T21:49:44
2018-12-21T08:56:55
Python
UTF-8
Python
false
false
2,215
py
graphql_ws_handler.py
from contextlib import suppress from typing import Any, Callable, Optional from starlite import WebSocket from starlite.exceptions import SerializationException, WebSocketDisconnect from strawberry.schema import BaseSchema from strawberry.subscriptions import GRAPHQL_WS_PROTOCOL from strawberry.subscriptions.protocols...
be2570e529bf188a03ed86542a20f843eaf41fd6
62179a165ec620ba967dbc20016e890978fbff50
/nncf/config/schemata/algo/magnitude_sparsity.py
b2dcf8c311b5e46f456d2762378cc05455db682c
[ "Apache-2.0" ]
permissive
openvinotoolkit/nncf
91fcf153a96f85da166aacb7a70ca4941e4ba4a4
c027c8b43c4865d46b8de01d8350dd338ec5a874
refs/heads/develop
2023-08-24T11:25:05.704499
2023-08-23T14:44:05
2023-08-23T14:44:05
263,687,600
558
157
Apache-2.0
2023-09-14T17:06:41
2020-05-13T16:41:05
Python
UTF-8
Python
false
false
2,853
py
magnitude_sparsity.py
# Copyright (c) 2023 Intel Corporation # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writ...
18f960403efe6c49a7729f2f3bda029949895166
5ed8fdfdb4516b6ff07f632005266e60d3b49389
/telethon/network/authenticator.py
ea4762073e891d9a551096ebbe28429a2914a5ad
[ "MIT" ]
permissive
LonamiWebs/Telethon
8ad20584863a7a5c1480eb46df8f0bd910042ce8
128b7074881c95fcc748f312ee92d09d650fd2f9
refs/heads/v1
2023-08-09T17:52:04.533344
2023-08-03T17:00:55
2023-08-03T17:01:10
66,641,037
8,789
1,756
MIT
2023-09-14T16:52:06
2016-08-26T10:59:24
Python
UTF-8
Python
false
false
7,869
py
authenticator.py
""" This module contains several functions that authenticate the client machine with Telegram's servers, effectively creating an authorization key. """ import os import time from hashlib import sha1 from ..tl.types import ( ResPQ, PQInnerData, ServerDHParamsFail, ServerDHParamsOk, ServerDHInnerData, ClientDHIn...
8b808c63ef1860787fcd4ae5e0c00138b1651222
811f4cdb25e26f3b27640aaa2e2bca93e660d2d7
/src/anomalib/deploy/inferencers/openvino_inferencer.py
4fd9ecc79dbf96b61a47f955250dcacadfd3c403
[ "CC-BY-SA-4.0", "CC-BY-SA-3.0", "CC-BY-NC-SA-4.0", "Python-2.0", "Apache-2.0" ]
permissive
openvinotoolkit/anomalib
4467dfc392398845e816387267cdf979ff76fe15
4abfa93dcfcb98771bc768b334c929ff9a02ce8b
refs/heads/main
2023-09-03T16:49:05.019269
2023-08-28T14:22:19
2023-08-28T14:22:19
423,775,360
2,325
454
Apache-2.0
2023-09-14T11:21:33
2021-11-02T09:11:38
Python
UTF-8
Python
false
false
8,136
py
openvino_inferencer.py
"""This module contains inference-related abstract class and its Torch and OpenVINO implementations.""" # Copyright (C) 2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from __future__ import annotations import logging from importlib.util import find_spec from pathlib import Path from typing import Any ...
824b69247e626d405c5fedc1e52ced9d4e5b7ffa
84ca0822fd994bda3f52666ba14a23f8945e1954
/src/bcrypt/_bcrypt.pyi
640e913571a83141f317f1f0e9e959367311ed9d
[ "Apache-2.0" ]
permissive
pyca/bcrypt
fff35490892c6f76368ea738ab4b4f68728a79af
84c584cf238b4080e5dd28482c3e4edb67a75731
refs/heads/main
2023-08-31T08:22:54.592417
2023-08-28T11:00:38
2023-08-28T11:00:38
9,993,757
1,084
171
Apache-2.0
2023-09-14T06:44:08
2013-05-11T02:03:55
Python
UTF-8
Python
false
false
214
pyi
_bcrypt.pyi
import typing def encode_base64(data: bytes) -> bytes: ... def hashpass(password: bytes, salt: bytes) -> bytes: ... def pbkdf( password: bytes, salt: bytes, rounds: int, desired_key_bytes: int ) -> bytes: ...
6bb5366a6119216d42626f7d8f7ee4fdeff73ab6
ef2c1a0ae0f1746e58fcc160844788ab92a8d488
/archai/quantization/quantization_utils.py
1a03ffbf1e729327af4824330b4ea03473ec93dd
[ "MIT", "LicenseRef-scancode-free-unknown", "LGPL-2.1-or-later", "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
microsoft/archai
4d04476ef6a434148638ef91df0ef3bf2c948422
95d6e19a1523a701b3fbc249dd1a7d1e7ba44aee
refs/heads/main
2023-09-03T13:23:48.576626
2023-07-27T01:30:01
2023-07-27T01:30:01
245,036,506
439
97
MIT
2023-05-09T21:10:10
2020-03-05T00:54:29
Python
UTF-8
Python
false
false
1,889
py
quantization_utils.py
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import functools from typing import Any def rgetattr(obj: Any, attr: str, *args) -> Any: """Recursively get an attribute from an object. This function allows accessing nested attributes by separating each level with a dot (e.g., "attr1...
c6924951eab24a10684773fba97d890e7f9ebdce
a5d20c1d3d0f402b34f15081c8d41ec7291f292d
/src/demos/tools/blender_py/blend_ChParticle_utils.py
23a2e8ab59862c7cb116dbfcd9b5f85ccecd9346
[ "BSD-3-Clause" ]
permissive
projectchrono/chrono
3535b1a22b3f9ac55cd3bb6c3015f1ee7c78308e
6a96ca61e232088d9eb5a286e5a12f5b7747ac16
refs/heads/main
2023-09-03T21:00:45.434375
2023-09-02T13:41:05
2023-09-02T13:41:05
12,567,717
1,874
460
BSD-3-Clause
2023-09-10T10:30:18
2013-09-03T15:34:23
C++
UTF-8
Python
false
false
2,674
py
blend_ChParticle_utils.py
import os, sys import bpy import mathutils modpath = os.path.join('..', '..', '..', 'chrono_thirdparty', 'chpf') sys.path.append(modpath) import chpf #Creates a Blender particle system. We need the camera pose to place the def renderPsys(particle_path, cam): # read the particle data from the .chpf file part...
c34b66aff3b4f2540afa37dd3b5d31e336cbc947
2f5238a3f883a13d9c2543f1157e5002baecb56a
/rq/exceptions.py
b84ade108c9564090e7e953b137ade0ac3c97392
[ "BSD-2-Clause" ]
permissive
rq/rq
8b1eacef16335523c30bdf54e2d23df4bc38c6d1
0f4d041578c419663672753433e82e1d2101dfc0
refs/heads/master
2023-08-21T14:50:52.826113
2023-08-17T01:44:46
2023-08-17T01:44:46
2,771,544
5,234
772
NOASSERTION
2023-09-14T19:32:29
2011-11-14T10:53:48
Python
UTF-8
Python
false
false
538
py
exceptions.py
class NoSuchJobError(Exception): pass class DeserializationError(Exception): pass class InvalidJobDependency(Exception): pass class InvalidJobOperationError(Exception): pass class InvalidJobOperation(Exception): pass class DequeueTimeout(Exception): pass class ShutDownImminentExcepti...
3292d9ae63a6896e83819c46544f0133de3192fe
e7ebc88fe9c84a29e02db87a5198f3265c36273c
/hordak/management/commands/create_chart_of_accounts.py
6e06690bf136b9f5021b3f4be2e95060c4961c33
[ "MIT" ]
permissive
adamcharnock/django-hordak
de24b571c7a5f313de0387e3b1a592fc14b27ddf
0108808204fd41e40f7f4d7dfa05ec440e1070cc
refs/heads/master
2023-08-06T02:09:37.370711
2023-08-03T14:00:19
2023-08-03T14:31:34
67,291,607
220
57
MIT
2023-09-08T12:58:13
2016-09-03T13:29:39
Python
UTF-8
Python
false
false
6,554
py
create_chart_of_accounts.py
from django.core.management.base import BaseCommand, CommandError from hordak.models import Account class Command(BaseCommand): help = "Create an initial chart of accounts" def add_arguments(self, parser): parser.add_argument( "--force", action="store_true", dest=...
b8a17283ebe7654808852d02cee919e1cc59cdc0
3d62372eb5e17bf135616de4f196c14a384adf36
/Tests/test_EMBL_unittest.py
ca3449f9f895738793b3a8d1918b7df1b679c732
[ "BSD-3-Clause", "LicenseRef-scancode-biopython" ]
permissive
biopython/biopython
817c9a995a49528937bebefe99f3f5b9054f8947
d416809344f1e345fbabbdaca4dd6dcf441e53bd
refs/heads/master
2023-08-28T05:26:46.916988
2023-08-23T14:11:24
2023-08-23T14:11:24
151,541
3,669
1,939
NOASSERTION
2023-09-12T10:19:46
2009-03-15T21:09:53
Python
UTF-8
Python
false
false
3,074
py
test_EMBL_unittest.py
# Copyright 2015 by Kai Blin. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Tests for EMBL module (using unittest framework).""" import unittest import warnings from os import path from Bio im...
6408c294603ef3378aa58782d02c27e372b8b773
433b8589e95b66f38188a261597d141c282403e6
/hbaselines/envs/efficient_hrl/humanoid_maze_env.py
36a1c3572991b76d254a6a9540d28e48c5a466f1
[ "MIT" ]
permissive
AboudyKreidieh/h-baselines
27d7a4cd1360ac2a701d81da05818b79916ca57e
5c5522b096ddcf3124ff2fcbfb6eb7fa4fc0fb57
refs/heads/master
2023-04-08T07:33:05.041616
2022-01-25T23:58:19
2022-01-25T23:58:19
153,401,259
263
41
MIT
2023-03-24T23:36:46
2018-10-17T05:40:10
Python
UTF-8
Python
false
false
22,202
py
humanoid_maze_env.py
# Copyright 2018 The TensorFlow 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 ...
0165445531e9cc5f549fe786d57eba40fd36f9fa
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/BattleHintsComponent.py
9bc44a4ce847aea29ca99cb24991ee9d2fb7e586
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
776
py
BattleHintsComponent.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/BattleHintsComponent.py from BigWorld import DynamicScriptComponent from helpers import dependency from skeletons.gui.battle_session import IBattleSessionProvider class BattleHintsComponent(DynamicScriptComponent): sessionProvi...
c47f24dbf67862a11b4088796dc8e6a40ae6a5b9
08cdf212eebebdff17e888522b0c6bc837fd0b3a
/frontend/api/common/middlewares/database_session.py
3697ff4ad3ea041a27def625d09f7c069dedad7e
[ "Apache-2.0" ]
permissive
quarkslab/irma
1f5b32c17195f709d3bb9ff7f7199aad4c76dfd3
4e3e2c0fa82e352a1a7a7fd02381a4d84bed9f09
refs/heads/master
2023-03-03T15:37:51.480982
2022-10-19T19:30:27
2022-10-19T19:30:27
26,581,177
267
81
Apache-2.0
2023-03-01T23:09:39
2014-11-13T09:47:20
JavaScript
UTF-8
Python
false
false
1,109
py
database_session.py
# # Copyright (c) 2013-2018 Quarkslab. # This file is part of IRMA 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 in the top-level directory # of this distribution and at: # # http:...
d39ffe67e55ad5f364e35e9f27647aa70e1947b5
acf7457d3a799cb9bff12686d2d616688bcd4b5b
/packages/python/plotly/plotly/validators/streamtube/_starts.py
0ec1167db495f9a797562239f9a732cae243d520
[ "MIT" ]
permissive
plotly/plotly.py
f4f61639f08160f16195efc95b5901dc5a937346
975a704074f01c078e0fdfa32bdf17130bf89e69
refs/heads/master
2023-09-06T06:15:08.340035
2023-08-24T12:28:14
2023-08-24T12:28:14
14,579,099
14,751
2,989
MIT
2023-09-08T19:55:32
2013-11-21T05:53:08
Python
UTF-8
Python
false
false
1,168
py
_starts.py
import _plotly_utils.basevalidators class StartsValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="starts", parent_name="streamtube", **kwargs): super(StartsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
a1137e00d410d244b3e8ca2afd7f15faa3a143ed
980411f64c20090688e99db46fb58e5b40bafe43
/tests/test_MADE.py
a6a7a8e2e327429bcc83fba590e228d4648f0689
[ "Apache-2.0" ]
permissive
clementchadebec/benchmark_VAE
2120a53e9b23c40e510476be94c05ea3eb3fc255
ca556473adcd1b6000a01d6b48a19d8f54b87e96
refs/heads/main
2023-08-17T23:32:58.501035
2023-07-19T18:58:36
2023-07-19T18:58:36
412,850,368
1,394
125
Apache-2.0
2023-09-14T18:01:45
2021-10-02T16:26:24
Python
UTF-8
Python
false
false
4,492
py
test_MADE.py
import os import numpy as np import pytest import torch from pythae.models import AutoModel from pythae.models.base.base_utils import ModelOutput from pythae.models.normalizing_flows import MADE, MADEConfig PATH = os.path.dirname(os.path.abspath(__file__)) @pytest.fixture(params=[MADEConfig(output_dim=(10, 4)), MA...
f9bfc3ceddf5d486845ad0a3198b973bf67ed8bf
5e9576c368e98927e2965bd2fb23bd35d9993d69
/featuretools/primitives/standard/transform/natural_language/mean_characters_per_word.py
aee2e27247c6ae72f9cadf87e08e338e0956fd37
[ "BSD-3-Clause" ]
permissive
alteryx/featuretools
c6e319e063e8e84e7684bf232376f95dc5272160
c284c2d27a95b81e0bae913ac90df2b02c8f3b37
refs/heads/main
2023-08-25T12:21:33.945418
2023-08-23T16:30:25
2023-08-23T16:30:25
102,908,804
1,783
201
BSD-3-Clause
2023-09-07T18:53:19
2017-09-08T22:15:17
Python
UTF-8
Python
false
false
1,754
py
mean_characters_per_word.py
# -*- coding: utf-8 -*- import re import numpy as np import pandas as pd from woodwork.column_schema import ColumnSchema from woodwork.logical_types import Double, NaturalLanguage from featuretools.primitives.base import TransformPrimitive PUNCTUATION = re.escape("!,.:;?") END_OF_SENTENCE_PUNCT_RE = re.compile( ...
24c6028fc74598b52758eec4eeb1af63bb98010f
90bb1316ae8efc82f25005de9a4dd98c302d4876
/tests/run_qt.py
e4f5183b227105f2beb3ecf2bf4acc9a6c203137
[ "BSD-3-Clause" ]
permissive
r0x0r/pywebview
9b5f789430be56a1f709911c81f92e671f1ae527
46c5404b72ef8194454a63ff9981ab59c9c2e27e
refs/heads/master
2023-08-31T05:32:04.531754
2023-08-30T20:04:33
2023-08-30T20:04:33
26,908,699
4,094
680
BSD-3-Clause
2023-09-06T01:57:46
2014-11-20T11:05:46
Python
UTF-8
Python
false
false
110
py
run_qt.py
import os import pytest if __name__ == '__main__': os.environ['PYWEBVIEW_GUI'] = 'qt' pytest.main()
5fddf69a85d14a229a134e0f5cf65e8a74cdc374
61a148d684047323f866017c6c95e0dc78682c43
/core/amber/src/main/python/core/architecture/managers/pause_manager.py
9cad9d9efb802894140f146fa1560ce3e4e5e6bb
[ "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
Texera/texera
9dd92dd0999fd78ff37cb6241f3395d475549e27
ca554ecad8e161b489aa17bdb17c9249ef888b6d
refs/heads/master
2023-09-03T21:46:42.147647
2023-08-31T21:42:30
2023-08-31T21:42:30
53,976,910
129
61
Apache-2.0
2023-09-14T15:53:52
2016-03-15T20:38:46
Scala
UTF-8
Python
false
false
649
py
pause_manager.py
from enum import Enum class PauseType(Enum): NO_PAUSE = 0 USER_PAUSE = 1 SCHEDULER_TIME_SLOT_EXPIRED_PAUSE = 2 class PauseManager: """ Manage pause states. """ def __init__(self): self._pause_invocations = dict() def record_request(self, pause_type: PauseType, enable_pause:...
48bd6515fd98a8fc8e38fffcb7cc6acbdb7fd60a
2148639dee4c4827a3d3bc4da54b33707cd148c0
/segmentation/configs/coco_stuff164k/mask2former_internimage_h_896_80k_cocostuff164k_ss.py
490f591a39b109d4142da59c75c5a42b9e5a321b
[ "MIT" ]
permissive
OpenGVLab/InternImage
4ad8fb8131385a6d6ee8eaab2de5b47edc9e0a73
3e083be9c807793ec1d6a9ffe091978ee01de02b
refs/heads/master
2023-09-01T19:47:39.591459
2023-08-23T14:06:56
2023-08-23T14:06:56
564,231,518
1,834
176
MIT
2023-08-25T06:08:38
2022-11-10T09:24:57
Python
UTF-8
Python
false
false
6,649
py
mask2former_internimage_h_896_80k_cocostuff164k_ss.py
# -------------------------------------------------------- # InternImage # Copyright (c) 2022 OpenGVLab # Licensed under The MIT License [see LICENSE for details] # -------------------------------------------------------- _base_ = [ '../_base_/models/mask2former_beit.py', '../_base_/datasets/coco-stuff164k.py', ...
955f1241fc0166be1fd403a4db815facd022872f
568fa58296378fa129ab3349adf010daa44ed45b
/third_party/incubator-tvm/python/tvm/contrib/cc.py
1550d5abf98935acb0d62e8470f8996ea2fb267f
[ "Apache-2.0", "BSD-3-Clause", "NCSA", "X11-distribute-modifications-variant", "Zlib", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "LLVM-exception", "BSD-2-Clause" ]
permissive
mindspore-ai/akg
37f471badc66de6a831f1f45ad84344f34d23ef2
99f33858d6972741748cbfc9ab0bf9600428fef7
refs/heads/master
2023-07-25T23:03:17.672665
2023-07-11T07:33:57
2023-07-11T07:33:57
274,077,856
319
36
Apache-2.0
2021-12-30T13:43:08
2020-06-22T08:09:05
Python
UTF-8
Python
false
false
6,533
py
cc.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...
0f325fe3ce105517e425ce2142b5d24faf89d35e
71acb7214efd91c0d327f6d8958e1798eadb4401
/locations/spiders/lunch_garden_be.py
6dd5e4eb72f31e4e6647b64e6cdaf59f13a5aa97
[ "CC0-1.0", "MIT" ]
permissive
alltheplaces/alltheplaces
21b9f8b4ace1352e52ae7b8f8825a930d2cb033e
1bcbb55cfcf06f2c714465570711f6e83f205c22
refs/heads/master
2023-08-30T19:45:35.098658
2023-08-30T17:51:54
2023-08-30T17:51:54
61,166,935
453
176
NOASSERTION
2023-09-14T17:16:40
2016-06-15T01:09:18
Python
UTF-8
Python
false
false
1,046
py
lunch_garden_be.py
import html from scrapy import Spider from locations.dict_parser import DictParser from locations.hours import DAYS_FULL, OpeningHours class LunchGardenBESpider(Spider): name = "lunch_garden_be" item_attributes = {"brand": "Lunch Garden", "brand_wikidata": "Q2491217"} start_urls = ["https://www.lunchgar...
1e70da38c1ea1eef0bf551b6c68d380b341c485d
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/IOMC/EventVertexGenerators/python/VtxSmearedParameters_cfi.py
ea35c62b4b21ad9be9127607f8ed120ebc5503c1
[ "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
35,188
py
VtxSmearedParameters_cfi.py
import FWCore.ParameterSet.Config as cms # # All units are cm and radians # # UNITS: # # TimeOffset in nanoseconds # spacial displacement in cm # common parameters VtxSmearedCommon = cms.PSet( src = cms.InputTag("generator", "unsmeared"), readDB = cms.bool(False) ) # Gaussian smearing GaussVtxSmearingParamete...
24b9283bc740f6752f3a738451c62c5414a4b6a1
e1bc3f6ba4b5be07eacb7447897e04f6bd292f4b
/tests/pytorch_learner/test_data_config.py
2a6a0e62cf0ed2429905f2a0ed755c4f947771e9
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
azavea/raster-vision
15bcab9cbc88dce7ebcb6dfe741d482018718e40
4f0ab5f04769a7eb5e677cbfa73f2391f4ab7d39
refs/heads/master
2023-08-30T10:19:09.204623
2023-08-28T19:46:08
2023-08-28T19:46:08
80,733,109
1,941
384
NOASSERTION
2023-09-14T20:35:16
2017-02-02T14:31:54
Python
UTF-8
Python
false
false
19,619
py
test_data_config.py
from typing import Callable import unittest from rastervision.pipeline.file_system import get_tmp_dir from rastervision.pipeline.config import (ValidationError, build_config) from rastervision.pytorch_learner import ( DataConfig, ImageDataConfig, SemanticSegmentationDataConfig, SemanticSegmentationImageDataCon...
289d3b6d3b42664008c24ed1d434406c81c8d866
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/sense/config_flow.py
d7f7588beb2c753662ec061736591410173702e2
[ "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
5,475
py
config_flow.py
"""Config flow for Sense integration.""" from collections.abc import Mapping import logging from typing import Any from sense_energy import ( ASyncSenseable, SenseAuthenticationException, SenseMFARequiredException, ) import voluptuous as vol from homeassistant import config_entries from homeassistant.cons...
60bc4a9dc48efb9b9783f6ceab396934dfac0d67
35e28d7705773eed54345af4440700522c9d1863
/deps/libgdal/gyp-formats/ogr_openfilegdb.gyp
96a646d1128704912d755f6c02c8ca561c2d6cff
[ "Apache-2.0" ]
permissive
naturalatlas/node-gdal
0ee3447861bf2d1abc48d4fbdbcf15aba5473a27
c83e7858a9ec566cc91d65db74fd07b99789c0f0
refs/heads/master
2023-09-03T00:11:41.576937
2022-03-12T20:41:59
2022-03-12T20:41:59
19,504,824
522
122
Apache-2.0
2022-06-04T20:03:43
2014-05-06T18:02:34
C++
UTF-8
Python
false
false
562
gyp
ogr_openfilegdb.gyp
{ "includes": [ "../common.gypi" ], "targets": [ { "target_name": "libgdal_ogr_openfilegdb_frmt", "type": "static_library", "sources": [ "../gdal/ogr/ogrsf_frmts/openfilegdb/filegdbindex.cpp", "../gdal/ogr/ogrsf_frmts/openfilegdb/filegdbtable.cpp", "../gdal/ogr/ogrsf_frmts/openfilegdb/ogrope...
4265769c8f8b89469c48100b52b8189679816f91
cbc4eec2c39bc954d05d28be812592a205106b8b
/python/text/lda.py
251fe1d854f323378d6ed6466ff0dd63b4f1f3f9
[]
no_license
pranab/avenir
756abaf6dc1d11bdafb61a5df77b0ed3ce56008c
4381166d61f7bc6088be34e6b35927a37ef6ba98
refs/heads/master
2022-10-07T20:58:12.992960
2022-09-06T04:28:47
2022-09-06T04:28:47
4,390,566
171
84
null
null
null
null
UTF-8
Python
false
false
10,950
py
lda.py
#!/usr/bin/python # avenir-python: Machine Learning # Author: Pranab Ghosh # # 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...
1418818f315876005d488e1651553737bfc7b1fa
bbd69601912a3361d788efd03a47f9d4e3bac09e
/demo/MediaCtrl.py
ff88c1dba69a24999d08e9caac9b5eab1cd9975e
[]
no_license
wxWidgets/Phoenix
56929484460a0399a8f1d9582bc77c20aa14748d
a1184286703cf24c4b88e5bc14cf2979c1b1ea00
refs/heads/master
2023-09-01T07:10:17.437093
2023-08-31T05:38:01
2023-08-31T05:38:01
5,078,061
2,268
677
null
2023-09-09T17:06:59
2012-07-17T06:22:25
Python
UTF-8
Python
false
false
6,021
py
MediaCtrl.py
#!/usr/bin/env python import wx import wx.media import os #---------------------------------------------------------------------- class StaticText(wx.StaticText): """ A StaticText that only updates the label if it has changed, to help reduce potential flicker since these controls would be updated ver...
4cd2aa6148dc0c251d4a5af2ae94522d88bed51e
fe85b4811c93510006b666858d6029156f167f89
/copyparty/stolen/dnslib/buffer.py
1fcda2c0da10ff7fe48d86bde4dca8dcfaf0af99
[ "MIT", "GPL-1.0-or-later" ]
permissive
9001/copyparty
39207421ccdc501566105da562a168996e0f9b4c
48a3898aa692770735a926b0c18300d7da8b021f
refs/heads/hovudstraum
2023-08-18T15:19:36.934124
2023-08-16T19:57:19
2023-08-16T19:57:19
188,700,274
273
21
MIT
2023-08-09T20:50:27
2019-05-26T15:28:33
Python
UTF-8
Python
false
false
1,407
py
buffer.py
# coding: utf-8 import binascii import struct class BufferError(Exception): pass class Buffer(object): def __init__(self, data=b""): self.data = bytearray(data) self.offset = 0 def remaining(self): return len(self.data) - self.offset def get(self, length): if lengt...
5287d0eaa6940e383d3af7749585fdd03729d0f1
a0eb6744e6f7f509b96d21f0bc8b3f8387f6861c
/notebook/matplotlib_histogram_simple.py
4aa183f707f0c188bcf7553eede8aa97d0006e2c
[ "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
574
py
matplotlib_histogram_simple.py
from PIL import Image import numpy as np import matplotlib.pyplot as plt im = Image.open('data/src/lena_square.png') r = np.array(im)[:, :, 0].flatten() g = np.array(im)[:, :, 1].flatten() b = np.array(im)[:, :, 2].flatten() bins_range = range(0, 257, 8) xtics_range = range(0, 257, 32) plt.hist((r, g, b), bins=bins...
f3e942fd06cc06b6a942129869ec191b89db8c94
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stubs/Pillow/PIL/ImageCms.pyi
c0d004e96622bc52b11f8756d0ff7c5a48fc07f2
[ "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
1,903
pyi
ImageCms.pyi
from typing import Any from .Image import ImagePointHandler DESCRIPTION: str VERSION: str core: Any INTENT_PERCEPTUAL: int INTENT_RELATIVE_COLORIMETRIC: int INTENT_SATURATION: int INTENT_ABSOLUTE_COLORIMETRIC: int DIRECTION_INPUT: int DIRECTION_OUTPUT: int DIRECTION_PROOF: int FLAGS: Any class ImageCmsProfile: d...
8b071c0c3bd715fe165a02dd8a1658f670a0456d
c24b28c0dc4ad8f83845f4c61882f1e04d49b5cd
/Plotly_Graphs/Heatmaps/heatmap_time.py
5ccfd9039bad6639b715b26650bacf62e725e291
[]
no_license
Coding-with-Adam/Dash-by-Plotly
759e927759513d96060a770b1e0b0a66db13f54f
9f178f1d52536efd33827758b741acc4039d8d9b
refs/heads/master
2023-08-31T17:23:02.029281
2023-08-08T05:12:50
2023-08-08T05:12:50
234,687,337
1,293
1,822
null
2023-07-31T15:47:07
2020-01-18T05:36:28
Jupyter Notebook
UTF-8
Python
false
false
897
py
heatmap_time.py
import plotly.express as px import pandas as pd # Data put together by Gabe Salzer on data.world # Data source: http://www.landofbasketball.com/nba_teams_year_by_year.htm df = pd.read_csv("https://raw.githubusercontent.com/Coding-with-Adam/Dash-by-Plotly/master/Plotly_Graphs/Heatmaps/Historical%20NBA%20Performanc...
c29b933921dddb831f42a1584b3845834c723fbd
c10bd143bc083d5e173f4f1e6e7f08e54f0ddfa1
/kafka_influxdb/reader/kafka_python.py
6601b55d80884519161f12a336f8c8d32bff175c
[ "Apache-2.0" ]
permissive
mre/kafka-influxdb
c09e8a21cfdf4d7da0095d1059a2215d3c878588
cb1ab37d05356faf7c4732c8c8c64925c3f0b86f
refs/heads/master
2022-12-19T03:39:03.360203
2021-03-29T20:28:56
2021-03-29T20:28:56
23,618,466
231
61
Apache-2.0
2022-12-08T10:40:57
2014-09-03T11:59:02
Python
UTF-8
Python
false
false
1,240
py
kafka_python.py
# -*- coding: utf-8 -*- import logging from kafka import KafkaConsumer from kafka.common import ConsumerTimeout, KafkaUnavailableError from kafka_influxdb.encoder.errors import EncoderError from kafka_influxdb.reader.reader import ReaderAbstract class Reader(ReaderAbstract): """ A Kafka consumer based on kaf...