hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
d76ce23e6329b8ee23b0d81f29ac3bdab0a9a8f3
10,755
py
Python
chives/wallet/wallet_coin_store.py
zcomputerwiz/chives-blockchain
73d268bf76f50ff6133c868b58891e75739a2708
[ "Apache-2.0" ]
75
2021-06-27T03:30:59.000Z
2022-03-20T12:32:55.000Z
chives/wallet/wallet_coin_store.py
zcomputerwiz/chives-blockchain
73d268bf76f50ff6133c868b58891e75739a2708
[ "Apache-2.0" ]
39
2021-07-02T07:11:24.000Z
2022-03-20T15:00:07.000Z
chives/wallet/wallet_coin_store.py
zcomputerwiz/chives-blockchain
73d268bf76f50ff6133c868b58891e75739a2708
[ "Apache-2.0" ]
41
2021-06-24T11:24:43.000Z
2022-03-14T16:11:38.000Z
from typing import Dict, List, Optional, Set import aiosqlite import sqlite3 from chives.types.blockchain_format.coin import Coin from chives.types.blockchain_format.sized_bytes import bytes32 from chives.util.db_wrapper import DBWrapper from chives.util.ints import uint32, uint64 from chives.wallet.util.wallet_types...
43.02
120
0.637378
624b7df31768d4ca00cf3a9b3dea7802d6077b70
7,213
py
Python
object_detection/configs/_base_/models/cascade_mask_rcnn_convnext_fpn.py
ParikhKadam/ConvNeXt
d1fa8f6fef0a165b27399986cc2bdacc92777e40
[ "MIT" ]
3,453
2022-01-11T01:49:27.000Z
2022-03-31T12:35:56.000Z
object_detection/configs/_base_/models/cascade_mask_rcnn_convnext_fpn.py
ParikhKadam/ConvNeXt
d1fa8f6fef0a165b27399986cc2bdacc92777e40
[ "MIT" ]
80
2022-01-11T10:03:13.000Z
2022-03-31T05:22:48.000Z
object_detection/configs/_base_/models/cascade_mask_rcnn_convnext_fpn.py
ParikhKadam/ConvNeXt
d1fa8f6fef0a165b27399986cc2bdacc92777e40
[ "MIT" ]
398
2022-01-11T02:42:28.000Z
2022-03-31T06:30:47.000Z
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # model settings model = dict( type='CascadeRCNN', pretrained=None, backbone=dict( type='ConvNeXt', ...
34.511962
79
0.45931
5a96852e2bc3a9229a0254883aaa5ed0f985114c
709
py
Python
env/Lib/site-packages/plotly/validators/scattermapbox/_legendgrouptitle.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/scattermapbox/_legendgrouptitle.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/scattermapbox/_legendgrouptitle.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name="legendgrouptitle", parent_name="scattermapbox", **kwargs ): super(LegendgrouptitleValidator, self).__init__( plotly_name=plotly_name...
30.826087
83
0.586742
d7a421a7fc783b47d6036469c88d8d5af88e98bc
8,437
py
Python
joystick/pubsub_servo.py
quintest/Cloud-IoT-Core-Kit-Examples
ff9726f31ce5c69f03f59b43a66efef9b04fbb85
[ "Apache-2.0" ]
66
2017-10-16T09:33:05.000Z
2022-02-22T18:29:30.000Z
joystick/pubsub_servo.py
quintest/Cloud-IoT-Core-Kit-Examples
ff9726f31ce5c69f03f59b43a66efef9b04fbb85
[ "Apache-2.0" ]
5
2017-10-23T01:39:02.000Z
2018-06-14T17:41:26.000Z
joystick/pubsub_servo.py
quintest/Cloud-IoT-Core-Kit-Examples
ff9726f31ce5c69f03f59b43a66efef9b04fbb85
[ "Apache-2.0" ]
30
2017-09-27T13:55:25.000Z
2022-03-11T12:41:18.000Z
#!/usr/bin/python # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # di...
33.883534
131
0.704516
444085a96450ab535a70361431cc21a071f0c81f
11,132
py
Python
galpy/potential/MN3ExponentialDiskPotential.py
gusbeane/galpy
d6db971285f163456c81775fc2fdc7d75189762c
[ "BSD-3-Clause" ]
147
2015-01-01T14:06:17.000Z
2022-03-24T14:47:41.000Z
galpy/potential/MN3ExponentialDiskPotential.py
gusbeane/galpy
d6db971285f163456c81775fc2fdc7d75189762c
[ "BSD-3-Clause" ]
269
2015-01-07T15:58:31.000Z
2022-03-30T18:42:08.000Z
galpy/potential/MN3ExponentialDiskPotential.py
gusbeane/galpy
d6db971285f163456c81775fc2fdc7d75189762c
[ "BSD-3-Clause" ]
110
2015-02-08T10:57:24.000Z
2021-12-28T07:56:49.000Z
############################################################################### # MN3ExponentialDiskPotential.py: class that implements the three Miyamoto- # Nagai approximation to a radially # exponential disk potential of Smith et al. # ...
34.571429
184
0.525063
5a91fc22ecd276ad5d72af8aa7197bd1184e99f6
2,373
py
Python
python/colorpicker.py
EnviralDesign/UberGui
a589616beeb5d4646cb493edacc37606407fcf7f
[ "MIT" ]
43
2021-02-03T04:12:45.000Z
2022-03-20T13:28:39.000Z
python/colorpicker.py
EnviralDesign/UberGui
a589616beeb5d4646cb493edacc37606407fcf7f
[ "MIT" ]
39
2021-02-05T00:45:44.000Z
2021-09-28T09:26:44.000Z
python/colorpicker.py
EnviralDesign/UberGui
a589616beeb5d4646cb493edacc37606407fcf7f
[ "MIT" ]
2
2021-02-05T03:55:24.000Z
2021-02-09T03:49:14.000Z
class colorpicker: def __init__(self, ownerComp): # The component to which this extension is attached self.ownerComp = ownerComp self.hsvChop = op('null_hsv') self.hsvDat = op('table_hsv') self.h_comp = op('hue') self.sv_comp = op('hue') def Launch(self, OPS , PAR, LEFT, RIGHT, BOTTOM, TOP): # Launch ...
29.6625
98
0.672145
26b4cc404806e1ebf44af4c6fed10b4cd24f7a2f
3,634
py
Python
tests/test_commands.py
kolonialno/zplgen
31ac3ac9361bea39151e07885fc50eb2dec6f851
[ "MIT" ]
5
2017-05-09T14:08:58.000Z
2018-02-13T21:33:39.000Z
tests/test_commands.py
kolonialno/zplgen
31ac3ac9361bea39151e07885fc50eb2dec6f851
[ "MIT" ]
null
null
null
tests/test_commands.py
kolonialno/zplgen
31ac3ac9361bea39151e07885fc50eb2dec6f851
[ "MIT" ]
null
null
null
# encoding: utf-8 from __future__ import unicode_literals from unittest import TestCase from zplgen import Command, Font class CommandsTestCase(TestCase): """ Tests for the interesting command types. """ def test_field_encoding(self): """ Tests that Command.field handles unicode cha...
25.77305
77
0.5776
fcc1890a1fc31559a23c12f7dc48988ffc0c8724
1,422
py
Python
mine.py
zyyhhxx/DiscordGenshinScheduleBot
8208e078ce252b9810f3ab61fd8389c1e212fb42
[ "Apache-2.0" ]
null
null
null
mine.py
zyyhhxx/DiscordGenshinScheduleBot
8208e078ce252b9810f3ab61fd8389c1e212fb42
[ "Apache-2.0" ]
null
null
null
mine.py
zyyhhxx/DiscordGenshinScheduleBot
8208e078ce252b9810f3ab61fd8389c1e212fb42
[ "Apache-2.0" ]
null
null
null
import language from datetime import datetime SELF = "self" DEFAULT_MINE_REFRESH_INTERVAL = 259200 DEFAULT_MINE_NOTIFY_INTERVAL = 1800 def get_char_repr(char_name: str, language_key: str): char_repr = language.get_word("you", language_key) if char_name != SELF: char_repr = char_name return char_r...
33.857143
78
0.668776
e871018126cb4bc0e30b274f03d7e4e325505b59
8,390
py
Python
parcels/examples/example_peninsula.py
rabernat/parcels
b1c3d097c8c8d8a8398b6ab1080c8c2d23350ee8
[ "MIT" ]
1
2019-01-12T15:33:58.000Z
2019-01-12T15:33:58.000Z
parcels/examples/example_peninsula.py
rabernat/parcels
b1c3d097c8c8d8a8398b6ab1080c8c2d23350ee8
[ "MIT" ]
null
null
null
parcels/examples/example_peninsula.py
rabernat/parcels
b1c3d097c8c8d8a8398b6ab1080c8c2d23350ee8
[ "MIT" ]
null
null
null
from parcels import FieldSet, ParticleSet, ScipyParticle, JITParticle, Variable from parcels import AdvectionRK4, AdvectionEE, AdvectionRK45 from argparse import ArgumentParser import numpy as np import math # NOQA import pytest from datetime import timedelta as delta ptype = {'scipy': ScipyParticle, 'jit': JITParti...
43.025641
112
0.650775
43994b0ccf14f2fb9c756f42b8be98b81d648589
4,132
py
Python
benchmark/startQiskit_QC1986.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_QC1986.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_QC1986.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=31 import cirq import qiskit from qiskit import IBMQ from qiskit.providers.ibmq import least_busy from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from ma...
34.722689
165
0.654647
34da1e34f084f70d690f08194cc9a7e3fabf1bbc
362
py
Python
ValidAnagram.py
HalShaw/Leetcode
27c52aac5a8ecc5b5f02e54096a001920661b4bb
[ "MIT" ]
1
2016-12-22T04:09:25.000Z
2016-12-22T04:09:25.000Z
ValidAnagram.py
HalShaw/Leetcode
27c52aac5a8ecc5b5f02e54096a001920661b4bb
[ "MIT" ]
null
null
null
ValidAnagram.py
HalShaw/Leetcode
27c52aac5a8ecc5b5f02e54096a001920661b4bb
[ "MIT" ]
null
null
null
class Solution(object): def isAnagram(self, s, t): """ :type s: str :type t: str :rtype: bool """# 先排序,后比较 l1=sorted([x for x in s.lower()]) l2=sorted([y for y in t.lower()]) s1="".join(l1) s2="".join(l2) if s1==s2: return T...
24.133333
41
0.433702
8781006f5ad4896c65f6e56e8743cdb25d0c914f
16,589
py
Python
optuna/storages/_rdb/models.py
captain-pool/optuna
2ae8c17afea54362460320870304c763e91c0596
[ "MIT" ]
4,950
2019-11-15T07:35:51.000Z
2022-03-31T10:32:42.000Z
optuna/storages/_rdb/models.py
SCUTJcfeng/optuna
9331374a2460da067a6922e4ea09dd4706f3d950
[ "MIT" ]
2,490
2019-11-15T07:06:20.000Z
2022-03-31T23:52:45.000Z
optuna/storages/_rdb/models.py
SCUTJcfeng/optuna
9331374a2460da067a6922e4ea09dd4706f3d950
[ "MIT" ]
621
2019-11-15T11:26:57.000Z
2022-03-28T11:46:34.000Z
from typing import Any from typing import List from typing import Optional from sqlalchemy import asc from sqlalchemy import CheckConstraint from sqlalchemy import Column from sqlalchemy import DateTime from sqlalchemy import desc from sqlalchemy import Enum from sqlalchemy import Float from sqlalchemy import ForeignK...
32.274319
99
0.669781
0941f7530f4d2f785a1618d6233ea0e40fa0379e
19,338
py
Python
objc4/openSources/xnu-4570.71.2/tools/lldbmacros/core/cvalue.py
honeyeeb/objc4-723
020a0dd480818207211835aefe04f44007c09575
[ "MIT" ]
null
null
null
objc4/openSources/xnu-4570.71.2/tools/lldbmacros/core/cvalue.py
honeyeeb/objc4-723
020a0dd480818207211835aefe04f44007c09575
[ "MIT" ]
null
null
null
objc4/openSources/xnu-4570.71.2/tools/lldbmacros/core/cvalue.py
honeyeeb/objc4-723
020a0dd480818207211835aefe04f44007c09575
[ "MIT" ]
null
null
null
""" Defines a class value which encapsulates the basic lldb Scripting Bridge APIs. This provides an easy wrapper to extract information from C based constructs. |------- core.value------------| | |--lldb Scripting Bridge--| | | | |--lldb core--| | | | |-------------------------| | |-----------------...
36.486792
187
0.616506
cb86833dc1005d5379413fe528910c25f4eba3fd
380
py
Python
lebanese_channels/services/teleliban.py
ChadiEM/Lebanese-Channels
8e26f6f4b021367c57eb4ee966e3d4c1511aa77a
[ "MIT" ]
10
2017-05-10T04:23:43.000Z
2020-04-09T19:39:45.000Z
lebanese_channels/services/teleliban.py
ChadiEM/Kodi-Lebanese-Channels
8e26f6f4b021367c57eb4ee966e3d4c1511aa77a
[ "MIT" ]
null
null
null
lebanese_channels/services/teleliban.py
ChadiEM/Kodi-Lebanese-Channels
8e26f6f4b021367c57eb4ee966e3d4c1511aa77a
[ "MIT" ]
2
2019-05-06T23:01:37.000Z
2019-11-06T10:23:24.000Z
from lebanese_channels.channel import Channel from lebanese_channels.utils import stream class TeleLiban(Channel): def get_name(self) -> str: return 'Tele Liban' def get_logo(self) -> str: return 'http://www.teleliban.com.lb/images/telelogo.png' def get_stream_url(self) -> str: r...
27.142857
68
0.7
61be22e3551fc2a574748db217b99a43a4a4ad90
542
py
Python
tests/unit/core/auth/transaction/test_stdfee.py
bongtrop/jigu
448bce8ce693f3f7c530bea0f2f268e22100937a
[ "MIT" ]
14
2020-03-03T06:46:39.000Z
2021-05-01T15:29:35.000Z
tests/unit/core/auth/transaction/test_stdfee.py
bongtrop/jigu
448bce8ce693f3f7c530bea0f2f268e22100937a
[ "MIT" ]
9
2020-03-09T06:36:30.000Z
2021-02-15T14:40:48.000Z
tests/unit/core/auth/transaction/test_stdfee.py
bongtrop/jigu
448bce8ce693f3f7c530bea0f2f268e22100937a
[ "MIT" ]
5
2020-05-30T22:38:34.000Z
2021-02-11T00:56:20.000Z
import json import pytest from hypothesis import HealthCheck, given, settings from hypothesis import strategies as st from hypothesis_jsonschema import from_schema from jigu.core.auth.transaction import StdFee class TestStdFeeSerdes: @pytest.mark.slow @settings(suppress_health_check=[HealthCheck.too_slow, H...
28.526316
88
0.756458
377b999d1702ea69618a11e8e9b43adca2c36277
19,670
py
Python
reposts/reposts.py
GitAcrown/RedAppsv2
a3a1fb5a5c659ce6e54e62503012a79a71763d47
[ "MIT" ]
1
2022-03-07T01:54:10.000Z
2022-03-07T01:54:10.000Z
reposts/reposts.py
GitAcrown/RedAppsv2
a3a1fb5a5c659ce6e54e62503012a79a71763d47
[ "MIT" ]
null
null
null
reposts/reposts.py
GitAcrown/RedAppsv2
a3a1fb5a5c659ce6e54e62503012a79a71763d47
[ "MIT" ]
null
null
null
from collections import namedtuple from copy import copy from datetime import datetime, timedelta import logging import re import discord import typing from discord.ext import tasks from redbot.core import Config, commands, checks from redbot.core.utils.chat_formatting import box logger = logging.getLogger("red.RedAp...
45.532407
158
0.542298
34ea8d41218c30f146cef49a40c239a44eec47ee
761
py
Python
tests/test_database/test_user_collection/test_is_user_exist.py
Gliger13/bdo_daily_bot
d569405fcae1978c2bb1ac34d1f75936040a3552
[ "MIT" ]
null
null
null
tests/test_database/test_user_collection/test_is_user_exist.py
Gliger13/bdo_daily_bot
d569405fcae1978c2bb1ac34d1f75936040a3552
[ "MIT" ]
null
null
null
tests/test_database/test_user_collection/test_is_user_exist.py
Gliger13/bdo_daily_bot
d569405fcae1978c2bb1ac34d1f75936040a3552
[ "MIT" ]
null
null
null
"""Test that checking for an existing user is correct.""" import pytest from core.database.user_collection import UserCollection from test_framework.asserts.database_asserts.check_user_collection import check_is_user_exist from test_framework.scripts.common.data_factory import get_test_data @pytest.mark.asyncio @pyt...
36.238095
93
0.798949
a25ba8ef36dbbb132bf88b1efd7b086c22128411
1,538
py
Python
conftest.py
rohankumardubey/structlog
cad14e066c5f181ecebea5d053bec28b8e215e4a
[ "Apache-2.0", "MIT" ]
1,751
2015-01-04T05:58:49.000Z
2022-03-31T02:17:29.000Z
conftest.py
rohankumardubey/structlog
cad14e066c5f181ecebea5d053bec28b8e215e4a
[ "Apache-2.0", "MIT" ]
336
2015-01-06T15:42:06.000Z
2022-03-16T11:31:00.000Z
conftest.py
rohankumardubey/structlog
cad14e066c5f181ecebea5d053bec28b8e215e4a
[ "Apache-2.0", "MIT" ]
181
2015-01-14T14:45:31.000Z
2022-03-21T23:17:38.000Z
# SPDX-License-Identifier: MIT OR Apache-2.0 # This file is dual licensed under the terms of the Apache License, Version # 2.0, and the MIT License. See the LICENSE file in the root of this # repository for complete details. import logging import sys from io import StringIO import pytest from structlog._log_levels...
20.236842
79
0.682055
60cf2fbc694e601aae4e7e98958d2ae396de9966
4,321
py
Python
sklearn_pandas/__init__.py
Gwillink/sklearn-pandas
7ecd25dcb03c5aadf3e3d80983830f580e6686a8
[ "BSD-2-Clause" ]
1
2020-09-19T05:24:36.000Z
2020-09-19T05:24:36.000Z
sklearn_pandas/__init__.py
Gwillink/sklearn-pandas
7ecd25dcb03c5aadf3e3d80983830f580e6686a8
[ "BSD-2-Clause" ]
null
null
null
sklearn_pandas/__init__.py
Gwillink/sklearn-pandas
7ecd25dcb03c5aadf3e3d80983830f580e6686a8
[ "BSD-2-Clause" ]
null
null
null
__version__ = '0.0.8' import numpy as np import pandas as pd from sklearn.base import BaseEstimator, TransformerMixin from sklearn import cross_validation from sklearn import grid_search def cross_val_score(model, X, *args, **kwargs): X = DataWrapper(X) return cross_validation.cross_val_score(model, X, *args...
30.64539
84
0.592224
15b87a301dd7282f1bea3f2e8362727d26eb6ef6
8,339
py
Python
seq2seq/lf_util/sql_parser.py
JuruoMP/gap-exp
2d7af8a1da2f0ff8f9d3a2c6e15cc6383c716c05
[ "Apache-2.0" ]
null
null
null
seq2seq/lf_util/sql_parser.py
JuruoMP/gap-exp
2d7af8a1da2f0ff8f9d3a2c6e15cc6383c716c05
[ "Apache-2.0" ]
null
null
null
seq2seq/lf_util/sql_parser.py
JuruoMP/gap-exp
2d7af8a1da2f0ff8f9d3a2c6e15cc6383c716c05
[ "Apache-2.0" ]
null
null
null
import json WHERE_OPS = ( "not", "between", "=", ">", "<", ">=", "<=", "!=", "in", "like", "is", "exists", ) UNIT_OPS = ("none", "-", "+", "*", "/") AGG_OPS = ("none", "max", "min", "count", "sum", "avg") TABLE_TYPE = { "sql": "sql", "table_unit": "table_unit", ...
39.334906
108
0.578726
aa5104b9f0c9738217815b3d551c2f246d4b1500
74,916
py
Python
veriloggen/thread/axi.py
akmaru/veriloggen
74f998139e8cf613f7703fa4cffd571bbf069bbc
[ "Apache-2.0" ]
null
null
null
veriloggen/thread/axi.py
akmaru/veriloggen
74f998139e8cf613f7703fa4cffd571bbf069bbc
[ "Apache-2.0" ]
null
null
null
veriloggen/thread/axi.py
akmaru/veriloggen
74f998139e8cf613f7703fa4cffd571bbf069bbc
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function import math import functools from collections import OrderedDict import veriloggen.core.vtypes as vtypes import veriloggen.types.util as util import veriloggen.types.axi as axi from veriloggen.seq.seq import Seq, TmpSeq from veriloggen.fsm.f...
37.050445
100
0.541326
562bf19e595983f32c6ce2e6b23819920f835b35
4,855
py
Python
3rdparty/webkit/Source/ThirdParty/ANGLE/src/libANGLE/gen_packed_gl_enums.py
mchiasson/PhaserNative
f867454602c395484bf730a7c43b9c586c102ac2
[ "MIT" ]
null
null
null
3rdparty/webkit/Source/ThirdParty/ANGLE/src/libANGLE/gen_packed_gl_enums.py
mchiasson/PhaserNative
f867454602c395484bf730a7c43b9c586c102ac2
[ "MIT" ]
null
null
null
3rdparty/webkit/Source/ThirdParty/ANGLE/src/libANGLE/gen_packed_gl_enums.py
mchiasson/PhaserNative
f867454602c395484bf730a7c43b9c586c102ac2
[ "MIT" ]
1
2019-01-25T13:55:25.000Z
2019-01-25T13:55:25.000Z
# Copyright 2016 The ANGLE Project Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # gen_packed_gl_enums.py: # Code generation for the packed GL enums. import datetime, json, os, sys from collections import namedtuple Enum = namedt...
27.429379
106
0.66035
206e34dd5d21979f39095536973c39900046a362
7,077
py
Python
recipes/mpir/all/conanfile.py
Lukas-Heiligenbrunner/conan-center-index
d999bb1e3e12ccd29f2ddf7b2037678bbe33ca2a
[ "MIT" ]
2
2022-01-04T11:30:41.000Z
2022-01-04T11:31:32.000Z
recipes/mpir/all/conanfile.py
Lukas-Heiligenbrunner/conan-center-index
d999bb1e3e12ccd29f2ddf7b2037678bbe33ca2a
[ "MIT" ]
null
null
null
recipes/mpir/all/conanfile.py
Lukas-Heiligenbrunner/conan-center-index
d999bb1e3e12ccd29f2ddf7b2037678bbe33ca2a
[ "MIT" ]
1
2020-12-11T02:35:13.000Z
2020-12-11T02:35:13.000Z
from conans import ConanFile, tools, AutoToolsBuildEnvironment, MSBuild import os import glob class MpirConan(ConanFile): name = "mpir" description = "MPIR is a highly optimised library for bignum arithmetic" \ "forked from the GMP bignum library." topics = ("conan", "mpir", "multiprecisi...
45.954545
127
0.607743
c9a9de2c5d1b02077ccebad6bd9e4f93eacbdaf4
6,524
py
Python
src/commercetools/services/custom_objects.py
jeroenubbink/commercetools-python-sdk
ee27768d6fdde3e12618059891d1d4f75dd61390
[ "MIT" ]
null
null
null
src/commercetools/services/custom_objects.py
jeroenubbink/commercetools-python-sdk
ee27768d6fdde3e12618059891d1d4f75dd61390
[ "MIT" ]
null
null
null
src/commercetools/services/custom_objects.py
jeroenubbink/commercetools-python-sdk
ee27768d6fdde3e12618059891d1d4f75dd61390
[ "MIT" ]
null
null
null
# DO NOT EDIT! This file is automatically generated import typing from marshmallow import fields from commercetools._schemas._custom_object import ( CustomObjectDraftSchema, CustomObjectPagedQueryResponseSchema, CustomObjectSchema, ) from commercetools.helpers import OptionalList, RemoveEmptyValuesMixin f...
35.264865
84
0.636879
6787f8069188ddee5fd8b844b291ecb636cdda63
1,934
py
Python
imix/models/vqa_models/uniter/train_vqa.py
linxi1158/iMIX
af87a17275f02c94932bb2e29f132a84db812002
[ "Apache-2.0" ]
23
2021-06-26T08:45:19.000Z
2022-03-02T02:13:33.000Z
imix/models/vqa_models/uniter/train_vqa.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
null
null
null
imix/models/vqa_models/uniter/train_vqa.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
9
2021-06-10T02:36:20.000Z
2021-11-09T02:18:16.000Z
"""Copyright (c) Microsoft Corporation. Licensed under the MIT license. UNITER finetuning for VQA """ import torch from .model.vqa import UniterForVisualQuestionAnswering from .misc import set_dropout from .misc import compute_score_with_logits from collections import defaultdict from imix.models.builder import VQA_MO...
29.30303
103
0.644778
48fc8222dd294b2dcf2f264974ff9fa41dc694e3
6,453
py
Python
scripts/DepthSummaryCsv.py
Kennedy-Lab-UW/Duplex-Seq-Pipeline
77924212089998773ce5847a40c2642698781ce2
[ "BSD-3-Clause" ]
10
2020-04-28T20:59:57.000Z
2022-02-22T02:41:51.000Z
scripts/DepthSummaryCsv.py
Kennedy-Lab-UW/Duplex-Seq-Pipeline
77924212089998773ce5847a40c2642698781ce2
[ "BSD-3-Clause" ]
35
2020-04-28T00:34:36.000Z
2022-01-20T20:59:44.000Z
scripts/DepthSummaryCsv.py
KennedyLabUW/Duplex-Seq-Pipeline
878457d08f3272db01550fbf85da631ae11b713c
[ "BSD-3-Clause" ]
7
2020-08-15T01:45:01.000Z
2021-11-22T03:25:12.000Z
import datetime import logging import sys from argparse import ArgumentParser from collections import namedtuple import statistics from BedParser import * Depth_Line = namedtuple( "Depth_Line", [ "Chrom", "Pos", "Ref", "DP", "Ns" ] ) def str_or_nonetype(inStr): ...
30.438679
80
0.51325
648fc83735ead4099435d5ee812790fd248e0cc2
1,756
py
Python
astrodust/extinction/parse_PAH.py
eblur/dust
babbee0d5b6625f431eaff11ef33e8a839c7d7ff
[ "BSD-2-Clause" ]
8
2016-03-25T03:35:06.000Z
2021-05-12T10:29:13.000Z
astrodust/extinction/parse_PAH.py
eblur/dust
babbee0d5b6625f431eaff11ef33e8a839c7d7ff
[ "BSD-2-Clause" ]
22
2016-03-21T15:57:18.000Z
2016-06-03T04:28:07.000Z
astrodust/extinction/parse_PAH.py
eblur/dust
babbee0d5b6625f431eaff11ef33e8a839c7d7ff
[ "BSD-2-Clause" ]
7
2015-07-01T19:31:18.000Z
2021-12-27T02:18:50.000Z
## Created by Lia Corrales to parse PAH optical constant tables (PAHion_30, PAHneu_30) ## November 11, 2013 : lia@astro.columbia.edu import os import numpy as np def find_cmfile( name ): root_lib_path = os.path.dirname(__file__).rstrip('extinction') data_path = root_lib_path + 'distlib/tables/' return da...
29.266667
86
0.566629
d8a6f3769e5a50e415385804ed7c3d655cdaec48
1,236
py
Python
Algorithms_hard/0410. Split Array Largest Sum.py
VinceW0/Leetcode_Python_solutions
09e9720afce21632372431606ebec4129eb79734
[ "Xnet", "X11" ]
4
2020-08-11T20:45:15.000Z
2021-03-12T00:33:34.000Z
Algorithms_hard/0410. Split Array Largest Sum.py
VinceW0/Leetcode_Python_solutions
09e9720afce21632372431606ebec4129eb79734
[ "Xnet", "X11" ]
null
null
null
Algorithms_hard/0410. Split Array Largest Sum.py
VinceW0/Leetcode_Python_solutions
09e9720afce21632372431606ebec4129eb79734
[ "Xnet", "X11" ]
null
null
null
""" 410. Split Array Largest Sum Given an array which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays. Write an algorithm to minimize the largest sum among these m subarrays. Note: If n is the length of array, assume the following constraints are satisf...
26.297872
207
0.533981
464f0515f98b68ea7527d1d1aa8ddcaefa498910
16,403
py
Python
spectrochempy/core/processors/align.py
dcambie/spectrochempy
e376082d66be7a4c528b7d83be076d77534e39bd
[ "CECILL-B" ]
3
2021-04-09T09:13:21.000Z
2022-01-09T00:05:42.000Z
spectrochempy/core/processors/align.py
fernandezc/spectrochempy
4707c51dba0032c160afc40682fa16d4b9855ded
[ "CECILL-B" ]
null
null
null
spectrochempy/core/processors/align.py
fernandezc/spectrochempy
4707c51dba0032c160afc40682fa16d4b9855ded
[ "CECILL-B" ]
null
null
null
# -*- coding: utf-8 -*- # ====================================================================================================================== # Copyright (©) 2015-2021 LCS - Laboratoire Catalyse et Spectrochimie, # Caen, France. = # CeCILL-B FREE SOFTWARE LICENSE AGREEMENT - See ...
43.165789
120
0.572151
c96b5308c4b4a2271397872d063bedadf71ff068
969
py
Python
tests/handlers/websocket/test_kwarg_handling.py
t1waz/starlite
f25a21c3785dce406b42d15859f445c919ec1875
[ "MIT" ]
334
2022-01-07T12:14:54.000Z
2022-03-30T23:28:03.000Z
tests/handlers/websocket/test_kwarg_handling.py
t1waz/starlite
f25a21c3785dce406b42d15859f445c919ec1875
[ "MIT" ]
70
2022-01-06T18:41:33.000Z
2022-03-23T20:21:33.000Z
tests/handlers/websocket/test_kwarg_handling.py
t1waz/starlite
f25a21c3785dce406b42d15859f445c919ec1875
[ "MIT" ]
24
2022-01-06T22:02:01.000Z
2022-03-20T01:43:39.000Z
from starlite import Parameter, WebSocket, create_test_client, websocket def test_handle_websocket_params_parsing() -> None: @websocket(path="/{socket_id:int}") async def websocket_handler( socket: WebSocket, headers: dict, query: dict, cookies: dict, socket_id: int, ...
29.363636
110
0.608875
1eb4d6eec80d66e8d6e964b29f23f9e162b22ee4
47,882
py
Python
tasks/R2R/speaker/follower.py
sunqiang85/DASA
c4fdc61db77f59f84c68abec3b985fbd7dc29323
[ "MIT-0", "MIT" ]
5
2020-08-12T14:49:22.000Z
2022-02-13T21:48:30.000Z
tasks/R2R/speaker/follower.py
sunqiang85/DASA
c4fdc61db77f59f84c68abec3b985fbd7dc29323
[ "MIT-0", "MIT" ]
16
2020-07-26T08:28:56.000Z
2022-03-12T00:43:03.000Z
tasks/R2R/speaker/follower.py
sunqiang85/DASA
c4fdc61db77f59f84c68abec3b985fbd7dc29323
[ "MIT-0", "MIT" ]
4
2020-07-30T06:25:31.000Z
2021-03-03T10:08:35.000Z
''' Agents: stop/random/shortest/seq2seq ''' import json import sys import numpy as np import random from collections import namedtuple import torch import torch.nn as nn from torch.autograd import Variable import torch.nn.functional as F import torch.distributions as D from .utils import vocab_pad_idx, vocab_eos_i...
46.218147
234
0.586337
6e03a2b93203864e2d2de2fb166f756912e6a3fa
9,173
py
Python
test/acceptance/src/integration/cli-sd/cli_instances_management/steps.py
ealogar/servicedirectory
fb4f4bfa8b499b93c03af589ef2f34c08a830b17
[ "Apache-2.0" ]
null
null
null
test/acceptance/src/integration/cli-sd/cli_instances_management/steps.py
ealogar/servicedirectory
fb4f4bfa8b499b93c03af589ef2f34c08a830b17
[ "Apache-2.0" ]
null
null
null
test/acceptance/src/integration/cli-sd/cli_instances_management/steps.py
ealogar/servicedirectory
fb4f4bfa8b499b93c03af589ef2f34c08a830b17
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' (c) Copyright 2013 Telefonica, I+D. Printed in Spain (Europe). All Rights Reserved. The copyright to the software program(s) is property of Telefonica I+D. The program(s) may be used and or copied only with the express written consent of Telefonica I+D or in accordance with the terms and co...
41.31982
125
0.76082
b0b83422e1444fe0320542b01790d1ed7165b284
1,508
py
Python
catalog/bindings/wfs/transaction_response_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/wfs/transaction_response_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/wfs/transaction_response_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass, field from typing import Optional from bindings.wfs.action_results_type import ActionResultsType from bindings.wfs.transaction_summary_type import TransactionSummaryType __NAMESPACE__ = "http://www.opengis.net/wfs/2.0" @dataclass class TransactionResponseType: transaction_summa...
29
72
0.56366
d5d9150e4e8515f71c862ec54e9ddd782cce19e5
19,378
py
Python
homeassistant/components/sensor/fitbit.py
shanbs/home-assistant
818776d2b4f11e4f51992dc88bc0a6f9055833b2
[ "Apache-2.0" ]
2
2017-10-26T19:43:55.000Z
2017-12-30T23:29:00.000Z
homeassistant/components/sensor/fitbit.py
shanbs/home-assistant
818776d2b4f11e4f51992dc88bc0a6f9055833b2
[ "Apache-2.0" ]
3
2021-09-08T03:29:36.000Z
2022-03-12T00:59:48.000Z
homeassistant/components/sensor/fitbit.py
shanbs/home-assistant
818776d2b4f11e4f51992dc88bc0a6f9055833b2
[ "Apache-2.0" ]
1
2019-12-18T20:06:33.000Z
2019-12-18T20:06:33.000Z
""" Support for the Fitbit API. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.fitbit/ """ import os import logging import datetime import time import voluptuous as vol from homeassistant.core import callback from homeassistant.components.http i...
38.833667
79
0.602694
a176f9765da303d5f4504d2148f683bb096f3205
2,398
py
Python
src/vendor/worker/workerdb.py
radomirklacza/C-BAS
5005cf43f57302dc0f58b9d1b9cf7e4e3ab70e32
[ "BSD-3-Clause" ]
null
null
null
src/vendor/worker/workerdb.py
radomirklacza/C-BAS
5005cf43f57302dc0f58b9d1b9cf7e4e3ab70e32
[ "BSD-3-Clause" ]
null
null
null
src/vendor/worker/workerdb.py
radomirklacza/C-BAS
5005cf43f57302dc0f58b9d1b9cf7e4e3ab70e32
[ "BSD-3-Clause" ]
2
2017-08-07T15:24:05.000Z
2018-10-11T10:53:23.000Z
import os.path from datetime import datetime from sqlalchemy import Table, Column, MetaData, ForeignKey, PickleType, DateTime, String, Integer, Text, create_engine, select, and_, or_, not_, event from sqlalchemy.orm import scoped_session, sessionmaker, mapper from sqlalchemy.orm.exc import MultipleResultsFound, NoResu...
44.407407
159
0.773561
b548913d71986fbeae20270b8e3f18f3bd295147
5,608
py
Python
roundup/dist/command/build_scripts.py
jerrykan/herder
381f51198f21d232cc05d7c458638d78c0f25366
[ "MIT" ]
null
null
null
roundup/dist/command/build_scripts.py
jerrykan/herder
381f51198f21d232cc05d7c458638d78c0f25366
[ "MIT" ]
null
null
null
roundup/dist/command/build_scripts.py
jerrykan/herder
381f51198f21d232cc05d7c458638d78c0f25366
[ "MIT" ]
null
null
null
# # Copyright (C) 2009 Stefan Seefeld # All rights reserved. # For license terms see the file COPYING.txt. # from distutils.command.build_scripts import build_scripts as base import sys, os, string class build_scripts(base): """ Overload the build_scripts command and create the scripts from scratch, depend...
39.216783
128
0.562589
23ddc3397ce44c9ccc78ecfbba6033f5a844f92f
17,244
py
Python
discord/enums.py
alexyy802/discord.io
99d6ec71aeb121f6887ff266d36d9d1851abe4db
[ "MIT" ]
null
null
null
discord/enums.py
alexyy802/discord.io
99d6ec71aeb121f6887ff266d36d9d1851abe4db
[ "MIT" ]
null
null
null
discord/enums.py
alexyy802/discord.io
99d6ec71aeb121f6887ff266d36d9d1851abe4db
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2021-present VincentRPS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
28.222586
104
0.6201
a642159109b054ea2fc0ad08633229b778480794
4,813
py
Python
monster-classification/main.py
michalovsky/knowlegde-based-ai-mini-projects
8cfc00eb6b1c03d60bbd72e95a8ec1e50c294774
[ "MIT" ]
null
null
null
monster-classification/main.py
michalovsky/knowlegde-based-ai-mini-projects
8cfc00eb6b1c03d60bbd72e95a8ec1e50c294774
[ "MIT" ]
null
null
null
monster-classification/main.py
michalovsky/knowlegde-based-ai-mini-projects
8cfc00eb6b1c03d60bbd72e95a8ec1e50c294774
[ "MIT" ]
null
null
null
from MonsterClassificationAgent import MonsterClassificationAgent def test(): # This will run your code against the first four known test cases. test_agent = MonsterClassificationAgent() known_positive_1 = {'size': 'huge', 'color': 'black', 'covering': 'fur', 'foot-type': 'paw', 'leg-count': 2, ...
74.046154
117
0.536672
171e5d1eaa3e74753badb100c7403d322871124b
3,805
py
Python
nekos/nekos.py
ltzmax/maxcogs
6a3f8498eac22113aefca00b873c43910a1fad91
[ "MIT" ]
5
2022-01-31T16:16:19.000Z
2022-03-19T23:34:11.000Z
nekos/nekos.py
ltzmax/maxcogs
6a3f8498eac22113aefca00b873c43910a1fad91
[ "MIT" ]
4
2021-12-27T17:45:26.000Z
2022-01-27T13:12:04.000Z
nekos/nekos.py
ltzmax/maxcogs
6a3f8498eac22113aefca00b873c43910a1fad91
[ "MIT" ]
3
2022-01-05T11:53:27.000Z
2022-03-17T00:05:22.000Z
""" MIT License Copyright (c) 2022-present ltzmax Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
37.673267
108
0.662286
0be080e4f3e2be772025f829825e96302d5832e5
222
py
Python
run_train.py
DunZhang/GPT2SourceCode
d598dbae278c93f88469d45ec025da4cfa7d69ee
[ "MIT" ]
1
2021-06-25T02:21:27.000Z
2021-06-25T02:21:27.000Z
run_train.py
DunZhang/GPT2SourceCode
d598dbae278c93f88469d45ec025da4cfa7d69ee
[ "MIT" ]
null
null
null
run_train.py
DunZhang/GPT2SourceCode
d598dbae278c93f88469d45ec025da4cfa7d69ee
[ "MIT" ]
null
null
null
import logging from Train import train from utils import create_logger from GPT2ChatbotConf import GPT2ChatbotConf if __name__ == "__main__": conf = GPT2ChatbotConf() logger = create_logger(conf) train(conf)
20.181818
43
0.765766
95573dd65a08e9d3ff89de0f625c674d992e630e
5,723
py
Python
nova/openstack/common/notifier/api.py
linets/nova
936d0a49594e04e3ec08c7a2115784d072e61dee
[ "Apache-2.0" ]
null
null
null
nova/openstack/common/notifier/api.py
linets/nova
936d0a49594e04e3ec08c7a2115784d072e61dee
[ "Apache-2.0" ]
null
null
null
nova/openstack/common/notifier/api.py
linets/nova
936d0a49594e04e3ec08c7a2115784d072e61dee
[ "Apache-2.0" ]
1
2020-07-24T08:31:57.000Z
2020-07-24T08:31:57.000Z
# Copyright 2011 OpenStack LLC. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
31.445055
79
0.646514
437d11a4e8115660062bc604bd804b850895b603
15,341
py
Python
examples/gfxdrawing.py
zmarvel/py-sdl2
fa91007e6eebcbf5838f08cfe8d0b9d5cdf3ab83
[ "CC0-1.0" ]
null
null
null
examples/gfxdrawing.py
zmarvel/py-sdl2
fa91007e6eebcbf5838f08cfe8d0b9d5cdf3ab83
[ "CC0-1.0" ]
null
null
null
examples/gfxdrawing.py
zmarvel/py-sdl2
fa91007e6eebcbf5838f08cfe8d0b9d5cdf3ab83
[ "CC0-1.0" ]
null
null
null
"""2D drawing examples utilising the SDL2_gfx functions.""" import sys import ctypes from random import randint import sdl2 import sdl2.sdlgfx import sdl2.ext # Draws random lines using the passed rendering context def draw_lines(context, width, height): # Reset the visible area with a black color. context.c...
44.725948
81
0.581905
4ed1458ad29d009d1d612cf05f75116199668050
4,041
py
Python
dashboard/about/imprint/imprintView.py
DeFi-Analytics/DeFi-Analytics
25fa0588758313c6a207848080a5f2d994316a24
[ "MIT" ]
11
2021-02-26T21:27:56.000Z
2022-01-03T06:19:09.000Z
dashboard/about/imprint/imprintView.py
DeFi-Analytics/DeFi-Analytics
25fa0588758313c6a207848080a5f2d994316a24
[ "MIT" ]
216
2021-02-27T12:09:59.000Z
2022-03-28T19:44:37.000Z
dashboard/about/imprint/imprintView.py
DeFi-Analytics/DeFi-Analytics
25fa0588758313c6a207848080a5f2d994316a24
[ "MIT" ]
2
2021-05-05T21:32:18.000Z
2022-02-21T11:54:01.000Z
import dash_html_components as html import dash_bootstrap_components as dbc class imprintViewClass: def getImprintContent(self): content = [dbc.Card(dbc.CardBody([dbc.Row(dbc.Col(self.createImprintContent()))]))] return content @staticmethod def createImprintContent(): contentImp...
91.840909
184
0.590943
80a3c91569a53f9f11f00ad98a198d76cfe7297d
1,859
py
Python
Google Drive/Learning/Python/General Python Tutorial/Training/27_Generate_Random_Numbers.py
mobiusworkspace/mobiuswebsite
73eef1bd4fc07ea318aad431de09eac10fc4da3a
[ "CC-BY-3.0" ]
null
null
null
Google Drive/Learning/Python/General Python Tutorial/Training/27_Generate_Random_Numbers.py
mobiusworkspace/mobiuswebsite
73eef1bd4fc07ea318aad431de09eac10fc4da3a
[ "CC-BY-3.0" ]
null
null
null
Google Drive/Learning/Python/General Python Tutorial/Training/27_Generate_Random_Numbers.py
mobiusworkspace/mobiuswebsite
73eef1bd4fc07ea318aad431de09eac10fc4da3a
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Dec 19 15:42:16 2019 @author: OAdeoye """ import random # Gets floating value between the range value = random.uniform(1,10) print(value) # Gets integer value value = random.randint(0,2) print(value) greetings = ['Hello', 'Hi', 'Hey', 'Howdy', 'Hola'] value = random.choic...
26.183099
73
0.658419
0c401458957ea3467513c8558095c6ca8848b925
139
py
Python
build/lib/lrc_kit/__init__.py
reteps/python-lrc-search
1ff26a998f0c86afc07009eca3f6fd5059f81200
[ "MIT" ]
6
2021-01-11T22:01:46.000Z
2022-02-04T21:37:11.000Z
build/lib/lrc_kit/__init__.py
reteps/python-lrc-search
1ff26a998f0c86afc07009eca3f6fd5059f81200
[ "MIT" ]
5
2021-01-11T23:17:28.000Z
2022-01-25T20:14:18.000Z
build/lib/lrc_kit/__init__.py
reteps/python-lrc-search
1ff26a998f0c86afc07009eca3f6fd5059f81200
[ "MIT" ]
null
null
null
from lrc_kit.line import LyricLine, Word from lrc_kit.lyrics import Lyrics from lrc_kit.parser import parse_lyrics from .providers import *
34.75
40
0.841727
0c8413a40b992e43221feb5c66f8c057f64b6965
3,206
py
Python
tools/coda/coda/keystone.py
osuosl/osops
602d0fd4d6a29c5a7d186385a27391b39afffe86
[ "Apache-2.0" ]
2
2021-04-23T02:29:37.000Z
2021-12-06T06:01:31.000Z
tools/coda/coda/keystone.py
osuosl/osops
602d0fd4d6a29c5a7d186385a27391b39afffe86
[ "Apache-2.0" ]
null
null
null
tools/coda/coda/keystone.py
osuosl/osops
602d0fd4d6a29c5a7d186385a27391b39afffe86
[ "Apache-2.0" ]
1
2022-03-21T18:10:30.000Z
2022-03-21T18:10:30.000Z
# Copyright [2015] Hewlett-Packard Development Company, L.P. # # 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 applicab...
27.169492
74
0.603868
a0bb03659f3b632c64c2443226539c3adbaabe05
30,687
py
Python
src/kusto/azext_kusto/tests/latest/example_steps.py
ravithanneeru/azure-cli-extensions
e0de87f3563ae39525370e9912589aac33e7bded
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/kusto/azext_kusto/tests/latest/example_steps.py
ravithanneeru/azure-cli-extensions
e0de87f3563ae39525370e9912589aac33e7bded
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/kusto/azext_kusto/tests/latest/example_steps.py
ravithanneeru/azure-cli-extensions
e0de87f3563ae39525370e9912589aac33e7bded
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incor...
36.102353
167
0.611138
78c3383883a9d05f1f129fbf5e14820cd98861d5
10,224
py
Python
bcs-ui/backend/uniapps/application/all_views/views.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
null
null
null
bcs-ui/backend/uniapps/application/all_views/views.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
null
null
null
bcs-ui/backend/uniapps/application/all_views/views.py
laodiu/bk-bcs
2a956a42101ff6487ff521fb3ef429805bfa7e26
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
41.225806
118
0.61473
9a78de7731f035a7e8e46b3cab89fbdd80da0610
595
py
Python
Searching and Sorting/SearchingInMatrix.py
haaris272k/Problem-Solving-Collection
5c8d0c36aff0d525ffec880115f5e123d0f3092b
[ "MIT" ]
1
2022-02-28T06:49:25.000Z
2022-02-28T06:49:25.000Z
Searching and Sorting/SearchingInMatrix.py
haaris272k/Problem-Solving-Collection
5c8d0c36aff0d525ffec880115f5e123d0f3092b
[ "MIT" ]
null
null
null
Searching and Sorting/SearchingInMatrix.py
haaris272k/Problem-Solving-Collection
5c8d0c36aff0d525ffec880115f5e123d0f3092b
[ "MIT" ]
null
null
null
"""Given a matrix of size n x m, where every row and column is sorted in increasing order, and a number x. Find whether element x is present in the matrix or not. Example 1: Input: n = 3, m = 3, x = 62 matrix[][] = {{ 3, 30, 38}, {36, 43, 60}, {40, 51, 69}} Output: 0 Explanation: 62 is not...
22.884615
162
0.593277
8da812bc26eeeae6434651c9fad127a4a411873d
45,029
py
Python
ivy_tests/test_ivy/test_functional/test_core/test_general.py
saeedashrraf/ivy
ad57c359a11459d68965d9044a76ea30e175bf16
[ "Apache-2.0" ]
1
2022-03-10T00:43:53.000Z
2022-03-10T00:43:53.000Z
ivy_tests/test_ivy/test_functional/test_core/test_general.py
Ahmed-Yahia-cs/ivy
33f1ab8e63a99bebd583ab8903dc0a2c4a660861
[ "Apache-2.0" ]
null
null
null
ivy_tests/test_ivy/test_functional/test_core/test_general.py
Ahmed-Yahia-cs/ivy
33f1ab8e63a99bebd583ab8903dc0a2c4a660861
[ "Apache-2.0" ]
1
2022-03-17T00:22:36.000Z
2022-03-17T00:22:36.000Z
"""Collection of tests for unified general functions.""" # global import einops import pytest from hypothesis import given, strategies as st import numpy as np from numbers import Number from collections.abc import Sequence import torch.multiprocessing as multiprocessing # local import ivy import ivy.functional.backe...
31.777699
88
0.594395
e8bbe1df2c32c2e9eac436e9834f870941989f0a
7,029
py
Python
catkin_ws/devel/.private/baxter_maintenance_msgs/lib/python2.7/dist-packages/baxter_maintenance_msgs/msg/_UpdateSource.py
roop-pal/robotic-folding
a0e062ac6d23cd07fe10e3f45abc4ba50e533141
[ "RSA-MD" ]
null
null
null
catkin_ws/devel/.private/baxter_maintenance_msgs/lib/python2.7/dist-packages/baxter_maintenance_msgs/msg/_UpdateSource.py
roop-pal/robotic-folding
a0e062ac6d23cd07fe10e3f45abc4ba50e533141
[ "RSA-MD" ]
null
null
null
catkin_ws/devel/.private/baxter_maintenance_msgs/lib/python2.7/dist-packages/baxter_maintenance_msgs/msg/_UpdateSource.py
roop-pal/robotic-folding
a0e062ac6d23cd07fe10e3f45abc4ba50e533141
[ "RSA-MD" ]
null
null
null
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from baxter_maintenance_msgs/UpdateSource.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct class UpdateSource(genpy.Message): _md5sum = "88ad69e3ed4d619e167c9d83e6d9310f...
31.24
145
0.595675
563c42ddef27ac6b12297cc03634c6678a369cf4
825
py
Python
mysite/urls.py
alias-3/Twitter_sentilysis
1a751b6fe9f772075f439debac79cecc025a6f74
[ "MIT" ]
null
null
null
mysite/urls.py
alias-3/Twitter_sentilysis
1a751b6fe9f772075f439debac79cecc025a6f74
[ "MIT" ]
null
null
null
mysite/urls.py
alias-3/Twitter_sentilysis
1a751b6fe9f772075f439debac79cecc025a6f74
[ "MIT" ]
null
null
null
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
34.375
77
0.710303
cdb01f7fc91a07ea926fb3a0fb9e12128dee5342
1,725
py
Python
glhe/aggregation/no_agg.py
stianchris/GLHE
80c3eecca81ffd50d5077f87027c9441292452f5
[ "MIT" ]
2
2018-11-06T08:04:04.000Z
2020-10-09T14:52:36.000Z
glhe/aggregation/no_agg.py
stianchris/GLHE
80c3eecca81ffd50d5077f87027c9441292452f5
[ "MIT" ]
68
2018-03-27T01:43:22.000Z
2019-09-09T12:05:44.000Z
glhe/aggregation/no_agg.py
mitchute/GLHE
80c3eecca81ffd50d5077f87027c9441292452f5
[ "MIT" ]
4
2018-05-24T03:02:44.000Z
2021-08-16T13:54:09.000Z
import numpy as np from glhe.aggregation.agg_types import AggregationTypes from glhe.aggregation.base_agg import BaseAgg class NoAgg(BaseAgg): """ No aggregation. Just keep all of the values. """ Type = AggregationTypes.NO_AGG def __init__(self, inputs): BaseAgg.__init__(self, inputs) ...
29.237288
67
0.610435
ef4cd14cf03ae0cca9aa7d4166c71eb88bc4e272
491
py
Python
client/setup.py
Yinqingwen/Dva
3b8d1d1435f6a804a9c370006b931f9dc50a7462
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
1
2021-04-10T20:19:35.000Z
2021-04-10T20:19:35.000Z
client/setup.py
Yinqingwen/Dva
3b8d1d1435f6a804a9c370006b931f9dc50a7462
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
null
null
null
client/setup.py
Yinqingwen/Dva
3b8d1d1435f6a804a9c370006b931f9dc50a7462
[ "BSD-3-Clause", "Apache-2.0", "MIT" ]
3
2021-07-13T10:52:48.000Z
2022-03-11T03:31:45.000Z
#!/usr/bin/env python from setuptools import setup setup(name='dvaclient', version='1.0', description='Deep Video Analytics Client', author='Akshay Bhat', author_email='dvaclient@deepvideoanalytics.com', url='https://www.deepvideoanalytics.com/', packages=['dvaclient'], packa...
25.842105
54
0.613035
6c2ff00362b371338db21f75992e9a30c64f13ca
6,865
py
Python
Lib/test/test_keywordonlyarg.py
deadsnakes/python3.3
4faaf44cd5478410ac3b977351c1965fa054b5e9
[ "PSF-2.0" ]
652
2015-07-26T00:00:17.000Z
2022-02-24T18:30:04.000Z
Lib/test/test_keywordonlyarg.py
deadsnakes/python3.3
4faaf44cd5478410ac3b977351c1965fa054b5e9
[ "PSF-2.0" ]
8
2015-09-07T03:38:19.000Z
2021-05-23T03:18:51.000Z
check-python33-manual/samples/standard_library_337/Lib/test/test_keywordonlyarg.py
DaveKaretnyk/parsing-utils2
40085bbd399fa605f2f2a4708d385a64ffc907de
[ "MIT" ]
40
2015-07-24T19:45:08.000Z
2021-11-01T14:54:56.000Z
"""Unit tests for the keyword only argument specified in PEP 3102.""" __author__ = "Jiwon Seo" __email__ = "seojiwon at gmail dot com" import unittest from test.support import run_unittest def posonly_sum(pos_arg1, *arg, **kwarg): return pos_arg1 + sum(arg) + sum(kwarg.values()) def keywordonly_sum(*, k1=0, k2):...
37.71978
80
0.586016
c241167fbee7c3fc99202b0b2a10910f9f3c053e
22,431
py
Python
synapse/storage/registration.py
TheJJ/synapse
1032393dfb0c865fc540539dfe649e7b1a32037a
[ "Apache-2.0" ]
null
null
null
synapse/storage/registration.py
TheJJ/synapse
1032393dfb0c865fc540539dfe649e7b1a32037a
[ "Apache-2.0" ]
null
null
null
synapse/storage/registration.py
TheJJ/synapse
1032393dfb0c865fc540539dfe649e7b1a32037a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2014 - 2016 OpenMarket Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
34.245802
90
0.54817
9686fde074e33406699b9125506cd0cf38699024
426
py
Python
lib/wordcheck.py
amichaelparker/pass_gen
64c6fe8aa95a352df06c568fd5c78df2f1cd2ae2
[ "Unlicense" ]
null
null
null
lib/wordcheck.py
amichaelparker/pass_gen
64c6fe8aa95a352df06c568fd5c78df2f1cd2ae2
[ "Unlicense" ]
null
null
null
lib/wordcheck.py
amichaelparker/pass_gen
64c6fe8aa95a352df06c568fd5c78df2f1cd2ae2
[ "Unlicense" ]
null
null
null
''' Word testing functions ''' def caps_test(word): ''' Test words for capitalization ''' if word[0] == word[0].upper(): return True return False def word_length(word, maximum, minimum): ''' Check that word length falls into requested bounds ''' if minimum > maximum: ...
20.285714
63
0.584507
1f018d0f42ecc899b72f5f375ac0acacc708e744
634
py
Python
setup.py
Alquimista/scru
331e0213a0a3a3c53b8da5bfd541767412479bee
[ "MIT" ]
null
null
null
setup.py
Alquimista/scru
331e0213a0a3a3c53b8da5bfd541767412479bee
[ "MIT" ]
null
null
null
setup.py
Alquimista/scru
331e0213a0a3a3c53b8da5bfd541767412479bee
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- from distutils.core import setup setup( name='Scru', version='1.0.0', description='Screenshot Uploader.', author='Roberto Gea (Alquimista)', author_email='alquimistaotaku@gmail.com', license='MIT', packages=['scru'], install_requires=['pyth...
30.190476
71
0.591483
098f9f4830e142f23785a5721a2d78747e933f44
9,067
py
Python
tasks/generate.py
thedrow/pip
1927dfce6a5f2b1d0a1cfd5c09e29c7422c769cd
[ "MIT" ]
null
null
null
tasks/generate.py
thedrow/pip
1927dfce6a5f2b1d0a1cfd5c09e29c7422c769cd
[ "MIT" ]
null
null
null
tasks/generate.py
thedrow/pip
1927dfce6a5f2b1d0a1cfd5c09e29c7422c769cd
[ "MIT" ]
1
2018-09-20T21:00:47.000Z
2018-09-20T21:00:47.000Z
import base64 import io import os import shutil import tempfile import zipfile import invoke from . import paths @invoke.task def authors(): print("[generate.authors] Generating AUTHORS") # Get our list of authors print("[generate.authors] Collecting author names") r = invoke.run("git log --use-mai...
33.958801
79
0.621264
ce1e1f78d3f47deed2f7a218387c63a109304342
243
py
Python
default_config.py
Crescent-Labs/iqra-web
0577e4708b92548502564e2d7b4ae6878bf4c1bb
[ "MIT" ]
25
2016-09-08T16:13:20.000Z
2021-03-27T22:25:01.000Z
default_config.py
Crescent-Labs/iqra-web
0577e4708b92548502564e2d7b4ae6878bf4c1bb
[ "MIT" ]
13
2016-08-31T06:06:21.000Z
2022-02-12T05:27:11.000Z
default_config.py
Crescent-Labs/iqra-web
0577e4708b92548502564e2d7b4ae6878bf4c1bb
[ "MIT" ]
8
2016-11-21T18:00:17.000Z
2020-05-16T23:23:10.000Z
# NOTE: Copy this file and rename it to "config.py", then update its values. API_ROUTE = 'http://0.0.0.0:5000' # Update these values: API_KEY = "abcd" # Replace with api key SECRET_KEY = "abcd" # Used by SeaSurf for generating CSRF tokens
30.375
76
0.707819
51e7baa35daada7a5c4eccf2acbf4fe13e7a3620
28,491
py
Python
tests/conftest.py
broeder-j/aiida_fleur_plugin
cca54b194f4b217abb69aaa1fca0db52c6c830c3
[ "MIT" ]
1
2017-02-07T12:31:38.000Z
2017-02-07T12:31:38.000Z
tests/conftest.py
broeder-j/aiida_fleur_plugin
cca54b194f4b217abb69aaa1fca0db52c6c830c3
[ "MIT" ]
16
2017-04-03T11:42:50.000Z
2017-05-18T16:25:39.000Z
tests/conftest.py
broeder-j/aiida_fleur_plugin
cca54b194f4b217abb69aaa1fca0db52c6c830c3
[ "MIT" ]
null
null
null
# pylint: disable=redefined-outer-name """Initialise a text database and profile for pytest. This part of code is copied from aiida-quantumespresso""" import io import os from collections.abc import Mapping import pytest import sys from aiida.orm import Node, Code, Dict, RemoteData, CalcJobNode from pathlib import Pat...
36.573813
120
0.651504
094c0e444b8de586b353b60444d9b4981ea2b1d5
214
py
Python
erpnext_formbuilder/erpnext_formbuilder/doctype/form/test_form.py
erpnext-apps-store/erpnext_formbuilder
4227292ac53f70e57789d70c667da54800d7b27d
[ "MIT" ]
2
2020-06-23T23:47:19.000Z
2022-03-12T04:59:54.000Z
erpnext_formbuilder/erpnext_formbuilder/doctype/form/test_form.py
askmetoo/erpnext_formbuilder
4227292ac53f70e57789d70c667da54800d7b27d
[ "MIT" ]
null
null
null
erpnext_formbuilder/erpnext_formbuilder/doctype/form/test_form.py
askmetoo/erpnext_formbuilder
4227292ac53f70e57789d70c667da54800d7b27d
[ "MIT" ]
8
2020-04-25T18:11:59.000Z
2022-02-22T09:43:02.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020, Havenir Solutions and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestForm(unittest.TestCase): pass
19.454545
56
0.761682
057dcc3a5b32e14b9a418246a92bc788ddfb0d0d
3,826
py
Python
plaso/parsers/networkminer.py
nflexfo/plaso
5da7aa51c39b593773687fdf20a93ba35fc492b4
[ "Apache-2.0" ]
1
2020-12-04T10:26:34.000Z
2020-12-04T10:26:34.000Z
plaso/parsers/networkminer.py
nflexfo/plaso
5da7aa51c39b593773687fdf20a93ba35fc492b4
[ "Apache-2.0" ]
null
null
null
plaso/parsers/networkminer.py
nflexfo/plaso
5da7aa51c39b593773687fdf20a93ba35fc492b4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Parser for NetworkMiner .fileinfos files.""" from __future__ import unicode_literals from dfdatetime import time_elements as dfdatetime_time_elements from plaso.containers import events from plaso.containers import time_events from plaso.lib import definitions from plaso.parsers import dsv...
32.982759
79
0.706482
ef633e3e318be796a7e5db43cbce3a67d91bdc90
3,925
py
Python
zircon/system/utest/fidl-compiler/gen-goldens.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
zircon/system/utest/fidl-compiler/gen-goldens.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
zircon/system/utest/fidl-compiler/gen-goldens.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2019 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from collections import defaultdict import os import sys GOLDENS_TMPL = """ // Autogenerated: Do not modify! #include <map> #include <...
32.438017
78
0.625223
dcd64922dd30333803d5bd6d924c10a47add6635
2,516
py
Python
z3c/recipe/usercrontab/__init__.py
PythonUnited/z3c.recipe.usercrontab
4ac64b3235365c9da88d56d07bccd543fdf2722e
[ "ZPL-2.1" ]
null
null
null
z3c/recipe/usercrontab/__init__.py
PythonUnited/z3c.recipe.usercrontab
4ac64b3235365c9da88d56d07bccd543fdf2722e
[ "ZPL-2.1" ]
null
null
null
z3c/recipe/usercrontab/__init__.py
PythonUnited/z3c.recipe.usercrontab
4ac64b3235365c9da88d56d07bccd543fdf2722e
[ "ZPL-2.1" ]
null
null
null
# Copyright (c) 2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRANTIES ARE DISC...
37.552239
77
0.674881
c25cfe2d104d95daa5082da40c9f45e19df6535f
4,538
py
Python
model/utils/bbox_tools.py
BBuf/simple-faster-rcnn-explain
cff53d47cf0b99e1e00475400d135248bd8e595a
[ "MIT" ]
18
2020-05-03T01:21:58.000Z
2022-03-28T05:16:32.000Z
model/utils/bbox_tools.py
zengjz/simple-faster-rcnn-explain
cff53d47cf0b99e1e00475400d135248bd8e595a
[ "MIT" ]
1
2021-12-10T13:16:39.000Z
2021-12-10T13:16:39.000Z
model/utils/bbox_tools.py
zengjz/simple-faster-rcnn-explain
cff53d47cf0b99e1e00475400d135248bd8e595a
[ "MIT" ]
7
2020-05-06T09:31:33.000Z
2021-11-01T12:16:55.000Z
import numpy as np import numpy as xp import six from six import __init__ # 已知源bbox和位置偏差dx,dy,dh,dw,求目标框G def loc2bbox(src_bbox, loc): # src_bbox:(R,4),R为bbox个数,4为左上角和右下角四个坐标 if src_bbox.shape[0] == 0: return xp.zeros((0, 4), dtype=loc.dtype) src_bbox = src_bbox.astype(src_bbox.dtype, copy=F...
32.647482
79
0.610401
5763c2053e3504631ed27e927544f205cdfaf7b2
563
py
Python
mundo3-EstruturasCompostas/104-validandaEntradaDeDados.py
jonasht/CursoEmVideo-CursoDePython3
a1bbf1fe4226b1828213742ee5a440278d903fd1
[ "MIT" ]
null
null
null
mundo3-EstruturasCompostas/104-validandaEntradaDeDados.py
jonasht/CursoEmVideo-CursoDePython3
a1bbf1fe4226b1828213742ee5a440278d903fd1
[ "MIT" ]
null
null
null
mundo3-EstruturasCompostas/104-validandaEntradaDeDados.py
jonasht/CursoEmVideo-CursoDePython3
a1bbf1fe4226b1828213742ee5a440278d903fd1
[ "MIT" ]
null
null
null
verde = '\033[32m' vermelho = '\033[31m' amarelo = '\033[33m' azul = '\033[34m' fim = '\033[m' def leiaInt(mensagem): while True: l() n = input(amarelo + mensagem + fim) if n.isnumeric(): ninteiro = int(n) break else: print(vermelho, 'erro, valor ...
25.590909
66
0.550622
964e7aedc5d6d1e002b543dd427940cd544cbc25
24,832
py
Python
gpiozero/devices.py
AnnoNuem/gpiozero
c55d64abd964ed3dd04dde933039a9de43369fac
[ "BSD-3-Clause" ]
743
2019-07-31T02:57:08.000Z
2022-03-31T08:48:30.000Z
gpiozero/devices.py
AnnoNuem/gpiozero
c55d64abd964ed3dd04dde933039a9de43369fac
[ "BSD-3-Clause" ]
259
2019-07-29T14:26:40.000Z
2022-03-27T00:17:56.000Z
gpiozero/devices.py
AnnoNuem/gpiozero
c55d64abd964ed3dd04dde933039a9de43369fac
[ "BSD-3-Clause" ]
127
2019-08-03T19:30:18.000Z
2022-02-24T14:33:50.000Z
# vim: set fileencoding=utf-8: # # GPIO Zero: a library for controlling the Raspberry Pi's GPIO pins # # Copyright (c) 2015-2021 Dave Jones <dave@waveform.org.uk> # Copyright (c) 2015-2019 Ben Nuttall <ben@bennuttall.com> # Copyright (c) 2016 Andrew Scheller <github@loowis.durge.org> # # SPDX-License-Identifier: BSD-3-...
39.604466
88
0.603697
b0599e8b469ea54a23b0f3dc004f611564d7f479
2,587
py
Python
a2ml/api/auger/impl/cloud/endpoint.py
augerai/a2ml
9d9ce0ac1b51cc81f1cb5ae331c4523131bc6a86
[ "Apache-2.0" ]
30
2019-07-01T13:23:27.000Z
2022-03-16T21:19:33.000Z
a2ml/api/auger/impl/cloud/endpoint.py
augerai/a2ml
9d9ce0ac1b51cc81f1cb5ae331c4523131bc6a86
[ "Apache-2.0" ]
234
2019-07-04T13:56:15.000Z
2021-11-04T10:12:55.000Z
a2ml/api/auger/impl/cloud/endpoint.py
augerai/a2ml
9d9ce0ac1b51cc81f1cb5ae331c4523131bc6a86
[ "Apache-2.0" ]
13
2019-07-04T14:00:34.000Z
2020-07-13T11:18:44.000Z
from .base import AugerBaseApi from ..exceptions import AugerException from .review_alert_item import AugerReviewAlertItemApi from .review_alert import AugerReviewAlertApi from .cluster_task import AugerClusterTaskApi class AugerEndpointApi(AugerBaseApi): """Auger Endpoint API.""" def __init__(self, ctx, endp...
44.603448
114
0.63162
81003cc2b9becec46691667317615c5a7f7d2cda
2,105
py
Python
test_status_endpoints/test_status_tweet.py
RSMuthu/Twitter_API-Pytest
b272d8ead3d51bbd0d5a4720f67905dccee27d7c
[ "MIT" ]
null
null
null
test_status_endpoints/test_status_tweet.py
RSMuthu/Twitter_API-Pytest
b272d8ead3d51bbd0d5a4720f67905dccee27d7c
[ "MIT" ]
null
null
null
test_status_endpoints/test_status_tweet.py
RSMuthu/Twitter_API-Pytest
b272d8ead3d51bbd0d5a4720f67905dccee27d7c
[ "MIT" ]
null
null
null
import pytest from conftest import twitter_session, BASE_URL from utils import get_home_tweets # status list to tweet status_list = {"We welcome you to MSD family :)", "Hello World !!"} @pytest.mark.run(order=1) ## ording test cases -- make tweet first as first test case @pytest.mark.parametrize("status_text", status...
46.777778
110
0.709264
9dd053f2ff73215943f6f25490c3658b401c3c57
5,104
py
Python
soapfish/soap.py
soapteam/soapfish
3f9b531d5cf14a063edbda16a62ace23fabe6d06
[ "BSD-3-Clause" ]
20
2016-07-20T01:12:40.000Z
2021-12-16T02:49:49.000Z
soapfish/soap.py
FelixSchwarz/soapfish
d98a1d7e8b92897620810e75de97de598140fafb
[ "BSD-3-Clause" ]
42
2015-01-17T18:54:50.000Z
2016-06-28T07:06:18.000Z
soapfish/soap.py
soapteam/soapfish
3f9b531d5cf14a063edbda16a62ace23fabe6d06
[ "BSD-3-Clause" ]
13
2016-09-02T09:37:42.000Z
2021-11-29T13:11:33.000Z
"""SOAP protocol implementation, dispatchers and client stub.""" import logging import string import httpx from . import core, namespaces as ns, soap11, soap12, wsa from .utils import uncapitalize SOAP_HTTP_Transport = ns.wsdl_soap_http logger = logging.getLogger('soapfish') class SOAPVersion: SOAP11 = soap1...
36.198582
111
0.666732
feb754e95f28c5b1e7d9157179f2d2f45d18d443
13,489
py
Python
venv/Lib/site-packages/pandas/compat/numpy/function.py
Jos33y/student-performance-knn
4e965434f52dd6a1380904aa257df1edfaebb3c4
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/compat/numpy/function.py
Jos33y/student-performance-knn
4e965434f52dd6a1380904aa257df1edfaebb3c4
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/compat/numpy/function.py
Jos33y/student-performance-knn
4e965434f52dd6a1380904aa257df1edfaebb3c4
[ "MIT" ]
null
null
null
""" For compatibility with numpy libraries, pandas functions or methods have to accept '*args' and '**kwargs' parameters to accommodate numpy arguments that are not actually used or respected in the pandas implementation. To ensure that users do not abuse these parameters, validation is performed in 'validators...
33.224138
89
0.679072
f7b6fd9672253f01677a2eba90ab28cee96578b7
93,901
py
Python
test/steps/v2_steps.py
SubstructureDek/py-algorand-sdk
ddbbe7efc9f23e5d67dbf16bcb6465bfec234f6a
[ "MIT" ]
null
null
null
test/steps/v2_steps.py
SubstructureDek/py-algorand-sdk
ddbbe7efc9f23e5d67dbf16bcb6465bfec234f6a
[ "MIT" ]
null
null
null
test/steps/v2_steps.py
SubstructureDek/py-algorand-sdk
ddbbe7efc9f23e5d67dbf16bcb6465bfec234f6a
[ "MIT" ]
null
null
null
import base64 import json import os import urllib import unittest from datetime import datetime from urllib.request import Request, urlopen from algosdk.abi.contract import NetworkInfo import parse from behave import ( given, when, then, register_type, step, ) # pylint: disable=no-name-in-module ...
33.239292
650
0.676191
ddc85b0aa2b358aee2abb832ba0fe1a53a9fd1f9
1,159
py
Python
tests/utils.py
AlessandroVol23/city-scrapers
b1ac52357fe5974a6f12cada15f3833ffbe94748
[ "MIT" ]
1
2020-03-28T22:50:50.000Z
2020-03-28T22:50:50.000Z
tests/utils.py
AlessandroVol23/city-scrapers
b1ac52357fe5974a6f12cada15f3833ffbe94748
[ "MIT" ]
1
2019-10-05T04:05:48.000Z
2019-10-05T04:05:48.000Z
tests/utils.py
firejava/city-scrapers
749f40bf1bd933726768d7d67e5211aef13af547
[ "MIT" ]
1
2020-10-01T15:29:24.000Z
2020-10-01T15:29:24.000Z
import os from scrapy.http import HtmlResponse, Request, TextResponse def file_response(file_name, url=None): """ Create a Scrapy fake HTTP response from a HTML file @param file_name: The relative filename from the tests directory, but absolute paths are also accepted. @param ur...
30.5
73
0.672131
fbed19dd14123ff21f4d49d3653bdbf666d83f81
250
py
Python
astroML/linear_model/__init__.py
DinoBektesevic/astroML
b4e699bf45a65e233b40d60323c05eafa1d4955e
[ "BSD-2-Clause" ]
1
2020-10-28T14:45:48.000Z
2020-10-28T14:45:48.000Z
astroML/linear_model/__init__.py
allenwangg/astroML
b4e699bf45a65e233b40d60323c05eafa1d4955e
[ "BSD-2-Clause" ]
1
2018-05-18T19:32:15.000Z
2018-05-18T19:32:15.000Z
astroML/linear_model/__init__.py
DinoBektesevic/astroML
b4e699bf45a65e233b40d60323c05eafa1d4955e
[ "BSD-2-Clause" ]
null
null
null
import warnings from .linear_regression import LinearRegression, PolynomialRegression, BasisFunctionRegression from .linear_regression_errors import LinearRegressionwithErrors from .kernel_regression import NadarayaWatson from .TLS import TLS_logL
31.25
94
0.888
2c812a9e788ec946e170261d327a103b297dcb7a
7,565
py
Python
src_rnn_rl/main.py
icdm2021submission/Continual-Neural-Network-Model-Retraining
7a84f211c7750b862fa5e31293d22d4d0dabed23
[ "MIT" ]
null
null
null
src_rnn_rl/main.py
icdm2021submission/Continual-Neural-Network-Model-Retraining
7a84f211c7750b862fa5e31293d22d4d0dabed23
[ "MIT" ]
null
null
null
src_rnn_rl/main.py
icdm2021submission/Continual-Neural-Network-Model-Retraining
7a84f211c7750b862fa5e31293d22d4d0dabed23
[ "MIT" ]
null
null
null
# rm *.txt & ./bash.sh # experiments/base_model/params.json # cd /Users/xiaofengzhu/Documents/continual_learning/src # tensorboard --logdir import argparse import logging import os import time import glob import tensorflow as tf from model.utils import Params from model.utils import set_logger from model.utils import c...
54.818841
190
0.689623
c9b763f3631c164af1a523bc44a3bce63bbba5b1
17,778
py
Python
src/dataset/mscoco.py
jielyu/ml-models
162f4dae2e4e66642c9cf995827c90cf0be0311e
[ "MIT" ]
1
2022-03-27T06:58:38.000Z
2022-03-27T06:58:38.000Z
src/dataset/mscoco.py
jielyu/ml-models
162f4dae2e4e66642c9cf995827c90cf0be0311e
[ "MIT" ]
null
null
null
src/dataset/mscoco.py
jielyu/ml-models
162f4dae2e4e66642c9cf995827c90cf0be0311e
[ "MIT" ]
null
null
null
# encoding: utf-8 import os import io import itertools import json import tempfile import time import cv2 import numpy as np import torch from torch.utils.data.dataloader import default_collate import torchvision from pycocotools.coco import COCO from pycocotools.cocoeval import COCOeval from loguru import logger impo...
32.090253
98
0.533018
750e236d873f31ec54e51ab034bc9b9ea2d8103b
17,916
py
Python
src/lib/parameters/px4params/srcparser.py
qperrotElistair/Firmware
60d613ea049bc04cf37487f0226e3e754cd20572
[ "BSD-3-Clause" ]
2
2020-09-22T00:07:16.000Z
2020-09-25T18:51:27.000Z
src/lib/parameters/px4params/srcparser.py
qperrotElistair/Firmware
60d613ea049bc04cf37487f0226e3e754cd20572
[ "BSD-3-Clause" ]
1
2018-09-19T16:59:35.000Z
2018-09-28T11:45:37.000Z
src/lib/parameters/px4params/srcparser.py
qperrotElistair/Firmware
60d613ea049bc04cf37487f0226e3e754cd20572
[ "BSD-3-Clause" ]
2
2018-08-24T15:43:01.000Z
2018-08-24T15:59:13.000Z
import sys import re import math global default_var default_var = {} class ParameterGroup(object): """ Single parameter group """ def __init__(self, name): self.name = name self.no_code_generation = False #for injected parameters self.params = [] def AddParameter(self, par...
41.091743
156
0.473934
ef71936d2fe24f3bd2e45de20501988562e07721
63,126
py
Python
lib/pyz80.py
simonowen/vscode-pyz80
762eaeb2f83dc6646d14fba2cfdf1a1f4d0dd6c5
[ "MIT" ]
1
2017-12-18T23:47:35.000Z
2017-12-18T23:47:35.000Z
lib/pyz80.py
simonowen/vscode-pyz80
762eaeb2f83dc6646d14fba2cfdf1a1f4d0dd6c5
[ "MIT" ]
2
2021-11-10T20:38:11.000Z
2022-01-06T23:30:39.000Z
lib/pyz80.py
simonowen/vscode-pyz80
762eaeb2f83dc6646d14fba2cfdf1a1f4d0dd6c5
[ "MIT" ]
1
2021-11-09T15:02:48.000Z
2021-11-09T15:02:48.000Z
#!/usr/bin/env python from __future__ import print_function from __future__ import division # TODO: define and assemble macro blocks # added FILESIZE("filename") # defs doesn't cause bytes to be written to output unless real data follows def printusage(): print("pyz80 by Andrew Collier, modified by Simon Owen") ...
31.484289
182
0.55527
288e84154549b57311ee51af8e7397e326b9aff0
13,448
py
Python
train.py
wwydmanski/ViT-pytorch
bdf59d11b97f3343785b1b13c547f21675a4c5d6
[ "MIT" ]
null
null
null
train.py
wwydmanski/ViT-pytorch
bdf59d11b97f3343785b1b13c547f21675a4c5d6
[ "MIT" ]
null
null
null
train.py
wwydmanski/ViT-pytorch
bdf59d11b97f3343785b1b13c547f21675a4c5d6
[ "MIT" ]
null
null
null
# coding=utf-8 from __future__ import absolute_import, division, print_function import logging import argparse import os import random import numpy as np from datetime import timedelta import torch import torch.distributed as dist from tqdm import tqdm from torch.utils.tensorboard import SummaryWriter from apex imp...
40.87538
113
0.601428
b77ca9ab6e85d7c9a66e7a01299bd35f88c76905
3,649
py
Python
test/09-text-sort-test.py
cloudant/mango
3da3110a6ee169c4d6991c00b8f8d59d20b7fe1f
[ "Apache-2.0" ]
177
2015-01-12T08:59:11.000Z
2021-12-08T08:41:08.000Z
test/09-text-sort-test.py
cloudant/mango
3da3110a6ee169c4d6991c00b8f8d59d20b7fe1f
[ "Apache-2.0" ]
31
2015-01-09T13:36:39.000Z
2016-04-07T18:30:13.000Z
test/09-text-sort-test.py
cloudant/mango
3da3110a6ee169c4d6991c00b8f8d59d20b7fe1f
[ "Apache-2.0" ]
6
2015-01-09T17:28:55.000Z
2019-01-11T03:47:39.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the ...
36.128713
79
0.539326
13f350addedcfa64e971397a2017af2c5bb4d227
4,821
py
Python
SoftLayer/managers/metadata.py
dvzrv/softlayer-python
9a5f6c6981bcc370084537b4d1769383499ce90d
[ "MIT" ]
126
2015-01-05T05:09:22.000Z
2021-07-02T00:16:35.000Z
SoftLayer/managers/metadata.py
dvzrv/softlayer-python
9a5f6c6981bcc370084537b4d1769383499ce90d
[ "MIT" ]
969
2015-01-05T15:55:31.000Z
2022-03-31T19:55:20.000Z
SoftLayer/managers/metadata.py
dvzrv/softlayer-python
9a5f6c6981bcc370084537b4d1769383499ce90d
[ "MIT" ]
176
2015-01-22T11:23:40.000Z
2022-02-11T13:16:58.000Z
""" SoftLayer.metadata ~~~~~~~~~~~~~~~~~~ Metadata Manager/helpers :license: MIT, see LICENSE for more details. """ from SoftLayer.API import BaseClient from SoftLayer import consts from SoftLayer import exceptions from SoftLayer import transports METADATA_MAPPING = { 'backend_mac': {'call': 'get...
32.574324
77
0.606513
d94512b982a41644d86012c081d85771f60b080e
2,448
py
Python
bin/check-assembly-accession.py
simone-pignotti/bactopia
19267101de927589ed222d5655fef171c7e68a4f
[ "MIT" ]
null
null
null
bin/check-assembly-accession.py
simone-pignotti/bactopia
19267101de927589ed222d5655fef171c7e68a4f
[ "MIT" ]
null
null
null
bin/check-assembly-accession.py
simone-pignotti/bactopia
19267101de927589ed222d5655fef171c7e68a4f
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 """ """ PROGRAM = "check-assembly-accession" VERSION = "1.5.3" def check_assembly_version(accession): from Bio import Entrez import time import json Entrez.email = "robert.petit@emory.edu" Entrez.tool = "BactopiaSelectReferences" handle = Entrez.esearch(db="assembly", t...
31.384615
102
0.609069
9feab2f73cda8cfb2f0c9cf6e291a8cd8a6c479a
5,655
py
Python
tools/port_controller.py
iPlantCollaborativeOpenSource/iPlant-Atmosphere
d67b953561e813dd30ffa52c8440af7cc2d990cf
[ "Unlicense" ]
1
2017-10-05T08:03:37.000Z
2017-10-05T08:03:37.000Z
tools/port_controller.py
iPlantCollaborativeOpenSource/iPlant-Atmosphere
d67b953561e813dd30ffa52c8440af7cc2d990cf
[ "Unlicense" ]
null
null
null
tools/port_controller.py
iPlantCollaborativeOpenSource/iPlant-Atmosphere
d67b953561e813dd30ffa52c8440af7cc2d990cf
[ "Unlicense" ]
null
null
null
#!/usr/local/bin/python import sys import os from euca2ools import Euca2ool, AddressValidationError, ProtocolValidationError, Util import subprocess # python ./port_controller.py [esteve] [22,80,443,5900,5901,5902,5903,5904,5905,5906,5907,5908,5909,5910,1247] [1247] class PortControllerException(Exception): def ...
37.7
258
0.618568
26e8412ba9314fb8db387f0f3499115e6e4bcc1a
3,990
py
Python
Source/chrome/tools/perf/metrics/speedindex_unittest.py
yury-s/v8-inspector
0ab4779e0909d387f243f41ca2621237cdb0c7fe
[ "BSD-3-Clause" ]
20
2015-08-26T06:46:00.000Z
2019-02-27T09:05:58.000Z
Source/chrome/tools/perf/metrics/speedindex_unittest.py
yury-s/v8-inspector
0ab4779e0909d387f243f41ca2621237cdb0c7fe
[ "BSD-3-Clause" ]
null
null
null
Source/chrome/tools/perf/metrics/speedindex_unittest.py
yury-s/v8-inspector
0ab4779e0909d387f243f41ca2621237cdb0c7fe
[ "BSD-3-Clause" ]
2
2015-08-26T05:49:35.000Z
2020-02-03T20:22:43.000Z
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # These tests access private methods in the speedindex module. # pylint: disable=W0212 import unittest from telemetry.image_processing import histogram fro...
32.975207
74
0.660652
7c443b73f0c5a083f4ac3d4422fd9110af79bee7
5,074
py
Python
docs/conf.py
davidr/python-timemarker
16fc4d4f9d6b534b94005169c977ed143f4f9dc5
[ "MIT" ]
null
null
null
docs/conf.py
davidr/python-timemarker
16fc4d4f9d6b534b94005169c977ed143f4f9dc5
[ "MIT" ]
1
2017-10-31T03:54:26.000Z
2017-11-01T03:01:43.000Z
docs/conf.py
davidr/python-timemarker
16fc4d4f9d6b534b94005169c977ed143f4f9dc5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # timemarker documentation build configuration file, created by # sphinx-quickstart on Mon Oct 30 22:24:39 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this #...
30.383234
79
0.683682
7b99ee94937f6463bdacd67dd7fbe730aa1fbea6
2,608
py
Python
tests/test_get_deposit_history.py
xiaohuid/huobi_Python
ebc84b2fc560f77fd77457f36ff91906c43646e3
[ "Apache-2.0" ]
1
2020-12-28T07:04:45.000Z
2020-12-28T07:04:45.000Z
tests/test_get_deposit_history.py
xiaohuid/huobi_Python
ebc84b2fc560f77fd77457f36ff91906c43646e3
[ "Apache-2.0" ]
null
null
null
tests/test_get_deposit_history.py
xiaohuid/huobi_Python
ebc84b2fc560f77fd77457f36ff91906c43646e3
[ "Apache-2.0" ]
1
2022-03-27T10:36:04.000Z
2022-03-27T10:36:04.000Z
import unittest from huobi.impl.utils import * from huobi.model import * from huobi.impl.restapirequestimpl import RestApiRequestImpl from huobi.impl.restapirequestimpl import account_info_map data = ''' { "status": "ok", "data": [ { "id": 1171, "type": "deposit", "currency"...
37.257143
113
0.653374
2c2173be8f54deb6fa2d720c48e1ce49d3876415
3,271
py
Python
mqttclient/__init__.py
Lucaszw/mqttclient-python
b8886a5189aa661a4247810af2e67f49acf09e5f
[ "BSD-2-Clause" ]
null
null
null
mqttclient/__init__.py
Lucaszw/mqttclient-python
b8886a5189aa661a4247810af2e67f49acf09e5f
[ "BSD-2-Clause" ]
null
null
null
mqttclient/__init__.py
Lucaszw/mqttclient-python
b8886a5189aa661a4247810af2e67f49acf09e5f
[ "BSD-2-Clause" ]
null
null
null
"""MQTT Client for Python""" __version__ = '0.0.2' import asyncio import inspect import json import os import time import random import re import urllib import paho.mqtt.client as mqtt from wheezy.routing import PathRouter from .mqtt_messages import MqttMessages _underscorer1 = re.compile(r'(.)([A-Z][a-z]+)') _und...
28.198276
89
0.610822
dc3a87c1618a508b1c4d785858e856af06b3614a
1,736
py
Python
paddlespeech/s2t/exps/u2/bin/train.py
jerryuhoo/PaddleSpeech
1eec7b5e042da294c7524af92f0fae4c32a71aa3
[ "Apache-2.0" ]
1,379
2021-11-10T02:42:21.000Z
2022-03-31T13:34:25.000Z
paddlespeech/s2t/exps/u2/bin/train.py
jerryuhoo/PaddleSpeech
1eec7b5e042da294c7524af92f0fae4c32a71aa3
[ "Apache-2.0" ]
268
2021-11-10T14:07:34.000Z
2022-03-31T02:25:20.000Z
paddlespeech/s2t/exps/u2/bin/train.py
jerryuhoo/PaddleSpeech
1eec7b5e042da294c7524af92f0fae4c32a71aa3
[ "Apache-2.0" ]
296
2021-11-15T02:37:11.000Z
2022-03-31T12:14:46.000Z
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
29.931034
74
0.722926
750429a9e5d392a455adc11a978eaa245bf0e5c5
1,854
py
Python
samples/test/util.py
jackwhelpton/pipelines
48216bc44c3d242cbba6a1f5e91493c6bc631536
[ "Apache-2.0" ]
null
null
null
samples/test/util.py
jackwhelpton/pipelines
48216bc44c3d242cbba6a1f5e91493c6bc631536
[ "Apache-2.0" ]
null
null
null
samples/test/util.py
jackwhelpton/pipelines
48216bc44c3d242cbba6a1f5e91493c6bc631536
[ "Apache-2.0" ]
null
null
null
import kfp MINUTE = 60 def default_verify_func(run_id, run): assert run.status == 'Succeeded' def run_pipeline_func( pipeline_func, verify_func=default_verify_func, mode=kfp.dsl.PipelineExecutionMode.V2_COMPATIBLE ): """Run a pipeline function and wait for its result. :param pipeline_func:...
33.107143
95
0.661812
03ccdeeff00f4c04127d451b10f4d6a7ca8a368f
3,363
py
Python
aliyun-python-sdk-mts/aliyunsdkmts/request/v20140618/SubmitMediaCensorJobRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-mts/aliyunsdkmts/request/v20140618/SubmitMediaCensorJobRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
1
2020-05-31T14:51:47.000Z
2020-05-31T14:51:47.000Z
aliyun-python-sdk-mts/aliyunsdkmts/request/v20140618/SubmitMediaCensorJobRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
# 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...
32.650485
74
0.766875
ca32fbb656a1e046fa391e51f8d55e92df3dabcc
310
py
Python
app.py
cryptus-neoxys/news-api
9010c776256f07279a104fed7499b112c071eeb5
[ "MIT" ]
null
null
null
app.py
cryptus-neoxys/news-api
9010c776256f07279a104fed7499b112c071eeb5
[ "MIT" ]
null
null
null
app.py
cryptus-neoxys/news-api
9010c776256f07279a104fed7499b112c071eeb5
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, jsonify, redirect app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') # @app.route("/bitcoin/") # def bitcoin(): # return render_template("./data/bitcoin.json") if __name__ == '__main__': app.run(debug=True)
22.142857
68
0.687097
266f632fa7716f9a872dc381aa965c3cbb462f5b
3,211
py
Python
crops/command_line/crops-renumber.py
jjavier-bm/crops
658a98f9c168cc27b3f967e7a60a0df896ef5ac6
[ "BSD-3-Clause" ]
null
null
null
crops/command_line/crops-renumber.py
jjavier-bm/crops
658a98f9c168cc27b3f967e7a60a0df896ef5ac6
[ "BSD-3-Clause" ]
5
2020-07-17T08:45:22.000Z
2022-03-11T13:39:26.000Z
crops/command_line/crops-renumber.py
jjavier-bm/crops
658a98f9c168cc27b3f967e7a60a0df896ef5ac6
[ "BSD-3-Clause" ]
1
2020-07-07T15:42:07.000Z
2020-07-07T15:42:07.000Z
"""========== This script will renumber a structure file in agreement with the residue positions in the sequence file corresponding to that structure. Non-polymer elements are numbered starting right after the final (TER) residue. IMPORTANT: If the input sequence and the input structure files are not from the same sour...
35.677778
146
0.690128
932e328a5dcade53e008ead756f0f221238049eb
1,044
py
Python
hackerrank/whatFlavors.py
stephanosterburg/coding_challenges
601cf1360a7fdf068487106ba995955407365983
[ "MIT" ]
null
null
null
hackerrank/whatFlavors.py
stephanosterburg/coding_challenges
601cf1360a7fdf068487106ba995955407365983
[ "MIT" ]
null
null
null
hackerrank/whatFlavors.py
stephanosterburg/coding_challenges
601cf1360a7fdf068487106ba995955407365983
[ "MIT" ]
null
null
null
import os # Sample Input # 2 # 4 # 5 # 1 4 5 3 2 # 4 # 4 # 2 2 4 3 # # Sample Output # 1 4 # 1 2 # # They pool together money = $4; there are five flavors avaiilable. # The flavors 1 and 4 have a total cost of 1 + 3 = 4 # # Print two space-separated integers denoting the respective indices for the two # distinct flav...
23.727273
84
0.603448
e0e9e77359c916193a931d5b0a58d9f3a95fb631
147
py
Python
Code_Challenges/print_array_pairs.py
fuse999/Python_Sandbox
83d9c33a9c9e6e5cff40bbc6be525c9e604e9e41
[ "MIT" ]
null
null
null
Code_Challenges/print_array_pairs.py
fuse999/Python_Sandbox
83d9c33a9c9e6e5cff40bbc6be525c9e604e9e41
[ "MIT" ]
null
null
null
Code_Challenges/print_array_pairs.py
fuse999/Python_Sandbox
83d9c33a9c9e6e5cff40bbc6be525c9e604e9e41
[ "MIT" ]
null
null
null
array = ['Joe', 2, 'Ted', 4.98, 14, 'Sam', 'void *', '42', 'float', 'pointers', 5006] # For each item in array for x in array: # print(x)
24.5
85
0.530612
c34d7b07e01b10fe851b321449913256d6930ac2
145
py
Python
server/ums/tests/test_load.py
dealenx/hpccloud-kemsu
42fc44b06385c6eb25a979477dcea53fe66cfbfa
[ "Apache-2.0" ]
3
2020-11-06T10:59:51.000Z
2022-01-23T18:10:27.000Z
server/ums/tests/test_load.py
dealenx/hpccloud-kemsu
42fc44b06385c6eb25a979477dcea53fe66cfbfa
[ "Apache-2.0" ]
11
2020-04-19T12:05:19.000Z
2022-03-02T11:35:32.000Z
server/ums/tests/test_load.py
dealenx/hpccloud-kemsu
42fc44b06385c6eb25a979477dcea53fe66cfbfa
[ "Apache-2.0" ]
null
null
null
import pytest from girder.plugin import loadedPlugins @pytest.mark.plugin('ums') def test_import(server): assert 'ums' in loadedPlugins()
16.111111
39
0.758621
09db831cd5d590795a0587b4143063761cfd46b4
6,269
py
Python
src/gemini3d/utils.py
qwsae10/pygemini
adc6b2401ac9fc8b7cb1fc8870322f730a3383a3
[ "Apache-2.0" ]
null
null
null
src/gemini3d/utils.py
qwsae10/pygemini
adc6b2401ac9fc8b7cb1fc8870322f730a3383a3
[ "Apache-2.0" ]
null
null
null
src/gemini3d/utils.py
qwsae10/pygemini
adc6b2401ac9fc8b7cb1fc8870322f730a3383a3
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import subprocess import os import shutil from pathlib import Path from datetime import datetime, timedelta import typing as T import logging import importlib import imp import xarray import numpy as np Pathlike = T.Union[str, Path] __all__ = ["to_datetime", "git_meta", "datetime2...
27.138528
109
0.598182
736ae91a29017e07c90acad235bf6c70e93ca0b2
461
py
Python
setup.py
ccollins/pest
99cd6bf47e86b3ff2d17d4c83ed564d61989edbb
[ "MIT" ]
1
2016-07-27T12:57:06.000Z
2016-07-27T12:57:06.000Z
setup.py
ccollins/pest
99cd6bf47e86b3ff2d17d4c83ed564d61989edbb
[ "MIT" ]
null
null
null
setup.py
ccollins/pest
99cd6bf47e86b3ff2d17d4c83ed564d61989edbb
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup setup( name="pest", version="1.0.3", include_package_data=True, package_data = {'images':['*.*']}, packages=['pest'], scripts=['pest/pester'], install_requires=['pyobjc-framework-FSEvents','growl-py'], description="Auto tester for python...
27.117647
62
0.646421
be7c7212db8dc68e35d6ad6bc4f50ea04543e4c7
21,551
py
Python
tools/autograd/gen_autograd_functions.py
xiaohanhuang/pytorch
a31aea8eaa99a5ff72b5d002c206cd68d5467a5e
[ "Intel" ]
183
2018-04-06T21:10:36.000Z
2022-03-30T15:05:24.000Z
tools/autograd/gen_autograd_functions.py
xiaohanhuang/pytorch
a31aea8eaa99a5ff72b5d002c206cd68d5467a5e
[ "Intel" ]
818
2020-02-07T02:36:44.000Z
2022-03-31T23:49:44.000Z
tools/autograd/gen_autograd_functions.py
xiaohanhuang/pytorch
a31aea8eaa99a5ff72b5d002c206cd68d5467a5e
[ "Intel" ]
58
2018-06-05T16:40:18.000Z
2022-03-16T15:37:29.000Z
# Generates C++ autograd functions for the derivatives of ATen operations # # This writes two files: # Functions.h/cpp: subclasses of autograd::Node # python_functions.h/cpp: Python bindings for the above classes # from .gen_inplace_or_view_type import VIEW_FUNCTIONS from typing import List, Sequence, Tuple from to...
38.621864
123
0.673611
6db2a1bbbeb568c4cc0a6c3ef0ab17039247966a
5,303
py
Python
utils/format_data.py
JiehangXie/PaddleSpeech
60090b49ec27437127ab62358026dd5bb95fccc7
[ "Apache-2.0" ]
1,540
2017-11-14T13:26:33.000Z
2021-11-09T14:05:08.000Z
utils/format_data.py
JiehangXie/PaddleSpeech
60090b49ec27437127ab62358026dd5bb95fccc7
[ "Apache-2.0" ]
599
2017-11-14T13:19:12.000Z
2021-11-09T01:58:26.000Z
utils/format_data.py
JiehangXie/PaddleSpeech
60090b49ec27437127ab62358026dd5bb95fccc7
[ "Apache-2.0" ]
449
2017-11-14T12:48:46.000Z
2021-11-06T09:34:33.000Z
#!/usr/bin/env python3 # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
37.083916
101
0.577975