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
74fc9af774f47ce134ed14553905d0770ee726c3
27c94d7e040902d3cdadd5862b15e67ec2ee4b6e
/exps/NATS-Bench/tss-collect.py
af06d4363c823eb00c97d8030a697e79f79932a1
[ "MIT" ]
permissive
D-X-Y/AutoDL-Projects
8a0779a7710d809af2b052787928d8d34c14d0d9
f46486e21b71ae6459a700be720d7648b5429569
refs/heads/main
2023-08-13T10:53:49.550889
2022-04-24T22:18:16
2022-04-24T22:18:16
168,538,768
989
197
MIT
2022-04-24T22:16:21
2019-01-31T14:30:50
Python
UTF-8
Python
false
false
18,114
py
tss-collect.py
############################################################################## # NATS-Bench: Benchmarking NAS Algorithms for Architecture Topology and Size # ############################################################################## # Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2020.08 # ####...
d99044df2d9c67439c322047fb18a8697d20d3e5
fa3f6d4e9169fb95f828013d179d03accdff381b
/grr/core/grr_response_core/lib/rdfvalues/__init__.py
97f0a8767f3e910dd4b242b2c4e782de9d30f367
[ "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
120
py
__init__.py
#!/usr/bin/env python """AFF4 RDFValue implementations. This module contains the various RDFValue implementations. """
5c7816c873138bb6fc8d689faef1f4c417f641a2
5db0fab37c2b8a618d85d3b60fab9f806c416474
/src/python/pants/backend/docker/goals/tailor_test.py
15a3700ddc62204739f51b3f201fa3f8f95fb414
[ "Apache-2.0" ]
permissive
pantsbuild/pants
4988d1ac5474ec95f94ce2218aeb759401e4b011
98cbda8545f0d58c586ed2daa76fefd729d5e0d5
refs/heads/main
2023-09-05T03:44:17.646899
2023-09-01T19:52:09
2023-09-01T19:52:09
7,209,075
2,708
593
Apache-2.0
2023-09-14T19:33:33
2012-12-17T17:39:04
Python
UTF-8
Python
false
false
1,861
py
tailor_test.py
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from pants.backend.docker.goals.tailor import PutativeDockerTargetsRequest from pants.backend.docker.goals.tailor import rules as docker_tailor_rules from pants.backend.docker.target_types...
3855aedeb25b84e3f8e838af4d8e3978efa6ee17
4daab5ba90185bae65169ebb8183c635385ab3f8
/examples/tutorials/j_NEB.py
0fdca4105a307e988ce2cb751547a264007076c6
[ "MIT" ]
permissive
duartegroup/autodE
bcf69440bd04411f97d39df0df0ae1f2bf6feb8c
4d6667592f083dfcf38de6b75c4222c0a0e7b60b
refs/heads/master
2023-09-01T15:08:16.028378
2023-07-25T08:09:05
2023-07-25T08:09:05
196,085,570
132
42
MIT
2023-09-12T15:20:54
2019-07-09T21:20:27
Python
UTF-8
Python
false
false
965
py
j_NEB.py
import multiprocessing import autode as ade orca = ade.methods.ORCA() # Set the keywords so autodE can extract gradients at PBE/def2-SV(P) orca.keywords.grad = ["PBE", "def2-SV(P)", "EnGrad"] if multiprocessing.cpu_count() < 10 or not orca.is_available: exit("This example requires an ORCA install and 10 processi...
ab65c7d7c553e8605c966bceb49c517129922b95
ce32e0e1b9568c710a3168abc3c638d6f9f6c31b
/vnpy/gateway/okexo/okexo_gateway.py
237f111aadb0705be4167d733d9651349191c9f5
[ "MIT" ]
permissive
msincenselee/vnpy
55ae76ca32cae47369a66bd2d6589c13d7a0bdd4
7f4fd3cd202712b083ed7dc2f346ba4bb1bda6d7
refs/heads/vnpy2
2022-05-19T10:06:55.504408
2022-03-19T15:26:01
2022-03-19T15:26:01
38,525,806
359
158
MIT
2020-09-09T00:09:12
2015-07-04T07:27:46
C++
UTF-8
Python
false
false
27,129
py
okexo_gateway.py
""" Author: KeKe """ import hashlib import hmac import sys import time import json import base64 import zlib from copy import copy from datetime import datetime, timedelta from threading import Lock from urllib.parse import urlencode from typing import Dict, List from requests import ConnectionError from vnpy.event....
f1acb7b7ecdd1d2e80befc09c2c6b587592a1ae3
aad43bc0dfa9b0d5371f8b21bd9aaa1a8bf29b9c
/src/sagemaker_sklearn_container/serving.py
e0eef7825a57e0766f20f8f3f0b2d6b831049caa
[ "Apache-2.0" ]
permissive
aws/sagemaker-scikit-learn-container
da4f0ffe3aca78cd3010b78a84f953b9ab8bdb9e
95efcdae49dc6cfc99f3d21012446e0229162274
refs/heads/master
2023-09-04T10:57:35.709876
2023-08-11T17:26:03
2023-08-11T17:26:03
155,597,776
147
124
Apache-2.0
2023-08-11T17:26:37
2018-10-31T17:28:35
Python
UTF-8
Python
false
false
6,116
py
serving.py
# Copyright 2019-2020 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the 'license' fil...
622e15ce3c6836f8e6b64ad903024189da6adb48
ed865aed525556fd7aa5ac5a024af720de8438e3
/api/client/src/test/test_login_nodes_state.py
22c41dcf7ea1dbaadb387b1e30a3d13a8246b1f7
[ "Python-2.0", "GPL-1.0-or-later", "MPL-2.0", "MIT", "LicenseRef-scancode-python-cwi", "BSD-3-Clause", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-free-unknown", "Apache-2.0", "MIT-0", "BSD-2-Clause" ]
permissive
aws/aws-parallelcluster
7bb33a6e175168f63a1e0acb1a9a7e9cbc405eff
a213978a09ea7fc80855bf55c539861ea95259f9
refs/heads/develop
2023-09-05T15:12:18.533270
2023-09-05T14:38:59
2023-09-05T14:38:59
19,718,034
520
226
Apache-2.0
2023-09-14T15:56:30
2014-05-12T22:42:19
Python
UTF-8
Python
false
false
937
py
test_login_nodes_state.py
""" ParallelCluster ParallelCluster API # noqa: E501 The version of the OpenAPI document: 3.7.0 Generated by: https://openapi-generator.tech """ import sys import unittest from assertpy import assert_that import pytest import pcluster_client import re from pcluster_client.model.login_nodes_state i...
03e27310ca9263fb4f283e8f1968a00657406422
4a7f8042d9d0591baf9a776320229b255d95562d
/shopify/resources/redirect.py
041ecb818bd66d978ade64cc893d48bd0b09e3d9
[ "MIT" ]
permissive
Shopify/shopify_python_api
56a175187ee22ede2bc1d26eb5b101989ae73410
5f295932bebbdde1835d35c4865093ff83564cdc
refs/heads/master
2023-09-04T14:44:28.214779
2023-04-12T16:10:00
2023-04-12T16:10:00
2,249,127
1,029
332
MIT
2023-09-14T20:51:42
2011-08-22T14:49:21
Python
UTF-8
Python
false
false
79
py
redirect.py
from ..base import ShopifyResource class Redirect(ShopifyResource): pass
47a27ed6c39d56d0ecf62dc39b344b6710c77e85
1ffa0900d91ff7dc76e933489d354252edc5dbb9
/hardware/companions/n2adr/bom/mkstandardbom.py
fd31538914f2efdd7adf3137ae5649ba61055f74
[]
no_license
softerhardware/Hermes-Lite2
6b05ef86f83e2c2b83ae622d3867f790532bbce0
0a6e07c37a23cd3a8721b6c3089e28721c378883
refs/heads/master
2023-08-05T17:16:25.996884
2023-07-27T04:21:47
2023-07-27T04:21:47
74,639,005
177
82
null
2022-02-04T06:26:33
2016-11-24T04:53:08
HTML
UTF-8
Python
false
false
296
py
mkstandardbom.py
import BOM ## Add ADNI to include assembly DNI parts that are required optionset = set(["ADNI"]) ##optionset = set([""]) bom = BOM.BOM("../n2adr.xml",optionset=optionset) pre = """\\section*{N2ADR Filter Board E5 BOM} Standard Build - \\today""" bom.LaTeXPrint(pre,['Mouser','Digi-Key'])
f763d4104354061fdfb2496f0e97e2d82b0beaa7
4578be5ff20640cd0940faa27901489daa471ffe
/S08 - Padrões de projeto/observer/observer_interface.py
32f24e590f4779ea00f3457ce70ec011a99b23b1
[]
no_license
CAECOMP/provas
cd31c48a912ad5e73f5bf8b826db40cf895f46b1
3f5eb4ec63fc91ad2c2e4ae6e5b3ac87c09ca916
refs/heads/master
2023-07-07T11:53:38.798374
2023-04-27T03:13:57
2023-04-27T03:13:57
55,001,094
125
83
null
2023-07-04T21:21:05
2016-03-29T18:38:41
HTML
UTF-8
Python
false
false
197
py
observer_interface.py
import abc class Observador(metaclass=abc.ABCMeta): @abc.abstractmethod def atualizar( self, preco_ibm: float, preco_apple: float, preco_google: float ) -> None: pass
7c7db6c36a0a1e8bc1fce06887067ba9973a8d5e
f3806d9fb54773908cd9704121a543b114470aca
/angr/knowledge_plugins/structured_code/manager.py
8304d0ce7527fb0119573de6f8ee35683bb3ced0
[ "BSD-2-Clause" ]
permissive
angr/angr
8ae95fceca51b0a001de56477d984dd01193ac1d
37e8ca1c3308ec601ad1d7c6bc8081ff38a7cffd
refs/heads/master
2023-08-17T03:15:21.007865
2023-08-15T18:44:57
2023-08-15T18:44:57
40,328,394
7,184
1,306
BSD-2-Clause
2023-09-14T20:14:23
2015-08-06T21:46:55
Python
UTF-8
Python
false
false
2,126
py
manager.py
# pylint:disable=import-outside-toplevel from typing import Dict, Any, Union, TYPE_CHECKING from .. import KnowledgeBasePlugin if TYPE_CHECKING: from angr.knowledge_base import KnowledgeBase from angr.analyses.decompiler.structured_codegen import BaseStructuredCodeGenerator from angr.analyses.decompiler.d...
d87c45f3777d41aefb900a03bed29bb605c4da5c
a38b98eb2c25559abb01c33c29d5ca80717aee6a
/gffutils/test/feature_test.py
c52fbd6188e45c9eaf6da8b642fc3cd2e7ecd762
[ "MIT" ]
permissive
daler/gffutils
be99bed54ae858c21932ee2f9da88faa3733f4c1
955fb41a32022e11683a873a7bdc78444d5628cc
refs/heads/master
2023-07-20T13:33:49.031838
2023-07-04T21:56:35
2023-07-04T21:56:35
2,562,619
227
70
MIT
2023-07-04T21:56:37
2011-10-12T13:48:14
Python
UTF-8
Python
false
false
5,745
py
feature_test.py
from gffutils import parser, feature, helpers, constants def test_feature_from_line(): # spaces and tabs should give identical results line1 = "chr2L FlyBase exon 7529 8116 . + . Name=CG11023:1;Parent=FBtr0300689,FBtr0300690" line2 = "chr2L FlyBase exon 7529 8116 . + . Name=CG11023:1;Parent=FBtr0300689,FB...
038fb272455b9077c0c0453d3746627501a27514
286e498dd1d3afde2cc66c37dd9c69868c230eb2
/tensorflow_tutorials/tensorflow scope/test2.py
65dcc733e7995c216ce8e069e40c41e54591f896
[]
no_license
zhaozhengcoder/Machine-Learning
604fa3f020d9879a67969221b7f1928a2df494cf
6c349118e0c97038e549a1f7da7c5ce2e7dacad3
refs/heads/master
2022-10-27T21:49:35.847885
2022-09-17T02:08:47
2022-09-17T02:08:47
83,763,440
342
267
null
null
null
null
UTF-8
Python
false
false
680
py
test2.py
import tensorflow as tf import numpy as np with tf.variable_scope('v_scope'): Weights1 = tf.get_variable('Weights', shape=[2,3]) bias1 = tf.Variable([0.52], name='bias') # resue 的作用是共享上面已经定义好的变量 # 下面来共享上面已经定义好的变量 # note: 在下面的 scope 中的get_variable()变量必须已经定义过了,才能设置 reuse=True,否则会报错 with tf.variable_scope('v_sc...
7f86e5f3577de45face9fa0d255518f88d5e2ba6
952dc66c61966f099756cdb6c2d13b40352f63cc
/corporate/migrations/0010_customerplan_exempt_from_from_license_number_check.py
261b6edb98cf90c3f14df181fd8c2831506e736b
[ "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
435
py
0010_customerplan_exempt_from_from_license_number_check.py
# Generated by Django 3.2.2 on 2021-06-08 08:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("corporate", "0009_customer_sponsorship_pending"), ] operations = [ migrations.AddField( model_name="customerplan", na...
79650c6105e514063fc3708a562bc9a217dcbb9a
7c5fb33929116bb77b438de3ead93b3978b5af71
/alf/utils/losses_test.py
dda339461aa553a4107044b332520f25eccba139
[ "Apache-2.0" ]
permissive
HorizonRobotics/alf
d6dac891322a81ccb7e2a9749139627b1eda28cb
b00ff2fa5e660de31020338ba340263183fbeaa4
refs/heads/pytorch
2023-08-21T18:51:41.370566
2023-08-16T00:07:22
2023-08-16T00:07:22
178,459,453
288
57
Apache-2.0
2023-09-14T20:40:20
2019-03-29T18:44:07
Python
UTF-8
Python
false
false
12,701
py
losses_test.py
# Copyright (c) 2022 Horizon Robotics and ALF Contributors. 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...
740af68bddf190c938345d70ed83263ccc611ba6
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/cognitivelanguage/azure-ai-language-questionanswering/azure/ai/language/questionanswering/_operations/_patch.py
6b17f0f22c9086c0af5d52f2fe7dfcc991c32248
[ "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
12,506
py
_patch.py
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ """Customize generated code here. Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ from typing import Any, List, overload,...
1a3ef938ae13b4fa4bf3548fb9a1a4217e4cd2c9
316b99c6046ff58c8499e0c214e9b81d9c3132b0
/beartype/_util/func/mod/utilfuncmodtest.py
df09067f781a6b0b080fdce48dccc43c85311298
[ "MIT", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unknown-license-reference" ]
permissive
beartype/beartype
fb6417b3dc2e08c065f0d907f43411c33d883a7d
0cfd53391eb4de2f8297a4632aa5895b8d82a5b7
refs/heads/main
2023-08-15T13:17:47.095732
2023-08-15T05:25:54
2023-08-15T05:25:54
252,646,465
1,992
51
MIT
2023-07-28T04:13:08
2020-04-03T06:06:22
Python
UTF-8
Python
false
false
5,262
py
utilfuncmodtest.py
#!/usr/bin/env python3 # --------------------( LICENSE )-------------------- # Copyright (c) 2014-2023 Beartype authors. # See "LICENSE" for further details. ''' Project-wide **module-specific callable testers** (i.e., utility functions dynamically validating and inspecting various propertie...
c6dbcbd6f49294f2f51b8f9541eda7c920a89259
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/BillSendExtInfo.py
c9bdd3bc50b6fce718f0a2f95348e94a9e6f89d9
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
2,035
py
BillSendExtInfo.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class BillSendExtInfo(object): def __init__(self): self._order_pay_type = None self._royalty_amount = None self._trans_in_pid = None @property def order_pay_type(self):...
daf49f5b711ad01d760e18ae3731ed69551d0b4d
6186a3787d1e74f1866844491da48b9643c8f1a9
/ghostwriter/shepherd/forms.py
c6f31882961b386475ca71441c8c3d942476da1b
[ "BSD-3-Clause" ]
permissive
GhostManager/Ghostwriter
b46b2421e5737ed0afbf49182dce9eeb5eb31936
b9eae4459ba192fbb2d4a5b66f8210d57fd7112a
refs/heads/master
2023-09-04T02:34:54.085997
2023-07-13T22:38:44
2023-07-13T22:38:44
197,269,443
1,011
197
BSD-3-Clause
2023-09-08T00:19:52
2019-07-16T21:19:43
Python
UTF-8
Python
false
false
15,940
py
forms.py
"""This contains all the forms used by the Shepherd application.""" # Standard Libraries from datetime import date # Django Imports from django import forms from django.core.exceptions import ValidationError from django.urls import reverse from django.utils.translation import gettext_lazy as _ # 3rd Party Libraries ...
76691004431ca9f8a1f34eb82af788c2e9d9186f
d58a58261efe1db9f2956be1e7081dbd4e7eeb0f
/models/pix2pix_model.py
3e3f9b87931b258e09b3fe858882d18f34fac325
[ "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
10,049
py
pix2pix_model.py
import ntpath import os import numpy as np import torch from torch import nn from tqdm import tqdm from data import create_eval_dataloader from metric import get_fid, get_cityscapes_mIoU from metric.cityscapes_mIoU import DRNSeg from metric.inception import InceptionV3 from models import networks from models.base_mod...
b4a6c7bc2c5c254ebe4d2e6d93f52f4bbc469123
93530fb468b1106b0d7dc61e4629b2aba0d2a27d
/DynamicKey/AgoraDynamicKey/python/src/RtcTokenBuilder2.py
d6cac1ecb3d1aa806034a098d6ce0aa791c34144
[ "MIT" ]
permissive
AgoraIO/Tools
4e02dbed064dfc7dcf9cf0c582f8216c83d20d93
5c800b136f132a92d5f70252aac12e9c32dbf5e7
refs/heads/master
2023-09-01T06:59:16.501266
2023-07-27T07:37:15
2023-07-27T07:37:15
167,963,357
380
934
null
2023-08-24T14:01:29
2019-01-28T13:03:58
C++
UTF-8
Python
false
false
14,048
py
RtcTokenBuilder2.py
# -*- coding: utf-8 -*- __copyright__ = "Copyright (c) 2014-2017 Agora.io, Inc." from .AccessToken2 import * Role_Publisher = 1 # for live broadcaster Role_Subscriber = 2 # default, for live audience class RtcTokenBuilder: @staticmethod def build_token_with_uid(app_id, app_certificate, channel_name, uid, ...
90087be9e8d4eb93c89aa175aa4bf939c60c1316
ed75170ffe743eea5f2fedd518c21b61de55f879
/test/tbats/TBATSHarmonicsChoosingStrategy_test.py
66d0a505cd1955e285b1621aeddaea05b3c83e03
[ "MIT" ]
permissive
intive-DataScience/tbats
d294fe6d3dcb4ec0b2fc0db5e6aaaae08ade14b5
184bd635e1aea6bd1dd0ac7fa2339257b9ca6bdb
refs/heads/master
2023-04-30T02:25:00.961248
2023-04-17T10:20:31
2023-04-17T10:20:31
162,722,338
162
21
MIT
2022-12-09T07:30:53
2018-12-21T14:19:21
Python
UTF-8
Python
false
false
11,449
py
TBATSHarmonicsChoosingStrategy_test.py
import pytest import numpy as np from tbats.tbats import HarmonicsChoosingStrategy, Context, Components, ModelParams class TestTBATSHarmonicsChoosingStrategy(object): class ModelMock: def __init__(self, y, params, aic_score): self.params = params self.y = y self.aic = ...
08e0a21d36c1c298561f96ddf7b726d0d8547ed2
27b86f422246a78704e0e84983b2630533a47db6
/profiling/stress.py
6c11c58ae16c86a41815d63d76d91fdf1fe9d9ec
[ "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
3,631
py
stress.py
# Copyright (c) 2020-2022, Manfred Moitzi # License: MIT License import pytest import sys import argparse import time import ezdxf from ezdxf import recover from itertools import chain DIRS = [ "AutodeskSamples", "AutodeskProducts", "CADKitSamples", "", ] files = list( chain(*[(ezdxf.options.t...
168348f94166a8a970e00fa3937afd6bf9edc9cc
9d0228f3f7ee9cee0794319d4affc161b0a7adc2
/qmpy/utils/rendering/renderable.py
3dc608f363c97408e66c2142aeaf7a0b585c6d7c
[ "MIT" ]
permissive
wolverton-research-group/qmpy
db8a450a5708aac63aa39e104745b5cb0a4fa930
dede5bdf4aa3ea1187a7bc273e86336c24aadb25
refs/heads/master
2023-01-24T17:18:48.335699
2022-08-23T01:12:29
2022-08-23T01:12:29
18,248,720
124
65
MIT
2023-01-11T02:04:51
2014-03-29T19:18:53
JavaScript
UTF-8
Python
false
false
485
py
renderable.py
#!/usr/bin/env python import sys if not "matplotlib" in sys.modules: import matplotlib try: matplotlib.use("WXAgg") except: matplotlib.use("Agg") class RenderingError(Exception): pass class Renderable(object): def draw_in_matplotlib(self, **kwargs): raise NotImplemente...
e60b3111099b1bb3e3c7e7c102899003579baea4
b8d80a23cb27af08a1c4d34b478c76228ae5fbb4
/insights/parsers/certificates_enddate.py
8127a0212af13b0415c847b45be428c56162cd4c
[ "Apache-2.0" ]
permissive
RedHatInsights/insights-core
bb243e2bf8a52446fefb95ebe05478d6e35efe2e
b0ea07fc3f4dd8801b505fe70e9b36e628152c4a
refs/heads/master
2023-09-04T21:15:40.456257
2023-09-04T10:46:56
2023-09-04T10:46:56
92,518,221
144
290
Apache-2.0
2023-09-14T02:40:13
2017-05-26T14:23:11
Python
UTF-8
Python
false
false
3,688
py
certificates_enddate.py
""" CertificatesEnddate - command ``/usr/bin/openssl x509 -noout -enddate -in path/to/cert/file`` ============================================================================================= This command gets the enddate of the certificate files. Sample Output:: /usr/bin/find: '/etc/origin/node': No such file o...
96f59265135066189a196dfe0986b83bf0952f6b
6c88b2cea38b2cead9e2402d46a8fc64949c53df
/pkg/codegen/testing/test/testdata/dash-named-schema/python/pulumi_foo_bar/__init__.py
5fcf9dc2e553b083d26115018cd0aed5d71cc889
[ "Apache-2.0" ]
permissive
pulumi/pulumi
a9b36c32f0cdd445c22f9ca64ce26c9ae5147575
46e2753d02d46a1c077930eeccdfe6738f46c0d2
refs/heads/master
2023-08-19T10:25:49.849189
2023-08-16T04:59:07
2023-08-16T04:59:07
72,477,752
17,553
1,082
Apache-2.0
2023-09-14T21:05:35
2016-10-31T21:02:47
Go
UTF-8
Python
false
false
954
py
__init__.py
# coding=utf-8 # *** WARNING: this file was generated by test. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from . import _utilities import typing # Export this package's modules as members: from .provider import * from ._inputs import * from . import outputs # Make subpackages...
4aa9d8867cdcaf38ab4b7e6dca43091d8fea3d1e
d7fd46dfd8aab520c4958fa065367e168b6bfee7
/tests/spaces/scalar_test.py
9b827f2c6fe99448d6018c8dd4ad0ff941e4a3e9
[ "MIT" ]
permissive
facebookresearch/CompilerGym
f04a79fbfdbaf8afd6920ec205db6f1b6003d073
9e0c0beb12da1e1ea82ae6ce920713ee28dda4c9
refs/heads/development
2023-08-31T09:17:48.967970
2023-03-10T19:29:56
2023-03-10T19:29:56
312,059,069
787
126
MIT
2023-03-10T19:29:58
2020-11-11T18:44:35
Python
UTF-8
Python
false
false
2,431
py
scalar_test.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """Unit tests for //compiler_gym/spaces:scalar.""" from copy import copy, deepcopy from compiler_gym.spaces import Scalar from tests.test_main...
2ce7a3e40a6d37aca872720447d640f8119beaf1
0760fb4901a75766921a205b55686d6d6f049b30
/python/ray/serve/_private/deployment_method_executor_node.py
b618ca2bcb2821dea89bf86e5f93759fa160e06c
[ "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,471
py
deployment_method_executor_node.py
from typing import Any, Dict, List from ray import ObjectRef from ray.dag import DAGNode from ray.dag.constants import DAGNODE_TYPE_KEY, PARENT_CLASS_NODE_KEY from ray.dag.format_utils import get_dag_node_str class DeploymentMethodExecutorNode(DAGNode): """The lightweight executor DAGNode of DeploymentMethodNode...
7cdf40cb1fcfc2d8609b22f210eb39187340272e
ec7591c3f478c43e76257aaa500d8f6a2e763d74
/stanza/tests/tokenization/test_tokenize_utils.py
cf8ad7380e19ac252c78bae9151d56510fc69ad7
[ "Apache-2.0" ]
permissive
stanfordnlp/stanza
5cc3dbe70a96dd565639b7dae1efde6b4fa76985
c530c9af647d521262b56b717bcc38b0cfc5f1b8
refs/heads/main
2023-09-01T12:01:38.980322
2023-03-14T16:10:05
2023-03-14T16:10:05
104,854,615
4,281
599
NOASSERTION
2023-09-10T00:31:36
2017-09-26T08:00:56
Python
UTF-8
Python
false
false
4,210
py
test_tokenize_utils.py
""" Very simple test of the sentence slicing by <PAD> tags TODO: could add a bunch more simple tests for the tokenization utils """ import pytest import stanza from stanza import Pipeline from stanza.tests import * from stanza.models.common import doc from stanza.models.tokenization import data from stanza.models.to...
94f6aab814bee48baf46b22d495984614908af44
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/7_graph/bfs求无权图的最短路径/Group Points-bfs波纹扩展.py
48a3b08ec438b41ab50f35b2f6abcec12659508d
[]
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
1,099
py
Group Points-bfs波纹扩展.py
# Assuming you can group any point a and b if the Euclidean distance between them is ≤ k, # return the total number of disjoint groups. # 按照距离给点分组 所有<=k的分到一组 求组数 from collections import deque # n ≤ 1,000 class Solution: def solve(self, points, k): def distance(x1, y1, x2, y2): return...
7b9e573a96dcd5b93698c268a4810dc3a1279ddb
23f8bccbd30267bf43ea11e4093d79865d8af917
/Chapter01/Ch01_Code/First_GUI.py
a0732b3c5e4cc311cbe7946a2f1322b9b2ef6524
[ "MIT" ]
permissive
PacktPublishing/Python-GUI-Programming-Cookbook-Second-Edition
1450d6903178865c9928d3bc57c99c623944b575
1ca9866be88b4191a5a951cbc4ead7aad903f226
refs/heads/master
2023-02-05T11:22:21.293438
2023-01-30T09:54:00
2023-01-30T09:54:00
91,304,266
343
197
null
null
null
null
UTF-8
Python
false
false
280
py
First_GUI.py
''' May 2017 @author: Burkhard A. Meier ''' #====================== # imports #====================== import tkinter as tk # Create instance win = tk.Tk() # Add a title win.title("Python GUI") #====================== # Start GUI #====================== win.mainloop()
99f31a646ad44e28ead5f9d7aaaefe4b946888d9
0869d7edac80e8aebe951682a2cc311a083eade3
/Python/tdw/FBOutput/QuitSignal.py
27fe7859ef589c5991e52d017a98d45b923cae86
[ "BSD-2-Clause" ]
permissive
threedworld-mit/tdw
7d5b4453832647733ff91ad7a7ce7ec2320454c1
9df96fba455b327bb360d8dd5886d8754046c690
refs/heads/master
2023-09-01T11:45:28.132298
2023-08-31T16:13:30
2023-08-31T16:13:30
245,492,977
427
75
BSD-2-Clause
2023-09-14T17:36:12
2020-03-06T18:42:09
Python
UTF-8
Python
false
false
932
py
QuitSignal.py
# automatically generated by the FlatBuffers compiler, do not modify # namespace: FBOutput import tdw.flatbuffers class QuitSignal(object): __slots__ = ['_tab'] @classmethod def GetRootAsQuitSignal(cls, buf, offset): n = tdw.flatbuffers.encode.Get(tdw.flatbuffers.packer.uoffset, buf, offset) ...
a708cfeb8209a5d2322ab259fec60c12a21e1041
360328d098a74581d0822fba489dd15e0d4e7ab3
/src/richie/plugins/section/forms.py
a38d9dcb22adcd039f4aff061276cf465f792985
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
openfun/richie
0cef545486267bfb40e75e5fb2ce2a74f85a53ff
f2d46fc46b271eb3b4d565039a29c15ba15f027c
refs/heads/master
2023-08-31T23:51:37.714179
2023-08-29T15:25:04
2023-08-29T15:48:39
111,388,461
238
96
MIT
2023-09-13T12:48:53
2017-11-20T09:23:40
Python
UTF-8
Python
false
false
746
py
forms.py
""" Section plugin forms """ from django import forms from djangocms_attributes_field.widgets import AttributesWidget from djangocms_text_ckeditor.widgets import TextEditorWidget from .models import Section CKEDITOR_CONFIGURATION_NAME = "CKEDITOR_INLINE_BOLD_CONFIGURATION" class SectionForm(forms.ModelForm): "...
a374c8569460eff57d8282f20d4a40f6b990da90
0933f9ecf49ed89db35cee051a64648886f13e40
/tests/test_move.py
8eb1af752e01a6f04df491f75e001f614dc22ecc
[ "MIT" ]
permissive
PyFilesystem/pyfilesystem2
63da155692594d0405dd237db7d66be243658249
8ed9dc495d8ba2f83fbb2a1145d34d92e13644be
refs/heads/master
2023-09-01T17:05:54.176292
2022-10-18T10:59:07
2022-10-18T10:59:07
70,920,962
1,956
254
MIT
2023-08-24T20:00:22
2016-10-14T15:05:27
Python
UTF-8
Python
false
false
8,991
py
test_move.py
from __future__ import unicode_literals import unittest try: from unittest import mock except ImportError: import mock from parameterized import parameterized, parameterized_class import fs.move from fs import open_fs from fs.errors import FSError, ResourceReadOnly from fs.path import join from fs.wrap impo...
f1b3cf162d773bb7bf271401d6529930ff5ff093
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayDataAiserviceJunengLoanQueryModel.py
2efd594c97c348bfc49473c123efc03e8c5f2163
[ "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
3,201
py
AlipayDataAiserviceJunengLoanQueryModel.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayDataAiserviceJunengLoanQueryModel(object): def __init__(self): self._extension_info = None self._hashed_cert_no = None self._institution_uuid = None self._re...
396a45708f2a7aede1000e7735cefec7e02aa63f
b54db4f80d50fac2e880fa32312d5e39fd71cdf0
/torchelie/recipes/cut.py
99e2514db26e30a1f7de05a0519bde1dab205140
[ "MIT" ]
permissive
Vermeille/Torchelie
91fde0145d67a3b50472db4f1429937fe277e45b
3b09ea9a4cfa195aa78dcac676aab1c43815bd53
refs/heads/master
2023-08-17T08:26:44.549037
2023-08-14T15:49:16
2023-08-14T15:49:16
196,767,053
124
14
MIT
2023-08-21T12:22:42
2019-07-13T21:14:50
Python
UTF-8
Python
false
false
15,645
py
cut.py
import torch import torchelie as tch import torchelie.utils as tu from torchelie.recipes.gan import GANRecipe import torchvision.transforms as TF import torchelie.loss.gan.standard as gan_loss from torchelie.loss.gan.penalty import zero_gp from torchelie.datasets.pix2pix import UnlabeledImages from torchelie.models imp...
948060d7849c6810f6a7327481577b000ecfe31c
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/RecoMuon/MuonSeedGenerator/python/MuonSeed_cfi.py
1bdc38e49c3ec10659c41bf11597ac4fc5d2885e
[ "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
1,782
py
MuonSeed_cfi.py
import FWCore.ParameterSet.Config as cms from RecoMuon.TrackingTools.MuonServiceProxy_cff import * from RecoMuon.MuonSeedGenerator.ptSeedParameterization_cfi import * from RecoMuon.MuonSeedGenerator.MuonSeedPtScale_cfi import * MuonSeed = cms.EDProducer("MuonSeedProducer", ptSeedParameterization, MuonServicePr...
4e9111121c9209f5a43a30be0cda0a236cc9be12
73f4f74f678fadee409560b78ffacb7aec38c545
/Tests/interop/net/loadorder/t2h.py
6f37ad3cbdc7d0754436e7280e648fe6c204bc39
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
IronLanguages/ironpython3
14ec38566d7c27675215042d72e38f6a979011ab
e8ed79bd7f0f33eb2af1a538dd7e98767c86c211
refs/heads/master
2023-09-03T03:36:51.590171
2023-09-02T19:02:51
2023-09-02T19:02:51
17,266,066
2,396
349
Apache-2.0
2023-09-09T01:46:11
2014-02-27T21:50:49
Python
UTF-8
Python
false
false
1,198
py
t2h.py
# Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information. from iptest.assert_util import * add_clr_assemblies("loadorder_2") # namespace First { # public class...
43c8a214b91f78e9c85ef1121357a6f44739d023
902eb0e21020148d164e5a49694980315213188b
/tests/test_sendgrid_backend.py
823d10991bb0b225414aff8a8325334236ec13c4
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
anymail/django-anymail
4ca8dfff50ea2a2987b389693e46748e7717367d
42dbfcf2c45f38a004a1f576dad38e7ad5d554cb
refs/heads/main
2023-09-01T06:52:35.147257
2023-08-25T19:19:05
2023-08-25T19:35:08
53,549,881
1,556
150
NOASSERTION
2023-08-25T19:35:09
2016-03-10T02:55:09
Python
UTF-8
Python
false
false
51,095
py
test_sendgrid_backend.py
from base64 import b64decode, b64encode from calendar import timegm from datetime import date, datetime from decimal import Decimal from email.mime.base import MIMEBase from email.mime.image import MIMEImage from unittest.mock import patch from django.core import mail from django.test import SimpleTestCase, override_s...
3192092bafe801f2567c97f878c7bfc730bfd0b7
1178107b71343db8970c6474a49b4df50f3b801e
/dataviva/api/stats/profile_helper.py
0d6cbaa32590a06be17e6b10883fef3661f5f800
[ "MIT" ]
permissive
DataViva/dataviva-site
fae24d3dffc29f980b7e989aec268a6be8c9ef68
4e6e861493138b3f296b601866fbb1e7a6c1746d
refs/heads/master
2023-09-01T17:39:26.928666
2023-08-10T12:56:40
2023-08-10T12:56:40
10,696,967
130
53
MIT
2023-09-14T12:08:09
2013-06-14T20:12:26
HTML
UTF-8
Python
false
false
19,924
py
profile_helper.py
from dataviva.api.stats.util import parse_year from sqlalchemy import desc from dataviva import __year_range__ from dataviva.api.attrs.models import University, Course_hedu, Course_sc, Stat, Bs from dataviva.api.attrs.models import Yb, Ybs, Bra, Hs, Cbo, Cnae, Wld from dataviva.api.secex.models import Ymbp, Ymbw, Ymp...
5645e4102cb457b7ab9fb3e9ffcdeb5d579a261d
39b021eabbb8e3be1734cf92fd641965a796b0eb
/examples/qm7/qm7_tensorgraph_GraphConv.py
0a1dfd42a60d0c26cf7a04571f149b72ae17bddb
[ "MIT" ]
permissive
deepchem/deepchem
066cbf42316b2f6bec0166727e0264a485d5266f
ee6e67ebcf7bf04259cf13aff6388e2b791fea3d
refs/heads/master
2023-09-02T01:32:17.860111
2023-08-31T18:49:00
2023-08-31T18:49:00
43,098,215
4,876
1,905
MIT
2023-09-14T19:10:44
2015-09-24T23:20:28
Python
UTF-8
Python
false
false
1,139
py
qm7_tensorgraph_GraphConv.py
""" Script that trains GraphConv models on qm7 dataset. """ from __future__ import print_function from __future__ import division from __future__ import unicode_literals import numpy as np np.random.seed(123) import tensorflow as tf tf.random.set_seed(123) import deepchem as dc # Load Tox21 dataset tasks, datasets,...
2f22c2621f6ffd74a3193536877f5bcff6d1fdeb
f88a5ad8af044f7956a9d03d57f6ed6610dc9246
/pyowm/utils/geo.py
255326f2362e80d0ebaa370df8c2b3a4790917c0
[ "MIT" ]
permissive
csparpa/pyowm
9664089d8dd792489882696f194d9659146d95a1
3be796cc60fd2cac1fe1fba005dc4c7f650debcf
refs/heads/master
2023-08-15T17:47:31.064245
2023-06-24T11:50:42
2023-06-24T11:50:42
12,535,703
855
240
MIT
2023-08-30T14:24:56
2013-09-02T08:43:51
Python
UTF-8
Python
false
false
13,168
py
geo.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import geojson import json import math EARTH_RADIUS_KM = 6378.1 # utilities def assert_is_lat(val): """ Checks it the given value is a feasible decimal latitude :param val: value to be checked :type val: int of float :returns: `None` :raises:...
aaa0965df6411422d01d9a3295b20642113c3ae5
bec0318d90a31fed9c35ec2a35a1b9f8f9988834
/sktime_dl/networks/_lstm.py
699e8ccfc69bc33b42f9ee13da263306e42a6c54
[ "BSD-3-Clause" ]
permissive
sktime/sktime-dl
8e64fe91726b2705db8c94c50302cdc28206cc89
b565b7499f58f43da7314f1bf26eccce94e88134
refs/heads/master
2023-08-12T07:53:32.899908
2022-05-06T18:55:01
2022-05-06T18:55:01
198,628,357
586
78
BSD-3-Clause
2023-03-25T01:18:15
2019-07-24T12:08:53
Python
UTF-8
Python
false
false
1,161
py
_lstm.py
__author__ = "Withington" from tensorflow import keras from sktime_dl.networks._network import BaseDeepNetwork class LSTMNetwork(BaseDeepNetwork): """ Long Short-Term Memory (LSTM) Adapted from the implementation of Brownlee, J. (2018) https://machinelearningmastery.com/how-to-develop-lstm-models-for-...
cfcf62879df161b02cafbd18a922fdd3b71fa347
e993a7972529f60210d9dd6d7c4097c62c37bcdf
/model/smpl.py
587f5419601a74df92c1e37263b28d4aa6a7c0a9
[ "MIT" ]
permissive
GuyTevet/motion-diffusion-model
64756013105a80ea2a3180a73ac86519b361e53b
8139dda55d90a58aa5a257ebf159b2ecfb78c632
refs/heads/main
2023-09-01T05:00:14.156745
2023-06-06T23:42:33
2023-06-06T23:42:33
543,082,997
2,302
265
MIT
2023-08-29T09:27:54
2022-09-29T11:24:35
Python
UTF-8
Python
false
false
3,858
py
smpl.py
# This code is based on https://github.com/Mathux/ACTOR.git import numpy as np import torch import contextlib from smplx import SMPLLayer as _SMPLLayer from smplx.lbs import vertices2joints # action2motion_joints = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 21, 24, 38] # change 0 and 8 action2motion_joints ...
b2b78dd278496162c6045beb121c59caf0275c36
c703b8ac3b5545857f6c95efa2d61eaf7a664021
/iPERCore/tools/utils/geometry/rotations.py
d4baadd74e390eed8a5577fa3b8601a363594475
[ "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
18,451
py
rotations.py
# Copyright (c) 2020-2021 impersonator.org authors (Wen Liu and Zhixin Piao). All rights reserved. import torch from torch.nn import functional as F import numpy as np def rotation_matrix_to_quaternion(rotation_matrix, eps=1e-6): """Convert 3x4 rotation matrix to 4d quaternion vector This algorithm is based...
bac67c1500413befa3d5fd688e98c2569c43c9c8
467be8fc9c975638fcb7a64d098e1526fd1c96f0
/dlint/linters/bad_subprocess_use.py
8db788355662d2d8e3046f84bbf29f7b2bb89050
[ "BSD-3-Clause" ]
permissive
dlint-py/dlint
ed8d2ca0446914fceded654a2b810b7f8ad0d9d3
307b301cd9e280dcd7a7f9d5edfda3d58e4855f5
refs/heads/master
2023-04-13T08:54:52.987469
2023-04-10T19:27:01
2023-04-10T19:27:15
232,599,661
154
16
BSD-3-Clause
2023-03-09T21:21:19
2020-01-08T15:53:36
Python
UTF-8
Python
false
false
1,834
py
bad_subprocess_use.py
#!/usr/bin/env python from .helpers import bad_kwarg_use from .. import tree class BadSubprocessUseLinter(bad_kwarg_use.BadKwargUseLinter): """This linter looks for use of the "shell=True" kwarg when using the "subprocess" module. "If the shell is invoked explicitly, via shell=True, it is the ...
7fe1d194e916c5b6f42a6cb0e6dfcc6a712846df
f487532281c1c6a36a5c62a29744d8323584891b
/sdk/python/pulumi_azure/appservice/get_function_app_host_keys.py
4621200bf0762a5971db1f49c1d6cc4faab1ba57
[ "BSD-3-Clause", "MPL-2.0", "Apache-2.0" ]
permissive
pulumi/pulumi-azure
a8f8f21c46c802aecf1397c737662ddcc438a2db
c16962e5c4f5810efec2806b8bb49d0da960d1ea
refs/heads/master
2023-08-25T00:17:05.290397
2023-08-24T06:11:55
2023-08-24T06:11:55
103,183,737
129
57
Apache-2.0
2023-09-13T05:44:10
2017-09-11T20:19:15
Java
UTF-8
Python
false
false
8,852
py
get_function_app_host_keys.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload fr...
8153f1c55a36630d38dbeb7ae40100973b31ffed
5f1881006aaf4f3c2515f375ad29c15fd6612de2
/poset_decoding/traversal_path_prediction/MatchZoo-py/matchzoo/metrics/precision.py
72cfd74acaa21b51c8cdcd979a394eceb3c1b59d
[ "MIT", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unknown-license-reference", "LGPL-2.1-or-later", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
microsoft/ContextualSP
4edb598d40f683f9a1143b92a9d24e1066d51ec4
4198ebce942f4afe7ddca6a96ab6f4464ade4518
refs/heads/master
2023-08-02T22:08:40.503853
2023-07-14T07:22:50
2023-07-14T07:22:50
255,534,819
332
70
MIT
2023-07-25T19:23:48
2020-04-14T07:01:54
Python
UTF-8
Python
false
false
1,813
py
precision.py
"""Precision for ranking.""" import numpy as np from matchzoo.engine.base_metric import ( BaseMetric, sort_and_couple, RankingMetric ) class Precision(RankingMetric): """Precision metric.""" ALIAS = 'precision' def __init__(self, k: int = 1, threshold: float = 0.): """ :class:`Preci...
5b7bace80ca5eaf6e3891913ddf352a920d22461
811f4cdb25e26f3b27640aaa2e2bca93e660d2d7
/src/anomalib/utils/callbacks/model_loader.py
5bae4841f55335ffa031e1bbf522e9c6b963f877
[ "CC-BY-SA-4.0", "CC-BY-SA-3.0", "CC-BY-NC-SA-4.0", "Python-2.0", "Apache-2.0" ]
permissive
openvinotoolkit/anomalib
4467dfc392398845e816387267cdf979ff76fe15
4abfa93dcfcb98771bc768b334c929ff9a02ce8b
refs/heads/main
2023-09-03T16:49:05.019269
2023-08-28T14:22:19
2023-08-28T14:22:19
423,775,360
2,325
454
Apache-2.0
2023-09-14T11:21:33
2021-11-02T09:11:38
Python
UTF-8
Python
false
false
1,009
py
model_loader.py
"""Callback that loads model weights from the state dict.""" # Copyright (C) 2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from __future__ import annotations import logging import torch from pytorch_lightning import Callback, Trainer from anomalib.models.components import AnomalyModule logger = log...
0ab597d378e2c7b5cf9c0bbf5a8c3339c448f87b
da1721d2783ea4d67ff4e73cee6eee71292f2ef7
/toontown/parties/DistributedPartyJukeboxActivity.py
bb1f2ca23ff81616e0db54856aebdfe6e107448d
[ "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
455
py
DistributedPartyJukeboxActivity.py
from toontown.parties.DistributedPartyJukeboxActivityBase import DistributedPartyJukeboxActivityBase from toontown.parties import PartyGlobals class DistributedPartyJukeboxActivity(DistributedPartyJukeboxActivityBase): notify = directNotify.newCategory('DistributedPartyJukeboxActivity') def __init__(self, cr)...
2f0cc1da1916bd293e1deb472f2db3489becfea5
b049a961f100444dde14599bab06a0a4224d869b
/sdk/python/pulumi_azure_native/videoanalyzer/v20211101preview/get_pipeline_topology.py
e300e13e2a1fe6d462f3799026d98ba9e7fe9d23
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
pulumi/pulumi-azure-native
b390c88beef8381f9a71ab2bed5571e0dd848e65
4c499abe17ec6696ce28477dde1157372896364e
refs/heads/master
2023-08-30T08:19:41.564780
2023-08-28T19:29:04
2023-08-28T19:29:04
172,386,632
107
29
Apache-2.0
2023-09-14T13:17:00
2019-02-24T20:30:21
Python
UTF-8
Python
false
false
9,986
py
get_pipeline_topology.py
# coding=utf-8 # *** WARNING: this file was generated by pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from . im...
7e94e4b9db27cdc5de5a57623db8cbf8bd8c2562
787022de03a2dd6998c1518673830395b389e3df
/tests/integrationTests/tests/tutorial_09_java_testing/__init__.py
90b05c3c3466bb6bcc51d76e04b79843c185352a
[ "BSD-3-Clause", "MIT" ]
permissive
Submitty/Submitty
e6b8731656291a025aa77f928eb067bc9a307540
b223d9e952bcdb8664721a55593bc75e0e3c8c4f
refs/heads/main
2023-08-31T23:56:11.291752
2023-08-31T19:12:18
2023-08-31T19:12:18
16,236,118
592
727
BSD-3-Clause
2023-09-13T05:36:08
2014-01-25T17:43:57
PHP
UTF-8
Python
false
false
6,926
py
__init__.py
# Necessary imports. Provides library functions to ease writing tests. from lib import prebuild, testcase, SUBMITTY_TUTORIAL_DIR import subprocess import os import glob import shutil import traceback ############################################################################ # COPY THE ASSIGNMENT FROM THE SAMPLE ASS...
ca4af8199f01db37d5f704d63efb943d104c08e3
2d9957f2c7a6883004b1a801f97eab3b033d9c08
/pulsar-functions/instance/src/main/python/contextimpl.py
bfe7b23927ba760603ad625fece7cee435eac397
[ "Apache-2.0", "LicenseRef-scancode-unknown", "LicenseRef-scancode-protobuf" ]
permissive
apache/pulsar
ca729cfb8d2c031312d30096e13431b2e29fb9bf
843b8307f44cd5e3a2d59ab93cc6b766f0c4ce0f
refs/heads/master
2023-08-31T23:53:41.323458
2023-08-31T18:37:00
2023-08-31T18:37:00
62,117,812
11,865
3,546
Apache-2.0
2023-09-14T12:13:23
2016-06-28T07:00:03
Java
UTF-8
Python
false
false
8,937
py
contextimpl.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...
3dd7dc983882689917e1fd892a4a025f762a6a06
157d84f8aafc76ba9ea0dbbf08ede744966b4250
/tests/integration/cattletest/core/test_account.py
a15671255bc83461e5a0303415f544faf55df722
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
rancher/cattle
81d165a0339a41950561fe534c7529ec74203c56
82d154a53f4089fecfb9f320caad826bb4f6055f
refs/heads/v1.6
2023-08-27T20:19:31.989806
2020-05-01T18:15:55
2020-05-01T20:11:28
18,023,059
487
233
Apache-2.0
2022-01-03T18:07:33
2014-03-23T00:19:52
Java
UTF-8
Python
false
false
6,177
py
test_account.py
from common_fixtures import * # NOQA @pytest.mark.parametrize('kind', ['user', 'admin']) def test_account_create(kind, admin_user_client, random_str): account = admin_user_client.create_account(kind=kind, name=random_str) assert account.state == "registering" ...
ddb4e4025032bd45a5fd1a2cb82832f1ca236eb1
150a7b11cb531f8bc2a045aefcf2ebe1d151efa3
/ocs_ci/pause/pause.py
5003c9b9b220dadfadd452d2bddf6351b88a85e7
[ "MIT" ]
permissive
red-hat-storage/ocs-ci
c7ac414e1b86552da0439223dfa9bca39977f31a
5e9e504957403148e413326f65c3769bf9d8eb39
refs/heads/master
2023-08-17T16:19:51.154403
2023-08-17T13:27:12
2023-08-17T13:27:12
179,558,938
146
210
MIT
2023-09-14T16:38:44
2019-04-04T19:00:02
Python
UTF-8
Python
false
false
3,301
py
pause.py
import argparse import logging import pickle import os from ocs_ci.framework import config from ocs_ci.ocs.cluster import CephCluster from ocs_ci.ocs.exceptions import CommandFailed from ocs_ci.ocs import platform_nodes from ocs_ci.ocs.node import get_node_objs from ocs_ci.utility.retry import retry from ocs_ci.ocs....
5707c43d77269fd2e65725428a5e1cc21d98e852
29156ee762cae629184cde55918a92c9cad75ef5
/seam_erasure/seam_gradient.py
656f1fd473365c6feccbc90a5c80219de2640751
[ "MIT" ]
permissive
zfergus/seam-erasure
a215660c5c627a1b861ad156b34125ee1f779931
5a99be0c02e61ee34f3b071bfe9b22c8d1a27e3f
refs/heads/main
2022-08-02T15:22:03.041012
2022-07-18T00:15:56
2022-07-18T00:15:56
93,452,890
112
19
MIT
2022-07-18T00:10:03
2017-06-05T22:32:07
Python
UTF-8
Python
false
false
7,010
py
seam_gradient.py
""" Seam gradient energy to get a better gradient energy across the seam. Written by Zachary Ferguson """ import itertools import logging import numpy import scipy.sparse from tqdm import tqdm from .accumulate_coo import AccumulateCOO from .seam_intervals import compute_edgePair_intervals from .util import (is_coun...
cb8390914ff36e52102b0c1cd19328c5aab06271
98f1a0bfa5b20a0b81e9e555d76e706c62d949c9
/python/dgl/distributed/server_state.py
0eac8d40c67008d4110cf1de0cb9e47771921bb6
[ "Apache-2.0" ]
permissive
dmlc/dgl
3a8fbca3a7f0e9adf6e69679ad62948df48dfc42
bbc8ff6261f2e0d2b5982e992b6fbe545e2a4aa1
refs/heads/master
2023-08-31T16:33:21.139163
2023-08-31T07:49:22
2023-08-31T07:49:22
130,375,797
12,631
3,482
Apache-2.0
2023-09-14T15:48:24
2018-04-20T14:49:09
Python
UTF-8
Python
false
false
2,243
py
server_state.py
"""Server data""" from .._ffi.function import _init_api # Remove C++ bindings for now, since not used class ServerState: """Data stored in one DGL server. In a distributed setting, DGL partitions all data associated with the graph (e.g., node and edge features, graph structure, etc.) to multiple partit...
4a62b25b746199bbd84dac21555930c75503489b
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/DPGAnalysis/SiStripTools/test/TIDTECInnerRingInvestigator_cfg.py
2d2dd0736e46518d9ab3252dad7d2cdf313c13e8
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
6,439
py
TIDTECInnerRingInvestigator_cfg.py
import FWCore.ParameterSet.Config as cms import FWCore.ParameterSet.VarParsing as VarParsing process = cms.Process("TIDTECInnerRingInvestigator") #prepare options options = VarParsing.VarParsing("analysis") options.register ('globalTag', "DONOTEXIST", VarParsing.VarParsing.multip...
a51d093a06182ddcf30b3624824370c787ca361b
afc3558e47ea4c82cb70190743472274eae7aeb1
/projects/ABCNet/config/abcnet/abcnet_resnet50_fpn_500e_icdar2015.py
424a35254ebdd3050e8e13b506b7ee5d97a565fb
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
open-mmlab/mmocr
86a77fb77ca80cede9c41a9a22080eeeaf364002
9551af6e5a2482e72a2af1e3b8597fd54b999d69
refs/heads/main
2023-08-03T14:06:11.075037
2023-07-26T02:32:14
2023-07-26T02:32:14
355,559,187
3,734
801
Apache-2.0
2023-09-12T03:17:12
2021-04-07T13:40:21
Python
UTF-8
Python
false
false
1,180
py
abcnet_resnet50_fpn_500e_icdar2015.py
_base_ = [ '_base_abcnet_resnet50_fpn.py', '../_base_/datasets/icdar2015.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_sgd_500e.py', ] # dataset settings icdar2015_textspotting_train = _base_.icdar2015_textspotting_train icdar2015_textspotting_train.pipeline = _base_.train_pipeline...
c3205406a826a77da44e00ba7e9fb1485b0235b4
e5827d8ba612f83dbb9529ba27c6a9d43b10e91f
/WechatOfConsole/Wechat.py
f6931bbede8cb5a148bf2753cd4a35780d69b029
[ "MIT" ]
permissive
TheThreeDog/TouchFish
56e16edbaf43bcf2f1d354d13c740bc9e7036a72
72ef18ccbc9fc5b32d1c31687702c7b461399864
refs/heads/master
2023-01-21T07:10:35.067864
2023-01-04T03:48:34
2023-01-04T03:48:34
184,549,367
134
18
MIT
2023-01-04T03:48:35
2019-05-02T08:50:03
Python
UTF-8
Python
false
false
929
py
Wechat.py
# Authro : ThreeDog # Data : 2019-04-29 # Thanks : 底层使用itchat :https://github.com/littlecodersh/itchat # Function : 在控制台使用微信,通过接口调用,接收并发送消息。 接收端需要一个线程来itchat.run()执行。 # Remark : 仅支持文字消息,尽可能保持微信的用户体验 # Requests : # - pip install itchat # 7、仅支持单行输入,一旦换行会有显示上的bug import platform if platfo...
2ffc37182ec54d0d1e1f240290291a9d9aaac69c
3e4c84031a9d7843ef0dab64c78fbeadd674b35e
/glslc/test/option_dash_cap_O.py
fa474f9a41a554863cd520f98f6bd8acefdf7143
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
google/shaderc
c58f733ade920094824c83c10f1911759536fb9a
e166325b24d79d64bfa47065328890ce116ea642
refs/heads/main
2023-09-04T03:19:00.235676
2023-08-10T19:25:29
2023-08-10T19:25:29
40,277,133
1,712
426
NOASSERTION
2023-09-07T15:48:59
2015-08-06T01:17:42
C++
UTF-8
Python
false
false
5,864
py
option_dash_cap_O.py
# Copyright 2016 The Shaderc 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...
4c496bd212c64f820b292285b2ca5b112828a341
8d1c7fba7cd15f8a1e33fd27d11eefd1c67d579f
/src/test/py/bazel/runfiles_sandboxed_test.py
9ae6457023864ccdb2bc572739c930a890e7e7a5
[ "Apache-2.0" ]
permissive
bazelbuild/bazel
5896162455f032efc899b8de60aa39b9d2cad4a6
171aae3f9c57b41089e25ec61fc84c35baa3079d
refs/heads/master
2023-08-22T22:52:48.714735
2023-08-22T18:01:53
2023-08-22T18:01:53
20,773,773
20,294
4,383
Apache-2.0
2023-09-14T18:38:44
2014-06-12T16:00:38
Java
UTF-8
Python
false
false
4,916
py
runfiles_sandboxed_test.py
# pylint: disable=g-bad-file-header # Copyright 2018 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
74149d886a7116d04856dad779ef3a692352e8fd
dcbef06d5a00f07756339b9e62c684dec2fee425
/nuitka/tools/testing/Common.py
5a46c9921c651efcc499c0a7f588d3f650b2744f
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
Nuitka/Nuitka
f9543d8d95bfa0b81d4e60af0dfad99fb72893a4
d87faf2f7e1d6ed9bfe4cf8c1d648f34307e33f2
refs/heads/develop
2023-08-28T14:00:32.861328
2023-08-27T09:16:45
2023-08-27T09:16:45
9,626,741
8,573
599
Apache-2.0
2023-09-13T02:49:41
2013-04-23T15:40:33
Python
UTF-8
Python
false
false
55,464
py
Common.py
# Copyright 2023, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
a255bc90161f1023f253aa1692ec7e34b1e985d4
04e5b6df2ee3bcfb7005d8ec91aab8e380333ac4
/Pyto/Samples/OpenCV/aruco_markers.py
6d0e3ce7246391ae2551449192329e6ada753330
[ "MIT" ]
permissive
ColdGrub1384/Pyto
64e2a593957fd640907f0e4698d430ea7754a73e
7557485a733dd7e17ba0366b92794931bdb39975
refs/heads/main
2023-08-01T03:48:35.694832
2022-07-20T14:38:45
2022-07-20T14:38:45
148,944,721
884
157
MIT
2023-02-26T21:34:04
2018-09-15T22:29:07
C
UTF-8
Python
false
false
862
py
aruco_markers.py
""" An example of using filters with OpenCV. """ import cv2 import sys import cv2.aruco as aruco device = 0 # Back camera try: device = int(sys.argv[1]) # 1 for front camera except IndexError: pass cap = cv2.VideoCapture(device) while cap.isOpened(): # Capture frame-by-frame ret, frame = cap.read(...
74eb8b6394cb2e433cebfb264661e01a4f46104e
9abd182d02355ddf0b79afd4a35f7127a4a66f7a
/gluoncv/model_zoo/__init__.py
3ca71daed39d7f3cab42609c0ad11fef9d32d020
[ "Apache-2.0" ]
permissive
dmlc/gluon-cv
e1303086419a5733661d0fcb9095c09d4f2382ad
567775619f3b97d47e7c360748912a4fd883ff52
refs/heads/master
2023-07-19T12:02:36.824294
2023-01-19T00:37:33
2023-01-19T00:37:33
122,896,249
6,064
1,458
Apache-2.0
2023-01-19T00:37:35
2018-02-26T01:33:21
Python
UTF-8
Python
false
false
1,117
py
__init__.py
"""GluonCV Model Zoo""" # pylint: disable=wildcard-import from .model_zoo import get_model, get_model_list from .model_store import pretrained_model_list from .rcnn.faster_rcnn import * from .rcnn.mask_rcnn import * from .ssd import * from .yolo import * from .cifarresnet import * from .cifarwideresnet import * from .f...
c90036b5da675c1a8dfd451ca4474e92fc56ba25
d8aabbc108b074817cb05eba4acff68d4f5c2d6c
/test/zmq/zmq_watcher_client.py
8f1082b7a9eca4ac49daefb9c3522e49a149587c
[ "MIT", "BSD-2-Clause", "LGPL-2.1-or-later", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unknown-license-reference" ]
permissive
microsoft/tensorwatch
e5e868795bd1536f9f2e3cb56b34a97a82e6704e
f59730dc7a8735232ef417685800652372c3b5dd
refs/heads/master
2023-06-29T21:52:27.900779
2023-06-12T18:21:59
2023-06-12T18:21:59
186,783,422
3,626
394
MIT
2023-08-30T06:59:14
2019-05-15T08:29:34
Jupyter Notebook
UTF-8
Python
false
false
295
py
zmq_watcher_client.py
from tensorwatch.watcher_client import WatcherClient import time from tensorwatch import utils utils.set_debug_verbosity(10) def main(): watcher = WatcherClient() stream = watcher.create_stream(expr='lambda vars:vars.x**2') stream.console_debug = True input('pause') main()
848e07486894b255c50f110fbe42ce771a4a1b6d
84724b34b3f1e84dc53cbca5f3660590dbc34a9f
/nova/tests/unit/policies/test_migrations.py
25cd75a125296376986bebb179f92f83df38635d
[ "Apache-2.0" ]
permissive
openstack/nova
2c24b64e3677595611715bae6dda14edd3f90a24
065c5906d2da3e2bb6eeb3a7a15d4cd8d98b35e9
refs/heads/master
2023-08-28T15:10:05.126314
2023-08-25T20:31:27
2023-08-25T20:31:27
790,031
2,287
2,320
Apache-2.0
2023-07-08T02:10:29
2010-07-22T02:04:27
Python
UTF-8
Python
false
false
3,163
py
test_migrations.py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
11937e326013a3eebdcae7f3201085771bf90b3e
b38247a5d84d8b52ce8363f8dd81629cfbe17f65
/reagent/test/net_builder/test_discrete_dqn_net_builder.py
a006daafec5e69e3340a256f9274ee15769bc48b
[ "BSD-3-Clause" ]
permissive
facebookresearch/ReAgent
7f2b82eaaf7a19e58cc50aacc307d7b001231440
c5f1a8371a677b4f8fb0882b600bf331eba5259d
refs/heads/main
2023-09-05T15:56:49.175072
2023-08-29T21:48:40
2023-08-29T21:48:40
98,565,575
1,480
290
BSD-3-Clause
2023-09-12T23:09:30
2017-07-27T17:53:21
Python
UTF-8
Python
false
false
6,230
py
test_discrete_dqn_net_builder.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import unittest from reagent.core import types as rlt from reagent.core.fb_checker import IS_FB_ENVIRONMENT from reagent.core.parameters import NormalizationData, NormalizationParameters from reagent.net_builder import disc...
d16db12c348b4a987849f2c0acdc285d6fd4d21a
1be404eb8dcae6f6f5acaaf54d2389765990b23e
/local/GIPManager.py
3b9ca8ace653487212f613a17900e6675d32acec
[]
no_license
SeaHOH/GotoX
7036fecfcd8955783a69182b1f9a32599e52ded8
bab19173fe5c73fff706376183e657dc4d88d366
refs/heads/master
2023-08-31T09:55:35.198791
2023-08-28T15:19:05
2023-08-28T15:19:05
71,294,077
794
262
null
2022-09-13T01:14:43
2016-10-18T21:45:02
Python
UTF-8
Python
false
false
41,243
py
GIPManager.py
# coding:utf-8 '''Auto check and update google IPs''' import os import logging import random import socket import collections from shutil import copyfile from copy import deepcopy from time import time, mtime, sleep, localtime, strftime from threading import _start_new_thread as start_new_thread from .common.internet_...
3c66e1daf7b24791c7d71d3b34090e257263794b
71acb7214efd91c0d327f6d8958e1798eadb4401
/locations/spiders/lidl_fi.py
1348d28fe83e11d8399e47f7c862b069ddd224cd
[ "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
933
py
lidl_fi.py
import re from locations.hours import DAYS_FI, OpeningHours, sanitise_day from locations.spiders.lidl_gb import LidlGBSpider from locations.storefinders.virtualearth import VirtualEarthSpider class LidlFISpider(VirtualEarthSpider): name = "lidl_fi" item_attributes = LidlGBSpider.item_attributes dataset_...
5886b28cb93da1f1051d090078bf6e36c7ec9c7d
dac12c9178b13d60f401c4febff5569af8aa2719
/cvat/apps/log_viewer/urls.py
0de56682a37e8f4e1d986556933da825c05d7e60
[ "LGPL-2.0-or-later", "MIT", "GPL-1.0-or-later" ]
permissive
opencv/cvat
39dc66ca20f972ba40b79c44d7ce43590dc0b0b5
899c9fd75146744def061efd7ab1b1c6c9f6942f
refs/heads/develop
2023-08-19T04:27:56.974498
2023-08-18T09:58:25
2023-08-18T09:58:25
139,156,354
6,558
1,887
MIT
2023-09-14T12:44:39
2018-06-29T14:02:45
TypeScript
UTF-8
Python
false
false
297
py
urls.py
# Copyright (C) 2018-2022 Intel Corporation # # SPDX-License-Identifier: MIT from rest_framework import routers from . import views router = routers.DefaultRouter(trailing_slash=False) router.register('analytics', views.LogViewerAccessViewSet, basename='analytics') urlpatterns = router.urls
1d1a53ac149b773e1d0d09be743bb719468aa4aa
20dda4f19ec777d1a69ae20b5e2a48b9b28bb4a4
/flexbe_core/test/test_core.py
beef515d43c3f4a07e6f67eab3af764bf3da3d3e
[]
permissive
team-vigir/flexbe_behavior_engine
fd94ac2b75bfef6ca318d700d94b76f16cfd6552
6028c8585d852be55f4512024dcca5caa53e57c2
refs/heads/main
2023-05-12T20:25:50.388882
2022-03-09T22:19:43
2022-03-09T22:19:43
38,892,260
131
72
BSD-3-Clause
2023-06-23T03:06:37
2015-07-10T17:06:37
Python
UTF-8
Python
false
false
20,879
py
test_core.py
#!/usr/bin/env python import unittest import rospy from flexbe_core import EventState, OperatableStateMachine, ConcurrencyContainer from flexbe_core.core import PreemptableState from flexbe_core.proxy import ProxySubscriberCached from flexbe_core.core.exceptions import StateMachineError from std_msgs.msg import Bool,...
cea4dcbd5ed877cc4b96a73150f0d9090a4d13f9
62eaa871e4e825a0a8c3a014b5d08fcf976aedef
/tsai/losses.py
b6368b4c6413eae7a289f13e19f1af084fd46155
[ "Apache-2.0" ]
permissive
timeseriesAI/tsai
f1006b37062a328edabb2fae3e8361dcda0fc68b
06ab2a9c6870b311fa0efe4cb3fc4df0009d1965
refs/heads/main
2023-07-19T22:11:06.425058
2023-07-13T07:06:16
2023-07-13T07:06:16
211,822,289
3,526
458
Apache-2.0
2023-06-15T13:57:12
2019-09-30T09:18:31
Jupyter Notebook
UTF-8
Python
false
false
6,287
py
losses.py
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/016_losses.ipynb. # %% auto 0 __all__ = ['HuberLoss', 'LogCoshLoss', 'MaskedLossWrapper', 'CenterLoss', 'CenterPlusLoss', 'FocalLoss', 'TweedieLoss'] # %% ../nbs/016_losses.ipynb 3 from .imports import * from fastai.losses import * # %% ../nbs/016_losses.ipynb 4 ## ...
89d9f46eff7effbdeb5e7a04a5b5b29b5fc3700b
28cf7b16dd29a5802d09b44b0186f6ae2c5ff0ed
/kuryr_kubernetes/tests/unit/test_utils.py
5ac48f215ceafb66ab0d93a46c206f8643c5ac02
[ "Apache-2.0" ]
permissive
openstack/kuryr-kubernetes
c292826abfb8aa0d3f8ef3b1007362162db16956
4993c7a4b2d7e4b053832bf39602f2573fad6266
refs/heads/master
2023-08-18T19:21:02.487908
2023-08-03T13:58:11
2023-08-03T13:58:11
58,626,548
169
78
Apache-2.0
2022-04-13T02:27:52
2016-05-12T09:14:29
Python
UTF-8
Python
false
false
21,734
py
test_utils.py
# Copyright 2018 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ca4f498a83ce19173956868571bd7dbd9acd5ee4
010279e2ba272d09e9d2c4e903722e5faba2cf7a
/contrib/tools/python/src/Lib/plat-mac/lib-scriptpackages/Netscape/PowerPlant.py
d37e66fc807f9f9f2a889b5bc499923f5669bc24
[ "Apache-2.0" ]
permissive
catboost/catboost
854c1a1f439a96f1ae6b48e16644be20aa04dba2
f5042e35b945aded77b23470ead62d7eacefde92
refs/heads/master
2023-09-01T12:14:14.174108
2023-09-01T10:01:01
2023-09-01T10:22:12
97,556,265
8,012
1,425
Apache-2.0
2023-09-11T03:32:32
2017-07-18T05:29:04
Python
UTF-8
Python
false
false
2,590
py
PowerPlant.py
"""Suite PowerPlant: Level 0, version 0 Generated from /Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2 AETE/AEUT resource version 1/0, language 0, script 0 """ import aetools import MacOS _code = 'ppnt' class PowerPlant_Events: _argmap_SwitchTellT...
a60c2f3c12453879560a2b019718359c2ebf7a63
1d0613fb401e92b6861ea3f615561df854603db6
/KiBuzzard/deps/fonttools/Tests/misc/filenames_test.py
bb7b63c2983932182eda5212dd13ec9d7e058524
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "OFL-1.1", "BSD-3-Clause", "Apache-2.0" ]
permissive
gregdavill/KiBuzzard
8c84a4339108c9942e1ec0e05e4110bba49fd265
88c4129b3fbed2cad718c01e5e2d29204e2f2071
refs/heads/main
2023-09-01T19:46:45.146077
2023-08-31T11:55:10
2023-08-31T11:55:10
328,686,533
358
36
MIT
2023-08-31T12:12:45
2021-01-11T14:16:42
Python
UTF-8
Python
false
false
4,267
py
filenames_test.py
import unittest from fontTools.misc.filenames import ( userNameToFileName, handleClash1, handleClash2) class UserNameToFilenameTest(unittest.TestCase): def test_names(self): self.assertEqual(userNameToFileName("a"),"a") self.assertEqual(userNameToFileName("A"), "A_") self.assertEqual(userNameToFileName("AE")...
584fbd63242da458753fe6e11c276a5bffdc9736
551990e68feda34d2a9173b05cc3a7259f4e8c9a
/direct/nn/cirim/config.py
3c3606c20b0a3d39ce741085bd12ee82df208ab4
[ "Apache-2.0" ]
permissive
NKI-AI/direct
a5c1ca0cb75d709b62e94ff76aba361e188d2d59
2a4c29342bc52a404aae097bc2654fb4323e1ac8
refs/heads/main
2023-08-03T11:37:52.941124
2023-06-28T14:11:56
2023-06-28T14:11:56
269,966,010
151
35
Apache-2.0
2023-06-28T14:11:58
2020-06-06T11:53:07
Python
UTF-8
Python
false
false
339
py
config.py
# coding=utf-8 # Copyright (c) DIRECT Contributors from dataclasses import dataclass from direct.config.defaults import ModelConfig @dataclass class CIRIMConfig(ModelConfig): time_steps: int = 8 # :math:`T` depth: int = 2 recurrent_hidden_channels: int = 64 num_cascades: int = 8 no_parameter_sh...
0bf374947e304dd2f6d404c2056a38d4cf46dca7
7aeeca15144ad05ea237db29d9525243d57bc14b
/config/_zaborona_v2/root/zaborona-vpn/scripts/collapse_blockedbyip_noid2971.py
82935905b407018f552be0f43e34fc1919987c78
[]
no_license
zhovner/zaborona_help
bd1826fb3e0b99943634f0c4fb0e295c497d6b47
6f1eaa92835b35684b52835499848e0f673d7b67
refs/heads/master
2023-08-09T07:30:48.003208
2023-08-03T14:52:18
2023-08-03T14:52:18
91,894,569
353
142
null
2023-09-07T17:40:20
2017-05-20T14:28:39
JavaScript
UTF-8
Python
false
false
727
py
collapse_blockedbyip_noid2971.py
#!/usr/bin/env python3 import ipaddress addrlist = open('result/iplist_blockedbyip_noid2971.txt', 'r').read() speciallist = open('result/iplist_special_range.txt', 'r').read() nlist = [ipaddress.IPv4Network(addr) for addr in addrlist.split()] slist = [ipaddress.IPv4Network(addr) for addr in speciallist.split()] print('...
187efa77aea39fb8492d706373900d3f16e28ad7
c1ab5fc6d37749cf7dd693a8f6d5475dfa54cd45
/examples/dynamic-client/accept_header.py
7bc27e3abc332788d428a93d19fdfe87348a7be0
[ "Apache-2.0" ]
permissive
kubernetes-client/python
2d10e5d7c1358aa4473c1fcd54d2c5a1085cf56e
68d5a1479e7d735ea454021bc54e453c9b31baf7
refs/heads/master
2023-09-01T11:23:54.508420
2023-08-31T21:04:31
2023-08-31T21:04:31
72,473,727
5,792
3,654
Apache-2.0
2023-09-13T18:34:16
2016-10-31T20:08:03
Python
UTF-8
Python
false
false
1,381
py
accept_header.py
# Copyright 2021 The Kubernetes 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 ...
96423ac8521ea8873ec7419c3729ef9c15211157
6d54a7b26d0eb82152a549a6a9dfde656687752c
/scripts/tools/memory/memdf/util/subprocess.py
8901d19b0cef568661903e08858e1dc816af0dc0
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
project-chip/connectedhomeip
81a123d675cf527773f70047d1ed1c43be5ffe6d
ea3970a7f11cd227ac55917edaa835a2a9bc4fc8
refs/heads/master
2023-09-01T11:43:37.546040
2023-09-01T08:01:32
2023-09-01T08:01:32
244,694,174
6,409
1,789
Apache-2.0
2023-09-14T20:56:31
2020-03-03T17:05:10
C++
UTF-8
Python
false
false
1,002
py
subprocess.py
# # Copyright (c) 2021 Project CHIP 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...
c86bd2bc7829765f09e59c197d0299f384efd64c
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/Alignment/MuonAlignment/test/test-read_cfg.py
f1afb82b96b2b66f3a366f9640606b6187ffee90
[ "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
1,287
py
test-read_cfg.py
import FWCore.ParameterSet.Config as cms process = cms.Process("TEST") # DT geometry process.load("Geometry.MuonCommonData.muonIdealGeometryXML_cfi") process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi") process.load("Geometry.DTGeometry.dtGeometry_cfi") # CSC geometry #include "Geometry/MuonCommo...
df97dc68b21abadc57421a1f2bbce4e587ed6634
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/RecoBTag/Configuration/python/RecoBTag_FrontierConditions_DevDB_cff.py
14ab2d0db043fb8e1da28747a051e85737f27b01
[ "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
194
py
RecoBTag_FrontierConditions_DevDB_cff.py
import FWCore.ParameterSet.Config as cms from RecoBTag.TrackProbability.trackProbabilityFrontierCond_cfi import * trackProbabilityFrontierCond.connect = 'frontier://FrontierDev/CMS_COND_BTAU'
4593e9660c524e611905683738db4b9e8393489b
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/common/Lib/Crypto/Random/Fortuna/FortunaGenerator.py
614bbd05d995ab093bea1f50deafdf3f247a1b96
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
2,559
py
FortunaGenerator.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/common/Lib/Crypto/Random/Fortuna/FortunaGenerator.py __revision__ = '$Id$' import sys if sys.version_info[0] == 2 and sys.version_info[1] == 1: from Crypto.Util.py21compat import * from Crypto.Util.py3compat import * import struct from...
f2df8d57c760b808525abcf2d98e919926157ed9
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/A_Primer_on_Scientific_Programming_with_Python/files/read_pairs3.py
e9eb13bd96b5cfc34e2ff3dccc94675796838871
[]
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
274
py
read_pairs3.py
infile = open('read_pairs3.dat', 'r') listtext = '[' for line in infile: # add line, without newline (line[:-1]), with a trailing comma: listtext += line[:-1] + ', ' infile.close() listtext = listtext + ']' pairs = eval(listtext) import pprint; pprint.pprint(pairs)
f0c0aa70551724566dd90d1a7e046167faf83ebf
e5f8d24525a211750900c3c8e7a631b344aa4443
/demo/futures/test_futures.py
ff1cb481d4b7e78963ced8680944a67baecb41af
[]
permissive
mpi4py/mpi4py
569ce3f4707e54fa2c1e041cc9b96147337a1f10
8bdd0c30f98797deefa4e4f129898fefb2b1e171
refs/heads/master
2023-08-31T21:39:18.799184
2023-08-28T09:41:32
2023-08-28T13:24:37
12,620,272
720
125
BSD-2-Clause
2023-09-14T21:16:17
2013-09-05T14:44:25
Python
UTF-8
Python
false
false
51,326
py
test_futures.py
import os import sys import time import random import warnings import functools import threading import unittest from mpi4py import MPI from mpi4py import futures from concurrent.futures._base import ( PENDING, RUNNING, CANCELLED, CANCELLED_AND_NOTIFIED, FINISHED ) SHARED_POOL = futures._core.Sha...
e528f2811d1ba4bb30931ade78fd701f58d1135b
cfb638fee5fa2cdd3149a8ea91043e6bc0808275
/examples/continuous_forall_init.py
aa892ba81c4f1cbd6b8e8420af5fb3364265aed7
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause" ]
permissive
tulip-control/tulip-control
a23436a122dc317d39b0980c40f2da5740433ae5
83f993c2ae06aa8368e4bbba02bf52d68725e106
refs/heads/main
2023-08-22T14:39:02.797004
2022-06-23T19:40:03
2022-06-23T19:40:03
13,993,728
107
37
BSD-3-Clause
2023-09-06T17:29:38
2013-10-30T17:15:55
Python
UTF-8
Python
false
false
4,029
py
continuous_forall_init.py
#!/usr/bin/env python """Simulation example with continuous dynamics.""" from __future__ import division from __future__ import print_function import logging import random import numpy as np import polytope as pc from polytope import box2poly try: from matplotlib import pyplot as plt except ImportError: plt =...
01027d68655c9a08bfb387c0520f94aa07c23083
2ed6ca32e81cafcef2acb4469e7f25bbf805a77e
/visualize.py
c88ca76a9b6106382a80e27f2a44fcd44ae636c0
[ "MIT" ]
permissive
MahmudulAlam/Unified-Gesture-and-Fingertip-Detection
a55ff1b0da4f97b5c08c87ea49b50cb3bf07a911
92a211d8f2b377ea5b61fe907fa94c7da5d770ed
refs/heads/master
2022-06-14T12:27:06.680343
2022-06-02T16:24:07
2022-06-02T16:24:07
191,755,366
275
61
MIT
2021-03-08T23:48:36
2019-06-13T12:05:35
Python
UTF-8
Python
false
false
797
py
visualize.py
import cv2 import numpy as np from preprocess.data_generator import label_generator def visualize(img, prob, key): index = 0 # preprocess img = np.asarray(img, dtype=np.uint8) prob = prob.squeeze() key = key.squeeze() color = [(15, 15, 240), (15, 240, 155), (240, 155, 15), (240, 15, 155), (2...
97bcdbfab6fd68b8f4eb9e76ba479e101bbb9e73
568fa58296378fa129ab3349adf010daa44ed45b
/tests/st/ops/test_div.py
cbf03623d135c9ad10398a1d9e2358a66806aefb
[ "Apache-2.0", "BSD-3-Clause", "NCSA", "X11-distribute-modifications-variant", "Zlib", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "LLVM-exception", "BSD-2-Clause" ]
permissive
mindspore-ai/akg
37f471badc66de6a831f1f45ad84344f34d23ef2
99f33858d6972741748cbfc9ab0bf9600428fef7
refs/heads/master
2023-07-25T23:03:17.672665
2023-07-11T07:33:57
2023-07-11T07:33:57
274,077,856
319
36
Apache-2.0
2021-12-30T13:43:08
2020-06-22T08:09:05
Python
UTF-8
Python
false
false
4,594
py
test_div.py
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
8f99a8595e43ed13109c919d6922174ddcb2db30
61602e99977f5b10081952220308b28dade6cb09
/machine_learning/neural_networks/sequence_networks.py
6d5f9dc712f29edd9cbedfcd9e0cab9cce61a320
[]
no_license
jgmakin/machine_learning
9239f940a5ddfd59f09b08efc455818ba35d3e55
202eb8ba676ad99910611a018c3276cc444d7702
refs/heads/master
2023-01-28T05:25:26.501835
2023-01-26T14:58:57
2023-01-26T14:58:57
241,483,733
133
24
null
null
null
null
UTF-8
Python
false
false
95,587
py
sequence_networks.py
# standard libraries import pdb import os import math import copy from functools import reduce from termcolor import cprint from IPython.display import clear_output import pickle # third-party libraries import numpy as np from scipy.special import logsumexp import tensorflow as tf import tensorflow_probability as tfp ...
d27ccb01bd8eb67c3b5072e3bee73642fdb47a9a
46129f1b8ec08598c922f6a256c4a41e087901f8
/carla_ros_bridge/src/carla_ros_bridge/imu.py
9ba52ec022e447006a5a6b4cff7394dbba8ba5b4
[ "MIT" ]
permissive
carla-simulator/ros-bridge
bb5515d354a2b0c583ab1d171cef90f750162f28
e9063d97ff5a724f76adbb1b852dc71da1dcfeec
refs/heads/master
2023-07-19T19:11:10.707619
2022-07-22T07:37:00
2022-07-22T07:37:00
159,830,279
448
376
MIT
2023-09-06T18:19:27
2018-11-30T13:51:34
Python
UTF-8
Python
false
false
3,309
py
imu.py
#!usr/bin/env python # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. # """ Classes to handle Carla imu sensor """ from transforms3d.euler import euler2quat import carla_common.transforms as trans from carla_ros_bridge.sensor import Sensor from s...
8b8dd7e87b37c881ee5d4c2c26d6dfdb3f1934fe
b54f5fe75dbb010a18d1da30a4f030fbb257ed4a
/examples/imageview/imageview/app.py
655baca80e4c0842024aac5836baa1c0fdd0fe49
[ "BSD-3-Clause" ]
permissive
beeware/toga
449e3f008ad89e10f8ffcc61bdac798e7e825d09
01b076bd6434d0bd04c04ff72ac6eb20b9e973ea
refs/heads/main
2023-08-24T11:33:53.705165
2023-08-24T00:06:09
2023-08-24T00:06:09
22,529,973
1,865
468
BSD-3-Clause
2023-09-14T18:46:58
2014-08-01T21:44:10
Python
UTF-8
Python
false
false
2,930
py
app.py
import io from PIL import Image, ImageDraw import toga from toga.style.pack import CENTER, COLUMN, Pack class ImageViewApp(toga.App): def startup(self): self.main_window = toga.MainWindow(title=self.name) box = toga.Box( style=Pack( padding=10, alignm...
e9ae122efbf47bc231902369c8957f7e0b79458b
474c281c47aed69036b2a13e9a60d150d8ecddc5
/jsons/deserializers/default_iterable.py
24cc0b538526842eb52e4b1079c4e8ba5a03feaa
[ "MIT" ]
permissive
ramonhagenaars/jsons
c2445eb7c002544abdfde4ac63d42f5a93e4d776
9abbf3a3bd32435ac74bc98c3554ad3c71086036
refs/heads/master
2023-07-23T22:08:10.093119
2022-06-09T19:50:52
2022-06-09T19:50:52
140,337,655
286
52
MIT
2023-07-14T15:20:59
2018-07-09T20:18:08
Python
UTF-8
Python
false
false
1,161
py
default_iterable.py
from collections.abc import Mapping, Iterable from typing import Iterable as IterableType from jsons._compatibility_impl import get_naked_class from jsons.deserializers.default_list import default_list_deserializer def default_iterable_deserializer( obj: list, cls: type, **kwargs) -> Iterable...
bfb8065fd27ecdefcbaf23d82c0a7c57db21c736
c42a5c6dc908caec486da3769ff4d3bc6398648f
/meta_dataset/data/dump_episodes.py
67d3dd1a782b995fdaeefff3a3c13d62df76f029
[ "MIT", "Apache-2.0" ]
permissive
google-research/meta-dataset
4a611b194ea813208c8cc4b8fdd4cb2b082115d6
13ca9ed2533056909f232168c759c096ae291740
refs/heads/main
2023-09-01T07:34:56.516732
2022-12-22T06:23:44
2023-01-20T19:44:32
174,000,899
753
147
Apache-2.0
2023-02-17T17:25:22
2019-03-05T18:39:08
Python
UTF-8
Python
false
false
4,812
py
dump_episodes.py
# coding=utf-8 # Copyright 2022 The Meta-Dataset 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 ...
cd2c8aa597b01cf3c193bfb195fbfc646b304d4b
9e5752ec6fa4f9797dd06f49e9d26dba55b05975
/mindarmour/privacy/evaluation/attacker.py
496110c4127b861cebaf1cb0163abff0f0bd3497
[ "Apache-2.0" ]
permissive
mindspore-ai/mindarmour
8e0d221d4cc77ebf2ce67dbcdf8d2cb8175d7051
9cd825b416916c9cda5a7f3623b39b086d16275c
refs/heads/master
2023-07-09T11:43:45.380811
2023-07-07T07:35:27
2023-07-07T07:35:27
250,692,967
151
16
Apache-2.0
2020-04-02T09:50:15
2020-03-28T01:59:08
Python
UTF-8
Python
false
false
6,699
py
attacker.py
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
aa286cdc23e714255ad16171de90bb23132beed0
da99c3d2dfbce3902ec189700daf87278f90d5cd
/evaluation/eval_wrapper.py
e855718c2d7fd12e2e02278f0433d0c55d2ed32e
[ "MIT" ]
permissive
cfzd/Ultra-Fast-Lane-Detection
52c297c1975d0e2e5cf7844bc2ce4f47b8d993e3
353df107756b8c03c22c27201e33fc63d84ecfe6
refs/heads/master
2023-08-11T23:20:22.619180
2022-12-14T06:50:09
2022-12-14T06:50:09
266,319,758
1,630
488
MIT
2021-12-03T04:09:33
2020-05-23T11:11:34
Python
UTF-8
Python
false
false
11,756
py
eval_wrapper.py
from data.dataloader import get_test_loader from evaluation.tusimple.lane import LaneEval from utils.dist_utils import is_main_process, dist_print, get_rank, get_world_size, dist_tqdm, synchronize import os, json, torch, scipy import numpy as np import platform def generate_lines(out, shape, names, output_path, gridi...
31363f6e735e40ed141cddf990557422888283bb
4e8eead628904a586fed97b7840266498f7db8fc
/vagrant/start_provider.py
5611c5e6c63216d7fabed55820ec79b7db3a6631
[ "MIT" ]
permissive
wndhydrnt/python-oauth2
5d730806e9632009dee9e92df512eeb52d69d6af
d1f75e321bac049291925b9ee345bf4218f5b7a9
refs/heads/v1
2020-12-24T16:15:33.238125
2019-06-28T17:53:25
2019-06-28T17:53:25
13,421,726
121
52
MIT
2018-11-09T19:59:37
2013-10-08T18:21:07
Python
UTF-8
Python
false
false
2,669
py
start_provider.py
import argparse import mysql.connector from pymongo import MongoClient from wsgiref.simple_server import make_server from oauth2 import Provider from oauth2.store.dbapi.mysql import MysqlAccessTokenStore, MysqlAuthCodeStore, \ MysqlClientStore from oauth2.store.mongodb import AccessTokenStore, AuthCodeStore, Clie...
b4515638a3dee04ef2dd49fdd98ee02485ebeab7
29bd0e9b5bdef7e2b4ff79edda3be258d5bde63c
/xonsh/completers/man.py
a2e56f13d7e2359de2bca50590292b484ab705ba
[ "BSD-2-Clause" ]
permissive
xonsh/xonsh
4dec5e4c14a4a82f81277a89d8ab6091869fc29e
60f0145ed893cb73bbfcf336c448238981010d41
refs/heads/main
2023-08-31T03:37:57.786839
2023-08-23T15:30:20
2023-08-23T15:30:20
29,620,400
6,374
684
NOASSERTION
2023-09-11T02:52:37
2015-01-21T22:05:27
Python
UTF-8
Python
false
false
4,448
py
man.py
import functools import json import re import shutil import subprocess import textwrap from pathlib import Path from xonsh.built_ins import XSH from xonsh.completers.tools import RichCompletion, contextual_command_completer from xonsh.parsers.completion_context import CommandContext @functools.cache def get_man_comp...
29ef022bfae6ef4cbe5ef632574ac34157e41a8c
7c857119fe1505b1d80d6e62969661c06dc1a2f4
/BaseTools/Source/Python/AutoGen/IdfClassObject.py
a6b8123c2539a48d28e7c0a82dbe0dee6b57c89a
[ "BSD-2-Clause" ]
permissive
CloverHackyColor/CloverBootloader
7042ca7dd6b513d22be591a295e49071ae1482ee
2711170df4f60b2ae5aa20add3e00f35cf57b7e5
refs/heads/master
2023-08-30T22:14:34.590134
2023-08-27T19:14:02
2023-08-27T19:14:02
205,810,121
4,734
770
BSD-2-Clause
2023-09-03T12:41:33
2019-09-02T08:22:14
C
UTF-8
Python
false
false
5,665
py
IdfClassObject.py
## @file # This file is used to collect all defined strings in Image Definition files # # Copyright (c) 2016, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent ## # Import Modules # from __future__ import absolute_import import Common.EdkLogger as EdkLogger from Comm...
264936f288daa5cb31561f88d5effafbff27a530
01857ef455ea60eccaf03b5a9059ec83e9803c2e
/nicegui/elements/query.py
84cd8af71bbfdc499140199daa8d65e7e2ee3868
[ "MIT" ]
permissive
zauberzeug/nicegui
f08312cc1f393deca79e0e84a2506d3a35efff16
c61b1315f29d51e26cc1168207f5616b302f8df0
refs/heads/main
2023-08-18T18:09:30.937322
2023-08-18T15:04:00
2023-08-18T15:04:00
365,250,183
5,128
271
MIT
2023-09-14T01:50:56
2021-05-07T13:55:05
Python
UTF-8
Python
false
false
2,756
py
query.py
from typing import Optional from typing_extensions import Self from ..element import Element from ..globals import get_client class Query(Element, component='query.js'): def __init__(self, selector: str) -> None: super().__init__() self._props['selector'] = selector self._props['classes...
88d616be1d5cc306702629b902bbf748041712c2
20c5cd805f105a70815aca39c5c7711612ea4388
/camera2car/auto_calib/test_img_calib.py
f11e114563b01784cf93f722303ace177f89a404
[]
no_license
OpenCalib/SensorX2car
ff7f5d64dae8cc5e8d783185d42ef481e7f508ea
29e6816d6d0691a9ebfe0544ad0db236e3be5551
refs/heads/main
2023-04-28T04:52:20.355395
2023-04-13T08:46:02
2023-04-13T08:46:02
577,998,537
114
20
null
2023-01-31T10:51:26
2022-12-14T02:28:28
C++
UTF-8
Python
false
false
5,261
py
test_img_calib.py
''' usage: python test_img_calib.py --config-file config-files/ctrlc.yaml --opts MODE test DATASET_DIR ./pic/ ''' import os import os.path as osp import argparse from datetime import date import json import random import time from pathlib import Path import numpy as np import numpy.linalg as LA from tqdm import tqdm im...