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
a6153be6c8c3ad35199aa7fd63c497340c7a3b10
80e55dff40b8454c2ac48a012a6b77b027b84056
/setup.py
613f7647209eef501ad1aed6e748c56bcbff20d3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
localstack/awscli-local
7d0f881f58cf07a6213d899b5d6aa925d6564f55
f52aa9e2878651532a9f733ba4c4efdbe9e6b718
refs/heads/master
2023-08-08T11:29:25.715328
2023-07-20T08:50:52
2023-07-20T08:50:52
96,595,434
859
85
Apache-2.0
2023-07-20T08:48:15
2017-07-08T04:16:23
Python
UTF-8
Python
false
false
1,521
py
setup.py
#!/usr/bin/env python from setuptools import setup description = 'Thin wrapper around the "aws" command line interface for use with LocalStack' README = description try: with open('README.md') as f: README = f.read() except Exception: pass if __name__ == '__main__': setup( name='awscli...
91f93eca8574d0fc4781e18e69c9e12a41e12933
c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64
/Engine/Extras/ThirdPartyNotUE/emsdk/emscripten/1.37.19/tools/diff_autodebugger.py
0a2a7634f65bac2380d76f064667755fefff36d1
[ "MIT", "LicenseRef-scancode-proprietary-license", "NCSA", "BSD-3-Clause", "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-mit-nagy", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
windystrife/UnrealEngine_NVIDIAGameWorks
c3c7863083653caf1bc67d3ef104fb4b9f302e2a
b50e6338a7c5b26374d66306ebc7807541ff815e
refs/heads/4.18-GameWorks
2023-03-11T02:50:08.471040
2022-01-13T20:50:29
2022-01-13T20:50:29
124,100,479
262
179
MIT
2022-12-16T05:36:38
2018-03-06T15:44:09
C++
UTF-8
Python
false
false
463
py
diff_autodebugger.py
''' Very simple line-by line diff of autodebugger outputs. useful when there are no added or removed lines, and there are float differences ''' import os, sys f1 = open(sys.argv[1], 'r').readlines() f2 = open(sys.argv[2], 'r').readlines() for i in range(len(f1)): if f1[i] == f2[i]: continue v1 = float(f1[i].split...
a0d4fa69b80116fa8d3237bf1587373489cb24ba
47d69d21f53333d93d5ba9973840ef192808a090
/src/tox/util/spinner.py
4fb6320a8fb6e946efafb11a03a3232d182649ee
[ "MIT" ]
permissive
tox-dev/tox
27ce3072e7faf5c88ed5305bbd66359369bba13d
da0885cd162fb02de866831a75eca9dcfe87eb36
refs/heads/main
2023-09-01T11:45:18.097559
2023-08-31T14:51:57
2023-08-31T14:51:57
68,465,360
3,512
624
MIT
2023-09-11T20:58:32
2016-09-17T16:54:22
Python
UTF-8
Python
false
false
6,870
py
spinner.py
"""A minimal non-colored version of https://pypi.org/project/halo, to track list progress.""" from __future__ import annotations import os import sys import textwrap import threading import time from collections import OrderedDict from typing import IO, TYPE_CHECKING, NamedTuple, Sequence, TypeVar from colorama impor...
6ca354b69ea5dd4fa240ee3aedf5e54eec622ce5
94c1805df5a09c39159d502f420d19ad54b567fc
/runtime/deps/gyp/test/mac/objc-arc/test.gyp
59cf0e29ceeb83df3ed598354c44d82571079c57
[ "BSD-3-Clause", "Apache-2.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
tmikov/jscomp
9805a5a4d06520549c57380f0df4a1c0aa0dab56
83828441cb38ec96603a6a60be06977d4852940a
refs/heads/develop
2021-01-19T02:56:35.102659
2016-04-12T06:19:30
2016-04-12T06:19:30
36,981,674
237
13
Apache-2.0
2018-10-14T09:48:12
2015-06-06T13:49:26
C
UTF-8
Python
false
false
1,128
gyp
test.gyp
# Copyright (c) 2013 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'make_global_settings': [ ['CC', '/usr/bin/clang'], ['CXX', '/usr/bin/clang++'], ], 'targets': [ { 'target_name': 'arc_enabled', 't...
82e3554c39ce31f6ef759b0e71ec204cfe86c002
8880226d2ca1c9448c44b3e9f21226a58e61ac93
/tests/test_conditions.py
ccbf3270b952c5daf0ee97807f3d590e9d43a5a6
[ "BSD-2-Clause" ]
permissive
cloudtools/awacs
2f82958ccc7ba2177492c29c706a5737f19dd2d1
c449a9637f01c26e73b827a9f8d5cc7715bbbea2
refs/heads/main
2023-08-31T00:58:28.636568
2023-08-28T05:13:01
2023-08-28T05:13:01
9,062,692
385
107
BSD-2-Clause
2023-08-13T23:21:39
2013-03-27T20:16:27
Python
UTF-8
Python
false
false
1,375
py
test_conditions.py
import json import unittest import awacs.aws as aws import awacs.s3 as s3 class TestConditions(unittest.TestCase): def test_for_all_values(self): c = aws.Condition( aws.ForAllValuesStringLike( "dynamodb:requestedAttributes", ["PostDateTime", "Message", "Tags"] ) ...
c26a9669e3cf965d11df82c77555aacb63d47b84
a63d907ad63ba6705420a6fb2788196d1bd3763c
/src/datamgr/datamanager/collection/cmdb/processes/host.py
7b30514631433ce7fe88a6e4ceb8ab644b46db91
[ "MIT" ]
permissive
Tencent/bk-base
a38461072811667dc2880a13a5232004fe771a4b
6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2
refs/heads/master
2022-07-30T04:24:53.370661
2022-04-02T10:30:55
2022-04-02T10:30:55
381,257,882
101
51
NOASSERTION
2022-04-02T10:30:56
2021-06-29T06:10:01
Python
UTF-8
Python
false
false
5,384
py
host.py
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ---------------------------------------------...
81345923573492bfc497f8c864e0f0c21baf08ac
07f0563f9d53e27032bdcb6393c7f035bf78ef7a
/weditor/web/ipyshell-console.py
93857c4e9062540ee890209e107a99552fc1c14f
[ "MIT" ]
permissive
alibaba/web-editor
1fc7d0d6376cc7efa42e66b616c1675628d05f65
eb9560c064ce27a87dabc3997740a488a704c37d
refs/heads/master
2023-08-09T09:33:07.253648
2023-07-24T03:10:45
2023-07-24T03:10:45
84,531,631
690
168
MIT
2023-08-09T04:26:41
2017-03-10T07:23:40
JavaScript
UTF-8
Python
false
false
5,136
py
ipyshell-console.py
# coding: utf-8 # # WRT:{quoted output string} # EOF:{running milliseconds} 结束标记 # DBG:{debug string} # LNO:{line number} # 从0开始 # 使用方法 # python3 {__file__}.py # >>> print("hello", end="") # LNO:0 # DBG: 0 print("hello", end="") # WRT:"hello" # EOF:1 import contextlib import linecache import json import os import sy...
4a7be39356ccb4c9d0fdf2fe920c46ff5959bd02
85c668af40853f5ee48fbe8c4045df1a5dd4104e
/examples/simulations/drag_chain.py
93c097125402b224f8dd5fa95a26f9d582a527e3
[ "MIT", "LicenseRef-scancode-public-domain", "OFL-1.1" ]
permissive
marcomusy/vedo
771db91bca05cda864fc7d1776d9140726676704
9a9f7c5e9ebf135e5c745c521c898866e3ede0ef
refs/heads/master
2023-08-21T12:56:35.545713
2023-08-14T14:39:37
2023-08-14T14:39:37
110,261,047
1,419
206
MIT
2023-09-02T18:38:22
2017-11-10T15:17:47
Python
UTF-8
Python
false
false
721
py
drag_chain.py
"""Forward kinematics: hover the mouse to drag the chain""" from vedo import Plotter, versor, Plane, Line n = 15 # number of points l = 3 # length of one segment def func(evt): if not evt.actor: return coords = line.points() coords[0] = evt.picked3d for i in range(1, n): v = versor(...
e7566ec5cae91afd108459ff96633fdc8b5cb2bf
4a75c54952ea37e0c851043d6102c8310477dca0
/examples/example_bulkinsert_json.py
292a59184b56a968f0ed13dd394774be1b5ccfab
[ "Apache-2.0" ]
permissive
milvus-io/pymilvus
32424852acb032c37cde26409bc6fd5db4586210
ea9328d01db60d54a01f152c965fd5803904a08c
refs/heads/master
2023-08-28T02:59:50.780914
2023-08-23T11:06:17
2023-08-23T11:06:17
191,751,505
683
285
Apache-2.0
2023-09-14T06:15:16
2019-06-13T11:38:34
Python
UTF-8
Python
false
false
18,184
py
example_bulkinsert_json.py
import random import json import time import os from minio import Minio from minio.error import S3Error from pymilvus import ( connections, FieldSchema, CollectionSchema, DataType, Collection, utility, BulkInsertState, ) # This example shows how to: # 1. connect to Milvus server # 2. create a...
9d093d8935bea3931164ad6611736e88c0e2d663
a63d907ad63ba6705420a6fb2788196d1bd3763c
/src/datamgr/datamanager/collection/templates/tencent/constants.py
8072c4f23f35288dc9b9f8ae0f12bb1a97c5915e
[ "MIT" ]
permissive
Tencent/bk-base
a38461072811667dc2880a13a5232004fe771a4b
6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2
refs/heads/master
2022-07-30T04:24:53.370661
2022-04-02T10:30:55
2022-04-02T10:30:55
381,257,882
101
51
NOASSERTION
2022-04-02T10:30:56
2021-06-29T06:10:01
Python
UTF-8
Python
false
false
6,463
py
constants.py
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ---------------------------------------------...
5d903307091034dcdf7108e1b28507ffcb543619
dbe83cf6c2b78a61def862ca19625c2f78268af8
/ibis/common/tests/test_temporal.py
dce932383aa3cd1fbf9de86f8df028879a492aa9
[ "Apache-2.0" ]
permissive
ibis-project/ibis
56a169d75805db7dfd39192cf0562521c405ff1c
3866492906d731dc170b560e7d7471bd4855169a
refs/heads/master
2023-09-01T17:07:38.854510
2023-09-01T13:52:08
2023-09-01T15:32:04
34,139,230
2,304
384
Apache-2.0
2023-09-14T21:52:21
2015-04-17T20:43:46
Python
UTF-8
Python
false
false
7,787
py
test_temporal.py
from __future__ import annotations import itertools from datetime import date, datetime, time, timedelta, timezone import dateutil import pandas as pd import pytest import pytz from packaging.version import parse as vparse from pytest import param from ibis.common.patterns import CoercedTo from ibis.common.temporal ...
0ad6ed0ec1b49ef7164b9dfcc1bd1d6c27ab9a49
36272b48713793e497c74fe96b94bb389490db42
/Python/Algorithms/Maths/decimalToN_base.py
e527d4f99954e67c67d0c691148693d521e416ab
[ "MIT" ]
permissive
Py-Contributors/AlgorithmsAndDataStructure
d044734fdae300f9320680eaf3fc793a4b3f071b
6b9b8b0dfe4543ec2ca191a5290415e36ae06dbd
refs/heads/master
2023-09-02T17:48:28.712631
2023-08-15T05:11:48
2023-08-15T05:11:48
260,388,831
660
760
MIT
2023-09-07T02:17:02
2020-05-01T05:46:35
C++
UTF-8
Python
false
false
557
py
decimalToN_base.py
def conversion(value: int, base: int): data = [] while value >= base: data.append(int(value % base)) value = int(value / base) data.append(value) data.reverse() for i in range(0, len(data)): if data[i] > 9: temp = data[i] - 10 data.remove(data[i]) ...
260708b0c248249af199a437c88bfeec4e39d959
080db1ae362de6823e7c78ab6071c82e347ce967
/tests/integration/hot_reload/exec2/helper.py
42ec39ef559cf961affcac3041ac02a054ad2d6e
[ "Apache-2.0" ]
permissive
jina-ai/jina
c06898dc31dd3de1f917f30305e9460efedf97c3
23c7b8c78fc4ad67d16d83fc0c9f0eae9e935e71
refs/heads/master
2023-08-30T23:04:45.267920
2023-08-24T13:49:49
2023-08-24T13:49:49
240,315,046
20,687
2,460
Apache-2.0
2023-09-14T12:30:45
2020-02-13T17:04:44
Python
UTF-8
Python
false
false
57
py
helper.py
def get_doc_value(): return 'MyExecutorBeforeReload'
ad0ab4eeebb9778736695953b6c35910a70a585a
fbdc48c28e54fb33ae4842ef95ff63893902c99a
/scripts/examples/10-Arduino-Boards/Nicla-Vision/03-WiFi/dns.py
13d1c28646438f8541975ee2dde1de5ef8d3ac0f
[ "MIT" ]
permissive
openmv/openmv
44d4b79fc8693950a2e330e5e0fd95b5c36e230f
8a90e070a88b7fc14c87a00351b9c4a213278419
refs/heads/master
2023-08-30T20:59:57.227603
2023-08-23T16:50:55
2023-08-23T16:50:55
14,360,940
2,150
1,226
MIT
2023-09-14T07:18:15
2013-11-13T10:23:44
C
UTF-8
Python
false
false
539
py
dns.py
# DNS Example # # This example shows how to get the IP address for websites via DNS. import network import usocket SSID = "" # Network SSID KEY = "" # Network key # Init wlan module and connect to network wlan = network.WLAN(network.STA_IF) wlan.active(True) wlan.connect(SSID, KEY) while not wlan.isconnected(): ...
cb04a40518c1967d2a3ea6b15436670e08d91dfb
ff9a29eae7234c4477a048c1bf97611ce05e67ba
/graphene_django_extras/filters/__init__.py
175cac71b88f7fca3f1066e1c8755384b4d1621a
[ "MIT" ]
permissive
eamigo86/graphene-django-extras
c315a56e238da8edbdcd1a0dd603207ac27705a9
209ae496084562f39749c646af2c4fb094f1ebd8
refs/heads/master
2023-08-22T06:36:56.478466
2023-05-08T06:43:08
2023-05-08T06:43:08
104,230,962
431
129
MIT
2023-06-21T17:21:52
2017-09-20T15:06:04
Python
UTF-8
Python
false
false
346
py
__init__.py
# -*- coding: utf-8 -*- from .lookups import ( ALL_LOOKUPS, BASIC_LOOKUPS, COMMON_LOOKUPS, DATE_LOOKUPS, DATETIME_LOOKUPS, NUMBER_LOOKUPS, TIME_LOOKUPS, ) __all__ = ( "ALL_LOOKUPS", "BASIC_LOOKUPS", "COMMON_LOOKUPS", "NUMBER_LOOKUPS", "DATETIME_LOOKUPS", "DATE_LOOKUP...
4c0757503ca98c91ec0f6bf6e2f70c3de22177b4
0577a46d8d28e1fd8636893bbdd2b18270bb8eb8
/chromium/third_party/android_crazy_linker/src/tests/generate_test_elf_hash_tables.py
30276426ce8f41310d94eb6a31e7c19c400feef4
[ "Apache-2.0", "BSD-3-Clause", "BSD-2-Clause", "LGPL-2.0-or-later", "MIT", "GPL-1.0-or-later", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ric2b/Vivaldi-browser
388a328b4cb838a4c3822357a5529642f86316a5
87244f4ee50062e59667bf8b9ca4d5291b6818d7
refs/heads/master
2022-12-21T04:44:13.804535
2022-12-17T16:30:35
2022-12-17T16:30:35
86,637,416
166
41
BSD-3-Clause
2021-03-31T18:49:30
2017-03-29T23:09:05
null
UTF-8
Python
false
false
4,273
py
generate_test_elf_hash_tables.py
#!/usr/bin/env python # Copyright 2018 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Simple script used to generate the SysV ELF hash table test data""" import collections import os from pylib import source_utils from pylib import elf_u...
3690755a21e733312e13b44847ab9b86cfa2c4f4
39b021eabbb8e3be1734cf92fd641965a796b0eb
/deepchem/models/torch_models/__init__.py
618814449e50933f7763535616b47a73aa99d8b2
[ "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
2,417
py
__init__.py
# flake8:noqa import logging logger = logging.getLogger(__name__) from deepchem.models.torch_models.torch_model import TorchModel from deepchem.models.torch_models.modular import ModularTorchModel from deepchem.models.torch_models.attentivefp import AttentiveFP, AttentiveFPModel from deepchem.models.torch_models.cgcn...
62c3f39e9197c6cd1e4b4b76525f7d4362a2db73
551990e68feda34d2a9173b05cc3a7259f4e8c9a
/direct/nn/multidomainnet/multidomainnet.py
1b9ac395b2e7e4e135131ef3ce69ced2aa211282
[ "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
5,599
py
multidomainnet.py
# coding=utf-8 # Copyright (c) DIRECT Contributors from typing import Callable import torch import torch.nn as nn import direct.data.transforms as T from direct.nn.multidomainnet.multidomain import MultiDomainUnet2d class StandardizationLayer(nn.Module): r"""Multi-channel data standardization method. Inspired ...
a1c26196d51027ed56a82eb3e5c6740b1e000b8c
7162c7fa1433f8bacc666e611241b32232ef3792
/src/interrogate/config.py
250f8d29c6228c2f2613e6b11721024c0d4aa57b
[ "CC-BY-3.0", "MIT" ]
permissive
econchick/interrogate
ff4e04e9a4a677a8dd694599e39705f80a5c3ad9
1e74611fc5296b0572b6bb11b480d43242c4ec49
refs/heads/master
2023-04-11T11:54:42.297583
2022-07-29T16:12:10
2022-07-29T16:12:10
258,385,030
497
49
MIT
2023-09-10T13:43:00
2020-04-24T02:33:25
Python
UTF-8
Python
false
false
7,863
py
config.py
# Copyright 2020 Lynn Root """ Configuration-related helpers. """ # Adapted from Black https://github.com/psf/black/blob/master/black.py. import configparser import os import pathlib import attr import click import toml # TODO: idea: break out InterrogateConfig into two classes: one for # running the tool, one for ...
cfe94f1800d9acdd7cefa2cf37842be9f3f0aadb
7f59e2c4e771c19378e9839406c220d3985e7efe
/python-toolbox/marvin_python_toolbox/utils/misc.py
5f4d01b33ae8b448f8c517697cfbba2f45516fef
[ "Apache-2.0" ]
permissive
apache/incubator-marvin
c6ff32d50eb01ccd84266587d79f562a9e371496
58fdccf2e677041a13966ddbdd96d484edf3b474
refs/heads/develop
2023-08-30T12:46:56.973102
2022-11-18T15:27:52
2022-11-18T15:27:52
148,087,939
112
77
Apache-2.0
2023-03-07T05:45:59
2018-09-10T02:27:54
Jupyter Notebook
UTF-8
Python
false
false
6,459
py
misc.py
#!/usr/bin/env python # coding=utf-8 # Copyright [2020] [Apache Software Foundation] # # 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 # # Unl...
ac935b1ed0114bb23981d9e0732f9f6e262454d3
6a31e1996338d221e62ba7a14d0c182aed681298
/taskbank/lib/models/cycle_siamese_nets.py
1a8404740147501d872bb5304d39d700d0bb0abd
[ "MIT" ]
permissive
StanfordVL/taskonomy
74ae0c95f0780ac7494f48e1a5fa5e01ec5139ae
9f814867b5fe4165860862211e8e99b0f200144d
refs/heads/master
2022-12-09T19:06:18.313618
2021-10-22T00:04:41
2021-10-22T00:04:41
114,683,091
847
159
MIT
2022-12-08T01:00:21
2017-12-18T20:08:09
Python
UTF-8
Python
false
false
15,492
py
cycle_siamese_nets.py
'''Standard Siamese model The Siamese Network takes input as a list of image (a list of ndarray) Model-specific config.py options: (inherits from models.base_net): 'batch_size': An int. The number of input bundle to use in a batch 'num_input': An int. The number of images within an input bundl...
880e7be4d364a7c7eaf3c63944dc6a65aa91494c
fda6a1be714d8e27a5d8dd3df795df45538f2fe7
/graphene/types/unmountedtype.py
83a6afefc2334234086b5d638283ee032b17de4b
[ "MIT" ]
permissive
graphql-python/graphene
6badaaa97c8ad78552a656f9da9ed577cfc37add
93cb33d359bf2109d1b81eaeaf052cdb06f93f49
refs/heads/master
2023-08-05T02:48:36.967050
2023-07-26T07:43:40
2023-07-26T07:43:40
43,056,951
8,187
1,088
MIT
2023-09-01T19:59:19
2015-09-24T09:18:18
Python
UTF-8
Python
false
false
2,344
py
unmountedtype.py
from ..utils.orderedtype import OrderedType class UnmountedType(OrderedType): """ This class acts a proxy for a Graphene Type, so it can be mounted dynamically as Field, InputField or Argument. Instead of writing: .. code:: python from graphene import ObjectType, Field, String ...
4c916473bae1127a5627d43516dcf26c09cee7cf
33f805792e79a9ef1d577699b983031521d5b6c9
/tapiriik/payments/external/motivato.py
705fae73c4cc4dadcb3b282c047bd5a5c901a6a7
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
cpfair/tapiriik
0dce9599400579d33acbbdaba16806256270d0a3
c67e9848e67f515e116bb19cd4dd479e8414de4d
refs/heads/master
2023-08-28T10:17:11.070324
2023-07-25T00:59:33
2023-07-25T00:59:33
7,812,229
1,519
343
Apache-2.0
2022-10-24T16:52:34
2013-01-25T02:43:42
Python
UTF-8
Python
false
false
2,262
py
motivato.py
from .provider_base import ExternalPaymentProvider from tapiriik.database import db from tapiriik.settings import MOTIVATO_PREMIUM_USERS_LIST_URL import requests class MotivatoExternalPaymentProvider(ExternalPaymentProvider): ID = "motivato" def RefreshPaymentStateForExternalIDs(self, external_ids): from tapiriik...
c0811d9c77a11bedb5d0d93b4b1f4afc87bf4014
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/Nmap/Integrations/Nmap/Nmap.py
db0f4b383ff99a58ec7a7c165550e12db3760177
[ "MIT" ]
permissive
demisto/content
6d4722d46f0ff0beea2748e9f7de585bf91a78b4
890def5a0e0ae8d6eaa538148249ddbc851dbb6b
refs/heads/master
2023-09-04T00:02:25.618032
2023-09-03T21:56:22
2023-09-03T21:56:22
60,525,392
1,023
1,921
MIT
2023-09-14T20:55:24
2016-06-06T12:17:02
Python
UTF-8
Python
false
false
2,589
py
Nmap.py
import demistomock as demisto from CommonServerPython import * from libnmap.process import NmapProcess from libnmap.parser import NmapParser from libnmap.reportjson import ReportEncoder if demisto.command() == 'test-module': demisto.results('ok') sys.exit(0) if demisto.command() == 'nmap-scan': nm = NmapPr...
980a1793440680b5c9d44518793a5aab65d5ead2
4506d81df5ae98078e5cbe79f613514ad12b1c83
/nipype/external/fsl_imglob.py
3f131c33b372dbc4599b846164c4d065f0360f14
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
nipy/nipype
d52eba1b98fda68e24d006ac0d5701fc8a531b9c
03a236320fa229299d637ff9af97865a6ae76aca
refs/heads/master
2023-08-28T10:36:07.020541
2023-08-25T13:40:09
2023-08-25T13:40:09
791,477
692
569
NOASSERTION
2023-09-11T06:04:51
2010-07-22T17:06:49
Python
UTF-8
Python
false
false
5,977
py
fsl_imglob.py
#!/usr/bin/env python # imglob - expand list of image filenames # Stephen Smith, Mark Jenkinson & Matthew Webster FMRIB Image Analysis Group # Copyright (C) 2009 University of Oxford # Part of FSL - FMRIB's Software Library # http://www.fmrib.ox.ac.uk/fsl # fsl@fmrib.ox.ac.uk # # Developed at FMRIB (Oxfor...
8fb517892b69a5dcc4627fd9ee7d5fee2897d693
59f64b5cf799e31c97b11828dba4787afb8f3f17
/hail/python/test/hailtop/inter_cloud/test_diff.py
25676e903753ed914f7839893c75aaee11eeaea8
[ "MIT" ]
permissive
hail-is/hail
2089e6f3b38548f13fa5c2a8ab67f5cfdd67b4f1
07a483ae0f46c66f3ed6fd265b48f48c06298f98
refs/heads/main
2023-09-01T15:03:01.450365
2023-09-01T02:46:35
2023-09-01T02:46:35
45,069,467
913
262
MIT
2023-09-14T21:53:32
2015-10-27T20:55:42
Python
UTF-8
Python
false
false
5,723
py
test_diff.py
from typing import Tuple, AsyncIterator, Dict import secrets import os import asyncio import pytest import functools from hailtop.aiotools.fs import AsyncFS from hailtop.frozendict import frozendict from hailtop.aiotools.diff import diff, DiffException from hailtop.utils import bounded_gather2 from hailtop.aiotools.ro...
419a64118f9850a848c01caac3a848c009dc3dd5
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/GeneratorInterface/GenFilters/python/ZgammaFilter_cfi.py
d76b4d2cd720d8b0cf35c38230295e959f01a7c9
[ "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
777
py
ZgammaFilter_cfi.py
import FWCore.ParameterSet.Config as cms # values tuned also according to slide 3 of : # https://indico.cern.ch/getFile.py/access?contribId=23&sessionId=2&resId=0&materialId=slides&confId=271548 # selection efficiency of approx 6% for ZMM_8TeV myZgammaFilter = cms.EDFilter('ZgammaMassFilter', HepMCProduct ...
96d984cf17682942c330df9716bd27bace365712
fbbffcc0c0d689b0bca759c37399374c3772f922
/python_hook.py
f04a59a4b27a64b0ca03a8a197dd5acbe821c36c
[]
no_license
holdyeah/wechat-pc-hook-python
147872ce9818541e367319ea63eba40ddbb90ad5
763a882de5c8aa4f9bb71855a74e02ee66a9e563
refs/heads/master
2023-03-17T06:17:30.988003
2023-03-04T08:44:37
2023-03-04T08:44:37
204,273,242
284
86
null
null
null
null
UTF-8
Python
false
false
1,642
py
python_hook.py
#-*- coding: utf-8 -*- import win32api,win32process,win32con,ctypes,psutil from ctypes import * PAGE_READWRITE = 0x00000040 PROCESS_ALL_ACCESS = (0x000F0000|0x00100000|0xFFF) VIRTUAL_MEM = (0x00001000 | 0x00002000) dll_path = b"C:\\SendMessage.dll" print(dll_path) dll_len = len(dll_path) kernel32 = ctypes.windll.ke...
b3194712025cf30799b20175a9c5c1eb0e415e7b
8d77f3b72dc52b85ee0c4ef6ba06f63a6920841f
/python/aitemplate/compiler/ops/gemm_universal/perm021fc_crc_bias.py
7443bfa84a9d83ec9f1d2de73314da501a5acc30
[ "Apache-2.0" ]
permissive
facebookincubator/AITemplate
b643c217e1d15f7f17dab1eb1cc6855eab664b97
c60dc19788217556ba12ea378c02b9fd0aea9ffe
refs/heads/main
2023-08-28T18:22:15.828008
2023-08-28T14:43:41
2023-08-28T14:43:41
514,321,895
4,065
334
Apache-2.0
2023-09-14T04:53:57
2022-07-15T15:40:58
Python
UTF-8
Python
false
false
2,920
py
perm021fc_crc_bias.py
# Copyright (c) Meta Platforms, Inc. and affiliates. # # 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...
bab0dabc793c8f677a6781f233d7b796e255a46f
8d6f97d71518ea4e32bbb4c332f55aac1fbfefb9
/pyvex/lifting/util/instr_helper.py
ba79df8184615f1fdce6e09378a29b5c165b4a46
[ "BSD-2-Clause" ]
permissive
angr/pyvex
acb80c39d42622e930a1fa0cb774a95f1452467a
40f151e54e75b5ad57856675b4c4c70247d0cd9c
refs/heads/master
2023-08-28T18:41:00.203041
2023-08-25T19:40:56
2023-08-25T19:40:56
13,027,352
304
130
BSD-2-Clause
2023-09-11T22:08:43
2013-09-23T05:02:20
Python
UTF-8
Python
false
false
17,751
py
instr_helper.py
import abc import string import bitstring from pyvex.expr import IRExpr, RdTmp from .lifter_helper import ParseError from .syntax_wrapper import VexValue from .vex_helper import IRSBCustomizer, JumpKind, vex_int_class class Instruction(metaclass=abc.ABCMeta): """ Base class for an Instruction. You sho...
9081bac3b96766ec232644556b278d65463a48a6
29dfa1deefc72493d1b1eecf1a8df62e24599a77
/dfvfs/encoding/base64_decoder.py
395620456f3bca6646bd0bc1f846e52ccf08da61
[ "Apache-2.0" ]
permissive
log2timeline/dfvfs
fd301eaf721a9945641a44ff722aec963158a6b3
28756d910e951a22c5f0b2bcf5184f055a19d544
refs/heads/main
2023-08-07T22:45:45.432668
2023-07-30T12:17:56
2023-07-30T12:17:56
23,820,144
197
65
Apache-2.0
2023-07-30T12:17:58
2014-09-09T05:06:44
Python
UTF-8
Python
false
false
1,198
py
base64_decoder.py
# -*- coding: utf-8 -*- """The base64 decoder implementation.""" import base64 import binascii from dfvfs.encoding import decoder from dfvfs.encoding import manager from dfvfs.lib import definitions from dfvfs.lib import errors class Base64Decoder(decoder.Decoder): """Base64 decoder using base64.""" ENCODING_M...
18b67ada81998bd3a173c4d1b51ae4f047208888
444a9480bce2035565332d4d4654244c0b5cd47b
/research/cv/DecoMR/models/DMR.py
813a8e3cd66980cc2b5bbbe73f372b6b7e2c0481
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license" ]
permissive
mindspore-ai/models
7ede9c6454e77e995e674628204e1c6e76bd7b27
eab643f51336dbf7d711f02d27e6516e5affee59
refs/heads/master
2023-07-20T01:49:34.614616
2023-07-17T11:43:18
2023-07-17T11:43:18
417,393,380
301
92
Apache-2.0
2023-05-17T11:22:28
2021-10-15T06:38:37
Python
UTF-8
Python
false
false
1,074
py
DMR.py
# Copyright 2022 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...
9e7ab741c9f884efd925278df7b58c5d4dfc5b96
ac235a23f22be0d6f1818bb53902177f9969813a
/ddtrace/internal/telemetry/metrics.py
057227690b2ee1da5a79fdc073abfa93f50677c7
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
DataDog/dd-trace-py
f09d6d48c4c69aea68f999fc8a458ade5c6150cf
1e3bd6d4edef5cda5a0831a6a7ec8e4046659d17
refs/heads/1.x
2023-09-01T20:25:26.746324
2023-09-01T18:54:37
2023-09-01T18:54:37
61,572,326
461
426
NOASSERTION
2023-09-14T20:38:57
2016-06-20T18:52:23
Python
UTF-8
Python
false
false
5,044
py
metrics.py
# -*- coding: utf-8 -*- import abc import time from typing import Dict from typing import List from typing import Optional from typing import Tuple import six MetricTagType = Optional[Tuple[Tuple[str, str], ...]] class Metric(six.with_metaclass(abc.ABCMeta)): """ Telemetry Metrics are stored in DD dashboar...
b7132fa30d67574e87fff1582aabe6f0b92b549e
cdbeb80f60cbaed50a8280a177be6f732c0ba279
/gen_index/syn_validation_run.py
6b53522b3953f062a9dc4666592fcfb2918381a0
[ "Apache-2.0" ]
permissive
UniversalDependencies/docs
e1c2a4a516c18f11dbfa7bf7ce024c9a5d26023b
758f9189af904561aa91171e99101fa81b82d98a
refs/heads/pages-source
2023-08-05T00:18:51.264412
2023-08-03T09:21:50
2023-08-03T09:21:50
18,795,673
236
252
Apache-2.0
2023-08-06T12:18:55
2014-04-15T10:09:23
HTML
UTF-8
Python
false
false
10,160
py
syn_validation_run.py
import os.path import glob import traceback import yaml import sys import codecs import subprocess import cStringIO import re import urllib import itertools import json import datetime THISDIR=os.path.dirname(os.path.abspath(__file__)) def read_conll(inp,maxsent): """ Read conll format file and yield one sentence...
84f3be0df2a38126d37cb686a22f0df3a3094e35
67cc5db4593e2cdd109e589e13fb07074bcff5d9
/tests/npbench/misc/mandelbrot1_test.py
13ee414c340063817f4b2f8390e48c1040104978
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
spcl/dace
39849b1488e8f59f880fc0e2572687556c51847d
c5ca99ad37e7ceef6da71026c3c8bb579f64117f
refs/heads/master
2023-08-31T10:45:09.480018
2023-08-30T06:05:10
2023-08-30T06:05:10
172,703,996
402
114
BSD-3-Clause
2023-09-14T15:18:29
2019-02-26T12:05:50
Python
UTF-8
Python
false
false
4,845
py
mandelbrot1_test.py
# Copyright 2019-2022 ETH Zurich and the DaCe authors. All rights reserved. # Original application code: NPBench - https://github.com/spcl/npbench import dace.dtypes import numpy as np import dace as dc import pytest import argparse from dace.fpga_testing import fpga_test, xilinx_test from dace.transformation.interstat...
aa088d1042acbcbeeabbefe58b0533aee56449d0
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/20_杂题/牛客编程巅峰赛/69_树节点价值和-层序等差数列.py
5938e5348a031cec3229689a73c7abae619616d8
[]
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,165
py
69_树节点价值和-层序等差数列.py
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # @param n long长整型 表示标准完全二叉树的结点个数 # @return long长整型 # from math import floor, log2 MOD = 998244353 # n<=10^9 class Solution: # 一个一个加肯定超时 def tree4TLE(self, n: int) -> int: # write code here self.res = 0 def dfs(root: in...
cb26b2ef7cb6179e52c0f737586c93cc11ef8b0b
1742b6719b988e5519373002305e31d28b8bd691
/sdk/python/pulumi_aws/dms/outputs.py
33750b0297bc88701b98f55fda6fb1a8e329877a
[ "BSD-3-Clause", "Apache-2.0", "MPL-2.0" ]
permissive
pulumi/pulumi-aws
4f7fdb4a816c5ea357cff2c2e3b613c006e49f1a
42b0a0abdf6c14da248da22f8c4530af06e67b98
refs/heads/master
2023-08-03T23:08:34.520280
2023-08-01T18:09:58
2023-08-01T18:09:58
97,484,940
384
171
Apache-2.0
2023-09-14T14:48:40
2017-07-17T14:20:33
Java
UTF-8
Python
false
false
93,866
py
outputs.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...
95fef38b2c75336cf3d5837c3ca42861b7c53f32
f3806d9fb54773908cd9704121a543b114470aca
/angr/procedures/definitions/win32_api-ms-win-gaming-tcui-l1-1-1.py
0965c4c7d5745fe6569b5a337997cfabf2ff9dee
[ "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
1,888
py
win32_api-ms-win-gaming-tcui-l1-1-1.py
# pylint:disable=line-too-long import logging from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool from ...calling...
2a5dc86a90bd53d5f7ba837e55e3f80078e0874c
b19529491b2db47f2b69d39fba16a86bee2353bc
/examples/movie_details.py
6a235de2e4660955dd1f7f2a512f521dd4272ef7
[]
no_license
AnthonyBloomer/tmdbv3api
c4f7a7db5eee87ca50e0467d7b73b4e54d5c5731
c5e96af23494b6b5506e84ed3b0be626ee25cb26
refs/heads/master
2023-08-24T08:23:16.476455
2023-08-14T11:36:43
2023-08-14T11:36:43
48,133,546
208
70
null
2023-01-04T08:37:59
2015-12-16T20:30:24
Python
UTF-8
Python
false
false
162
py
movie_details.py
from tmdbv3api import TMDb, Movie tmdb = TMDb() tmdb.api_key = "" movie = Movie() m = movie.details(111) print(m.title) print(m.overview) print(m.popularity)
fcedb8983947b43de4a9a8409000365fe37bc992
cf140b80ae581fde086820bd4efc0e3594111864
/gql/dsl.py
adc48bea549f197da64ce00a92f9dca3b4b70c25
[ "MIT" ]
permissive
graphql-python/gql
2f059acda879272de06ea18ecc59605524f1c2cc
013fa6aceb066be843849e83cc72747f51c07d0e
refs/heads/master
2023-08-29T19:42:37.812918
2023-07-26T10:06:47
2023-07-26T10:06:47
62,077,169
1,378
211
MIT
2023-09-13T20:43:11
2016-06-27T18:08:42
Python
UTF-8
Python
false
false
36,033
py
dsl.py
""" .. image:: http://www.plantuml.com/plantuml/png/ZLAzJWCn3Dxz51vXw1im50ag8L4XwC1OkLTJ8gMvAd4GwEYxGuC8pTbKtUxy_TZEvsaIYfAt7e1MII9rWfsdbF1cSRzWpvtq4GT0JENduX8GXr_g7brQlf5tw-MBOx_-HlS0LV_Kzp8xr1kZav9PfCsMWvolEA_1VylHoZCExKwKv4Tg2s_VkSkca2kof2JDb0yxZYIk3qMZYUe1B1uUZOROXn96pQMugEMUdRnUUqUf6DBXQyIz2zu5RlgUQAFVNYaeRfBI79_J...
98fda4b605638f181e89a75066dc361bd3d2f8b9
4d913c96c6c4033783402e8e72afbc04bc87e6d0
/nautilus/extensions/exif-columns.py
ed54c7a97604f5b112dd1cdec37cf2fd399c82dc
[]
no_license
NicolasBernaerts/ubuntu-scripts
9ae478dcc81af85a472498f247bfccf096431316
492ed52351b9b80ac1f99ed1b55e4f267142af88
refs/heads/master
2023-07-22T01:40:00.476642
2023-07-11T06:41:44
2023-07-11T06:41:44
20,286,893
205
115
null
2022-06-09T07:05:01
2014-05-29T08:09:50
Shell
UTF-8
Python
false
false
6,660
py
exif-columns.py
#!/usr/bin/env python3 # --------------------------------------------------- # Nautilus extension to add EXIF specific columns # Dependency : # - gir1.2-gexiv2-0.10 # Procedure : # http://www.bernaerts-nicolas.fr/linux/xxx... # # Revision history : # 20/09/2016, V1.0 - Creation by N. Bernaerts # 25/04/2020, v2....
5c5af3cfa38b66cb8259ffab3f8fad7bfdf81680
cfb2a8652fe0afbcbbf2287f4f736ff85ce47d30
/tests/sample7.py
13c8f1572321dafbd600f5beefdf1272c03f09b9
[ "BSD-2-Clause" ]
permissive
ionelmc/python-hunter
238ad366c9aae00cf1a249fd90993f31404e7087
cfae650dd2b7a89e5bf9eb81b109f268397c45e9
refs/heads/master
2023-08-14T23:47:51.328651
2023-04-26T09:11:54
2023-04-26T09:11:54
32,343,292
800
44
BSD-2-Clause
2022-09-09T19:31:05
2015-03-16T18:03:16
Python
UTF-8
Python
false
false
415
py
sample7.py
from __future__ import print_function import os import sys def one(): for i in range(1): # one two() def two(): for i in range(1): # two three() def three(): for i in range(1): # three four() def four(): for i in range(1): # four five() def five(): in_f...
18795767ee04a2e3912c8771e908ff4854a22af7
8d9af25fb8878435de994c182a8d7fa6424a8122
/tableauserverclient/server/endpoint/tasks_endpoint.py
ad1702f58b563e89baa73d707c06ff2faafcecb7
[ "CC0-1.0", "LicenseRef-scancode-public-domain", "MIT" ]
permissive
tableau/server-client-python
a0f015b3dffdba1f403120a446d2ac9ce29fdaca
307d8a20a30f32c1ce615cca7c6a78b9b9bff081
refs/heads/master
2023-08-30T04:39:34.860319
2023-04-24T20:08:23
2023-04-24T20:08:23
62,177,327
607
429
MIT
2023-09-12T03:48:49
2016-06-28T22:05:32
Python
UTF-8
Python
false
false
3,154
py
tasks_endpoint.py
import logging from .endpoint import Endpoint, api from .exceptions import MissingRequiredFieldError from tableauserverclient.models import TaskItem, PaginationItem from tableauserverclient.server import RequestFactory from tableauserverclient.helpers.logging import logger class Tasks(Endpoint): @property d...
524b99149e8db016605ee52e984e4f08037c85a3
110044654f706e920380dad2779bb32a77f1f26f
/test/gnutools.py
eb0d8476132e6530a131ec5daf77fea8d1c64dcc
[ "MIT", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unknown-license-reference" ]
permissive
SCons/scons
89327bb9635cee6e7cc59249edca9cd859d7d1ff
b2a7d7066a2b854460a334a5fe737ea389655e6e
refs/heads/master
2023-09-01T19:37:03.603772
2023-08-28T04:32:42
2023-08-28T04:32:42
104,670,160
1,827
342
MIT
2023-09-14T15:13:21
2017-09-24T19:23:46
Python
UTF-8
Python
false
false
4,804
py
gnutools.py
#!/usr/bin/env python # # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, ...
8eff3a317a9217faa7bf54c9f29becb66511a18f
5dc35a39169d191166c44b7ac45389a14e5b0857
/rest/notification/list-get-example-2/list-get-example-2.8.x.py
53d41bdbaa75b06a2b6cb81cca2b00d9f53b4867
[ "MIT" ]
permissive
TwilioDevEd/api-snippets
035b7ceaf9c03c932010919ee1747bf895d4591e
ca6160d8e626bdf137f783324807285bb01d006f
refs/heads/master
2023-08-17T19:20:35.751733
2023-08-04T18:47:58
2023-08-04T18:47:58
49,965,712
267
551
MIT
2023-09-11T14:04:34
2016-01-19T16:21:44
Java
UTF-8
Python
false
false
577
py
list-get-example-2.8.x.py
# Download the Python helper library from twilio.com/docs/python/install import os from twilio.rest import Client from datetime import date # Your Account Sid and Auth Token from twilio.com/user/account # To set up environmental variables, see http://twil.io/secure account_sid = os.environ['TWILIO_ACCOUNT_SID'] auth_t...
e72be2f1841df4920bfee26ba1c808e79f5d58a7
56a77194fc0cd6087b0c2ca1fb6dc0de64b8a58a
/applications/MeshingApplication/tests/test_mpi_parmmg.py
9063dab435a8b06d4bd9d914182c1a24d798896c
[ "BSD-3-Clause" ]
permissive
KratosMultiphysics/Kratos
82b902a2266625b25f17239b42da958611a4b9c5
366949ec4e3651702edc6ac3061d2988f10dd271
refs/heads/master
2023-08-30T20:31:37.818693
2023-08-30T18:01:01
2023-08-30T18:01:01
81,815,495
994
285
NOASSERTION
2023-09-14T13:22:43
2017-02-13T10:58:24
C++
UTF-8
Python
false
false
10,361
py
test_mpi_parmmg.py
import os import math import json import KratosMultiphysics from KratosMultiphysics import ParallelEnvironment, IsDistributedRun import KratosMultiphysics.MeshingApplication import KratosMultiphysics.kratos_utilities as kratos_utilities import KratosMultiphysics.KratosUnittest as KratosUnittest from KratosMultiphysics....
8e5e95ed8739e9dba969bb0ad6d637b8851f5289
66ce19daa74e0d1e796300b27f66aedea0820b13
/cramming/architectures/losses.py
642ad0f6e5302926d5978c0f0efe516676f35277
[ "MIT" ]
permissive
JonasGeiping/cramming
5a8026858fb730660959439c47c3c5e4ebf1722a
1397b8c8ecf11e7a8e714d17d44f44e3664af711
refs/heads/main
2023-08-17T07:18:49.370984
2023-08-07T14:13:26
2023-08-07T14:13:26
583,172,165
1,111
87
MIT
2023-06-13T16:49:39
2022-12-29T01:29:41
Python
UTF-8
Python
false
false
7,934
py
losses.py
"""Alternatives to CrossEntropyLoss. Currently not hooked into crammed_bert.py, but tried with a previous version.""" import torch import math class CrossEntropyWithZLoss(torch.nn.Module): """Cross Entropy plus logit regularization via z_loss.""" __constants__ = ["ignore_index", "z_loss_factor"] ignore_i...
428fded2efa2b793eb433e98bdc7c086671d1817
578db86c51d44ebddd0dc7b1738985b3dc69eb74
/corehq/apps/userreports/ui/help_text.py
a2820d0169a9773d2881319e016d7352eed61288
[ "BSD-3-Clause" ]
permissive
dimagi/commcare-hq
a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b
e7391ddae1af1dbf118211ecb52c83fc508aa656
refs/heads/master
2023-08-16T22:38:27.853437
2023-08-16T19:07:19
2023-08-16T19:07:19
247,278
499
203
BSD-3-Clause
2023-09-14T19:03:24
2009-07-09T17:00:07
Python
UTF-8
Python
false
false
2,070
py
help_text.py
from django.utils.translation import gettext_lazy as _ TABLE_ID = _( "Choose something short, unique, and memorable using " "lowercase letters, numbers, and underscores") REPORT_ID = _( 'The System ID of the report (sometimes needed in APIs or other advanced features)' ) DATA_SOURCE_ID = _( 'The System...
5a26cc49cf22b269c6205e8b46daf3ae75f96131
9905b1e94470e404ea189995a905c6e2ff4ba0bf
/src/mplhep/plot.py
3c1c40b42c59817de7f3ed08b16e6bcd34c76aba
[ "MIT" ]
permissive
scikit-hep/mplhep
f1f6e340146b34eee758f3f695308f3299805132
2b61de182bf8d47abd975adb0afaccec318d9693
refs/heads/master
2023-08-25T08:48:01.320711
2023-08-17T19:34:33
2023-08-17T19:34:33
184,555,939
157
60
MIT
2023-08-22T03:31:46
2019-05-02T09:41:43
Python
UTF-8
Python
false
false
42,290
py
plot.py
from __future__ import annotations import collections.abc import inspect import warnings from collections import OrderedDict, namedtuple from typing import TYPE_CHECKING, Any, Union import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np from matplotlib.offsetbox import AnchoredText from matplotli...
39c404b433c5279b07d083abc1f5f0e47d0a1d96
0744dcc5394cebf57ebcba343747af6871b67017
/tools/ttrace_parser/scripts/ttrace.py
1ae01ab5bfd9e733a2b74b4d7a23488a68543e6b
[ "Apache-2.0" ]
permissive
Samsung/TizenRT
96abf62f1853f61fcf91ff14671a5e0c6ca48fdb
1a5c2e00a4b1bbf4c505bbf5cc6a8259e926f686
refs/heads/master
2023-08-31T08:59:33.327998
2023-08-08T06:09:20
2023-08-31T04:38:20
82,517,252
590
719
Apache-2.0
2023-09-14T06:54:49
2017-02-20T04:38:30
C
UTF-8
Python
false
false
19,521
py
ttrace.py
#!/usr/bin/env python ########################################################################### # # Copyright 2017 Samsung Electronics 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 ...
9111c25da1be1a266d8510dbc30ebbd27e9b1e39
a2b20597759990445081057d35d113434cfcf970
/stubs/typeshed/typeshed/stubs/pywin32/win32com/axdebug/contexts.pyi
c1c9fbfd99d3b10c31ee38a32a3facc925b2699b
[ "Apache-2.0", "MIT" ]
permissive
facebook/pyre-check
34059599c02b65605c574f13555229f3b931fd4e
fe8ccedc572cc1faa1fd01e9138f65e982875002
refs/heads/main
2023-09-03T19:10:11.587028
2023-09-02T07:40:35
2023-09-02T07:40:35
110,274,488
6,703
575
MIT
2023-09-13T17:02:32
2017-11-10T17:31:36
OCaml
UTF-8
Python
false
false
43
pyi
contexts.pyi
from win32comext.axdebug.contexts import *
e1344434cb80ef974b5268a8f6c4bb5e017bb2e8
9bc2e2961f6f7c4a47e6eebc897fbf14a4e85d61
/studio/cli.py
c1c9f46ed6fd49e59634cb0fd13a57231a067274
[ "Apache-2.0" ]
permissive
studioml/studio
9ee8fd12a9fa0ac09144e2520b1a3be8756ab2fa
e8aedf9c15baa872eb7aee4d6b28ad6208a9fca2
refs/heads/master
2023-08-16T01:54:59.184542
2023-01-09T20:06:01
2023-01-09T20:06:01
91,284,550
406
59
Apache-2.0
2023-09-06T17:23:10
2017-05-15T01:49:28
Python
UTF-8
Python
false
false
3,582
py
cli.py
import argparse import sys import time from terminaltables import AsciiTable from studio import model from studio.util import logs _my_logger = None def print_help(): print('Usage: studio runs [command] arguments') print('\ncommand can be one of the following:') print('') print('\tlist [username] - ...
707d9ca6480180b4f68b15bd395f98ca54623c97
8819daac35f2739c7ecbd175d728dd9983fc025c
/tutorials/data-deduplication/recipes/basic.py
fde9c723d8dda02dbb9816dbc5181649be8adb80
[ "MIT" ]
permissive
explosion/prodigy-recipes
7410cef04c8b99aa01216ea35cd613fea724e472
066101d38eb53f33069ff1ce197cd506f3b8462e
refs/heads/master
2023-09-01T09:59:29.171287
2023-08-28T11:33:39
2023-08-28T11:33:39
113,669,374
438
116
null
2023-09-06T21:29:40
2017-12-09T12:57:34
Jupyter Notebook
UTF-8
Python
false
false
1,202
py
basic.py
import prodigy from prodigy.components.loaders import JSONL from jinja2 import Environment, select_autoescape, FileSystemLoader, Markup @prodigy.recipe( "duplicate", dataset=("The dataset to save to", "positional", None, str), file_path=("The jsonl file with matched items", "positional", None, str), ) def...
989f3352b2dbcccf28ff1e4ce516cfa77cc5b85a
29f18e8ddde0379cef7fa00b1a50058be3cafa79
/numba/tests/test_linalg.py
1ef259e226834b95dbf14014a57ad434bad26326
[ "LicenseRef-scancode-secret-labs-2011", "BSD-3-Clause", "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-free-unknown", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "MIT", "LicenseRef-scancode-unknown-license-reference", "Python-2.0", "BSD-2-Clause" ]
permissive
numba/numba
9a8345ff5f7d57f0ffec40e39941ebf2684df0d1
46059957ad416e68476d1e5f32ccd59f7d5df2bb
refs/heads/main
2023-08-09T22:29:38.170300
2023-08-07T15:00:27
2023-08-07T15:00:27
3,659,275
8,247
1,151
BSD-2-Clause
2023-09-13T14:43:48
2012-03-08T11:12:43
Python
UTF-8
Python
false
false
96,098
py
test_linalg.py
import contextlib import gc from itertools import product, cycle import sys import warnings from numbers import Number, Integral import platform import numpy as np from numba import jit, njit, typeof from numba.core import errors from numba.tests.support import (TestCase, tag, needs_lapack, needs_blas, ...
79eab94b2ede02e16ca44abf4803d1a72747323f
b43e0384ec4bfacec2571a2bb41ce563267db449
/jesse/services/required_candles.py
99697e1e25307857c640dca34bcae65a90020477
[ "MIT" ]
permissive
jesse-ai/jesse
55b73448b767492a20f8bc56c28306a1a24f8599
fadb03b5fcc06f0655c6a5d877435fb872a97c5e
refs/heads/master
2023-08-24T15:28:52.875208
2023-08-24T13:53:31
2023-08-24T13:53:31
156,847,937
5,259
722
MIT
2023-09-10T13:51:26
2018-11-09T10:38:44
Python
UTF-8
Python
false
false
5,742
py
required_candles.py
import arrow import numpy as np import jesse.helpers as jh from jesse.config import config from jesse.exceptions import CandleNotFoundInDatabase from jesse.models import Candle from jesse.services.cache import cache from jesse.services.candle import generate_candle_from_one_minutes from jesse.store import store def ...
9f7587877b46341f9b4f33c71aae525a3beb323a
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/GoogleVertexAI/Integrations/GoogleVertexAI/GoogleVertexAI.py
197682d40b75c6cb4cf2327b4effe8ff917c88b9
[ "MIT" ]
permissive
demisto/content
6d4722d46f0ff0beea2748e9f7de585bf91a78b4
890def5a0e0ae8d6eaa538148249ddbc851dbb6b
refs/heads/master
2023-09-04T00:02:25.618032
2023-09-03T21:56:22
2023-09-03T21:56:22
60,525,392
1,023
1,921
MIT
2023-09-14T20:55:24
2016-06-06T12:17:02
Python
UTF-8
Python
false
false
11,247
py
GoogleVertexAI.py
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 ''' IMPORTS ''' import json import urllib3 # Disable insecure warnings urllib3.disable_warnings() ''' GLOBAL Variables ''' DISABLE_SSL = demisto.params().get('insecure', False) PROXY = demisto.params().get('proxy') PROMP...
846ec1a85356ab52f29cc8e82e021e778a585177
07926048f900b4d9e88b45670f955a319ed758c5
/mpc/env_dx/cartpole.py
43556cc9af68b406f6a661d2427d76c48f9fd50a
[ "MIT" ]
permissive
locuslab/mpc.pytorch
8f8f3a4323247d58609b3bffe8402208fd0f8a64
63732fa85ab2a151045493c4e67653210ca3d7ff
refs/heads/master
2022-11-20T12:27:48.708670
2022-11-11T00:39:47
2022-11-11T00:39:47
151,274,974
731
136
MIT
2022-07-17T21:42:12
2018-10-02T15:09:04
Python
UTF-8
Python
false
false
4,439
py
cartpole.py
#!/usr/bin/env python3 import torch from torch.autograd import Function, Variable import torch.nn.functional as F from torch import nn from torch.nn.parameter import Parameter import numpy as np from mpc import util import os import shutil FFMPEG_BIN = shutil.which('ffmpeg') import matplotlib matplotlib.use('Agg'...
8126a3ce35b2a7c23f9b892da4cbbf3aee8d1c98
3e8c37a02052850b06a33b4eb310d51989d72b91
/examples/morse_code.py
6f349d83083d5addaf961fc3419778a6fea483fc
[ "MIT" ]
permissive
pimoroni/blinkt
8a4c62a90dac968defe62d4c7fc8cf42b1d5d721
27a7dfcd267261a56860ed1f77af7318a31e5488
refs/heads/master
2023-09-02T02:47:43.476849
2022-02-09T22:17:53
2022-02-09T22:17:53
61,641,200
330
144
MIT
2023-02-28T17:39:01
2016-06-21T14:38:02
C
UTF-8
Python
false
false
824
py
morse_code.py
#!/usr/bin/env python import time import blinkt blinkt.set_clear_on_exit() def show_all(state): """Set all LEDs.""" for i in range(blinkt.NUM_PIXELS): val = state * 255 blinkt.set_pixel(i, val, val, val) blinkt.show() def dot(): """Blink LEDs for 0.05 seconds.""" show_all(1) ...
9bd3b489f5453b1e3f951d2f7aea1395e416595d
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/common/blueprints/__init__.py
3844b8b23861a6f12793840806a7231102f35fc2
[]
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
4,292
py
__init__.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/common/blueprints/__init__.py import typing import nations from constants import IS_CLIENT from debug_utils import LOG_CURRENT_EXCEPTION from soft_exception import SoftException from wotdecorators import singleton from dossiers2.custom.cac...
a9d18f7be52c482425ba8095a99ecc5e03001fdb
dfd9b83c93395e75d92be8d9ff5175174dafdd82
/Server/integrations/basic.client_group/BasicClientGroupExternalAuthenticator.py
cbbd74ac6a4bc4601342997a23f696c8043e0e20
[ "MIT" ]
permissive
GluuFederation/oxAuth
1ebc5775da8762db1e59a7cbb0769b6fc3cf21fc
0933f5ef56fc78d65cbec6e4a4310ffa3d175cec
refs/heads/master
2023-08-23T16:09:14.123800
2023-08-01T07:39:01
2023-08-01T07:39:01
18,150,497
425
187
MIT
2023-09-07T11:04:16
2014-03-26T19:14:35
Java
UTF-8
Python
false
false
6,858
py
BasicClientGroupExternalAuthenticator.py
# oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. # Copyright (c) 2019, Gluu # # Author: Yuriy Movchan # from org.gluu.service.cdi.util import CdiUtil from org.gluu.oxauth.security import Identity from org.gluu.model.custom.script.type.auth import PersonA...
a7d493e0e6631ae4b4e251b0b915f5d93ede1194
94a3a36c80ba3b69fae8465a5481bc7eef620ea7
/train_lemmatizer.py
b7f734949b1d5195f07068b508cd02e9450a9d30
[ "Apache-2.0" ]
permissive
TurkuNLP/Turku-neural-parser-pipeline
6ebf113a0102a3f6e05ee8e0734a9ed3e8dc56f5
a3af15b321b32b0373a67b982f9a3e6c578a43f2
refs/heads/master
2022-10-05T09:22:11.493033
2022-09-09T11:52:54
2022-09-09T11:52:54
132,604,829
110
39
Apache-2.0
2021-10-11T13:50:52
2018-05-08T12:21:05
Python
UTF-8
Python
false
false
6,136
py
train_lemmatizer.py
""" A bit experimental script for training new models for lemmatization """ import os import sys import glob from shutil import copyfile, rmtree import re from distutils.util import strtobool from tnparser.lemmatizer_mod import Lemmatizer, read_conllu ID, FORM, LEMMA, UPOS, XPOS, FEATS, HEAD, DEPREL, DEPS, MISC = r...
2f11ae72ae6ba8ce252520c5b75403f1f147af19
1016407a00917cde044e37e7323458f4e30daf73
/tests/parser/test_matrix.py
7339d65d77dcfb9cdfeb4a56b3a2e28b54973fdb
[ "MIT" ]
permissive
moshi4/pyCirclize
47970cc4b4bdf717794a03d2caa0b0fe62dbf5e2
90e78d996b02af50fda8082310ca784586f7b82c
refs/heads/main
2023-08-04T09:38:07.924711
2023-07-20T10:30:49
2023-07-20T10:30:49
579,313,517
410
18
MIT
2023-08-23T12:38:12
2022-12-17T09:21:45
Python
UTF-8
Python
false
false
4,351
py
test_matrix.py
from pathlib import Path import pandas as pd from pycirclize.parser import Matrix def test_load_dataframe_matrix(matrix_df: pd.DataFrame): """Test load panda dataframe matrix""" # Load pandas matrix dataframe matrix = Matrix(matrix_df) # Test row & column names row_names = ["S1", "S2", "S3"] ...
ad55670eee8e750b4b54df339059838b3715e128
09a6d8dbad5b92f93791948b5bf9b75f5cb2e5ce
/pennylane/devices/default_qubit.py
f4286aa38979859fd6142be94aff21d0008a4b34
[ "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
43,614
py
default_qubit.py
# Copyright 2018-2021 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...
ec53d5473b76e2bd4d212e3a4f55465db2fcb6bf
b6ef14f2450db87b8b902ee2b606a3d3b223f0ca
/dns/dnssecalgs/rsa.py
e95dcf1ddc45ad7c2731b258f5edd3abd34e5248
[ "ISC", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
rthalley/dnspython
88f6b18738b2548e83e6f82e5a296dfa555b77d3
c465d3c0e15a52e4109c9f80131e657d8bdb0471
refs/heads/master
2023-08-30T17:03:04.472884
2023-08-29T21:11:10
2023-08-29T21:11:17
2,261,155
2,049
554
NOASSERTION
2023-09-14T16:05:48
2011-08-24T11:36:39
Python
UTF-8
Python
false
false
3,555
py
rsa.py
import math import struct from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.asymmetric import padding, rsa from dns.dnssecalgs.cryptography import CryptographyPrivateKey, CryptographyPublicKey from dns.dnssectypes import Algo...
5fe9ccab532cba8c8a0a67a61f861d88f03d1fb1
a8f1887959f08b609cecd1049ec84094dc2505f5
/src/sagemaker_xgboost_container/algorithm_mode/integration.py
563fac1ef1f26ffb85f0bf558b564e3adad00ce9
[ "Apache-2.0" ]
permissive
aws/sagemaker-xgboost-container
b4753bbc1eb1a5f71672db6928289c9e44ed0d23
d2b7e83038956e158d2b07c809026a8ffb2e832c
refs/heads/master
2023-09-04T19:56:07.539331
2023-08-29T19:48:37
2023-08-29T19:48:37
187,721,865
107
76
Apache-2.0
2023-08-29T19:49:15
2019-05-20T22:30:07
Python
UTF-8
Python
false
false
1,489
py
integration.py
# Copyright 2019 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' file acc...
01a449f006f08fdbae1f17b8062e83da1e9eb32b
07434513334237d453faae8972b136f28b8d1e2c
/remme/shared/forms/__init__.py
57949205fcc7079ee476bc93e965dca821c23d78
[ "Apache-2.0" ]
permissive
Remmeauth/remme-core
5a595391659e60ce82fbe73883be13df8a52dad9
3a8ac8d8f6ba1a1126c028c81d350c9475fe9834
refs/heads/master
2021-03-27T14:17:19.966578
2019-05-21T17:00:15
2019-05-21T17:00:15
121,400,220
132
30
Apache-2.0
2021-12-29T20:13:14
2018-02-13T15:36:38
Python
UTF-8
Python
false
false
718
py
__init__.py
from .base import ProtoForm from .pub_key import ( NewPublicKeyPayloadForm, RevokePubKeyPayloadForm, ) from .account import ( TransferPayloadForm, GenesisPayloadForm, get_address_form, ) from .pub_key import ( NewPublicKeyPayloadForm, NewPubKeyStoreAndPayPayloadForm, RevokePubKeyPayloadF...
c1988b00af449128640cd9820902026f2f78717e
3395a234e7c80d011607e79c49cd48bf516f256b
/dependencies/jedi/third_party/django-stubs/django-stubs/utils/tree.pyi
75a7c7b24eadaaeaaf8cadd4d3f9c9c3720304f6
[ "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
799
pyi
tree.pyi
from typing import Any, Dict, Iterable, Optional, Tuple, Union, Sequence, List from django.db.models.sql.where import NothingNode _NodeChildren = Iterable[Union["Node", NothingNode, Sequence[Any]]] class Node: children: List[Any] default: Any = ... connector: str = ... negated: bool = ... def __i...
5b0001ce94664d22bad6995c8753ea730147a0a2
8f3b307a592ee4a811c85f9491d7cba912a7d7f8
/src/ontology/util_taxon_conversion.py
42485eadcd8e99c81a5730da811a72b9b2bfaac8
[ "CC-BY-4.0" ]
permissive
FoodOntology/foodon
3e71c1098dc6436a4ab1b735b13e5365a9a49a6c
6bea195380238d5c16f6e60ae7c24988b104f5e8
refs/heads/master
2023-08-07T16:20:16.828032
2023-08-04T17:53:50
2023-08-04T17:53:50
54,141,883
163
35
CC-BY-4.0
2023-06-21T18:39:38
2016-03-17T18:26:39
Python
UTF-8
Python
false
false
8,311
py
util_taxon_conversion.py
#!/usr/bin/python # -*- coding: utf-8 -*- # # A delicate script to deprecate FoodON plant and animal organisms when they # have a subclass axiom " 'in taxon' some [NCBITaxon organism]". The subclass # axiom is removed, and the class is converted to be about the NCBITaxon # organism so that all Foodon annotations and ...
b399e7618f08382e31771816010e0fc8c61cbccf
e7efae2b83216d9621bd93390959d652de779c3d
/mongo/datadog_checks/mongo/collectors/db_stat.py
86451b428f78cde7e7faebb9b4166b2e521f1858
[ "BSD-3-Clause", "MIT", "BSD-3-Clause-Modification", "Unlicense", "Apache-2.0", "LGPL-3.0-only", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "CC0-1.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
DataDog/integrations-core
ee1886cc7655972b2791e6ab8a1c62ab35afdb47
406072e4294edff5b46b513f0cdf7c2c00fac9d2
refs/heads/master
2023-08-31T04:08:06.243593
2023-08-30T18:22:10
2023-08-30T18:22:10
47,203,045
852
1,548
BSD-3-Clause
2023-09-14T16:39:54
2015-12-01T16:41:45
Python
UTF-8
Python
false
false
1,763
py
db_stat.py
# (C) Datadog, Inc. 2020-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from datadog_checks.mongo.collectors.base import MongoCollector from datadog_checks.mongo.common import MongosDeployment, ReplicaSetDeployment class DbStatCollector(MongoCollector): """Collects data...
49044f15feda126a9d1155c96463441c788ec6ac
3abc1fef99ac6ce0b845a1090fae7f6875fee729
/src/ralph/lib/custom_fields/tests/api.py
cf361d9ecf336e583524dcfae66a39d113c8c3ea
[ "Apache-2.0" ]
permissive
allegro/ralph
5ff9165a202e836061c99e8af20214e0d651622f
b4a72356f527b1f12c7babd7465d2d7fa3ffb0d3
refs/heads/ng
2023-09-02T01:13:43.672554
2023-09-01T09:48:38
2023-09-01T09:48:38
4,359,038
1,970
617
Apache-2.0
2023-09-01T09:44:39
2012-05-17T14:04:57
Python
UTF-8
Python
false
false
964
py
api.py
from django.conf.urls import include, url from rest_framework import routers, serializers, viewsets from ..api import ( CustomFieldsFilterBackend, NestedCustomFieldsRouterMixin, WithCustomFieldsSerializerMixin ) from .models import SomeModel class SomeModelSerializer( WithCustomFieldsSerializerMixin,...
bddc34d7290bcdb8c71b9a45038c5eac9fbf0889
eda6e7b8f399dedcdb960f4b48a2134b978f8d83
/bnpy/mergemove/zzzdeprecated/MergePlanner.py
04557098a4481ac25cf8fee6ddc75c8ab2765647
[ "BSD-3-Clause" ]
permissive
bnpy/bnpy
8ed61bc4fe2f0ed99e0254c11a21c27c0cee59b2
ffc2242427451aa6a61dcac1473c47577a5ade6f
refs/heads/master
2023-08-16T06:49:58.716279
2022-10-15T15:59:12
2022-10-15T15:59:12
75,731,181
197
54
NOASSERTION
2023-07-21T20:59:10
2016-12-06T12:56:07
Python
UTF-8
Python
false
false
17,920
py
MergePlanner.py
''' MergePlanner.py Contains methods necessary for advanced selection of which components to merge. ''' import numpy as np from collections import defaultdict from bnpy.util import isEvenlyDivisibleFloat import bnpy.mergemove.MergeLogger as MergeLogger # Constant defining how far calculated ELBO gap can be from zero...
ca92dd38111094f5a06ad0cbea0b20d7257ac4a2
568fa58296378fa129ab3349adf010daa44ed45b
/tests/st/ops/ascend/cube/test_depthwise_ad_001.py
49718ce50e6d110bf60f9ef8d9c76bb4c987bcad
[ "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
2,525
py
test_depthwise_ad_001.py
# Copyright 2019 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 a...
724d0ab96f0b973937e6723ab78f90059f33d139
d08cf46d3e16ab8e6a958731168469ba38daf069
/shenfun/matrixbase.py
d5fbaed47d69e4f308a28b4ffa3c19174c54f940
[ "BSD-2-Clause" ]
permissive
spectralDNS/shenfun
ce808edc5258c896f2cccfbd88e67153e3f621c9
bcda39d8d8e4741df1cafe719d81733cc1024def
refs/heads/master
2023-07-27T20:29:57.075970
2023-07-11T12:33:04
2023-07-11T12:33:04
79,914,066
190
46
BSD-2-Clause
2022-05-11T19:10:33
2017-01-24T13:29:02
Python
UTF-8
Python
false
false
81,148
py
matrixbase.py
r""" This module contains classes for working with sparse matrices. """ from __future__ import division import functools from copy import copy, deepcopy from collections.abc import Mapping, MutableMapping from collections import defaultdict from numbers import Number import numpy as np import sympy as sp from scipy.sp...
b51d1881f5d59a143927cfd82c3102d84a3a2a2f
6436d1e6c23f9f43a8025889dc4414a3ad66acf2
/Assets/Python/Contrib/TechWindowWide.py
2b4be480ec7675b59951129630e590f19b30931e
[ "MIT" ]
permissive
dguenms/Dawn-of-Civilization
b710195c4f46fe11d9229182c3b1e07b77f42637
a305e7846d085d6edf1e9c472e8dfceee1c07dd4
refs/heads/develop
2023-09-04T04:57:00.086384
2023-09-01T15:24:28
2023-09-01T15:24:28
45,362,597
116
121
MIT
2023-02-08T00:18:53
2015-11-01T23:52:28
C++
ISO-8859-1
Python
false
false
18,400
py
TechWindowWide.py
## TechWindowWide ## ## Originally by SirRethcir: Techanzeige hinzugefügt ## Enhanced by Roamty, Caesium, Guarav ## ## Copyright (c) 2008 The BUG Mod. from CvPythonExtensions import * import CvUtil # BUG - Options - end import BugCore TechWindowOpt = BugCore.game.TechWindow # BUG - Options - end local...
a360ad1d542de9abbd79b399ac041dad4aea7beb
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AlipayCommerceWaterUsertaskdetailBatchqueryResponse.py
992a8812f1f925b8485d1d3c53a62fd6c2981b10
[ "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,947
py
AlipayCommerceWaterUsertaskdetailBatchqueryResponse.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.UserTaskDetailResponse import UserTaskDetailResponse class AlipayCommerceWaterUsertaskdetailBatchqueryResponse(AlipayResponse): def __init__(self): super...
81de5a860093be3855178f8e5f924d30349323a8
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/HLTrigger/HLTanalyzers/test/harvesting.py
6860d433a0620dd8dd5ea2d08b5fcda9f06e325b
[ "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,694
py
harvesting.py
process = cms.Process('HARVESTING') # import of standard configurations process.load('Configuration.StandardSequences.Services_cff') process.load('FWCore.MessageService.MessageLogger_cfi') process.load('Configuration.EventContent.EventContent_cff') process.load('Configuration.StandardSequences.GeometryDB_cff') process...
4304caf1d3e3108de4ee8e2e43bb8a9027b3befe
1577e1cf4e89584a125cffb855ca50a9654c6d55
/pyobjc/pyobjc/pyobjc-framework-Cocoa-2.5.1/PyObjCTest/test_nspointerfunctions.py
e9c883f49dfb7f13e115888ca81a577e44b9550d
[ "MIT" ]
permissive
apple-open-source/macos
a4188b5c2ef113d90281d03cd1b14e5ee52ebffb
2d2b15f13487673de33297e49f00ef94af743a9a
refs/heads/master
2023-08-01T11:03:26.870408
2023-03-27T00:00:00
2023-03-27T00:00:00
180,595,052
124
24
null
2022-12-27T14:54:09
2019-04-10T14:06:23
null
UTF-8
Python
false
false
1,559
py
test_nspointerfunctions.py
from PyObjCTools.TestSupport import * from Foundation import * class TestNSPointerFunctions (TestCase): def testConstants(self): self.assertEqual(NSPointerFunctionsStrongMemory, (0 << 0)) self.assertEqual(NSPointerFunctionsZeroingWeakMemory, (1 << 0)) self.assertEqual(NSPointerFunctionsO...
0777ed92c87502b8bce7533b8147dd1876c702ad
98f1a0bfa5b20a0b81e9e555d76e706c62d949c9
/dglgo/dglgo/model/node_encoder/sgc.py
c46e4ba23ff86d1ef0b7a416aa3979bb6bdc47ce
[ "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
1,718
py
sgc.py
import dgl.function as fn import torch.nn as nn import torch.nn.functional as F from dgl.base import dgl_warning from dgl.nn import SGConv class SGC(nn.Module): def __init__(self, data_info: dict, embed_size: int = -1, bias=True, k=2): """Simplifying Graph Convolutional Networks Edge feature is i...
d43f2e7108a50796fa7da13b7760e54cc5ea6f26
fa3312eb1e6ca712d7b4d9841e93e714864a238a
/apis/v1/boston.py
967f624bdac0be843123d091a724cb16ec372546
[ "MIT" ]
permissive
shaz13/katana
9684ea69c1cffa5bb5a39e87672aa9038633cf29
1f1b49d66c62d81b1b5fd8be31fd3dcf8fdfd725
refs/heads/develop
2023-01-05T17:12:15.817365
2022-12-21T17:48:54
2022-12-21T17:48:54
246,100,187
120
35
null
2022-08-03T14:23:15
2020-03-09T17:31:12
Python
UTF-8
Python
false
false
1,274
py
boston.py
import uuid from loguru import logger from fastapi.routing import APIRouter from apis.models.base import TrainingStatusResponse from apis.models.house import BostonHouseRequestModel, BostonHouseResponseModel from core.trainer import BostonHousePriceTrainerInstance router = APIRouter(prefix="/boston") # Load trained mo...
a3daa8e11edfcf3b37c788589699ab1ec5622d66
5849e622803db1f388ad7dd24a1430abe86ecf05
/test/test_stats.py
c97e3c98106fb5aeb531811dbf62ce1c53dbdba4
[ "BSD-3-Clause" ]
permissive
facebookresearch/PyTorch-BigGraph
8630ad17dd57574229741b26948ebdff1416d3b2
ab12fb79c6da4f5821421153c0e8a6e9ab6808b6
refs/heads/main
2023-08-26T17:59:38.324736
2023-08-25T22:31:20
2023-08-25T22:31:20
151,156,413
3,479
495
NOASSERTION
2022-10-06T20:31:55
2018-10-01T20:41:16
Python
UTF-8
Python
false
false
1,197
py
test_stats.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE.txt file in the root directory of this source tree. from unittest import main, TestCase from torchbiggraph.stats import Stats class Te...
a595222282cbd18d4fddc9ebf50ea6517290346d
374b3f27fe3cf032e88eccac5992c83eba0ad1b2
/tutorials/W3D5_NetworkCausality/solutions/W3D5_Tutorial1_Solution_fb7d91ed.py
ff9d40e298f51b3c40e669b5f1a23b9db4f89188
[ "CC-BY-4.0", "BSD-3-Clause" ]
permissive
NeuromatchAcademy/course-content
e2fdca96bcbdc78afaa209e4e77438f44a56c82d
3d638d00f02d9fd269fa2aff7d062558afdcb126
refs/heads/main
2023-08-16T16:09:09.314153
2023-08-02T06:21:49
2023-08-02T06:21:49
262,856,980
2,678
1,079
CC-BY-4.0
2023-08-17T00:32:24
2020-05-10T19:09:05
Jupyter Notebook
UTF-8
Python
false
false
1,859
py
W3D5_Tutorial1_Solution_fb7d91ed.py
def get_perturbed_connectivity_from_single_neuron(perturbed_X, selected_neuron): """ Computes the connectivity matrix from the selected neuron using differences in means. Args: perturbed_X (np.ndarray): the perturbed dynamical system matrix of shape (n_neurons, timesteps) se...
f8b53b6b3e7298b431addcf096be2cd48c0e254a
7f620e7902c0b9ccb1fcfd1427acd5936ea33814
/mlrun/api/utils/db/backup.py
dc374418eb30665fca099c03094d982f9d2d2681
[ "Apache-2.0" ]
permissive
mlrun/mlrun
2074c230070129ce3becb211b92c90b29a2ce850
b5fe0c05ae7f5818a4a5a5a40245c851ff9b2c77
refs/heads/development
2023-09-06T00:09:21.546135
2023-09-05T19:38:13
2023-09-05T19:38:13
205,706,595
1,093
229
Apache-2.0
2023-09-14T14:14:10
2019-09-01T16:59:19
Python
UTF-8
Python
false
false
8,214
py
backup.py
# Copyright 2023 Iguazio # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softwa...
7600914a5ec54b52cf5d2b9dda231cd3f267239d
a641c7b07e91024f166ee25ee2d07874a704f40c
/train/train_TSP_edge_classification.py
180fb54390fb0245c2c67f007b60715dcae08eac
[ "MIT" ]
permissive
graphdeeplearning/benchmarking-gnns
c901c87bf9441ff6a8f7427b2d0e3f5bcfd9489b
b6c407712fa576e9699555e1e035d1e327ccae6c
refs/heads/master
2023-07-31T21:35:04.971051
2022-05-10T13:22:20
2022-05-10T13:22:20
244,534,808
2,340
468
MIT
2023-06-22T04:03:54
2020-03-03T03:42:50
Jupyter Notebook
UTF-8
Python
false
false
4,021
py
train_TSP_edge_classification.py
""" Utility functions for training one epoch and evaluating one epoch """ import torch import torch.nn as nn import math import dgl from train.metrics import binary_f1_score """ For GCNs """ def train_epoch_sparse(model, optimizer, device, data_loader, epoch): model.train() epoch_loss = 0 ep...
6c97938be872748aa22944a8360ee1676ca1cd25
620323fc090cebaf7aca456ff3f7fbbe1e210394
/print__hprof_or_big_size_file__notify_with_MessageBox.py
a07b65b5676ba051139643cf723fd510a39f6e63
[ "CC-BY-4.0" ]
permissive
gil9red/SimplePyScripts
bd2733372728bf9b9f00570e90316fa12116516b
773c2c9724edd8827a1dbd91694d780e03fcb05a
refs/heads/master
2023-08-31T04:26:09.120173
2023-08-30T17:22:59
2023-08-30T17:22:59
22,650,442
157
46
null
2023-09-08T17:51:33
2014-08-05T16:19:52
Python
UTF-8
Python
false
false
1,454
py
print__hprof_or_big_size_file__notify_with_MessageBox.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "ipetrash" import re import time from pathlib import Path from PyQt5.QtWidgets import QApplication, QMessageBox from PyQt5.QtCore import Qt from print__hprof_or_big_size_file import find_files_by_dirs, DIRS if __name__ == "__main__": app = QApplica...
a35beae913c0383d29a1617079ace45585180d3a
360ae1188ad79e71ccc72da0b9ae709bda678f91
/ryu/services/protocols/bgp/core.py
0f6fe400b720cc15e4378fc2f89a51b5648abc4c
[ "Apache-2.0" ]
permissive
faucetsdn/ryu
47b3523e7ccb381f3bdf2877a3f9f01cb1876054
d6cda4f427ff8de82b94c58aa826824a106014c2
refs/heads/master
2023-09-05T06:37:21.991029
2022-06-09T23:09:40
2022-06-09T23:09:40
2,945,007
385
215
Apache-2.0
2022-11-13T10:50:25
2011-12-09T03:43:50
Python
UTF-8
Python
false
false
18,825
py
core.py
# Copyright (C) 2014 Nippon Telegraph and Telephone Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
2633f9818955d0fa0cd0afb254d68c2b1e01460d
e7149583d700b1c9633dff7395d21ca204f07b5c
/ihp-sg13g2/libs.tech/pycell/pmos_code.py
03c25cdc4583f19f64ffbe9bf9bb31cd68a47d7e
[ "Apache-2.0" ]
permissive
IHP-GmbH/IHP-Open-PDK
380763a4a0c0f17bf3f0882a7710313efde2c282
bc266aae4b8636cc46b5d1b742bb7669a9fdf1b5
refs/heads/main
2023-09-01T01:20:48.883112
2023-08-24T12:28:59
2023-08-24T12:28:59
533,473,538
182
14
Apache-2.0
2023-09-13T12:37:56
2022-09-06T19:28:15
Python
UTF-8
Python
false
false
10,864
py
pmos_code.py
######################################################################## # # Copyright 2023 IHP PDK Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/lic...
3b627ac3aa89df6529055572f704b73dfdc62912
ed8b5913524eb93b7e653165310bad264679add9
/src/steam_network/friends_cache.py
949416a3f2eca08d87c22917629aab897cf3007d
[ "Apache-2.0", "MIT" ]
permissive
ABaumher/galaxy-integration-steam
d413b013c96e0b5384c91d4b5bf334fc3dd1c390
9d2c8dbeeedc59253edc243bda0d92ac8f299935
refs/heads/master
2023-08-17T16:07:42.256731
2023-06-27T15:38:31
2023-06-27T15:38:31
640,713,928
339
11
NOASSERTION
2023-07-11T17:51:30
2023-05-15T00:54:25
Python
UTF-8
Python
false
false
2,832
py
friends_cache.py
import logging import asyncio from dataclasses import dataclass from typing import Dict from .protocol.steam_types import ProtoUserInfo from .cache_proto import ProtoCache logger = logging.getLogger(__name__) @dataclass class AvailableInfo: personal_info: bool = False state: bool = False def ready(sel...
2154cd34e5950f89f74aa858a69d6b390b71aed7
9335c48ecf8e8c003d014b8fc2a2fe1ad22ea379
/pytorch_toolbelt/modules/encoders/common.py
f7979257d5402819396f4db6c96aeea4f64472f9
[ "MIT" ]
permissive
BloodAxe/pytorch-toolbelt
7f86f3f3f9a7cdcb8d49a5f45882f7d16556c535
75e6f467472702acbbb7e690d8cbf5496b859c29
refs/heads/develop
2023-08-28T18:57:51.377858
2023-08-27T09:50:01
2023-08-27T09:50:01
175,851,515
1,503
126
MIT
2023-08-19T14:23:55
2019-03-15T16:02:49
Python
UTF-8
Python
false
false
5,109
py
common.py
"""Wrappers for different backbones for models that follows Encoder-Decoder architecture. Encodes listed here provides easy way to swap backbone of classification/segmentation/detection model. """ import math import warnings from typing import List, Union, Tuple, Iterable, Any import torch from torch import nn, Tenso...
44d51c03351faa6eb840e54fd8845dc7b91362b0
6f0ceee714bccf2a89c34a06aabd3bcb781a2fa4
/python/mxnet/gluon/contrib/estimator/batch_processor.py
aa5adbfdea5f05ea4a7d62c4e98e136a850fd170
[ "Apache-2.0", "MIT", "Unlicense", "BSL-1.0", "NCSA", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSD-2-Clause", "OFL-1.0", "BSD-2-Clause-Views", "Zlib" ]
permissive
yajiedesign/mxnet
5a495fd06dd1730c17d2d27d7e46c8a770847f17
8e5a16cf673db5aceb48d2cf7a0fc1abd0ee5e51
refs/heads/master
2021-03-30T22:37:18.603396
2020-10-23T06:40:17
2020-10-23T06:40:17
43,763,550
214
59
Apache-2.0
2020-06-01T23:31:15
2015-10-06T16:36:40
C++
UTF-8
Python
false
false
3,925
py
batch_processor.py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
8708f8605ac8059caa6b27c9f4ce4df3377a73e0
9ed4d46aedd4d4acadb48d610e940594b5b7b3fd
/backtracking/power_sum.py
fcf1429f8570ccc3c60cfa528b2d41edf8d59c88
[ "MIT" ]
permissive
TheAlgorithms/Python
7596a0e236ed12a61f9db19a7ea68309779cc85b
421ace81edb0d9af3a173f4ca7e66cc900078c1d
refs/heads/master
2023-09-01T17:32:20.190949
2023-08-29T13:18:10
2023-08-29T13:18:10
63,476,337
184,217
48,615
MIT
2023-09-14T02:05:29
2016-07-16T09:44:01
Python
UTF-8
Python
false
false
2,676
py
power_sum.py
""" Problem source: https://www.hackerrank.com/challenges/the-power-sum/problem Find the number of ways that a given integer X, can be expressed as the sum of the Nth powers of unique, natural numbers. For example, if X=13 and N=2. We have to find all combinations of unique squares adding up to 13. The only solution is...
9a57cfa13b76c1feeb49c4aa5b5753828da31c85
952dc66c61966f099756cdb6c2d13b40352f63cc
/zerver/tests/test_mirror_users.py
2b4049434c2def9b9d75d3353e11a783f50b5ec4
[ "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
6,764
py
test_mirror_users.py
from typing import Any, List from unittest import mock from django.db import IntegrityError from django.utils.timezone import now as timezone_now from zerver.actions.message_send import create_mirror_user_if_needed from zerver.lib.create_user import create_user_profile from zerver.lib.test_classes import ZulipTestCas...
5f32820a75d36ddd571bea5fc740307462eaad9c
f52b8606074c2e0cc0c60b30b51c015fd932b0a2
/virl/cli/ls/commands.py
72ec103f9935cd5b3ad919388aba309f1ee26d6f
[ "MIT" ]
permissive
CiscoDevNet/virlutils
81af101bcca6a28fd584ab4b8f3e1aed5a6345c3
84afb01a6366d54febb9481c364a378f891327f4
refs/heads/master
2023-04-30T12:00:05.233334
2023-03-06T14:46:48
2023-03-06T14:46:48
114,168,527
144
47
MIT
2023-04-25T18:32:39
2017-12-13T21:02:26
Python
UTF-8
Python
false
false
2,004
py
commands.py
import os import click from virl.api import VIRLServer, CachedLab, ViewerPlugin, NoPluginError from virl.cli.views import sim_list_table, lab_list_table from virl.helpers import find_virl, get_cml_client, get_cache_root @click.command() @click.option( "--all/--server", default=False, show_default=False, ...
d14cfa2ae58586c74f071ea38c83d4977eadf8a4
a61bf859ceeb1ba98de3863225e07b29e1d7ce8a
/thonny/plugins/micropython/base_api_stubs/statistics.pyi
8bf56d43c82d553a509c5897adcb361e0649fe23
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
thonny/thonny
3974b1860703e8450b837863682117f525a886c6
8fc9f5c7cbbe1d1c82aa5503ec4b684e28aa608c
refs/heads/master
2023-08-31T03:04:34.685140
2023-08-24T11:38:36
2023-08-24T11:38:36
163,728,962
2,788
1,048
MIT
2023-08-10T18:59:37
2019-01-01T10:29:50
Python
UTF-8
Python
false
false
63
pyi
statistics.pyi
def kaka() -> str: """ blahhaa :return: sss """
055d33855786fec82320a8d4dc22d85a92874257
1a7d9d2f7fff1e965691ca08ac2e556599a5c8f7
/main.py
cead17cf680613a654899adb2bc5c261e01f478c
[ "MIT" ]
permissive
Michaelvll/DeepCCA
aac3b6930113103c3465c553503874939ebbf3f7
63186ba00932337e1181db653c4304395372d334
refs/heads/master
2023-09-01T15:13:32.496792
2023-08-24T17:16:15
2023-08-24T17:16:15
151,364,352
259
70
NOASSERTION
2023-08-24T17:16:17
2018-10-03T05:18:46
Python
UTF-8
Python
false
false
9,233
py
main.py
import torch import torch.nn as nn import numpy as np from linear_cca import linear_cca from torch.utils.data import BatchSampler, SequentialSampler, RandomSampler from DeepCCAModels import DeepCCA from utils import load_data, svm_classify import time import logging try: import cPickle as thepickle except ImportErr...
0a65f8bf2b55c887daae37670ebdd8d958e60c7e
9587c0df0e5b36e2a9cdad9a2666885efe812620
/test/test_replication.py
593cd0abc003765bbee7cb0731587b7114eba40c
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
osmcode/pyosmium
c4d1b743824ea3bda8f3248d3e39a60b22c2940e
0459fb4126f51d215daca03620286c191676c0a1
refs/heads/master
2023-07-20T13:17:04.726937
2023-07-15T18:27:03
2023-07-15T18:27:03
24,344,280
277
63
BSD-2-Clause
2023-05-24T21:26:17
2014-09-22T20:25:42
Python
UTF-8
Python
false
false
10,975
py
test_replication.py
# SPDX-License-Identifier: BSD # # This file is part of Pyosmium. # # Copyright (C) 2022 Sarah Hoffmann. from io import BytesIO from textwrap import dedent from urllib.error import URLError import pytest import requests.exceptions from helpers import mkdate, CountingHandler import osmium as o import osmium.replicati...
0e3654e7c69e8ee843e2b8d2d673cdcbe9d3849e
56a77194fc0cd6087b0c2ca1fb6dc0de64b8a58a
/applications/ShapeOptimizationApplication/tests/opt_process_step_adaption_test/run_test.py
3eac5b6c6b8d31a7f4f33f61c16d064197a95329
[ "BSD-3-Clause" ]
permissive
KratosMultiphysics/Kratos
82b902a2266625b25f17239b42da958611a4b9c5
366949ec4e3651702edc6ac3061d2988f10dd271
refs/heads/master
2023-08-30T20:31:37.818693
2023-08-30T18:01:01
2023-08-30T18:01:01
81,815,495
994
285
NOASSERTION
2023-09-14T13:22:43
2017-02-13T10:58:24
C++
UTF-8
Python
false
false
2,166
py
run_test.py
# Import Kratos core and apps import KratosMultiphysics as KM # Additional imports from KratosMultiphysics.ShapeOptimizationApplication import optimizer_factory from KratosMultiphysics.KratosUnittest import TestCase import KratosMultiphysics.kratos_utilities as kratos_utilities import csv, os # Read parameters with o...
b7538e66613a1daef4e8cc87bcf5514dfe05798a
5e0f64162d53639183c8fcbe9b2ae13df699b4f6
/textattack/constraints/grammaticality/part_of_speech.py
f531f33c7c7667ac412ba737978bce2c7369eba3
[ "MIT" ]
permissive
QData/TextAttack
b0295d995609c9844164a0d76b90405b74b56e3c
00adb8a55580f6dea5fd6952e93f095829e807dd
refs/heads/master
2023-08-27T15:01:42.367433
2023-07-24T16:06:19
2023-07-24T16:06:19
215,173,055
2,581
377
MIT
2023-09-11T16:57:00
2019-10-15T00:51:44
Python
UTF-8
Python
false
false
5,858
py
part_of_speech.py
""" Part of Speech Constraint -------------------------- """ import flair from flair.data import Sentence from flair.models import SequenceTagger import lru import nltk import textattack from textattack.constraints import Constraint from textattack.shared.utils import LazyLoader, device from textattack.shared.validato...
2f5b0eeb4da6bd24b86be2a9c1e7f935f1ea86dc
45826bdfebbd1d7638ab607906ac480031d6118b
/lib/metrics/cityscapes/setup.py
abf3f313e25edd406e99dae2bdb8df6c35f301a0
[ "MIT" ]
permissive
openseg-group/openseg.pytorch
b75cec5c95b6ff71707d8daf7806001bab89ecb3
aefc75517b09068d7131a69420bc5f66cb41f0ee
refs/heads/master
2023-09-06T10:19:57.749113
2022-08-07T09:10:20
2022-08-07T09:10:20
166,743,301
1,227
159
MIT
2021-07-14T06:10:44
2019-01-21T03:34:59
Python
UTF-8
Python
false
false
550
py
setup.py
#!/usr/bin/python # # Enable cython support for eval metrics # Run as # setup.py build_ext --inplace # # WARNING: Only tested for Ubuntu 64bit OS. try: from distutils.core import setup from Cython.Build import cythonize except: print("Unable to setup. Please use pip to install: cython") print("sudo pip...
c15c18bce5290dd762967e507de033c85ec6a844
c3ca0bcea4d1b4013a0891f014928922fc81fe7a
/d3rlpy/algos/qlearning/torch/bear_impl.py
10b83d99b2782b918299bb69be3af0588a2ade24
[ "MIT" ]
permissive
takuseno/d3rlpy
47894b17fc21fab570eca39fe8e6925a7b5d7d6f
4ba297fc6cd62201f7cd4edb7759138182e4ce04
refs/heads/master
2023-08-23T12:27:45.305758
2023-08-14T12:07:03
2023-08-14T12:07:03
266,369,147
1,048
222
MIT
2023-09-02T08:12:48
2020-05-23T15:51:51
Python
UTF-8
Python
false
false
8,509
py
bear_impl.py
import dataclasses from typing import Dict import torch from torch.optim import Optimizer from ....dataset import Shape from ....models.torch import ( ConditionalVAE, ContinuousEnsembleQFunctionForwarder, Parameter, build_squashed_gaussian_distribution, compute_max_with_n_actions_and_indices, ...
373e1d210aa3046302186c5ac74156a92a7286cf
7a6aca7d300c0752f2a73730b743a1a7361e941b
/tensorflow_graphics/image/tests/transformer_test.py
09f0bd5a9d489162bfb1072e89cbcbe7546c4bd0
[ "Apache-2.0" ]
permissive
tensorflow/graphics
ef0abe102398a58eb7c41b709393df3d0b0a2811
1b0203eb538f2b6a1013ec7736d0d548416f059a
refs/heads/master
2023-09-03T20:41:25.992578
2023-08-08T21:16:36
2023-08-08T21:17:31
164,626,274
2,920
413
Apache-2.0
2023-08-27T14:26:47
2019-01-08T10:39:44
Python
UTF-8
Python
false
false
6,043
py
transformer_test.py
# Copyright 2020 The TensorFlow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...