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
8795f63c38b72c8cce9c6378c30086f374f50df5
3ee5bf329a2e58eb9f775ec5ee6a329fd3541e36
/tests/test_link.py
7ba0851ae2e6f0a5155bf82ecebb8180bcc2b244
[ "BSD-3-Clause" ]
permissive
scrapy/scrapy
53bd79e500e2cb7441d33bfd61ba003962d5fb46
cddb8c15d66831dc4e1bc4b745fcc6c534bb03dc
refs/heads/master
2023-08-31T04:08:06.193342
2023-08-30T18:29:54
2023-08-30T18:29:54
529,502
47,472
12,120
BSD-3-Clause
2023-09-14T12:08:07
2010-02-22T02:01:14
Python
UTF-8
Python
false
false
1,900
py
test_link.py
import unittest from scrapy.link import Link class LinkTest(unittest.TestCase): def _assert_same_links(self, link1, link2): self.assertEqual(link1, link2) self.assertEqual(hash(link1), hash(link2)) def _assert_different_links(self, link1, link2): self.assertNotEqual(link1, link2) ...
dff28d17c01daa860148cacdc7c7c7abe91f1ae4
0760fb4901a75766921a205b55686d6d6f049b30
/rllib/utils/schedules/__init__.py
58503926968563c0dfcf6f1cf95ed04ca1a92cf1
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
ray-project/ray
a4bb6940b08b59a61ef0b8e755a52d8563a2f867
edba68c3e7cf255d1d6479329f305adb7fa4c3ed
refs/heads/master
2023-08-31T03:36:48.164405
2023-08-31T03:20:38
2023-08-31T03:20:38
71,932,349
29,482
5,669
Apache-2.0
2023-09-14T21:48:14
2016-10-25T19:38:30
Python
UTF-8
Python
false
false
584
py
__init__.py
from ray.rllib.utils.schedules.schedule import Schedule from ray.rllib.utils.schedules.constant_schedule import ConstantSchedule from ray.rllib.utils.schedules.linear_schedule import LinearSchedule from ray.rllib.utils.schedules.piecewise_schedule import PiecewiseSchedule from ray.rllib.utils.schedules.polynomial_sched...
33195d1a8e82b111ed9525141e6fa5a6b4fc2e3e
23cb4636462e4cd85f0ab238684b37f75a176396
/src/gc/gc.py
b28d4db2e8dd6dec5ef52806069322c16d55b11e
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
SAP/InfraBox
0c4489de996438b332f1cea70e767ba3ff906117
481f23d5fce7c9654bc0b0a5a54d4c77b728adf0
refs/heads/master
2023-08-14T17:58:39.147263
2023-07-24T07:12:50
2023-07-24T07:12:50
126,344,645
275
81
Apache-2.0
2023-09-12T05:52:12
2018-03-22T14:06:46
Python
UTF-8
Python
false
false
5,549
py
gc.py
import time from datetime import datetime, timedelta from pyinfraboxutils import get_logger, get_env from pyinfraboxutils import dbpool from pyinfraboxutils.storage import storage, SWIFT logger = get_logger("gc") class GC(object): def run(self): # TODO: Delete storage objects: uploads, outputs # ...
5ce1f5a62003af0cdbca13ae8ef81b8597ad93ca
edc1134436a79ca883a0d25f3c8dfffc4235c514
/pyro/contrib/tracking/dynamic_models.py
cdefc504bec394dbd998393718e4d3f853b57006
[ "Apache-2.0" ]
permissive
pyro-ppl/pyro
2283d8ca528fc090c724a3a6e0f344e505ebbf77
0e82cad30f75b892a07e6c9a5f9e24f2cb5d0d81
refs/heads/dev
2023-08-18T00:35:28.014919
2023-08-06T21:01:36
2023-08-06T21:01:36
94,506,832
3,647
606
Apache-2.0
2023-09-14T13:52:14
2017-06-16T05:03:47
Python
UTF-8
Python
false
false
16,560
py
dynamic_models.py
# Copyright (c) 2017-2019 Uber Technologies, Inc. # SPDX-License-Identifier: Apache-2.0 from abc import ABCMeta, abstractmethod import torch from torch import nn from torch.nn import Parameter import pyro.distributions as dist from pyro.distributions.util import eye_like class DynamicModel(nn.Module, metaclass=ABC...
0f026aef71dfb1c652609b8148ea5f2c78dcb54b
391dfd77c1bb85c08b4ead451ecdab0858eb141f
/tests/test_loaders_data.py
fc931e38d0f3483761646c81eeb412b3bbd24727
[ "MIT" ]
permissive
moderngl/moderngl-window
308682b5aa625dbb49ca554459bed9853a5e69c3
200f2b9ea8b350b0ac9bb6a2d24310c0d8227794
refs/heads/master
2023-05-28T00:33:49.924394
2023-05-18T11:06:26
2023-05-18T11:06:26
172,498,670
205
48
MIT
2023-09-01T17:45:51
2019-02-25T12:05:57
Python
UTF-8
Python
false
false
2,523
py
test_loaders_data.py
from pathlib import Path from unittest import TestCase from moderngl_window import resources from moderngl_window.meta import DataDescription from moderngl_window.exceptions import ImproperlyConfigured resources.register_dir((Path(__file__).parent / 'fixtures' / 'resources').resolve()) class DataLoaderTes...
987415ce7a23ebf49472175d7b3b47719f233227
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/met_eireann/config_flow.py
909dd4ae955514fad90563d32bc0cedea227a8a5
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
1,736
py
config_flow.py
"""Config flow to configure Met Éireann component.""" import voluptuous as vol from homeassistant import config_entries from homeassistant.const import CONF_ELEVATION, CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME import homeassistant.helpers.config_validation as cv from .const import DOMAIN, HOME_LOCATION_NAME class M...
d4ec7f7c0c7bd6fba7e62f14b70b8dcc0f86b1b9
7976cbc8e26c8db85d75820ff289b048f22d3986
/tests/integration/test_hypothesmith.py
92990aa65f16980b05828b68f1b13ad305076cc6
[ "MIT" ]
permissive
PyCQA/isort
5eaf38d78f5088f7568a2056fe7868c4f79abfdd
e35a55f6ab8473003d68a8b2ffebdd08fbb2b61b
refs/heads/main
2023-08-28T12:03:16.110191
2023-08-20T20:18:05
2023-08-20T20:18:05
12,550,138
2,914
312
MIT
2023-09-06T18:45:21
2013-09-02T22:22:53
Python
UTF-8
Python
false
false
3,571
py
test_hypothesmith.py
import ast from typing import get_type_hints import hypothesis import libcst from hypothesis import strategies as st from hypothesmith import from_grammar, from_node import isort def _as_config(kw) -> isort.Config: if "wrap_length" in kw and "line_length" in kw: kw["wrap_length"], kw["line_length"] = so...
66fb01d2f370c910ab453c5a96af523222b7beaa
de84a9c84e9fd00fb1cf52c69381b20c96463f2b
/tests/test_security_credit_card.py
1e004090cac539c6b5b9f9a59f221fb5ec8be2aa
[ "BSD-3-Clause" ]
permissive
amperser/proselint
23b7b1a0963bf036dde9326b3bb0bbbfcdf26c61
b5b7536bec5fd461e45cacad87c2aab9ea33ac35
refs/heads/main
2023-08-11T08:45:59.641463
2023-07-27T13:28:58
2023-07-27T13:28:58
29,220,809
4,513
267
BSD-3-Clause
2023-09-10T20:53:11
2015-01-14T01:24:07
Python
UTF-8
Python
false
false
622
py
test_security_credit_card.py
"""Tests for security.credit_card check.""" from proselint.checks.security import credit_card as chk from .check import Check class TestCheck(Check): """The test class for security.credit_card.""" __test__ = True @property def this_check(self): """Boilerplate.""" return chk de...
debcdd3111dbd67b5970d5323b40c15de3b3785d
edc1134436a79ca883a0d25f3c8dfffc4235c514
/tests/infer/reparam/test_haar.py
f981c9ee545d55141a15e381afdceeb426222696
[ "Apache-2.0" ]
permissive
pyro-ppl/pyro
2283d8ca528fc090c724a3a6e0f344e505ebbf77
0e82cad30f75b892a07e6c9a5f9e24f2cb5d0d81
refs/heads/dev
2023-08-18T00:35:28.014919
2023-08-06T21:01:36
2023-08-06T21:01:36
94,506,832
3,647
606
Apache-2.0
2023-09-14T13:52:14
2017-06-16T05:03:47
Python
UTF-8
Python
false
false
6,392
py
test_haar.py
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 import pytest import torch from torch.autograd import grad import pyro import pyro.distributions as dist from pyro import poutine from pyro.distributions.transforms.haar import HaarTransform from pyro.infer.autoguide.initialization im...
0032c123414027fa7194fcbfabc18abab081e05b
f7f3dd55fa7ab6833f3c2d8e457884c127cc203d
/tests/test_base/test_json.py
0175355380054fe7ac74337ac42690cbc553b24c
[ "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
2,779
py
test_json.py
import unittest from linkml import ( LOCAL_ANNOTATIONS_YAML_FILE, LOCAL_EXTENSIONS_YAML_FILE, LOCAL_MAPPINGS_YAML_FILE, LOCAL_METAMODEL_YAML_FILE, LOCAL_TYPES_YAML_FILE, METAANNOTATIONS_NAMESPACE, METAEXTENSIONS_NAMESPACE, METAMAPPING_NAMESPACE, METAMODEL_NAMESPACE, METATYPE_NAM...
b9ecdfebbf4e76fabf93a24159715124818a6e22
d46cfd98eb2e4d50645baa5dfbb4171b2646457c
/test/run.py
fb61fc760dcd6c9ee6a37c73fe47d78d295e09b3
[ "MIT" ]
permissive
dockcross/dockcross
4c978754c1d3b7f351f1028c6c4331f4498c72cd
85db3452be297dacec9f98dc1832801212254395
refs/heads/master
2023-08-18T11:09:28.057558
2023-08-09T15:24:19
2023-08-09T15:24:19
35,052,287
2,955
415
MIT
2023-09-05T01:56:18
2015-05-04T18:36:08
Shell
UTF-8
Python
false
false
5,942
py
run.py
#!/usr/bin/env python """Test that the toolchain can build executables. Multiple build tools and languages are supported. If an emulator is available, its ability to run the generated executables is also tested. """ import argparse import glob import os import shutil import subprocess import sys import tempfile def...
5004ce50917c348007f06d0f11f8ead579066d8d
682459e3cea53ef14e531597dd612d4b5733fbea
/src/pymanopt/manifolds/sphere.py
74871a64a83b7007bc45700258119915989a3c28
[ "BSD-3-Clause" ]
permissive
pymanopt/pymanopt
4bcdc2983631befcf88b194449158d5163df37be
acb52b216538ba5ed4871f025a0e49080b4475da
refs/heads/master
2023-09-01T01:50:27.468578
2023-04-04T17:52:10
2023-04-04T17:52:10
45,385,612
647
155
BSD-3-Clause
2023-09-13T05:41:44
2015-11-02T09:45:08
Python
UTF-8
Python
false
false
6,938
py
sphere.py
import warnings import numpy as np from pymanopt.manifolds.manifold import RiemannianSubmanifold from pymanopt.tools import extend_docstring class _SphereBase(RiemannianSubmanifold): def __init__(self, *shape, name, dimension): if len(shape) == 0: raise TypeError("Need at least one dimension...
78c42c5678ba29790b967202b012e67ff62c1bb9
fdbb74a95924e2677466614f6ab6e2bb13b2a95a
/third_party/python/Lib/distutils/tests/test_version.py
15f14c7de3f1256aa74199ec01ea0bc978db6fc2
[ "Python-2.0", "GPL-1.0-or-later", "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-other-copyleft", "ISC" ]
permissive
jart/cosmopolitan
fb11b5658939023977060a7c6c71a74093d9cb44
0d748ad58e1063dd1f8560f18a0c75293b9415b7
refs/heads/master
2023-09-06T09:17:29.303607
2023-09-02T03:49:13
2023-09-02T03:50:18
272,457,606
11,887
435
ISC
2023-09-14T17:47:58
2020-06-15T14:16:13
C
UTF-8
Python
false
false
2,614
py
test_version.py
"""Tests for distutils.version.""" import unittest from distutils.version import LooseVersion from distutils.version import StrictVersion from test.support import run_unittest class VersionTestCase(unittest.TestCase): def test_prerelease(self): version = StrictVersion('1.2.3a1') self.assertEqual(v...
a819a4294ccd816f01b7fd23d1fe6f130e96a96c
10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94
/Python/minimum-falling-path-sum.py
f9232388f6feb02c1f7323a57bb2a8648acfb183
[ "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
326
py
minimum-falling-path-sum.py
# Time: O(n^2) # Space: O(1) class Solution(object): def minFallingPathSum(self, A): """ :type A: List[List[int]] :rtype: int """ for i in xrange(1, len(A)): for j in xrange(len(A[i])): A[i][j] += min(A[i-1][max(j-1, 0):j+2]) return min(A...
5d960cc204b148f51e80b203cb56547b0e017a38
ff4999ae662707a882085b75b8cc377a714f747c
/python/fledge/services/core/api/snapshot/plugins.py
dc2769a577f22f700438408578f4049fdccb7d93
[ "Apache-2.0" ]
permissive
fledge-iot/fledge
095631d6a9be10444cdde0a7a3acbb039aabc8bd
d4804240a653ab6e324b5949069c0e17bf19e374
refs/heads/develop
2023-08-22T05:29:07.549634
2023-08-21T11:22:19
2023-08-21T11:22:19
225,508,004
111
44
Apache-2.0
2023-09-14T10:42:06
2019-12-03T01:58:59
Python
UTF-8
Python
false
false
5,801
py
plugins.py
# -*- coding: utf-8 -*- # FLEDGE_BEGIN # See: http://fledge-iot.readthedocs.io/ # FLEDGE_END import os from aiohttp import web from fledge.services.core.snapshot import SnapshotPluginBuilder from fledge.common.common import _FLEDGE_ROOT, _FLEDGE_DATA from fledge.common.web.middleware import has_permission __author_...
500a717ef9f4769d4ad282eefb7b42687e96a2f3
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/stubs/IfNameMain.py
eee945a80e548f2fd8b9a581b923abf59bd24496
[ "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
59
py
IfNameMain.py
if __name__ == '__main__': import sys xyzzy = None
39ce9550e21de7fb3b4504066506c88f0a96a259
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/gpu/config/DEPS
caa21da0ae6f22d9d7efa21ca773e0d165a03067
[ "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
233
DEPS
include_rules = [ "+components/crash/core/common/crash_key.h", "+media/media_buildflags.h", "+skia/buildflags.h", "+third_party/skia", "+third_party/vulkan_headers/include/vulkan/vulkan.h", "+third_party/dawn/include", ]
2ecd586f842d3197937d1452c66eca5c818f9b47
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/third_party/blink/tools/blinkpy/tool/commands/queries_unittest.py
eba66b53e4b462f5a909811b3cfd78eb71db1314
[ "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
chromium/chromium
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
refs/heads/main
2023-08-24T00:35:12.585945
2023-08-23T22:01:11
2023-08-23T22:01:11
120,360,765
17,408
7,102
BSD-3-Clause
2023-09-10T23:44:27
2018-02-05T20:55:32
null
UTF-8
Python
false
false
8,121
py
queries_unittest.py
# Copyright (C) 2009 Google Inc. All rights reserved. # Copyright (C) 2012 Intel Corporation. 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 must retain th...
8c9e87f9bb54e594c9441c1c8ae696c503fbfcd3
091155389673325cfe8b0da3dc64c113f1ded707
/cvpods/evaluation/__init__.py
8e4ebf84b51e301b46498483eaba3ac081c9d8d8
[ "Apache-2.0" ]
permissive
Megvii-BaseDetection/cvpods
7b7c808257b757d7f94d520ea03b370105fb05eb
2deea5dc659371318c8a570c644201d913a83027
refs/heads/master
2023-03-22T00:26:06.248877
2023-03-10T10:05:26
2023-03-10T10:05:26
318,124,806
659
91
Apache-2.0
2023-03-10T10:05:28
2020-12-03T08:26:57
Python
UTF-8
Python
false
false
1,274
py
__init__.py
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # This file has been modified by Megvii ("Megvii Modifications"). # All Megvii Modifications are Copyright (C) 2019-2021 Megvii Inc. All rights reserved. from .build import build_evaluator from .cityperso...
559d24aae42b3e0023d06104c82fe2793adfc13d
0010b3d8b8f806d6065e1bb1aa3c18f9714001a7
/tests/test_config_output.py
e693aee9cd1897e47e27a75c2d719ba784fc4a66
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
GalSim-developers/GalSim
bfd2d5e57f20874ad81bc735195c5c62efad63eb
f1c0319600cc713373f1cea7459171fbf388848e
refs/heads/main
2023-08-17T07:30:44.583679
2023-08-15T02:52:00
2023-08-15T02:52:00
3,510,804
194
104
NOASSERTION
2023-09-12T04:03:38
2012-02-22T02:51:45
Python
UTF-8
Python
false
false
73,383
py
test_config_output.py
# Copyright (c) 2012-2022 by the GalSim developers team on GitHub # https://github.com/GalSim-developers # # This file is part of GalSim: The modular galaxy image simulation toolkit. # https://github.com/GalSim-developers/GalSim # # GalSim is free software: redistribution and use in source and binary forms, # with or w...
70165302a7fa973f89b454165d93479d74e342d3
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/Configuration/Generator/python/concurrentLumisDisable.py
647695db431096e4944d4d883c1c8c54e7018bbc
[ "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
571
py
concurrentLumisDisable.py
# list of generator EDModules (C++ type) that do not support concurrentLuminosityBlocks noConcurrentLumiGenerators = [ "AMPTGeneratorFilter", "BeamHaloProducer", "CosMuoGenProducer", "ExhumeGeneratorFilter", "Herwig7GeneratorFilter", "HydjetGeneratorFilter", "Hydjet2GeneratorFilter", "Py...
90d600733ece5dc0ff2ec263eafdcbffa7c9d15b
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/Alignment/OfflineValidation/python/TkAlAllInOneTool/trackSplittingValidationTemplates.py
e9c7e9a76cb5cc40cfdadebcc1c39d2d3c3d20ae
[ "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
6,322
py
trackSplittingValidationTemplates.py
###################################################################### ###################################################################### TrackSplittingTemplate=""" #adding this ~doubles the efficiency of selection process.FittingSmootherRKP5.EstimateCut = -1 .oO[subdetselection]Oo. # Use compressions settings o...
c2b1023494383e7a9a3ea3782581e63ea7bbaa86
2bb263de5f1dc0dbf82d97fd56bc7945255f3ff5
/DeBERTa/utils/xtqdm.py
2908d0c1ce9683afe2ca1e1050b351fbd3a03f0a
[ "MIT" ]
permissive
microsoft/DeBERTa
e3d1fa6aba9175c2ca53ce0c51206083180a023d
4d7fe0bd4fb3c7d4f4005a7cafabde9800372098
refs/heads/master
2023-09-04T21:05:30.905341
2023-03-25T10:22:59
2023-03-25T10:22:59
270,730,507
1,641
207
MIT
2023-09-12T22:40:57
2020-06-08T15:57:14
Python
UTF-8
Python
false
false
630
py
xtqdm.py
from tqdm import tqdm import os __all__=['xtqdm'] class dummy_tqdm(): def __init__(self, iterable=None, *wargs, **kwargs): self.iterable = iterable def __iter__(self): for d in self.iterable: yield d def update(self, *wargs, **kwargs): pass def close(self): pass def xtqdm(iterable=N...
b0bde1eed0fccd6e5bc658b6306b7cdb5a798a69
032cde6476486d7200b235f16a1c4f32c99d19b7
/tests/test_serializer_field.py
460f1df3ca92b0d401619472b214eed5e35d4a63
[ "BSD-2-Clause" ]
permissive
mfogel/django-timezone-field
ab9be0711409445d85959be80856a5351d08194b
06c3c099595d516d17ad4f642e2e221876443352
refs/heads/main
2023-08-22T05:16:55.379046
2023-08-21T00:19:31
2023-08-21T00:19:31
4,010,596
305
89
BSD-2-Clause
2023-09-07T06:51:05
2012-04-12T23:48:59
Python
UTF-8
Python
false
false
1,333
py
test_serializer_field.py
import pytest from rest_framework import serializers from timezone_field.rest_framework import TimeZoneSerializerField @pytest.fixture def TimeZoneSerializer(use_pytz): class _TimeZoneSerializer(serializers.Serializer): # pylint: disable=abstract-method tz = TimeZoneSerializerField(use_pytz=use_p...
25aff594107a1197bdfcd9842ebc9c06bd0648df
6303764a0fb95d1ae9d97e8d8d333eb45adba367
/11_decision_trees_random_forests/00_custom_bundle/stooq_jp_stocks.py
dc0758138dbb38d05cdaa0231b04d3148445cae7
[ "MIT" ]
permissive
PacktPublishing/Machine-Learning-for-Algorithmic-Trading-Second-Edition_Original
3e533b352f105ed0cc530364d5f314b20484ae45
2225dbfd39079216192460f4350848aa4205c226
refs/heads/master
2023-01-22T12:48:42.137805
2023-01-18T09:11:25
2023-01-18T09:11:25
221,883,227
708
289
MIT
2022-07-26T02:53:31
2019-11-15T08:51:40
Jupyter Notebook
UTF-8
Python
false
false
2,487
py
stooq_jp_stocks.py
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Stefan Jansen' from pathlib import Path import os import numpy as np import pandas as pd pd.set_option('display.expand_frame_repr', False) np.random.seed(42) zipline_root = None try: zipline_root = os.environ['ZIPLINE_ROOT'] except KeyError: print...
9ab0261f4766f40ab646f768c0b6d073fe690304
3dc647cd07a7361ed401e40d2b7cce8c826c8f6c
/Lib/test/test_unpack.py
f5ca1d455b5c6f2db608d01848a1a4050fc14eb0
[ "Python-2.0", "CC-BY-4.0", "MIT" ]
permissive
RustPython/RustPython
5ddce4a9848b9de8c041ffd2634f83c0105d3f39
b864e5da1f18897fc884180b7093df5aa170024f
refs/heads/main
2023-09-04T12:38:29.458699
2023-09-03T12:33:42
2023-09-03T12:33:42
135,201,145
15,815
1,302
MIT
2023-09-14T08:11:45
2018-05-28T19:27:01
Rust
UTF-8
Python
false
false
3,595
py
test_unpack.py
import doctest import unittest doctests = """ Unpack tuple >>> t = (1, 2, 3) >>> a, b, c = t >>> a == 1 and b == 2 and c == 3 True Unpack list >>> l = [4, 5, 6] >>> a, b, c = l >>> a == 4 and b == 5 and c == 6 True Unpack implied tuple >>> a, b, c = 7, 8, 9 >>> a == 7 and...
16be2a6b284169c18c5382c5457ff837d995f694
2337351b228818e41be3002bd38f68f77c2aa074
/sa/profiles/Zhone/MXK/get_arp.py
0b70638420887bc324c56bb5181a3a4af98bbaed
[ "BSD-3-Clause" ]
permissive
nocproject/noc
57d40c680a1499374463e472434f9595ed6d1374
6e6d71574e9b9d822bec572cc629a0ea73604a59
refs/heads/master
2023-08-31T01:11:33.544573
2023-08-30T17:31:11
2023-08-30T17:31:11
107,815,776
105
33
BSD-3-Clause
2023-07-31T07:57:45
2017-10-21T21:04:33
Python
UTF-8
Python
false
false
942
py
get_arp.py
# --------------------------------------------------------------------- # Zhone.MXK.get_arp # --------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- # Python module...
7e4d1f3ce665cbbb6d2eba9f1c5f6029dcf7d507
6c37d1d2437a08e43b13d621d4a8da4da7135b3a
/yt_dlp/extractor/lenta.py
10aac984e4e3be595927a9ba7ef236a506843411
[ "Unlicense", "GPL-2.0-or-later", "MPL-2.0", "BSD-3-Clause", "GPL-3.0-or-later", "LGPL-2.1-only", "BSD-2-Clause", "MIT" ]
permissive
yt-dlp/yt-dlp
be040bde10cc40258c879c75ab30215686352824
d3d81cc98f554d0adb87d24bfd6fabaaa803944d
refs/heads/master
2023-09-05T21:15:21.050538
2023-09-05T20:35:23
2023-09-05T20:35:23
307,260,205
52,742
5,376
Unlicense
2023-09-14T05:22:08
2020-10-26T04:22:55
Python
UTF-8
Python
false
false
1,625
py
lenta.py
from .common import InfoExtractor class LentaIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?lenta\.ru/[^/]+/\d+/\d+/\d+/(?P<id>[^/?#&]+)' _TESTS = [{ 'url': 'https://lenta.ru/news/2018/03/22/savshenko_go/', 'info_dict': { 'id': '964400', 'ext': 'mp4', ...
67222dcf86f17b21e840b885d99c37995d717efe
9c2e531ec004adef7d8d07fa0b263b9f2f83cdc6
/tests/test_common.py
3bc8f4afd9f82a1f04e15582375413784042651a
[ "MIT" ]
permissive
davemlz/eemont
ac0a19938cd5a9457771ac65d345834ce86faf6b
7bddd88aa9ba040eff78009f2cafc55351911023
refs/heads/master
2023-08-17T03:36:29.013230
2023-08-17T00:22:47
2023-08-17T00:22:47
322,478,954
356
65
MIT
2022-04-05T08:11:22
2020-12-18T03:33:12
Python
UTF-8
Python
false
false
836
py
test_common.py
import unittest import box import ee import eemont ee.Initialize() class Test(unittest.TestCase): """Tests for `eemont` package.""" def test_indices(self): """Test the indices function""" test = eemont.indices() self.assertIsInstance(test, box.box.Box) def test_indices_online(...
6c56db41e2f536e23051486a181c6db19fb991ac
df1254b56f35b24644e00493c50d4b6eb3c15b7b
/colour/adaptation/__init__.py
92168edf54e34fcc91501b4cac79c6b2288c4fce
[ "BSD-3-Clause" ]
permissive
colour-science/colour
908400b227cf81668675e41099256ce50b23ae4b
1fdf3b3042922e8d4f86b989b00a06e7e5d81102
refs/heads/develop
2023-09-01T23:17:07.186869
2023-08-26T09:40:45
2023-08-26T09:40:45
17,114,363
1,756
301
BSD-3-Clause
2023-09-14T10:24:37
2014-02-23T18:55:40
Python
UTF-8
Python
false
false
11,905
py
__init__.py
""" References ---------- - :cite:`CIETC1-321994b` : CIE TC 1-32. (1994). CIE 109-1994 A Method of Predicting Corresponding Colours under Different Chromatic and Illuminance Adaptations. Commission Internationale de l'Eclairage. ISBN:978-3-900734-51-0 - :cite:`Fairchild1991a` : Fairchild, M. D. (1991). ...
a2f6efdaf795581402fec1e5995f9c16cbe0387c
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/third_party/mako/mako/mako/ext/preprocessors.py
80403ecdaebedae0068af3d4f5ebd53249a2eb4e
[ "MIT", "GPL-1.0-or-later", "LGPL-2.0-or-later", "Apache-2.0", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference", "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
576
py
preprocessors.py
# ext/preprocessors.py # Copyright 2006-2022 the Mako authors and contributors <see AUTHORS file> # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """preprocessing functions, used with the 'preprocessor' argument on Template, TemplateLookup""" ...
5a1ffc1e0344181cc9b68033d2ba17dee6c8401b
0349e502733a4c25f020fbcad4715f598d686799
/rl_coach/tests/test_golden.py
d7b97058851cc36f3cc101dce9b98e68071d4920
[ "Apache-2.0" ]
permissive
IntelLabs/coach
679592e9887f5788229fef9d77a1a7975e959bc4
2c60cb5acd8cd3c9c381a5066c208e69fc273c7b
refs/heads/master
2023-09-05T17:56:19.435416
2022-12-11T17:54:06
2022-12-11T17:54:06
105,468,219
497
102
Apache-2.0
2021-12-27T09:52:30
2017-10-01T19:27:43
Python
UTF-8
Python
false
false
10,964
py
test_golden.py
# # Copyright (c) 2017 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...
8bcd2021c1d3a692a0be3f40d2e919bf4914345c
438f82adbaa27bcb97cce0171f377ddc92586f48
/src/python/python-proto/python_proto/tests/test_common.py
891a44ef6c1516c9fb2087f585281c53d27a117c
[ "Apache-2.0" ]
permissive
grapl-security/grapl
5f93599969ec604df25712c1d16648d16de67072
b2c7ef263fb8134add2febb770da164ea7b4936f
refs/heads/main
2023-08-12T11:38:11.167343
2022-12-26T15:28:55
2022-12-26T15:28:55
151,994,099
386
60
Apache-2.0
2022-12-10T05:56:55
2018-10-07T23:28:27
Rust
UTF-8
Python
false
false
1,714
py
test_common.py
import datetime import uuid import pytest pytest.register_assert_rewrite("python_proto.tests.helpers") from hypothesis import given from hypothesis import strategies as st from python_proto.common import Duration, Timestamp, Uuid from python_proto.tests.helpers import check_encode_decode_invariant from python_proto....
6645a4a06f7b4661ad1652a0a342c03b40ef8be9
67ce6a1d1369463b15023cc5bd1be9e823bab398
/lib/pymedphys/tests/mosaiq/test_patient_name_fields.py
2870e8a084e27b605f8b070a14cc2152d83bfb22
[ "Apache-2.0" ]
permissive
pymedphys/pymedphys
2487efe7259cc4e226e93d32fe86cef01673016e
f6acdf9bd2e8a32e372966879284fbd71c612358
refs/heads/main
2023-08-05T06:27:48.110296
2023-06-07T18:22:09
2023-06-07T18:22:09
168,238,552
288
79
Apache-2.0
2023-05-30T03:23:50
2019-01-29T22:20:04
Python
UTF-8
Python
false
false
3,342
py
test_patient_name_fields.py
# Copyright (C) 2021 Derek Lane, Cancer Care Associates # 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...
5c4c6326f09c0be653632a68dc4afc5c016cd949
3d144a23e67c839a4df1c073c6a2c842508f16b2
/utils/build_swift/build_swift/defaults.py
ce2fe7a4f0f0457d0d0c7d6b2c10ce7687642523
[ "Apache-2.0", "Swift-exception" ]
permissive
apple/swift
c2724e388959f6623cf6e4ad6dc1cdd875fd0592
98ada1b200a43d090311b72eb45fe8ecebc97f81
refs/heads/main
2023-08-16T10:48:25.985330
2023-08-16T09:00:42
2023-08-16T09:00:42
44,838,949
78,897
15,074
Apache-2.0
2023-09-14T21:19:23
2015-10-23T21:15:07
C++
UTF-8
Python
false
false
3,805
py
defaults.py
# This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt for license information # See https://swift.org/CONTRIBUTORS.txt for the list o...
8f0b9d22265cd4e88158a39615fc484c718bffa6
f3f4fc4e7844d36488e6b572b8e2f6082f644044
/mapchete/cli/default/processes.py
23a897a3b94d96036571a938544bf6772319985f
[ "MIT" ]
permissive
ungarj/mapchete
06278d9dc6937530e5095b16b81628d74d7163f9
6c5cf24059dce87bc60df6e487519a3036bf0669
refs/heads/main
2023-09-02T13:39:44.202901
2023-08-27T12:59:08
2023-08-27T12:59:08
39,515,694
192
25
MIT
2023-09-05T10:46:16
2015-07-22T15:59:22
Python
UTF-8
Python
false
false
989
py
processes.py
"""CLI to list processes.""" import logging import click from mapchete.cli import options from mapchete.processes import process_names_docstrings logger = logging.getLogger(__name__) @click.command(help="List available processes.") @click.option( "--process_name", "-n", type=click.STRING, help="Print docstrin...
c3ecb487ec2048d641fecbf33b04b5ca0551c8ad
a5622dafafd782af153be2bc0bd19cb086fd07b2
/tests/integration_tests/resources/dsl/agent_tests/plugins/sourceplugin/setup.py
a5befc6266a5218d877d74cc49cfc1f90a3d9e72
[ "Apache-2.0" ]
permissive
cloudify-cosmo/cloudify-manager
8b2d226ad5a9dd8103d7690b2f8081bef24078e1
c0de6442e1d7653fad824d75e571802a74eee605
refs/heads/master
2023-09-06T09:11:51.753912
2023-09-04T08:01:58
2023-09-04T08:01:58
18,326,574
146
84
Apache-2.0
2023-09-04T08:02:00
2014-04-01T11:06:47
Python
UTF-8
Python
false
false
79
py
setup.py
from setuptools import setup setup(name='sourceplugin', py_modules=['plug1'])
fcce13afb656ddb37f88b957893f5156c81c4b0c
3684dc66398a1920dae24b9f0d855579794378ac
/loglizer_demo.py
e6afc1ec8adc028579562112211ab53bf82fa502
[ "MIT" ]
permissive
logpai/loglizer
ae5dbd308fdf8555db1362eead2d290de0e3462d
ac67f9727acb660687a77b9c8042553aaa185cd3
refs/heads/master
2023-07-30T06:29:02.977618
2023-03-27T11:32:46
2023-03-27T11:32:46
58,811,148
1,138
420
MIT
2023-03-20T02:12:08
2016-05-14T14:08:20
Python
UTF-8
Python
false
false
4,144
py
loglizer_demo.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import os import pandas as pd from loglizer.models import PCA, IsolationForest, DecisionTree, LR from loglizer import dataloader, preprocessing import pickle from tqdm import tqdm from sklearn.ensemble import IsolationForest as iForest from sklearn.metrics import...
5de94052cad44d1e457ee66600673c795fc5fc34
dcd772f567ef8a8a1173a9f437cd68f211fb9362
/ravenframework/utils/cached_ndarray.py
c79941cae30ef36f63eae6cc172a76029943e1f5
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause", "BSD-3-Clause" ]
permissive
idaholab/raven
39cdce98ad916c638399232cdc01a9be00e200a2
2b16e7aa3325fe84cab2477947a951414c635381
refs/heads/devel
2023-08-31T08:40:16.653099
2023-08-29T16:21:51
2023-08-29T16:21:51
85,989,537
201
126
Apache-2.0
2023-09-13T21:55:43
2017-03-23T19:29:27
C++
UTF-8
Python
false
false
14,621
py
cached_ndarray.py
# Copyright 2017 Battelle Energy Alliance, 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 t...
536afefc8fb293eed56b78f3fc2789b35c99a18f
e88c2055b62e2b2a61b3a3e25d9ef1472996b92a
/doc/conf.py
1339835e3b1dc0a384a641ffddbf213a477bd5d7
[ "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-proprietary-license", "BSD-3-Clause" ]
permissive
holoviz/holoviz
f4eb8156c25b068e2eaa10d0dfd6d4ef17d73e6d
8942c5c1fbe399e9693a51b730ea04246ce593d6
refs/heads/main
2023-08-09T13:15:36.008920
2023-08-02T13:39:08
2023-08-02T13:39:08
104,527,599
369
52
BSD-3-Clause
2023-08-28T07:12:24
2017-09-22T23:48:30
Python
UTF-8
Python
false
false
1,181
py
conf.py
# -*- coding: utf-8 -*- from nbsite.shared_conf import * project = "HoloViz" authors = 'HoloViz authors' copyright_years['start_year'] = '2017' copyright = copyright_fmt.format(**copyright_years) description = 'High-level tools to simplify visualization in Python.' import holoviz version = release = base_version(ho...
71a133a7648e37990b7b10e7690522f4f4b13737
4e2117a4381f65e7f2bb2b06da800f40dc98fa12
/103_EfficientDet_lite/test.py
003dd437b4e02dfa63d88cca85b4e844f9fa8696
[ "AGPL-3.0-only", "LicenseRef-scancode-proprietary-license", "MIT", "CC-BY-3.0" ]
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
5,375
py
test.py
import os os.environ['CUDA_VISIBLE_DEVICES'] = '-1' #=============================================================================================== import tensorflow_hub as hub import numpy as np detector = hub.load("https://tfhub.dev/tensorflow/efficientdet/lite0/detection/1") from PIL import Image images = [np.arr...
c48a356eac6a6c4a51c2addba6f25ba1f1fe408b
ac235a23f22be0d6f1818bb53902177f9969813a
/tests/contrib/redis/test_redis_cluster.py
5982701dd321a79a96bf5d4b48f01fc0925ffd20
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
DataDog/dd-trace-py
f09d6d48c4c69aea68f999fc8a458ade5c6150cf
1e3bd6d4edef5cda5a0831a6a7ec8e4046659d17
refs/heads/1.x
2023-09-01T20:25:26.746324
2023-09-01T18:54:37
2023-09-01T18:54:37
61,572,326
461
426
NOASSERTION
2023-09-14T20:38:57
2016-06-20T18:52:23
Python
UTF-8
Python
false
false
6,947
py
test_redis_cluster.py
# -*- coding: utf-8 -*- import pytest import redis from ddtrace import Pin from ddtrace.contrib.redis.patch import patch from ddtrace.contrib.redis.patch import unpatch from ddtrace.internal.schema import DEFAULT_SPAN_SERVICE_NAME from tests.contrib.config import REDISCLUSTER_CONFIG from tests.utils import DummyTracer...
e386b124970ea37a2a5508a656150d4441c85096
915d6cd33ed4293d83a15a2a03bd126a1f03fc97
/xknx/io/connection.py
448901e8fe7d25a1e49f11628c92484f3ff5b651
[ "MIT" ]
permissive
XKNX/xknx
5e02e3588ab8b2a4dcd7895b94cd39c2894070a8
48d4e31365c15e632b275f0d129cd9f2b2b5717d
refs/heads/main
2023-09-02T11:18:18.093379
2023-08-28T11:06:58
2023-08-28T11:06:58
51,259,458
248
131
MIT
2023-09-11T11:54:55
2016-02-07T18:29:39
Python
UTF-8
Python
false
false
5,402
py
connection.py
"""Manages a connection to the KNX bus.""" from __future__ import annotations from enum import Enum, auto import os from typing import Any from xknx.telegram.address import IndividualAddress, IndividualAddressableType from .const import DEFAULT_MCAST_GRP, DEFAULT_MCAST_PORT from .gateway_scanner import GatewayScanFi...
049a736e37bc2af45e009544a4fd0a9e3082fb65
0f2b08b31fab269c77d4b14240b8746a3ba17d5e
/onnxruntime/python/tools/kernel_explorer/kernels/gemm_fast_gelu_test.py
9b308c09811d1113ad71fa07db4f882ddb3fbee6
[ "MIT" ]
permissive
microsoft/onnxruntime
f75aa499496f4d0a07ab68ffa589d06f83b7db1d
5e747071be882efd6b54d7a7421042e68dcd6aff
refs/heads/main
2023-09-04T03:14:50.888927
2023-09-02T07:16:28
2023-09-02T07:16:28
156,939,672
9,912
2,451
MIT
2023-09-14T21:22:46
2018-11-10T02:22:53
C++
UTF-8
Python
false
false
7,253
py
gemm_fast_gelu_test.py
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # -------------------------------------------------------------------------- import sys from dataclasses import dataclass from itertools import produ...
a64f4e225ebab58e0f0bb20b7f1a59ca93080b99
0b6c8fe083df77862a7d3b1c82e128a74c32272d
/embeddings/elmo.py
2928b66cb05ea3c98744da443f0911e136264b88
[ "MIT" ]
permissive
vzhong/embeddings
fa34fc19f15149b8b0dd63e138afdf8c01c93b37
868b117bca4d9ac3e967bba5d895625db02cb2f3
refs/heads/master
2023-09-01T19:43:06.373578
2021-09-20T20:04:53
2021-09-20T20:04:53
83,266,708
226
29
MIT
2023-08-24T11:24:06
2017-02-27T04:05:12
Python
UTF-8
Python
false
false
1,579
py
elmo.py
import random from collections import namedtuple from os import path, makedirs import zipfile from tqdm import tqdm from embeddings.embedding import Embedding class ElmoEmbedding(Embedding): """ Reference: https://allennlp.org/elmo """ settings = { 'weights': 'https://s3-us-west-2.amazonaws....
62427ec5a4ec665c4734b879f183d8e1f93856b0
c531778b6b568e5924fcf438dce274067b6e1d31
/packages/h11/tests/test_helpers.py
1477947afa6f10cedf4701a80f31e5c92bc41a6a
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
CastagnaIT/plugin.video.netflix
a5180fbbaea244a490f750a2dd417b4e7303321a
ece10d24449faaccd7d65a4093c6b5679ee0b383
refs/heads/master
2023-07-01T23:32:20.442923
2023-06-27T06:42:18
2023-06-27T06:42:18
164,314,803
2,019
456
MIT
2023-09-13T13:34:06
2019-01-06T14:27:56
Python
UTF-8
Python
false
false
573
py
test_helpers.py
from .helpers import * def test_normalize_data_events(): assert normalize_data_events( [ Data(data=bytearray(b"1")), Data(data=b"2"), Response(status_code=200, headers=[]), Data(data=b"3"), Data(data=b"4"), EndOfMessage(), ...
431a5b2e14e309ef57c073bc9c2a0111833d0b04
83efec99c7c2fc08afb845fcab8328a5e1a2e687
/gis4wrf/plugin/ui/widget_met.py
4b376c2d36efa5a0382ccaf38630ed9ee47056c3
[ "MIT" ]
permissive
GIS4WRF/gis4wrf
a377fa79c207e110852bc4bf68acbc25be1a8fbc
9b311066d97595317fac9348a2acb35b04500651
refs/heads/master
2023-02-24T19:54:32.579246
2023-02-13T15:34:46
2023-02-13T15:34:46
137,216,497
152
34
MIT
2023-02-13T15:34:48
2018-06-13T13:03:39
Python
UTF-8
Python
false
false
11,432
py
widget_met.py
# GIS4WRF (https://doi.org/10.5281/zenodo.1288569) # Copyright (c) 2018 D. Meyer and M. Riechert. Licensed under MIT. from PyQt5.QtCore import Qt, QDate, QTime, QDateTime from PyQt5.QtGui import QDoubleValidator from PyQt5.QtWidgets import ( QWidget, QPushButton, QVBoxLayout, QGridLayout, QGroupBox, QLabel, QHBox...
15b7bd2f0fca9712abe244727aaf0d05194c52e6
f2fc344b95a3f0b98c34ba5fe1a8c3e08b176c2b
/run.py
d78448600473d74939d4a820e1b9910f46cc8034
[ "MIT" ]
permissive
microsoft/Bringing-Old-Photos-Back-to-Life
bc6ca6b84ac0f20e50fb9f7ebc45297d3ec10b1f
33875eccf4ebcd3665cf38cc56f3a0ce563d3a9c
refs/heads/master
2023-08-20T06:50:51.131642
2022-07-23T06:52:29
2022-07-23T06:52:29
274,594,200
14,159
1,863
MIT
2023-06-07T04:43:29
2020-06-24T06:37:58
Python
UTF-8
Python
false
false
6,775
py
run.py
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import os import argparse import shutil import sys from subprocess import call def run_cmd(command): try: call(command, shell=True) except KeyboardInterrupt: print("Process interrupted") sys.exit(1) if __name__ =...
15c75a3894f098169e028435ab76c88c3645ba92
75bc9ec750d31cf9bdf815dc92b489c958fcf396
/script/panel_data/alpha98InPython.py
6e2d8ad7e78d7280f372a8cce56f397b53eb33b9
[ "Apache-2.0" ]
permissive
dolphindb/Tutorials_CN
624da0a6f18fc786095bb9076c31c911413c0b10
d561e38f850319e3b134c50cf7a37e61aedc19ea
refs/heads/master
2023-09-01T00:44:51.367999
2023-08-30T09:35:09
2023-08-30T09:35:09
139,725,144
286
74
Apache-2.0
2019-04-11T07:57:29
2018-07-04T13:21:56
C++
UTF-8
Python
false
false
1,046
py
alpha98InPython.py
import dolphindb as ddb import numpy as np import pandas as pd import time s = ddb.session() s.connect("ip", {port}, "admin", "123456") vwap=s.run("vwap1") open=s.run("open1") vol=s.run("vol1") vwap.set_index("tradetime", inplace=True) open.set_index("tradetime", inplace=True) vol.set_index("tradetime", inplace=True)...
b25ffb2c0dfcee92fd964e1d78d1ebdb4197ba59
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/Matcher.py
503ae5008fb577bd85be5daed4385c9093c7f860
[ "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
2,308
py
Matcher.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class Matcher(object): def __init__(self): self._identity_card = None self._mobile_no = None self._open_id = None self._user_id = None @property def identity_ca...
6edcc8a8bddb0aa96488597d8fe500403108d775
32712c478ff9dff44de085cb50a1302bfc2eba67
/users/apps.py
f50e9e449ca4a60836599d9628440e00a92cba8d
[ "MIT" ]
permissive
vas3k/vas3k.club
158af17c329fe693178ca1bce36466922604df3b
b3ff2fd95ef1d6c593c57d3bcd501240f2705fbb
refs/heads/master
2023-09-03T07:10:10.859004
2023-09-01T09:08:32
2023-09-01T09:08:32
254,190,180
697
326
MIT
2023-09-04T09:02:12
2020-04-08T20:11:44
Python
UTF-8
Python
false
false
128
py
apps.py
import logging from django.apps import AppConfig log = logging.getLogger() class UsersConfig(AppConfig): name = "users"
ee8eb6336abea5f88037098c4c84cf0fe301774d
f509ab9825c542e09b0c6591d86ef1f9feb540a6
/pkgs/filetransferutils-pkg/src/genie/libs/filetransferutils/plugins/iosxr/http/fileutils.py
57e1dd37fe4ab148e60acc7e0b2ed79afa3dfd3f
[ "Apache-2.0" ]
permissive
CiscoTestAutomation/genielibs
97f597117193aaa18028defeb69078ebb241173a
e42e51475cddcb10f5c7814d0fe892ac865742ba
refs/heads/master
2023-08-11T16:39:41.959947
2023-07-27T17:58:42
2023-07-27T17:58:42
130,717,047
109
60
Apache-2.0
2023-08-29T22:32:08
2018-04-23T15:21:56
Python
UTF-8
Python
false
false
331
py
fileutils.py
""" File utils base class for HTTP on IOSXR devices. """ from ..fileutils import FileUtils as FileUtilsXRBase class FileUtils(FileUtilsXRBase): COPY_CONFIG_TEMPLATE = ['http client source-interface ipv4 {interface}'] COPY_CONFIG_VRF_TEMPLATE = ['http client vrf {vrf}', 'http client source-interface ipv4 {in...
f01677eb8e4d08bd3b9a409e0ccffc454c1807a4
830dcda30c0ef820474f4acb3364f0cfdee5ae01
/scalabel/label/__init__.py
2f69d9558051b646c77739d270e9f69b653cf50e
[ "Apache-2.0" ]
permissive
scalabel/scalabel
e9418168466312db452278415e202eb9922142b8
96ad0fffe06a3c9bdd83453c8ec9b70cbbbde641
refs/heads/master
2023-08-20T13:38:13.950520
2023-06-30T18:49:19
2023-06-30T18:49:19
222,340,751
530
130
Apache-2.0
2023-06-30T18:49:20
2019-11-18T01:43:08
TypeScript
UTF-8
Python
false
false
98
py
__init__.py
"""Label definition and conversion.""" from . import coco_typing, from_coco, io, to_coco, typing
032a34c0a4aa4f54423eb3930a04dbc8c2e69755
849364a9b65ac32feab67dd3bb86119a0102f048
/tests/test36/t2.py
1fcf846b2b2b2bdfb02a3dd6be3a6bb78129c599
[]
no_license
zokis/Python--Faster-Way
585b46e50cc70c6b4f3b026d3b82ba2705f6fc6b
8f11e9246198c6bc3c0c58668674d75188c966ae
refs/heads/gh-pages
2022-07-28T18:50:54.342599
2015-07-02T19:43:18
2015-07-02T19:43:18
12,438,963
200
31
null
2018-03-25T16:12:12
2013-08-28T16:35:19
HTML
UTF-8
Python
false
false
82
py
t2.py
def a(): r = [] for x in range(5): r.append([0] * 5) return r
64f869d8da0790eb14384b7a14ce1b8fa1467ed1
ee87c715e5d937b0380ddb87d56e9ebc4877a02b
/asv_benchmarks/benchmarks/model_selection.py
335ffe498adaa6187b128398e2c303800db71fa8
[ "BSD-3-Clause" ]
permissive
scikit-learn/scikit-learn
27a2196f3173e0f32f7a5c5d652b70a6c57c7644
061f8777b48e5491b0c57bb8e0bc7067c103079d
refs/heads/main
2023-08-18T15:32:59.764468
2023-08-18T14:39:08
2023-08-18T14:39:08
843,222
58,456
29,777
BSD-3-Clause
2023-09-14T19:08:34
2010-08-17T09:43:38
Python
UTF-8
Python
false
false
2,371
py
model_selection.py
from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import GridSearchCV, cross_val_score from .common import Benchmark, Estimator, Predictor from .datasets import _synth_classification_dataset from .utils import make_gen_classif_scorers class CrossValidationBenchmark(Benchmark): """ ...
06fc8a2b22d25b3b88da73fac87a68c45bcb040e
3bc139860403ebd05e278c95fca26e24d5189271
/chia/rpc/crawler_rpc_api.py
b4122f0f1957afe0085ea457267b0f130a2221a5
[ "Apache-2.0" ]
permissive
Chia-Network/chia-blockchain
a09183b7240b159419b45f8373a41a1062f77ef3
d966f3f9e63aed52dbd73544164202a9f11ce3d2
refs/heads/main
2023-08-31T09:37:13.741283
2023-08-30T18:27:22
2023-08-30T18:27:22
197,153,676
12,936
2,474
Apache-2.0
2023-09-14T19:08:51
2019-07-16T08:32:40
Python
UTF-8
Python
false
false
2,640
py
crawler_rpc_api.py
from __future__ import annotations import ipaddress from typing import Any, Dict, List, Optional from chia.rpc.rpc_server import Endpoint, EndpointResult from chia.seeder.crawler import Crawler from chia.util.ws_message import WsRpcMessage, create_payload_dict class CrawlerRpcApi: def __init__(self, crawler: Cr...
91d076f37b688aa278ceb53acadb55adb17f8a87
b8bbdfc593b6d816e67a344f720f90ec05236778
/tests/system/providers/google/cloud/compute/example_compute_igm.py
45449cf12574f5c334de6592bb88e7f7a9ec0011
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
apache/airflow
ed78db0a8bab7e096990e143926e52f518e288ab
1b122c15030e99cef9d4ff26d3781a7a9d6949bc
refs/heads/main
2023-09-01T08:37:34.556097
2023-09-01T06:49:05
2023-09-01T06:49:05
33,884,891
22,756
11,558
Apache-2.0
2023-09-14T20:12:36
2015-04-13T18:04:58
Python
UTF-8
Python
false
false
8,930
py
example_compute_igm.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...
3527571d8a56aa7bebf5970a35877cb15c7f75c3
4b531117b09c8a60745b61c1b8b7f00f62a16a1c
/plugin.video.kaiyan/addon.py
48014973fa03868b2ca373565a579ad41952a7ef
[ "MIT" ]
permissive
zhengfan2014/xbmc-kodi-private-china-addons
ce68c8ba991a5aceefbffccf60d6bb8191cc4af8
984856b358da0a1423df7010bb474e1727270429
refs/heads/py2
2022-12-15T07:16:21.266240
2021-08-13T13:12:05
2021-08-13T13:12:05
244,306,237
527
90
MIT
2021-11-30T07:34:33
2020-03-02T07:23:14
Python
UTF-8
Python
false
false
7,410
py
addon.py
#!/usr/bin/env python # -*- coding:utf-8 -*- import re from xbmcswift2 import Plugin import requests from bs4 import BeautifulSoup import xbmcgui import base64 import json import urllib2 import sys import HTMLParser import re def get_real_url(url): rs = requests.get(url,headers=headers,timeout=2) return rs.url...
497f198069361e99344c231c76b64b6fabf22629
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-VideoSubscriberAccount/PyObjCTest/test_vssubscription.py
4ad2ba6b60e3c7f7d2e1994fbd32cf3541573c76
[ "MIT" ]
permissive
ronaldoussoren/pyobjc
29dc9ca0af838a56105a9ddd62fb38ec415f0b86
77b98382e52818690449111cd2e23cd469b53cf5
refs/heads/master
2023-09-01T05:15:21.814504
2023-06-13T20:00:17
2023-06-13T20:00:17
243,933,900
439
49
null
2023-06-25T02:49:07
2020-02-29T08:43:12
Python
UTF-8
Python
false
false
610
py
test_vssubscription.py
from PyObjCTools.TestSupport import TestCase import VideoSubscriberAccount class TestVSSubscription(TestCase): def test_enum_types(self): self.assertIsEnumType(VideoSubscriberAccount.VSSubscriptionAccessLevel) def testConstants(self): self.assertEqual(VideoSubscriberAccount.VSSubscriptionAcce...
be1c21ee7b686f9fc44ded1b3ee9085085a74e50
d037fecd7d32a97d6e38d27dbbf574bbd825054a
/homu/comments.py
7a1c97965ef6d46fb6845d79282580ca6e1df372
[ "MIT" ]
permissive
rust-lang/homu
e83b164ffb0b76e3d03e41a3b7d67f20ce2f6d00
c6926e6c10bd9725b617777a3d45ae57d21b96ed
refs/heads/master
2023-09-01T04:03:08.849152
2023-06-11T13:46:18
2023-06-11T13:46:18
127,407,146
148
63
MIT
2023-09-03T15:40:02
2018-03-30T09:06:01
Python
UTF-8
Python
false
false
5,132
py
comments.py
import json class Comment: def __init__(self, **args): if len(args) != len(self.params): raise KeyError("different number of params") for key, value in args.items(): if key in self.params: setattr(self, key, value) else: raise Key...
805491572083fae86456a0fddb330da09180703c
e92b076a101aad48406de701400cfa230e66c313
/pyrep/robots/robot_component.py
7eab82425f8b3ef1153ac63ef56d50cd632f1ffd
[ "MIT" ]
permissive
stepjam/PyRep
16b16647943586369b37a88a48de6477f3e8901f
5837640a7d9fa41c3d49db22d6b24e3a291b5048
refs/heads/master
2023-08-31T11:36:27.521442
2023-08-22T16:55:14
2023-08-22T16:55:14
193,898,092
619
198
MIT
2023-08-10T04:23:50
2019-06-26T12:15:58
Python
UTF-8
Python
false
false
10,392
py
robot_component.py
from typing import List, Tuple from pyrep.objects.shape import Shape from pyrep.backend import sim, utils from pyrep.const import JointType from pyrep.objects.object import Object from pyrep.objects.joint import Joint from pyrep.const import ObjectType, JointMode class RobotComponent(Object): """Collection of j...
b00eac21fd4413883800c1e7449f02f5bd56755d
bc64ff33e398fea0d217fb96bf1a861bf68032c8
/Tutorial Deploy to OpenCV dnn/aid_cv2_dnn.py
36362693bf9a60e574627a93aee50d2300be9242
[ "BSD-2-Clause" ]
permissive
maikherbig/AIDeveloper
6c37ab6f7abdfd82f33a1717a23dac81332a64c1
66ade20df6b0b4f607e43f2e6661ab6d036afe3f
refs/heads/master
2023-02-20T15:20:22.385575
2023-02-06T09:47:40
2023-02-06T09:47:40
209,036,440
109
21
null
null
null
null
UTF-8
Python
false
false
30,982
py
aid_cv2_dnn.py
import numpy as np import pandas as pd import cv2 from scipy import ndimage #Run inference (using OpenCV's dnn module) on images using your model trained #in AIDeveloper. #Script contains functions: #- to pre-preprocess images according to the input criteria of a loaded model #- forward images through a mod...
122c219a48353718e97c7371927b82be1a8a5f74
2d05050d0ada29f7680b4df20c10bb85b0530e45
/python/tvm/rpc/server.py
6ee683c73ba56b3ee1e8c4af4a232959a18e1f1a
[ "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
17,956
py
server.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...
a1f4afd67ad77e451c0e3288e1898186fd812356
2dc24a356ebe7a362623780603379a5b35a65c2f
/terraform/stacks/bot/lambdas/python/slack_automation_bot/slack_bolt/kwargs_injection/args.py
0774b183a541b70318a798b5d28a2121fb19b801
[ "MIT" ]
permissive
cloud-sniper/cloud-sniper
cef08402f9109211c33909bdb3de07b16952e308
4b026da33695b25033c7667679f3cf552c4bf3b5
refs/heads/master
2023-06-24T20:46:02.377409
2023-04-14T14:48:45
2023-04-14T14:48:45
210,739,453
184
36
MIT
2023-04-14T14:48:46
2019-09-25T02:34:26
Python
UTF-8
Python
false
false
2,683
py
args.py
# pytype: skip-file import logging from logging import Logger from typing import Callable, Dict, Any, Optional from slack_bolt.context import BoltContext from slack_bolt.context.ack import Ack from slack_bolt.context.respond import Respond from slack_bolt.context.say import Say from slack_bolt.request import BoltReque...
b91c7035bb3f5a6466973fb2697eb08b69d96953
dbe83cf6c2b78a61def862ca19625c2f78268af8
/ibis/expr/operations/window.py
b6af75af47699a13a1794042cc74c99afcc808ce
[ "Apache-2.0" ]
permissive
ibis-project/ibis
56a169d75805db7dfd39192cf0562521c405ff1c
3866492906d731dc170b560e7d7471bd4855169a
refs/heads/master
2023-09-01T17:07:38.854510
2023-09-01T13:52:08
2023-09-01T15:32:04
34,139,230
2,304
384
Apache-2.0
2023-09-14T21:52:21
2015-04-17T20:43:46
Python
UTF-8
Python
false
false
4,609
py
window.py
from __future__ import annotations from abc import abstractmethod from typing import Optional from public import public from typing_extensions import TypeVar import ibis.common.exceptions as com import ibis.expr.datashape as ds import ibis.expr.datatypes as dt import ibis.expr.rules as rlz from ibis.common.patterns ...
725ad184b03d819fe324c64ba94cd85b508f8c28
2337351b228818e41be3002bd38f68f77c2aa074
/main/refbooks/downloaders/loader.py
cc5881ad8ab5c3ac46b55fdda76f6178da07fcc9
[ "BSD-3-Clause" ]
permissive
nocproject/noc
57d40c680a1499374463e472434f9595ed6d1374
6e6d71574e9b9d822bec572cc629a0ea73604a59
refs/heads/master
2023-08-31T01:11:33.544573
2023-08-30T17:31:11
2023-08-30T17:31:11
107,815,776
105
33
BSD-3-Clause
2023-07-31T07:57:45
2017-10-21T21:04:33
Python
UTF-8
Python
false
false
638
py
loader.py
# ---------------------------------------------------------------------- # Downloader Loader # ---------------------------------------------------------------------- # Copyright (C) 2007-2022 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- # NOC module...
42f526c0fb165ae1899c07602d2e733ed1e36380
bdf0d4d3aac186af3ad0ad6ac9f380f9a0573fba
/aries_cloudagent/protocols/revocation_notification/v2_0/models/rev_notification_record.py
abbd3e04aaecda8531a965a742407eed87c8b416
[ "LicenseRef-scancode-dco-1.1", "Apache-2.0" ]
permissive
hyperledger/aries-cloudagent-python
f25d961e0717a4d703bf43df3e4b4bc8ec07b908
39cac36d8937ce84a9307ce100aaefb8bc05ec04
refs/heads/main
2023-09-01T15:37:05.353674
2023-08-31T14:13:06
2023-08-31T14:13:06
193,556,007
370
530
Apache-2.0
2023-09-14T17:59:34
2019-06-24T18:12:14
Python
UTF-8
Python
false
false
5,689
py
rev_notification_record.py
"""Store revocation notification details until revocation is published.""" from typing import Optional, Sequence from marshmallow import fields from marshmallow.utils import EXCLUDE from .....core.profile import ProfileSession from .....messaging.models.base_record import BaseRecord, BaseRecordSchema from .....messa...
bd30937d3bbbfd12dcc0a448d19ac1624ab5ed12
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/A_Primer_on_Scientific_Programming_with_Python/class/classes.py
bf71c7d3e9ad7414e81b87d1ee5ea0bb1483c8fb
[]
no_license
burakbayramli/books
9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0
5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95
refs/heads/master
2023-08-17T05:31:08.885134
2023-08-14T10:05:37
2023-08-14T10:05:37
72,460,321
223
174
null
2022-10-24T12:15:06
2016-10-31T17:24:00
Jupyter Notebook
UTF-8
Python
false
false
3,947
py
classes.py
from math import pi class Y: def __init__(self, v0): self.v0 = v0 self.g = 9.81 def value(self, t): return self.v0*t - 0.5*self.g*t**2 def formula(self): return 'v0*t - 0.5*g*t**2; v0=%g' % self.v0 def __call__(self, t): return self.v0*t - 0.5*self.g*t**2 ...
bd29ae7ec04f6fbfb742e1b972c4596264a2095c
2337351b228818e41be3002bd38f68f77c2aa074
/fm/models/utils.py
f1f28b3d6c947aff94cd4da7962daa92055c298f
[ "BSD-3-Clause" ]
permissive
nocproject/noc
57d40c680a1499374463e472434f9595ed6d1374
6e6d71574e9b9d822bec572cc629a0ea73604a59
refs/heads/master
2023-08-31T01:11:33.544573
2023-08-30T17:31:11
2023-08-30T17:31:11
107,815,776
105
33
BSD-3-Clause
2023-07-31T07:57:45
2017-10-21T21:04:33
Python
UTF-8
Python
false
false
2,444
py
utils.py
# --------------------------------------------------------------------- # FM models utils # --------------------------------------------------------------------- # Copyright (C) 2007-2023 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- # Python modules ...
be08309f862254bf79284a1bea7a327bc9221f00
733d89e47c26ea1c69a7b7b511d72c0c0bed2682
/rplugin/qc-fast.py
4e90197e0c6f4f81b1eb4df73e56094cf780c952
[]
no_license
raghur/fruzzy
67283868b4f26bef35d70769e629369f7225e02c
4cdfee7b828a5cace22bfd93cf23fee0b2b233c4
refs/heads/master
2021-06-02T19:24:04.184825
2020-08-31T03:51:03
2020-08-31T03:51:03
150,564,410
115
8
null
2020-10-11T03:53:53
2018-09-27T09:44:23
Python
UTF-8
Python
false
false
2,091
py
qc-fast.py
from python3 import fruzzy import sys import os useNative = False if os.getenv("FUZZY_CMOD"): from python3.fruzzy_mod import scoreMatchesStr, baseline useNative = True def printResults(query, results): print() print("query: %s, results: " % query) for r in results: print(r) def scoreMatc...
6589927af75e8624e3a658e9c757090445fa256d
f192190519b078fb4d3c27beee4f2fa7228f6f2f
/octoprint_PrintTimeGenius/analyzers/analyze_progress.py
e5791ae7b84f4e08fb8109269f8c5f2ace99b3b5
[]
no_license
eyal0/OctoPrint-PrintTimeGenius
31b71b5f30565badca345e475d03976fb83c5955
b164e6016d003dfd55e2b40d43d20078301e4c94
refs/heads/master
2023-07-23T03:25:12.213031
2023-07-21T21:30:56
2023-07-21T21:30:56
139,004,783
191
44
null
2023-07-21T21:27:11
2018-06-28T10:42:28
Python
UTF-8
Python
false
false
3,294
py
analyze_progress.py
#!/usr/bin/env python from __future__ import print_function import subprocess import sys import json import os import platform def main(): binary_base_name = sys.argv[1] machine = platform.machine() if platform.system() == "Darwin": machine = "darwin-" + machine elif platform.system() == "Windows": ma...
94475dddbe898b5c015e6be008f1f662e4ad6ec6
76787cd4117d71377bd27d251b6d30b41922ff67
/draft_kings/data.py
bc4d512a9725658406709eb0c5e9aca272830824
[ "MIT" ]
permissive
jaebradley/draftkings_client
50ba0f25e38b78f75d92a57660bfb110e3a27e69
2184e2e3cf66bfe9e4cc6f6d577c80602ab7121a
refs/heads/v3
2022-12-09T14:35:50.263181
2022-01-19T06:36:24
2022-01-19T06:36:24
73,451,976
138
47
MIT
2022-12-08T01:23:13
2016-11-11T06:29:44
Python
UTF-8
Python
false
false
2,092
py
data.py
from enum import Enum class Sport(Enum): ARENA_FOOTBALL_LEAGUE = "ARENA FOOTBALL LEAGUE" AUSTRALIAN_FOOTBALL_LEAGUE = "AUSTRALIAN FOOTBALL LEAGUE" NFL = "NFL" NHL = "NHL" NBA = "NBA" NASCAR = "NASCAR" SOCCER = "SOCCER" GOLF = "GOLF" CALL_OF_DUTY = "CALL OF DUTY" CFL = "CFL" ...
7332796c073926f13207a0229c7ffd8a5d316d81
71acb7214efd91c0d327f6d8958e1798eadb4401
/locations/spiders/ecco.py
8ee98e820250ace4ee56f3713d9a46d6c1bfc071
[ "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,713
py
ecco.py
import scrapy from locations.hours import DAYS_FULL, OpeningHours from locations.items import Feature class EccoSpider(scrapy.Spider): name = "ecco" item_attributes = {"brand": "Ecco", "brand_wikidata": "Q1280255"} start_urls = [ "https://se.ecco.com/api/store/search?latitudeMin=-90&longitudeMin=...
681f77fd01bf23c9bb0bdfac02037dbc1deaf1ab
444a9480bce2035565332d4d4654244c0b5cd47b
/research/nlp/seq2seq/src/seq2seq_model/bleu_calculate.py
1bddff545bae919486a245bc5f5eb0623a59907f
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license" ]
permissive
mindspore-ai/models
7ede9c6454e77e995e674628204e1c6e76bd7b27
eab643f51336dbf7d711f02d27e6516e5affee59
refs/heads/master
2023-07-20T01:49:34.614616
2023-07-17T11:43:18
2023-07-17T11:43:18
417,393,380
301
92
Apache-2.0
2023-05-17T11:22:28
2021-10-15T06:38:37
Python
UTF-8
Python
false
false
2,830
py
bleu_calculate.py
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
0b2533bc138e5d74170fb13f103c74b06ca7d78c
5f7335fb5240590eaebf751ec2c37ffbfb92d08b
/test_scripts/module_with_triple_quotes/greeting.py
ca94bf178572948b6877db4fe0b1057a666de7ae
[ "BSD-2-Clause" ]
permissive
mwilliamson/stickytape
41523ff4650384634660ebe164a2e637319ed4cb
7e8d4dc2ace78d4f99e4c7a0f49273abf341b187
refs/heads/master
2023-05-10T23:12:21.253570
2023-05-01T15:04:37
2023-05-01T15:04:37
6,472,845
209
29
BSD-2-Clause
2022-10-05T20:45:32
2012-10-31T11:27:37
Python
UTF-8
Python
false
false
33
py
greeting.py
message = "Hello\n'''\n" + '"""'
e4128a61b889e8978a8c46017c9e7b94b62fd4a6
f513818b0b9db1e345de3e390dad71e692987c9a
/python/bllipparser/RerankerFeatureCorpus.py
1f2f8758f87f48e0a9ff3fe46d19b8d1cf221f1f
[ "Apache-2.0" ]
permissive
BLLIP/bllip-parser
ee20570eae2b31e316ca46e5157de921432ba1a0
0eb1ed848a7be0f222e23d451d786a6a0ac24e08
refs/heads/master
2021-11-24T03:06:42.479290
2021-11-07T19:34:41
2021-11-07T19:34:41
1,418,858
209
58
null
2017-09-30T20:29:27
2011-02-27T19:29:34
GAP
UTF-8
Python
false
false
13,944
py
RerankerFeatureCorpus.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...
4f3b064950bfd0b010f05ea11239eeb1313c05d5
5eb52c07e5b1bd00af77306f927f382b684cd6ff
/indy_node/test/persistence/test_idr_cache_update_after_catchup.py
9926c13a16431b4e585aa33ca65dcb5e0eb31dfc
[ "Apache-2.0" ]
permissive
hyperledger/indy-node
bce39486988f5114581cff4f6d14fc1b7684143c
e6bb87d4c605aff9914491d062248b6ec857334c
refs/heads/main
2023-09-03T15:33:08.187153
2023-05-08T22:48:21
2023-05-08T22:48:21
77,021,566
691
783
Apache-2.0
2023-05-09T15:42:43
2016-12-21T05:45:04
Python
UTF-8
Python
false
false
2,392
py
test_idr_cache_update_after_catchup.py
import json from indy.ledger import build_nym_request, sign_request, submit_request from indy_common.state import domain from indy_node.test.helper import start_stopped_node, createHalfKeyIdentifierAndAbbrevVerkey from plenum.common.constants import DOMAIN_LEDGER_ID from plenum.common.txn_util import get_txn_time fro...
10c9478ac458608f417d69b783997ffa553b8788
146c65138cf8665918193c74a185ceab0ba7009b
/tests/testing/units.py
90918aea55bbacc028653f4732ff48d1cf1a76ea
[ "BSD-3-Clause", "LicenseRef-scancode-proprietary-license", "LGPL-2.0-or-later", "MIT" ]
permissive
harvard-acc/gem5-aladdin
b962dd2103e938354c05d81e6843c145ac05e085
d4efbee56d71f9609eab85393eff58f5dbf7763c
refs/heads/master
2022-11-11T12:25:29.032584
2022-01-21T06:26:00
2022-01-21T06:26:00
70,526,994
194
66
BSD-3-Clause
2022-10-06T04:50:52
2016-10-10T20:41:00
C++
UTF-8
Python
false
false
10,268
py
units.py
#!/usr/bin/env python2.7 # # Copyright (c) 2016 ARM Limited # All rights reserved # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementa...
521d9cb3f7349a65e0c23b2ae2129bdc852bea55
c5fd80ede07f0972a9b99d0c65a0df40e6d487fa
/test/unit/test_mockcore.py
9c2549da0024e7a94d386a64f2db88d0e2e69035
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
pyocd/pyOCD
46330f3a10c9be381293d220cc025e0e347513ce
9253740baf46ebf4eacbce6bf3369150c5fb8ee0
refs/heads/main
2023-08-18T07:56:54.205305
2023-08-13T19:11:01
2023-08-13T19:11:01
13,862,423
507
204
Apache-2.0
2023-09-09T20:13:57
2013-10-25T14:10:05
Python
UTF-8
Python
false
false
3,809
py
test_mockcore.py
# pyOCD debugger # Copyright (c) 2016-2019 Arm Limited # SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0...
36fb6f2f3d27a0c87a13dedea50c0b178f825421
5655a9fa1371274fb9d61bbb652e13eec0595468
/runtime/Python3/src/antlr4/Lexer.py
82accadcbca680b48f4c0206731259d32adc299e
[ "BSD-3-Clause" ]
permissive
antlr/antlr4
68f3cbb13eefa1638569fe9f4f2f96e048255cd1
e0df58f5185cb3c9148eab724a11394050c565ca
refs/heads/dev
2023-08-29T14:07:51.178320
2023-08-28T15:29:08
2023-08-28T16:46:56
501,687
15,379
3,965
BSD-3-Clause
2023-09-09T22:21:56
2010-02-04T01:36:28
Java
UTF-8
Python
false
false
11,542
py
Lexer.py
# Copyright (c) 2012-2017 The ANTLR Project. All rights reserved. # Use of this file is governed by the BSD 3-clause license that # can be found in the LICENSE.txt file in the project root. #/ # A lexer is recognizer that draws input symbols from a character stream. # lexer grammars result in a subclass of self objec...
42feddca0aff08ed6d508231c5ada21173232f1a
2d05050d0ada29f7680b4df20c10bb85b0530e45
/python/tvm/topi/nn/conv2d_transpose.py
5638d3d77fd28f17ab491d54c80cbf7a47499c67
[ "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
11,441
py
conv2d_transpose.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...
3934e0247709b3f33ab4712963891f925d3436ad
dc53b4b9a12875e832573f31906e889ae2719e8c
/src/train_utils.py
f3db39c75c7580034033d163591c93f3124e08a5
[]
no_license
rezazad68/Deep-Intervertebral-Disc-Labeling
be7601357df68a1a79b3ff8f576aed6456e33acd
fb310ee1515d7e55e1d6ebf3af84d9c2bad1d520
refs/heads/main
2023-08-30T23:34:56.527755
2023-08-24T21:42:26
2023-08-24T21:42:26
394,945,794
227
4
null
2021-08-12T16:25:08
2021-08-11T10:10:31
Python
UTF-8
Python
false
false
15,822
py
train_utils.py
# Author: Lucas # Copyright (c) 2020 Polytechnique Montreal <www.neuro.polymtl.ca> # Revised by Reza Azad (several functions added) from torchvision import transforms import numpy as np from torch.utils.data import Dataset # from Data2array import * import matplotlib.pyplot as plt import PIL from transform_s...
f4d4f4d94f9834b20acd8c3826c25f053dc23c15
09c46a2414e674d8631731d58c2c17f8268b5a60
/srv/fluffi/data/fluffiweb/config.py
edd0f627964a732beefa05d26583096cb7dec503
[ "MIT" ]
permissive
siemens/fluffi
49ea030e4411ed02e60d3a5394c0a32651450598
70cd18deff9d688e10ec71a1eb4f38d7f2d581c0
refs/heads/master
2022-09-10T00:23:12.051619
2022-08-19T13:41:58
2022-08-19T13:41:58
209,495,395
102
24
MIT
2023-02-19T10:45:36
2019-09-19T07:55:43
C++
UTF-8
Python
false
false
2,787
py
config.py
# Copyright 2017-2020 Siemens AG # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including without # limitation the rights to use, copy, modify, merge, publish, distri...
b0b65d5cf13188b8d6c924a7f22bf7202d3436e9
eca37de3be161edfeff5e10a88e699b174572d30
/kymatio/frontend/entry.py
7bb8190040d7bc6dbb0071e6d47d9bd5a5b359ec
[ "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
1,845
py
entry.py
import logging import warnings import importlib class ScatteringEntry(object): def __init__(self, *args, **kwargs): self.name = kwargs['name'] self.class_name = kwargs['class_name'] kwargs.pop('name') kwargs.pop('class_name') frontend_suffixes = {'torch' : 'Torch', ...
6c708ad0830ad2b26f14719411a9b95cdce9cfaa
8af4e173ab3be9b9fc5cf1b61dbb5da80234d5c7
/tests/integration/unit_test/test_unit_test_java8_al2.py
c5336b1b98bbd67dca7518128ec41e8ca2420157
[ "Apache-2.0" ]
permissive
aws/aws-sam-cli-app-templates
d464da1665d84eda9f427f682b985538827d41b6
88380eb265d58c496ea80685d4a5701e3cfc13d2
refs/heads/master
2023-09-04T13:03:00.204479
2023-08-23T20:43:24
2023-08-23T20:43:24
211,362,544
354
230
Apache-2.0
2023-09-14T15:39:09
2019-09-27T16:42:59
Python
UTF-8
Python
false
false
2,279
py
test_unit_test_java8_al2.py
from unittest import skip from tests.integration.unit_test.unit_test_base import UnitTestBase class UnitTest_java8_al2_cookiecutter_aws_sam_hello_java_gradle(UnitTestBase.JavaUnitTestGradleBase): directory = "java8.al2/hello-gradle" code_directories = ["HelloWorldFunction"] class UnitTest_java8_al2_cookiec...
3f0eb6bdf6f75da6be739f5f749ddd5beb622ff6
fdb9bdc6c4ab2f14ba71e544493706d5e275899f
/fhir/resources/R4B/tests/test_healthcareservice.py
69e3e87d8dce92f30d2d86dd708b0298a560dc1e
[ "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
5,989
py
test_healthcareservice.py
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/HealthcareService Release: R4B Version: 4.3.0 Build ID: c475c22 Last updated: 2022-05-28T12:47:40.239+10:00 """ from pydantic.validators import bytes_validator # noqa: F401 from .. import fhirtypes # noqa: F401 from .. import healthcareserv...
94a2322a14875d301e85c01629ab6c98caf9646f
7b7c570b30d6d7a0e9b904c7cb378cfb0d0f0e07
/tests/tensorflow/test_keras_model_export.py
5e32051d837b56efa8eada21029972d25863ac31
[ "Apache-2.0" ]
permissive
mlflow/mlflow
ca97bfbbf32f8e59f454e428f5e46eb3d34d062f
37298ffafcd34002352d01d579d4524790544267
refs/heads/master
2023-09-01T13:15:53.902815
2023-09-01T09:00:42
2023-09-01T09:00:42
136,202,695
14,102
3,748
Apache-2.0
2023-09-14T21:52:42
2018-06-05T16:05:58
Python
UTF-8
Python
false
false
30,059
py
test_keras_model_export.py
import json import os import pickle import random import shutil from pathlib import Path from unittest import mock import numpy as np import pandas as pd import pytest import tensorflow as tf import yaml from packaging.version import Version # pylint: disable=no-name-in-module from sklearn import datasets from tensor...
fb5bf25297c14677d70982413480aa3de9863f96
65ccaf1937bb59bc13422f214267bcaac6a0c628
/aws-inventory/lambda/inventory-client-vpn.py
a76960a76610a44d5f8f1401e7d3b73fb4660c56
[ "Apache-2.0" ]
permissive
turnerlabs/antiope
76b803872f4efa9e465288231564b30cf984304e
ca141dbc467168902b96250e3bb054ced24b4ca8
refs/heads/development
2023-07-25T03:10:33.603230
2021-03-24T13:24:29
2021-03-24T13:24:29
150,344,256
227
46
Apache-2.0
2022-01-06T14:32:02
2018-09-26T00:12:46
Python
UTF-8
Python
false
false
6,185
py
inventory-client-vpn.py
import boto3 from botocore.exceptions import ClientError import json import os import time from datetime import datetime, timezone from dateutil import tz from antiope.aws_account import * from common import * import logging logger = logging.getLogger() logger.setLevel(getattr(logging, os.getenv('LOG_LEVEL', default=...
485a0aed0cab9ef98b8161c6465eeed7929c2c37
ee87c715e5d937b0380ddb87d56e9ebc4877a02b
/sklearn/cluster/tests/test_affinity_propagation.py
9f82957d2067aa91ccfa843979b71bd47a5f8bfc
[ "BSD-3-Clause" ]
permissive
scikit-learn/scikit-learn
27a2196f3173e0f32f7a5c5d652b70a6c57c7644
061f8777b48e5491b0c57bb8e0bc7067c103079d
refs/heads/main
2023-08-18T15:32:59.764468
2023-08-18T14:39:08
2023-08-18T14:39:08
843,222
58,456
29,777
BSD-3-Clause
2023-09-14T19:08:34
2010-08-17T09:43:38
Python
UTF-8
Python
false
false
11,533
py
test_affinity_propagation.py
""" Testing for Clustering methods """ import warnings import numpy as np import pytest from sklearn.cluster import AffinityPropagation, affinity_propagation from sklearn.cluster._affinity_propagation import _equal_similarities_and_preferences from sklearn.datasets import make_blobs from sklearn.exceptions import C...
bedf698e1611076fb30a2dc95f338472da529d09
e457ef64e939acc769d3b4609184f1603fdd875a
/fastavro/_logical_writers_py.py
dcfedc4d6941cfeb874e043c873d21b44fe5a7d7
[ "Apache-2.0", "MIT" ]
permissive
fastavro/fastavro
dbad8c55fabc9f22b16273ee1a926f22c840c694
40dfd526076446cc7f7eef97e40da216b910d047
refs/heads/master
2023-09-01T04:16:13.510802
2023-08-25T10:19:13
2023-08-25T11:05:36
3,845,895
430
105
MIT
2023-09-14T20:14:34
2012-03-27T16:29:38
Python
UTF-8
Python
false
false
7,830
py
_logical_writers_py.py
# cython: auto_cpdef=True import datetime import decimal from io import BytesIO import os import time from typing import Dict, Union import uuid from .const import ( MCS_PER_HOUR, MCS_PER_MINUTE, MCS_PER_SECOND, MLS_PER_HOUR, MLS_PER_MINUTE, MLS_PER_SECOND, DAYS_SHIFT, ) is_windows = os.n...
bce42559e9d308ba98a354d9d55b66a07443c62d
6edc13730dca64071d4c10df093792c3726d9ced
/benchmarks/producer_performance.py
c0de6fd239d9f5d03b8358c16e508fab5cae75a0
[ "Apache-2.0" ]
permissive
dpkp/kafka-python
2ce9f38d716430663a8b069a9ddd85b3a163b3a3
a33fcf4d22bdf34e9660e394a7a6f84225411325
refs/heads/master
2023-08-24T21:15:11.282283
2023-08-09T16:44:53
2023-08-09T16:44:53
5,934,517
4,979
1,251
Apache-2.0
2023-09-04T18:34:29
2012-09-24T13:00:26
Python
UTF-8
Python
false
false
5,247
py
producer_performance.py
#!/usr/bin/env python # Adapted from https://github.com/mrafayaleem/kafka-jython from __future__ import absolute_import, print_function import argparse import pprint import sys import threading import traceback from kafka.vendor.six.moves import range from kafka import KafkaProducer from test.fixtures import KafkaF...
9a56c6930260c8307bbdf0018349440c429a2d1d
1518698c3f7c70912f4079261a3b7b81608bed63
/python/pyxel/editor/__init__.py
570bbf43fe76e568a6e50d5fc53baf23a241abe2
[ "MIT" ]
permissive
kitao/pyxel
2cff908a302ed316b31f55511977769e4c356fa5
5bffc3516e6f961b45098512ea90bf08c804d71e
refs/heads/main
2023-07-13T19:46:27.473953
2023-07-12T14:23:47
2023-07-12T14:23:47
136,780,445
13,103
1,060
MIT
2023-08-27T13:58:10
2018-06-10T04:58:54
Python
UTF-8
Python
false
false
79
py
__init__.py
from . import additional_apis # noqa: F401 from .app import App # noqa: F401
e03fea013e1e096a33c86d24b6bd15121c401483
9b9487dcc5a1c7efe527070aea4d35ef2bcc3bff
/sync_settings/sync_version.py
4440aab86a0bc60faab3c2ed12be191f09e49d84
[ "MIT" ]
permissive
mfuentesg/SyncSettings
c9a193fbc19262b25998b03bd9beb12eb0d0cc97
41fa229a922563d49034b61a08d07d642ebc0527
refs/heads/master
2023-07-02T18:17:48.401929
2022-07-28T13:48:23
2022-07-28T13:48:23
39,971,725
333
53
MIT
2022-12-09T05:18:46
2015-07-30T20:46:21
Python
UTF-8
Python
false
false
1,647
py
sync_version.py
# -*- coding: utf-8 -* import sublime import json import os from .libs.gist import Gist from .libs import settings, path, file file_path = path.join(os.path.expanduser('~'), '.sync_settings', 'sync.json') def get_local_version(): if not path.exists(file_path): return {} try: with open(file_p...
173a9c120a76965bb00a193d39047e0552378148
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/intentions/PyConvertToFStringIntentionTest/percentOperatorSingleExpression.py
f6061634c60d10a477fc4c5ce11b1339ea159345
[ "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
15
py
percentOperatorSingleExpression.py
u'%04.5r' % 42
32bc3681c5c721ccf38a2479f64b2d075c774f92
c2d48caa5db7e746a38beca625406fcf47379d3c
/src/olympia/addons/admin.py
ad6e236a5d8e0b32742bba216da9cc65919c2f75
[]
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
21,893
py
admin.py
import functools from urllib.parse import urlencode, urljoin from django import forms, http from django.conf import settings from django.contrib import admin from django.contrib.admin.utils import display_for_field from django.core import validators from django.db.models import Exists, OuterRef from django.forms.model...
db6bce866d553523dbe261a9bbaa725b7cece3cf
e4b11f60c768fb1719e4158e9e701d424184c5ce
/ceilometer/tests/unit/compute/virt/libvirt/test_inspector.py
6ca3c3be178a75f491df1a50f84336a72c8fe0c9
[ "Apache-2.0" ]
permissive
openstack/ceilometer
af938664ccba710547dbb4c74e5deb2175482d56
d31d4ed3574a5d19fe4b09ab2c227dba64da170a
refs/heads/master
2023-08-28T15:09:01.659514
2023-08-21T03:29:16
2023-08-21T03:29:16
6,642,735
246
289
Apache-2.0
2019-11-01T04:21:47
2012-11-11T18:33:12
Python
UTF-8
Python
false
false
24,528
py
test_inspector.py
# Copyright 2012 Red Hat, 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...
2e2a8722fde06209fcd475b18ea9b26c26b018d9
c5fd80ede07f0972a9b99d0c65a0df40e6d487fa
/pyocd/debug/breakpoints/provider.py
0d2f9794f6a1234eb27b82b11b9b8605c29b33ee
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
pyocd/pyOCD
46330f3a10c9be381293d220cc025e0e347513ce
9253740baf46ebf4eacbce6bf3369150c5fb8ee0
refs/heads/main
2023-08-18T07:56:54.205305
2023-08-13T19:11:01
2023-08-13T19:11:01
13,862,423
507
204
Apache-2.0
2023-09-09T20:13:57
2013-10-25T14:10:05
Python
UTF-8
Python
false
false
2,104
py
provider.py
# pyOCD debugger # Copyright (c) 2015-2017 Arm Limited # Copyright (c) 2021 Chris Reed # SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www...
5c7165e686e8a17237c5df65fd37ab6c29c72af0
ab40571d5051ad53c0f205fa797ba36eac516d06
/language/common/utils/nest_utils.py
2cdd1471b95308bc6b2c8c41bb99363f64011e90
[ "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
4,667
py
nest_utils.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 ...
a03a98f94e0ee86c38b2d89b11b97d4cddc78f1c
9cfab77b9c362d70d79110bb330794455f07e37c
/evaluation/evaluation.py
e45d26e7fa2eca119a7823082737757f5ff8cc0e
[ "Apache-2.0" ]
permissive
twitter-research/tgn
bf6148b8e94a282edc9ce1d1e673ef41193b0b21
d55bbe678acabb9fc3879c408fd1f2e15919667c
refs/heads/master
2023-07-07T15:08:17.161711
2023-06-21T14:40:17
2023-06-21T14:40:17
282,072,618
764
178
Apache-2.0
2023-06-21T14:40:18
2020-07-23T22:49:34
Python
UTF-8
Python
false
false
3,406
py
evaluation.py
import math import numpy as np import torch from sklearn.metrics import average_precision_score, roc_auc_score def eval_edge_prediction(model, negative_edge_sampler, data, n_neighbors, batch_size=200): # Ensures the random sampler uses a seed for evaluation (i.e. we sample always the same # negatives for validat...
e7dfc19bffa77593eaef897a3e8850a3bfeff196
45d01a6c5fbf766ad4d996c044412dc2b268ef07
/autoimpute/imputations/series/default.py
4126e043ac97380638357fc9568aabfc8869bca5
[ "MIT" ]
permissive
kearnz/autoimpute
2cf88d8cf4a1ab6b8b6579c8dca2ecd38eb1aaf9
6ef82663464aad187fd341fcace8e97bd0222aaf
refs/heads/master
2023-06-07T21:08:23.584459
2023-05-24T04:43:28
2023-05-24T04:43:28
168,429,609
245
27
MIT
2022-09-10T22:36:57
2019-01-30T23:09:47
Python
UTF-8
Python
false
false
15,652
py
default.py
"""This module implements default imputers used for series Imputer classes. These Imputer classes serve as defaults within more advanced imputers. They are flexible, and they allow users to quickly run imputations without getting a runtime error as they would in sklearn if the data types in a dataset are mixed. There ...