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
2f393e99ca001d6f08d07b379fbcbae7efbbd274
1f2a7bd35e2e5f1a9bd82393e324f15886ab1e33
/blogs/inferences_salary.py
54a768b133cae4e6d15339f75b8eab84d7e578d1
[ "MIT" ]
permissive
erdogant/bnlearn
b2e90c68d1bf4a963ac196dd0eed01118c069f33
2489603ec450f70f2f0a11b1659dc9d060cb2ce9
refs/heads/master
2023-08-08T08:31:26.686167
2023-07-20T19:49:12
2023-07-20T19:49:12
231,263,493
389
47
NOASSERTION
2023-04-29T10:57:55
2020-01-01T21:00:30
Jupyter Notebook
UTF-8
Python
false
false
7,470
py
inferences_salary.py
import bnlearn as bn import datazets as dz import numpy as np # Get the data science salary data set df = dz.get('ds_salaries') # %% Pre processing df['country'] = 'USA' countries_europe = ['SM', 'DE', 'GB', 'ES', 'FR', 'RU', 'IT', 'NL', 'CH', 'CF', 'FI', 'UA', 'IE', 'GR', 'MK', 'RO', 'AL', 'LT', 'BA', 'LV', 'EE', 'A...
178ec3576b8e452c8974aecbe6c72b152b3475a8
be5deac90813d7e9c600f6d01f57bc10ade6a158
/tests/book/ch08/msra_ner.py
8b3081b965feaedcdcc80acb77cb31e2cc2a451e
[ "Apache-2.0" ]
permissive
hankcs/pyhanlp
a49ed4ae3e32b30ed8d9c8010c0a3e87a4e413d0
cda01245d68b3e94d16f37d979427433b20d7c3e
refs/heads/master
2023-08-19T07:04:14.413190
2023-04-04T17:59:25
2023-04-04T17:59:25
125,806,243
3,169
888
Apache-2.0
2022-01-11T16:33:55
2018-03-19T05:34:36
Python
UTF-8
Python
false
false
532
py
msra_ner.py
# -*- coding:utf-8 -*- # Author:hankcs # Date: 2018-07-04 17:41 # 《自然语言处理入门》8.5.3 基于感知机序列标注的命名实体识别 # 配套书籍:http://nlp.hankcs.com/book.php # 讨论答疑:https://bbs.hankcs.com/ import os from tests.test_utility import ensure_data MSRA_NER = ensure_data("msra-ne", "http://file.hankcs.com/corpus/msra-ne.zip") MSRA_NER_TRAIN = o...
0435a338dff696f56fc09e376b1ce5bdb5e936eb
10cb11f83e1c8b51b9d72c28d6259a56ff1a97c8
/tests/integration/testdata/buildcmd/terraform/zip_based_lambda_functions_s3_backend_container_windows/my_layer_code/layer.py
26364cc418a700c2f9a7614aa96b39fd28c1eb86
[ "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
80
py
layer.py
import numpy def layer_method(): return {"pi": "{0:.2f}".format(numpy.pi)}
bd059b19d02e96d0cf6e772b29f8c1575a8bc8c6
bb37e58607108dee793197805ece5946e0a31337
/scripts/convert_txt2csv.py
d67fdf02b6312d22983b9c7975b5b0cd77ff14f3
[ "CC0-1.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
JabRef/abbrv.jabref.org
c2bea4b556484d1c12ae65a4b7e98307b1c688bf
52c1b0ae403d8ca87fb9840ba1ccbfa36dac9dbe
refs/heads/main
2023-08-29T18:29:28.522220
2023-08-01T09:07:48
2023-08-01T09:07:48
17,630,189
105
87
CC0-1.0
2023-09-03T11:53:22
2014-03-11T12:51:34
Python
UTF-8
Python
false
false
891
py
convert_txt2csv.py
#!/usr/bin/python3 """ Python script for converting journals abbreviation files to CSV format. Dependencies: pandas Usage: python3 convert_txt2csv.py """ import glob import os import pandas as pd for file in glob.glob("journals/*.txt"): fileName, _fileExtension = os.path.splitext(file) commented_lines = 0 ...
5320b18818c89f55b2c16cf63006fc0754098268
83b8b30ebb633eecd29ca0a7a20cc43a293c9333
/tests/extmod/framebuf_subclass.py
4cd9ea4eb5fa34be995b09d1f8c06079eaab6d7c
[ "MIT", "GPL-1.0-or-later" ]
permissive
adafruit/circuitpython
430ec895149d1eb814b505db39b4977a35ee88a7
506dca71b0cbb7af749bb51f86b01021db5483b3
refs/heads/main
2023-08-21T16:30:46.781068
2023-08-20T00:39:44
2023-08-20T00:39:44
66,166,069
3,806
1,560
MIT
2023-09-14T19:23:51
2016-08-20T20:10:40
C
UTF-8
Python
false
false
1,014
py
framebuf_subclass.py
# test subclassing framebuf.FrameBuffer try: import framebuf, usys except ImportError: print("SKIP") raise SystemExit # This test and its .exp file is based on a little-endian architecture. if usys.byteorder != "little": print("SKIP") raise SystemExit class FB(framebuf.FrameBuffer): def __in...
ebe284befeeebd834df94680f0f8bca5d8e7913d
0559694cf652f496c8fc3a7827715e5fcf98e7b8
/InnerEye/Common/type_annotations.py
7751610292e768686762f87aec76635ced817f79
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
microsoft/InnerEye-DeepLearning
9f7fc5f5dbeb153138d5668f1d026f24b68cb50f
2877002d50d3a34d80f647c18cb561025d9066cc
refs/heads/main
2023-08-24T16:52:52.817042
2023-03-23T09:36:07
2023-03-23T09:36:07
259,878,805
511
144
MIT
2023-07-26T18:55:26
2020-04-29T09:15:05
Python
UTF-8
Python
false
false
907
py
type_annotations.py
# ------------------------------------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # -------------------------------------------------------------------...
9ec90480b1489d25c6818011bb0aced0e57c56c5
88dda5e76cef286c7db3ae7e5d1a32d28f7815a3
/reviewboard/webapi/tests/test_file_attachment.py
b751b9029d7bb39ffe64eef25d4cd8b6bd6c7e5e
[ "MIT" ]
permissive
reviewboard/reviewboard
f4d3bada08ba9d6ef53add2d1fdb82bd6cc63a1e
c3a991f1e9d7682239a1ab0e8661cee6da01d537
refs/heads/master
2023-08-31T09:03:14.170335
2023-08-30T08:22:43
2023-08-30T08:22:43
285,304
1,141
353
MIT
2023-06-07T16:51:02
2009-08-22T21:39:49
Python
UTF-8
Python
false
false
12,699
py
test_file_attachment.py
from djblets.webapi.errors import INVALID_FORM_DATA, PERMISSION_DENIED from reviewboard.attachments.models import (FileAttachment, FileAttachmentHistory) from reviewboard.webapi.resources import resources from reviewboard.webapi.tests.base import BaseWebAPITestCase from revi...
8ee0d03669325e6bfe26d39912628bdb79f2362a
578db86c51d44ebddd0dc7b1738985b3dc69eb74
/corehq/form_processor/tests/test_system_action.py
c3c671047a5551429c886f84264d9959964ec3cb
[ "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
1,289
py
test_system_action.py
from uuid import uuid4 from django.test import TestCase from testil import eq from corehq.apps.receiverwrapper.util import submit_form_locally from ..exceptions import XFormNotFound from ..models.forms import ARCHIVE_FORM from ..interfaces.processor import HARD_DELETE_CASE_AND_FORMS from ..models import XFormInstan...
462828c997d17105339760600bd4b730afcf0fe2
44ddd25c6aa008cc0a814f9f49b2344c6a59aedb
/lib/coloraide/spaces/achromatic.py
679aeecfb4b8c67cb8e248df391260453e7ee6e1
[ "MIT" ]
permissive
facelessuser/ColorHelper
eb757896fa6e4a9029090188fad789587dc2ed06
ad4d779bff57a65b7c77cda0b79c10cf904eb817
refs/heads/master
2023-08-31T20:51:30.390633
2023-08-28T15:53:39
2023-08-28T15:53:39
31,641,842
279
41
MIT
2023-09-06T23:37:41
2015-03-04T06:27:11
Python
UTF-8
Python
false
false
6,709
py
achromatic.py
"""Tools for dynamic achromatic response.""" from .. import algebra as alg import bisect from typing import Any from ..types import Vector from abc import ABCMeta, abstractmethod import math from typing import List, Tuple, Optional class Achromatic(metaclass=ABCMeta): """Calculate a spline that follows a color's ...
ecb78756fe550cfe806762c066fb973cfef3ad08
c26483bc1399e7879471a9e53d0288cb2c756088
/onnxmltools/convert/coreml/operator_converters/neural_network/BidirectionalLSTM.py
723805eb69a61f281606574ba1d364fcfb4c22e6
[ "Apache-2.0" ]
permissive
onnx/onnxmltools
6782d9e1d2c75be7618b1378405d31198a310027
024a62f6915e6c3b9e040befaf058c7e60c271de
refs/heads/main
2023-09-04T04:57:10.943548
2023-08-28T16:43:37
2023-08-28T16:43:37
121,798,175
827
189
Apache-2.0
2023-09-13T16:07:20
2018-02-16T20:37:33
Python
UTF-8
Python
false
false
25,061
py
BidirectionalLSTM.py
# SPDX-License-Identifier: Apache-2.0 import numpy as np from .....proto import onnx_proto from ....common._apply_operation import apply_concat, apply_split from ....common._registration import register_converter from .SimpleRNN import extract_rnn_activation_info from .Reshape import apply_reshape def convert_bidire...
4efcf753e0c5c7bb3c28501bc9358deae4d72330
47ef6997d03f4d5c921c83cc09aef1dfc6828e2c
/zeus/datasets/conf/sr.py
8fbac1f279687ae2ca24a40de106f9a56f3a1048
[ "MIT" ]
permissive
huawei-noah/xingtian
620c9f245183d636e0a65659fd99a984397ecbd4
e4ef3a1c92d19d1d08c3ef0e2156b6fecefdbe04
refs/heads/master
2023-09-03T01:10:21.768245
2022-03-21T03:39:39
2022-03-21T03:39:39
287,759,621
308
91
MIT
2023-09-12T11:33:22
2020-08-15T14:13:06
Python
UTF-8
Python
false
false
2,066
py
sr.py
# -*- coding=utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the ...
da50733f36ce1d69e9d40b45c5c747e846963cd5
bdf7fa08c8e623641dca6f30c2b5bc4bdb23e773
/electrum/tests/test_psbt.py
3a9655838f5dd98d2dea6a14e81b9a498914bc34
[ "MIT" ]
permissive
spesmilo/electrum
d6cbfdeca60a347c60b6b0426ba567a21128193e
a740a20fc2677d54e99fa981b7968b877a7b53a3
refs/heads/master
2023-09-04T01:30:19.633217
2023-09-01T13:44:24
2023-09-01T13:44:24
5,274,894
7,132
2,516
MIT
2023-09-10T08:51:24
2012-08-02T16:24:30
Python
UTF-8
Python
false
false
72,393
py
test_psbt.py
from pprint import pprint import unittest from electrum import constants from electrum.transaction import (tx_from_any, PartialTransaction, BadHeaderMagic, UnexpectedEndOfStream, SerializationError, PSBTInputConsistencyFailure) from . import ElectrumTestCase class TestValidPSBT(Ele...
e5a059cca46effe50adee5341fdbe7997a87404c
7f0ed84404abb57c3bc062cd986b67c6a254d3f3
/proxy/core/tls/hello.py
f60c724b226cd91b322523f9de31f515995aeccd
[ "BSD-3-Clause" ]
permissive
abhinavsingh/proxy.py
ad8eff50476815c4654cade3b6fe628e1ecea2eb
30574fd0414005dfa8792a6e797023e862bdcf43
refs/heads/develop
2023-09-01T03:40:13.473734
2023-04-17T04:12:18
2023-04-17T04:12:18
12,228,178
2,691
657
BSD-3-Clause
2023-09-08T11:56:39
2013-08-19T21:33:51
Python
UTF-8
Python
false
false
7,388
py
hello.py
# -*- coding: utf-8 -*- """ proxy.py ~~~~~~~~ ⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on Network monitoring, controls & Application development, testing, debugging. :copyright: (c) 2013-present by Abhinav Singh and contributors. :license: BSD, see LICENSE...
e92ac525c82f8d3e581abb745167ab900e168877
d275ba038e0949becc21e83194359665aa9ba501
/publisher/doitools.py
a8cdfa0ebd1d85b45d10ac8d1af76a1c9c72c48c
[ "CC-BY-3.0", "CC-BY-4.0", "BSD-3-Clause" ]
permissive
scipy-conference/scipy_proceedings
516b25ecd8828502aef7cf8ed6476cee56a74a2c
d71bbd5b1268bd4db78abc940be1f4b60948defa
refs/heads/2023
2023-08-17T09:02:53.256969
2023-08-06T18:28:47
2023-08-06T18:28:47
1,825,629
157
363
NOASSERTION
2023-08-08T01:05:16
2011-05-31T10:26:48
TeX
UTF-8
Python
false
false
2,592
py
doitools.py
#!/usr/bin/env python # -*- encoding: utf-8 -*- """This module contains utility functions for generating DOIs and batch IDs for submitting conference proceedings to CrossRef. The entry points of this module are: make_doi - for making an entire DOI, given as assigned prefix make_batch_id - for making the identifier fo...
3d593482bdb3324c33aa049f16c663343ed0fb0e
d05c946e345baa67e7894ee33ca21e24b8d26028
/general/geolocation/reverse_geolocator.py
3739431d41f03ccf176f83abbe6d880880503045
[ "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
777
py
reverse_geolocator.py
from geopy.geocoders import Nominatim from pprint import pprint import time app = Nominatim(user_agent="tutorial") def get_address_by_location(latitude, longitude, language="en"): """This function returns an address as raw from a location will repeat until success""" # build coordinates string to pass to ...
f2a7bf45cb799f3bff91202793630c7de58be675
d8810093406a2ba401ac6ea300ed414bfab6b6a0
/kraken/__init__.py
dc5a45d2f06c5852f6291178f4e5ec54065f7234
[ "Apache-2.0" ]
permissive
mittagessen/kraken
11b8eeaff5dcfaa62a96b0af73ebe65bc2d9bef2
3e966a3e5c881394b882da95fa5941c4305aec43
refs/heads/main
2023-08-29T05:52:06.301403
2023-08-17T11:25:56
2023-08-17T11:25:56
35,872,353
565
140
Apache-2.0
2023-09-08T10:28:33
2015-05-19T09:24:38
Python
UTF-8
Python
false
false
45
py
__init__.py
""" entry point for kraken functionality """
462b32165229be0a741dec7b0387a16002b5a6fb
fd02a64d8c1f673c35983d8636f9351d20c98277
/validate-spice
54e36bd991fb5039a52daf41392ddd4def64217d
[]
no_license
linuxmint/cinnamon-spices-applets
363293413e3e9d0393b7b57bbe298b4d69c80bff
7a83cdef0b62cf3bb53224d66c405508daf77116
refs/heads/master
2023-08-23T14:12:43.815474
2023-08-23T11:48:30
2023-08-23T11:48:30
77,743,334
615
1,105
null
2023-09-14T11:37:09
2016-12-31T14:26:11
JavaScript
UTF-8
Python
false
false
5,467
validate-spice
#!/usr/bin/python3 import json import os import sys import subprocess from PIL import Image if len(sys.argv) != 2: print("Usage:") print("./validate-spice uuid") print("./validate-spice --all") sys.exit(1) SPICE_TYPE="applet" class CheckError(Exception): pass # function with checks for an xlet d...
9e6e686cdd9f3f6cac3e580603a6c59e1c1de85a
5dc77586e3e0f9de1f032fd2ca68494d8e58928f
/great_expectations/experimental/metric_repository/batch_inspector.py
9158bbf5528a19ed2482ec95db275fe6373b4dfe
[ "Apache-2.0" ]
permissive
great-expectations/great_expectations
dd7c22e6277d6b08bee3ff38a015e6e8cd434df6
b0290e2fd2aa05aec6d7d8871b91cb4478e9501d
refs/heads/develop
2023-09-04T09:30:26.395518
2023-09-02T00:00:13
2023-09-02T00:00:13
103,071,520
8,931
1,535
Apache-2.0
2023-09-14T19:57:16
2017-09-11T00:18:46
Python
UTF-8
Python
false
false
1,110
py
batch_inspector.py
from __future__ import annotations import uuid from typing import TYPE_CHECKING from great_expectations.experimental.metric_repository.metrics import ( Metric, MetricRun, ) if TYPE_CHECKING: from great_expectations.data_context import AbstractDataContext from great_expectations.datasource.fluent.inte...
70bcd985dc6bb0c530202ee4cba1efc01ec826c2
b8d80a23cb27af08a1c4d34b478c76228ae5fbb4
/insights/parsers/vsftpd.py
5c9ef6e73c639cb57282991e45522693d6efd309
[ "Apache-2.0" ]
permissive
RedHatInsights/insights-core
bb243e2bf8a52446fefb95ebe05478d6e35efe2e
b0ea07fc3f4dd8801b505fe70e9b36e628152c4a
refs/heads/master
2023-09-04T21:15:40.456257
2023-09-04T10:46:56
2023-09-04T10:46:56
92,518,221
144
290
Apache-2.0
2023-09-14T02:40:13
2017-05-26T14:23:11
Python
UTF-8
Python
false
false
3,679
py
vsftpd.py
""" Parsers for VSFTPD configuration ================================ This module contains two parsers: VsftpdPamConf - file ``/etc/pam.d/vsftpd`` ------------------------------------------ VsftpdConf - file ``/etc/vsftpd.conf`` -------------------------------------- """ from insights import Parser, LegacyItemAcce...
2cc59e9321bb4f501820cd9c2b06a41918b45f47
58e035aa002d083a3471e71d2f77779b20eef916
/examples/exxample_psutil_memory_full_info.py
cedbc4cd4e17f9b511133e33540c219f6fabb5c2
[ "BSD-3-Clause" ]
permissive
pythonprofilers/memory_profiler
cb737e5cf356817a4e1ac74f7a535cfe88003fca
3ae050f6cabfb99444546239029638580dbe9857
refs/heads/master
2023-08-29T14:01:24.630148
2023-07-21T11:34:22
2023-07-21T11:34:22
2,575,826
2,957
250
NOASSERTION
2023-07-21T11:34:24
2011-10-14T11:56:14
Python
UTF-8
Python
false
false
4,623
py
exxample_psutil_memory_full_info.py
from memory_profiler import memory_usage # size = 50000 size = 3000 def test_simple(): import numpy as np def func(): a = np.random.random((size, size)) return a rss = memory_usage(proc=func, max_usage=True, backend="psutil") uss = memory_usage(proc=func, max_usage=True, backend="p...
ae48dbac62470e33b72b20d260b37650402acbdd
b806efef0a1a6c185d3125e39dae02d4b68b9c8c
/fandogh_cli/volume_commands.py
038f2ab8bea124495ac22f2b59f2a6aa1bfbef0a
[ "MIT" ]
permissive
fandoghpaas/fandogh-cli
da89df64d346ebaba3ee03f88d81fbee8c3f8afa
8bb3e4e49ebcfea3a3defb1db1b1831e27ba8af7
refs/heads/master
2022-02-23T15:57:46.922914
2021-12-23T14:30:19
2021-12-23T14:30:19
131,755,014
138
38
MIT
2021-12-23T14:30:20
2018-05-01T19:36:33
Python
UTF-8
Python
false
false
4,368
py
volume_commands.py
import click from fandogh_cli.utils import format_text, TextStyle from .presenter import present from .base_commands import FandoghCommand from .fandogh_client import create_volume_claim, delete_volume_claim, list_volumes, resize_volume_claim ''' This class is for volume commands all cli commands related to v...
fada488dfe1c5edeac42f6442597bd55862af477
952dc66c61966f099756cdb6c2d13b40352f63cc
/zerver/migrations/0205_remove_realmauditlog_requires_billing_update.py
7e7d2247b62bf9af075042c1d332bdab46f58421
[ "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
361
py
0205_remove_realmauditlog_requires_billing_update.py
# Generated by Django 1.11.18 on 2019-02-02 02:49 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("zerver", "0204_remove_realm_billing_fields"), ] operations = [ migrations.RemoveField( model_name="realmauditlog", name="re...
f8c4addec2d7af3297b71a47327388c2a24845b7
1180c0bfe29959d95f3c131e6e839950e528d4ee
/52/jubnzv/TaskBarIcon.py
172c0a2ba0a7cca635bfef0b40deb72e715fb232
[ "MIT" ]
permissive
pybites/challenges
e3e461accd8e7f890aee8007ba5070086ef983fc
02b77652d0901e6e06cb9b1e7cb3e59c675445c2
refs/heads/community
2023-08-20T18:19:02.982214
2022-11-17T09:23:31
2022-11-17T09:23:31
78,264,928
764
3,115
null
2023-07-21T05:58:19
2017-01-07T07:17:50
Jupyter Notebook
UTF-8
Python
false
false
89,229
py
TaskBarIcon.py
# -*- coding: utf-8 -*- """ wxPomodoro - Simple pomodoro timer based on wxPython Phoenix GUI The MIT License (MIT) Copyright (C) 2017 Georgy Komarov <jubnzv@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to ...
15ba53e7318ee139bc219cc2c9c4a18f7b69d071
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Sklearn_scipy_numpy/source/sklearn/metrics/metrics.py
72fec05174241c9f64686df13568ac20b6bf64d1
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
1,262
py
metrics.py
import warnings warnings.warn("sklearn.metrics.metrics is deprecated and will be removed in " "0.18. Please import from sklearn.metrics", DeprecationWarning) from .ranking import auc from .ranking import average_precision_score from .ranking import label_ranking_average_precision_score fro...
7ea07a67c8e7dbd25f2097d2a27e2cf3bc9196d4
cca64dea7bb01183c34a18b136c8be016d98c347
/python/graphscope/nx/algorithms/tests/forward/test_core.py
775fde8894b0d9610a5f7b6e72d062543f71cee3
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "FSFAP", "BSD-3-Clause-Clear", "GPL-1.0-or-later", "BSD-2-Clause-Views", "Bitstream-Vera", "MPL-2.0", "LicenseRef-scancode-warranty-disclaimer", "OFL-1.1", "BSD-3-Clause", "APAFML", "0BSD", "LicenseRef-scancode-free-unknown", "CC-B...
permissive
alibaba/GraphScope
857b6a87215913267f8c27ff8a6cedee9649ee24
8695655bc2f47113dc4d8aa6bd9532a92273e6d8
refs/heads/main
2023-09-01T18:20:57.592936
2023-09-01T09:06:55
2023-09-01T09:06:55
307,894,865
2,931
456
Apache-2.0
2023-09-14T11:34:10
2020-10-28T03:19:33
Rust
UTF-8
Python
false
false
265
py
test_core.py
import networkx.algorithms.tests.test_core import pytest from graphscope.nx.utils.compat import import_as_graphscope_nx import_as_graphscope_nx(networkx.algorithms.tests.test_core, decorators=pytest.mark.usefixtures("graphscope_session"))
46f20498927b7a12af90a5e79b40aff3a4931bfd
80f94bea418d7956df1ba19d4d6a1d7715a94ade
/tools/filters/sorter.py
e9ccb53d9a019a7618dc1e0451e178825b36c4f9
[ "CC-BY-2.5", "MIT", "CC-BY-3.0", "AFL-3.0" ]
permissive
galaxyproject/galaxy
5748409eb6693b1611f289d164f85e20c3237495
b9ae7a16ba0465995e880ae9701b7e87226b9bab
refs/heads/dev
2023-08-28T22:35:51.248138
2023-08-26T08:02:33
2023-08-26T08:02:33
31,211,061
1,277
1,137
NOASSERTION
2023-09-14T19:39:01
2015-02-23T14:18:06
Python
UTF-8
Python
false
false
2,312
py
sorter.py
""" Sorts tabular data on one or more columns. All comments of the file are collected and placed at the beginning of the sorted output file. """ # 03/05/2013 guerler import argparse import subprocess import sys def stop_err(msg): sys.exit(msg) def main(): # define options parser = argparse.Argu...
f182e93be52662554065e1a67d00bb256fd32b3e
cad91ae76d2746a6c28ddda0f33a58f9d461378f
/PyTorch/LanguageModeling/BERT/distillation/task_distill.py
1a08ee874e7434e62f7cf6498ee5d6a262b08822
[ "Apache-2.0" ]
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
58,136
py
task_distill.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors, The HuggingFace Inc. team and Huawei Noah's Ark Lab. # Copyright (c) 2018-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 Lic...
9f2bf568e569ba64b29eb01d41c5244ab3dbaf4c
444a9480bce2035565332d4d4654244c0b5cd47b
/research/cv/OctSqueeze/src/network.py
1cc094a06ad9603aa88b400b6dd7e90f59aa3f6a
[ "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
4,738
py
network.py
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
3ba48c1190c055aae69e8ee3ab6008123d6c54f7
3dc647cd07a7361ed401e40d2b7cce8c826c8f6c
/Lib/test/mod_generics_cache.py
6d35c58396d424ccb6151908b8510001a77d4b8a
[ "Python-2.0", "CC-BY-4.0", "MIT" ]
permissive
RustPython/RustPython
5ddce4a9848b9de8c041ffd2634f83c0105d3f39
b864e5da1f18897fc884180b7093df5aa170024f
refs/heads/main
2023-09-04T12:38:29.458699
2023-09-03T12:33:42
2023-09-03T12:33:42
135,201,145
15,815
1,302
MIT
2023-09-14T08:11:45
2018-05-28T19:27:01
Rust
UTF-8
Python
false
false
1,160
py
mod_generics_cache.py
"""Module for testing the behavior of generics across different modules.""" import sys from textwrap import dedent from typing import TypeVar, Generic, Optional if sys.version_info[:2] >= (3, 6): exec(dedent(""" default_a: Optional['A'] = None default_b: Optional['B'] = None T = TypeVar('T') c...
04b5623911d84edc8194213b9a7b30326d0da6e7
2181883c8faac55bfc969a97d22d9b24a3e81ab3
/win32/Demos/service/pipeTestServiceClient.py
cc12dc66a3577a6dbb678a4f1aaa29aababc37ec
[ "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
4,466
py
pipeTestServiceClient.py
# A Test Program for pipeTestService.py # # Install and start the Pipe Test service, then run this test # either from the same machine, or from another using the "-s" param. # # Eg: pipeTestServiceClient.py -s server_name Hi There # Should work. import os import sys import traceback import pywintypes import win32api ...
eee83927a491e448098c11c2898e724ebc452c2c
f487532281c1c6a36a5c62a29744d8323584891b
/sdk/python/pulumi_azure/pim/eligible_role_assignment.py
53d036df81a6f42cafd4273db05449b9e47cb477
[ "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
25,947
py
eligible_role_assignment.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...
41614a0cad5629bddf90ae261135c79f7c071f40
ab40571d5051ad53c0f205fa797ba36eac516d06
/language/gscan/xattn_model/dataset/input_pipeline.py
14fc3797151fc1af663865bb5a0e77ba1c2e2107
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
google-research/language
e941b1a92ab46d40d8d03bb0c314905cb6902ce2
ac9447064195e06de48cc91ff642f7fffa28ffe8
refs/heads/master
2023-08-24T23:10:13.207294
2023-05-25T20:47:18
2023-05-25T22:29:27
153,201,352
1,567
371
Apache-2.0
2023-07-06T23:03:15
2018-10-16T00:58:14
Python
UTF-8
Python
false
false
2,884
py
input_pipeline.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
9641a8b5cfbb8004d959c9c2bd38836bbea8b2b1
99dcb18a9e3ea367272f740b8cbf3c34285a0c08
/tests/system/aiplatform/test_e2e_metadata_schema.py
87afff662b47418b9471d7e5eccda6c0c5c7abca
[ "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
4,726
py
test_e2e_metadata_schema.py
# -*- coding: utf-8 -*- # Copyright 2022 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 o...
ea24f22e97d3b5c928897877da706592a8a68ba8
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/ui/message_center/public/DEPS
5502cd434d1495301c692b50c5e27962052f7cb9
[ "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
75
DEPS
include_rules = [ "-ui/message_center", "+ui/message_center/public", ]
dab9443f53ad5ad0979eac558d5603d777847dbb
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayCreditAutofinanceLoanApplyModel.py
7605548a5db112cd60a8db66841de38bca86ba9d
[ "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
4,473
py
AlipayCreditAutofinanceLoanApplyModel.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayCreditAutofinanceLoanApplyModel(object): def __init__(self): self._area = None self._backurl = None self._extparam = None self._itemid = None self._o...
af1c72fcf599ef3552111ae6a4d9e7becc6aac54
29dfa1deefc72493d1b1eecf1a8df62e24599a77
/tests/vfs/lvm_directory.py
fb53b9a5c9d7fd5f707dfc53d234dc01b6d577f3
[ "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,880
py
lvm_directory.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for the directory implementation using pyvslvm.""" import unittest from dfvfs.lib import definitions from dfvfs.path import factory as path_spec_factory from dfvfs.resolver import context from dfvfs.vfs import lvm_directory from dfvfs.vfs import lvm_file_system ...
7f8be86a424fe354b8eccf5cc5254c79703cd079
05209150ee39fac5d470516689e126bf5d8da55b
/aiocache/backends/redis.py
d30202ffc03a46ab3198739dde657edcba0c518b
[ "BSD-3-Clause" ]
permissive
aio-libs/aiocache
7b694237583b233511d8ca6018d478405626b366
63600a6ebc39c1f4f1cd2677d8629b71cbbcf380
refs/heads/master
2023-08-21T23:18:33.890923
2023-08-16T18:23:56
2023-08-16T18:23:56
69,653,334
488
84
BSD-3-Clause
2023-09-13T18:16:11
2016-09-30T09:25:51
Python
UTF-8
Python
false
false
8,907
py
redis.py
import itertools import warnings from typing import Any, Callable, Optional, TYPE_CHECKING import redis.asyncio as redis from redis.exceptions import ResponseError as IncrbyException from aiocache.base import BaseCache from aiocache.serializers import JsonSerializer if TYPE_CHECKING: # pragma: no cover from aio...
82db96b9d2c964836eb8229b768adcf43833ab73
4fb35218d67890a6e011b149be391dfd78d931b7
/self_instruct/src/data_processing/infer_kandinsky.py
d2bc23d548cefcfd374a8851e4b616d1830be044
[ "Apache-2.0" ]
permissive
IlyaGusev/rulm
8d76dc9f1b230e314412673b3b3ed7312b1de3db
ede656a2fa6cd68af8ae3dfecde300758a9bae6f
refs/heads/master
2023-07-28T10:31:47.336766
2023-07-26T19:03:23
2023-07-26T19:03:23
148,945,566
204
23
Apache-2.0
2023-08-26T13:07:05
2018-09-15T22:45:08
Jupyter Notebook
UTF-8
Python
false
false
1,369
py
infer_kandinsky.py
import os import re import hashlib from tqdm import tqdm import fire from kandinsky2 import get_kandinsky2 from transliterate import translit from src.util.io import read_jsonl, write_jsonl def generate_images( input_path, output_path, images_dir ): characters = read_jsonl(input_path) model = get...
d751ec2d5d1b4bd3f28ce05c5a4a447c9a46ad36
bb6ce2f4fc53dc9d2fc7a701cd4683b23ecf30b2
/liberapay/website.py
6eeebc4f073881583c3c1b878f9e460c38db216d
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
liberapay/liberapay.com
2640b9f830efaadd17009e3aed72eadd19c0f94e
a02eea631f89b17ac8179bdd37e5fa89ac54ede8
refs/heads/master
2023-08-31T10:44:04.235477
2023-08-27T07:29:47
2023-08-27T07:29:47
36,075,352
1,586
282
null
2023-09-03T09:23:26
2015-05-22T14:03:52
Python
UTF-8
Python
false
false
3,771
py
website.py
"""This module instantiates the global `website` object (the equivalent of Flask's `app`). To avoid circular imports this module should not import any other liberapay submodule. """ from contextvars import ContextVar, copy_context from datetime import timedelta import logging import os from cached_property import ca...
512e09a62406223224d8681b34381df6316f3957
0d40af0c10fd47af5ea88675e5be3b7ee98cbcd8
/third_party/rust/jsparagus/smoosh_status.py
63aeb3e0fdb0dd0c70d81ae438b5ce285129d993
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "LLVM-exception" ]
permissive
mozilla/gecko-dev
f02cdc9e61197c1d2a038cf1ad8cb5339e8cb62a
304e9eaa3d7dbfab38d5b5401cbae227b20efe37
refs/heads/master
2023-09-01T20:40:41.588946
2023-09-01T11:38:17
2023-09-01T11:38:17
13,509,108
3,025
1,882
NOASSERTION
2023-09-05T04:11:13
2013-10-11T20:35:42
null
UTF-8
Python
false
false
5,622
py
smoosh_status.py
#!/usr/bin/env python3 # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. import pathlib import json import urllib.request import re import subprocess import sys class L...
747ac39405303c55a1d0f107f52b6fd264cbee9a
e6ba27a48c3640bcc11a32168794ab54afb6b45e
/exercises/3.3/ros2/src/myworkcell_moveit_config/launch/move_group.launch.py
405ca5abdea7f8382d6b8469c3b01105d27cefdb
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
ros-industrial/industrial_training
db1dce413bf25ea7224ff14bb14dab9bcc4aefb7
5d0d1fd37e6496c5b5ac1ce4e72ea0e5f602c8a3
refs/heads/humble
2023-08-05T18:30:00.678163
2023-08-03T16:30:29
2023-08-03T16:30:29
14,630,836
400
253
Apache-2.0
2023-09-06T18:28:48
2013-11-22T22:16:18
C++
UTF-8
Python
false
false
329
py
move_group.launch.py
from moveit_configs_utils import MoveItConfigsBuilder from moveit_configs_utils.launches import generate_move_group_launch def generate_launch_description(): moveit_config = MoveItConfigsBuilder("myworkcell", package_name="myworkcell_moveit_config").to_moveit_configs() return generate_move_group_launch(moveit...
1cd2c5c261eb825c943303db28f20f1c35e55c0a
db796021e8f2373c794959efb1185057e44d69c5
/runners/old/rltools/run_con_hostage.py
bc8bead14effa1a7802fac5bd206a7bf4fbd9342
[ "MIT" ]
permissive
sisl/MADRL
ffc7941b555dbd78da521ebffaa0eb6262189be0
9ea39a0fe8695b391008a4eb7bda9fe4438a96de
refs/heads/master
2023-09-05T18:02:00.308756
2023-04-12T16:04:09
2023-04-12T16:04:09
62,418,890
587
136
MIT
2020-08-14T18:01:21
2016-07-01T20:47:43
Python
UTF-8
Python
false
false
7,706
py
run_con_hostage.py
#!/usr/bin/env python # # File: run_con_hostage.py # # Created: Sunday, August 14 2016 by rejuvyesh <mail@rejuvyesh.com> # from __future__ import absolute_import, print_function import argparse import json import numpy as np import tensorflow as tf from gym import spaces import rltools.algos.policyopt import rltools...
c80d0c342011f591d91df5e934d8dc342e1437a2
483424524c70852cc043e0d77bf1b757a61d797a
/tests/unit/runtime/zero/test_zeropp.py
27ec7269afc6939366ed5eb16f610a1de8b3e96e
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
microsoft/DeepSpeed
810f1af320020718d0794f5a97cde6f1d17af122
55d9964c59c0c6e23158b5789a5c36c28939a7b0
refs/heads/master
2023-09-06T07:40:52.145692
2023-09-05T23:51:23
2023-09-05T23:51:23
235,860,204
27,557
3,347
Apache-2.0
2023-09-14T21:38:46
2020-01-23T18:35:18
Python
UTF-8
Python
false
false
3,091
py
test_zeropp.py
# Copyright (c) Microsoft Corporation. # SPDX-License-Identifier: Apache-2.0 # DeepSpeed Team import pytest import deepspeed.comm as dist from torch.nn import Module from unit.common import DistributedTest from unit.simple_model import random_dataloader import deepspeed from deepspeed.runtime.zero.config import Dee...
638c9d3dbd4a30d61ea1688f9b618bf8eafba624
6bb45c5892b4c9692dcc44116fb73dc9e7ab90ff
/step-functions-data-science-sdk/automate_model_retraining_workflow/code/glue_etl.py
412e5ed7609a94ad59125e2ef8c210f94ce7d7ac
[ "Apache-2.0", "BSD-2-Clause" ]
permissive
aws/amazon-sagemaker-examples
8359afe544e873662bda5b8d2b07399c437213c9
43dae4b28531cde167598f104f582168b0a4141f
refs/heads/main
2023-08-26T04:42:52.342776
2023-08-25T14:37:19
2023-08-25T14:37:19
107,937,815
4,797
3,519
Apache-2.0
2023-09-14T19:47:03
2017-10-23T05:55:22
Jupyter Notebook
UTF-8
Python
false
false
1,121
py
glue_etl.py
import sys from awsglue.context import GlueContext from awsglue.dynamicframe import DynamicFrame from awsglue.job import Job from awsglue.transforms import * from awsglue.utils import getResolvedOptions from pyspark.context import SparkContext # Retrieve parameters for the Glue job. args = getResolvedOptions(sys.argv...
fe8d9f90785d9984b188d44c5fee48047a4a8e12
e0cc314aa73c0a965a2022f19900df3ccc8c9f43
/ctypes_generation/extended_structs/_SERVICE_STATUS_PROCESS.py
f46ce94d7853bdf8b5ec05b233cc6bf3655544be
[ "BSD-3-Clause" ]
permissive
hakril/PythonForWindows
21823e743ee4ae7ff99e376378357833f2e19d26
82d0c5cc5c9b4d569dca2c755f26b947e3ff74f5
refs/heads/master
2023-06-08T03:25:50.354768
2023-05-26T07:31:06
2023-05-26T07:31:06
49,235,784
568
111
BSD-3-Clause
2023-01-30T12:04:03
2016-01-07T22:54:33
Python
UTF-8
Python
false
false
1,435
py
_SERVICE_STATUS_PROCESS.py
class _SERVICE_STATUS_PROCESS(_SERVICE_STATUS_PROCESS): SERVICE_STATE = FlagMapper(SERVICE_STOPPED, SERVICE_START_PENDING, SERVICE_STOP_PENDING, SERVICE_RUNNING, SERVICE_CONTINUE_PENDING, SERVICE_PAUSE_PENDING, SERVICE_PAUSED) SERVICE_TYPE = FlagMapper(SERVICE_K...
a92ef5e6527fc79e9048d778cb51c3a25666cbad
c50e7eb190802d7849c0d0cea02fb4d2f0021777
/src/support/azext_support/_validators.py
092a9e4e57194863431a83b999b2f022e29ee2cc
[ "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
3,806
py
_validators.py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
b239243fe7919c42212f472c4229b352c10f1acd
d0aaa997bacc424ef2bd4ab3bc7d4ac2ff77a9d6
/kmip/core/factories/payloads/response.py
edf702e72726cf88ac677e273a262f4b0465c870
[ "Apache-2.0" ]
permissive
OpenKMIP/PyKMIP
f38afedd07d4f82cf056b4a38af465bfaf19ef37
f0a44b26ce902d8b9c330634d5b3603959edf1d4
refs/heads/master
2023-08-03T10:57:15.054126
2023-04-28T08:01:34
2023-08-01T18:34:13
22,601,443
232
155
Apache-2.0
2023-09-12T20:03:28
2014-08-04T11:14:51
Python
UTF-8
Python
false
false
3,080
py
response.py
# Copyright (c) 2014 The Johns Hopkins University/Applied Physics Laboratory # 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/LICEN...
e09e381dfcfe2c8c94877a74d35e56a8bd70b9fe
4578be5ff20640cd0940faa27901489daa471ffe
/S03 - Estrutura de Dados/ED com Alisson 2022.1/hackerrank.py
94d6b1fea0d3031fb3843b2cc523f5c9bda7d2ba
[]
no_license
CAECOMP/provas
cd31c48a912ad5e73f5bf8b826db40cf895f46b1
3f5eb4ec63fc91ad2c2e4ae6e5b3ac87c09ca916
refs/heads/master
2023-07-07T11:53:38.798374
2023-04-27T03:13:57
2023-04-27T03:13:57
55,001,094
125
83
null
2023-07-04T21:21:05
2016-03-29T18:38:41
HTML
UTF-8
Python
false
false
6,114
py
hackerrank.py
# Plus Minus def plusMinus(arr): contP = 0 contN = 0 contZ = 0 for valor in arr: if valor > 0: contP +=1 elif valor < 0: contN += 1 else: contZ +=1 tamanho = len(arr) print("%.6f" % (contP/tamanho)) print("%.6f" % (contN/...
9b268f330b83f7223026d4e57da18693ee132466
6c2dbc8d4e536220fb3b1cc72aa8104aea8b0698
/aiogram/dispatcher/middlewares/user_context.py
12bb486482dcd1bfef1960f00b86b37e3a36cd40
[ "MIT" ]
permissive
aiogram/aiogram
f8f98a0beb63bd4d93ea810638d5792569bf354b
04bd0c9e7c5421c060183b90d515050f41377bc1
refs/heads/dev-3.x
2023-08-30T21:20:13.018174
2023-08-28T23:01:54
2023-08-28T23:01:54
111,210,856
4,287
1,250
MIT
2023-09-10T21:34:03
2017-11-18T14:11:13
Python
UTF-8
Python
false
false
3,262
py
user_context.py
from typing import Any, Awaitable, Callable, Dict, Optional, Tuple from aiogram.dispatcher.middlewares.base import BaseMiddleware from aiogram.types import Chat, TelegramObject, Update, User EVENT_FROM_USER_KEY = "event_from_user" EVENT_CHAT_KEY = "event_chat" EVENT_THREAD_ID_KEY = "event_thread_id" class UserConte...
297a10c869a91a4cb66a85943578f98737fe0f3d
0f59e486ea9d7c96b8c3f7f92bf063fc8389f1e8
/envi/archs/msp430/emu.py
c84b221c1c42349acb10f0e03135f01b813375ae
[ "Apache-2.0" ]
permissive
vivisect/vivisect
ac259918b6281d9431c32a0b2307c61f9cab0dec
b07e161cc28b19fdda0d047eefafed22c5b00f15
refs/heads/master
2023-08-25T09:02:00.526532
2023-07-26T03:07:07
2023-07-26T03:07:07
26,651,759
833
181
Apache-2.0
2023-09-07T03:43:53
2014-11-14T18:28:47
Python
UTF-8
Python
false
false
15,639
py
emu.py
import struct import envi import envi.bits as e_bits import envi.encoding as e_enc from envi.archs.msp430 import Msp430Module from envi.archs.msp430.regs import * from envi.archs.msp430.const import * class Msp430Call(envi.CallingConvention): arg_def = [(CC_REG, REG_R15), (CC_REG, REG_R14), (CC_REG, REG_R13), (...
8b57ca364f17fa861c89d84b14e0831cfdc38a2f
2d13a5fda04564b09daa861a48a525cc2c7c6754
/src/pymortests/models/iosys_save_load.py
a5fa732f7f31814c49ca6390a8d2a3693463fb1e
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
pymor/pymor
cdd8daddcff2f76890ece29f17453e9ca4463766
60d3868f11380c302cd692643b3a9115a4cb6371
refs/heads/main
2023-08-18T08:53:15.754899
2023-08-16T12:48:35
2023-08-16T12:48:35
9,220,688
272
93
NOASSERTION
2023-09-14T16:48:24
2013-04-04T14:58:44
Python
UTF-8
Python
false
false
7,648
py
iosys_save_load.py
# This file is part of the pyMOR project (https://www.pymor.org). # Copyright pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (https://opensource.org/licenses/BSD-2-Clause) import os import tempfile import numpy as np import pytest import scipy.io as spio import scipy.sparse as...
b873bd5ca68700df162d8c81e81fa41f02dd913f
e7e497b7385288d46ade80c85075674823d00249
/app/ch16_mongodb/final/tests/_all_tests.py
daa69ea46730015a92f3d294ee5327ab3779e4b2
[ "MIT" ]
permissive
talkpython/data-driven-web-apps-with-flask
1cd996d1a3b4171dfb00ecd792e7dcc1928d6753
0d4e4d72be982f7e5050ee1a7293dbe4ade40ba6
refs/heads/master
2022-10-07T19:00:25.545705
2022-09-16T21:24:25
2022-09-16T21:24:25
177,210,299
547
604
MIT
2021-12-27T18:39:50
2019-03-22T21:16:52
Python
UTF-8
Python
false
false
410
py
_all_tests.py
import sys import os container_folder = os.path.abspath(os.path.join( os.path.dirname(__file__), '..' )) sys.path.insert(0, container_folder) # noinspection PyUnresolvedReferences from account_tests import * # noinspection PyUnresolvedReferences from package_tests import * # noinspection PyUnresolvedReferences f...
f83ccf2f9b9dab8cec5aecdc321f1ec21b014422
f1872915f044e9bc8d6622d529535441ea8aec6a
/pyqtgraph/graphicsItems/ImageItem.py
9a90ceccdd9c2d5e144d60b37c6910b90a7eecb6
[ "MIT" ]
permissive
pyqtgraph/pyqtgraph
5dc14ddd513f4f3fdd0e834aba720e61b122c886
f261280905a74f6cae4a43e39fa1732635b25c63
refs/heads/master
2023-08-30T23:24:30.305478
2023-08-29T00:35:59
2023-08-29T00:35:59
12,777,496
3,432
1,184
NOASSERTION
2023-09-14T13:40:51
2013-09-12T07:18:21
Python
UTF-8
Python
false
false
44,937
py
ImageItem.py
import warnings from collections.abc import Callable import numpy from .. import colormap from .. import debug as debug from .. import functions as fn from .. import getConfigOption from ..Point import Point from ..Qt import QtCore, QtGui, QtWidgets from ..util.cupy_helper import getCupy from .GraphicsObject import G...
935d04dcdd2f907542e75eda943c57b0fac96fc4
c71b7a8a9dd7bf7c9496b1df2acc1e52a2a913d0
/onadata/apps/restservice/signals.py
843ac674402499ee7cc61a0458a9f525711e42cf
[ "BSD-2-Clause" ]
permissive
kobotoolbox/kobocat
a5c6fb6a9d3dabe71b5e3c082e4261c4475cbf7f
b8d93d4da649f323af111cf7247206554be7c8b1
refs/heads/main
2023-08-10T00:05:49.384348
2023-07-06T04:47:59
2023-07-06T04:47:59
14,497,749
101
135
BSD-2-Clause
2023-09-13T14:57:13
2013-11-18T16:16:32
Python
UTF-8
Python
false
false
1,365
py
signals.py
# coding: utf-8 from django.conf import settings from django.db.models.signals import post_save from django.dispatch import receiver from onadata.apps.restservice import SERVICE_KPI_HOOK from onadata.apps.logger.models import XForm from onadata.apps.restservice.models import RestService @receiver(post_save, sender=X...
a05bc5687e944566e7cfe954d94c20fefb2d0dbc
ce2815e8f4b2f2f2e4a4f1fd2d99d6c8f22833b6
/diffy/plugins/diffy_aws/sts.py
f2fb0bdb0a8824c7b2e4990d1e960c15e2cf1218
[ "Apache-2.0" ]
permissive
Netflix-Skunkworks/diffy
41292426a180bfb4bf3aa8bd023beb016a4bee93
1d8c1093023832be40d04021906f8779b37e8521
refs/heads/master
2023-08-24T17:24:38.727200
2023-07-25T17:52:28
2023-07-25T17:52:28
131,768,423
623
71
Apache-2.0
2023-07-20T18:42:53
2018-05-01T22:11:36
Python
UTF-8
Python
false
false
1,976
py
sts.py
""" .. module: diffy.plugins.diffy_aws.sts :platform: Unix :copyright: (c) 2018 by Netflix Inc., see AUTHORS for more :license: Apache, see LICENSE for more details. .. moduleauthor:: Kevin Glisson <kglisson@netflix.com> """ import logging from functools import wraps import boto3 from diffy.config import ...
d188699239fd5ab9fc0a71cfffe02fc3b5e85bf5
c001930958cb94f8b91b1f734108671f1db9e9f1
/tests/integration/renderer/test_dependencies.py
07ad2a528dfc9a05d1cae0f914d7cccd85b8fa1e
[ "MIT" ]
permissive
plotly/dash
73c752135937e27975071fbd144e3fb21618e7b4
6eaf2e17c25f7ca1847c41aafeb18e87c586cb9f
refs/heads/dev
2023-08-30T21:21:06.056499
2023-08-29T16:49:04
2023-08-29T16:49:04
33,702,544
20,553
2,355
MIT
2023-08-31T20:51:14
2015-04-10T01:53:08
Python
UTF-8
Python
false
false
1,340
py
test_dependencies.py
from multiprocessing import Value from dash import Dash, html, dcc, Input, Output def test_rddp001_dependencies_on_components_that_dont_exist(dash_duo): app = Dash(__name__, suppress_callback_exceptions=True) app.layout = html.Div( [dcc.Input(id="input", value="initial value"), html.Div(id="output-1"...
ac5294e42ab450002e192528a9e19173643aa39b
0c5b9ebee22450c214576f18929436527b26a1b0
/starfish/core/morphology/Binarize/test/test_threshold.py
e31bbaa60f47c22869ba25a7e6b72f8e5404c175
[ "MIT" ]
permissive
spacetx/starfish
962b4e4a8c0c193acaa84c016a6edaef76c14769
853f56c7c02b15397adb921db5e3bde02fdadb63
refs/heads/master
2023-03-09T13:51:30.772904
2022-09-06T22:16:25
2022-09-06T22:16:25
92,539,237
211
75
MIT
2023-02-11T01:52:25
2017-05-26T18:45:11
Python
UTF-8
Python
false
false
1,373
py
test_threshold.py
import numpy as np import pytest from starfish import ImageStack from starfish.types import Number from ..threshold import ThresholdBinarize @pytest.mark.parametrize(["threshold"], [[threshold] for threshold in np.linspace(0, 1, 3)]) def test_binarize(threshold: Number, num_rounds=1, num_chs=1, num_zplanes=4, ysize=...
35251f17d9e21386aa5ba376466cb2ffff3f84fd
3d6161a9c7d8daccd5f754a6fd5c81c5b0d91e15
/autoreject/ransac.py
fafd1e58328500b73b376f976b730b4f4d8a70ff
[ "BSD-3-Clause" ]
permissive
autoreject/autoreject
1d87cedfba44af6719b1dc293599b012cc1bd5a0
e7a43bcda81e7e67f16ab0a57932087ca0de94a7
refs/heads/master
2023-08-31T16:24:22.643306
2023-08-27T09:17:33
2023-08-27T09:17:33
59,485,140
140
72
BSD-3-Clause
2023-09-05T13:46:48
2016-05-23T13:28:23
Python
UTF-8
Python
false
false
10,068
py
ransac.py
"""RANSAC code The code is adopted from the PREP pipeline written in MATLAB: https://github.com/VisLab/EEG-Clean-Tools. This implementation also works for MEG data. """ # Authors: Mainak Jas <mainak.jas@telecom-paristech.fr> # Simon Kern import numpy as np from joblib import Parallel, delayed import mne fr...
32726e8eda9c4da821e9756cdf309138b6cd2092
975b2d421d3661e6770b601929d5f11d981d8985
/msgraph/generated/models/simulation_attack_technique.py
8c511b229c29a5911cc0d1285cb8c436836f6b41
[ "MIT" ]
permissive
microsoftgraph/msgraph-sdk-python
a7c551b85daadeebf76ec4ae12668664ea639b42
27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949
refs/heads/main
2023-09-03T21:45:27.989672
2023-08-31T06:22:18
2023-08-31T06:22:18
534,665,999
135
18
MIT
2023-09-14T11:04:11
2022-09-09T14:00:17
Python
UTF-8
Python
false
false
355
py
simulation_attack_technique.py
from enum import Enum class SimulationAttackTechnique(str, Enum): Unknown = "unknown", CredentialHarvesting = "credentialHarvesting", AttachmentMalware = "attachmentMalware", DriveByUrl = "driveByUrl", LinkInAttachment = "linkInAttachment", LinkToMalwareFile = "linkToMalwareFile", UnknownFu...
1b8513088becb33b7d3508feb2a416e097e08b71
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/TrackingTools/TrajectoryCleaning/python/TrajectoryCleanerBySharedSeeds_cfi.py
3117100c645c83f86f47dfccc873a8f2d22ee54c
[ "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
256
py
TrajectoryCleanerBySharedSeeds_cfi.py
import FWCore.ParameterSet.Config as cms trajectoryCleanerBySharedSeeds = cms.ESProducer("TrajectoryCleanerESProducer", ComponentName = cms.string('TrajectoryCleanerBySharedSeeds'), ComponentType = cms.string('TrajectoryCleanerBySharedSeeds') )
1031aa1ccc221d94e797da63a1bcea0e3dfb2a65
78b3617273b3b14a6722f055f72db7ad414f578e
/pymatbridge/tests/test_run_code.py
e4255e7b71229b033148facac07817e22893619b
[ "BSD-2-Clause" ]
permissive
arokem/python-matlab-bridge
c311ed52417a5d3527373fff341ef6766777e3eb
51c0e79aa6ecb9ae11d02ad367c1bfa0b27c2caa
refs/heads/master
2023-08-20T21:03:05.974824
2021-09-30T02:45:09
2021-09-30T02:45:09
6,093,450
286
95
BSD-2-Clause
2021-09-30T02:45:09
2012-10-05T16:49:21
Python
UTF-8
Python
false
false
3,685
py
test_run_code.py
import os import pymatbridge as pymat from pymatbridge.compat import text_type import numpy as np import numpy.testing as npt import test_utils as tu class TestRunCode: # Start a Matlab session before running any tests @classmethod def setup_class(cls): cls.mlab = tu.connect_to_matlab() # T...
229be07044902dbf627b4f6e39746cd9b8556faf
03666e5f961946fc1a0ac67781ac1425562ef0d7
/src/test/tests/hybrid/expressions.py
a5600a87145e5d2f5e22103f50b2ea37df827953
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
visit-dav/visit
e9f81b4d4b9b9930a0db9d5282cd1bcabf465e2e
601ae46e0bef2e18425b482a755d03490ade0493
refs/heads/develop
2023-09-06T08:19:38.397058
2023-09-05T21:29:32
2023-09-05T21:29:32
165,565,988
335
120
BSD-3-Clause
2023-09-14T00:53:37
2019-01-13T23:27:26
C
UTF-8
Python
false
false
12,175
py
expressions.py
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: expressions.py # # Tests: mesh - 3D unstructured, single domain # plots - pc # # Defect ID: '3939 + '4008 + '4022 + '4162 + '4417 + '4435 + '5790 + '5672 # + '5763...
8e2a7be18952b3fdb06a40eb7cea209315d971cf
87f6712f676d2b1aad7921e1b4d4387195a3bf96
/tests/test_common.py
ad92d2fe71078b8ef61b11ec95497c95f3ab1a9e
[ "Apache-2.0" ]
permissive
Fatal1ty/mashumaro
e3d53b52029a29a3b495132ff2ea46ef07081549
c0a4cf8943de51a626bc30681c935a628565cecf
refs/heads/master
2023-08-07T08:43:30.227999
2023-08-02T19:59:28
2023-08-02T19:59:28
156,855,347
617
40
Apache-2.0
2023-09-13T18:26:28
2018-11-09T11:50:56
Python
UTF-8
Python
false
false
5,988
py
test_common.py
import dataclasses from dataclasses import dataclass, field import msgpack import pytest from mashumaro.config import BaseConfig from mashumaro.core.const import PY_310_MIN from mashumaro.mixins.dict import DataClassDictMixin from mashumaro.mixins.json import DataClassJSONMixin from mashumaro.mixins.msgpack import Da...
1d69e6fad2def962423e2d96210db3a2d2816578
0e80605f998d065816a79f5b153f66e4769a1105
/tests/test_utils.py
a261803f144b9cb51ed0be940d665c9cc7880811
[ "MIT" ]
permissive
sergionr2/RacingRobot
1874da5fc78d5885647e7490a38d6f703f0f7f2f
6885ddb37407dff15845d29f641bc7c39279b216
refs/heads/master
2023-07-19T20:49:01.541721
2020-05-24T12:33:33
2020-05-24T12:33:33
95,389,808
237
99
MIT
2023-07-06T21:15:47
2017-06-25T22:44:19
Python
UTF-8
Python
false
false
911
py
test_utils.py
from __future__ import print_function, division, absolute_import import numpy as np from .common import * from train.utils import preprocessImage, loadNetwork, predict, loadLabels from constants import * test_image = 234 * np.ones((MAX_WIDTH, MAX_HEIGHT, 3), dtype=np.uint8) def testPreprocessing(): image = pre...
2b81f98d69d1de505e1e22684653618072a3d2cc
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/CommonScripts/Scripts/ExtractIndicatorsFromWordFile/ExtractIndicatorsFromWordFile.py
14f5f8ec26a3f441d0c28638fefd3260ce44965a
[ "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
5,641
py
ExtractIndicatorsFromWordFile.py
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * import subprocess from docx import Document from typing import List, Dict from docx.opc.constants import RELATIONSHIP_TYPE as RT from docx.opc.exceptions import PackageNotFoundError class WordParser: def __init__(...
9a6b54ae26a1d79b721e1c65c8bde6339510886c
8da41ffa2ccb09e04f95db0f211e0ed69a42a352
/courses/data_analysis/deepdive/pubsub-exercises/exercise0-prework/python/labs/action_subscriber.py
2d13af66bd6a671aa49f156c63d9547d2f64fab2
[ "Apache-2.0" ]
permissive
GoogleCloudPlatform/training-data-analyst
808af9b09a0e5f5657c4ca76cdd205f808d76d89
975a95032ce5b7012d1772c7f1f5cfe606eae839
refs/heads/master
2023-09-05T19:50:59.722334
2023-09-04T14:25:33
2023-09-04T14:25:33
56,459,948
7,311
5,917
Apache-2.0
2023-09-13T21:45:54
2016-04-17T21:39:27
Jupyter Notebook
UTF-8
Python
false
false
1,226
py
action_subscriber.py
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
8367c3d674ac752bf5ca274f22f3eb79a4a36129
4e1ff54c2f2a21fd6d8e34f2bc3d6dc9990ffa0e
/dataset/dataset_variable_length_input.py
7f353f31c6f6f52c3eee11a5b6318a24802e0054
[]
no_license
haoxiangsnr/A-Convolutional-Recurrent-Neural-Network-for-Real-Time-Speech-Enhancement
2a037da46f2c89c368cd41b2cba89519cdf471cb
31610a5b6b398b90ae6b42701ee6cf0e8dcfe871
refs/heads/master
2021-07-13T09:08:26.370828
2020-09-05T00:50:51
2020-09-05T00:50:51
201,885,023
259
55
null
null
null
null
UTF-8
Python
false
false
1,838
py
dataset_variable_length_input.py
import os import librosa from torch.utils import data class Dataset(data.Dataset): def __init__( self, dataset_list, limit, offset, sr, n_fft, hop_length, train ): """ dataset_lis...
f23f609502b9dac0069ca0b1ccb80707445436c6
e61e664d95af3b93150cda5b92695be6551d2a7c
/vega/algorithms/nas/modnas/metrics/__init__.py
ed4185978a7ec5bd507aaeffbfc0872808db8c79
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
huawei-noah/vega
44aaf8bb28b45f707ed6cd4e871ba70fc0c04846
12e37a1991eb6771a2999fe0a46ddda920c47948
refs/heads/master
2023-09-01T20:16:28.746745
2023-02-15T09:36:59
2023-02-15T09:36:59
273,667,533
850
184
NOASSERTION
2023-02-15T09:37:01
2020-06-20T08:20:06
Python
UTF-8
Python
false
false
1,288
py
__init__.py
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. 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...
e47b8b2e5ee510d63c1637b0bfe2224c8abee45e
28cd350c10e5fe3542f2913e1833f5725aa56fd5
/prepare_static.py
bdfd3845a6301a427a0c919e21ddde44e6bb2194
[ "MIT" ]
permissive
layumi/Person_reID_baseline_pytorch
dffeb79f25f2fe1b83646746bbb295f2df36bad4
4dae9cdf42f71c72a44a64fb23bfc470c501085f
refs/heads/master
2023-09-03T14:34:04.082508
2023-08-17T04:12:26
2023-08-17T04:12:26
115,712,649
4,042
1,132
MIT
2023-06-19T08:29:17
2017-12-29T10:22:41
Python
UTF-8
Python
false
false
3,759
py
prepare_static.py
# -*- coding: utf-8 -*- from __future__ import print_function, division import argparse import torch from torchvision import datasets, transforms import time import os version = torch.__version__ ###################################################################### # Options # -------- parser = argparse.ArgumentP...
d331f9adf9a40d973eab0dec8603f4a9598aa03f
36272b48713793e497c74fe96b94bb389490db42
/Python/Algorithms/DeepLearningAlgorithms/FeedForwardNeuralNetwork.py
d1c7556051ff7117f1c0a46dd0280c40ab806c31
[ "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
6,259
py
FeedForwardNeuralNetwork.py
# Libraries # Standard library import random # third-party libraries import numpy as np # from .ActivationFunction import Sigmoid class Network: """ A module to implement the stochastic gradient descent learning algorithm for a feeforward neural network. Gradient are calculated using backpropaga...
fd99672828fc4c4570e178f0748f9c5e6f94a7e4
6146e33102797407ede06ce2daa56c28fdfa2812
/python/GafferTest/UndoTest.py
4f8bfab25af15f906a9f3f4433ac912341ce27eb
[ "BSD-3-Clause" ]
permissive
GafferHQ/gaffer
e1eb78ba8682bfbb7b17586d6e7b47988c3b7d64
59cab96598c59b90bee6d3fc1806492a5c03b4f1
refs/heads/main
2023-09-01T17:36:45.227956
2023-08-30T09:10:56
2023-08-30T09:10:56
9,043,124
707
144
BSD-3-Clause
2023-09-14T09:05:37
2013-03-27T00:04:53
Python
UTF-8
Python
false
false
5,821
py
UndoTest.py
########################################################################## # # Copyright (c) 2011-2012, John Haddon. All rights reserved. # Copyright (c) 2011-2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted prov...
805a6e208da7cd735b4a08744a82d3813a0ec87d
54349a1359a0ef30976687cf057cc7849ba77183
/src/openbiolink/globalConfig.py
bebe83115e4c53cee34d873802f5dfffe028477e
[ "CC-BY-4.0", "CC-BY-SA-3.0", "CC-BY-NC-4.0", "MIT", "LicenseRef-scancode-public-domain", "CC0-1.0" ]
permissive
OpenBioLink/OpenBioLink
58cd6433b0785c59943022a5d15ccec5f3569c65
1fa4cf6215b075ab2aaa536153330a1653690b3b
refs/heads/master
2023-01-03T19:18:33.670113
2023-01-02T14:00:00
2023-01-02T14:00:00
199,718,903
132
26
MIT
2022-12-20T17:12:56
2019-07-30T20:00:01
Python
UTF-8
Python
false
false
1,093
py
globalConfig.py
WORKING_DIR = "" LOG_FILE_PATH = "" GUI_MODE = False RANDOM_STATE = 42 # do not change for reproducibility GRAPH_PROP_FILE_NAME = "graph_properties.json" INTERACTIVE_MODE = True SKIP_EXISTING_FILES = True # graph_files col names NODE1_ID_COL_NAME = "id1" NODE2_ID_COL_NAME = "id2" EDGE_TYPE_COL_NAME = "edgeType" QSCO...
72a49defb6786dc8a620dfc8149dc943d0514fd3
6a8bc7da3104726f894ae360fce6a43a54b30812
/gradio/ipython_ext.py
b6bb8063930f2ff60fba39459ce0b7829987f959
[ "Apache-2.0" ]
permissive
gradio-app/gradio
0b6b29bb0029ad3b8fc1b143f111b1230b29d23a
e4e7a4319924aaf51dcb18d07d0c9953d4011074
refs/heads/main
2023-09-01T10:56:50.822550
2023-09-01T00:28:01
2023-09-01T00:28:01
162,405,963
21,224
1,537
Apache-2.0
2023-09-14T21:42:00
2018-12-19T08:24:04
Python
UTF-8
Python
false
false
2,589
py
ipython_ext.py
try: from IPython.core.magic import ( needs_local_scope, register_cell_magic, ) from IPython.core.magic_arguments import argument, magic_arguments, parse_argstring except ImportError: pass import gradio as gr from gradio.networking import App from gradio.utils import BaseReloader clas...
a9f8375d5afc5a638884fff91f8f16ab50f6584c
965e163df916b01d647953f2b1431d265683f6ca
/xv_leak_tools/test_device/device_discoverers/static_discoverer.py
69a6b7fb522d819318716bf92e3bcd54745553f6
[ "MIT" ]
permissive
expressvpn/expressvpn_leak_testing
6505c39228d396caff0c2df3777009c6fbdf3127
9e4cee899ac04f7820ac351fa55efdc0c01370ba
refs/heads/master
2023-08-18T06:33:33.931040
2021-10-11T03:02:50
2021-10-11T03:02:50
112,572,905
244
48
MIT
2021-01-19T16:02:18
2017-11-30T06:18:40
Python
UTF-8
Python
false
false
1,718
py
static_discoverer.py
import os from xv_leak_tools.exception import XVEx from xv_leak_tools.log import L from xv_leak_tools.test_device.create_device import create_device from xv_leak_tools.test_device.device_discoverers.device_discoverer import DeviceDiscoverer from xv_leak_tools.test_device.simple_ssh_connector import SimpleSSHConnector ...
2ec4c64d9df977c20d584d5ee40f702f4ea20e82
41d1504f5b7625aa10f9c7fa16ace01edb0df3f8
/misoc/test/test_fir.py
2ee94106a8073d2352b9acb3b778d34b35195f8f
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
m-labs/misoc
7625a4d6fe3fb8f35e96c5a76a27cbe89282ba5c
a8cacd566445f502adb1ddf06aff3b6abd3c8b69
refs/heads/master
2023-08-31T23:14:55.594667
2023-08-30T07:35:03
2023-08-30T07:35:03
2,960,310
280
96
NOASSERTION
2023-09-03T02:56:25
2011-12-11T21:50:08
C
UTF-8
Python
false
false
6,156
py
test_fir.py
import numpy as np import unittest import random from migen import * from misoc.cores import fir class TestDSP(unittest.TestCase): def setUp(self): self.dut = fir.DSP() def test_init(self): self.assertEqual(len(self.dut.a), 24) self.assertEqual(len(self.dut.b), 18) self.asser...
66a2b0c18abf9c4d7e91ee6107b82287f7b21c95
93713f46f16f1e29b725f263da164fed24ebf8a8
/Library/lib/python3.7/site-packages/astropy-4.0-py3.7-macosx-10.9-x86_64.egg/astropy/modeling/tests/test_core.py
3f83cad5c76216edb127f467b3d05425534ba309
[ "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
14,444
py
test_core.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst import os import sys import subprocess import pytest import numpy as np from inspect import signature from numpy.testing import assert_allclose import astropy from astropy.modeling.core import Model, custom_model from astropy.modeling.parameters import ...
e48769a8d6f284609c4998a3a2354f883dff64d7
5eb1db74d541708ba07fe24057b15279569c6fae
/tu-ctf-2018/reverse/danger-zone/jaiverma/exploit.py
b9833615e394dc3b040f6a9aedb8fd96e87a5d52
[]
no_license
ByteBandits/writeups
4a66c62ce8a311211df8af6e6e6d0d3f6b34665e
3fbdab90224cfe76cf98bcab081582f06d6deadb
refs/heads/master
2021-12-13T13:55:58.855221
2021-12-06T06:32:21
2021-12-06T06:32:21
43,562,256
128
37
null
2016-07-03T05:54:48
2015-10-02T15:56:36
C
UTF-8
Python
false
false
128
py
exploit.py
import dangerzone as dz s = dz.main() s = dz.reverse(s) s = dz.b32decode(s) s = dz.reversePigLatin(s) s = dz.rot13(s) print s
2181e6cf6816d2500613fff20f5ee8f14d5488fb
fac6bd9d5ca6b068e9ec5ce8a6e703c9261476a3
/cleverbot/errors.py
56b62b92592bf91b233362e9c4fe0f2c98edd00f
[ "MIT" ]
permissive
TrustyJAID/Trusty-cogs
b72b48a7da37d6985cfc7924dae3a2ff4fcbb39f
5b4c87d461065ef55af4f012a89501925a34a8d5
refs/heads/master
2023-09-04T22:55:34.235209
2023-09-04T22:52:25
2023-09-04T22:52:25
160,604,179
170
252
MIT
2023-06-10T17:01:00
2018-12-06T02:02:25
Python
UTF-8
Python
false
false
234
py
errors.py
class CleverbotError(Exception): pass class NoCredentials(CleverbotError): pass class InvalidCredentials(CleverbotError): pass class APIError(CleverbotError): pass class OutOfRequests(CleverbotError): pass
636256147198304bd2e778fea9fc8dc534712829
cfb638fee5fa2cdd3149a8ea91043e6bc0808275
/tests/synth_test.py
35e326a24feda3c9ed61ede15f82643365427cfa
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause" ]
permissive
tulip-control/tulip-control
a23436a122dc317d39b0980c40f2da5740433ae5
83f993c2ae06aa8368e4bbba02bf52d68725e106
refs/heads/main
2023-08-22T14:39:02.797004
2022-06-23T19:40:03
2022-06-23T19:40:03
13,993,728
107
37
BSD-3-Clause
2023-09-06T17:29:38
2013-10-30T17:15:55
Python
UTF-8
Python
false
false
17,783
py
synth_test.py
""" Tests for the tulip.synth module. """ from __future__ import print_function import logging logging.getLogger('tulip').setLevel(logging.ERROR) logging.getLogger('tulip.interfaces.omega').setLevel(logging.DEBUG) logging.getLogger('omega').setLevel(logging.WARNING) import numpy as np import pytest from scipy import ...
30e0e235c0018ad04205dd246c9753a89fd4748f
eb04c1859ea2afed9a6d30e682161a17d56a5411
/tests/conftest.py
409ef3013f29b6a0fd88986f7e468cee9b6152fc
[ "Apache-2.0" ]
permissive
photosynthesis-team/piq
c562a62493ae153da29cddf96a1a3802d166a019
9948a52fc09ac5f7fb3618ce64b7086f5c3109da
refs/heads/master
2023-07-10T18:15:42.792432
2023-07-04T21:20:06
2023-07-04T21:20:06
229,097,134
1,094
115
Apache-2.0
2023-07-04T21:20:07
2019-12-19T16:38:14
Python
UTF-8
Python
false
false
786
py
conftest.py
from typing import List, Any import pytest import torch devices: List[str] = ["cpu"] if torch.cuda.is_available(): devices.append("cuda") @pytest.fixture(params=devices, scope='module') def device(request: Any) -> Any: return request.param @pytest.fixture(scope='module') def x() -> torch.Tensor: retur...
4fbc7cee4f0b217a7ecbe8102c0d5d97860631f8
d110546d747d7e3865ce5742d5fca09f404623c0
/salt/netapi/rest_cherrypy/__init__.py
fbc85c9ff60de64fa5dce202d1708f088cbfa5b7
[ "Apache-2.0", "MIT", "BSD-2-Clause" ]
permissive
saltstack/salt
354fc86a7be1f69514b3dd3b2edb9e6f66844c1d
1ef90cbdc7203f97775edb7666db86a41eb9fc15
refs/heads/master
2023-07-19T20:56:20.210556
2023-06-29T23:12:28
2023-07-19T11:47:47
1,390,248
11,026
6,296
Apache-2.0
2023-09-14T20:45:37
2011-02-20T20:16:56
Python
UTF-8
Python
false
false
2,919
py
__init__.py
""" A script to start the CherryPy WSGI server This is run by ``salt-api`` and started in a multiprocess. """ import logging import os from salt.utils.versions import Version # pylint: disable=C0103 # Import CherryPy without traceback so we can provide an intelligent log # message in the __virtual__ function try:...
b7798c09bb7b1621493b3e307a2f70e72a1b0d37
b8441dc1987be9e64fa3081d456b2a3060ec44d1
/mars/tensor/stats/chisquare.py
36fd6e15a184e47052b6e04d66d31375ce514122
[ "BSD-3-Clause", "MIT", "ISC", "Apache-2.0", "CC0-1.0", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mars-project/mars
f99fefbce999d58a9249bc72046787a9731c9c73
c36c53fa22e10ef9477d9c454401a2f281375f31
refs/heads/master
2023-07-23T00:23:55.133015
2023-07-03T11:44:54
2023-07-03T11:44:54
160,543,708
2,704
362
Apache-2.0
2023-09-11T07:57:35
2018-12-05T16:04:03
Python
UTF-8
Python
false
false
4,901
py
chisquare.py
# Copyright 1999-2021 Alibaba Group Holding 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...
b6b95a12b372eaa8977c645ddeb0b9680c3285f3
942d19049ff1620a85102cc2b9ad4439f28487b9
/tests/client_server.py
8c1bb54a0635570201533dcb465b673db0226202
[ "MIT" ]
permissive
saucelabs/monocle
9eacec32cecd9b6b898a3435795366d05135d5a7
85a38d4c9f52bacdf025a8aebbeb43fff75dea65
refs/heads/master
2023-08-27T18:48:50.242641
2020-09-03T13:46:15
2020-09-03T13:46:15
644,130
102
14
NOASSERTION
2020-09-03T13:46:16
2010-05-03T08:48:47
Python
UTF-8
Python
false
false
945
py
client_server.py
from __future__ import print_function import time import monocle from monocle import _o from monocle.stack.network import add_service, Service, Client, ConnectionLost from o_test import test @_o def handle_echo(conn): while True: try: message = yield conn.read_until('\r\n') except Con...
f7950755074373dea43f9fae599f383cf7de6a8c
5142e81b50d15202ff79a34c9b888f18d2baec27
/plotnine/scales/scale_discrete.py
07be7d36458c6831c9a9f1adae637934b0c0195e
[ "MIT" ]
permissive
has2k1/plotnine
03c0e979b6b05b5e92cb869cca903cfce20988dc
ef5650c4aabb29dcfe810043fb0fc8a4ea83f14b
refs/heads/main
2023-08-30T22:17:07.835055
2023-08-08T07:57:53
2023-08-08T07:57:53
89,276,692
3,719
233
MIT
2023-08-08T13:09:24
2017-04-24T19:00:44
Python
UTF-8
Python
false
false
9,342
py
scale_discrete.py
from __future__ import annotations import typing import numpy as np import pandas as pd from mizani.bounds import expand_range_distinct from ..doctools import document from ..iapi import range_view, scale_view from ..utils import match from ._expand import expand_range from .range import RangeDiscrete from .scale im...
56a72fda4be4fad8239164f84e9eec3a37b6a652
0e4860fecfdd34a3255003cc8c8df086c14083dd
/python/practise/跟着王进老师学Python之Django篇第四季:数据库开发之ORM/Django第四季源码-01/Django第四季源码/Dj040301/librarydb/migrations/0003_book_price.py
1cd62e4b2a1ce8c706c06b4041fa3f328bb4bc3b
[]
no_license
anzhihe/learning
503ab9a58f280227011da5eaa4b14b46c678e6f3
66f7f801e1395207778484e1543ea26309d4b354
refs/heads/master
2023-08-08T11:42:11.983677
2023-07-29T09:19:47
2023-07-29T09:19:47
188,768,643
1,443
617
null
2023-08-24T02:10:34
2019-05-27T04:04:10
Python
UTF-8
Python
false
false
458
py
0003_book_price.py
# Generated by Django 2.1 on 2019-02-27 08:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('librarydb', '0002_auto_20190227_1329'), ] operations = [ migrations.AddField( model_name='book', name='p...
2ff9f0dfbb34a0a15282015d3e10bdbcd67f99a7
1362e5da192cbbc0309faa05891d9322ae3e552f
/next_steps/operations/ml_ops/personalize-step-functions/lambdas/create-dataset/dataset.py
8deac041a733d4d2ef91bdecf3148ea7f6a7f660
[ "LicenseRef-scancode-proprietary-license", "MIT-0", "MIT" ]
permissive
aws-samples/amazon-personalize-samples
46bd4b37dc92d2f03d9a1cb3927830e7302916c8
a672d79448be5150359a121745c0d3c30a61b9af
refs/heads/master
2023-08-28T22:24:02.836942
2023-08-18T14:49:23
2023-08-18T14:49:23
158,885,086
553
371
MIT-0
2023-08-18T14:49:24
2018-11-23T23:05:33
Jupyter Notebook
UTF-8
Python
false
false
2,538
py
dataset.py
from os import environ import actions from loader import Loader from random import randint from json import dumps DATASET_ARN = 'arn:aws:personalize:{region}:{account}:dataset/{datasetGroupName}/{type}' LOADER = Loader() def create_schema(name, schema): schemaArn = 'arn:aws:personalize:{region}:{account}:schema/...
b51a2ea8bf575155a9746cb41bd3b1a0e095ff8c
38d1c6a920b3d9534f191fa0bfcd6d7d4625d643
/my/core/stats.py
89239965ae2a9c2a689614a004d6f661d13c6aaa
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
karlicoss/HPI
ab87dcbfd8e3af788144990c35e030577227966b
c283e542e3457ecd778fb09e54e725d67104a49a
refs/heads/master
2023-08-31T11:38:23.547022
2023-08-24T22:29:14
2023-08-24T22:46:23
209,134,309
1,252
65
MIT
2023-09-07T01:36:27
2019-09-17T18:59:05
Python
UTF-8
Python
false
false
4,718
py
stats.py
''' Helpers for hpi doctor/stats functionality. ''' import collections import importlib import inspect import sys import typing from typing import Optional, Callable, Any, Iterator, Sequence, Dict, List from .common import StatsFun, Stats, stat # TODO maybe could be enough to annotate OUTPUTS or something like that?...
85efc08b962ec55d7a9d6a174703ebddcdbf559e
f1f21ba2236da38a49a8185ce33b3ce4a4424c1d
/apps/drug_target_interaction/batchdta/pairwise/GraphDTA/processing.py
55ec910568e8e2090f87942a18eb1d8910e57339
[ "Apache-2.0" ]
permissive
PaddlePaddle/PaddleHelix
75a07c2f14475e56e72f4573b2cf82a91d1cbfda
e6ab0261eb719c21806bbadfd94001ecfe27de45
refs/heads/dev
2023-08-05T03:34:55.009355
2023-08-01T09:30:44
2023-08-01T09:30:44
314,704,349
771
197
Apache-2.0
2023-08-01T09:15:07
2020-11-21T00:53:39
Python
UTF-8
Python
false
false
6,546
py
processing.py
import pandas as pd import numpy as np import os import rdkit import sklearn import torch import json,pickle from collections import OrderedDict from rdkit import Chem from rdkit.Chem import MolFromSmiles import networkx as nx from torch_geometric.data import InMemoryDataset, DataLoader from utils import * import pdb i...
2c0a30aa9336e174adcc7e171a973b002a432dee
cadb6dceb7bb67ce47ef48b2c83f480a65d6b01a
/s3prl/upstream/lighthubert/lighthubert/__init__.py
5fee873df6e3de1056000c5252c581f8b73b0c0c
[ "Apache-2.0", "CC-BY-NC-4.0" ]
permissive
s3prl/s3prl
52ec2ae4df5a61c786c122085603aa9c5e8c2681
76a9432b824f6ae3eae09a35a67782c4ed582832
refs/heads/main
2023-08-17T02:26:57.524087
2023-06-10T17:12:27
2023-06-10T17:12:27
196,905,457
1,549
398
Apache-2.0
2023-09-14T13:07:05
2019-07-15T01:54:52
Python
UTF-8
Python
false
false
83
py
__init__.py
from .lighthubert import LightHuBERT, LightHuBERTConfig, LightHuBERTSupernetConfig
d993e0d850cc58e8ac2e295a90743f3225c624f4
464367c7180487bba74097d6b229174b53246676
/py/riscv/exception_handlers/FastExceptionHandlersBase.py
7dcc224c2d100a3196acd1fd487773ae942f8b1d
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
openhwgroup/force-riscv
5ff99fd73456b9918a954ef1d29997da2c3f2df7
144fb52a99cde89e73552f88c872c05d2e90b603
refs/heads/master
2023-08-08T14:03:54.749423
2023-06-21T02:17:30
2023-06-21T02:17:30
271,641,901
190
53
NOASSERTION
2023-09-14T01:16:08
2020-06-11T20:36:00
C++
UTF-8
Python
false
false
3,013
py
FastExceptionHandlersBase.py
# # Copyright (C) [2020] Futurewei Technologies, Inc. # # FORCE-RISCV is 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 # # THIS SOFTWARE IS PR...
a9f6a94b41b0b40b97a0ce3c56ab9bbbd363334b
3febe9bd6d3f0240754239bca7c02720a53dbe22
/tests/BlazingSQLTest/DataBase/mysqlSchema.py
dd1724fa0a54124b7b3607b908a1fdc495f387e2
[ "Apache-2.0" ]
permissive
BlazingDB/blazingsql
9c7b1bdad1538a4478332de57375830090069e85
a35643d4c983334757eee96d5b9005b8b9fbd21b
refs/heads/branch-21.08
2023-08-17T16:10:36.051621
2021-09-30T21:51:09
2021-09-30T21:51:09
150,149,024
854
114
Apache-2.0
2022-09-16T23:58:36
2018-09-24T18:25:45
C++
UTF-8
Python
false
false
6,146
py
mysqlSchema.py
import os import glob from .createSchema import get_sql_connection, get_column_names, sql_connection from blazingsql import DataType import mysql.connector from mysql.connector import errorcode mysql_tpch_table_descriptions = { "nation": """create table nation ( n_nationkey integer, ...
8c54787c2edabcb3df386388a608bad1fd4a3cc6
450916eee7580beb928ed8f387db4f0a8c1aa508
/src/amuse/test/suite/compile_tests/test_async.py
6a78c965b4a17dea05a9b65b15629d386c883480
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
amusecode/amuse
42095545893f5a86ea79c2a52ce54d3ce8eb204f
b57c1e2fda1457d5025307be105c2aa59b19b574
refs/heads/main
2023-08-31T04:50:48.880044
2023-08-30T12:00:20
2023-08-30T12:00:20
18,516,331
158
118
Apache-2.0
2023-08-30T12:00:22
2014-04-07T12:35:07
AMPL
UTF-8
Python
false
false
29,773
py
test_async.py
from amuse.support.interface import InCodeComponentImplementation from amuse.test.amusetest import TestWithMPI from amuse.support import exceptions from amuse.support import options import os import time from amuse.units import nbody_system from amuse.units import units from amuse import datamodel from amuse.rfi.tool...
e9cb46aeccdf1bfc3548099f506b8696edb51912
8b57ca58722bdd3b9335b10ead2ce578d67a636f
/conjureup/controllers/snap/deploy/__init__.py
86d51e8c4510f1b5432ba0b96ee3c3d086a73690
[ "MIT" ]
permissive
conjure-up/conjure-up
5257d1937961c13babb83cdb396701ff69aabcc4
d2bf8ab8e71ff01321d0e691a8d3e3833a047678
refs/heads/master
2023-09-03T11:56:43.476146
2021-04-12T14:27:43
2021-04-12T14:27:43
45,847,491
473
78
MIT
2021-04-12T14:27:43
2015-11-09T15:36:18
Python
UTF-8
Python
false
false
106
py
__init__.py
""" deploy status controller Its purpose is to display the status of the applications being deployed """
b4779910404b3b7811a673567ae552eda74dff49
04e5b6df2ee3bcfb7005d8ec91aab8e380333ac4
/Lib/objc/_BiometricKit.py
ac5056054cd97db2128cac5f232376affcf95f41
[ "MIT" ]
permissive
ColdGrub1384/Pyto
64e2a593957fd640907f0e4698d430ea7754a73e
7557485a733dd7e17ba0366b92794931bdb39975
refs/heads/main
2023-08-01T03:48:35.694832
2022-07-20T14:38:45
2022-07-20T14:38:45
148,944,721
884
157
MIT
2023-02-26T21:34:04
2018-09-15T22:29:07
C
UTF-8
Python
false
false
2,349
py
_BiometricKit.py
""" Classes from the 'BiometricKit' framework. """ try: from rubicon.objc import ObjCClass except ValueError: def ObjCClass(name): return None def _Class(name): try: return ObjCClass(name) except NameError: return None BKErrorHelper = _Class("BKErrorHelper") BKEnrollPearlPr...
9ba7898a803de1689f8f15ab79cf43e0f8434b5a
91d5349ef6a8259ba0a551e70e37cb29d6817652
/src/ghhops-server-py/ghhops_server/middlewares/__init__.py
9b90155031d4d48ce3d3b39da8c0fab63b86adf3
[ "MIT" ]
permissive
mcneel/compute.rhino3d
641dc3e88f53d892f6b75ce14924a752ff949e5b
0acf93ae9aa520fbbfa64ee97f77088a9005f3d4
refs/heads/7.x
2023-08-28T03:41:04.618336
2023-08-23T18:11:47
2023-08-23T18:11:47
119,090,587
242
184
NOASSERTION
2023-08-23T18:11:49
2018-01-26T18:53:54
C#
UTF-8
Python
false
false
173
py
__init__.py
"""Hops middleware implementations""" # flake8: noqa from ghhops_server.middlewares.hopsdefault import HopsDefault from ghhops_server.middlewares.hopsflask import HopsFlask
822dc023eb475d7c2f4d3396a6973ee6a90cf6a6
f3806d9fb54773908cd9704121a543b114470aca
/angr/procedures/stubs/ReturnChar.py
f7bdf13a8d95a4cfa2546fc7cb8ec6d8d70eefc5
[ "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
460
py
ReturnChar.py
import angr ###################################### # Returns a valid char ###################################### class ReturnChar(angr.SimProcedure): def run(self): s_var = self.state.solver.Unconstrained("char_ret", self.state.arch.bits, key=("api", "?", self.display_name)) self.state.add_constr...
14b3ec2eec42b10abac7fe86de026e96617ed36c
35f494e951ec449e8dc4a796f82f637e35ea18db
/geoalchemy2/elements.py
6221bc12b6e10f95ff0096e9cc773b9db31bd894
[ "MIT" ]
permissive
geoalchemy/geoalchemy2
e083d0ab6d181a3e65a9a46882c04ddf799aee86
80e738d09c6929305376f245bbd38fe7ff22b3f8
refs/heads/master
2023-09-01T04:12:29.463815
2023-07-25T13:59:39
2023-07-25T13:59:39
5,638,538
492
104
MIT
2023-09-12T07:49:46
2012-09-01T10:00:24
Python
UTF-8
Python
false
false
12,914
py
elements.py
from __future__ import annotations import binascii import re import struct from typing import Any from typing import Dict from typing import List from typing import Optional from typing import Set from typing import Union from sqlalchemy.ext.compiler import compiles from sqlalchemy.sql import functions from sqlalchem...
80ca67d8ed3816e4c70ecfda50d0206116fd26ad
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/plugins/hg4idea/testData/bin/mercurial/rcutil.py
38fe8eb0787ceb3a249c61160e5ac21b8a3bf926
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
3,659
py
rcutil.py
# rcutil.py - utilities about config paths, special config sections etc. # # Copyright Mercurial Contributors # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. from __future__ import absolute_import import os from . import ( ...
9961d140e5bcf99378be55e6c12f68f8c537f984
069c2295076c482afadfe6351da5ae02be8e18e6
/tests/file_uploads/urls.py
7cb54f3be07eb3a53306a5349e7a863d5697355a
[ "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "GPL-1.0-or-later", "Python-2.0.1", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-other-permissive", "Python-2.0" ]
permissive
django/django
5eb557f57053631cd4f566f451e43197309dbeeb
c74a6fad5475495756a5bdb18b2cab2b68d429bc
refs/heads/main
2023-09-01T03:43:44.033530
2023-08-31T08:27:32
2023-08-31T08:27:32
4,164,482
73,530
38,187
BSD-3-Clause
2023-09-14T20:03:48
2012-04-28T02:47:18
Python
UTF-8
Python
false
false
1,003
py
urls.py
from django.urls import path, re_path from . import views urlpatterns = [ path("upload/", views.file_upload_view), path("upload_traversal/", views.file_upload_traversal_view), path("verify/", views.file_upload_view_verify), path("unicode_name/", views.file_upload_unicode_name), path("echo/", views...
1b74a9224942943a3a9f6edc62c5bedc0d73f436
a4ea525e226d6c401fdb87a6e9adfdc5d07e6020
/src/azure-cli/azure/cli/command_modules/eventgrid/_help.py
21c2a322e7131b7e108474566a59bc590b633751
[ "MIT", "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MPL-2.0", "LGPL-2.1-only", "Apache-2.0", "LGPL-2.1-or-later", "BSD-2-Clause" ]
permissive
Azure/azure-cli
13340eeca2e288e66e84d393fa1c8a93d46c8686
a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca
refs/heads/dev
2023-08-17T06:25:37.431463
2023-08-17T06:00:10
2023-08-17T06:00:10
51,040,886
4,018
3,310
MIT
2023-09-14T11:11:05
2016-02-04T00:21:51
Python
UTF-8
Python
false
false
146,644
py
_help.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. # -----------------------------------------------------...