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
79fed6cce67c505d0e54df01110e60a8ed3b5f41
8c0b804f1cc8cbf2f8788727df22a2cc149f7b5c
/gala/coordinates/orphan.py
6ebd08448b02b8f03869ef2572b9fa913b98355e
[ "MIT" ]
permissive
adrn/gala
579cc5a4ecb22df118e1c8a2322a46e935825054
f62e1a6ae7a8466a4db5c8407471b524cf085637
refs/heads/main
2023-09-04T11:42:07.278388
2023-08-18T18:04:35
2023-08-18T18:04:35
17,577,779
115
89
MIT
2023-09-05T11:40:10
2014-03-10T00:56:18
Python
UTF-8
Python
false
false
6,642
py
orphan.py
""" Astropy coordinate class for the Orphan stream coordinate systems """ import astropy.coordinates as coord import astropy.units as u from astropy.coordinates import frame_transform_graph from astropy.coordinates.matrix_utilities import rotation_matrix import numpy as np __all__ = ["OrphanNewberg10", "OrphanKoposov...
d3e70ff11823f81108484cd15da679366ad62561
99dcb18a9e3ea367272f740b8cbf3c34285a0c08
/google/cloud/aiplatform_v1beta1/services/featurestore_service/async_client.py
aa6784e4904ecc37f4ee403d535b71c5411a4389
[ "Apache-2.0" ]
permissive
googleapis/python-aiplatform
926a4873f35dbea15b2fd86c0e16b5e6556d803e
76b95b92c1d3b87c72d754d8c02b1bca652b9a27
refs/heads/main
2023-08-19T23:49:02.180075
2023-08-19T13:25:59
2023-08-19T13:27:27
298,017,988
418
240
Apache-2.0
2023-09-14T21:08:33
2020-09-23T15:43:39
Python
UTF-8
Python
false
false
158,903
py
async_client.py
# -*- coding: utf-8 -*- # Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
0a7b3bedb8c1a28fe000983168420bc4ab9f5082
0529610da235bac1490c4f0b28a58258f05f116c
/contrib/management-packs/hdf-ambari-mpack/src/main/resources/common-services/NIFI/1.0.0/package/scripts/nifi.py
6936dce7534f32b2343893174ca48775a684e17c
[ "GPL-1.0-or-later", "GPL-2.0-or-later", "OFL-1.1", "MS-PL", "AFL-2.1", "GPL-2.0-only", "Python-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
apache/ambari
be1616f332615ef55fc1a47e84353f3e5a45732d
23881f23577a65de396238998e8672d6c4c5a250
refs/heads/trunk
2023-08-31T23:01:31.954106
2023-08-28T06:29:01
2023-08-28T06:29:01
2,442,457
2,078
1,957
Apache-2.0
2023-09-14T16:56:03
2011-09-23T07:00:08
Java
UTF-8
Python
false
false
10,204
py
nifi.py
#!/usr/bin/env python """ 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");...
8a713ad8f46f855244453043b8f026a25b0c5271
979848357aacde78f48cfda4d4ee5db442a4f5ca
/TMD_kv/Python/TMD_kv_ex0.py
3ca411551e6c9f53a219640e4eee4f25550d3033
[]
no_license
bigheadG/mmWave
a41fb42b12c757b1af2fb1476cb27e3fcf9592bf
73823df8daaadce4347d94128c79c40e01759f77
refs/heads/master
2023-08-21T13:20:16.042609
2023-08-16T03:03:11
2023-08-16T03:03:11
175,160,017
114
24
null
null
null
null
UTF-8
Python
false
false
668
py
TMD_kv_ex0.py
''' Target Monitor Detect (ISK) for BM-201" : 2020/03/09 ex0: Hardware: Batman-201 ISK (1)Download lib: install: ~#sudo pip intall mmWave update: ~#sudo pip install mmWave -U ''' import serial import numpy as np from mmWave import trafficMD_kv #import trafficMD as TrafficMD port = serial.Serial("COM189",baudrate =...
b6d9fc86612198ce662b3a0242c7cf0892a7c2ad
a1050bdd29edf32635d3d693afb6e3841fddb5d0
/learning/clustering/clustering_algorithm_test.py
8a5de7dc7316e28bd8a27a610ae196cd24e01207
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
google/differential-privacy
fd2eafae20f2b5b5f9ea814193d4b9e0c12652ca
5e09d51dee26c4c6a5a805a288e19285f3983e6d
refs/heads/main
2023-09-03T09:07:58.451237
2023-08-28T14:03:33
2023-08-28T15:14:39
206,320,938
2,969
397
Apache-2.0
2023-08-14T07:55:30
2019-09-04T13:04:15
Go
UTF-8
Python
false
false
7,722
py
clustering_algorithm_test.py
# Copyright 2021 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
606619f59f2b94d0431706b7bac3032079714749
fb05fb9f9f7fe7eb91072ad62c10200cae10acc6
/src/borg/testsuite/archive.py
cefd6293b733ddb1617177a2f250eaa10661d076
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
borgbackup/borg
c83f2a34e8bcc19859e9696a9425cbf4e23a743c
4ded3620c5e9cd930d2e07e912af6c894abe6d5d
refs/heads/master
2023-09-03T20:36:44.300124
2023-09-03T18:49:50
2023-09-03T18:49:50
35,517,126
10,379
1,053
NOASSERTION
2023-09-14T21:52:33
2015-05-12T23:10:47
Python
UTF-8
Python
false
false
12,951
py
archive.py
import json import os from collections import OrderedDict from datetime import datetime, timezone from io import StringIO from unittest.mock import Mock import pytest from . import rejected_dotdot_paths from ..crypto.key import PlaintextKey from ..archive import Archive, CacheChunkBuffer, RobustUnpacker, valid_msgpac...
1c6036a8c822d3049d4f9342569a7cd71678e939
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/dts/airbyte/airbyte-cdk/python/unit_tests/sources/utils/test_record_helper.py
7f3d535ce05d1eb691b82bfcb9d468a32e324c47
[ "MIT", "Elastic-2.0", "Apache-2.0", "BSD-3-Clause" ]
permissive
alldatacenter/alldata
7bc7713c9f1d56ad6b8e59ea03206d1073b7e047
8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6
refs/heads/master
2023-08-05T07:32:25.442740
2023-08-03T13:17:24
2023-08-03T13:17:24
213,321,771
774
250
Apache-2.0
2023-09-06T17:35:32
2019-10-07T07:36:18
null
UTF-8
Python
false
false
2,653
py
test_record_helper.py
# # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # from unittest.mock import MagicMock import pytest from airbyte_cdk.models import ( AirbyteLogMessage, AirbyteMessage, AirbyteRecordMessage, AirbyteStateMessage, AirbyteStateType, AirbyteTraceMessage, Level, TraceType, ) from ...
a1fdc2ed664e844db7261ec1502132a530d6496e
daa60221ed36dc8e20dd0a2a96521ffa2bdc94c5
/simics/bin/fuzz-summary.py
84ff2db9203bba8d6ebbf0c57382ed45bef781bb
[ "BSD-2-Clause" ]
permissive
mfthomps/RESim
7dbddc1d46653c0443dec9c7930517753bbe5e78
cc83ed799cd37934e1659e1d20abf6c36449e0bf
refs/heads/master
2023-08-10T04:27:36.365806
2023-06-29T15:22:55
2023-06-29T15:22:55
183,653,459
160
30
null
null
null
null
UTF-8
Python
false
false
1,021
py
fuzz-summary.py
#!/usr/bin/env python # # given a an AFL session named by target, provide a summary of # queue files and unique hits files (post playAFL). # import sys import os import glob import json import argparse import subprocess try: import ConfigParser except: import configparser as ConfigParser resim_dir = os.getenv('...
bba2c9bf06ec3c24289a6642a593ae334ae68888
21feee298109acce95e02a46747b29e61afb4b8a
/php_companion/commands/goto_definition_scope.py
08441d7365399b06e85bddcfbb642397e954b0d2
[ "MIT" ]
permissive
erichard/SublimePHPCompanion
d41abf45a4e293b5e409d33c9c40dfa622a7a9d4
59888a057667c90b8c346509eea6bf2e096a7791
refs/heads/main
2023-07-30T05:24:11.962026
2022-06-23T15:39:31
2022-06-23T15:39:31
8,742,601
1,001
169
MIT
2022-06-23T15:39:33
2013-03-13T01:36:45
Python
UTF-8
Python
false
false
1,183
py
goto_definition_scope.py
import sublime import sublime_plugin import re class GotoDefinitionScopeCommand(sublime_plugin.TextCommand): def run(self, edit): run = GTDRun(self.view, self.view.window()) run.do() class GTDRun: def __init__(self, view, window): self.view = view self.window = window ...
91f2f03f79e1d23a183243fccf19dab7ae7e2cc2
ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb
/python_modules/dagster/dagster_tests/general_tests/test_repository.py
1d6c5a70c3e9dd926162b11dfe28d6aaee6891ab
[ "Apache-2.0" ]
permissive
dagster-io/dagster
6adb5deee8bcf3ea1866a6a64f2ed81e1db5e73a
fe21995e0402878437a828c6a4244025eac8c43b
refs/heads/master
2023-09-05T20:46:08.203794
2023-09-05T19:54:52
2023-09-05T19:54:52
131,619,646
8,565
1,154
Apache-2.0
2023-09-14T21:57:37
2018-04-30T16:30:04
Python
UTF-8
Python
false
false
5,588
py
test_repository.py
"""Repository of test jobs. """ import pytest from dagster import ( AssetKey, GraphDefinition, Int, IntMetadataValue, IOManager, JobDefinition, TextMetadataValue, asset, graph, io_manager, job, multiprocess_executor, op, repository, resource, with_resourc...
1e3f3005b85cca4dc63e700b146998078079fa37
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stdlib/@python2/StringIO.pyi
4aa0cb3fcd5a5420f7756340a7345690ca477bd4
[ "Apache-2.0", "MIT" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
1,127
pyi
StringIO.pyi
from typing import IO, Any, AnyStr, Generic, Iterable, Iterator class StringIO(IO[AnyStr], Generic[AnyStr]): closed: bool softspace: int len: int name: str def __init__(self, buf: AnyStr = ...) -> None: ... def __iter__(self) -> Iterator[AnyStr]: ... def next(self) -> AnyStr: ... def cl...
30dc7a9e9fcb5c6f047317f7f1456131c01a3095
c56f70ff9e593118ada1f188e79b0f3015f91f24
/mesh_tensorflow/transformer/gin/layouts/single.gin
d7191c769634d1bafc94deec778a3dbb29e2f69f
[ "Apache-2.0" ]
permissive
tensorflow/mesh
44f567ec4d5fa0db58f1a41b818702603d781c64
fbf7b1e547e8b8cb134e81e1cd350c312c0b5a16
refs/heads/master
2023-08-15T09:18:33.205493
2023-05-16T13:01:43
2023-05-16T13:01:43
149,666,254
1,508
290
Apache-2.0
2023-05-16T13:01:48
2018-09-20T20:23:34
Python
UTF-8
Python
false
false
192
gin
single.gin
# -*-Python-*- utils.run.layout_rules = "" utils.run.mesh_shape = "" # This is likely a CPU, which can not handle bfloat16 activations. utils.get_variable_dtype.activation_dtype = "float32"
3971d6de593d478ec8180abc571d1fa0429addb0
b097bc2fba0629d592d76d9c7649d9a62789afb6
/python_jsonschema_objects/wrapper_types.py
c3af3f06f2f34d9cc2da6d752574c450a0d3ac65
[ "MIT" ]
permissive
cwacek/python-jsonschema-objects
d91bb4d6c69fffcc24f45f33e05174a627293449
2a5aeb29a953cff3d4fd82f19c0d46342af1da36
refs/heads/master
2023-09-01T11:49:43.767991
2023-08-17T01:37:45
2023-08-17T01:37:45
18,216,839
356
113
MIT
2023-09-14T01:56:32
2014-03-28T15:29:21
Python
UTF-8
Python
false
false
11,519
py
wrapper_types.py
import collections import logging import six from python_jsonschema_objects import util from python_jsonschema_objects.validators import registry, ValidationError from python_jsonschema_objects.util import lazy_format as fmt logger = logging.getLogger(__name__) class ArrayWrapper(collections.abc.MutableSequence): ...
67054ae3579c2b254223f3232a8c79ae42dbbc9d
c5a69158ac5966d8ba8f3b2e2fb4c35d49a0658d
/tests/compare.py
bc4bb5bc9f2211c76bd8635b41d0153ae6586536
[ "MIT" ]
permissive
csvoss/onelinerizer
d47202733f1b6935146b05027381bea9fbde0d04
bad341f261d35e56872b4c22297a44dc6d5cfab3
refs/heads/master
2022-07-06T05:51:02.018368
2022-01-15T18:43:08
2022-01-15T18:43:08
29,375,764
1,126
102
MIT
2018-10-20T00:41:35
2015-01-17T01:32:08
Python
UTF-8
Python
false
false
30
py
compare.py
x = 3 y = 4 print (x < y < 5)
cae9fd9a6ab27b98a23479bb3308c6d5adbc2af9
f487532281c1c6a36a5c62a29744d8323584891b
/sdk/python/pulumi_azure/apimanagement/backend.py
753a3c14cadd6cd952376db7c486cd005a7fe009
[ "MPL-2.0", "BSD-3-Clause", "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
32,879
py
backend.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...
e90c7f3f134728e19ef8b3fb945e1aacb992bc24
d05c946e345baa67e7894ee33ca21e24b8d26028
/ethical-hacking/reverse_shell/server.py
e143aed2ee354d92cf4bbd6b2653cf1e2f80005a
[ "MIT" ]
permissive
x4nth055/pythoncode-tutorials
327255550812f84149841d56f2d13eaa84efd42e
d6ba5d672f7060ba88384db5910efab1768c7230
refs/heads/master
2023-09-01T02:36:58.442748
2023-08-19T14:04:34
2023-08-19T14:04:34
199,449,624
1,858
2,055
MIT
2023-08-25T20:41:56
2019-07-29T12:35:40
Jupyter Notebook
UTF-8
Python
false
false
1,539
py
server.py
import socket SERVER_HOST = "0.0.0.0" SERVER_PORT = 5003 BUFFER_SIZE = 1024 * 128 # 128KB max size of messages, feel free to increase # separator string for sending 2 messages in one go SEPARATOR = "<sep>" # create a socket object s = socket.socket() # bind the socket to all IP addresses of this host s.bind((SERVER_...
33b8b468afd041fe46930d44ee8f53f426201d33
97d7455fbaa56813e97cf601e4a23786d47c2e2c
/general_itests/steps/run_steps.py
b332f8e91110cec4f042f2d2982bc4c3ef485aa5
[ "Apache-2.0" ]
permissive
Yelp/paasta
9138fbb0beaaa6146520c1483144679f9d5d4941
6fafc7c86073f136e64b959b963994be3d6160ab
refs/heads/master
2023-08-17T00:00:47.610727
2023-08-10T21:40:26
2023-08-10T21:40:26
44,998,824
1,805
291
Apache-2.0
2023-09-13T20:40:04
2015-10-26T21:35:53
Python
UTF-8
Python
false
false
1,035
py
run_steps.py
# Copyright 2015-2016 Yelp 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 writin...
0d45d12eb9163aaeacd9b326c0ae3cf4a0967ace
c50e7eb190802d7849c0d0cea02fb4d2f0021777
/src/webpubsub/azext_webpubsub/vendored_sdks/azure_messaging_webpubsubservice/rest.py
8da673e1a390ec7f8ade5b4705500532a68c4e3f
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Azure/azure-cli-extensions
c1615b19930bba7166c282918f166cd40ff6609c
b8c2cf97e991adf0c0a207d810316b8f4686dc29
refs/heads/main
2023-08-24T12:40:15.528432
2023-08-24T09:17:25
2023-08-24T09:17:25
106,580,024
336
1,226
MIT
2023-09-14T10:48:57
2017-10-11T16:27:31
Python
UTF-8
Python
false
false
38,376
py
rest.py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
00b88bff3210d4acc652c07da75c700f442397bd
f6b0151d060baa65e09fc84f2761042dae49aa2a
/tests/utils.py
582250cb32db9db42c1af31d557ffab34490380b
[ "MIT" ]
permissive
closeio/tasktiger
8e5686120f7432b0aa01f667f484412e07e0c985
1e1672f2293f845c735b5e0c3277458552becbe7
refs/heads/master
2023-08-28T03:53:50.303526
2023-08-24T10:29:36
2023-08-24T10:29:36
35,581,334
1,344
94
MIT
2023-09-11T10:42:08
2015-05-14T00:26:32
Python
UTF-8
Python
false
false
2,418
py
utils.py
import datetime import logging import time import redis import structlog from tasktiger import TaskTiger, Worker, fixed from .config import DELAY, REDIS_HOST, TEST_DB TEST_TIGER_CONFIG = { # We need this 0 here so we don't pick up scheduled tasks when # doing a single worker run. "ACTIVE_TASK_UPDATE_TIM...
76a72ec2188ba43ccc28fb7cf8538048eb550505
1f20484efc357aae4b7e2f98a191e7a9256f3a58
/irc3/asynchronous.py
e07d14cdc4fd88920dabb7c8bdc2726995796f59
[ "CC-BY-3.0", "MIT", "LicenseRef-scancode-ietf" ]
permissive
gawel/irc3
55b2e4d01ca95f45077f8bad231394551584d7bd
76d6849d5e7a531d649aca766f623f9f30a55545
refs/heads/master
2023-07-15T20:49:40.188267
2023-04-17T09:02:31
2023-04-17T09:02:31
14,820,406
187
58
MIT
2023-02-27T10:18:41
2013-11-30T12:09:48
Python
UTF-8
Python
false
false
3,554
py
asynchronous.py
# -*- coding: utf-8 -*- from .compat import asyncio import re class event: iotype = 'in' iscoroutine = True def __init__(self, **kwargs): # kwargs get interpolated into the regex. # Any kwargs not ending in _re get escaped self.meta = kwargs.get('meta') regexp = self.meta...
664798511939ed739259077279029ce453851e59
2181883c8faac55bfc969a97d22d9b24a3e81ab3
/com/win32com/client/build.py
84dacb566a23463c30c211599b5e2dd691735ac8
[ "PSF-2.0" ]
permissive
mhammond/pywin32
574bf121cfeac8c7a9d28f94ee0f2069a425e8ab
2a7137f21965013020ef9e4f27565db6dea59003
refs/heads/main
2023-09-02T13:16:52.307262
2023-08-17T19:42:26
2023-08-17T19:42:26
108,187,130
4,757
907
null
2023-08-23T01:45:49
2017-10-24T21:44:27
C++
UTF-8
Python
false
false
28,904
py
build.py
"""Contains knowledge to build a COM object definition. This module is used by both the @dynamic@ and @makepy@ modules to build all knowledge of a COM object. This module contains classes which contain the actual knowledge of the object. This include parameter and return type information, the COM dispid and CLSID, et...
f32e1e3a07f9e9f4b49c078e94dbf59ea61767be
fd51c0e7d532b164b58c69e36d196c59cbdac6ff
/data/task_scripts/main/task00002.py
6dc06e62e1db44b37828b093d30efeb57bea21d5
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
facebookresearch/phyre
18fa1db4271fba922b1372610abac718d8833927
d0765dd2f6d6cf41b933a3a57173c63d21fbfa6a
refs/heads/main
2023-08-24T13:54:34.500729
2022-04-20T22:46:08
2022-04-20T22:46:08
192,634,486
462
76
Apache-2.0
2023-07-08T03:40:59
2019-06-19T01:12:56
Python
UTF-8
Python
false
false
1,963
py
task00002.py
# Copyright (c) Facebook, Inc. and its 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 law or ...
2b9c68c1476e525d2926fec980cf36ed156e9e5e
8bb21974ad267f52bb97ea82db6b57ee87482cbc
/core/nn/basic.py
c02cab5a3b765b9954a2e4bf8ceb3f23b653ff19
[ "Apache-2.0" ]
permissive
Tramac/awesome-semantic-segmentation-pytorch
f1f20ed45a1caa016d3ef06225d06093b8a5d7ca
d37d2a17221d2681ad454958cf06a1065e9b1f7f
refs/heads/master
2023-08-29T06:20:59.816176
2023-01-04T08:24:27
2023-01-04T08:24:27
174,904,616
2,762
627
Apache-2.0
2023-01-04T08:24:28
2019-03-11T01:33:25
Python
UTF-8
Python
false
false
5,079
py
basic.py
"""Basic Module for Semantic Segmentation""" import torch import torch.nn as nn import torch.nn.functional as F __all__ = ['_ConvBNPReLU', '_ConvBN', '_BNPReLU', '_ConvBNReLU', '_DepthwiseConv', 'InvertedResidual'] class _ConvBNReLU(nn.Module): def __init__(self, in_channels, out_channels, kernel_size, stride=1,...
1afeb019c80753a5b262c2cf05db5ccc19ab85e2
3779caa500c53f0ee12baa039cda4cde1e7391b9
/Word Break.py
531b91df28756cdcaf4e98290c8612f6ab573cc2
[]
no_license
kongzhidea/leetcode
924d66bcbc8b7b0f793399184870d4f8da309dba
57fc31718ee9cd6a4282c752382e538e42ff02ce
refs/heads/master
2021-10-29T07:07:41.603363
2021-10-27T13:49:29
2021-10-27T13:49:29
63,241,496
125
2
null
null
null
null
GB18030
Python
false
false
513
py
Word Break.py
class Solution: # @param s, a string # @param dict, a set of string # @return a boolean def wordBreak(self, s, dict): n = len(s) f = [0] * n #f[i]表示 是否可以由dict组成 for i in xrange(n): if s[0:i+1] in dict: f[i] = 1 if f[i] == 1: ...
be22892eeaa8049bf9a1919792cff0b5d310c041
42fe96c0a0c55c1f8428a3c856b40ccce74b6173
/multi_obj_pose_estimation/image_multi.py
e26348329b65cfcf61f75ec4662430188ebd0bc3
[ "MIT" ]
permissive
microsoft/singleshotpose
4a8a1da8087ab6a0bc13a54d263e31b26b3a75a5
2c282619101f9f31666dd18b42393375bea1600f
refs/heads/master
2023-08-25T19:40:50.381498
2022-11-28T19:11:09
2022-11-28T19:11:09
139,270,056
475
138
MIT
2022-11-28T19:11:10
2018-06-30T18:09:05
Python
UTF-8
Python
false
false
14,148
py
image_multi.py
#!/usr/bin/python # encoding: utf-8 import random import os from PIL import Image, ImageChops, ImageMath import numpy as np def get_add_objs(objname): # Decide how many additional objects you will augment and what will be the other types of objects if objname == 'ape': add_objs = ['can', 'cat', 'duck',...
523ed78ab472dc923f58eab7dcfc9a5d729296c0
fda6a1be714d8e27a5d8dd3df795df45538f2fe7
/graphene/validation/depth_limit.py
e0f286634fa19b08129ff9a81fe0d5f952884250
[ "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
6,504
py
depth_limit.py
# This is a Python port of https://github.com/stems/graphql-depth-limit # which is licensed under the terms of the MIT license, reproduced below. # # ----------- # # MIT License # # Copyright (c) 2017 Stem # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated...
008da3d6bd94988f02960e16f766d460cf91482d
767c07db1fb131047af3d9b0a065b8fdc8aac9ab
/73-mpl/mpl_bar.py
94ddfef81b6bbbfb9ef6d813cdc02e43525160fc
[]
no_license
DUanalytics/pyAnalytics
e52c5469da30a5f436ec0f3120d9f15fb82fd9b3
107a08bebe46ea51afccfeae4a666213bb405d41
refs/heads/master
2023-07-08T04:32:54.758902
2023-07-03T14:37:04
2023-07-03T14:37:04
202,094,535
394
31
null
null
null
null
UTF-8
Python
false
false
1,737
py
mpl_bar.py
#MPL - graph with titles #Graph and Plots #----------------------------- #% import numpy as np import pandas as pd import matplotlib.pyplot as plt plt.bar(['M','F'], [30,10]) plt.barh(['M','F'], [30,10]) plt.bar(['M','F'], [30,10], color = ['r', 'g']) #with other options : run together till plt.show plt.bar(['M',...
7f02a57e9ce5921ef4e0fa300b15dfa92f1697a5
23895eba556353a116d97a3e9fa60f7ed9c9f693
/Paths/Grid Switcher.py
d92ab7058b83fc7f8766c08c897728de9e7510e3
[ "Apache-2.0" ]
permissive
mekkablue/Glyphs-Scripts
9970200e6b7223be58ff9122dd519af176f210de
fe09b4cf3754bc10c3037c3312a19c1b909a74d6
refs/heads/master
2023-08-28T15:02:21.931491
2023-08-25T17:12:34
2023-08-25T17:12:34
2,517,418
322
108
Apache-2.0
2023-08-15T15:24:50
2011-10-05T07:12:37
Python
UTF-8
Python
false
false
2,644
py
Grid Switcher.py
#MenuTitle: Grid Switcher # -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals __doc__ = """ Toggles grid between two gridstep values. """ import vanilla class GridOnOff(object): def __init__(self): self.gridStep1default = 1 self.gridStep2default = 0 currentGridStep = Gly...
591b30947d782f1957e0862a086b400b78e2a0a5
0f89cda6f3ae5092e0b44b9441fd93b5a2d4a703
/code/default/lib/noarch/tlslite/handshakesettings.py
352a566de330db58a8b5ae55bed9bbf6d8789f43
[ "BSD-2-Clause" ]
permissive
XX-net/XX-Net
ef59074e7dd67d1334c59bb076519bb796db4f4e
541f58da464296001109f9cfbb879256957b3819
refs/heads/master
2023-08-28T04:56:16.921687
2023-08-27T06:17:05
2023-08-27T06:17:32
29,290,473
40,250
11,454
null
2023-04-28T15:12:20
2015-01-15T09:35:51
Python
UTF-8
Python
false
false
32,163
py
handshakesettings.py
# Authors: # Trevor Perrin # Dave Baggett (Arcode Corporation) - cleanup handling of constants # Yngve Pettersen (ported by Paul Sokolovsky) - TLS 1.2 # # See the LICENSE file for legal information regarding use of this file. """Class for setting handshake parameters.""" from .constants import CertificateType f...
52a09203d07b63cd73f31653ad3e4a2de27b3f70
48d1002394d233cf5932c7ef69300400af79118a
/kivy/event.py
52f352c59d55b76e48209fffbac3d00458b6c727
[ "LGPL-2.1-only", "MIT", "Apache-2.0" ]
permissive
kivy/kivy
ba2668bffe4e125fd1c5aace54f671343802850e
ca1b918c656f23e401707388f25f4a63d9b8ae7d
refs/heads/master
2023-09-04T02:27:05.311875
2023-08-26T08:00:20
2023-08-26T08:00:20
1,049,095
16,076
4,161
MIT
2023-09-09T07:55:18
2010-11-03T20:27:32
Python
UTF-8
Python
false
false
555
py
event.py
# This is a "jumping" module, required for python-for-android project # Because we are putting all the module into the same .so, there can be name # conflict. We have one conflict with pygame.event and kivy.event => Both are # python extension and have the same "initevent" symbol. So right now, just # rename this one. ...
1732da5c5de2be0b45a39be9d08ca45300685c38
c07074638db53fbfd31ee761e243b970664c0646
/steam/id.py
83fbeb0bdc217738b8c0eaa379e8fb60db04f534
[ "MIT" ]
permissive
Gobot1234/steam.py
4bdd66004d29b0283fb150a2eb910915dbf1d878
3075c6065babcd8a67052593d4b31d10c20edabe
refs/heads/main
2023-08-30T03:59:06.001118
2023-08-28T14:18:46
2023-08-28T14:18:53
233,127,732
144
40
NOASSERTION
2023-09-14T13:38:41
2020-01-10T20:47:06
Python
UTF-8
Python
false
false
18,424
py
id.py
"""Licensed under The MIT License (MIT) - Copyright (c) 2020-present James H-B. See LICENSE""" from __future__ import annotations import abc import re from collections.abc import Callable from contextlib import nullcontext from types import GenericAlias from typing import TYPE_CHECKING, Final, Generic, Literal, cast ...
98b77b3bcde651fe70dcc9a02e63dcb9a4145bd8
2b2b5e2a28038b8e2dea5bbec0f833cabfa0c256
/tests/dataframe/test_aggs_pytest.py
87ef84e90bbee3d80368cc347d603497e6f667bb
[ "Apache-2.0", "MIT", "BSD-3-Clause" ]
permissive
elastic/eland
09b321d500c31abb04673a17bc9ea32f13d3358e
95864a9ace67337b863ebeb65ded808cf5ba03b3
refs/heads/main
2023-09-01T18:13:38.645147
2023-08-31T09:34:36
2023-08-31T09:34:36
191,316,757
524
95
Apache-2.0
2023-09-14T19:31:16
2019-06-11T07:24:06
Python
UTF-8
Python
false
false
5,029
py
test_aggs_pytest.py
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use ...
4b8704930c531457bc677bdb82e8a90601c156d5
6bc58f290bc3ecd1f4d2a492f0abc5fd4b8ff9c0
/tests/test_cylance_protect.py
f300e72332b26fa65da11489515524da2d4fb850
[ "Apache-2.0", "CC0-1.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
splunk/splunk-connect-for-syslog
c5821e025ef1b5d1312a6ac71b822262f560aa99
472f0b7a0bcbb29cb00a141e4fe4aa6193c49fde
refs/heads/main
2023-08-25T03:57:40.245846
2023-08-21T08:55:12
2023-08-21T08:55:12
194,185,530
188
149
Apache-2.0
2023-09-14T18:31:04
2019-06-28T01:27:07
Python
UTF-8
Python
false
false
1,882
py
test_cylance_protect.py
# Copyright 2019 Splunk, Inc. # # Use of this source code is governed by a BSD-2-clause-style # license that can be found in the LICENSE-BSD2 file or at # https://opensource.org/licenses/BSD-2-Clause import random from jinja2 import Environment from .sendmessage import * from .splunkutils import * from .timeutils imp...
54341f0f4f234ac4c68cf1654f85ec1e5f952e85
38d76993b5b6337d0d8a8dcb4b1e4a84f8899d6d
/pygsheets/developer_metadata.py
aa71f4f04330381ba450075b83c0aa3f9b585a50
[ "MIT" ]
permissive
nithinmurali/pygsheets
b094c113c68bbdf88438b2cb6088d2d9a8fca107
df688a3252263dacc057ff118b2c58968bf0246e
refs/heads/staging
2023-09-04T03:02:39.527120
2023-05-10T16:17:15
2023-05-10T16:17:15
60,546,709
1,530
259
NOASSERTION
2023-08-21T06:53:00
2016-06-06T17:20:44
Python
UTF-8
Python
false
false
4,853
py
developer_metadata.py
# -*- coding: utf-8 -*-. class DeveloperMetadataLookupDataFilter: """Class for filtering developer metadata queries This class only supports filtering for metadata on a whole spreadsheet or worksheet. :param spreadsheet_id: Spreadsheet id to filter on (leave at None to search all metadata) :par...
9e610f63625f3a5c22b39b8ddef12d5b82e2bd30
cad91ae76d2746a6c28ddda0f33a58f9d461378f
/PyTorch/SpeechSynthesis/Tacotron2/tacotron2/text/unidecoder/__init__.py
e2e76516561849f9e140a8610d9ada6e832cad64
[ "BSD-3-Clause", "MIT" ]
permissive
NVIDIA/DeepLearningExamples
fe677521e7e2a16e3cb0b77e358f9aab72f8c11a
a5388a45f71a949639b35cc5b990bd130d2d8164
refs/heads/master
2023-08-31T20:57:08.798455
2023-08-23T10:09:12
2023-08-23T10:09:12
131,881,622
11,838
3,124
null
2023-08-28T16:57:33
2018-05-02T17:04:05
Jupyter Notebook
UTF-8
Python
false
false
1,621
py
__init__.py
# Copyright (c) 2021, NVIDIA CORPORATION. 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 appl...
b290fb490048d4dbc63779f03b394aa9f2f7bd0a
417e21443179541fcf48fde9407b3fd3f58d4406
/mindmeld/models/evaluation.py
3ebd71d761db3f0181b2febaf67c5c81f78bb1fa
[ "Apache-2.0" ]
permissive
cisco/mindmeld
549e23eb6ee1385d2d1729ca532f1265d954276f
bd3547d5c1bd092dbd4a64a90528dfc2e2b3844a
refs/heads/master
2023-08-28T07:34:09.771290
2023-01-31T18:12:37
2023-01-31T18:12:37
177,415,822
671
194
Apache-2.0
2023-03-15T06:53:24
2019-03-24T13:05:00
Python
UTF-8
Python
false
false
22,141
py
evaluation.py
# -*- coding: utf-8 -*- # # Copyright (c) 2015 Cisco Systems, Inc. and others. 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...
6094ea0e3cea0f774db6b6e4aa61db82f5f44711
bade10db04689048ad1837ced0a6d19e3cc81bf8
/sentinelhub/time_utils.py
235c2102d03da33f29a98cd069c18483b69541e3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
sentinel-hub/sentinelhub-py
a91dc13f0306b121d4c2bca50557938c93d203bd
98d0327e3929999ec07645f77b16fceb7f9c88b9
refs/heads/master
2023-09-02T17:19:09.717530
2023-05-08T07:35:21
2023-05-08T07:35:21
91,571,506
704
239
MIT
2023-08-22T13:29:48
2017-05-17T12:00:34
Python
UTF-8
Python
false
false
8,096
py
time_utils.py
""" Module with useful time/date functions """ import datetime as dt from typing import Any, Iterable, List, Literal, Optional, Tuple, TypeVar, Union, overload import dateutil.parser import dateutil.tz from .types import RawTimeIntervalType, RawTimeType TimeType = TypeVar("TimeType", dt.date, dt.datetime) # pylint:...
2f7e8a8040d1edb3717e91900732a66c55affc53
1e528494a929deada984822438b3ab569762e6c6
/rx/linq/observable/windowwithtime.py
b11edddc06daafb482af220b9ca9e56b69176bda
[ "MIT" ]
permissive
Sprytile/Sprytile
a0233a00a243f263691921d7e1f6af05c5eb5442
6b68d0069aef5bfed6ab40d1d5a94a3382b41619
refs/heads/master
2022-07-10T06:54:01.003723
2020-09-26T07:25:35
2020-09-26T07:25:35
72,276,917
860
91
MIT
2022-07-07T23:37:19
2016-10-29T09:47:09
Python
UTF-8
Python
false
false
2,809
py
windowwithtime.py
from datetime import timedelta from rx import AnonymousObservable, Observable from rx.concurrency import timeout_scheduler from rx.internal.utils import add_ref from rx.disposables import SingleAssignmentDisposable, CompositeDisposable, \ RefCountDisposable, SerialDisposable from rx.subjects import Subject from rx...
0b6bf31b546492560acfcb2425f6aa3de878ff51
e45cf6221f170e3077770dbf19a1ad3dd244cd10
/tests/conftest.py
84cb475f396701553e6bc46ac82ab1a113a99f6d
[ "Apache-2.0" ]
permissive
anchore/anchore-cli
7b12bc80b428ed6d52717ceeaf5182953e4bbc53
f511644cf701646f002af6b392421304da508c86
refs/heads/master
2023-05-24T20:27:58.866558
2022-06-22T16:09:29
2022-06-22T16:09:29
102,535,562
119
64
Apache-2.0
2023-05-23T02:03:47
2017-09-05T22:27:17
Python
UTF-8
Python
false
false
920
py
conftest.py
import json import pytest class Factory(object): def __init__(self, **kw): for k, v in kw.items(): setattr(self, k, v) @pytest.fixture def stub_response(): def apply(status_code=200, text="", json_text=None): if json_text is not None: text = json.dumps(json_text) ...
89c3bf631ec45521b34551aefc3e687b45cf2f6c
9d0228f3f7ee9cee0794319d4affc161b0a7adc2
/qmpy/analysis/debye/sound_waves.py
d24a1badd3459beb67f37772c044fd30e2e9d7b0
[ "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
4,652
py
sound_waves.py
#!/usr/bin/python # sound_waves.py v1.1 12-3-2011 Jeff Doak jeff.w.doak@gmail.com import sys import scipy as sp from scipy import linalg from scipy.integrate import dblquad import read_file BOLTZCONST = 1.381e-23 # J/K PLANCKCONST = 6.626e-34 # J*s AVONUM = 6.022e23 # things/mol def dir_cosines(dir, coords=sp.i...
81624711778434057781b0d27575ff3b97abc81e
56a77194fc0cd6087b0c2ca1fb6dc0de64b8a58a
/kratos/python_scripts/check_same_model_part_using_skin_process.py
73b2253342ca25484b024f83a3de8f1a8e12dc36
[ "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
1,563
py
check_same_model_part_using_skin_process.py
# Importing the Kratos Library import KratosMultiphysics def Factory(settings, model): if not isinstance(settings, KratosMultiphysics.Parameters): raise Exception("expected input shall be a Parameters object, encapsulating a json string") return CheckSameModelPartUsingSkinDistanceProcess(model, s...
ee3157ac5d0cea57be26acbb190f86a384b4fbae
ab5d1586266e525eb32823851dd3c774b60fabec
/plugins/import_methods/text.py
c6fa970c9c561715225ec625fad1a7c8384478bb
[ "Apache-2.0" ]
permissive
yeti-platform/yeti
d31fa464582b6d6731a437d7ceab9e730ce09c75
dccc691d48177f921ef1134c8fd22f064dc085a2
refs/heads/master
2023-09-01T13:54:19.258408
2023-06-29T12:44:55
2023-06-29T12:44:55
47,927,876
1,444
321
Apache-2.0
2023-09-12T14:49:55
2015-12-13T16:54:26
Python
UTF-8
Python
false
false
656
py
text.py
from core.investigation import ImportMethod class ImportText(ImportMethod): def do_import(self, results, filepath): with open(filepath, "r") as f: content = f.read() results.investigation.update(import_text=content) class ImportTextPlain(ImportText): default_values = { "...
1d6b67f0be0fb43647bee2d523d942fd51e7a8b1
2ddbcefa36bf68ad2e7f4018c5283b7aef726a1f
/etw/evntrace.py
287cacf1b4fd5b9f4153fa24d3d698813838fa97
[ "Apache-2.0" ]
permissive
fireeye/pywintrace
c275ba90f8ec942a4ff2f03fb700c562859e5f25
977eeb85d08982c160d9594f5f875f54db7a3415
refs/heads/master
2023-08-16T14:29:28.361857
2023-03-23T18:41:16
2023-03-23T18:41:16
102,869,990
273
73
Apache-2.0
2023-03-23T18:41:18
2017-09-08T14:27:01
Python
UTF-8
Python
false
false
11,529
py
evntrace.py
######################################################################## # Copyright 2017 FireEye 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/L...
39b88c7152e737482fc1cb23a932a1f92ef49d6e
26060f5ea4d7efee2d03cbbd0b49c099e0f5f38a
/sharpy/solvers/statictrim.py
a76947edf9771d55097c6c677e14ecfdf24614a2
[ "BSD-3-Clause" ]
permissive
ImperialCollegeLondon/sharpy
0fcd1fba9ed2181dabc1124f9800aa75521bfc3d
58ddceb985bef13af3ea199a1764c8dc9b088907
refs/heads/main
2023-08-19T03:04:26.044857
2023-07-17T07:05:06
2023-07-17T07:05:06
70,235,936
106
55
BSD-3-Clause
2023-08-16T02:27:58
2016-10-07T10:11:51
Python
UTF-8
Python
false
false
16,991
py
statictrim.py
import numpy as np import sharpy.utils.cout_utils as cout import sharpy.utils.solver_interface as solver_interface from sharpy.utils.solver_interface import solver, BaseSolver import sharpy.utils.settings as settings_utils import os @solver class StaticTrim(BaseSolver): """ The ``StaticTrim`` solver determin...
81d3fc3ff61dad36d8a97238c170bf9f248df56a
b049a961f100444dde14599bab06a0a4224d869b
/sdk/python/pulumi_azure_native/security/v20230201preview/sql_vulnerability_assessment_baseline_rule.py
0892c1e7cb9c71c0f290a61419df077c339903f6
[ "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,830
py
sql_vulnerability_assessment_baseline_rule.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...
2229f0fec8c421471daccbb62ffc29af10af7364
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/third_party/blink/web_tests/external/wpt/network-error-logging/support/cached-with-validation.py
e5090e03929d96169791e6958c2a9a7d20f1aba6
[ "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
chromium/chromium
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
refs/heads/main
2023-08-24T00:35:12.585945
2023-08-23T22:01:11
2023-08-23T22:01:11
120,360,765
17,408
7,102
BSD-3-Clause
2023-09-10T23:44:27
2018-02-05T20:55:32
null
UTF-8
Python
false
false
574
py
cached-with-validation.py
ETAG = b'"123abc"' CONTENT_TYPE = b"text/plain" CONTENT = u"lorem ipsum dolor sit amet" def main(request, response): # let caching kick in if possible (conditional GET) etag = request.headers.get(b"If-None-Match", None) if etag == ETAG: response.headers.set(b"X-HTTP-STATUS", 304) response.s...
69fb81dc7b40743f79731cb2242d81437765671d
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/prb_control/entities/stronghold/unit/actions_validator.py
8f43fff0863f8fc957f666b9d9d89563ec8b0a05
[]
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,395
py
actions_validator.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/prb_control/entities/stronghold/unit/actions_validator.py from gui.prb_control.entities.base.squad.actions_validator import UnitActionsValidator from gui.prb_control.entities.base.unit.actions_validator import UnitVehiclesValida...
a430593f6bc94ad928577a9f5193d1233b95430d
c8c260b419b56ab6f1c86f52bc5df323af0d9009
/srt_tools/tests/test_srt_tools.py
b11aa54fd7f648e4a2fd5c405a6ae2b928b2206f
[ "MIT" ]
permissive
cdown/srt
a86e900f4cf2bae9322231b54a2bb576e8b030bc
434d0c1c9d5c26d5c3fb1ce979fc05b478e9253c
refs/heads/develop
2023-07-11T09:20:53.086151
2023-03-28T02:33:47
2023-03-28T02:33:47
28,550,291
394
47
MIT
2023-09-09T21:16:32
2014-12-28T01:05:38
Python
UTF-8
Python
false
false
3,482
py
test_srt_tools.py
#!/usr/bin/env python import os import subprocess import sys import tempfile try: from shlex import quote except ImportError: # <3.3 fallback from pipes import quote sample_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "files") if os.name == "nt": # Sigh, shlex.quote quotes incorrec...
4d1b6212a887f6ed83903945a1fb47bc131aa9c9
974d04d2ea27b1bba1c01015a98112d2afb78fe5
/test/legacy_test/test_generator_dataloader.py
9d895538521900a115eb35913157cc69cafc96c7
[ "Apache-2.0" ]
permissive
PaddlePaddle/Paddle
b3d2583119082c8e4b74331dacc4d39ed4d7cff0
22a11a60e0e3d10a3cf610077a3d9942a6f964cb
refs/heads/develop
2023-08-17T21:27:30.568889
2023-08-17T12:38:22
2023-08-17T12:38:22
65,711,522
20,414
5,891
Apache-2.0
2023-09-14T19:20:51
2016-08-15T06:59:08
C++
UTF-8
Python
false
false
7,202
py
test_generator_dataloader.py
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
0e564e574247bd5075838570416fcd1422d0f139
5999474eb6a5d12efe7ca7bafc7e6e4048c65fc0
/pyUI/commonVar.py
74f21179ba8dde2113e7c8568513b5b8ed3d431f
[ "MIT" ]
permissive
PetoiCamp/OpenCat
dd1c4bf857f7831f902aef812763581aeedb5d8e
335e0fe529f1acb405f879c5b6012398c835d953
refs/heads/main
2023-09-05T10:27:06.631580
2023-09-03T17:21:02
2023-09-03T17:21:02
326,441,188
2,374
315
MIT
2023-09-14T12:26:31
2021-01-03T15:42:00
C++
UTF-8
Python
false
false
2,885
py
commonVar.py
from translate import * import sys sys.path.append('../serialMaster/') resourcePath = './resources/' releasePath = './release/' sys.path.append(resourcePath) from ardSerial import * from tkinter import * from tkinter import messagebox from PIL import ImageTk, Image import tkinter.font as tkFont import threading import ...
304a2b89927d8172b4ba0f3f804a2ab3f914b862
58375cb29ebcd2da7adc182fd10c6f76d6deee6e
/FOTS/base/base_trainer.py
1f9a0e28b945407160adb8b8675aa03ac8c1a9d4
[ "BSD-3-Clause" ]
permissive
jiangxiluning/FOTS.PyTorch
d0d5a53595308335f20803d7a1d73274a4dad5a7
7484a81417f35b4f5c48edd3eb3e855416797379
refs/heads/master
2023-02-19T23:45:06.317493
2023-02-14T15:30:18
2023-02-14T15:30:18
142,129,096
726
236
BSD-3-Clause
2022-10-06T17:19:51
2018-07-24T08:31:45
Python
UTF-8
Python
false
false
7,420
py
base_trainer.py
import os import math import json import logging import torch import torch.optim as optim from tensorboardX import SummaryWriter from ..utils.util import ensure_dir class BaseTrainer: """ Base class for all trainers """ def __init__(self, model, loss, metrics, resume, config, train_logger=None): ...
bc97cd90d9b893ef27632fe4868a94106c81643c
3e00405025535eb1a1829b70f9e984ea9bb76fc5
/resources/scripts/fpc.py
c10f407ce3c24c1a0072fc1ff17fb875a007b9d9
[ "BSD-3-Clause" ]
permissive
nettitude/PoshC2
5d1fdfbd53ee82e6fb145bde5cbb1afc6b2067ed
517903431ab43e6d714b24b0752ba111f5d4c2f1
refs/heads/master
2023-08-24T17:45:43.198409
2022-07-12T11:12:28
2022-08-01T09:09:15
141,987,967
1,378
299
BSD-3-Clause
2023-07-23T22:14:04
2018-07-23T08:53:32
PowerShell
UTF-8
Python
false
false
2,692
py
fpc.py
#!/usr/bin/env python3 import sys, argparse, os, pandas class Colours: BLUE = '\033[94m' GREEN = '\033[92m' RED = '\033[91m' END = '\033[0m' YELLOW = '\033[93m' def create_arg_parser(): parser = argparse.ArgumentParser(description='Find Posh Command - Search for a PoshC2 Command Output') ...
fead24b06f6f19af876a83481fc138198640ef42
08690eb8fc250e29d749d6baa694a16c03d3ad71
/backend/data/crawler/lotte_crawler.py
8c1c7e0bd00746fc08b5cefa362822f64d8820e3
[ "MIT" ]
permissive
NullFull/isnamyang
de1e0e16a45c120cefec4500afe6ab38d44ea2c0
20a21f233d8234365739ed8514dcac25c98e51e6
refs/heads/main
2023-07-19T23:41:29.073366
2023-05-08T06:06:54
2023-05-08T06:06:54
184,061,909
117
26
MIT
2023-09-06T15:16:45
2019-04-29T11:53:09
JavaScript
UTF-8
Python
false
false
1,396
py
lotte_crawler.py
import pandas as pd from selenium import webdriver import csv CHROME_DRIVER_PATH = '/Users/jiwoo/Documents/chromedriver' FILE_PATH = 'products.csv' def crawler(keyword): url = 'http://www.lottemart.com/search/search.do?searchTerm=' url = url + keyword driver = webdriver.Chrome(CHROME_DRIVER_PATH) driv...
40996c04bef8c01a3a504b1e4f48036756f48aad
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayCommerceEducateCreditbankStudyprofileModifyModel.py
522193b9ec6ac995955febbf959127c0ab8f1d30
[ "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
6,966
py
AlipayCommerceEducateCreditbankStudyprofileModifyModel.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.CreditBankCertificateExperience import CreditBankCertificateExperience from alipay.aop.api.domain.CreditBankCredit import CreditBankCredit from alipay.aop.api.domain.CreditBankTrain...
650393ba1ec57e60edfe5527dc1c5550b9b8df8a
6f8c004f00db188e9bce68b2e433e49fef4ad4e4
/django_comments/admin.py
cf3117bb98ec824ff928175529f10e0502b24095
[]
permissive
django/django-contrib-comments
915ea548bb57cb50b98fecb1bbd6e5b0b399cd58
4ad4c701f2a17ca62f040e94d73c2eb08af320e9
refs/heads/master
2023-08-30T23:59:23.712723
2023-08-16T18:55:12
2023-08-22T12:03:11
8,710,168
564
218
BSD-3-Clause
2023-08-22T12:03:12
2013-03-11T18:27:37
Python
UTF-8
Python
false
false
3,639
py
admin.py
from django.contrib import admin from django.contrib.auth import get_user_model from django.utils.translation import gettext_lazy as _, ngettext from django_comments import get_model from django_comments.views.moderation import perform_flag, perform_approve, perform_delete class UsernameSearch: """The User objec...
624fa78d72b86bada2b9d7fee142db0968b04656
8fbd7dcd16334ba7f0bc22268d7691d293fb74a6
/flask_googlemaps/icons.py
52d1cd5d4649949c9b413c6349d89add913e9dae
[ "MIT" ]
permissive
flask-extensions/Flask-GoogleMaps
4629daa73aa86bd6f5e9086bb25a180d3c43ce2b
6d891695e8272416880180b1c048d3be38ad4742
refs/heads/master
2023-08-16T01:14:46.926121
2022-11-28T20:37:28
2022-11-28T20:37:28
14,603,772
195
84
MIT
2022-11-28T20:37:30
2013-11-21T23:52:29
Python
UTF-8
Python
false
false
6,365
py
icons.py
""" The idea is to implement all icons from here: http://kml4earth.appspot.com/icons.html#mapfiles and http://jg.org/mapping/icons.html and http://mabp.kiev.ua/2010/01/12/google-map-markers/ """ __all__ = ["dots", "alpha", "shapes", "pushpin", "paddle"] from typing import Optional, List class Icon(object): """D...
39cbd1287ceb781936bfb76d9c19551dfaab1792
ad1d46b4ec75ef1f00520ff246d0706c6bb7770e
/content/chapters/transform-strings/10.py
abc82de1f7338e66f6a82312d9fe32688dd3c23d
[]
no_license
roberto-arista/PythonForDesigners
036f69bae73095b6f49254255fc473a8ab7ee7bb
1a781ea7c7ee21e9c64771ba3bf5634ad550692c
refs/heads/master
2022-02-24T15:28:04.167558
2021-09-07T10:37:01
2021-09-07T10:37:01
168,937,263
103
37
null
2022-02-11T02:24:01
2019-02-03T11:17:51
Python
UTF-8
Python
false
false
216
py
10.py
print(f"{'a':^10}") print(f"{'bcd':^10}") print(f"{'efghi':^10}") print(f"{'jklmnop':^10}") print(f"{'qrstu':^10}") print(f"{'vwx':^10}") print(f"{'y':^10}") # a # bcd # efghi # jklmnop # qrstu # vwx # y
9c81acc4a2aef1e8a06226f621ed5b14adb8f370
f6f6d13ecabee843ad4b41aae301e1bad1a07bdb
/tests/CLI/run_one_test.py.in
47085f7a6c42c12e683f5e15445be23f93c32105
[ "Apache-2.0" ]
permissive
p4lang/PI
ec6a912f77f3ed73516a844ea5ca9fdb74c0e774
6d0f3d6c08d595f65c7d96fd852d9e0c308a6f30
refs/heads/main
2023-08-30T02:44:12.127320
2023-08-21T16:45:07
2023-08-21T16:45:07
51,870,280
170
128
Apache-2.0
2023-09-11T09:52:09
2016-02-16T21:07:15
C++
UTF-8
Python
false
false
7,563
in
run_one_test.py.in
#!/usr/bin/env python3 # Copyright 2013-present Barefoot Networks, 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 b...
821325014006bb6fa140238819fb92fa7d7b674f
52245910f830dbfb2b1432ad2a967df7321ee6de
/panel/tests/ui/test_reactive.py
c0f4a79c4b23dbd536ebc46b656a12d4157e9e2e
[ "BSD-3-Clause" ]
permissive
holoviz/panel
92c19f979353d456512abbce5a027dff6ddb3a5c
2c6e165e2bba96c0cb97947aa072d4429133cf7a
refs/heads/main
2023-08-17T11:28:06.581979
2023-08-17T11:23:09
2023-08-17T11:23:09
145,848,899
2,544
373
BSD-3-Clause
2023-09-14T17:13:31
2018-08-23T12:14:24
Python
UTF-8
Python
false
false
2,689
py
test_reactive.py
import time import param import pytest try: from playwright.sync_api import expect pytestmark = pytest.mark.ui except ImportError: pytestmark = pytest.mark.skip('playwright not available') from panel.io.server import serve from panel.reactive import ReactiveHTML class ReactiveComponent(ReactiveHTML): ...
5a686aefb3989f5a26272f9fd654f0eec97aa563
93713f46f16f1e29b725f263da164fed24ebf8a8
/Library/lib/python3.7/site-packages/notebook/terminal/api_handlers.py
059cc9165710e576d14c3a41dc8e347f23f957b0
[ "BSD-3-Clause" ]
permissive
holzschu/Carnets
b83d15136d25db640cea023abb5c280b26a9620e
1ad7ec05fb1e3676ac879585296c513c3ee50ef9
refs/heads/master
2023-02-20T12:05:14.980685
2023-02-13T15:59:23
2023-02-13T15:59:23
167,671,526
541
36
BSD-3-Clause
2022-11-29T03:08:22
2019-01-26T09:26:46
Python
UTF-8
Python
false
false
1,217
py
api_handlers.py
import json from tornado import web, gen from ..base.handlers import APIHandler from ..utils import url_path_join class TerminalRootHandler(APIHandler): @web.authenticated def get(self): tm = self.terminal_manager terms = [{'name': name} for name in tm.terminals] self.finish(json.dumps(...
aabebadf8460aba72cb397fd8cb2bbe10e810389
3e8cf48007bbcb17be2f21bf3e1758953fff3123
/发布报告的策略/市场分析小工具/三个月波动率计算.py
ff314ce3c90a4d84e346157ae41473e5f8bcb314
[]
no_license
08zhangyi/multi-factor-gm-wind-joinquant
e3b296340d3126f98662d9041d38724fca697ab4
c1d2b0cdfa2425bf3c8ac61548974d246687e450
refs/heads/master
2022-11-16T08:36:19.666321
2022-10-26T04:46:17
2022-10-26T04:46:17
138,122,559
179
97
null
null
null
null
UTF-8
Python
false
false
282
py
三个月波动率计算.py
from WindPy import w w.start() CODE_LIST = ['510300.SH', '511380.SH'] START_DATE = '2022-02-13' END_DATE = '2022-05-13' data = w.wss(CODE_LIST, "stdevry", "startDate="+START_DATE+";endDate="+END_DATE+";period=1;returnType=1").Data[0] print(data) print(data[0]/data[1])
70f8b8a244e97a275bf76c455a1be526087f1065
ed36064525bad62959d9ab739edeea477bf29c1c
/2016-04-15-plaid-ctf/misc_morset/doit.py
df586a3b36120197df31b438a175a1eb3ec0b997
[]
no_license
p4-team/ctf
2dae496622c8403d7539b21f0e9a286e9889195a
8280caff137e42b26cb55f2c62411c7c512088de
refs/heads/master
2023-08-12T03:21:31.021612
2023-04-26T23:57:29
2023-04-26T23:57:29
42,933,477
1,899
366
null
2022-06-07T21:51:40
2015-09-22T12:53:15
Python
UTF-8
Python
false
false
1,874
py
doit.py
from pwn import * import binascii import hashlib code = {'A': '.-', 'B': '-...', 'C': '-.-.', 'D': '-..', 'E': '.', 'F': '..-.', 'G': '--.', 'H': '....', 'I': '..', 'J': '.---', 'K': '-.-', 'L': '.-..', 'M': '--', 'N': '-.', 'O': '---', 'P': '.--...
21a17564d2c433c1a90682d9dc6329df5c8a59a7
b319086bffb2af7144e404ce244a14d262d01e6a
/cmapPy/pandasGEXpress/parse_gct.py
8cfcd0925a8739c021416f4c18691fcf9986e802
[ "BSD-3-Clause" ]
permissive
cmap/cmapPy
18e5c563e0ae0f161366d1f56be36ae6568b39d8
d1652c3223e49e68e3a71634909342b4a6dbf361
refs/heads/master
2022-07-22T20:44:02.189031
2022-07-19T18:55:29
2022-07-19T18:55:29
86,500,068
107
82
BSD-3-Clause
2022-07-19T18:55:30
2017-03-28T19:40:02
Python
UTF-8
Python
false
false
14,171
py
parse_gct.py
""" Reads in a gct file as a gctoo object. The main method is parse. parse_into_3_df creates the row metadata, column metadata, and data dataframes, while the assemble_multi_index_df method in GCToo.py assembles them. 1) Example GCT v1.3: ----- start of file ------ #1.3 96 36 9 15 ----...
72995e6261824890f0c13cee96f06a26ff14536e
f3806d9fb54773908cd9704121a543b114470aca
/angr/procedures/definitions/win32_t2embed.py
1a7c2e02028d8840ebeab7ee3a29de2e0608d340
[ "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
11,514
py
win32_t2embed.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...
f236430321da95eba72f28cdbd574848a13a7d7d
684df684759bfbef64b0fbcde9eb2b898a2e2061
/swagger-gen/python/test/test_linear_order_api.py
84c25b72399b928d2b6bcedb10b4639694393d10
[]
no_license
bybit-exchange/api-connectors
ae13caecb98c82460c0a24b910f2e9c1eb80b9bc
cc021a371bde30c2fd282be9fdc8eef0ed0e362e
refs/heads/master
2021-12-31T10:23:24.429638
2021-11-24T16:37:18
2021-11-24T16:37:18
213,896,494
192
185
null
2023-03-03T12:50:12
2019-10-09T11:10:19
C#
UTF-8
Python
false
false
1,705
py
test_linear_order_api.py
# coding: utf-8 """ Bybit API ## REST API for the Bybit Exchange. Base URI: [https://api.bybit.com] # noqa: E501 OpenAPI spec version: 0.2.11 Contact: support@bybit.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittes...
d1ac21320769f48e14b9cc035b4d9c691b93835f
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/battle_results/presenter/event.py
6d44a42e572b4e6dab02e28a1b45715ff11b23c4
[]
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
3,664
py
event.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/battle_results/presenter/event.py import typing from frameworks.wulf import Array from gui.impl.gen.view_models.views.lobby.postbattle.widget_model import WidgetModel from gui.server_events.event_items import WtQuest from gui.sh...
677bbd52fe334fa31468f76c9517218f4e8907a8
abe6c00f9790df7e6ef20dc02d0b1b225b5020cb
/src/prefect/_internal/concurrency/event_loop.py
3f4f187231ac669e381734479325d2ebcf8ee5db
[ "Apache-2.0" ]
permissive
PrefectHQ/prefect
000e6c5f7df80f76a181f0a30f8661c96417c8bd
2c50d2b64c811c364cbc5faa2b5c80a742572090
refs/heads/main
2023-09-05T20:25:42.965208
2023-09-05T18:58:06
2023-09-05T18:58:06
139,199,684
12,917
1,539
Apache-2.0
2023-09-14T20:25:45
2018-06-29T21:59:26
Python
UTF-8
Python
false
false
2,594
py
event_loop.py
""" Thread-safe utilities for working with asynchronous event loops. """ import asyncio import concurrent.futures import functools from typing import Awaitable, Callable, Coroutine, Optional, TypeVar from typing_extensions import ParamSpec P = ParamSpec("P") T = TypeVar("T") def get_running_loop() -> Optional[asyn...
271569242c4de1203f0831fdeae61171b1613b0e
41ffc3633d0b6ef61105fa19ad09794cd56f1453
/REST/python/Tasks/run-healthcheck.py
da2f7bc4c63c6823a35ada99c6f9337ec03119b9
[ "Apache-2.0" ]
permissive
OctopusDeploy/OctopusDeploy-Api
4fb17afab9906708025fc1f391178cb2c8cb157c
c07ba75a893a441c0042dcaea2ea9b4a4ea85ae0
refs/heads/master
2023-08-31T01:20:12.281128
2023-08-17T17:13:44
2023-08-17T17:13:44
9,934,665
226
159
NOASSERTION
2023-09-13T16:02:21
2013-05-08T11:15:54
PowerShell
UTF-8
Python
false
false
2,837
py
run-healthcheck.py
import json import requests from requests.api import get, head def get_octopus_resource(uri, headers, skip_count = 0): items = [] skip_querystring = "" if '?' in uri: skip_querystring = '&skip=' else: skip_querystring = '?skip=' response = requests.get((uri + skip_querystring + st...
af2121bfd43ed6bd1c56b649f80e567c30725a8b
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/components/embedder_support/android/DEPS
f874c1236da3151da2a940a91d1a70f9ac22dfe4
[ "BSD-3-Clause" ]
permissive
chromium/chromium
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
refs/heads/main
2023-08-24T00:35:12.585945
2023-08-23T22:01:11
2023-08-23T22:01:11
120,360,765
17,408
7,102
BSD-3-Clause
2023-09-10T23:44:27
2018-02-05T20:55:32
null
UTF-8
Python
false
false
557
DEPS
include_rules = [ "-content/public/android/java", "+content/public/android/java/src/org/chromium/content_public", "+content/public/test/android", "+cc", "+components/embedder_support/android/web_contents_delegate_jni_headers", "+components/keyed_service", "+components/url_formatter/android/java", "+cont...
b0c50b90b0a277a2c6a9a43daac3673657b6e198
2d05050d0ada29f7680b4df20c10bb85b0530e45
/tests/python/relay/test_pass_annotate_spans_defuse.py
c513c592d61174df7de2ea35deb04c543ef7237b
[ "Apache-2.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "Zlib", "LLVM-exception", "BSD-2-Clause" ]
permissive
apache/tvm
87cb617f9a131fa44e1693303aaddf70e7a4c403
d75083cd97ede706338ab413dbc964009456d01b
refs/heads/main
2023-09-04T11:24:26.263032
2023-09-04T07:26:00
2023-09-04T07:26:00
70,746,484
4,575
1,903
Apache-2.0
2023-09-14T19:06:33
2016-10-12T22:20:28
Python
UTF-8
Python
false
false
2,017
py
test_pass_annotate_spans_defuse.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...
521e4212a5ef4bcb6c779a6db94783a36ada7bb1
c4714904de05427f52d846678463811898033e4f
/Safe-RL/safeRL/HCOPE/policies.py
15ab8078ce158f2a09a8670740fd65424da0ebdf
[ "MIT" ]
permissive
chauncygu/Safe-Reinforcement-Learning-Baselines
f19d60058eab4a7ff78c67bc6e845b9ba7dfe454
8500c8dd90a2b59a91b988a3c83e529f6c69332f
refs/heads/main
2023-08-31T12:42:44.973962
2023-08-19T13:11:02
2023-08-19T13:11:02
462,251,155
233
42
null
2023-08-24T11:55:14
2022-02-22T10:40:44
Jupyter Notebook
UTF-8
Python
false
false
5,788
py
policies.py
''' Policy class for computing action from weights and observation vector. Horia Mania --- hmania@berkeley.edu Aurelia Guy Benjamin Recht ''' import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.utils.convert_parameters import vector_to_parameters, parameters_to_vector...
d30e88e116bef721cc656d54339760cb428c887b
3d4c7b9c179322e6bdb3c7a0c137919364806cb3
/python/flexflow/keras/backend/__init__.py
738f8e0161be190f5102d7ba33c8172e6964c15c
[ "Apache-2.0" ]
permissive
flexflow/FlexFlow
291282d27009924a427966e899d7c2fda9c20cec
b2ec6cb5d2b898db1ad4df32adf5699bc48aaac7
refs/heads/inference
2023-09-04T05:25:02.250225
2023-09-03T14:15:07
2023-09-03T14:15:07
160,988,469
1,139
186
Apache-2.0
2023-09-14T17:56:24
2018-12-08T23:43:13
C++
UTF-8
Python
false
false
1,149
py
__init__.py
# Copyright 2023 CMU, Facebook, LANL, MIT, NVIDIA, and Stanford (alphabetical) # # 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 re...
504a11bbf36e5618aa9e16a805dea02858fcf6ac
e7f38fa0aea00207bc94c542524bcf36a540f902
/lettuce/moments.py
7ea9547031a7cb1191d23a64926d03f74e9c8e8f
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
lettucecfd/lettuce
c5cf4c27ee66022e9b6d94ff0380c6190ec59fae
63be9197efeb88b843fd349b9e8d1b13d1634c1c
refs/heads/master
2023-04-28T15:48:42.200866
2023-04-13T12:54:10
2023-04-13T12:54:10
185,307,088
106
22
MIT
2023-04-18T07:38:28
2019-05-07T02:37:05
Python
UTF-8
Python
false
false
24,365
py
moments.py
""" Moments and cumulants of the distribution function. """ import warnings import torch import lettuce from lettuce.util import LettuceException, InefficientCodeWarning, get_subclasses, ExperimentalWarning from lettuce.stencils import Stencil, D1Q3, D2Q9, D3Q27 import numpy as np __all__ = [ "moment_tensor", "ge...
ead31affaf18b24f0016272388abef419c8f50c0
307d3837d31f9e3728af2b62ca51ebf63fe6ec6b
/hall_of_fame/lysuk96/DFS_BFS/BOJ_7576.py
b858dd8a152cdaeca052087962a1a1ff50ab1ced
[]
no_license
ellynhan/challenge100-codingtest-study
905043497d154b8a7333ca536e536d013f6e7454
bcdc6d04f13b12ba80b42e066f9d244d7c2cc698
refs/heads/master
2023-09-01T14:10:13.481013
2023-08-27T14:38:52
2023-08-27T14:38:52
401,561,230
162
176
null
2023-09-09T14:56:25
2021-08-31T03:30:36
C++
UTF-8
Python
false
false
1,315
py
BOJ_7576.py
#토마토 #count 출력 : len(queue) 반복 후 from collections import deque def solution(m, n, tomatoes): def search(r, c): D = [(0,1), (0,-1), (1,0), (-1,0)] result = [] for i, j in D: if (r+i>=0 and r+i<n)\ and (c+j>=0 and c+j<m)\ and (tomatoes[r+i][c+j...
707b07216a428a5957d2a20fabec775b093de7a0
18ad3a6818cd9d8243e2fe41d65bc76530e6dbae
/torchreid/utils/torchtools.py
e854278d90106e64c0f0822b2fa699da05221f7c
[ "MIT" ]
permissive
KaiyangZhou/deep-person-reid
55fe2fa0306847c5447d1c70fecd1f585758ae5e
566a56a2cb255f59ba75aa817032621784df546a
refs/heads/master
2023-09-02T21:55:37.749729
2023-02-08T02:52:17
2023-02-08T02:52:17
124,800,162
4,191
1,167
MIT
2023-05-23T11:41:21
2018-03-11T21:14:39
Python
UTF-8
Python
false
false
9,672
py
torchtools.py
from __future__ import division, print_function, absolute_import import pickle import shutil import os.path as osp import warnings from functools import partial from collections import OrderedDict import torch import torch.nn as nn from .tools import mkdir_if_missing __all__ = [ 'save_checkpoint', 'load_checkpoin...
82723093b606011e8cfc3c82e028136cda437c99
3a6a211ea0d32405497fbd6486c490bb147e25f9
/dashboard/dashboard/models/__init__.py
64d74087cb12ebb5a4ceb9a2d564bae931868a4f
[ "BSD-3-Clause" ]
permissive
catapult-project/catapult
e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0
53102de187a48ac2cfc241fef54dcbc29c453a8e
refs/heads/main
2021-05-25T07:37:22.832505
2021-05-24T08:01:49
2021-05-25T06:07:38
33,947,548
2,032
742
BSD-3-Clause
2022-08-26T16:01:18
2015-04-14T17:49:05
HTML
UTF-8
Python
false
false
341
py
__init__.py
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """The models sub-package, which contains datastore model classes.""" from __future__ import print_function from __future__ import division from __future__ im...
4839bf1a05887f8a1db746696637535d8d88936d
add160f872dccc7f326dc00196fd418c748a89b1
/wrappers/python/tests/TestForceField.py
767c7793d642248cfe50f2385452cdb4a3ed1c1e
[]
no_license
openmm/openmm
22f3d6ae2747f54acfaa92a5a6a5869049019dee
d2593f386a627d069b5ec17a3a2f4ecd40d85dd1
refs/heads/master
2023-08-22T18:29:54.807240
2023-08-18T19:09:05
2023-08-18T19:09:05
10,178,188
875
324
null
2023-09-12T23:40:17
2013-05-20T17:42:52
C++
UTF-8
Python
false
false
69,170
py
TestForceField.py
import unittest from validateConstraints import * from openmm.app import * from openmm import * from openmm.unit import * import openmm.app.element as elem import openmm.app.forcefield as forcefield import math import textwrap try: from cStringIO import StringIO except ImportError: from io import StringIO impor...
17d7b86ac22cb6eb9b4a24d5ad12158a7ebe3841
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-mrs/huaweicloudsdkmrs/v1/model/create_and_execute_job_response.py
49ffa381de5a40a509e38025d30f0b1053035f14
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
48,564
py
create_and_execute_job_response.py
# coding: utf-8 import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class CreateAndExecuteJobResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and...
a675336b4dc62a30aa251f219974a12b74203fb7
6b6d42eadf53e90b08ce564fb188a9a4b126ef12
/testsuite/tests/python/tree_dump/test.py
cad1282edb64be39e438e835f88aefe928140e64
[ "Apache-2.0", "LLVM-exception", "NCSA" ]
permissive
AdaCore/libadalang
f97b95d1672cb1e5083c49ee632c6f9c787d36c2
50d658afa70ccbf46b8f7d9d43a21d45d56b206c
refs/heads/master
2023-09-01T18:34:26.976692
2023-08-25T15:53:43
2023-08-25T15:53:43
47,627,172
158
49
Apache-2.0
2022-12-14T10:29:45
2015-12-08T14:28:22
Ada
UTF-8
Python
false
false
399
py
test.py
from libadalang import AnalysisContext def dump(node, indent=0): indent_str = '| ' * indent if node is None: print('{}<null node>'.format(indent_str)) return print('{}<{}>'.format(indent_str, node.kind_name)) for child in node: dump(child, indent + 1) ctx = AnalysisContext('...
8641f3ba59a56757c00f78449ad28fc8968c2418
855b013907d33b7e1bb74f688e5314b0e9bae510
/python-package/test/test_python.py
b1c2b76564cef1d20db446b23269a022b3fa2896
[ "Apache-2.0" ]
permissive
aksnzhy/xlearn
5b3f3aa29b31c7080a3e0835f073d34157878c44
4c240aa0aa63c1d105fb9aec583adc2ad2840368
refs/heads/master
2023-09-01T08:44:21.447056
2022-06-05T10:44:18
2022-06-05T10:44:18
93,925,242
3,261
624
Apache-2.0
2023-08-28T05:18:27
2017-06-10T08:09:31
C++
UTF-8
Python
false
false
1,569
py
test_python.py
# Copyright (c) 2018 by 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 required by applicable...
90489dd4d802c08631cdf6b9aa65be1e55b23e8a
a0eb6744e6f7f509b96d21f0bc8b3f8387f6861c
/notebook/prime_factorization.py
8a473e810e06e0738394a0d04f3fd2f07608aa3e
[ "MIT" ]
permissive
nkmk/python-snippets
a6c66bdf999502e52f4795a3074ced63bf440817
f9dd286a9cf93f474e20371f8fffc4732cb3c4d5
refs/heads/master
2023-08-03T04:20:05.606293
2023-07-26T13:21:11
2023-07-26T13:21:11
98,900,570
253
77
MIT
2020-10-25T01:12:53
2017-07-31T14:54:47
Jupyter Notebook
UTF-8
Python
false
false
703
py
prime_factorization.py
import collections def prime_factorize(n): a = [] while n % 2 == 0: a.append(2) n //= 2 f = 3 while f * f <= n: if n % f == 0: a.append(f) n //= f else: f += 2 if n != 1: a.append(n) return a print(prime_factorize(1)) ...
18114bee0654847097d3f346f019f8085accc5ca
2a271a3827527456aaee84c2bc6f365d5d083722
/software/SchemaTerms/sdoterm.py
c1d2bb118b5b620dc6a890f206a254c7d75831eb
[ "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
schemaorg/schemaorg
a003f55f639c4c0c6b34aac2615f01264f5fe615
bd3df4106937863a6ae9351fcb4782b67a016357
refs/heads/main
2023-08-15T04:51:12.309628
2023-07-19T10:25:18
2023-07-19T10:25:18
16,394,957
5,326
969
Apache-2.0
2023-08-23T14:27:50
2014-01-30T23:58:35
HTML
UTF-8
Python
false
false
2,419
py
sdoterm.py
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- import logging logging.basicConfig(level=logging.INFO) log = logging.getLogger(__name__) import rdflib from rdflib import URIRef import io class SdoTerm(): TYPE = "Type" PROPERTY = "Property" DATATYPE = "Datatype" ENUMERATION = "Enumeration" ENUMERA...
242ca9e1de638fd70ec3c13adbd425d88e523dea
b049a961f100444dde14599bab06a0a4224d869b
/sdk/python/pulumi_azure_native/devcenter/get_network_connection.py
4934486fee2c1fdbaf7be7cd700940c818c31cf2
[ "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
10,932
py
get_network_connection.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 . imp...
f5f449e826d68c681c0727bb8e14ee019f6e279d
519037f251bf4a46f166529c9cc44f6ad6b54d4d
/tests/exploratory/multiple_basedirs/radish2/steps.py
793b431cf5d0d878ea1f8b1e525e56a41bc825c6
[ "MIT" ]
permissive
radish-bdd/radish
0783d68b4faa3bfdb4364475353a4113b5e1aa70
1bc9e001c24c263ad8ce45d2dff97b89d41082a8
refs/heads/main
2023-08-22T17:33:14.194441
2023-08-17T18:24:32
2023-08-17T18:24:32
36,678,450
193
53
MIT
2023-08-17T18:21:36
2015-06-01T17:59:33
Python
UTF-8
Python
false
false
171
py
steps.py
# -*- coding: utf-8 -*- from radish import then @then("I expect the result to be {result:g}") def expect_result(step, result): assert step.context.result == result
a188b1290fa98b1236ea19baccb602c699ea3fb1
952dc66c61966f099756cdb6c2d13b40352f63cc
/zerver/management/commands/enqueue_digest_emails.py
6507335c5121cedff954d57d712caffefccc7b15
[ "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
691
py
enqueue_digest_emails.py
import datetime import logging from typing import Any from django.conf import settings from django.core.management.base import BaseCommand from django.utils.timezone import now as timezone_now from zerver.lib.digest import DIGEST_CUTOFF, enqueue_emails from zerver.lib.logging_util import log_to_file ## Logging setup...
6656a28d5aca6e1604b6dc18e799258832570af9
b65a7cad11c96682628ff023a24a617118733881
/evaluation.py
4b6c098ae197d7956de8970d2d2b7e858b504c4e
[ "MIT" ]
permissive
YonghaoXu/SEANet
abb1f80f3ce37755d7be4fda5ab0d67ec3f3d178
73aea56761968562593ac81c681e791b449cb919
refs/heads/master
2021-06-19T21:02:29.472077
2021-06-17T01:21:53
2021-06-17T01:21:53
166,198,006
106
13
null
null
null
null
UTF-8
Python
false
false
3,275
py
evaluation.py
import argparse import scipy from scipy import ndimage import numpy as np import sys import torch from torch.autograd import Variable import torchvision.models as models import torch.nn.functional as F from torch.utils import data, model_zoo from model.SEAN import SEANet from dataset.cityscapes_dataset imp...
a54e30e838964d5400b3cd48356c267cda148fc2
5917ffcb780cfcfe4e2b87b11fca1f68f387b239
/plenum/test/view_change_slow_nodes/test_view_change_2_of_4_nodes_with_old_and_new_primary.py
b068d153b6a3bfddb239cb9c4ca4e36d4c3294ac
[ "Apache-2.0" ]
permissive
hyperledger/indy-plenum
6ff9f705af80dfa28d4cb92743683f78bb937aa3
698b9500ad3a7a15993af72a1c35a406c5673262
refs/heads/main
2023-08-29T01:32:26.384729
2023-06-20T16:42:11
2023-06-20T16:42:11
51,585,028
171
420
Apache-2.0
2023-06-20T16:42:14
2016-02-12T12:03:16
Python
UTF-8
Python
false
false
1,280
py
test_view_change_2_of_4_nodes_with_old_and_new_primary.py
from plenum.test.test_node import get_master_primary_node, get_first_master_non_primary_node from plenum.test.view_change.helper import view_change_in_between_3pc def slow_nodes(node_set): return [get_master_primary_node(node_set), get_first_master_non_primary_node(node_set)] def test_view_change_in...
8022dd572b0795bc85b510297459cfdadadf5132
5deeb3618189cca6f66e91d1ddcb3ce63dede8ff
/msal/wstrust_response.py
9c58af23fccd539e68bf1c2f36f2af6d2313deef
[ "MIT" ]
permissive
AzureAD/microsoft-authentication-library-for-python
f157efc1ec6c6d91a132f3dc8dc4742d7a309b78
bba6b146d6fca64d43eaf313da654c0570ccd497
refs/heads/dev
2023-09-03T14:34:20.487126
2023-08-23T08:10:18
2023-08-23T08:10:18
67,243,113
717
188
NOASSERTION
2023-09-12T16:46:21
2016-09-02T17:45:26
Python
UTF-8
Python
false
false
4,599
py
wstrust_response.py
#------------------------------------------------------------------------------ # # Copyright (c) Microsoft Corporation. # All rights reserved. # # This code is licensed under the MIT License. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentatio...
8028aa1d1d3a03b809ec3369b96176feae6a846e
b5510b559210c385c1e86433f7ed22eeec83758c
/kvirt/providers/kvm/helpers.py
2e236c286ec15bc88aaf441da542b10eca36b052
[ "Apache-2.0" ]
permissive
karmab/kcli
adae878fb84f38583032563928e401d7c71e6b86
7991e2d3468ce1b43a98a2f9b19db76121335f6c
refs/heads/main
2023-08-31T00:01:28.407676
2023-08-30T21:26:34
2023-08-30T21:26:34
67,212,828
430
149
Apache-2.0
2023-09-13T21:59:18
2016-09-02T10:13:07
Python
UTF-8
Python
false
false
1,965
py
helpers.py
DHCPKEYWORDS = ['T1', 'T2', 'all-subnets-local', 'arp-timeout', 'boot-file-size', 'bootfile-name', 'bootfile-param', 'bootfile-url', 'classless-static-route', 'client-arch', ...
e4196051194f73bf708993713651e40b3c9e7ea9
e1351a65665f78af78f191c1a7b92a8511beddb6
/esmvaltool/utils/prov2files.py
15873893d562bf74c6c3cf22e76807118a78266a
[ "LicenseRef-scancode-proprietary-license", "Apache-2.0" ]
permissive
ESMValGroup/ESMValTool
5364262eee9f1bb5e8084e73e2a18565e958fdfa
0d2b68d6614c667141207affd7834cc49d34b203
refs/heads/main
2023-08-24T20:05:57.882973
2023-08-24T11:34:49
2023-08-24T11:34:49
80,120,461
196
138
Apache-2.0
2023-09-14T15:32:43
2017-01-26T14:15:37
NCL
UTF-8
Python
false
false
2,159
py
prov2files.py
"""Print out the input files used to generate a result.""" import argparse from prov.model import ProvDerivation, ProvDocument def prov2files(filename): """Figure out what file was generated from which source files. Parameters ---------- filename: str Name of the file containing the provenan...
ff93b305bd1d0be0412f0f10c8d718276ec0efa0
3a6a211ea0d32405497fbd6486c490bb147e25f9
/catapult_build/build_steps_unittest.py
4d76e811997cfb4345bba00ade2aa91bf376c75a
[ "BSD-3-Clause" ]
permissive
catapult-project/catapult
e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0
53102de187a48ac2cfc241fef54dcbc29c453a8e
refs/heads/main
2021-05-25T07:37:22.832505
2021-05-24T08:01:49
2021-05-25T06:07:38
33,947,548
2,032
742
BSD-3-Clause
2022-08-26T16:01:18
2015-04-14T17:49:05
HTML
UTF-8
Python
false
false
1,910
py
build_steps_unittest.py
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import unittest from catapult_build import build_steps class BuildStepsTest(unittest.TestCase): def testCatapultTestList(self): catapult_...
882bfa24fed605cb5465ae67378fabe07cd9aedf
6f2fef1b207299681f8d67d3831c400bb91de04b
/data_collection/gazette/spiders/ma_codo.py
2382d3a428457b643935c1ea8875992657704213
[ "MIT" ]
permissive
okfn-brasil/querido-diario
76177747aa5ad47e99514f38402e6bc747b9a715
548a9b1b2718dc78ba8ccb06b36cf337543ad71d
refs/heads/main
2023-08-22T04:26:30.798196
2023-08-18T14:12:37
2023-08-18T14:12:37
127,598,755
402
233
MIT
2023-09-14T18:56:02
2018-04-01T05:01:21
Python
UTF-8
Python
false
false
298
py
ma_codo.py
import datetime as dt from gazette.spiders.base.aplus import BaseAplusSpider class MaCodoSpider(BaseAplusSpider): TERRITORY_ID = "2103307" name = "ma_codo" start_date = dt.date(2020, 2, 17) allowed_domains = ["codo.ma.gov.br"] url_base = "https://www.codo.ma.gov.br/diario/"
8637314a87b241e05141f8da87607b4c55ae7eb9
0a8a4bfd6b4ffcfb7c99119c83cb3abe17c4a8f6
/test/util/util_test.py
76b7da8b4bdfe4a534f5310a6e392a8ee48c3050
[ "MIT", "Apache-2.0" ]
permissive
google/openhtf
58c06e07508f9bb2079070a5ac03898fc68c1778
3a9a24987b2b34782fca55a8df8d007167dbb19a
refs/heads/master
2023-08-23T12:12:54.917649
2023-07-27T01:51:17
2023-07-27T01:51:43
41,519,483
471
253
Apache-2.0
2023-09-12T00:47:42
2015-08-28T01:14:17
Python
UTF-8
Python
false
false
2,571
py
util_test.py
# Copyright 2015 Google Inc. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agre...
1f679e9ba1f43f3795bba7c491967f40cde64ce6
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/Python_Scripting_for_Computational_Science_Third_Edition/py/examples/pde/wave1D_func5.py
52fd2124bb46cfb9e6c43b0fc0890227c7280792
[]
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
12,176
py
wave1D_func5.py
#!/usr/bin/env python """ As wave1D_func4.py, but the problem is formalized in terms of ODEs. """ from __future__ import division # disable integer division from scitools.numpyutils import * from CurveViz import * def ic_scalar(u, x, I, U_0, U_L): n = u.shape[0] - 1 t = 0 for i in iseq(0,n): u[i] ...
59e118c7dcb6b8b6ba205483a8aea95756de88d7
b8c1ee67d1e770ca0a49771751df8cef6a5b6935
/pythainlp/tag/pos_tag.py
90a0d778862bd8e8a56b939e910aebae419ce25a
[ "Apache-2.0", "CC0-1.0", "LicenseRef-scancode-public-domain", "CC-BY-4.0" ]
permissive
PyThaiNLP/pythainlp
2922c6e4723f1828d39793eb722dc163d141c4f2
43cd4f8029d2d9b0d3fd1e4cc30faab7e8052eeb
refs/heads/dev
2023-09-04T03:42:44.488153
2023-08-20T04:10:28
2023-08-20T04:10:28
61,813,823
761
264
Apache-2.0
2023-08-20T04:10:30
2016-06-23T14:57:26
Python
UTF-8
Python
false
false
7,618
py
pos_tag.py
# -*- coding: utf-8 -*- # Copyright (C) 2016-2023 PyThaiNLP Project # # 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 a...
1fd73119e18169a82a74f68820234197bfd95881
10cb11f83e1c8b51b9d72c28d6259a56ff1a97c8
/samcli/local/lambdafn/zip.py
05c6aa0eb2b7658639a97cfebb7ec11704021ffb
[ "Apache-2.0", "BSD-3-Clause", "MIT", "BSD-2-Clause" ]
permissive
aws/aws-sam-cli
6d4411aacf7f861e75e5cf4882a32858797a276d
b297ff015f2b69d7c74059c2d42ece1c29ea73ee
refs/heads/develop
2023-08-30T23:28:36.179932
2023-08-30T21:58:26
2023-08-30T21:58:26
92,205,085
1,402
470
Apache-2.0
2023-09-14T21:14:23
2017-05-23T18:16:23
Python
UTF-8
Python
false
false
4,247
py
zip.py
""" Helper methods to unzip an archive preserving the file permissions. Python's zipfile module does not yet support this feature natively (https://bugs.python.org/issue15795). """ import logging import os import zipfile LOG = logging.getLogger(__name__) S_IFLNK = 0xA def _is_symlink(file_info): """ Check ...
bc7b8bd2bda6d2f23083a19063bd5c1b985df7fe
da1721d2783ea4d67ff4e73cee6eee71292f2ef7
/toontown/safezone/DistributedFindFour.py
c43ac0920dbe5f5567fe7adbe6bbfa926d4445d0
[ "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
33,793
py
DistributedFindFour.py
from panda3d.core import * from panda3d.otp import WhisperPopup from direct.distributed.ClockDelta import * from direct.task.Task import Task from direct.interval.IntervalGlobal import * from .TrolleyConstants import * from direct.gui.DirectGui import * from toontown.toonbase import TTLocalizer from direct.distributed ...
886a07773cfa0af38e4179a5fe327f737d0c65bb
159bfe57c3c1fc8fdbe0299233ec3060710f0da0
/wallstreet/constants.py
87e691cb6e26eadd49bd1bbae5b372d175aadb87
[ "MIT" ]
permissive
mcdallas/wallstreet
fc42df4ccc571231b87cdcbca3fd582c9f915c25
c34514387e181f9a752375431c4382466432fa05
refs/heads/master
2023-01-04T01:00:58.625199
2022-12-30T12:34:16
2022-12-30T12:34:16
50,063,599
1,153
212
MIT
2022-12-30T12:32:40
2016-01-20T22:03:39
Python
UTF-8
Python
false
false
403
py
constants.py
DATE_FORMAT = '%d-%m-%Y' DATETIME_FORMAT = '%e %b %Y %H:%M:%S' TREASURY_URL = "https://home.treasury.gov/sites/default/files/interest-rates/yield.xml" DELTA_DIFFERENTIAL = 1.e-3 VEGA_DIFFERENTIAL = 1.e-4 GAMMA_DIFFERENTIAL = 1.e-3 RHO_DIFFERENTIAL = 1.e-4 THETA_DIFFERENTIAL = 1.e-5 IMPLIED_VOLATILITY_TOLERANCE = 1.e...
ec683a6630fb4537d01602729decade17009c602
b049a961f100444dde14599bab06a0a4224d869b
/sdk/python/pulumi_azure_native/network/v20190801/virtual_network_gateway.py
a3c346fb87f22f4729298cadfea9e560c6bd116a
[ "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
34,471
py
virtual_network_gateway.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...
462e385d29a67e98f716cf20fb122c3c7189f7e8
3a6a211ea0d32405497fbd6486c490bb147e25f9
/third_party/gsutil/third_party/pyu2f/pyu2f/apdu.py
fee2abdb160f367fb66dfe8aefe06688015d5155
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
catapult-project/catapult
e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0
53102de187a48ac2cfc241fef54dcbc29c453a8e
refs/heads/main
2021-05-25T07:37:22.832505
2021-05-24T08:01:49
2021-05-25T06:07:38
33,947,548
2,032
742
BSD-3-Clause
2022-08-26T16:01:18
2015-04-14T17:49:05
HTML
UTF-8
Python
false
false
3,878
py
apdu.py
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...