hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
1da0964840e4d3a4708d64a03db052cddc46bc50
242,342
py
Python
src/sage/modules/free_module.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
1
2016-11-04T16:31:48.000Z
2016-11-04T16:31:48.000Z
src/sage/modules/free_module.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
src/sage/modules/free_module.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
r""" Free modules Sage supports computation with free modules over an arbitrary commutative ring. Nontrivial functionality is available over `\ZZ`, fields, and some principal ideal domains (e.g. `\QQ[x]` and rings of integers of number fields). All free modules over an integral domain are equipped with an embedding in...
33.030121
194
0.531319
1da0c7370e6606308b525c233279b9aa6b22a80b
13,073
py
Python
src/wavestate/iirrational/plots/plot_augment.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
src/wavestate/iirrational/plots/plot_augment.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
src/wavestate/iirrational/plots/plot_augment.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # SPDX-License-Identifier: Apache-2.0 # SPDX-FileCopyrightText: © 2021 Massachusetts Institute of Technology. # SPDX-FileCopyrightText: © 2021 Lee McCuller <mcculler@mit.edu> # NOTICE: authors should document their contributions in concisely in NOTICE # with details inline ...
29.180804
89
0.456972
1da0ee443d8044d5a5c00d8e1a3b50df182b5298
1,359
py
Python
systems/playout/pb_system_3_6_s60.py
Julian-Theis/AVATAR
24fcd6eaa26f413be528a160d865d5d7e49a780b
[ "MIT" ]
7
2020-12-22T12:09:14.000Z
2022-03-29T12:50:35.000Z
systems/playout/pb_system_3_6_s60.py
ProminentLab/AVATAR
a20c767d8739a52f538927b4ec3d528952263d5a
[ "MIT" ]
10
2020-11-13T17:45:59.000Z
2022-02-10T00:50:38.000Z
systems/playout/pb_system_3_6_s60.py
ProminentLab/AVATAR
a20c767d8739a52f538927b4ec3d528952263d5a
[ "MIT" ]
2
2020-03-26T22:27:27.000Z
2020-07-07T22:36:41.000Z
from util.playout import standard_playout import os from conf.settings import DATA_PATH WORK_PATH = os.path.abspath(os.getcwd()) if __name__ == "__main__": if DATA_PATH is None: pn = os.path.join(WORK_PATH, "data", "systems", "pb_system_3_6.pnml") f_pop = os.path.join(WORK_PATH, "data", "variants"...
59.086957
130
0.705666
1da10e03a6b5a0ff62725eca807c17758fd057b4
1,542
py
Python
py/131. Palindrome Partitioning.py
longwangjhu/LeetCode
a5c33e8d67e67aedcd439953d96ac7f443e2817b
[ "MIT" ]
3
2021-08-07T07:01:34.000Z
2021-08-07T07:03:02.000Z
py/131. Palindrome Partitioning.py
longwangjhu/LeetCode
a5c33e8d67e67aedcd439953d96ac7f443e2817b
[ "MIT" ]
null
null
null
py/131. Palindrome Partitioning.py
longwangjhu/LeetCode
a5c33e8d67e67aedcd439953d96ac7f443e2817b
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/palindrome-partitioning/ # Given a string s, partition s such that every substring of the partition is a # palindrome. Return all possible palindrome partitioning of s. # A palindrome string is a string that reads the same backward as forward. #########################################...
35.860465
81
0.52594
1da13ce74d46b150820bfd6e2bb8bd42f7298296
1,438
py
Python
src/9/enforcing_an_argument_signature/example2.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
14
2017-05-20T04:06:46.000Z
2022-01-23T06:48:45.000Z
src/9/enforcing_an_argument_signature/example2.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
1
2021-06-10T20:17:55.000Z
2021-06-10T20:17:55.000Z
src/9/enforcing_an_argument_signature/example2.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
15
2017-03-29T17:57:33.000Z
2021-08-24T02:20:08.000Z
# Example of building signatures in a metaclass from inspect import Signature, Parameter def make_sig(*names): parms = [Parameter(name, Parameter.POSITIONAL_OR_KEYWORD) for name in names] return Signature(parms) class StructureMeta(type): def __new__(cls, clsname, bases, clsdict): ...
26.145455
71
0.621697
1da1469ad8021685280b0c3f5f66c0750fb015b9
1,086
py
Python
coldwallet/coldwallet/utils/cm_scoped_session_factory.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
2
2022-03-17T04:50:20.000Z
2022-03-17T04:51:31.000Z
coldwallet/coldwallet/utils/cm_scoped_session_factory.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
null
null
null
coldwallet/coldwallet/utils/cm_scoped_session_factory.py
ravirahman/sancus
6563852b98edeb1068574e2d99e1fc18b815bee3
[ "MIT" ]
null
null
null
from types import TracebackType from typing import Optional, Type from sqlalchemy.orm import Session, sessionmaker from sqlalchemy.util import ThreadLocalRegistry class CMScopedSessionFactory: """Scoped Session Factory with the Python context manager API""" def __init__(self, session_maker: sessionmaker): ...
33.9375
68
0.697974
1da14a77ef5d6ef80a36f4266b24461ea4351aec
4,394
py
Python
test/test_cnn.py
lukovnikov/teafacto
5e863df8d061106ad705c0837f2d2ca4e08db0e4
[ "MIT" ]
2
2016-06-28T23:41:42.000Z
2017-01-14T12:41:36.000Z
test/test_cnn.py
lukovnikov/teafacto
5e863df8d061106ad705c0837f2d2ca4e08db0e4
[ "MIT" ]
1
2016-04-20T20:09:20.000Z
2016-08-17T19:02:47.000Z
test/test_cnn.py
lukovnikov/teafacto
5e863df8d061106ad705c0837f2d2ca4e08db0e4
[ "MIT" ]
5
2016-07-18T17:05:18.000Z
2018-10-13T05:40:05.000Z
from unittest import TestCase import numpy as np from teafacto.blocks.cnn import Conv1D, GlobalPool1D, CNNSeqEncoder from teafacto.blocks.seq.rnn import EncLastDim from teafacto.core.base import Val class TestConv1D(TestCase): def test_output_shape(self): xval = np.random.random((100, 20, 50)).astype("floa...
36.92437
83
0.591488
1da1510569d2c36ddfadd6234e26f4c820a37e6b
493
py
Python
src/samples/pymxs/enumerate_parameters.py
RegionStormer/3dsMax-Python-HowTos
b86ef45ef4d8dff373bd1cbfe5c4d5b805687339
[ "MIT" ]
88
2020-03-19T20:24:08.000Z
2022-03-23T23:13:54.000Z
src/samples/pymxs/enumerate_parameters.py
RegionStormer/3dsMax-Python-HowTos
b86ef45ef4d8dff373bd1cbfe5c4d5b805687339
[ "MIT" ]
5
2020-04-09T19:56:47.000Z
2021-11-12T20:02:18.000Z
src/samples/pymxs/enumerate_parameters.py
RegionStormer/3dsMax-Python-HowTos
b86ef45ef4d8dff373bd1cbfe5c4d5b805687339
[ "MIT" ]
22
2020-03-19T19:24:36.000Z
2022-03-18T21:55:19.000Z
''' Creates all geometric objects and lists their parameters. ''' from pymxs import runtime as rt # pylint: disable=import-error for cl in rt.GeometryClass.classes: try: obj = cl() print(f"Properties for class {cl}") # This would also work: # rt.showProperties(o) for pn ...
29
62
0.622718
1da152b646ad7cbd9dc0dac2d90207782a3cef92
59,568
py
Python
arkane/statmech.py
yubioinfo/RMG-Py
bfffc5b650934fe7ced117939d6b3b219f2317e5
[ "MIT" ]
1
2020-03-17T13:16:51.000Z
2020-03-17T13:16:51.000Z
arkane/statmech.py
yubioinfo/RMG-Py
bfffc5b650934fe7ced117939d6b3b219f2317e5
[ "MIT" ]
null
null
null
arkane/statmech.py
yubioinfo/RMG-Py
bfffc5b650934fe7ced117939d6b3b219f2317e5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ############################################################################### # # # RMG - Reaction Mechanism Generator # # ...
48.786241
120
0.568006
1da18771e9ddcc9642d69af50cb4afec24289bab
2,738
py
Python
pyvirtualdisplay/smartdisplay.py
Mrfranken/PyVirtualDisplay
b3d45024d1d55033af69d1af29f56fc04e4e4209
[ "BSD-2-Clause" ]
null
null
null
pyvirtualdisplay/smartdisplay.py
Mrfranken/PyVirtualDisplay
b3d45024d1d55033af69d1af29f56fc04e4e4209
[ "BSD-2-Clause" ]
null
null
null
pyvirtualdisplay/smartdisplay.py
Mrfranken/PyVirtualDisplay
b3d45024d1d55033af69d1af29f56fc04e4e4209
[ "BSD-2-Clause" ]
null
null
null
import logging import time import pyscreenshot from PIL import Image, ImageChops from pyvirtualdisplay.display import Display log = logging.getLogger(__name__) # class DisplayError(Exception): # pass class DisplayTimeoutError(Exception): pass class SmartDisplay(Display): pyscreenshot_backend = None ...
29.76087
98
0.562454
1da1a976586f2398f98211edef38ef40e7fd9c5e
3,803
py
Python
asv/plugins/github.py
prisae/asv
57c386d7cc27f91ecd8daf1ad2e0413f2efdd39c
[ "BSD-3-Clause" ]
2
2019-08-18T11:05:25.000Z
2019-11-17T02:07:18.000Z
asv/plugins/github.py
prisae/asv
57c386d7cc27f91ecd8daf1ad2e0413f2efdd39c
[ "BSD-3-Clause" ]
3
2018-07-26T17:56:30.000Z
2018-07-27T20:23:27.000Z
asv/plugins/github.py
prisae/asv
57c386d7cc27f91ecd8daf1ad2e0413f2efdd39c
[ "BSD-3-Clause" ]
3
2018-07-25T22:53:31.000Z
2018-09-16T06:14:43.000Z
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) import os from ..commands import Command from ..commands.publish import Publish from ..console import log from .. import...
38.03
99
0.522219
1da1bfe2ef2b1ddbd0f52d8b4ac2012469b8d1a2
4,660
py
Python
sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.1/async_samples/sample_recognize_content_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.1/async_samples/sample_recognize_content_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.1/async_samples/sample_recognize_content_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------------...
43.148148
126
0.567382
1da1c4fcac9fd575772f511b38f57266394b5b25
44,516
py
Python
3.9.1.dev0/xml2rfc/writers/v2v3.py
kesara/ietf-xml2rfc
6ede54175adc4adca99e061b3b9dc419b73feae5
[ "BSD-3-Clause" ]
null
null
null
3.9.1.dev0/xml2rfc/writers/v2v3.py
kesara/ietf-xml2rfc
6ede54175adc4adca99e061b3b9dc419b73feae5
[ "BSD-3-Clause" ]
null
null
null
3.9.1.dev0/xml2rfc/writers/v2v3.py
kesara/ietf-xml2rfc
6ede54175adc4adca99e061b3b9dc419b73feae5
[ "BSD-3-Clause" ]
null
null
null
# -------------------------------------------------- # Copyright The IETF Trust 2011, All Rights Reserved # -------------------------------------------------- import os import re import lxml.etree import datetime import traceback as tb from collections import OrderedDict from io import open from lxml.etree import Ele...
37.004156
183
0.467023
1da25a37f7081095158b0342f023c34852e612b6
1,764
py
Python
terrascript/data/hashicorp/vault.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/data/hashicorp/vault.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/data/hashicorp/vault.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/data/hashicorp/vault.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:30:04 UTC) import terrascript class vault_ad_access_credentials(terrascript.Data): pass class vault_approle_auth_backend_role_id(terrascript.Data): pass class vault_auth_backend(terrascript.Data): pass...
18.967742
73
0.777778
1da28182b6aa60cdd3f06ecf57863d99a40e68ae
5,157
py
Python
code/generation-model/dynamic_selection/write_file_slt.py
Merterm/-Modeling-Intensification-for-SLG
800fff3d3c7bacc86c1db8382f7c2e68d2f0c074
[ "MIT" ]
5
2022-03-14T15:52:09.000Z
2022-03-30T11:42:47.000Z
code/generation-model/dynamic_selection/write_file_slt.py
Merterm/Modeling-Intensification-for-SLG
800fff3d3c7bacc86c1db8382f7c2e68d2f0c074
[ "MIT" ]
null
null
null
code/generation-model/dynamic_selection/write_file_slt.py
Merterm/Modeling-Intensification-for-SLG
800fff3d3c7bacc86c1db8382f7c2e68d2f0c074
[ "MIT" ]
null
null
null
import torch import pickle import gzip import sys import argparse import os def convert_data(name="dev", cur_path="", target_path="/home/yang/Documents/SignLanguage/slt/All_data/G2P_dynamic_2gloss_hard/"): trg_size = 151 skip_frames = 1 print(name) isExist = os.path.exists(target_path) print(isExi...
37.369565
129
0.568354
1da2af891bc56e9ad3740e2d9d572bd4a472ea7b
27,858
py
Python
tests/test_url_handler.py
unt-libraries/django-nomination
90e42109f8113e411e51e29485e8d1f1e9848373
[ "BSD-3-Clause" ]
2
2016-12-07T09:09:11.000Z
2018-01-31T13:57:04.000Z
tests/test_url_handler.py
unt-libraries/django-nomination
90e42109f8113e411e51e29485e8d1f1e9848373
[ "BSD-3-Clause" ]
100
2016-01-21T19:52:57.000Z
2021-06-01T20:23:59.000Z
tests/test_url_handler.py
unt-libraries/django-nomination
90e42109f8113e411e51e29485e8d1f1e9848373
[ "BSD-3-Clause" ]
null
null
null
import re import json from string import digits, ascii_uppercase, capwords import datetime from django import http from django.conf import settings from django.db import transaction import pytest from nomination import url_handler, models from . import factories pytestmark = pytest.mark.django_db alnum_list = sort...
35.715385
96
0.618853
1da30643bd15c954c83944136281a8dec4289091
24,988
py
Python
salt/states/iptables.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
1
2020-09-16T21:31:02.000Z
2020-09-16T21:31:02.000Z
salt/states/iptables.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
null
null
null
salt/states/iptables.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Management of iptables ====================== This is an iptables-specific module designed to manage Linux firewalls. It is expected that this state module, and other system-specific firewall states, may at some point be deprecated in favor of a more generic `firewall` state. .. code-block...
31.274093
116
0.502281
1da31621aa8f6be8a7dc23b5c8c4d269422d397b
85,825
py
Python
mne/report.py
jorisvandenbossche/mne-python
0c4db6f8ef12999d119085aa7c496cadb32411bd
[ "BSD-3-Clause" ]
null
null
null
mne/report.py
jorisvandenbossche/mne-python
0c4db6f8ef12999d119085aa7c496cadb32411bd
[ "BSD-3-Clause" ]
null
null
null
mne/report.py
jorisvandenbossche/mne-python
0c4db6f8ef12999d119085aa7c496cadb32411bd
[ "BSD-3-Clause" ]
null
null
null
"""Generate self-contained HTML reports from MNE objects.""" # Authors: Alex Gramfort <alexandre.gramfort@inria.fr> # Mainak Jas <mainak@neuro.hut.fi> # Teon Brooks <teon.brooks@gmail.com> # # License: BSD (3-clause) import base64 from io import BytesIO from mne.proj import read_proj import os impor...
38.573034
938
0.544608
1da34cf5b60ebd66b3ee14f59384a44596ab3544
5,304
py
Python
clif/testing/python/virtual_funcs_test.py
wangxf123456/clif
9bff8a28f5d266d6ea4f4bb0dc1d9c9a0c9ee5b1
[ "Apache-2.0" ]
966
2017-04-18T04:14:04.000Z
2022-03-03T21:22:44.000Z
clif/testing/python/virtual_funcs_test.py
wangxf123456/clif
9bff8a28f5d266d6ea4f4bb0dc1d9c9a0c9ee5b1
[ "Apache-2.0" ]
48
2017-05-02T23:51:29.000Z
2021-12-06T19:10:11.000Z
clif/testing/python/virtual_funcs_test.py
wangxf123456/clif
9bff8a28f5d266d6ea4f4bb0dc1d9c9a0c9ee5b1
[ "Apache-2.0" ]
135
2017-04-26T06:15:30.000Z
2022-01-07T02:17:20.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
27.481865
80
0.697775
1da35e6ae71e03df2349ae58f49da5ed78909f55
464
py
Python
src/unwetter/config.py
corneliusroemer/unwetter
9e27d0382483ba4f238db555c4ec4742f8ce08ae
[ "MIT" ]
1
2020-06-27T09:59:09.000Z
2020-06-27T09:59:09.000Z
src/unwetter/config.py
corneliusroemer/unwetter
9e27d0382483ba4f238db555c4ec4742f8ce08ae
[ "MIT" ]
null
null
null
src/unwetter/config.py
corneliusroemer/unwetter
9e27d0382483ba4f238db555c4ec4742f8ce08ae
[ "MIT" ]
null
null
null
#!/user/bin/env python3.6 import yaml with open('config/config.yml', 'r') as fp: CONFIG = yaml.safe_load(fp.read()) SEVERITY_FILTER = CONFIG['SEVERITY_FILTER'] STATES_FILTER = CONFIG['STATES_FILTER'] URGENCY_FILTER = CONFIG['URGENCY_FILTER'] def filter_event(event): return (event['severity'] in SEVERITY_F...
25.777778
86
0.689655
1da3745a4202dc7c2d490f12f4e957feeaa42b16
4,491
py
Python
alphafold/model/tf/proteins_dataset.py
InfProbSciX/alphafold
77516a7ac687f4dc93f3268685f8b98680dd2526
[ "Apache-2.0" ]
null
null
null
alphafold/model/tf/proteins_dataset.py
InfProbSciX/alphafold
77516a7ac687f4dc93f3268685f8b98680dd2526
[ "Apache-2.0" ]
null
null
null
alphafold/model/tf/proteins_dataset.py
InfProbSciX/alphafold
77516a7ac687f4dc93f3268685f8b98680dd2526
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 DeepMind Technologies 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 License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
38.059322
80
0.70786
1da3a11eaa3aec80a9d8acdc56b7a26222ac80b9
1,329
py
Python
SP/Modul_07/funkcje_python.py
edu-sense-com/OSE-Python-Course
cbf93e18b0cdbcaf54483f6fac5faafd372de068
[ "MIT" ]
null
null
null
SP/Modul_07/funkcje_python.py
edu-sense-com/OSE-Python-Course
cbf93e18b0cdbcaf54483f6fac5faafd372de068
[ "MIT" ]
null
null
null
SP/Modul_07/funkcje_python.py
edu-sense-com/OSE-Python-Course
cbf93e18b0cdbcaf54483f6fac5faafd372de068
[ "MIT" ]
null
null
null
# przykłady definiowania i wywoływania funkcji w Python def just_print(): print("Just printing some text.") def just_return(): return "Just returning some text" def parameter_print(some_value): print(f"You pass value: {some_value}") def parameter_return(some_value): return f"You pass value: {some_va...
27.122449
84
0.72912
1da3bc7f659f0171b4fa6505208f44772c7f4e0a
1,276
py
Python
mne/datasets/sample/__init__.py
mluessi/mne-python
aef0cd79b0543c6d121de236098bd7865feff39e
[ "BSD-3-Clause" ]
1
2022-03-23T22:26:50.000Z
2022-03-23T22:26:50.000Z
mne/datasets/sample/__init__.py
neurodebian/mne-python
44a5ef5241a748b2f77c62fdcda6334220c6af45
[ "BSD-3-Clause" ]
null
null
null
mne/datasets/sample/__init__.py
neurodebian/mne-python
44a5ef5241a748b2f77c62fdcda6334220c6af45
[ "BSD-3-Clause" ]
null
null
null
# Author: Alexandre Gramfort <gramfort@nmr.mgh.harvard.edu> # License: BSD Style. import os import os.path as op def data_path(path='.'): """Get path to local copy of Sample dataset Parameters ---------- dir : string Location of where to look for the sample dataset. If not set. The da...
31.121951
90
0.632445
1da3e19f2246cd52a3e46decd2f04c80017ac95a
1,088
py
Python
run/iteration_part_0.py
olavosamp/semiauto-video-annotation
b1a46f9c0ad3bdcedab76b4cd730747ee2afd2fd
[ "MIT" ]
null
null
null
run/iteration_part_0.py
olavosamp/semiauto-video-annotation
b1a46f9c0ad3bdcedab76b4cd730747ee2afd2fd
[ "MIT" ]
20
2019-07-15T21:49:29.000Z
2020-01-09T14:35:03.000Z
run/iteration_part_0.py
olavosamp/semiauto-video-annotation
b1a46f9c0ad3bdcedab76b4cd730747ee2afd2fd
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from pathlib import Path from glob import glob from tqdm import tqdm import libs.dirs as dirs import libs.commons as commons import libs.dataset_utils as dutils # Get inputs red...
36.266667
96
0.689338
1da3fb0182ba05708620421d84001f08b5b52d1d
2,132
py
Python
tests/python/unittest/test_autotvm_space.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
48
2020-07-29T18:09:23.000Z
2021-10-09T01:53:33.000Z
tests/python/unittest/test_autotvm_space.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
9
2021-04-02T02:28:07.000Z
2022-03-26T18:23:59.000Z
tests/python/unittest/test_autotvm_space.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
42
2020-08-01T06:41:24.000Z
2022-01-20T10:33:08.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
31.820896
88
0.67167
1da40bac52311c1b2e058ef661db2d3163ad4edb
2,138
py
Python
controllers/water.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
controllers/water.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
controllers/water.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
""" Water module """ module = request.controller resourcename = request.function if not settings.has_module(module): raise HTTP(404, body="Module disabled: %s" % module) # ----------------------------------------------------------------------------- def index(): """ Module's Home Page """ return s3d...
28.506667
129
0.409261
1da43d033657d0ba806ba7dea902d8d5d196ed74
5,263
py
Python
pipenv_setup/pipfile_parser.py
anmut-consulting/pipenv-setup
b3f26a9796079f96e97bb3cb735efbccae6f2bc0
[ "MIT" ]
null
null
null
pipenv_setup/pipfile_parser.py
anmut-consulting/pipenv-setup
b3f26a9796079f96e97bb3cb735efbccae6f2bc0
[ "MIT" ]
null
null
null
pipenv_setup/pipfile_parser.py
anmut-consulting/pipenv-setup
b3f26a9796079f96e97bb3cb735efbccae6f2bc0
[ "MIT" ]
null
null
null
from typing import Tuple, Dict import pipfile from requirementslib import Requirement from vistir.compat import Path from six import string_types from pipenv_setup.constants import PipfileConfig, vcs_list def format_remote_package( package_name, config, dev=False, process_dependency_links=False ): # type: (str,...
35.560811
138
0.603838
1da4461dce1d5e582703f7ee11833b30b845983e
1,547
py
Python
app/models/campaigns.py
theLaborInVain/kdm-manager-api
fa8744c9b8a739262d1b94900648254cc69d16e1
[ "MIT" ]
2
2020-03-04T13:43:45.000Z
2020-11-03T20:34:21.000Z
app/models/campaigns.py
theLaborInVain/kdm-manager-api
fa8744c9b8a739262d1b94900648254cc69d16e1
[ "MIT" ]
64
2019-07-19T19:19:50.000Z
2022-03-03T21:19:28.000Z
app/models/campaigns.py
theLaborInVain/kdm-manager-api
fa8744c9b8a739262d1b94900648254cc69d16e1
[ "MIT" ]
null
null
null
#!/usr/bin/python2.7 from app import models, utils from app.assets import campaigns class Assets(models.AssetCollection): def __init__(self, *args, **kwargs): """ Expansion assets are organized in assets/expansions.py according to release date, so when we initialize an asset dict from expansions....
30.333333
80
0.66839
1da4583e1d5f9785b4416fc1d3971beedca42f74
13,310
py
Python
mitmproxy/net/http/http1/read.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
mitmproxy/net/http/http1/read.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
mitmproxy/net/http/http1/read.py
fedosgad/mitmproxy
7eacc41f3b1079e000cf6b6c19c0f337d6e01177
[ "MIT" ]
null
null
null
import re import time from typing import Iterable, Optional from mitmproxy.http import Request, Headers, Response from mitmproxy.net.http import url def get_header_tokens(headers, key): """ Retrieve all tokens for a header key. A number of different headers follow a pattern where each header line can con...
37.075209
114
0.607438
1da498525eded9631f38d5e0035b3dd48884b094
1,748
py
Python
test/test_repository.py
RonquilloAeon/cosmic-py
1035df714a58b7c9c23d785d55c21d589fe497a9
[ "MIT" ]
null
null
null
test/test_repository.py
RonquilloAeon/cosmic-py
1035df714a58b7c9c23d785d55c21d589fe497a9
[ "MIT" ]
2
2021-06-04T16:07:11.000Z
2021-08-04T04:22:22.000Z
test/test_repository.py
RonquilloAeon/cosmic-py
1035df714a58b7c9c23d785d55c21d589fe497a9
[ "MIT" ]
null
null
null
import pytest from cosmic_toolkit import AbstractRepository, AggregateRoot pytestmark = pytest.mark.asyncio def test_abstract_repository_incorrect_entity_type(): class Item: ... with pytest.raises(TypeError) as e: class ItemRepository(AbstractRepository, entity_type=Item): asyn...
27.3125
84
0.663043
1da49d57981607523fd5922aaffd2415976f6588
8,030
py
Python
source/Orchestrator/test/test_exec_ssm_doc.py
j-erickson/aws-security-hub-automated-response-and-remediation
f1722c00817e1358a1d80272b67fc226f1105965
[ "Apache-2.0" ]
1
2022-03-16T08:23:33.000Z
2022-03-16T08:23:33.000Z
source/Orchestrator/test/test_exec_ssm_doc.py
j-erickson/aws-security-hub-automated-response-and-remediation
f1722c00817e1358a1d80272b67fc226f1105965
[ "Apache-2.0" ]
null
null
null
source/Orchestrator/test/test_exec_ssm_doc.py
j-erickson/aws-security-hub-automated-response-and-remediation
f1722c00817e1358a1d80272b67fc226f1105965
[ "Apache-2.0" ]
1
2021-11-15T21:45:48.000Z
2021-11-15T21:45:48.000Z
#!/usr/bin/python ############################################################################### # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License Version 2.0 (the "License"). Y...
49.263804
265
0.57721
1da49de8ba081bba665698c62028b04b487171ee
7,759
py
Python
pypeit/core/meta.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
107
2018-08-06T07:07:20.000Z
2022-02-28T14:33:42.000Z
pypeit/core/meta.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
889
2018-07-26T12:14:33.000Z
2022-03-18T22:49:42.000Z
pypeit/core/meta.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
74
2018-09-25T17:03:07.000Z
2022-03-10T23:59:24.000Z
""" Provides methods common to :class:`pypeit.metadata.PypeItMetaData` and :class:`pypeit.spectographs.spectrograph.Spectrograph` that define the common metadata used for all specrographs. .. include common links, assuming primary doc root is up one directory .. include:: ../include/links.rst """ import numpy as np ...
40.411458
111
0.613868
1da4b66c1b2c7b990ffec14647bcfd5aa6f52934
1,501
py
Python
mininet/examples/simpleperf.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
10
2016-11-16T16:26:16.000Z
2021-04-26T17:20:28.000Z
mininet/examples/simpleperf.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
3
2017-04-20T11:29:17.000Z
2017-11-06T17:12:12.000Z
mininet/examples/simpleperf.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
10
2017-03-27T13:58:52.000Z
2020-06-24T22:42:51.000Z
#!/usr/bin/python """ Simple example of setting network and CPU parameters NOTE: link params limit BW, add latency, and loss. There is a high chance that pings WILL fail and that iperf will hang indefinitely if the TCP handshake fails to complete. """ from mininet.topo import Topo from mininet.net import Mininet fro...
30.02
67
0.644903
1da4d1ea4a17acbbde2817cfb0b9c0c165dad2a5
2,099
py
Python
toontown/effects/SkullBurst.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/effects/SkullBurst.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/effects/SkullBurst.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from pandac.PandaModules import * from direct.showbase.DirectObject import * from direct.interval.IntervalGlobal import * from toontown.effects.PooledEffect import PooledEffect from toontown.effects.EffectController import EffectController class SkullBurst(PooledEffect, EffectController): def __init__(self): ...
43.729167
148
0.709862
1da4d94d0fac8bd8a4565763463973f8a031221f
9,114
py
Python
src/software/thunderscope/thunderscope.py
jonl112/Software
61a028a98d5c0dd5e79bf055b231633290ddbf9f
[ "MIT" ]
null
null
null
src/software/thunderscope/thunderscope.py
jonl112/Software
61a028a98d5c0dd5e79bf055b231633290ddbf9f
[ "MIT" ]
null
null
null
src/software/thunderscope/thunderscope.py
jonl112/Software
61a028a98d5c0dd5e79bf055b231633290ddbf9f
[ "MIT" ]
null
null
null
import os import signal import argparse import platform # PyQt5 doesn't play nicely with i3 and Ubuntu 18, PyQt6 is much more stable # Unfortunately, PyQt6 doesn't install on Ubuntu 18. Thankfully both # libraries are interchangeable, and we just need to swap them in this # one spot, and pyqtgraph will pick up on it...
32.434164
91
0.692561
1da534af2756a0db38b5ad23931f04cd070a10ce
2,266
py
Python
backend/apps/volontulo/management/commands/populate_database.py
ponycalypsenow/volontulo
8f7886aa3c8ea5ec0ca84711a089bea60fb69598
[ "MIT" ]
null
null
null
backend/apps/volontulo/management/commands/populate_database.py
ponycalypsenow/volontulo
8f7886aa3c8ea5ec0ca84711a089bea60fb69598
[ "MIT" ]
null
null
null
backend/apps/volontulo/management/commands/populate_database.py
ponycalypsenow/volontulo
8f7886aa3c8ea5ec0ca84711a089bea60fb69598
[ "MIT" ]
null
null
null
import random from django.contrib.auth.models import User from django.core.management.base import BaseCommand, CommandError from django.db import models from apps.volontulo.factories import ( UserProfileFactory, UserFactory, OrganizationFactory, OfferFactory ) from apps.volontulo.models import Organization, ...
31.472222
77
0.584731
1da538cdfb189bef88be5aed4abd1e61c2c78c5a
1,070
py
Python
Image/milestone2_shapedetec.py
pection/InternshipProject
2b39cc244e7ac989795d3aba5c1a11bb6c9a57b7
[ "Apache-2.0" ]
null
null
null
Image/milestone2_shapedetec.py
pection/InternshipProject
2b39cc244e7ac989795d3aba5c1a11bb6c9a57b7
[ "Apache-2.0" ]
null
null
null
Image/milestone2_shapedetec.py
pection/InternshipProject
2b39cc244e7ac989795d3aba5c1a11bb6c9a57b7
[ "Apache-2.0" ]
null
null
null
import cv2 class ShapeDetector: def __init__(self): pass def detect(self, c): # initialize the shape name and approximate the contour shape = "unidentified" peri = cv2.arcLength(c, True) approx = cv2.approxPolyDP(c, 0.04 * peri, True) # if the shape is a triangle, it will have 3 vertices i...
28.918919
66
0.646729
1da5416604a5f85c42f6146dd330e29e0c7624d0
23,806
py
Python
tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/openstack/common/log.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/openstack/common/log.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/openstack/common/log.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 OpenStack Foundation. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance w...
36.289634
78
0.60804
1da551f205ba20c1898e866189df2699aa0f27e7
3,865
py
Python
elastic_transport/_compat.py
stevepentland/elastic-transport-python
fb354acce61ca1f73939283a0653a614dcc425db
[ "Apache-2.0" ]
null
null
null
elastic_transport/_compat.py
stevepentland/elastic-transport-python
fb354acce61ca1f73939283a0653a614dcc425db
[ "Apache-2.0" ]
null
null
null
elastic_transport/_compat.py
stevepentland/elastic-transport-python
fb354acce61ca1f73939283a0653a614dcc425db
[ "Apache-2.0" ]
null
null
null
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use ...
29.96124
87
0.656662
1da55b249a5178ba6a1a4b039b8bb2bf3b010e12
13,351
py
Python
analysis/webservice/algorithms/TimeSeriesSolr.py
dataplumber/nexus
f25a89e85eba098da9c6db1ff3d408dae8a6b310
[ "Apache-2.0" ]
23
2016-08-09T22:45:14.000Z
2020-02-17T08:18:29.000Z
analysis/webservice/algorithms/TimeSeriesSolr.py
lewismc/incubator-sdap-nexus
ff98fa346303431542b8391cc2a1bf7561d1bd03
[ "Apache-2.0" ]
6
2017-04-27T21:22:17.000Z
2021-06-01T21:45:52.000Z
analysis/webservice/algorithms/TimeSeriesSolr.py
dataplumber/nexus
f25a89e85eba098da9c6db1ff3d408dae8a6b310
[ "Apache-2.0" ]
5
2016-08-31T13:47:29.000Z
2017-11-14T21:45:22.000Z
""" Copyright (c) 2016 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved """ import sys import traceback import logging from cStringIO import StringIO from datetime import datetime from multiprocessing.dummy import Pool, Manager import matplotlib.dates as mdates import matplotlib.pypl...
38.924198
128
0.578608
1da5ab1fb7791179486921f458a3f9700f58c16f
344
py
Python
setup.py
victorjoos/tof2net
068f5f08a241dbfb950251bea52fd9379466bf2f
[ "MIT" ]
null
null
null
setup.py
victorjoos/tof2net
068f5f08a241dbfb950251bea52fd9379466bf2f
[ "MIT" ]
8
2021-02-02T23:07:37.000Z
2022-03-12T00:51:26.000Z
setup.py
victorjoos/tof2net
068f5f08a241dbfb950251bea52fd9379466bf2f
[ "MIT" ]
2
2020-10-01T08:23:24.000Z
2020-11-09T22:01:47.000Z
from setuptools import setup, find_packages setup(name="tofnet", version="3.2", description="TofNet models, utilities and extras", url="http://github.com/ispgroupucl/tof2net", author="ISPGroup", author_email="victor.joos@uclouvain.be", scripts=["tof"], packages=find_packages()...
28.666667
56
0.662791
1da5ac783a7896c9ef34dec4ce4cbcee5ad7925e
1,508
py
Python
sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_condition.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_condition.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_condition.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# Copyright 2021 The Kubeflow 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 in...
30.16
75
0.71618
1da5b743736ed5bdc2a00cddd2c1537fc0838093
6,190
py
Python
backend/database/core.py
AlexanderBerardino/police-data-trust
587fe2bc1e7f048e2308d89803abb20f4e619aab
[ "MIT" ]
16
2021-03-02T21:32:52.000Z
2022-03-15T23:13:06.000Z
backend/database/core.py
AlexanderBerardino/police-data-trust
587fe2bc1e7f048e2308d89803abb20f4e619aab
[ "MIT" ]
173
2021-03-03T01:35:36.000Z
2022-03-30T03:17:58.000Z
backend/database/core.py
AlexanderBerardino/police-data-trust
587fe2bc1e7f048e2308d89803abb20f4e619aab
[ "MIT" ]
36
2021-03-03T00:27:20.000Z
2022-03-29T23:07:57.000Z
"""This file defines the database connection, plus some terminal commands for setting up and tearing down the database. Do not import anything directly from `backend.database._core`. Instead, import from `backend.database`. """ import os from typing import Any, Optional import click import pandas as pd import psycopg...
29.061033
80
0.660905
1da5d07d38f759dffb18bf786f2061df2d6c0f42
839
py
Python
trac/admin/tests/__init__.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/admin/tests/__init__.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/admin/tests/__init__.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2005-2020 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at https://trac.edgewall.org/wiki/TracLicense. # # This software cons...
28.931034
67
0.753278
1da60e7224a00d08dca44ac22d9c33904f080b73
3,794
py
Python
src/pyhf/__init__.py
lnielsen/pyhf
3d98dc445c384d2919a77b9af0a202e12343a707
[ "Apache-2.0" ]
null
null
null
src/pyhf/__init__.py
lnielsen/pyhf
3d98dc445c384d2919a77b9af0a202e12343a707
[ "Apache-2.0" ]
null
null
null
src/pyhf/__init__.py
lnielsen/pyhf
3d98dc445c384d2919a77b9af0a202e12343a707
[ "Apache-2.0" ]
null
null
null
from .tensor import BackendRetriever as tensor from .optimize import OptimizerRetriever as optimize from .version import __version__ from .exceptions import InvalidBackend from . import events tensorlib = tensor.numpy_backend() default_backend = tensorlib optimizer = optimize.scipy_optimizer() default_optimizer = opti...
29.874016
165
0.638113
1da62af6bf0246a91c48d13b138bcf99542dfdac
3,165
py
Python
Build/Release/python_scripts/build_features.py
quantmatt/nitrade-trading-software
0704db9fe47ed1326caaefff31fa185704d68009
[ "Apache-2.0" ]
1
2019-10-28T01:13:37.000Z
2019-10-28T01:13:37.000Z
Build/Release/python_scripts/build_features.py
quantmatt/nitrade-trading-software
0704db9fe47ed1326caaefff31fa185704d68009
[ "Apache-2.0" ]
null
null
null
Build/Release/python_scripts/build_features.py
quantmatt/nitrade-trading-software
0704db9fe47ed1326caaefff31fa185704d68009
[ "Apache-2.0" ]
3
2019-11-20T07:50:07.000Z
2022-01-06T04:03:14.000Z
# -*- coding: utf-8 -*- """ Created on Sat Mar 30 17:26:10 2019 @author: matth """ import numpy as np from numpy import dtype import data_builder as db import pandas as pd #get the datafeed type ie. all or single df_type = input() #get the filename for the binary data filename = input() #get the filename for the bin...
35.166667
215
0.663507
1da681eab395fbc7fb9f01a398b3f0dcec9fb25a
4,696
py
Python
hashicorp_vault_client/hashicorp_vault_client/models/body32.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
null
null
null
hashicorp_vault_client/hashicorp_vault_client/models/body32.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
2
2019-09-30T20:56:41.000Z
2019-10-02T00:22:07.000Z
hashicorp_vault_client/hashicorp_vault_client/models/body32.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ HashiCorp Vault API HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. # noqa: E501 OpenAPI spec version: 1.2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class...
27.623529
122
0.550681
1da6902e99d50f3ac72b2680c74e14c47cdbd110
6,194
py
Python
PRF/misc_functions.py
iwatobipen/PRF
8bdd3441829921f714b1b71ef496937d495c7bc6
[ "MIT" ]
null
null
null
PRF/misc_functions.py
iwatobipen/PRF
8bdd3441829921f714b1b71ef496937d495c7bc6
[ "MIT" ]
null
null
null
PRF/misc_functions.py
iwatobipen/PRF
8bdd3441829921f714b1b71ef496937d495c7bc6
[ "MIT" ]
null
null
null
import numpy from numba.experimental import jitclass from numba import jit from scipy.stats import norm cache = True ############################################################ ############################################################ ############ Propogate Probabilities functions ############ #################...
29.778846
121
0.586051
1da695d6c3b9d88877c6597d495ea3f3c952f106
155
py
Python
survae/flows/__init__.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
262
2020-07-05T20:57:44.000Z
2022-03-28T02:24:43.000Z
survae/flows/__init__.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
17
2020-08-15T05:43:34.000Z
2022-01-31T12:24:21.000Z
survae/flows/__init__.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
35
2020-08-24T06:55:37.000Z
2022-02-11T05:17:58.000Z
from .flow import Flow from .inverse_flow import InverseFlow from .cond_flow import ConditionalFlow from .cond_inverse_flow import ConditionalInverseFlow
25.833333
53
0.864516
1da69b49624e7da99fab0a428a5b9f863833cb7d
152
py
Python
cassiopeia/datastores/__init__.py
xEcEz/cassiopeia
01d2433ae989a78995f313b368b8d499e84f8e3a
[ "MIT" ]
null
null
null
cassiopeia/datastores/__init__.py
xEcEz/cassiopeia
01d2433ae989a78995f313b368b8d499e84f8e3a
[ "MIT" ]
null
null
null
cassiopeia/datastores/__init__.py
xEcEz/cassiopeia
01d2433ae989a78995f313b368b8d499e84f8e3a
[ "MIT" ]
null
null
null
from .cache import Cache from .riotapi import RiotAPI from .ddragon import DDragon from .ghost import UnloadedGhostStore from .patch import PatchSource
25.333333
37
0.835526
1da6b06f0ed4eb2a51aac7a587618c6b923955bb
2,094
py
Python
ccmlib/cluster_factory.py
rafie/scylla-ccm
b3783d7f19fb4bd4cb14ca1d3a960e6ab7ca1c36
[ "Apache-2.0" ]
null
null
null
ccmlib/cluster_factory.py
rafie/scylla-ccm
b3783d7f19fb4bd4cb14ca1d3a960e6ab7ca1c36
[ "Apache-2.0" ]
null
null
null
ccmlib/cluster_factory.py
rafie/scylla-ccm
b3783d7f19fb4bd4cb14ca1d3a960e6ab7ca1c36
[ "Apache-2.0" ]
null
null
null
import os import yaml from ccmlib import common, repository from ccmlib.cluster import Cluster from ccmlib.dse_cluster import DseCluster from ccmlib.scylla_cluster import ScyllaCluster from ccmlib import repository from ccmlib.node import Node class ClusterFactory(): @staticmethod def load(path, name): ...
38.072727
108
0.619866
1da6b7497e7677e0de78b6d559f0f57afba9775e
674
py
Python
google-datacatalog-sisense-connector/src/google/datacatalog_connectors/sisense/scrape/__init__.py
anugrah86/datacatalog-connectors-bi
58cc57e12632cbd1e237b3d6930e519333c51f4e
[ "Apache-2.0" ]
27
2020-04-27T21:55:49.000Z
2022-02-18T22:09:13.000Z
google-datacatalog-sisense-connector/src/google/datacatalog_connectors/sisense/scrape/__init__.py
anugrah86/datacatalog-connectors-bi
58cc57e12632cbd1e237b3d6930e519333c51f4e
[ "Apache-2.0" ]
36
2020-05-01T15:26:14.000Z
2022-03-26T00:09:19.000Z
google-datacatalog-sisense-connector/src/google/datacatalog_connectors/sisense/scrape/__init__.py
anugrah86/datacatalog-connectors-bi
58cc57e12632cbd1e237b3d6930e519333c51f4e
[ "Apache-2.0" ]
18
2020-04-30T22:14:09.000Z
2022-01-13T10:28:03.000Z
#!/usr/bin/python # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
33.7
74
0.761128
1da6d3f4d18418b5843bf4a9e29e2a752a1faacd
3,980
py
Python
pyrseas/dbobject/collation.py
andreypopp/Pyrseas
5fadc91bfd1e3e430e8f53d434df18b9abea3cb0
[ "BSD-3-Clause" ]
1
2015-03-16T09:10:47.000Z
2015-03-16T09:10:47.000Z
pyrseas/dbobject/collation.py
andreypopp/Pyrseas
5fadc91bfd1e3e430e8f53d434df18b9abea3cb0
[ "BSD-3-Clause" ]
null
null
null
pyrseas/dbobject/collation.py
andreypopp/Pyrseas
5fadc91bfd1e3e430e8f53d434df18b9abea3cb0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ pyrseas.dbobject.collation ~~~~~~~~~~~~~~~~~~~~~~~~~~ This defines two classes, Collation and CollationDict, derived from DbSchemaObject and DbObjectDict, respectively. """ from pyrseas.dbobject import DbObjectDict, DbSchemaObject class Collation(DbSchemaObject): """A ...
36.181818
78
0.548492
1da6d7203238bbe61e3fccb13c733852bc51b17c
7,249
py
Python
stage_2_semantic/src/utils.py
grtzsohalf/Audio-Phonetic-and-Semantic-Embedding
1207cb61ec4587f38817b030a1e92cb315ebd178
[ "MIT" ]
2
2019-08-09T00:49:25.000Z
2019-09-30T06:37:07.000Z
stage_2_semantic/src/utils.py
grtzsohalf/Audio-Phonetic-and-Semantic-Embedding
1207cb61ec4587f38817b030a1e92cb315ebd178
[ "MIT" ]
null
null
null
stage_2_semantic/src/utils.py
grtzsohalf/Audio-Phonetic-and-Semantic-Embedding
1207cb61ec4587f38817b030a1e92cb315ebd178
[ "MIT" ]
null
null
null
import argparse import os import sys import random import numpy as np import time from tqdm import tqdm from collections import Counter import math def load_centroids(data_file): centroids = [] count = 0 with open(data_file, 'r') as fin: for line in fin: line = line[:-1].split() ...
35.534314
117
0.539937
1da6e2d655d823a4ac804a840ff03233b384ded0
689
py
Python
antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/prepro/prepro.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
2
2020-09-30T11:40:22.000Z
2020-11-09T09:06:30.000Z
antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/prepro/prepro.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
542
2021-01-11T13:23:47.000Z
2022-03-31T15:38:10.000Z
antarest/study/storage/rawstudy/model/filesystem/root/input/thermal/prepro/prepro.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
1
2020-10-01T12:18:15.000Z
2020-10-01T12:18:15.000Z
from antarest.study.storage.rawstudy.model.filesystem.config.model import ( FileStudyTreeConfig, ) from antarest.study.storage.rawstudy.model.filesystem.folder_node import ( FolderNode, ) from antarest.study.storage.rawstudy.model.filesystem.inode import TREE from antarest.study.storage.rawstudy.model.filesyste...
31.318182
98
0.702467
1da6e74de8a7db0870a1917de2fbcbd7534256bb
18,854
py
Python
src/cattr/converters.py
IceN9ne/cattrs
d5e0cf8054b8e7bca31acf0301aad06ea2892754
[ "MIT" ]
null
null
null
src/cattr/converters.py
IceN9ne/cattrs
d5e0cf8054b8e7bca31acf0301aad06ea2892754
[ "MIT" ]
null
null
null
src/cattr/converters.py
IceN9ne/cattrs
d5e0cf8054b8e7bca31acf0301aad06ea2892754
[ "MIT" ]
null
null
null
from enum import Enum from functools import lru_cache from typing import Any, Callable, Dict, Mapping, Optional, Tuple, Type, TypeVar from attr import fields, resolve_types from ._compat import ( get_origin, is_bare, is_frozenset, is_generic, is_mapping, is_mutable_set, is_sequence, is...
35.10987
79
0.592182
1da6e8db1d8c2c419d32cb2f11c0f05c5c77c2ee
899
py
Python
bundle/sagemaker_rl_agent/share/sagemaker_rl_agent/package.py
larsll/deepracer-simapp
9251c32ff33d49955b63ccca4f38d01a0c721d4f
[ "MIT" ]
1
2022-02-23T20:34:00.000Z
2022-02-23T20:34:00.000Z
bundle/sagemaker_rl_agent/share/sagemaker_rl_agent/package.py
Bandwidth/deepracer-simapp
9bf0a5f9c55e37ecef8e72b1b6dc15ecb0370bc1
[ "MIT" ]
null
null
null
bundle/sagemaker_rl_agent/share/sagemaker_rl_agent/package.py
Bandwidth/deepracer-simapp
9bf0a5f9c55e37ecef8e72b1b6dc15ecb0370bc1
[ "MIT" ]
null
null
null
# template generated by /usr/local/lib/python3.6/dist-packages/colcon_python_shell/shell/python_shell.py # This script extends the environment for this package. import pathlib # assumes colcon_current_prefix has been injected into globals by caller assert colcon_current_prefix def prepend_unique_path(envvar, subdire...
35.96
118
0.756396
1da71c9d05f18eab39c92eeb93f36ec124c90753
1,530
py
Python
examples/paper/auxiliar_neumman.py
dsb-lab/scBayesDeconv
62d154b903afb8782f32e389d020026d5e0b4370
[ "MIT" ]
null
null
null
examples/paper/auxiliar_neumman.py
dsb-lab/scBayesDeconv
62d154b903afb8782f32e389d020026d5e0b4370
[ "MIT" ]
1
2021-02-11T11:21:16.000Z
2021-02-11T11:21:16.000Z
examples/paper/auxiliar_neumman.py
gatocor/gaussDeconv2dist
4b65895d200654fc0bbc22118f9995eda12b0417
[ "MIT" ]
1
2021-01-05T12:20:04.000Z
2021-01-05T12:20:04.000Z
#Import necessary libraries import numpy as np import matplotlib.pyplot as plt import scipy.stats as st import pandas as pd from scipy.signal import correlate from pickle import load, dump ## Newman deconvolution def natural_estimate(data,w): sol = [0 for i in range(len(w))] l = len(data) for n,i in enume...
35.581395
98
0.651634
1da73d6fdc2e90f618de345c5547d0a2612ea54e
13,660
py
Python
rummage/lib/gui/controls/dynamic_lists.py
facelessuser/Rummage
74f0ce1b078eef40c3ba683dbc4638112f3b9bb7
[ "MIT" ]
55
2015-02-15T08:17:55.000Z
2022-03-11T11:55:39.000Z
rummage/lib/gui/controls/dynamic_lists.py
facelessuser/Rummage
74f0ce1b078eef40c3ba683dbc4638112f3b9bb7
[ "MIT" ]
264
2015-01-29T20:27:40.000Z
2022-03-03T04:08:48.000Z
rummage/lib/gui/controls/dynamic_lists.py
facelessuser/Rummage
74f0ce1b078eef40c3ba683dbc4638112f3b9bb7
[ "MIT" ]
12
2017-08-30T22:54:20.000Z
2022-03-21T01:05:50.000Z
""" Dynamic lists. Licensed under MIT Copyright (c) 2013 - 2015 Isaac Muse <isaacmuse@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation ...
32.679426
118
0.599927
1da74317f9c5cab088ecd2bd8a61e30f35a16aac
6,177
py
Python
configs/recognition/swin/swin_base_patch244_window877_kinetics600_pretrained_tranST_charades_finetune.py
visaVita/mmaction2
2d7107a2d79b990b7facd3d6f7ac0b6ad974c153
[ "Apache-2.0" ]
null
null
null
configs/recognition/swin/swin_base_patch244_window877_kinetics600_pretrained_tranST_charades_finetune.py
visaVita/mmaction2
2d7107a2d79b990b7facd3d6f7ac0b6ad974c153
[ "Apache-2.0" ]
null
null
null
configs/recognition/swin/swin_base_patch244_window877_kinetics600_pretrained_tranST_charades_finetune.py
visaVita/mmaction2
2d7107a2d79b990b7facd3d6f7ac0b6ad974c153
[ "Apache-2.0" ]
null
null
null
model = dict( type='Recognizer3D', backbone=dict( type='SwinTransformer3D', patch_size=(2, 4, 4), depths=[2, 2, 18, 2], embed_dim=128, num_heads=[4, 8, 16, 32], window_size=(8, 7, 7), mlp_ratio=4.0, qkv_bias=True, qk_scale=None, dro...
30.731343
126
0.610005
1da74f324bbb4bb932594c211165331c80dfd178
7,554
py
Python
processing_provider/Drone_overviewsJPEG.py
LEOXINGU/lftools
f6ceac276c2872c7bf098f6363b44a07a6e523d8
[ "MIT" ]
19
2021-03-14T11:37:00.000Z
2022-03-31T13:29:57.000Z
processing_provider/Drone_overviewsJPEG.py
geodourados/lftools
4b9d703513bd3d49ac7952014575bf95492a2d90
[ "MIT" ]
4
2021-04-06T03:57:43.000Z
2022-03-28T22:57:07.000Z
processing_provider/Drone_overviewsJPEG.py
geodourados/lftools
4b9d703513bd3d49ac7952014575bf95492a2d90
[ "MIT" ]
3
2022-02-12T16:14:17.000Z
2022-03-28T22:18:04.000Z
# -*- coding: utf-8 -*- """ Drone_overviewsJPEG.py *************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Genera...
37.959799
253
0.562219
1da758cf0ca226011d5f3cb3cc0093f0712c81b3
16,300
py
Python
blazeweb/application.py
blazelibs/blazeweb
b120a6a2e38c8b53da2b73443ff242e2d1438053
[ "BSD-3-Clause" ]
null
null
null
blazeweb/application.py
blazelibs/blazeweb
b120a6a2e38c8b53da2b73443ff242e2d1438053
[ "BSD-3-Clause" ]
6
2016-11-01T18:42:34.000Z
2020-11-16T16:52:14.000Z
blazeweb/application.py
blazelibs/blazeweb
b120a6a2e38c8b53da2b73443ff242e2d1438053
[ "BSD-3-Clause" ]
1
2020-01-22T18:20:46.000Z
2020-01-22T18:20:46.000Z
import six.moves.builtins import logging from blazeutils.datastructures import BlankObject from blazeutils.strings import randchars, randhash from blinker import Namespace import six from werkzeug.exceptions import HTTPException, InternalServerError from werkzeug.routing import Map from blazeweb.globals import ag, rg...
42.558747
100
0.63
1da798d4ed22de4743f0a6de1d9b2baa192d94d7
869
py
Python
heartFEM/lcleeHeart/vtk_py/getABPointsFromBoundsAndCenter.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
3
2021-04-13T07:05:20.000Z
2021-10-02T13:41:09.000Z
heartFEM/lcleeHeart/vtk_py/getABPointsFromBoundsAndCenter.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
null
null
null
heartFEM/lcleeHeart/vtk_py/getABPointsFromBoundsAndCenter.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
2
2021-09-06T13:13:41.000Z
2022-03-11T18:59:02.000Z
######################################################################## import vtk ######################################################################## def getABPointsFromBoundsAndCenter(ugrid_wall, verbose=True): if (verbose): print ('*** getABPointsFromBoundsAndCenter *...
33.423077
98
0.545455
1da79fa514806615650147e0e2fcd1645e77c556
2,537
py
Python
hummingbot/core/utils/trading_pair_fetcher.py
RBUB-Yatirim/hummingbot
6b278932d423110b70d723c2b11c6ddf668cb367
[ "Apache-2.0" ]
2
2021-01-18T06:31:23.000Z
2021-03-17T12:34:15.000Z
hummingbot/core/utils/trading_pair_fetcher.py
RBUB-Yatirim/hummingbot
6b278932d423110b70d723c2b11c6ddf668cb367
[ "Apache-2.0" ]
2
2021-04-24T11:47:01.000Z
2021-06-11T18:24:25.000Z
hummingbot/core/utils/trading_pair_fetcher.py
RBUB-Yatirim/hummingbot
6b278932d423110b70d723c2b11c6ddf668cb367
[ "Apache-2.0" ]
2
2021-01-19T09:42:18.000Z
2021-05-08T08:07:43.000Z
import importlib from typing import ( Dict, Any, Optional, ) from hummingbot.core.utils.async_utils import safe_gather from hummingbot.logger import HummingbotLogger from hummingbot.client.settings import CONNECTOR_SETTINGS, ConnectorType import logging import asyncio from .async_utils import safe_ensure_f...
41.590164
115
0.672842
1da7a66ec8d1565176af77dc14f165eea154b526
18,017
py
Python
services/traction/acapy_client/model/v10_presentation_exchange.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_client/model/v10_presentation_exchange.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_client/model/v10_presentation_exchange.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
""" Aries Cloud Agent No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v0.7.2 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from acapy_cli...
47.790451
189
0.572071
1da7bc293dfd40572cbd8f5d824a453fafa6c234
12,856
py
Python
moesifdjango/middleware_pre19.py
Moesif/moesifdjango
67529381b7ffc234263e6989ae16cf8ef1ca62a6
[ "Apache-2.0" ]
13
2016-11-02T18:53:03.000Z
2022-01-25T21:47:24.000Z
moesifdjango/middleware_pre19.py
Moesif/moesifdjango
67529381b7ffc234263e6989ae16cf8ef1ca62a6
[ "Apache-2.0" ]
10
2017-12-13T11:56:48.000Z
2021-07-16T12:34:14.000Z
moesifdjango/middleware_pre19.py
Moesif/moesifdjango
67529381b7ffc234263e6989ae16cf8ef1ca62a6
[ "Apache-2.0" ]
5
2018-02-02T13:51:49.000Z
2021-12-17T00:46:24.000Z
from __future__ import print_function import requests import threading import random import math import queue import logging from django.conf import settings from django.utils import timezone from moesifapi.moesif_api_client import * from moesifapi.api_helper import * from moesifapi.exceptions.api_exception import * f...
47.439114
125
0.635968
1da7cb2a1d9365f1646492f6121649be48f760ea
5,678
py
Python
symSBML/simple_sbml.py
joseph-hellerstein/symSBML-deprecated
197f1860bb2e8c5648b3d95d51f8b774fadcaa68
[ "MIT" ]
1
2021-01-10T03:39:59.000Z
2021-01-10T03:39:59.000Z
symSBML/simple_sbml.py
joseph-hellerstein/symSBML-deprecated
197f1860bb2e8c5648b3d95d51f8b774fadcaa68
[ "MIT" ]
null
null
null
symSBML/simple_sbml.py
joseph-hellerstein/symSBML-deprecated
197f1860bb2e8c5648b3d95d51f8b774fadcaa68
[ "MIT" ]
3
2020-08-06T08:02:31.000Z
2022-01-16T18:08:35.000Z
'''Python representation of an SBML model.''' from src.common import constants as cn from src.common.kinetic_law import KineticLaw from src.common.reaction import Reaction from src.common.function_definition import FunctionDefinition from src.common import util import collections import os.path import numpy as np imp...
30.202128
76
0.689327
1da7d42e48f95a44fa5aa16dcbc5bb8c3a2cb0f0
553
py
Python
rework/core/management/deploy.py
simonlify/django-rework
fe80d5e115fae71778a76d5eff67db51aa8742d2
[ "MIT" ]
null
null
null
rework/core/management/deploy.py
simonlify/django-rework
fe80d5e115fae71778a76d5eff67db51aa8742d2
[ "MIT" ]
null
null
null
rework/core/management/deploy.py
simonlify/django-rework
fe80d5e115fae71778a76d5eff67db51aa8742d2
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import os import shutil from .base_management import BaseCommand class DeployCommand(BaseCommand): def handle(self, params): if params == ['--init']: try: working_dir = os.path.join(self.base_dir, 'deploy') core_dir = os.path.join(self.co...
26.333333
67
0.564195
1da7d44a74c726e20dde79422e4ecb139dac4e7d
1,673
py
Python
scripts/practice/FB/WordBreak-II.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
scripts/practice/FB/WordBreak-II.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
8
2020-09-05T16:04:31.000Z
2022-02-27T09:57:51.000Z
scripts/practice/FB/WordBreak-II.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
""" Word Break II Given a string s and a dictionary of strings wordDict, add spaces in s to construct a sentence where each word is a valid dictionary word. Return all such possible sentences in any order. Note that the same word in the dictionary may be reused multiple times in the segmentation. Example 1: Inpu...
28.355932
101
0.56844
1da7e925c7b2c7255ca9cb1585c1b79fbe33d023
528
py
Python
venv/Lib/site-packages/alpacalib/regex.py
rexliu3/StockTradingBotCloud
46b732b9c05f73bc0e856a3c4a16854b6d12e18e
[ "MIT" ]
null
null
null
venv/Lib/site-packages/alpacalib/regex.py
rexliu3/StockTradingBotCloud
46b732b9c05f73bc0e856a3c4a16854b6d12e18e
[ "MIT" ]
null
null
null
venv/Lib/site-packages/alpacalib/regex.py
rexliu3/StockTradingBotCloud
46b732b9c05f73bc0e856a3c4a16854b6d12e18e
[ "MIT" ]
1
2020-06-28T11:47:47.000Z
2020-06-28T11:47:47.000Z
""" regex.py Implementation for Regex. """ from alpacalib.syntax import SyntaxParser from alpacalib.syntax import SyntaxParserError from alpacalib.rast import RAST from alpacalib.graph import Graph from alpacalib.nfa import NFA class RegexError(Exception): pass class Regex: def __init__(self, text): ...
21.12
50
0.702652
1da7ebc0204c03057288b1e99000bbceea9be493
611
py
Python
setup.py
DeltaEpsilon7787/AVClipboardLib
69af4dbc23a89474b58f509affa98b96b4073a59
[ "MIT" ]
1
2021-11-27T14:47:17.000Z
2021-11-27T14:47:17.000Z
setup.py
DeltaEpsilon7787/av-clipboard-lib
69af4dbc23a89474b58f509affa98b96b4073a59
[ "MIT" ]
null
null
null
setup.py
DeltaEpsilon7787/av-clipboard-lib
69af4dbc23a89474b58f509affa98b96b4073a59
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup with open("README.md", encoding='utf-8') as in_: setup( name='av-clipboard-lib', version='1.9.1', packages=find_packages(), url='https://github.com/DeltaEpsilon7787/av-clipboard-lib', license='MIT', author='DeltaEpsilon7787...
33.944444
69
0.646481
1da7f60fe8f98a8c1648257aab8603c1a62609c6
402
py
Python
src/examples/misc/falloff.py
agarwalnaimish/pyprocessing
46695c379c95a7b874f76257c37f44f4b59d39e9
[ "MIT" ]
3
2018-04-23T17:33:02.000Z
2021-01-05T04:52:36.000Z
src/examples/misc/falloff.py
agarwalnaimish/pyprocessing
46695c379c95a7b874f76257c37f44f4b59d39e9
[ "MIT" ]
1
2018-04-23T17:37:37.000Z
2018-04-23T17:37:37.000Z
src/examples/misc/falloff.py
agarwalnaimish/pyprocessing
46695c379c95a7b874f76257c37f44f4b59d39e9
[ "MIT" ]
2
2019-01-16T06:34:52.000Z
2019-10-15T14:03:07.000Z
from pyprocessing import * def setup(): size(200,200) noStroke() def draw(): background(200) if mouse.pressed: lightFalloff(1,0,1e-4) pointLight(255,255,255,100,100,50) nx = 6 ny = 6 for i in range(nx): for j in range(ny): pushMatrix() translate((i+0.5)*...
19.142857
57
0.542289
1da8178974e848c448c591c040de88cd99d1fcee
1,063
py
Python
examples/nearest_neighbor.py
cloudbutton/lithops-array
5e74b881c7db95eccdccf986f1e3b0dc44603889
[ "Apache-2.0" ]
null
null
null
examples/nearest_neighbor.py
cloudbutton/lithops-array
5e74b881c7db95eccdccf986f1e3b0dc44603889
[ "Apache-2.0" ]
null
null
null
examples/nearest_neighbor.py
cloudbutton/lithops-array
5e74b881c7db95eccdccf986f1e3b0dc44603889
[ "Apache-2.0" ]
null
null
null
import numpywren as npywren from npywren import npywrencc import numpy as np import sklearn.metrics as metrics @npywrencc def nearest_neighbor_numpy(X_train, X_test, y_train, y_test): XYT = np.dot(X_train.dot, X_test.T) norms_train = np.linalg.norm(X_train, axis=1)[:, np.newaxis] norms_test = np.linalg.no...
36.655172
65
0.73095
1da837ea7103a42d2a4bdb4f1439164a190cb004
8,092
py
Python
custom_components/dwains_dashboard/process_yaml.py
avidit/home-assistant-config
c4ea82e7ea75f93ebfb1700b39df5ff9787843b7
[ "MIT" ]
285
2019-12-28T15:39:29.000Z
2020-10-16T11:47:28.000Z
custom_components/dwains_dashboard/process_yaml.py
avidit/homeassistant
c4ea82e7ea75f93ebfb1700b39df5ff9787843b7
[ "MIT" ]
180
2020-02-11T20:01:03.000Z
2020-10-10T16:52:25.000Z
custom_components/dwains_dashboard/process_yaml.py
avidit/homeassistant
c4ea82e7ea75f93ebfb1700b39df5ff9787843b7
[ "MIT" ]
58
2020-02-02T19:05:20.000Z
2020-10-09T18:41:36.000Z
import logging import yaml import os import logging import json import io import time from collections import OrderedDict import jinja2 import shutil from homeassistant.util.yaml import Secrets, loader from homeassistant.exceptions import HomeAssistantError from .const import DOMAIN, VERSION _LOGGER ...
47.046512
132
0.577608
1da87f527c0304a3b946f6b7aed972155ddfe9b2
8,506
py
Python
QUANTAXIS/QAMarket/QADealer.py
simplezhang57/QUANTAXIS
0fab23ee3cc4048a30b5eed3c311a5c9cdce8110
[ "MIT" ]
2
2018-10-29T12:01:55.000Z
2021-03-05T10:28:59.000Z
QUANTAXIS/QAMarket/QADealer.py
frosthaoz/QUANTAXIS
f5f482418e5f6e23ac3530089b8d17300d931b48
[ "MIT" ]
null
null
null
QUANTAXIS/QAMarket/QADealer.py
frosthaoz/QUANTAXIS
f5f482418e5f6e23ac3530089b8d17300d931b48
[ "MIT" ]
2
2018-11-30T07:52:14.000Z
2021-05-28T23:00:20.000Z
# coding :utf-8 # # The MIT License (MIT) # # Copyright (c) 2016-2018 yutiansut/QUANTAXIS # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation t...
36.982609
173
0.608864
1da8c795e5272b0990180a9b78b7276c5a5c22b5
1,361
py
Python
gymfc/examples/controllers/keras_solution.py
prokhn/onti-2019-bigdata
b9296141958f544177388be94072efce7bdc7814
[ "MIT" ]
null
null
null
gymfc/examples/controllers/keras_solution.py
prokhn/onti-2019-bigdata
b9296141958f544177388be94072efce7bdc7814
[ "MIT" ]
null
null
null
gymfc/examples/controllers/keras_solution.py
prokhn/onti-2019-bigdata
b9296141958f544177388be94072efce7bdc7814
[ "MIT" ]
null
null
null
import os import gymfc import gym from tensorflow.python.keras.layers import Input, Dense, Activation from drlbox.trainer import make_trainer # import nest_asyncio # nest_asyncio.apply() class RewScale(gym.RewardWrapper): def __init__(self, env, scale): gym.RewardWrapper.__init__(self, env) self.sc...
29.586957
79
0.684056
1da8eb219b3c2c5b5bff078e725d84224f27a380
4,022
py
Python
alipay/aop/api/request/AnttechAiCvTfjsModelversionBatchqueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AnttechAiCvTfjsModelversionBatchqueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AnttechAiCvTfjsModelversionBatchqueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AnttechAiCvTfjsModelversionBatchqueryModel import AnttechAiCvTfjsModelversionBatchqueryModel class AnttechAiCvTfjsModelversionBatchq...
27.737931
148
0.648931
1da8fa299202e22ae2f16954d09f853ed2432f39
47,080
py
Python
tests/unit/test_collection.py
Geeks-Trident-LLC/regexapp
a9d7576834859bb53b5c7b0e60c5b2089b105183
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_collection.py
Geeks-Trident-LLC/regexapp
a9d7576834859bb53b5c7b0e60c5b2089b105183
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_collection.py
Geeks-Trident-LLC/regexapp
a9d7576834859bb53b5c7b0e60c5b2089b105183
[ "BSD-3-Clause" ]
null
null
null
import pytest # noqa import re from textwrap import dedent from regexapp import PatternReference from regexapp import TextPattern from regexapp import ElementPattern from regexapp import LinePattern from regexapp import PatternBuilder from regexapp import MultilinePattern class TestPatternReference: def te...
52.544643
691
0.427082
1da9801dfca40664504ef6fdc965032a71533044
403
py
Python
fingerExercises/fingerExercises-01/01.2-finger.while-exercise-02.py
sodaPhix/MITx-6.00.1x
8629e227d250cf6c2d5ca56944668b5796ce78cf
[ "MIT" ]
1
2019-10-06T22:58:39.000Z
2019-10-06T22:58:39.000Z
fingerExercises/fingerExercises-01/01.2-finger.while-exercise-02.py
sodaPhix/MITx-6.00.1x
8629e227d250cf6c2d5ca56944668b5796ce78cf
[ "MIT" ]
null
null
null
fingerExercises/fingerExercises-01/01.2-finger.while-exercise-02.py
sodaPhix/MITx-6.00.1x
8629e227d250cf6c2d5ca56944668b5796ce78cf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Oct 6 20:34:16 2019 @author: sodatab MITx: 6.00.1x """ """ 01.2-Finger While Exercise 02 ---------------------------- 2. Convert the following into code that uses a while loop. prints Hello! prints 10 prints 8 prints 6 prints 4 prints 2 """ """Answ...
13
58
0.593052
1da989d7ae1d27abf5327a3224e4a3991b7ee4f9
20,306
py
Python
main_molecules_graph_regression.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
null
null
null
main_molecules_graph_regression.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
6
2022-01-06T21:27:06.000Z
2022-01-19T06:28:56.000Z
main_molecules_graph_regression.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
null
null
null
# ======================== Import Packages ======================== # import argparse import glob import json import os import random import time import numpy as np import torch import torch.optim as optim from tensorboardX import SummaryWriter from torch.utils.data import DataLoader from tqdm import tqdm from data.d...
36.719711
118
0.598641
1da99486bfe4e358fa319cbf013a1932b7ffc838
1,007
py
Python
rlkit/torch/her/her_sac.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
rlkit/torch/her/her_sac.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
rlkit/torch/her/her_sac.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import numpy as np from rlkit.data_management.obs_dict_replay_buffer import \ ObsDictRelabelingBuffer from rlkit.samplers.rollout_functions import ( create_rollout_function, multitask_rollout, ) from rlkit.torch.her.her import HER from rlkit.torch.sac.sac import SoftActorCritic class HerSac(HER, SoftActor...
27.216216
58
0.650447
1da996b60998e925bf3df2cc829cc178d67aaa80
1,689
py
Python
stanCode_Projects/my_drawing/bouncing_ball.py
JohnsonWang0319/MystanCodeProjects
9a961761b91ef145847405b0b8c1e958c44e7347
[ "MIT" ]
null
null
null
stanCode_Projects/my_drawing/bouncing_ball.py
JohnsonWang0319/MystanCodeProjects
9a961761b91ef145847405b0b8c1e958c44e7347
[ "MIT" ]
null
null
null
stanCode_Projects/my_drawing/bouncing_ball.py
JohnsonWang0319/MystanCodeProjects
9a961761b91ef145847405b0b8c1e958c44e7347
[ "MIT" ]
null
null
null
""" File: Bouncing_ball.py Name: Johnson """ from campy.graphics.gobjects import GOval from campy.graphics.gwindow import GWindow from campy.gui.events.timer import pause from campy.gui.events.mouse import onmouseclicked VX = 3 DELAY = 10 GRAVITY = 1 SIZE = 20 REDUCE = 0.9 START_X = 30 START_Y = 40 ...
24.128571
101
0.542333
1da9d43f709174e21de937a103278376b913d865
13,067
py
Python
src/Application/PythonScriptModule/pymodules_old/apitest/testrunner.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
null
null
null
src/Application/PythonScriptModule/pymodules_old/apitest/testrunner.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
null
null
null
src/Application/PythonScriptModule/pymodules_old/apitest/testrunner.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
null
null
null
import rexviewer as r import circuits import naali import time import sys import traceback user, pwd, server = "Test Bot", "test", "world.realxtend.org:9000" #user, pwd, server = "d d", "d", "world.evocativi.com:8002" class TestRunner(circuits.BaseComponent): def __init__(self, cfsection=None): self.confi...
32.424318
122
0.563481
1daa0f3077e1570d6ab17a7351c0c316a34c738b
3,875
py
Python
floris/simulation/wake_vortex/VortexPoint.py
tangsmall/floris
51e4e15c6a9b0c8f55bf01772111799803acf224
[ "Apache-2.0" ]
null
null
null
floris/simulation/wake_vortex/VortexPoint.py
tangsmall/floris
51e4e15c6a9b0c8f55bf01772111799803acf224
[ "Apache-2.0" ]
null
null
null
floris/simulation/wake_vortex/VortexPoint.py
tangsmall/floris
51e4e15c6a9b0c8f55bf01772111799803acf224
[ "Apache-2.0" ]
null
null
null
import numpy as np def vp_u(CP,Pv,Gamma=1,rcore=0,bViscous=False): DP = CP - Pv r2 = DP[0] ** 2 + DP[1] ** 2 t = np.array([- DP[1],DP[0]]) if bViscous: U = Gamma * t[0] / r2 / (2 * np.pi) * (1 - np.exp(- r2 / rcore ** 2)) V = Gamma * t[1] / r2 / (2 * np.pi) * (1 - np.exp(- r2 / rcore ...
36.214953
111
0.474323
1daa267cbc82a12b060bd3a5e8c4c0b9bdf6ed3e
7,087
py
Python
collections/ansible_collections/redhat/satellite/plugins/modules/content_upload.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
null
null
null
collections/ansible_collections/redhat/satellite/plugins/modules/content_upload.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
null
null
null
collections/ansible_collections/redhat/satellite/plugins/modules/content_upload.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
2
2021-03-30T14:26:02.000Z
2021-04-01T18:17:29.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2016, Eric D Helms <ericdhelms@gmail.com> # (c) 2018, Sean O'Keeffe <seanokeeffe797@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, e...
36.530928
153
0.665303
1daa55a7f67fb665f4d158595b91148f86e77a7b
1,396
py
Python
setup.py
katzj/graphite
e33bf5e035360880c4172a3c2ecb355485d7b172
[ "Apache-2.0" ]
1
2016-07-25T09:45:31.000Z
2016-07-25T09:45:31.000Z
setup.py
katzj/graphite
e33bf5e035360880c4172a3c2ecb355485d7b172
[ "Apache-2.0" ]
null
null
null
setup.py
katzj/graphite
e33bf5e035360880c4172a3c2ecb355485d7b172
[ "Apache-2.0" ]
2
2018-03-19T17:49:03.000Z
2018-12-04T02:14:09.000Z
#!/usr/bin/env python import os from glob import glob if os.environ.get('USE_SETUPTOOLS'): from setuptools import setup setup_kwargs = dict(zip_safe=0) else: from distutils.core import setup setup_kwargs = dict() storage_dirs = [] for subdir in ('whisper', 'lists', 'rrd', 'log', 'log/webapp'): storage_d...
28.489796
235
0.697708
1daa60bcb369ebefb1d5e603b2a56e5dc5fdf424
4,585
py
Python
tests/components/upnp/test_init.py
herrlado/home-assistant
99328bd4c1704819ea3bd3bed19bb69646a4e333
[ "Apache-2.0" ]
null
null
null
tests/components/upnp/test_init.py
herrlado/home-assistant
99328bd4c1704819ea3bd3bed19bb69646a4e333
[ "Apache-2.0" ]
null
null
null
tests/components/upnp/test_init.py
herrlado/home-assistant
99328bd4c1704819ea3bd3bed19bb69646a4e333
[ "Apache-2.0" ]
null
null
null
"""Test UPnP/IGD setup process.""" from ipaddress import ip_address from unittest.mock import MagicMock, patch from homeassistant.components import upnp from homeassistant.components.upnp.device import Device from homeassistant.const import EVENT_HOMEASSISTANT_STOP from homeassistant.setup import async_setup_componen...
34.216418
84
0.674591
1daa6bbd9eb3609eebd606570149f5809f9ed868
995
py
Python
examples/os/test_os.py
robotafm/Capsule
bf1ceef28f3ef2c0e97ee78203815f51783270e3
[ "MIT" ]
null
null
null
examples/os/test_os.py
robotafm/Capsule
bf1ceef28f3ef2c0e97ee78203815f51783270e3
[ "MIT" ]
null
null
null
examples/os/test_os.py
robotafm/Capsule
bf1ceef28f3ef2c0e97ee78203815f51783270e3
[ "MIT" ]
null
null
null
import os print("os.name=", os.name) os.chdir(r'C:\Data2\uploads') print("os.getcwd()=", os.getcwd()) files = os.listdir(path=".") print("files=", files) for file in files: print(file) # path = os.path.join(folder, name) path = r"D:\Data\testdata\djvu\Vas.djvu" filename, file_extension = o...
26.891892
74
0.678392
1daa7518b5a9919e7b1809b05624e42454a0bf19
1,319
py
Python
rpc4django/templatetags/rpctags.py
elpaso/rpc4django
d722faf5fb8408c7cd5f7c937b489b8cd5eae2ff
[ "BSD-3-Clause" ]
null
null
null
rpc4django/templatetags/rpctags.py
elpaso/rpc4django
d722faf5fb8408c7cd5f7c937b489b8cd5eae2ff
[ "BSD-3-Clause" ]
null
null
null
rpc4django/templatetags/rpctags.py
elpaso/rpc4django
d722faf5fb8408c7cd5f7c937b489b8cd5eae2ff
[ "BSD-3-Clause" ]
null
null
null
''' Creates a template tag that can handle `restructured text`_ (reST) .. _restructured text: http://docutils.sourceforge.net/rst.html ''' import logging from django import template from django.utils.safestring import mark_safe from django.conf import settings logger = logging.getLogger('rpc4django') RESTRICT_REST...
26.38
73
0.669447
1daa9024e32b7ba0da519ffe0feb16d8161bdd18
12,541
py
Python
higra/concept.py
deisemaia/Higra
82cb78b606a383f3961faa882457a9a987f802e0
[ "CECILL-B" ]
null
null
null
higra/concept.py
deisemaia/Higra
82cb78b606a383f3961faa882457a9a987f802e0
[ "CECILL-B" ]
null
null
null
higra/concept.py
deisemaia/Higra
82cb78b606a383f3961faa882457a9a987f802e0
[ "CECILL-B" ]
null
null
null
############################################################################ # Copyright ESIEE Paris (2018) # # # # Contributor(s) : Benjamin Perret # # ...
40.067093
222
0.553863
1daa935eeb59e3e4cc84c1713cf52493e271e327
6,941
py
Python
tests/fiaas_skipper/deploy/test_deploy.py
rarruda/skipper
a5ed39eac102116ef49dc952d6f1f4017acaa11c
[ "Apache-2.0" ]
null
null
null
tests/fiaas_skipper/deploy/test_deploy.py
rarruda/skipper
a5ed39eac102116ef49dc952d6f1f4017acaa11c
[ "Apache-2.0" ]
null
null
null
tests/fiaas_skipper/deploy/test_deploy.py
rarruda/skipper
a5ed39eac102116ef49dc952d6f1f4017acaa11c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 # Copyright 2017-2019 The FIAAS 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 # # U...
41.813253
112
0.696009
1daab3538f83c55f4f66a2fa70dc52eac9983ac5
5,606
py
Python
users/views.py
fross123/Theater-Admin-Portal
68f8b33d2d25ad287efb6038255425a6d64a0b67
[ "MIT" ]
null
null
null
users/views.py
fross123/Theater-Admin-Portal
68f8b33d2d25ad287efb6038255425a6d64a0b67
[ "MIT" ]
26
2021-02-08T07:57:42.000Z
2022-03-01T02:07:58.000Z
users/views.py
fross123/Theater-Admin-Portal
68f8b33d2d25ad287efb6038255425a6d64a0b67
[ "MIT" ]
null
null
null
import datetime from django.http.response import JsonResponse from django.utils.timezone import now from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django.http import HttpResponseRedirect from django.shortcuts import render from django.urls imp...
42.150376
157
0.652694
1daab847cbc1995cec790e416b632b3f708f28ca
35,072
py
Python
NLP_backdoor/RIPPLe/slim_bert_run_mag_glue_prune.py
ziqi-zhang/ReMoS_artifact
9cbac09333aeb0891cc54d287d6829fdf4bd5d23
[ "MIT" ]
4
2022-03-14T06:11:19.000Z
2022-03-16T09:21:59.000Z
NLP_backdoor/RIPPLe/slim_bert_run_mag_glue_prune.py
ziqi-zhang/ReMoS_artifact
9cbac09333aeb0891cc54d287d6829fdf4bd5d23
[ "MIT" ]
null
null
null
NLP_backdoor/RIPPLe/slim_bert_run_mag_glue_prune.py
ziqi-zhang/ReMoS_artifact
9cbac09333aeb0891cc54d287d6829fdf4bd5d23
[ "MIT" ]
2
2022-03-14T22:58:24.000Z
2022-03-16T05:29:37.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
49.189341
212
0.639969
1daace7ce0e46a1973a317440f4c6df5bd934032
2,716
py
Python
oscar/lib/python2.7/site-packages/django/db/backends/sqlite3/features.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/db/backends/sqlite3/features.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/db/backends/sqlite3/features.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.db import utils from django.db.backends.base.features import BaseDatabaseFeatures from django.utils import six from django.utils.functional import cached_property from .base import Database class DatabaseFeatures(BaseDatabaseFeatures): # SQLite cann...
35.736842
80
0.693667
1daae0e7eace5e4f5564e586476bf7d372fd56f7
1,303
py
Python
modules/tools/prediction/mlp_train/common/configure.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
6
2019-10-11T07:57:49.000Z
2022-02-23T15:23:41.000Z
modules/tools/prediction/mlp_train/common/configure.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
null
null
null
modules/tools/prediction/mlp_train/common/configure.py
DavidSplit/apollo-3.0
9f82838e857e4c9146952946cbc34b9f35098deb
[ "Apache-2.0" ]
12
2019-10-11T07:57:49.000Z
2022-03-16T05:13:00.000Z
#!/usr/bin/env python ############################################################################### # Copyright 2018 The Apollo Authors. All Rights Reserved. # Modifications Copyright (c) 2018 LG Electronics, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not ...
35.216216
79
0.597851
1dab0e910a3c8b9f004467532f0f0617fa88e201
5,035
py
Python
Laval/laval.py
Bsuniverse/NWPU-CFD
b893575451e5309cd1a81cf43fda88a5935b1ebc
[ "MIT" ]
1
2021-11-07T07:49:00.000Z
2021-11-07T07:49:00.000Z
Laval/laval.py
lpf2215/NWPU-CFD
b893575451e5309cd1a81cf43fda88a5935b1ebc
[ "MIT" ]
null
null
null
Laval/laval.py
lpf2215/NWPU-CFD
b893575451e5309cd1a81cf43fda88a5935b1ebc
[ "MIT" ]
1
2021-11-07T07:48:48.000Z
2021-11-07T07:48:48.000Z
#!/usr/bin/python #-*- coding: <encoding name> -*- import numpy as np import pandas as pd import os import math def initCondition(xl, xr, N, pe, Ma): dx = (xr - xl) / N x = np.array([xl + dx * i for i in range(0, N + 1)]) Ax = 0.5 + x ** 2 # Initiate the u, p, rho u = 2 * np.ones(N + 1) p = 2 * np....
31.867089
110
0.514796
1dab166817b86e69987f8b6f7683ddc5e4273d5f
144,390
py
Python
Lib/test/test_io.py
vic/pysano
bcfd0522711efaaacf68821b831674b0ff48b6a1
[ "PSF-2.0" ]
4
2016-04-02T00:01:50.000Z
2017-07-13T02:11:04.000Z
Lib/test/test_io.py
vic/pysano
bcfd0522711efaaacf68821b831674b0ff48b6a1
[ "PSF-2.0" ]
9
2016-05-15T22:08:48.000Z
2016-06-17T19:16:17.000Z
Lib/test/test_io.py
vic/pysano
bcfd0522711efaaacf68821b831674b0ff48b6a1
[ "PSF-2.0" ]
null
null
null
"""Unit tests for the io module.""" # Tests of io are scattered over the test suite: # * test_bufio - tests file buffering # * test_memoryio - tests BytesIO and StringIO # * test_fileio - tests FileIO # * test_file - tests the file interface # * test_io - tests everything else in the io module # * test_univnewlines - ...
37.1469
103
0.573765
1dab24c73d220de0f1c5188a68be8f1a81c9b8f2
1,219
py
Python
bonneville/utils/saltminionservice.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/utils/saltminionservice.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/utils/saltminionservice.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
3
2020-05-10T02:08:44.000Z
2020-11-06T11:01:57.000Z
# -*- coding: utf-8 -*- # Import bonneville libs from bonneville.utils.winservice import Service, instart import bonneville # Import third party libs import win32serviceutil import win32service import winerror # Import python libs import sys class MinionService(Service): def start(self): self.runflag =...
24.877551
65
0.662838
1dab27dcfdc11b37a6f25b146756a22047b99c9f
11,211
py
Python
src/main/python/pybuilder/plugins/python/unittest_plugin.py
IVFSTEST/pybuilder
2006a2da7b1f990d2cc981bebb88870ac9c2725b
[ "Apache-2.0" ]
1
2020-04-17T01:02:10.000Z
2020-04-17T01:02:10.000Z
src/main/python/pybuilder/plugins/python/unittest_plugin.py
IVFSTEST/pybuilder
2006a2da7b1f990d2cc981bebb88870ac9c2725b
[ "Apache-2.0" ]
null
null
null
src/main/python/pybuilder/plugins/python/unittest_plugin.py
IVFSTEST/pybuilder
2006a2da7b1f990d2cc981bebb88870ac9c2725b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of PyBuilder # # Copyright 2011-2020 PyBuilder Team # # 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/l...
40.916058
120
0.681474
1dab2ffe026a4a113e00fe28a89c9f6e18fb03b3
2,763
py
Python
embiggen/embedders/pykeen_embedders/quate.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
2
2020-01-30T11:57:37.000Z
2020-05-02T00:05:49.000Z
embiggen/embedders/pykeen_embedders/quate.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
93
2020-01-26T00:43:51.000Z
2020-05-10T03:29:54.000Z
embiggen/embedders/pykeen_embedders/quate.py
monarch-initiative/N2V
8ae02ca125f1d24ca158c2849f2d9bb1711920b9
[ "BSD-3-Clause" ]
5
2020-02-13T07:18:11.000Z
2020-03-19T08:03:34.000Z
"""Submodule providing wrapper for PyKeen's QuatE model.""" from typing import Union, Type, Dict, Any, Optional from pykeen.training import TrainingLoop from pykeen.models import QuatE from embiggen.embedders.pykeen_embedders.entity_relation_embedding_model_pykeen import EntityRelationEmbeddingModelPyKeen from pykeen.t...
34.111111
121
0.595729