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
2bd509785762d20197fe360b4a3b83a7a260de09
35404d163c883a4e73b638b9c01096b67c6cafc7
/examples/python-pgsql/app.py
d0fb670dd98bff11d9c11ad2a94966df9e8aec51
[ "ISC" ]
permissive
jorisvink/kore
d7035e599827f1ad906f4281d587b0c319d44d44
92e1ffcc10845a78775e02c8fe4486a616cd137d
refs/heads/master
2023-04-28T21:45:41.821137
2023-04-15T08:03:31
2023-04-15T08:03:31
10,504,702
3,777
477
ISC
2023-04-06T05:57:45
2013-06-05T14:37:22
C
UTF-8
Python
false
false
2,024
py
app.py
# # Copyright (c) 2017-2018 Joris Vink <joris@coders.se> # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUT...
a1e942fa2c78a0274771a8885f1c0db39ba81d8e
d01680fe164d915bb3ffd6b10dea1d7cac503630
/python-package/lets_plot/geo_data/gis/geocoding_service.py
eea61087320a92c6f06747770bc45d60aae3f029
[ "MIT", "Apache-2.0", "LGPL-2.0-or-later", "BSD-3-Clause", "LGPL-3.0-only" ]
permissive
JetBrains/lets-plot
4ba8edd8910967d5e15d8d0ea1a9cd7a9c50432f
af4f6554eb9cc250259a6a6757b5c8d920dde8c4
refs/heads/master
2023-09-01T04:15:04.414149
2023-08-31T16:48:57
2023-08-31T16:48:57
176,771,727
1,264
59
MIT
2023-09-07T12:42:01
2019-03-20T16:13:03
Kotlin
UTF-8
Python
false
false
1,652
py
geocoding_service.py
import gzip import json import urllib.parse import urllib.request from urllib.error import HTTPError from .json_request import RequestFormatter from .json_response import ResponseParser from .request import Request from .response import Response from lets_plot._global_settings import has_global_value, get_global_str, ...
bc13384d374452cedc3064c908fbad60c16b8e7a
b7163b44b679e082fe97cf7fcd0c73b2fcdb38eb
/modules/dbnd/src/dbnd/_core/parameter/value_types/task_value.py
60949d4f7f591e9b83c44c821d6c688de9068ad8
[ "Apache-2.0" ]
permissive
databand-ai/dbnd
70c95d95e12bfb8ab471a6dce27691ed658cb92d
d59c99dcdcd280d7eec36a693dd80f8c8c831ea2
refs/heads/develop
2023-06-24T18:07:56.524526
2023-05-28T07:57:36
2023-05-28T07:57:36
231,361,064
257
33
Apache-2.0
2023-08-06T08:30:28
2020-01-02T10:42:47
Python
UTF-8
Python
false
false
2,488
py
task_value.py
# © Copyright Databand.ai, an IBM Company 2022 from dbnd._core.constants import _TaskParamContainer from dbnd._core.current import get_settings from dbnd._core.task import Config from dbnd._core.task_build.task_registry import ( build_task_from_config, get_task_registry, ) from targets.values import ValueType ...
f80c7b4b8777f54c7fe75b2a16df3b95815c09cb
e65a4dbfbfb0e54e59787ba7741efee12f7687f3
/cad/cura/files/patch-cura__app.py
519db77135670a1d8940ee2d6e09473c6ba7fabd
[ "BSD-2-Clause" ]
permissive
freebsd/freebsd-ports
86f2e89d43913412c4f6b2be3e255bc0945eac12
605a2983f245ac63f5420e023e7dce56898ad801
refs/heads/main
2023-08-30T21:46:28.720924
2023-08-30T19:33:44
2023-08-30T19:33:44
1,803,961
916
918
NOASSERTION
2023-09-08T04:06:26
2011-05-26T11:15:35
null
UTF-8
Python
false
false
234
py
patch-cura__app.py
--- cura_app.py.orig 2020-02-28 16:06:57 UTC +++ cura_app.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3.8 +#!/usr/bin/env %%PYTHON_CMD%% # Copyright (c) 2022 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher.
145cca8dd98cd60f14c9b31ae66ef0ce60d44710
29f18e8ddde0379cef7fa00b1a50058be3cafa79
/numba/np/ufunc/array_exprs.py
458c06e636d1efe245f0396650113aaf11d055d2
[ "LicenseRef-scancode-secret-labs-2011", "BSD-3-Clause", "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-free-unknown", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "MIT", "LicenseRef-scancode-unknown-license-reference", "Python-2.0", "BSD-2-Clause" ]
permissive
numba/numba
9a8345ff5f7d57f0ffec40e39941ebf2684df0d1
46059957ad416e68476d1e5f32ccd59f7d5df2bb
refs/heads/main
2023-08-09T22:29:38.170300
2023-08-07T15:00:27
2023-08-07T15:00:27
3,659,275
8,247
1,151
BSD-2-Clause
2023-09-13T14:43:48
2012-03-08T11:12:43
Python
UTF-8
Python
false
false
16,873
py
array_exprs.py
import ast from collections import defaultdict, OrderedDict import contextlib import sys from types import SimpleNamespace import numpy as np import operator from numba.core import types, targetconfig, ir, rewrites, compiler from numba.core.typing import npydecl from numba.np.ufunc.dufunc import DUFunc def _is_ufun...
5d507788cb310a6c07ab23ba726000b5b74d0ba0
1cb67c06be9a6a0991629a332ca1271f46a1b7dd
/build_support/build_defs/zip_plugin_files.py
23866045a25456492a8a2a5023d128953549472c
[ "Apache-2.0" ]
permissive
jvolkman/intellij-protobuf-editor
4517d4c86dbb6c5f71f2e77592297700cad92241
6feb43d3b7d84d2743d108d9026f756bd90cb928
refs/heads/master
2021-06-24T01:22:42.892474
2021-06-02T16:03:56
2021-06-02T16:03:56
223,668,220
146
15
Apache-2.0
2021-04-12T17:24:45
2019-11-23T23:43:16
Java
UTF-8
Python
false
false
1,956
py
zip_plugin_files.py
#!/usr/bin/python # # Copyright 2019 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 ag...
7ff2f49233bc9a2716f4d795d134e13c8693b98c
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/quickFixes/PyMakeFunctionReturnTypeQuickFixTest/lambda_after.py
9fcb5446e72ab271ab892cc5d01f7b0d6741b4f6
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
101
py
lambda_after.py
from typing import Callable, Any def func() -> Callable[[Any], int]: return lambda x: 42<caret>
f4ac25e36d88644e3a920f6b0a0ee6b4a7fc1d60
3c41443364da8b44c74dce08ef94a1acd1b66b3e
/osf/management/commands/set_institution_storage_regions.py
ae5c7ac60d4c11e0d4cb2c826acfd310d58a70bd
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-warranty-disclaimer", "AGPL-3.0-only", "LGPL-2.0-or-later", "LicenseRef-scancode-proprietary-license", "MPL-1.1", "CPAL-1.0", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause", "Apache-2.0" ]
permissive
CenterForOpenScience/osf.io
71d9540be7989f7118a33e15bc4a6ce2d2492ac1
a3e0a0b9ddda5dd75fc8248d58f3bcdeece0323e
refs/heads/develop
2023-09-04T03:21:14.970917
2023-08-31T14:49:20
2023-08-31T14:49:20
10,199,599
683
390
Apache-2.0
2023-09-14T17:07:52
2013-05-21T15:53:37
Python
UTF-8
Python
false
false
4,375
py
set_institution_storage_regions.py
import logging from django.core.management.base import BaseCommand from django.db import transaction from osf.models import Institution, InstitutionStorageRegion from addons.osfstorage.models import Region logger = logging.getLogger(__name__) class Command(BaseCommand): """Set storage regions for institutions....
5770908757d93caa0d790965356943b644053e69
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Spacy/source2.7/spacy/__init__.py
bda109086db1d12e39bcc9949897dd54d1f361f4
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
630
py
__init__.py
# coding: utf8 from __future__ import unicode_literals from .cli.info import info as cli_info from .glossary import explain from .about import __version__ from .errors import Warnings, deprecation_warning from . import util def load(name, **overrides): depr_path = overrides.get('path') if depr_path not in (T...
e0c6fc2119cb835291bcc8e61ad7ad67770f1198
97e557d328b89adbd1459f8988a12ec3a9f4adc7
/unbound/tests/test_unbound.py
330b06cd8818e250a7723c42b1f9eec7e04f5587
[]
permissive
DataDog/integrations-extras
1b9c9928af4e5a146b9611aed29db206f420710c
1d20f8d945ef802fa6e01b41b6ba99148ac508a4
refs/heads/master
2023-08-31T04:01:33.555722
2023-08-30T18:51:09
2023-08-30T18:51:09
51,574,196
221
667
BSD-3-Clause
2023-09-14T16:07:56
2016-02-12T07:55:28
Python
UTF-8
Python
false
false
58,545
py
test_unbound.py
import os import mock import pytest from datadog_checks.base import AgentCheck, ConfigurationError from datadog_checks.unbound import UnboundCheck def test_nonexistent_unbound_control(): check = UnboundCheck('unbound', {}, {}) with mock.patch('datadog_checks.unbound.unbound.which', return_value=None): ...
50269b399e9e774f6d2df4bb5e27cbe9536d5457
c268dcf432f3b7171be6eb307aafbe1bd173285a
/reddit2telegram/channels/rlebanon/app.py
fff3d8d734c2a25dd3e093780fce58c9127f6c9e
[ "MIT" ]
permissive
Fillll/reddit2telegram
a7162da2cc08c81bcc8078ea4160d4ee07461fee
5d8ee3097e716734d55a72f5a16ce3d7467e2ed7
refs/heads/master
2023-08-09T10:34:16.163262
2023-07-30T18:36:19
2023-07-30T18:36:19
67,726,018
258
205
MIT
2023-09-07T02:36:36
2016-09-08T17:39:46
Python
UTF-8
Python
false
false
296
py
app.py
#encoding:utf-8 from utils import SupplyResult subreddit = 'lebanon' t_channel = '@RLebanon' def send_post(submission, r2t): if len(submission.comments.list()) < 40 and submission.score < 50: return SupplyResult.DO_NOT_WANT_THIS_SUBMISSION return r2t.send_simple(submission)
9076a6c715cd235f5eb4efeb5cffc707db462d69
675a6ed1aa824ac801783471e634e538d11acc8d
/tests/test_flask/test_g.py
ff97fc934b720957fd02630ba36c6d22dafaf04e
[ "MIT" ]
permissive
Eastwu5788/pre-request
7ea50b3930252b5a0f99bf9588d0fdd8f4ae4562
42da2bf5edc6690983188e1ee013c810ef8985db
refs/heads/master
2023-05-24T22:53:04.353491
2022-01-26T02:03:57
2022-01-26T02:03:57
100,257,925
102
9
MIT
2023-05-23T03:10:20
2017-08-14T10:56:59
Python
UTF-8
Python
false
false
429
py
test_g.py
# !/usr/local/python/bin/python # -*- coding: utf-8 -*- # (C) Wu Dong, 2020 # All rights reserved # @Author: 'Wu Dong <wudong@eastwu.cn>' # @Time: '2020-04-20 10:08' class TestG: def test_g_smoke(self, client): """ 测试通过flask g获取请求参数 """ resp = client.get("/g", data={ "email": ...
889fee1b21421be2e2507e3d748a4e6e0dbf23af
df4361db61d10a10c46ed5f18973d89e4efda82c
/armi/cases/inputModifiers/pinTypeInputModifiers.py
fcb21f4c79c278400299ae375b45f1d91eab1966
[ "Apache-2.0", "GPL-1.0-or-later", "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
terrapower/armi
5524741c5e80781e136ea3422aed0db8398f76ae
360791847227df3f3a337a996ef561e00f846a09
refs/heads/main
2023-09-04T05:16:29.080518
2023-09-01T16:10:29
2023-09-01T16:10:29
218,863,590
204
75
Apache-2.0
2023-09-14T20:42:24
2019-10-31T21:18:34
Python
UTF-8
Python
false
false
5,392
py
pinTypeInputModifiers.py
# Copyright 2019 TerraPower, 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 writi...
252ee26905296ec8248b2c39f33e2f80c8027925
7343ece3b82ac87a594865c4074623b45b0297b4
/synapse/config/federation.py
97636039b8ad7746629d999b86868a4c35b4ed09
[ "Apache-2.0" ]
permissive
matrix-org/synapse
a00111f83310783b78e2996557f8bbae4d9fb229
d35bed8369514fe727b4fe1afb68f48cc8b2655a
refs/heads/develop
2023-09-05T05:24:20.808942
2023-09-04T16:14:09
2023-09-04T16:14:09
22,844,864
12,215
2,869
Apache-2.0
2023-09-14T15:20:48
2014-08-11T15:51:42
Python
UTF-8
Python
false
false
3,643
py
federation.py
# Copyright 2020 The Matrix.org Foundation C.I.C. # # 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...
69a1ec3bdca6f5d53f1814db4f646f6cdf6c7e7d
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/tools/traceline/traceline/scripts/split.py
6c046c8775838a7842b66de419902842a187d544
[ "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
656
py
split.py
#!/usr/bin/env python # Copyright 2012 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Splits a single json file (read from stdin) into separate files of 40k records, named split.X. """ import sys def main(): filecount = 0 count = 0 ...
9bdfc0779803e97bac068d2b74506335820425e2
ea57d267ab31480d8d731b2c095e9da9ad989133
/aea/components/base.py
76c264900587dc7932145eb34954018da03aaa70
[ "Apache-2.0" ]
permissive
fetchai/agents-aea
6d034f1db6f3beacf31dac2f5a1baaa60c8edb7d
bec49adaeba661d8d0f03ac9935dc89f39d95a0d
refs/heads/main
2023-08-08T23:19:06.276643
2023-02-04T10:46:39
2023-02-04T10:46:39
203,558,879
192
58
Apache-2.0
2023-07-19T04:45:26
2019-08-21T10:12:47
Python
UTF-8
Python
false
false
6,532
py
base.py
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2023 Fetch.AI Limited # # 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 ...
6c0442cb5025a964dc972305f4d1eef265b28029
7b7c570b30d6d7a0e9b904c7cb378cfb0d0f0e07
/tests/recipes/test_transform_step.py
384842968f7a4c7758ee3142ad24b2514fcc8d3a
[ "Apache-2.0" ]
permissive
mlflow/mlflow
ca97bfbbf32f8e59f454e428f5e46eb3d34d062f
37298ffafcd34002352d01d579d4524790544267
refs/heads/master
2023-09-01T13:15:53.902815
2023-09-01T09:00:42
2023-09-01T09:00:42
136,202,695
14,102
3,748
Apache-2.0
2023-09-14T21:52:42
2018-06-05T16:05:58
Python
UTF-8
Python
false
false
6,246
py
test_transform_step.py
import os from pathlib import Path from unittest import mock from unittest.mock import Mock import pandas as pd import pytest import mlflow from mlflow import MlflowClient from mlflow.environment_variables import MLFLOW_RECIPES_EXECUTION_DIRECTORY from mlflow.exceptions import MlflowException from mlflow.recipes.step...
0123f2f49e5fe69dea257ced5a82d660685f8efc
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/MybankCreditLoantradeGuarletterInvoiceApplyModel.py
ba414520c919e6e07bb661f17baa56f6164a460d
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
6,934
py
MybankCreditLoantradeGuarletterInvoiceApplyModel.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.CreditPayMoneyVO import CreditPayMoneyVO class MybankCreditLoantradeGuarletterInvoiceApplyModel(object): def __init__(self): self._address = None self._apply_...
ddc342bad72d0823dc66b7a1ab0400e992416eb5
da1500e0d3040497614d5327d2461a22e934b4d8
/third_party/blink/Tools/Scripts/webkitpy/layout_tests/models/test_expectations_unittest.py
c8aea18fafd11afcd2a3e16abfb653efa03f755e
[ "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "BSD-3-Clause", "Apache-2.0", "MIT" ]
permissive
youtube/cobalt
34085fc93972ebe05b988b15410e99845efd1968
acefdaaadd3ef46f10f63d1acae2259e4024d383
refs/heads/main
2023-09-01T13:09:47.225174
2023-09-01T08:54:54
2023-09-01T08:54:54
50,049,789
169
80
BSD-3-Clause
2023-09-14T21:50:50
2016-01-20T18:11:34
null
UTF-8
Python
false
false
55,779
py
test_expectations_unittest.py
# Copyright (C) 2010 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
ba7668342c359164efe26311283689b049d6aa57
1aa4a01014ff5408c8979d2ee91435515a376bcb
/src/ui/SWMM/frmReportOptions.py
a82ad0e856993ecc9b6d202be458090ca9586400
[]
no_license
USEPA/SWMM-EPANET_User_Interface
49b41b27bfcf7a934203935ccac3cee2ed7c538c
d49a589fc923c716c9ff607228282073126ce6cc
refs/heads/dev-ui-py3qt5
2022-10-06T14:55:55.322050
2022-09-26T19:25:09
2022-09-26T19:25:09
48,242,880
121
77
null
2020-09-15T15:18:32
2015-12-18T15:41:52
Python
UTF-8
Python
false
false
5,843
py
frmReportOptions.py
import PyQt5.QtGui as QtGui import PyQt5.QtCore as QtCore from PyQt5.QtWidgets import QMainWindow, QAbstractItemView import core.swmm.options.report from ui.SWMM.frmReportOptionsDesigner import Ui_frmReportOptions class frmReportOptions(QMainWindow, Ui_frmReportOptions): def __init__(self, main_form=None): ...
c2aec272e610cb8d76e5bfe4aa7459e125427168
0f7022644a8c708cce420f1d95cc82f254d49c3a
/focal_loss.py
ff21d89af42d3f4506cb508e4590f7dd8f46a806
[ "MIT" ]
permissive
AdeelH/pytorch-multi-class-focal-loss
b6b597e0165c73aeab730e67127748f6aaaa2abe
2477bf68ac61d2d2e5e044c63f70b156073c5ffd
refs/heads/master
2023-04-12T10:58:14.782880
2022-10-14T18:38:26
2022-10-14T18:38:26
292,520,399
185
22
MIT
2022-10-14T18:38:27
2020-09-03T09:08:36
Python
UTF-8
Python
false
false
4,421
py
focal_loss.py
from typing import Optional, Sequence import torch from torch import Tensor from torch import nn from torch.nn import functional as F class FocalLoss(nn.Module): """ Focal Loss, as described in https://arxiv.org/abs/1708.02002. It is essentially an enhancement to cross entropy loss and is useful for cla...
df255115b0a159837d3746b4c9c8cae5d52024dc
2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5
/tests/time_tests/test_runner/conftest.py
48c9352b84d4449263d0535a75d747aa48dfbee6
[ "Apache-2.0" ]
permissive
openvinotoolkit/openvino
38ea745a247887a4e14580dbc9fc68005e2149f9
e4bed7a31c9f00d8afbfcabee3f64f55496ae56a
refs/heads/master
2023-08-18T03:47:44.572979
2023-08-17T21:24:59
2023-08-17T21:24:59
153,097,643
3,953
1,492
Apache-2.0
2023-09-14T21:42:24
2018-10-15T10:54:40
C++
UTF-8
Python
false
false
13,965
py
conftest.py
# Copyright (C) 2018-2023 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # """ Basic high-level plugin file for pytest. See [Writing plugins](https://docs.pytest.org/en/latest/writing_plugins.html) for more information. This plugin adds the following command-line options: * `--test_conf` - Path to test configu...
86065e08b069917aac018f34f6f29bfa170aebdb
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AlipayMarketingActivityGoodsBatchqueryResponse.py
aeb52ef8f9649686120d0d1c26958bd00b88eac7
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
2,884
py
AlipayMarketingActivityGoodsBatchqueryResponse.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.AppItemInfo import AppItemInfo from alipay.aop.api.domain.ActivityGoodsInfo import ActivityGoodsInfo class AlipayMarketingActivityGoodsBatchqueryResponse(AlipayRespon...
542aac17b2ee3550916c5560aefdad6dc4375ae9
549270020f6c8724e2ef1b12e38d11b025579f8d
/recipes/doxygen/all/conanfile.py
7b30ce53b00608a1a3fb920201e3adb4c4f15bce
[ "MIT" ]
permissive
conan-io/conan-center-index
1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43
3b17e69bb4e5601a850b6e006e44775e690bac33
refs/heads/master
2023-08-31T11:34:45.403978
2023-08-31T11:13:23
2023-08-31T11:13:23
204,671,232
844
1,820
MIT
2023-09-14T21:22:42
2019-08-27T09:43:58
Python
UTF-8
Python
false
false
3,743
py
conanfile.py
from conan import ConanFile from conan.errors import ConanInvalidConfiguration from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get from conan.tools.microsoft import check_min_vs, is_msvc_static_runtime fr...
f68d2595ed6b02afc3a5504a3363e435307b3cb8
2142d4023bce901857ce33e9c46919bf78b06779
/baselines/EMNLP2019/wikidata.py
47a263450bf6d8f95f67a1c766f60cfce8db7add
[ "MIT" ]
permissive
diffbot/knowledge-net
01281e75ba24a68c22a715b39ba93e8febc4b158
abc4ed3ebb88bfde8c1f02709371324ae6347ba0
refs/heads/master
2021-06-10T16:22:20.118879
2020-10-01T21:49:40
2020-10-01T21:49:40
179,616,035
260
38
MIT
2021-05-21T16:01:26
2019-04-05T03:55:03
Python
UTF-8
Python
false
false
2,582
py
wikidata.py
import requests import os from sqlitedict import SqliteDict import time import urllib if not os.path.exists("./tmp"): os.makedirs("./tmp") db = SqliteDict(os.path.join('./tmp','properties_subject.db'), autocommit=True) from SPARQLWrapper import SPARQLWrapper, JSON ENDPOINT = 'https://query.wikidata.org/sparql' ...
9cc3ab9fcc5821db060a3df7954fbf342b1e0a1f
8a1fdebb4527d7ef33d57251919f3b9e0e9b5b44
/pottery/exceptions.py
d76c03a88ba428f7b92332b36594b7dac1fb885a
[ "Apache-2.0" ]
permissive
brainix/pottery
5cebfeea72bd8c1b42572095f399145420de4d86
c7be6f1f25c5404a460b676cc60d4e6a931f8ee7
refs/heads/master
2022-12-15T16:13:12.107374
2022-05-02T09:16:01
2022-05-02T09:16:01
37,182,318
872
49
Apache-2.0
2022-12-08T12:37:20
2015-06-10T07:30:43
Python
UTF-8
Python
false
false
3,021
py
exceptions.py
# --------------------------------------------------------------------------- # # exceptions.py # # # # Copyright © 2015-2022, Rajiv Bakulesh Shah, original author. # ...
5303f29c2293fb4bf375445a6bb31740ddfa2d53
5917ffcb780cfcfe4e2b87b11fca1f68f387b239
/plenum/test/monitoring/test_post_monitoring_stats.py
00f6281743edf76eb266eb4ddfcee551b4041d7e
[ "Apache-2.0" ]
permissive
hyperledger/indy-plenum
6ff9f705af80dfa28d4cb92743683f78bb937aa3
698b9500ad3a7a15993af72a1c35a406c5673262
refs/heads/main
2023-08-29T01:32:26.384729
2023-06-20T16:42:11
2023-06-20T16:42:11
51,585,028
171
420
Apache-2.0
2023-06-20T16:42:14
2016-02-12T12:03:16
Python
UTF-8
Python
false
false
2,518
py
test_post_monitoring_stats.py
import pytest from plenum.server.monitor import Monitor from plenum.test.helper import sdk_send_random_and_check from plenum.test.node_catchup.helper import ensure_all_nodes_have_same_data WIND_SIZE = 5 MIN_CNT = 2 @pytest.fixture(scope='module') def tconf(tconf): old_val = tconf.Max3PCBatchSize old_through...
d3de339be067919ea5d2427760b1b7f3a6b0e67b
5e4913b3d7b6dfd9f35d9e5f24486bb6b6145125
/src/bindings/swig/python/tests_kdb/test_key.py
2e9ecd7f22e49d47738d445a6587dcec9616bfdc
[ "BSD-3-Clause" ]
permissive
ElektraInitiative/libelektra
ff5d5cfc4bf91d704f58405b14ea694aad3a2edd
dbbe4ae4f669c322a8f95f59112d3f5fc370bbd9
refs/heads/master
2023-08-05T14:54:48.081359
2023-08-04T12:40:00
2023-08-04T12:40:00
21,063,580
215
170
BSD-3-Clause
2023-09-07T13:34:30
2014-06-21T08:01:04
C
UTF-8
Python
false
false
6,084
py
test_key.py
import kdb, unittest class Key(unittest.TestCase): def setUp(self): self.key = kdb.Key("user:/foo/bar", kdb.KEY_VALUE, "value", kdb.KEY_META, "by", "manuel", kdb.KEY_META, "owner", "myowner" ) self.bkey = kdb.Key("system:/bkey", kdb.KEY_VALUE, b"bvalue\0\0", kdb.KEY_END, kdb.KEY_META, ...
54bed0b70e16762f3b2db50210f651e0e46177e5
3a2071c34e3c35847b2bcc2a5d3b3a74114daa0f
/tools/examples/svnshell.py
9c67af4664c470c421e272ef4a9ef850fcd80271
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-other-permissive", "X11", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference", "MIT", "HPND-Markus-Kuhn", "LicenseRef-scancode-unicode", "Apache-2.0", "FSFAP" ]
permissive
apache/subversion
18a9142afe63f060ffc0814fe0c758c91ad8bd31
dd957c4991e61bde23cc60d13449ea8b65f80c43
refs/heads/trunk
2023-09-04T15:22:36.755177
2023-08-29T19:55:03
2023-08-29T19:55:03
454,263
520
207
Apache-2.0
2023-08-26T14:17:30
2009-12-31T09:00:10
C
UTF-8
Python
false
false
11,429
py
svnshell.py
#!/usr/bin/env python # # svnshell.py : a Python-based shell interface for cruising 'round in # the filesystem. # ###################################################################### # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOT...
25ccf416a38eaee3380d9844d935077b1fd3c23a
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/ErrorDishStallEntity.py
fd6fa5786cbc18dd6e567ce775972cd5fbc8fafb
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
2,806
py
ErrorDishStallEntity.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.ErrorDishEntity import ErrorDishEntity from alipay.aop.api.domain.ErrorDishEntity import ErrorDishEntity class ErrorDishStallEntity(object): def __init__(self): self....
950cc1b0c4b20e063467368c5df51579b2a38fa9
b12e054e945ffe0689422a74684dc7dc8c70669f
/test/test_segmentation.py
e7c25212027567be156aabb6328e5a4ac8e6ab52
[ "MIT" ]
permissive
FZJ-IEK3-VSA/tsam
9da0aaaf6468497b88c9e29ba555368db88843b6
a86c4cd946d1b77faa2ca1d78018f092fe57b8d4
refs/heads/master
2023-09-01T06:19:47.392079
2023-08-25T07:10:36
2023-08-25T07:10:36
91,314,171
151
37
MIT
2023-08-25T07:06:51
2017-05-15T08:36:11
Python
UTF-8
Python
false
false
3,700
py
test_segmentation.py
import os import time import pandas as pd import numpy as np import tsam.timeseriesaggregation as tsam def test_segmentation(): raw = pd.read_csv( os.path.join(os.path.dirname(__file__), "..", "examples", "testdata.csv"), index_col=0, ) orig_raw = pd.read_csv( os.path.join( ...
332db7a76842ae712c7cf5889510a125d5875b10
ef1def58b933921ccf31bece9fc6eb5f7ffb9a18
/tensorhive/core/ssh.py
bd2f9fd6b2d511d77520f72de3fbc4a5be819de6
[ "Apache-2.0" ]
permissive
roscisz/TensorHive
4b33acd727e0b294a4a12af972c471e1254136aa
5b50245d285618044a9a71c06ea5361a48ad4acb
refs/heads/master
2023-03-10T05:09:08.874394
2022-02-02T11:08:21
2022-02-02T11:08:21
98,513,283
153
26
Apache-2.0
2023-03-01T02:26:54
2017-07-27T08:37:35
Python
UTF-8
Python
false
false
6,092
py
ssh.py
from tensorhive.core.utils.decorators import memoize, timeit from tensorhive.config import SSH from pssh.clients.native import ParallelSSHClient from pssh.exceptions import AuthenticationException from typing import Optional, Dict, Tuple, Generator, List from paramiko.rsakey import RSAKey from pathlib import PosixPath ...
35bfd207843b0be8a6e55291a3ded30007000e43
4b15f318ba3332ee946cb0b2838c93e7935b9b89
/tests/functional/tests/engine/test_io_flags.py
5fe1b3040cbca350f81dac8bb77d203744350b09
[ "BSD-3-Clause" ]
permissive
Open-CAS/ocf
c4f8a5c9c1b254a905fda75be2c19bd7c8ebd450
016d7a8ee2822d672c308264e79bae4081e7930e
refs/heads/master
2023-05-28T08:40:51.328181
2023-05-11T08:11:57
2023-05-11T08:11:57
152,160,836
168
94
BSD-3-Clause
2023-09-14T08:01:50
2018-10-08T23:46:10
C
UTF-8
Python
false
false
3,521
py
test_io_flags.py
# # Copyright(c) 2020-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # from ctypes import c_int, memmove, cast, c_void_p from enum import IntEnum from itertools import product import random import pytest from pyocf.types.cache import Cache, CacheMode from pyocf.types.core import Core from pyocf.types...
05f72ea15b6d788ee370ea8aea6e39b62d4063b6
d110546d747d7e3865ce5742d5fca09f404623c0
/tests/pytests/unit/states/test_influxdb08_database.py
d5685de213120132f386a64ffe4fb38dcaf7988a
[ "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
3,027
py
test_influxdb08_database.py
""" :codeauthor: Jayesh Kariya <jayeshk@saltstack.com> """ import pytest import salt.states.influxdb08_database as influxdb08_database from tests.support.mock import MagicMock, patch @pytest.fixture def configure_loader_modules(): return {influxdb08_database: {}} def test_present(): """ Test to en...
e9b7caef9c51abd6afff62a998413f2976f899ac
6b551bec528a1d6544201d3c6d86835e885343b5
/webcam.py
2b054228809803eeda08af1bb588d09de5df9771
[ "MIT", "Apache-2.0" ]
permissive
hukkelas/DeepPrivacy
9471c8e9389828aa09330905081205b061161d81
5ee3f1b0608f03ac54d5694b6421f6132cb63f0e
refs/heads/master
2023-08-16T00:41:02.366235
2023-03-28T06:23:34
2023-03-28T06:23:34
206,106,232
1,288
194
MIT
2021-08-18T08:21:33
2019-09-03T15:08:27
Python
UTF-8
Python
false
false
1,732
py
webcam.py
import cv2 import time import numpy as np import torch from deep_privacy import cli from deep_privacy.visualization import utils as vis_utils from deep_privacy.utils import BufferlessVideoCapture from deep_privacy.build import build_anonymizer import os # Configs torch.backends.cudnn.benchmark = False parser = cli.get...
d72448376c052f0258db792fa11c682b7776216e
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/ZeroTrustAnalyticsPlatform/Integrations/ZeroTrustAnalyticsPlatform/test_data/api_data.py
5e9944225ee0b0d1a56096ab8c903bf8bd59387d
[ "MIT" ]
permissive
demisto/content
6d4722d46f0ff0beea2748e9f7de585bf91a78b4
890def5a0e0ae8d6eaa538148249ddbc851dbb6b
refs/heads/master
2023-09-04T00:02:25.618032
2023-09-03T21:56:22
2023-09-03T21:56:22
60,525,392
1,023
1,921
MIT
2023-09-14T20:55:24
2016-06-06T12:17:02
Python
UTF-8
Python
false
false
3,388
py
api_data.py
def alert_data(): return [ { "datetime_created": "2021-05-11T20:11:31Z", "datetime_closed": None, "datetime_firstevent": "2021-05-11T20:11:30Z", "datetime_events_added": "2021-05-11T20:11:31Z", "datetime_org_assigned": "2021-05-11T20:11:31Z", ...
0b759320031ffb7d4ea33623383f3488864125ae
64d923ab490341af97c4e7f6d91bf0e6ccefdf4b
/tensorforce/agents/recorder.py
eb255f8fa9e95467ba57e9d7dfba98a2660617eb
[ "Apache-2.0" ]
permissive
tensorforce/tensorforce
38d458fedeeaa481adf083397829cea434d020cd
1bf4c3abb471062fb66f9fe52852437756fd527b
refs/heads/master
2023-08-17T17:35:34.578444
2023-08-14T20:14:08
2023-08-14T20:14:08
85,491,050
1,312
246
Apache-2.0
2023-08-14T20:14:10
2017-03-19T16:24:22
Python
UTF-8
Python
false
false
24,304
py
recorder.py
# Copyright 2020 Tensorforce 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 required by applicable la...
257be356c7486df24bdcdf3eb9f3058c98b792ed
65c8f01506df85ffa42094c45a844d4262f398e2
/tools/todos.py
8d0c665409108afb7044e65bfb848c752696fc9d
[ "Apache-2.0" ]
permissive
robocorp/rpaframework
da4b523c76f18967d7a267f571b8a64d661dc1c8
321efaa3bb85e8bf1a4be8e1f1720ad9230dd962
refs/heads/master
2023-09-05T20:25:53.305425
2023-09-04T16:49:28
2023-09-04T16:49:28
231,374,845
852
164
Apache-2.0
2023-09-14T09:11:30
2020-01-02T12:11:15
Python
UTF-8
Python
false
false
2,239
py
todos.py
#!/usr/bin/env python3 import argparse import json import os import re import sys from collections import defaultdict from contextlib import contextmanager from io import StringIO from pathlib import Path from pylint.lint import Run TODO_PATTERN = re.compile(r"(todo|fixme|xxx)[\:\.]?\s*(.+)", re.IGNORECASE) @conte...
188c60d383655b241199d837a544c7f8f35b378d
52a677b94056d3397b4a499bc9185adb68a63f05
/buildman/build_token.py
2b3b3e0819681ae0c1da6dfd89cc124962e621a4
[ "Apache-2.0" ]
permissive
quay/quay
9b6fcff54efc0dbf7c6d91fa80676950555b6f1a
e400a0c22c5f89dd35d571654b13d262b1f6e3b3
refs/heads/master
2023-08-28T15:08:38.001842
2023-08-28T13:52:31
2023-08-28T13:52:31
220,517,730
2,363
322
Apache-2.0
2023-09-14T17:43:48
2019-11-08T17:37:05
Python
UTF-8
Python
false
false
3,719
py
build_token.py
import logging import jsonschema import jwt from app import instance_keys from util.security import jwtutil from util.security.registry_jwt import ( ALGORITHM, JWT_CLOCK_SKEW_SECONDS, InvalidBearerTokenException, generate_bearer_token, ) logger = logging.getLogger(__name__) ANONYMOUS_SUB = "(anonym...
f0e49480c1d45e6eee586adfab11b138acbb47ea
136cf91ce80e12dde9bfc3f9d0c5940fe8a789bb
/fitting/measure.py
b56d48dd80e240e0c4b7fef64cb0913f4627efa6
[ "CC-BY-4.0" ]
permissive
Rubikplayer/flame-fitting
e80087365cd21c2afbb053ef8013faba23a08a78
ca806ce13a8964231136bd226bf3255fc2e476de
refs/heads/master
2023-08-12T18:46:02.697078
2022-12-30T15:38:40
2022-12-30T15:38:40
111,953,122
601
109
null
2023-02-16T02:19:52
2017-11-24T20:23:41
Python
UTF-8
Python
false
false
1,346
py
measure.py
''' Max-Planck-Gesellschaft zur Foerderung der Wissenschaften e.V. (MPG) is holder of all proprietary rights on this computer program. Using this computer program means that you agree to the terms in the LICENSE file (https://flame.is.tue.mpg.de/modellicense) included with the FLAME model. Any use not explicitly gran...
4a4bd5ff67b669d9ad56778b06644fcdd52bc1e4
3ea12bf1031313a823de4e02e008d9e98eeaadfa
/lsassy/dumpmethod/procdump.py
29362be5c87305a4bc38d7c2ff5fac85f893cfeb
[ "MIT" ]
permissive
Hackndo/lsassy
85ef24b9a32a7eb428f338a839ed8504d0739695
4b1ddf1b3491b014aa27a68f3aa26cb0c962b0a5
refs/heads/master
2023-08-23T02:10:16.789757
2023-06-30T20:06:09
2023-06-30T20:06:09
225,634,372
1,700
215
MIT
2023-06-22T18:42:56
2019-12-03T14:03:41
Python
UTF-8
Python
false
false
1,158
py
procdump.py
from lsassy.dumpmethod import IDumpMethod, Dependency class DumpMethod(IDumpMethod): custom_dump_ext_support = False dump_ext = "dmp" def __init__(self, session, timeout, time_between_commands): super().__init__(session, timeout, time_between_commands) self.procdump = Dependency(...
62c648bb9667561e01d88372cfe4f5f2d1704ff4
fb1e852da0a026fb59c8cb24aeb40e62005501f1
/edgelm/examples/wav2vec/vq-wav2vec_featurize.py
7b025f18b5b13eb562e904a5cfd9e31cb934f02d
[ "LGPL-2.1-or-later", "LicenseRef-scancode-free-unknown", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
microsoft/unilm
134aa44867c5ed36222220d3f4fd9616d02db573
b60c741f746877293bb85eed6806736fc8fa0ffd
refs/heads/master
2023-08-31T04:09:05.779071
2023-08-29T14:07:57
2023-08-29T14:07:57
198,350,484
15,313
2,192
MIT
2023-08-19T11:33:20
2019-07-23T04:15:28
Python
UTF-8
Python
false
false
7,930
py
vq-wav2vec_featurize.py
#!/usr/bin/env python3 # Copyright (c) Facebook, 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. """ Helper script to pre-compute embeddings for a flashlight (previously called wav2letter++) dataset """ im...
605f520e29fe21f8f8c5f51a1cb7fa4671056bea
b347bc4b850dee4a8a9a171b563a3f31230ce1c7
/sktime/transformations/series/detrend/__init__.py
875d1041766b230516709cb3fc36e97ce6a36da3
[ "BSD-3-Clause" ]
permissive
sktime/sktime
5963962df338c5931a2f9f1794d1203c50ddc27e
70b2bfaaa597eb31bc3a1032366dcc0e1f4c8a9f
refs/heads/main
2023-08-22T18:20:08.022950
2023-08-22T15:24:39
2023-08-22T15:24:39
156,401,841
1,117
268
BSD-3-Clause
2023-09-14T20:44:21
2018-11-06T15:08:24
Python
UTF-8
Python
false
false
490
py
__init__.py
# copyright: sktime developers, BSD-3-Clause License (see LICENSE file) """Transformer module for detrending and deseasonalization.""" __author__ = ["mloning", "eyalshafran", "SveaMeyer13"] __all__ = ["Detrender", "Deseasonalizer", "ConditionalDeseasonalizer", "STLTransformer"] from sktime.transformations.series.detr...
557b2156663048e0c0e77d63bf19f245dad82fcf
fad4aa5a174627b8930beb8f5f987dd62c88957e
/sky/skylet/providers/ibm/vpc_provider.py
6d691b765f790293820d514d7c1ad0cff62cf162
[ "Apache-2.0" ]
permissive
skypilot-org/skypilot
603e29ecb3ce3b25d308f018fd402488ee352ef0
e58f33f315ca08c6e057ab9a2d00cd27476529a1
refs/heads/master
2023-08-16T21:46:53.379586
2023-08-16T02:17:21
2023-08-16T02:17:21
395,140,743
3,416
220
Apache-2.0
2023-09-14T21:20:44
2021-08-11T23:32:15
Python
UTF-8
Python
false
false
34,630
py
vpc_provider.py
""" module allocating VPC - network namespace and configuration for Ray's cluster. used by the node_provider module to group the nodes under the same subnet, tagged by the same cluster name. """ import copy import json import textwrap import time import uuid from concurrent.futures import ThreadPoolExecutor import re...
9d1fe07e5381c69f1443f8cf7b916acf1066c792
47d69d21f53333d93d5ba9973840ef192808a090
/src/tox/session/cmd/run/common.py
1bc0fc77c6474bcd2bf6cdbd2d107541209f2caf
[ "MIT" ]
permissive
tox-dev/tox
27ce3072e7faf5c88ed5305bbd66359369bba13d
da0885cd162fb02de866831a75eca9dcfe87eb36
refs/heads/main
2023-09-01T11:45:18.097559
2023-08-31T14:51:57
2023-08-31T14:51:57
68,465,360
3,512
624
MIT
2023-09-11T20:58:32
2016-09-17T16:54:22
Python
UTF-8
Python
false
false
17,665
py
common.py
"""Common functionality shared across multiple type of runs.""" from __future__ import annotations import logging import os import random import sys import time from argparse import Action, ArgumentError, ArgumentParser, Namespace from concurrent.futures import CancelledError, Future, ThreadPoolExecutor, as_completed ...
33be9a6cfead71b0842df603e9ed9ec815abe9cf
a4ea525e226d6c401fdb87a6e9adfdc5d07e6020
/src/azure-cli/azure/cli/command_modules/security/tests/latest/test_security_contacts_scenario.py
812a76ffd7880329d166cf7b48eed9519bda2608
[ "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
1,631
py
test_security_contacts_scenario.py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
959c24d86d0dc57c03e4e25f6da368db16ddb816
a133a7c64f6e08def0f936898466990d1fd1b31f
/atomate/vasp/workflows/__init__.py
d337868373cddc700f8ecc51bce2836803bcf41e
[ "LicenseRef-scancode-hdf5", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
hackingmaterials/atomate
a6458f9323b8f14d7b4ebb6558fb578d50a3f1ed
f4060e55ae3a22289fde9516ff0e8e4ac1d22190
refs/heads/main
2023-08-07T21:53:24.701157
2023-07-25T22:28:06
2023-07-25T22:28:06
43,023,379
217
173
NOASSERTION
2023-08-25T22:09:48
2015-09-23T19:53:55
Python
UTF-8
Python
false
false
508
py
__init__.py
from .presets.core import ( wf_bandstructure, wf_bandstructure_hse, wf_bandstructure_no_opt, wf_bandstructure_plus_boltztrap, wf_bandstructure_plus_hse, wf_bulk_modulus, wf_dielectric_constant, wf_dielectric_constant_no_opt, wf_elastic_constant, wf_elastic_constant_minimal, w...
d8303ebae3b21758541b02e57e7a859d98b0ac2c
51b8e63958f1dd5be979d4f79d900bee420eefdc
/batch_processing/driver.py
f227ee5832575b2792431f71b135d21c22eeb974
[]
no_license
mozilla/DeepSpeech-examples
c46ea4bc4ebd1363a41761b638513647ff5333a5
0bfefeb8e4769e3c895b9bc6c5a34cfbdfcbd645
refs/heads/r0.9
2023-08-25T04:04:19.231750
2021-04-06T17:05:04
2021-04-06T17:05:04
225,900,000
763
405
null
2023-07-25T18:08:01
2019-12-04T15:35:37
Python
UTF-8
Python
false
false
2,073
py
driver.py
import glob import json import os from os.path import expanduser import click import delegator # first loop over the files # convert them to wave # record things in 16000hz in the future or you gret this # Warning: original sample rate (44100) is different than 16000h.z Resampling might produce erratic speech recog...
3fe3c33e8841e6ca26c8546de2b2ba8324923c05
dea1c40b5bac7e8dfbcc33e587b15b4487fe25f4
/samples/function_chaining/E1_HelloSequence/__init__.py
d8945840dcfeabb53a2f35a7916a1127cca104d8
[ "MIT" ]
permissive
Azure/azure-functions-durable-python
93503441d7ec26c7a54acc0843a88440765def1d
5d30ae3b6b1158b021eb848629c1399381d783a8
refs/heads/dev
2023-08-10T22:22:33.381414
2023-08-04T17:41:38
2023-08-04T17:41:38
167,911,661
104
54
MIT
2023-09-07T22:58:23
2019-01-28T06:38:12
Python
UTF-8
Python
false
false
431
py
__init__.py
import azure.functions as func import azure.durable_functions as df def orchestrator_function(context: df.DurableOrchestrationContext): result1 = yield context.call_activity('E1_SayHello', "Tokyo") result2 = yield context.call_activity('E1_SayHello', "Seattle") result3 = yield context.call_activity('E1_Sa...
7845bff4b3af13cced84694d11e6b8134ec8e56b
86bd1a9b92ffe3edb1982515be7d482584b990ba
/test/test_traffic_control.py
176a8bc47b4e64be59fd6ccf5f21f441a0440bfa
[ "MIT" ]
permissive
thombashi/tcconfig
e9202538382d371f34190947cbd3ac0b7332c4db
e14f9fbdb235e2d6b2748962735dcf3fa1f356f3
refs/heads/master
2023-08-19T22:51:56.590952
2022-09-26T13:42:13
2022-09-26T13:42:13
49,825,187
753
86
MIT
2021-12-12T03:54:10
2016-01-17T16:24:09
Python
UTF-8
Python
false
false
11,872
py
test_traffic_control.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import itertools import pytest from allpairspy import AllPairs from humanreadable import ParameterError from tcconfig._const import ShapingAlgorithm, Tc, TrafficDirection from tcconfig._netem_param import ( MAX_CORRUPTION_RATE, MAX_PACKE...
5d588d6f3745b566c0f0b92933c99fc2729ea437
86393bd0d16c69363aa1afb4c4841fff6314493c
/incubating/wrappers/s2i/java-jni/java-jni/JavaJNIServer.py
a532b76867858f2e0d016f4682d8b2ab5b1210a5
[ "Apache-2.0" ]
permissive
SeldonIO/seldon-core
0179fc490c439dbc04f2b8e6157f39291cb11aac
6652d080ea10cfca082be7090d12b9e776d96d7a
refs/heads/master
2023-08-19T08:32:10.714354
2023-08-15T12:55:57
2023-08-15T12:55:57
114,898,943
3,947
885
Apache-2.0
2023-09-13T11:29:37
2017-12-20T14:51:54
HTML
UTF-8
Python
false
false
1,656
py
JavaJNIServer.py
import os import logging import jpype from seldon_core.user_model import SeldonComponent logger = logging.getLogger(__name__) class JavaJNIServer(SeldonComponent): def __init__(self): super().__init__() self._model = None def load(self): """ We can only have a single JVM per...
8267f7917cd78643469ba5415c1b1a16a15e82ab
6c37d1d2437a08e43b13d621d4a8da4da7135b3a
/yt_dlp/extractor/ooyala.py
65afccdb1c95824c2da74fc1961bc41d805bf0e0
[ "Unlicense", "GPL-2.0-or-later", "MPL-2.0", "BSD-3-Clause", "GPL-3.0-or-later", "LGPL-2.1-only", "BSD-2-Clause", "MIT" ]
permissive
yt-dlp/yt-dlp
be040bde10cc40258c879c75ab30215686352824
d3d81cc98f554d0adb87d24bfd6fabaaa803944d
refs/heads/master
2023-09-05T21:15:21.050538
2023-09-05T20:35:23
2023-09-05T20:35:23
307,260,205
52,742
5,376
Unlicense
2023-09-14T05:22:08
2020-10-26T04:22:55
Python
UTF-8
Python
false
false
10,067
py
ooyala.py
import base64 import re from .common import InfoExtractor from ..compat import ( compat_b64decode, compat_str, ) from ..utils import ( determine_ext, float_or_none, int_or_none, smuggle_url, try_get, unsmuggle_url, ) class OoyalaBaseIE(InfoExtractor): _PLAYER_BASE = 'http://player...
2e6a7778b2ccb30e66bdb46a711c632f8bfb24bd
0d814eb8f2bfef32381834a9fcc8a1e9dbff48d9
/test/test_rpc_compatibility.py
12138de58a7b7d1e3b78ae07746c3927365795e5
[ "Apache-2.0" ]
permissive
polkascan/py-substrate-interface
cdc71e44dd9208bce5771cbe1fd9be97bc9e5d18
111ff53e23b419cb756146e3d6037a8a6da341eb
refs/heads/master
2023-08-31T19:27:26.715840
2023-08-18T13:42:12
2023-08-18T13:42:12
180,998,078
221
109
Apache-2.0
2023-08-27T16:18:15
2019-04-12T11:52:31
Python
UTF-8
Python
false
false
11,188
py
test_rpc_compatibility.py
# Python Substrate Interface Library # # Copyright 2018-2023 Stichting Polkascan (Polkascan 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/LIC...
927d6b64b830bf18d51b3a195305e1bf7ad7b4b3
d6aae799e18e907fb413b715200c7832252a87e5
/facial-motion-transfer/reenactgan/test_decoder.py
ceb44bab90a5835d8f5cf8bc3bf09fa787daa8b4
[ "BSD-3-Clause", "MIT", "LicenseRef-scancode-proprietary-license", "Apache-2.0", "CC-BY-NC-4.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
sony/nnabla-examples
0d0bbd5df3028996e790bcf07248fdb0932697d1
41f71faa6efff7774a76bbd5af3198322a90a6ab
refs/heads/master
2023-09-04T03:45:54.023899
2023-08-22T03:31:21
2023-08-22T03:31:21
109,625,584
308
108
Apache-2.0
2023-08-22T03:31:23
2017-11-05T23:30:40
Python
UTF-8
Python
false
false
4,593
py
test_decoder.py
# Copyright 2020,2021 Sony Corporation. # Copyright 2021 Sony Group 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 ...
47165dbf6d7f25b249aa557268ce036ff0cdc0b4
e8b04bef9aa1ac8e2c109dd315f133c8f4d28ae6
/projects/samples/devices/controllers/camera_segmentation/camera_segmentation.py
b3b4530e47bbd7b4566917f369c30c87036505ae
[ "Apache-2.0" ]
permissive
cyberbotics/webots
f075dacf4067e8dcebbfd89e8690df8525f6d745
8aba6eaae76989facf3442305c8089d3cc366bcf
refs/heads/master
2023-08-31T09:41:13.205940
2023-08-18T10:48:30
2023-08-18T10:48:30
156,228,018
2,495
1,525
Apache-2.0
2023-08-28T16:30:33
2018-11-05T14:09:10
C++
UTF-8
Python
false
false
2,091
py
camera_segmentation.py
# Copyright 1996-2023 Cyberbotics 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
3d3ddab2b13aeff1a4794e68149c6ccdd1aec1c4
c3ddaf355e551b04a7ba9882497320d49c2cb461
/bin/console
0ec2645a0fe29c6833280f6f035838e00a934990
[ "MIT" ]
permissive
webdevops/Dockerfile
f64dd04803279f20eb9881d9088117fd38df9909
e902a5dac2bc382905468b5db8481e43a7ecfcfb
refs/heads/master
2023-05-25T23:36:24.053754
2023-05-16T14:02:38
2023-05-16T14:02:38
44,695,081
1,630
599
MIT
2023-05-16T14:02:40
2015-10-21T18:09:48
Shell
UTF-8
Python
false
false
4,004
console
#!/usr/bin/env python # -*- coding: utf-8 -*- import os, sys # prevent bytecode sys.dont_write_bytecode = True # unbuffered stdout / stderr sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) sys.stderr = os.fdopen(sys.stderr.fileno(), 'w', 0) import re, yaml from cleo import Application from webdevops import Conf...
a1d0400f668a7a80af32f74c2fad6321c48e1860
010279e2ba272d09e9d2c4e903722e5faba2cf7a
/catboost/pytest/smoke_tests/classification_tutorial_cpu.py
0d140f566cbfbf95ba251cba74e2afe449b4a1fc
[ "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
18,866
py
classification_tutorial_cpu.py
import os try: import catboost_dev as catboost from catboost_dev import * from catboost_dev import datasets from catboost_dev.utils import create_cd from catboost_dev import CatBoostClassifier from catboost_dev.widget import MetricVisualizer from catboost_dev import cv from catboost_dev....
96b16240cf8d7e7043366e30c4afde0e7f5a9365
393e491a112a6459ca23419596a793251676b39a
/src/petals/client/routing/__init__.py
3be2710846df972373f2821cfe0d16ca0d30de3c
[ "MIT" ]
permissive
bigscience-workshop/petals
24508ba536377166ddcdf4a6a56b8cd3f5acf280
6ef6bf5fa24282809ec57ff7c60a43642c100daa
refs/heads/main
2023-09-01T04:19:24.801624
2023-08-31T06:31:03
2023-08-31T06:31:03
502,482,803
6,598
338
MIT
2023-09-07T01:29:15
2022-06-12T00:10:27
Python
UTF-8
Python
false
false
181
py
__init__.py
from petals.client.routing.sequence_manager import RemoteSequenceManager, maybe_log_traceback from petals.client.routing.spending_policy import NoSpendingPolicy, SpendingPolicyBase
c04e02203a1c45adabee96e4f10636698e7f8876
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/battle_royale/scripts/client/battle_royale/gui/Scaleform/daapi/view/battle/consumables_panel.py
390929b1a5d61ce71391009013f3988c73b9ad4e
[]
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
6,754
py
consumables_panel.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: battle_royale/scripts/client/battle_royale/gui/Scaleform/daapi/view/battle/consumables_panel.py import BigWorld from constants import EQUIPMENT_STAGES from Event import EventsSubscriber from gui.Scaleform.daapi.view.battle.shared.consumables_panel...
a2ae69332cbdffa7e6f97abfefc57c47ea4ab15c
610244a938791d3d05c749804725f4a9b3831a96
/diagrams/ibm/general.py
5b49007062ef169f06f44042c9024d083df99fe7
[ "MIT" ]
permissive
mingrammer/diagrams
66b62ab484eca9cc439aee9b1cffedb1fcb9dba6
b19b09761db6f0037fd76e527b9ce6918fbdfcfc
refs/heads/master
2023-09-04T04:57:36.727192
2023-05-22T23:51:10
2023-05-22T23:51:10
237,791,077
31,257
2,119
MIT
2023-09-05T15:45:52
2020-02-02T15:23:24
Python
UTF-8
Python
false
false
2,082
py
general.py
# This module is automatically generated by autogen.sh. DO NOT EDIT. from . import _IBM class _General(_IBM): _type = "general" _icon_dir = "resources/ibm/general" class CloudMessaging(_General): _icon = "cloud-messaging.png" class CloudServices(_General): _icon = "cloud-services.png" class Clo...
514593362ededf0d0c41028e143217a436467e51
ca10e5645aa2e8152d6219d31ac77d3ed50096c0
/suite/auto-sync/CppTranslator/Patches/SizeAssignments.py
1f4144e2ddc9b0b56103c16b7d1b57534c2ddb39
[ "BSD-3-Clause", "NCSA" ]
permissive
capstone-engine/capstone
fc4f1b14eded800818f2ed64eafaf342e6046f9b
f036d2dbb6a9f0d1e0dc9c14b4f44878aeed260a
refs/heads/next
2023-09-02T14:38:15.356818
2023-08-30T03:13:17
2023-08-30T03:13:17
14,735,429
1,390
292
NOASSERTION
2023-09-14T20:47:20
2013-11-27T02:32:11
C
UTF-8
Python
false
false
1,086
py
SizeAssignments.py
import re from tree_sitter import Node from Patches.HelperMethods import get_text, get_function_params_of_node from Patches.Patch import Patch class SizeAssignment(Patch): """ Patch Size = <num> to *Size = <num> if Size is a reference. """ def __init__(self, priority: int): ...
027e04c3aa481d58852d139e71570cbc2fb43b74
4d158bde772e67117ea949efa45b795ed055850b
/tools/interface/xTAPP.py
4b33a0e52723bed8b70fdfd5be0d68039f0dbcdf
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ttadano/alamode
fc9e9371d95b6f84e43bc59b559879ad915cccb9
b4fd81af88a322356492e6648965d1d2e004f7c3
refs/heads/develop
2023-07-06T05:58:45.217759
2023-06-16T11:48:16
2023-06-16T11:48:16
22,987,128
130
56
MIT
2023-04-01T06:49:22
2014-08-15T11:05:42
C++
UTF-8
Python
false
false
17,751
py
xTAPP.py
# # xTAPP.py # # Interface to xTAPP (http://xtapp.cp.is.s.u-tokyo.ac.jp) # # Copyright (c) 2014-2020 Terumasa Tadano # # This file is distributed under the terms of the MIT license. # Please see the file 'LICENCE.txt' in the root directory # or http://opensource.org/licenses/mit-license.php for information. # import n...
29e213bc9d1a29530f199035b904ea1b7e172176
af101b467134e10270bb72d02f41f07daa7f57d8
/tests/test_evaluation/test_functional/test_gaussian_funcs.py
fa3d6e76541376c975997f2479de5232d5af967f
[ "Apache-2.0" ]
permissive
open-mmlab/mmagic
4d864853417db300de4dfe7e83ce380fd1557a23
a382f143c0fd20d227e1e5524831ba26a568190d
refs/heads/main
2023-08-31T14:40:24.936423
2023-08-30T05:05:56
2023-08-30T05:05:56
203,999,962
1,370
192
Apache-2.0
2023-09-14T11:39:18
2019-08-23T13:04:29
Jupyter Notebook
UTF-8
Python
false
false
276
py
test_gaussian_funcs.py
# Copyright (c) OpenMMLab. All rights reserved. import numpy as np from mmagic.evaluation.functional import gauss_gradient def test_gauss_gradient(): img = np.random.randint(0, 255, size=(8, 8, 3)) grad = gauss_gradient(img, 1.4) assert grad.shape == (8, 8, 3)
f06295f08869cd4fd90582c2e6ea2a5135536bfa
93713f46f16f1e29b725f263da164fed24ebf8a8
/Library/lib/python3.7/site-packages/networkx/algorithms/node_classification/tests/test_local_and_global_consistency.py
3a64fbe7bbcaf5a0ffd4fcf01c65eff0018e3599
[ "BSD-3-Clause" ]
permissive
holzschu/Carnets
b83d15136d25db640cea023abb5c280b26a9620e
1ad7ec05fb1e3676ac879585296c513c3ee50ef9
refs/heads/master
2023-02-20T12:05:14.980685
2023-02-13T15:59:23
2023-02-13T15:59:23
167,671,526
541
36
BSD-3-Clause
2022-11-29T03:08:22
2019-01-26T09:26:46
Python
UTF-8
Python
false
false
2,446
py
test_local_and_global_consistency.py
#!/usr/bin/env python from nose.tools import * from nose import SkipTest import networkx as nx from networkx.algorithms import node_classification class TestLocalAndGlobalConsistency: @classmethod def setupClass(cls): global numpy global scipy try: import numpy exc...
0a210efb97922df88c2802eb997b66ac6156118d
3358a23ed0b97eaca6035778feecb74a97f24d0b
/tests/_ndb/test_converter.py
026a1f7cb80a3a982a0aaa6758bd28a15e2a816c
[ "BSD-3-Clause" ]
permissive
graphql-python/graphene-gae
18707958469bccc9e74b1807b3bcd9a7662c490c
7cf364eddb6d5b76575f5e80fb97a588c92634a1
refs/heads/master
2022-09-23T16:19:00.243204
2022-09-06T11:33:23
2022-09-06T11:33:23
58,579,572
128
15
BSD-3-Clause
2021-03-25T21:28:06
2016-05-11T20:41:37
Python
UTF-8
Python
false
false
8,128
py
test_converter.py
import mock from graphene_gae.ndb.types import NdbObjectType from tests.base_test import BaseTest from google.appengine.ext import ndb import graphene from graphene import List, NonNull, String from graphene.types.json import JSONString from graphene.types.datetime import DateTime, Time from graphene_gae.ndb.fields...
8c20dc23c451a7f655ed1f339a592e984fd63f96
d066f7fe739fb78f74ec2de8ccbfefdd4270f60f
/tests/commands/run_script.py
0150578623e38b6fa246882cfac2f3940e7720fd
[ "MIT" ]
permissive
AppImageCrafters/appimage-builder
666e75363a74f615cdb3673b3ca9d51a6d292a49
f38699ef3644fa5409a5a262b7b6d99d6fb85db9
refs/heads/main
2023-08-17T06:34:54.029664
2023-06-03T17:51:04
2023-06-03T17:51:04
218,847,680
270
54
MIT
2023-09-06T17:04:18
2019-10-31T19:44:17
Python
UTF-8
Python
false
false
2,851
py
run_script.py
import pathlib import unittest import roam from appimagebuilder.commands import RunScriptCommand from appimagebuilder.context import Context class RunScriptCommandTestCase(unittest.TestCase): def setUp(self) -> None: super().setUp() self.fake_context = Context( recipe_path=pathlib.Pa...
078d748fafebef0b18fcbaed21769c049f1c184a
9784a90cac667e8e0aaba0ca599b4255b215ec67
/common/train_log_param_saver.py
e2e1e7af52f11a56922d906c3cdf058b6f1dd3d1
[ "MIT" ]
permissive
osmr/imgclsmob
d2f48f01ca541b20119871393eca383001a96019
f2993d3ce73a2f7ddba05da3891defb08547d504
refs/heads/master
2022-07-09T14:24:37.591824
2021-12-14T10:15:31
2021-12-14T10:15:31
140,285,687
3,017
624
MIT
2022-07-04T15:18:37
2018-07-09T12:57:46
Python
UTF-8
Python
false
false
11,279
py
train_log_param_saver.py
import os import shutil class TrainLogParamSaver(object): """ Train logger does the following: 1. save several the last model checkpoints, for disaster recovery, 2. save several the best model checkpoints, to prevent overfitting, 3. save pure evaluation metric values to log-file for observer. ...
bbfbf5984847fc4bebdb65b481274c5c689dd860
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/ThinkstCanary/Integrations/ThinkstCanary/ThinkstCanary_test.py
6a1d933db4e7f9083695250f85f6c31a680273df
[ "MIT" ]
permissive
demisto/content
6d4722d46f0ff0beea2748e9f7de585bf91a78b4
890def5a0e0ae8d6eaa538148249ddbc851dbb6b
refs/heads/master
2023-09-04T00:02:25.618032
2023-09-03T21:56:22
2023-09-03T21:56:22
60,525,392
1,023
1,921
MIT
2023-09-14T20:55:24
2016-06-06T12:17:02
Python
UTF-8
Python
false
false
6,785
py
ThinkstCanary_test.py
import demistomock as demisto import pytest MOCK_PARAMS = { 'access-key': 'fake_access_key', 'secret-key': 'fake_access_key', 'server': 'http://123-fake-api.com/', 'unsecure': True, 'proxy': True, 'authentication_token': {'password': 1} } def test_fetch_incidents(mocker, requests_mock): "...
bc8e28d2582e13489cd6c5377a5f0a5d087506de
a6c05f5bea011ddce375c4a31e52e04bcb2ee053
/dataprep/eda/create_report/report.py
457c4499323438791db2b3d31110054ff6648203
[ "MIT" ]
permissive
sfu-db/dataprep
8db4286f4eccfde9e00b4e4fe4ac7d0fd567d9f1
17eda6925b9c37200eae969813ed41583d225989
refs/heads/develop
2023-08-18T09:01:04.057248
2023-05-30T02:39:47
2023-08-03T04:05:43
186,311,346
1,755
215
MIT
2023-08-03T04:05:45
2019-05-12T22:37:24
Python
UTF-8
Python
false
false
3,487
py
report.py
""" This module implements the Report class. """ import sys import webbrowser from pathlib import Path from tempfile import NamedTemporaryFile from typing import Optional import os from ...utils import is_notebook CELL_HEIGHT_OVERRIDE = """<style> div.output_scroll { ...
057ac9c480dca2381a9d63bbdb749d4bebc4041f
a4913dc468f763ead62218a01ad058c84a17a7b1
/tests/test_test_client.py
e171aeb3e235196a57384c467b4702a1457ba84f
[ "MIT" ]
permissive
vitalik/django-ninja
200c922f134ed09cb51957bc134a4a0830d3d8ff
8be35e42a9dc2365e764a0fea0a0b868eeae312b
refs/heads/master
2023-08-31T02:44:05.149087
2023-08-28T12:35:04
2023-08-28T12:35:04
265,194,554
5,034
340
MIT
2023-09-14T09:58:40
2020-05-19T08:48:53
Python
UTF-8
Python
false
false
2,694
py
test_test_client.py
from datetime import datetime from http import HTTPStatus from unittest import mock import pytest from django.utils import timezone from ninja import Router from ninja.schema import Schema from ninja.testing import TestClient router = Router() @router.get("/request/build_absolute_uri") def request_build_absolute_u...
43a3b771d6a8fdbb18b275e0ef6604e333ce7878
afd2087e80478010d9df66e78280f75e1ff17d45
/torch/package/glob_group.py
a8434788d016fd64cb03e1cf5cdebea5d65d6a59
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-secret-labs-2011", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
pytorch/pytorch
7521ac50c47d18b916ae47a6592c4646c2cb69b5
a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4
refs/heads/main
2023-08-03T05:05:02.822937
2023-08-03T00:40:33
2023-08-03T04:14:52
65,600,975
77,092
24,610
NOASSERTION
2023-09-14T21:58:39
2016-08-13T05:26:41
Python
UTF-8
Python
false
false
3,610
py
glob_group.py
import re from typing import Iterable, Union GlobPattern = Union[str, Iterable[str]] class GlobGroup: """A set of patterns that candidate strings will be matched against. A candidate is composed of a list of segments separated by ``separator``, e.g. "foo.bar.baz". A pattern contains one or more segment...
d5671d0dfcedf4374b84f3fd20221ac04bda7107
cadb6dceb7bb67ce47ef48b2c83f480a65d6b01a
/test/test_upstream.py
2027cdda7256d44695d1e0c8bc3a269ca26c2b71
[ "Apache-2.0", "CC-BY-NC-4.0" ]
permissive
s3prl/s3prl
52ec2ae4df5a61c786c122085603aa9c5e8c2681
76a9432b824f6ae3eae09a35a67782c4ed582832
refs/heads/main
2023-08-17T02:26:57.524087
2023-06-10T17:12:27
2023-06-10T17:12:27
196,905,457
1,549
398
Apache-2.0
2023-09-14T13:07:05
2019-07-15T01:54:52
Python
UTF-8
Python
false
false
9,302
py
test_upstream.py
import logging import os import shutil import tempfile import traceback from pathlib import Path from subprocess import check_call import pytest import torch from filelock import FileLock from s3prl.nn import Featurizer, S3PRLUpstream from s3prl.util.download import _urls_to_filepaths from s3prl.util.pseudo_data impo...
e528b06cf1dcf05276a6f54627d9c60ea8af80f5
974d04d2ea27b1bba1c01015a98112d2afb78fe5
/test/collective/collective_global_scatter_dygraph.py
2e5001371fd47bdd926bc7638f082c9f8be7fe49
[ "Apache-2.0" ]
permissive
PaddlePaddle/Paddle
b3d2583119082c8e4b74331dacc4d39ed4d7cff0
22a11a60e0e3d10a3cf610077a3d9942a6f964cb
refs/heads/develop
2023-08-17T21:27:30.568889
2023-08-17T12:38:22
2023-08-17T12:38:22
65,711,522
20,414
5,891
Apache-2.0
2023-09-14T19:20:51
2016-08-15T06:59:08
C++
UTF-8
Python
false
false
2,410
py
collective_global_scatter_dygraph.py
# Copyright (c) 2021 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...
8b8ebc78fecfe4775361b1d05d17ca840aed6bd2
543365e4c2f58970e7ad5a3c06dd23d20e0d134d
/pygimli/testing/test_Frameworks.py
ad39bfbc54a42750dc32ade97e56f9c6e8d4259e
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
gimli-org/gimli
152b5f1563e994385f7594a43482d467ee3cb9e7
0f55444b624f390a674053f62ba1a05506deafa6
refs/heads/master
2023-09-03T22:52:18.366328
2023-08-28T09:05:13
2023-08-28T09:05:13
12,602,199
307
125
NOASSERTION
2023-07-02T14:59:16
2013-09-04T21:10:47
C++
UTF-8
Python
false
false
1,740
py
test_Frameworks.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # write a correct test! import unittest import pygimli as pg import numpy as np class TestFrameworks(unittest.TestCase): def test_Fit(self): """ """ func = lambda x, a, b, c: a + b * x + c * x**2 x = np.linspace(0, 1, 11) ...
f9c70ff3509f1df70e30614d55811f9accc6c849
477b705bcf007707454a701f174103ba5292d0b4
/tests/unit/test_base_types.py
00cd808973ea2701d5a535e2ffe8a9799aa6f8ab
[ "Apache-2.0" ]
permissive
aws/sagemaker-experiments
357baeca25fa869545604cbb11d41f3afe3ddc29
815bf0c8111d06115040d839f6f1f57831c16bc6
refs/heads/main
2023-08-15T10:34:58.407886
2023-05-17T14:59:01
2023-05-17T15:58:34
215,120,058
110
34
Apache-2.0
2023-05-17T15:58:36
2019-10-14T18:43:20
Python
UTF-8
Python
false
false
5,442
py
test_base_types.py
# Copyright 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 accomp...
d97fe6084db141b21d7814d233a75505c3845ccb
c6759b857e55991fea3ef0b465dbcee53fa38714
/tools/nntool/nntool/generation/generators/general/expressions.py
4561ca0df2616713c2981247aaeb5275cbe82704
[ "AGPL-3.0-or-later", "AGPL-3.0-only", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "Apache-2.0" ]
permissive
GreenWaves-Technologies/gap_sdk
1b343bba97b7a5ce62a24162bd72eef5cc67e269
3fea306d52ee33f923f2423c5a75d9eb1c07e904
refs/heads/master
2023-09-01T14:38:34.270427
2023-08-10T09:04:44
2023-08-10T09:04:44
133,324,605
145
96
Apache-2.0
2023-08-27T19:03:52
2018-05-14T07:50:29
C
UTF-8
Python
false
false
2,258
py
expressions.py
# Copyright (C) 2020 GreenWaves Technologies, SAS # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This progr...
002d61d9a517a60c5a3d3c40bcbc862f4f59b6aa
0841643267b9fc1478f6e3d21bfccb17aba67af6
/gs_quant/test/utils/datagrid_test_utils.py
5afb5db96e8838bbe3bb179e8750011ae5e63781
[ "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
1,056
py
datagrid_test_utils.py
""" Copyright 2019 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...
2b8782aac602ecd7304e385db02bf5f0d8e74407
bf8d344b17e2ff9b7e38ad9597d5ce0e3d4da062
/ppdet/data/source/sniper_coco.py
1b07e7a31d999d137965c4860a4d8085d0b91465
[ "Apache-2.0" ]
permissive
PaddlePaddle/PaddleDetection
e7e0f40bef75a4e0b6dcbacfafa7eb1969e44961
bd83b98342b0a6bc8d8dcd5936233aeda1e32167
refs/heads/release/2.6
2023-08-31T07:04:15.357051
2023-08-18T02:24:45
2023-08-18T02:24:45
217,475,193
12,523
3,096
Apache-2.0
2023-09-10T10:05:56
2019-10-25T07:21:14
Python
UTF-8
Python
false
false
6,837
py
sniper_coco.py
# Copyright (c) 2021 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...
ab83aad2618602de99620d4f94e49500e805d05f
8f2c55a2530c3e59dab5907c0044c618b88dd09b
/tests_python/resources/_debugger_case_smart_step_into3.py
1215d125c419bbc7064eb8af0b1eaf6e71da77eb
[ "Apache-2.0", "EPL-1.0" ]
permissive
fabioz/PyDev.Debugger
5a9c6d4c09be85a0e2d9fb93567fd65faf04c81d
26864816cbfcf002a99913bcc31ebef48042a4ac
refs/heads/main
2023-08-18T01:08:34.323363
2023-04-15T11:15:47
2023-04-15T11:15:47
21,870,144
363
126
Apache-2.0
2023-07-30T23:03:31
2014-07-15T18:01:12
Python
UTF-8
Python
false
false
347
py
_debugger_case_smart_step_into3.py
def foo(arg): print('on foo mark', arg) return arg + 1 def main(): items = [1] # break here gen = (foo(arg) for arg in items) list(gen) # import dis # print('-------- main ------------') # dis.dis(main) # print('-------- foo ------------') # dis.dis(foo) if __name__ == '__main__': main() ...
e87844c3956177e315d65d64bbb255a7545c4911
0acf9e2cfae0ff6468ddf42fc130c29b90999194
/operational_analysis/methods/electrical_losses.py
c06f912ced8d89beaa097be6b10d238520ee9122
[ "BSD-3-Clause" ]
permissive
NREL/OpenOA
02c6dc0300f2230f6506b6672fa9284af8010114
a7c89bbaed8fb19e9780088f84ce1443c1567b2a
refs/heads/main
2023-09-04T23:30:29.941733
2023-07-25T17:22:53
2023-07-25T17:22:53
77,166,290
160
56
BSD-3-Clause
2023-09-02T00:17:45
2016-12-22T18:16:30
Python
UTF-8
Python
false
false
12,045
py
electrical_losses.py
# This class defines key analytical routines for calculating electrical losses for # a wind plant using operational data. Electrical loss is calculated per month and on # an average annual basis by comparing monthly energy production from the turbines # and the revenue meter import numpy as np import pandas as pd from...
c1b04d807381b016121e2329b838fcb3852ddabf
6fdb4eaf5b0e6dbd7db4bf947547541e9aebf110
/robot-server/tests/integration/robot_client.py
23c13bca7c3305609a11e2837a8f4405d5ef4a6c
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
Opentrons/opentrons
874321e01149184960eeaeaa31b1d21719a1ceda
026b523c8c9e5d45910c490efb89194d72595be9
refs/heads/edge
2023-09-02T02:51:49.579906
2023-08-31T16:02:45
2023-08-31T16:02:45
38,644,841
326
174
Apache-2.0
2023-09-14T21:47:20
2015-07-06T20:41:01
Python
UTF-8
Python
false
false
10,027
py
robot_client.py
from __future__ import annotations import asyncio import concurrent.futures import contextlib from pathlib import Path from typing import Any, AsyncGenerator, BinaryIO, Dict, List, Optional, Tuple, Union import httpx from httpx import Response STARTUP_WAIT = 20 SHUTDOWN_WAIT = 20 class RobotClient: """Client ...
fe87925d687487dafb366c948482d55cf553f80b
83b8b30ebb633eecd29ca0a7a20cc43a293c9333
/tests/basics/builtin_round_intbig.py
adf9d29f2f10c4e1b8b04bb5824fe979b091e0b8
[ "MIT", "GPL-1.0-or-later" ]
permissive
adafruit/circuitpython
430ec895149d1eb814b505db39b4977a35ee88a7
506dca71b0cbb7af749bb51f86b01021db5483b3
refs/heads/main
2023-08-21T16:30:46.781068
2023-08-20T00:39:44
2023-08-20T00:39:44
66,166,069
3,806
1,560
MIT
2023-09-14T19:23:51
2016-08-20T20:10:40
C
UTF-8
Python
false
false
347
py
builtin_round_intbig.py
# test round() with large integer values and second arg # rounding integers is an optional feature so test for it try: round(1, -1) except NotImplementedError: print('SKIP') raise SystemExit i = 2**70 tests = [ (i, 0), (i, -1), (i, -10), (i, 1), (-i, 0), (-i, -1), (-i, -10), (-i, 1), ] for t in t...
8ebe153a8092571e779627b4e988b1175e3206f7
8188f026dcfa3ca6c4e2d58e6c56d04d24e37a18
/projectq/cengines/_optimize.py
1cce7317ae01f422b5371c504eadd2d150158ccc
[ "Apache-2.0" ]
permissive
ProjectQ-Framework/ProjectQ
2e342da0622d4b5d513c15504556e95d3d0e2aea
67c660ca18725d23ab0b261a45e34873b6a58d03
refs/heads/develop
2023-09-04T02:18:25.581119
2023-03-09T16:03:57
2023-03-09T16:03:57
77,520,796
886
335
Apache-2.0
2023-07-24T07:07:15
2016-12-28T09:31:53
Python
UTF-8
Python
false
false
11,256
py
_optimize.py
# Copyright 2017 ProjectQ-Framework (www.projectq.ch) # # 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 app...
698b47661f82e04c3d5b65bda27d7636ec3fe061
6fe86ea636a69fff9174df6407839f0164407bdb
/tt/cross/oldcross/cross.py
65bf062a06724aae9866ddb28181951872f109e0
[ "MIT" ]
permissive
oseledets/ttpy
9104e8014a73667b1cfc4fd867593cd8a6097ba0
a50d5e0ce2a033a4b1aa703715cb85d715b9b34a
refs/heads/master
2023-03-06T12:44:43.804115
2022-12-14T23:37:57
2022-12-14T23:37:57
5,499,019
220
77
MIT
2022-12-14T23:37:58
2012-08-21T18:22:27
Python
UTF-8
Python
false
false
304
py
cross.py
import numpy as np import tt """ This module is an implementation of the cross method for tensors """ """ What we do, we gradually apply 2d methods, and we basically need to recompute UU^{-1} and VV^{-1} each time; the problem is then to go to next step in a sweep""" def cross(n, f): pass
93e5e5101eea670a54eb5f2a366ce45e21029876
9677df3908029dcc4abdbe1f88190fc1d71dce7d
/app/ui/transmitter.py
726a311b3ed7dcc3c04d4f86f051fb4772236e60
[ "MIT", "GPL-3.0-only", "GPL-1.0-or-later", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
DYefremov/DemonEditor
b6e467fe8191badca3ae81ceaeeed745952aca4c
917e184486ff212b4a19b36ab726343f900da8b7
refs/heads/master
2023-08-06T05:37:32.674377
2023-07-25T13:44:31
2023-07-25T13:44:31
106,046,839
105
331
MIT
2023-06-10T16:08:08
2017-10-06T20:19:57
Python
UTF-8
Python
false
false
6,992
py
transmitter.py
from pathlib import Path from urllib.parse import urlparse import gi from gi.repository import GLib from app.commons import log from app.connections import HttpAPI from app.tools.yt import YouTube from app.ui.dialogs import get_builder from app.ui.iptv import get_yt_icon from .uicommons import Gtk, Gdk, UI_RESOURCES_...
ac3e5e4de01351712c876b1b2640cae5296be869
e3bb1df7fa4c51900dec7e9ddf5295e1a80938bd
/test/hummingbot/connector/exchange/binance/test_binance_web_utils.py
bf7f1d14fd8adbed3cf841350eb294961b1fa9c9
[ "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
776
py
test_binance_web_utils.py
import unittest import hummingbot.connector.exchange.binance.binance_constants as CONSTANTS from hummingbot.connector.exchange.binance import binance_web_utils as web_utils class BinanceUtilTestCases(unittest.TestCase): def test_public_rest_url(self): path_url = "/TEST_PATH" domain = "com" ...
dbc7417a8c72a015a52381427c6d5bc5ea4b819d
fdbb74a95924e2677466614f6ab6e2bb13b2a95a
/third_party/python/Lib/idlelib/mainmenu.py
9fe6b5229446e3072744db46de8a3001f6adff47
[ "ISC", "Python-2.0", "GPL-1.0-or-later", "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-other-copyleft" ]
permissive
jart/cosmopolitan
fb11b5658939023977060a7c6c71a74093d9cb44
0d748ad58e1063dd1f8560f18a0c75293b9415b7
refs/heads/master
2023-09-06T09:17:29.303607
2023-09-02T03:49:13
2023-09-02T03:50:18
272,457,606
11,887
435
ISC
2023-09-14T17:47:58
2020-06-15T14:16:13
C
UTF-8
Python
false
false
3,703
py
mainmenu.py
"""Define the menu contents, hotkeys, and event bindings. There is additional configuration information in the EditorWindow class (and subclasses): the menus are created there based on the menu_specs (class) variable, and menus not created are silently skipped in the code here. This makes it possible, for example, to...
7fda73abc5ac7244025aba4b341e99956d07d864
f729993e43a8f2031a4ad5c766e63117588b4312
/mmengine/config/lazy.py
e83cce7c89cbd919def774addaaac8186c10e989
[ "Apache-2.0" ]
permissive
open-mmlab/mmengine
d28a41c4b3dac47c58ee19b241c4b963eb14ddb6
170758aefe6cb05f61bf9353d03af1b8c1f4f73a
refs/heads/main
2023-08-29T18:12:33.261889
2023-08-28T08:15:00
2023-08-28T08:15:00
456,857,425
708
279
Apache-2.0
2023-09-14T09:23:21
2022-02-08T09:05:09
Python
UTF-8
Python
false
false
8,731
py
lazy.py
# Copyright (c) OpenMMLab. All rights reserved. import importlib from typing import Any, Optional, Union from mmengine.utils import is_seq_of class LazyObject: """LazyObject is used to lazily initialize the imported module during parsing the configuration file. During parsing process, the syntax like: ...
462b8774fcacee71420781c2224134f45cfae488
03666e5f961946fc1a0ac67781ac1425562ef0d7
/src/test/tests/databases/blueprint_axom_klee.py
d50dc63ab57c0da565dc313a449615e08433cf33
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
visit-dav/visit
e9f81b4d4b9b9930a0db9d5282cd1bcabf465e2e
601ae46e0bef2e18425b482a755d03490ade0493
refs/heads/develop
2023-09-06T08:19:38.397058
2023-09-05T21:29:32
2023-09-05T21:29:32
165,565,988
335
120
BSD-3-Clause
2023-09-14T00:53:37
2019-01-13T23:27:26
C
UTF-8
Python
false
false
4,261
py
blueprint_axom_klee.py
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: blueprint_axom_klee.py # # Tests: blueprint hdf5 files # # Programmer: Brad Whitlock # Date: Wed May 31 15:59:22 PDT 2023 # # Modifications: # # ------------------------------------------...
2abba51d0c2adf91b5a5157aa6b8de48c443eb23
4b609f6c89b1e2c3ac43f0864f6b602396da9d22
/deid/dicom/pixels/clean.py
a65623793e0aeabcde6859ef1c2c698af94dea61
[ "MIT" ]
permissive
pydicom/deid
e1a597ce95d25e12e35ec9623d904d6c57e49bb4
40dc96125daeb65856d643e12c3d6dfec756be0d
refs/heads/master
2023-07-02T08:29:14.299457
2023-05-10T17:01:11
2023-05-10T17:01:11
94,163,984
120
52
MIT
2023-09-11T22:32:00
2017-06-13T03:16:10
Python
UTF-8
Python
false
false
15,394
py
clean.py
__author__ = "Vanessa Sochat" __copyright__ = "Copyright 2016-2023, Vanessa Sochat" __license__ = "MIT" import math import os import random import re import sys from typing import Optional import matplotlib import numpy from numpy.typing import NDArray from pydicom import read_file from pydicom.pixel_data_handlers.u...
b7dfc743668027b8d87dab6a8d77b83f0c4e9ae3
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayOpenIotmbsIsvhotelCreateModel.py
0789f8baf1ab18f75422dc1ba350cfd9fff12900
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
4,345
py
AlipayOpenIotmbsIsvhotelCreateModel.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayOpenIotmbsIsvhotelCreateModel(object): def __init__(self): self._appid = None self._area_code = None self._project_addr = None self._project_flag = None ...
f2c7a1dfacde55afe52a3d868cf4abab13dec3b1
93713f46f16f1e29b725f263da164fed24ebf8a8
/Library/lib/python3.7/site-packages/astropy-4.0-py3.7-macosx-10.9-x86_64.egg/astropy/modeling/setup_package.py
138fde4d44bc46936c24d14cd26c81d55cab1641
[ "BSD-3-Clause" ]
permissive
holzschu/Carnets
b83d15136d25db640cea023abb5c280b26a9620e
1ad7ec05fb1e3676ac879585296c513c3ee50ef9
refs/heads/master
2023-02-20T12:05:14.980685
2023-02-13T15:59:23
2023-02-13T15:59:23
167,671,526
541
36
BSD-3-Clause
2022-11-29T03:08:22
2019-01-26T09:26:46
Python
UTF-8
Python
false
false
4,319
py
setup_package.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst import os from os.path import join from distutils.core import Extension from distutils import log from astropy_helpers import setup_helpers, utils from astropy_helpers.version_helpers import get_pkg_version_module wcs_setup_package = utils.import_file(...
aa64ccb3b2100a5def39431e551b52a785debc47
acf7457d3a799cb9bff12686d2d616688bcd4b5b
/packages/python/plotly/plotly/validators/layout/uniformtext/__init__.py
8ddff597fe33c9ee20b9950c1e118dcad606507d
[ "MIT" ]
permissive
plotly/plotly.py
f4f61639f08160f16195efc95b5901dc5a937346
975a704074f01c078e0fdfa32bdf17130bf89e69
refs/heads/master
2023-09-06T06:15:08.340035
2023-08-24T12:28:14
2023-08-24T12:28:14
14,579,099
14,751
2,989
MIT
2023-09-08T19:55:32
2013-11-21T05:53:08
Python
UTF-8
Python
false
false
371
py
__init__.py
import sys from typing import TYPE_CHECKING if sys.version_info < (3, 7) or TYPE_CHECKING: from ._mode import ModeValidator from ._minsize import MinsizeValidator else: from _plotly_utils.importers import relative_import __all__, __getattr__, __dir__ = relative_import( __name__, [], ["._mode.M...
bc41d823eb354d47f1bb159f126f372ebff0df75
eaaaf5afe1bf933b2c00c84d862082995e6051ae
/mimic-iii/buildmimic/oracle/add_oracle_rowdelimiter.py
39f85294e065786ad2bbdf6bf0db3fa43a7ed6a8
[ "MIT" ]
permissive
MIT-LCP/mimic-code
bca9846a9c0843289db677a2af00b43841950b48
78f7b6e5a8886f52066b0505c451597590bea862
refs/heads/main
2023-08-21T23:20:38.270790
2023-07-19T11:43:01
2023-07-19T11:43:01
41,767,943
2,208
1,579
MIT
2023-09-12T17:14:04
2015-09-01T23:03:51
Jupyter Notebook
UTF-8
Python
false
false
3,539
py
add_oracle_rowdelimiter.py
from __future__ import print_function import sys import getopt import os.path import csv # This function takes a CSV file and appends a string to the end of each row # This facilitates using the CSV with programs which can't handle newlines in fields # For example, Oracle's SQLLDR requires a unique string at the end...
69d327c83e0b8bcd593eb4b27fd7b8bcf866e479
3aad16c9b4a2f903e74d0c3fadd033f2f8f3db30
/trademap/mapa_final.py
15c16c87b8f4cd37330d7f76bd788842f75f4b06
[]
no_license
omercadopopular/cgoes
bae7617a6714ccb60f6854067d44e21e4459d6d4
55a010da4a47ba8fc9c28d04f85261676faa169b
refs/heads/master
2022-12-27T22:14:16.665593
2022-12-16T01:46:33
2022-12-16T01:46:33
58,074,789
143
59
null
null
null
null
UTF-8
Python
false
false
5,307
py
mapa_final.py
# -*- coding: utf-8 -*- """ PROJETO: "Uma Estratégia De Antecipação Dos Impactos Regionais E Setoriais Da Abertura Comercial Brasileira Sobre O Emprego E Requalificação Da População Afetada" EQUIPE DO PROJETO: Carlos Góes (SAE), Eduardo Leoni (SAE), Luís Montes (SAE) e Alexandre Messa (Núcleo Econômico da CAME...
fc5e089fbfa95fe271459d6b37724eaf6ecfc9ab
4658aa41017b2e6da830f1e879774e4a7296c314
/holoviews/tests/plotting/plotly/test_path3d.py
af96c07f5c3379b25610fa05bc0789faf1fc2ea1
[ "BSD-3-Clause" ]
permissive
holoviz/holoviews
3f133e572933c94cedad7bae6fb6d071152842fc
e3dee5443dad84b507734c0a3d2bba8ec44f5653
refs/heads/main
2023-09-03T05:08:42.682432
2023-08-28T20:40:36
2023-08-28T20:40:36
19,542,768
1,223
223
BSD-3-Clause
2023-09-14T18:15:53
2014-05-07T16:59:22
Python
UTF-8
Python
false
false
2,507
py
test_path3d.py
import numpy as np from holoviews.element import Path3D from .test_plot import TestPlotlyPlot class TestPath3DPlot(TestPlotlyPlot): def test_path3D_state(self): path3D = Path3D([(0, 1, 0), (1, 2, 1), (2, 3, 2)]) state = self._get_plot_state(path3D) self.assertEqual(state['data'][0]['x']...
b7fbf48911cb0b047756a1cf73ee9e832a53d691
33c443346aa9309cfda431e79a2a281df8ed9bb7
/myblog/mdtest.py
cf63eda4e2a41bc9e94868dbc54b4a7b6954e719
[]
no_license
newpanjing/myblog
a3b3bc25b2ee7bc33006411bf5ce5710641eed4a
e0dc06231fb574ff8d18c1f0751acbcf33444539
refs/heads/master
2023-04-30T07:34:41.078441
2022-06-03T14:25:49
2022-06-03T14:25:49
143,099,403
140
56
null
2023-04-21T20:32:38
2018-08-01T03:30:45
Python
UTF-8
Python
false
false
295
py
mdtest.py
import markdown print(markdown.markdown(''' [TOC] # 这是什么操作 这是一个无人机 ## 后来 ```python aa=123 print(aa) for i in range(1,100): print(i) ``` ''', extensions=[ 'markdown.extensions.extra', 'markdown.extensions.codehilite', 'markdown.extensions.toc', ]))
89785a1feafe1eccbead9726a53fd2cfe59243a9
154f710627739de4c5c53716f6ee961282ac920c
/plugins/traffic/widget.py
a9ed9473729e9d295135a15efed448e3ee125bcb
[ "MIT" ]
permissive
ajenti/ajenti
3bff32d6fffca13ce8fc777c9a68a70f7338bdb3
5ab0dd3f08d2928810d8235123bda3b071d02a97
refs/heads/master
2023-08-29T11:40:49.368067
2023-08-05T14:02:58
2023-08-05T14:02:58
544,208
4,376
770
MIT
2023-08-02T02:20:33
2010-03-03T08:04:15
Python
UTF-8
Python
false
false
648
py
widget.py
import psutil from jadi import component from aj.plugins.dashboard.api import Widget @component(Widget) class TrafficWidget(Widget): id = 'traffic' name = _('Traffic') template = '/traffic:resources/partial/widget.html' config_template = '/traffic:resources/partial/widget.config.html' def __ini...
6f6c7f7cd17de232c3560b26171767acbee2cda5
2337351b228818e41be3002bd38f68f77c2aa074
/core/etl/loader/l2domain.py
0b21396a6dcdee516db0ef8a287c34ea781df5bc
[ "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
600
py
l2domain.py
# ---------------------------------------------------------------------- # Auth Profile Loader # ---------------------------------------------------------------------- # Copyright (C) 2007-2023 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- # NOC modu...
a77b840609119557d3875de064d415a9cd315816
bc95060fe849162b5d3be79380f496ecf06b2ad9
/dbma/core/views/dbmagentview.py
fc1fd883c47770fa26381081c13fb96c63002e64
[]
no_license
Neeky/dbm-agent
9ac8205b0ee9e09490e0279b709bd4b4d4f7d610
3d92fbac91d561c91789f425330fdbb9b41f62bd
refs/heads/master
2023-08-05T06:48:17.722028
2023-08-01T12:49:32
2023-08-01T12:49:32
174,054,080
183
84
null
2023-04-11T03:44:32
2019-03-06T02:14:26
Jinja
UTF-8
Python
false
false
455
py
dbmagentview.py
# -*- encoding: utf-8 -*- """dbm-agent 内部数据接口 """ import logging from aiohttp import web from dbma.core.router import routes from dbma.version import DBM_AGENT_VESION @routes.view("/apis/dbm-agent") class DbmAgentView(web.View): """ dbm-agent http 接口实现 """ async def get(self): """返回 dbm-ag...