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
2ac2503dd397aaf8de2fa020b3fa84696e860a31
0e4860fecfdd34a3255003cc8c8df086c14083dd
/python/practise/带你学DjangoRESTframework/DRF/my_drf/app05/views.py
626cfdba50f5bf5833728ffc383f55d83fb59e5e
[]
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
3,192
py
views.py
from django.shortcuts import render from rest_framework.views import APIView from django.http import JsonResponse from rest_framework.authentication import BaseAuthentication, BasicAuthentication, TokenAuthentication, \ SessionAuthentication from rest_framework.permissions import IsAuthenticated from rest_framewor...
bdbb0da14e7677405830ee167f30f586aee09567
0ba2e5061577f6286ff9265ef1df9aca96769445
/math/sieve of eratosthenes/python/sieveoferalothenes.py
0a2763cb656ebad96d165f648a9c54f0e72d94df
[ "CC0-1.0" ]
permissive
ZoranPandovski/al-go-rithms
68d5d02f80a61de9baf8e50a81a52e7d0b3983a0
4ae6ba54e90af14af236e03e435eb0402dcac787
refs/heads/master
2023-09-04T16:04:04.321676
2023-06-06T15:22:16
2023-06-06T15:22:16
93,438,176
1,421
2,445
CC0-1.0
2023-06-15T14:24:28
2017-06-05T19:20:20
Jupyter Notebook
UTF-8
Python
false
false
965
py
sieveoferalothenes.py
#about the algorithm-The sieve of Eratosthenes is one of the most efficient ways to find all primes smaller than n when n is smaller than 10 million or soThe sieve of Eratosthenes is one of the most efficient ways to find all primes smaller than n when n is smaller than 10 million or so. #The algorithm is very fast- ti...
8cb5b80d06f0994cd5a54e59c691b417c3f70ee0
57bc404899f914eeef7ba298bf1e99883c864a26
/linked_list/library/doubly_linked_list.py
dd6f901831c51805769392e63d72e23715b61aa3
[ "MIT" ]
permissive
priyankchheda/algorithms
547f19193273ac6a424fe4ba5e1375cc02ea4f60
38a5de72db14ef2664489da9857b598d24c4e276
refs/heads/master
2023-08-17T17:10:10.044940
2022-04-16T13:52:37
2022-04-16T13:52:37
133,684,565
195
38
MIT
2023-08-16T10:26:48
2018-05-16T15:10:56
C++
UTF-8
Python
false
false
5,287
py
doubly_linked_list.py
""" Implementation of Doubly linked list Data Structure """ class Node: """ Node class contains everything related to linked list node """ def __init__(self, data): """ initializing single node with data """ self.data = data self.next = None self.previous = None class DoublyL...
87036940e7a87cc1a213d9a70265ac47e82edb7d
c3b69ed405d910eb4783107f65dfe5af509e4f9f
/src/simplify_docx/iterators/body.py
690b89dc86d38ee485f887a19259522cd437c637
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
microsoft/Simplify-Docx
32e992a8313ca20ffe69dd0d32371436ecc4bed1
7f41e9195f5eb9e40558d57dc41f325f92a1b3a7
refs/heads/master
2023-09-01T08:59:34.971626
2022-06-13T17:59:06
2022-06-13T17:59:06
178,740,813
160
37
MIT
2022-06-13T17:59:07
2019-03-31T20:50:48
Python
UTF-8
Python
false
false
2,218
py
body.py
""" Iterate over containers (i.e. "things that can contain EG_BlockLevelElts") """ from docx.oxml.ns import qn from .generic import register_iterator from ..elements import paragraph, table, empty, altChunk # RANGE MARKUP register_iterator( "EG_RangeMarkupElements", TAGS_TO_IGNORE=[ qn("w:bookmarkStar...
2eab43ec119b18a070c3e5d6cf97ab3f319721ab
0ba2e5061577f6286ff9265ef1df9aca96769445
/dp/knapsack_problem/py/FractionalKnapsack.py
2febf9863e17071441247ecfacf9d50f18fac7af
[ "CC0-1.0" ]
permissive
ZoranPandovski/al-go-rithms
68d5d02f80a61de9baf8e50a81a52e7d0b3983a0
4ae6ba54e90af14af236e03e435eb0402dcac787
refs/heads/master
2023-09-04T16:04:04.321676
2023-06-06T15:22:16
2023-06-06T15:22:16
93,438,176
1,421
2,445
CC0-1.0
2023-06-15T14:24:28
2017-06-05T19:20:20
Jupyter Notebook
UTF-8
Python
false
false
449
py
FractionalKnapsack.py
##### GREEDY SOLUTION ##### from itertools import accumulate from bisect import bisect def fracKnapsack(vl, wt, W, n): r = list(sorted(zip(vl,wt), key=lambda x:x[0]/x[1],reverse=True)) vl , wt = [i[0] for i in r],[i[1] for i in r] acc=list(accumulate(wt)) k = bisect(acc,W) return 0 if k == 0 else...
e8296cbf0f53136bedcce6ab5f44da417925ddca
48d1002394d233cf5932c7ef69300400af79118a
/examples/widgets/actionbar.py
b48db9ad4a575b2140c5913ed9efe111a6d824d9
[ "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
826
py
actionbar.py
from kivy.base import runTouchApp from kivy.lang import Builder runTouchApp(Builder.load_string(''' ActionBar: pos_hint: {'top':1} ActionView: use_separator: True ActionPrevious: title: 'Action Bar' with_previous: False ActionOverflow: ActionButton: ...
e8c1fda4f0b59d639860106fc201b8fdc01ed788
12f0bd77926127cdacc2452d6f9cfed91806b2fe
/idaes/core/base/property_meta.py
b12aee115cbd8ae104744c9e98becf8c311f3568
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
IDAES/idaes-pse
e03d2583ae1ba968a7099f9f439fd8c3efa12904
deacf4c422bc9e50cb347e11a8cbfa0195bd4274
refs/heads/main
2023-08-16T19:13:00.355572
2023-08-04T04:19:29
2023-08-04T04:19:29
168,622,088
173
227
NOASSERTION
2023-09-11T16:04:55
2019-02-01T01:12:51
Python
UTF-8
Python
false
false
20,284
py
property_meta.py
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES). # # Copyright (c) 2018-2023 by the software own...
df1b2f302d3688282a83ee7b9aee66d6f17ecddc
46a79c07c6ff972c8b1287bae29d2b3557cb0525
/src/systemtest/op-monitoring/xrd-opmon-tests/testcases/test_metaservices.py
d69404729542691dcb362954f0bc216d834ab397
[ "MIT" ]
permissive
nordic-institute/X-Road
dee64a6fae2caf8e02f83a037368df4ed21399ff
25bdbff39e614c7258d6c202584604d3505e60e0
refs/heads/develop
2023-09-01T09:19:05.646215
2023-08-31T12:11:04
2023-08-31T12:11:04
134,143,184
559
190
NOASSERTION
2023-09-14T09:52:29
2018-05-20T11:06:37
Java
UTF-8
Python
false
false
13,994
py
test_metaservices.py
#!/usr/bin/env python3 # The MIT License # Copyright (c) 2016 Estonian Information System Authority (RIA), Population Register Centre (VRK) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software ...
5935aab0927558d1b8b76145c20add2a9f9edc65
7491ceb405287660538e876317d3f69328757651
/aydin/it/classic_denoisers/pca.py
ee0961e08ce16fe35d50bcb3f078cb73fef34d72
[ "BSD-3-Clause", "LicenseRef-scancode-proprietary-license" ]
permissive
royerlab/aydin
4d0bd5cb1a3786cf32f1d8661d3a3aa13ec7cab1
9312f227605be26fce960373c1f29a71323da914
refs/heads/master
2023-04-29T20:45:42.515226
2023-02-16T22:21:07
2023-02-16T22:21:07
188,953,977
125
14
BSD-3-Clause
2023-03-15T01:04:16
2019-05-28T04:30:19
Python
UTF-8
Python
false
false
7,331
py
pca.py
import math from functools import partial from math import prod from typing import Optional, Union, Tuple, List import numpy from numpy.typing import ArrayLike from sklearn.decomposition import PCA from aydin.it.classic_denoisers import _defaults from aydin.util.crop.rep_crop import representative_crop from aydin.uti...
f6996259a7ee172cad25b11bdbf19c6d5dac26ca
45e376ae66b78b17788b1d3575b334b2cb1d0b1c
/tests/terraform/parser/test_parser_internals.py
0ebe085070a47cb6a78726df66da8c37ef9218f4
[ "Apache-2.0" ]
permissive
bridgecrewio/checkov
aeb8febed2ed90e61d5755f8f9d80b125362644d
e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d
refs/heads/main
2023-08-31T06:57:21.990147
2023-08-30T23:01:47
2023-08-30T23:01:47
224,386,599
5,929
1,056
Apache-2.0
2023-09-14T20:10:23
2019-11-27T08:55:14
Python
UTF-8
Python
false
false
1,381
py
test_parser_internals.py
from pathlib import Path from checkov.common.util.parser_utils import eval_string from checkov.terraform.tf_parser import load_or_die_quietly def test_eval_string_to_list(): # given expected = ["a", "b", "c"] # when actual = eval_string('["a", "b", "c"]') assert actual == expected def test__l...
596dd9882c6fba31334f82b57db6c98003d1504d
23dcd65d2b4664cfdca5819b9ca56c1419d3adaa
/official/vision/gan/megengine_mimicry/nets/wgan/wgan_cifar.py
b75b4e8aceedbbe65c6120a5f720063c906bbec3
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
MegEngine/Models
8456439ab0a9d7f548c418f25947f42ead3f1bce
78882f9cbaa037ad701f47d47bb80b66ad95ce87
refs/heads/master
2022-12-09T04:43:49.434068
2022-10-31T12:09:38
2022-10-31T12:09:38
248,175,266
319
116
NOASSERTION
2023-01-29T08:15:05
2020-03-18T08:22:46
Python
UTF-8
Python
false
false
4,270
py
wgan_cifar.py
# Copyright (c) 2020 Kwot Sin Lee # This code is licensed under MIT license # (https://github.com/kwotsin/mimicry/blob/master/LICENSE) # ------------------------------------------------------------------------------ # MegEngine is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-202...
d57febb60a3800c6fb6beb7c5507045ba4792e26
3daa53a2190f365ee2e2acae39ca4e84919f2f50
/test/unit/common/middleware/test_subrequest_logging.py
20b71dff6763ce807e2e120255b8c3ee166d79ec
[ "Apache-2.0" ]
permissive
openstack/swift
4c8e4a14c1c6f7efb049f983ede28e89bd2e9140
f06e5369579599648cc78e4b556887bc6d978c2b
refs/heads/master
2023-08-28T15:04:33.200849
2023-08-24T20:35:07
2023-08-24T21:05:48
790,019
2,370
957
Apache-2.0
2023-06-22T02:45:53
2010-07-22T01:50:07
Python
UTF-8
Python
false
false
5,644
py
test_subrequest_logging.py
# Copyright (c) 2016-2017 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
66b1b82b18f3e55305d395f3fd0ed46b1c82d869
f40bd24edfe91765a9ca7e4b1561ad487068beb0
/python/brainfuck-simple.py
e2ca37d60aca179ee79894b4b3ed04562b69cc02
[ "MIT" ]
permissive
pablojorge/brainfuck
4a487a140a1b7bd49ec73322f833249488252e5b
153924714ae5e569ec39dcf0c0a5b5ae33600cc6
refs/heads/master
2022-03-11T18:50:10.588762
2021-02-10T04:19:13
2021-02-10T04:19:13
3,670,680
250
53
null
2016-09-17T14:12:51
2012-03-09T13:03:40
Brainfuck
UTF-8
Python
false
false
1,609
py
brainfuck-simple.py
import sys import optparse def precompute_jumps(program): stack = [] ret = {} pc = 0 while not pc == len(program): opcode = program[pc] if opcode == "[": stack.append(pc) elif opcode == "]": target = stack.pop() ret[target] = pc ...
b26ba00b02abf63c954569081343b0b580b191cd
fcde019e3a8188c56c691497e97cb4f6f135bfa9
/src/deeponto/align/evaluation.py
5de65d5fbe051e038572f8b9746a2024c9db013f
[ "Apache-2.0" ]
permissive
KRR-Oxford/DeepOnto
4fab7b0c2e80388605391a026d2104d3eef8a05e
3e4fae7b1481b214b2e1c4ed51341446461d67dc
refs/heads/main
2023-08-16T19:52:16.415872
2023-08-10T20:36:20
2023-08-10T20:36:20
430,473,960
112
8
Apache-2.0
2023-07-08T15:08:28
2021-11-21T20:35:03
Python
UTF-8
Python
false
false
4,782
py
evaluation.py
# Copyright 2021 Yuan He. 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 agreed ...
84c7367f3672c76b5292f32aeb829fc94053136f
5da5473ff3026165a47f98744bac82903cf008e0
/packages/google-cloud-essential-contacts/google/cloud/essential_contacts_v1/services/essential_contacts_service/client.py
46aa5ab50ac937512b2d996eaa80b4366f55c074
[ "Apache-2.0" ]
permissive
googleapis/google-cloud-python
ed61a5f03a476ab6053870f4da7bc5534e25558b
93c4e63408c65129422f65217325f4e7d41f7edf
refs/heads/main
2023-09-04T09:09:07.852632
2023-08-31T22:49:26
2023-08-31T22:49:26
16,316,451
2,792
917
Apache-2.0
2023-09-14T21:45:18
2014-01-28T15:51:47
Python
UTF-8
Python
false
false
48,971
py
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...
6c4f3ebd0095e774c92d774ea60f3411a1910282
0841643267b9fc1478f6e3d21bfccb17aba67af6
/gs_quant/test/markets/test_baskets.py
d6cf500883f9910efc89c90d365f260b436119d2
[ "Apache-2.0" ]
permissive
goldmansachs/gs-quant
55618e0e4e961d4ee50b7393f27c258e2647a957
4cf8ec75c4d85b16ec08371c46cc1a9ede9d72a2
refs/heads/master
2023-08-20T00:55:43.324547
2023-08-16T16:55:22
2023-08-16T16:55:22
161,840,815
2,088
596
Apache-2.0
2023-08-16T16:55:23
2018-12-14T21:10:40
Jupyter Notebook
UTF-8
Python
false
false
12,018
py
test_baskets.py
""" Copyright 2018 Goldman Sachs. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
aea523ba76e88692e0b109c746bc53d1e3369a35
fce81b804cae23f525a5ad4370b684bf0dc531a5
/numpy/lib/tests/test__version.py
e6d41ad939323792d31faa7ae517e6835ea851d1
[ "Zlib", "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
numpy/numpy
ba2abcc1d2d46affbb6aabe5aed6407b4b57507e
dc2ff125493777a1084044e6cd6857a42ee323d4
refs/heads/main
2023-09-05T10:10:52.767363
2023-09-04T18:03:29
2023-09-04T18:03:29
908,607
25,725
11,968
BSD-3-Clause
2023-09-14T21:26:09
2010-09-13T23:02:39
Python
UTF-8
Python
false
false
1,999
py
test__version.py
"""Tests for the NumpyVersion class. """ from numpy.testing import assert_, assert_raises from numpy.lib import NumpyVersion def test_main_versions(): assert_(NumpyVersion('1.8.0') == '1.8.0') for ver in ['1.9.0', '2.0.0', '1.8.1', '10.0.1']: assert_(NumpyVersion('1.8.0') < ver) for ver in ['1.7...
ac66ef5c211bab515c69c84bfd9ee56212f81ffa
7260860cc391503e839929d77722004d17e47681
/django_dynamic_fixture/tests/test_ddf.py
5adadac2105a8c4300cebc2a9c40760b2ceb25e4
[ "MIT", "Apache-2.0" ]
permissive
paulocheque/django-dynamic-fixture
5937e144a4504ab84e05da673c7bf3ce90ad9d1e
5b5ffaca3bef3640feb2031feb3e895971b3b939
refs/heads/master
2023-08-30T20:56:47.857000
2023-08-27T01:29:16
2023-08-27T01:29:16
3,934,109
212
47
NOASSERTION
2023-09-05T20:29:14
2012-04-04T22:54:41
Python
UTF-8
Python
false
false
22,409
py
test_ddf.py
from datetime import datetime, date from decimal import Decimal import uuid from django.test import TestCase import pytest from django_dynamic_fixture.models_test import * from django_dynamic_fixture.ddf import * from django_dynamic_fixture.fixture_algorithms.sequential_fixture import SequentialDataFixture data_fix...
9619d7c49bb13e82d672ac34a8657e2ded6b629c
6c8305ea1df9687df1c0d2b0ace56733516c6322
/readthedocs/subscriptions/constants.py
d46514a1fe4adebd85cbb2fa6333989a1d7188c6
[ "MIT" ]
permissive
readthedocs/readthedocs.org
9806083aa744c2308267919480a692e1e003e45d
bf88ce6d1085d922322a5fadce63a22c5544c830
refs/heads/main
2023-09-05T20:22:34.281891
2023-09-05T12:41:52
2023-09-05T12:41:52
841,835
2,894
1,509
MIT
2023-09-14T20:36:00
2010-08-16T19:18:06
Python
UTF-8
Python
false
false
1,236
py
constants.py
"""Constants for subscriptions.""" from django.utils.translation import gettext_lazy as _ # Days after the subscription has ended to disable the organization DISABLE_AFTER_DAYS = 30 TYPE_CNAME = "cname" TYPE_CDN = "cdn" TYPE_SSL = "ssl" TYPE_SUPPORT = "support" TYPE_PRIVATE_DOCS = "private_docs" TYPE_EMBED_API = "em...
11b2d6f98de53feba913c2705fa8950bfb6e6901
d3c7657f98fdffd6000218643704bfec003b8b0c
/pgmpy/tests/test_global_vars.py
1203c1b9fc07758a79243ea261ef0e96c9339992
[ "MIT" ]
permissive
pgmpy/pgmpy
25066e623576b8346647eae34bb0248b6bfd1033
6d66bde4c7f140ba14892174c59370b2b7964e90
refs/heads/dev
2023-09-04T15:31:47.379242
2023-09-01T17:35:50
2023-09-01T17:35:50
12,968,651
2,617
854
MIT
2023-09-14T14:11:57
2013-09-20T08:18:58
Python
UTF-8
Python
false
false
2,410
py
test_global_vars.py
import unittest import numpy as np import torch from pgmpy import config class TestConfig(unittest.TestCase): def test_defaults(self): self.assertEqual(config.BACKEND, "numpy") self.assertEqual(config.get_backend(), "numpy") self.assertEqual(config.DTYPE, "float64") self.assertE...
a38ad1ab24d847229f4e11a16a43c698706c4994
d32b0c51323e4a2106f82d3fdc81094fb03f989e
/guillotina/utils/content.py
cf2a2cd4754a69d2df08d23e6c2c06882188ff0c
[ "BSD-2-Clause" ]
permissive
plone/guillotina
69f768bddc53b397471c3748eee6f01e7db619ab
9085dd8b788a5f081db5d799965d39831b2d4ee2
refs/heads/master
2023-05-01T13:23:30.323625
2022-12-12T14:47:56
2022-12-12T14:47:56
83,574,500
185
61
NOASSERTION
2023-04-16T11:58:58
2017-03-01T16:12:44
Python
UTF-8
Python
false
false
8,847
py
content.py
from .misc import get_current_request from .misc import list_or_dict_items from guillotina import glogging from guillotina import task_vars from guillotina._settings import app_settings from guillotina.component import get_adapter from guillotina.component import get_utility from guillotina.component import query_multi...
5726c42792d93f2936798c89e9ff5a73a8118816
dcd772f567ef8a8a1173a9f437cd68f211fb9362
/tests/framework/OutStreams/testImageColorbar.py
f15bd8eb16edf3fb1dab411e83ef0de91c88ca91
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause", "BSD-3-Clause" ]
permissive
idaholab/raven
39cdce98ad916c638399232cdc01a9be00e200a2
2b16e7aa3325fe84cab2477947a951414c635381
refs/heads/devel
2023-08-31T08:40:16.653099
2023-08-29T16:21:51
2023-08-29T16:21:51
85,989,537
201
126
Apache-2.0
2023-09-13T21:55:43
2017-03-23T19:29:27
C++
UTF-8
Python
false
false
2,809
py
testImageColorbar.py
# Copyright 2017 Battelle Energy Alliance, 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 t...
15ae5cb57520ca653abe2e89eb5322ab7bc400ba
cfb41f392fac304095a80d08497727c621550c00
/src/petclaw/solution.py
ce7b5cdb4e87a1696321fd8cf5ab5af4d28b93b7
[ "BSD-3-Clause" ]
permissive
clawpack/pyclaw
5b7121b63609c2cf9af30e012c9318e3b5244f18
6323b7295b80f33285b958b1a2144f88f51be4b1
refs/heads/master
2023-04-16T23:48:31.519427
2023-03-21T06:08:21
2023-03-21T06:08:21
1,628,711
124
97
BSD-3-Clause
2023-09-12T12:22:30
2011-04-18T03:11:21
Fortran
UTF-8
Python
false
false
887
py
solution.py
from __future__ import absolute_import from clawpack import pyclaw from clawpack.pyclaw.solution import Solution class Solution(Solution): """ Parallel Solution class. """ __doc__ += pyclaw.util.add_parent_doc(pyclaw.Solution) def get_read_func(self, file_format): from clawpack.petclaw import ...
6419457db138bf8c85533455b6894468c7b29fc9
7c593f4cc70ee56106cc9cce105e6b9e7839431e
/tests/vectorize.py
170771e3e818fb2fb58610d6ae8fddc2917ea143
[ "Apache-2.0" ]
permissive
google/objax
84e397cafb70813a1e89467f745facf828ed24b8
a2d025d9e1da8660a1883404207c41d4327d8c48
refs/heads/master
2023-09-02T07:04:26.801269
2023-06-12T22:12:53
2023-06-12T22:12:53
288,923,752
801
80
Apache-2.0
2023-06-12T22:12:54
2020-08-20T06:20:40
Python
UTF-8
Python
false
false
7,307
py
vectorize.py
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
9798528ceb24f8dea7f6240a1e6a729365e0d687
500bca3e22bd0c30c79b74918e9847742b3c428e
/v1/python-sdk/tutorials/using-rapids/src/rapids_csp_azure.py
a1890435ea7ecaa9366517b86e6fdb317158a5a7
[ "MIT" ]
permissive
Azure/azureml-examples
2304c862fd2e36e6640ecc4d09f69c5ed93b48ab
e5f7b247d4753f115a8f7da30cbe25294f71f9d7
refs/heads/main
2023-08-31T00:10:14.107509
2023-08-30T17:29:22
2023-08-30T17:29:22
289,334,021
1,219
1,074
MIT
2023-09-14T16:00:55
2020-08-21T18:04:26
Jupyter Notebook
UTF-8
Python
false
false
20,170
py
rapids_csp_azure.py
# # Copyright (c) 2019-2020, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
160a7c2b86a96aede5a51b5866f10bd5d06080a4
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/DQMOffline/L1Trigger/python/L1TRateOfflineParams_cff.py
660056595f2d05c1aee757ca94f9eae0c390b5f3
[ "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
62,793
py
L1TRateOfflineParams_cff.py
import FWCore.ParameterSet.Config as cms RateParams_2012 = cms.VPSet( cms.PSet( AlgoName = cms.string ('L1_SingleEG22'), TemplateFunction = cms.string ('[0]/x+[1]+[2]*x+[3]*x*x'), Parameters = cms.vdouble(-250.646,1.78975,-5.5801e-05,5.90724e-09), ParErrors = cms.vdouble(4.6133,0....
fe5b9955facbf921b2f9122ce3a327fe3aabc7bd
2f25acbc334a75ef32e67b62062e5fa9e3eec341
/zaqar/storage/swift/messages.py
a40e1de31ba58219f887b89a83aadf13e7edf309
[ "Apache-2.0" ]
permissive
openstack/zaqar
123f12b157b1c3861bc455867f5413bfe27f49c7
169d917c3e3eaec54eeeb72859df6e4c64ef00da
refs/heads/master
2023-08-30T02:14:11.448834
2023-08-21T18:54:14
2023-08-21T18:54:14
12,833,284
102
46
null
2015-02-27T13:28:05
2013-09-14T17:40:21
Python
UTF-8
Python
false
false
18,549
py
messages.py
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
2c87fe5af06b18facb48da46655c188e38edf041
444a9480bce2035565332d4d4654244c0b5cd47b
/research/cv/PAMTRI/PoseEstNet/trans.py
cb5a4b4abfa052ec6a9318f83ece9c796355b330
[ "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
3,915
py
trans.py
# Copyright 2021-2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
164b0e0de6645f3a7ddaa9d889d73f8536aea885
ad61cc119a42abfd3d64224a753817ae0f9ba058
/tests/unit/customizations/codeartifact/__init__.py
a25bae32ceeb89c08fcdfa6ce91a00bb42bfbb0d
[ "Apache-2.0" ]
permissive
aws/aws-cli
30b0e5b0fb6d736f1540990955f0a7351ee7a908
147d16dfdb72dc9cf362b676a57e46a49375afbd
refs/heads/develop
2023-09-03T19:52:07.955543
2023-09-01T20:37:50
2023-09-01T20:37:50
6,780,767
13,038
4,107
NOASSERTION
2023-09-13T19:48:11
2012-11-20T16:07:36
Python
UTF-8
Python
false
false
948
py
__init__.py
from awscli.testutils import unittest from awscli.testutils import mock from awscli.customizations.codeartifact import register_codeartifact_commands from awscli.customizations.codeartifact import inject_commands from awscli.customizations.codeartifact.login import CodeArtifactLogin class TestRegisterCodeArtifactComm...
a7ff05cab2fc0ad5b8c5c38d3afc6161e8877a8f
c50e7eb190802d7849c0d0cea02fb4d2f0021777
/src/cloudservice/azext_cloudservice/generated/_params.py
9c63faa5f3dcffd9de3ab425b54ef48d2dd61778
[ "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
13,874
py
_params.py
# -------------------------------------------------------------------------- # 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 cause incor...
6a8e1c21f094d454371aef32381d3bce7f2e70c4
a21ccc8ced1b57b351e3772e3939714e330de2d5
/src/related/__init__.py
c705ee24e769089c9e9abd6f6252bcc4f36d1b0a
[ "MIT" ]
permissive
genomoncology/related
f7d4310fd5776441afd045a96f07f9dad9797a6c
2f3db6b07f5515792370d97f790cd46ec0882a9d
refs/heads/master
2023-01-12T08:46:16.068921
2022-08-05T13:34:47
2022-08-05T13:34:47
92,290,249
208
18
MIT
2022-12-27T17:03:18
2017-05-24T12:31:44
Python
UTF-8
Python
false
false
1,603
py
__init__.py
# -*- coding: utf-8 -*- from .decorators import ( mutable, immutable, serializer, ) from .types import ( ImmutableDict, TypedSequence, TypedMapping, TypedSet, ) from .fields import ( BooleanField, ChildField, DateField, DateTimeField, TimeField, FloatField, Int...
59a1c576c78135173064b3584e071dbfdc751468
9734c93c86c982b1ce046340bac9e53645b261b8
/tests/parsers/esedb_plugins/msie_webcache.py
772e105736b7e8fb9f410c82b31f80b8d2ab3645
[ "Apache-2.0" ]
permissive
log2timeline/plaso
cd72dd407d6c5627506c14f58cb8f6a6926aa808
d6022f8cfebfddf2d08ab2d300a41b61f3349933
refs/heads/main
2023-09-02T08:43:48.241198
2023-08-19T07:28:12
2023-08-19T07:28:12
23,812,315
1,506
421
Apache-2.0
2023-09-04T08:24:53
2014-09-08T23:29:28
Python
UTF-8
Python
false
false
5,391
py
msie_webcache.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests for the Microsoft Internet Explorer WebCache database.""" import unittest from plaso.parsers.esedb_plugins import msie_webcache from tests.parsers.esedb_plugins import test_lib class MsieWebCacheESEDBPluginTest(test_lib.ESEDBPluginTestCase): """Tests for th...
87a205aec149ed8c4a94561b4793b6a17d0160e6
b3db95f1741e50140a6dd14f199cc585e3b61254
/tools/releasetools/merge/merge_target_files.py
d8f7b15a51aa4a1f72c7ce3c3e034082e0e1354a
[ "Apache-2.0" ]
permissive
aosp-mirror/platform_build
58bc3f117b721b555203c04b9a2636c51dfc009d
ef9ba4d22bb56b0455a2d207300cf7ed18d8e5dc
refs/heads/main
2023-08-17T04:01:06.769170
2023-08-17T00:35:36
2023-08-17T00:35:36
65,832
215
251
null
2023-08-04T13:45:36
2008-10-21T18:19:56
Makefile
UTF-8
Python
false
false
23,639
py
merge_target_files.py
#!/usr/bin/env python # # Copyright (C) 2022 The Android Open Source 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 req...
80f43f415854f4ec4c6d8f31a1ca0b144a512ebc
4d13e699f3a0466fc1ee9f41a36dd14c49bd60de
/rlzoo/algorithms/td3/default.py
8994450c45cede716205376cdfd035fb0a22e567
[ "Apache-2.0" ]
permissive
tensorlayer/RLzoo
658db88dbbb59b2facc37b1dfe2020ea3a6e058c
e3ed8a57bd8130bd7b663f213a388ce972925f30
refs/heads/master
2023-09-04T08:29:06.899553
2022-12-15T16:45:01
2022-12-15T16:45:01
198,997,104
842
120
Apache-2.0
2023-03-24T22:35:03
2019-07-26T10:23:27
Python
UTF-8
Python
false
false
18,135
py
default.py
from rlzoo.common.policy_networks import * from rlzoo.common.value_networks import * from rlzoo.common.utils import set_seed """ full list of algorithm parameters (alg_params) ----------------------------------------------- net_list: a list of networks (value and policy) used in the algorithm, from common func...
23fb0ad72c910cb16139b479448f958a572f43b8
7f620e7902c0b9ccb1fcfd1427acd5936ea33814
/tests/http_srv.py
d6103147a1ba0f476efdb1a014497bca8441321d
[ "Apache-2.0" ]
permissive
mlrun/mlrun
2074c230070129ce3becb211b92c90b29a2ce850
b5fe0c05ae7f5818a4a5a5a40245c851ff9b2c77
refs/heads/development
2023-09-06T00:09:21.546135
2023-09-05T19:38:13
2023-09-05T19:38:13
205,706,595
1,093
229
Apache-2.0
2023-09-14T14:14:10
2019-09-01T16:59:19
Python
UTF-8
Python
false
false
2,187
py
http_srv.py
# Copyright 2023 Iguazio # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softwa...
eaa9910e0f6b7fc1c497c1493b4e3d4238716516
6c4518d19073edefa988253ab978dce804a86fd0
/tests/functional/python_tests/cli_wallet_extended_tests/test_transaction_managing.py
843cb48ab948df51b9ff2e56b47bfdf5a9873159
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
openhive-network/hive
9c975d7f27729424306ae46a8971a1cb50d9bade
faa8b1d33aead9e555b98adb78a5183634d9f8f5
refs/heads/master
2023-08-08T10:29:51.616373
2023-04-04T22:02:30
2023-04-05T16:48:29
248,639,972
348
112
NOASSERTION
2021-08-28T22:34:07
2020-03-20T01:18:32
C++
UTF-8
Python
false
false
2,226
py
test_transaction_managing.py
import datetime import test_tools as tt def test_transaction(wallet): wallet.api.create_account('initminer', 'carol', '{}') with wallet.in_single_transaction(broadcast=False) as transaction: wallet.api.transfer_to_vesting('initminer', 'carol', tt.Asset.Test(100)) wallet.api.transfer('initmin...
7813a6e6459a1713c2ad13ce28cb787d90569a68
438f82adbaa27bcb97cce0171f377ddc92586f48
/pulumi/infra/consul_config.py
e243dafe4df750fb8ce03eec6a0570f6a353c879
[ "Apache-2.0" ]
permissive
grapl-security/grapl
5f93599969ec604df25712c1d16648d16de67072
b2c7ef263fb8134add2febb770da164ea7b4936f
refs/heads/main
2023-08-12T11:38:11.167343
2022-12-26T15:28:55
2022-12-26T15:28:55
151,994,099
386
60
Apache-2.0
2022-12-10T05:56:55
2018-10-07T23:28:27
Rust
UTF-8
Python
false
false
3,331
py
consul_config.py
import json import pulumi_consul as consul import pulumi class ConsulConfig(pulumi.ComponentResource): """ Consul config entries """ def __init__( self, name: str, tracing_endpoint: str, opts: pulumi.ResourceOptions | None = None, ) -> None: super().__ini...
98a1453308377e8b73931542e2d010803f636edf
7491ceb405287660538e876317d3f69328757651
/aydin/it/transforms/demo/demo_fixed_pattern_real.py
b48c0c8d4bfda298b38572bcfb18421f37dc6828
[ "BSD-3-Clause", "LicenseRef-scancode-proprietary-license" ]
permissive
royerlab/aydin
4d0bd5cb1a3786cf32f1d8661d3a3aa13ec7cab1
9312f227605be26fce960373c1f29a71323da914
refs/heads/master
2023-04-29T20:45:42.515226
2023-02-16T22:21:07
2023-02-16T22:21:07
188,953,977
125
14
BSD-3-Clause
2023-03-15T01:04:16
2019-05-28T04:30:19
Python
UTF-8
Python
false
false
644
py
demo_fixed_pattern_real.py
from aydin.io.datasets import examples_single from aydin.it.transforms.fixedpattern import FixedPatternTransform from aydin.util.log.log import Log def demo_fixed_pattern_real(): Log.override_test_exclusion = True image = examples_single.huang_fixed_pattern_noise.get_array() # [:, 0:64, 0:64] bs = Fixe...
18c5731de15117d9c88d39794b3cd93a227c79f0
2dfcde05b04318ed5f4b1992ef0aa1eaa5052ccb
/ansible_collections/juniper/device/plugins/modules/facts.py
e6082ccc42621065b36d58444678704230a02883
[ "Apache-2.0" ]
permissive
Juniper/ansible-junos-stdlib
87bbeb28e308f7e03bc7e8a19d1877185bb601ec
e3f6fca99461b8f40d4d59bb7dcc8b3892722ad5
refs/heads/master
2023-08-31T13:22:37.759400
2023-08-02T04:04:30
2023-08-02T04:04:30
16,183,015
299
199
Apache-2.0
2023-08-02T04:04:31
2014-01-23T19:28:58
Python
UTF-8
Python
false
false
13,969
py
facts.py
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2017-2020, Juniper Networks Inc. All rights reserved. # # License: Apache 2.0 # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source co...
3ac9631564236cfdf474b77502b2ff8596d5ac53
f8215144c61ef88ed63ed536334a74abc53c5631
/keras_nlp/layers/preprocessing/multi_segment_packer.py
0f61d4751a4df311e04527e98b56bdc4e6f12358
[ "Apache-2.0" ]
permissive
keras-team/keras-nlp
3906a35c64f543dc3713ed619eb5a790a6ff4a32
43cf146cb7670fc94f98ba88ed940f12d9848726
refs/heads/master
2023-08-16T05:12:06.003760
2023-08-15T22:51:58
2023-08-15T22:51:58
267,715,375
579
175
Apache-2.0
2023-09-14T19:33:47
2020-05-28T23:03:54
Python
UTF-8
Python
false
false
12,180
py
multi_segment_packer.py
# Copyright 2023 The KerasNLP Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
d5592bc92dcbc5ec71a361c3e589c9cae74f0cf6
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/sms/notify.py
21d3ab2beb520ae1dac2876dfb56358d1e5d84c0
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
2,562
py
notify.py
"""Support for SMS notification services.""" from __future__ import annotations import logging import gammu from homeassistant.components.notify import ATTR_DATA, BaseNotificationService from homeassistant.const import CONF_TARGET from homeassistant.core import HomeAssistant from homeassistant.helpers.typing import ...
3efcc2beaa1a45bfef8b6bb076445fd57a58f120
302c3a7aa0691291a4311e4cc6620c60dc69ef04
/word_sprite/Game_View.py
0a8c9676d25ec148ed6d12314384d1e5a88f15ca
[]
no_license
HuiDBK/WordSprite
6c7e105f451ef4dade185679a002b32720e7d60c
61fe12fd452c4e8eeef826285a0b713b7e461708
refs/heads/master
2023-08-24T19:32:50.839642
2023-08-05T05:13:45
2023-08-05T05:13:45
302,100,080
185
8
null
null
null
null
UTF-8
Python
false
false
19,856
py
Game_View.py
#!/usr/zip/env python # -*- coding:utf-8 -*- """ Author: Hui Description: { 游戏视图模块 } """ import threading import PySimpleGUI as sg from tkinter import colorchooser from word_sprite import Game_Info from word_sprite.Game_Info import GameConfig class BaseWin(object): """窗口父类""" WIN_THEME = sg.theme('DarkBlue1'...
757003e1b67c39198a71426f2220dab60ae0f244
e90bf4b372da78ceec15282d060b48d18ba8d4e9
/supervisor/backups/__init__.py
37bbde0ccd0f1b8efe28db5f18560b118178b0a9
[ "Apache-2.0" ]
permissive
home-assistant/supervisor
67f2e1755ff5fbf7cf2084351e1c32c6995274e0
4838b280adafed0997f32e021274b531178386cd
refs/heads/main
2023-08-31T22:51:25.949277
2023-08-31T08:01:42
2023-08-31T08:01:42
84,926,758
928
477
Apache-2.0
2023-09-14T17:11:27
2017-03-14T08:54:15
Python
UTF-8
Python
false
false
29
py
__init__.py
"""Backup system control."""
b286aa2acffc41444819c7e5877f09827fddf14a
10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94
/Python/check-if-an-original-string-exists-given-two-encoded-strings.py
5633324426366ddf1d1f172af8c5ddb828b0e6ff
[ "MIT" ]
permissive
kamyu104/LeetCode-Solutions
f54822059405ef4df737d2e9898b024f051fd525
4dc4e6642dc92f1983c13564cc0fd99917cab358
refs/heads/master
2023-09-02T13:48:26.830566
2023-08-28T10:11:12
2023-08-28T10:11:12
152,631,182
4,549
1,651
MIT
2023-05-31T06:10:33
2018-10-11T17:38:35
C++
UTF-8
Python
false
false
6,962
py
check-if-an-original-string-exists-given-two-encoded-strings.py
# Time: O(m * n * k), k is the max number of consecutive digits in s1 and s2 # Space: O(m * n * k) # top-down dp (faster since accessing less states) class Solution(object): def possiblyEquals(self, s1, s2): """ :type s1: str :type s2: str :rtype: bool """ def gener...
7249a737130fda8e9c507e46dfdfa93e7f9504cd
f8dee139258b7d971bd1cfa16bd16e356537bbac
/Contents/Libraries/Shared/json_tricks/np.py
676041f9f1f6736e05316cca3227a9cf7467e011
[ "MIT" ]
permissive
pannal/Sub-Zero.bundle
79673016ae68d1f2e9886fd30b8763b73a8f6cf8
4ced7d8c8f9f5fb47d12410f87fa33d782e9f0f4
refs/heads/master
2023-07-27T23:04:32.925845
2023-07-09T13:07:38
2023-07-09T13:08:04
21,959,699
1,820
178
NOASSERTION
2022-11-28T03:23:13
2014-07-17T22:19:13
Python
UTF-8
Python
false
false
1,203
py
np.py
""" This file exists for backward compatibility reasons. """ from logging import warning from .nonp import NoNumpyException, DEFAULT_ENCODERS, DEFAULT_HOOKS, dumps, dump, loads, load # keep 'unused' imports from .utils import hashodict, NoPandasException from .comment import strip_comment_line_with_symbol, strip_com...
c400b52afe31e0a30df07671144b778e82218d31
95d20c83d8aff34e314c56a3ecb2b87c9fa9fc86
/Ghidra/Features/Python/ghidra_scripts/python_basics.py
dff8d2f2b50bb4e2b64cb39d3d6486f0ae5d0458
[ "GPL-1.0-or-later", "GPL-3.0-only", "Apache-2.0", "LicenseRef-scancode-public-domain", "LGPL-2.1-only", "LicenseRef-scancode-unknown-license-reference" ]
permissive
NationalSecurityAgency/ghidra
969fe0d2ca25cb8ac72f66f0f90fc7fb2dbfa68d
7cc135eb6bfabd166cbc23f7951dae09a7e03c39
refs/heads/master
2023-08-31T21:20:23.376055
2023-08-29T23:08:54
2023-08-29T23:08:54
173,228,436
45,212
6,204
Apache-2.0
2023-09-14T18:00:39
2019-03-01T03:27:48
Java
UTF-8
Python
false
false
2,385
py
python_basics.py
## ### # IP: GHIDRA # # 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...
54c30e89a8e9dd463685756f170d969047c1ce6b
8d93a21c76a655bcb9b36cac8dd13f1e0594f9cb
/lib/server/AsyncCommand.py
1acb63804c789b338a592c885a7f0619199e59a2
[ "MIT" ]
permissive
Phaiax/ArcticTypescript
8cfbe698381fa58dc90984f5e5d338b13350fe47
061f197e3904d129325125c004bf561651d93c39
refs/heads/master
2021-01-17T11:48:37.981158
2015-05-21T14:28:50
2015-05-21T14:28:50
26,186,004
121
16
null
2016-06-11T19:41:48
2014-11-04T19:54:28
JavaScript
UTF-8
Python
false
false
7,317
py
AsyncCommand.py
# coding=utf8 import uuid import time import sublime import json from ..utils import Debug from ..utils.debounce import DEFAULT_DEBOUNCE_DELAY # ----------------------------------------- ASYNC COMMAND ---------------------------------- # class AsyncCommand(object): """ Represents a command wich can be e...
48d889bde60f0604ca21b70fb43c9d4f055b5b89
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/chromeos/ash/services/network_config/DEPS
fed9ee87e253db1027346329711a82d7dcf36b85
[ "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
299
DEPS
include_rules = [ "+components/captive_portal", "+components/onc", "+components/user_manager", ] specific_include_rules = { "cros_network_config_unittest.cc": [ "+components/proxy_config", "+components/sync_preferences/testing_pref_service_syncable.h", "+third_party/re2" ], }
3cd0249d5fc26f967e9844e53b78a4b6f6d6a397
6958f617af0c5a76304ceb1006c77bc70ca0e195
/tests/python/test_global_store_grad.py
6f98e9f016759fd0b274db171dc8f3604a15773d
[ "Apache-2.0" ]
permissive
taichi-dev/taichi
3fae315a494f1c97392d5b931c939abbbfba1bdc
b30b511f55e3d0ebff765ee048d0aaa4ba9e7667
refs/heads/master
2023-09-02T13:28:18.208792
2023-08-23T23:22:43
2023-08-23T23:22:43
74,660,642
17,231
1,841
Apache-2.0
2023-09-14T11:29:32
2016-11-24T10:00:05
C++
UTF-8
Python
false
false
547
py
test_global_store_grad.py
""" import taichi as ti ti.lang.impl.current_cfg().print_ir = True def test_global_store_branching(): # ti.reset() N = 16 x = ti.field(ti.f32) y = ti.field(ti.f32) ti.root.dense(ti.i, N).place(x) ti.root.dense(ti.i, N).place(y) ti.root.lazy_grad() @ti.kernel def oldeven(): ...
6afb61db60b8fd9dcbe86228a9ada4ee188ef15a
8de79ab1818c535dcd8ad6e0c92b5c9642ffb82a
/sphinx/deprecation.py
8a242d7da47f1858aa5191d73de29bfec34d78b6
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
sphinx-doc/sphinx
632d75bfc7bef14904f3d847e6de6d37594a13a5
eab54533a56119c5badd5aac647c595a9adae720
refs/heads/master
2023-08-16T18:21:54.073511
2023-08-15T17:36:47
2023-08-15T17:36:47
28,710,753
6,138
2,587
NOASSERTION
2023-09-14T14:22:28
2015-01-02T10:53:28
Python
UTF-8
Python
false
false
1,859
py
deprecation.py
"""Sphinx deprecation classes and utilities.""" from __future__ import annotations import warnings class RemovedInSphinx80Warning(DeprecationWarning): pass class RemovedInSphinx90Warning(PendingDeprecationWarning): pass RemovedInNextVersionWarning = RemovedInSphinx80Warning def _deprecation_warning( ...
8ce6f78b0560e22cff9fcf38cc11367eb1af97b3
d7363da78e6f1e8ae2c6abca3f845853756165d4
/src/adafruit_blinka/board/nvidia/jetson_orin_nx.py
1aa27d37a186f8dca72b6a1374188d8a9f7efdb6
[ "MIT" ]
permissive
adafruit/Adafruit_Blinka
7a9ed88f39ff12082d1b46647fa8869b541fba49
009b352a3234339000c32d2e61e830455cf389fa
refs/heads/main
2023-08-09T06:25:02.178935
2023-07-28T16:45:40
2023-07-28T16:45:40
120,540,744
398
331
MIT
2023-09-14T20:32:23
2018-02-07T00:25:03
Python
UTF-8
Python
false
false
699
py
jetson_orin_nx.py
# SPDX-FileCopyrightText: 2022 Linh Hoang for NVIDIA # SPDX-FileCopyrightText: 2022 Melissa LeBlanc-Williams for Adafruit Industries # # SPDX-License-Identifier: MIT """Pin definitions for Jetson AGX Orin.""" from adafruit_blinka.microcontroller.tegra.t234 import pin SDA = pin.SDA SCL = pin.SCL SDA_1 = pin.SDA_1 SCL_...
e15b56bed35837bea91cc428281ad6968fe0df02
6df06b8581a29e93f8d375211ec6ac2626839592
/rally/common/db/migrations/versions/2017_06_35fe16d4ab1c_update_tasks_based_on_workloads.py
a6bb7efd189411671ed42571d8f4d6b6c1646b79
[ "Apache-2.0" ]
permissive
openstack/rally
415ed0513ce2a99cdaf0dabc1ae4f14cd200db89
e8613ffeb01f109083f6a75dd148d5a8d37c9564
refs/heads/master
2023-09-04T05:35:11.862008
2023-05-19T21:31:59
2023-05-23T08:09:06
12,645,326
278
291
Apache-2.0
2023-04-22T02:34:29
2013-09-06T13:58:01
Python
UTF-8
Python
false
false
3,450
py
2017_06_35fe16d4ab1c_update_tasks_based_on_workloads.py
# 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 agreed to in...
a6a959112c3cddaad1273e161619e82b43e5d979
4506d81df5ae98078e5cbe79f613514ad12b1c83
/nipype/interfaces/mixins/reporting.py
90ca80461869e525de9b2360a8cb394402e16b5e
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
nipy/nipype
d52eba1b98fda68e24d006ac0d5701fc8a531b9c
03a236320fa229299d637ff9af97865a6ae76aca
refs/heads/master
2023-08-28T10:36:07.020541
2023-08-25T13:40:09
2023-08-25T13:40:09
791,477
692
569
NOASSERTION
2023-09-11T06:04:51
2010-07-22T17:06:49
Python
UTF-8
Python
false
false
1,892
py
reporting.py
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ class mixin and utilities for enabling reports for nipype interfaces """ import os from abc import abstractmethod from ... import logging from ..base import File, BaseInterface, BaseInterfaceInputSpec...
1d5b6f516af2d752c8b5ae21058433ed8ee56606
4506d81df5ae98078e5cbe79f613514ad12b1c83
/nipype/interfaces/minc/tests/test_auto_Extract.py
6c34b443f0bdc07d2f77d3c67b8fbbf095cafce8
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
nipy/nipype
d52eba1b98fda68e24d006ac0d5701fc8a531b9c
03a236320fa229299d637ff9af97865a6ae76aca
refs/heads/master
2023-08-28T10:36:07.020541
2023-08-25T13:40:09
2023-08-25T13:40:09
791,477
692
569
NOASSERTION
2023-09-11T06:04:51
2010-07-22T17:06:49
Python
UTF-8
Python
false
false
7,185
py
test_auto_Extract.py
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from ..minc import Extract def test_Extract_inputs(): input_map = dict( args=dict( argstr="%s", ), count=dict( argstr="-count %s", sep=",", ), environ=dict( nohash=True, ...
562ca4624cd1779a922bff15dcd1b0831ae34dd6
091a6200be74bf6577c86f623665bcc24e16b02b
/MetroX_CircuitPython/mib_potentiometer_threshold/code.py
01948ac0405df87440eb4a972e3debf56e29ba08
[ "MIT" ]
permissive
adafruit/Adafruit_Learning_System_Guides
b5f7bce40a16da64e7a79d4b39de032f2cca41d4
5eaa7a15a437c533b89f359a25983e24bb6b5438
refs/heads/main
2023-09-05T18:31:41.621956
2023-09-05T15:36:09
2023-09-05T15:36:09
105,065,494
937
937
MIT
2023-09-12T18:48:53
2017-09-27T20:22:44
C
UTF-8
Python
false
false
519
py
code.py
# SPDX-FileCopyrightText: 2021 Brent Rubell for Adafruit Industries # # SPDX-License-Identifier: MIT """ 'mib_potentiometer_THRESHOLD.py'. ================================================= turns on a LED when the potentiometer is above a half-turn """ import analogio import board import digitalio LED = digitalio.Dig...
3e9aaf106ffa3b4e6b8342ed0aa01ad2093a8e91
10cb11f83e1c8b51b9d72c28d6259a56ff1a97c8
/tests/unit/lib/utils/test_git_repo.py
67760e435a69ecfee43d7f40f2315720f0f6afdd
[ "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
13,535
py
test_git_repo.py
import subprocess from pathlib import Path from unittest import TestCase from unittest.mock import patch, MagicMock, ANY, call import os from samcli.lib.utils.git_repo import GitRepo, rmtree_callback, CloneRepoException, CloneRepoUnstableStateException REPO_URL = "REPO URL" REPO_NAME = "REPO NAME" CLONE_DIR = os.path....
bc4e74566cb3246c09051f2d2498e10fdfd6ec20
ecca79bf1491492befcccf5af27c1653d4c34685
/grappa/runner.py
175d2b9458c106207ab659134599985e453bc2f9
[ "MIT" ]
permissive
grappa-py/grappa
d1545e9c9cbc161b3f7f068962b6c78a15707320
f1861e1572e68f031977e86a5d9eba1957bd164e
refs/heads/master
2021-06-01T10:31:17.896919
2020-11-23T18:18:27
2020-11-23T18:18:27
81,199,115
143
17
MIT
2020-11-23T23:01:27
2017-02-07T11:04:41
Python
UTF-8
Python
false
false
2,084
py
runner.py
# -*- coding: utf-8 -*- from .reporter import ErrorReporter class Runner(object): """ Runner is responsible of triggering the registed assertion operators in the current engine. Arguments: engine (grappa.Engine) """ def __init__(self, engine): self.engine = engine def re...
36338995fe8778cf2247fbc2fb07b0c8205a4dd2
1acb41c1157c8eb5c3988f24baa72bdbf697931c
/easyfsl/datasets/__init__.py
4b78324270f2b0842f498ff5434960f5da74a6ea
[ "MIT" ]
permissive
sicara/easy-few-shot-learning
f2050a7dcacc9fcc1de7502f03fd3491cc175f69
509dd9aa60879ad76b687002dc5648c9b4f337b8
refs/heads/master
2023-09-01T19:24:10.217392
2023-09-01T08:59:43
2023-09-01T08:59:43
334,984,118
634
107
MIT
2023-09-11T15:23:48
2021-02-01T14:55:41
Python
UTF-8
Python
false
false
367
py
__init__.py
from .cub import CUB from .danish_fungi import DanishFungi from .easy_set import EasySet from .features_dataset import FeaturesDataset from .few_shot_dataset import FewShotDataset from .mini_imagenet import MiniImageNet from .support_set_folder import SupportSetFolder from .tiered_imagenet import TieredImageNet from .w...
fa9fe327462772d5a2469df6e1cbbab3f8d87cd0
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/text/__init__.py
e22fa1d34a1c5bb5bcea5b93c295a4728fcc9cc1
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
36
py
__init__.py
"""Tests for the text component."""
4bbe1e8bc52f156c4e6108f6a84a3f47c2bcc60e
3a3e715407bff57f7811356ddbb58d097d3ce6ab
/smartsheet/models/automation_action.py
8363bf4b6ea13ed926255a74fd25a4fb4d94ae38
[ "MIT", "Apache-2.0" ]
permissive
smartsheet-platform/smartsheet-python-sdk
cc72585df2290ce89adc236f2c38e04717b75269
e32cef3c7faeba30a4cec37f9ac15b5a1d72cc83
refs/heads/master
2023-01-12T19:22:31.806414
2022-12-06T16:35:04
2022-12-06T16:35:04
28,953,329
137
94
Apache-2.0
2023-01-19T12:35:26
2015-01-08T06:59:27
Python
UTF-8
Python
false
false
4,521
py
automation_action.py
# pylint: disable=C0111,R0902,R0904,R0912,R0913,R0915,E1101 # Smartsheet Python SDK. # # Copyright 2018 Smartsheet.com, 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....
939f9e8ba8411df912d91105e69a70295d1f0cbb
a0b346b88c3c481a829016773e0a6f2b0004d659
/python/integration-tests/compiler/var_length_short_calculation_test.py
590c6301740d7b6f4a1f595ee9cedac420a1c113
[ "BSD-3-Clause", "Zlib", "Python-2.0", "Apache-2.0", "MIT", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
KeyviDev/keyvi
4c5f512e2e13f5f8e21e82b91c1443c271b70b91
3a816037a74da049b01b522f42a6fdfb61f00a4a
refs/heads/master
2023-01-11T03:44:18.571671
2022-12-14T20:20:56
2022-12-14T20:20:56
109,309,657
235
42
Apache-2.0
2022-12-29T19:16:08
2017-11-02T19:28:41
C++
UTF-8
Python
false
false
950
py
var_length_short_calculation_test.py
# -*- coding: utf-8 -*- # Usage: py.test tests import sys import os import json from keyvi.compiler import JsonDictionaryCompiler root = os.path.dirname(os.path.abspath(__file__)) sys.path.append(os.path.join(root, "../../tests")) from test_tools import tmp_dictionary def test_input_output_keys(): compiler = ...
477987614cfcbf8c30b449e17ff991337a65db2f
5a6ccde5f37cc86b6fc0812b2bf40f42eab23906
/C-set/606C.Sorting Railway Cars.py
7902da89a86a38066e74ca84c77d3e5c3062780d
[]
no_license
Waqar-107/Codeforces
23f2b1edffb85f6f020107f03e09a455d3e6e792
f0d2f25aa6a09c06083b82c39cdf3288ec2eecba
refs/heads/master
2023-03-09T07:55:46.583363
2023-03-04T09:57:44
2023-03-04T09:57:44
82,915,896
196
138
null
2023-02-11T22:06:20
2017-02-23T10:29:34
C++
UTF-8
Python
false
false
289
py
606C.Sorting Railway Cars.py
# from dust i have come dust i will be n=int(input()) a=list(map(int,input().split())) mp=[0]*(n+1) for i in range(n): mp[a[i]]=i+1 cnt=0;mx=1 for i in range(1,n): if mp[i]<mp[i+1]: cnt+=1 else: mx=max(mx,cnt+1) cnt=0 mx=max(mx,cnt+1) print(n-mx)
49b93e5566eea2a3eb5563a98c3f7e0e276d2e2b
167c6226bc77c5daaedab007dfdad4377f588ef4
/python/ql/src/Classes/EqualsOrNotEquals.py
7e1ece7685c52f5aaaf8754bb2a5bb150e6bf419
[ "MIT" ]
permissive
github/codeql
1eebb449a34f774db9e881b52cb8f7a1b1a53612
d109637e2d7ab3b819812eb960c05cb31d9d2168
refs/heads/main
2023-08-20T11:32:39.162059
2023-08-18T14:33:32
2023-08-18T14:33:32
143,040,428
5,987
1,363
MIT
2023-09-14T19:36:50
2018-07-31T16:35:51
CodeQL
UTF-8
Python
false
false
863
py
EqualsOrNotEquals.py
class PointOriginal(object): def __init__(self, x, y): self._x, x self._y = y def __repr__(self): return 'Point(%r, %r)' % (self._x, self._y) def __eq__(self, other): # Incorrect: equality is defined but inequality is not if not isinstance(other, Point): retur...
e11ae7aeb236a94789ceb73f4cc7161c82c10619
019f03d6713a2bc5344b644aeb5ebe70aaf7cfd0
/src/super_gradients/training/datasets/segmentation_datasets/segmentation_dataset.py
976a3c50ffb3698d2e1a1e3da5cc378a8c5ffbf3
[ "LicenseRef-scancode-proprietary-license", "Apache-2.0" ]
permissive
Deci-AI/super-gradients
6f52cd15bc2f9f39e3cdc6067292b6512aba5dd0
7240726cf6425b53a26ed2faec03672f30fee6be
refs/heads/master
2023-08-25T17:47:02.595029
2023-08-24T11:50:50
2023-08-24T11:50:50
432,652,408
3,237
331
Apache-2.0
2023-09-14T11:24:46
2021-11-28T07:58:02
Jupyter Notebook
UTF-8
Python
false
false
8,572
py
segmentation_dataset.py
import os from typing import Callable, Iterable import numpy as np import torch import torchvision.transforms as transform from PIL import Image from tqdm import tqdm from super_gradients.common.object_names import Datasets from super_gradients.common.registry.registry import register_dataset from super_gradients.com...
6ba29721f1029050e11c16e7d125abdd4a240426
805a7b7574314415696ec97d45689e69bc7caaca
/gspread_pandas/conf.py
09db21e081be45b5c50353590190247dbe9bccd8
[ "BSD-3-Clause" ]
permissive
aiguofer/gspread-pandas
a5b076606da82ec2e805c0f2dc4f82580f89b437
9cd68f554d863a5d9cd9d67f0c368ce21095afd4
refs/heads/master
2023-01-13T07:03:50.071636
2022-10-07T19:40:34
2022-10-07T19:40:34
70,650,276
373
57
BSD-3-Clause
2023-08-31T05:18:38
2016-10-12T01:29:35
Python
UTF-8
Python
false
false
5,894
py
conf.py
import json import sys from os import environ, name from pathlib import Path from google.oauth2.credentials import Credentials as OAuthCredentials from google.oauth2.service_account import Credentials as SACredentials from google_auth_oauthlib.flow import InstalledAppFlow from gspread_pandas.exceptions import ConfigE...
76c04dc1717b8505e950abc724d79c53d5af124c
41db6c672362ccafdd28af40ecf7df51ffa90a15
/guppy/heapy/test/test_dependencies.py
ebf626ea9adc9271ebea3ef14ef4efe2bbd01ccf
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
zhuyifei1999/guppy3
e5649a066199a92dc3bf8e77bdd6ffb44e790449
1b2db87af36388e43afd6ce5774b869bcc4a9452
refs/heads/master
2023-06-24T23:03:52.612921
2023-06-17T01:18:06
2023-06-17T01:54:06
202,611,372
371
24
MIT
2023-06-17T01:54:09
2019-08-15T21:05:15
Python
UTF-8
Python
false
false
214
py
test_dependencies.py
# Test the libraries we are dependent on # Only sets right now. def test_main(debug=0): print('Testing sets') from guppy.sets import test test.test_main() if __name__ == "__main__": test_main()
923b9481822c3895d329a34c1d8fb4018be8df4f
88dbb103b21489932ff1998e0565470a0f8249f9
/textshot/logger.py
8f6eb811ef8e948f1aed229aa93b57d8dbb91e8a
[ "MIT" ]
permissive
ianzhao05/textshot
ffd6b9fd00a8c090984acac3e7ff856263cab827
6481a291369d19551013ba0aa3d601b922e25869
refs/heads/master
2023-01-30T14:56:32.586991
2023-01-21T16:21:10
2023-01-21T16:21:10
265,975,639
1,723
292
MIT
2023-01-21T16:21:11
2020-05-21T23:46:51
Python
UTF-8
Python
false
false
361
py
logger.py
from .messages import ocr_failure_message def log_copied(copied): print(f'INFO: Copied "{copied}" to the clipboard') def log_ocr_failure(): """OCR didn't recognise text.""" print_error(ocr_failure_message) def log_ocr_error(error): """OCR produced an error.""" print_error(error) def print_er...
eba8d0666bad291cee0e81a1a98f63913b10e4b3
da1721d2783ea4d67ff4e73cee6eee71292f2ef7
/toontown/racing/DistributedRacePad.py
0aab464f65c9b70b7a9d55a562db945d7c03e843
[ "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
11,491
py
DistributedRacePad.py
from panda3d.core import * from direct.directnotify import DirectNotifyGlobal from direct.task.Task import Task from direct.distributed.ClockDelta import * from direct.fsm.FSM import FSM from direct.interval.IntervalGlobal import * from toontown.racing.DistributedKartPad import DistributedKartPad from toontown.racing i...
cb882040141ec3b1d2102b8eb59aa64a6a3cfd9f
5f69a6549b8d5e417553d910622e6855b2ae679b
/src/opendr/control/multi_object_search/algorithm/SB3/type_aliases.py
0727481e3ef410d52b33c6417c614f13abd9b75e
[ "Apache-2.0" ]
permissive
opendr-eu/opendr
822219f709613d77c5eb62c5d02808d344239835
b3d6ce670cdf63469fc5766630eb295d67b3d788
refs/heads/master
2023-08-31T07:02:36.375231
2023-08-29T06:39:51
2023-08-29T06:39:51
293,755,225
535
82
Apache-2.0
2023-09-13T16:53:34
2020-09-08T08:55:04
Python
UTF-8
Python
false
false
1,140
py
type_aliases.py
# Copyright 2020-2023 OpenDR European 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 applicable law or agree...
c5bd324733212ad2d7a87f717f2ce16d3ec3f46f
620323fc090cebaf7aca456ff3f7fbbe1e210394
/magtu_ru/selection_of_specialty.py
87273d5d17fbf0f5c333fa30d9d8088adc891ceb
[ "CC-BY-4.0" ]
permissive
gil9red/SimplePyScripts
bd2733372728bf9b9f00570e90316fa12116516b
773c2c9724edd8827a1dbd91694d780e03fcb05a
refs/heads/master
2023-08-31T04:26:09.120173
2023-08-30T17:22:59
2023-08-30T17:22:59
22,650,442
157
46
null
2023-09-08T17:51:33
2014-08-05T16:19:52
Python
UTF-8
Python
false
false
1,730
py
selection_of_specialty.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "ipetrash" """Скрипт получает список специальностей в формате HTML, разбирает таблицу и оформляет ее в JSON""" import json import sys import requests from bs4 import BeautifulSoup def element_to_text_list(el) -> str: return ", ".join([child.strip()...
f5668d09d9e2e1b4bc220105b8a8443dcff06acb
5f179375aed694eff1a7e09162ad3661e5500cbe
/tensorflow_model_optimization/python/core/internal/tensor_encoding/core/simple_encoder_test.py
27404cc0dd1edb1c0d8f2b5bdb2f2c71337025cf
[ "Apache-2.0" ]
permissive
tensorflow/model-optimization
615d6e970ff756e292204772c359e7f6f98c06c6
4733c85f21d1eb570fd575ea201cb211a485bfb0
refs/heads/master
2023-08-15T09:17:45.313544
2023-08-01T18:36:44
2023-08-01T18:37:12
155,619,942
1,550
338
Apache-2.0
2023-09-14T17:42:31
2018-10-31T20:34:28
Python
UTF-8
Python
false
false
10,119
py
simple_encoder_test.py
# Copyright 2019, The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
2025e6204b11b2ec9f2f0fd64658daa11c7b99ee
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_cassandra_resources_operations.py
b79a366aba1a4efea57487f2a967cf601153683c
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
211,805
py
_cassandra_resources_operations.py
# pylint: disable=too-many-lines # 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) AutoRe...
40e7534ba2433f4959a544c373a2a4e32dcc7cf1
1664bc3e55c0e006c8bbf8671a2ba0043dc0203c
/mpf/devices/multiball.py
74d3b6ccf2851b1bbe797f00843d2fe3d0346375
[ "MIT", "CC-BY-4.0" ]
permissive
missionpinball/mpf
d426b0b1b865a138f169aaf852741f39a880edf2
9f90c8b1586363b65340017bfa3af5d56d32c6d9
refs/heads/dev
2023-07-26T21:31:11.581205
2023-07-15T17:06:04
2023-07-15T17:06:04
21,267,545
191
173
MIT
2023-09-14T06:07:45
2014-06-27T07:26:26
Python
UTF-8
Python
false
false
13,771
py
multiball.py
"""Contains the MultiBall device class.""" from mpf.core.enable_disable_mixin import EnableDisableMixin from mpf.core.delays import DelayManager from mpf.core.device_monitor import DeviceMonitor from mpf.core.events import event_handler from mpf.core.mode_device import ModeDevice from mpf.core.placeholder_manager impo...
20216ab628298680586bd2c0eef462bb294e21f4
16ecadb9988cb16a7c55ce586b7f5155c6f1997c
/pyrpl/software_modules/lockbox/models/__init__.py
314ffde374b9e2fe6bf8e897a3ed4935260a193b
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
lneuhaus/pyrpl
00bd04e714a9f934e5fdcd63e9c246abbef86a57
8e2f39d1ad2f3351ef31009e810cf9ab6a750693
refs/heads/main
2023-08-08T16:22:50.453213
2023-08-01T06:46:19
2023-08-01T06:46:19
58,811,185
120
104
MIT
2023-08-09T16:49:18
2016-05-14T14:09:14
Python
UTF-8
Python
false
false
816
py
__init__.py
from .interferometer import * from .fabryperot import * from .linear import * from .custom_lockbox_example import * from .pll import * # try to import user models if applicable import sys, os from .... import user_lockbox_dir sys.path.append(user_lockbox_dir) usermodels = [] module = None try: for module in os.li...
0012d710762f7d740a5b9ad4df79495ab76f5b46
f26a731da67963adc1152318053f148ec24752fc
/Yank/tests/test_experiment.py
840737aefa0832ecc1e22853d2306735ca877925
[ "MIT" ]
permissive
choderalab/yank
7fa580ac7f7a69ddd20bc6431375d73dd0ae5dc9
c06059045bcf86d610f2e39c6db3944994b9f392
refs/heads/master
2023-07-27T09:56:42.719221
2022-07-20T22:51:16
2022-07-20T22:51:16
13,779,937
167
85
MIT
2023-08-25T23:57:49
2013-10-22T17:01:36
Python
UTF-8
Python
false
false
149,311
py
test_experiment.py
#!/usr/bin/env python # ============================================================================================= # MODULE DOCSTRING # ============================================================================================= """ Test YAML functions. """ # ====================================================...
69a88c7deaba78a82c2056cadd228caa670b3422
b2fef77e77f77b6cfd83da4ec2f89cbe73330844
/tests/test_deepgrow_transforms.py
1328e1343936c583b60a06d4094a199d20955c73
[ "Apache-2.0" ]
permissive
Project-MONAI/MONAI
8ef2593cc5fd1cd16e13464f927fe563fe3f5bac
e48c3e2c741fa3fc705c4425d17ac4a5afac6c47
refs/heads/dev
2023-09-02T00:21:04.532596
2023-09-01T06:46:45
2023-09-01T06:46:45
214,485,001
4,805
996
Apache-2.0
2023-09-14T15:19:30
2019-10-11T16:41:38
Python
UTF-8
Python
false
false
16,313
py
test_deepgrow_transforms.py
# Copyright (c) MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, so...
f1341bc1ee4d62d8ce7a8b49ca96ad72f17d9648
e3bb1df7fa4c51900dec7e9ddf5295e1a80938bd
/hummingbot/user/user_balances.py
da3a60a33e46e7a8c8ca5adf48001d6c8bfafe21
[ "Apache-2.0" ]
permissive
CoinAlpha/hummingbot
0d1e2bd94de1280748647108c7d7800a09546eb8
c3f101759ab7e7a2165cd23a3a3e94c90c642a9b
refs/heads/development
2023-09-01T11:24:43.322137
2023-08-31T03:08:06
2023-08-31T03:08:06
439,330,952
135
98
Apache-2.0
2023-08-30T13:55:08
2021-12-17T12:50:42
Python
UTF-8
Python
false
false
7,646
py
user_balances.py
import logging from decimal import Decimal from functools import lru_cache from typing import Dict, List, Optional, Set from hummingbot.client.config.client_config_map import ClientConfigMap from hummingbot.client.config.config_helpers import ReadOnlyClientConfigAdapter, get_connector_class from hummingbot.client.conf...
4bae3f7ef316da577efd9ca1c8d2fb20b226e295
919bbb62b011823e98f7b57ae902e4d84269539e
/test/unit/test_paulis.py
5807b1bc2a49de9f6b0e494be4c4d2ecb8dd41ca
[ "Apache-2.0" ]
permissive
rigetti/pyquil
32007af9033c5e46406b4284eed75f21406970af
839663e3e777d3a6ea6eca3b68d64fb6477ab8c2
refs/heads/master
2023-09-01T15:52:28.411743
2023-07-07T13:28:56
2023-07-07T13:28:56
78,470,807
764
232
Apache-2.0
2023-09-13T23:10:31
2017-01-09T21:30:22
Python
UTF-8
Python
false
false
24,295
py
test_paulis.py
#!/usr/bin/python ############################################################################## # Copyright 2016-2017 Rigetti Computing # # 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 ...
9269e83f7e4123b28f593080ea55cd0d90fbd787
86cc299c9b049c01f890ef08451aef8e8ead04b3
/Archived/02_LogisticRegression/103_decision_boundary_in_linear_r.py
9cb0b84825d70471a17efdbe671f9b0c35f43255
[]
no_license
moon-hotel/MachineLearningWithMe
496a7249c6098d1547e020fbed2e3fd17593741c
611289b3bfd5315368df205319363f3a753733d9
refs/heads/master
2023-08-30T12:46:57.789006
2023-08-24T15:02:27
2023-08-24T15:02:27
251,615,055
173
38
null
null
null
null
UTF-8
Python
false
false
997
py
103_decision_boundary_in_linear_r.py
import matplotlib.pyplot as plt import numpy as np from sklearn.datasets import make_blobs from sklearn.linear_model import LinearRegression def make_data(): num_points = 200 centers = [[1, 1], [2, 2]] # 指定中心 x, y = make_blobs(n_samples=num_points, centers=centers, cluster_std=0.2, ...
055a07c02d0d497c185ee594ec36d29b1f224434
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/maps/azure-maps-geolocation/azure/maps/geolocation/_generated/models/__init__.py
06195698de8894c0cda1fb63553f9844de0e8801
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,081
py
__init__.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 ...
f46741a9e029c2a18077e581df6c11ba168467cc
e7e536df0263ae2a7ac44ef30f19110f891213a9
/src/pretalx/submission/models/tag.py
91884b5b91adc369b61b068e8a6688d27aee1efe
[ "Apache-2.0" ]
permissive
pretalx/pretalx
b3b3808266f4810dfc8445dc1ed33ba398e7a9c2
269dce90a6fb1ce0064008c40ce5dd4dad61e2e3
refs/heads/main
2023-09-05T11:09:23.538325
2023-09-04T19:57:47
2023-09-04T19:57:47
83,081,285
563
195
Apache-2.0
2023-09-13T19:12:28
2017-02-24T20:46:51
Python
UTF-8
Python
false
false
1,342
py
tag.py
from django.core.validators import RegexValidator from django.db import models from django.utils.translation import gettext_lazy as _ from django_scopes import ScopedManager from i18nfield.fields import I18nTextField from pretalx.common.mixins.models import LogMixin from pretalx.common.urls import EventUrls class Ta...
efe5ac38cdd2faf9ef528f3cc14a58da633abb96
4cccbd59c06b10f3bbe1d5e8c3082c8b0c9a8145
/edb/schema/globals.py
ea2b76cb849e227cd25db732c7fde6b65a17e671
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
edgedb/edgedb
ff26656ee449208b88ae85a6ad9823fce4f2ecad
4d614ce5de15e0b08575b0bf6738ece02c516ded
refs/heads/master
2023-09-05T07:10:05.409260
2023-09-01T23:20:13
2023-09-01T23:20:13
95,817,032
11,683
404
Apache-2.0
2023-09-14T17:25:49
2017-06-29T20:30:48
Python
UTF-8
Python
false
false
20,109
py
globals.py
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB 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...
7117c32051f42fa4d4ac6a1960ddaca0ac134c85
0e0ddc095823c54877c143adacbfcdd6355261de
/libqtile/layout/ratiotile.py
e3e69887dcad4e2fc225abd1117ef40689719978
[ "MIT" ]
permissive
qtile/qtile
b19108ca632871104a0783a4afbe7350a17b97db
3f8a00082ad880042d396477d9445954e8d29cf2
refs/heads/master
2023-09-01T19:31:09.419767
2023-09-01T19:10:00
2023-09-01T19:10:00
47,476
4,203
986
MIT
2023-09-11T21:21:56
2008-08-30T00:16:40
Python
UTF-8
Python
false
false
11,268
py
ratiotile.py
# -*- coding:utf-8 -*- # Copyright (c) 2011 Florian Mounier # Copyright (c) 2012-2013, 2015 Tycho Andersen # Copyright (c) 2013 Björn Lindström # Copyright (c) 2013 Tao Sauvage # Copyright (c) 2014 ramnes # Copyright (c) 2014 Sean Vig # Copyright (c) 2014 dmpayton # Copyright (c) 2014 dequis # Copyright (c) 2017 Dirk H...
afd6b21a8453b329a97c442227319c5054caaea5
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/impl/gen/view_models/views/lobby/wt_event/wt_bonus_model.py
7ad8cf157eed13316b5c13b9d194ee385260bcbe
[]
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
1,096
py
wt_bonus_model.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/impl/gen/view_models/views/lobby/wt_event/wt_bonus_model.py from enum import Enum from gui.impl.gen.view_models.common.missions.bonuses.icon_bonus_model import IconBonusModel class TypeIcon(Enum): PROJECTIONDECAL = 'project...
633bec6754dd9f63cc9861f9b75454828f1cbe8e
07df6279388a17192eb4e4e417383a1f56208839
/mmdet3d/models/segmentors/encoder_decoder.py
1a4fee935714629cbfdc5115857e45e07d9376f8
[ "Apache-2.0" ]
permissive
HuangJunJie2017/BEVDet
11d4ca45286739c9bd099f715cb0edc9408a914f
f71858d02eb0fbd09860150ade67558d7984b1be
refs/heads/dev2.1
2023-05-23T15:35:45.216750
2023-05-07T16:35:04
2023-05-07T16:35:04
432,979,408
985
192
Apache-2.0
2023-04-28T15:06:51
2021-11-29T09:28:12
Python
UTF-8
Python
false
false
19,008
py
encoder_decoder.py
# Copyright (c) OpenMMLab. All rights reserved. import numpy as np import torch from torch import nn as nn from torch.nn import functional as F from mmseg.core import add_prefix from ..builder import (SEGMENTORS, build_backbone, build_head, build_loss, build_neck) from .base import Base3DSegment...
92bfb40c4765478295dad368c91fce4a77dc410b
59f64b5cf799e31c97b11828dba4787afb8f3f17
/datasets/load/load.1000_Genomes_phase3_chrY.GRCh38.py
fdfaedcd324b29bf72c2f26874319bdabe2fee6d
[ "MIT" ]
permissive
hail-is/hail
2089e6f3b38548f13fa5c2a8ab67f5cfdd67b4f1
07a483ae0f46c66f3ed6fd265b48f48c06298f98
refs/heads/main
2023-09-01T15:03:01.450365
2023-09-01T02:46:35
2023-09-01T02:46:35
45,069,467
913
262
MIT
2023-09-14T21:53:32
2015-10-27T20:55:42
Python
UTF-8
Python
false
false
2,905
py
load.1000_Genomes_phase3_chrY.GRCh38.py
import hail as hl ht_samples = hl.read_table('gs://hail-datasets-hail-data/1000_Genomes_phase3_samples.ht') ht_relationships = hl.read_table('gs://hail-datasets-hail-data/1000_Genomes_phase3_sample_relationships.ht') mt = hl.import_vcf( 'gs://hail-datasets-raw-data/1000_Genomes/1000_Genomes_phase3_chrY_GRCh38.vc...
9f80295c93a19443630e98437bbaf774c8de62d1
262af3a61864ba2aec01247075162a886551a439
/thingsboard_gateway/gateway/proto/__init__.py
8eba2ed7a01b3bb39c628af8000838ae5c95d64c
[ "Apache-2.0" ]
permissive
thingsboard/thingsboard-gateway
1331e58013afd0872ce28120229237a886af4d0f
0e3996bb29c60a784d990fbcdf0fcbb69a4a82ae
refs/heads/master
2023-08-31T07:30:03.340388
2023-08-25T05:01:08
2023-08-25T05:01:08
78,083,065
1,484
836
Apache-2.0
2023-09-12T07:50:51
2017-01-05T05:41:03
Python
UTF-8
Python
false
false
1,093
py
__init__.py
# Copyright 2022. ThingsBoard # # # 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 ...
2db1fb21acd011e4ddc3d4bda6e4aa196d37e80c
05fe579c12f0013ce83a106083ddb66ace5e8f47
/tests/st/func/datavisual/image/test_single_image_restful_api.py
ba0e2073fbc957f206449869e6fe598d0de37982
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "MIT", "BSD-3-Clause" ]
permissive
mindspore-ai/mindinsight
59d3f47144ada9a12d2c82d9826ad5f5288aed78
a774d893fb2f21dbc3edb5cd89f9e6eec274ebf1
refs/heads/master
2023-07-22T22:46:43.075617
2023-07-17T11:26:58
2023-07-17T11:26:58
250,692,948
224
24
Apache-2.0
2020-12-29T12:22:51
2020-03-28T01:58:56
Python
UTF-8
Python
false
false
7,757
py
test_single_image_restful_api.py
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
d3b6206016bf5ae86fe21ad097fcb393162006dd
a2b20597759990445081057d35d113434cfcf970
/stubs/typeshed/typeshed/stubs/openpyxl/openpyxl/drawing/properties.pyi
a7fdff46c6bc3ad01edfaa04d05cb7fe03cb787e
[ "Apache-2.0", "MIT" ]
permissive
facebook/pyre-check
34059599c02b65605c574f13555229f3b931fd4e
fe8ccedc572cc1faa1fd01e9138f65e982875002
refs/heads/main
2023-09-03T19:10:11.587028
2023-09-02T07:40:35
2023-09-02T07:40:35
110,274,488
6,703
575
MIT
2023-09-13T17:02:32
2017-11-10T17:31:36
OCaml
UTF-8
Python
false
false
2,968
pyi
properties.pyi
from _typeshed import Incomplete from openpyxl.descriptors.serialisable import Serialisable class GroupShapeProperties(Serialisable): tagname: str bwMode: Incomplete xfrm: Incomplete scene3d: Incomplete extLst: Incomplete def __init__( self, bwMode: Incomplete | None = ..., ...
2023f37718f8b558ec4e63ed41e908563dde05d8
83de24182a7af33c43ee340b57755e73275149ae
/aliyun-python-sdk-foas/aliyunsdkfoas/request/v20181111/CreateCellClusterOrderRequest.py
0570e709cfc7a7f191c78382419674cd85b954a9
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-python-sdk
4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f
83fd547946fd6772cf26f338d9653f4316c81d3c
refs/heads/master
2023-08-04T12:32:57.028821
2023-08-04T06:00:29
2023-08-04T06:00:29
39,558,861
1,080
721
NOASSERTION
2023-09-14T08:51:06
2015-07-23T09:39:45
Python
UTF-8
Python
false
false
2,501
py
CreateCellClusterOrderRequest.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...
f974e1f3e7d64927b93093124f46a66c9299f00f
cfa35dc2ea93ee0eceb2399a9e6112e987579c09
/stonesoup/initiator/tests/test_simple.py
6b8958006413904cd595896f4d34c49710cc6878
[ "LicenseRef-scancode-proprietary-license", "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "Python-2.0", "LicenseRef-scancode-secret-labs-2011" ]
permissive
dstl/Stone-Soup
227e6a9e6fbdceca14af3f0259f311ec74095597
f24090cc919b3b590b84f965a3884ed1293d181d
refs/heads/main
2023-09-01T14:33:14.626428
2023-09-01T11:35:46
2023-09-01T11:35:46
98,420,803
315
126
MIT
2023-09-14T14:55:34
2017-07-26T12:34:28
Python
UTF-8
Python
false
false
14,171
py
test_simple.py
import datetime import numpy as np import pytest from pytest import approx from ...models.base import LinearModel, ReversibleModel from ...models.measurement.linear import LinearGaussian from ...models.measurement.nonlinear import CartesianToBearingRange, Cartesian2DToBearing,\ CombinedReversibleGaussianMeasureme...
9c6c0ffb1848f11f84f8cc30b83e288f7dc69d30
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-core/huaweicloudsdkcore/auth/credentials.py
55d5e86b1113db7ad81a2973a3b185e5befd7f47
[ "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
13,900
py
credentials.py
# coding: utf-8 """ 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");...
46e1eaf41b2a27b0f8c3174a9796e55cf3849b3a
749af8e81d5ccd2d8714a34434a9c77772df551b
/statsmodels/tsa/statespace/kalman_filter.py
c9981bab92324a4ca2f274a3ecd0214eac5b3aac
[ "BSD-3-Clause" ]
permissive
statsmodels/statsmodels
98ca67192c08bcc611ed3a75edaded2c7181ab98
01b19d7d111b29c183f620ff0a949ef6391ff8ee
refs/heads/main
2023-09-05T13:05:49.497076
2023-09-01T10:54:50
2023-09-01T10:54:50
1,885,237
8,666
3,023
BSD-3-Clause
2023-09-13T17:51:48
2011-06-12T17:04:50
Python
UTF-8
Python
false
false
106,207
py
kalman_filter.py
""" State Space Representation and Kalman Filter Author: Chad Fulton License: Simplified-BSD """ import contextlib from warnings import warn import numpy as np from .representation import OptionWrapper, Representation, FrozenRepresentation from .tools import reorder_missing_matrix, reorder_missing_vector from . impo...
d2abb47391a19ded0c87acb301170b4d2e1b3e16
019f03d6713a2bc5344b644aeb5ebe70aaf7cfd0
/src/super_gradients/common/registry/registry.py
95da751cb63eed4c9bebec60e0e38a786bd974f8
[ "LicenseRef-scancode-proprietary-license", "Apache-2.0" ]
permissive
Deci-AI/super-gradients
6f52cd15bc2f9f39e3cdc6067292b6512aba5dd0
7240726cf6425b53a26ed2faec03672f30fee6be
refs/heads/master
2023-08-25T17:47:02.595029
2023-08-24T11:50:50
2023-08-24T11:50:50
432,652,408
3,237
331
Apache-2.0
2023-09-14T11:24:46
2021-11-28T07:58:02
Jupyter Notebook
UTF-8
Python
false
false
6,634
py
registry.py
import inspect from typing import Callable, Dict, Optional import torch from torch import nn, optim import torchvision from super_gradients.common.object_names import Losses, Transforms, Samplers, Optimizers def create_register_decorator(registry: Dict[str, Callable]) -> Callable: """ Create a decorator tha...
15e7e81ed28eccec34ea5492ade5396463dcaff8
725ac5a0bf72829be627bf8dc82fdc51ba0f94ae
/Pretrain_Model/bert-pretrain/finetuning_task_demo.py
9ae196fc4b98f2697edc478b742e4a4cff9de03c
[]
no_license
shawroad/NLP_pytorch_project
fa14b6e4a156229765e1d552901d0492d8e1def3
1272fed2dc8fef78a9ded0f1ae1644d613a3b57b
refs/heads/master
2023-06-25T02:37:35.503251
2023-06-12T10:57:11
2023-06-12T10:57:11
229,694,655
530
104
null
2020-12-08T09:21:47
2019-12-23T06:54:29
Python
UTF-8
Python
false
false
806
py
finetuning_task_demo.py
# -*- coding: utf-8 -*- # @Time    : 2020/7/24 19:50 # @Author  : xiaolu # @FileName: finetuning_task_demo.py # @Software: PyCharm import torch from transformers import BertConfig, BertModel from transformers import BertTokenizer config = BertConfig.from_pretrained('./corpus/config.json') model = BertModel.from_pretr...
50b0f68bbcc7369926a1057ea28071fcd7832222
27b86f422246a78704e0e84983b2630533a47db6
/docs/source/tutorials/src/customdata/xrecord.py
421c5a81581a5094acd21aed36f925f977e4c009
[ "MIT" ]
permissive
mozman/ezdxf
7512decd600896960660f0f580cab815bf0d7a51
ba6ab0264dcb6833173042a37b1b5ae878d75113
refs/heads/master
2023-09-01T11:55:13.462105
2023-08-15T11:50:05
2023-08-15T12:00:04
79,697,117
750
194
MIT
2023-09-14T09:40:41
2017-01-22T05:55:55
Python
UTF-8
Python
false
false
652
py
xrecord.py
# Copyright (c) 2021, Manfred Moitzi # License: MIT License from pathlib import Path import ezdxf DIR = Path("~/Desktop/Outbox").expanduser() doc = ezdxf.new() msp = doc.modelspace() line = msp.add_line((0, 0), (1, 0)) line2 = msp.add_line((0, 2), (1, 2)) if line.has_extension_dict: xdict = line.get_extension...
d027e6f23e27072bbe09ec2b6af85c43a53e2250
f487532281c1c6a36a5c62a29744d8323584891b
/sdk/python/pulumi_azure/monitoring/__init__.py
d449512ded54e0897cd746535a8059f7f1d65ff9
[ "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
1,564
py
__init__.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! *** from .. import _utilities import typing # Export this package's modules as members: from .aad_diagnostic_setting import * from .action_...
6f147121c760f21b5b66d629e69b55a6f4a49ed9
e688afe613829d58686529c5cf6c16e6a911b400
/prepare_data.py
0a781639d1ad40530c36e8b892b1c4fdd67eb1c7
[]
no_license
SKRohit/Generating_Text_Summary_With_GPT2
818d5b98d4196e417ae4ca3fbaceb44a3bb13ae1
f1da9d3cc8c287d8ce31211648e691dcae1f58bf
refs/heads/master
2023-01-24T12:11:37.734048
2023-01-14T08:56:39
2023-01-14T08:56:39
230,740,064
174
39
null
2023-01-14T08:57:12
2019-12-29T11:21:20
Jupyter Notebook
UTF-8
Python
false
false
3,568
py
prepare_data.py
import json import os import pickle import sys import time from utils import add_special_tokens #tokenizer = GPT2Tokenizer.from_pretrained('gpt2') dm_single_close_quote = '\u2019' # unicode dm_double_close_quote = '\u201d' # acceptable ways to end a sentence END_TOKENS = ['.', '!', '?', '...', "'", "`", '"', ...
abf2b29a86558bb318ada9f020549af77411cd33
e7d73bb0305760a233407784fe3282d81f5985c9
/archive/skylift/cli_scan.py
3d98df81eb6d5d34be3442df2499cd68963f9c8f
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
adamhrv/skylift
bca9f55e7b9323a35ee8aa1fe372045176224a9f
6d3793b736b4cbfd21c573d7a9f408574103a948
refs/heads/master
2023-04-06T18:56:48.581099
2023-03-27T23:23:26
2023-03-27T23:23:26
90,250,911
320
56
MIT
2022-10-07T16:54:55
2017-05-04T10:29:41
Jupyter Notebook
UTF-8
Python
false
false
1,540
py
cli_scan.py
# --------------------------------------------------------------------------- # Not yet implemented # TODO: add OSX, Linux, Windows and instructions for iOS scanning # --------------------------------------------------------------------------- import os import click from app.models.data_types import WiFiNet from app...
e7f2e4a3c845ad8b3b849a4a22a2f3625e106d17
f487532281c1c6a36a5c62a29744d8323584891b
/sdk/python/pulumi_azure/notificationhub/_inputs.py
e9f61bcfa2efb3183a62b3303f500a1ea65bccfb
[ "BSD-3-Clause", "MPL-2.0", "Apache-2.0" ]
permissive
pulumi/pulumi-azure
a8f8f21c46c802aecf1397c737662ddcc438a2db
c16962e5c4f5810efec2806b8bb49d0da960d1ea
refs/heads/master
2023-08-25T00:17:05.290397
2023-08-24T06:11:55
2023-08-24T06:11:55
103,183,737
129
57
Apache-2.0
2023-09-13T05:44:10
2017-09-11T20:19:15
Java
UTF-8
Python
false
false
4,493
py
_inputs.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...