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
3fb141cd6a155e83bea843f508e1cb28e6be2d8d
01857ef455ea60eccaf03b5a9059ec83e9803c2e
/nicegui/tailwind_types/grid_auto_rows.py
39ad4d7db5849bbe277097e75fa5ab638c7d384c
[ "MIT" ]
permissive
zauberzeug/nicegui
f08312cc1f393deca79e0e84a2506d3a35efff16
c61b1315f29d51e26cc1168207f5616b302f8df0
refs/heads/main
2023-08-18T18:09:30.937322
2023-08-18T15:04:00
2023-08-18T15:04:00
365,250,183
5,128
271
MIT
2023-09-14T01:50:56
2021-05-07T13:55:05
Python
UTF-8
Python
false
false
98
py
grid_auto_rows.py
from typing import Literal GridAutoRows = Literal[ 'auto', 'min', 'max', 'fr', ]
e0a0067e9827e748a666fd7eb09bab7170bec254
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/tools/memory/mac/plot_iosurface.py
b580c020d137060f0a7755ed39a985c78350aec5
[ "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
2,270
py
plot_iosurface.py
#!/usr/bin/env python3 # Copyright 2022 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Visualizes the amount of IOSurface memory used over time. """ import argparse import time import matplotlib from matplotlib import pylab as plt import m...
cc04469bce655406d6d8f3ae467b8f497411729a
a4ea525e226d6c401fdb87a6e9adfdc5d07e6020
/src/azure-cli/azure/cli/command_modules/storage/tests/latest/test_storage_blob_rewrite_scenarios.py
600f1c203a7338a7bbec30986c1c9a34020d4e5a
[ "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
5,065
py
test_storage_blob_rewrite_scenarios.py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
6a995cb92414acab995a06bb701f66ec889fad82
008c1eaa9354c76bc42700c81df1a65b8ecc5f0d
/backend/projects/tests/test_tag.py
1ed2064114b33fa138779b0e0d2d62c0a8ca8231
[ "MIT" ]
permissive
doccano/doccano
d3417706fa8a431fe2ac36a2a9b87c8604a0e4d6
63870976cc62811807648075d04a2531a1a6734d
refs/heads/master
2023-08-18T04:33:46.271524
2023-08-10T04:32:53
2023-08-10T04:32:53
132,709,824
6,297
1,393
MIT
2023-09-06T05:55:55
2018-05-09T06:10:05
Python
UTF-8
Python
false
false
2,437
py
test_tag.py
from rest_framework import status from rest_framework.reverse import reverse from api.tests.utils import CRUDMixin from projects.tests.utils import make_tag, prepare_project from users.tests.utils import make_user class TestTagList(CRUDMixin): @classmethod def setUpTestData(cls): cls.project = prepar...
498dbddd6cc758bb0ee23d4536eeb017443f7147
444a9480bce2035565332d4d4654244c0b5cd47b
/research/cv/GENet_Res50/export.py
6170ae2a9d13f1705812d7fbca7981831e2ec445
[ "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
2,758
py
export.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...
c0e3a19170c6f977eb80906127d03324e3bf995b
c1b8b6080f29c8037100080298b897618a826475
/gammapy/catalog/hawc.py
0140f256fd383f7d8a08f30ee4a1f4de67584743
[ "BSD-3-Clause" ]
permissive
gammapy/gammapy
a5d7acbdde848e92e124fefbce9716faa296f572
60f03adb8fc7851b9f3ca039512c03a669e3fe10
refs/heads/main
2023-08-16T21:19:06.624561
2023-08-04T12:13:08
2023-08-04T12:13:08
10,073,640
204
184
BSD-3-Clause
2023-09-14T15:26:05
2013-05-15T07:50:40
Python
UTF-8
Python
false
false
10,522
py
hawc.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst """HAWC catalogs (https://www.hawc-observatory.org).""" import abc import numpy as np from astropy.table import Table from gammapy.modeling.models import Model, SkyModel from gammapy.utils.scripts import make_path from .core import SourceCatalog, SourceCat...
4ac32a240f8f4a1049af07372db72c6a511e7262
7a7ee4b7c551ce92483e7162b3064f30219fbddc
/tests/manual_checks/autograd_mean_pytorch.py
7643bee7d59e0f5c1b4f81af62320a818534798e
[ "Apache-2.0" ]
permissive
mratsim/Arraymancer
ccd8267fa2869d73a5a028ecceabf9e96dfdb69c
e2df3dd7509588e3a863c690389649ced790344a
refs/heads/master
2023-09-02T06:39:26.116762
2023-08-31T15:56:39
2023-08-31T15:56:39
88,188,361
1,258
125
Apache-2.0
2023-09-12T13:09:07
2017-04-13T17:10:19
Nim
UTF-8
Python
false
false
1,412
py
autograd_mean_pytorch.py
# Reference code import torch from torch.autograd import Variable a = Variable(torch.arange(1,13).view(3,4), requires_grad=True) b = Variable(torch.arange(2,14).view(3,4), requires_grad=True) c = Variable(torch.arange(3,12).view(3,3), requires_grad=True) x = Variable(torch.arange(4,16).view(4,3), requires_grad=True)...
20369e06f7e50aa6b5f7152131e33e272730be9e
4cccbd59c06b10f3bbe1d5e8c3082c8b0c9a8145
/tests/test_schema.py
717ef641b58d78668c00c9408dfcdb7906df6945
[ "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
304,807
py
test_schema.py
# # This source file is part of the EdgeDB open source project. # # Copyright 2016-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...
dde728990000d19b1cf04d63cf242acec7bdb786
0b95f51cca6dbd5eb99271bef69f835d41ceb691
/tests/test_py2dep.py
70e794499055563ef0cf7eb5bd0f85dd017e7957
[ "BSD-2-Clause" ]
permissive
thebjorn/pydeps
77c31bac77a968e9f9adf8679e7797171b4789f4
b8fcac5c9cbf56cf241a3fb59d1d76215a16c1b2
refs/heads/master
2023-08-30T15:08:34.721884
2023-08-21T12:17:08
2023-08-21T12:17:08
20,236,160
1,415
115
BSD-2-Clause
2023-09-05T07:12:02
2014-05-27T21:29:01
Python
UTF-8
Python
false
false
783
py
test_py2dep.py
# -*- coding: utf-8 -*- import os # from devtools import debug from pydeps.pydeps import call_pydeps from tests.filemaker import create_files from tests.simpledeps import simpledeps def test_py2depgraph(capsys): files = """ - a.py: | import b - b.py """ with create_files(files)...
61956ae49d1a89ec4507eceb8436dcc7e4bd1d3e
9e988f0dce0ee4b847808210bf5b703b1619fed5
/lib/bx/seq/twobit.py
77a7d34d7b33c3c51c841934253b9d7ff6dfaf35
[ "MIT" ]
permissive
bxlab/bx-python
1c4aa875e77ee97dd3c30b89c28a6c4acd0b821b
7758bc4492626ffdbaa90c8fc5dd7620b1e2f3f8
refs/heads/main
2023-08-08T15:17:47.383099
2023-07-27T12:09:24
2023-07-27T12:09:24
58,659,170
141
55
MIT
2023-07-26T10:28:07
2016-05-12T16:39:43
Python
UTF-8
Python
false
false
4,317
py
twobit.py
""" Access to files containing sequence data in 'twobit' format. """ from collections.abc import Mapping from struct import ( calcsize, unpack, ) from typing import ( BinaryIO, Dict, List, Tuple, ) from . import _twobit TWOBIT_MAGIC_NUMBER = 0x1A412743 TWOBIT_MAGIC_NUMBER_SWAP = 0x4327411A TWO...
5ef89de018069b270df535f0647063e7b79c7664
d110546d747d7e3865ce5742d5fca09f404623c0
/tests/pytests/scenarios/setup/test_install.py
9c506b56cab3e3a0daef09a83bd63fe93c3239c6
[ "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
18,774
py
test_install.py
""" Tests for building and installing salt """ import json import logging import os import pathlib import re import sys import pytest import salt.utils.files import salt.utils.path import salt.utils.platform import salt.version from salt.modules.virtualenv_mod import KNOWN_BINARY_NAMES log = logging.getLogger(__name...
b95c24118b253606d8ab7af4cea265ea4d74e365
d41c7f7f0730e5802c3cd5c58213674b4e7ef11e
/check_intersections_and_inside_volume.py
b6acf14257b5be8a149a7b42bc458f227df7324a
[]
no_license
Tlousky/blender_scripts
98c3bd6014d1c086f89dcb46d47445cf3d665bee
d79725302e9f9e14869d5a9a3c5717f4dbfb1a64
refs/heads/master
2022-11-28T04:51:15.975390
2022-11-26T12:34:21
2022-11-26T12:34:21
8,910,696
167
42
null
2022-11-26T12:34:22
2013-03-20T17:53:04
Jupyter Notebook
UTF-8
Python
false
false
2,481
py
check_intersections_and_inside_volume.py
import bpy, bmesh from mathutils import Vector def check_raycast(ray_origin, ray_destination, obj): ''' This function casts a virtual ray from "ray_origin" to "ray_destination", and finds any intersections along the ray's path with the mesh object referenced in the "obj"...
0e3d9b73bf2f54a812cc8e8fb820a72a897b14a1
22dd93dfe358a2e93d0aa847c148e14f6946c035
/tests/test_shorthash.py
8195db63ed9d82b2aba4ec3a2421828bd8220fb3
[ "Apache-2.0" ]
permissive
pyca/pynacl
a78db377529ca4aaec6987c4590f5b512a9c7f11
d35d78ef2d890906aa8312fcbe5517dfbb8002bc
refs/heads/main
2023-08-27T19:17:11.591902
2023-08-25T11:02:15
2023-08-25T11:02:15
8,350,032
896
238
Apache-2.0
2023-09-05T21:33:33
2013-02-22T03:52:39
C
UTF-8
Python
false
false
8,512
py
test_shorthash.py
# Copyright 2016 Donald Stufft and individual contributors # # 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...
023ee3b0591bb09a2d0d2c72d7aec493257e759c
94c1805df5a09c39159d502f420d19ad54b567fc
/runtime/deps/gyp/test/actions-subdir/gyptest-action.py
09cfef1893d56f17dbaa35bbe59ddc0dd1db468f
[ "Apache-2.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
tmikov/jscomp
9805a5a4d06520549c57380f0df4a1c0aa0dab56
83828441cb38ec96603a6a60be06977d4852940a
refs/heads/develop
2021-01-19T02:56:35.102659
2016-04-12T06:19:30
2016-04-12T06:19:30
36,981,674
237
13
Apache-2.0
2018-10-14T09:48:12
2015-06-06T13:49:26
C
UTF-8
Python
false
false
717
py
gyptest-action.py
#!/usr/bin/env python # Copyright (c) 2009 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Test actions that output to PRODUCT_DIR. """ import TestGyp # TODO fix this for xcode: http://code.google.com/p/gyp/issues/detail?id=8...
4b4f8eeb00056ac15de956148de30e6bdc405e1f
b08798b5b9b1aefa557fcf5aae2d7fcfc8310f32
/beets/__main__.py
ac829de9f6f64158ffbf862ccfdcc4424c86533b
[ "MIT" ]
permissive
beetbox/beets
f0f361fafd57977497e1981f27946fd52d428b27
0e5ade4f711dbf563d35c290affb0254eee41235
refs/heads/master
2023-09-01T20:50:06.125904
2023-08-27T19:07:13
2023-08-27T19:07:13
827,590
8,977
1,768
MIT
2023-09-13T02:33:14
2010-08-09T23:17:20
Python
UTF-8
Python
false
false
825
py
__main__.py
# This file is part of beets. # Copyright 2017, Adrian Sampson. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, ...
baf44c43bff83c47b09e5b744212ded16792da43
b43e0384ec4bfacec2571a2bb41ce563267db449
/jesse/services/table.py
f25bb955754a59c70f2fa9b10756ac70fdbe6b5e
[ "MIT" ]
permissive
jesse-ai/jesse
55b73448b767492a20f8bc56c28306a1a24f8599
fadb03b5fcc06f0655c6a5d877435fb872a97c5e
refs/heads/master
2023-08-24T15:28:52.875208
2023-08-24T13:53:31
2023-08-24T13:53:31
156,847,937
5,259
722
MIT
2023-09-10T13:51:26
2018-11-09T10:38:44
Python
UTF-8
Python
false
false
988
py
table.py
from tabulate import tabulate from typing import Union def key_value(data, title: str, alignments: Union[list, tuple] = None, uppercase_title: bool = True) -> None: table = [d for d in data] if alignments is None: print(tabulate(table, headers=[title.upper() if uppercase_title else title, ''], tablefm...
27c20002e4c04bd130d8da438552ae59b0f87e29
3db7b5409f2f9c57ab3f98bda50f8b548d98063d
/tests/unit/job/test_copy.py
a3b5c70e37e5c0b0d539028a516541ef6df7d3fa
[ "Apache-2.0" ]
permissive
googleapis/python-bigquery
66db156b52e97565f6211b2fab5aac4e519fa798
3645e32aeebefe9d5a4bc71a6513942741f0f196
refs/heads/main
2023-09-01T07:41:24.893598
2023-08-23T19:04:13
2023-08-23T19:04:13
226,992,475
622
287
Apache-2.0
2023-09-12T04:31:26
2019-12-10T00:09:04
Python
UTF-8
Python
false
false
20,461
py
test_copy.py
# Copyright 2015 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
61afe67083e1fbd7553fdbab01c2a471e1d9aaa2
010279e2ba272d09e9d2c4e903722e5faba2cf7a
/contrib/python/prompt-toolkit/py3/prompt_toolkit/styles/pygments.py
3e101f1d36d150d267987f6aa4416e892b2d885b
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
catboost/catboost
854c1a1f439a96f1ae6b48e16644be20aa04dba2
f5042e35b945aded77b23470ead62d7eacefde92
refs/heads/master
2023-09-01T12:14:14.174108
2023-09-01T10:01:01
2023-09-01T10:22:12
97,556,265
8,012
1,425
Apache-2.0
2023-09-11T03:32:32
2017-07-18T05:29:04
Python
UTF-8
Python
false
false
1,973
py
pygments.py
""" Adaptor for building prompt_toolkit styles, starting from a Pygments style. Usage:: from pygments.styles.tango import TangoStyle style = style_from_pygments_cls(pygments_style_cls=TangoStyle) """ from __future__ import annotations from typing import TYPE_CHECKING from .style import Style if TYPE_CHECKI...
045ff6219df25fe569d56bb94312699b67a73475
74164811083a502d294d970ade1ec81aa49e130c
/MicroTokenizer/data_structures/dictionary.py
29c136d640fcab1faba40dc6dea98a8aec6300ec
[ "MIT" ]
permissive
howl-anderson/MicroTokenizer
51d89a52edd84f863e8f06426a8da5517b2b9c1a
f0ad19ee42fc947f432dfcbe687a474ccc78c7c8
refs/heads/master
2023-01-05T12:42:27.294464
2021-09-28T10:32:02
2021-09-28T10:32:02
137,062,055
153
19
MIT
2022-12-26T20:40:49
2018-06-12T11:28:38
Python
UTF-8
Python
false
false
1,566
py
dictionary.py
import math from typing import Generator, Tuple, Any class DictionaryData(object): def __init__(self, dict_file=None, raw_dict_data=None): # TODO: check arguments is valid if raw_dict_data is None and dict_file is not None: raw_dict_data = self.read_dict(dict_file) self.dict_d...
25a874d0bb092e76f9a87e94c7958ff258f2e404
2d0bada349646b801a69c542407279cc7bc25013
/src/vai_quantizer/vai_q_tensorflow2.x/tensorflow_model_optimization/python/core/quantization/keras/vitis/vai_utf/vai_utf_parser.py
d4a4b50b1bc84d4c54b29650621b1e5b35c5cb7c
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSD-3-Clause-Open-MPI", "LicenseRef-scancode-free-unknown", "Libtool-exception", "GCC-exception-3.1", "LicenseRef-scancode-mit-old-style", "OFL-1.1", "JSON", "LGPL-2.1-only", "LGPL-2.0-or-later", "ICU", "LicenseRef-scancode-other-permissive...
permissive
Xilinx/Vitis-AI
31e664f7adff0958bb7d149883ab9c231efb3541
f74ddc6ed086ba949b791626638717e21505dba2
refs/heads/master
2023-08-31T02:44:51.029166
2023-07-27T06:50:28
2023-07-27T06:50:28
215,649,623
1,283
683
Apache-2.0
2023-08-17T09:24:55
2019-10-16T21:41:54
Python
UTF-8
Python
false
false
4,589
py
vai_utf_parser.py
# Copyright 2019 Xilinx 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, ...
db6db2e1054224100ade5bf1558af1e9e798b753
a411a55762de11dc2c9d913ff33d2f1477ac02cf
/lte/gateway/python/magma/pipelined/tests/app/start_pipelined.py
61dd30e5addc87facf3aaac5a28f7f400b99b7d0
[ "BSD-3-Clause" ]
permissive
magma/magma
0dc48c1513d9968bd05fb7589f302c192b7c0f94
0e1d895dfe625681229e181fbc2dbad83e13c5cb
refs/heads/master
2023-09-04T09:31:56.140395
2023-08-29T13:54:49
2023-08-29T13:54:49
170,803,235
1,219
525
NOASSERTION
2023-09-07T17:45:42
2019-02-15T04:46:24
C++
UTF-8
Python
false
false
9,937
py
start_pipelined.py
""" Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES O...
e20205512e5e1dc1b447fe478cc05eb3b328674a
ad61cc119a42abfd3d64224a753817ae0f9ba058
/tests/functional/ec2/test_describe_snapshots.py
09713aa44cf24e0d534f2d8728332f95ba9a25ca
[ "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
1,684
py
test_describe_snapshots.py
# Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file acc...
1e3a60042736526811ce850ef87c110b33592823
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-Quartz/PyObjCTest/test_cicontext.py
9e2fa88990ec87ecabb53674958f197a18fc0d32
[ "MIT" ]
permissive
ronaldoussoren/pyobjc
29dc9ca0af838a56105a9ddd62fb38ec415f0b86
77b98382e52818690449111cd2e23cd469b53cf5
refs/heads/master
2023-09-01T05:15:21.814504
2023-06-13T20:00:17
2023-06-13T20:00:17
243,933,900
439
49
null
2023-06-25T02:49:07
2020-02-29T08:43:12
Python
UTF-8
Python
false
false
4,410
py
test_cicontext.py
from PyObjCTools.TestSupport import TestCase, min_os_level import Quartz class TestCIContext(TestCase): def test_typed_enum(self): self.assertIsTypedEnum(Quartz.CIContextOption, str) self.assertIsTypedEnum(Quartz.CIImageRepresentationOption, str) def testConstants(self): self.assertIs...
61476c90c5160c93578ea3dd6a7302a6470a96f3
c46754b9600a12df4f9d7a6320dfc19aa96b1e1d
/src/transformers/models/layoutlmv2/image_processing_layoutlmv2.py
a5f8d7c2ce4d601f65f6189fb003e2fc1c0e2f8d
[ "Apache-2.0" ]
permissive
huggingface/transformers
ccd52a0d7c59e5f13205f32fd96f55743ebc8814
4fa0aff21ee083d0197a898cdf17ff476fae2ac3
refs/heads/main
2023-09-05T19:47:38.981127
2023-09-05T19:21:33
2023-09-05T19:21:33
155,220,641
102,193
22,284
Apache-2.0
2023-09-14T20:44:49
2018-10-29T13:56:00
Python
UTF-8
Python
false
false
13,308
py
image_processing_layoutlmv2.py
# coding=utf-8 # Copyright 2022 The HuggingFace Inc. team. 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 r...
f3d7e228cc1dcb9743610f11cadc192c132417c7
c19bcbc98555ef06276f9f0dcffc9ac35942a7c4
/tests/test_lsusb.py
6bfddacb4f599d19759a0ac2eed2582770c2138f
[ "MIT" ]
permissive
kellyjonbrazil/jc
4e81a5421cd20be5965baf375f4a5671c2ef0410
4cd721be8595db52b620cc26cd455d95bf56b85b
refs/heads/master
2023-08-30T09:53:18.284296
2023-07-30T17:08:39
2023-07-30T17:08:39
215,404,927
6,278
185
MIT
2023-09-08T14:52:22
2019-10-15T22:04:52
Python
UTF-8
Python
false
false
6,453
py
test_lsusb.py
import os import json import unittest import jc.parsers.lsusb from jc.exceptions import ParseError THIS_DIR = os.path.dirname(os.path.abspath(__file__)) class MyTests(unittest.TestCase): # input with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/lsusb.out'), 'r', encoding='utf-8') as f: ...
5eaf3846109149b396922d636ebd2296fbd05a63
e6a61f244c53eb81becaf43fb4890ce0087d7c9f
/check_duplicates.py
b6e8538fb613f1c65e71e0926b00446c9f8f0af1
[ "MIT" ]
permissive
Pinafore/qb
610dce9e678f7b6ea63c0649b8989e4438ad304b
a5afd0c13886f5bc97748a11f98b4b62dd1d02f2
refs/heads/master
2022-12-11T10:33:21.719967
2022-01-26T18:35:24
2022-01-26T18:35:24
36,567,109
126
50
MIT
2022-12-09T05:58:58
2015-05-30T16:59:14
Python
UTF-8
Python
false
false
1,526
py
check_duplicates.py
from rapidfuzz import process, fuzz import numpy as np import json import pickle import typer app = typer.Typer() @app.command() def similarity(output_file: str): with open('data/external/datasets/qanta.mapped.2018.04.18.json') as f: questions = [q['text'] for q in json.load(f)['questions']] s...
9698fa4952f016ae63a4aec59c598d1734e00f18
4bcc9806152542ab43fc2cf47c499424f200896c
/tensorflow/python/keras/saving/saved_model/model_serialization.py
66284297e9e7cb7627658dbed12afc9fc47414de
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
tensorflow/tensorflow
906276dbafcc70a941026aa5dc50425ef71ee282
a7f3934a67900720af3d3b15389551483bee50b8
refs/heads/master
2023-08-25T04:24:41.611870
2023-08-25T04:06:24
2023-08-25T04:14:08
45,717,250
208,740
109,943
Apache-2.0
2023-09-14T20:55:50
2015-11-07T01:19:20
C++
UTF-8
Python
false
false
2,646
py
model_serialization.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 applica...
fca1c07f242cfdaaa9953303f6de50ed01f218b0
9935c1a1142a19d72dd8ca5b8a8ad2a70e2a7edb
/Plugins/Aspose_Words_Java_for_Python/loadingandsaving/__init__.py
c474b75105100b133e062a9b7cdff0e33eb1f2b1
[ "MIT" ]
permissive
aspose-words/Aspose.Words-for-Java
705ad9a8047b8d9b7986dd5569859af24632afc0
2dceb8acb5547bbc0a62c49587b97fd4f3159b36
refs/heads/master
2023-08-18T08:43:51.900921
2023-05-15T13:48:56
2023-05-15T13:48:56
2,849,872
347
194
MIT
2023-02-01T13:45:06
2011-11-25T13:43:55
Java
UTF-8
Python
false
false
2,936
py
__init__.py
__author__ = 'fahadadeel' import jpype import shutil class CheckFormat: def __init__(self,dataDir): self.dataDir = dataDir self.Document = jpype.JClass("com.aspose.words.Document") self.File = jpype.JClass("java.io.File") self.LoadFormat = jpype.JClass("com.aspose.words.LoadFormat...
70c9b66787290779fdd257e1ee1687192b0b3d52
49c0a28c44d4bbe917325d955f399a3c317b8e5e
/backend/CamStyle/reid/utils/serialization.py
386d60d58c27af284af768d6205319acb5d537b9
[ "Apache-2.0" ]
permissive
zju3dv/mvpose
4eac14998dd1ba6959c1a4bda13c2d77c73694c7
38b958f423f2de2bf7562f5a386c27440eab8c53
refs/heads/master
2022-07-27T02:11:12.777830
2021-07-18T07:57:33
2021-07-18T07:57:33
165,477,360
470
95
Apache-2.0
2021-09-01T14:27:57
2019-01-13T07:19:10
Jupyter Notebook
UTF-8
Python
false
false
1,318
py
serialization.py
from __future__ import print_function, absolute_import import json import os.path as osp import shutil import torch from torch.nn import Parameter from .osutils import mkdir_if_missing def save_checkpoint(state, fpath='checkpoint.pth.tar'): mkdir_if_missing(osp.dirname(fpath)) torch.save(state, fpath) def...
0e3a00fd912083074cd730caf4b93b6146986416
3256af0d6c19732bb84b256a9f792aaf7f3d901a
/f5/bigip/tm/gtm/test/functional/test_pool.py
2820e8b87cdae1779d3eba4b1232657144019f1f
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
F5Networks/f5-common-python
73e33ea489d989399d205077163f24ce584d83b9
3050df0079c2426af99b9a1b8f93d0b512468ff4
refs/heads/development
2023-08-29T10:11:23.713392
2022-09-21T02:45:03
2022-09-21T02:45:03
45,062,555
286
180
Apache-2.0
2023-05-12T23:13:03
2015-10-27T18:48:06
Python
UTF-8
Python
false
false
35,374
py
test_pool.py
# Copyright 2014-2017 F5 Networks Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
7c2751ca26642e8e07fa2777943c0c23e0a03e31
b049a961f100444dde14599bab06a0a4224d869b
/sdk/python/pulumi_azure_native/orbital/v20221101/get_contact.py
c50d995433417e6a0e799dd78b6c915996b6ab1f
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
pulumi/pulumi-azure-native
b390c88beef8381f9a71ab2bed5571e0dd848e65
4c499abe17ec6696ce28477dde1157372896364e
refs/heads/master
2023-08-30T08:19:41.564780
2023-08-28T19:29:04
2023-08-28T19:29:04
172,386,632
107
29
Apache-2.0
2023-09-14T13:17:00
2019-02-24T20:30:21
Python
UTF-8
Python
false
false
14,231
py
get_contact.py
# coding=utf-8 # *** WARNING: this file was generated by pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from . im...
40feae4e39b9a3bef4602a9d171217e1ae3fd7d3
5db0fab37c2b8a618d85d3b60fab9f806c416474
/src/python/pants/backend/codegen/soap/java/rules.py
b4569167cac1276345f38913537c96b1d22cce64
[ "Apache-2.0" ]
permissive
pantsbuild/pants
4988d1ac5474ec95f94ce2218aeb759401e4b011
98cbda8545f0d58c586ed2daa76fefd729d5e0d5
refs/heads/main
2023-09-05T03:44:17.646899
2023-09-01T19:52:09
2023-09-01T19:52:09
7,209,075
2,708
593
Apache-2.0
2023-09-14T19:33:33
2012-12-17T17:39:04
Python
UTF-8
Python
false
false
6,520
py
rules.py
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations from dataclasses import dataclass from pants.backend.codegen.soap.java import extra_fields from pants.backend.codegen.soap.java.extra_fields import Jav...
ae76dbb02e5b7a85c519217aa5e1888c4c69c6bd
803bab6f782099d995bcdb99d163486f4fff8c50
/habitat-baselines/habitat_baselines/agents/simple_agents.py
24275f3eed69ff4a1f1bdce6df0063ca5473c419
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "CC-BY-NC-SA-3.0" ]
permissive
facebookresearch/habitat-lab
7088506509f64da6d682f5dc69427589f71a58a9
f5b29e62df0788d70ba3618fc738fa4e947428ba
refs/heads/main
2023-08-24T14:00:02.707343
2023-08-23T04:53:48
2023-08-23T04:53:48
169,164,391
792
298
MIT
2023-09-14T15:20:03
2019-02-04T23:12:51
Python
UTF-8
Python
false
false
4,929
py
simple_agents.py
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import argparse from math import pi from typing import Dict, Union import numpy as np from numpy import bool_, i...
775bfd29c103a135fe141323e7a4c36b94fab88e
e0a5a286864de9802261f3c1bd88947e2bb935b6
/test/integration/samples_in/simple_format_double_brace.py
0ee0713063c9f675d51e82ab5d9e2ff690bfe2bd
[ "MIT" ]
permissive
ikamensh/flynt
b2981a7b7b1fa04d15cd724d71893350008c6fc5
651c822fdcf45fffcf9743dc755085f32acb65e3
refs/heads/master
2023-08-29T03:59:46.382939
2023-07-28T09:58:16
2023-07-28T09:58:16
174,731,004
635
40
MIT
2023-08-05T15:31:26
2019-03-09T18:26:38
Python
UTF-8
Python
false
false
60
py
simple_format_double_brace.py
var = 5 a = "{{}}my string {:.2f}{{}}".format(var) print(a)
73c8d9a9d1641324a68d09e57e495cd6020f8b98
704976ea552111c6a5af9cd7cb62b9d9abaf3996
/rpython/jit/backend/arm/regalloc.py
ff1fb21d05a9d92792bde2fd1e44f4a91470d117
[ "BSD-3-Clause" ]
permissive
mesalock-linux/mesapy
4f02c5819ce7f2f6e249d34840f1aa097577645d
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
refs/heads/mesapy2.7
2023-08-16T21:33:02.239581
2019-08-13T10:29:43
2019-08-13T18:06:45
136,080,721
396
33
NOASSERTION
2020-04-01T03:05:18
2018-06-04T20:45:17
Python
UTF-8
Python
false
false
46,348
py
regalloc.py
from rpython.rtyper.annlowlevel import cast_instance_to_gcref from rpython.rlib.debug import debug_print, debug_start, debug_stop from rpython.jit.backend.llsupport.regalloc import FrameManager, \ RegisterManager, TempVar, compute_vars_longevity, BaseRegalloc, \ get_scale from rpython.jit.backend.arm im...
e56c57bb66f61069590066945c5384a1a4cb494b
90beaf6c9e091f5aaa40c3b24bff498a0ed5055a
/compiler/test/Pipelines/Host/E2E/Transpose/template.py
a17894bb47a71551533d24c012a4ac567923fb84
[ "Apache-2.0", "NCSA", "LicenseRef-scancode-generic-cla", "LLVM-exception", "BSD-2-Clause", "MIT" ]
permissive
bytedance/byteir
cf1d9bc27ec8e9f7ea92ff449cbedf470f90115c
0e7673074c9d9a299717bb3379cb774c9921f72c
refs/heads/main
2023-08-31T04:42:44.536710
2023-08-30T20:14:22
2023-08-30T20:14:22
598,267,148
208
16
NOASSERTION
2023-09-13T21:50:19
2023-02-06T18:51:31
MLIR
UTF-8
Python
false
false
933
py
template.py
Testcase( contents=[Content(stages=(Input, E2E), content=r""" func.func @main(%arg0: tensor<1x32x64x64xf32>) -> tensor<1x64x64x32xf32> { %0 = "mhlo.transpose"(%arg0) {permutation = dense<[0, 2, 3, 1]>: tensor<4xi64>} : (tensor<1x32x64x64xf32>) -> tensor<1x64x64x32xf32> return %0 : tensor<1x64x64x32xf32> } ...
e0e78776fd96997bd95c164d2fd640b02c4e35f5
0f47ea1c58d1a3620f07e262185088d8561d88c1
/tensorflow/standard/imdb/trainer/model.py
737d19ca02d750c1192a6b27f5a0ddd873787596
[ "Apache-2.0" ]
permissive
GoogleCloudPlatform/cloudml-samples
28b90ea2e662190d36976b97858d074ab18e6d63
efddc4a9898127e55edc0946557aca4bfaf59705
refs/heads/main
2023-08-02T17:07:37.234633
2021-12-17T01:37:35
2021-12-17T01:37:35
69,576,253
1,622
1,004
Apache-2.0
2021-12-17T01:37:37
2016-09-29T14:36:12
Python
UTF-8
Python
false
false
3,388
py
model.py
# Copyright 2018 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 applica...
166453a688501a6851fb0ad13886ffae2ddac4fc
73fa964377a849bc9496254b074ddb62fba0bda9
/bindings/python/fiu.py
8d06dfa4a8ee949edee6d9e4a34fe60a7d6366ff
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-other-permissive" ]
permissive
albertito/libfiu
3988bca18c5ef651058f107398555ec37c5bd76d
a417ce4716e1d9d5db4f20fa86d3eea2f3fb2916
refs/heads/master
2023-08-30T09:53:48.557791
2023-02-25T11:14:02
2023-02-26T10:24:03
155,406
141
28
NOASSERTION
2020-03-06T11:05:36
2009-03-20T22:53:02
C
UTF-8
Python
false
false
3,179
py
fiu.py
""" libfiu python wrapper This module is a wrapper for the libfiu, the fault injection C library. It provides an almost one-to-one mapping of the libfiu functions, although its primary use is to be able to test C code from within Python. For fault injection in Python, a native library would be more suitable. See l...
dc3c3e1949602b621625675abcfc6c2613acf10e
bca44c32b850c297d45136c54b93882a144e87d3
/pyteal/ast/abi/util_test.py
4be987a21eece9c0b170a9bf6a3d0e8ab024b6e0
[ "MIT" ]
permissive
algorand/pyteal
b7f541ee6484f6bac94bc528ffa429196d8cd79a
670e637644630534883b4c2e6837ab34c56546b6
refs/heads/master
2023-06-11T04:37:33.645398
2023-06-06T20:18:01
2023-06-06T20:18:01
212,449,337
282
134
MIT
2023-06-06T18:15:23
2019-10-02T22:00:39
Python
UTF-8
Python
false
false
34,198
py
util_test.py
from typing import Callable, NamedTuple, Literal, Optional, Any, get_origin from inspect import isabstract import pytest import algosdk.abi import pyteal as pt from pyteal import abi from pyteal.ast.abi.util import ( substring_for_decoding, int_literal_from_annotation, type_spec_from_algosdk, type_spe...
80f5061448770eb2aff6505274e7159f0bca3434
d8233a120f46fd07e604cfcf0fd05506e8b4a1ec
/CT Liver Segmentation Software/resizeZ/resizeZsitk.py
74e1a019c2e393b97f2ff26ae2f526daffd027ad
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
rsummers11/CADLab
aeb4e8b66563c33d2fae9a73a3f35da647c1b2eb
78766a3609a16d6ac8e1d22344f6bebef509aef7
refs/heads/master
2023-07-04T23:30:49.791094
2023-06-22T16:47:28
2023-06-22T16:47:28
23,888,481
441
222
null
2022-02-19T15:42:24
2014-09-10T19:16:19
C++
UTF-8
Python
false
false
3,188
py
resizeZsitk.py
# command filelist outputdir import sys import argparse import os import shutil import numpy as np import SimpleITK as sitk import numpy as np #import torch #import nibabel as nib #import nilearn #from nilearn.image import resample_img #import scipy import SimpleITK as sitk def read_filelist(filename): filelist = ...
c8f0959b2de1c0a450f6eb45cd7c6176eafae69d
eefd265cc5aea3f5c2ba3b2711d414a203969122
/utilities/use_only_IAM_access_controls/update_permission.py
a4414b7a99b725d1f1979d856bf8c6053a7b30a8
[ "MIT-0" ]
permissive
aws-samples/aws-glue-samples
5e348fc2e272a1b2f1c818d971e2501e71741053
d0f9bb57894a474e996ead3440645fba962e27b2
refs/heads/master
2023-08-19T05:24:23.516394
2023-07-11T09:07:56
2023-07-11T09:07:56
91,933,692
1,192
726
MIT-0
2023-08-24T10:53:57
2017-05-21T04:45:43
Python
UTF-8
Python
false
false
16,230
py
update_permission.py
# Copyright 2019-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 import sys import boto3 import argparse import logging from distutils.util import strtobool # Configure credentials and required parameters parser = argparse.ArgumentParser() parser.add_argument('-p', '--pr...
6264c63467edf21f41c83c13ba094cee9980aa3a
99b2aff89dcec2f43cee32a6bdd4c0c43d6c51fa
/tests/integration_tests/test_callback_view.py
bfe197570fc21c578db851757c164c2c324e81f7
[ "MIT" ]
permissive
baking-bad/pytezos
c4248bde49a5b05521b8cc51eeca588b1a721660
19747e3acec2141f06e812025673f497fc07e2d4
refs/heads/master
2023-07-06T21:57:09.572985
2023-07-05T11:45:27
2023-07-05T11:45:27
169,243,460
115
43
MIT
2023-07-04T16:28:09
2019-02-05T13:12:50
Python
UTF-8
Python
false
false
1,285
py
test_callback_view.py
from unittest import TestCase from pytezos import pytezos class CallbackViewTestCase(TestCase): def test_balance_of(self): usds = pytezos.using('mainnet').contract('KT1REEb5VxWRjcHm5GzDMwErMmNFftsE5Gpf') res = usds.balance_of( requests=[ {'owner': 'tz1PNsHbJRejCnnYzbsQ...
634753f59d958a0e0984b457969119685395fb86
6564f42640e11689c2ddb6b92325afe6fddc6a6f
/cumulusci/robotframework/Performance.py
b0ca53f1f2dce281dea236ac306e1634784dae6d
[ "LicenseRef-scancode-free-unknown" ]
permissive
SFDO-Tooling/CumulusCI
32d4509fa8a36905cfc84fd6283403fd7f4b78c4
9ccf3c9566f78c6e9102ac214db30470cef660c1
refs/heads/main
2023-08-18T04:53:55.733027
2023-08-11T20:52:08
2023-08-11T20:52:08
15,592,459
226
134
BSD-3-Clause
2023-09-14T05:09:26
2014-01-02T20:01:31
Python
UTF-8
Python
false
false
6,341
py
Performance.py
from datetime import datetime from dateutil.parser import ParserError from dateutil.parser import parse as parse_date from robot.libraries.BuiltIn import BuiltIn from robot.utils import timestr_to_secs from cumulusci.robotframework.base_library import BaseLibrary class Performance(BaseLibrary): """ Keywords...
11e926c37184b1177a1ea2441d20c5551c9b5d03
52f9d2edfe80b683f33832ecf81317ef04da7cd7
/src/pygubu/plugins/tkintertable/__init__.py
4d09a851c499145726355c548c5e6181e912c3a1
[ "MIT" ]
permissive
alejandroautalan/pygubu
bd1dd455509adadbe91338dec8588c76d4629a50
493eaf7f1954d289d996f6b87d35032861f6baac
refs/heads/master
2023-09-01T14:43:16.502055
2023-07-21T01:35:41
2023-07-21T01:35:41
8,170,146
2,026
289
MIT
2023-07-04T03:53:27
2013-02-13T00:02:24
Python
UTF-8
Python
false
false
1,632
py
__init__.py
import importlib from typing import Optional from pygubu.i18n import _ from pygubu.api.v1 import BuilderLoaderPlugin, IDesignerPlugin _designer_tab_label = _("tkintertable") _plugin_uid = "tkintertable" class StandardTKWidgetsLoader(BuilderLoaderPlugin, IDesignerPlugin): _module = "pygubu.plugins.tkintertable.t...
fe789f4afd516e5b30d70ff95b2fffacd30e79da
9c8e06301f6559a106b805dfe0b372ad2e6bc4d8
/e2e/scripts/st_tooltips_2.py
9a35fdda4c8420c4ba767eeedd507fd57d1e5286
[ "Apache-2.0" ]
permissive
streamlit/streamlit
beecb89300d6f219f3a43ed328f22d3656243f26
4f45c18a4323a796440d651ba77b5eb29409cb2b
refs/heads/develop
2023-09-06T06:22:40.853489
2023-09-04T13:53:20
2023-09-04T13:53:20
204,086,862
27,877
2,739
Apache-2.0
2023-09-14T19:08:39
2019-08-24T00:14:52
Python
UTF-8
Python
false
false
1,449
py
st_tooltips_2.py
# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
1657f9b7b5853f118709ca495d21bf876563f2cc
f487532281c1c6a36a5c62a29744d8323584891b
/sdk/python/pulumi_azure/advisor/get_recommendations.py
bf55a6524e230bcc928a89f01ab494ec2c96f989
[ "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
5,892
py
get_recommendations.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...
f1abe7b3b56ee6e29d7aa700235f7645bb67692b
3dc647cd07a7361ed401e40d2b7cce8c826c8f6c
/Lib/test/test_importlib/util.py
0b6dcc5eaf03d20cd4870700e93a5bd94a21f864
[ "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
13,172
py
util.py
import builtins import contextlib import errno import functools from importlib import machinery, util, invalidate_caches import marshal import os import os.path from test.support import import_helper from test.support import os_helper import unittest import sys import tempfile import types BUILTINS = types.SimpleName...
56259ea0b78151f1ea52b54c2ec3e5675efc9f5d
70e9a7da3d4e2a41b30544516e166dab2495253c
/l10n_br_nfe_import/wizard/import_nfe.py
0b3d9672b3496f529574def9f8bf76b583c6281a
[ "MIT" ]
permissive
Trust-Code/odoo-brasil
bf06ea58a4e0376cb5c297c18bf48eaf97104e54
d456a10e32f56e259061afbd989942ea1aae2c2d
refs/heads/16.0
2023-08-31T16:06:21.038792
2023-01-26T19:31:31
2023-01-26T19:31:31
72,882,959
206
253
MIT
2023-08-18T17:05:49
2016-11-04T20:28:03
Python
UTF-8
Python
false
false
3,865
py
import_nfe.py
import logging import base64 from os import path from zipfile import ZipFile from io import BytesIO from lxml import objectify from odoo import api, models, fields from odoo.exceptions import UserError, RedirectWarning _logger = logging.getLogger(__file__) class WizardImportNfe(models.TransientModel): _name = '...
3ad1cffef201273cd49e3cee8c25553f76802acd
0d4e2ba5b8a137be3e865302b1d4c86eb63402b9
/ogb/lsc/wikikg90m.py
3b0bfbd34912e0dc01b62fc77ae7c9e22a88de7d
[ "MIT" ]
permissive
snap-stanford/ogb
bdedd2e58e45658b1db12d88157d5793b161c558
745531be13c5403a93c80e21a41848e38ea7637c
refs/heads/master
2023-08-29T13:47:29.491563
2023-06-10T14:30:23
2023-06-10T14:30:23
223,495,162
1,805
437
MIT
2023-06-24T05:35:39
2019-11-22T22:13:57
Python
UTF-8
Python
false
false
10,389
py
wikikg90m.py
from typing import Optional, Union, Dict import os import shutil import os.path as osp import torch import numpy as np import pandas as pd from ogb.utils.url import decide_download, download_url, extract_zip, makedirs class WikiKG90MDataset(object): def __init__(self, root: str = 'dataset'): print('The...
edf5e1dc19a26aae6cb8eede4692853e9c7e38d7
833d4cc8ec460902d0a8beb7f2e1ab13ba9114d0
/mppsolar/inout/remotesocketio.py
e9a244641d281c93db9395165d922f0ee9b3f351
[ "MIT" ]
permissive
jblance/mpp-solar
3d834e88715591ec63c2abbff97b41417286f451
d541a7ec05754c570c44db21f271f5628c7f19e3
refs/heads/master
2023-08-31T10:09:36.558171
2023-08-24T22:42:36
2023-08-24T22:42:36
102,808,429
284
141
MIT
2023-09-11T20:47:11
2017-09-08T02:35:31
Python
UTF-8
Python
false
false
1,303
py
remotesocketio.py
import logging import socket import time from .baseio import BaseIO from ..helpers import get_kwargs log = logging.getLogger("remoteSocketIO") class remoteSocketIO(BaseIO): def __init__(self, *args, **kwargs) -> None: self._remote_ip = get_kwargs(kwargs, "remote_ip") self._remote_port = get_kwar...
465232b98eb5a5909d65d81907dfe2afbc522b96
ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb
/python_modules/dagster/dagster_tests/core_tests/snap_tests/test_dagster_type_namespace_snapshot.py
1a69488456688a447bf1f3c1541496ec3a495b3c
[ "Apache-2.0" ]
permissive
dagster-io/dagster
6adb5deee8bcf3ea1866a6a64f2ed81e1db5e73a
fe21995e0402878437a828c6a4244025eac8c43b
refs/heads/master
2023-09-05T20:46:08.203794
2023-09-05T19:54:52
2023-09-05T19:54:52
131,619,646
8,565
1,154
Apache-2.0
2023-09-14T21:57:37
2018-04-30T16:30:04
Python
UTF-8
Python
false
false
3,935
py
test_dagster_type_namespace_snapshot.py
from dagster import Dict, In, List, Out, Set, Tuple, job, op from dagster._core.snap import build_dagster_type_namespace_snapshot from dagster._core.types.dagster_type import ALL_RUNTIME_BUILTINS, create_string_type def test_simple_job_input_dagster_type_namespace(): SomethingType = create_string_type("SomethingT...
f56a2364f15dcb01549262e23f0e6b2112bb5ae2
999c9b49caf48e6653147f761e438ece405cb515
/extras/scripts/parsetab.py
119d710dac0fa251d3ae74b67ec337fa4828b8cb
[ "Apache-2.0" ]
permissive
google/fruit
34bb2481855d35167cc715f510f1c294e4158e38
570eb41e8ba7cb64837af57e5d50a94e45f02446
refs/heads/master
2023-08-29T15:34:03.496802
2023-01-29T23:16:31
2023-01-30T00:43:24
20,900,043
1,824
269
Apache-2.0
2023-01-30T00:43:25
2014-06-16T20:43:26
C++
UTF-8
Python
false
false
6,254
py
parsetab.py
# parsetab.py # This file is automatically generated. Do not edit. _tabversion = '3.5' _lr_method = 'LALR' _lr_signature = 'A4908DFFF94F3402E0156DF82495775C' _lr_action_items = {'GREATER_THAN':([2,3,4,6,10,11,12,13,14,16,17,18,20,22,24,25,27,29,31,32,33,34,35,36,37,38,39,40,41,],[11,-3,-3,-3,-1,-3,-4,-6,-5,-3,-...
c3a648d860d7b27df0dfbfe4ea48b72a87eb2fcf
8f4488494507da4cb6f15073b8aa2e6f97fabb35
/test/unit/test_entry_point.py
1195fe7bf25430d1b29b5eadd8b20ebc92abb00f
[ "Apache-2.0" ]
permissive
aws/sagemaker-training-toolkit
025966a1216aeb78b58f7abab19c6ccb01b0897d
e4a765e699e16c5849bbdfd789edbfc9820fdd77
refs/heads/master
2023-08-21T12:33:59.831391
2023-08-08T16:46:40
2023-08-08T16:46:40
212,439,434
415
110
Apache-2.0
2023-09-07T19:58:23
2019-10-02T20:54:32
Python
UTF-8
Python
false
false
7,401
py
test_entry_point.py
# Copyright 2018-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the 'License'). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the 'license' fil...
96d168002f8fd506d5c88f356f712c1137f71795
76fb0a3cfc9d9362ab29174bd1d55e888ea4d7f6
/tfx/orchestration/experimental/interactive/notebook_utils_test.py
73619d8a8143b875982894e264feb94ce0bf6ca5
[ "Apache-2.0" ]
permissive
tensorflow/tfx
0cfc9c55171352ecc98c9dfa8ffe976c689d7073
1b328504fa08a70388691e4072df76f143631325
refs/heads/master
2023-08-30T11:56:50.894497
2023-08-29T22:47:19
2023-08-29T22:48:26
169,116,405
2,116
899
Apache-2.0
2023-09-14T21:51:42
2019-02-04T17:14:36
Python
UTF-8
Python
false
false
1,386
py
notebook_utils_test.py
# Copyright 2022 Google LLC. 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 a...
80d617bf9808e5c942ec2b9fedd0579ea7c3c92a
80d505489f5354d4b29156d6eea7e3516162bcc7
/exercises/practice/clock/clock.py
1102992a69c1d74bbd8b367e7f41962e6b559e10
[ "Python-2.0", "BSD-3-Clause", "MIT" ]
permissive
exercism/python
419e89690070eef42fc4c932faa0df0706d5c222
1e71b8a00c8b34c251d785f0a10843efc5234994
refs/heads/main
2023-08-29T03:18:02.845245
2023-08-25T12:50:16
2023-08-25T12:50:16
17,274,389
1,588
1,513
MIT
2023-09-14T20:33:13
2014-02-28T03:48:58
Python
UTF-8
Python
false
false
274
py
clock.py
class Clock: def __init__(self, hour, minute): pass def __repr__(self): pass def __str__(self): pass def __eq__(self, other): pass def __add__(self, minutes): pass def __sub__(self, minutes): pass
7b5196a6454d5cdc9acc2bda89eb408019c8f883
fc8ffd2f74d63024145e0628c700461765797c1c
/custom_components/edgeos/component/api/storage_api.py
4cfb6943f279644107c260cfa32d755891957ec1
[]
no_license
elad-bar/ha-edgeos
a22edeb4429c2bd581e74cc535ce5ce3583ce84f
62e66ac5d67d2704cd8d602db9b5f1f490ed8f1f
refs/heads/master
2023-08-23T17:57:52.953761
2023-03-30T07:58:02
2023-03-30T07:58:02
169,467,285
129
31
null
2023-08-13T08:46:35
2019-02-06T19:53:18
Python
UTF-8
Python
false
false
6,065
py
storage_api.py
"""Storage handlers.""" from __future__ import annotations from collections.abc import Awaitable, Callable import logging from homeassistant.core import HomeAssistant from homeassistant.helpers.json import JSONEncoder from homeassistant.helpers.storage import Store from ...configuration.models.config_data import Con...
39e19d5a0526a4ca145f9f13e3070fc90bbf07b3
e9ee565cfff9e6b2a1ea6f73368f4a8948274795
/src/pybel/io/graphdati.py
f673eae79a6d9a43afaf9af7f7deee9a806049ca
[ "MIT" ]
permissive
pybel/pybel
7e79530b454e23ae48486a5c0e3207744b7fa139
ed66f013a77f9cbc513892b0dad1025b8f68bb46
refs/heads/master
2022-08-26T18:41:25.724850
2022-02-11T12:22:35
2022-02-11T12:22:35
68,376,693
133
40
MIT
2022-02-11T12:11:24
2016-09-16T12:09:49
Python
UTF-8
Python
false
false
10,331
py
graphdati.py
# -*- coding: utf-8 -*- """Conversion functions for BEL graphs with GraphDati. Note that these are not exact I/O - you can't currently use them as a round trip because the input functions expect the GraphDati format that's output by BioDati. """ import gzip import json import logging from collections import defaultd...
d82e2c17073f818c0901383e47da387110ee3f6e
05e634a232574f676434dfa8e4183f3d0a1a4bc9
/paddlecv/setup.py
450611e98745ff861ee5ec6df8e4349855370ba1
[ "Apache-2.0" ]
permissive
PaddlePaddle/models
67ac00d93c5255ac64a9d80ae5be2e8927e47cee
8042c21b690ffc0162095e749a41b94dd38732da
refs/heads/release/2.4
2023-09-04T15:23:59.543625
2023-07-20T11:54:16
2023-07-20T11:54:16
88,868,842
7,633
3,597
Apache-2.0
2023-09-05T23:23:54
2017-04-20T13:30:15
Python
UTF-8
Python
false
false
3,594
py
setup.py
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
ffbe433addd0337aea901ce9d361f6b5f0ffce1b
55f6a9b8f90ae308a90739fd8f77f4e7cd10ff19
/spacy/tests/lang/ru/test_text.py
0bbed2122a051734dec1b6bd106db9b32678715a
[ "MIT" ]
permissive
explosion/spaCy
cce07ee403aa398de7ba8941a2c11d22aea68021
3e4264899c3b12f8eabc5cd700146177a34824d0
refs/heads/master
2023-08-31T07:18:13.598768
2023-08-30T09:58:14
2023-08-30T09:58:14
21,467,110
26,348
4,983
MIT
2023-09-13T17:56:22
2014-07-03T15:15:40
Python
UTF-8
Python
false
false
221
py
test_text.py
import pytest from spacy.lang.ru.lex_attrs import like_num @pytest.mark.parametrize("word", ["одиннадцать"]) def test_ru_lex_attrs_capitals(word): assert like_num(word) assert like_num(word.upper())
142d1198a3b51096326b3117862862e477edf398
71ceb244e850b17e758273b6326fb8c11e50c527
/tests/processes/continuous/test_cauchy.py
d19c96654a6fdbde33c33c22689c73ccd62875c7
[ "MIT" ]
permissive
crflynn/stochastic
d32f9421971c09ea743f72bfbf50e64001e2fde3
90ffba84523751dd205e17c50c84be9904c13330
refs/heads/master
2022-12-24T09:20:05.718823
2022-07-12T03:22:30
2022-07-12T03:22:30
82,245,607
396
77
MIT
2022-12-09T06:43:37
2017-02-17T01:54:16
Python
UTF-8
Python
false
false
534
py
test_cauchy.py
"""Test CauchyProcess.""" from stochastic.processes.continuous import CauchyProcess def test_cauchy_process_str_repr(t): instance = CauchyProcess(t) assert isinstance(repr(instance), str) assert isinstance(str(instance), str) def test_cauchy_process_sample(t, n, threshold): instance = CauchyProcess...
ed00a74e44da3894d35794aba09a11727a81c1c3
d110546d747d7e3865ce5742d5fca09f404623c0
/tests/pytests/unit/beacons/test_salt_proxy.py
9ab303aa48b6bad3a3a5002a61e1abea9ce9cc6f
[ "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
1,971
py
test_salt_proxy.py
# Python libs import pytest # Salt libs import salt.beacons.salt_proxy as salt_proxy from tests.support.mock import MagicMock, patch @pytest.fixture def configure_loader_modules(): return {salt_proxy: {"__context__": {}, "__salt__": {}}} def test_non_list_config(): config = {} ret = salt_proxy.valida...
ce127659bc94fc8a9a0c48aafc18e89bf1cf6d9b
b408419061267926e15ee0a3c8b0ec12a8db9b22
/oracle_privs
47c1ed511eac80d50bd3825957b9fc89ede0809d
[ "MIT" ]
permissive
oravirt/ansible-oracle-modules
81d8a0222bef66b0302f22a3f2842fc55388d59f
f6224dfbc98ca137650685d3750c86b77300f757
refs/heads/master
2022-12-24T13:07:45.819990
2022-10-17T18:29:17
2022-10-17T18:29:17
38,441,112
206
152
MIT
2022-10-17T18:29:18
2015-07-02T15:35:27
Python
UTF-8
Python
false
false
17,200
oracle_privs
#!/usr/bin/python # -*- coding: utf-8 -*- DOCUMENTATION = ''' --- module: oracle_privs short_description: Manage object and system privileges in Oracle database description: - Manage users/schemas in an Oracle database - Can be run locally on the controlmachine or on a remote host version_added: "2.2.1" option...
86dd5cc42ab4f2a731f2cc46cc878dc4f7caa356
61673ab9a42f7151de7337608c442fa6247f13bb
/decode-encode/MacRoman-encode-decode-UTF8/main.py
e4572ab266b29fe2dd17f88831ebb4d8ce08d484
[ "MIT" ]
permissive
furas/python-examples
22d101670ecd667a29376d7c7d7d86f8ec71f6cf
95cb53b664f312e0830f010c0c96be94d4a4db90
refs/heads/master
2022-08-23T23:55:08.313936
2022-08-01T14:48:33
2022-08-01T14:48:33
45,575,296
176
91
MIT
2021-02-17T23:33:37
2015-11-04T23:54:32
Python
UTF-8
Python
false
false
362
py
main.py
#!/usr/bin/env python3 # date: 2019.11.15 # https://stackoverflow.com/questions/58863905/how-can-i-convert-encoding-of-special-characters-in-python text = '''Is there an outdoor grill/bbq place? Pär Hej Hur långt aaär de till Stallarna? MVH LAILA Är där sandstrand och hur långt''' print(text.encode('MacRom...
08ce05c277d389dcb822ea0f2b9721243470e382
4763ee2164b4c2531688b0e787ed762089b3d112
/pygrim/formulas/prime_numbers.py
f54538c05772be3de20d8739f8df4a7befd3df91
[ "MIT" ]
permissive
fredrik-johansson/fungrim
39dc106f69fb72c6046e4a6a27b1cff5b1e21183
b7c3ca6e565e1058638cab6ba2bc811090296767
refs/heads/master
2023-08-31T19:47:15.115965
2021-03-15T19:09:32
2021-03-15T19:09:32
175,661,931
111
14
MIT
2022-02-24T14:55:23
2019-03-14T16:42:45
Python
UTF-8
Python
false
false
9,371
py
prime_numbers.py
# -*- coding: utf-8 -*- from ..expr import * def_Topic( Title("Prime numbers"), Section("Definitions"), Entries( "38f111", "0b643d", "6c22c8", "c03de4", # included from zeta ), Section("Connection formulas"), Entries( "3fc797", "04427b", ...
8d7249b3540f0e2fe090bdb102152e2aac107720
1b78bd306b76d07362ada30b91ddd3a76dbe963e
/graphistry/compute/chain.py
4920b74c9f732bd18ae1a268f563ac5746cb482b
[ "BSD-3-Clause" ]
permissive
graphistry/pygraphistry
5d8518cf9f041b10b6fe1f4210fafd2c40e0b09d
c93bd5d4b8a1f85bc00fbd8056d62f1a459bd50d
refs/heads/master
2023-09-01T13:21:41.316376
2023-08-23T04:08:35
2023-08-23T04:08:35
36,759,907
1,947
216
BSD-3-Clause
2023-09-14T07:59:24
2015-06-02T20:28:42
Python
UTF-8
Python
false
false
7,076
py
chain.py
from typing import cast, List, Optional, Tuple, Union import pandas as pd from graphistry.Plottable import Plottable from .ast import ASTObject, ASTNode, ASTEdge from .filter_by_dict import filter_by_dict import logging logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) ############################...
56222b8bcf6abfedd993142eff0d686e5a5e90c0
947c65092c2628d29e9e20d55921316c10ea43cc
/tests/test_utils.py
a19c46c5412d2a21ca4dffab51a29c07eb840c5b
[ "Apache-2.0" ]
permissive
mmatuson/SchemaSync
257d44fa10cb1f99953e17274b86bb2c5fa23e33
7c4bfecdb60a8ab4c35c48347191a192128556eb
refs/heads/master
2023-08-13T11:45:31.993533
2020-01-27T07:50:24
2020-01-27T07:50:24
367,914
251
97
NOASSERTION
2019-06-05T08:25:53
2009-11-10T19:18:54
Python
UTF-8
Python
false
false
6,008
py
test_utils.py
#!/usr/bin/python import unittest import os import glob import datetime from schemasync.utils import versioned, create_pnames, compare_version, PatchBuffer class TestVersioned(unittest.TestCase): def setUp(self): filename = "/tmp/schemasync_util_testfile.txt" self.base_name, self.ext = os.path.spl...
50012f6244fb87a9b87c613487c6e8a85c44da3e
41e424bc0476fe67c22e5f4e9255932a5de277b3
/caffe/data/make_cifar10.py
cd0513cf6c04d5d1530a0340238e7cc88ff1bb6e
[]
no_license
abhimanyudubey/confusion
a1228823ee33d5d5e439a6c069e87a6163e43f01
bbc47c305fcca4c462d7852ad306b09d904e12e0
refs/heads/master
2021-01-19T14:52:29.193396
2018-09-11T00:42:39
2018-09-11T00:42:39
100,933,177
219
46
null
null
null
null
UTF-8
Python
false
false
1,599
py
make_cifar10.py
#!/usr/bin/env python import cPickle import scipy.misc import os import sys DATA_ROOT = '' if os.getenv('DATA_ROOT', False): DATA_ROOT = os.getenv('DATA_ROOT') else: print 'DATA_ROOT not set' sys.exit(0) CALL_DIR = os.path.dirname(os.path.abspath(__file__)) def unpickle(file): fo = open(file, 'rb') ...
b069049bd4806b0a081d537dbae02a37532439ba
444a9480bce2035565332d4d4654244c0b5cd47b
/research/nlp/dialogxl/src/config.py
44289d1b05c2ca8538a666df04e092e314bc7506
[ "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,049
py
config.py
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
e2d0086fece8b747af670ee195cb38ae50df7330
56d6257e932e1397ab03b1e7ccc6231378665b04
/Push2/session_ring_selection_linking.py
64432d8c5035e229f0d6c4b92a5cded760c32d33
[]
no_license
gluon/AbletonLive10.1_MIDIRemoteScripts
e6c8dc4956cff9630aaa36f3667994387ad1d0cf
2468b51eba7e5082b06f9e381b3e72027c5f272c
refs/heads/master
2023-01-10T18:37:46.504180
2022-12-23T09:21:48
2022-12-23T09:21:48
213,423,555
205
59
null
2021-02-12T16:15:01
2019-10-07T15:44:52
Python
UTF-8
Python
false
false
483
py
session_ring_selection_linking.py
#Embedded file name: /Users/versonator/Jenkins/live/output/Live/mac_64_static/Release/python-bundle/MIDI Remote Scripts/Push2/session_ring_selection_linking.py from __future__ import absolute_import, print_function, unicode_literals from ableton.v2.control_surface import SessionRingSelectionLinking as SessionRingSelect...
2c23261cccf0055627ddce2bcb03d77025f72365
605d63d23bc2e07eb054979a14557d469787877e
/atest/testdata/keywords/type_conversion/Dynamic.py
f30c41f9bba47187725939718a076ee5c0ac7737
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
robotframework/robotframework
407b0cdbe0d3bb088f9bfcf9ea7d16e22eee1ddf
cf896995f822f571c33dc5651d51365778b1cf40
refs/heads/master
2023-08-29T03:19:00.734810
2023-08-27T18:14:48
2023-08-28T18:14:11
21,273,155
8,635
2,623
Apache-2.0
2023-09-05T04:58:08
2014-06-27T11:10:38
Python
UTF-8
Python
false
false
2,627
py
Dynamic.py
from decimal import Decimal from robot.api.deco import keyword class Dynamic: def get_keyword_names(self): return [name for name in dir(self) if hasattr(getattr(self, name), 'robot_name')] def run_keyword(self, name, args, kwargs): return getattr(self, name)(*args, **kwargs)...
2946e05ff318ca47bdaff7d7c18cb1b802952627
3ca67d69abd4e74b7145b340cdda65532f90053b
/programmers/난이도별/level01.x만큼_간격이_있는_n개의_숫자/HyeonJeong.py
df6e0c276a509d43f380b7c290b55c0f3ca39c1a
[]
no_license
DKU-STUDY/Algorithm
19549516984b52a1c5cd73e1ed1e58f774d6d30e
6f78efdbefd8eedab24e43d74c7dae7f95c2893b
refs/heads/master
2023-02-18T06:48:39.309641
2023-02-09T07:16:14
2023-02-09T07:16:14
258,455,710
175
49
null
2023-02-09T07:16:16
2020-04-24T08:42:27
Python
UTF-8
Python
false
false
298
py
HyeonJeong.py
#방법1 def solution(x, n): if x == 0 : return [0] * n return [a for a in range(x, x * n + x, x)] #방법2 def solution(x, n): return [x * a for a in range(1, n + 1)] print( solution(2, 5) == [2,4,6,8,10], solution(4, 3) == [4,8,12], solution(-4, 2) == [-4, -8] )
bd07b67da17cac17007329ff25c64be7f772e078
7eb606a7957e5500f163c93dc4b19418cf9cf335
/ludwig/schema/features/augmentation/__init__.py
3091a959f25144ce37dbaa5f23b5442a55dcb7a8
[ "Apache-2.0", "MIT" ]
permissive
ludwig-ai/ludwig
024f74da86567a57ec8e30efcb4600f0c52333a1
e1d023e41606c9b76b35e1d231c2f13368a30eca
refs/heads/master
2023-09-03T08:07:32.978301
2023-09-01T19:39:32
2023-09-01T19:39:32
163,346,054
2,567
285
Apache-2.0
2023-09-14T20:34:52
2018-12-27T23:58:12
Python
UTF-8
Python
false
false
99
py
__init__.py
# Register all augmentation schemas import ludwig.schema.features.augmentation.image # noqa: F401
3ce87ee0ac9e6ad991f58aacca692489f34a4876
39443db5a2b359510a4759b01a2356c84dfba9db
/modules/http_meta.py
509f085225cbfb97f1e1ecd74d7bd0ac5071524a
[]
no_license
MITRECND/chopshop
afedc56d24a68f71159890a35f3e1cdd28466367
8bdd393af92197e9f91741845b9165397d674482
refs/heads/master
2023-07-07T14:09:47.024983
2022-12-19T21:28:41
2022-12-19T21:28:41
5,860,398
396
97
null
2022-12-19T21:28:42
2012-09-18T17:51:38
Python
UTF-8
Python
false
false
4,110
py
http_meta.py
# Copyright (c) 2017 The MITRE Corporation. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions...
853e8e9143b61f540fa14f37ceb566b96be49293
af43b8f4d5142310be45207dbc12890ebb8542ea
/setup.py
d27c1518731e56674e80f82610d6b26694bf7104
[ "WTFPL" ]
permissive
mk-fg/python-onedrive
96d012474510d74367c85221e018d12ebb9b0e39
d46fc9f32d72104d060914c096db19755a8c7ca7
refs/heads/master
2023-08-23T04:14:10.901875
2021-07-24T13:52:15
2021-07-24T13:52:15
5,832,751
134
19
WTFPL
2021-07-24T13:52:16
2012-09-16T20:13:18
Python
UTF-8
Python
false
false
1,811
py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages import os, runpy pkg_root = os.path.dirname(__file__) __version__ = runpy.run_path( os.path.join(pkg_root, 'onedrive', '__init__.py') )['__version__'] # Error-handling here is to allow package to be built w/o README included try: readme = open(os.pat...
2e4dd5f1e46d408efd56018679d69852633708aa
c7c73566784a7896100e993606e1bd8fdd0ea94e
/direct/src/distributed/DistributedObject.py
ad53b6aa1a9844face86134fbe3305bd94792985
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
panda3d/panda3d
c3f94df2206ff7cfe4a3b370777a56fb11a07926
160ba090a5e80068f61f34fc3d6f49dbb6ad52c5
refs/heads/master
2023-08-21T13:23:16.904756
2021-04-11T22:55:33
2023-08-06T06:09:32
13,212,165
4,417
1,072
NOASSERTION
2023-09-09T19:26:14
2013-09-30T10:20:25
C++
UTF-8
Python
false
false
20,597
py
DistributedObject.py
"""DistributedObject module: contains the DistributedObject class""" from panda3d.direct import DCPacker from direct.showbase.MessengerGlobal import messenger from direct.directnotify.DirectNotifyGlobal import directNotify from direct.distributed.DistributedObjectBase import DistributedObjectBase #from PyDatagram impo...
923b83fd80f9e1c2087f993b0250a1ac73e55fd4
0db19410e9751790af8ce4a0a9332293e379c02f
/tests/test_models/test_backbones/test_v2v_net.py
fba3fda08f9723e1abe9bd220f578b193cfe56e6
[ "Apache-2.0" ]
permissive
open-mmlab/mmpose
2c9986521d35eee35d822fb255e8e68486026d94
537bd8e543ab463fb55120d5caaa1ae22d6aaf06
refs/heads/main
2023-08-30T19:44:21.349410
2023-07-04T13:18:22
2023-07-04T13:18:22
278,003,645
4,037
1,171
Apache-2.0
2023-09-14T09:44:55
2020-07-08T06:02:55
Python
UTF-8
Python
false
false
470
py
test_v2v_net.py
# Copyright (c) OpenMMLab. All rights reserved. from unittest import TestCase import torch from mmpose.models.backbones import V2VNet class TestV2Vnet(TestCase): def test_v2v_net(self): """Test V2VNet.""" model = V2VNet(input_channels=17, output_channels=15) input = torch.randn(2, 17, 3...
e6a199e6581a6d338e7e119c04d7ff74bcacb646
2337351b228818e41be3002bd38f68f77c2aa074
/core/bi/dictionaries/interfaceprofile.py
ad2e9782b8ba786366fd6d1d1e724594ffb66b50
[ "BSD-3-Clause" ]
permissive
nocproject/noc
57d40c680a1499374463e472434f9595ed6d1374
6e6d71574e9b9d822bec572cc629a0ea73604a59
refs/heads/master
2023-08-31T01:11:33.544573
2023-08-30T17:31:11
2023-08-30T17:31:11
107,815,776
105
33
BSD-3-Clause
2023-07-31T07:57:45
2017-10-21T21:04:33
Python
UTF-8
Python
false
false
1,025
py
interfaceprofile.py
# ---------------------------------------------------------------------- # Interface Profile dictionary # ---------------------------------------------------------------------- # Copyright (C) 2007-2021 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- #...
a0b2e34700fc5c6c5796f0b235b22881f9f0edf9
85c668af40853f5ee48fbe8c4045df1a5dd4104e
/examples/basic/mesh_map2cell.py
0cfda7186efca6c3e97ef16861382b9fa58f4aa1
[ "MIT", "LicenseRef-scancode-public-domain", "OFL-1.1" ]
permissive
marcomusy/vedo
771db91bca05cda864fc7d1776d9140726676704
9a9f7c5e9ebf135e5c745c521c898866e3ede0ef
refs/heads/master
2023-08-21T12:56:35.545713
2023-08-14T14:39:37
2023-08-14T14:39:37
110,261,047
1,419
206
MIT
2023-09-02T18:38:22
2017-11-10T15:17:47
Python
UTF-8
Python
false
false
683
py
mesh_map2cell.py
"""Map an array which is defined on the vertices of a mesh to its cells""" from vedo import * doc = Text2D(__doc__, pos="top-center") mesh1 = Mesh(dataurl+'icosahedron.vtk').linewidth(0.1).flat() # let the scalar be the z coordinate of the mesh vertices msg1 = Text2D("Scalars originally defined on points..", pos="bo...
280582d0eb4f760282e71946c669c27d6442e81c
83963c19fd120dcc7498b726cc56de7fbb900a47
/tests/test_cli_batch_edit.py
181db2b278cb790837a08f6640b15164d800ebf8
[ "MIT", "LicenseRef-scancode-public-domain", "CC-BY-2.0" ]
permissive
RhetTbull/osxphotos
55ad4f1257bcd26bb3fbadde6ce5dd59c0917354
2cb5a4d18a27be6ccf68f5f35abd39418d238016
refs/heads/main
2023-09-02T18:11:06.227191
2023-09-02T16:06:51
2023-09-02T16:06:51
192,160,985
1,287
93
MIT
2023-09-14T14:10:58
2019-06-16T07:07:49
Python
UTF-8
Python
false
false
6,802
py
test_cli_batch_edit.py
"""Test osxphotos batch-edit command""" from __future__ import annotations import os import time import pytest from click.testing import CliRunner import osxphotos from osxphotos.platform import is_macos if is_macos: import photoscript from osxphotos.cli.batch_edit import batch_edit else: pytest.skip(...
ec27611b06493528eb79fce1c2c2222e4168f354
b35f43ee805abb7fa4c0e4eb4396ebe98844a603
/text-search/src/python/msmarco.py
1d8451b4ab19142036e09716328b4dd56cee4126
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
vespa-engine/sample-apps
432d917f825473478b3823ffaf36692ffcf858ce
3d61ebc86955d18f3449511f7b95283eca03caff
refs/heads/master
2023-08-03T13:58:47.487412
2023-08-03T11:06:36
2023-08-03T11:06:36
100,470,837
250
101
Apache-2.0
2023-09-14T06:30:22
2017-08-16T09:12:25
Jupyter Notebook
UTF-8
Python
false
false
1,664
py
msmarco.py
import gzip import csv import re def load_msmarco_queries(queries_file_path): print("Loading queries...") queries = {} with gzip.open(queries_file_path, "rt", encoding="utf8") as f: tsvreader = csv.reader(f, delimiter="\t") for [queryid, query] in tsvreader: query = re.sub(r"[^...
4ed8504d02aa3a547ecb338485dace7b0c4b1968
d9a469bc9cff39d89e7cb04e4fc537763aee9aca
/binance_chain/node_rpc/websockets.py
380b41260fb89397379b24b414ba4ccb0625ad9d
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
sammchardy/python-binance-chain
d017c0f1e6bd84d28017f87e2d229b21a2ee8b8a
19d7d639cc912a27ec86831338c2a2dc96289d50
refs/heads/master
2023-05-11T19:15:44.912507
2021-06-01T03:14:25
2021-06-01T03:14:25
172,324,144
310
111
MIT
2022-06-30T10:55:19
2019-02-24T10:29:29
Python
UTF-8
Python
false
false
8,936
py
websockets.py
import asyncio import itertools from typing import Callable, Awaitable, Optional, Dict from binance_chain.node_rpc.http import HttpRpcClient from binance_chain.websockets import ReconnectingWebsocket, BinanceChainSocketManagerBase from binance_chain.environment import BinanceEnvironment from binance_chain.constants im...
ca2a51963cce565220ff97f2a30faa90b35cf641
39241620c6271758ea97d92fa4cf9f45aa7d2510
/src/python/aim/_core/storage/hashing/__init__.py
4420a15bc1dc5708e89098224eca0d73f4fce5ed
[ "Apache-2.0" ]
permissive
aimhubio/aim
4618e5ebdaf69d216cbe61c6187b005d443839a9
34e5c2c29abe9b26699760074adcadfe8fd4cfe0
refs/heads/main
2023-09-01T04:23:22.276343
2023-09-01T03:47:13
2023-09-01T03:47:13
189,640,071
4,091
276
Apache-2.0
2023-09-14T15:27:03
2019-05-31T18:25:07
Python
UTF-8
Python
false
false
56
py
__init__.py
from aim._core.storage.hashing.hashing import hash_auto
4b1862655b837fd3a79fbf4fb57a1fe137637403
3aab11d445011f4a0de1376886dd3899aba44e68
/opps/contrib/logging/admin.py
a841e8460460954f7974de6a0cfb0d36260d78ff
[ "MIT" ]
permissive
opps/opps
4ba6a08ac5aa31be48c245b2e8f9d9a714a5e473
5552924fa34ea40d24febeac5046bd59f62e0e4f
refs/heads/master
2023-08-24T21:09:23.489540
2023-05-22T20:07:33
2023-05-22T20:07:33
7,712,379
166
76
MIT
2022-01-06T22:53:23
2013-01-20T03:56:15
Python
UTF-8
Python
false
false
300
py
admin.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.contrib import admin from .models import Logging class LoggingAdmin(admin.ModelAdmin): model = Logging raw_id_fields = ('user',) exclude = ('site_iid', 'site_domain', 'mirror_site') admin.site.register(Logging, LoggingAdmin)
c6a62869ec9700a735967b1b1f9be0c7b2174a67
c7c73566784a7896100e993606e1bd8fdd0ea94e
/direct/src/tkpanels/FSMInspector.py
f3b20aa258daebe98097c613e2a69e1a4df8efb9
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
panda3d/panda3d
c3f94df2206ff7cfe4a3b370777a56fb11a07926
160ba090a5e80068f61f34fc3d6f49dbb6ad52c5
refs/heads/master
2023-08-21T13:23:16.904756
2021-04-11T22:55:33
2023-08-06T06:09:32
13,212,165
4,417
1,072
NOASSERTION
2023-09-09T19:26:14
2013-09-30T10:20:25
C++
UTF-8
Python
false
false
20,049
py
FSMInspector.py
"""Defines the `FSMInspector` class, which opens a Tkinter window for inspecting :ref:`finite-state-machines`. Using the Finite State Inspector -------------------------------- 1) In your Config.prc add:: want-tk #t 2) Start up the show and create a Finite State Machine:: from direct.showbase.ShowBaseGloba...
1f9ec46805cd90311823ed92714b539f0ef06912
bb2545a0c7fc0ed02da32a0883d0c25691c35d34
/tbx/core/migrations/0035_auto_20160617_1631.py
2726db0812276491693ff4c37e7719601c767ec2
[ "MIT" ]
permissive
torchbox/wagtail-torchbox
ce67592fccf5f4349970e48f1178a9142b916d8f
79d9629f47de46276df7695778dcd8d44784d9df
refs/heads/main
2023-09-01T13:46:49.564559
2023-08-31T12:38:29
2023-08-31T12:38:29
16,944,327
124
66
MIT
2023-09-04T11:22:15
2014-02-18T09:56:47
Python
UTF-8
Python
false
false
1,955
py
0035_auto_20160617_1631.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-06-17 15:31 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ("wagtailcore", "0023_alter_page_revision_on_delete_behaviour"), ("torchbox", "0034_auto_2016...
8460c8cfb808cb4eb86349d2e8f30be2b232c399
13aa7b9d76c364eb6b112ad057f81ea2fa63da3a
/modules/intelligence-gathering/spoonmap.py
d48c05579bb919b8731c3a40ff318e510d152c6d
[]
no_license
trustedsec/ptf
df2ed6671c9efd05db756faec41298fbfb50bc5a
f87dfa8b3b62f2157fc51e8abe31bf3f0bf8541c
refs/heads/master
2023-08-31T08:01:58.033518
2023-03-15T17:04:49
2023-03-15T17:04:49
35,505,904
5,087
1,434
null
2023-08-27T22:33:41
2015-05-12T18:37:25
Python
UTF-8
Python
false
false
870
py
spoonmap.py
#!/usr/bin/env python ##################################### # Installation module for Spoonman ##################################### # AUTHOR OF MODULE NAME AUTHOR="David Kennedy (ReL1K)" # DESCRIPTION OF THE MODULE DESCRIPTION="This module will install/update Spoonman - a wrapper for NMAP and MassScan" # INSTALL TY...
5904f69a6278933005890ad0ccdc4cbd9b5530a8
70ffcb065027032a399f44b9ec91e7b61d73583d
/tests/plugins/static.py
daa9ac3fa079548d4c6adc8eed1c3ddf33501124
[ "MIT" ]
permissive
ElementsProject/lightning
4e260841b2ebad8c772a5ff91ef1ebbc3fe1ad71
990096f904e26386527a4eddd8d3262464bacabd
refs/heads/master
2023-09-01T07:11:34.794039
2023-08-31T09:55:14
2023-08-31T22:02:14
37,350,472
2,812
961
NOASSERTION
2023-09-14T19:33:22
2015-06-13T00:04:22
C
UTF-8
Python
false
false
536
py
static.py
#!/usr/bin/env python3 """Simple plugin to test the dynamic behavior. A plugin started with dynamic to False cannot be controlled after lightningd has been started. """ from pyln.client import Plugin plugin = Plugin(dynamic=False) @plugin.init() def init(configuration, options, plugin): plugin.log("Static plug...
919b3f0263d3c8354fade73f4293b2379648dd3d
3e8cf48007bbcb17be2f21bf3e1758953fff3123
/财务数据分析/财务数据结构化文档生成/行业比较分析模板.py
4acf2357d43409f76ce488e2af9fca5a4dc6dda3
[]
no_license
08zhangyi/multi-factor-gm-wind-joinquant
e3b296340d3126f98662d9041d38724fca697ab4
c1d2b0cdfa2425bf3c8ac61548974d246687e450
refs/heads/master
2022-11-16T08:36:19.666321
2022-10-26T04:46:17
2022-10-26T04:46:17
138,122,559
179
97
null
null
null
null
UTF-8
Python
false
false
3,292
py
行业比较分析模板.py
from WindPy import w import sys sys.path.append('D:\\programs\\多因子策略开发\\单因子研究') TS_TOKEN = 'fcd3ee99a7d5f0e27c546d074a001f0b3eae01312c4dd8354415fba1' class 行业比较分析模板(): def __init__(self, code, date, mode): self.code = code self.date = date self.industry_name, self.industry_code_list = self...
1890c6b67707b57ae8b3a793475c4df93358e060
3a6a211ea0d32405497fbd6486c490bb147e25f9
/telemetry/telemetry/core/util_unittest.py
0f3b147ae4bfa01f04c0e4fa3eedc75f291ffa12
[ "BSD-3-Clause" ]
permissive
catapult-project/catapult
e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0
53102de187a48ac2cfc241fef54dcbc29c453a8e
refs/heads/main
2021-05-25T07:37:22.832505
2021-05-24T08:01:49
2021-05-25T06:07:38
33,947,548
2,032
742
BSD-3-Clause
2022-08-26T16:01:18
2015-04-14T17:49:05
HTML
UTF-8
Python
false
false
2,900
py
util_unittest.py
# Copyright 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import absolute_import import os import shutil import tempfile import unittest import mock from telemetry.core import util class TestGetSe...
d1aeb29c427da174915dab9bf2f08d73d4ddde6d
8d44e796eaf0c8e11bbc2a27ef093e97a25b6f4a
/examples/web_qa.py
352d2d226d7e282e70a3de205af6821d230d935a
[ "Apache-2.0" ]
permissive
deepset-ai/haystack
caa5287051d1771395ea624b58097000825bad81
5f1256ac7e5734c2ea481e72cb7e02c34baf8c43
refs/heads/main
2023-09-01T02:41:23.490526
2023-08-31T15:33:12
2023-08-31T15:33:12
221,654,678
10,599
1,558
Apache-2.0
2023-09-14T17:09:42
2019-11-14T09:05:28
Python
UTF-8
Python
false
false
1,168
py
web_qa.py
import os from haystack.nodes import PromptNode from haystack.nodes.retriever.web import WebRetriever from haystack.pipelines import WebQAPipeline search_key = os.environ.get("SERPERDEV_API_KEY") if not search_key: raise ValueError("Please set the SERPERDEV_API_KEY environment variable") openai_key = os.environ.g...
2f8697093bb023f1f6b3bbf9b5dd4b4dca2e570a
0e083f405af00029c9ec31849f0f7f81c56844b5
/mmdeploy/codebase/mmrotate/models/task_modules/__init__.py
5206dc19cfd5be84a7b4a03c7d575f8f1717d7b5
[ "Apache-2.0" ]
permissive
open-mmlab/mmdeploy
39b9e7b611caab2c76a6142fcb99f0bf1d92ad24
5479c8774f5b88d7ed9d399d4e305cb42cc2e73a
refs/heads/main
2023-09-01T21:29:25.315371
2023-08-31T09:59:29
2023-08-31T09:59:29
441,467,833
2,164
605
Apache-2.0
2023-09-14T10:39:04
2021-12-24T13:04:44
Python
UTF-8
Python
false
false
88
py
__init__.py
# Copyright (c) OpenMMLab. All rights reserved. from . import coders # noqa: F401,F403
22a0cb6529f489dfbea95990062e1945308cac81
8a33857e67de2bcdd6ab67dd69fa21debb3810fe
/bio_embeddings/mutagenesis/pipeline.py
481790223622c32bbb0bad411cba493ca453e1e2
[ "MIT" ]
permissive
sacdallago/bio_embeddings
78c5f11e852c46bb98c78633f529f53457639c7a
efb9801f0de9b9d51d19b741088763a7d2d0c3a2
refs/heads/develop
2023-05-10T18:49:39.640162
2022-08-04T07:43:37
2022-08-04T07:43:37
180,608,802
383
60
MIT
2023-02-16T01:41:53
2019-04-10T15:17:42
HTML
UTF-8
Python
false
false
4,324
py
pipeline.py
import math from copy import deepcopy from typing import List, Dict, Type import torch from Bio import SeqIO from pandas import DataFrame from tqdm import tqdm from bio_embeddings.mutagenesis.constants import PROBABILITIES_COLUMNS try: from bio_embeddings.mutagenesis.protbert_bfd import ProtTransBertBFDMutagenes...
29975c1f77feae9e632184dcc5ac9340a976342d
61b95ee2aefbcfbd6c4abf9511d976d0b9d0e100
/faker/providers/sbn/rules.py
aaf32fd9c268d48de49bd967a74466becbaf16d7
[ "MIT" ]
permissive
joke2k/faker
fed7472580ced2bce326fe4ea0c3d1c810853d5e
33e36b1b6cc9c6f039fe387988853771bab60624
refs/heads/master
2023-09-04T00:43:33.599705
2023-08-31T16:15:04
2023-08-31T16:15:04
6,662,075
14,544
2,215
MIT
2023-09-11T16:06:14
2012-11-12T23:00:09
Python
UTF-8
Python
false
false
844
py
rules.py
""" This module exists solely to figure how long a registrant/publication number may be within an SBN. It's the same as the ISBN implementation for ean 978, reg_group 0. """ from collections import namedtuple from typing import List RegistrantRule = namedtuple("RegistrantRule", ["min", "max", "registrant_length"]) #...
125f81698e4877498c6a3fd9d0d98a4d1d0c1d21
360d15d17490ced1e4651f4d5a4a9f35200d9998
/tools/waf/fypp_preprocessor.py
8bed0a6f705dd4d8190003ce877922b4ec5ce926
[ "BSD-2-Clause" ]
permissive
aradi/fypp
19ef122c1c2d8b997b29bdb190f7c881813692a7
37613eeb2b1d2dc70a0b2e3f9d8f5af50b602ef3
refs/heads/main
2023-08-31T14:36:53.964395
2023-08-22T07:42:26
2023-08-22T07:42:26
57,034,024
159
24
BSD-2-Clause
2023-08-22T07:32:37
2016-04-25T10:46:52
Python
UTF-8
Python
false
false
6,442
py
fypp_preprocessor.py
#!/usr/bin/env python3 # encoding: utf-8 # Bálint Aradi, 2016-2021 '''General module for using Fypp as preprocessor. This module implements the general framework for the Fypp preprocessor, but does not bind it to any task generator. If you want to use it to preprocessor Fortran source files (.fpp -> .f90), use the fy...
ac3127eb309746f363e91ddd1490aa832f514c47
9468849850c7c2b2040835eb9496bfb716a98c21
/cea/utilities/rename_building.py
1654fb8fb020fe97728e3f7d853560994a0a0c8c
[ "MIT" ]
permissive
architecture-building-systems/CityEnergyAnalyst
e6532c0c794538dbb665366ccf6d783e0d9d1345
b84bcefdfdfc2bc0e009b5284b74391a957995ac
refs/heads/master
2023-08-30T19:57:47.445797
2023-08-25T13:30:28
2023-08-25T13:30:28
49,491,341
166
60
MIT
2023-09-11T11:10:00
2016-01-12T10:02:17
Python
UTF-8
Python
false
false
1,817
py
rename_building.py
""" A simple CEA script that renames a building in the input files - NOTE: you'll have to re-run the simulation and analysis scripts to get the changes as only the files defined in ``inputs.yml`` (the files you see in the CEA Dashboard input editor) are changed. This is the script behind ``cea rename-building --old <b...
16b11c9df5b7f0ce64df0921a34fe705c2de07e4
22fa0b810e74516f362241624192c5e226cec244
/watson/__init__.py
8c7d245fd8cceceef95757ce181d5a31d9565b61
[ "BSD-2-Clause" ]
permissive
etianen/django-watson
c448a61437ed20bcddcba018baf841307a0aa220
02ba37a2b9f2469b09db4747e063c7ca53e2a042
refs/heads/master
2023-07-13T21:56:57.054606
2023-01-14T14:27:28
2023-01-14T14:27:28
2,239,979
1,038
133
BSD-3-Clause
2023-01-14T14:24:27
2011-08-20T17:50:53
Python
UTF-8
Python
false
false
176
py
__init__.py
""" Multi-table search application for Django, using native database search engines. Developed by Dave Hall. <http://www.etianen.com/> """ __version__ = VERSION = (1, 6, 3)
762306ec792924d2b4d0a19bd3ec2400940534c8
e7aad0b1c5d8907dbb52000c482c396d1b801751
/test/functional/api/cas/casadm.py
b37b150bb22a18036e99b9a950dc9c4708364036
[ "BSD-3-Clause", "MIT" ]
permissive
Open-CAS/open-cas-linux
c57d60f860702d7bc380c5d85cf502c0bf5e1bae
93334b4675afee8815f8ea12bb7297e0fd2a4195
refs/heads/master
2023-07-12T10:32:26.921455
2023-07-03T12:24:47
2023-07-03T12:24:47
178,356,155
202
84
BSD-3-Clause
2023-07-03T12:24:49
2019-03-29T07:37:15
Python
UTF-8
Python
false
false
16,153
py
casadm.py
# # Copyright(c) 2019-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # from typing import List from api.cas.cache import Cache from api.cas.cache_config import CacheLineSize, CacheMode, SeqCutOffPolicy, CleaningPolicy, \ KernelParameters from api.cas.core import Core from core.test_run import Test...
fbeb5ec7fa4f0f63cc33bf7b54cac67d6072553e
aa1865ff1b47a2ed0f43dc993e7e0916969d3a9e
/examples/evaluation/evaluation_translation_matching.py
95531a662d918ed8e3e621af80005bb3dc6a049b
[ "Apache-2.0" ]
permissive
UKPLab/sentence-transformers
a1c0e055d96478b9b2c7718a299fc268e9449a63
a458ce79c40fef93d5ecc66931b446ea65fdd017
refs/heads/master
2023-08-31T22:01:24.008337
2023-08-08T07:06:22
2023-08-08T07:06:22
198,616,978
11,967
2,260
Apache-2.0
2023-09-08T14:54:52
2019-07-24T10:53:51
Python
UTF-8
Python
false
false
2,172
py
evaluation_translation_matching.py
""" Given a tab seperated file (.tsv) with parallel sentences, where the second column is the translation of the sentence in the first column, for example, in the format: src1 trg1 src2 trg2 ... where trg_i is the translation of src_i. Given src_i, the TranslationEvaluator checks which trg_j has the highest sim...
7b6617f4fe4238b78e182092837572c058e47b45
06d86ca0465405a7d1a64fc6dbf4980f76565e54
/torchnlp/datasets/wikitext_2.py
c46502ba86e8ef6055aa1b191aa6e9ca23ba55fe
[ "BSD-3-Clause" ]
permissive
PetrochukM/PyTorch-NLP
22b7f2628d6545270bc36964ce4551609f84ca9f
53d7edcb8e0c099efce7c2ddf8cd7c44157fcac3
refs/heads/master
2023-08-05T20:15:06.954467
2023-07-04T21:11:26
2023-07-04T21:11:26
122,806,629
2,304
290
BSD-3-Clause
2022-07-16T23:44:23
2018-02-25T05:00:36
Python
UTF-8
Python
false
false
3,209
py
wikitext_2.py
import os import io from torchnlp.download import download_file_maybe_extract from torchnlp.encoders.text import DEFAULT_EOS_TOKEN from torchnlp.encoders.text import DEFAULT_UNKNOWN_TOKEN def wikitext_2_dataset( directory='data/', train=False, dev=False, test=False, train_file...
cb907ad22ee0721093915b78a9cd66c31af6d469
625618bf3b5a1d5f3a6cf980078e5dff2c6bb3f4
/siuba/data/__init__.py
c35613ae958a21f0222418d09adcab371d7da36b
[ "MIT" ]
permissive
machow/siuba
f29436e757d88c706e4e79d07b812d347ea4da9c
df88cc01a64a2b8586e05854e30a6b25acefb0b0
refs/heads/main
2023-08-01T22:01:40.920573
2022-11-16T18:03:25
2022-11-16T18:03:25
169,898,535
1,090
56
MIT
2023-03-27T19:09:40
2019-02-09T18:24:10
Python
UTF-8
Python
false
false
1,471
py
__init__.py
__all__ = [ "mtcars", "cars", "penguins", "penguins_raw", "cars_sql", "band_members", "band_instruments", "band_instruments2", "fish_encounters", "us_rent_income", "warpbreaks", ] def __dir__(): return __all__ def _lo...