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
93b1c49d870f14a95eae68d75075680996b8b8d5
3,098
py
Python
tests/test_bunch.py
isprime/marrow.util
4238b6f7d6262fe217f7753d770e97fa0beedf4d
[ "MIT" ]
null
null
null
tests/test_bunch.py
isprime/marrow.util
4238b6f7d6262fe217f7753d770e97fa0beedf4d
[ "MIT" ]
null
null
null
tests/test_bunch.py
isprime/marrow.util
4238b6f7d6262fe217f7753d770e97fa0beedf4d
[ "MIT" ]
null
null
null
# encoding: utf-8 from unittest import TestCase from marrow.util.bunch import Bunch, MultiBunch class TestAttributeDictionary(TestCase): def test_empty_creation(self): d = Bunch() assert not d def test_populated_creation(self): d = Bunch(name='value') self.assertEqual(d...
26.478632
66
0.528083
93b1f441864d9461aadf0fc82dbd4f1c2ff03a50
42,294
py
Python
superset/connectors/sqla/models.py
rodrigoguariento/incubator-superset
b2633a51d43faaca74751349b96fc32784d4b377
[ "Apache-2.0" ]
7
2017-11-01T06:00:12.000Z
2019-01-05T13:31:48.000Z
superset/connectors/sqla/models.py
Odirlei-Stein/incubator-superset
52afc33b31475536b287b56d262b9eaa32f479ab
[ "Apache-2.0" ]
7
2020-03-24T18:17:39.000Z
2022-03-29T22:28:10.000Z
superset/connectors/sqla/models.py
Odirlei-Stein/incubator-superset
52afc33b31475536b287b56d262b9eaa32f479ab
[ "Apache-2.0" ]
3
2020-04-15T16:34:09.000Z
2020-06-22T17:26:45.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.087031
89
0.58857
93b21f379808e7794de4dfeaa73e4e318744a55d
2,731
py
Python
tests/data_structures/linked_list_test.py
alysivji/sivtools
570dba15e9669bc4e20e7dffc60fb2c70443456f
[ "MIT" ]
6
2018-09-14T16:18:00.000Z
2022-03-27T19:50:31.000Z
tests/data_structures/linked_list_test.py
alysivji/sivtools
570dba15e9669bc4e20e7dffc60fb2c70443456f
[ "MIT" ]
11
2018-01-31T14:18:54.000Z
2020-06-09T00:46:45.000Z
tests/data_structures/linked_list_test.py
alysivji/sivtools
570dba15e9669bc4e20e7dffc60fb2c70443456f
[ "MIT" ]
null
null
null
import pytest from sivtools.data_structures import LinkedList def test_create_empty_list(): test_list = LinkedList() assert len(test_list) == 0 def test_create_list_with_elements(): initial_list = [0, 1, 2, 3, 4, 5] test_list = LinkedList(initial_list) assert len(test_list) == len(initial_list...
23.95614
55
0.666056
93b2305ba1aec1e249f5145cbcf06ceb58bf3241
14,304
py
Python
st2api/tests/unit/controllers/v1/test_rules_rbac.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
st2api/tests/unit/controllers/v1/test_rules_rbac.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
2
2020-03-04T08:33:36.000Z
2020-03-04T08:34:14.000Z
st2api/tests/unit/controllers/v1/test_rules_rbac.py
magiceses/st2
a048ba92a8a1a5d272f277bf8fab0951df903306
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
49.154639
99
0.682466
93b247852caf91d3a71f4136f9401351434dd7c2
730
py
Python
alipay/aop/api/response/AlipayOpenSpBlueseaactivityCreateResponse.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/response/AlipayOpenSpBlueseaactivityCreateResponse.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/response/AlipayOpenSpBlueseaactivityCreateResponse.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.response.AlipayResponse import AlipayResponse class AlipayOpenSpBlueseaactivityCreateResponse(AlipayResponse): def __init__(self): super(AlipayOpenSpBlueseaactivityCreateResponse, self).__init__() self._order_id = None...
28.076923
114
0.720548
93b249b496b652421498e0730fc95a6231f84bca
765
py
Python
show_stardist_model.py
sebi06/czi_demos
b3f7801f46de0138a8a1ac245e9c80787e0a3f17
[ "MIT" ]
3
2020-12-31T10:06:42.000Z
2021-11-09T13:44:16.000Z
show_stardist_model.py
sebi06/czi_demos
b3f7801f46de0138a8a1ac245e9c80787e0a3f17
[ "MIT" ]
null
null
null
show_stardist_model.py
sebi06/czi_demos
b3f7801f46de0138a8a1ac245e9c80787e0a3f17
[ "MIT" ]
null
null
null
from __future__ import print_function, unicode_literals, absolute_import, division import sys import numpy as np import matplotlib.pyplot as plt # %matplotlib inline # %config InlineBackend.figure_format = 'retina' from glob import glob from tifffile import imread from csbdeep.utils import Path, normalize from csbdeep...
28.333333
82
0.739869
93b268413ed4600e12f4c4c44d9af45d304ad990
907
py
Python
botx/clients/methods/v3/chats/stealth_set.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
13
2021-01-21T12:43:10.000Z
2022-03-23T11:11:59.000Z
botx/clients/methods/v3/chats/stealth_set.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
259
2020-02-26T08:51:03.000Z
2022-03-23T11:08:36.000Z
botx/clients/methods/v3/chats/stealth_set.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
5
2019-12-02T16:19:22.000Z
2021-11-22T20:33:34.000Z
"""Method for enabling stealth in chat.""" from http import HTTPStatus from typing import Optional from uuid import UUID from botx.clients.methods.base import AuthorizedBotXMethod from botx.clients.methods.errors import bot_is_not_admin, chat_not_found class StealthSet(AuthorizedBotXMethod[bool]): """Method for ...
28.34375
72
0.726571
93b26ed58a065de2074906528a0f49d696a813ff
2,220
py
Python
tensorflow/contrib/data/python/kernel_tests/serialization/sql_dataset_serialization_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/data/python/kernel_tests/serialization/sql_dataset_serialization_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/data/python/kernel_tests/serialization/sql_dataset_serialization_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
26
2017-04-12T16:25:44.000Z
2018-10-30T10:10:15.000Z
# Copyright 2018 The TensorFlow 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 applica...
41.111111
101
0.73018
93b2ca49a5c8b27d551fbd8537c86fd2f2bc4b3f
246
py
Python
advance/cv-master/essential/mypy1.py
GavinK-ai/cv
6dd11b2100c40aca281508c3821c807ef0ee227d
[ "MIT" ]
1
2021-11-15T06:16:44.000Z
2021-11-15T06:16:44.000Z
advance/cv-master/essential/mypy1.py
JKai96/cv
6dd11b2100c40aca281508c3821c807ef0ee227d
[ "MIT" ]
null
null
null
advance/cv-master/essential/mypy1.py
JKai96/cv
6dd11b2100c40aca281508c3821c807ef0ee227d
[ "MIT" ]
null
null
null
import sys # commandline variable a, b, c a = float(sys.argv[1]) b = float(sys.argv[2]) c = float(sys.argv[3]) x1 = (-b + ((b**2 - 4*a*c)**0.5))/(2*a) x2 = (-b - ((b**2 - 4*a*c)**0.5))/(2*a) print(f'x1 = {x1:.4f}') print(f'x2 = {x2:.4f}')
17.571429
39
0.49187
93b2f7e9bb880ef76b71554c7f198af09b97befc
1,177
py
Python
django_joblog/management/commands/joblog_cleanup.py
defgsus/django-joblog
88467f951d7ebc586c69e421cab39e4caa395cca
[ "MIT" ]
null
null
null
django_joblog/management/commands/joblog_cleanup.py
defgsus/django-joblog
88467f951d7ebc586c69e421cab39e4caa395cca
[ "MIT" ]
null
null
null
django_joblog/management/commands/joblog_cleanup.py
defgsus/django-joblog
88467f951d7ebc586c69e421cab39e4caa395cca
[ "MIT" ]
null
null
null
# encoding=utf-8 from __future__ import unicode_literals from django.core.management.base import BaseCommand, CommandError from django.db import transaction from django.utils.translation import ugettext_lazy as _ from django.utils import timezone from django_joblog.models import JobLogModel from django_joblog import...
37.967742
112
0.677145
93b2ff4561bcc8fd13855cde444c4b6237d7949b
3,529
py
Python
tensorflow/python/kernel_tests/dct_ops_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
522
2016-06-08T02:15:50.000Z
2022-03-02T05:30:36.000Z
tensorflow/python/kernel_tests/dct_ops_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/kernel_tests/dct_ops_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
108
2016-06-16T15:34:05.000Z
2022-03-12T13:23:11.000Z
# Copyright 2017 The TensorFlow 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 applica...
36.010204
80
0.671012
93b32c0108b3c3c62ea85d9801445d4dda881a80
2,247
py
Python
getStats/getStats.py
kashev/reddit-reliability
6d92486019b9264d2b7bfd51912ef257fc6088ae
[ "MIT" ]
null
null
null
getStats/getStats.py
kashev/reddit-reliability
6d92486019b9264d2b7bfd51912ef257fc6088ae
[ "MIT" ]
null
null
null
getStats/getStats.py
kashev/reddit-reliability
6d92486019b9264d2b7bfd51912ef257fc6088ae
[ "MIT" ]
null
null
null
import sys import getopt import praw import time # gets statistics for user base and print def get_stats(users,filename): avg_val = dict() i = 0 j = 0 # I know... it's horrendous. I could make a list of keys but... this is easier. avg_val['link_karma'] = 0.0 avg_val['comment_karma'] = 0.0 avg_val['is_gold'] = 0....
24.966667
91
0.677793
93b334536817ec2644c9b7f49090fdc618378575
1,926
py
Python
synapse/tests/test_model_geospace.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/tests/test_model_geospace.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
4
2017-10-03T21:50:40.000Z
2017-11-20T15:49:38.000Z
synapse/tests/test_model_geospace.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
from synapse.tests.common import * class GeoTest(SynTest): def test_model_geospace_types_latlong(self): with self.getRamCore() as core: self.raises(BadTypeValu, core.getTypeNorm, 'geo:latlong', '91,100') self.raises(BadTypeValu, core.getTypeNorm, 'geo:latlong', '-91,100') ...
38.52
101
0.610592
93b335c7c6bed212c1cd5c37908ffe1f9390155d
2,928
py
Python
nova/tests/unit/policies/test_floating_ip_pools.py
xin3liang/nova
5b79ec8670619ece92ac8bb43d84d2412778a182
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/policies/test_floating_ip_pools.py
xin3liang/nova
5b79ec8670619ece92ac8bb43d84d2412778a182
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/policies/test_floating_ip_pools.py
xin3liang/nova
5b79ec8670619ece92ac8bb43d84d2412778a182
[ "Apache-2.0" ]
null
null
null
# 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 # d...
43.058824
78
0.714139
93b337fe76e19be90facd4a6728884e887bb1708
58
py
Python
modelscript/scripts/accesses/all.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
1
2019-02-22T14:27:06.000Z
2019-02-22T14:27:06.000Z
modelscript/scripts/accesses/all.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
4
2019-02-12T07:49:15.000Z
2019-02-12T07:50:12.000Z
modelscript/scripts/accesses/all.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
null
null
null
# coding=utf-8 import modelscript.scripts.accesses.printer
29
43
0.844828
93b3440ad48491b56dc6243d9747bb8f0baf34ff
2,024
py
Python
setup.py
valr/bootstrap-flask
d470b7fba1172fb05495ea601be6cf93d2962c79
[ "BSD-3-Clause" ]
1
2021-03-27T09:55:20.000Z
2021-03-27T09:55:20.000Z
setup.py
yuayuabc/bootstrap-flask
04c023601ce875b7ad38aa26957a4302123551f4
[ "BSD-3-Clause" ]
null
null
null
setup.py
yuayuabc/bootstrap-flask
04c023601ce875b7ad38aa26957a4302123551f4
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Bootstrap-Flask --------------- [Bootstrap 4](https://getbootstrap.com) helper for Flask/Jinja2. If you come from Flask-Bootstrap, check out [this tutorial](https://bootstrap-flask.readthedocs.io/en/latest/migrate.html) on how to migrate to this extension. Go to [GitHub page](https://gith...
31.138462
159
0.599802
93b344b4b70109825d375810393dde37900c4046
5,413
py
Python
CODS/dataset.py
Yale-LILY/ConvSumm
b01c984f68b8a1a4cd8e8bee572853c06f4f0bb5
[ "BSD-3-Clause" ]
31
2021-06-08T05:06:14.000Z
2022-03-28T01:48:51.000Z
CODS/dataset.py
jshin49/ConvSumm
c9c8dd30f9118b4fc9e842ac57823de35f80766a
[ "BSD-3-Clause" ]
5
2021-06-07T03:52:12.000Z
2021-11-01T18:50:35.000Z
CODS/dataset.py
jshin49/ConvSumm
c9c8dd30f9118b4fc9e842ac57823de35f80766a
[ "BSD-3-Clause" ]
5
2021-06-09T06:55:16.000Z
2022-01-16T06:58:54.000Z
''' Copyright (c) 2021, salesforce.com, inc. All rights reserved. SPDX-License-Identifier: BSD-3-Clause For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause ''' import re import json import string import debugger import torch import torch.nn.functional as F fr...
35.611842
120
0.607796
93b34a90ee2fa8d7a2bbda4144b0bbd471fc9fd3
951
py
Python
examples/wrap_pytorch.py
honnibal/thinc
7b8b1a1d084c07d72be0908326750c6127824d30
[ "MIT" ]
44
2015-01-02T22:04:48.000Z
2020-05-15T21:17:10.000Z
examples/wrap_pytorch.py
giannisdaras/thinc
92b328ff7ab99c368d31699817487e82cbe1cb9c
[ "MIT" ]
1
2015-12-11T22:31:18.000Z
2015-12-12T00:08:11.000Z
examples/wrap_pytorch.py
honnibal/thinc
7b8b1a1d084c07d72be0908326750c6127824d30
[ "MIT" ]
7
2015-06-18T00:50:57.000Z
2016-02-03T17:08:07.000Z
# coding: utf8 from __future__ import unicode_literals import plac import torch from torch import nn import torch.optim import torch.cuda from thinc.neural.ops import CupyOps from thinc.extra.wrappers import PyTorchWrapper from thinc.v2v import Model def main(length=1000, nO=32, nI=32): ''' Driver function '''...
23.775
69
0.646688
93b3738a5eea1fcf8105593b5163c0c1c10e16cf
2,845
py
Python
Lib/site-packages/kivy/storage/redisstore.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
9
2016-09-03T07:20:01.000Z
2020-05-21T14:44:48.000Z
Lib/site-packages/kivy/storage/redisstore.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
1
2017-05-30T20:45:15.000Z
2017-05-30T20:45:15.000Z
Lib/site-packages/kivy/storage/redisstore.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
4
2016-09-10T15:27:54.000Z
2020-03-27T22:05:31.000Z
''' Redis Store =========== Store implementation using Redis. You must have redis-py installed. Usage example:: from kivy.storage.redisstore import RedisStore params = dict(host='localhost', port=6379, db=14) store = RedisStore(params) All the key-value pairs will be stored with a prefix 'store' by def...
27.621359
75
0.614411
93b3bb5817cca824466dca7f25049df567906e15
4,680
py
Python
homeassistant/components/binary_sensor/netatmo.py
mbs-technologie/home-assistant
71fc446425cbb1c0d4670c261ce8ea3bfd83a73d
[ "MIT" ]
13
2017-02-01T13:25:34.000Z
2022-01-26T01:30:39.000Z
homeassistant/components/binary_sensor/netatmo.py
mbs-technologie/home-assistant
71fc446425cbb1c0d4670c261ce8ea3bfd83a73d
[ "MIT" ]
9
2017-07-26T18:05:32.000Z
2021-12-05T14:16:34.000Z
homeassistant/components/binary_sensor/netatmo.py
mbs-technologie/home-assistant
71fc446425cbb1c0d4670c261ce8ea3bfd83a73d
[ "MIT" ]
21
2017-07-26T17:09:40.000Z
2022-03-27T22:37:22.000Z
""" Support for the Netatmo binary sensors. The binary sensors based on events seen by the NetatmoCamera For more details about this platform, please refer to the documentation at https://home-assistant.io/components/binary_sensor.netatmo/ """ import logging import voluptuous as vol from homeassistant.components.bin...
34.925373
78
0.599359
93b3e5c1fce3d0a7c0fd86b62288f265123e155d
288
py
Python
src/gedml/config/setting/recorder_setting.py
wangck20/GeDML
1f76ac2094d7b88be7fd4eb6145e5586e547b9ca
[ "MIT" ]
null
null
null
src/gedml/config/setting/recorder_setting.py
wangck20/GeDML
1f76ac2094d7b88be7fd4eb6145e5586e547b9ca
[ "MIT" ]
null
null
null
src/gedml/config/setting/recorder_setting.py
wangck20/GeDML
1f76ac2094d7b88be7fd4eb6145e5586e547b9ca
[ "MIT" ]
null
null
null
# recorder protocol TO_RECORD_LIST = 'to_record_list' CSV_FOLDER = 'csv' MODEL_FOLDER = 'model' BOARD_FOLDER = 'board' WANDB_FOLDER = 'wandb' TO_SAVE_LIST = 'to_save_list' DEVICE = 'device' BEST_MODEL_SUFFIX = '_best.ckpt' STEP_MODEL_SUFFIX = '_{}.ckpt' LOAD_EXCEPT_FUNC = lambda x: x[7:]
26.181818
34
0.753472
93b4098f4ab81a1fb46249a0b00f8fb6753eec97
14,093
py
Python
dis_snek/api/events/discord.py
ShardlessBun/Dis-Snek
fd15b06c531e82a9682a7b139deec0df7b2aa2d0
[ "MIT" ]
null
null
null
dis_snek/api/events/discord.py
ShardlessBun/Dis-Snek
fd15b06c531e82a9682a7b139deec0df7b2aa2d0
[ "MIT" ]
null
null
null
dis_snek/api/events/discord.py
ShardlessBun/Dis-Snek
fd15b06c531e82a9682a7b139deec0df7b2aa2d0
[ "MIT" ]
null
null
null
""" These are events dispatched by Discord. This is intended as a reference so you know what data to expect for each event. ??? Hint "Example Usage:" The event classes outlined here are in `CamelCase` to comply with Class naming convention, however the event names are actually in `lower_case_with_underscores` ...
30.504329
227
0.694813
93b40f42f9ff20a70a12fb158a1d76c16858ad13
679
py
Python
linkedlist/reverse.py
murilocamargos/algorithms
8a51db21efec6c67cabe0666cb36cc8317012aea
[ "MIT" ]
null
null
null
linkedlist/reverse.py
murilocamargos/algorithms
8a51db21efec6c67cabe0666cb36cc8317012aea
[ "MIT" ]
null
null
null
linkedlist/reverse.py
murilocamargos/algorithms
8a51db21efec6c67cabe0666cb36cc8317012aea
[ "MIT" ]
null
null
null
""" Reverse a singly linked list. """ # # Iterative solution # T(n)- O(n) # def reverse_list(head): """ :type head: ListNode :rtype: ListNode """ if not head or not head.next: return head prev = None while head: current = head head = head.next current.next =...
16.166667
41
0.575847
93b41ff4fa557e44f07fba5f2ca4e015f9b7dfd7
580
py
Python
tests/data/expected/main/main_jsonschema_special_field_name/output.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
891
2019-07-23T04:23:32.000Z
2022-03-31T13:36:33.000Z
tests/data/expected/main/main_jsonschema_special_field_name/output.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
663
2019-07-23T09:50:26.000Z
2022-03-29T01:56:55.000Z
tests/data/expected/main/main_jsonschema_special_field_name/output.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
108
2019-07-23T08:50:37.000Z
2022-03-09T10:50:22.000Z
# generated by datamodel-codegen: # filename: special_field_name.json # timestamp: 2019-07-26T00:00:00+00:00 from __future__ import annotations from typing import Optional from pydantic import BaseModel, Field class SpecialField(BaseModel): global_: Optional[str] = Field(None, alias='global') with_: O...
30.526316
59
0.706897
93b434df83d3d1ce9536af38c0baa3cecad6cb0b
1,958
py
Python
core/argo/core/optimizers/NrSamples.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
null
null
null
core/argo/core/optimizers/NrSamples.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
null
null
null
core/argo/core/optimizers/NrSamples.py
szokejokepu/natural-rws
bb1ad4ca3ec714e6bf071d2136593dc853492b68
[ "MIT" ]
null
null
null
import tensorflow as tf def process_n_samples(n_samples, global_epoch, name="n_samples"): """ Args: global_epoch: n_samples: can be either a number, a dictionary {"step": n_s}, e.g. {100:0.1, 1000:0.001} or a particular keyword Returns: the processed learning rate, ready to be take...
31.580645
122
0.61287
93b44090806eea4d6587af4dad9faf5af152039f
3,484
py
Python
alipay/aop/api/domain/KoubeiTradeOrderAggregateRefundModel.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/KoubeiTradeOrderAggregateRefundModel.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/KoubeiTradeOrderAggregateRefundModel.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 KoubeiTradeOrderAggregateRefundModel(object): def __init__(self): self._order_no = None self._out_refund_no = None self._refund_amount = None self._refund_reason =...
30.034483
77
0.597589
93b45b2177cd0f09b0ed29e9ecdeb6ddb62fc72b
320
py
Python
by-session/ta-921/j5/list6.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
2
2015-04-29T20:59:35.000Z
2018-09-26T13:33:43.000Z
by-session/ta-921/j5/list6.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
by-session/ta-921/j5/list6.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
n = input("Tedad adad?") a = [] for i in range(n): a.append(input("Addad " + str(i) + " om ra vared konid:")) s = 0 for i in range(n): s += a[i] print s m = 100000000000000000000000 for i in range(n): if a[i] < m: m = a[i] print m a.append(2) a.append(4) print len(a)
12.8
63
0.50625
93b4840be17a7be0f01a4f80c9544e7424de46d8
1,130
py
Python
exps/cifar_train.py
Pragyanstha/SummerCamp2021
caa8bba64020ba52bdef2b23a7a54de93e93b8af
[ "MIT" ]
null
null
null
exps/cifar_train.py
Pragyanstha/SummerCamp2021
caa8bba64020ba52bdef2b23a7a54de93e93b8af
[ "MIT" ]
null
null
null
exps/cifar_train.py
Pragyanstha/SummerCamp2021
caa8bba64020ba52bdef2b23a7a54de93e93b8af
[ "MIT" ]
null
null
null
#!/usr/bin/env bash import os import argparse def parse_args(): parser = argparse.ArgumentParser() parser.add_argument('--rank', type=str, default="0") parser.add_argument('--node', type=str, default="0015") opt = parser.parse_args() return opt args = parse_args() os.system(f"python train_derive...
19.482759
59
0.665487
93b50e07dda00b06dae491eabc9072dfc142d1ec
7,262
py
Python
aea/crypto/helpers.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
aea/crypto/helpers.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
aea/crypto/helpers.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2021-2022 Valory AG # Copyright 2018-2019 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License....
34.093897
117
0.670752
93b51b62e8434a463472cd3477e5575645107c79
6,589
py
Python
intcode.py
furgerf/advent-of-code-2019
f2c6ad9d401c91a7b04bb699d233a7d6ec9da2ac
[ "Apache-2.0" ]
null
null
null
intcode.py
furgerf/advent-of-code-2019
f2c6ad9d401c91a7b04bb699d233a7d6ec9da2ac
[ "Apache-2.0" ]
null
null
null
intcode.py
furgerf/advent-of-code-2019
f2c6ad9d401c91a7b04bb699d233a7d6ec9da2ac
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- class Intcode: class Parameter: def __init__(self, index, value): self._index = index self._value = value @property def index(self): if self._index is None: raise RuntimeError() return self._index @property def val...
31.830918
93
0.639399
93b52c1a9cb1fa237cc51e58b0575be1b2618b8a
4,108
py
Python
distributor.py
rubyvanrooyen/meerkat-backend-interface
3e4e6e6dfe99edb5998c08987ab50f6e0a014bc2
[ "MIT" ]
null
null
null
distributor.py
rubyvanrooyen/meerkat-backend-interface
3e4e6e6dfe99edb5998c08987ab50f6e0a014bc2
[ "MIT" ]
7
2019-03-20T23:36:11.000Z
2021-12-13T19:49:02.000Z
distributor.py
rubyvanrooyen/meerkat-backend-interface
3e4e6e6dfe99edb5998c08987ab50f6e0a014bc2
[ "MIT" ]
3
2019-03-20T23:35:10.000Z
2019-04-17T23:27:54.000Z
#!/usr/bin/env python from optparse import OptionParser import json import logging import sys import redis from meerkat_backend_interface import redis_tools from meerkat_backend_interface.logger import log CHANNEL = redis_tools.REDIS_CHANNELS.alerts # Redis channel to listen on STREAM_TYPE = 'cbf.antenna_channel...
35.721739
103
0.623905
93b53ee3888e1df13c347028b542892cd543de54
4,759
py
Python
acme/tf/networks/legal_actions.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
null
null
null
acme/tf/networks/legal_actions.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
null
null
null
acme/tf/networks/legal_actions.py
novatig/acme
7774e4a22519d8b05951320864e5308974eaad2a
[ "Apache-2.0" ]
null
null
null
# python3 # Copyright 2018 DeepMind Technologies Limited. 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 re...
36.891473
80
0.700567
93b548c93a6f2fa9dbc2c3c4d679eb0136dcafc7
973
py
Python
bokeh/tests/test_bokeh_init.py
charliezhan/bokeh
5b8263cd5281494326d2fcd57745a69a1c2e6d93
[ "BSD-3-Clause" ]
1
2020-02-06T05:27:53.000Z
2020-02-06T05:27:53.000Z
bokeh/tests/test_bokeh_init.py
charliezhan/bokeh
5b8263cd5281494326d2fcd57745a69a1c2e6d93
[ "BSD-3-Clause" ]
null
null
null
bokeh/tests/test_bokeh_init.py
charliezhan/bokeh
5b8263cd5281494326d2fcd57745a69a1c2e6d93
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, print_function import unittest class TestContents(unittest.TestCase): def test_dir(self): import bokeh names = dir(bokeh) self.assertTrue("__version__" in names) self.assertTrue("__base_version__" in names) self.assertTrue("license" ...
31.387097
147
0.649538
93b54b3ef384094e1a1e02aaa5c3a51ba35c607a
4,246
py
Python
crystalpy/examples/Si111_energy_scan.py
oasys-kit/crystalpy
4852851c622ef914844178577dea4075e92cd8dd
[ "MIT" ]
null
null
null
crystalpy/examples/Si111_energy_scan.py
oasys-kit/crystalpy
4852851c622ef914844178577dea4075e92cd8dd
[ "MIT" ]
null
null
null
crystalpy/examples/Si111_energy_scan.py
oasys-kit/crystalpy
4852851c622ef914844178577dea4075e92cd8dd
[ "MIT" ]
null
null
null
import numpy from crystalpy.diffraction.GeometryType import BraggDiffraction, LaueDiffraction from crystalpy.diffraction.DiffractionSetup import DiffractionSetup from crystalpy.diffraction.Diffraction import Diffraction import scipy.constants as codata from crystalpy.util.Vector import Vector from crystalpy.util.Ph...
39.682243
114
0.580782
93b54fe09e0890c05b582c691b2d57c537d84760
685
py
Python
exercises/general/update_label.py
angelptli/my_kivy_journey
2718e3ef22f67a71e89cf297a34cb12825a2c3da
[ "MIT" ]
null
null
null
exercises/general/update_label.py
angelptli/my_kivy_journey
2718e3ef22f67a71e89cf297a34cb12825a2c3da
[ "MIT" ]
null
null
null
exercises/general/update_label.py
angelptli/my_kivy_journey
2718e3ef22f67a71e89cf297a34cb12825a2c3da
[ "MIT" ]
null
null
null
# File: update_label.py # Desc: Update label above input box using user input name. from kivy.app import App from kivy.uix.widget import Widget from kivy.properties import ObjectProperty from kivy.lang import Builder # Designate our .kv design file Builder.load_file('update_label.kv') class MyLayout(Widget): de...
22.096774
59
0.681752
93b5573405fbdac5ce8434352f8998344057279a
6,620
py
Python
mlrose_hiive/samples/synthetic_data.py
sareini/mlrose
b5ebaac322cb063ad4611367c43e1827bda0eb95
[ "BSD-3-Clause" ]
63
2019-09-24T14:09:51.000Z
2022-03-09T02:36:25.000Z
mlrose_hiive/samples/synthetic_data.py
sareini/mlrose
b5ebaac322cb063ad4611367c43e1827bda0eb95
[ "BSD-3-Clause" ]
6
2019-10-04T01:04:21.000Z
2021-08-31T19:06:13.000Z
mlrose_hiive/samples/synthetic_data.py
sareini/mlrose
b5ebaac322cb063ad4611367c43e1827bda0eb95
[ "BSD-3-Clause" ]
104
2019-09-23T22:44:43.000Z
2022-03-13T18:50:53.000Z
from os import makedirs from sklearn.model_selection import train_test_split from sklearn.preprocessing import MinMaxScaler import matplotlib.pyplot as plt import matplotlib.colors as mpl import pandas as pd import numpy as np class SyntheticData: def __init__(self, seed, root_directory=None): self.se...
36.373626
155
0.541692
93b579d8a12ca9487a99b6cd7e1ec0a951710844
12,945
py
Python
tool_substitution/src/tool_substitution/sample_pointcloud.py
ScazLab/Frontiers_Robot_Tool_Use
ebace49e88562c18b3b967ec5360a4cec4f8fe56
[ "MIT" ]
null
null
null
tool_substitution/src/tool_substitution/sample_pointcloud.py
ScazLab/Frontiers_Robot_Tool_Use
ebace49e88562c18b3b967ec5360a4cec4f8fe56
[ "MIT" ]
null
null
null
tool_substitution/src/tool_substitution/sample_pointcloud.py
ScazLab/Frontiers_Robot_Tool_Use
ebace49e88562c18b3b967ec5360a4cec4f8fe56
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Software License Agreement (MIT License) # # Copyright (c) 2020, tool_substitution # All rights reserved. # # 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 re...
34.33687
147
0.601159
93b58605b5c6c44cb82abfe36cde4b32395881c1
5,264
py
Python
src/data/specchio_data_parser.py
silmae/HyperBlend
ac9c8a8802d4f3969b0ec3605ac163fde1a17193
[ "MIT" ]
1
2021-11-11T12:58:51.000Z
2021-11-11T12:58:51.000Z
src/data/specchio_data_parser.py
silmae/HyperBlend
ac9c8a8802d4f3969b0ec3605ac163fde1a17193
[ "MIT" ]
null
null
null
src/data/specchio_data_parser.py
silmae/HyperBlend
ac9c8a8802d4f3969b0ec3605ac163fde1a17193
[ "MIT" ]
1
2021-11-11T12:58:58.000Z
2021-11-11T12:58:58.000Z
""" This file contains methods to attempt to parse horrible Specchio data into some coherent format. This is only used in the case that reflectance and transmittance measurements have to be loaded in separate files in separate folders one by one from specchio.ch web interface. The code is a mess but one should not hav...
40.183206
155
0.576938
93b58e8107301462e5a22b02c33fb29afcfe714b
7,200
py
Python
h/traversal/contexts.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
h/traversal/contexts.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
h/traversal/contexts.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ "Context resource" objects for Pyramid views. Context objects are reusable components that represent "the context of a view" or "the subject of a view". They can do things like wrap a model object (or multiple model objects) and, since they have access to the ``request`` object, provide a...
34.123223
98
0.668056
93b59877e2414189254705e8603fd3b514b658f5
2,332
py
Python
xpctl/xpserver/models/task_summary.py
mead-ml/xpctl
75fcb195e66519b545ddd7aeb2d7476624c20c46
[ "Apache-2.0" ]
3
2019-07-11T17:05:25.000Z
2020-11-19T08:11:31.000Z
xpctl/xpserver/models/task_summary.py
mead-ml/xpctl
75fcb195e66519b545ddd7aeb2d7476624c20c46
[ "Apache-2.0" ]
4
2019-06-28T01:07:42.000Z
2020-07-24T15:12:57.000Z
xpctl/xpserver/models/task_summary.py
mead-ml/xpctl
75fcb195e66519b545ddd7aeb2d7476624c20c46
[ "Apache-2.0" ]
2
2019-06-27T19:10:05.000Z
2019-08-15T20:15:49.000Z
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from xpctl.xpserver.models.base_model_ import Model from xpctl.xpserver import util class TaskSummary(Model): """NOTE: This class is auto generated by the swagger...
24.547368
93
0.585763
93b5ad86a5af55c7b09319c54b27dc0b73a9688c
66
py
Python
2019/Python/Day_3/__init__.py
airstandley/AdventofCode
86b7e289d67ba3ea31a78f4a4005253098f47254
[ "MIT" ]
null
null
null
2019/Python/Day_3/__init__.py
airstandley/AdventofCode
86b7e289d67ba3ea31a78f4a4005253098f47254
[ "MIT" ]
null
null
null
2019/Python/Day_3/__init__.py
airstandley/AdventofCode
86b7e289d67ba3ea31a78f4a4005253098f47254
[ "MIT" ]
null
null
null
""" Day 3: Crossed Wires (https://adventofcode.com/2019/day/3) """
22
58
0.666667
93b5e8552e8a28129babbb4a494e56732aea5a79
866
py
Python
test/test_segment_region.py
bertsky/ocrd_tesserocr
c0e1440a53722d617e356901cec79e14b7999c94
[ "MIT" ]
37
2018-04-16T20:18:25.000Z
2022-03-06T09:06:12.000Z
test/test_segment_region.py
bertsky/ocrd_tesserocr
c0e1440a53722d617e356901cec79e14b7999c94
[ "MIT" ]
162
2018-04-18T12:17:53.000Z
2022-03-09T11:07:36.000Z
test/test_segment_region.py
bertsky/ocrd_tesserocr
c0e1440a53722d617e356901cec79e14b7999c94
[ "MIT" ]
12
2018-04-11T11:56:22.000Z
2021-02-12T15:12:13.000Z
import os import shutil from test.base import TestCase, main, assets from ocrd.resolver import Resolver from ocrd_tesserocr import TesserocrSegmentRegion METS_HEROLD_SMALL = assets.url_of('SBB0000F29300010000/data/mets_one_file.xml') WORKSPACE_DIR = '/tmp/pyocrd-test-segment-region-tesserocr' class TestTesserocrSe...
27.0625
89
0.705543
93b5fb2103145f10d7a2205370d35383e5914a18
11,807
py
Python
prunning_filters.py
ShiWenqi/ssd.pruning
1044d1ab7b1a407090f90b0a04e228b433ff52b7
[ "MIT" ]
2
2018-11-19T08:59:21.000Z
2018-11-19T08:59:38.000Z
prunning_filters.py
ShiWenqi/ssd.pruning
1044d1ab7b1a407090f90b0a04e228b433ff52b7
[ "MIT" ]
null
null
null
prunning_filters.py
ShiWenqi/ssd.pruning
1044d1ab7b1a407090f90b0a04e228b433ff52b7
[ "MIT" ]
null
null
null
from __future__ import print_function import torch import torch.nn as nn import torch.backends.cudnn as cudnn from torch.autograd import Variable from data import * from data import VOC_CLASSES as labelmap import torch.utils.data as data from ssd import build_ssd from eval import test_net from train import train_epoch...
37.246057
108
0.590328
93b612d96806c9486cf58e5e700a736ecf6e2228
3,312
py
Python
tests/test_context.py
eukreign/python-v8
f20d7bef766a2ae3573cc536e7d03e07afe9b173
[ "Apache-2.0" ]
2
2018-02-12T22:34:09.000Z
2019-01-03T05:18:00.000Z
tests/test_context.py
eukreign/python-v8
f20d7bef766a2ae3573cc536e7d03e07afe9b173
[ "Apache-2.0" ]
null
null
null
tests/test_context.py
eukreign/python-v8
f20d7bef766a2ae3573cc536e7d03e07afe9b173
[ "Apache-2.0" ]
3
2019-02-13T08:00:06.000Z
2020-05-17T22:40:20.000Z
# -*- coding: utf-8 -*- import pytest from v8 import * def test_multi_namespace(): assert not bool(JSContext.inContext) assert not bool(JSContext.entered) class Global(object): name = "global" g = Global() with JSContext(g) as ctxt: assert bool(JSContext.inContext) assert...
26.926829
67
0.601147
93b61b72acc18c3c388980d38068bbf0ddbe701e
2,547
py
Python
cve-manager/cve_manager/handler/task_handler/callback/repo_set.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
cve-manager/cve_manager/handler/task_handler/callback/repo_set.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
cve-manager/cve_manager/handler/task_handler/callback/repo_set.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
#!/usr/bin/python3 # ****************************************************************************** # Copyright (c) Huawei Technologies Co., Ltd. 2021-2022. All rights reserved. # licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # You may obtain a c...
43.169492
98
0.651355
93b625e76564e5f4bbd7c08b739122dc06b5f466
7,629
py
Python
qualcoder/GUI/ui_speech_to_text.py
ilippert/QualCoder
cb3ec9bcd347adaba5d81fef5d83f40c6a338c64
[ "MIT" ]
null
null
null
qualcoder/GUI/ui_speech_to_text.py
ilippert/QualCoder
cb3ec9bcd347adaba5d81fef5d83f40c6a338c64
[ "MIT" ]
null
null
null
qualcoder/GUI/ui_speech_to_text.py
ilippert/QualCoder
cb3ec9bcd347adaba5d81fef5d83f40c6a338c64
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ui_speech_to_text.ui' # # Created by: PyQt5 UI code generator 5.14.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_DialogSpeechToText(object): def setupUi(self, DialogSpe...
54.492857
140
0.731551
93b638148d751f24dfa5772c41a16af99d7acd44
10,120
py
Python
test/vanilla/version-tolerant/AcceptanceTests/test_model_flattening.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/version-tolerant/AcceptanceTests/test_model_flattening.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/version-tolerant/AcceptanceTests/test_model_flattening.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""),...
37.902622
105
0.570059
93b648887e64043827555390af2a72c6fa3c3e2c
14,304
py
Python
tests/test_arithmetic.py
ritabt/petra
a7b391cdcd34f07ca201e2a396e141a3d2f12884
[ "Apache-2.0" ]
null
null
null
tests/test_arithmetic.py
ritabt/petra
a7b391cdcd34f07ca201e2a396e141a3d2f12884
[ "Apache-2.0" ]
null
null
null
tests/test_arithmetic.py
ritabt/petra
a7b391cdcd34f07ca201e2a396e141a3d2f12884
[ "Apache-2.0" ]
1
2020-04-13T20:12:26.000Z
2020-04-13T20:12:26.000Z
from typing import cast, Callable import petra as pt import unittest from ctypes import CFUNCTYPE, c_int8, c_int16, c_int32, c_int64 program = pt.Program("module") # Int8_t functions. # TODO(adbenson): refactor this to take in arguments for better testing a = pt.Symbol(pt.Int8_t, "a") b = pt.Symbol(pt.Int8_t, "b"...
34.302158
84
0.419114
93b64e681b328f78140ac4a1202e84b18f206c1c
11,607
py
Python
githubutil/github.py
SataQiu/issueflow
b5b124e3a4ca263bf2c2384ef00bd07aa6f1a17d
[ "Apache-2.0" ]
null
null
null
githubutil/github.py
SataQiu/issueflow
b5b124e3a4ca263bf2c2384ef00bd07aa6f1a17d
[ "Apache-2.0" ]
null
null
null
githubutil/github.py
SataQiu/issueflow
b5b124e3a4ca263bf2c2384ef00bd07aa6f1a17d
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- import datetime import github import re import time import logging class GithubOperator: _token = "" _client = None admin_list = None write_interval = 1 def __init__(self, token): self._token = token self._client = github.Github(self._token) def get_r...
35.066465
83
0.581201
93b653a0b5b2113bd75ed74a7ae2ccc6ee8baa55
1,511
py
Python
ice/cache.py
gordonshieh94/Ice
595a6c6790bbc46709c2871245756ca7c045a98b
[ "MIT" ]
null
null
null
ice/cache.py
gordonshieh94/Ice
595a6c6790bbc46709c2871245756ca7c045a98b
[ "MIT" ]
null
null
null
ice/cache.py
gordonshieh94/Ice
595a6c6790bbc46709c2871245756ca7c045a98b
[ "MIT" ]
null
null
null
class Cache(object): def __init__(self): self.__store__ = {} def get(self, *args): if len(args) is 0: raise Exception("Must provide at least one key to `cache.get()`") key = args[0] # Easy case if key not in self.__store__: return None # This is our only key, just return wh...
29.057692
79
0.623428
93b66f7f13f88bc07608b27827e597fabebf5095
381
py
Python
wofs/boilerplate.py
MatthewJA/wofs
3eacdc8b5b5c399fbe780cb9289e71b7d6ded31c
[ "Apache-2.0" ]
8
2016-11-23T11:03:32.000Z
2020-10-28T23:25:53.000Z
wofs/boilerplate.py
MatthewJA/wofs
3eacdc8b5b5c399fbe780cb9289e71b7d6ded31c
[ "Apache-2.0" ]
17
2016-10-25T22:46:05.000Z
2021-07-01T02:48:55.000Z
wofs/boilerplate.py
MatthewJA/wofs
3eacdc8b5b5c399fbe780cb9289e71b7d6ded31c
[ "Apache-2.0" ]
5
2018-05-18T06:48:45.000Z
2021-05-24T06:45:43.000Z
import xarray def simple_numpify(f): """Transform a numpy operation to an xarray DataArray operation Assumes only (y,x) arrays.""" def wrapped(xr): return xarray.DataArray(f(xr.data), coords=[xr.y, xr.x]) # return xarray.DataArray(f(xr.data), coords=[x[c] for c in list(x.dims) if c in {'y'...
31.75
100
0.650919
93b68d3e0d7b2afd1faa1faf69bd74c88c6a41eb
4,004
py
Python
python-code/caffe-learning/nets/face-landmark.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
13
2018-09-07T02:29:07.000Z
2021-06-18T08:40:09.000Z
python-code/caffe-learning/nets/face-landmark.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
null
null
null
python-code/caffe-learning/nets/face-landmark.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
4
2019-06-20T00:09:39.000Z
2021-07-15T10:14:36.000Z
#coding:utf-8 import sys import os import time import pprint import caffe import dlib import cv2 import numpy as np def file_list_fn(path): file_list = [] files = os.listdir(path) for f in files: file_list.append(f) return file_list net_work_path = '../resources/models/caffe/face-landmark/...
33.647059
118
0.633367
93b6a7b75533fcf8f00bb6c5adbfc664c890d924
518
py
Python
data_profiler/tests/data_readers/test_data.py
taylorfturner/data-profiler
da416d1ccaed4b04d2e5b93da41a508de58b642e
[ "Apache-2.0" ]
1
2021-02-13T21:53:16.000Z
2021-02-13T21:53:16.000Z
data_profiler/tests/data_readers/test_data.py
taylorfturner/data-profiler
da416d1ccaed4b04d2e5b93da41a508de58b642e
[ "Apache-2.0" ]
null
null
null
data_profiler/tests/data_readers/test_data.py
taylorfturner/data-profiler
da416d1ccaed4b04d2e5b93da41a508de58b642e
[ "Apache-2.0" ]
null
null
null
import unittest import pandas as pd from data_profiler.data_readers.data import Data class TestDataReadingWriting(unittest.TestCase): def test_read_data(self): """Ensure error logs for trying to save empty data.""" data_types = ['csv', 'json', 'parquet', 'text'] none_types = [pd.DataFra...
25.9
64
0.669884
93b6a7fb8341fe90f5a01c75174202e96fadef31
805
py
Python
test/test_job_assign.py
tobytoyin/TesterFactory
150a2625f8fb4eb50d600611d990a8bb8fed96a4
[ "MIT" ]
null
null
null
test/test_job_assign.py
tobytoyin/TesterFactory
150a2625f8fb4eb50d600611d990a8bb8fed96a4
[ "MIT" ]
null
null
null
test/test_job_assign.py
tobytoyin/TesterFactory
150a2625f8fb4eb50d600611d990a8bb8fed96a4
[ "MIT" ]
null
null
null
import unittest from test.test_cases import real_df, fake_df, empty_df # include different test cases from src.job_assign import Boss import pandas as pd class TestBoss(unittest.TestCase): def test_n_workers_input(self): # test the n_workers assertion fail_case = [-1, 0, True, False, '1', 'hello',...
33.541667
89
0.614907
93b6c057689b482c1c8b1cc165ab3c54ae20127f
3,533
py
Python
django_joblog/impl/JobLogger.py
defgsus/django-joblog
88467f951d7ebc586c69e421cab39e4caa395cca
[ "MIT" ]
null
null
null
django_joblog/impl/JobLogger.py
defgsus/django-joblog
88467f951d7ebc586c69e421cab39e4caa395cca
[ "MIT" ]
null
null
null
django_joblog/impl/JobLogger.py
defgsus/django-joblog
88467f951d7ebc586c69e421cab39e4caa395cca
[ "MIT" ]
null
null
null
# encoding=utf-8 from __future__ import unicode_literals import traceback from django.utils.translation import ugettext_lazy as _ from .JobLoggerBase import JobLoggerBase from .JobModelAbstraction import JobModelAbstraction class JobLogger(JobLoggerBase): """ Automatic database logging, also catches ex...
30.721739
114
0.567506
93b6ca39693b1cf00517ac5205ec750ee36bd106
48
py
Python
wavelet/transforms/__init__.py
AP-Atul/wavelets
cff71e777759844b35f8e96f14930b2c71a215a1
[ "MIT" ]
5
2021-02-01T07:43:39.000Z
2022-03-25T05:01:31.000Z
wavelet/transforms/__init__.py
AP-Atul/wavelets
cff71e777759844b35f8e96f14930b2c71a215a1
[ "MIT" ]
null
null
null
wavelet/transforms/__init__.py
AP-Atul/wavelets
cff71e777759844b35f8e96f14930b2c71a215a1
[ "MIT" ]
null
null
null
from wavelet.transforms.base_transform import *
24
47
0.854167
93b718d0d53b3706ad55451e16e8faceb77bde8e
11,507
py
Python
venv/lib/python2.7/site-packages/pymongo/replica_set_connection.py
deathping1994/gmail-sendmail-api
5f6cadf2a5a6a9d30581726647ca638661a040f5
[ "Apache-2.0" ]
null
null
null
venv/lib/python2.7/site-packages/pymongo/replica_set_connection.py
deathping1994/gmail-sendmail-api
5f6cadf2a5a6a9d30581726647ca638661a040f5
[ "Apache-2.0" ]
null
null
null
venv/lib/python2.7/site-packages/pymongo/replica_set_connection.py
deathping1994/gmail-sendmail-api
5f6cadf2a5a6a9d30581726647ca638661a040f5
[ "Apache-2.0" ]
null
null
null
# Copyright 2011-2015 MongoDB, 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 writi...
52.304545
80
0.649605
93b72c9deda31926fc3c4e4836a8f5422f93d181
13,481
py
Python
tests/core/test_local_service.py
keppy/zenml
a2671d66201abfaf11894ef9010d7bb8619a63e7
[ "Apache-2.0" ]
1
2022-03-10T18:24:53.000Z
2022-03-10T18:24:53.000Z
tests/core/test_local_service.py
keppy/zenml
a2671d66201abfaf11894ef9010d7bb8619a63e7
[ "Apache-2.0" ]
null
null
null
tests/core/test_local_service.py
keppy/zenml
a2671d66201abfaf11894ef9010d7bb8619a63e7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) ZenML GmbH 2021. 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 applica...
39.533724
86
0.757362
93b739c942a64af797ffedb9896673b219022542
6,089
py
Python
hard-gists/908ef5f4fa162f15b3b8/snippet.py
dockerizeme/dockerizeme
408f3fa3d36542d8fc1236ba1cac804de6f14b0c
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/908ef5f4fa162f15b3b8/snippet.py
dockerizeme/dockerizeme
408f3fa3d36542d8fc1236ba1cac804de6f14b0c
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/908ef5f4fa162f15b3b8/snippet.py
dockerizeme/dockerizeme
408f3fa3d36542d8fc1236ba1cac804de6f14b0c
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
import os import socket from OpenSSL import crypto, SSL # OpenVPN is fairly simple since it works on OpenSSL. The OpenVPN server contains # a root certificate authority that can sign sub-certificates. The certificates # have very little or no information on who they belong to besides a filename # and any required info...
35.608187
138
0.710461
93b7656fa3d4cb6df669800143523f3fd2dfa268
7,960
py
Python
docs/conf.py
EnTeQuAk/django-chromelogger
ae4ff0aea1f8c20b9e123863bee9b1724b509c35
[ "MIT" ]
28
2016-12-22T12:35:03.000Z
2017-12-05T17:10:15.000Z
docs/conf.py
EnTeQuAk/django-chromelogger
ae4ff0aea1f8c20b9e123863bee9b1724b509c35
[ "MIT" ]
null
null
null
docs/conf.py
EnTeQuAk/django-chromelogger
ae4ff0aea1f8c20b9e123863bee9b1724b509c35
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # django-chromelogger documentation build configuration file, created by # sphinx-quickstart on Wed Oct 31 13:02:27 2012. # # 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 # autogenerated f...
32.622951
83
0.720352
93b785e54795140c146cbe9b0f530f53ef912a8e
2,314
py
Python
hello_nlp/skipchunkconnect.py
danicc097/hello-nlp
c60ee0db7af382ee7d72ca5d7bb1f7e3153cbb5c
[ "MIT" ]
77
2020-10-01T15:34:27.000Z
2022-03-04T18:38:41.000Z
hello_nlp/skipchunkconnect.py
danicc097/hello-nlp
c60ee0db7af382ee7d72ca5d7bb1f7e3153cbb5c
[ "MIT" ]
8
2020-10-02T12:14:50.000Z
2020-12-27T08:51:41.000Z
hello_nlp/skipchunkconnect.py
danicc097/hello-nlp
c60ee0db7af382ee7d72ca5d7bb1f7e3153cbb5c
[ "MIT" ]
12
2020-10-01T18:45:40.000Z
2022-03-15T05:56:58.000Z
from skipchunk.skipchunk import Skipchunk, textFromFields from skipchunk.graphquery import GraphQuery from skipchunk.indexquery import IndexQuery from skipchunk.enrichquery import EnrichQuery def tuplize(data,fields=[],strip_html=True): tuples = [] for post in data: text = textFromFields(post,fields,st...
30.447368
88
0.611063
93b79759302f2c08805c1b46b53466b8cc2eb5fc
2,570
py
Python
nova/objects/volume_usage.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/objects/volume_usage.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
11
2017-06-19T01:28:55.000Z
2017-06-23T02:01:47.000Z
nova/objects/volume_usage.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
7
2015-01-20T10:30:08.000Z
2020-02-05T10:29:05.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 # d...
42.833333
78
0.67393
93b7aaa04f2c898bd90b1dc0e951d98a67110ece
1,492
py
Python
test/test_aggregation.py
ksuarz/monary
e8775ef11a8f9f020bacbaa2d8e802da1c0b4c19
[ "Apache-2.0" ]
7
2015-02-26T15:22:55.000Z
2021-02-12T13:45:34.000Z
test/test_aggregation.py
ksuarz/monary
e8775ef11a8f9f020bacbaa2d8e802da1c0b4c19
[ "Apache-2.0" ]
2
2015-07-21T19:41:59.000Z
2022-03-15T15:49:08.000Z
test/test_aggregation.py
ksuarz/monary
e8775ef11a8f9f020bacbaa2d8e802da1c0b4c19
[ "Apache-2.0" ]
3
2015-03-16T18:15:39.000Z
2016-05-03T07:07:31.000Z
# Monary - Copyright 2011-2014 David J. C. Beach # Please see the included LICENSE.TXT and NOTICE.TXT for licensing information. import numpy import pymongo import monary NUM_TEST_RECORDS = 5000 def setup(): with pymongo.MongoClient() as c: c.drop_database("monary_test") for i in range(NUM_TES...
27.127273
79
0.539544
93b7b66ae15b38e274d9b344fb66ebff0ef6400a
3,487
py
Python
kats/detectors/meta_learning/metalearning_detection_model.py
vishalbelsare/Kats
b555e97c84662b8b92b23fd3687c72583e0e9a47
[ "MIT" ]
null
null
null
kats/detectors/meta_learning/metalearning_detection_model.py
vishalbelsare/Kats
b555e97c84662b8b92b23fd3687c72583e0e9a47
[ "MIT" ]
null
null
null
kats/detectors/meta_learning/metalearning_detection_model.py
vishalbelsare/Kats
b555e97c84662b8b92b23fd3687c72583e0e9a47
[ "MIT" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging from typing import Any, Dict, List, Optional import pandas as pd from kats.consts import TimeSeriesData from kats.models.met...
34.524752
90
0.600516
93b7b7e3588ddde332c3115a43ec8e630d253c50
3,758
py
Python
docker/third-party/nnUNet/nnunet/dataset_conversion/Task222_FetalBrain3d.py
LucasFidon/trustworthy-ai-fetal-brain-segmentation
84959da54d8c2fb156da2b06cca30fa31a1c926d
[ "BSD-3-Clause" ]
null
null
null
docker/third-party/nnUNet/nnunet/dataset_conversion/Task222_FetalBrain3d.py
LucasFidon/trustworthy-ai-fetal-brain-segmentation
84959da54d8c2fb156da2b06cca30fa31a1c926d
[ "BSD-3-Clause" ]
null
null
null
docker/third-party/nnUNet/nnunet/dataset_conversion/Task222_FetalBrain3d.py
LucasFidon/trustworthy-ai-fetal-brain-segmentation
84959da54d8c2fb156da2b06cca30fa31a1c926d
[ "BSD-3-Clause" ]
null
null
null
import shutil import os import csv import numpy as np from collections import OrderedDict from batchgenerators.utilities.file_and_folder_operations import * from nnunet.paths import nnUNet_raw_data import SimpleITK as sitk DATA_FOLDER = "/data/fetal_brain_srr_parcellation_Oct20_atlas" def read_data_csv(csv_path): ...
31.847458
112
0.64529
93b7bc83b35bf2a476f289b1bbf36e89c8f2608a
4,419
py
Python
chapter-3/Sending plain text/hello_world/settings.py
PacktPublishing/Real-time-Django
07480a089fc0880d752d4ee5740ae6587de93aee
[ "MIT" ]
null
null
null
chapter-3/Sending plain text/hello_world/settings.py
PacktPublishing/Real-time-Django
07480a089fc0880d752d4ee5740ae6587de93aee
[ "MIT" ]
null
null
null
chapter-3/Sending plain text/hello_world/settings.py
PacktPublishing/Real-time-Django
07480a089fc0880d752d4ee5740ae6587de93aee
[ "MIT" ]
null
null
null
""" Django settings for hello_world project. Generated by 'django-admin startproject' using Django 4.0. For more information on this file, see https://docs.djangoproject.com/en/4.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/4.0/ref/settings/ """ import os f...
27.968354
91
0.696311
93b7cc49dda00bd560077f72f81b2d00916679be
373
py
Python
legal_crawlers/legal_spiders/items.py
OpenLawsGR/judgments2AKN
0c6217349cde36058d5599800e289fdf0d3eaf23
[ "MIT" ]
5
2019-11-28T17:02:59.000Z
2021-02-05T17:39:49.000Z
legal_crawlers/legal_spiders/items.py
OpenLawsGR/judgments2AKN
0c6217349cde36058d5599800e289fdf0d3eaf23
[ "MIT" ]
null
null
null
legal_crawlers/legal_spiders/items.py
OpenLawsGR/judgments2AKN
0c6217349cde36058d5599800e289fdf0d3eaf23
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class LegalSpidersItem(scrapy.Item): # define the fields for your item here like: title = scrapy.Field() desc = scrapy.Field() url = scr...
19.631579
51
0.672922
93b7db7f142464caa32ae6a494436ce5951c9b56
7,506
py
Python
ros/src/waypoint_updater/waypoint_updater.py
m090009/carnd-capstone
f42f7106fda5b2c50e715b30357c072697cc4e2e
[ "MIT" ]
null
null
null
ros/src/waypoint_updater/waypoint_updater.py
m090009/carnd-capstone
f42f7106fda5b2c50e715b30357c072697cc4e2e
[ "MIT" ]
2
2019-03-30T05:35:00.000Z
2019-03-30T12:32:56.000Z
ros/src/waypoint_updater/waypoint_updater.py
m090009/carnd-capstone
f42f7106fda5b2c50e715b30357c072697cc4e2e
[ "MIT" ]
1
2019-02-25T17:54:24.000Z
2019-02-25T17:54:24.000Z
#!/usr/bin/env python import rospy from geometry_msgs.msg import PoseStamped from styx_msgs.msg import Lane, Waypoint, Constants from std_msgs.msg import Int32 import math import sys import tf ''' This node will publish waypoints from the car's current position to some `x` distance ahead. As mentioned in the doc, y...
38.891192
134
0.594991
93b822e6065c360da4680552109e3f2e79712aae
1,619
py
Python
Allura/allura/tests/functional/test_subscriber.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
1
2019-03-17T04:16:15.000Z
2019-03-17T04:16:15.000Z
Allura/allura/tests/functional/test_subscriber.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
Allura/allura/tests/functional/test_subscriber.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "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 (t...
40.475
74
0.689932
93b8317373e6179386cdc33962ab29c1b3ee275a
2,426
py
Python
features/steps/gets_sensor_data.py
tonyroberts/project-tetra-display
ada1169d3884e61c06e90fe50a9886b50564c7dd
[ "MIT" ]
4
2020-07-29T09:18:16.000Z
2021-05-19T22:31:23.000Z
features/steps/gets_sensor_data.py
tonyroberts/project-tetra-display
ada1169d3884e61c06e90fe50a9886b50564c7dd
[ "MIT" ]
44
2020-07-29T09:12:07.000Z
2021-07-04T01:50:57.000Z
features/steps/gets_sensor_data.py
tonyroberts/project-tetra-display
ada1169d3884e61c06e90fe50a9886b50564c7dd
[ "MIT" ]
4
2020-07-31T20:02:47.000Z
2021-05-14T08:48:38.000Z
import os from behave import given, when, then import warnings from sensors import NotEnoughSensors import server from tetra_constants import (SENSOR_QUANTITY, ENOUGH_SENSORS, NOT_ENOUGH_SENSORS, NUMBER_OF_PATIENTS) @given("there ...
28.541176
75
0.682193
93b844522981b6ca3a6ff3e737743a5327cc38ad
9,060
py
Python
ethereum_cli.py
m-bo-one/ethereumd-proxy
1d1eb3905dac4b28a8e23c283214859a13f6e020
[ "MIT" ]
21
2017-07-24T15:45:03.000Z
2019-09-21T16:18:48.000Z
ethereum_cli.py
m-bo-one/ethereumd-proxy
1d1eb3905dac4b28a8e23c283214859a13f6e020
[ "MIT" ]
11
2017-07-24T20:14:16.000Z
2019-02-10T22:52:32.000Z
ethereum_cli.py
DeV1doR/ethereumd-proxy
1d1eb3905dac4b28a8e23c283214859a13f6e020
[ "MIT" ]
8
2018-02-17T13:33:15.000Z
2020-08-16T05:21:34.000Z
import os import sys import signal import json from collections import Mapping import requests import click from ethereumd.proxy import EthereumProxy from ethereumd.server import RPCServer CONTEXT_SETTINGS = dict(help_option_names=['-?', '-h', '-help']) if sys.platform.startswith('linux'): # linux DEFAULT_...
31.789474
117
0.566998
93b86bbb8d1dafdd5ffa0887110ab6ead6bc813a
977
py
Python
atom/proton/python/test/test_customer_analysis_request.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
11
2019-04-16T02:11:17.000Z
2021-12-16T22:51:40.000Z
atom/proton/python/test/test_customer_analysis_request.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
81
2019-11-19T23:24:28.000Z
2022-03-28T11:35:47.000Z
atom/proton/python/test/test_customer_analysis_request.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
11
2020-07-08T02:29:56.000Z
2022-03-28T10:05:33.000Z
# coding: utf-8 """ Hydrogen Proton API Financial engineering module of Hydrogen Atom # noqa: E501 OpenAPI spec version: 1.9.2 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import...
23.829268
101
0.728762
93b86c88c5d53d7a669a86db66ddbcf9541334ca
839
py
Python
dj_authy/users/forms.py
zeenfaizpy/dj_authy
aa8e71abe32296aaeb6e163ec276286b22662eac
[ "MIT" ]
null
null
null
dj_authy/users/forms.py
zeenfaizpy/dj_authy
aa8e71abe32296aaeb6e163ec276286b22662eac
[ "MIT" ]
null
null
null
dj_authy/users/forms.py
zeenfaizpy/dj_authy
aa8e71abe32296aaeb6e163ec276286b22662eac
[ "MIT" ]
null
null
null
from django.contrib.auth import forms, get_user_model from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ User = get_user_model() class UserChangeForm(forms.UserChangeForm): class Meta(forms.UserChangeForm.Meta): model = User class UserCreationForm...
27.064516
69
0.699642
93b89e9bfcacc08bd292c87bdefb81750e07ccbe
17,300
py
Python
homeassistant/components/auth/__init__.py
stravinci/AIS-home-assistant
ead4dafd3f801ebeb32860bd34443ed24a4f4167
[ "Apache-2.0" ]
null
null
null
homeassistant/components/auth/__init__.py
stravinci/AIS-home-assistant
ead4dafd3f801ebeb32860bd34443ed24a4f4167
[ "Apache-2.0" ]
null
null
null
homeassistant/components/auth/__init__.py
stravinci/AIS-home-assistant
ead4dafd3f801ebeb32860bd34443ed24a4f4167
[ "Apache-2.0" ]
null
null
null
"""Component to allow users to login and get tokens. # POST /auth/token This is an OAuth2 endpoint for granting tokens. We currently support the grant types "authorization_code" and "refresh_token". Because we follow the OAuth2 spec, data should be send in formatted as x-www-form-urlencoded. Examples will be in JSON ...
31.115108
88
0.648497
93b8a1ede0070b42f282a4a179b3368810a1dbbd
60
py
Python
apps/bot/handlers/users/__init__.py
FrozRt/marmon_back
ec58b6d8fcc81d13a841efb84bde5914fd316787
[ "MIT" ]
null
null
null
apps/bot/handlers/users/__init__.py
FrozRt/marmon_back
ec58b6d8fcc81d13a841efb84bde5914fd316787
[ "MIT" ]
45
2021-03-12T02:20:24.000Z
2021-07-26T02:46:11.000Z
apps/bot/handlers/users/__init__.py
FrozRt/marmon_back
ec58b6d8fcc81d13a841efb84bde5914fd316787
[ "MIT" ]
null
null
null
from .help import dp from .start import dp __all__ = ["dp"]
15
21
0.7
93b8caeb5af2516e6b2e4bb70eb18bfcc4bb319b
8,015
py
Python
cloudmesh_pbs/PBSScriptWrapper.py
cloudmesh/pbs
6cc56f499afccf519616a6fef75705c5f5b4af6e
[ "Apache-2.0" ]
4
2016-03-30T08:22:19.000Z
2020-09-08T14:52:05.000Z
cloudmesh_pbs/PBSScriptWrapper.py
cloudmesh/pbs
6cc56f499afccf519616a6fef75705c5f5b4af6e
[ "Apache-2.0" ]
3
2021-03-19T22:57:11.000Z
2021-03-25T22:14:37.000Z
cloudmesh_pbs/PBSScriptWrapper.py
cloudmesh/pbs
6cc56f499afccf519616a6fef75705c5f5b4af6e
[ "Apache-2.0" ]
4
2015-05-18T23:53:04.000Z
2015-08-22T17:10:40.000Z
"""Wrap the PBS script with another script that captures stdout and stderr, and provides support for checking the status of the job. """ import shlex import pipes from collections import namedtuple import os.path from textwrap import dedent import os import stat PBSScriptParserResult = namedtuple( 'PBSScriptPars...
27.733564
82
0.576045
93b8cd6796955cffead1c991ae5a8470416c229d
1,178
py
Python
python/ingestion/county_adjacency.py
aaronsn/health-equity-tracker
c6b0b7cb76a17320a820bb826c622dad2fb9762d
[ "MIT" ]
null
null
null
python/ingestion/county_adjacency.py
aaronsn/health-equity-tracker
c6b0b7cb76a17320a820bb826c622dad2fb9762d
[ "MIT" ]
null
null
null
python/ingestion/county_adjacency.py
aaronsn/health-equity-tracker
c6b0b7cb76a17320a820bb826c622dad2fb9762d
[ "MIT" ]
null
null
null
from .gcs_to_bq_util import load_csv_as_dataframe, append_dataframe_to_bq # Note: each county's neighbors list includes itself def write_adjacencies_to_bq(dataset, table_name, gcs_bucket, filename): """Writes county adjacencies to BigQuery from the provided GCS bucket dataset: The BigQuery dataset to writ...
39.266667
74
0.683362
93b8cea6d64ce947dfbd63bc93b9e7a01f0bb497
10,401
py
Python
worker/cook/worker.py
mixslice/bake
ba452da5b988f4ba68201a8bdb8c2d29920e1c28
[ "MIT" ]
2
2020-05-17T07:35:54.000Z
2021-08-01T21:27:51.000Z
worker/cook/worker.py
mixslice/bake
ba452da5b988f4ba68201a8bdb8c2d29920e1c28
[ "MIT" ]
null
null
null
worker/cook/worker.py
mixslice/bake
ba452da5b988f4ba68201a8bdb8c2d29920e1c28
[ "MIT" ]
null
null
null
from __future__ import division import bake import tailer import subprocess import os import datetime import time import logging logger = logging.getLogger(__name__) class RenderCommandError(Exception): pass class RenderProgressError(Exception): pass class ReportHandler(): def __init__(self, name): ...
37.413669
103
0.556966
93b8de146254d89e11fe1213256ad14e1cf669a8
1,845
py
Python
examples/l3dcube/graph.py
stewartadam/netl3d
a222b7fd65d61a3b8393409a8fe6888d55d949ce
[ "MIT" ]
3
2016-12-09T07:30:26.000Z
2021-04-18T13:50:11.000Z
examples/l3dcube/graph.py
stewartadam/netl3d
a222b7fd65d61a3b8393409a8fe6888d55d949ce
[ "MIT" ]
null
null
null
examples/l3dcube/graph.py
stewartadam/netl3d
a222b7fd65d61a3b8393409a8fe6888d55d949ce
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Generates and sends graph frames, rotating graph types every 10s. """ import itertools import random import spectra import time import netl3d from netl3d.hardware import l3dcube def generate_frame_random(): i = 0 while True: frame = l3dcube.GraphFrame() fi...
23.653846
73
0.654743
93b8f7e3c04cc4744835666015efd3ac3b1f34aa
1,687
py
Python
archive/nexus-api-v2/Database/User/Models/Name.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
null
null
null
archive/nexus-api-v2/Database/User/Models/Name.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
null
null
null
archive/nexus-api-v2/Database/User/Models/Name.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
1
2022-01-03T05:33:15.000Z
2022-01-03T05:33:15.000Z
#!/usr/bin/env python3 # -*- Coding: UTF-8 -*- # # -*- System: Linux -*- # # -*- Usage: *.py -*- # # Owner: Jacob B. Sanders # Source: code.cloud-technology.io # License: BSD 2-Clause License """ ... """ from . import * import Database.SQL import Database.User.Models.Base as Base class Table(Base.Table, ...
21.0875
110
0.542383
93b91038d897b1dd627de67b8c2abb0e64d847b6
76,339
py
Python
google/cloud/compute_v1/services/region_disks/client.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/region_disks/client.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/region_disks/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...
46.07061
140
0.610618
93b925991d149eb13aa5b2f4ecc7dd37d4892ee3
3,049
py
Python
examples/video-c3d/plot.py
NervanaSystems/ngraph-python
ac032c83c7152b615a9ad129d54d350f9d6a2986
[ "Apache-2.0" ]
18
2018-03-19T04:16:49.000Z
2021-02-08T14:44:58.000Z
examples/video-c3d/plot.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
2
2019-04-16T06:41:49.000Z
2019-05-06T14:08:13.000Z
examples/video-c3d/plot.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
11
2018-06-16T15:59:08.000Z
2021-03-06T00:45:30.000Z
# ****************************************************************************** # Copyright 2017-2018 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apa...
33.141304
97
0.650377
93b931617ca8170c95460732ef5bdfcca5b4548a
1,103
py
Python
tests/validation-sets/auto-ext/src/Hello.py
TheDubliner/confluencebuilder
f92d63ae9949c52cf8639643073aacb249cacd62
[ "BSD-2-Clause" ]
158
2019-03-18T13:42:40.000Z
2022-03-25T09:46:59.000Z
tests/validation-sets/auto-ext/src/Hello.py
TheDubliner/confluencebuilder
f92d63ae9949c52cf8639643073aacb249cacd62
[ "BSD-2-Clause" ]
192
2019-03-15T14:12:25.000Z
2022-03-27T18:35:48.000Z
tests/validation-sets/auto-ext/src/Hello.py
TheDubliner/confluencebuilder
f92d63ae9949c52cf8639643073aacb249cacd62
[ "BSD-2-Clause" ]
54
2019-03-22T14:14:31.000Z
2022-03-08T06:54:28.000Z
""" This is a module docstring """ class Hello(object): """ This is a Hello class docstring """ def __init__(self, name, name2): """ This is an __init__ method docstring. Creates a new :class:`Hello` instance. :param name: name for the hello :param name2: name2 ...
23.468085
78
0.549411
93b93a0b7f40c35f7b08d6d96cb88c6b5ea3fd00
1,665
py
Python
tests/test_qc.py
AMARTELKE/Pangenome-with-Panaroo
b720debf8616882668d53600038c334393080d9b
[ "MIT" ]
116
2019-11-28T07:54:26.000Z
2022-03-31T03:20:44.000Z
tests/test_qc.py
AMARTELKE/Pangenome-with-Panaroo
b720debf8616882668d53600038c334393080d9b
[ "MIT" ]
120
2019-12-08T21:01:46.000Z
2022-03-30T04:11:52.000Z
tests/test_qc.py
AMARTELKE/Pangenome-with-Panaroo
b720debf8616882668d53600038c334393080d9b
[ "MIT" ]
19
2019-12-19T05:34:03.000Z
2022-03-19T05:54:51.000Z
# test if the correct qc plots can be generated from panaroo.generate_qc_plots import main import sys import os.path import tempfile def test_qc(datafolder): with tempfile.TemporaryDirectory() as tmpoutdir: # run panaroo sys.argv = [ "", "-i", datafolder + "aa1.gff", datafolder + "aa2...
36.195652
77
0.599399
93b95b1579a6a62619fa9ee3a4c93699ddbfbda1
678
py
Python
multiNotification/notification/models.py
davidezagami/ListingStrat
9ad3d5c8215b4486f4bb2a9fa4ee2b85a4a052c5
[ "MIT" ]
null
null
null
multiNotification/notification/models.py
davidezagami/ListingStrat
9ad3d5c8215b4486f4bb2a9fa4ee2b85a4a052c5
[ "MIT" ]
null
null
null
multiNotification/notification/models.py
davidezagami/ListingStrat
9ad3d5c8215b4486f4bb2a9fa4ee2b85a4a052c5
[ "MIT" ]
null
null
null
from typing import Optional from pydantic import BaseModel from typing import Protocol class FormatFunction(Protocol): def __call__(self, service, *args, **kwargs) -> str: ... class NotificationSettings(BaseModel): message: Optional[bool] = True error: Optional[bool] = True warning: Optiona...
22.6
56
0.70944
93b967e066a370bab469d33a6f8621930169c54c
2,100
py
Python
oscar/lib/python2.7/site-packages/django/template/backends/dummy.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/template/backends/dummy.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/template/backends/dummy.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# Since this package contains a "django" module, this is required on Python 2. from __future__ import absolute_import import errno import io import string from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.template import Origin, TemplateDoesNotExist from dj...
32.8125
83
0.611905
93b96e603e9751484147e286a6df1be2af6f83d8
25
py
Python
btd6_memory_info/generated/System/Globalization/globalization.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Globalization/globalization.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Globalization/globalization.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class Globalization: pass
25
25
0.88
93b98450f4e718a11ffb6252aa62b6503e361d52
178
py
Python
sh/scripts/node_start.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
4
2020-03-10T15:28:17.000Z
2021-10-02T11:41:17.000Z
sh/scripts/node_start.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
1
2020-03-25T11:31:44.000Z
2020-03-25T11:31:44.000Z
sh/scripts/node_start.py
goral09/stests
4de26485535cadf1b708188a7133a976536ccba3
[ "Apache-2.0" ]
9
2020-02-25T18:43:42.000Z
2021-08-10T17:08:42.000Z
from sh.scripts.svc_utils import common_main from sh.scripts.svc_utils import SvcCommand SVC_COMMAND = SvcCommand.START if __name__ == '__main__': common_main(SVC_COMMAND)
22.25
44
0.803371
93b9a3ededf571720d8a14f6e7cfa557d9d7acfa
7,580
py
Python
src/main.py
PyeongKim/GNN_scaffold_based_drug_generation
23a1d057d017d02e0738fa1f999cedb060cdb4c9
[ "MIT" ]
null
null
null
src/main.py
PyeongKim/GNN_scaffold_based_drug_generation
23a1d057d017d02e0738fa1f999cedb060cdb4c9
[ "MIT" ]
null
null
null
src/main.py
PyeongKim/GNN_scaffold_based_drug_generation
23a1d057d017d02e0738fa1f999cedb060cdb4c9
[ "MIT" ]
null
null
null
import time from cl_graph_multi_batch import ScaffoldGNN from cl_featuriser import AtomFeaturiser, BondFeaturiser from cl_dataset_multi_batch import * import torch.nn as nn import pandas as pd import os import torch.multiprocessing torch.multiprocessing.set_sharing_strategy('file_system') os.environ["CUDA_VISI...
58.75969
171
0.625726
93b9aad537f91fe3da9e0eed566426fc1f8232d6
476
py
Python
cell2cell/plotting/__init__.py
ckmah/cell2cell
ce18bbb63e12f9b1da8699567dec9a2a8b78f824
[ "BSD-3-Clause" ]
16
2020-09-30T01:53:43.000Z
2022-03-25T09:58:54.000Z
cell2cell/plotting/__init__.py
ckmah/cell2cell
ce18bbb63e12f9b1da8699567dec9a2a8b78f824
[ "BSD-3-Clause" ]
2
2021-08-09T21:26:54.000Z
2021-11-08T14:47:39.000Z
cell2cell/plotting/__init__.py
ckmah/cell2cell
ce18bbb63e12f9b1da8699567dec9a2a8b78f824
[ "BSD-3-Clause" ]
3
2021-11-08T07:47:44.000Z
2022-03-30T18:40:00.000Z
from __future__ import absolute_import from cell2cell.plotting.aesthetics import get_colors_from_labels, map_colors_to_metadata, generate_legend from cell2cell.plotting.ccc_plot import clustermap_ccc from cell2cell.plotting.cci_plot import clustermap_cci from cell2cell.plotting.circos_plot import circos_plot from cell...
47.6
105
0.892857
93b9ad3a0a7648aedfadeb49081757ee68a3f1ca
1,047
py
Python
company/management/commands/create_registered_company.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
1
2021-11-06T12:08:26.000Z
2021-11-06T12:08:26.000Z
company/management/commands/create_registered_company.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
null
null
null
company/management/commands/create_registered_company.py
konradko/directory-api
e9cd05b1deaf575e94352c46ddbd1857d8119fda
[ "MIT" ]
null
null
null
from django.core.management import BaseCommand from company.models import Company class Command(BaseCommand): help = 'Used to create a company for integration tests.' def add_arguments(self, parser): parser.add_argument('company_number', nargs='+', type=str) def handle(self, *args, **options):...
32.71875
66
0.578797
93b9ba3a71cd1a68e37bc40134a32212f006f6eb
6,168
py
Python
sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/_azure_bot_service.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/_azure_bot_service.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/_azure_bot_service.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 ...
51.4
239
0.733463
93b9c1050e557399d3835fa0ac729d5dfd14a19b
3,497
py
Python
tests/test_box.py
dlstadther/webmercator
0f9ee4da68738a8fdb32add715e127820550835f
[ "MIT" ]
1
2018-07-24T22:47:24.000Z
2018-07-24T22:47:24.000Z
tests/test_box.py
dlstadther/webmercator
0f9ee4da68738a8fdb32add715e127820550835f
[ "MIT" ]
6
2018-07-11T13:20:22.000Z
2019-03-07T16:19:49.000Z
tests/test_box.py
dlstadther/webmercator
0f9ee4da68738a8fdb32add715e127820550835f
[ "MIT" ]
1
2018-07-24T22:47:29.000Z
2018-07-24T22:47:29.000Z
# MIT License # # Copyright (c) 2018 Republic Wireless # # 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, m...
35.323232
95
0.7169
93ba5fbc7daebaeada1201b42214e756d5b1f1a8
114
py
Python
umiread/__init__.py
matt-sd-watson/umiread
f5ca44b202b108bb0426f683db75aa20e31f4069
[ "MIT" ]
null
null
null
umiread/__init__.py
matt-sd-watson/umiread
f5ca44b202b108bb0426f683db75aa20e31f4069
[ "MIT" ]
null
null
null
umiread/__init__.py
matt-sd-watson/umiread
f5ca44b202b108bb0426f683db75aa20e31f4069
[ "MIT" ]
null
null
null
from umiread.umi_extract import extract_from_single, extract_from_folder from umiread.umi_stats import UMIStats
38
73
0.877193
93ba63e22b30ea3caf1877d3762d938531ac3d2e
3,626
py
Python
spotty/providers/gcp/deployment/image_deployment.py
tsdalton/spotty
e67cae8afec893ec32c80a2f158a9fe3566b144c
[ "MIT" ]
1
2020-07-17T07:02:09.000Z
2020-07-17T07:02:09.000Z
spotty/providers/gcp/deployment/image_deployment.py
AIDungeon/spotty
db92141b0b50134bcacdc5d5429b6c021099a811
[ "MIT" ]
null
null
null
spotty/providers/gcp/deployment/image_deployment.py
AIDungeon/spotty
db92141b0b50134bcacdc5d5429b6c021099a811
[ "MIT" ]
null
null
null
from spotty.commands.writers.abstract_output_writrer import AbstractOutputWriter from spotty.providers.gcp.deployment.abstract_gcp_deployment import AbstractGcpDeployment from spotty.providers.gcp.deployment.project_resources.image_stack import ImageStackResource from spotty.providers.gcp.gcp_resources.image import Ima...
44.219512
123
0.69636
93ba6cd43f7f628b1555c6ab6fda3203b1f27b18
22,159
py
Python
sem/storage/document.py
YoannDupont/SEM
ff21c5dc9a8e99eda81dc266e67cfa97dec7c243
[ "MIT" ]
22
2016-11-13T21:08:58.000Z
2021-04-26T07:04:54.000Z
sem/storage/document.py
Raphencoder/SEM
ff21c5dc9a8e99eda81dc266e67cfa97dec7c243
[ "MIT" ]
15
2016-11-15T10:21:07.000Z
2021-11-08T10:08:05.000Z
sem/storage/document.py
Raphencoder/SEM
ff21c5dc9a8e99eda81dc266e67cfa97dec7c243
[ "MIT" ]
8
2016-11-15T10:21:41.000Z
2022-03-04T21:28:05.000Z
# -*- coding: utf-8 -*- """ file: document.py Description: defines the "all purpose" document object. A document is a holder that will contain various informations, such as a content, a set of segmentations or annotations. author: Yoann Dupont MIT License Copyright (c) 2018 Yoann Dupont Permission is hereby grant...
42.860735
210
0.574169
93ba718702fa0ab20462515b08599883f6cb59f4
59,277
py
Python
gym_env/feature_processors/features_v0/features.py
Andrea-MariaDB-2/LastOrder-Dota2
d2fb53a7166218eda1e402efd422586f3adaadff
[ "MIT" ]
332
2021-08-02T07:37:41.000Z
2022-03-26T17:44:53.000Z
gym_env/feature_processors/features_v0/features.py
Andrea-MariaDB-2/LastOrder-Dota2
d2fb53a7166218eda1e402efd422586f3adaadff
[ "MIT" ]
13
2021-08-04T12:04:24.000Z
2021-09-26T06:57:46.000Z
gym_env/feature_processors/features_v0/features.py
Andrea-MariaDB-2/LastOrder-Dota2
d2fb53a7166218eda1e402efd422586f3adaadff
[ "MIT" ]
34
2021-08-02T09:08:39.000Z
2022-03-27T18:32:31.000Z
import numpy as np from dotaservice.protos.dota_gcmessages_common_bot_script_pb2 import CMsgBotWorldState from dotaservice.dotautil import location_to_degree, cal_distance_with_z, attack_to_death_times, in_facing_distance, \ attack_time, attack_damage, cal_distance from model.action_mask import ActionMask from gym...
47.045238
175
0.591511
93ba8876efb8ff73a4753afb1f9d42fd76dbad9f
4,523
py
Python
src/posix_spawn/tests/test_posix_spawn.py
glyph/posix_spawn
da023d18fdd5e86b8391f7a9ea804ad3e259142d
[ "MIT" ]
3
2016-06-13T20:29:42.000Z
2020-12-13T09:26:32.000Z
src/posix_spawn/tests/test_posix_spawn.py
glyph/posix_spawn
da023d18fdd5e86b8391f7a9ea804ad3e259142d
[ "MIT" ]
4
2015-09-15T23:58:02.000Z
2019-08-03T22:09:59.000Z
src/posix_spawn/tests/test_posix_spawn.py
glyph/posix_spawn
da023d18fdd5e86b8391f7a9ea804ad3e259142d
[ "MIT" ]
5
2015-08-14T15:13:40.000Z
2019-05-18T10:37:57.000Z
import os import sys import stat import textwrap import pytest from posix_spawn import posix_spawn, FileActions executable = sys.executable.encode('ascii') environ = getattr(os, 'environb', os.environ) def exits(pid): (_pid, exit, _rusage) = os.wait4(pid, 0) return os.WEXITSTATUS(exit) class TestPosixSpa...
28.446541
71
0.502985
93bad91ac9a5f3753e4bef2b6469f9111b42faad
664
py
Python
scripts/merge/merge_ads.py
151232summerday/Tencent_Ads_Algo_2018
dc1aa2285e196e87d100b7e6769f3c97c19e394f
[ "MIT" ]
293
2018-08-17T14:29:28.000Z
2022-02-28T12:35:48.000Z
scripts/merge/merge_ads.py
151232summerday/Tencent_Ads_Algo_2018
dc1aa2285e196e87d100b7e6769f3c97c19e394f
[ "MIT" ]
1
2018-08-21T14:48:38.000Z
2018-08-21T14:48:38.000Z
scripts/merge/merge_ads.py
151232summerday/Tencent_Ads_Algo_2018
dc1aa2285e196e87d100b7e6769f3c97c19e394f
[ "MIT" ]
70
2018-08-21T03:39:38.000Z
2022-03-01T07:21:08.000Z
adFeature_fn_A = "data/A/adFeature.csv" adFeature_fn_F = "data/F/adFeature.csv" adFeature_fn_M = "data/M_ff/adFeature.csv" ads = dict() with open(adFeature_fn_A) as f: header = f.readline() for line in f: records = line.strip().split(',') aid = int(records[0]) ads[aid] = line with open...
23.714286
42
0.581325
93bad924b89e99c93420eb8ac20606e760ca9af7
1,172
py
Python
django/contrib/formtools/tests/forms.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
4
2015-08-27T22:03:47.000Z
2017-09-04T08:13:44.000Z
django/contrib/formtools/tests/forms.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
null
null
null
django/contrib/formtools/tests/forms.py
hafeez3000/django
08e1175ac8d683b692ec3c67dc31df149f07dc8f
[ "BSD-3-Clause" ]
1
2020-01-04T14:51:18.000Z
2020-01-04T14:51:18.000Z
from django import forms from django.contrib.formtools.wizard import FormWizard from django.http import HttpResponse class Page1(forms.Form): name = forms.CharField(max_length=100) thirsty = forms.NullBooleanField() class Page2(forms.Form): address1 = forms.CharField(max_length=100) address2 = forms.C...
26.636364
54
0.735495