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
463f6076099191b156d838db5d1ee88674c7defd
812045c3ec6587827aeb18bde666237dfffc21ae
/tf_quant_finance/math/jacobian_test.py
1938c180a9ec208e7b3293a8637f86e07206c349
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
google/tf-quant-finance
2062082c85e8679b71e69bbeb579fe338c1b0288
0d3a2193c0f2d320b65e602cf01d7a617da484df
refs/heads/master
2023-08-31T01:58:15.415811
2023-08-15T07:37:46
2023-08-15T07:38:22
198,669,252
4,165
557
Apache-2.0
2023-08-04T19:25:55
2019-07-24T16:09:50
Python
UTF-8
Python
false
false
7,656
py
jacobian_test.py
# 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
c7584775f51dbbdaf7e4140f8e0376910e08c43a
bf3d811c3e4b783a377d4c3bdf2bebcffb26d37a
/custom_components/custom_updater/__init__.py
4992797b04c48bd57b06eae1df8c03a2e2e09000
[ "MIT" ]
permissive
custom-components/custom_updater
332258778c3c8e7b7eefacfcd7b4df09abec2703
63f4d5c98ef2f8945e9aaf31dc52a1f107182793
refs/heads/master
2021-06-22T01:42:43.755494
2021-01-18T14:15:06
2021-01-18T14:15:06
141,934,343
222
94
MIT
2019-05-22T13:09:12
2018-07-22T22:11:56
Python
UTF-8
Python
false
false
11,859
py
__init__.py
""" A component which allows you to update your custom cards and components. For more details about this component, please refer to the documentation at https://github.com/custom-components/custom_updater """ import logging import os.path from datetime import timedelta import voluptuous as vol from aiohttp import web...
303698454b14429c4a5777c1a31aec08ef84c2b3
b049a961f100444dde14599bab06a0a4224d869b
/sdk/python/pulumi_azure_native/dataprotection/v20221101preview/outputs.py
5b17c0d855b51904d4e100067aeccca06280e6b7
[ "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
12,563
py
outputs.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...
3a708f5698d4cfc3eeb43b91b2941bdafaf80e2d
2d0bada349646b801a69c542407279cc7bc25013
/src/vai_runtime/vart/trace/vaitrace/writer/parser/mcHeaderGen.py
99977f82c4ccbf39936865bb1156ada6f303e735
[ "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
2,935
py
mcHeaderGen.py
#!/usr/bin/env python # Copyright 2022-2023 Advanced Micro Devices 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...
ebdc73da8266f7e2f13d40f93ff2948aa885ccd4
93cec528029c65106368508fcb25b60002118349
/typesystem/base.py
a80cfec45a81d7456b4f5a01d69c8d508d88e921
[ "BSD-3-Clause" ]
permissive
encode/typesystem
5517438dd1960d160b18a00ff7ead79c039c007f
7decd48f40de916edf18148a16516ad0a0483c4b
refs/heads/master
2023-08-17T02:15:41.387805
2022-02-25T12:11:38
2022-02-25T12:11:38
97,711,273
583
63
BSD-3-Clause
2022-07-07T02:22:51
2017-07-19T12:00:14
Python
UTF-8
Python
false
false
8,489
py
base.py
import typing from collections.abc import Mapping class Position: def __init__(self, line_no: int, column_no: int, char_index: int): self.line_no = line_no self.column_no = column_no self.char_index = char_index def __eq__(self, other: typing.Any) -> bool: return ( ...
79c1e35fa05599d1f78e387f12d43909cdca9c39
727213382e3dbd831fa6168ae5dfeed26e22f153
/tools/cmake/bazel_to_cmake/golden_test.py
f564816987dab4e3f06912818c52d98e68dc2789
[ "BSD-3-Clause", "MIT", "Apache-2.0", "BSD-2-Clause", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
google/tensorstore
e3c41c9de41bdd56f26bbe31307c09d4ddd0278d
d38958e88130e7922f2c5d856a12114546ac9b73
refs/heads/master
2023-08-29T07:15:28.642462
2023-08-29T06:42:04
2023-08-29T06:43:13
251,312,202
1,190
88
NOASSERTION
2023-09-05T07:40:51
2020-03-30T13:24:59
C++
UTF-8
Python
false
false
11,324
py
golden_test.py
# Copyright 2022 The TensorStore Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
1fd0895d078b1c2200612a33bea0eb859b2f7e15
99b2aff89dcec2f43cee32a6bdd4c0c43d6c51fa
/src/pytezos/rpc/docs.py
fd0680dee6401b5f2f16e8405bf5e3a7e8571c5f
[ "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
133,621
py
docs.py
rpc_docs = { "/": { "props": [ "chains", "config", "errors", "fetch_protocol", "injection", "monitor", "network", "private", "protocols", "stats", "version", "workers" ] }, "/chains": { "item": { "name": "chain_id", "d...
793ac074c1492d0b3d19270ab888655093533219
5eeff8b2ab480b2354f3b134f60ded9ccb97e088
/train_util.py
1f24e280ddc5b1631dd61c7935845cb248519782
[ "MIT" ]
permissive
fuy34/superpixel_fcn
5e7104ecc05a0ee48509d6a655ddca29d3dabf67
ae81e171a64dc9ed26a039a1a52b87b5fe744cf1
refs/heads/master
2022-05-25T23:47:37.326265
2022-05-04T18:32:20
2022-05-04T18:32:20
248,400,279
358
87
null
null
null
null
UTF-8
Python
false
false
15,161
py
train_util.py
import torch import torch.nn.functional as F import numpy as np from skimage.segmentation import mark_boundaries import cv2 import sys sys.path.append('./third_party/cython') from connectivity import enforce_connectivity def init_spixel_grid(args, b_train=True): if b_train: img_height, img_width = args.t...
0512db73167e0b9cae6b7477f2f570d1829f8083
b8bbdfc593b6d816e67a344f720f90ec05236778
/airflow/providers/imap/hooks/imap.py
1ff2c7154b7f892e237d62dac731109f7336c9ba
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
apache/airflow
ed78db0a8bab7e096990e143926e52f518e288ab
1b122c15030e99cef9d4ff26d3781a7a9d6949bc
refs/heads/main
2023-09-01T08:37:34.556097
2023-09-01T06:49:05
2023-09-01T06:49:05
33,884,891
22,756
11,558
Apache-2.0
2023-09-14T20:12:36
2015-04-13T18:04:58
Python
UTF-8
Python
false
false
15,276
py
imap.py
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
2ad793d9d004fd69ed23f18d69839cea60e68c1d
d05c946e345baa67e7894ee33ca21e24b8d26028
/machine-learning/stock-prediction/stock_prediction.py
e800be7ff004f05c64bc50243fef995d77a86623
[ "MIT" ]
permissive
x4nth055/pythoncode-tutorials
327255550812f84149841d56f2d13eaa84efd42e
d6ba5d672f7060ba88384db5910efab1768c7230
refs/heads/master
2023-09-01T02:36:58.442748
2023-08-19T14:04:34
2023-08-19T14:04:34
199,449,624
1,858
2,055
MIT
2023-08-25T20:41:56
2019-07-29T12:35:40
Jupyter Notebook
UTF-8
Python
false
false
7,171
py
stock_prediction.py
import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import LSTM, Dense, Dropout, Bidirectional from sklearn import preprocessing from sklearn.model_selection import train_test_split from yahoo_fin import stock_info as si from collections import deque import numpy as np i...
d38a31f251adca7c1dc576b06df66f1c725f7f1e
99199db3f78a344e72b281c71c690518ae07375a
/octavia/controller/worker/v2/flows/flow_utils.py
f4de5cc58d12df4855fb7893f7de106c2f5a9481
[ "Apache-2.0" ]
permissive
openstack/octavia
3faf2afe2ade5bd3978bb3a0558d2eeefc648ba2
0426285a41464a5015494584f109eed35a0d44db
refs/heads/master
2023-09-01T20:12:48.272344
2023-08-31T17:24:04
2023-08-31T17:24:04
21,018,188
147
180
Apache-2.0
2021-03-30T12:34:30
2014-06-19T22:47:19
Python
UTF-8
Python
false
false
5,409
py
flow_utils.py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
e89f9b6169626e6281ea1a8f1e4113de684c8baa
fa3f6d4e9169fb95f828013d179d03accdff381b
/grr/server/grr_response_server/gui/selenium_tests/forms_test.py
2c049bf41d7bfa7c99f090d8b3577bb9f62ed4ca
[ "Apache-2.0" ]
permissive
google/grr
c51a2bd251ed2f7adae538541990a2cc01fdcc8c
44c0eb8c938302098ef7efae8cfd6b90bcfbb2d6
refs/heads/master
2023-09-05T20:02:36.823914
2023-07-26T09:34:09
2023-07-26T09:34:09
14,909,673
4,683
927
Apache-2.0
2023-07-26T09:34:10
2013-12-04T00:17:53
Python
UTF-8
Python
false
false
10,166
py
forms_test.py
#!/usr/bin/env python """Tests for the UI forms.""" from absl import app from selenium.webdriver.common import keys from grr_response_core.lib.rdfvalues import structs as rdf_structs from grr_response_proto import tests_pb2 from grr_response_server import flow_base from grr_response_server.flows.general import file_f...
05b7936b877afa9ba7c15daac09e79824556620a
d793e2bbd0960b15725e7752f98e70a1f24c7c77
/dataflows/helpers/rows_processor.py
2cfea56b9b8e5e3e7f961c972047569a0191a0a4
[ "MIT" ]
permissive
datahq/dataflows
f932a4d1dad12468428313ac636d5b704e9b49ff
9e604805accb6147cf2b1772d848d1a5e02de616
refs/heads/master
2023-07-21T04:14:09.523089
2023-07-19T16:45:30
2023-07-19T16:45:30
135,416,665
172
46
MIT
2023-07-19T16:45:32
2018-05-30T09:01:58
Python
UTF-8
Python
false
false
295
py
rows_processor.py
from .. import DataStreamProcessor class rows_processor(DataStreamProcessor): def __init__(self, rows_processor_func): super(rows_processor, self).__init__() self.func = rows_processor_func def process_resource(self, resource): yield from self.func(resource)
b1c33a4a91d07950d28b027d4335962f60ae320b
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/pvpc_hourly_pricing/test_config_flow.py
6560c81ebbb86a9b995b8cc8403c810a433f249b
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
4,622
py
test_config_flow.py
"""Tests for the pvpc_hourly_pricing config_flow.""" from datetime import datetime, timedelta from freezegun.api import FrozenDateTimeFactory from homeassistant import config_entries, data_entry_flow from homeassistant.components.pvpc_hourly_pricing import ( ATTR_POWER, ATTR_POWER_P3, ATTR_TARIFF, DOM...
3c6ecee9c908655bf42e29ef725e41c426e83589
9da4adae4c389e84097a0da9bfce40f9132eef96
/test/_utils.py
9fef35e46ac49c346168a406bde6c4c56638d1c3
[ "MIT" ]
permissive
ppizarror/pygame-menu
f8fd2ff3acefad25b07e19499a2dfebd50507403
bcfaccbb11d4a6ecba588eec2851932dc46c2337
refs/heads/master
2023-07-07T10:38:09.651797
2023-06-28T18:00:25
2023-06-28T18:00:25
89,940,842
570
207
NOASSERTION
2023-08-19T19:17:59
2017-05-01T16:26:50
Python
UTF-8
Python
false
false
23,973
py
_utils.py
""" pygame-menu https://github.com/ppizarror/pygame-menu UTILS Test suite utility functions and classes. """ __all__ = [ # Globals 'PYGAME_V2', 'SYS_PLATFORM_OSX', 'TEST_THEME', 'THEME_NON_FIXED_TITLE', 'WIDGET_MOUSEOVER', 'WIDGET_TOP_CURSOR', 'WINDOW_SIZE', # Methods 'reset_...
847f7e1f88cc0cd658247b9a0b4c0996abc6dddb
d51b2e9657d0ea1d8bcb8ed8da11a3f9dac72192
/test/core/linter/linter_test.py
5603a3b4e75aae4fbec54d34b02661ac9d3e87e8
[ "MIT" ]
permissive
sqlfluff/sqlfluff
dae8294814471165582e12ea75ab8142e75f8e62
a66da908907ee1eaf09d88a731025da29e7fca07
refs/heads/main
2023-08-28T20:07:59.624519
2023-08-27T22:17:24
2023-08-27T22:17:24
155,790,228
5,931
545
MIT
2023-09-14T18:05:19
2018-11-01T23:56:04
Python
UTF-8
Python
false
false
18,875
py
linter_test.py
"""Tests for the Linter class and LintingResult class.""" import os import logging from unittest.mock import patch import pytest from sqlfluff.core import Linter, FluffConfig from sqlfluff.core.dialects import load_raw_dialect from sqlfluff.core.linter import runner from sqlfluff.core.errors import ( SQLFluffSki...
324da8ad555eac971ec57ed126bd8613e31899cc
e7b4786bd94ccb718c3cdee805a55737b1c64c14
/aizynthfinder/aizynthfinder.py
09e2c2a22969c08f284b41ef6fdcdb9f52afc92a
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
MolecularAI/aizynthfinder
8a68e648f84bb75485d502d119ef834f0368c968
82f19c4c7d7bb3410cad1859b0324331f0c1ab62
refs/heads/master
2023-08-29T14:18:42.650117
2023-06-01T14:14:18
2023-06-01T14:14:18
271,546,468
428
125
MIT
2023-08-14T23:18:14
2020-06-11T12:57:07
Python
UTF-8
Python
false
false
12,121
py
aizynthfinder.py
""" Module containing a class that is the main interface the retrosynthesis tool. """ from __future__ import annotations import time from collections import defaultdict from typing import TYPE_CHECKING from tqdm import tqdm from aizynthfinder.analysis import ( RouteCollection, RouteSelectionArguments, Tr...
e4aa73f5a2e627ead5f02ccfc5840b75be755ffb
6a67a0e47046a35ff5aa18ed1519517479857fe9
/g-wizzy/keys.py
ac277b7ab94237179cdefd55f75ad8fc9ca6c14b
[]
no_license
qtile/qtile-examples
9ddc178b2833e71bde44e8751af9632c82b77123
4a7804e91df8d117d37da34ae95218882030558c
refs/heads/master
2023-08-15T00:45:30.598349
2023-02-16T19:13:56
2023-02-16T19:13:56
3,598,839
556
180
null
2023-07-14T10:44:17
2012-03-02T03:25:01
Python
UTF-8
Python
false
false
5,095
py
keys.py
from libqtile.config import EzKey as Key, EzDrag as Drag, EzClick as Click from libqtile.lazy import lazy from datetime import datetime as time import subprocess # BSP resizing taken from https://github.com/qtile/qtile/issues/1402 def resize(qtile, direction): layout = qtile.current_layout child = layout.curr...
8ec6cca713d8b2e1b98d52e4760ffc9859aaf07a
66b860c732de05ee8f01c16c6bd59f9c60c39e38
/src_backend_python/tabloo/backend.py
ffcbe60b5a593b016b8edcde3a9832e1057ad5a8
[ "MIT" ]
permissive
bluenote10/tabloo
9262d79903cdd19bc195b6f21fb85a944c1c42aa
14923dde60d2bddfb87ac666b58299b990d6c85d
refs/heads/master
2023-03-16T21:54:39.352100
2022-12-09T10:56:38
2022-12-09T11:30:45
183,777,503
158
16
MIT
2023-03-14T18:09:47
2019-04-27T13:38:57
TypeScript
UTF-8
Python
false
false
3,979
py
backend.py
import json import math import traceback import numpy as np import pandas as pd def to_json(data): """ Accompanying function to get_data for generic json encoding. """ def converter(x): if isinstance(x, np.ndarray): return list(x) elif isinstance(x, pd.Series): ...
99252ab15397c46162a38153805944dbc37b04e9
db12b990924703cd74748d8585cd9c11fafa6746
/h2o-docs/src/booklets/v2_2015/source/DeepLearning_Vignette_code_examples/deeplearning_gridsearch_random.py
2a87adf72939ee4c83bf24bbacd6b252b40e04ab
[ "Apache-2.0" ]
permissive
h2oai/h2o-3
919019a8f297eec676011a9cfd2cc2d97891ce14
d817ab90c8c47f6787604a0b9639b66234158228
refs/heads/master
2023-08-17T18:50:17.732191
2023-08-17T16:44:42
2023-08-17T16:44:42
17,371,412
6,872
2,345
Apache-2.0
2023-09-14T18:05:40
2014-03-03T16:08:07
Jupyter Notebook
UTF-8
Python
false
false
679
py
deeplearning_gridsearch_random.py
hidden_opt = [[17,32],[8,19],[32,16,8],[100],[10,10,10,10]] l1_opt = [s/1e6 for s in range(1,1001)] hyper_parameters = {"hidden":hidden_opt, "l1":l1_opt} search_criteria = {"strategy":"RandomDiscrete", "max_models":10, "max_runtime_secs":100, "seed":123456} from h2o.grid.grid_search import H2OGridSearch mod...
ffc496d11b2c1af2fba5e1063e086ba02c240f62
df1254b56f35b24644e00493c50d4b6eb3c15b7b
/colour/colorimetry/tests/test_generation.py
ae78c0fd4cff35d1410a384811b9595890492a25
[ "BSD-3-Clause" ]
permissive
colour-science/colour
908400b227cf81668675e41099256ce50b23ae4b
1fdf3b3042922e8d4f86b989b00a06e7e5d81102
refs/heads/develop
2023-09-01T23:17:07.186869
2023-08-26T09:40:45
2023-08-26T09:40:45
17,114,363
1,756
301
BSD-3-Clause
2023-09-14T10:24:37
2014-02-23T18:55:40
Python
UTF-8
Python
false
false
6,778
py
test_generation.py
# !/usr/bin/env python """Define the unit tests for the :mod:`colour.colorimetry.generation` module.""" import numpy as np import unittest from colour.colorimetry.generation import ( sd_constant, sd_zeros, sd_ones, msds_constant, msds_zeros, msds_ones, sd_gaussian_normal, sd_gaussian_f...
696c90bd75ae841ba5238d1e86e3195149e6ebc6
529e713a78e82de2ae5d44cfb8ef209e0894d72a
/python-microservices-with-grpc/marketplace/marketplace.py
d6522e26785ca8013502417eb95d308325a229fb
[ "MIT" ]
permissive
realpython/materials
cd2f548276be2c82f134ca03eadb1cd279e0f26e
d2d62756d3854f54a12a767f2bf9470486c0ceef
refs/heads/master
2023-09-05T22:12:29.806738
2023-08-31T20:56:28
2023-08-31T20:56:28
132,374,697
4,678
6,482
MIT
2023-09-12T22:22:06
2018-05-06T20:46:18
HTML
UTF-8
Python
false
false
1,093
py
marketplace.py
import os from flask import Flask, render_template import grpc from recommendations_pb2 import BookCategory, RecommendationRequest from recommendations_pb2_grpc import RecommendationsStub app = Flask(__name__) recommendations_host = os.getenv("RECOMMENDATIONS_HOST", "localhost") with open("client.key", "rb") as fp:...
678b485ef715bd68ae46d8cc8e47bb29e6067e68
53a83642c01a8828e3d7bd0b18e33c3b694c2b84
/Python/GeeksforGeeks/minimum-element-in-a-sorted-and-rotated-array.py
614abf5d50fd8e7910e6e5abbde9d5a328cb687f
[]
no_license
anantkaushik/Competitive_Programming
1dcd60a28b5b951c23024d6090942be081ad249f
6dba38fd7aa4e71b5196d01d64e81f9336d08b13
refs/heads/master
2022-03-06T15:36:23.797340
2022-02-21T12:00:37
2022-02-21T12:00:37
82,700,948
271
95
null
2020-10-27T17:34:39
2017-02-21T16:18:16
Python
UTF-8
Python
false
false
1,369
py
minimum-element-in-a-sorted-and-rotated-array.py
""" Problem Link: https://practice.geeksforgeeks.org/problems/minimum-element-in-a-sorted-and-rotated-array/0 A sorted array A[ ] with distinct elements is rotated at some unknown point, the task is to find the minimum element in it. Expected Time Complexity: O(Log n) Input: The first line of input contains a single...
f89eac410e2b9b433fdd58eed478c2fba2c6e1d2
675ecac2016ba9f8db611f6688a46ac4d2095447
/Interview Questions solutions/kth smallest element in a bst/index.py
3760a3789f8acb852f05e83cecfc039f9e54ec94
[]
no_license
BitPunchZ/Leetcode-in-python-50-Algorithms-Coding-Interview-Questions
87a9619ba011aa8c30fe33e5e94037fea3144d1a
86a0ceefa9c8416c17010fe90eb372daf82256db
refs/heads/master
2023-08-17T05:37:59.467046
2023-08-09T08:59:01
2023-08-09T08:59:01
247,604,188
144
125
null
2021-04-19T03:04:00
2020-03-16T03:42:10
Python
UTF-8
Python
false
false
403
py
index.py
class Solution: def kthSmallest(self, root: TreeNode, k: int) -> int: self.k = k self.res = None self.helper(root) return self.res def helper(self, root): if not root: return self.helper(root.left) self.k -= 1 if self.k == 0: ...
8e510d9f44fa25c202ab9c6b2ca0b8fa0a9519f6
03a7f7a7eb8c16b537b65ec21f465bb0335bc3b8
/pythran/tests/rosetta/perf.py
80756a19d7387e885b2ac845850368bdade2e726
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
serge-sans-paille/pythran
a0e22af1ac5e1f34f3f29dce36502f4a897b5186
d8ab07b4b3b690f50603cb4d08ba303d3af18b90
refs/heads/master
2023-09-01T16:04:03.289285
2023-08-30T09:13:58
2023-08-31T08:03:22
4,479,494
1,882
200
BSD-3-Clause
2023-09-06T20:08:10
2012-05-29T08:02:14
C++
UTF-8
Python
false
false
368
py
perf.py
#from http://rosettacode.org/wiki/Perfect_numbers#Python #pythran export perf(int) #pythran export perf_(int) #runas list(map(perf, range(20))) #runas list(map(perf_, range(20))) def perf(n): sum = 0 for i in range(1, n): if n % i == 0: sum += i return sum == n def perf_(n): return...
feeda619a6c5be633607399e2312e020569649f0
279f415dd1e06c594c6c87deda57e201c73c4542
/utils/splitjson.py
aaa7988ece3bbb87f81c6a8c58318d1972c874f9
[ "Apache-2.0" ]
permissive
espnet/espnet
f7ba47271c1a6b1ed606dbbfb04a7f14220bb585
bcd20948db7846ee523443ef9fd78c7a1248c95e
refs/heads/master
2023-08-28T23:43:34.238336
2023-08-23T02:51:39
2023-08-23T02:51:39
114,054,873
7,242
2,244
Apache-2.0
2023-09-14T08:01:11
2017-12-13T00:45:11
Python
UTF-8
Python
false
false
2,207
py
splitjson.py
#!/usr/bin/env python3 # encoding: utf-8 # Copyright 2017 Johns Hopkins University (Shinji Watanabe) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) import argparse import codecs import json import logging import os import sys import numpy as np from espnet.utils.cli_utils import get_commandline_args ...
defcb224f99b77ba478bcbc3b9d9098fb867c4dd
f9be237f3a7e03318636de79f6d96f40583c7cb1
/obsei/preprocessor/text_splitter.py
5d07af6d8bc943bdf1bac898d6eaa9b728c860c7
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
obsei/obsei
7173d32b90ee6ab09089a9ab001ee5cb0cdc8d8e
80b7782ba488583faf63951d20abad73eda98e5b
refs/heads/master
2023-09-01T00:32:07.593921
2023-08-25T17:08:56
2023-08-25T17:08:56
307,191,665
773
100
Apache-2.0
2023-09-13T03:30:59
2020-10-25T21:00:48
Python
UTF-8
Python
false
false
4,306
py
text_splitter.py
import logging from typing import List, Optional, Any import uuid import nltk from nltk import sent_tokenize from pydantic import BaseModel from obsei.payload import TextPayload from obsei.preprocessor.base_preprocessor import ( BaseTextPreprocessor, BaseTextProcessorConfig, ) logger = logging.getLogger(__na...
7d866fd4fb1c0070fc03d6968bc2883a46470ea4
7f24023d365e013ec0924844c1a872edfb0c75b4
/tests/trac/issue-0048/check.py
065d36a34245928044a0d3e7e2d0ecfc1520d03c
[ "Python-2.0", "MIT", "Apache-2.0" ]
permissive
pabigot/pyxb
cd42c024607572c6363682d389e9296caf3f2857
5ee5ba54c9f702dc9c9efc2731ee547ecd4dae4a
refs/heads/next
2023-05-11T03:23:19.599756
2023-04-29T20:38:15
2023-04-29T20:45:13
20,547,850
130
63
Apache-2.0
2021-08-19T16:52:18
2014-06-06T01:49:03
Python
UTF-8
Python
false
false
376
py
check.py
# -*- coding: utf-8 -*- import logging if __name__ == '__main__': logging.basicConfig() _log = logging.getLogger(__name__) import profile import unittest class TestIssue0048 (unittest.TestCase): def testProfile (self): amap = profile.AbstractFeatureBaseType._AttributeMap self.assertEqual(1, len...
ca90f29850c8d68b745f29120850e562c71d5909
e7aad0b1c5d8907dbb52000c482c396d1b801751
/test/functional/tests/security/test_compilation_flags.py
e51913425099dde6eb3508788516f9adff8ad63a
[ "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
2,540
py
test_compilation_flags.py
# # Copyright(c) 2019-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # import os import re import pytest from core.test_run import TestRun from test_tools.fs_utils import Permissions, PermissionsUsers, PermissionSign from test_utils.filesystem.fs_item import FsItem @pytest.mark.os_dependent def tes...
82f9beb404bb875eaa0866d33872dd9fd84ba6db
88a39b8ec20b386400bd8b1d5fc1d5ad3314681d
/tests/unit/worker/docker_utils_test.py
67b64a78494e26dbe75760e796f1aeb4d714ec9f
[ "Apache-2.0" ]
permissive
codalab/codalab-worksheets
bb35681454a0d74903aaa7468e17303986793464
5be8cb3fa4b43c9e7e8f0a3b217644a7f0a39628
refs/heads/master
2023-08-18T10:16:01.766541
2023-08-06T20:02:30
2023-08-06T20:02:30
27,352,490
126
65
NOASSERTION
2023-09-14T14:54:07
2014-11-30T22:33:18
Python
UTF-8
Python
false
false
4,151
py
docker_utils_test.py
from docker.errors import APIError import unittest from codalab.worker.docker_utils import ( DockerUserErrorException, DockerException, wrap_exception, parse_image_progress, ) class ParseImageProgressTest(unittest.TestCase): def test_parse_image_progress_expected(self): image_info = { ...
441c7a693b6f726e2b9f7f154529b6037e89f8c0
472226be9c4422e7d84aab95330b20513ab61277
/deepobs/tensorflow/config.py
b41bef6a4b52ae62d9d3bb813772888de1441228
[ "MIT" ]
permissive
fsschneider/DeepOBS
a601a6dd2548107e7e1fbae7d8b5357c79bf17d6
b41aafe8896223ba8dc8e61449656e82d42be1d8
refs/heads/master
2023-04-14T15:52:07.937617
2022-01-31T12:26:36
2022-01-31T12:26:36
150,460,781
105
34
MIT
2023-03-24T22:45:25
2018-09-26T16:58:47
Python
UTF-8
Python
false
false
533
py
config.py
# -*- coding: utf-8 -*- import tensorflow as tf DATA_DIR = "data_deepobs" BASELINE_DIR = "baselines_deepobs" TF_FLOAT_DTYPE = tf.float32 def get_data_dir(): return DATA_DIR def set_data_dir(data_dir): global DATA_DIR DATA_DIR = data_dir def get_baseline_dir(): return BASELINE_DIR def set_basel...
83684f817f751b0cba8b90db44c240d72d7dd569
85373d45a83e4096affafa4f4e5b400787413e57
/test/programytest/oob/defaults/test_sms.py
d4a8eaf5d8570744adb4b9da6710047b7bb6f069
[ "MIT" ]
permissive
keiffster/program-y
a02bb9d8278835547cc875f4f9cd668d5b1f44da
fc7b0a3afa4fa6ed683e0c817a9aa89f9543bb20
refs/heads/master
2023-08-23T13:55:39.255535
2022-12-13T09:51:57
2022-12-13T09:51:57
74,462,571
379
173
NOASSERTION
2023-05-23T00:51:21
2016-11-22T10:43:41
Python
UTF-8
Python
false
false
2,431
py
test_sms.py
import unittest import unittest.mock import xml.etree.ElementTree as ET from programy.oob.callmom.sms import SMSOutOfBandProcessor from programytest.client import TestClient class SMSOutOfBandProcessorTests(unittest.TestCase): def setUp(self): client = TestClient() self._client_context = client....
00b5df6706300a83bb7ae0814f6bf6182f33f02f
8cc3498e311d15c9a4394aaa341ef489b482dbe6
/test/language/templates/python/StructTemplatedTemplateArgumentTest.py
b9398135e514c5924795f77daf4a0c7af93735de
[ "BSD-3-Clause" ]
permissive
ndsev/zserio
3e55c064f72e86219a6da297f116d3dbb565a9a9
c540c4a97fee4e08bfc6669a2cec0d2b8282d8f6
refs/heads/master
2023-08-24T14:56:10.750155
2023-08-11T19:36:54
2023-08-11T19:36:54
141,550,444
113
23
BSD-3-Clause
2023-08-30T11:14:47
2018-07-19T08:44:23
Java
UTF-8
Python
false
false
877
py
StructTemplatedTemplateArgumentTest.py
import unittest import zserio from testutils import getZserioApi class StructTemplatedTemplateArgumentTest(unittest.TestCase): @classmethod def setUpClass(cls): cls.api = getZserioApi(__file__, "templates.zs").struct_templated_template_argument def testReadWrite(self): structTemplatedTemp...
adce6173474e6f4d87fe1b9817a3aa33aef64bdf
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/tests/perf/test_ozone_ar_speed_order_900.py
e4b033cdaa90078ec04992e0e02a6cb6677b3787
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
antoinecarme/pyaf
a105d172c2e7544f8d580d75f28b751351dd83b6
b12db77cb3fa9292e774b2b33db8ce732647c35e
refs/heads/master
2023-09-01T09:30:59.967219
2023-07-28T20:15:53
2023-07-28T20:15:53
70,790,978
457
77
BSD-3-Clause
2023-03-08T21:45:40
2016-10-13T09:30:30
Python
UTF-8
Python
false
false
70
py
test_ozone_ar_speed_order_900.py
import tests.perf.test_ozone_ar_speed_many as gen gen.run_test(900)
06981f0963abe1b037be9463f592817e7b85c713
4e36f3ce0f7bfd1959b97a20fb9dab6db815c2d7
/fastchat/serve/launch_all_serve.py
7847f00645d8dfd7d3aaf4032479e70c7ee3555d
[ "Apache-2.0" ]
permissive
lm-sys/FastChat
040d6a40c16d0a67f5c6955ea7a491e192f81e4e
106670d28793963b0ff99811da996d1d5415f1b9
refs/heads/main
2023-08-28T19:07:58.676054
2023-08-28T11:38:37
2023-08-28T11:38:37
615,882,673
25,954
3,105
Apache-2.0
2023-09-14T03:47:50
2023-03-19T00:18:02
Python
UTF-8
Python
false
false
8,441
py
launch_all_serve.py
""" Usage: python launch_all_serve_by_shell.py --model-path-address "THUDM/chatglm2-6b@localhost@2021" "huggyllama/llama-7b@localhost@2022" Workers are listed in format of `model-path`@`host`@`port` The key mechanism behind this scripts is: 1, execute shell cmd to launch the controller/worker/openai-api-server...
7a4843e63c0e4b088bbee1d7d827630ec1dd20bd
d110546d747d7e3865ce5742d5fca09f404623c0
/tests/pytests/unit/modules/file/test_file_basics.py
cee60da2fab4547e72b3d146619aafd5bd889b49
[ "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
8,055
py
test_file_basics.py
import logging import os import shutil import pytest import salt.config import salt.loader import salt.modules.cmdmod as cmdmod import salt.modules.config as configmod import salt.modules.file as filemod import salt.utils.data import salt.utils.files import salt.utils.platform import salt.utils.stringutils from tests...
eaf805988688498450ba96b21931558e5bd05433
820b6af9fd43b270749224bb278e5f714f655ac9
/Filters/Modeling/Testing/Python/HyperScalarBar.py
f135cdd6346d3c9574573c0a90d4e1195664ab9d
[ "BSD-3-Clause" ]
permissive
Kitware/VTK
49dee7d4f83401efce8826f1759cd5d9caa281d1
dd4138e17f1ed5dfe6ef1eab0ff6643fdc07e271
refs/heads/master
2023-09-01T10:21:57.496189
2023-09-01T08:20:15
2023-09-01T08:21:05
631,615
2,253
1,243
NOASSERTION
2023-09-14T07:53:03
2010-04-27T15:12:58
C++
UTF-8
Python
false
false
5,670
py
HyperScalarBar.py
#!/usr/bin/env python from vtkmodules.vtkFiltersGeneral import vtkHyperStreamline from vtkmodules.vtkFiltersGeometry import vtkImageDataGeometryFilter from vtkmodules.vtkFiltersModeling import vtkOutlineFilter from vtkmodules.vtkFiltersSources import vtkConeSource from vtkmodules.vtkImagingHybrid import vtkPointLoad fr...
b8dbf3f72e2cefa36228b734f0a998181b8c417a
fe131d9715049e3339d1ab14f3e9a0c97a47c5db
/sale_order_add_bom/wizard/sale_add_phantom_bom.py
c4f4186df957391d9cc89f775ca3a85d64b18d71
[]
no_license
akretion/odoo-usability
12f5412a27dda2de2436a282d36222f596d219bc
5f731d18f1d9016a2faf6ef439be6caf2597aa16
refs/heads/16.0
2023-07-21T14:41:54.002291
2023-07-15T13:40:48
2023-07-15T13:40:48
28,053,269
115
183
null
2023-08-31T14:04:39
2014-12-15T19:51:41
Python
UTF-8
Python
false
false
4,186
py
sale_add_phantom_bom.py
# Copyright 2016-2022 Akretion France (http://www.akretion.com/) # @author: Alexis de Lattre <alexis.delattre@akretion.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import models, fields, api, _ from odoo.exceptions import UserError from odoo.tools import float_is_zero class SaleAddP...
2752c136d44cfb40654cec6c8f4a0f6f0c79a99b
fe41ede15b4cb24fc15b6b1eb7e9a393ec6bb778
/monobit/formats/mac/__init__.py
4569c1fb853fedbf37626e9ec35a3a48d03b9293
[ "MIT" ]
permissive
robhagemans/monobit
424bcb2253c22d8c00d287204f04e9b69867ac48
3d19d930344f18080253b4046bb711aaea5620ba
refs/heads/master
2023-08-29T08:32:43.276030
2023-08-12T09:23:20
2023-08-12T09:23:20
188,114,254
154
11
MIT
2023-06-03T12:50:25
2019-05-22T21:10:56
HTML
UTF-8
Python
false
false
2,964
py
__init__.py
""" monobit.formats.mac - Mac OS fonts (c) 2019--2023 Rob Hagemans licence: https://opensource.org/licenses/MIT """ import logging from ...storage import loaders, savers from .dfont import parse_resource_fork, save_dfont from .nfnt import extract_nfnt, convert_nfnt, create_nfnt from .lisa import _load_lisa from .ii...
0088a3a261696fe793472965c9d1b27c278d077f
fa959d7480c83556618b964204687922be2ec464
/scripts/profiling.py
3435fbde5c8af0df91b8244db1372ac4d1ed5dfd
[ "MIT" ]
permissive
luinardi/hypermapper
b268f4a176cb9e62ed9d92c89019e14faa5aae12
3dfa8a7010792546e2d688b6113569b0cf36958e
refs/heads/master
2023-09-01T07:44:19.191875
2023-03-21T10:02:58
2023-03-21T10:02:58
229,329,674
139
24
MIT
2023-09-06T09:57:33
2019-12-20T20:10:54
C++
UTF-8
Python
false
false
3,236
py
profiling.py
import json import sys import os import math from collections import OrderedDict import pandas as pd import datetime from utility_functions import * from jsonschema import Draft4Validator, validators, exceptions class Profiler: def __init__(self, config): """ :param baseline_config_files: list of ...
7d28c271ec979a5d7b1affeeb81cc0c03bc93ab3
dcfc88503e3a8df5d9083b512178d254727d1a31
/axelrod/strategies/verybad.py
747d15d618e6050ffaf056b21909d68887ac73f9
[ "MIT" ]
permissive
Axelrod-Python/Axelrod
b8502822da103fbf1a56ffbc090453b95bf9f2d8
fa748627cd4f0333bb2dbfcb1454372a78a9098a
refs/heads/dev
2023-09-04T06:41:55.216809
2023-07-10T19:42:54
2023-07-14T02:37:16
30,959,449
673
289
NOASSERTION
2023-07-14T02:37:18
2015-02-18T09:37:17
Python
UTF-8
Python
false
false
1,387
py
verybad.py
from axelrod.action import Action from axelrod.player import Player C, D = Action.C, Action.D class VeryBad(Player): """ It cooperates in the first three rounds, and uses probability (it implements a memory, which stores the opponent’s moves) to decide for cooperating or defecting. Due to a lack ...
d7f509318a12c3b51d3966adcc81faa8a3543b02
7c63d456e50fc3f43c6ec6e3c9e3683743d986c4
/effdet/config/__init__.py
0dd74ec181acca5c0aa089fc573e3c43690ad64b
[ "CC-BY-2.0", "CC-BY-4.0", "Apache-2.0" ]
permissive
rwightman/efficientdet-pytorch
df2e0fd48f1b6a5f7268059fd35132066c5d4fb9
d43c9e34cd62d22b4205831bb735f6dd83b8e881
refs/heads/master
2023-08-23T20:20:50.900670
2023-05-22T19:46:38
2023-05-22T19:46:38
250,391,956
1,590
344
Apache-2.0
2023-07-25T16:33:10
2020-03-26T23:09:20
Python
UTF-8
Python
false
false
247
py
__init__.py
from .config_utils import set_config_readonly, set_config_writeable from .fpn_config import get_fpn_config from .model_config import get_efficientdet_config, default_detection_model_configs from .train_config import default_detection_train_config
56ad584abf91721f06b3784f254dc2b34a3bbbc4
55c5ebdfa89ba924fe81323de79002d597d5f4c1
/arraytool/src/arraytool/circular.py
b14cc56307e9d3bfaf57cbb0e6b60aaba616b36a
[ "BSD-3-Clause" ]
permissive
zinka/arraytool
4ce31dc17a25e457974e7220e4024f47f167a051
9acc5a90a1771750e70590a3d508e2c24a55be87
refs/heads/master
2021-01-18T15:18:56.202570
2016-10-22T05:42:27
2016-10-22T05:42:27
871,685
116
30
null
null
null
null
UTF-8
Python
false
false
17,455
py
circular.py
#! /usr/bin/env python # Author: Srinivasa Rao Zinka (srinivas . zinka [at] gmail . com) # Copyright (c) 2014 Srinivasa Rao Zinka # License: New BSD License. from __future__ import division import numpy as np from scipy import integrate, special import matplotlib.pyplot as plt import planar as pl import Zo...
3bd5108495275179e574372c3318a399a4d01a6b
1162ecf9985dd4fb03aeea784e7fdcf72eec55b4
/mouse_teleop/mouse_teleop/mouse_teleop.py
0fdd88e7c74fc2717b5929c42837074b8f7090b7
[ "BSD-2-Clause" ]
permissive
ros-teleop/teleop_tools
19c7ca7eb19ea7badc0ceb33fbd06bfd5f08cab4
df4d55f0b911371d18652b9808f7981dd2a237a7
refs/heads/master
2023-07-06T04:37:04.655312
2023-05-18T16:09:54
2023-05-18T16:09:54
13,269,341
143
121
null
2023-06-13T08:19:29
2013-10-02T11:27:33
Python
UTF-8
Python
false
false
8,965
py
mouse_teleop.py
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2015 Enrique Fernandez # All rights reserved. # # Software License Agreement (BSD License 2.0) # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Re...
8fc559e75d00d4ef1c65cddebec7f395f25a54cc
6c37d1d2437a08e43b13d621d4a8da4da7135b3a
/yt_dlp/extractor/la7.py
a3cd12b00347cd33e4f0452487fd44d9991b2d2d
[ "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
9,435
py
la7.py
import re from .common import InfoExtractor from ..networking import HEADRequest from ..utils import float_or_none, int_or_none, parse_duration, unified_strdate class LA7IE(InfoExtractor): IE_NAME = 'la7.it' _VALID_URL = r'''(?x)https?://(?: (?:www\.)?la7\.it/([^/]+)/(?:rivedila7|video|news)/| ...
b50676342849a64d2559f8050ce684d7a17ba245
84bdf2b9e7a684b3322f08fe995fec0fb6ef0b43
/pycaret/internal/pycaret_experiment/non_ts_supervised_experiment.py
88d2dce157de5f7e7fe22b969e96da8a87d79fa9
[ "MIT" ]
permissive
pycaret/pycaret
ea613de9b8da2e38b1988ff7a2952abe59a3b93c
ea88b2d3ee22c080ca5059f2f6f1547952b9451c
refs/heads/master
2023-08-31T23:33:50.953586
2023-08-30T09:31:32
2023-08-30T09:31:32
223,636,350
7,915
1,994
MIT
2023-09-11T03:58:59
2019-11-23T18:40:48
Jupyter Notebook
UTF-8
Python
false
false
3,220
py
non_ts_supervised_experiment.py
import pandas as pd from pycaret.internal.pycaret_experiment.supervised_experiment import ( _SupervisedExperiment, ) class _NonTSSupervisedExperiment(_SupervisedExperiment): def __init__(self) -> None: super().__init__() @property def test(self): """Test set.""" return self.d...
afd7aec8e3d2117e5a5a9e2ed2094463b1737ca0
a5a7c59b04a1a64fe34653c7970c3cf173f9c1df
/io/tools/build_from_doxygen.py
83a55039077dca513ea53b58eb4769fa3b0970b3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
siconos/siconos
a7afdba41a2bc1192ad8dcd93ac7266fa281f4cf
82a8d1338bfc1be0d36b5e8a9f40c1ad5384a641
refs/heads/master
2023-08-21T22:22:55.625941
2023-07-17T13:07:32
2023-07-17T13:07:32
37,709,357
166
33
Apache-2.0
2023-07-17T12:31:16
2015-06-19T07:55:53
C
UTF-8
Python
false
false
7,858
py
build_from_doxygen.py
#!/usr/bin/env python3 import os, os.path, sys from glob import glob import lxml.etree import re from builder_common import * def get_classes_conditional(doxy_xml_files, cond): """Get classes and members from a list of Doxygen XML files that meet the given condition.""" found = {} for xmlfile in d...
9c4631a8b404e63ef3763199e58ec739c3ddd30f
7c1f157acafec729d060847469a5cf36cd88e792
/cords/utils/data/dataloader/SSL/adaptive/adaptivedataloader.py
be699c8a14b7883f23cd11b4de3be2474b12be22
[ "MIT" ]
permissive
decile-team/cords
025415cc7b4577e01acba312908b9e12da27da9b
8d10c7f5d96e071f98c20e4e9ff4c41c2c4ea2af
refs/heads/main
2023-05-25T01:57:51.429546
2023-05-24T19:46:54
2023-05-24T19:46:54
330,041,216
289
54
MIT
2023-05-24T17:25:40
2021-01-15T23:02:58
Jupyter Notebook
UTF-8
Python
false
false
6,608
py
adaptivedataloader.py
import logging, torch from abc import abstractmethod from torch.utils.data import DataLoader from ..dssdataloader import DSSDataLoader from cords.utils.data.datasets.SSL.utils import InfiniteSampler from cords.utils.data.data_utils import WeightedSubset class AdaptiveDSSDataLoader(DSSDataLoader): """ Implemen...
04a775ba3f05589b3d4b71533cfb4d509fc4dd16
4d28185e7a78a569f9a449f39f183cac3024f711
/packages/Python/lldbsuite/test/tools/lldb-server/register-reading/TestGdbRemoteGPacket.py
e13daeb6d9a437048100dc5581dbb732922c813a
[ "NCSA", "Apache-2.0", "LLVM-exception" ]
permissive
apple/swift-lldb
2789bf44f648609a1674ee520ac20b64c95de072
d74be846ef3e62de946df343e8c234bde93a8912
refs/heads/stable
2023-04-06T00:28:15.882479
2019-10-25T22:46:59
2019-10-25T22:46:59
44,838,862
780
291
Apache-2.0
2020-01-10T19:28:43
2015-10-23T21:13:18
C++
UTF-8
Python
false
false
6,150
py
TestGdbRemoteGPacket.py
from __future__ import print_function import gdbremote_testcase import textwrap from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil def _extract_register_value(reg_info, reg_bank, byte_order, bytes_per_entry=8): reg_offset = int(reg_info["offset"])*2...
ebd733eb0e5f9c6ca223ab6fa9ef9a40b997cd2a
2b319ab54d06a304397c43176ede37ae8669c6df
/mono-example/module.py
2eec3d1d3f42fb90d35fbd21d70ddafc80cb98c9
[]
no_license
cloudius-systems/osv-apps
54c389eb72f100a6e8485f92aa4553896c4bc8e5
22e1541ca18d3794053b9ca61671508a2d1944ec
refs/heads/master
2023-06-08T01:13:22.161834
2023-05-31T15:49:10
2023-05-31T15:49:10
14,896,375
122
69
null
2023-01-21T01:34:28
2013-12-03T14:44:26
Makefile
UTF-8
Python
false
false
106
py
module.py
from osv.modules import api default = api.run("--env=MONO_DISABLE_SHARED_AREA=true /run_mono hello.exe")
6563088e57b6ca34cd6ffedd119e8ed30086ed1f
df87814cb32990ad8c27d0b13a821aabce012819
/kolibri/core/auth/utils/users.py
28b17a0f8d79e1b13f83996b190676e4f67347ec
[ "MIT" ]
permissive
learningequality/kolibri
26812d4ae771f3b389d3317a586bc032fc84866b
cc9da2a6acd139acac3cd71c4cb05c15d4465712
refs/heads/release-v0.16.x
2023-09-01T18:07:29.720772
2023-08-31T15:43:47
2023-08-31T15:43:47
49,976,939
689
682
MIT
2023-09-14T20:02:29
2016-01-19T19:22:07
Python
UTF-8
Python
false
false
2,658
py
users.py
import requests from django.core.management.base import CommandError from requests.exceptions import ConnectionError from requests.exceptions import HTTPError from rest_framework.exceptions import AuthenticationFailed from kolibri.core import error_constants from kolibri.core.auth.backends import FACILITY_CREDENTIAL_K...
cd600bdcde76cbea4059eb26122e556c6922ee67
bf5acb19d44d031e2d8a9e37266acd55c5697863
/tests/integration/test_models/test_full_battery_models/test_lead_acid/test_side_reactions/test_loqs_side_reactions.py
501689af69aa1c3a0704d4d26010156a79f72f78
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
pybamm-team/PyBaMM
82ecf9bebb580aab1a4e67aa7d0297d2698a0b51
b4432b6da7331f992b1831912a9cf89be1f7578f
refs/heads/develop
2023-08-19T04:29:21.151964
2023-08-18T22:43:38
2023-08-18T22:43:38
155,538,761
713
362
BSD-3-Clause
2023-09-14T18:20:04
2018-10-31T10:26:29
Python
UTF-8
Python
false
false
1,989
py
test_loqs_side_reactions.py
# # Tests for the lead-acid LOQS model # from tests import TestCase import pybamm import tests import unittest class TestLeadAcidLOQSWithSideReactions(TestCase): def test_discharge_differential(self): options = {"surface form": "differential", "hydrolysis": "true"} model = pybamm.lead_acid.LOQS(op...
4255c29f6b7eaa886ccec57910fba096a895ac95
8df4c829269a73a6e40f7e249c09556d1689714d
/colour_demosaicing/bayer/masks.py
1c99bb1e227a664a4e79bd21c4f50f5fc7726dd1
[ "BSD-3-Clause" ]
permissive
colour-science/colour-demosaicing
0da0e9311e8b4d551887a9f4cbe82af5019b5923
d7dae18f1c2707e6e7050eb61a042fdf9b8b3543
refs/heads/develop
2023-09-03T11:43:49.476953
2023-08-27T00:38:51
2023-08-27T00:44:34
43,235,447
252
63
BSD-3-Clause
2022-08-09T00:30:44
2015-09-27T05:18:57
Jupyter Notebook
UTF-8
Python
false
false
2,315
py
masks.py
""" Bayer CFA Masks =============== *Bayer* CFA (Colour Filter Array) masks generation. """ from __future__ import annotations import numpy as np from colour.hints import Literal, NDArray, Tuple from colour.utilities import validate_method __author__ = "Colour Developers" __copyright__ = "Copyright 2015 Colour Dev...
79d0ed69c00ffd7070ef87a82ec9490bae892aff
df87814cb32990ad8c27d0b13a821aabce012819
/kolibri/core/notifications/kolibri_plugin.py
e64df195eb1e8eb5cc4dcb00cb417f85f1773eb3
[ "MIT" ]
permissive
learningequality/kolibri
26812d4ae771f3b389d3317a586bc032fc84866b
cc9da2a6acd139acac3cd71c4cb05c15d4465712
refs/heads/release-v0.16.x
2023-09-01T18:07:29.720772
2023-08-31T15:43:47
2023-08-31T15:43:47
49,976,939
689
682
MIT
2023-09-14T20:02:29
2016-01-19T19:22:07
Python
UTF-8
Python
false
false
2,689
py
kolibri_plugin.py
from kolibri.core.auth.hooks import FacilityDataSyncHook from kolibri.core.auth.sync_event_hook_utils import get_other_side_kolibri_version from kolibri.core.logger.models import AttemptLog from kolibri.core.logger.models import ContentSummaryLog from kolibri.core.logger.models import ExamAttemptLog from kolibri.core.l...
4a29f517e5751e2c9b1cd4dda6d1053a579f9620
25daa9604b83ddc199764309c39da106a5313c22
/cd4ml/problems/houses/readers/zip_lookup.py
5f39201974088ffad0755a13c77129d3a1795db6
[ "MIT" ]
permissive
ThoughtWorksInc/CD4ML-Scenarios
83d3f162a2ddbb7e02662d03f769feb8978b4de9
a9200df2f926f7e398dd820b99a11515c9a3eacb
refs/heads/master
2023-05-12T07:11:39.677610
2022-05-31T14:14:57
2022-05-31T14:14:57
246,649,538
127
327
MIT
2023-05-01T23:38:18
2020-03-11T18:26:59
Python
UTF-8
Python
false
false
305
py
zip_lookup.py
from csv import DictReader from cd4ml.filenames import get_problem_files def get_zip_lookup(problem_name): file_names = get_problem_files(problem_name) filename = file_names['house_data_zip_lookup'] stream = DictReader(open(filename, 'r')) return {row['zipcode']: row for row in stream}
945c999ca24ca4885cfba9f61a5ae83e0c4544a7
f9bb6d867cae81d8734174c8708a3165ba79fce5
/tests/test_corruption.py
7de0cd86e9c039ffd0b03361fc3ab002fb1cf302
[ "MIT" ]
permissive
henu/bigjson
fe15f33c7640b02c6d16c6b2adb806958417dfba
b562d7be1e8de689cfaf44fdca7a636a8d21ca20
refs/heads/master
2023-03-12T19:40:20.096911
2022-06-13T20:03:28
2022-06-13T20:03:28
64,804,958
189
34
MIT
2023-02-16T17:55:36
2016-08-03T01:33:27
Python
UTF-8
Python
false
false
1,242
py
test_corruption.py
from io import BytesIO from unittest import TestCase import bigjson MISSING_OPEN_QUOTE_JSON_FILE = b""" { "object": { "x": y" } } """ CORRUPT_BACKSLASH_ENCODING_JSON_FILE = b""" { "string": "\qblah" } """ MISSING_DIGIT_AFTER_DOT_JSON_FILE = b""" { "number": 14. } """ class TestCorruption(...
261aa262140fb0c167d8c728740a1eea927e01b2
6dd5027d9f02b2c40c96fdea9796a4fba6ee7e46
/tests/test_reduce.py
d48739ac0a5463df9b690f23274ca90f86e75721
[ "Apache-2.0" ]
permissive
cornell-zhang/heterocl
fb4fd3c9cdbb7c7ccbdb2a8a09f47b436200c8f6
b794409e68e326cafa6c3eaec2e3560ff066e129
refs/heads/main
2023-07-22T16:33:57.900104
2023-07-19T19:58:13
2023-07-19T19:58:13
114,906,951
312
111
Apache-2.0
2023-07-19T19:58:15
2017-12-20T16:13:52
Python
UTF-8
Python
false
false
8,723
py
test_reduce.py
# Copyright HeteroCL authors. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import heterocl as hcl import numpy as np import heterocl as hcl import numpy as np def test_reduce_basic(): hcl.init() def kernel(A): my_sum = hcl.reducer(0, lambda x, y: x + y) r = hcl.reduce_axis(0, ...
29e47afbe5ea03685b2c012efa1b76139a1b3c07
0cb8fcfab73b1e79749e22f5003b73c5f4c82efa
/test/PerfTests/Python/ManyInstances/__init__.py
2be56791845e8aede461c6cf1a02daf2224ae218
[ "MIT" ]
permissive
Azure/azure-functions-durable-extension
6f9736b0c161840b074539ed7bad692bdae7038f
dd47436ac6b835023b30fb3138dcd14c71e45360
refs/heads/dev
2023-09-04T00:44:46.271075
2023-08-31T22:30:16
2023-08-31T22:30:16
93,190,658
699
318
MIT
2023-09-14T17:14:33
2017-06-02T17:51:30
C#
UTF-8
Python
false
false
780
py
__init__.py
import logging import azure.functions as func import azure.durable_functions as df from shared_utils.parse_and_validate_input import parse_and_validate_input import asyncio async def main(req: func.HttpRequest, starter: str) -> func.HttpResponse: client = df.DurableOrchestrationClient(starter) num_instances = ...
414c01c103260ee8d8b261a5d63a31ceb18a1b2c
fc160694094b89ab09e5c9a0f03db80437eabc93
/owl-bot-postprocessor/synthtool/gcp/pregenerated.py
d6cdb2aaaacadabb07a6f9b0eac8b2b9eae6f4f9
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
googleapis/google-cloud-java
4f4d97a145e0310db142ecbc3340ce3a2a444e5e
6e23c3a406e19af410a1a1dd0d0487329875040e
refs/heads/main
2023-09-04T09:09:02.481897
2023-08-31T20:45:11
2023-08-31T20:45:11
26,181,278
1,122
685
Apache-2.0
2023-09-13T21:21:23
2014-11-04T17:57:16
Java
UTF-8
Python
false
false
1,640
py
pregenerated.py
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
402e1f8319d27a01f0329d6d47dff4addfc44f38
c6b13016ff1c07fd612e27a4cf33dc4cba4146d5
/gokart/utils.py
56f8e2c647c9c4ebecd622aa39ca660646e160d0
[ "MIT" ]
permissive
m3dev/gokart
64bd6c40197b002587d013ac9e2b61315451812a
f5a368304f9cb8db8d392f15f0f9c0ac956cd999
refs/heads/master
2023-08-04T09:10:53.567582
2023-08-02T20:38:11
2023-08-02T20:38:11
162,871,731
308
59
MIT
2023-08-02T20:38:13
2018-12-23T07:40:27
Python
UTF-8
Python
false
false
199
py
utils.py
import os import luigi def add_config(file_path: str): _, ext = os.path.splitext(file_path) luigi.configuration.core.parser = ext assert luigi.configuration.add_config_path(file_path)
7bbf16a4323720baae80bbda2ffb4e1d07c81f87
8de79ab1818c535dcd8ad6e0c92b5c9642ffb82a
/sphinx/environment/adapters/indexentries.py
6fdbea6fa5deba1d8dfb7107d350288c28bc0fce
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
sphinx-doc/sphinx
632d75bfc7bef14904f3d847e6de6d37594a13a5
eab54533a56119c5badd5aac647c595a9adae720
refs/heads/master
2023-08-16T18:21:54.073511
2023-08-15T17:36:47
2023-08-15T17:36:47
28,710,753
6,138
2,587
NOASSERTION
2023-09-14T14:22:28
2015-01-02T10:53:28
Python
UTF-8
Python
false
false
7,589
py
indexentries.py
"""Index entries adapters for sphinx.environment.""" from __future__ import annotations import re import unicodedata from itertools import groupby from typing import TYPE_CHECKING, Any, Literal from sphinx.errors import NoUri from sphinx.locale import _, __ from sphinx.util import logging from sphinx.util.index_entr...
57cfefd97e00b9329d1b8953c5c40624a4bac4ca
e75a40843a8738b84bd529a549c45776d09e70d9
/samples/openapi3/server/petstore/python-flask/openapi_server/models/upload_form.py
3e566f6837aa3d93cba7e3e705105ed57bb026d2
[ "Apache-2.0" ]
permissive
OpenAPITools/openapi-generator
3478dbf8e8319977269e2e84e0bf9960233146e3
8c2de11ac2f268836ac9bf0906b8bb6b4013c92d
refs/heads/master
2023-09-02T11:26:28.189499
2023-09-02T02:21:04
2023-09-02T02:21:04
133,134,007
17,729
6,577
Apache-2.0
2023-09-14T19:45:32
2018-05-12T09:57:56
Java
UTF-8
Python
false
false
2,668
py
upload_form.py
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from openapi_server.models.base_model_ import Model from openapi_server import util class UploadForm(Model): """NOTE: This class is auto generated by OpenAPI Gene...
5772af839f3eb2212ab6ecbccda25d96587e9b6b
6deafbf6257a5c30f084c3678712235c2c31a686
/Toolz/sqlmap/plugins/dbms/oracle/enumeration.py
981543516190687f0e44da259694749cb8c1369c
[ "Unlicense", "LicenseRef-scancode-generic-cla", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-proprietary-license", "GPL-2.0-only", "LicenseRef-scancode-commercial-license", "LicenseRef-scancode-other-permissive" ]
permissive
thezakman/CTF-Heaven
53fcb4a72afa821ad05d8cc3b309fb388f958163
4b52a2178922f1502ab00fa8fc156d35e1dc653f
refs/heads/master
2023-04-05T18:20:54.680378
2023-03-21T13:47:45
2023-03-21T13:47:45
167,290,879
182
24
Unlicense
2022-11-29T21:41:30
2019-01-24T02:44:24
Python
UTF-8
Python
false
false
5,972
py
enumeration.py
#!/usr/bin/env python """ Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/) See the file 'LICENSE' for copying permission """ from lib.core.common import getLimitRange from lib.core.common import isAdminFromPrivileges from lib.core.common import isInferenceAvailable from lib.core.common import isNoneValu...
d51452775744d289b27a7b4f3af5cae075e290f7
98a0afba7ba4e2bfcbb4882a20d38255034686a2
/registration.py
b1d6569fb7fd7ff11b19b47e0d4e195d15801cf0
[ "MIT" ]
permissive
Grim-es/material-combiner-addon
ecf05cfc46a241c5a15bf5244162076d5c84ffe5
55a235dcd93455994aec1226bbbfd78092ff6463
refs/heads/master
2023-07-24T04:16:00.992944
2023-07-23T22:09:35
2023-07-23T22:09:35
145,512,509
380
36
MIT
2023-07-23T22:09:37
2018-08-21T05:44:17
Python
UTF-8
Python
false
false
2,864
py
registration.py
from typing import Dict from typing import Union import bpy from . import addon_updater_ops from . import extend_lists from . import extend_types from . import globs from . import operators from . import ui from .icons import initialize_smc_icons from .icons import unload_smc_icons from .type_annotations import BlCla...
6907da6a0cca2ea40fe0bae656d0325b02fadb48
23eafaa60b66769190227c80ac1b087697c72ed8
/web/tests/test_whoosh_index.py
011eb6676f6f08286ac72f5206485519fbfddc01
[ "MIT" ]
permissive
devpi/devpi
fe4d76f2ab57da3a766a9e13c51cd4f229598083
56c266744ddfd182d46ca480b787ab44a6ee4692
refs/heads/main
2023-09-04T02:57:22.075986
2023-08-06T10:32:46
2023-08-06T10:32:46
86,787,680
760
148
null
2023-09-09T19:53:10
2017-03-31T06:51:39
Python
UTF-8
Python
false
false
17,960
py
test_whoosh_index.py
from devpi_web.indexing import ProjectIndexingInfo import pytest @pytest.mark.parametrize("input, expected", [ ("Foo", [(0, 0, 3, "Foo")]), ("Foo Bar", [(0, 0, 3, "Foo"), (1, 4, 7, "Bar")]), ("Foo-Bar", [(0, 0, 3, "Foo"), (1, 4, 7, "Bar")]), ("Foo_Bar", [(0, 0, 3, "Foo"), (1, 4, 7, "Bar")]), ("1Fo...
9bfb51062ddfd9942106f46ea80e48a2cbd51d6b
e65a4dbfbfb0e54e59787ba7741efee12f7687f3
/devel/py-grpcio-tools/files/patch-setup.py
3f2434e25c609497ecdbd466cabac54f72de373a
[ "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
1,396
py
patch-setup.py
--- setup.py.orig 2023-08-08 21:49:44 UTC +++ setup.py @@ -160,7 +160,7 @@ if EXTRA_ENV_COMPILE_ARGS is None: # We need to statically link the C++ Runtime, only the C runtime is # available dynamically EXTRA_ENV_COMPILE_ARGS += " /MT" - elif "linux" in sys.platform or "darwin" ...
82c9c1acf9dab03ec02c287c06eeb8438e33f641
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-core/PyObjCTest/__init__.py
851ba8982ccf223e8856827729791c97d0fd3706
[ "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
59
py
__init__.py
""" PyObjCTest package - unittests for the pyobjc core """
5beabdb758ebef799d27dfdf647155150180e045
0ba9681b235b377b3f57d52532ab7212d4d4cd8a
/saw-remote-api/python/tests/saw-in-progress/HMAC/spec/HMAC.py
e977e3c55610ffacd035a497608d3af747d82f66
[ "BSD-3-Clause" ]
permissive
GaloisInc/saw-script
d9a3eb7b05c1bcbcc319987223cd53b903b55b5d
79ddd800bec59528958ed6d7593304e2b17b7dfb
refs/heads/master
2023-09-01T09:47:31.415255
2023-08-30T11:26:08
2023-08-30T11:26:08
34,082,065
458
82
BSD-3-Clause
2023-09-14T16:23:09
2015-04-16T21:39:32
Haskell
UTF-8
Python
false
false
17,450
py
HMAC.py
import os import os.path from cryptol.cryptoltypes import to_cryptol from saw_client import * from saw_client.llvm import * from env_server import * # N.B., transliteration from HMAC.saw dir_path = os.path.dirname(os.path.realpath(__file__)) c = env_connect() # import "HMAC_iterative.cry"; cryptol_load_file(os.path....
040063bc7a45777bf089f07213bb279322d649f2
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-PHASE/PyObjCTest/test_phasegroup.py
61f7ed42557fb44a42294a54e48560391a2806a3
[ "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
238
py
test_phasegroup.py
from PyObjCTools.TestSupport import TestCase import PHASE class TestPHASEGroup(TestCase): def test_methods(self): self.assertResultIsBOOL(PHASE.PHASEGroup.isMuted) self.assertResultIsBOOL(PHASE.PHASEGroup.isSoloed)
c492f4aad578deaa5b39a4a39ebbe0937519e9d9
2ac03b8c24df220ea32ea525e1d65aeb294cd1a4
/custom_components/waste_collection_schedule/waste_collection_schedule/source/scheibbs_umweltverbaende_at.py
3d84b1e824033e940aaadc2f1803ef7c5d8afe62
[ "MIT" ]
permissive
mampfes/hacs_waste_collection_schedule
a7b98319a7483dedc8cf78b724f93932934c1702
1dc9476efef9963a141b9ac987e2708224b9eaaf
refs/heads/master
2023-08-16T21:14:46.088962
2023-08-16T10:05:24
2023-08-16T10:05:24
254,347,436
495
428
MIT
2023-09-12T18:59:07
2020-04-09T11:02:16
Python
UTF-8
Python
false
false
2,067
py
scheibbs_umweltverbaende_at.py
from datetime import datetime import requests from bs4 import BeautifulSoup from waste_collection_schedule import Collection TITLE = "GVU Scheibbs" DESCRIPTION = "Source for waste collection services Association of Municipalities in the District of Scheibbs" URL = "https://scheibbs.umweltverbaende.at/" TEST_CASES = {...
591a77e278328ad85945739e5ba9ddfd8b09eb6c
09a7fa80d420634848b5e6af7b59353afd8c726b
/src/main/resources/resource/GoogleCloud/GoogleCloud.py
dff75cada9dedcd426fde4ddbb363643b655c18e
[ "Apache-2.0", "CC-BY-2.5" ]
permissive
MyRobotLab/myrobotlab
cf789956d9f97a98eead44faf7a8b61f70348dc3
0ecdc681b4928ab65649404779c095d352dd96b1
refs/heads/develop
2023-09-04T10:57:19.041683
2023-08-30T14:04:44
2023-08-30T14:04:44
18,051,302
213
114
Apache-2.0
2023-09-07T14:14:58
2014-03-24T03:59:27
Java
UTF-8
Python
false
false
888
py
GoogleCloud.py
######################################### # GoogleCloud.py # description: google api client service # categories: [google, vision, cloud] # possibly more info @: http://myrobotlab.org/service/GoogleCloud ######################################### # start the service googlecloud = runtime.start("googlecloud","GoogleCloud...
58a50f5bae492b1df9c714b93fcf1069c3f89236
114bcbcf18d772db12c8aac3e4a10bcbde5d9d80
/tools/iqm_export.py
0e27fb333ec5be18908197175067dd6f62365b38
[ "BSL-1.0" ]
permissive
gecko0307/dagon
e7c6f82cc6abd506d358c66c92c949854bcb964d
98556587bf578e83715167aeaba94a73fac7df0c
refs/heads/master
2023-09-01T00:27:53.845159
2023-08-30T21:09:18
2023-08-30T21:09:18
70,403,001
307
34
NOASSERTION
2022-06-25T10:09:02
2016-10-09T12:57:05
D
UTF-8
Python
false
false
47,247
py
iqm_export.py
# This script is licensed as public domain. bl_info = { "name": "Export Inter-Quake Model (.iqm/.iqe)", "author": "Lee Salzman", "version": (2016, 2, 9), "blender": (2, 74, 0), "location": "File > Export > Inter-Quake Model", "description": "Export to the Inter-Quake Model format (.iqm/.iqe)", ...
b6abf7532563384840be83081b3b6e943994add8
4434dd8bf1d177c155300860d77fb77c3d6c65dd
/watchman/integration/test_trigger_chdir.py
f0043269c1cb5efefab6f48b80a44ca5af4f6910
[ "MIT" ]
permissive
facebook/watchman
528fc282642d29ea4effcc9f7bb9cd04547e1248
0f6c285a58df680c5586593b87c779907aa4a0ac
refs/heads/main
2023-08-31T21:32:14.180520
2023-08-31T01:07:08
2023-08-31T01:07:08
6,930,489
10,583
1,063
MIT
2023-08-16T18:35:09
2012-11-29T23:35:52
C++
UTF-8
Python
false
false
9,252
py
test_trigger_chdir.py
# vim:ts=4:sw=4:et: # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import json import os import os.path import sys import time from watchman.integration.lib import HELPER_ROOT, Watchman...
1664a97f255ce9311480d397832fa5933697f5e8
21116da0aa0a14af210f34d6dd237d60a0d9c863
/test/mock_rcon.py
c5f7c359833e8c1ea026dd31054e5a08e5331a56
[ "MIT" ]
permissive
nicolaschan/minecraft-backup
7d2edf36d165d8789fc8b2287ab41c2d20b00710
8a04318f93331ef2488db06d48e8e32d83f8575f
refs/heads/master
2023-02-07T00:43:49.523622
2021-07-30T06:58:25
2021-07-30T06:58:25
67,576,926
207
52
MIT
2023-02-05T10:37:30
2016-09-07T06:01:14
Shell
UTF-8
Python
false
false
1,142
py
mock_rcon.py
# Reference: https://docs.python.org/3/library/socketserver.html import codecs import socketserver import sys class Handler(socketserver.BaseRequestHandler): def handle(self): while True: length = int.from_bytes(self.request.recv(4), 'little') if not length: continue...
e613f28974ee7a5c2d4220b52e4d3c812fb2aa47
2307bfaa6faf94297d57ad4d146f3c5ad10ebcd5
/tests/ble_driver_test.py
2b9143cd29bc3677f2fb6e8fba985beb871bc3b8
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
NordicSemiconductor/pc-ble-driver-py
9e979e246015c457486df8060e0c529e6b1559fc
a6b36d3a8924b809fe86267ba3f8079dc173fb27
refs/heads/master
2023-09-01T12:05:07.829964
2022-07-08T05:13:59
2022-07-08T05:13:59
60,178,516
131
119
NOASSERTION
2023-07-01T05:24:08
2016-06-01T13:18:24
Python
UTF-8
Python
false
false
1,993
py
ble_driver_test.py
import unittest from pc_ble_driver_py import config config.__conn_ic_id__ = 'NRF52' from pc_ble_driver_py.ble_driver import Flasher class FlasherParserTestCase(unittest.TestCase): raw_data = [ '17', 'A5', 'D8', '46', # magic number '02', # struct version 'FF', 'FF', 'FF', # (reserved f...
4d944c1801d8d4013911aa4e6f879e0a118e177d
620323fc090cebaf7aca456ff3f7fbbe1e210394
/graph__networkx__d3__dot_graphviz/graphviz__d3/generate_hello_world.py
029820d4e6f897fc61a9aae72da42805269d1f86
[ "CC-BY-4.0" ]
permissive
gil9red/SimplePyScripts
bd2733372728bf9b9f00570e90316fa12116516b
773c2c9724edd8827a1dbd91694d780e03fcb05a
refs/heads/master
2023-08-31T04:26:09.120173
2023-08-30T17:22:59
2023-08-30T17:22:59
22,650,442
157
46
null
2023-09-08T17:51:33
2014-08-05T16:19:52
Python
UTF-8
Python
false
false
426
py
generate_hello_world.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "ipetrash" from common import generate # pip install graphviz from graphviz import Digraph def get_graph(): g = Digraph("G") g.edge("Hello", "World") return g FILE_NAME = "hello_world.html" if __name__ == "__main__": with open(FILE_NA...
fef4d298c553353c4d92adc4fad1b2e28628dc28
611e0544ff871e5df58f13a5f2898102f521ec8e
/tests/kafkatest/services/connect.py
da47b90d4241c3c6213f11385e12f90dad7cd1c2
[ "Apache-2.0", "GPL-2.0-only", "LicenseRef-scancode-public-domain", "W3C", "CC0-1.0", "GPL-1.0-or-later", "CPL-1.0", "GPL-2.0-or-later", "LicenseRef-scancode-generic-export-compliance", "LicenseRef-scancode-other-permissive", "CC-PDDC", "BSD-3-Clause", "APSL-2.0", "LicenseRef-scancode-free-...
permissive
confluentinc/kafka
3b0830c0afd81bc84ff409fa9eff61418636d697
cae0baef40b0d5d97af32256800492cb9d6471df
refs/heads/master
2023-09-03T12:54:24.118935
2023-08-31T18:05:22
2023-08-31T18:05:22
37,555,321
216
235
Apache-2.0
2023-09-14T12:05:20
2015-06-16T20:48:28
Java
UTF-8
Python
false
false
26,910
py
connect.py
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
2d5db89a117b668a8f8b2e9fdab524b311b1803c
312839d6a1fe98ebf6f55a11ff3136c0d1fc4895
/python3/vimspector/debug_session.py
28d0a397cbe3fac46987479eb29c65aaf56b79b1
[ "Apache-2.0" ]
permissive
puremourning/vimspector
e6e6e647919b68d740f42fcb9a4c8df635afebff
4e49a1782e34433410f96602640a05c9ec00a65f
refs/heads/master
2023-09-01T13:25:41.271070
2023-08-18T18:54:11
2023-08-18T18:54:11
134,156,823
4,156
235
Apache-2.0
2023-09-10T18:57:07
2018-05-20T14:19:41
Vim Script
UTF-8
Python
false
false
76,753
py
debug_session.py
# vimspector - A multi-language debugging system for Vim # Copyright 2018 Ben Jackson # # 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 # # Unle...
85601fe2a8e5b1ecfd985b4f911d9cb04f1bf4d2
b7314f9480634b2f2998c8181d4284d2b52ebba1
/src/python/txtai/api/cluster.py
e3f3c14a8afd5eeef8a239ac0ce638b6d143520d
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license" ]
permissive
neuml/txtai
3ca6fba11126d650ea4f2cf5199011a52ea56e4e
789a4555cb60ee9cdfa69afae5a5236d197e2b07
refs/heads/master
2023-08-31T08:09:31.834178
2023-08-29T15:36:23
2023-08-29T15:36:23
286,301,447
4,804
387
Apache-2.0
2023-09-11T17:12:40
2020-08-09T19:14:59
Python
UTF-8
Python
false
false
6,714
py
cluster.py
""" Cluster module """ import asyncio import urllib.parse import zlib import aiohttp from ..database.sql import Aggregate class Cluster: """ Aggregates multiple embeddings shards into a single logical embeddings instance. """ # pylint: disable = W0231 def __init__(self, config=None): "...
c66270aa384967da017526a79cc76f1f42e67a65
3c6b36eb1f4f9760c52903f6d0ec4a501f948c90
/osp/test/common/config/test_is_test.py
3bf3152f1150e0b6b11a1c5fa6895ea9700b541b
[ "Apache-2.0" ]
permissive
davidmcclure/open-syllabus-project
38444249af845013e3f281a7a713dca83159c56e
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
refs/heads/master
2021-06-30T21:47:07.636558
2021-06-27T15:15:35
2021-06-27T15:15:35
50,152,020
220
14
Apache-2.0
2021-06-27T15:11:15
2016-01-22T02:29:57
Python
UTF-8
Python
false
false
298
py
test_is_test.py
import pytest from .conftest import get_config @pytest.mark.parametrize('fixture,is_test', [ ('true', True), ('no-key', False), ('false', False), ]) def test_is_test(fixture, is_test): config = get_config('is_test/{0}'.format(fixture)) assert config.is_test() == is_test
21d4f10d886e9bd791f8b204dbc57dab37488f82
b5ce6908490cfb8e6a1e1cbe4745d675122ddce0
/questions/complement-of-base-10-integer/Solution.py
24a8089f54290197c3d8c9600b21123415582dee
[ "MIT" ]
permissive
franklingu/leetcode-solutions
8895910f13208e1d8e604100d84c2dd35684cde4
7ad7e5c1c040510b7b7bd225ed4297054464dbc6
refs/heads/master
2023-01-09T01:34:08.097518
2023-01-02T02:05:35
2023-01-02T02:05:35
43,345,677
155
66
MIT
2020-10-02T03:41:36
2015-09-29T04:54:38
Python
UTF-8
Python
false
false
1,282
py
Solution.py
""" Every non-negative integer N has a binary representation. For example, 5 can be represented as "101" in binary, 11 as "1011" in binary, and so on. Note that except for N = 0, there are no leading zeroes in any binary representation. The complement of a binary representation is the number in binary you get when c...
bcfc89632b001c5937e9efedd255d8a0bab02a8a
620323fc090cebaf7aca456ff3f7fbbe1e210394
/qt__pyqt__pyside__pyqode/pyqt5__exchange_rate_and_weather__use_QThread/main.py
82abc37be7659397752b0decc18c13ee6e34dfbc
[ "CC-BY-4.0" ]
permissive
gil9red/SimplePyScripts
bd2733372728bf9b9f00570e90316fa12116516b
773c2c9724edd8827a1dbd91694d780e03fcb05a
refs/heads/master
2023-08-31T04:26:09.120173
2023-08-30T17:22:59
2023-08-30T17:22:59
22,650,442
157
46
null
2023-09-08T17:51:33
2014-08-05T16:19:52
Python
UTF-8
Python
false
false
3,494
py
main.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "ipetrash" import sys import traceback import time from PyQt5 import Qt from utils import exchange_rate, get_weather def log_uncaught_exceptions(ex_cls, ex, tb): text = f"{ex_cls.__name__}: {ex}:\n" text += "".join(traceback.format_tb(tb)) ...
e5e8dd3de4986b88dae11918c2ac4ee8ac4ffb07
2804432fba5a4fe639d07a207bb01f71e03d9189
/test/cts/tool/CTSConverter/src/nn/specs/V1_1/mean_quant8_2.mod.py
23fd87c631a93b71bb634d34a53a2d92156d0978
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
intel/webml-polyfill
5685299e1b6d91a010c5e057685bf010d5646e4f
bd014955c5bcc9dc5465aea06721072f45ab4a75
refs/heads/master
2023-09-01T17:30:55.961667
2023-04-14T01:18:47
2023-04-14T01:18:47
126,892,425
168
75
Apache-2.0
2023-04-14T05:16:41
2018-03-26T21:31:32
Python
UTF-8
Python
false
false
603
py
mean_quant8_2.mod.py
model = Model() i1 = Input("input", "TENSOR_QUANT8_ASYMM", "{4, 3, 2}, 0.8, 5") axis = Parameter("axis", "TENSOR_INT32", "{2}", [0, 2]) keepDims = Int32Scalar("keepDims", 1) output = Output("output", "TENSOR_QUANT8_ASYMM", "{1, 3, 1}, 0.8, 5") model = model.Operation("MEAN", i1, axis, keepDims).To(output) # Example 1...
f0c1c34e1f57867353be3bd1fa3fc6d7c7104ae9
14f40e51d1f2b0671650ee6c350756b42262c6f2
/platformio/builder/tools/piosize.py
3ac24311e8fcc084757cff1279fb6b64d96d808e
[ "Apache-2.0" ]
permissive
platformio/platformio-core
7cfb8bb60661122f883ca175b6c48c9299fc3262
897844ebc172bd8a2e313bdb9011fc7d986863c2
refs/heads/develop
2023-08-22T01:48:10.215800
2023-08-18T11:39:03
2023-08-18T11:39:03
19,606,299
6,058
707
Apache-2.0
2023-09-07T05:23:55
2014-05-09T09:38:42
Python
UTF-8
Python
false
false
8,702
py
piosize.py
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # 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...
71e4069fc4e48763198c16ad27b5ca428eb3bad9
b20dcf585fcda752d567a17fe1e0eb3b3dcdbf81
/tllib/vision/datasets/stanford_cars.py
be72fa8a487a328890c44e2bf6f3255036b81bf5
[ "MIT" ]
permissive
thuml/Transfer-Learning-Library
1dc1402025ac842e361221f4fe1ed72bc36e9eac
ed03f0b11c16062e7faacb547f6eb9f83ce5f15e
refs/heads/master
2023-08-18T00:46:42.764139
2023-08-09T02:31:20
2023-08-09T02:31:20
240,494,185
2,786
527
MIT
2023-05-04T09:53:41
2020-02-14T11:33:06
Python
UTF-8
Python
false
false
4,453
py
stanford_cars.py
""" @author: Yifei Ji @contact: jiyf990330@163.com """ import os from typing import Optional from .imagelist import ImageList from ._util import download as download_data, check_exits class StanfordCars(ImageList): """`The Stanford Cars <https://ai.stanford.edu/~jkrause/cars/car_dataset.html>`_ \ contains 16,...
5f16259e941a5a8c12d9649aa2be78d3f86cb2f6
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/dts/airbyte/airbyte-integrations/connectors/source-instagram/source_instagram/streams.py
16352c1d93836e63a80eef8ac30af717314c81ac
[ "Apache-2.0", "BSD-3-Clause", "MIT", "Elastic-2.0" ]
permissive
alldatacenter/alldata
7bc7713c9f1d56ad6b8e59ea03206d1073b7e047
8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6
refs/heads/master
2023-08-05T07:32:25.442740
2023-08-03T13:17:24
2023-08-03T13:17:24
213,321,771
774
250
Apache-2.0
2023-09-06T17:35:32
2019-10-07T07:36:18
null
UTF-8
Python
false
false
17,344
py
streams.py
# # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # import copy from abc import ABC from datetime import datetime from typing import Any, Iterable, List, Mapping, MutableMapping, Optional import pendulum from airbyte_cdk.models import SyncMode from airbyte_cdk.sources.streams import Stream from cached_proper...
ebc86996a89ccaff63950f68a9ac486b30ebc4e0
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/Perch/Integrations/Perch/Perch.py
da897b9e06a6588ea47dbe405b4d79661ad51e26
[ "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
17,403
py
Perch.py
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * ''' IMPORTS ''' import requests import json import collections import urllib3 # Disable insecure warnings urllib3.disable_warnings() ''' GLOBALS/PARAMS ''' PARAMS = demisto.params() USERNAME = PARAMS.get('credential...
543631e50bda338fde0f2e2bce403f65c29b9aa8
9ed3b16b3da72e4c47a04f2f2e3ef395e9fd9f20
/contrib/emacs-console/update.py
d6123c97e20a1ca259bb82d0ad6cca46088e297d
[ "BSD-2-Clause" ]
permissive
chimera-linux/cports
fdae59dc25856942be3041e10e3533dbf8f883c3
714680161cd719dd047452c95fbb9b447bc23a86
refs/heads/master
2023-09-03T19:30:40.720670
2023-09-03T15:07:40
2023-09-03T15:07:40
374,000,317
118
37
BSD-2-Clause
2023-09-14T20:31:08
2021-06-05T02:07:34
Python
UTF-8
Python
false
false
18
py
update.py
pkgname = "emacs"
a36b9554e9e0be3c92cd28c8bc43dffe8350fd6c
9b5ec84b75949cf51275da9140723e23519169e1
/examples/memory-fixed/evolve.py
3fdf13b4ec0a529017f47a6ec1b2e49a60bfd3ba
[ "BSD-3-Clause" ]
permissive
CodeReclaimers/neat-python
82b4aca158e3bc20cf0d5ee8151ceb7f3cad0394
37bc8bb73fd6153a115001c2646f9f02bac3ad81
refs/heads/master
2023-09-02T03:29:29.036458
2023-07-28T22:57:40
2023-07-28T22:57:40
43,226,304
1,365
647
BSD-3-Clause
2023-08-13T17:31:00
2015-09-26T22:59:53
Python
UTF-8
Python
false
false
4,800
py
evolve.py
""" This example produces networks that can remember a fixed-length sequence of bits. It is intentionally very (overly?) simplistic just to show the usage of the NEAT library. However, if you come up with a more interesting or impressive example, please submit a pull request! This example also demonstrates the use of ...
2a0457c1c2c0e153d421fc757af8ea16c0ac24fb
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/pdf/ui/DEPS
66fe72596d09b815b17615e3bc8a843593a69d19
[ "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
155
DEPS
include_rules = [ "+components/strings/grit/components_strings.h", "+third_party/icu/source/i18n/unicode/ulocdata.h", "+ui/base/l10n/l10n_util.h", ]
60e7a5e70fca78c71b3a467748254a897894bffd
600c580ddcfc9adc2fb4852006cad86cc2759241
/autogoal/datasets/cifar10.py
70e0b6472604bebc406595076684461d1381a1aa
[ "MIT" ]
permissive
autogoal/autogoal
4cf2917d1bcd2267e8ca97b9eaabe03ec416b624
e7f504ffe57571c59cf582bcbc3ab0a5b91b7e06
refs/heads/main
2023-05-23T20:47:48.751916
2022-06-20T16:16:27
2022-06-20T16:16:27
255,711,241
195
78
MIT
2023-08-23T15:36:09
2020-04-14T19:53:48
Python
UTF-8
Python
false
false
1,357
py
cifar10.py
from autogoal.datasets import download, datapath import pickle import numpy as np def load(training_batches=5): """ Load the CIFAR-10 dataset ##### Parameters * 'training_batches': maximum number of batches to load for training, each batch has 10,000 examples (min=`1`, max=`5`, default=`5`). ...
66b028bcca75f3d8056281458a6c73e5c8fd1d81
5cdd9c1b6adb67fec94f6349ad6203ce2702fecb
/idd/schema/modify_schema.py
e20e60e32672bcd532fa15645328e9a9fc04ea31
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
NREL/EnergyPlus
9d8fc6936b5a0c81d2469ab9cdabe55405ccb8f2
50b8a5511ce559e5175524b943c26cc5b99d712d
refs/heads/develop
2023-09-04T08:20:29.804559
2023-09-01T13:58:55
2023-09-01T13:58:55
14,620,185
1,013
406
NOASSERTION
2023-09-14T19:52:57
2013-11-22T14:47:34
C++
UTF-8
Python
false
false
16,365
py
modify_schema.py
# EnergyPlus, Copyright (c) 1996-2023, The Board of Trustees of the University # of Illinois, The Regents of the University of California, through Lawrence # Berkeley National Laboratory (subject to receipt of any required approvals # from the U.S. Dept. of Energy), Oak Ridge National Laboratory, managed by UT- # Batte...
ea55713b080eedc03fc0d6dc1648e8ecee66b829
f6aac61a48a87743be9c40fecdc24344bae4d263
/htdocs/onsite/features/vote.py
164319ed1a814e6b30b1be7f132390b4940654d1
[ "MIT" ]
permissive
akrherz/iem
8714d99b371c8818f7cdde73dd24639e9fc7d42b
178015584b7fb5b585f65be6013eaf16fb6db0c7
refs/heads/main
2023-08-19T02:58:24.507782
2023-08-18T12:08:31
2023-08-18T12:08:31
4,253,774
118
74
MIT
2023-09-14T18:28:41
2012-05-07T20:32:59
Python
UTF-8
Python
false
false
1,990
py
vote.py
""" Feature Voting""" import datetime import json from http.cookies import SimpleCookie from paste.request import parse_formvars from pyiem.util import get_dbconn def do(environ, headers, vote): """Do Something, yes do something""" cookie = SimpleCookie(environ.get("HTTP_COOKIE", "")) myoid = 0 if "f...
7b3bb02174414fdc69886a486253e657aab5e042
b4cfd4949cab5dc5bd27fb028596a9fc02f4e1db
/skfda/preprocessing/registration/_fisher_rao.py
9c630571ff64a4255ec10f164f03ea7a0264a0f8
[ "BSD-3-Clause" ]
permissive
GAA-UAM/scikit-fda
dabfd995f2c82efb0d44fa1d2005b2a8ca67442b
dfbce35cc9e67d93306dddf0edf4f95aaacd8aff
refs/heads/develop
2023-08-31T09:11:31.407423
2023-08-18T08:19:21
2023-08-18T08:19:21
96,133,420
231
55
BSD-3-Clause
2023-08-18T08:19:22
2017-07-03T17:06:56
Python
UTF-8
Python
false
false
10,632
py
_fisher_rao.py
"""Fisher-Rao elastic registration.""" from __future__ import annotations import warnings from typing import Callable, Optional, TypeVar, Union import numpy as np from sklearn.utils.validation import check_is_fitted from ..._utils import invert_warping, normalize_scale from ...exploratory.stats import fisher_rao_kar...
f828793cbe7c546d190d3ecc8b5142a19d089319
bea7c9c1873755ff1b5a6a22be47d73b0b2ca722
/plugins/public/cinq-collector-aws/cinq_collector_aws/views/s3.py
cae478d1ab4aa9a38ed10096c18f88b5ba84e7c6
[ "Apache-2.0" ]
permissive
RiotGames/cloud-inquisitor
25297bb2d9204aefa8494d1865c97fb4d0a4d3b9
29a26c705381fdba3538b4efedb25b9e09b387ed
refs/heads/master
2023-07-09T12:45:53.016708
2020-04-16T17:01:01
2020-04-16T17:01:01
111,150,198
468
60
Apache-2.0
2020-09-23T01:00:59
2017-11-17T21:00:20
Python
UTF-8
Python
false
false
2,885
py
s3.py
from cloud_inquisitor.constants import ROLE_USER, HTTP from cloud_inquisitor.plugins import BaseView from cloud_inquisitor.plugins.types.resources import S3Bucket from cloud_inquisitor.utils import MenuItem from cloud_inquisitor.wrappers import check_auth, rollback class S3List(BaseView): URLS = ['/api/v1/s3'] ...
fab3d78403014279bd08ad0d8a9f30363c73785c
7c3e647b9ff8cb7931af8f5571ebc4dfe234197f
/ps6000aExamples/ps6000aStreamingModeExample.py
69ad7d747e30198ca6061b1fffaee3f87f983311
[ "LicenseRef-scancode-unknown-license-reference", "ISC" ]
permissive
picotech/picosdk-python-wrappers
6c164ab808c540214086a0a1b98b3a90120707a8
d0231b11619530ba278404a67ff75ccc667bd4b8
refs/heads/master
2023-08-18T06:56:50.885498
2023-08-16T08:56:26
2023-08-16T08:56:26
148,156,912
157
117
ISC
2023-09-12T15:00:30
2018-09-10T13:07:42
Python
UTF-8
Python
false
false
6,330
py
ps6000aStreamingModeExample.py
# # Copyright (C) 2020 Pico Technology Ltd. See LICENSE file for terms. # # PS6000 A STREAMING MODE EXAMPLE # This example opens a 6000a driver device, sets up one channel then collects a streamed set of data. # This data is then plotted as mV against time in ns. import ctypes # import numpy as np from picosd...
159934b2aa3169314f91cb4bc77ad51d94902e0d
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/DQMOffline/Trigger/test/egHLTOffDQMSourceTest_cfg.py
d09794ef4ae796db23145ac54fe916bd7c6d57c8
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
6,196
py
egHLTOffDQMSourceTest_cfg.py
import FWCore.ParameterSet.Config as cms process = cms.Process("DQMTest") #set DQM enviroment process.load("DQMServices.Core.DQM_cfg") process.load("DQMServices.Components.MEtoEDMConverter_cff") process.load("CondCore.DBCommon.CondDBSetup_cfi") process.load("DQMServices.Components.DQMEnvironment_cfi") #load and setu...
21d13f385bf2c168a90d5b436b87b8b84ab6ad72
a529d3ab1f0a82fee7e11a127d1932a7cd46fc26
/utils/text/cleaners.py
9bcdb3b0d9b9fcf699d07b36ba0c85e2d4a438f9
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
as-ideas/ForwardTacotron
2f3192820977435cc4b437a580edd372ddf0f4af
b83217a72381d871c946af185d48a85ed1527199
refs/heads/master
2023-08-24T10:49:10.356701
2023-08-22T15:36:11
2023-08-22T15:36:11
244,631,442
604
131
MIT
2023-09-05T14:43:59
2020-03-03T12:33:51
Python
UTF-8
Python
false
false
2,859
py
cleaners.py
import re from typing import Dict, Any from phonemizer.backend import EspeakBackend from unidecode import unidecode from utils.text.numbers import normalize_numbers from utils.text.symbols import phonemes_set # Regular expression matching whitespace: _whitespace_re = re.compile(r'\s+') # List of (regular expression...
ba4f4f50a486478c0c2c3a28e441ce71a5776bca
8fa191cd4a67431a04eff62d35122ee83cc7b0af
/bookwyrm/views/admin/celery_status.py
cd8b85b6d4a3580b71fa2cae2185ecc14676f29a
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
bookwyrm-social/bookwyrm
24678676a7a58dba96641194dfae3fffbf01574d
0f8da5b738047f3c34d60d93f59bdedd8f797224
refs/heads/main
2023-08-20T21:45:30.957277
2023-08-19T23:41:50
2023-08-19T23:41:50
236,415,735
1,398
216
NOASSERTION
2023-09-08T20:43:06
2020-01-27T03:51:54
Python
UTF-8
Python
false
false
4,637
py
celery_status.py
""" celery status """ import json from django.contrib.auth.decorators import login_required, permission_required from django.http import HttpResponse from django.template.response import TemplateResponse from django.utils.decorators import method_decorator from django.views import View from django.views.decorators.htt...
0a787fe3c5954b7b9fec5dbf6e4460ee74e22b87
8e68fa08e0275bb77a57f2dcb1b2082afbd928e9
/src/cutadapt/predicates.py
4346efef04bb1963184e6fbc526778a6f620f54c
[ "MIT" ]
permissive
marcelm/cutadapt
a892a871ed8b5b8491c2177ede43a6ebe0b43810
cefb3e0bc6bacf5e15a842174502852466bd6990
refs/heads/main
2023-09-01T08:14:21.694545
2023-08-31T08:18:46
2023-08-31T08:18:46
4,577,614
450
165
MIT
2023-09-11T06:48:19
2012-06-06T20:26:25
Python
UTF-8
Python
false
false
4,006
py
predicates.py
""" Filtering criteria (predicates) """ from abc import ABC, abstractmethod from .qualtrim import expected_errors from .modifiers import ModificationInfo class Predicate(ABC): @abstractmethod def test(self, read, info: ModificationInfo) -> bool: """ Return True if the filtering criterion matc...