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
d53b97bcc512527f4a619f62e9758e1da18ce689
3,778
py
Python
tests/chainer_tests/functions_tests/test_hierarchical_softmax.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
tests/chainer_tests/functions_tests/test_hierarchical_softmax.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
tests/chainer_tests/functions_tests/test_hierarchical_softmax.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
1
2018-11-18T00:36:51.000Z
2018-11-18T00:36:51.000Z
import copy import unittest import numpy import chainer from chainer import cuda from chainer import functions from chainer import gradient_check from chainer import testing from chainer.testing import attr from chainer.testing import condition class TestHuffmanTree(unittest.TestCase): def test_empty(self): ...
31.747899
77
0.581789
d53b9e1c5dd90e9b8a19c5dc41097418c95a49cf
2,597
py
Python
var/spack/repos/builtin/packages/r-rcpp/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
var/spack/repos/builtin/packages/r-rcpp/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
14
2021-07-20T01:04:53.000Z
2022-03-02T01:08:36.000Z
var/spack/repos/builtin/packages/r-rcpp/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2021-05-06T00:17:46.000Z
2021-05-06T00:17:46.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RRcpp(RPackage): """The 'Rcpp' package provides R functions as well as C++ classes which ...
63.341463
97
0.782441
d53bdecfcde6989d285e4a323082e122ce5e4930
232
py
Python
tests/test_basic.py
naturalis/trait-geo-diverse-angiosperms
034ce4e807f7a83d31bf7b46435275ba91cfcb00
[ "MIT" ]
13
2019-11-06T05:43:01.000Z
2022-03-16T11:47:26.000Z
tests/test_basic.py
naturalis/sdmdl
034ce4e807f7a83d31bf7b46435275ba91cfcb00
[ "MIT" ]
249
2019-08-21T10:14:25.000Z
2022-03-24T02:30:58.000Z
tests/test_basic.py
naturalis/sdmdl
034ce4e807f7a83d31bf7b46435275ba91cfcb00
[ "MIT" ]
8
2019-08-21T11:07:30.000Z
2021-10-20T02:19:18.000Z
#from .context import sdmdl import unittest class BasicTestSuite(unittest.TestCase): """Basic test cases.""" def test_absolute_truth_and_meaning(self): assert True if __name__ == '__main__': unittest.main()
16.571429
46
0.702586
d53c0c7512cf9123e847808747413bed35470be7
4,222
py
Python
tests/test_parsers.py
foreseeti/securicad-enterprise-sdk
aef4db2530caa0de78a56a3e519efa62bcee39d8
[ "Apache-2.0" ]
3
2020-09-28T09:13:39.000Z
2020-12-10T09:44:03.000Z
tests/test_parsers.py
foreseeti/securicad-enterprise-sdk
aef4db2530caa0de78a56a3e519efa62bcee39d8
[ "Apache-2.0" ]
2
2021-02-19T13:55:10.000Z
2021-12-28T07:51:53.000Z
tests/test_parsers.py
foreseeti/securicad-enterprise-sdk
aef4db2530caa0de78a56a3e519efa62bcee39d8
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-2021 Foreseeti AB <https://foreseeti.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
36.396552
108
0.601374
d53c2b729d30932fce223f494abf711b862a288e
1,024
py
Python
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/compute/accelerator_types/flags.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/compute/accelerator_types/flags.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/compute/accelerator_types/flags.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
40.96
74
0.772461
d53c6fcfd3109049800b787343ff8a0a76db68f9
3,052
py
Python
test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/aio/_auto_rest_duration_test_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/aio/_auto_rest_duration_test_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/low-level/Expected/AcceptanceTests/BodyDurationLowLevel/bodydurationlowlevel/aio/_auto_rest_duration_test_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# 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. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.388889
106
0.686107
d53c7cbadb6c94ecf9e541179b2c679fedd9f0e8
1,320
py
Python
salt/modules/ret.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
1
2016-12-20T20:11:21.000Z
2016-12-20T20:11:21.000Z
salt/modules/ret.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
salt/modules/ret.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
''' Module to integrate with the returner system and retrieve data sent to a salt returner. ''' # Import salt libs import salt.loader def get_jid(returner, jid): ''' Return the information for a specified job id CLI Example: .. code-block:: bash salt '*' ret.get_jid redis 20421104181954700...
20.625
77
0.651515
d53c9a10f7ed4acc20ca544047ed48a55f4b9087
2,859
py
Python
api/users/views.py
dplorimer/osf
9f3f400f62dc7bde18532949ed35bf1d3f6ec3d6
[ "Apache-2.0" ]
null
null
null
api/users/views.py
dplorimer/osf
9f3f400f62dc7bde18532949ed35bf1d3f6ec3d6
[ "Apache-2.0" ]
null
null
null
api/users/views.py
dplorimer/osf
9f3f400f62dc7bde18532949ed35bf1d3f6ec3d6
[ "Apache-2.0" ]
null
null
null
from rest_framework import generics, permissions as drf_permissions from modularodm import Q from website.models import User, Node from framework.auth.core import Auth from api.base.utils import get_object_or_404 from api.base.filters import ODMFilterMixin from api.nodes.serializers import NodeSerializer from .seriali...
30.414894
91
0.669115
d53cbef176067ff442a9bc62b9cf8ce11fa8c175
449
py
Python
oarepo_doi_generator/jsonschemas/__init__.py
oarepo/oarepo-doi-generator
6494243cd7df381e24be74390ac82c591c33a7cd
[ "MIT" ]
null
null
null
oarepo_doi_generator/jsonschemas/__init__.py
oarepo/oarepo-doi-generator
6494243cd7df381e24be74390ac82c591c33a7cd
[ "MIT" ]
null
null
null
oarepo_doi_generator/jsonschemas/__init__.py
oarepo/oarepo-doi-generator
6494243cd7df381e24be74390ac82c591c33a7cd
[ "MIT" ]
1
2021-05-31T07:59:07.000Z
2021-05-31T07:59:07.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2021 CESNET Prague. # # OARepo is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """JSON schemas. JSON schemas are used to define the structure of the record data of your instance. The documenta...
29.933333
72
0.752784
d53cc153bb47d9fb7b8bd23ea323f75c1f390faa
22
py
Python
btd6_memory_info/generated/Facepunch/Steamworks/steamworks.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Facepunch/Steamworks/steamworks.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Facepunch/Steamworks/steamworks.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class Steamworks: pass
22
22
0.863636
d53ce32493cbf6746b6e5140833f48ebec18a712
6,243
py
Python
cvdm/score/pce.py
joyceho/cvdm
df386290221fd1388bef06104db0dd07978f91d9
[ "MIT" ]
2
2020-11-29T00:05:05.000Z
2020-12-01T23:34:17.000Z
cvdm/score/pce.py
joyceho/cvdm
df386290221fd1388bef06104db0dd07978f91d9
[ "MIT" ]
null
null
null
cvdm/score/pce.py
joyceho/cvdm
df386290221fd1388bef06104db0dd07978f91d9
[ "MIT" ]
null
null
null
""" Pooled Cohort Equation https://clincalc.com/cardiology/ascvd/pooledcohort.aspx """ import numpy as np from cvdm.score import cox_surv, BaseRisk from cvdm.score import clean_age, clean_tot_chol, clean_hdl, clean_bp WHITE_FEMALE = { "coef": np.array([-29.799, # log of age 4.884, #...
36.086705
96
0.407336
d53d2db89835f83abd2d4e834f7ce71609797146
7,282
py
Python
jawa/methods.py
4577/Jawa
23f93020ef6687567e45a9afa09bfd6e0faf6f0a
[ "MIT" ]
null
null
null
jawa/methods.py
4577/Jawa
23f93020ef6687567e45a9afa09bfd6e0faf6f0a
[ "MIT" ]
null
null
null
jawa/methods.py
4577/Jawa
23f93020ef6687567e45a9afa09bfd6e0faf6f0a
[ "MIT" ]
1
2021-01-21T12:17:39.000Z
2021-01-21T12:17:39.000Z
from typing import Optional, Callable, Iterator, IO, List from struct import unpack, pack from itertools import repeat from jawa.constants import UTF8 from jawa.util.flags import Flags from jawa.util.descriptor import method_descriptor, JVMType from jawa.attribute import AttributeTable from jawa.attributes.code import...
31.387931
80
0.587476
d53d59bc0a4eaa8af0267553bd92a5262b4c9df4
5,309
py
Python
tests/test_lib_version.py
kusanagi/kusanagi-sdk-python
4fd6843f39fa271afc7588b5ec58e7758b09fd61
[ "MIT" ]
1
2022-02-24T19:02:28.000Z
2022-02-24T19:02:28.000Z
tests/test_lib_version.py
jeronimoalbi/kusanagi-sdk-python
4fd6843f39fa271afc7588b5ec58e7758b09fd61
[ "MIT" ]
null
null
null
tests/test_lib_version.py
jeronimoalbi/kusanagi-sdk-python
4fd6843f39fa271afc7588b5ec58e7758b09fd61
[ "MIT" ]
1
2021-05-16T17:40:21.000Z
2021-05-16T17:40:21.000Z
# Python 3 SDK for the KUSANAGI(tm) framework (http://kusanagi.io) # Copyright (c) 2016-2021 KUSANAGI S.L. All rights reserved. # # Distributed under the MIT license. # # For the full copyright and license information, please view the LICENSE # file that was distributed with this source code. def test_lib_version_is_...
34.032051
78
0.624976
d53d7ce6c4a1a534486488125c8197f8e1aca71c
7,341
py
Python
tests/noise-by-setpoint.py
adiravishankara/Wasatch.PY
058b3de2c9399e9aea6347fa360f9c7dbbf296aa
[ "MIT" ]
9
2018-10-31T11:38:18.000Z
2021-11-23T19:20:54.000Z
tests/noise-by-setpoint.py
adiravishankara/Wasatch.PY
058b3de2c9399e9aea6347fa360f9c7dbbf296aa
[ "MIT" ]
3
2018-11-01T10:28:53.000Z
2022-03-21T17:40:05.000Z
tests/noise-by-setpoint.py
adiravishankara/Wasatch.PY
058b3de2c9399e9aea6347fa360f9c7dbbf296aa
[ "MIT" ]
4
2018-08-03T08:46:08.000Z
2022-03-23T01:09:27.000Z
#!/usr/bin/env python import re import os import sys import time import numpy import signal import logging import datetime import argparse import wasatch from wasatch import utils from wasatch import applog from wasatch.WasatchBus import WasatchBus from wasatch.WasatchDevice import WasatchDevice from...
37.454082
146
0.569813
d53d7fee1e7577d98e487ea43c329cb388988508
2,329
py
Python
test/knxip_tests/tunnelling_request_test.py
M-o-a-T/xknx
0cf07a01a44c76478d916884437f3f4769a4ddd5
[ "MIT" ]
null
null
null
test/knxip_tests/tunnelling_request_test.py
M-o-a-T/xknx
0cf07a01a44c76478d916884437f3f4769a4ddd5
[ "MIT" ]
null
null
null
test/knxip_tests/tunnelling_request_test.py
M-o-a-T/xknx
0cf07a01a44c76478d916884437f3f4769a4ddd5
[ "MIT" ]
null
null
null
"""Unit test for KNX/IP TunnellingRequest objects.""" import asyncio import unittest from xknx import XKNX from xknx.dpt import DPTBinary from xknx.exceptions import CouldNotParseKNXIP from xknx.knxip import ( CEMIFrame, KNXIPFrame, KNXIPServiceType, TunnellingRequest) from xknx.telegram import GroupAddress, Teleg...
39.474576
92
0.679261
d53d94847e4d5f6b47cadef789ad4c2897921325
3,138
py
Python
test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/_auto_rest_date_test_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/_auto_rest_date_test_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/low-level/Expected/AcceptanceTests/BodyDateLowLevel/bodydatelowlevel/_auto_rest_date_test_service.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# 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. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
36.488372
102
0.647865
d53db9fcb0605975767e63d5fe931225af89565a
5,431
py
Python
code/critics/off_policy/value.py
arjunchandra/continuous-rl
8f3c655c6a4b2e9d15a6b052e5466c0a75191a08
[ "MIT" ]
17
2019-03-29T18:30:36.000Z
2021-10-17T15:38:22.000Z
code/critics/off_policy/value.py
arjunchandra/continuous-rl
8f3c655c6a4b2e9d15a6b052e5466c0a75191a08
[ "MIT" ]
1
2019-04-22T22:40:30.000Z
2019-04-24T21:45:07.000Z
code/critics/off_policy/value.py
ctallec/continuous-rl
8f3c655c6a4b2e9d15a6b052e5466c0a75191a08
[ "MIT" ]
5
2019-04-29T16:26:18.000Z
2020-01-23T07:17:49.000Z
import copy from logging import info from typing import Optional from gym import Space from gym.spaces import Box, Discrete from torch import Tensor from abstract import Arrayable, ParametricFunction, Tensorable from actors.actor import Actor from convert import arr_to_th, check_array, check_tensor from critics.off_p...
39.642336
89
0.641871
d53dcbb06202d41dd76256d7917193eddc163183
3,991
py
Python
alipay/aop/api/request/AlipayFundJointaccountQuotaQueryRequest.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/AlipayFundJointaccountQuotaQueryRequest.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/AlipayFundJointaccountQuotaQueryRequest.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.AlipayFundJointaccountQuotaQueryModel import AlipayFundJointaccountQuotaQueryModel class AlipayFundJointaccountQuotaQueryRequest(obj...
27.524138
148
0.646455
d53dcbe65296513f3c90065940c3d3110791499c
4,410
py
Python
boxpython/upload.py
hkjallbring/boxpython
dde55db20a2918555432e2658df7e8eee853a54f
[ "MIT" ]
null
null
null
boxpython/upload.py
hkjallbring/boxpython
dde55db20a2918555432e2658df7e8eee853a54f
[ "MIT" ]
null
null
null
boxpython/upload.py
hkjallbring/boxpython
dde55db20a2918555432e2658df7e8eee853a54f
[ "MIT" ]
null
null
null
from email.generator import _make_boundary from requests.packages.urllib3.filepost import iter_fields from requests.packages.urllib3.fields import guess_content_type from io import BytesIO class MultipartUploadWrapper(object): """Adapted from http://stackoverflow.com/questions/15973204/using-python-requests-to-br...
38.017241
136
0.604989
d53df3f0b70f954cd656f98f6e77d45a5f3f759d
4,584
py
Python
tests/reconstruction_algorithms/__init__.py
IPASC/standardised-image-reconstruction
75d350a9f8da57413fabbd8dd5ed23fdfb35d4ed
[ "MIT" ]
3
2021-09-07T10:44:48.000Z
2021-12-15T10:51:39.000Z
tests/reconstruction_algorithms/__init__.py
IPASC/standardised-image-reconstruction
75d350a9f8da57413fabbd8dd5ed23fdfb35d4ed
[ "MIT" ]
12
2021-11-14T23:01:28.000Z
2022-03-29T19:08:13.000Z
tests/reconstruction_algorithms/__init__.py
IPASC/standardised-image-reconstruction
75d350a9f8da57413fabbd8dd5ed23fdfb35d4ed
[ "MIT" ]
null
null
null
""" SPDX-FileCopyrightText: 2021 International Photoacoustic Standardisation Consortium (IPASC) SPDX-FileCopyrightText: 2021 Janek Gröhl SPDX-License-Identifier: MIT """ from google_drive_downloader import GoogleDriveDownloader import os import matplotlib.pyplot as plt import numpy as np class TestClassBase: """...
44.504854
109
0.570244
d53df61d332b11c2df832c01d290e84d747ddfb2
6,275
py
Python
lambda_function.py
m3ngineer/kema-ai
e494b9380b285fdaa744a44aa2b21390c3eac417
[ "MIT" ]
null
null
null
lambda_function.py
m3ngineer/kema-ai
e494b9380b285fdaa744a44aa2b21390c3eac417
[ "MIT" ]
null
null
null
lambda_function.py
m3ngineer/kema-ai
e494b9380b285fdaa744a44aa2b21390c3eac417
[ "MIT" ]
null
null
null
import json import logging import sys import psycopg2 import urllib from datetime import datetime from db import connect_to_rds, insert_into_table, select_from_table, clear_thread_for_user_phone from reminder import (reminder_node_1, reminder_node_2, reminder_node_3, reminder_node_4, reminder_node_5, reminder_node...
33.55615
109
0.655299
d53e0b9f706e9fbafc8ad59fd1d716b5ef6b7af3
1,907
py
Python
pywick/datasets/tnt/transformdataset.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
2
2020-11-28T07:56:09.000Z
2021-11-08T09:30:39.000Z
pywick/datasets/tnt/transformdataset.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
pywick/datasets/tnt/transformdataset.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
from pywick.datasets.tnt.dataset import Dataset class TransformDataset(Dataset): """ Dataset which transforms a given dataset with a given function. Given a function `transform`, and a `dataset`, `TransformDataset` applies the function in an on-the-fly manner when querying a sample with `__getite...
34.672727
78
0.657053
d53e3296d343fcbd5e9aedf582b891457907c88c
4,197
py
Python
tensormonk/loss/utils.py
Tensor46/TensorMONK
67617d3fdf8fde072ba9cab42de7d67c79b17494
[ "MIT" ]
29
2018-07-06T23:57:23.000Z
2022-03-08T20:38:57.000Z
tensormonk/loss/utils.py
Tensor46/TensorMONK
67617d3fdf8fde072ba9cab42de7d67c79b17494
[ "MIT" ]
3
2018-12-14T22:21:26.000Z
2020-06-19T02:13:34.000Z
tensormonk/loss/utils.py
Tensor46/TensorMONK
67617d3fdf8fde072ba9cab42de7d67c79b17494
[ "MIT" ]
8
2018-07-06T23:58:03.000Z
2021-04-12T01:35:54.000Z
""" TensorMONK :: loss :: utils """ __all__ = ["compute_n_embedding", "compute_top15", "one_hot", "one_hot_idx", "hard_negative_mask"] import torch import numpy as np def compute_n_embedding(tensor_size: tuple): if isinstance(tensor_size, list) or isinstance(tensor_size, tuple): if len(tensor...
39.59434
79
0.630212
d53e3c4dc8f0ea737faec3978e3ef794274d38d4
6,041
py
Python
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_job_details_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_job_details_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/operations/_job_details_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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. # Code generated by Microsoft (R) AutoRe...
40.543624
217
0.683993
d53e47d56cb1f1b1c9b27b779c42481f0833b0d4
6,007
py
Python
homeassistant/components/ais_supla/__init__.py
stravinci/AIS-home-assistant
ead4dafd3f801ebeb32860bd34443ed24a4f4167
[ "Apache-2.0" ]
null
null
null
homeassistant/components/ais_supla/__init__.py
stravinci/AIS-home-assistant
ead4dafd3f801ebeb32860bd34443ed24a4f4167
[ "Apache-2.0" ]
null
null
null
homeassistant/components/ais_supla/__init__.py
stravinci/AIS-home-assistant
ead4dafd3f801ebeb32860bd34443ed24a4f4167
[ "Apache-2.0" ]
null
null
null
"""Support for Supla devices.""" from datetime import timedelta import logging from typing import Optional from pysupla import SuplaAPI import voluptuous as vol from homeassistant.config_entries import SOURCE_IMPORT from homeassistant.const import CONF_ACCESS_TOKEN import homeassistant.helpers.config_validation as cv...
31.450262
87
0.640087
d53e4897b971d6dec40b5d3dd2cf4f483d4565a3
2,170
py
Python
deepsim_btree/deepsim_btree/leaves.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
1
2022-03-25T07:20:49.000Z
2022-03-25T07:20:49.000Z
deepsim_btree/deepsim_btree/leaves.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
deepsim_btree/deepsim_btree/leaves.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
################################################################################# # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License, Version 2.0 (the "License"). ...
35.57377
81
0.471429
d53e53ba01948aa0f3fb3b087110fc0238646f0f
86,684
py
Python
phonenumbers/geodata/data23.py
albertpadin/supercode-validate-phone-number
d2cc06091693524da8a08b86f62ad431e8620d0f
[ "MIT" ]
null
null
null
phonenumbers/geodata/data23.py
albertpadin/supercode-validate-phone-number
d2cc06091693524da8a08b86f62ad431e8620d0f
[ "MIT" ]
null
null
null
phonenumbers/geodata/data23.py
albertpadin/supercode-validate-phone-number
d2cc06091693524da8a08b86f62ad431e8620d0f
[ "MIT" ]
null
null
null
"""Per-prefix data, mapping each prefix to a dict of locale:name. Auto-generated file, do not edit by hand. """ from ..util import u # Copyright (C) 2011-2016 The Libphonenumber Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Licens...
43.912867
248
0.61355
d53e907dab8307f021d986299766a1eb14dc4336
1,714
py
Python
utils/atom_ccg_indexer.py
Yufang-Liu/category-generator
b994eb256bea383d15f5f61f571b5ec9448ab1f4
[ "Apache-2.0" ]
2
2021-01-08T07:19:10.000Z
2021-12-18T23:10:55.000Z
utils/atom_ccg_indexer.py
Yufang-Liu/category-generator
b994eb256bea383d15f5f61f571b5ec9448ab1f4
[ "Apache-2.0" ]
null
null
null
utils/atom_ccg_indexer.py
Yufang-Liu/category-generator
b994eb256bea383d15f5f61f571b5ec9448ab1f4
[ "Apache-2.0" ]
null
null
null
from overrides import overrides from typing import Dict, List, Callable, TypeVar from antu.io.vocabulary import Vocabulary from antu.io.token_indexers.token_indexer import TokenIndexer import re Indeices = TypeVar("Indices", List[int], List[List[int]]) class AtomCCGIndexer(TokenIndexer): def __init__( self...
33.607843
123
0.58168
d53e90b7447ae83d30cf0d6c8b883f44d89ebdad
1,156
py
Python
src/ggrc/views/notifications.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-04T10:55:14.000Z
2019-01-04T10:55:14.000Z
src/ggrc/views/notifications.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/views/notifications.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Views for email notifications.""" from ggrc.notifications import common, fast_digest from ggrc.login import login_required def init_notification_views(app): """Add url rules for all notification vie...
31.243243
78
0.767301
d53ea5c46bf9337ddb3fe653d23d5d2d3fffd879
1,193
py
Python
monitoring/handlers/handle_instance_vnic.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
monitoring/handlers/handle_instance_vnic.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
monitoring/handlers/handle_instance_vnic.py
korenlev/calipso-cvim
39278a5cf09c40b26a8a143ccc0c8d437961abc2
[ "Apache-2.0" ]
null
null
null
############################################################################### # Copyright (c) 2017-2020 Koren Lev (Cisco Systems), # # Yaron Yogev (Cisco Systems), Ilia Abashin (Cisco Systems) and others # # # ...
51.869565
79
0.511316
d53eacc4252bbf34b81389feeeccc4f09fa948de
5,563
py
Python
datumaro/plugins/mots_format.py
yasakova-anastasia/datumaro
7082fc4f50291d3b3c2022f069f76628e9fd07bb
[ "MIT" ]
null
null
null
datumaro/plugins/mots_format.py
yasakova-anastasia/datumaro
7082fc4f50291d3b3c2022f069f76628e9fd07bb
[ "MIT" ]
1
2021-10-05T17:41:05.000Z
2021-10-05T17:41:05.000Z
datumaro/plugins/mots_format.py
yasakova-anastasia/datumaro
7082fc4f50291d3b3c2022f069f76628e9fd07bb
[ "MIT" ]
null
null
null
# Copyright (C) 2020-2021 Intel Corporation # # SPDX-License-Identifier: MIT # Implements MOTS format https://www.vision.rwth-aachen.de/page/mots from enum import Enum from glob import iglob import logging as log import os import os.path as osp import numpy as np from datumaro.components.annotation import Annotatio...
34.987421
80
0.600036
d53eaec79957d800f777ff49eb9b70f9260bba41
3,141
py
Python
gen_coloring/generators/plugin_generator.py
textX/EasyColorLang
b7b660777ef04422a9a9df5b59b15bb80df0e3b9
[ "MIT" ]
2
2020-02-08T12:56:07.000Z
2021-06-17T09:04:41.000Z
gen_coloring/generators/plugin_generator.py
textX/EasyColorLang
b7b660777ef04422a9a9df5b59b15bb80df0e3b9
[ "MIT" ]
null
null
null
gen_coloring/generators/plugin_generator.py
textX/EasyColorLang
b7b660777ef04422a9a9df5b59b15bb80df0e3b9
[ "MIT" ]
1
2020-02-26T18:01:53.000Z
2020-02-26T18:01:53.000Z
import json from .textmate_generator import TextMateGrammarGenerator from pathlib import Path from ..utils import get_home_dir, remove_dir, copy_file, dump_to_file, \ get_filename_no_ext, value_or_default_if_none, load_json_file, extract_relative_path from . import MODULE_DIR_PATH from . import load_metamodel from ...
43.625
101
0.661573
d53ec7d8aec93e2a78b76c035fac2c8830e5e755
5,199
py
Python
presentations/migrations/0001_initial.py
betoesquivel/fil2014
4c2e9188769096391bb206b76ed1ab8bd2ff66a1
[ "MIT" ]
1
2016-05-18T18:46:48.000Z
2016-05-18T18:46:48.000Z
presentations/migrations/0001_initial.py
betoesquivel/fil2014
4c2e9188769096391bb206b76ed1ab8bd2ff66a1
[ "MIT" ]
null
null
null
presentations/migrations/0001_initial.py
betoesquivel/fil2014
4c2e9188769096391bb206b76ed1ab8bd2ff66a1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Presentator' db.create_table(u'presentations_presentator'...
51.99
153
0.63416
d53f0bf6e0894c9153aca10abf983ccc3061007f
4,313
py
Python
Tracked/std_msgs/msg/_int16.py
EnzoBrancaccio/tracked
c32905da259d8ac9e2261294d6f56fd92efd7bc9
[ "CC0-1.0" ]
null
null
null
Tracked/std_msgs/msg/_int16.py
EnzoBrancaccio/tracked
c32905da259d8ac9e2261294d6f56fd92efd7bc9
[ "CC0-1.0" ]
null
null
null
Tracked/std_msgs/msg/_int16.py
EnzoBrancaccio/tracked
c32905da259d8ac9e2261294d6f56fd92efd7bc9
[ "CC0-1.0" ]
null
null
null
# generated from rosidl_generator_py/resource/_idl.py.em # with input from std_msgs:msg\Int16.idl # generated code does not contain a copyright notice # Import statements for member types from rosidl_parser.rosidl_parser import definition as rosidl_parser_definition # noqa: E402, I100 class Metaclass_Int16(type):...
34.504
134
0.593323
d53f0cca5747591a7bfde2033aa447d3efe24c66
1,003
py
Python
sdks/python/test/test_HockeyAppMigrationRelease.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_HockeyAppMigrationRelease.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_HockeyAppMigrationRelease.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
25.075
109
0.740778
d53f17e7224097b0555c2efe2add3e102c8ba8f4
10,920
py
Python
src/compas/geometry/__init__.py
shervinazadi/compas
a3f5a0dd59247b6b6cdac3f14a45f9ff414f44b3
[ "MIT" ]
2
2021-03-17T18:14:22.000Z
2021-09-19T13:50:02.000Z
src/compas/geometry/__init__.py
shervinazadi/compas
a3f5a0dd59247b6b6cdac3f14a45f9ff414f44b3
[ "MIT" ]
null
null
null
src/compas/geometry/__init__.py
shervinazadi/compas
a3f5a0dd59247b6b6cdac3f14a45f9ff414f44b3
[ "MIT" ]
null
null
null
""" ******************************************************************************** geometry ******************************************************************************** .. currentmodule:: compas.geometry Primitives ========== Base Classes ------------ .. autosummary:: :toctree: generated/ :nosignatur...
20.110497
116
0.679396
d53f279abd78d219ea74a9ade1b90a982f65375f
1,873
py
Python
src/zeit/content/cp/browser/blocks/tests/test_mail.py
ZeitOnline/zeit.content.cp
ee1dbc34e385e47a5c52eabbe01cdae2df09bd76
[ "BSD-3-Clause" ]
null
null
null
src/zeit/content/cp/browser/blocks/tests/test_mail.py
ZeitOnline/zeit.content.cp
ee1dbc34e385e47a5c52eabbe01cdae2df09bd76
[ "BSD-3-Clause" ]
11
2015-04-16T14:15:08.000Z
2019-02-01T13:23:17.000Z
src/zeit/content/cp/browser/blocks/tests/test_mail.py
ZeitOnline/zeit.content.cp
ee1dbc34e385e47a5c52eabbe01cdae2df09bd76
[ "BSD-3-Clause" ]
1
2015-12-03T14:58:26.000Z
2015-12-03T14:58:26.000Z
import zeit.cms.testing import zeit.content.cp import zeit.content.cp.centerpage class TestMail(zeit.cms.testing.BrowserTestCase): layer = zeit.content.cp.testing.ZCML_LAYER def setUp(self): super(TestMail, self).setUp() self.centerpage = zeit.content.cp.centerpage.CenterPage() self....
40.717391
77
0.665243
d53f51a20970ce0695ac65495600956c2b88b087
497
py
Python
oscar/lib/python2.7/site-packages/django/utils/glob.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/utils/glob.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/utils/glob.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import os.path import re from django.utils import six # backport of Python 3.4's glob.escape if six.PY3: from glob import escape as glob_escape else: _magic_check = re.compile('([*?[])') def glob_escape(pathname): """ Escape all sp...
22.590909
55
0.627767
d53f71c0da7034984ee5ff128b108cb9e615eb00
5,433
py
Python
napari/_tests/test_view_layers.py
pranathivemuri/napari
7a7f824b686a276dc6cdc8013d8f437e3c3b03e1
[ "BSD-3-Clause" ]
null
null
null
napari/_tests/test_view_layers.py
pranathivemuri/napari
7a7f824b686a276dc6cdc8013d8f437e3c3b03e1
[ "BSD-3-Clause" ]
null
null
null
napari/_tests/test_view_layers.py
pranathivemuri/napari
7a7f824b686a276dc6cdc8013d8f437e3c3b03e1
[ "BSD-3-Clause" ]
null
null
null
""" Ensure that layers and their convenience methods on the viewer have the same signatures and docstrings. """ import inspect import re from unittest.mock import MagicMock, call import numpy as np import pytest from numpydoc.docscrape import ClassDoc, FunctionDoc import napari from napari import Viewer from napari ...
33.331288
102
0.6455
d53f75b6ee402d21b3170aac0b541114206c50df
7,862
py
Python
tests/harmonic_model_tests/test_secundal_chord_template.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
1
2021-05-06T19:45:54.000Z
2021-05-06T19:45:54.000Z
tests/harmonic_model_tests/test_secundal_chord_template.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
tests/harmonic_model_tests/test_secundal_chord_template.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
import unittest from harmonicmodel.secundal_chord_template import SecundalChordTemplate from tonalmodel.modality import ModalityType from tonalmodel.tonality import Tonality from tonalmodel.diatonic_tone import DiatonicTone class TestSecundalChordTemplate(unittest.TestCase): def setUp(self): pass d...
45.445087
114
0.499237
d53f76803eaef9b31496da449ffb72d9c7f3ce4d
2,441
py
Python
test/helpers.py
lorenzgillner/pyinterval
bf35762b87ea807d8a56137c5eb94050eda3ed4f
[ "BSD-3-Clause" ]
68
2015-04-09T16:29:53.000Z
2021-12-06T10:24:38.000Z
test/helpers.py
lorenzgillner/pyinterval
bf35762b87ea807d8a56137c5eb94050eda3ed4f
[ "BSD-3-Clause" ]
27
2015-09-12T20:26:52.000Z
2022-01-04T02:27:05.000Z
test/helpers.py
lorenzgillner/pyinterval
bf35762b87ea807d8a56137c5eb94050eda3ed4f
[ "BSD-3-Clause" ]
26
2015-05-04T07:20:52.000Z
2021-11-29T08:36:55.000Z
# Copyright (c) 2008-2016, Stefano Taschini <taschini@ieee.org> # All rights reserved. # See LICENSE for details. """Helper functions for the testing of intervals and fpu. This module provides helper functions that were deemed not fundamental and were not included in the interval or the fpu modules. """ # We inject ...
24.656566
77
0.545678
d53fa37ca3bcd5d54cedd51d9ba5c9e8556093a4
783
py
Python
examples/hello_world.py
4577/Jawa
23f93020ef6687567e45a9afa09bfd6e0faf6f0a
[ "MIT" ]
1
2021-12-30T10:53:57.000Z
2021-12-30T10:53:57.000Z
examples/hello_world.py
GiantTreeLP/jawa-fixed
dbdd1cb6ef2439bf6496adef8732775c792036ec
[ "MIT" ]
null
null
null
examples/hello_world.py
GiantTreeLP/jawa-fixed
dbdd1cb6ef2439bf6496adef8732775c792036ec
[ "MIT" ]
1
2021-01-21T12:17:39.000Z
2021-01-21T12:17:39.000Z
""" An example showing how to create a "Hello World" class from scratch. """ from jawa.cf import ClassFile from jawa.assemble import assemble cf = ClassFile.create('HelloWorld') main = cf.methods.create('main', '([Ljava/lang/String;)V', code=True) main.access_flags.acc_static = True main.code.max_locals = 1 main.code...
25.258065
69
0.651341
d53fa8e51e1b24427ab29623f2f345a63877ece7
41,255
py
Python
round01/30_06_CNN_revived_light_and_normalize.py
phunc20/rlcomp2020
c37f8f05cc86d55fca2648bf5491d6a2218c2cad
[ "MIT" ]
null
null
null
round01/30_06_CNN_revived_light_and_normalize.py
phunc20/rlcomp2020
c37f8f05cc86d55fca2648bf5491d6a2218c2cad
[ "MIT" ]
1
2022-02-10T02:27:10.000Z
2022-02-10T02:27:10.000Z
round01/30_06_CNN_revived_light_and_normalize.py
phunc20/rlcomp2020
c37f8f05cc86d55fca2648bf5491d6a2218c2cad
[ "MIT" ]
null
null
null
import sys import numpy as np #import pandas as pd import datetime import json from array import * import os import math from random import randrange import random from tensorflow.keras.models import Sequential from tensorflow.keras.models import model_from_json from tensorflow.keras.layers import Dense, Activation fr...
37.033214
256
0.578039
d53fb31d35770135724ccfe591590bb320c24187
1,360
py
Python
src/gui/find_tau_ign.py
gywukun09/GPS
ce474f4afbcb64d46e85f04675e63343d5b65b47
[ "MIT" ]
18
2017-08-08T16:46:21.000Z
2021-11-24T06:43:08.000Z
src/gui/find_tau_ign.py
haoxy97/GPS
3da6d3a7410b7b7e5340373f206a1833759d5acf
[ "MIT" ]
1
2019-12-24T11:53:18.000Z
2019-12-24T11:53:18.000Z
src/gui/find_tau_ign.py
haoxy97/GPS
3da6d3a7410b7b7e5340373f206a1833759d5acf
[ "MIT" ]
14
2017-07-08T03:17:37.000Z
2022-01-10T12:33:27.000Z
import os, csv # 1. put this file at the same level of the target folder # 2. run this file def find_tau_ign(fld): if bool(fld): folder = os.path.join(fld,'autoignition') tau_csv = os.path.join(fld,'tau_ign.csv') else: folder = 'autoignition' tau_csv = 'tau_ign.csv' if not os.path.exists(folder): print...
26.153846
99
0.640441
d53fc785928cfae7bc0e60154ecd4ed912a9c4bc
5,785
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_02_01/operations/_skus_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_02_01/operations/_skus_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_02_01/operations/_skus_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# 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. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
39.896552
133
0.663267
d53fd62200cd46ca1a04461a8c9b386071f80ca9
2,675
py
Python
DataExtractor.py
neiterman21/cheat_detector_keras
a6e9f6e8c55614959ddeeebcaf578ec43edf8d6d
[ "MIT" ]
null
null
null
DataExtractor.py
neiterman21/cheat_detector_keras
a6e9f6e8c55614959ddeeebcaf578ec43edf8d6d
[ "MIT" ]
null
null
null
DataExtractor.py
neiterman21/cheat_detector_keras
a6e9f6e8c55614959ddeeebcaf578ec43edf8d6d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import csv from shutil import copyfile from pathlib import Path import xml.etree.ElementTree as ET DATA_PATH = "/home/evgeny/code_projects/cheat_detector_model/data/CheatGameLogs" DeceptionDB_path = "/home/evgeny/code_projects/cheat_detector_model/data/DeceptionDB/" #DeceptionDB_csv_path = "/hom...
33.860759
120
0.62243
d53fd7086fb73910c65ded60b2779632a249ded0
1,946
py
Python
marathon/models/queue.py
missingcharacter/marathon-python
e1a42642c42716ef074e5b2523408bc1aa6025e2
[ "MIT" ]
202
2015-01-07T06:55:14.000Z
2021-11-30T12:05:50.000Z
marathon/models/queue.py
missingcharacter/marathon-python
e1a42642c42716ef074e5b2523408bc1aa6025e2
[ "MIT" ]
213
2015-03-04T12:54:09.000Z
2022-02-28T11:36:28.000Z
marathon/models/queue.py
missingcharacter/marathon-python
e1a42642c42716ef074e5b2523408bc1aa6025e2
[ "MIT" ]
169
2015-02-06T16:48:05.000Z
2022-01-18T16:20:56.000Z
from .base import MarathonResource from .app import MarathonApp class MarathonQueueItem(MarathonResource): """Marathon queue item. See: https://mesosphere.github.io/marathon/docs/rest-api.html#queue List all the tasks queued up or waiting to be scheduled. This is mainly used for troubleshooting and...
37.423077
89
0.716855
d54023e39ed727ba2ab7a6d8daa394e303c0dfb6
1,498
py
Python
python/test/test_sort_definition.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
null
null
null
python/test/test_sort_definition.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
1
2021-01-20T00:20:01.000Z
2021-01-20T00:20:01.000Z
python/test/test_sort_definition.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ OpenLattice API OpenLattice API # noqa: E501 The version of the OpenAPI document: 0.0.1 Contact: support@openlattice.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime import openlattice from openlat...
25.827586
83
0.638852
d540372cd582e3ae40fcbe1410df514ad801b12b
21,628
py
Python
nlp_annotator_api/annotators/entities/common/utils.py
dasaku-ai/nlpmodel-v-h
326bb9467df11d517285610c70f9d22627eb5efc
[ "Apache-2.0" ]
null
null
null
nlp_annotator_api/annotators/entities/common/utils.py
dasaku-ai/nlpmodel-v-h
326bb9467df11d517285610c70f9d22627eb5efc
[ "Apache-2.0" ]
1
2022-02-02T09:26:44.000Z
2022-02-02T09:26:44.000Z
nlp_annotator_api/annotators/entities/common/utils.py
dasaku-ai/nlpmodel-v-h
326bb9467df11d517285610c70f9d22627eb5efc
[ "Apache-2.0" ]
null
null
null
import os from unicodedata import unidata_version from chemdataextractor import Document import re import json from inflector import Inflector resources_dir = os.path.abspath( os.path.join( os.path.dirname(__file__), "../../../resources" ) ) def RegPropertiesAnnotator(paragraph): exlist =...
45.436975
482
0.434899
d54058acb94ce1633459c96148f23d42ec07b698
7,926
py
Python
weasyl/macro.py
Weasyl/weasyl
80c86942c6f20a815086e2895fdad51d3aa77eed
[ "Apache-2.0" ]
111
2016-05-18T04:18:18.000Z
2021-11-03T02:05:19.000Z
weasyl/macro.py
Weasyl/weasyl
80c86942c6f20a815086e2895fdad51d3aa77eed
[ "Apache-2.0" ]
1,103
2016-05-29T05:17:53.000Z
2022-03-31T18:12:40.000Z
weasyl/macro.py
Weasyl/weasyl
80c86942c6f20a815086e2895fdad51d3aa77eed
[ "Apache-2.0" ]
47
2016-05-29T20:48:37.000Z
2021-11-12T09:40:40.000Z
import os import sqlalchemy as sa from libweasyl import ratings from libweasyl.models import tables as t MACRO_EMAIL_ADDRESS = "weasyl@weasyl.com" MACRO_SUPPORT_ADDRESS = "support@weasyl.dev" MACRO_BCRYPT_ROUNDS = 13 # Example input (userid, "su") MACRO_IGNOREUSER = " AND NOT EXISTS (SELECT 0 FROM ignoreuser WHER...
30.72093
120
0.62806
d540699652482c3ef9fab31293ec9fb7c253539a
12,552
py
Python
tests/common/test_utils.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_utils.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_utils.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2020-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
38.621538
127
0.606437
d54075a433b7ae32a0b3326a7760ccbfc25819d2
944
py
Python
110/save2_nopass.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
110/save2_nopass.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
110/save2_nopass.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
def divide_numbers(numerator, denominator): """For this exercise you can assume numerator and denominator are of type int/str/float. Try to convert numerator and denominator to int types, if that raises a ValueError reraise it. Following do the division and return the result. However if ...
29.5
78
0.664195
d5407ba2c760742ce1674177e092f555322db095
11,576
py
Python
deprecated/PPO.py
xc-liu/pacman-rl-agent
5372f8c479b1a1f25132602978f9eb908fce774e
[ "Unlicense" ]
null
null
null
deprecated/PPO.py
xc-liu/pacman-rl-agent
5372f8c479b1a1f25132602978f9eb908fce774e
[ "Unlicense" ]
null
null
null
deprecated/PPO.py
xc-liu/pacman-rl-agent
5372f8c479b1a1f25132602978f9eb908fce774e
[ "Unlicense" ]
null
null
null
import random import os import time import numpy as np import torch import torch.nn as nn import torch.optim as optim from collections import deque from torch.distributions import Categorical import matplotlib.pyplot as plt class Actor_network(nn.Module): def __init__(self, num_inputs, num_outputs): supe...
38.20462
119
0.606082
d540d9f7a0ef1e2b1f2e52ed4bf7d497739c88e0
1,733
py
Python
scripts/leetcode/amzn/medianTwoSortedList.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
scripts/leetcode/amzn/medianTwoSortedList.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
8
2020-09-05T16:04:31.000Z
2022-02-27T09:57:51.000Z
scripts/leetcode/amzn/medianTwoSortedList.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
# 4. Median of Two Sorted Arrays """ Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). Example 1: Input: nums1 = [1,3], nums2 = [2] Output: 2.00000 Explanation: merged array = [1,2,3] and median ...
22.802632
113
0.547605
d541090b51cfbd3d379f37387e617acbd4495db2
2,171
py
Python
setup.py
rwijtvliet/interpol
f1cf1fb905f274c8979a8a3ef06deea04122190c
[ "BSD-3-Clause" ]
null
null
null
setup.py
rwijtvliet/interpol
f1cf1fb905f274c8979a8a3ef06deea04122190c
[ "BSD-3-Clause" ]
null
null
null
setup.py
rwijtvliet/interpol
f1cf1fb905f274c8979a8a3ef06deea04122190c
[ "BSD-3-Clause" ]
null
null
null
from os import path from setuptools import setup, find_packages import sys import versioneer # NOTE: This file must remain Python 2 compatible for the foreseeable future, # to ensure that we error out properly for people with outdated setuptools # and/or pip. min_version = (3, 7) if sys.version_info < min_version: ...
29.739726
77
0.660064
d5410e0bdb958e71e751e6cf74ebdee708970827
2,729
py
Python
steam-engine/steppermotor.py
craighagan/HalloweenCostumes
39656eabd26b2ee5b52252e9ca28f6cd201de919
[ "Artistic-2.0" ]
null
null
null
steam-engine/steppermotor.py
craighagan/HalloweenCostumes
39656eabd26b2ee5b52252e9ca28f6cd201de919
[ "Artistic-2.0" ]
null
null
null
steam-engine/steppermotor.py
craighagan/HalloweenCostumes
39656eabd26b2ee5b52252e9ca28f6cd201de919
[ "Artistic-2.0" ]
null
null
null
#!/usr/bin/env python # # wrapper for my 28BYJ-48 with a ULN2003 # board # # the basics stolen from : # http://www.raspberrypi-spy.co.uk/2012/07/stepper-motor-control-in-python/ import time import RPi.GPIO as GPIO # cleanup anything which may already have been # programmed GPIO.cleanup() # Use BCM GPIO references # ...
25.745283
92
0.654819
d54122aa073979f05948e40a7dcecec2ac4b50e9
2,402
py
Python
tests/unit/cipher/test_caesar.py
TingluoHuang/caesar_cipher
98169ece1b2a202b6d9d643ad9a498262b36ed03
[ "MIT" ]
null
null
null
tests/unit/cipher/test_caesar.py
TingluoHuang/caesar_cipher
98169ece1b2a202b6d9d643ad9a498262b36ed03
[ "MIT" ]
1
2019-10-16T19:29:34.000Z
2019-10-16T19:29:34.000Z
tests/unit/cipher/test_caesar.py
TingluoHuang/caesar_cipher
98169ece1b2a202b6d9d643ad9a498262b36ed03
[ "MIT" ]
1
2020-01-06T21:06:02.000Z
2020-01-06T21:06:02.000Z
import unittest from src.cipher.caesar import encrypt, trans_tables class TestCaesar(unittest.TestCase): """ caesar cipher should move [a-zA-Z] in a circular list. it should ignore all other characters, e.g. punctuation. A!, 1 -> B! it should preserve capitalization. e.g. AsDf, 2 -> CuFh. """ ...
35.850746
79
0.629059
d541262a62c04814f4a7a96fe01cf8af9e7be930
403
py
Python
src/beast/python/beast/env/AddCommonFlags.py
Ziftr/stellard
626514cbbb2c6c2b6844315ca98a2bfcbca0b43d
[ "BSL-1.0" ]
58
2015-01-07T09:10:59.000Z
2019-07-15T14:34:01.000Z
src/beast/python/beast/env/AddCommonFlags.py
Ziftr/stellard
626514cbbb2c6c2b6844315ca98a2bfcbca0b43d
[ "BSL-1.0" ]
12
2015-01-02T00:01:45.000Z
2018-04-25T12:35:02.000Z
src/beast/python/beast/env/AddCommonFlags.py
Ziftr/stellard
626514cbbb2c6c2b6844315ca98a2bfcbca0b43d
[ "BSL-1.0" ]
23
2015-01-04T00:13:27.000Z
2019-02-15T18:01:17.000Z
from __future__ import absolute_import, division, print_function, unicode_literals from beast.util import Boost from beast.util import Git def add_common_flags(env): git_flag = '-DTIP_BRANCH="%s"' % Git.describe() env['CPPFLAGS'] = '%s %s' % (env['CPPFLAGS'], git_flag) env['CPPPATH'].insert(0, Boost.CPPPA...
33.583333
82
0.709677
d54147087ac14ffb2bd684453e1677af59104c97
933
py
Python
test/prune-equivalent-translations.py
noisychannel/joshua
cabf0a30b717ade61a3b8e2d2d65b0cb61f7cf36
[ "BSD-2-Clause" ]
null
null
null
test/prune-equivalent-translations.py
noisychannel/joshua
cabf0a30b717ade61a3b8e2d2d65b0cb61f7cf36
[ "BSD-2-Clause" ]
null
null
null
test/prune-equivalent-translations.py
noisychannel/joshua
cabf0a30b717ade61a3b8e2d2d65b0cb61f7cf36
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # A given source side can have multiple target sides, and these pairs # can have the same scores. This results in nondeterminism in the # output, since any of the equally-scored derivations might be # selected based on low-level architectural and library details. This # in turn makes testing di...
29.15625
70
0.673098
d5414ea21d9df616fb6f689cfef4d1d92762fcd2
982
py
Python
tql/ml/sampler/SupervisedSampling.py
Jie-Yuan/1_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
14
2019-06-25T13:46:32.000Z
2020-10-27T02:04:59.000Z
tql/ml/sampler/SupervisedSampling.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
null
null
null
tql/ml/sampler/SupervisedSampling.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
7
2019-06-25T13:26:16.000Z
2020-10-27T02:05:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Project : tql-Python. # @File : SupervisedSampling # @Time : 2020/9/24 12:14 下午 # @Author : yuanjie # @Email : yuanjie@xiaomi.com # @Software : PyCharm # @Description : import numpy as np class SupervisedSampling(object): ""...
27.277778
82
0.577393
d54153617c6020408cec975e578ed3b5fd827bb5
5,272
py
Python
api/rest_interface.py
COVIDAnalytics/website
482f29bfd3064af2c0b0c839624eff0800e04623
[ "MIT" ]
12
2020-04-07T03:30:13.000Z
2020-09-06T05:45:32.000Z
api/rest_interface.py
COVIDAnalytics/website
482f29bfd3064af2c0b0c839624eff0800e04623
[ "MIT" ]
58
2020-04-06T21:25:34.000Z
2020-11-19T18:50:06.000Z
api/rest_interface.py
COVIDAnalytics/website
482f29bfd3064af2c0b0c839624eff0800e04623
[ "MIT" ]
11
2020-04-14T11:38:21.000Z
2021-09-06T13:00:18.000Z
import json import pickle from flask_restful import reqparse, Resource import numpy as np from risk_calculator.utils import predict_risk # Def classes for different API Endpoints class MortalityCalcNoLabsEndpoint(Resource): def get(self): parser = reqparse.RequestParser() args = parseArgs(parse...
31.011765
118
0.609256
d5419eec9f640d574361c98edb9b0cad648ddf25
2,882
py
Python
socfaker/alert.py
atstpls/soc-faker
119fcb9c4329a918ef9001ac5eaa36251b862bf0
[ "MIT" ]
null
null
null
socfaker/alert.py
atstpls/soc-faker
119fcb9c4329a918ef9001ac5eaa36251b862bf0
[ "MIT" ]
null
null
null
socfaker/alert.py
atstpls/soc-faker
119fcb9c4329a918ef9001ac5eaa36251b862bf0
[ "MIT" ]
null
null
null
import random, requests, os, ast from bs4 import BeautifulSoup from .network import Network class Alert(object): __DATA_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), 'data')) @property def summary(self): return '{status} {action} {type} {direction} {location}'.format( ...
35.146341
112
0.59195
d541d91677f6570590c188c303dc79841b27d743
827
py
Python
py2update/my2to3.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
py2update/my2to3.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
py2update/my2to3.py
nebiutadele/2022-02-28-Alta3-Python
9c065540bfdf432103bfffac6eae4972c9f9061a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 thisround = 0 # integer round initiated to 0 while(True): # sets up an infinite loop condition print('What is the IPv4 address used to broadcast on a local network? ') answer = input() # string answer collected from user thisround = thisround + 1 # increase th...
48.647059
82
0.620314
d541f9f31fffad2beed2506f422a7ac0e06e7b31
475
py
Python
venv/Scripts/easy_install-3.8-script.py
AntoData/PrivateAttributesProject
df1bab2d705ae761b59d6e13702598498ac92b58
[ "MIT" ]
null
null
null
venv/Scripts/easy_install-3.8-script.py
AntoData/PrivateAttributesProject
df1bab2d705ae761b59d6e13702598498ac92b58
[ "MIT" ]
null
null
null
venv/Scripts/easy_install-3.8-script.py
AntoData/PrivateAttributesProject
df1bab2d705ae761b59d6e13702598498ac92b58
[ "MIT" ]
null
null
null
#!C:\Users\ingov\PycharmProjects\PrivateAttributesProject\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.su...
36.538462
87
0.705263
d5422e9486b09c7371871999d6fa179f91d726a2
2,626
py
Python
pyvista_gui/utilities.py
akaszynski/pyvista-gui
4ed7e3a52026dfeab4e82a300b92a92f43060dda
[ "MIT" ]
6
2019-11-20T20:08:42.000Z
2022-02-24T12:24:20.000Z
pyvista_gui/utilities.py
akaszynski/pyvista-gui
4ed7e3a52026dfeab4e82a300b92a92f43060dda
[ "MIT" ]
6
2020-01-27T16:15:11.000Z
2021-04-12T11:42:11.000Z
pyvista_gui/utilities.py
akaszynski/pyvista-gui
4ed7e3a52026dfeab4e82a300b92a92f43060dda
[ "MIT" ]
null
null
null
import logging import sys import time import traceback from functools import wraps from threading import Thread log = logging.getLogger(__name__) log.setLevel('DEBUG') # python 2/3 string compatability if sys.version[0] == '2': from past.builtins import basestring else: basestring = str def build_command(o...
26
66
0.591013
d54277044cde678a5011da868128bcc7338b2528
23,534
py
Python
tests/app/main/views/test_jobs.py
cds-snc/notification-admin
d4056798bf889ad29893667bbb67ead2f8e466e4
[ "MIT" ]
16
2019-11-05T21:35:49.000Z
2022-01-12T15:00:32.000Z
tests/app/main/views/test_jobs.py
cds-snc/notification-admin
d4056798bf889ad29893667bbb67ead2f8e466e4
[ "MIT" ]
509
2019-07-11T22:03:19.000Z
2022-03-30T15:19:26.000Z
tests/app/main/views/test_jobs.py
cds-snc/notification-admin
d4056798bf889ad29893667bbb67ead2f8e466e4
[ "MIT" ]
8
2020-02-21T20:19:29.000Z
2022-03-31T14:17:02.000Z
import json import uuid import pytest from flask import url_for from freezegun import freeze_time from app.main.views.jobs import get_available_until_date from tests import job_json, notification_json, sample_uuid from tests.conftest import ( JOB_API_KEY_NAME, SERVICE_ONE_ID, active_caseworking_user, ...
31.378667
128
0.669372
d5428bc119b6668b62ddb116c91accba783c02cd
9,150
py
Python
pywick/models/segmentation/testnets/tkcnet/resnet.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
2
2020-11-28T07:56:09.000Z
2021-11-08T09:30:39.000Z
pywick/models/segmentation/testnets/tkcnet/resnet.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
pywick/models/segmentation/testnets/tkcnet/resnet.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
"""Dilated ResNet""" import math import torch import torch.utils.model_zoo as model_zoo import torch.nn as nn __all__ = ['ResNet', 'resnet50', 'resnet101', 'BasicBlock', 'Bottleneck'] model_urls = { 'resnet50': 'https://download.pytorch.org/models/resnet50-19c8e357.pth', 'resnet101': 'https://download.pytorch...
37.346939
162
0.602514
d542b10ac8b37f5e75a97c5ee081973b23ac8e21
29,908
py
Python
tlsmate/ext.py
timb-machine-mirrors/tlsmate
1313161b9170311f466a3a43b3d84797cecc0291
[ "MIT" ]
null
null
null
tlsmate/ext.py
timb-machine-mirrors/tlsmate
1313161b9170311f466a3a43b3d84797cecc0291
[ "MIT" ]
null
null
null
tlsmate/ext.py
timb-machine-mirrors/tlsmate
1313161b9170311f466a3a43b3d84797cecc0291
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Module containing the TLS Extension classes """ # import basic stuff import abc import time import logging from typing import Tuple, Any, Optional, List, Union # import own stuff import tlsmate.client_state as client_state import tlsmate.tls as tls import tlsmate.structs as structs import t...
32.367965
88
0.660292
d54303ac0ac50fb3137526ba479a90e648e2a94d
8,330
py
Python
src/bot/matchmaking/beacondynamodb/beacondb.py
monkiepaws/polybotpy
cd76b7a536bcbb9638782904a7dec97eb92626de
[ "MIT" ]
1
2021-03-14T02:47:20.000Z
2021-03-14T02:47:20.000Z
src/bot/matchmaking/beacondynamodb/beacondb.py
monkiepaws/polybotpy
cd76b7a536bcbb9638782904a7dec97eb92626de
[ "MIT" ]
null
null
null
src/bot/matchmaking/beacondynamodb/beacondb.py
monkiepaws/polybotpy
cd76b7a536bcbb9638782904a7dec97eb92626de
[ "MIT" ]
1
2021-03-07T04:42:47.000Z
2021-03-07T04:42:47.000Z
from abc import ABC from datetime import datetime, timezone from typing import Dict, Optional, Sequence import aioboto3 from boto3.dynamodb.conditions import Key from ..beacons import BeaconBase, Game, Platform, WaitTime from ..dataaccess import BeaconDataAccessBase class DynamoDbQueryParams: """Class to encaps...
35.446809
79
0.626291
d543520483ab8447241d7e00a014b0738e341a7b
869
py
Python
tartangan/trainers/components/base.py
awentzonline/tartangan
2d36a81fa0ae91fe6b9b4e1f26763285630837fb
[ "MIT" ]
null
null
null
tartangan/trainers/components/base.py
awentzonline/tartangan
2d36a81fa0ae91fe6b9b4e1f26763285630837fb
[ "MIT" ]
null
null
null
tartangan/trainers/components/base.py
awentzonline/tartangan
2d36a81fa0ae91fe6b9b4e1f26763285630837fb
[ "MIT" ]
null
null
null
import abc class TrainerComponent(abc.ABC): """Interface for composable functionality in the Trainer.""" def __init__(self, args): self.args = args def on_train_begin(self, steps, logs): pass def on_train_end(self, steps, logs): pass def on_batch_begin(self, steps, logs)...
21.725
83
0.624856
d5435e1d2daac6a4d2ed2c7dffec8fecd2dd2fbc
139
py
Python
properconf/__init__.py
jpsca/properconf
ff1d1b11110bbc56b1507d204c1b61ef827ad83b
[ "MIT" ]
2
2020-09-30T22:41:04.000Z
2020-12-30T12:43:49.000Z
properconf/__init__.py
jpsca/properconf
ff1d1b11110bbc56b1507d204c1b61ef827ad83b
[ "MIT" ]
null
null
null
properconf/__init__.py
jpsca/properconf
ff1d1b11110bbc56b1507d204c1b61ef827ad83b
[ "MIT" ]
null
null
null
from .cli import * # noqa from .configdict import ConfigDict # noqa from .main import * # noqa from .version import __version__ # noqa
27.8
42
0.726619
d543972cdf3d8fd3c7ab976edde5aa1ab811a5b3
1,424
py
Python
alipay/aop/api/domain/ScenicAuditQueryReq.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/domain/ScenicAuditQueryReq.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/domain/ScenicAuditQueryReq.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.constant.ParamConstants import * class ScenicAuditQueryReq(object): def __init__(self): self._scenic_app_id = None self._scenic_id = None @property def scenic_app_id(self): return self._scenic_app_id ...
25.428571
77
0.599719
d543cfd6b72bc6462b04f5bd99c7aa0ff532eebf
9,462
py
Python
pylinkchecker/bs4/builder/_htmlparser.py
randomtask1155/pylinkchecker
42645112edcf5d9af77c670415c5f69f04b6b8aa
[ "BSD-3-Clause" ]
27
2015-04-27T15:52:51.000Z
2020-04-20T07:19:21.000Z
pylinkchecker/bs4/builder/_htmlparser.py
randomtask1155/pylinkchecker
42645112edcf5d9af77c670415c5f69f04b6b8aa
[ "BSD-3-Clause" ]
6
2015-06-09T20:11:50.000Z
2017-06-23T07:40:05.000Z
pylinkchecker/bs4/builder/_htmlparser.py
randomtask1155/pylinkchecker
42645112edcf5d9af77c670415c5f69f04b6b8aa
[ "BSD-3-Clause" ]
10
2015-04-17T19:47:40.000Z
2020-03-01T20:01:03.000Z
"""Use the HTMLParser library to parse HTML files that aren't too bad.""" import sys if sys.version_info[0] < 3: __all__ = [ 'HTMLParserTreeBuilder', ] from HTMLParser import ( HTMLParser, HTMLParseError, ) import sys import warnings # Starting in Python 3...
37.399209
322
0.528535
d543d277860d41ee36b90c4e42db2b4dffb93ce5
6,739
py
Python
asposewordscloud/models/revisions_modification_response.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
asposewordscloud/models/revisions_modification_response.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
asposewordscloud/models/revisions_modification_response.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="revisions_modification_response.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtainin...
36.825137
139
0.600237
d544239376b0f5f8d7f9f264d71c67817f75bfd0
3,275
py
Python
HC_IC_binary_classification/experiments/e80_20/model_dump/m2.py
hbachchas/dlbasics
6db615ca4bd2f88e85a93441ea88f527ae245445
[ "MIT" ]
null
null
null
HC_IC_binary_classification/experiments/e80_20/model_dump/m2.py
hbachchas/dlbasics
6db615ca4bd2f88e85a93441ea88f527ae245445
[ "MIT" ]
null
null
null
HC_IC_binary_classification/experiments/e80_20/model_dump/m2.py
hbachchas/dlbasics
6db615ca4bd2f88e85a93441ea88f527ae245445
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy as np from hyperopt import Trials, STATUS_OK, tpe from keras.datasets import mnist from keras.layers.core import Dense, Dropout, Activation from keras.models import Sequential from keras.utils import np_utils from hyperas import optim from hyperas.distributions impor...
36.797753
83
0.643053
d5442ed9645bc459a03a38e07d23d95c2e6cfb7d
21,386
py
Python
stagpy/_step.py
Laetitia1402/StagPy
5154ca2a682e91ab44dbed8118436f0dbaf0d0a6
[ "Apache-2.0" ]
null
null
null
stagpy/_step.py
Laetitia1402/StagPy
5154ca2a682e91ab44dbed8118436f0dbaf0d0a6
[ "Apache-2.0" ]
null
null
null
stagpy/_step.py
Laetitia1402/StagPy
5154ca2a682e91ab44dbed8118436f0dbaf0d0a6
[ "Apache-2.0" ]
null
null
null
"""Implementation of Step objects. Note: This module and the classes it defines are internals of StagPy, they should not be used in an external script. Instead, use the :class:`~stagpy.stagyydata.StagyyData` class. """ from __future__ import annotations from collections import abc from itertools import c...
34.830619
79
0.579538
d54436a073322c47b1ee59c0942c36f45febaf63
2,863
py
Python
Backends/patches/montepythonlike/3.3.0/MPLike_patch_script.py
sebhoof/gambit_1.5
f9a3f788e3331067c555ae1a030420e903c6fdcd
[ "Unlicense" ]
2
2020-09-08T20:05:27.000Z
2021-04-26T07:57:56.000Z
Backends/patches/montepythonlike/3.3.0/MPLike_patch_script.py
sebhoof/gambit_1.5
f9a3f788e3331067c555ae1a030420e903c6fdcd
[ "Unlicense" ]
9
2020-10-19T09:56:17.000Z
2021-05-28T06:12:03.000Z
Backends/patches/montepythonlike/3.3.0/MPLike_patch_script.py
sebhoof/gambit_1.5
f9a3f788e3331067c555ae1a030420e903c6fdcd
[ "Unlicense" ]
5
2020-09-08T02:23:34.000Z
2021-03-23T08:48:04.000Z
''' GAMBIT: Global and Modular BSM Inference Tool // ********************************************* /// \file /// script to patch MontePython to work with gambit /// /// - harvest all likelihoods included in montepython/likelihoods folder /// - create list of available likelihoods /// - replace import statem...
39.763889
128
0.65875
d54451bac51701870a5aeed1fb2ba59fd24afc2c
350
py
Python
examples/simulator_control/set_new_initial_condition.py
pmatigakis/flightsim
a35fec1df844eec05c7ab97a7c70c750e43a9f08
[ "BSD-3-Clause" ]
13
2015-11-14T03:57:42.000Z
2021-04-19T18:12:30.000Z
examples/simulator_control/set_new_initial_condition.py
pmatigakis/flightsim
a35fec1df844eec05c7ab97a7c70c750e43a9f08
[ "BSD-3-Clause" ]
null
null
null
examples/simulator_control/set_new_initial_condition.py
pmatigakis/flightsim
a35fec1df844eec05c7ab97a7c70c750e43a9f08
[ "BSD-3-Clause" ]
7
2016-08-30T10:44:00.000Z
2019-11-23T10:24:24.000Z
from huginn.control import SimulatorControlClient client = SimulatorControlClient("localhost", 8090) latitude = 37.9232547 longitude = 23.921773 altitude = 300.0 airspeed = 30.0 heading = 45.0 paused = True client.set_initial_condition(latitude, longitude, altitude, heading, airspeed) client.start_paused(paused) cl...
19.444444
78
0.791429
d5447f8bdc0a37c5883f65b916050dbce1b48c72
23,755
py
Python
forms.py
chucktilbury/Accounting2-TK
e35532df15f670428961ffed024b594accb5708c
[ "MIT" ]
null
null
null
forms.py
chucktilbury/Accounting2-TK
e35532df15f670428961ffed024b594accb5708c
[ "MIT" ]
null
null
null
forms.py
chucktilbury/Accounting2-TK
e35532df15f670428961ffed024b594accb5708c
[ "MIT" ]
null
null
null
import tkinter as tk from tkinter.messagebox import showerror, showinfo, askyesno import tkinter.ttk as ttk from utility import debugger, Logger from database import Database from dialogs import SelectItem class ScrollableFrame: ''' This is the scrollable frame class that is used by the notebook class. It ...
35.721805
133
0.576005
d5448a1e7f5c137d1a4dea5baedfe99624a4afce
53,710
py
Python
google/cloud/compute_v1/services/resource_policies/client.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/resource_policies/client.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/resource_policies/client.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 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...
45.286678
107
0.617632
d5448aed8ca38476f9ab1a44643e60c84bed2e0c
1,093
py
Python
helperscripts/fix_mrc_id.py
waehniger/efre-lod-elasticsearch-tools
e5025ac810c369135fab90be88d29ab073ccbebb
[ "Apache-2.0" ]
null
null
null
helperscripts/fix_mrc_id.py
waehniger/efre-lod-elasticsearch-tools
e5025ac810c369135fab90be88d29ab073ccbebb
[ "Apache-2.0" ]
null
null
null
helperscripts/fix_mrc_id.py
waehniger/efre-lod-elasticsearch-tools
e5025ac810c369135fab90be88d29ab073ccbebb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import json import sys from es2json import eprint, isint def fix_mrc_id(jline): if "001" in jline and isinstance(jline["001"],list): _id=jline.pop("001") for elem in _id: jline["001"]=elem if elem=="0021114284" or len(elem)>512: # this particulary FINC-M...
26.658537
135
0.558097
d5449fb915ea8d0a6d2f4d0b5f5b9c79ec69c1dd
19,307
py
Python
cannab/create_submission.py
SpaceNetChallenge/SpaceNet_Optimized_Routing_Solutions
3fbc215de6b05904a5b54b2c7cde7e61074ae38d
[ "Apache-2.0" ]
27
2020-03-04T05:54:48.000Z
2022-01-05T07:07:44.000Z
cannab/create_submission.py
CosmiQ/SpaceNet_Optimized_Routing_Solutions
3fbc215de6b05904a5b54b2c7cde7e61074ae38d
[ "Apache-2.0" ]
1
2020-07-14T10:35:50.000Z
2020-07-14T10:35:50.000Z
cannab/create_submission.py
SpaceNetChallenge/SpaceNet_Optimized_Routing_Solutions
3fbc215de6b05904a5b54b2c7cde7e61074ae38d
[ "Apache-2.0" ]
7
2020-03-07T21:42:57.000Z
2022-01-07T10:49:50.000Z
# -*- coding: utf-8 -*- import os os.environ["MKL_NUM_THREADS"] = "1" os.environ["NUMEXPR_NUM_THREADS"] = "1" os.environ["OMP_NUM_THREADS"] = "1" from os import path, listdir import numpy as np np.random.seed(1) import random random.seed(1) import pandas as pd import timeit import cv2 from tqdm import tqdm import sy...
37.708984
110
0.481069
d544a050b5ed43cc0df50f43e4fb6176ed6f1371
1,069
py
Python
blockchains/mark_3/blockchain.py
NicolaCostantino/Blockchain-Internals
3baf798863b1bc34c5b939007867b665001cb5d0
[ "MIT" ]
null
null
null
blockchains/mark_3/blockchain.py
NicolaCostantino/Blockchain-Internals
3baf798863b1bc34c5b939007867b665001cb5d0
[ "MIT" ]
558
2019-07-15T07:21:07.000Z
2022-03-30T12:11:19.000Z
blockchains/mark_3/blockchain.py
NicolaCostantino/Blockchain-Internals
3baf798863b1bc34c5b939007867b665001cb5d0
[ "MIT" ]
null
null
null
from ..mark_1.blockchain import Blockchain as BlockchainMark1 from ..mark_1 import validation class Blockchain(BlockchainMark1): def is_valid(self, chain=None): """ Determine the blockchain is valid :return: True if valid, False if not """ chain_to_validate = chain if chai...
29.694444
71
0.616464
d544ae2daa5f45c2cb2aec04b76d1e7b4dc39760
826
py
Python
master/kismet-2018-08-BETA1/kismet-2018-08-BETA1/rest_examples/old/ssid_list2.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/kismet-2018-08-BETA1/kismet-2018-08-BETA1/rest_examples/old/ssid_list2.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
master/kismet-2018-08-BETA1/kismet-2018-08-BETA1/rest_examples/old/ssid_list2.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
#!/usr/bin/env python import sys, KismetRest if len(sys.argv) < 2: print "Expected server URI" sys.exit(1) kr = KismetRest.KismetConnector(sys.argv[1]) # Get summary of devices devices = kr.device_summary() if len(devices) == 0: print "No devices" # Print the SSID for every device we can. Stupid prin...
23.6
70
0.66586
d544ba4cef76b8f104cbeb9dcad0ea5168e8fadd
30
py
Python
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/PlayerStats/Btd6PlayerStatPair/btd6_player_stat_pair.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/PlayerStats/Btd6PlayerStatPair/btd6_player_stat_pair.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Unity/UI_New/PlayerStats/Btd6PlayerStatPair/btd6_player_stat_pair.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class Btd6PlayerStatPair: pass
30
30
0.9
d544c9c2e096dfba7548cc023aab1d656e12dbc6
3,638
py
Python
Assignment/Assignment2/word2vec_최혜빈/sgd.py
Tobigs-team/Text-Seminar
5db6e28e3345f276973113608fd0532480123fc7
[ "MIT" ]
7
2021-01-07T16:28:39.000Z
2022-03-06T00:34:48.000Z
Assignment/Assignment2/word2vec_최혜빈/sgd.py
jinseock95/Text-Seminar
5db6e28e3345f276973113608fd0532480123fc7
[ "MIT" ]
2
2020-11-05T07:19:25.000Z
2020-12-30T03:09:44.000Z
Assignment/Assignment2/word2vec_최혜빈/sgd.py
Tobigs-team/Text-Seminar
5db6e28e3345f276973113608fd0532480123fc7
[ "MIT" ]
18
2020-10-07T12:10:45.000Z
2020-12-30T10:55:25.000Z
#!/usr/bin/env python # Save parameters every a few SGD iterations as fail-safe SAVE_PARAMS_EVERY = 5000 import pickle import glob import random import numpy as np import os.path as op def load_saved_params(): """ A helper function that loads previously saved parameters and resets iteration start. ""...
26.362319
75
0.586036
d544d3dbdae0893584d2767a2adf4ea5c3ff6801
5,426
py
Python
src-dev/eda.py
brown-ccv/inquiry-for-philologic-dev
fa32d3a11815661cb5c16005d10048425913fea5
[ "MIT" ]
null
null
null
src-dev/eda.py
brown-ccv/inquiry-for-philologic-dev
fa32d3a11815661cb5c16005d10048425913fea5
[ "MIT" ]
null
null
null
src-dev/eda.py
brown-ccv/inquiry-for-philologic-dev
fa32d3a11815661cb5c16005d10048425913fea5
[ "MIT" ]
null
null
null
import config def agg_DC(dataframe): ''' calculate fraction derived corpus per year ''' years = dataframe.groupby(0).size().reset_index(name='count') yearsagg = years_all.merge(years, how='outer', on=0).fillna(value=0) yearsagg['diff'] = yearsagg['count_x']-yearsagg['count_y'] yearsagg['fr...
44.842975
79
0.676004
d544e6c3fcb5c35fac91fd48374811e6b870a767
5,859
py
Python
goatools/gosubdag/gosubdag.py
cinaljess/goatools
8cd603df88fcb49da970e37c445cdb1bdd17ee01
[ "BSD-2-Clause" ]
null
null
null
goatools/gosubdag/gosubdag.py
cinaljess/goatools
8cd603df88fcb49da970e37c445cdb1bdd17ee01
[ "BSD-2-Clause" ]
null
null
null
goatools/gosubdag/gosubdag.py
cinaljess/goatools
8cd603df88fcb49da970e37c445cdb1bdd17ee01
[ "BSD-2-Clause" ]
null
null
null
"""Manages a user-specified subset of a GO DAG.""" from __future__ import print_function __copyright__ = "Copyright (C) 2016-2018, DV Klopfenstein, H Tang, All rights reserved." __author__ = "DV Klopfenstein" import sys import collections as cx # import timeit # from goatools.test_data.godag_timed import prt_hms fro...
40.972028
99
0.596689
d5451ba0f7519705faa9416f061cb6ef29bcae0d
14,890
py
Python
app/clients/zendesk_sell.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
app/clients/zendesk_sell.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
app/clients/zendesk_sell.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
import json from enum import Enum from typing import Dict, List, Optional, Tuple, Union from urllib.parse import urljoin import requests from flask import current_app from app.authentication.bearer_auth import BearerAuth from app.models import Service, User from app.user.contact_request import ContactRequest __all__...
37.506297
122
0.590329
d54566fb173968b87622bde2aa2f5ee675ed21c6
16,096
py
Python
hs_labels/tests/test_resource_labelling.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_labels/tests/test_resource_labelling.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_labels/tests/test_resource_labelling.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
from django.test import TestCase from django.contrib.auth.models import User from django.contrib.auth.models import Group from hs_core import hydroshare from hs_core.models import BaseResource from hs_core.testing import MockIRODSTestCaseMixin from hs_labels.models import UserLabels, ResourceLabels, \ UserResource...
50.616352
117
0.691228
d5456ef41a0bd2231ba99e86d5b17cc38fb23513
3,104
py
Python
utils/data_processing/read_ebird.py
bentocg/Insight
fbc69aebc33cade000dcebff12c42015e036cb12
[ "MIT" ]
1
2020-02-06T03:54:40.000Z
2020-02-06T03:54:40.000Z
utils/data_processing/read_ebird.py
bentocg/Insight
fbc69aebc33cade000dcebff12c42015e036cb12
[ "MIT" ]
1
2022-03-25T05:16:31.000Z
2022-03-25T05:16:31.000Z
utils/data_processing/read_ebird.py
bentocg/Insight
fbc69aebc33cade000dcebff12c42015e036cb12
[ "MIT" ]
null
null
null
""" Read eBird ========================================================== Reads raw eBird text files and saves columns of interest. Reads .txt in chunks and appends them to an existing observations .csv file. Author: Bento Gonçalves License: MIT Copyright: 2020-2021 """ __all__ = ['load_ebird'] import time from argp...
36.952381
122
0.574742
d545ab85929dde348be25840e82e0ff2e7e7b1da
8,577
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/layout/scene/annotation/hoverlabel/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
1
2020-08-08T21:56:11.000Z
2020-08-08T21:56:11.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/layout/scene/annotation/hoverlabel/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2021-03-31T19:54:17.000Z
2021-06-02T02:33:56.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/layout/scene/annotation/hoverlabel/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): # color # ----- @property def color(self): """ The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff00...
37.618421
87
0.570712
d545e449207ee0901d6fdef19cb8f03c918cac60
4,279
py
Python
src/data_util.py
Horacehxw/Multi-label
76095c72327e9aa379eaa653dbbb775ca638e6db
[ "MIT" ]
1
2019-04-24T15:24:48.000Z
2019-04-24T15:24:48.000Z
src/data_util.py
Horacehxw/Multi-label
76095c72327e9aa379eaa653dbbb775ca638e6db
[ "MIT" ]
null
null
null
src/data_util.py
Horacehxw/Multi-label
76095c72327e9aa379eaa653dbbb775ca638e6db
[ "MIT" ]
null
null
null
from sklearn.preprocessing import MultiLabelBinarizer # convert y to {0,1}^L from sklearn.feature_extraction import DictVectorizer # extract feature vector to x import numpy as np from sklearn.preprocessing import StandardScaler # normalize features class DataPoint(): def __init__(self): self.labels = [] ...
34.788618
110
0.610657
d5460d6829cdf12e885054e85269a8f6ebb1da4e
6,536
py
Python
tests_ui/helpers/onesec_api.py
LoshmanovNA/pet-project
127e8efc11738ef681220dc7dece18dd3f14ec08
[ "MIT" ]
1
2020-01-18T18:18:33.000Z
2020-01-18T18:18:33.000Z
tests_ui/helpers/onesec_api.py
LoshmanovNA/moesk
127e8efc11738ef681220dc7dece18dd3f14ec08
[ "MIT" ]
3
2021-03-31T19:32:57.000Z
2021-12-13T20:33:50.000Z
tests_ui/helpers/onesec_api.py
LoshmanovNA/moesk
127e8efc11738ef681220dc7dece18dd3f14ec08
[ "MIT" ]
null
null
null
import requests import json import random import string import time import lxml.html as HT #comment class Mailbox: """Main operation with 1secmail.com api: 'get' - get all mail in box 'read' - read message in box (need message id) 'del' - clear mailbox, all messages be removed! """ def __ini...
32.356436
114
0.452417
d546696a44f1f9f19cac9968f82e473dfb1302af
16,551
py
Python
tests/app/data_model/test_progress_store.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
tests/app/data_model/test_progress_store.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
tests/app/data_model/test_progress_store.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
import pytest from app.data_model.progress import Progress from app.data_model.progress_store import ProgressStore, CompletionStatus from app.questionnaire.location import Location def test_serialisation(): store = ProgressStore() store.add_completed_location(Location(section_id="s1", block_id="one")) s...
28.935315
87
0.574104
d5467d2ac5599e00477c906d65f202c05896986b
2,253
py
Python
setup.py
JelleZijlstra/asynq
e69469b7c3af62439c82434202a349c43da4159d
[ "Apache-2.0" ]
null
null
null
setup.py
JelleZijlstra/asynq
e69469b7c3af62439c82434202a349c43da4159d
[ "Apache-2.0" ]
null
null
null
setup.py
JelleZijlstra/asynq
e69469b7c3af62439c82434202a349c43da4159d
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Quora, 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, so...
27.47561
74
0.630271
d546d63ac8ef004d0e07e689ae4a288599fe44d7
1,361
py
Python
tests/test_compute_coord.py
zefeiteo/toyrobotchallenge
ecba6878d0aa923d87e915de141da74b707d4a7a
[ "MIT" ]
1
2021-11-12T08:16:57.000Z
2021-11-12T08:16:57.000Z
tests/test_compute_coord.py
zefeiteo/toyrobotchallenge
ecba6878d0aa923d87e915de141da74b707d4a7a
[ "MIT" ]
14
2021-11-11T17:19:38.000Z
2021-11-11T17:41:18.000Z
tests/test_compute_coord.py
zefeiteo/toyrobotchallenge
ecba6878d0aa923d87e915de141da74b707d4a7a
[ "MIT" ]
null
null
null
import unittest import os import sys # Import from 'toyrobot' subfolder sys.path.insert(0,'.') from toyrobot.table import Table from toyrobot.robot import Robot, InvalidPosError # Clears terminal os.system('cls') # Variable table dimensions tDimX = 5 tDimY = 5 # Define table dimensions table = Table(tDimX, tDimY) ...
27.22
75
0.628215
d5471a50ed2a429ec4329a3d60e93b0264a098a8
15,825
py
Python
pyglm/utils/basis.py
slinderman/theano_pyglm
c7fc11069dfe91b0eb7c96b8464fcd0f57442952
[ "MIT" ]
37
2015-04-08T15:11:51.000Z
2022-01-05T19:32:58.000Z
pyglm/utils/basis.py
slinderman/theano_pyglm
c7fc11069dfe91b0eb7c96b8464fcd0f57442952
[ "MIT" ]
2
2016-03-08T02:39:58.000Z
2017-03-29T08:51:08.000Z
pyglm/utils/basis.py
slinderman/theano_pyglm
c7fc11069dfe91b0eb7c96b8464fcd0f57442952
[ "MIT" ]
10
2015-02-25T21:47:50.000Z
2020-03-06T00:21:48.000Z
import os import numpy as np import scipy from pyglm.utils import fftconv def create_basis(prms): """ Create a basis for impulse response functions """ type = prms['type'].lower() if type == 'exp': basis = create_exp_basis(prms) elif type == 'cosine': basis = create_cosine_basis(...
34.856828
99
0.600126
d54762b0cb2f3ff07e6a702e7b72652f00fb1391
12,337
py
Python
mediagoblin/auth/views.py
acidburn0zzz/mediagoblin
8fc57eaaa6e22358a1220a0baf589a4b20dd8cfe
[ "CC0-1.0" ]
1
2018-12-19T00:05:55.000Z
2018-12-19T00:05:55.000Z
mediagoblin/auth/views.py
acidburn0zzz/mediagoblin
8fc57eaaa6e22358a1220a0baf589a4b20dd8cfe
[ "CC0-1.0" ]
null
null
null
mediagoblin/auth/views.py
acidburn0zzz/mediagoblin
8fc57eaaa6e22358a1220a0baf589a4b20dd8cfe
[ "CC0-1.0" ]
null
null
null
# GNU MediaGoblin -- federated, autonomous media hosting # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either versio...
34.364903
99
0.64262
d547843d30e9b0444b48c30e9f4a939cfeae456b
1,248
py
Python
backend/movie/migrations/0001_initial.py
suzanpradhan/slicedtv
0d78dae366cd50647d5c40ec921e97a7a03047b2
[ "BSD-3-Clause" ]
1
2020-11-22T11:10:31.000Z
2020-11-22T11:10:31.000Z
backend/movie/migrations/0001_initial.py
suzanpradhan/slicedtv
0d78dae366cd50647d5c40ec921e97a7a03047b2
[ "BSD-3-Clause" ]
1
2020-12-08T05:25:54.000Z
2020-12-08T05:42:40.000Z
backend/movie/migrations/0001_initial.py
suzanpradhan/slicedtv
0d78dae366cd50647d5c40ec921e97a7a03047b2
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.0.5 on 2020-12-08 08:12 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('slice', '0001_initial'), ] operations = [ migrations.CreateModel( name='Movie', fields=[ ...
35.657143
114
0.546474