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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d14efd1e611a0951c3e3802373c1aa6e91b551bb | 00f950030a550cfd7e972794ee993d94a92d75be | /tests/test_cm.py | 41fb402c22badf74abf259c3a1b4255bf15f1e95 | [
"Apache-2.0"
] | permissive | mlcommons/ck | 6261de6a99934cdd84c413de01d2ee4df6f9217a | e4306117546ea01f688afc7540c0ae2e1c007470 | refs/heads/master | 2023-09-01T23:26:28.195951 | 2023-09-01T17:26:00 | 2023-09-01T17:26:00 | 26,230,485 | 122 | 33 | Apache-2.0 | 2023-09-13T12:01:35 | 2014-11-05T17:14:43 | Python | UTF-8 | Python | false | false | 451 | py | test_cm.py | try:
import cmind as cm
r = cm.access(['test', 'script'])
if 'return' not in r:
raise Exception('CM access function should always return key \'return\'!')
exit(0)
except ImportError as e:
from sys import stderr
from subprocess import call
print('WARNING: CM module for python is not... |
a44794656dda8ff2083c435b95bd92a00e3e99e6 | 9e417620383442e018a677179fa09cebb2ff8c6f | /tests/test_reload.py | 693a306e2137d332cf282ad9070f828739bdf651 | [
"MIT"
] | permissive | rgc99/irrigation_unlimited | 12375871953af7fb5ccedd231560d946c51be2d2 | 21345ec6775b3d36eced42aa75178de451fc22b1 | refs/heads/master | 2023-08-23T09:22:56.898275 | 2023-08-19T02:00:11 | 2023-08-19T02:00:11 | 332,911,333 | 241 | 48 | MIT | 2023-07-30T23:21:42 | 2021-01-25T23:17:04 | Python | UTF-8 | Python | false | false | 7,749 | py | test_reload.py | """Test integration_unlimited reload service calls."""
from datetime import timedelta
import pytest
import homeassistant.core as ha
from homeassistant.util import dt
from custom_components.irrigation_unlimited.const import (
SERVICE_DISABLE,
SERVICE_SUSPEND,
SERVICE_TIME_ADJUST,
)
from tests.iu_test_support... |
5d83b7d25bc8b095451aeb7aab5cb704256db4eb | c1b8b6080f29c8037100080298b897618a826475 | /gammapy/modeling/sherpa.py | 98be5c036ade861568fba036edbcce1370516417 | [
"BSD-3-Clause"
] | permissive | gammapy/gammapy | a5d7acbdde848e92e124fefbce9716faa296f572 | 60f03adb8fc7851b9f3ca039512c03a669e3fe10 | refs/heads/main | 2023-08-16T21:19:06.624561 | 2023-08-04T12:13:08 | 2023-08-04T12:13:08 | 10,073,640 | 204 | 184 | BSD-3-Clause | 2023-09-14T15:26:05 | 2013-05-15T07:50:40 | Python | UTF-8 | Python | false | false | 2,091 | py | sherpa.py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
import numpy as np
from .likelihood import Likelihood
__all__ = ["optimize_sherpa", "covariance_sherpa"]
def get_sherpa_optimizer(name):
from sherpa.optmethods import GridSearch, LevMar, MonCar, NelderMead
return {
"levmar": LevMar,
... |
61a2136b173e32c2d1a3ff4ae91ce3cae6117351 | 6bf3efa384abc11398ab9c6cc902c6415bf7e478 | /pyannotate_runtime/tests/test_collect_types.py | 3b628f44c60c3169f95e2af19af8acf388194f61 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | dropbox/pyannotate | d9ab4919672e69853c6aa47f6b8d4ba85696de98 | a7a46f394f0ba91a1b5fbf657e2393af542969ae | refs/heads/master | 2022-08-14T03:55:19.082430 | 2021-10-12T20:53:49 | 2021-10-12T20:53:49 | 110,597,280 | 1,482 | 73 | Apache-2.0 | 2023-02-01T22:35:54 | 2017-11-13T20:18:08 | Python | UTF-8 | Python | false | false | 20,862 | py | test_collect_types.py | """Tests for collect_types"""
from __future__ import (
absolute_import,
division,
print_function,
)
import contextlib
import json
import os
import sched
import sys
import time
import unittest
from collections import namedtuple
from threading import Thread
from six import PY2
from typing import (
Any,
... |
7e0e5af3eb73226ef627668e39d71d2e173b7938 | d4a88b3b102e20e727cae8fbd4167dcb4b57d1ec | /pymunk/tests/test_shape.py | a328db1f196fd651befe88aeae0d6d2dd385f85b | [
"MIT"
] | permissive | viblo/pymunk | ca64888e45706db431788368ff8464edf2912d5f | 20ac14f665fb38b4ef1bef5acea36a3d612dd0d5 | refs/heads/master | 2023-08-27T16:37:14.740653 | 2023-08-16T19:26:16 | 2023-08-16T19:26:16 | 13,273,472 | 855 | 255 | MIT | 2023-01-13T10:13:47 | 2013-10-02T14:36:46 | Python | UTF-8 | Python | false | false | 11,556 | py | test_shape.py | import pickle
import unittest
from typing import Any
import pymunk as p
class UnitTestShape(unittest.TestCase):
def testId(self) -> None:
c = p.Circle(None, 4)
self.assertGreater(c._id, 0)
def testPointQuery(self) -> None:
b = p.Body(10, 10)
c = p.Circle(b, 5)
c.cache... |
8c32376ea1fe4490b927b66bc7749ee6d683b619 | 50927fa2c786a18436526345e4aca1490aa031dc | /core/src/main/targetconfigs/k8s/k8s_operator_filter.py | 41c32cc8bcc32d1122cfdd507ed49d2b5569759b | [
"UPL-1.0",
"LicenseRef-scancode-other-copyleft",
"MIT",
"GPL-2.0-only",
"Classpath-exception-2.0",
"Apache-2.0",
"CDDL-1.1"
] | permissive | oracle/weblogic-deploy-tooling | c3646c297ac482fed921fb599182d557cf77d532 | 9fd74ae578a5b1353662facb0405e5672ecc5191 | refs/heads/main | 2023-09-01T08:40:12.305524 | 2023-08-26T13:26:37 | 2023-08-26T13:26:37 | 120,652,037 | 148 | 108 | UPL-1.0 | 2023-09-14T21:03:06 | 2018-02-07T18:08:30 | Python | UTF-8 | Python | false | false | 581 | py | k8s_operator_filter.py | # Copyright (c) 2020, 2022, Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
#
# ------------
# Description:
# ------------
# This filter can be extended to prepare a model for deployment to a Kubernetes environment,
# using the the... |
d7736453b86bd42c4fa6cbee867483c988f340bd | 5cb38042bdf1126609c1ad0a19edad47e3bdbc55 | /Lecture4/lectureCode_Lec4-circle.py | 20ecf6a42a9af48d76d092593d7a7b92409638ad | [] | no_license | y0m0/MIT.6.00.1x | 0e14c05ed0ffefefce49d504de853d0db39ad02d | c10fa1615879f35f822d73d6fa209566ce66b47f | refs/heads/master | 2021-01-01T05:25:25.403150 | 2020-12-05T14:05:06 | 2020-12-05T14:05:06 | 57,986,412 | 180 | 95 | null | 2022-08-08T12:07:09 | 2016-05-03T17:03:36 | Python | UTF-8 | Python | false | false | 149 | py | lectureCode_Lec4-circle.py | # circle.py
# From Lecture 4, Modules
pi = 3.14159
def area(radius):
return pi*(radius**2)
def circumference(radius):
return 2*pi*radius
|
e7946e43bf9711f61bc4270b5519abfd8e7a1800 | 65078b8087c2040cf0188e2550ea298d20518f62 | /src/bentoml/_internal/server/grpc_app.py | 4735bc13d80795b6ca9d2a395ed605596f3adc04 | [
"Apache-2.0"
] | permissive | bentoml/BentoML | 20ab6f8351b1c5cd116d6d60a28098246a1581b3 | 4a14f073d8a3e700aff29483b17ea053058c0c63 | refs/heads/main | 2023-09-05T16:03:08.909692 | 2023-09-04T18:54:33 | 2023-09-04T18:54:33 | 178,976,529 | 5,712 | 732 | Apache-2.0 | 2023-09-14T20:07:54 | 2019-04-02T01:39:27 | Python | UTF-8 | Python | false | false | 13,583 | py | grpc_app.py | from __future__ import annotations
import asyncio
import inspect
import logging
import os
import sys
import typing as t
from concurrent.futures import ThreadPoolExecutor
from functools import cached_property
from functools import partial
from typing import TYPE_CHECKING
from simple_di import Provide
from simple_di im... |
69104f100e65355e3ed60a73b4438f1ae15caa85 | 2212a32833776a5d5d2164d8efd11bd18bd3f768 | /tf_agents/train/learner.py | 72e795ad1b55cda295e8f47510e8a2d9f83147c9 | [
"Apache-2.0"
] | permissive | tensorflow/agents | f39805fb98ef9af712dcaff3ba49e1ac6d42804b | eca1093d3a047e538f17f6ab92ab4d8144284f23 | refs/heads/master | 2023-08-14T04:56:30.774797 | 2023-08-02T17:43:44 | 2023-08-02T17:44:09 | 157,936,206 | 2,755 | 848 | Apache-2.0 | 2023-07-26T02:35:32 | 2018-11-17T00:29:12 | Python | UTF-8 | Python | false | false | 18,488 | py | learner.py | # coding=utf-8
# Copyright 2020 The TF-Agents 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... |
49fb26cf8c686f73b16cda458d5045601b85ed16 | 518bf342bc4138982af3e2724e75f1d9ca3ba56c | /solutions/0755. Pour Water/0755.py | ded1e66ef7d92c063fca0809346f9f5fd7c0abdb | [
"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 | 402 | py | 0755.py | class Solution:
def pourWater(self, heights: List[int], volume: int, k: int) -> List[int]:
i = k
while volume > 0:
volume -= 1
while i > 0 and heights[i] >= heights[i - 1]:
i -= 1
while i + 1 < len(heights) and heights[i] >= heights[i + 1]:
i += 1
while i > k and heigh... |
ac357f5d1c20f36ef7ccbd8158a61086fe3eac7b | 0e4860fecfdd34a3255003cc8c8df086c14083dd | /python/source_code/source_code_of_lp3thw/ex7old.py | 9e715ac5434ed13355bd1cba6c9bcf42a6bdeaf3 | [] | no_license | anzhihe/learning | 503ab9a58f280227011da5eaa4b14b46c678e6f3 | 66f7f801e1395207778484e1543ea26309d4b354 | refs/heads/master | 2023-08-08T11:42:11.983677 | 2023-07-29T09:19:47 | 2023-07-29T09:19:47 | 188,768,643 | 1,443 | 617 | null | 2023-08-24T02:10:34 | 2019-05-27T04:04:10 | Python | UTF-8 | Python | false | false | 892 | py | ex7old.py | print ( "Mary had a little lamb.")
print ("Its fleece was white as %s."%'snow')
print ("And everywhere that Mary went.")
print ("."*10)#what'd that do?
end1="C"
end2="h"
end3="e"
end4="e"
end5="s"
end6="e"
end7="B"
end8="u"
end9="r"
end10="g"
end11="e"
end12="r"
end0= " "# 我新加的一个字符串---“空格”
#watch that comma at the en... |
6cc9452dfb335714dc792cb250657a2b24d0207e | 69d8d91954f6623f3674d52d734d589f72383628 | /horizon/templatetags/horizon.py | 4895e4f5876ea149e737ff86cedfaf271f78ab5f | [
"Apache-2.0"
] | permissive | openstack/horizon | d031cebe126c06ad9717bbc52790b3d890e8661e | 7896fd8c77a6766a1156a520946efaf792b76ca5 | refs/heads/master | 2023-09-04T06:57:58.069907 | 2023-09-01T20:17:10 | 2023-09-01T20:17:10 | 2,665,166 | 1,060 | 1,175 | Apache-2.0 | 2023-08-07T02:33:44 | 2011-10-28T13:12:05 | Python | UTF-8 | Python | false | false | 7,819 | py | horizon.py | # Copyright 2012 Nebula, 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 agree... |
f5f10207937fd30737d9cc62458641c902d0b0b3 | e7efae2b83216d9621bd93390959d652de779c3d | /datadog_checks_base/datadog_checks/base/utils/tagging.py | 838cc8f8a5d75051ca7ab5b425f2846e7d27f388 | [
"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",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 394 | py | tagging.py | # (C) Datadog, Inc. 2018-present
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
try:
import tagger
except ImportError:
from ..stubs import tagger # noqa: F401
GENERIC_TAGS = {
'cluster_name',
'clustername',
'cluster',
'clusterid',
'cluster_id',
'env',
... |
217b6517a6168bbf004fcfc41c04509bee1bcc97 | 11cd362cdd78c2fc48042ed203614b201ac94aa6 | /desktop/libs/liboozie/src/liboozie/credentials.py | 811d61f804a8be727d3f4df00ca577c369c867b7 | [
"CC-BY-3.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0",
"Unlicense",
"LGPL-3.0-only",
"CC0-1.0",
"LicenseRef-scancode-other-permissive",
"CNRI-Python",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-or-later",
"Python-2.0",
"GPL-3.0... | permissive | cloudera/hue | b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908 | dccb9467675c67b9c3399fc76c5de6d31bfb8255 | refs/heads/master | 2023-08-31T06:49:25.724501 | 2023-08-28T20:45:00 | 2023-08-28T20:45:00 | 732,593 | 5,655 | 2,244 | Apache-2.0 | 2023-09-14T03:05:41 | 2010-06-21T19:46:51 | JavaScript | UTF-8 | Python | false | false | 3,646 | py | credentials.py | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... |
485ffaa14d0a41dfdea8f8671e45deb8731bd43a | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stdlib/bz2.pyi | cea317e2803717f2cf8a6c08a91e3cb43956877f | [
"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 | 4,849 | pyi | bz2.pyi | import _compression
import sys
from _compression import BaseStream
from _typeshed import ReadableBuffer, Self, StrOrBytesPath, WriteableBuffer
from collections.abc import Iterable
from typing import IO, Any, Protocol, TextIO, overload
from typing_extensions import Literal, SupportsIndex, TypeAlias, final
__all__ = ["B... |
373924947fc0425c70de76bf8f71b797e81f8401 | 4d44674625100e62be2bb5033339fb641bd454ac | /snippet/example/python/ping_ip.py | be343b59aceadc2aed0767868d27ac8da3e8e4bd | [
"MIT"
] | permissive | xgfone/snippet | 8b9004a649d2575b493a376c4b4f3d4a7c56a4b0 | b0b734dd35478b7ef3e6193623981f4f29b6748c | refs/heads/master | 2022-03-18T12:41:09.033144 | 2022-02-20T15:26:35 | 2022-02-20T15:26:35 | 41,615,643 | 158 | 61 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | ping_ip.py | #!/usr/bin/env python3
#
# For Python 3.3+
#
import sys
import queue
import threading
import ipaddress
import subprocess
OPT = "-n 1 -w 1000" if sys.platform in ("win32", "cygwin") else "-c 1 -W 1"
def ping_ip(ip, results):
ok = True
try:
subprocess.check_output("ping {0} {1}".format(OPT, ip), shell... |
e44b5cc61b8f1316e7e39504e69b3d259b1fb826 | 61673ab9a42f7151de7337608c442fa6247f13bb | /turtle/hexagone/main.py | 79ce05588cb9650916614442edd18f018a6a02b6 | [
"MIT"
] | permissive | furas/python-examples | 22d101670ecd667a29376d7c7d7d86f8ec71f6cf | 95cb53b664f312e0830f010c0c96be94d4a4db90 | refs/heads/master | 2022-08-23T23:55:08.313936 | 2022-08-01T14:48:33 | 2022-08-01T14:48:33 | 45,575,296 | 176 | 91 | MIT | 2021-02-17T23:33:37 | 2015-11-04T23:54:32 | Python | UTF-8 | Python | false | false | 1,175 | py | main.py | import turtle
from math import pi, sin, cos
def hexagone(point, longueur,c):
l = longueur
x, y = point
turtle.up()
turtle.goto(point)
turtle.color(c[0]) #black
turtle.down()
turtle.begin_fill()
turtle.goto(l * cos(4 / 3 * pi )+x, l * sin(4 / 3 * pi)+y)
turtle.goto(l * cos(5 / 3 * pi)+x, l... |
7869b0f9a4ce72ddab851fe7338dc5229f94cf8e | 2d0bada349646b801a69c542407279cc7bc25013 | /src/vai_quantizer/vai_q_tensorflow2.x/tensorflow_model_optimization/python/core/quantization/keras/vitis/vai_q_tensorflow/tools/create_optimize.py | 2150722bf640941fd612f5878443efd2011679da | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause-Open-MPI",
"LicenseRef-scancode-free-unknown",
"Libtool-exception",
"GCC-exception-3.1",
"LicenseRef-scancode-mit-old-style",
"OFL-1.1",
"JSON",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"ICU",
"LicenseRef-scancode-other-permissive... | permissive | Xilinx/Vitis-AI | 31e664f7adff0958bb7d149883ab9c231efb3541 | f74ddc6ed086ba949b791626638717e21505dba2 | refs/heads/master | 2023-08-31T02:44:51.029166 | 2023-07-27T06:50:28 | 2023-07-27T06:50:28 | 215,649,623 | 1,283 | 683 | Apache-2.0 | 2023-08-17T09:24:55 | 2019-10-16T21:41:54 | Python | UTF-8 | Python | false | false | 1,353 | py | create_optimize.py | import os
import copy
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
# import numpy as np
import tensorflow as tf
from tensorflow.python.platform import gfile
import vai_q_tensorflow as decent_q
# from tensorflow.contrib import decent_q
os.environ["DECENT_DEBUG"] = "0"
src_graph = "./quantize_results/quantize_eval_model... |
19f45faaabc43c1896d0d4562cfa1482c99940f1 | 9e988f0dce0ee4b847808210bf5b703b1619fed5 | /lib/bx/filter.py | b130271f472af039caf4a5cd5f710c4fb598f190 | [
"MIT"
] | permissive | bxlab/bx-python | 1c4aa875e77ee97dd3c30b89c28a6c4acd0b821b | 7758bc4492626ffdbaa90c8fc5dd7620b1e2f3f8 | refs/heads/main | 2023-08-08T15:17:47.383099 | 2023-07-27T12:09:24 | 2023-07-27T12:09:24 | 58,659,170 | 141 | 55 | MIT | 2023-07-26T10:28:07 | 2016-05-12T16:39:43 | Python | UTF-8 | Python | false | false | 2,085 | py | filter.py | """
Classes for implementing `Pipeline`s composed of `Filter`s (intended to be
subclassed).
"""
class Filter:
def __init__(self, **kwargs):
raise Exception("AbstractClass")
def run(self, reader, writer):
for block in reader:
block = self(block)
if block:
... |
f2e3617607d125f0c7c05bf3b86bca65f94e79d5 | 01b9d7d2da922589906d755e4c5d63799281d4c8 | /tests/test_run_plugin.py | dcbc032210c12445ab9af8b7a516d9252df7cb06 | [
"MIT"
] | permissive | Akuli/porcupine | a2c3c0b3263a8b16649d5007f7c1d96cbec7dfc0 | 2f705481ef7bd9ed4516743ad3fd6469c5f2b276 | refs/heads/main | 2023-08-25T00:09:19.294259 | 2023-08-05T10:28:03 | 2023-08-05T10:28:03 | 81,675,927 | 131 | 59 | MIT | 2023-08-11T21:46:05 | 2017-02-11T19:17:09 | Python | UTF-8 | Python | false | false | 18,369 | py | test_run_plugin.py | import os
import shutil
import sys
import time
from tkinter import ttk
import pytest
from porcupine import get_main_window, get_tab_manager, utils
from porcupine.plugins.run import common, dialog, history, no_terminal, terminal
@pytest.fixture(autouse=True)
def isolated_history():
# We don't overwrite the user'... |
6dc9ec26fe7b39135c01ff85b9f38f3010639192 | 15f0514701a78e12750f68ba09d68095172493ee | /Python3/1003.py | 9b9f9710863ba62843ec4ed9646f2c848fc517cf | [
"MIT"
] | permissive | strengthen/LeetCode | 5e38c8c9d3e8f27109b9124ae17ef8a4139a1518 | 3ffa6dcbeb787a6128641402081a4ff70093bb61 | refs/heads/master | 2022-12-04T21:35:17.872212 | 2022-11-30T06:23:24 | 2022-11-30T06:23:24 | 155,958,163 | 936 | 365 | MIT | 2021-11-15T04:02:45 | 2018-11-03T06:47:38 | null | UTF-8 | Python | false | false | 1,229 | py | 1003.py | __________________________________________________________________________________________________
sample 28 ms submission
class Solution:
def isValid(self, S: str) -> bool:
if (len(S) % 3 != 0) or (S[0] != 'a') or (S[-1] != 'c'):
return False
stack = []
S = S.replace('abc', '')
... |
ba730a43a4f2139c15f16d1b3c837021fc9a1beb | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Keras_tensorflow_nightly/source2.7/tensorflow/contrib/learn/python/learn/monitored_session.py | ac0433f1775feeed2ec3cf49291da01500bef01b | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 1,381 | py | monitored_session.py | # pylint: disable=g-bad-file-header
# Copyright 2016 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/LICENS... |
222251a3134acd6ad5fc0f6a4674c0d786cd209f | 7a6b4705293709e32a6927ad4f76eb0549f3bea9 | /orchestra/google_apps/convenience.py | 5b47cf3e4b54037686a8a69f94f2f4b9c4a52fa8 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | b12io/orchestra | a71941d80d1eeddb73f301da8f601b2c31a4b279 | ee8a29122a3491feae1e1c2c4699142726ae6c21 | refs/heads/main | 2023-08-20T17:46:36.360755 | 2023-06-27T13:32:46 | 2023-06-27T13:32:46 | 42,593,972 | 459 | 66 | Apache-2.0 | 2023-06-27T13:32:48 | 2015-09-16T14:55:16 | Python | UTF-8 | Python | false | false | 7,981 | py | convenience.py | import csv
import logging
import os
import re
import requests
import tempfile
from collections import Counter
from datetime import date
from django.conf import settings
from io import StringIO
from orchestra.google_apps.errors import FailedRequest
from orchestra.google_apps.errors import GoogleDriveError
from orchest... |
70214475d4dfe53bd6077ca2d48ab835190a0970 | 7442c958dc2522be2e2adcd1d28acf9527d1b5ef | /reapy/core/project/region.pyi | 34c6be6efbcd464a80ffdda029919edbb6093374 | [
"MIT"
] | permissive | RomeoDespres/reapy | 0227bef82828521b836548f5b2115ee354eabcd7 | 730627cee6f39fc26d6ebc8a3df0112e5921cd9f | refs/heads/master | 2022-02-21T02:37:47.456052 | 2021-02-11T08:26:33 | 2021-02-11T08:26:33 | 168,827,206 | 104 | 31 | MIT | 2022-02-04T19:13:32 | 2019-02-02T12:00:27 | Python | UTF-8 | Python | false | false | 3,411 | pyi | region.pyi | import reapy
from reapy import reascript_api as RPR
from reapy.core import ReapyObject
import typing as ty
class Region(ReapyObject):
_class_name = "Region"
project_id: int
index: int
def __init__(self,
parent_project: ty.Optional[reapy.Project] = None,
... |
61521fe3cb2517f0590ef3475a182e6897f8251b | 6a468c1650b3c083f102f19ace0b0d6e4d0686f7 | /sympy/polys/densetools.py | ff3ea5f2ea321a9e954202e1cab240e0cf962a88 | [
"BSD-3-Clause",
"MIT"
] | permissive | sympy/sympy | a5f8accaa7686c59d9b5c94212fef60d746dac4b | 69f98fb2b0d845e76874067a381dba37b577e8c5 | refs/heads/master | 2023-09-01T15:51:37.886107 | 2023-08-31T20:54:33 | 2023-08-31T20:54:33 | 640,534 | 10,928 | 5,362 | NOASSERTION | 2023-09-14T17:29:13 | 2010-04-30T20:37:14 | Python | UTF-8 | Python | false | false | 25,902 | py | densetools.py | """Advanced tools for dense recursive polynomials in ``K[x]`` or ``K[X]``. """
from sympy.polys.densearith import (
dup_add_term, dmp_add_term,
dup_lshift,
dup_add, dmp_add,
dup_sub, dmp_sub,
dup_mul, dmp_mul,
dup_sqr,
dup_div,
dup_rem, dmp_rem,
dmp_expand,
dup_mul_ground, dmp_... |
67a1fe8f86e221935422959a75c715200edf086f | 933b0eef6909e52fb086015e1f73e9507aad9c3f | /Image_Processing/src/basics/basic.py | 7a6182c7aa7b90aaefe9de1e03ff6d21d08b7947 | [] | no_license | codezoned/ScriptsDump | c105641ee06b8bf148b9c2779b04eb1d0369a85f | df6fcc47f5a73c7a5c3522f985e23b89fe56117e | refs/heads/master | 2023-04-29T03:12:40.610817 | 2022-11-26T12:22:33 | 2022-11-26T12:22:33 | 141,881,901 | 157 | 221 | null | 2023-08-10T07:00:05 | 2018-07-22T09:17:56 | Jupyter Notebook | UTF-8 | Python | false | false | 2,127 | py | basic.py | # coding: utf8
# Python implementation of basic image processing
# Author: Caio Cesar Viana da Silva
# Install scikit-image: pip install scikit-image
# import skimage.io as io
# from matplotlib import pyplot as plt
# import numpy as np
# from skimage.transform import AffineTransform, warp
# import skimage.transform a... |
8d67905491177e0fb5322122328fd9638a9f801f | acf7457d3a799cb9bff12686d2d616688bcd4b5b | /packages/python/plotly/plotly/validators/scattercarpet/_hoverlabel.py | 55feac5cd2591c9560f7680e490df2d20f3fcd2f | [
"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 | 2,063 | py | _hoverlabel.py | import _plotly_utils.basevalidators
class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="hoverlabel", parent_name="scattercarpet", **kwargs):
super(HoverlabelValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent... |
380ab4748f7e9cfc6c93d6737863510eb2278d67 | 0760fb4901a75766921a205b55686d6d6f049b30 | /python/ray/autoscaler/_private/legacy_info_string.py | 830078345455218a005f7cbf734d0f7c88d93b98 | [
"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 | 1,225 | py | legacy_info_string.py | import logging
from ray._private.ray_constants import DEBUG_AUTOSCALING_STATUS_LEGACY
from ray.experimental.internal_kv import _internal_kv_initialized, _internal_kv_put
"""This file provides legacy support for the old info string in order to
ensure the dashboard's `api/cluster_status` does not break backwards
compat... |
61b24636b3f4387d3fe01df1422400d1fbd3a262 | 7f620e7902c0b9ccb1fcfd1427acd5936ea33814 | /mlrun/features.py | 369c65b25bb19fcd6a4d15e6387310c0b5d857cd | [
"Apache-2.0"
] | permissive | mlrun/mlrun | 2074c230070129ce3becb211b92c90b29a2ce850 | b5fe0c05ae7f5818a4a5a5a40245c851ff9b2c77 | refs/heads/development | 2023-09-06T00:09:21.546135 | 2023-09-05T19:38:13 | 2023-09-05T19:38:13 | 205,706,595 | 1,093 | 229 | Apache-2.0 | 2023-09-14T14:14:10 | 2019-09-01T16:59:19 | Python | UTF-8 | Python | false | false | 15,624 | py | features.py | # Copyright 2023 Iguazio
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softwa... |
66927cae94203f96490e4ee4372ce4e49b9dbb19 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/opensensemap/__init__.py | e03f4133d88188e30840df17d6947e478b266dc2 | [
"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 | 34 | py | __init__.py | """The opensensemap component."""
|
13b49e2d6e3be068920948002c56e94750b8468c | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/quantum/azext_quantum/vendored_sdks/azure_quantum/models/_models_py3.py | 2e78ff44a31a479819c98826e295a94fb8504e42 | [
"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 | 25,868 | py | _models_py3.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 ... |
2c904eb153865a9b07d583db909f4a0b14375edb | 92ae735d5dc6f6a094daedbd32614e714d0b8c4a | /registration/tests/admin_approval_backend.py | 1a7b19536186f2c7536cf6d7ea6e7a3975004e21 | [
"MIT"
] | permissive | Williano/Final-Senior-Year-Project- | 3b01ac9fd85753720b01c2245cf9b71648aad35d | 4bd988575537b37b5cf852b616d3db5666c95e7f | refs/heads/master | 2023-08-07T16:11:42.778492 | 2023-06-05T04:59:06 | 2023-06-05T04:59:06 | 121,346,340 | 173 | 60 | MIT | 2023-06-05T04:59:07 | 2018-02-13T06:17:16 | Python | UTF-8 | Python | false | false | 2,079 | py | admin_approval_backend.py | from django.core.urlresolvers import reverse
from django.test.utils import override_settings
from .default_backend import DefaultBackendViewTests
from registration.backends.admin_approval.views import RegistrationView
from registration.models import SupervisedRegistrationProfile
from registration.users import UserMod... |
7951aa8cb5972d99308de5e0995763504856d744 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /scripts/dump_command_table.py | a4c70bcea78f4dbf81215d485003390ba53ad108 | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 5,030 | py | dump_command_table.py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... |
f8aca30f66c4c8b8e5c4c300dc10429d999a14aa | 94c0d1574ad8ba81a1ef0d48020b92ba681a5c6a | /snakePipes/workflows/createIndices/createIndices | 83f12d704824286bd477a98d07341f369ab6a9fa | [
"MIT"
] | permissive | maxplanck-ie/snakepipes | 650de654c8bb6b197743d5bb59628df2d91d3a79 | 6144e3fdc1bdaa26e05b1cb234df7414c61e283a | refs/heads/master | 2023-09-05T09:25:33.130890 | 2023-06-05T13:38:57 | 2023-06-05T13:38:57 | 54,579,435 | 318 | 91 | MIT | 2023-08-22T12:07:49 | 2016-03-23T17:23:31 | Python | UTF-8 | Python | false | false | 6,305 | createIndices | #!/usr/bin/env python3
__description__ = """
Create indices for use by snakePipes. A YAML file will be created by default in the default location where snakePipes looks for organism YAML files.
usage example:
createIndices -o output-dir --genome ftp://ftp.ensembl.org/pub/release-93/fasta/mus_musculus/dna/Mus_musc... | |
ca7e6ff1e5c08b602c944f75e92862c87f7ba7e6 | d1c2d00078520cd556f60b7213c27856f8b3460d | /sdks/python/apache_beam/io/gcp/datastore/v1new/datastore_write_it_test.py | abecd5b6a4cfbfcb22621fdaef6473c0fce3e45d | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-protobuf",
"Apache-2.0",
"Python-2.0"
] | permissive | apache/beam | ed11b9e043465c720659eac20ac71b5b171bfa88 | 6d5048e05087ea54abc889ce402ae2a0abb9252b | refs/heads/master | 2023-09-04T07:41:07.002653 | 2023-09-01T23:01:05 | 2023-09-01T23:01:05 | 50,904,245 | 7,061 | 4,522 | Apache-2.0 | 2023-09-14T21:43:38 | 2016-02-02T08:00:06 | Java | UTF-8 | Python | false | false | 2,570 | py | datastore_write_it_test.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 us... |
9642e3fc538589c9556d35d4b72738221f9e12e9 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Sklearn_scipy_numpy/source/numpy/distutils/tests/swig_ext/setup.py | f6e07303bea646ba68664dc87dad914817f03715 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 742 | py | setup.py | #!/usr/bin/env python
from __future__ import division, print_function
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('swig_ext', parent_package, top_path)
config.add_extension('_example',
['src/example.... |
3db100920fe559b89bc8f737b0ba6df18ddf47c0 | 50203b4a349dcb2ed1e72c9f5463d84db8a6e983 | /skyline/functions/pandas/csv_to_timeseries.py | 92a2f3ade7079763c4e36a324ff5161b76a3a462 | [
"MIT"
] | permissive | earthgecko/skyline | 97e43df824d7c92d68086f529f0f3d051a7debb0 | c2edc451e63d5eb57117ddcfbc6e79100e706460 | refs/heads/master | 2023-08-30T08:36:50.740285 | 2023-06-28T15:33:47 | 2023-06-28T15:33:47 | 20,475,900 | 482 | 74 | NOASSERTION | 2023-06-28T15:33:49 | 2014-06-04T08:33:15 | Python | UTF-8 | Python | false | false | 3,368 | py | csv_to_timeseries.py | """
csv_to_timeseries.py
"""
import logging
import traceback
from os import path
import numpy as np
import pandas as pd
# @added 20221204 - Feature #4754: csv_to_timeseries
# Feature #4734: mirage_vortex
# Branch #4728: vortex
def csv_to_timeseries(current_skyline_app, csv_file, l... |
b9248f147e2ae4732752a92a201b73fa28b594e8 | d110546d747d7e3865ce5742d5fca09f404623c0 | /tests/pytests/unit/states/test_boto_iam_role.py | 0a577e569785dba32ab38afba4333dec775a0392 | [
"Apache-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | saltstack/salt | 354fc86a7be1f69514b3dd3b2edb9e6f66844c1d | 1ef90cbdc7203f97775edb7666db86a41eb9fc15 | refs/heads/master | 2023-07-19T20:56:20.210556 | 2023-06-29T23:12:28 | 2023-07-19T11:47:47 | 1,390,248 | 11,026 | 6,296 | Apache-2.0 | 2023-09-14T20:45:37 | 2011-02-20T20:16:56 | Python | UTF-8 | Python | false | false | 6,436 | py | test_boto_iam_role.py | """
:codeauthor: Jayesh Kariya <jayeshk@saltstack.com>
"""
import pytest
import salt.states.boto_iam_role as boto_iam_role
from tests.support.mock import MagicMock, patch
@pytest.fixture
def configure_loader_modules():
return {boto_iam_role: {}}
def test_present():
"""
Test to ensure the IAM role ... |
773ee50dea8edac92f8ab479128cc9abca28b6c9 | e03bce53de6f88c0e09f56e4fe11c36af0f1161f | /tests/unit/cfngin/factories.py | 64dfaab9a78c62603590f51b63ea3e2cff09452e | [
"Apache-2.0"
] | permissive | onicagroup/runway | 20c31df9cbc1a1ffc5c9aa468ce5cf7d6ac7899f | 0763b06aee07d2cf3f037a49ca0cb81a048c5deb | refs/heads/master | 2023-08-30T22:35:54.113981 | 2023-08-29T14:13:35 | 2023-08-29T14:13:35 | 122,529,924 | 156 | 79 | Apache-2.0 | 2023-09-13T13:43:50 | 2018-02-22T20:12:55 | Python | UTF-8 | Python | false | false | 3,427 | py | factories.py | """Factories for tests."""
# pylint: disable=unused-argument
# pyright: basic
from __future__ import annotations
from typing import TYPE_CHECKING, Any, Dict, NamedTuple, Optional
from mock import MagicMock
from runway.cfngin.providers.aws.default import ProviderBuilder
from runway.config import CfnginConfig, CfnginS... |
10407206270dbd66cef2dd5f9c63d37550bb6750 | 1189274756491642c85736dea8bd0c04ef71635e | /utils/utils.py | 520d7ad490e658d78caf5fa0047333733dd1b7f9 | [] | no_license | sidroopdaska/SelfDrivingRCCar | ff5b157fab692550f0e0df59c8f1654a9ceb4046 | 3b973da5310cec4b7d950c7c8b7fb99e429b4ee1 | refs/heads/master | 2023-06-17T07:42:59.395132 | 2021-07-16T10:14:06 | 2021-07-16T10:14:06 | 87,363,975 | 124 | 45 | null | 2021-07-16T10:14:07 | 2017-04-05T22:58:53 | Python | UTF-8 | Python | false | false | 495 | py | utils.py | import serial
import serial.tools.list_ports
arduino_serial_number = '75237333536351F0F0C1'
# server_address_home = ('192.168.0.88', 45713)
server_address_corp = ('10.72.76.108', 45713)
server_address = server_address_corp
rpi = "10.104.66.208', 49214"
def find_arduino(serial_number):
for p in serial.tools.list... |
79d5f3f7eed97c64ec9e93763e7b0c9bd2f90bb4 | 3e1f6dfde5c940f7acde208d098e56a54550945f | /dash-user-guide-components/_validate_init.py | f519d2736b389bb7d0bec686ca379e240d39b429 | [
"MIT"
] | permissive | plotly/dash-docs | a4d1b9e450aa19e811f8ae043fd56de330cce63a | f494e987701be1085ba9fb7b29bd875ee2146d5b | refs/heads/master | 2023-08-03T02:18:16.257115 | 2021-12-14T18:51:52 | 2021-12-14T18:51:52 | 84,095,619 | 396 | 210 | MIT | 2023-01-18T20:29:56 | 2017-03-06T16:30:08 | Python | UTF-8 | Python | false | false | 1,668 | py | _validate_init.py | """
DO NOT MODIFY
This file is used to validate your publish settings.
"""
from __future__ import print_function
import os
import sys
import importlib
components_package = 'dash_user_guide_components'
components_lib = importlib.import_module(components_package)
missing_dist_msg = 'Warning {} was not found in `{}._... |
1745fdde7f1fe89be3da1d0a00d6378eb2e6c774 | a133a7c64f6e08def0f936898466990d1fd1b31f | /atomate/lammps/fireworks/__init__.py | ab4172e2a37509f05c1fa6dcb20972159a562780 | [
"LicenseRef-scancode-hdf5",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | hackingmaterials/atomate | a6458f9323b8f14d7b4ebb6558fb578d50a3f1ed | f4060e55ae3a22289fde9516ff0e8e4ac1d22190 | refs/heads/main | 2023-08-07T21:53:24.701157 | 2023-07-25T22:28:06 | 2023-07-25T22:28:06 | 43,023,379 | 217 | 173 | NOASSERTION | 2023-08-25T22:09:48 | 2015-09-23T19:53:55 | Python | UTF-8 | Python | false | false | 60 | py | __init__.py | # from .core import LammpsForceFieldFW, LammpsFW, PackmolFW
|
41c268eaf3943850126b4557027f5b21c7c1a744 | 47ef6997d03f4d5c921c83cc09aef1dfc6828e2c | /zeus/modules/operators/__init__.py | 55d8e4bac266b0b61fa26fef2898eb7111dc8baf | [
"MIT"
] | permissive | huawei-noah/xingtian | 620c9f245183d636e0a65659fd99a984397ecbd4 | e4ef3a1c92d19d1d08c3ef0e2156b6fecefdbe04 | refs/heads/master | 2023-09-03T01:10:21.768245 | 2022-03-21T03:39:39 | 2022-03-21T03:39:39 | 287,759,621 | 308 | 91 | MIT | 2023-09-12T11:33:22 | 2020-08-15T14:13:06 | Python | UTF-8 | Python | false | false | 131 | py | __init__.py | from .conv import *
from .cell import *
from .mix_ops import *
from .prune import *
from .ops import *
from .prune_filter import *
|
470b8a9805935813b2a0d37912f0a120d7133e1f | e65a4dbfbfb0e54e59787ba7741efee12f7687f3 | /audio/mixxx22/files/patch-build_qt5.py | d0927978bcd756e11892bb4cd120644d253a235d | [
"BSD-2-Clause"
] | permissive | freebsd/freebsd-ports | 86f2e89d43913412c4f6b2be3e255bc0945eac12 | 605a2983f245ac63f5420e023e7dce56898ad801 | refs/heads/main | 2023-08-30T21:46:28.720924 | 2023-08-30T19:33:44 | 2023-08-30T19:33:44 | 1,803,961 | 916 | 918 | NOASSERTION | 2023-09-08T04:06:26 | 2011-05-26T11:15:35 | null | UTF-8 | Python | false | false | 305 | py | patch-build_qt5.py | --- build/qt5.py.orig 2020-05-15 21:26:10 UTC
+++ build/qt5.py
@@ -43,7 +43,7 @@ import SCons.Scanner
import SCons.Tool
import SCons.Util
-class ToolQt5Warning(SCons.Warnings.Warning):
+class ToolQt5Warning(SCons.Warnings.SConsWarning):
pass
class GeneratedMocFileNotIncluded(ToolQt5Warning):
|
e1ff48a47215ea2f054ae0d0c01cf9fa1f35fc8a | 78ce285eff8566e220a76626aaab0f9e6c2b1c80 | /python/surf/protocols/batcher/__init__.py | eeab102755138df1f4d8f080a3fbd4d0f60bf5d5 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | slaclab/surf | 315dfa6c866e34a01befe780e3a8dbb8caf434ee | c9f42cecda8db19e971a0b33a2add6ff0ea08eff | refs/heads/master | 2023-08-17T23:10:12.674166 | 2023-07-22T01:21:03 | 2023-07-22T01:21:03 | 66,395,341 | 220 | 56 | NOASSERTION | 2023-09-01T17:21:33 | 2016-08-23T19:06:56 | VHDL | UTF-8 | Python | false | false | 134 | py | __init__.py | from surf.protocols.batcher._AxiStreamBatcherAxil import *
from surf.protocols.batcher._AxiStreamBatcherEventBuilder import *
|
30317d461950b37698480ed05b4da6ed76dec58a | c703b8ac3b5545857f6c95efa2d61eaf7a664021 | /iPERCore/tools/human_digitalizer/smplx/joint_names.py | 5738efb4bd3fec362d0b39278fc9055ddddc54e6 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | iPERDance/iPERCore | d29681d229b3098b3517b1abf4f7ea65f579de73 | fcf9a18ffd66bf3fdd3eea4153a3bc4785131848 | refs/heads/main | 2023-07-30T15:04:15.835396 | 2023-04-12T14:21:23 | 2023-04-12T14:21:23 | 313,664,064 | 2,520 | 339 | Apache-2.0 | 2023-05-12T03:26:52 | 2020-11-17T15:36:25 | Python | UTF-8 | Python | false | false | 4,897 | py | joint_names.py | # -*- coding: utf-8 -*-
# Max-Planck-Gesellschaft zur Förderung der Wissenschaften e.V. (MPG) is
# holder of all proprietary rights on this computer program.
# You can only use this computer program if you have closed
# a license agreement with MPG or you get the right to use the computer
# program from someone who is... |
eeee37ffa96a6b28c2d5f781869b9699ecea45b8 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/mako/mako/mako/exceptions.py | 31c695fd78f18f8f195f326c6aa248aba07fe0bb | [
"LicenseRef-scancode-proprietary-license",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"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 | 12,530 | py | exceptions.py | # mako/exceptions.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
"""exception classes"""
import sys
import traceback
from mako import compat
from mako import util... |
931ab81aa55a50993accedbc3f77e78c22f54734 | eec259ed9551157fc7d39759be9da014e6b56cd0 | /python/cuspatial/cuspatial/tests/binpreds/binpred_test_dispatch.py | 05b38d702c9e580f53641551941c99262bc9cb10 | [
"Apache-2.0"
] | permissive | rapidsai/cuspatial | b4699ffe73ac217ec40244e231d33675470d3e30 | a87d21f0cf70116576bf7dbdd42db2bcfd50e7d4 | refs/heads/branch-23.10 | 2023-08-31T10:49:25.144482 | 2023-08-30T22:02:04 | 2023-08-30T22:02:04 | 199,666,905 | 509 | 136 | Apache-2.0 | 2023-09-08T21:07:05 | 2019-07-30T14:23:22 | Jupyter Notebook | UTF-8 | Python | false | false | 15,892 | py | binpred_test_dispatch.py | # Copyright (c) 2023, NVIDIA CORPORATION.
import pytest
from shapely.geometry import LineString, Point, Polygon
import cuspatial
"""Test Dispatch"""
"""This file is used to generate tests for all possible combinations
of geometry types and binary predicates. The tests are generated
using the fixtures defined in thi... |
acdb30d1f9f42172d027acd27aa716e4b7464b3f | 84c498e7a634f1c54c0caaf18ede3f20f8852dc8 | /ExHIBIT/rld_text_output.py | c773f4f0dfee709da190ca1f17afa3d4abe9db5e | [] | no_license | Yggdrasill-Moe/Niflheim | 4697e8d5cea5da7e5732f925b190c9d47ef94071 | 51048e7af2ae2c69db772ff59ac26390ab0ea73b | refs/heads/master | 2023-07-19T18:34:26.398212 | 2023-07-17T01:11:04 | 2023-07-17T01:11:04 | 163,126,766 | 103 | 23 | null | null | null | null | UTF-8 | Python | false | false | 2,886 | py | rld_text_output.py | # -*- coding:utf-8 -*-
#用于导出rld文件的文本
#by Darkness-TX
#2017.11.17
import struct
import os
import sys
import io
def byte2int(byte):
long_tuple = struct.unpack('L',byte)
long = long_tuple[0]
return long
def int2byte(num):
return struct.pack('L',num)
def dumpstr(src):
bstr = b''
c = src.read(1)
while c != b'\x00... |
0a8d6b01639cee43b514bbabb28a31f6e8adaae6 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Spacy/source2.7/spacy/tests/doc/test_span_merge.py | ae1f4f4a18a246f794d78e929a2b89eead7dc836 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 5,841 | py | test_span_merge.py | # coding: utf-8
from __future__ import unicode_literals
from ..util import get_doc
from ...vocab import Vocab
from ...tokens import Doc
import pytest
def test_spans_merge_tokens(en_tokenizer):
text = "Los Angeles start."
heads = [1, 1, 0, -1]
tokens = en_tokenizer(text)
doc = get_doc(tokens.vocab, [... |
979abdec47490f9e1070389d330f62ff32397217 | 15f0514701a78e12750f68ba09d68095172493ee | /Python3/1153.py | fbb3154e714eb597eae77b7cdb6cb7024a56597c | [
"MIT"
] | permissive | strengthen/LeetCode | 5e38c8c9d3e8f27109b9124ae17ef8a4139a1518 | 3ffa6dcbeb787a6128641402081a4ff70093bb61 | refs/heads/master | 2022-12-04T21:35:17.872212 | 2022-11-30T06:23:24 | 2022-11-30T06:23:24 | 155,958,163 | 936 | 365 | MIT | 2021-11-15T04:02:45 | 2018-11-03T06:47:38 | null | UTF-8 | Python | false | false | 929 | py | 1153.py | __________________________________________________________________________________________________
class Solution:
def canConvert(self, str1: str, str2: str) -> bool:
s1 = dict()
for i, ch in enumerate(str1):
if ch not in s1:
s1[ch] = list()
s1[ch].append(i)
... |
0236f4c415f7bb805641d7ae463075552f443ffd | fae16a539b7c1b0525aab40ddaeee3e451fc9b74 | /tests/unit/tasks/database/users/test_migrate.py | 9bc28f3376e243bdcf3dc1b42479798f4381e159 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | argilla-io/argilla | a6b45f7f64e9db82f6d9a61771d758ffbb3dab4a | 7c1b2368b444b7b7a281d37ad51bcb2d8e92acf5 | refs/heads/develop | 2023-09-04T03:58:05.914619 | 2023-09-01T15:58:31 | 2023-09-01T15:58:31 | 362,500,938 | 1,085 | 122 | Apache-2.0 | 2023-09-14T15:31:07 | 2021-04-28T14:37:42 | Python | UTF-8 | Python | false | false | 5,905 | py | test_migrate.py | # Copyright 2021-present, the Recognai S.L. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... |
32af1e4ed2fb20136a20118b1021b328ef55336d | 4bcc9806152542ab43fc2cf47c499424f200896c | /tensorflow/python/autograph/pyct/transformer_test.py | 8708200210a2ed2afa581d114e5c2887659dfd50 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | tensorflow/tensorflow | 906276dbafcc70a941026aa5dc50425ef71ee282 | a7f3934a67900720af3d3b15389551483bee50b8 | refs/heads/master | 2023-08-25T04:24:41.611870 | 2023-08-25T04:06:24 | 2023-08-25T04:14:08 | 45,717,250 | 208,740 | 109,943 | Apache-2.0 | 2023-09-14T20:55:50 | 2015-11-07T01:19:20 | C++ | UTF-8 | Python | false | false | 11,306 | py | transformer_test.py | # Copyright 2017 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 applica... |
cdc782cd0087fbea5b6c57022e3d12d765d5f5fd | 6b27c39edc10b1353104043b7a523f4981c99ef2 | /pytype/test_data/tokenerror1.py | a81d29a63092a3e42beafb8ec2e3d4bf46dad09e | [
"Apache-2.0",
"MIT"
] | permissive | google/pytype | ad0ff0b6c1083b4f0a1af1747869d422f2b5f4d8 | bda0b9547af9a084bb2bd1427f58dcde968e48b5 | refs/heads/main | 2023-08-26T17:52:23.546035 | 2023-08-24T22:48:00 | 2023-08-24T22:48:00 | 32,483,713 | 4,595 | 367 | NOASSERTION | 2023-09-13T04:40:45 | 2015-03-18T20:52:08 | Python | UTF-8 | Python | false | false | 108 | py | tokenerror1.py | # pylint: skip-file
"""Test program with a token error.
The error is this triple-quoted string doesn't end.
|
676e957eab1c20624391d6116d84fa9078b8132c | eda6e7b8f399dedcdb960f4b48a2134b978f8d83 | /bnpy/allocmodel/relational/FiniteSMSB.py | 90cea6c6df07051ffc30c8188679d01b1ddfc7b2 | [
"BSD-3-Clause"
] | permissive | bnpy/bnpy | 8ed61bc4fe2f0ed99e0254c11a21c27c0cee59b2 | ffc2242427451aa6a61dcac1473c47577a5ade6f | refs/heads/master | 2023-08-16T06:49:58.716279 | 2022-10-15T15:59:12 | 2022-10-15T15:59:12 | 75,731,181 | 197 | 54 | NOASSERTION | 2023-07-21T20:59:10 | 2016-12-06T12:56:07 | Python | UTF-8 | Python | false | false | 5,971 | py | FiniteSMSB.py | '''
SMSB.py
Finite single membership stochastic block model. Follows generative process:
For all nodes i:
Draw pi_i ~ Dirichlet(gamma)
Draw z_i ~ Categorical(pi_i)
For all other nodes j:
Draw x_{ij} ~ Bernouli(w_{z_i, z_j})
For l,m = 1,...,K:
w_{lm} ~ Beta(tau_1, tau_0)
'''
import numpy as np
fro... |
f8560e2718d68cd6a0041614fdf6460c4127d389 | 7d0ec90fa17c202d71290a526fb11b1c5f6a7a92 | /test/test_continuous.py | 2174368a891df9b21edc2c8706c699a6e5a6c8a2 | [
"BSD-3-Clause"
] | permissive | airspeed-velocity/asv | 511aeb5730bfb017fcb56dc626b356ba3255c9a6 | 880a237ab39e566383e93340a3c895616f553f1d | refs/heads/master | 2023-08-28T09:13:26.092337 | 2023-08-23T22:37:04 | 2023-08-23T22:37:04 | 14,215,348 | 614 | 112 | BSD-3-Clause | 2023-09-11T04:46:14 | 2013-11-07T20:43:31 | Python | UTF-8 | Python | false | false | 1,919 | py | test_continuous.py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
import sys
import re
from asv.results import iter_results_for_machine
from asv import util
from . import tools
from .tools import get_default_environment_type
def test_continuous(capfd, basic_conf_2):
tmpdir, local, conf, machine_file = basic_conf... |
ed947b6e63c40879b9b77662339d28d4673cb062 | fa3f6d4e9169fb95f828013d179d03accdff381b | /grr/server/grr_response_server/authorization/groups.py | e05d7f331d6ab2aa68c7723244c3d8b0da501f16 | [
"Apache-2.0"
] | permissive | google/grr | c51a2bd251ed2f7adae538541990a2cc01fdcc8c | 44c0eb8c938302098ef7efae8cfd6b90bcfbb2d6 | refs/heads/master | 2023-09-05T20:02:36.823914 | 2023-07-26T09:34:09 | 2023-07-26T09:34:09 | 14,909,673 | 4,683 | 927 | Apache-2.0 | 2023-07-26T09:34:10 | 2013-12-04T00:17:53 | Python | UTF-8 | Python | false | false | 1,250 | py | groups.py | #!/usr/bin/env python
"""Group authorization checking."""
import logging
from grr_response_core import config
from grr_response_core.lib.registry import MetaclassRegistry
class GroupAccessManager(metaclass=MetaclassRegistry):
__abstract = True # pylint: disable=g-bad-name
def AuthorizeGroup(self, group, subje... |
0420d1874cab56a9ac8170b461142996ad98f898 | 6416b746ee71d897789eab1e450000831674dbd0 | /tests/unit/cli/manager/test_config_manager.py | eefb8e6e3a656c9f8c1df5dff2be714a6c46beb0 | [
"Apache-2.0"
] | permissive | openvinotoolkit/training_extensions | c921f83ad52311af96ff45ae0b88d0aecddd855b | 80454808b38727e358e8b880043eeac0f18152fb | refs/heads/develop | 2023-08-31T06:29:07.229339 | 2023-08-31T01:57:26 | 2023-08-31T01:57:26 | 154,843,614 | 397 | 230 | Apache-2.0 | 2023-09-14T06:17:01 | 2018-10-26T14:02:29 | Python | UTF-8 | Python | false | false | 28,758 | py | test_config_manager.py | import argparse
import os
import tempfile
from pathlib import Path
import os
import shutil
import pytest
from omegaconf import DictConfig, OmegaConf
from otx.cli.manager.config_manager import (
DEFAULT_MODEL_TEMPLATE_ID,
ConfigManager,
set_workspace,
)
from otx.cli.registry import Registry
from otx.cli.ut... |
d2186b7d41ab424d6ced64780edd84fe8ff75533 | dec5a11d95f7b87da9985362dca4dc573a8bd805 | /tdda/referencetest/examples/exercises-pytest/exercise2/conftest.py | cfd48b45f6acf33577741a986af16756498b9220 | [
"MIT"
] | permissive | tdda/tdda | 37d37e51c13362e65af07fe81708bb126fa568eb | 08e1ec6d7397f2b0f527ac59698180ba54e53814 | refs/heads/master | 2023-02-19T00:08:40.983473 | 2023-02-10T19:49:27 | 2023-02-10T19:49:27 | 58,143,323 | 275 | 34 | MIT | 2019-07-02T14:44:33 | 2016-05-05T16:00:57 | Python | UTF-8 | Python | false | false | 476 | py | conftest.py | # -*- coding: utf-8 -*-
"""
conftest.py: example pytest configuration for tdda.referencetest
Source repository: http://github.com/tdda/tdda
License: MIT
Copyright (c) Stochastic Solutions Limited 2016-2019
"""
from tdda.referencetest.pytestconfig import (pytest_addoption,
... |
55c277fc0639241a9e296f340ff03b809b90a623 | 77f85a550c28212071067cb122ebfd93eb705190 | /pde/tools/cuboid.py | f3ed8e4d386181b796c105dbe5bbfaf1abc6639b | [
"MIT"
] | permissive | zwicker-group/py-pde | baf215a733508fe86093ea9e818228bbb3b34c58 | d9c931a8361eaf27bc3766daba26edc11756b5f5 | refs/heads/master | 2023-08-31T06:36:34.514617 | 2023-08-30T18:15:44 | 2023-08-30T18:15:44 | 242,093,001 | 327 | 45 | MIT | 2023-08-31T13:16:24 | 2020-02-21T08:42:23 | Python | UTF-8 | Python | false | false | 8,385 | py | cuboid.py | """
An n-dimensional, axes-aligned cuboid
This module defines the :class:`Cuboid` class, which represents an n-dimensional
cuboid that is aligned with the axes of a Cartesian coordinate system.
.. codeauthor:: David Zwicker <david.zwicker@ds.mpg.de>
"""
import itertools
from typing import List, Tuple
import numpy a... |
91502432fffccd0900a0ff3e913adb7d874d643e | 730430ba3b45d5728ef044863598199bfa33aaaa | /parl/utils/np_utils.py | f83c8c42f24aa11e68b234ba7c95a86681254a6b | [
"Apache-2.0"
] | permissive | PaddlePaddle/PARL | 062d1b4a5335553be6cdfc33ad12f07ebbcd7310 | 3bb5fe36d245f4d69bae0710dc1dc9d1a172f64d | refs/heads/develop | 2023-08-09T02:12:39.741551 | 2023-05-19T17:52:25 | 2023-05-19T17:52:25 | 131,044,128 | 3,818 | 988 | Apache-2.0 | 2023-07-28T03:59:20 | 2018-04-25T17:54:22 | Python | UTF-8 | Python | false | false | 1,137 | py | np_utils.py | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... |
2fcc1c943336c62275cd4768d2caecb4d2d4789a | 8319c9859bde5e21eba2ba60219ebe496646470b | /tests/whitebox/integration/_misc.py | 7323fb547dbc18f4da87eb5584ce4f91baa33b87 | [
"Apache-2.0"
] | permissive | stratis-storage/stratis-cli | 0be83c0903c1050ac3cf75a19121ba19be97c4a6 | 399c95edd7c37e5fb9494f7829d5355c011fb7d7 | refs/heads/master | 2023-08-31T23:24:02.710481 | 2023-08-30T20:18:02 | 2023-08-30T20:18:02 | 66,956,943 | 107 | 44 | Apache-2.0 | 2023-09-08T18:25:33 | 2016-08-30T16:09:39 | Python | UTF-8 | Python | false | false | 11 | py | _misc.py | ../_misc.py |
aa229ccda567b095cb676ae6ade374d9cc761903 | 7c1f157acafec729d060847469a5cf36cd88e792 | /cords/utils/data/datasets/SSL/augmentation/augmentation_pool.py | a231b5051bf856dfb2469536064a3b4439812ebf | [
"MIT"
] | permissive | decile-team/cords | 025415cc7b4577e01acba312908b9e12da27da9b | 8d10c7f5d96e071f98c20e4e9ff4c41c2c4ea2af | refs/heads/main | 2023-05-25T01:57:51.429546 | 2023-05-24T19:46:54 | 2023-05-24T19:46:54 | 330,041,216 | 289 | 54 | MIT | 2023-05-24T17:25:40 | 2021-01-15T23:02:58 | Jupyter Notebook | UTF-8 | Python | false | false | 7,397 | py | augmentation_pool.py | import random
import torch
import torch.nn.functional as F
import numpy as np
from PIL import ImageOps, ImageEnhance, ImageFilter, Image
"""
For PIL.Image
"""
def autocontrast(x, *args, **kwargs):
return ImageOps.autocontrast(x.convert("RGB")).convert("RGBA")
def brightness(x, level, magnitude=10, max_level=1... |
5c22e1475c92a02f72fa90ec04f7b486917e37d9 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/cloud/alexa_config.py | e85c6dd277a19724ae93b392e711747aecb2ff94 | [
"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 | 17,679 | py | alexa_config.py | """Alexa configuration for Home Assistant Cloud."""
from __future__ import annotations
import asyncio
from collections.abc import Callable
from contextlib import suppress
from datetime import datetime, timedelta
from http import HTTPStatus
import logging
from typing import TYPE_CHECKING, Any
import aiohttp
from hass_... |
460cbc0bdb7be4d3bb15b4e671b5aecd2dc9a111 | ef884ae6ca9c293bd73432f40794a05815299142 | /tests/conftest.py | f2de231215d45e2ab25c169ea0d3cee5689afea4 | [
"MIT"
] | permissive | 9seconds/concierge | 4574fa04f72cc4f7e0cdefcdfed6ac37f47287ea | 40b0de3e68354cd06461763b228d8901bc4c2d12 | refs/heads/master | 2020-12-25T00:39:35.017152 | 2020-12-16T12:30:50 | 2020-12-16T12:30:50 | 52,885,382 | 126 | 15 | MIT | 2020-12-16T12:30:51 | 2016-03-01T15:02:48 | Python | UTF-8 | Python | false | false | 5,515 | py | conftest.py | # -*- coding: utf-8 -*-
import os
import os.path
import shutil
import sys
import unittest.mock
import inotify_simple
import pytest
import concierge
import concierge.notifications
import concierge.templater
def have_mocked(request, *mock_args, **mock_kwargs):
if len(mock_args) > 1:
method = unittest.mo... |
54ae45564d18588dbafc533a224e5fbe2e3c3d07 | 94dbd40525692416ea8100d13b03ece73ee33f7f | /kgtk/cli/__dummy.py | 43cbcdefce64e0bab78aafe423a160ef64e01b76 | [
"MIT"
] | permissive | usc-isi-i2/kgtk | 7101129ce1dde646095803429d3c751bf87ae071 | c31ba4c33d5f925fdb66a487ba2e1184c9ca4254 | refs/heads/main | 2023-08-22T06:58:22.301262 | 2023-06-29T19:55:28 | 2023-06-29T19:55:28 | 234,676,361 | 325 | 53 | MIT | 2023-06-29T19:55:30 | 2020-01-18T03:34:48 | Jupyter Notebook | UTF-8 | Python | false | false | 1,575 | py | __dummy.py | """
Example CLI module
Please DON'T import specific modules globally, import them in `run`.
Please DON'T initialize resource (e.g., variable) globally.
"""
from kgtk.cli_argparse import KGTKArgumentParser
def parser():
"""
Initialize sub-parser.
Parameters: https://docs.python.org/3/library/argparse.html... |
f7ba334a4b3e4f3018eba5229ce6b07b9339fac6 | 0760fb4901a75766921a205b55686d6d6f049b30 | /python/ray/train/examples/horovod/horovod_tune_example.py | 05cb5b220414a23d14115b5439e3c34ade810c1b | [
"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 | 3,945 | py | horovod_tune_example.py | import numpy as np
import time
import torch
import ray
from ray import train, tune
import ray.train.torch
from ray.train.horovod import HorovodTrainer
from ray.train import ScalingConfig
from ray.tune.tune_config import TuneConfig
from ray.tune.tuner import Tuner
def sq(x):
m2 = 1.0
m1 = -20.0
m0 = 50.0
... |
41a9fe234cccc4cdfe4f7ebdb4efef2af98ac56a | 0276068b108b0bde776bd73b4cd75ab37b63f319 | /ur_robot_driver/test/integration_test.py | c15a8cdf45b0d31f68750bd3bd54e7a2759f0e77 | [
"Apache-2.0"
] | permissive | UniversalRobots/Universal_Robots_ROS_Driver | 86c1e80cf2814d0a5c5ad1c6d3195b859742ef99 | 395c0541b20d0da2cd480e2ad85b2100410fb043 | refs/heads/master | 2023-08-31T07:28:19.585562 | 2023-01-23T14:31:27 | 2023-01-23T14:36:07 | 212,798,234 | 666 | 417 | Apache-2.0 | 2023-08-31T13:38:28 | 2019-10-04T11:20:45 | C++ | UTF-8 | Python | false | false | 18,637 | py | integration_test.py | #!/usr/bin/env python
import sys
import time
import unittest
import rospy
import actionlib
import std_msgs.msg
from control_msgs.msg import (
FollowJointTrajectoryAction,
FollowJointTrajectoryGoal,
FollowJointTrajectoryResult,
JointTolerance)
from ur_dashboard_msgs.msg import SetModeAction, SetModeGoal... |
8e33ef5585e3d50de86426979e6df40036de272c | 5b6ba0f288b1e2ac236af846a9bf546a63228476 | /libtbx/tst_program_template.py | 573d2b25aa76810c9af31c8c7db06584e563b478 | [
"BSD-3-Clause-LBNL"
] | permissive | cctbx/cctbx_project | 5b547b416cadbdf95cca21dace9f54272a08d98a | 7f4dfb6c873fd560920f697cbfd8a5ff6eed82fa | refs/heads/master | 2023-08-17T17:44:05.077010 | 2023-08-16T22:40:22 | 2023-08-16T22:40:22 | 39,508,026 | 206 | 131 | NOASSERTION | 2023-09-14T17:12:55 | 2015-07-22T13:36:27 | Python | UTF-8 | Python | false | false | 2,950 | py | tst_program_template.py | from __future__ import absolute_import, division, print_function
import sys
import libtbx.phil
from libtbx.program_template import ProgramTemplate
from libtbx.utils import multi_out
from libtbx.version import get_version
# =============================================================================
class TestProgra... |
9b7e7d62c6d951ff3adf7f5174707caa9b2dc883 | fe48b44c467d828346f7de4918dd5bd3fa5f5872 | /gcp-cloud-functions/python/handled_exception/main.py | 0e820f9a8d7c36037082e1343d5c9bd1103b03aa | [
"MIT"
] | permissive | getsentry/examples | 5b54ec6108c713537d146fbe3fb4eda3a1b02502 | 3e780087adf95ae7b83f5825451520a6af39d396 | refs/heads/master | 2023-08-22T11:24:19.709461 | 2023-06-21T14:20:32 | 2023-06-21T14:20:32 | 97,693,091 | 125 | 125 | MIT | 2023-09-08T17:26:46 | 2017-07-19T08:35:33 | C# | UTF-8 | Python | false | false | 866 | py | main.py | # /**
# *******************************************************************************
# * File name : main.py
# * Description : This file contains code that instruments handled exception
# *******************************************************************************
# **/
# Import Sentry library
import sentry_sd... |
180bbea68ac9cd45a7b2db07c4962f5b9e8b6ffb | 9be0819eef9acd194ba1f3687072d3dbc239c29a | /tests/fixtures/__init__.py | dc2eb04183ba62c551f1b94f00c08949a2bb6d4d | [
"Apache-2.0"
] | permissive | mailgun/talon | 2a438aa2cac36e645c360dedf31f6455f94ee2c1 | 71d9b6eb78e985bcdfbf99b69c20c001b4b818c4 | refs/heads/master | 2023-09-04T15:34:08.602748 | 2022-02-07T07:43:25 | 2022-02-07T07:43:25 | 22,198,589 | 886 | 308 | Apache-2.0 | 2023-07-27T16:26:43 | 2014-07-24T04:12:04 | Python | UTF-8 | Python | false | false | 361 | py | __init__.py | STANDARD_REPLIES = "tests/fixtures/standard_replies"
with open("tests/fixtures/reply-quotations-share-block.eml") as f:
REPLY_QUOTATIONS_SHARE_BLOCK = f.read()
with open("tests/fixtures/OLK_SRC_BODY_SECTION.html") as f:
OLK_SRC_BODY_SECTION = f.read()
with open("tests/fixtures/reply-separated-by-hr.html") as... |
2be308f4e578f069697fc5b716cfeb5041101c58 | 46201552303331f68418e67231cce5f4688b85e3 | /awesome_gans/magan/magan_train.py | d35779c9904b86c649556f35506e8c03f2bfd0e2 | [
"MIT"
] | permissive | kozistr/Awesome-GANs | 6c8d7a62eefe4f60b3b8e4261d073c74f22dd52c | 6548b49d8c05459f7b252c17d0959b5825d2fc69 | refs/heads/master | 2023-07-19T09:37:55.311749 | 2022-06-25T12:03:10 | 2022-06-25T12:03:10 | 92,664,599 | 820 | 195 | MIT | 2021-03-30T01:46:01 | 2017-05-28T14:00:08 | Python | UTF-8 | Python | false | false | 7,449 | py | magan_train.py | import time
import numpy as np
import tensorflow as tf
import awesome_gans.image_utils as iu
import awesome_gans.magan.magan_model as magan
from awesome_gans.datasets import CelebADataSet as DataSet
from awesome_gans.datasets import DataIterator
results = {'output': './gen_img/', 'model': './model/MAGAN-model.ckpt'}... |
c737e19010600a926898713b5925661e122bc37b | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /19_数学/数论/快速幂/等差等比数列求和.py | e120a07110bbce2924dd844210e8c5e864340705 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | 等差等比数列求和.py | # 等差等比数列求和
# https://atcoder.jp/contests/abc293/editorial/5955
|
74fb328ab45c8faba585de3b60236a1c2423329c | 4658aa41017b2e6da830f1e879774e4a7296c314 | /holoviews/tests/plotting/matplotlib/test_plot.py | 4b946f338c4413bcdcc8fe13b1d2033ff9b38841 | [
"BSD-3-Clause"
] | permissive | holoviz/holoviews | 3f133e572933c94cedad7bae6fb6d071152842fc | e3dee5443dad84b507734c0a3d2bba8ec44f5653 | refs/heads/main | 2023-09-03T05:08:42.682432 | 2023-08-28T20:40:36 | 2023-08-28T20:40:36 | 19,542,768 | 1,223 | 223 | BSD-3-Clause | 2023-09-14T18:15:53 | 2014-05-07T16:59:22 | Python | UTF-8 | Python | false | false | 1,257 | py | test_plot.py | import matplotlib.pyplot as plt
import pyviz_comms as comms
from holoviews.core.options import Store
from holoviews.element.comparison import ComparisonTestCase
from holoviews.plotting.mpl.element import ElementPlot
from param import concrete_descendents
from .. import option_intersections
mpl_renderer = Store.rende... |
ed21333469657666ca701eb03852d852233b58ea | 407d194b52fe9cf75cca9d6f3c162a565549a1ae | /VMBackup/main/backuplogger.py | 6f83a1d55148bbc21732e639ac0e32b39ae1ac5d | [
"Apache-2.0"
] | permissive | Azure/azure-linux-extensions | 808761f927045f00548aa68e38d4bec8651c0eba | 3cea1567fc4f4eb5beea9884153e92d70610394d | refs/heads/master | 2023-08-27T14:06:05.775617 | 2023-08-23T01:56:05 | 2023-08-23T01:56:05 | 19,841,123 | 300 | 314 | Apache-2.0 | 2023-09-14T04:21:26 | 2014-05-16T01:38:49 | Python | UTF-8 | Python | false | false | 5,890 | py | backuplogger.py | #!/usr/bin/env python
#
# VM Backup extension
#
# Copyright 2014 Microsoft 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
#
# U... |
67d7cd00329329e16d3b7d952eab1fe5081cb43d | 60d6b8501d0be546437b26a6ee1f9fab97ec3897 | /platypush/backend/http/app/ws/requests.py | 6fec50f76f4d1289c9f619fe5bf5cf0127fda96c | [
"MIT"
] | permissive | BlackLight/platypush | 68284a85b2f9eef303d26b04530f075927b5834a | 446bc2f67493d3554c5422242ff91d5b5c76d78a | refs/heads/master | 2023-08-31T21:01:53.519960 | 2023-08-29T22:05:38 | 2023-08-29T22:05:38 | 109,421,017 | 265 | 25 | MIT | 2023-09-01T23:15:49 | 2017-11-03T16:56:24 | Python | UTF-8 | Python | false | false | 1,517 | py | requests.py | from threading import Thread, current_thread
from typing import Set
from typing_extensions import override
from platypush.backend.http.app.utils import send_message
from platypush.message.request import Request
from . import WSRoute, logger
class WSRequestsProxy(WSRoute):
"""
Websocket event proxy mapped to... |
d38a90a007172072fbc3bdb7a44faa4889404b88 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /CondCore/Utilities/scripts/o2oRun.py | dd6e68a71bc3134299be02e24f15fe0c7cb338f7 | [
"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 | 865 | py | o2oRun.py | #!/usr/bin/env python3
'''
'''
__author__ = 'Giacomo Govi'
import sys
import os
import CondCore.Utilities.o2olib as o2olib
import optparse
import argparse
def main( argv ):
parser = argparse.ArgumentParser()
parser.add_argument("executable", type=str, help="wrapper for O2O jobs")
parser.add_argumen... |
99f5a111b39289a6d71c1e985f5c381c26ed0cc2 | 2337351b228818e41be3002bd38f68f77c2aa074 | /inv/models/platform.py | 266e3ea3fd8d2153da3ed37a1f951ea649b000f8 | [
"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 | 8,144 | py | platform.py | # ---------------------------------------------------------------------
# Platform
# ---------------------------------------------------------------------
# Copyright (C) 2007-2020 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# Python modules
import ... |
c7495f9fda26a99e61075b68f1c6873f1b2ffa48 | a38bf459ae380f67e0de22f7106a8df4385a7076 | /gapic/samplegen_utils/utils.py | 27ccb50efafc684dc40707bb761ffa4ada1f19c0 | [
"Apache-2.0"
] | permissive | googleapis/gapic-generator-python | 73ce9d52f6f5bb2652d49b237b24263d6637b1da | 4eee26181e8db9fb5144eef5a76f178c1594e48a | refs/heads/main | 2023-09-04T11:12:14.728757 | 2023-09-02T10:34:44 | 2023-09-02T10:34:44 | 129,809,857 | 116 | 65 | Apache-2.0 | 2023-09-12T18:57:01 | 2018-04-16T21:47:04 | Python | UTF-8 | Python | false | false | 4,761 | py | utils.py | # Copyright (C) 2019 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 writi... |
892d55c68cd13be5e18eb4c012c454009bfdede9 | 8ed15d43652dbcab332c78923da416b91b139323 | /python/fedml/cli/edge_deployment/client_constants.py | 1c681aad95d6e836a4fa343f4f6467224a0c181d | [
"Apache-2.0"
] | permissive | FedML-AI/FedML | 74d144038c9de4a0621eb328d00987abac35e2d1 | b436fbd95cbb62f6c58d2233d7affa0f62cb1817 | refs/heads/master | 2023-08-31T22:15:39.786371 | 2023-08-24T03:41:58 | 2023-08-24T03:41:58 | 281,519,510 | 3,197 | 807 | Apache-2.0 | 2023-09-14T02:14:20 | 2020-07-21T22:41:25 | Python | UTF-8 | Python | false | false | 19,804 | py | client_constants.py | import os
import platform
import shutil
import signal
import subprocess
import sys
from os.path import expanduser
import psutil
import yaml
from ...cli.comm_utils.yaml_utils import load_yaml_config
class ClientConstants(object):
MSG_MLOPS_CLIENT_STATUS_OFFLINE = "OFFLINE"
MSG_MLOPS_CLIENT_STATUS_IDLE = "IDLE... |
aa919262486d210842e711a0d714398e17c85d6b | 6d652aa802d90571a640ac0b538ff3055d0e34c5 | /tests/test_uname.py | 98c09d32b345a1f0c25fce3c70c7dc3c336a5d58 | [
"MIT"
] | permissive | enkore/i3pystatus | 38eaea8203ed309ff90e1717bd3a9075f12590b0 | 0820dd4e3d479dddec7797b2ea9a83da0f62b7cf | refs/heads/current | 2023-08-18T11:36:18.296269 | 2023-04-25T20:56:08 | 2023-04-25T20:56:08 | 8,130,605 | 438 | 244 | MIT | 2023-08-13T12:13:33 | 2013-02-11T01:01:15 | Python | UTF-8 | Python | false | false | 301 | py | test_uname.py |
import os
from i3pystatus import uname
def test_uname():
KEYS = ("sysname", "nodename", "release", "version", "machine")
uref = os.uname()
for key in KEYS:
um = uname.Uname(format="{" + key + "}")
um.init()
assert um.output["full_text"] == getattr(uref, key)
|
03901987d7c71148ff799061904534842c87be20 | 753aafa747871f556600b28dbb867298132b1e6b | /supervisely/api/agent_api.py | deb93a60c025fc4fd71d53e13f7fe0823be654c4 | [
"Apache-2.0"
] | permissive | supervisely/supervisely | 85dd63e5ccb590b2861271ef7bd5401aa2a99038 | f0df756b8fb89364202fde54e6ef5fe89fca089d | refs/heads/master | 2023-08-27T07:29:57.682377 | 2023-08-24T13:17:31 | 2023-08-24T13:17:31 | 140,302,908 | 447 | 91 | Apache-2.0 | 2023-09-13T11:11:09 | 2018-07-09T15:09:32 | Python | UTF-8 | Python | false | false | 4,754 | py | agent_api.py | # coding: utf-8
"""api for working with agent"""
from __future__ import annotations
from typing import NamedTuple, Optional, Dict, List
from enum import Enum
from supervisely.api.module_api import ApiField, ModuleApi, ModuleWithStatus
class AgentNotFound(Exception):
"""class AgentNotFound"""
pass
class A... |
1f6e698c80d0d0444b3a8aae9232bacc7243abaf | cbdb4f017efda7feca4f46b5539265dd3c4f501d | /src/hypercorn/asyncio/worker_context.py | fe9ad1c74071ee3d971ab5e14b1b62264c291f06 | [
"MIT"
] | permissive | pgjones/hypercorn | 7e02b94109f902fb43ff6fab54fc9d7282704300 | 86a04d1ad2f3af9946ed1669c9e92ffa75c2fa13 | refs/heads/main | 2023-07-21T00:43:34.596374 | 2023-07-08T17:36:47 | 2023-07-08T17:36:47 | 135,839,606 | 680 | 68 | MIT | 2023-09-03T11:13:18 | 2018-06-02T17:47:42 | Python | UTF-8 | Python | false | false | 811 | py | worker_context.py | from __future__ import annotations
import asyncio
from typing import Type, Union
from ..typing import Event
class EventWrapper:
def __init__(self) -> None:
self._event = asyncio.Event()
async def clear(self) -> None:
self._event.clear()
async def wait(self) -> None:
await self.... |
3db0906e609dcf44dd1b2c27c82b6a40808573d2 | 2337351b228818e41be3002bd38f68f77c2aa074 | /core/confdb/syntax/system/aaa/hints.py | f3dd3e0d0aa7c6964116fd9baf5f20a631a459e4 | [
"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 | 1,375 | py | hints.py | # ----------------------------------------------------------------------
# ConfDB hints system aaa
# ----------------------------------------------------------------------
# Copyright (C) 2007-2020 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
# NOC ... |
ea0daece3a3f0cf159271489371ff690da8007ab | 2012ff27cab53907b74e3212780331024b2ed2d5 | /retriever/lib/engine.py | 0f181ab462323571e5a902a20040a88e6d58700e | [
"MIT"
] | permissive | weecology/retriever | 7337ba658e5134e68afa1bc42f2c5023c061acc4 | 37982577eca010a03dd5b5e23fe30be8f42da9ed | refs/heads/main | 2023-08-17T18:30:07.349214 | 2023-04-16T19:41:10 | 2023-04-16T19:41:10 | 1,968,190 | 289 | 166 | NOASSERTION | 2023-04-16T23:21:38 | 2011-06-28T19:01:15 | Python | UTF-8 | Python | false | false | 45,760 | py | engine.py | import csv
import getpass
import gzip
import os
import re
import shutil
import sys
import tarfile
import zipfile
from collections import OrderedDict
from math import ceil
from urllib.request import urlretrieve
from urllib.error import HTTPError
import requests
from requests.exceptions import InvalidSchema
from setupto... |
65b5bd6eaeaf66eda2de04cb44abc05ad27c84bc | 4ffc4c5e97e685fb976bbf8fb66ce0abea1562a1 | /fido2/utils.py | 1225bb4eb1cfd3ad95e4ee7b4c793fcb385856fa | [
"MPL-2.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | Yubico/python-fido2 | 82508390afc8d8b8eae286c4f3abc1636dec729a | 963eae041a23d53175bcc4eec1d45ad7f585caa2 | refs/heads/main | 2023-08-09T17:30:41.379131 | 2023-07-06T14:03:59 | 2023-07-06T14:03:59 | 125,505,498 | 381 | 110 | BSD-2-Clause | 2023-08-22T11:34:05 | 2018-03-16T11:09:18 | Python | UTF-8 | Python | false | false | 8,783 | py | utils.py | # Copyright (c) 2013 Yubico AB
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditi... |
d04569123f774d3375dbc572b69d43a5bd1e817f | 22947f7f3690ff99c2caf823c2d91db030bb0a0c | /pysnow/resource.py | 1c884343516ef5d0d8403ed746ac445da9ff1ba2 | [
"MIT"
] | permissive | rbw/pysnow | 5ade19a80a4ce5f8e8bf651837332761c7675ccd | 6ac140aab631ef7029b8f211b15ebd3afcbb151e | refs/heads/master | 2023-08-10T02:45:43.589989 | 2022-01-19T00:53:00 | 2022-01-19T00:53:00 | 64,137,253 | 142 | 71 | MIT | 2023-07-20T22:33:50 | 2016-07-25T13:36:08 | Python | UTF-8 | Python | false | false | 4,824 | py | resource.py | # -*- coding: utf-8 -*-
import logging
from copy import copy, deepcopy
from .request import SnowRequest
from .attachment import Attachment
from .url_builder import URLBuilder
from .exceptions import InvalidUsage
logger = logging.getLogger("pysnow")
class Resource(object):
r"""Creates a new :class:`Resource` o... |
3c4d02d8fa551abec4015945e5201d3dd25c82c3 | 71acb7214efd91c0d327f6d8958e1798eadb4401 | /locations/spiders/audi_be.py | 5d7ab70ad741a363b08055d3fd8b78b7485e48bc | [
"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,536 | py | audi_be.py | import scrapy
from locations.items import Feature
from locations.user_agents import BROWSER_DEFAULT
class AudiBeSpider(scrapy.Spider):
name = "audi_be"
item_attributes = {
"brand": "Audi",
"brand_wikidata": "Q23317",
}
allowed_domains = ["audi.be"]
custom_settings = {
"ROB... |
bca752b1d78b93840f25ef45cfe77b8a5a42c6ed | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /JetMETCorrections/Type1MET/python/multPhiCorr_phys14_cfi.py | 9a74207bff0adcb114701e73c94f7b9476d78714 | [
"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 | 4,276 | py | multPhiCorr_phys14_cfi.py | import FWCore.ParameterSet.Config as cms
multPhiCorr_phys14 = cms.VPSet(
cms.PSet(
name=cms.string("h"),
type=cms.int32(1),
varType=cms.int32(0),
etaMin=cms.double(-2.7),
etaMax=cms.double(2.7),
fx=cms.string("(x*[0])+(sq(x)*[1])"),
px=cms.vdouble(-0.00100488080903,-2.52390... |
e3d198d71924b4eb4225b8db9765778d4b3f60e8 | a2b20597759990445081057d35d113434cfcf970 | /stubs/typeshed/typeshed/stubs/pywin32/win32/lib/win32netcon.pyi | 0538f443f18daf6ad92f2ee6d9a82d3a67631027 | [
"MIT",
"Apache-2.0"
] | permissive | facebook/pyre-check | 34059599c02b65605c574f13555229f3b931fd4e | fe8ccedc572cc1faa1fd01e9138f65e982875002 | refs/heads/main | 2023-09-03T19:10:11.587028 | 2023-09-02T07:40:35 | 2023-09-02T07:40:35 | 110,274,488 | 6,703 | 575 | MIT | 2023-09-13T17:02:32 | 2017-11-10T17:31:36 | OCaml | UTF-8 | Python | false | false | 14,831 | pyi | win32netcon.pyi | CNLEN: int
LM20_CNLEN: int
DNLEN: int
LM20_DNLEN: int
UNCLEN: int
LM20_UNCLEN: int
NNLEN: int
LM20_NNLEN: int
RMLEN: int
LM20_RMLEN: int
SNLEN: int
LM20_SNLEN: int
STXTLEN: int
LM20_STXTLEN: int
PATHLEN: int
LM20_PATHLEN: int
DEVLEN: int
LM20_DEVLEN: int
EVLEN: int
UNLEN: int
LM20_UNLEN: int
GNLEN: int
LM20_GNLEN: int
... |
f954062eb022dbea225b9cae9b302f2c1b9b5d94 | 50c1abfbfde3554c61bb1d9f7057ba7aaa6488c0 | /downloadaudio/downloaders/islex.py | b8ba50cc827d480f683819c033771ac4185a26ae | [] | no_license | ospalh/anki-addons | f818a67f1c28f55c320b78c2606cae459d0b572a | 4ece13423bd541e29d9b40ebe26ca0999a6962b1 | refs/heads/develop | 2023-08-08T16:56:15.390038 | 2021-02-03T09:26:45 | 2021-02-03T09:26:45 | 4,192,177 | 129 | 60 | null | 2023-07-21T13:54:46 | 2012-05-01T12:44:44 | Python | UTF-8 | Python | false | false | 2,952 | py | islex.py | # -*- mode: python; coding: utf-8 -*-
#
# Copyright © 2015 Daniel Eriksson <daniel@deriksson.se>
# Copyright © 2015 Roland Sieker <ospalh@gmail.com>
#
# License: GNU AGPL, version 3 or later;
# http://www.gnu.org/copyleft/agpl.html
"""
Download pronunciations for Icelandic from islex.is
"""
import urllib.request, ur... |
5fdc9d1c9016452f4d77839533271754451fe8c7 | a1bf73ad2ed4739886d3a9c5e3b337e67c36f5cb | /run_docs.py | 4ba9a32df9841183353bc73ee6ec984813cb79ca | [
"BSD-2-Clause"
] | permissive | mottosso/cmdx | 679eccdb892218f1f4f2ba10f5ba50a139fb55f4 | 814c7d934b13ba8735736424b69d0b89639157fa | refs/heads/master | 2022-11-05T12:23:44.265773 | 2022-02-28T06:52:16 | 2022-02-28T06:52:16 | 200,228,452 | 156 | 41 | BSD-2-Clause | 2022-05-29T22:23:29 | 2019-08-02T12:10:14 | Python | UTF-8 | Python | false | false | 50 | py | run_docs.py | """Run each example in the README as a doctest"""
|
1ac291cfbe88a972e1449cea1313ab71d80340e9 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/refactoring/extractmethod/File.before.py | 65466c5b192259320f2907ed337b6341794784cc | [
"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 | 153 | py | File.before.py | def __init__(self):
for base in self__class__.__bases__:
<selection>try: base.__init__(self)
except AttributeError: pass</selection>
|
74573fcbfb96be80a51d7a5dc69ce0eaeb6b751b | 90f9bdb537573ae3081e2a93e05cfc93b5f99612 | /examples/2_fold/plot_refolded_folds.py | 8b6f59ab8f67477b7b7cd9caafaa13798e0ba328 | [
"MIT"
] | permissive | Loop3D/LoopStructural | d0fa201d9ff8d99fb47006e3def0fbfb30ece5c4 | c6175623450dbc79ed06ed8d8bbff21b63fc8b4c | refs/heads/master | 2023-06-25T21:17:47.595673 | 2023-06-19T00:40:20 | 2023-06-19T00:40:20 | 181,411,760 | 123 | 21 | MIT | 2023-06-19T00:49:32 | 2019-04-15T04:25:27 | Python | UTF-8 | Python | false | false | 3,437 | py | plot_refolded_folds.py | """
2b. Refolded folds
===================
"""
from LoopStructural import GeologicalModel
from LoopStructural.visualisation import LavaVuModelViewer, RotationAnglePlotter
from LoopStructural.datasets import load_laurent2016
import numpy as np
import pandas as pd
import glob
import os
import matplotlib.pyplot as plt
... |
c962857a1692c589c42a89dcf3dd4a54e3ade3ae | 77fd60c4b7e7885b2ec4ca5203edf9489f6f37dc | /nipy/externals/transforms3d/__init__.py | 8c93067bc074997636f018435bf64a3144728c02 | [
"BSD-3-Clause"
] | permissive | nipy/nipy | 156f379adbc07b259e25012662510b1f64aac4c5 | 7eede02471567487e454016c1e7cf637d3afac9e | refs/heads/master | 2023-04-06T14:56:36.303421 | 2023-04-05T19:40:24 | 2023-04-05T19:40:24 | 642,344 | 275 | 115 | BSD-3-Clause | 2023-04-05T19:40:25 | 2010-05-02T10:00:33 | Python | UTF-8 | Python | false | false | 157 | py | __init__.py | ''' Copies from transforms3d package
Please see github.com/matthew-brett/transforms3d
'''
from __future__ import absolute_import
from . import quaternions
|
e34d37b2838dcda5ab07a700efd0d8b29c8eee43 | 3c42143cfaab36b3f451586ced0112bcdb9e970c | /tests/setup.py | 1bd19ced58f0922161e98fdc2788c6eab697e57e | [
"MIT"
] | permissive | wouterboomsma/eigency | c6217c434ba33a36ff54424bb8a4b5ea232b9659 | baa8fe5abf4faa6ce080aa18c7c3e9cd730917b5 | refs/heads/master | 2023-04-14T06:37:52.250144 | 2023-03-26T06:17:22 | 2023-03-26T06:17:22 | 55,784,012 | 110 | 28 | MIT | 2023-03-26T06:17:23 | 2016-04-08T14:13:38 | Cython | UTF-8 | Python | false | false | 537 | py | setup.py | from Cython.Build import cythonize
from setuptools import setup
from setuptools.extension import Extension
import eigency
extensions = [
Extension(
"eigency_tests.eigency_tests",
["eigency_tests/eigency_tests.pyx"],
include_dirs=[".", "eigency_tests"] + eigency.get_includes(),
),
]
se... |
d7920c0dab2ba82c9ebaf0b12f68059cb488c2a8 | 080a9fea665ee362ba295b8687c22ad6f458bac5 | /compiler/python_archive.py | 2c69c586c1583462d4be3a3adec218ab24208c94 | [
"Apache-2.0"
] | permissive | google/subpar | 6c8627365b6f11d3e5302f72db6e843583fb9fb2 | 5c486705da7fece4739015ce566423a8fd89916f | refs/heads/master | 2023-07-31T21:41:21.363468 | 2022-12-19T19:23:19 | 2022-12-19T19:23:19 | 64,876,050 | 601 | 85 | Apache-2.0 | 2022-12-27T14:53:54 | 2016-08-03T20:11:35 | Python | UTF-8 | Python | false | false | 12,040 | py | python_archive.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... |
018a44cd331b5aaa1fd39fb1b7e739f3760fe511 | 8da41ffa2ccb09e04f95db0f211e0ed69a42a352 | /courses/machine_learning/deepdive2/production_ml/labs/samples/contrib/kubeflow-katib/mpi-job-horovod.py | 5476677651eb4aaa8958b19821e8f35a24380ff2 | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/training-data-analyst | 808af9b09a0e5f5657c4ca76cdd205f808d76d89 | 975a95032ce5b7012d1772c7f1f5cfe606eae839 | refs/heads/master | 2023-09-05T19:50:59.722334 | 2023-09-04T14:25:33 | 2023-09-04T14:25:33 | 56,459,948 | 7,311 | 5,917 | Apache-2.0 | 2023-09-13T21:45:54 | 2016-04-17T21:39:27 | Jupyter Notebook | UTF-8 | Python | false | false | 8,953 | py | mpi-job-horovod.py | # Kubeflow Pipeline with Katib component.
# In this example you will create Katib Experiment using Bayesian optimization algorithm.
# As a Trial template you will use Kubeflow MPIJob with Horovod mnist training container.
# After that, you will compile a Kubeflow Pipeline with your Katib Experiment.
# Use Kubeflow Pip... |
0685257c7035cec967347e854e5d5d9770d6b9cf | 75e79c6369a2399f90582fdda7633d34dfcf35bd | /tests/unit/config/old_test_configfile.py | 1ee97053191a075f5b74088723d6e742048c8f24 | [
"MIT"
] | permissive | LLNL/merlin | 9080b042389edd4a5747b9af8c4521422d1f88bf | d8bfbdbd5a07a314064ce24a6201662a34fc8028 | refs/heads/develop | 2023-09-04T07:57:43.780163 | 2023-08-22T19:54:18 | 2023-08-22T19:54:18 | 222,809,980 | 105 | 20 | MIT | 2023-08-22T19:54:20 | 2019-11-19T23:31:13 | Python | UTF-8 | Python | false | false | 2,708 | py | old_test_configfile.py | """Tests for the configfile module."""
import os
import shutil
import tempfile
import unittest
from getpass import getuser
from merlin.config import configfile
from .utils import mkfile
CONFIG_FILE_CONTENTS = """
celery:
certs: path/to/celery/config/files
broker:
name: rabbitmq
username: testuser
p... |
40fd21503f39f1d2456e02fb89da73db02739780 | e62c8ee151671b999c6720ab8c2aa2f96c0d7f55 | /tests/unit/samples/wiringstringids/package/subpackage/submodule.py | 6e9fa936334ddee3df198295a65c4bccdfe46e65 | [] | permissive | ets-labs/python-dependency-injector | 45645973456bb6494386ad12103d06e1f1be2cd8 | cc2304e46e054ae08dc12995428759fbfb51af10 | refs/heads/master | 2023-08-23T03:59:53.509743 | 2022-12-19T03:14:24 | 2022-12-19T03:14:24 | 28,774,758 | 3,217 | 273 | BSD-3-Clause | 2023-09-08T21:46:18 | 2015-01-04T13:23:05 | Python | UTF-8 | Python | false | false | 174 | py | submodule.py | from dependency_injector.wiring import inject, Provide
from ...service import Service
@inject
def test_function(service: Service = Provide["service"]):
return service
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.