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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9c4968ad51b1860bb989841aef9f8e5818d0387f | 707dabf6a2e809959d3ee83183f9613662224cd0 | /live/classes/group.py | ea948a92384b9cd625bc60bec1f786185304862a | [] | no_license | ideoforms/pylive | 23c9d44689d9ed29e2c6fce4d543fe95b4389655 | a8ae0db971852596963c2cc95ee14b056af62bb1 | refs/heads/master | 2023-08-10T10:19:17.723642 | 2023-07-25T17:33:26 | 2023-07-25T17:33:26 | 11,980,609 | 409 | 52 | null | 2023-07-25T17:33:28 | 2013-08-08T16:11:26 | Python | UTF-8 | Python | false | false | 1,926 | py | group.py | from __future__ import annotations
import logging
from .track import Track
class Group(Track):
"""
Represents a grouped set of Track objects.
"""
def __init__(self, set, track_index: int, group_index: int, name: str, group: Group):
Track.__init__(self, set, track_index, name, group)
... |
7cda2a4ec22cf3ba6be4e735a138e132f501b07c | cb3eeb65764bdb0b437e3e0afe824d52bfef3344 | /tools/fewshot_exp/crops/create_crops_voc_base.py | e37eccd417f2de195c6dbcec6c193a19a5069934 | [
"MIT"
] | permissive | jiaxi-wu/MPSR | dccc8203c6ba3b77ad92c93f0bf048c415040e71 | 3e4ecdbeb02faf1857ada74858b38187213d676e | refs/heads/master | 2022-11-29T05:58:19.780202 | 2020-08-20T14:31:14 | 2020-08-20T14:31:14 | 274,648,664 | 137 | 23 | null | null | null | null | UTF-8 | Python | false | false | 1,969 | py | create_crops_voc_base.py | from PIL import Image
from maskrcnn_benchmark.data.datasets.voc import PascalVOCDataset
import os, shutil
import sys
#crop the object from original image and save them in original shape
#save object under categorized folders
split = int(sys.argv[1])
#here we do not crop the original size, but crop a (8 / 7) larger cl... |
d65f01b2c1faf9e9cdeb426a67ba92b0e5524ef7 | 4f59f77ee3f0be11930fd530cad72246be4c9fd1 | /test/test_hifigan.py | 933d3dea93849907aba0f15f1dad3a55e10e0bbe | [
"Apache-2.0"
] | permissive | TensorSpeech/TensorFlowTTS | 3493ca788f67eee32e343cb492d95bdf38a4306a | 136877136355c82d7ba474ceb7a8f133bd84767e | refs/heads/master | 2023-07-04T17:25:40.956787 | 2022-03-10T08:34:25 | 2022-03-10T08:34:25 | 249,107,601 | 2,889 | 686 | Apache-2.0 | 2022-11-25T22:56:20 | 2020-03-22T03:44:10 | Python | UTF-8 | Python | false | false | 3,900 | py | test_hifigan.py | # -*- coding: utf-8 -*-
# Copyright 2020 TensorFlowTTS 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 applicabl... |
d2a6f9bf55429670cc92cb7fb5a5bfd21f46aca0 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Spacy/source2.7/spacy/lang/sv/morph_rules.py | e28322e98d0efa95a94e4ba9306673966dfc2af0 | [
"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,912 | py | morph_rules.py | # coding: utf8
from __future__ import unicode_literals
from ...symbols import LEMMA, PRON_LEMMA
# Used the table of pronouns at https://sv.wiktionary.org/wiki/deras
MORPH_RULES = {
"PRP": {
"jag": {LEMMA: PRON_LEMMA, "PronType": "Prs", "Person": "One", "Number": "Sing", "Case": "Nom"},
... |
9ba88e2b5642d826eb425ffd6afb9f3576e21d33 | 24f354c0a362c0a44fe0946f0a947930f0724f4d | /tests/unit/activation/test_python_activator.py | f773f74a65457189343278a64e76412c631119f7 | [
"MIT"
] | permissive | pypa/virtualenv | 783cf226c806bcb44ee63fd87c37d76e90c121ce | 6d22da631fd289f89f921a4010047ad969b7bfa7 | refs/heads/main | 2023-09-04T06:50:16.410634 | 2023-08-30T14:32:38 | 2023-08-30T14:32:38 | 1,446,474 | 4,313 | 1,073 | MIT | 2023-09-12T14:54:09 | 2011-03-06T14:33:27 | Python | UTF-8 | Python | false | false | 3,510 | py | test_python_activator.py | from __future__ import annotations
import os
import sys
from ast import literal_eval
from textwrap import dedent
from virtualenv.activation import PythonActivator
from virtualenv.info import IS_WIN
def test_python(raise_on_non_source_class, activation_tester):
class Python(raise_on_non_source_class):
de... |
324be878f03689ec5b097f2f1de8ffe0206959aa | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/quickdoc/AttributeDescriptionEmptyGoogle.py | e82a7c161132fb8e40cc4624408590d949e318d4 | [
"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 | 90 | py | AttributeDescriptionEmptyGoogle.py | class My<the_ref>Class:
"""
Attributes:
attr (int) :
"""
attr = 1 |
9d247815dffb71174456e9deaf52e31392b25685 | 85d2c76b8a646c4183fb095c2b5a2e2a916d70a8 | /solution/math/5618/main.py | d6ffb3900373c70a6eb1202fd428afeec9b0c1d7 | [
"MIT"
] | permissive | tony9402/baekjoon | 448213dcbdf74b58b6d87191ac54c286bad32f29 | 71f9bfc1f4ed66b97ffc0aff2d17389a095a7d11 | refs/heads/main | 2023-08-16T17:54:08.533578 | 2023-08-16T16:36:36 | 2023-08-16T16:36:36 | 200,492,112 | 4,828 | 1,230 | MIT | 2023-06-22T11:49:18 | 2019-08-04T12:48:59 | Python | UTF-8 | Python | false | false | 575 | py | main.py | # Authored by : gusdn3477
# Co-authored by : tony9402
# Link : http://boj.kr/aef57ade1e5c4c6e90f08a159fe96ca2
import sys
def input():
return sys.stdin.readline().rstrip()
def GCD(x,y):
if y == 0:
return x
else:
return GCD(y, x%y)
n = int(input())
arr = list(map(int, input().split()))
outp... |
2b34d1a5fc6bc93bfea791237a8a060c757bde20 | d58a58261efe1db9f2956be1e7081dbd4e7eeb0f | /datasets/combine_A_and_B.py | d23f405476689c78114e27845169bd21a72c9a51 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | mit-han-lab/gan-compression | 6245dc896ce79470e6a55a39e678ec32197c0fc0 | 3dd79dd4973e4bdad511169fde89b3e9e12adc5e | refs/heads/master | 2023-08-24T09:12:58.311288 | 2022-11-10T00:57:24 | 2022-11-10T00:57:24 | 245,032,939 | 1,135 | 166 | NOASSERTION | 2023-02-16T00:44:54 | 2020-03-05T00:27:13 | Python | UTF-8 | Python | false | false | 2,249 | py | combine_A_and_B.py | import argparse
import os
import cv2
import numpy as np
parser = argparse.ArgumentParser('create image pairs')
parser.add_argument('--fold_A', dest='fold_A', help='input directory for image A', type=str,
default='../dataset/50kshoes_edges')
parser.add_argument('--fold_B', dest='fold_B', help='inpu... |
22abe48d6cd1c930ea43365a817c778333c9a405 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/resolve/BuiltinVsClassMember.py | e5903764bcd03c587222d0ecce2d8d4aabcb2fc2 | [
"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 | 107 | py | BuiltinVsClassMember.py | class Foo:
def eval(self, value):
pass
def bar(self):
eval('foo')
# <ref>
|
cabf26b34e44024e1558130b76fe5c7422ad8de5 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/polymer/v3_0/css_strip_prefixes.py | ee3ee6d5d929648af72581b087a8f147242a8bc7 | [
"GPL-1.0-or-later",
"MIT",
"LGPL-2.0-or-later",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 2,613 | py | css_strip_prefixes.py | # Copyright 2017 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse
import fnmatch
import os
import re
import sys
# List of CSS properties to be removed.
CSS_PROPERTIES_TO_REMOVE = [
'-moz-appearance',
'-moz-box-sizing',
'-m... |
ed90584f79fed2a92a2ce5e2bcf50ba5f4eebb54 | dbb120cceaed09027f250bedbb6f5a8c5d4c71f5 | /netket/utils/__init__.py | ed08483d51581159effe1de7d5bf3d1866a9b833 | [
"Apache-2.0"
] | permissive | netket/netket | b0ec4dc6e0ed5493299a38b8dbfd06e9f946e3b3 | f4f2844739302fd7e044b722eae8a93d0bfc59ec | refs/heads/master | 2023-08-29T12:03:29.446789 | 2023-08-20T10:21:41 | 2023-08-20T10:21:41 | 130,741,783 | 467 | 181 | Apache-2.0 | 2023-09-14T20:40:47 | 2018-04-23T18:48:08 | Python | UTF-8 | Python | false | false | 1,626 | py | __init__.py | # Copyright 2021 The NetKet Authors - All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... |
a75292852cdfe0434399fbc9102368bf153711a5 | da1721d2783ea4d67ff4e73cee6eee71292f2ef7 | /otp/level/EntityTypes.py | 0ee03a7a9724fa7d6b209d07bdd669b7bd2a6dbf | [
"BSD-3-Clause"
] | permissive | open-toontown/open-toontown | bbdeb1b7bf0fb2861eba2df5483738c0112090ca | 464c2d45f60551c31397bd03561582804e760b4a | refs/heads/develop | 2023-07-07T01:34:31.959657 | 2023-05-30T23:49:10 | 2023-05-30T23:49:10 | 219,221,570 | 143 | 104 | BSD-3-Clause | 2023-09-11T09:52:34 | 2019-11-02T22:24:38 | Python | UTF-8 | Python | false | false | 4,093 | py | EntityTypes.py | from .EntityTypeDesc import EntityTypeDesc
from toontown.coghq.SpecImports import *
class Entity(EntityTypeDesc):
abstract = 1
type = 'entity'
attribs = (('type', None, 'const'),
('name', '<unnamed>', 'string'),
('comment', '', 'string'),
('parentEntId', 0, 'entId'))
class LevelMgr(Entity)... |
1b55d04165bf1fc75de681e335da004080d25525 | a33e380ba70fa915bd3a6199cf88dcfa38ca5fab | /backpack/core/derivatives/basederivatives.py | 2a55ac88d6c5fbf207dfd2aa624f5e11dd7eab8e | [
"MIT"
] | permissive | f-dangel/backpack | 1c90aaacad4569dd3153342ad68864466389767c | 1ebfb4055be72ed9e0f9d101d78806bd4119645e | refs/heads/master | 2023-08-14T05:49:31.904383 | 2023-07-12T18:17:34 | 2023-07-12T18:17:34 | 196,406,270 | 505 | 61 | MIT | 2023-09-05T14:06:32 | 2019-07-11T14:03:56 | Python | UTF-8 | Python | false | false | 22,384 | py | basederivatives.py | """Base classes for more flexible Jacobians and second-order information."""
import warnings
from abc import ABC
from typing import Callable, List, Tuple
from torch import Tensor
from torch.nn import Module
from backpack.core.derivatives import shape_check
class BaseDerivatives(ABC): # noqa: B024
"""First- and... |
e20f53cffda0cca08d1f41e56718d199a0195d6f | e4070e15e5227f02c92d04510941b82ee39732ad | /grobid_client/grobid_client.py | b63cf2098a1cf863029f8fc2b7c2a3cb10460a5d | [
"Apache-2.0"
] | permissive | kermitt2/grobid_client_python | 73ff4434341a038806ddd9ccd441d2b01be8ef08 | b9e295754d18c3eb880f5e54be5ced0dcc834227 | refs/heads/master | 2023-09-03T11:14:33.232076 | 2023-08-25T09:49:45 | 2023-08-25T09:49:45 | 150,803,955 | 114 | 44 | Apache-2.0 | 2023-07-12T23:19:03 | 2018-09-28T23:23:48 | Python | UTF-8 | Python | false | false | 16,720 | py | grobid_client.py | """
Grobid Python Client
This version uses the standard ThreadPoolExecutor for parallelizing the
concurrent calls to the GROBID services. Given the limits of
ThreadPoolExecutor (input stored in memory, blocking Executor.map until the
whole input is acquired), it works with batches of PDF of a size indicated
in the... |
f433a06a864dba9b7df70cc8cb6dfb83cdfd524e | 2c5414ed169892c538cd802c06d67001d9e4b960 | /plugins/python/regress/plugin_conflict.py | 363219334b32cbf497269c8c0b91274a11abbb66 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"Zlib",
"BSD-Source-Code",
"ISC",
"BSD-2-Clause"
] | permissive | sudo-project/sudo | bdfeebb02cb39151fc4cfe69366b887f092e0c16 | 956de5cbbc650d6aec19804cd376a39164e76e5b | refs/heads/main | 2023-09-04T11:12:09.797952 | 2023-09-02T21:25:58 | 2023-09-02T21:25:58 | 57,972,154 | 922 | 216 | NOASSERTION | 2023-08-18T00:43:55 | 2016-05-03T13:41:24 | C | UTF-8 | Python | false | false | 326 | py | plugin_conflict.py | import sudo
import sys
sys.path = []
class ConflictPlugin(sudo.Plugin):
def __init__(self, plugin_options, **kwargs):
sudo.log_info("PATH before: {} (should be empty)".format(sys.path))
sys.path = [sudo.options_as_dict(plugin_options).get("Path")]
sudo.log_info("PATH set: {}".format(sys.p... |
2d3676014aeb8559bd0831e2da51d4526ece775c | 79cd7118917561ab5b8d25f04143e0975578b74f | /pytorch_widedeep/bayesian_models/__init__.py | 993996c88f74daf47b559d07e2e6986eae95fc96 | [
"Apache-2.0",
"MIT"
] | permissive | jrzaurin/pytorch-widedeep | aac80263ba8e94d36b41fb1f47181a66471d7594 | 74f1ab6feb2e231fdb8c10478638d9e8d5cf3a47 | refs/heads/master | 2023-09-06T06:41:41.800801 | 2023-09-04T15:32:38 | 2023-09-04T15:32:38 | 107,763,164 | 1,036 | 124 | Apache-2.0 | 2023-09-04T15:32:39 | 2017-10-21T08:11:44 | Python | UTF-8 | Python | false | false | 95 | py | __init__.py | from pytorch_widedeep.bayesian_models.tabular import (
BayesianWide,
BayesianTabMlp,
)
|
6eb3da3cf96e74244b17ccafbcd463e09fbf8fe5 | e5e0d729f082999a9bec142611365b00f7bfc684 | /tensorflow/lite/testing/generate_examples.py | 98f32d854a9f31ac29a5d14fe9480adc6447efe3 | [
"Apache-2.0"
] | permissive | NVIDIA/tensorflow | ed6294098c7354dfc9f09631fc5ae22dbc278138 | 7cbba04a2ee16d21309eefad5be6585183a2d5a9 | refs/heads/r1.15.5+nv23.03 | 2023-08-16T22:25:18.037979 | 2023-08-03T22:09:23 | 2023-08-03T22:09:23 | 263,748,045 | 763 | 117 | Apache-2.0 | 2023-07-03T15:45:19 | 2020-05-13T21:34:32 | C++ | UTF-8 | Python | false | false | 3,647 | py | generate_examples.py | # Copyright 2019 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... |
f2094cdab0072aea060763462c78d78b7d064bc3 | c6a101547c2b7f36fe83a725974a8a7f02cf176d | /data_structures/binary_trees/largest_subtree_sum.py | d79002f2afcf5a882de69f86c1fdc32b6e85a8be | [
"MIT"
] | permissive | prabhupant/python-ds | 737cc35574de5c2ece0f0813cf00775324a8dbe7 | f7d6d78fedaf84b7527965bb1798b7a8da989474 | refs/heads/master | 2023-08-22T05:04:22.937675 | 2022-10-04T01:29:39 | 2022-10-04T01:29:39 | 199,366,418 | 2,325 | 704 | MIT | 2022-10-10T13:01:10 | 2019-07-29T02:48:57 | Python | UTF-8 | Python | false | false | 500 | py | largest_subtree_sum.py | # Find the largest subtree sum in a binary tree
# Do a postorder traversal
class Node:
def __init__(self, val):
self.val = val
self.left = None
self.right = None
def sum_util(root, ans):
if root is None:
return 0
s = root.val + sum_util(root.left, ans) + sum_util(root.ri... |
9d750ee4f2ec167c18d66680d33624233dc00348 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /Non_Linear_Finite_Element_Analysis_of_Solids_and_Structures_Borst/pyfem-1.0/pyfem/elements/Spring.py | ad466fd86969780f5e230f33a0670c5beece23b1 | [] | 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,976 | py | Spring.py | ############################################################################
# This Python file is part of PyFEM-1.0, released on Aug. 29, 2012. #
# The PyFEM code accompanies the book: #
# #
# 'No... |
aa7de59d0c744f6e8b496d56cf86e62b407f914f | 776bdcfeaf7418fc0504e8f5e1703e31f2cc23cb | /riko/modules/fetchsitefeed.py | 544dfc3ed13a734671ec38f0fa72ceb66acc1eb4 | [
"MIT"
] | permissive | nerevu/riko | f0c7176de2c7e94331daef50c44962140671885c | 4d27102b605b8b4050ba566d5e0895d8d5f8b09a | refs/heads/master | 2023-03-08T02:51:44.474765 | 2021-12-28T23:01:31 | 2021-12-28T23:01:31 | 60,261,863 | 1,747 | 90 | MIT | 2020-07-29T20:20:36 | 2016-06-02T12:22:51 | Python | UTF-8 | Python | false | false | 5,707 | py | fetchsitefeed.py | # -*- coding: utf-8 -*-
# vim: sw=4:ts=4:expandtab
"""
riko.modules.fetchsitefeed
~~~~~~~~~~~~~~~~~~~~~~~~~~
Provides functions for fetching the first RSS or Atom feed discovered in a web
site.
Uses a web site's auto-discovery information to find an RSS or Atom feed. If
multiple feeds are discovered, only the first on... |
71b6400b0f94def17afd28ac367e4b1c4c803d4b | 01184c7098e40569dd48219fbe3012321cf31244 | /test/utils/namespace/_QT.py | ec6dd36d54cbf947e6af0443a0315a5e6401063e | [
"BSD-3-Clause"
] | permissive | RDFLib/rdflib | 1c81136f2656207042f81374540d8e1f02be28f5 | 077f4ac3abb3038b266f40dc95a8ccf9f4e9a84c | refs/heads/main | 2023-08-30T11:22:00.041615 | 2023-08-29T21:31:43 | 2023-08-29T21:31:43 | 3,342,046 | 1,754 | 562 | BSD-3-Clause | 2023-09-12T14:58:35 | 2012-02-03T05:49:13 | Python | UTF-8 | Python | false | false | 561 | py | _QT.py | from rdflib.namespace import DefinedNamespace, Namespace
from rdflib.term import URIRef
class QT(DefinedNamespace):
_fail = True
_NS = Namespace("http://www.w3.org/2001/sw/DataAccess/tests/test-query#")
QueryForm: URIRef # Super class of all query forms
QueryTest: URIRef # The class of query tests
... |
51416a0d50eaca714eb8a17562dd7727cae004f1 | 3093dd966d4019f5e96f335677716afd6ffad7ac | /test/repos/fizzbuzz_service/fizzbuzz_service/checkers/fizzbuzz/fizzbuzz_checker.py | aa6f1613e1042b9cc56da3a5cce8188b41a5e66f | [
"MIT"
] | permissive | sourcegraph/python-langserver | db62fda4e025d5a3241e33b63d5380f585cb444d | 214b2717b44a5bd7aaf4ac077ac1b9054de064ec | refs/heads/master | 2021-10-24T16:33:53.998475 | 2019-03-26T23:10:36 | 2019-03-26T23:10:36 | 66,597,766 | 118 | 11 | MIT | 2018-06-29T20:40:13 | 2016-08-25T22:32:13 | Python | UTF-8 | Python | false | false | 243 | py | fizzbuzz_checker.py | from ..fizz import fizz_checker
from ..buzz.buzz_checker import should_buzz
def should_fizzbuzz(number):
'''Whether or not "fizzbuzz" should be printed for this number'''
return fizz_checker.should_fizz(number) and should_buzz(number) |
b13b2c3379ff847d0c8fe2e7ed2bf5af8e56668c | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-dris/huaweicloudsdkdris/v1/model/target_pos.py | 6bcce0d1490ffa61e9fc89ffdf4b56f10db32883 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 5,985 | py | target_pos.py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class TargetPos:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
... |
8b1f8a38cc30b72aaf340e74e2925779f78fdc3e | 83963c19fd120dcc7498b726cc56de7fbb900a47 | /osxphotos/cli/verbose.py | 64e12ff3f005aa22c26487904426ffb412a41e8e | [
"BSD-3-Clause",
"MIT",
"ISC",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | RhetTbull/osxphotos | 55ad4f1257bcd26bb3fbadde6ce5dd59c0917354 | 2cb5a4d18a27be6ccf68f5f35abd39418d238016 | refs/heads/main | 2023-09-02T18:11:06.227191 | 2023-09-02T16:06:51 | 2023-09-02T16:06:51 | 192,160,985 | 1,287 | 93 | MIT | 2023-09-14T14:10:58 | 2019-06-16T07:07:49 | Python | UTF-8 | Python | false | false | 8,732 | py | verbose.py | """helper functions for printing verbose output"""
from __future__ import annotations
import os
from datetime import datetime
from typing import IO, Any, Callable, Optional
import click
from rich.console import Console
from rich.theme import Theme
from .click_rich_echo import (
rich_click_echo,
set_rich_con... |
f47292324269e352c52288ae770524fa16e7b536 | a64eeba4575eee849b459dab9c7000350ee636f1 | /mediapipe/tasks/python/components/containers/detections.py | 833552c42df055d06e4a2ffbffd6197c8177de60 | [
"Apache-2.0",
"dtoa"
] | permissive | google/mediapipe | 0b6b56aff8bacc7b680c205f0788f1b49dd33f5e | 007824594bf1d07c7c1467df03a43886f8a4b3ad | refs/heads/master | 2023-09-01T16:11:21.218234 | 2023-09-01T11:55:21 | 2023-09-01T11:57:34 | 191,820,100 | 23,940 | 5,164 | Apache-2.0 | 2023-09-14T09:01:36 | 2019-06-13T19:16:41 | C++ | UTF-8 | Python | false | false | 5,843 | py | detections.py | # Copyright 2022 The MediaPipe Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... |
106254c30f22d3eae63b944e26754ae9425776ba | 39bbabca04b639979145ebd373e45f83cf3c6f10 | /ambf_ros_modules/ambf_client/python/tests/rl_test.py | d531f2a6ae4a569fa58fb0c9fb1b326a5669a573 | [] | no_license | WPI-AIM/ambf | 5a26fff8fa5f150dfdad597562aac42da126cb01 | 189cb5ec8b7ae03b12c0e215d5f67c26c31f6ffe | refs/heads/ambf-2.0 | 2023-08-05T07:26:05.634330 | 2023-07-26T19:57:11 | 2023-07-26T19:57:11 | 168,765,517 | 137 | 71 | null | 2023-05-24T18:07:23 | 2019-02-01T21:58:25 | C++ | UTF-8 | Python | false | false | 4,593 | py | rl_test.py | #!/usr/bin/env python
# //==============================================================================
# /*
# Software License Agreement (BSD License)
# Copyright (c) 2019, AMBF
# (http://practicepoint.wpi.edu)
# All rights reserved.
# Redistribution and use in source and binary forms, with or w... |
9a017ae41b9a85c298937326cd26b94bfb472253 | c43b5835b4499f4e6d6fa4efda9546dc67ae0767 | /sfepy/postprocess/plot_facets.py | 20233e2ba940e05d29a10a814c27a16505f22665 | [
"BSD-3-Clause"
] | permissive | sfepy/sfepy | 4b74e7839b5e7b5e8d90e19ab6e90a068fe33df4 | 0c2d1690e764b601b2687be1e4261b82207ca366 | refs/heads/master | 2023-09-04T22:07:28.041123 | 2023-08-28T14:47:50 | 2023-08-28T14:47:50 | 802,525 | 651 | 188 | BSD-3-Clause | 2023-09-12T07:28:19 | 2010-07-28T09:14:41 | Python | UTF-8 | Python | false | false | 4,294 | py | plot_facets.py | """
Functions to visualize the geometry elements and numbering and orientation of
their facets (edges and faces).
The standard geometry elements can be plotted by running::
$ python sfepy/postprocess/plot_facets.py
"""
from __future__ import absolute_import
import numpy as nm
import matplotlib.pyplot as plt
from s... |
4418168eccde5a568c8187276231a32d31b6f18e | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/angle/third_party/glmark2/src/waflib/ansiterm.py | 1d8bc78f1605f6c661e558cd828cfc8aa2e2cf0a | [
"GPL-3.0-only",
"BSD-3-Clause",
"LicenseRef-scancode-x11-opengl",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 9,153 | py | ansiterm.py | #! /usr/bin/env python
# encoding: utf-8
# WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file
import os,re,sys
from waflib import Utils
wlock=Utils.threading.Lock()
try:
from ctypes import Structure,windll,c_short,c_ushort,c_ulong,c_int,byref,c_wchar,POINTER,c_long
except ImportError:
class... |
9dd2f689fc6b0813cbd9503dec82fd9f46f9135a | 8a62bbff9378187a898f336532bb49de18cb88e4 | /2020-librispeech-data-prepare/14_create_trans_raw.py | cb9f036cce716a35bccf739ac4b0209f61d1a221 | [] | no_license | rwth-i6/returnn-experiments | e2cdecb67febe646d702282ced8c290f1dd8edd0 | a46021329c030af361e0becb25ea92afca9610ce | refs/heads/master | 2023-06-08T08:56:11.891782 | 2023-05-30T12:46:45 | 2023-05-30T12:46:45 | 67,426,132 | 159 | 52 | null | 2023-05-30T12:46:46 | 2016-09-05T14:07:48 | Python | UTF-8 | Python | false | false | 5,222 | py | 14_create_trans_raw.py | #!/usr/bin/env python3
import better_exchook
import os
import subprocess
import tempfile
from zipfile import ZipFile, ZipInfo
import contextlib
my_dir = os.path.dirname(os.path.abspath(__file__))
Parts = [
"dev-clean", "dev-other",
"test-clean", "test-other",
"train-clean-100", "train-clean-360", "train-other... |
0fa2e1692fb51ed2ccc300af3bb1d9e3dfbcb8db | ddc7c80a52df8fb251c1c8c7fec8ed4a5301ac43 | /panda_sim_custom_action_server/src/panda_sim_custom_action_server/bezier.py | 77f6353df8a4492acb43e7f772dbcf1d15a60249 | [
"Apache-2.0"
] | permissive | justagist/panda_simulator | efd6059884b5a68bf6a400c19100ee5f594def28 | 4c469b01bf0763dc232fb77d029d25f258ebbf43 | refs/heads/melodic-devel | 2022-01-22T06:16:03.939551 | 2021-12-22T13:41:32 | 2021-12-22T13:41:32 | 220,040,644 | 174 | 67 | Apache-2.0 | 2021-08-02T08:01:29 | 2019-11-06T16:24:21 | C++ | UTF-8 | Python | false | false | 12,075 | py | bezier.py | # Copyright (c) 2011, Ian McMahon
# Modifications Copyright (c) 2014-2018, Rethink Robotics 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... |
f1e3c3e23508e5e2016c753533adb9245fb3f9b1 | a173777f4ba02c1e683d75810fa6932487ba42cc | /2020/0CTF-quals/flash/Replace.py | bae2d8b89753c201452cfb60b3c05e1fa3264150 | [] | no_license | perfectblue/ctf-writeups | ba9454ef06e1004253f004154fba6ae00d88ca09 | 3f2a8a2c2598d700f33cb3f39ceb515e2ba46312 | refs/heads/master | 2023-06-25T19:28:05.222110 | 2022-12-11T04:55:13 | 2022-12-11T04:55:13 | 133,306,580 | 606 | 75 | null | 2023-01-20T22:38:17 | 2018-05-14T04:53:27 | Python | UTF-8 | Python | false | false | 709 | py | Replace.py | import jarray
from ghidra.util.task.TaskMonitorAdapter import DUMMY_MONITOR
def replace(prog, haystack, result, start, end, align=4):
addrs = prog.getAddressFactory()
mem = prog.getMemory()
ram = addrs.getAddressSpace('ram').getBaseSpaceID()
buff = jarray.zeros(len(haystack), 'b')
cdm = prog.getCod... |
59333f28ccce0ab3d0f641838206e3ece7d6b911 | 091e40b7cc9ac83d30e860603b4c8cdc785b77ee | /tests/forecast/test_deep_model.py | 9118dda2153d583f716462b4c409447cf4ea3a40 | [
"BSD-3-Clause"
] | permissive | salesforce/Merlion | b7a75326cd05883285f25ff856c89dc80570e602 | 01c3fc3406ebf19798cedcddbe829ae5339e1424 | refs/heads/main | 2023-04-10T02:25:43.959522 | 2023-03-22T18:39:54 | 2023-03-22T18:39:54 | 390,401,992 | 2,905 | 268 | BSD-3-Clause | 2023-03-22T18:39:56 | 2021-07-28T15:30:56 | Python | UTF-8 | Python | false | false | 9,174 | py | test_deep_model.py | #
# Copyright (c) 2023 salesforce.com, inc.
# All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
# For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
#
import logging
import os
import sys
import shutil
import unittest
import gdown
import pandas as pd
... |
5fdbb4975390331c3a92b7491f85a1e83e478dba | a205f76141a6f21f7c200f2159bedcfab582dc00 | /utils/tracking_utils_bk.py | dfd33c0495cd46f405ea8d7eea6aea45e0d20559 | [] | no_license | iiau-tracker/SPLT | c054a356e5a9181238b116df6da9e6fedb5d4808 | a196e603798e9be969d9d985c087c11cad1cda43 | refs/heads/py36 | 2022-12-04T21:11:59.610453 | 2020-04-27T13:52:34 | 2020-04-27T13:52:34 | 198,601,914 | 138 | 31 | null | 2022-11-22T03:56:30 | 2019-07-24T09:23:34 | Python | UTF-8 | Python | false | false | 26,372 | py | tracking_utils_bk.py | # coding=utf-8
import cv2
import numpy as np
from PIL import Image
import tensorflow as tf
from google.protobuf import text_format
from object_detection.core import box_list
from object_detection.core import box_list_ops
from object_detection.protos import pipeline_pb2
from utils.region_to_bbox import region_to_bbox
... |
d01724e157042d5ac17215d1827ca2d05c18e1cc | 05fe579c12f0013ce83a106083ddb66ace5e8f47 | /mindinsight/lineagemgr/summary/lineage_summary_analyzer.py | de95e051088adb353e480d5c5a7310ab4bbb5b59 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSD-3-Clause"
] | permissive | mindspore-ai/mindinsight | 59d3f47144ada9a12d2c82d9826ad5f5288aed78 | a774d893fb2f21dbc3edb5cd89f9e6eec274ebf1 | refs/heads/master | 2023-07-22T22:46:43.075617 | 2023-07-17T11:26:58 | 2023-07-17T11:26:58 | 250,692,948 | 224 | 24 | Apache-2.0 | 2020-12-29T12:22:51 | 2020-03-28T01:58:56 | Python | UTF-8 | Python | false | false | 7,632 | py | lineage_summary_analyzer.py | # Copyright 2020-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 agre... |
317306b3e96db4c2e1e3fab64c1b8a73ef16fe1f | c1b32c2e36f64c6d7c352242e9e1f6b16ea02da5 | /tests/core/test_activations.py | 49f66a774f8e7b2fce49afbb99963b39017bc8cc | [
"MIT"
] | permissive | sicara/tf-explain | 00246fde5305ad96611fdba23563c97fbc4cdc38 | 9d7d1e900ec3e3e4b5338fbc43dfb93539acecc2 | refs/heads/master | 2023-08-21T22:58:55.150396 | 2022-06-30T08:14:18 | 2022-06-30T08:14:18 | 196,956,879 | 1,033 | 122 | MIT | 2022-06-30T08:14:19 | 2019-07-15T08:26:24 | Python | UTF-8 | Python | false | false | 1,050 | py | test_activations.py | import numpy as np
from tf_explain.core.activations import ExtractActivations
def test_should_generate_subgraph(convolutional_model):
activations_model = ExtractActivations.generate_activations_graph(
convolutional_model, ["activation_1"]
)
assert activations_model.layers[-1].name == "activation... |
655fe6fafd7e6bb6735db09c481187da4f1a524e | 4f14b1901d909b0b917d35815e7b19233692f25b | /number-theoretic-transform-integer-dft/numbertheoretictransform-test.py | c5849f9c7e9525a07187cd13e1e625feb5a7fb1c | [] | no_license | nayuki/Nayuki-web-published-code | e61a761e5c188aeacd35e5c8ddd005460545c94e | 49414617b088ec4c4e339a6c1caa7ec0f40eb58f | refs/heads/master | 2023-08-24T10:54:42.862243 | 2023-03-14T05:29:56 | 2023-03-14T05:29:56 | 25,706,873 | 133 | 53 | null | 2017-02-20T08:39:16 | 2014-10-24T20:33:24 | Java | UTF-8 | Python | false | false | 9,567 | py | numbertheoretictransform-test.py | #
# Number-theoretic transform test (Python)
#
# Copyright (c) 2022 Project Nayuki
# All rights reserved. Contact Nayuki for licensing.
# https://www.nayuki.io/page/number-theoretic-transform-integer-dft
#
import random, unittest
from typing import List, Set, Tuple
import numbertheoretictransform as ntt
class Num... |
580e9479bdfd7b6412e8d3733893fabe46fab2b9 | 83e41659ff9a3d8b48c23ce1092117356154c54b | /tests/test_tlv.py | 8e9f300c1b461ee5d0c89b0465dc5d160f39d9c6 | [
"Apache-2.0"
] | permissive | ikalchev/HAP-python | 95a14068d93c663326788b7ccdc343ef787d6ab8 | 5f45a5e208ef33e37228e9fa9e5c08732d9816b2 | refs/heads/dev | 2023-08-13T00:29:41.795121 | 2023-07-31T19:11:39 | 2023-07-31T19:11:39 | 106,929,485 | 581 | 149 | NOASSERTION | 2023-09-03T09:55:04 | 2017-10-14T13:21:38 | Python | UTF-8 | Python | false | false | 545 | py | test_tlv.py | """Tests for pyhap.tlv."""
import pytest
from pyhap import tlv
def test_tlv_round_trip():
"""Test tlv can round trip TLV8 data."""
message = tlv.encode(
b"\x01",
b"A",
b"\x01",
b"B",
b"\x02",
b"C",
)
decoded = tlv.decode(message)
assert decoded ==... |
ada58bc71b5af02adeb542b8cd1bea9bae044d90 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /L1Trigger/GlobalTriggerAnalyzer/test/L1GtDataEmulAnalyzer_cfg.py | 2229a8359f25dd15c2ca8e47e961afdb25e50883 | [
"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 | 14,238 | py | L1GtDataEmulAnalyzer_cfg.py | #
# cfg file for:
#
# Run the L1 GT emulator on the unpacked GCT and GMT data.
# Compare the GT data records with the GT emulated records
import FWCore.ParameterSet.Config as cms
# process
process = cms.Process("RunL1GtDataEmulAnalyzer")
# number of events to be processed and source file
process.maxEvents = cm... |
f857c21c816ef4e14195d504a07f7a26a9f52a48 | 35cd401ef876bec39366e5724bae71581c0cb658 | /Python/klampt/control/system_id.py | 2a53848b0bdb1e34cb521d23e5536931fc5bb574 | [] | permissive | krishauser/Klampt | bd450b8c67189b31abe4eb056707d50da3aa651b | dbaf38ca290a36fba9a8f4f9b6a49fda689f6585 | refs/heads/master | 2023-08-29T21:54:40.758699 | 2023-07-21T12:34:38 | 2023-07-21T12:34:38 | 13,944,923 | 327 | 98 | BSD-3-Clause | 2023-08-26T04:20:26 | 2013-10-29T02:46:08 | C++ | UTF-8 | Python | false | false | 16,416 | py | system_id.py | import numpy as np
import math
def check_symmetry(A,tol=1e-7):
err = np.amax(np.abs(A - A.T))
if err >= tol:
print("Error in matrix symmetry? error %f"%(err,))
return False
return True
def sherman_woodbury_inplace(Ainv,v,w,c=1.0):
"""Computes (A+vcw^T)^-1 given A^-1, w, and w.
Does... |
b8dc5d9a1107916a5a638fdf9746aa6523a3628f | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /tools/mo/openvino/tools/mo/front/mxnet/arange_replacer.py | badcc43bcc3d0c31b914d3aa7db0310fa0328152 | [
"Apache-2.0"
] | permissive | openvinotoolkit/openvino | 38ea745a247887a4e14580dbc9fc68005e2149f9 | e4bed7a31c9f00d8afbfcabee3f64f55496ae56a | refs/heads/master | 2023-08-18T03:47:44.572979 | 2023-08-17T21:24:59 | 2023-08-17T21:24:59 | 153,097,643 | 3,953 | 1,492 | Apache-2.0 | 2023-09-14T21:42:24 | 2018-10-15T10:54:40 | C++ | UTF-8 | Python | false | false | 1,848 | py | arange_replacer.py | # Copyright (C) 2018-2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from openvino.tools.mo.front.mxnet.MXRepeatReplacer import MXRepeatReplacer
from openvino.tools.mo.ops.mxrepeat import MXRepeat
from openvino.tools.mo.front.common.replacement import FrontReplacementOp
from openvino.tools.mo.graph.graph ... |
20d1c7b4a8198f2e295c8d53d29f8ed902cda0d8 | 29c0db83d834d8233f5ef87071f89245854e4c97 | /lookyloo/modules/riskiq.py | 885b1abe603c5e38619201a6e195263602f0adee | [
"BSD-3-Clause"
] | permissive | Lookyloo/lookyloo | c3441df609a65cfe7e288924655bda87efd7bede | ff15f3a60aec4fc810d595b1b93704765cc897c0 | refs/heads/main | 2023-08-24T13:05:17.007043 | 2023-08-24T12:55:32 | 2023-08-24T12:55:32 | 98,115,418 | 252 | 43 | NOASSERTION | 2023-09-13T10:36:30 | 2017-07-23T17:53:24 | Python | UTF-8 | Python | false | false | 4,956 | py | riskiq.py | #!/usr/bin/env python3
import json
import logging
from datetime import date, datetime, timedelta
from typing import Any, Dict, Optional, Union, TYPE_CHECKING
from urllib.parse import urlparse
from passivetotal import AccountClient, DnsRequest, WhoisRequest # type: ignore
from requests import Response
from ..defaul... |
243e7fb30137ca0d20ca7b77fe5321d4375dc23d | 27b86f422246a78704e0e84983b2630533a47db6 | /examples/addons/text_string_to_path.py | 7fee75cb8f58b006dbdd03d0fc965405f5ca5106 | [
"MIT"
] | permissive | mozman/ezdxf | 7512decd600896960660f0f580cab815bf0d7a51 | ba6ab0264dcb6833173042a37b1b5ae878d75113 | refs/heads/master | 2023-09-01T11:55:13.462105 | 2023-08-15T11:50:05 | 2023-08-15T12:00:04 | 79,697,117 | 750 | 194 | MIT | 2023-09-14T09:40:41 | 2017-01-22T05:55:55 | Python | UTF-8 | Python | false | false | 1,323 | py | text_string_to_path.py | # Copyright (c) 2021-2023, Manfred Moitzi
# License: MIT License
import pathlib
import ezdxf
from ezdxf import path, zoom
from ezdxf.fonts import fonts
from ezdxf.addons import text2path
from ezdxf.enums import TextEntityAlignment
CWD = pathlib.Path("~/Desktop/Outbox").expanduser()
if not CWD.exists():
CWD = pathl... |
93bb64cc939e266e6539139df41665c439bd6536 | f8c5b73c9706470c4dd60d523096e18bc448a960 | /certbot-dns-luadns/certbot_dns_luadns/_internal/tests/__init__.py | 2688bd482276eae71927b3fe9d29931771741bfc | [
"Apache-2.0",
"MIT"
] | permissive | certbot/certbot | 14ab43d76fcf0242d875d551f0d98334c43e7957 | b1978ff18837e40d16eedf2090330af53d8ceaa5 | refs/heads/master | 2023-09-04T00:37:03.739195 | 2023-08-26T23:19:38 | 2023-08-26T23:19:38 | 26,516,210 | 18,581 | 3,265 | NOASSERTION | 2023-09-12T15:18:59 | 2014-11-12T02:52:20 | Python | UTF-8 | Python | false | false | 31 | py | __init__.py | """certbot-dns-luadns tests"""
|
f31edebffcdea237c010211d0cd6177bfe016ef1 | af101b467134e10270bb72d02f41f07daa7f57d8 | /tests/test_models/test_editors/test_biggan/test_biggan_deep_discriminator.py | 4cb169eb2301c3c82308932cd57812fd8f576c80 | [
"Apache-2.0"
] | permissive | open-mmlab/mmagic | 4d864853417db300de4dfe7e83ce380fd1557a23 | a382f143c0fd20d227e1e5524831ba26a568190d | refs/heads/main | 2023-08-31T14:40:24.936423 | 2023-08-30T05:05:56 | 2023-08-30T05:05:56 | 203,999,962 | 1,370 | 192 | Apache-2.0 | 2023-09-14T11:39:18 | 2019-08-23T13:04:29 | Jupyter Notebook | UTF-8 | Python | false | false | 3,429 | py | test_biggan_deep_discriminator.py | # Copyright (c) OpenMMLab. All rights reserved.
from copy import deepcopy
import pytest
import torch
from mmagic.models.editors.biggan import BigGANDeepDiscriminator
from mmagic.registry import MODELS
class TestBigGANDeepDiscriminator(object):
@classmethod
def setup_class(cls):
num_classes = 1000
... |
9fc38788cd1366d800f6d7b5f550a112f5d09ec6 | 54485e624e28529ff066d6d1ecab620c2ec14f36 | /tests/test_jwt.py | f6e81275ad50d0d0cf03457a26f0309aad9b0e18 | [
"MIT"
] | permissive | ucfopen/canvasapi | c63be9655672a1cd1f51028c2619523224af80ec | 02d42cba3b0fd22e780ac0a5e904ea84fbc0b58d | refs/heads/develop | 2023-08-19T03:08:34.936379 | 2023-05-25T14:46:58 | 2023-05-25T14:46:58 | 73,851,042 | 503 | 183 | MIT | 2023-06-15T06:25:10 | 2016-11-15T20:09:41 | Python | UTF-8 | Python | false | false | 546 | py | test_jwt.py | import unittest
import requests_mock
from canvasapi import Canvas
from tests import settings
from tests.util import register_uris
@requests_mock.Mocker()
class TestJWT(unittest.TestCase):
def setUp(self):
self.canvas = Canvas(settings.BASE_URL, settings.API_KEY)
with requests_mock.Mocker() as m... |
8b517fd811834a809f912c47478d73a2a4c29c2b | 7378aaee27ef676db95dce7702c48f8643c63313 | /grow/extensions/hooks/pre_deploy_hook.py | b2325f12e53c740ec362c07837d0150107d8fd42 | [
"MIT"
] | permissive | grow/grow | 323fa25c7690643bf170cc4558fffdfbd406ac76 | 17471c436621ebfd978b51225fa4de05367a53e1 | refs/heads/main | 2023-06-15T09:51:08.288251 | 2022-07-21T16:19:33 | 2022-07-21T16:19:33 | 12,899,663 | 352 | 56 | MIT | 2023-02-08T02:35:36 | 2013-09-17T15:51:40 | Python | UTF-8 | Python | false | false | 519 | py | pre_deploy_hook.py | """Base class for the pre deploy hook."""
from grow.extensions.hooks import base_hook
class PreDeployHook(base_hook.BaseHook):
"""Hook for pre deploy."""
KEY = 'pre_deploy'
NAME = 'Pre Deploy'
# pylint: disable=arguments-differ,unused-argument
def trigger(self, previous_result, rendered_doc, co... |
c5a49325f98a03cd1246168e638536861897662d | 187414dcb264fb49d82507a099fd5fdca6e55e38 | /python/pyspark/pandas/tests/indexes/test_category.py | d2405f6adb301f66e945992ddc7df54fafc636bf | [
"BSD-3-Clause",
"CC0-1.0",
"CDDL-1.1",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"EPL-2.0",
"CDDL-1.0",
"MIT",
"LGPL-2.0-or-later",
"Python-2.0",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-free-unknown",... | permissive | apache/spark | 8aeba2d80465a262acc95781ede105a5b5886f6d | 60d8fc49bec5dae1b8cf39a0670cb640b430f520 | refs/heads/master | 2023-09-04T04:33:36.058199 | 2023-09-04T03:48:52 | 2023-09-04T03:48:52 | 17,165,658 | 39,983 | 32,449 | Apache-2.0 | 2023-09-14T19:46:24 | 2014-02-25T08:00:08 | Scala | UTF-8 | Python | false | false | 18,257 | py | test_category.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... |
bed4c963679b3193b391c6b4efb1b6871554191e | 21439e67c9fe3d43ce31c2593fab4b905a3debb3 | /cookiecutter-module/hooks/post_gen_project.py | e028d662d1fa61ec8c916752102ead1bb7798e36 | [] | no_license | tryton/tryton | 625b7a7658a342611e00f331cf1f774d77facd5b | 804476f31802a1be096a4783e4f1accfd0c5c3f1 | refs/heads/main | 2023-08-28T07:52:32.917099 | 2023-08-16T16:24:32 | 2023-08-16T16:24:32 | 10,222,356 | 185 | 80 | null | 2016-06-03T01:51:02 | 2013-05-22T14:51:18 | Python | UTF-8 | Python | false | false | 161 | py | post_gen_project.py | import os
import shutil
try:
os.symlink('doc/index.rst', 'README.rst')
except (AttributeError, OSError):
shutil.copyfile('doc/index.rst', 'README.rst')
|
60e8f60e88d5b96ed66ef9f3ec4c9f267aef37e4 | 568a2667a1b6ec33a0dec9ac01844ef74e11ab2b | /tests/components/threshold_eroder/test_threshold_eroder.py | 2beedb76eb322a2822e22cd9ede73838889b7a36 | [
"MIT"
] | permissive | landlab/landlab | 0bcc9b7b1d8c4d7f79bad687e1526b80ebc83728 | 1cd72e5832ece1aa922cd1b239e2e94ed0f11f8b | refs/heads/master | 2023-08-31T07:24:21.545523 | 2023-08-29T18:51:06 | 2023-08-29T18:51:06 | 19,599,383 | 326 | 313 | MIT | 2023-09-14T19:12:23 | 2014-05-09T04:52:50 | Python | UTF-8 | Python | false | false | 4,174 | py | test_threshold_eroder.py | #! /usr/bin/env python
"""Unit tests for landlab.components.threshold_eroder.py"""
import numpy as np
import pytest
from numpy.testing import assert_array_almost_equal
from landlab import HexModelGrid, RasterModelGrid
from landlab.components import (
FlowAccumulator,
FlowDirectorSteepest,
PriorityFloodFlow... |
33b7274dd3933acd29495f6124c3fc94fea9580d | 5b9fe71c2efe0139205020b038f7d31b6a5ede87 | /lux/action/univariate.py | 1e6d357e07aae555fcd05fd92ba75ba52e19858c | [
"Apache-2.0"
] | permissive | lux-org/lux | 7a7c8534eec5d2b2114b1a95e64497cf9b52871a | 972e5ec24991483370dda67de6bb1e354bcf8ca6 | refs/heads/master | 2023-08-21T04:05:51.279103 | 2023-07-04T23:34:35 | 2023-07-04T23:34:35 | 232,480,726 | 4,811 | 377 | Apache-2.0 | 2023-07-12T17:45:37 | 2020-01-08T04:53:29 | Python | UTF-8 | Python | false | false | 4,302 | py | univariate.py | # Copyright 2019-2020 The Lux Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... |
9c16fdece1176d9e326daaa984734da45b828a24 | b9566949b9499e48e85504c96910797ea4b397f3 | /adversarialbox/attacks/base.py | bb2371f01d9678d47b5e01c170ccddcbe8ada822 | [
"Apache-2.0",
"MIT"
] | permissive | advboxes/AdvBox | 7b1f4c3199c81a20d435a9a631d850c00d17df24 | 9e47e2f150bd4b33681ba2d66fcfb5f512a3bafc | refs/heads/master | 2023-07-31T10:54:52.864390 | 2022-08-08T02:56:23 | 2022-08-08T02:56:23 | 143,987,419 | 965 | 180 | Apache-2.0 | 2023-02-15T19:57:27 | 2018-08-08T08:55:41 | Jupyter Notebook | UTF-8 | Python | false | false | 2,300 | py | base.py | """
The base model of the model.
"""
from builtins import object
import logging
from abc import ABCMeta
from abc import abstractmethod
import numpy as np
from future.utils import with_metaclass
class Attack(with_metaclass(ABCMeta, object)):
"""
Abstract base class for adversarial attacks. `Attack` represent ... |
dcb55c37d7e6188ff9034a88d9092e3deb228860 | a41e1498e3c080f47abd8e8e57157548df3ebbf1 | /pandas/tests/indexes/base_class/test_pickle.py | c670921decb78808fa54a35c45e3d2d15ab57a67 | [
"BSD-3-Clause"
] | permissive | pandas-dev/pandas | e7e639454a298bebc272622e66faa9829ea393bb | c7325d7e7e77ecb4a4e57b48bc25265277c75712 | refs/heads/main | 2023-09-01T12:42:07.927176 | 2023-09-01T11:14:10 | 2023-09-01T11:14:10 | 858,127 | 36,166 | 18,728 | BSD-3-Clause | 2023-09-14T21:18:41 | 2010-08-24T01:37:33 | Python | UTF-8 | Python | false | false | 309 | py | test_pickle.py | from pandas import Index
import pandas._testing as tm
def test_pickle_preserves_object_dtype():
# GH#43188, GH#43155 don't infer numeric dtype
index = Index([1, 2, 3], dtype=object)
result = tm.round_trip_pickle(index)
assert result.dtype == object
tm.assert_index_equal(index, result)
|
4390cdfe74e8fe5fe4cb96e8479aa0c6a1c48630 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayMerchantQipanCrowdQueryModel.py | 833d4e28be6b7201d8178bd4efcd0bfc92a6cafd | [
"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 | 1,559 | py | AlipayMerchantQipanCrowdQueryModel.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayMerchantQipanCrowdQueryModel(object):
def __init__(self):
self._crowd_code = None
self._external_crowd_code = None
@property
def crowd_code(self):
return se... |
9facdb2a66bc9b51d7d45efaba6197fef8db47d4 | 302ce5ab1045ee93845608c96580c63d54d730af | /src/spikeinterface/core/tests/test_basesorting.py | 0bdd9aecddb368eb00940397244b080fff3964c8 | [
"MIT"
] | permissive | SpikeInterface/spikeinterface | f900b62720860b2881d2e6b5fa4441e0e560f625 | ee2237b3f5ce2347b2ec9df90e97b0ee6c738dcf | refs/heads/main | 2023-09-02T11:27:54.687021 | 2023-09-01T13:48:29 | 2023-09-01T13:48:29 | 196,581,117 | 295 | 133 | MIT | 2023-09-14T19:12:16 | 2019-07-12T13:07:46 | Python | UTF-8 | Python | false | false | 6,768 | py | test_basesorting.py | """
test for BaseSorting are done with NpzSortingExtractor.
but check only for BaseRecording general methods.
"""
import shutil
from pathlib import Path
import numpy as np
import pytest
from numpy.testing import assert_raises
from spikeinterface.core import (
NpzSortingExtractor,
NumpyRecording,
NumpySort... |
681459bd852417f31107b9d2f98ba23dc1a834bc | 88ae8695987ada722184307301e221e1ba3cc2fa | /native_client/tests/glibc_socket_wrappers/nacl.scons | 7b6cf18f91a141ed0b35f92db234a7f3a8ec3632 | [
"BSD-3-Clause",
"Zlib",
"Classpath-exception-2.0",
"BSD-Source-Code",
"LZMA-exception",
"LicenseRef-scancode-unicode",
"LGPL-3.0-only",
"LGPL-2.0-or-later",
"LicenseRef-scancode-philippe-de-muyter",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-intel-osl-1993",
"HPND-sell-var... | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 866 | scons | nacl.scons | # -*- python -*-
# Copyright 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
Import('env')
# http://code.google.com/p/nativeclient/issues/detail?id=2755
if env.Bit('bitcode'):
Return()
# There is no sock64 in... |
e2e5c5e16c5cf863ad86a6bfbf12514dc7ee6719 | 507254bb9775659f7c44f2943edb489f555340e2 | /coherence/backends/dvbd_storage.py | f9e1228e4cfc65ff973a8aa33bc4ef91d9ee6d4d | [
"MIT"
] | permissive | coherence-project/Coherence | eb8cf5d131577bd0581257ed48ccaf212433eff8 | 88016204c7778bf0d3ad1ae331b4d8fd725dd2af | refs/heads/develop | 2021-01-15T15:31:39.768169 | 2018-06-29T07:16:09 | 2018-06-29T07:16:09 | 3,315,826 | 115 | 41 | MIT | 2018-06-29T07:23:47 | 2012-01-31T15:31:31 | Python | UTF-8 | Python | false | false | 28,365 | py | dvbd_storage.py | # Licensed under the MIT license
# http://opensource.org/licenses/mit-license.php
# Copyright 2008, Frank Scholz <coherence@beebits.net>
from datetime import datetime
import urllib
from twisted.internet import reactor, defer
from twisted.python import failure, util
from twisted.python.filepath import FilePath
from ... |
84f90289f109e1d037317bf72d8190021701622e | eb7afa613940f5a3f202352a94dd996edcb6bed5 | /boto3_type_annotations_with_docs/boto3_type_annotations/mturk/client.py | 3db4c726caafb3c562de804e3a03decbd9c7aa74 | [
"MIT"
] | permissive | alliefitter/boto3_type_annotations | e4da614e27a1d2ad3c9c653c50b8e30108180da5 | 2a88aa562b1aee6e8a6cc30402980884b3707fbb | refs/heads/master | 2020-04-05T22:05:12.689913 | 2019-11-28T03:32:13 | 2019-11-28T03:32:13 | 157,244,330 | 131 | 11 | MIT | 2023-04-21T17:17:03 | 2018-11-12T16:38:57 | Python | UTF-8 | Python | false | false | 233,975 | py | client.py | from typing import Optional
from botocore.client import BaseClient
from typing import Dict
from botocore.paginate import Paginator
from datetime import datetime
from botocore.waiter import Waiter
from typing import Union
from typing import List
class Client(BaseClient):
def accept_qualification_request(self, Qual... |
273872033b9d2dbc7a8f4287b9e6735b35ed5160 | 0f89cda6f3ae5092e0b44b9441fd93b5a2d4a703 | /code/default/x_tunnel/local/heroku_front/test.py | 4713616f531443e4877f30ff5d2409785577779b | [
"BSD-2-Clause"
] | permissive | XX-net/XX-Net | ef59074e7dd67d1334c59bb076519bb796db4f4e | 541f58da464296001109f9cfbb879256957b3819 | refs/heads/master | 2023-08-28T04:56:16.921687 | 2023-08-27T06:17:05 | 2023-08-27T06:17:32 | 29,290,473 | 40,250 | 11,454 | null | 2023-04-28T15:12:20 | 2015-01-15T09:35:51 | Python | UTF-8 | Python | false | false | 1,676 | py | test.py | #!/usr/bin/env python2
# coding:utf-8
import os
import sys
import time
import threading
current_path = os.path.dirname(os.path.abspath(__file__))
root_path = os.path.abspath( os.path.join(current_path, os.pardir, os.pardir, os.pardir))
python_path = root_path
sys.path.append(root_path)
noarch_lib = os.path.abspath(... |
7f2b93408858d8b1150e432b587991a1300b6b12 | 6212685234047cbca58be36b97e0414b5d9caa2b | /scanpy/experimental/pp/__init__.py | a5eaf9d9c28364d15a778739ee635ef150967f0d | [
"BSD-3-Clause"
] | permissive | scverse/scanpy | 139fb1e34bb21c67786020e12129fc9d44634671 | 0bf043c84b4bf59ad684b69178dddc2a5732c972 | refs/heads/master | 2023-08-30T06:59:01.154055 | 2023-08-29T07:26:11 | 2023-08-29T07:26:11 | 80,342,493 | 437 | 146 | BSD-3-Clause | 2023-09-14T08:48:01 | 2017-01-29T11:31:11 | Python | UTF-8 | Python | false | false | 275 | py | __init__.py | from scanpy.experimental.pp._normalization import (
normalize_pearson_residuals,
normalize_pearson_residuals_pca,
)
from scanpy.experimental.pp._highly_variable_genes import highly_variable_genes
from scanpy.experimental.pp._recipes import recipe_pearson_residuals
|
34a7425e15abc1204eabd2a00135aecb9a1f25c2 | 846c87361e5d6e04ccca1083254bdc35b488407f | /winrm/tests/test_protocol.py | ee5a2aa70640eebf070d94dd9c961d41c8753ef9 | [
"MIT"
] | permissive | diyan/pywinrm | e6bd5a194cd20319e84f95f7150a75f89c8622d0 | f796b5aa15f0ce6c3e16aa3fd33a13efedff4937 | refs/heads/master | 2023-08-26T16:44:11.542214 | 2023-05-18T23:55:27 | 2023-05-18T23:55:27 | 4,926,896 | 995 | 278 | MIT | 2023-07-13T14:32:25 | 2012-07-06T15:25:54 | Python | UTF-8 | Python | false | false | 3,141 | py | test_protocol.py | import pytest
from winrm.protocol import Protocol
def test_open_shell_and_close_shell(protocol_fake):
shell_id = protocol_fake.open_shell()
assert shell_id == '11111111-1111-1111-1111-111111111113'
protocol_fake.close_shell(shell_id, close_session=True)
def test_run_command_with_arguments_and_cleanup_... |
c0deb5824e287f643d81dc97eec8edee45c4511b | 8868204daf8de5a2910cedefe29e6c56340b06e6 | /Projects/Raspberry-Pi/motion_detection_email_notifications.py | 3fa7c8ce5045b2a7975f190e7672cb634cf09ea7 | [] | no_license | RuiSantosdotme/Random-Nerd-Tutorials | 0f79fb56f9b9732bfb272e8f4abedb803a7b4757 | dd6133e1205a2cb5fd408cc198eba2aa14f9b163 | refs/heads/master | 2023-08-30T15:17:08.020453 | 2023-08-22T18:12:09 | 2023-08-22T18:12:09 | 23,052,165 | 379 | 261 | null | 2023-03-31T01:57:45 | 2014-08-17T22:43:29 | C++ | UTF-8 | Python | false | false | 2,344 | py | motion_detection_email_notifications.py | # Complete Project Details: https://RandomNerdTutorials.com/raspberry-pi-motion-email-python/
#import necessary libraries
from gpiozero import LED, Button, MotionSensor
import smtplib
from email.message import EmailMessage
from signal import pause
from time import sleep
#create objects to refer to the LED, the button... |
d3c3abc621bdd93782daf7d659d62aa9692e8dbd | 7bea5adf7d6284fbad0131d665e957d58adfe7c7 | /allauth/socialaccount/providers/line/views.py | 53d6da0902336c3f54638d8fa985d11d64d2eda9 | [
"MIT"
] | permissive | pennersr/django-allauth | 50c9e71c3666785368e92ed9e19ea0f6a5438cd2 | 6b8911a5ebbabda0d446f2743bd4d00d250ed500 | refs/heads/main | 2023-09-03T16:48:10.988418 | 2023-09-02T08:00:53 | 2023-09-02T08:00:53 | 976,994 | 7,719 | 3,481 | MIT | 2023-09-14T15:06:57 | 2010-10-10T20:10:52 | Python | UTF-8 | Python | false | false | 2,149 | py | views.py | import requests
from datetime import timedelta
from django.utils import timezone
from allauth.socialaccount import app_settings
from allauth.socialaccount.models import SocialToken
from allauth.socialaccount.providers.oauth2.views import (
OAuth2Adapter,
OAuth2CallbackView,
OAuth2LoginView,
)
from .provi... |
d426d51d1ed2c52a2657dcf6a99abbfcb9b8e334 | 842e05376fceb0df0c8a28e82a0627f13d48cd46 | /cashews/wrapper/time_condition.py | 759c1123cf7efd2dd4c5b34cd0aeb048df0eae9f | [
"MIT"
] | permissive | Krukov/cashews | 79becdb0434c245b28309e2e4330e6f72cc8967e | 45f3a6e1bd7976800e42dd793b553c23282b1442 | refs/heads/master | 2023-08-09T21:31:03.283814 | 2023-07-21T20:37:10 | 2023-07-21T20:37:10 | 227,915,294 | 251 | 21 | MIT | 2023-09-12T03:12:34 | 2019-12-13T20:17:25 | Python | UTF-8 | Python | false | false | 820 | py | time_condition.py | import time
from contextvars import ContextVar
from functools import wraps
from typing import Any, Dict, Tuple
from cashews._typing import AsyncCallable_T, CallableCacheCondition, Decorator
_spent = ContextVar("spent", default=0.0)
def create_time_condition(limit: float) -> Tuple[CallableCacheCondition, Decorator]:... |
a251ba61f5b8111c78da2e61e50a45d3731e1014 | c80df697c0b66cd58a039c928574926bd6161a36 | /tools/test.py | 3e676fcda5edec49b6ba45dd4a96ef096fe8c63c | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-unknown"
] | permissive | dart-lang/sdk | d4e50700dfc54b33c0a7a09fab1aa9623ebc84e5 | b25873f11c68772408f6a4aea5f5c961f31ac9f7 | refs/heads/master | 2023-08-31T11:13:09.400940 | 2023-08-31T09:10:57 | 2023-08-31T09:10:57 | 35,726,310 | 10,701 | 2,079 | BSD-3-Clause | 2023-09-14T10:34:15 | 2015-05-16T14:14:58 | Dart | UTF-8 | Python | false | false | 1,903 | py | test.py | #!/usr/bin/env python3
# Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
from contextlib import ExitStack
import os
import string
import subprocess
import s... |
d296423e84034199d211065878e5b17206988f2e | 3395a234e7c80d011607e79c49cd48bf516f256b | /dependencies/jedi/third_party/django-stubs/django-stubs/contrib/staticfiles/handlers.pyi | 11c6b9cc00311876dd4c195d1407cd2f45972112 | [
"MIT"
] | permissive | srusskih/SublimeJEDI | 67329b72e184bc9584843968dcc534a002c797a1 | 95c185d778425c04536d53517b0e3fe6dedf8e59 | refs/heads/master | 2023-08-24T11:30:37.801834 | 2022-08-30T09:04:17 | 2022-08-30T09:04:17 | 6,241,108 | 669 | 125 | MIT | 2022-08-30T09:04:18 | 2012-10-16T08:23:57 | Python | UTF-8 | Python | false | false | 417 | pyi | handlers.pyi | from typing import Any
from django.core.handlers.wsgi import WSGIHandler, WSGIRequest
class StaticFilesHandler(WSGIHandler):
handles_files: bool = ...
application: WSGIHandler = ...
base_url: Any = ...
def __init__(self, application: WSGIHandler) -> None: ...
def get_base_url(self) -> str: ...
... |
03de02f2be0464891123b4452e3d2343c85fd427 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /pytorch/source/caffe2/python/operator_test/rebatching_queue_test.py | af207bedc69a5d4442b686792cef127d550253a9 | [
"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 | 9,152 | py | rebatching_queue_test.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python import core, workspace
from caffe2.python.test_util import TestCase
import numpy as np
import numpy.testing as npt
from hypothesis import given
import... |
5b7ae4526c4bda158e8eeb3c97613ef87831c143 | 4a9b074e9cafebcffa4c8212bb966658c476a33b | /neo/SmartContract/tests/sc_debug_events.py | 290c4e3b8441de2a35b8d0cb05f66ad61da71696 | [
"LicenseRef-scancode-free-unknown",
"MIT"
] | permissive | CityOfZion/neo-python | 66a46c2509044d9b52ccce4643b4df74a1f14da2 | 99783bc8310982a5380081ec41a6ee07ba843f3f | refs/heads/master | 2023-07-19T00:04:36.415986 | 2021-11-15T12:15:55 | 2021-11-15T12:15:55 | 97,416,422 | 396 | 288 | MIT | 2021-06-01T21:42:39 | 2017-07-16T23:05:32 | Python | UTF-8 | Python | false | false | 209 | py | sc_debug_events.py | """
Sample smart contract for use in `test_sc_debug_events.py`
"""
from boa.interop.Neo.Runtime import Notify, Log
def Main(args):
Notify("Start main")
x = args[0]
Log(x)
Notify("End main")
|
5e1d58351f72895c41775736fb85bce7b80792ea | 117aaf186609e48230bff9f4f4e96546d3484963 | /questions/53496605/main.py | 04944ac98b99e948a9153d2b948a312c2e6255bb | [
"MIT"
] | permissive | eyllanesc/stackoverflow | 8d1c4b075e578496ea8deecbb78ef0e08bcc092e | db738fbe10e8573b324d1f86e9add314f02c884d | refs/heads/master | 2022-08-19T22:23:34.697232 | 2022-08-10T20:59:17 | 2022-08-10T20:59:17 | 76,124,222 | 355 | 433 | MIT | 2022-08-10T20:59:18 | 2016-12-10T16:29:34 | C++ | UTF-8 | Python | false | false | 721 | py | main.py | import sys
from PyQt5 import QtCore, QtGui, QtWidgets, uic
from doublespinbox import DoubleSpinBox
qtCreatorFile = "rvmod_gui.ui" # Enter file here.
Ui_MainWindow, QtBaseClass = uic.loadUiType(qtCreatorFile)
class MyApp(QtWidgets.QMainWindow, Ui_MainWindow):
def __init__(self, parent=None):
super(MyApp,... |
07b9a3afd96199c4b6b18b48206ff4a3979930f8 | 3ef70fe63acaa665e2b163f30f1abd0a592231c1 | /stackoverflow/venv/lib/python3.6/site-packages/pip-19.0.3-py3.6.egg/pip/_internal/commands/help.py | 49a81cbb074299f520e52643dc63d2fd33e8ad2a | [
"MIT"
] | permissive | wistbean/learn_python3_spider | 14914b63691ac032955ba1adc29ad64976d80e15 | 40861791ec4ed3bbd14b07875af25cc740f76920 | refs/heads/master | 2023-08-16T05:42:27.208302 | 2023-03-30T17:03:58 | 2023-03-30T17:03:58 | 179,152,420 | 14,403 | 3,556 | MIT | 2022-05-20T14:08:34 | 2019-04-02T20:19:54 | Python | UTF-8 | Python | false | false | 1,090 | py | help.py | from __future__ import absolute_import
from pip._internal.cli.base_command import Command
from pip._internal.cli.status_codes import SUCCESS
from pip._internal.exceptions import CommandError
class HelpCommand(Command):
"""Show help for commands"""
name = 'help'
usage = """
%prog <command>"""
su... |
fcfebfe741d7aa98df13596cc059584f429d960d | 2ad93a1cf25a580fe980482d2d17a657de3b2523 | /django-stubs/contrib/flatpages/views.pyi | bd63e39b4cb826be258e12f742e5203f5f0d44ed | [
"MIT"
] | permissive | typeddjango/django-stubs | f35dfcb001e54694a0a1e8c0afcc6e6a3d130c32 | 0117348c3c7713f25f96b46e53ebdeed7bdba544 | refs/heads/master | 2023-08-25T19:42:52.707151 | 2023-08-23T15:13:25 | 2023-08-23T15:13:25 | 142,779,680 | 1,133 | 376 | MIT | 2023-09-13T19:05:06 | 2018-07-29T17:08:50 | Python | UTF-8 | Python | false | false | 309 | pyi | views.pyi | from django.contrib.flatpages.models import FlatPage
from django.http.request import HttpRequest
from django.http.response import HttpResponse
DEFAULT_TEMPLATE: str
def flatpage(request: HttpRequest, url: str) -> HttpResponse: ...
def render_flatpage(request: HttpRequest, f: FlatPage) -> HttpResponse: ...
|
2e4e7ebbab6aa4a6b695229c06581da8540a3759 | fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be | /dts/airbyte/airbyte-integrations/connectors/source-faker/source_faker/utils.py | 1a10b9cbb497a6ccfc71ea28548eaaecc20eada1 | [
"MIT",
"Elastic-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | alldatacenter/alldata | 7bc7713c9f1d56ad6b8e59ea03206d1073b7e047 | 8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6 | refs/heads/master | 2023-08-05T07:32:25.442740 | 2023-08-03T13:17:24 | 2023-08-03T13:17:24 | 213,321,771 | 774 | 250 | Apache-2.0 | 2023-09-06T17:35:32 | 2019-10-07T07:36:18 | null | UTF-8 | Python | false | false | 937 | py | utils.py | #
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
import datetime
import json
from airbyte_cdk.models import AirbyteEstimateTraceMessage, AirbyteTraceMessage, EstimateType, TraceType
def read_json(filepath):
with open(filepath, "r") as f:
return json.loads(f.read())
def format_airbyte_time(... |
005945865ab078b51a0796efabef21c5c4af480e | 09a6d8dbad5b92f93791948b5bf9b75f5cb2e5ce | /pennylane/gradients/pulse_gradient.py | f73045bae4d26b1eae40661e68d9a81c961f839a | [
"Apache-2.0"
] | permissive | PennyLaneAI/pennylane | 458efd5d9457e90ada31ca2ef0fb6bb96a24e9a7 | 0843183ff15a013c2622af5e61fea431d18076d3 | refs/heads/master | 2023-09-03T17:00:43.105784 | 2023-09-01T16:15:07 | 2023-09-01T16:15:07 | 129,936,360 | 1,431 | 410 | Apache-2.0 | 2023-09-14T21:30:56 | 2018-04-17T16:45:42 | Python | UTF-8 | Python | false | false | 40,012 | py | pulse_gradient.py | # Copyright 2023 Xanadu Quantum Technologies 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 agre... |
02f92cd1433be22dfcc103ab74fc32554bc9bd81 | b2fef77e77f77b6cfd83da4ec2f89cbe73330844 | /tests/test_copy_itemsd.py | ff4799a094ae361ba56ca8a793908619418ec439 | [
"Apache-2.0"
] | permissive | Project-MONAI/MONAI | 8ef2593cc5fd1cd16e13464f927fe563fe3f5bac | e48c3e2c741fa3fc705c4425d17ac4a5afac6c47 | refs/heads/dev | 2023-09-02T00:21:04.532596 | 2023-09-01T06:46:45 | 2023-09-01T06:46:45 | 214,485,001 | 4,805 | 996 | Apache-2.0 | 2023-09-14T15:19:30 | 2019-10-11T16:41:38 | Python | UTF-8 | Python | false | false | 3,810 | py | test_copy_itemsd.py | # Copyright (c) MONAI Consortium
# 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, so... |
b309af7c218262b68155297d5926d3efc0555cfc | 4dc59af25e81526cf3724699b03e262d201015ec | /usdmanager/preferences_dialog.py | eb7cb7ebb8584bb62fb576b94265d1c05f37f097 | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-dco-1.1",
"Apache-2.0"
] | permissive | dreamworksanimation/usdmanager | 93935c73e7f0143aa2ec2c8027c6ff3d13603a08 | 6c276c4e4cb08994047e2432e86e332d2726c3b2 | refs/heads/master | 2022-10-11T06:56:01.746501 | 2022-08-02T20:53:35 | 2022-09-28T20:41:37 | 157,460,021 | 288 | 48 | Apache-2.0 | 2022-06-17T00:24:59 | 2018-11-13T23:16:14 | Python | UTF-8 | Python | false | false | 15,554 | py | preferences_dialog.py | #
# Copyright 2018 DreamWorks Animation L.L.C.
#
# 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 agre... |
104cb6b9cd50be410c503cc3054fb7df79722180 | 2909c14ac6232b4867a3aca166945634da5f9b7a | /tests/functional_tests/config_public.py | 90fc75966ce5ae769e6834376a985736fe476dfa | [
"MIT"
] | permissive | authomatic/authomatic | 4c66cd6941e4309c8226ee935261ce2bd3bebde8 | 290e62e572f038fbd01d686a4556629f72037c15 | refs/heads/master | 2023-09-03T04:03:55.755212 | 2023-06-09T10:55:35 | 2023-06-09T10:55:35 | 8,073,983 | 289 | 67 | MIT | 2023-06-09T10:55:36 | 2013-02-07T14:13:35 | Python | UTF-8 | Python | false | false | 6,154 | py | config_public.py | # -*- coding: utf-8 -*-
import datetime
import os
from pyvirtualdisplay import Display
from selenium import webdriver
import constants
# Choose and configure the browser of your choice
def get_browser():
# # These work on Mac
# return webdriver.Chrome()
# return webdriver.Firefox()
# On Linux you n... |
6e1dc2a23d8d460040013011702418d14708eccb | 61673ab9a42f7151de7337608c442fa6247f13bb | /tkinter/label/label-FormatLabel/main.py | 0194cc2c8617181b7dc3e1cf96669ab4a5aea248 | [
"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,518 | py | main.py | import tkinter as tk
# --- class ---
class FormatLabel(tk.Label):
def __init__(self, master=None, cnf={}, **kw):
# default values
self._format = '{}'
self._textvariable = None
# get `format` and remove from `kw` so later `Label.__init__` doesn't get it
if '... |
9e7707487e1a0ef73a17595201a703920cfbc772 | fc8ffd2f74d63024145e0628c700461765797c1c | /custom_components/edgeos/core/helpers/enums.py | ba787db69154b819ecc45489681abb99d6205223 | [] | no_license | elad-bar/ha-edgeos | a22edeb4429c2bd581e74cc535ce5ce3583ce84f | 62e66ac5d67d2704cd8d602db9b5f1f490ed8f1f | refs/heads/master | 2023-08-23T17:57:52.953761 | 2023-03-30T07:58:02 | 2023-03-30T07:58:02 | 169,467,285 | 129 | 31 | null | 2023-08-13T08:46:35 | 2019-02-06T19:53:18 | Python | UTF-8 | Python | false | false | 1,056 | py | enums.py | import logging
from homeassistant.backports.enum import StrEnum
class ConnectivityStatus(StrEnum):
NotConnected = "Not connected"
Connecting = "Establishing connection to API"
Connected = "Connected to the API"
TemporaryConnected = "Connected with temporary API key"
Failed = "Failed to access API... |
288c80ae70fdcbe0784be00bb87b6e7a471daaaf | 2481cde6506743565dff2b405a2396daf208ab3e | /src/utils/chart.py | 5c92aa94eda34e5a7e4b6319ba3d780ecde25ce9 | [
"Apache-2.0"
] | permissive | aropan/clist | 4819a3036d179595e4df8c646aff2ed593b9dad3 | 5c805b2af71acee97f993f19d8d4e229f7f5b411 | refs/heads/master | 2023-08-31T11:15:17.987776 | 2023-08-27T21:51:14 | 2023-08-27T21:52:16 | 187,111,853 | 276 | 35 | Apache-2.0 | 2023-09-06T18:42:53 | 2019-05-16T22:57:03 | Python | UTF-8 | Python | false | false | 6,130 | py | chart.py | import re
from datetime import datetime
from django.db.models import Case, F, FloatField, IntegerField, Q, Value, When
from django.db.models.fields.related import RelatedField
from django.db.models.functions import Cast
from django_pivot.histogram import get_column_values, histogram
from clist.templatetags.extras imp... |
da8e29130f513411b5ccb865515c1a8912fbfa86 | 31766b4e629cd57db879d976b1ddda30e2901368 | /kombu/asynchronous/timer.py | a3b7fb777675f77d59d53fda8349cc7aa502becd | [
"BSD-3-Clause"
] | permissive | celery/kombu | 980bbdf819eccc05952139f29386b69087725d80 | c18e9626e1dec56fa58cfe384403b25f34fe4473 | refs/heads/main | 2023-09-03T23:25:04.599675 | 2023-09-01T12:44:44 | 2023-09-03T20:16:00 | 735,498 | 2,232 | 928 | BSD-3-Clause | 2023-09-14T06:56:34 | 2010-06-23T10:10:24 | Python | UTF-8 | Python | false | false | 6,940 | py | timer.py | """Timer scheduling Python callbacks."""
from __future__ import annotations
import heapq
import sys
from collections import namedtuple
from datetime import datetime
from functools import total_ordering
from time import monotonic
from time import time as _time
from typing import TYPE_CHECKING
from weakref import proxy... |
652e4b3a7f7ceebac5b7705ebbb2248f59549aa9 | 57e77c8a46104b1675ebd8e9b0439f4434eabe8f | /algnuth/ideals.py | 5ab27aa21b1ddec66fdb98576abb46fec7ea5bca | [
"MIT"
] | permissive | louisabraham/algnuth | 7e0a9b98e5cd399fb79478427c4e29ca60635418 | 47d2cd88d59d76110c1807ec5e036e10103c3f62 | refs/heads/master | 2022-09-11T21:55:23.812494 | 2021-06-23T16:05:47 | 2021-06-23T16:05:47 | 120,233,707 | 295 | 9 | MIT | 2018-02-24T16:26:45 | 2018-02-04T23:37:54 | Python | UTF-8 | Python | false | false | 1,279 | py | ideals.py | """
This module provides functions to manipulate
extension fields given their minimal polynomial.
"""
from math import pi, factorial
from .polynom import Polynomial
from .jacobi import sieve
def minkowski_bound(P):
"""
Any ideal of the ring of integers
of the algebraic number field whose
minimal pol... |
df3b81ed9a209d27ab5525a8235dc3005c58838b | df87814cb32990ad8c27d0b13a821aabce012819 | /kolibri/core/exams/migrations/0001_initial.py | aa7de52bd58f2bce1c23d005ae754439c25a8016 | [
"MIT"
] | permissive | learningequality/kolibri | 26812d4ae771f3b389d3317a586bc032fc84866b | cc9da2a6acd139acac3cd71c4cb05c15d4465712 | refs/heads/release-v0.16.x | 2023-09-01T18:07:29.720772 | 2023-08-31T15:43:47 | 2023-08-31T15:43:47 | 49,976,939 | 689 | 682 | MIT | 2023-09-14T20:02:29 | 2016-01-19T19:22:07 | Python | UTF-8 | Python | false | false | 4,450 | py | 0001_initial.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-05-16 22:34
from __future__ import unicode_literals
import django.db.models.deletion
import morango.models
from django.db import migrations
from django.db import models
import kolibri.core.fields
class Migration(migrations.Migration):
initial = True
... |
d73d2017edd7b663177b21448293402f440c0232 | e6ef43f3b0cdc6f2c973c01f3c204c72b8c09da4 | /tests/roots/test-incremental_js/conf.py | 4ec9236cfd1e9225a479e6a0f73f0f03cde7c485 | [
"MIT"
] | permissive | mozilla/sphinx-js | 5c72ed088216d6d875a186779e3f93ab3fc23984 | ba54cc570e3455661fb297394d17a76aa1a0b286 | refs/heads/master | 2023-08-10T23:34:51.861866 | 2023-01-30T13:18:41 | 2023-02-27T14:58:32 | 80,552,521 | 133 | 52 | MIT | 2023-04-10T08:32:43 | 2017-01-31T19:11:59 | Python | UTF-8 | Python | false | false | 438 | py | conf.py | extensions = [
'sphinx_js'
]
# Minimal stuff needed for Sphinx to work:
source_suffix = '.rst'
master_doc = 'index'
author = u'Nick Alexander'
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
js_source_path = ['.', 'inner']
root_for_relative_js_paths = '.'
# Temp directories on macOS have internal directori... |
ad20f8883cf37727d2758719b7124a5df1bf7d68 | 549270020f6c8724e2ef1b12e38d11b025579f8d | /recipes/wyhash/all/conanfile.py | 34e8d0350c888cdbc6d636efc89e519d29198198 | [
"MIT"
] | permissive | conan-io/conan-center-index | 1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43 | 3b17e69bb4e5601a850b6e006e44775e690bac33 | refs/heads/master | 2023-08-31T11:34:45.403978 | 2023-08-31T11:13:23 | 2023-08-31T11:13:23 | 204,671,232 | 844 | 1,820 | MIT | 2023-09-14T21:22:42 | 2019-08-27T09:43:58 | Python | UTF-8 | Python | false | false | 1,272 | py | conanfile.py | from conan import ConanFile
from conan.tools.files import get, copy
from conan.tools.layout import basic_layout
import os
required_conan_version = ">=1.52.0"
class WyhashConan(ConanFile):
name = "wyhash"
description = "The FASTEST QUALITY hash function, random number generators (PRNG) and hash map."
lice... |
23f22b54d1874b1e560b7f7699a5922bd7df1de6 | fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be | /studio/micro-services/cube-studio/install/kubernetes/prometheus/alertmanater/make-alert-wechat-config.py | 7c42dc6fa07108407f53dcefe497a88fdbbe15f7 | [
"Apache-2.0",
"BSD-3-Clause",
"EPL-2.0",
"MIT",
"LGPL-2.1-only",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | alldatacenter/alldata | 7bc7713c9f1d56ad6b8e59ea03206d1073b7e047 | 8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6 | refs/heads/master | 2023-08-05T07:32:25.442740 | 2023-08-03T13:17:24 | 2023-08-03T13:17:24 | 213,321,771 | 774 | 250 | Apache-2.0 | 2023-09-06T17:35:32 | 2019-10-07T07:36:18 | null | UTF-8 | Python | false | false | 977 | py | make-alert-wechat-config.py | import base64
# alert 报警的secret
# 换行都会变换base64编码后的格式
config='''
global:
resolve_timeout: 5m
templates:
- '/etc/alertmanager/template/*.tmpl'
route:
group_by: ['alertname', 'cluster', 'service']
group_wait: 30s
group_interval: 5m
repeat_interval: 1h
receiver: 'null'
routes:
- match_re:
... |
c509e53f48ff50ee9f3f66d011144274590facf8 | fdbfbcf4d6a0ef6f3c1b600e7b8037eed0f03f9e | /tools/workspace/ipopt_internal_fromsource/test/lint_test.py | f76d9e6dbd9687d4d557d5e0360b71d1577767eb | [
"BSD-3-Clause"
] | permissive | RobotLocomotion/drake | 4529c397f8424145623dd70665531b5e246749a0 | 3905758e8e99b0f2332461b1cb630907245e0572 | refs/heads/master | 2023-08-30T21:45:12.782437 | 2023-08-30T15:59:07 | 2023-08-30T15:59:07 | 16,256,144 | 2,904 | 1,270 | NOASSERTION | 2023-09-14T20:51:30 | 2014-01-26T16:11:05 | C++ | UTF-8 | Python | false | false | 4,244 | py | lint_test.py | import json
import unittest
class IpoptLintTest(unittest.TestCase):
def _read(self, filename):
"""Returns the contents of the given filename."""
with open(filename, encoding="utf-8") as f:
return f.read()
def _parse_build(self, varname):
"""Parses a constant list of filen... |
82eded0580f1256a67375e337dc89f1d9052b60b | ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb | /examples/docs_snippets/docs_snippets/concepts/configuration/env_vars_config.py | d85bf7e74be09c1eddc23968b3bb833d083f8268 | [
"Apache-2.0"
] | permissive | dagster-io/dagster | 6adb5deee8bcf3ea1866a6a64f2ed81e1db5e73a | fe21995e0402878437a828c6a4244025eac8c43b | refs/heads/master | 2023-09-05T20:46:08.203794 | 2023-09-05T19:54:52 | 2023-09-05T19:54:52 | 131,619,646 | 8,565 | 1,154 | Apache-2.0 | 2023-09-14T21:57:37 | 2018-04-30T16:30:04 | Python | UTF-8 | Python | false | false | 711 | py | env_vars_config.py | # start_database_example
from dagster import StringSource, job, op, resource
@resource(config_schema={"username": StringSource, "password": StringSource})
def database_client(context):
username = context.resource_config["username"]
password = context.resource_config["password"]
...
@op(required_resource... |
07e62072363ca30653e71e494dfe4a70ab2fcdb7 | 0c118414382c8d875a39bea82a227f1f5e6e8f07 | /logo/logo.py | 56fe6714e9768876d3ebca83e9ecb9c0ce86a426 | [
"CC0-1.0",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LGPL-2.0-or-later",
"MIT",
"LGPL-2.1-only",
"GPL-2.0-only",
"GPL-1.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"GPL-3.0-only",
"AGPL-3.0-only",
"LGPL-3.0-only"
] | permissive | nschloe/awesome-scientific-computing | e1eccb4559ec1ce73383b2fd7d679170fd075132 | 8ea7bd7c8f3c0e3391971e73c57aeed7e34bb188 | refs/heads/main | 2023-08-19T14:13:47.621917 | 2023-04-12T15:29:54 | 2023-04-12T15:29:54 | 132,509,274 | 1,086 | 138 | CC0-1.0 | 2023-08-15T11:38:22 | 2018-05-07T19:49:42 | Python | UTF-8 | Python | false | false | 2,443 | py | logo.py | # -*- coding: utf-8 -*-
#
import os.path
import dmsh
import meshio
import optimesh
import numpy
# from dolfin import (
# Mesh,
# XDMFFile,
# mpi_comm_world,
# Constant,
# DirichletBC,
# inner,
# grad,
# dx,
# FunctionSpace,
# TestFunction,
# TrialFunction,
# Function,
#... |
d2696d6188475be0a5f1462fd315d73c68c30b04 | 091a6200be74bf6577c86f623665bcc24e16b02b | /LED_Snowboard/code.py | 2473806a920d7cfcfc978b6c4ebcd67f5e5e1d38 | [
"MIT"
] | permissive | adafruit/Adafruit_Learning_System_Guides | b5f7bce40a16da64e7a79d4b39de032f2cca41d4 | 5eaa7a15a437c533b89f359a25983e24bb6b5438 | refs/heads/main | 2023-09-05T18:31:41.621956 | 2023-09-05T15:36:09 | 2023-09-05T15:36:09 | 105,065,494 | 937 | 937 | MIT | 2023-09-12T18:48:53 | 2017-09-27T20:22:44 | C | UTF-8 | Python | false | false | 10,608 | py | code.py | # SPDX-FileCopyrightText: 2021 Erin St Blaine for Adafruit Industries
# SPDX-FileCopyrightText: 2021 Limor Fried for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
LED Snowboard with Feather M4 and PropMaker Wing
Adafruit invests time and resources providing this open source code.
Please support Adafruit and... |
eea13a23bdd37867d4da92a45d94f774c38503cd | 5f097436903a0a8fe83fc1a5f7b19f417b47c6b1 | /lib/utils/tless/tless_config.py | 8b78ea2f8fb478be777afefd235861a4f2b11ca4 | [
"Apache-2.0"
] | permissive | zju3dv/clean-pvnet | e2fba2e0ca470d7068b977360b7aacd45f1e3a3d | 6382aa9e3340f421c2434ad7089fc91ca725ebf1 | refs/heads/master | 2023-06-26T17:38:42.052848 | 2023-06-21T08:09:40 | 2023-06-21T08:09:40 | 227,833,303 | 375 | 107 | Apache-2.0 | 2023-04-19T02:04:27 | 2019-12-13T12:17:00 | C++ | UTF-8 | Python | false | false | 951 | py | tless_config.py | import numpy as np
from lib.config import cfg
mean = np.array([0.40789654, 0.44719302, 0.47026115],
dtype=np.float32).reshape(1, 1, 3)
std = np.array([0.28863828, 0.27408164, 0.27809835],
dtype=np.float32).reshape(1, 1, 3)
data_rng = np.random.RandomState(123)
eig_val = np.array([0.2... |
e5bf4c22e05f8f7a259906d667687afc020f403c | 6cb76008db278ecc757f96b4a5c0042d9c14195c | /pyshopee2/client.py | 689ca428dbd02a46deab4b4eacf3a205d218ccfd | [
"MIT"
] | permissive | JimCurryWang/python-shopee | afb0414164e2a3dbc8204e356d5a04bc30c542d7 | 00a52575bff19e736973eca910c77a86b9fbf367 | refs/heads/master | 2022-07-11T02:32:16.084787 | 2022-06-22T09:22:15 | 2022-06-22T09:22:15 | 119,407,345 | 202 | 79 | MIT | 2022-06-22T09:22:16 | 2018-01-29T16:16:55 | Python | UTF-8 | Python | false | false | 10,066 | py | client.py | import os
import time
import json
import hmac, hashlib
from requests import Request, Session, exceptions
from selenium import webdriver
from urllib3.util import parse_url
import requests
from .product import Product
from .mediaspace import MediaSpace
from .shop import Shop
from .merchant import Merchant
from .order im... |
0f216211e702d7e459323d30ed049f37c86b972e | 952dc66c61966f099756cdb6c2d13b40352f63cc | /zerver/migrations/0439_fix_deleteduser_email.py | b9792714642b696abe1957ff8ef6ccb1d00e3637 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | zulip/zulip | 5ae6aad35fd9f72996c0a2a9cdd674400966ebf6 | 965a25d91b6ee2db54038f5df855215fa25146b0 | refs/heads/main | 2023-08-28T23:43:00.971110 | 2023-08-28T16:47:09 | 2023-08-28T19:33:02 | 43,160,685 | 20,239 | 8,996 | Apache-2.0 | 2023-09-14T20:57:47 | 2015-09-25T16:37:25 | Python | UTF-8 | Python | false | false | 2,545 | py | 0439_fix_deleteduser_email.py | # Generated by Django 4.2 on 2023-04-17 18:25
from email.headerregistry import Address
from functools import lru_cache
from django.conf import settings
from django.core.exceptions import ValidationError
from django.core.validators import validate_email
from django.db import migrations
from django.db.backends.base.sch... |
142924ae0a533bf207fc7287c1f211facd2d1fba | d5a3aa96b30a5a6a355b4e004e494a6ef41a339c | /dataviz/euoscar.py | be20c807bf5bfbe453829c308b37e3070872d6f6 | [
"MIT"
] | permissive | Udzu/pudzu | 4c1c134503f62fd1cc08a56e257b864033b38561 | df5019802bc32064870f31cda8397ad14868cda0 | refs/heads/master | 2023-07-10T06:16:35.342990 | 2023-07-04T06:28:00 | 2023-07-04T06:28:00 | 97,936,607 | 120 | 28 | MIT | 2021-02-21T16:15:31 | 2017-07-21T10:34:16 | Roff | UTF-8 | Python | false | false | 1,891 | py | euoscar.py | from pudzu.charts import *
from pudzu.sandbox.bamboo import *
import seaborn as sns
df = pd.read_csv(f"datasets/euoscar.csv").set_index('country')
winners = tmap(RGBA, sns.color_palette("Blues", 6))
nominated = RGBA(204,85,85).brighten(0.25) #= tmap(RGBA, sns.color_palette("Reds", 6))[1]
nominated = RGBA(255,200,200)... |
3b1735a7cc475a6444f513299fb21cb0b13bec08 | 5bb8e08e2d2bff503b4425cffe2e60dc32499089 | /menpo/visualize/viewmatplotlib.py | 25f4841b5c7a3254f3067744f1be2d461b58cf07 | [
"BSD-3-Clause"
] | permissive | menpo/menpo | 2e731560bfd480bf3008317368af35612e55ddc2 | a61500656c4fc2eea82497684f13cc31a605550b | refs/heads/master | 2023-08-15T21:04:41.768318 | 2022-01-02T22:10:04 | 2022-01-02T22:10:04 | 9,731,325 | 332 | 89 | BSD-3-Clause | 2022-01-02T22:10:05 | 2013-04-28T14:52:38 | Python | UTF-8 | Python | false | false | 42,386 | py | viewmatplotlib.py | import numpy as np
from menpo.visualize.base import Renderer
# The colour map used for all lines and markers
GLOBAL_CMAP = "jet"
class MatplotlibRenderer(Renderer):
r"""
Abstract class for rendering visualizations using Matplotlib.
Parameters
----------
figure_id : `int` or ``None``
A f... |
7c2ac3c03f741e7be371cce54bb0fc4affe8b007 | 6e71db141e30aab7a8b3f32650646dc55ba6cc2a | /src/pkgcore/ebuild/profiles.py | 660fcea8a49e62923bc22299e8bd4d1804ccc9b3 | [
"BSD-3-Clause"
] | permissive | pkgcore/pkgcore | 69e7692863979a86c656c7af7937df1fbee89fd2 | ad4c3d51a2aff49ed898382c58baa852f47e17b9 | refs/heads/master | 2023-08-14T23:51:47.935851 | 2023-03-20T04:09:43 | 2023-08-05T19:24:15 | 13,432,875 | 107 | 35 | BSD-3-Clause | 2023-09-14T17:03:19 | 2013-10-09T04:16:59 | Python | UTF-8 | Python | false | false | 32,300 | py | profiles.py | __all__ = (
"ProfileError",
"ProfileNode",
"EmptyRootNode",
"OnDiskProfile",
"UserProfile",
)
import os
from collections import defaultdict, namedtuple
from functools import partial
from itertools import chain
from snakeoil import caching, klass
from snakeoil.bash import iter_read_bash, read_bash_... |
243436f618ce9bf1093ba078049a83e093ff7f37 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/security/azure-mgmt-security/azure/mgmt/security/models.py | 47d82a3301e26bc86f008b6e6eca87aedb86651c | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,060 | py | models.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.
# ---------------------------------------------------------------------... |
75f826b56a25bf4f12a2ecca206cbda227e0a149 | 49b25a6c420048e630884a3446eb0fe2eb7a0cfc | /tests/commands/pcustom.py | 1d435c8dfa0826aba6b175da57cee8e848b8357e | [
"MIT",
"Python-2.0"
] | permissive | hugsy/gef | dc7a90e33bd2bcc2fada6a81dc32534e1b07461b | 6a6e2a05ca8e08ac6845dce655a432fc4e029486 | refs/heads/main | 2023-09-02T08:18:02.038475 | 2023-08-26T17:00:13 | 2023-08-26T17:00:13 | 32,955,140 | 6,152 | 920 | MIT | 2023-09-12T14:02:46 | 2015-03-26T22:25:45 | Python | UTF-8 | Python | false | false | 4,626 | py | pcustom.py | """
pcustom command test module
"""
import tempfile
import pathlib
from tests.utils import (
gdb_run_cmd,
gdb_run_silent_cmd,
is_64b,
_target,
GEF_DEFAULT_TEMPDIR,
GefUnitTestGeneric,
)
struct = b"""from ctypes import *
class foo_t(Structure):
_fields_ = [("a", c_int32),("b", c_int32),]
... |
01bd7e6c97d6e33a3bab0713f8cd6d6427bc80d7 | 94ea884a9f15f49d5f60713a2255be4f30a859cb | /setup.py | 98524dcc3699b2c89c7e9a3c313999a9afd7e15f | [] | no_license | coleifer/simpledb | f4780176827746c642993224deb768bd3c5ba4b2 | 65bb82531b2088a2ae87c33e3525f3f984e25c72 | refs/heads/master | 2022-12-22T19:39:29.536641 | 2022-12-14T02:42:14 | 2022-12-14T02:42:14 | 117,564,565 | 144 | 27 | null | 2018-02-08T14:06:27 | 2018-01-15T15:48:28 | Python | UTF-8 | Python | false | false | 775 | py | setup.py | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as fh:
readme = fh.read()
setup(
name='simpledb',
version=__import__('simpledb').__version__,
description='simpledb',
long_description=readme,
author='Charles Leifer',
author_email='col... |
1a1071532fdd266c041e23214ca277ba6db9d6c8 | 0588960cdda458d1f3d631921af96eb017591c59 | /paperboy/resources/config.py | f71609666f0531ac8c06b96d69a4042a2ac3a5bc | [
"Apache-2.0"
] | permissive | timkpaine/paperboy | c9383ca9d1582637847a211c37f72822b2ba423b | b27bfdbb4ed27dea597ff1d6346eb831542ae81f | refs/heads/main | 2022-02-11T03:02:45.425983 | 2022-02-02T18:57:50 | 2022-02-02T18:57:50 | 152,772,708 | 245 | 29 | Apache-2.0 | 2022-02-09T18:41:39 | 2018-10-12T15:37:49 | Python | UTF-8 | Python | false | false | 853 | py | config.py | import falcon
import json
from .base import BaseResource
class ConfigResource(BaseResource):
'''Falcon resource to get form entries'''
def __init__(self, *args, **kwargs):
super(ConfigResource, self).__init__(*args, **kwargs)
def on_get(self, req, resp):
'''Get configuration page to crea... |
8b53fa21e0cd4c33363064f47bd3de6372060695 | 689475bb04dab2677d5ec30fbbbddc480876579f | /configs/kfiou/rotated_retinanet_hbb_kfiou_r50_fpn_1x_dota_le135.py | ee3d40620940cc67ab3ae13241e3c8bfbf725d0a | [
"Apache-2.0"
] | permissive | open-mmlab/mmrotate | 07e539936f59b0033d648dc805f0f7f6da8dc2eb | 9ea1aeeef2da8b2cd5161b72f4e33e1e8293dcb2 | refs/heads/main | 2023-08-31T21:23:33.304594 | 2023-07-02T07:24:56 | 2023-07-02T07:24:56 | 460,236,391 | 1,473 | 449 | Apache-2.0 | 2023-09-08T08:49:03 | 2022-02-17T01:19:05 | Python | UTF-8 | Python | false | false | 1,070 | py | rotated_retinanet_hbb_kfiou_r50_fpn_1x_dota_le135.py | _base_ = [
'../rotated_retinanet/rotated_retinanet_obb_r50_fpn_1x_dota_le135.py'
]
angle_version = 'le135'
model = dict(
bbox_head=dict(
_delete_=True,
type='KFIoURRetinaHead',
num_classes=15,
in_channels=256,
stacked_convs=4,
feat_channels=256,
assign_by... |
033ea91666992ed07b2661e22ccfe869b400d65b | a0736beb3269a71b2f5b13cafe8fb5e7f6f540f4 | /src/lib/concurrent.py | 44c5f37b17385cfca87609ef1e55288c101a67ca | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | GoogleCloudPlatform/covid-19-open-data | d9e467fadbfc71686e30e28f3ce1d438e8fd92ba | 1123ce02a0b4059d6acd4c4446f3f9b8335018f1 | refs/heads/main | 2023-08-02T23:57:12.785363 | 2022-10-23T22:26:29 | 2022-10-23T22:26:29 | 282,079,576 | 489 | 146 | Apache-2.0 | 2022-09-05T12:00:37 | 2020-07-23T23:43:51 | Python | UTF-8 | Python | false | false | 3,368 | py | concurrent.py | # Copyright 2020 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 writing, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.