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
ff197f0201caa64e48a4386d0cdc1442483943c4
1,126
py
Python
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/compute/target_instances/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/target_instances/flags.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/compute/target_instances/flags.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2016 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.214286
74
0.769094
ff198a724751b7058b7d0d4985c0d6baccee4a24
1,007
py
Python
src/ackward/logging/Filter.py
abingham/ackward
f1a45293de570f4b4429d9eaeb3f6c4da7d245bf
[ "MIT" ]
null
null
null
src/ackward/logging/Filter.py
abingham/ackward
f1a45293de570f4b4429d9eaeb3f6c4da7d245bf
[ "MIT" ]
null
null
null
src/ackward/logging/Filter.py
abingham/ackward
f1a45293de570f4b4429d9eaeb3f6c4da7d245bf
[ "MIT" ]
null
null
null
from ackward import (Class, Constructor, Namespace, TranslationUnit) filter_doc='''\\rst A wrapper around Python `logging.Filter <http://docs.python.org/py3k/library/logging.html#filter-objects>`_ objects. \\endrst''' def tunit(): return TranslationUn...
25.820513
67
0.529295
ff1994e4ed3bdaa787c4221984388d48f85d9674
1,173
py
Python
sky/migrations/0016_auto_20180310_0949.py
eethan1/IMnight2018_Backend
39780f737e57763fdfb171c4687a375d3c5a4bb0
[ "Apache-2.0" ]
null
null
null
sky/migrations/0016_auto_20180310_0949.py
eethan1/IMnight2018_Backend
39780f737e57763fdfb171c4687a375d3c5a4bb0
[ "Apache-2.0" ]
null
null
null
sky/migrations/0016_auto_20180310_0949.py
eethan1/IMnight2018_Backend
39780f737e57763fdfb171c4687a375d3c5a4bb0
[ "Apache-2.0" ]
4
2018-01-27T06:01:41.000Z
2018-02-21T12:18:35.000Z
# Generated by Django 2.0.3 on 2018-03-10 09:49 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('sky', '0015_course_task'), ] operations = [ migrations.AlterModelOptions( name='article', ...
31.702703
112
0.575448
ff19a27d88fec868b3ac419e7c0e891e06e240ed
346
py
Python
music_bg/logging.py
music-bg/music_bg
5b79eacb32506b6eda5861df4b5f71b611c5dfa3
[ "MIT" ]
3
2021-09-17T12:27:46.000Z
2021-09-18T19:03:01.000Z
music_bg/logging.py
music-bg/music_bg
5b79eacb32506b6eda5861df4b5f71b611c5dfa3
[ "MIT" ]
null
null
null
music_bg/logging.py
music-bg/music_bg
5b79eacb32506b6eda5861df4b5f71b611c5dfa3
[ "MIT" ]
null
null
null
from sys import stdout from loguru import logger from music_bg.config import LogLevel def init_logger(level: LogLevel) -> None: """Configure music_bg logging. :param level: New log level. """ logger.remove() logger.add( sink=stdout, level=level.value, diagnose=True, ...
17.3
41
0.635838
ff19d9766b85f8e757f0b46b302523dddb8c6890
398
py
Python
olive/ui/protoedit/presenter.py
liuyenting/olive-core
b532b29e29fe9f167369f66b8d922f5f644f9309
[ "Apache-2.0" ]
null
null
null
olive/ui/protoedit/presenter.py
liuyenting/olive-core
b532b29e29fe9f167369f66b8d922f5f644f9309
[ "Apache-2.0" ]
null
null
null
olive/ui/protoedit/presenter.py
liuyenting/olive-core
b532b29e29fe9f167369f66b8d922f5f644f9309
[ "Apache-2.0" ]
null
null
null
import logging from abc import abstractmethod from ..base import PresenterBase from .view import ProtocolEditorView __all__ = ["ProtocolEditorPresenter"] logger = logging.getLogger(__name__) class ProtocolEditorPresenter(PresenterBase): def __init__(self, view: ProtocolEditorView): super()...
18.952381
50
0.70603
ff1a0c694ba6cd277bab3bab209d7dd6ed7b72cf
2,558
py
Python
orchid/native_subsurface_point.py
Reveal-Energy-Services/orchid
4c177ac5a511a80a3588ab8da873fc2d74358da8
[ "Apache-2.0" ]
null
null
null
orchid/native_subsurface_point.py
Reveal-Energy-Services/orchid
4c177ac5a511a80a3588ab8da873fc2d74358da8
[ "Apache-2.0" ]
null
null
null
orchid/native_subsurface_point.py
Reveal-Energy-Services/orchid
4c177ac5a511a80a3588ab8da873fc2d74358da8
[ "Apache-2.0" ]
null
null
null
# # This file is part of Orchid and related technologies. # # Copyright (c) 2017-2022 Reveal Energy Services. All Rights Reserved. # # LEGAL NOTICE: # Orchid contains trade secrets and otherwise confidential information # owned by Reveal Energy Services. Access to and use of this information is # strictly limited and...
36.028169
109
0.715403
ff1a138f50b15e9b575f78590460b10e258417d0
350
py
Python
src/speaking_eye/notification_emojis.py
alena-bartosh/speaking-eye
86e692cf5d3182f77b28e5264da74657d1972303
[ "MIT" ]
6
2020-04-30T17:35:09.000Z
2021-11-18T09:41:50.000Z
src/speaking_eye/notification_emojis.py
alena-bartosh/speaking-eye
86e692cf5d3182f77b28e5264da74657d1972303
[ "MIT" ]
6
2020-05-16T17:52:45.000Z
2021-08-16T11:47:11.000Z
src/speaking_eye/notification_emojis.py
alena-bartosh/speaking-eye
86e692cf5d3182f77b28e5264da74657d1972303
[ "MIT" ]
null
null
null
BREAK_TIME_EMOJIS = ['๐Ÿต', 'โœ‹', '๐Ÿ™ƒ', '๐Ÿ’†', '๐Ÿ’ฃ', '๐Ÿ˜Ž', '๐Ÿ™‡', '๐Ÿ™‹', '๐Ÿšฃ', '๐Ÿคธ', '๐ŸงŸ', '๐Ÿ™', '๐Ÿง', 'โ˜•', '๐ŸŒ', '๐Ÿฅ', '๐Ÿ†“', '๐Ÿ”ฎ'] DISTRACTING_NOTIFICATION_EMOJIS = ['๐Ÿง', '๐ŸŒ“', '๐Ÿฅค', '๐Ÿ’ผ', '๐Ÿ˜', '๐Ÿฅด', '๐Ÿค–', '๐Ÿ’ญ', '๐Ÿง ', '๐Ÿคต', '๐Ÿคน', '๐Ÿค', ...
38.888889
64
0.137143
ff1a297fb70e6e8074d94548f751bd034c5ab662
21
py
Python
datacompare/example.py
kitjosh1050/DataCompare
2a410c69ef5a97b000a4eef254a41f44f2c53c4b
[ "MIT" ]
3
2016-04-20T10:13:24.000Z
2019-07-31T22:36:08.000Z
datacompare/example.py
kitjosh1050/DataCompare
2a410c69ef5a97b000a4eef254a41f44f2c53c4b
[ "MIT" ]
1
2016-03-02T21:59:12.000Z
2016-03-03T14:32:49.000Z
datacompare/example.py
kitjosh1050/DataCompare
2a410c69ef5a97b000a4eef254a41f44f2c53c4b
[ "MIT" ]
1
2016-04-09T17:09:07.000Z
2016-04-09T17:09:07.000Z
""" run py.test """
4.2
11
0.428571
ff1a522c5b9c88d7f2a04a8053a2787ce1dd0120
2,411
py
Python
project_euler/problem_23/sol1.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
project_euler/problem_23/sol1.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
null
null
null
project_euler/problem_23/sol1.py
tg12/Python
398d1dbf4b780d1725aeae9a91b4c79f4410e2f0
[ "MIT" ]
1
2020-06-26T09:46:17.000Z
2020-06-26T09:46:17.000Z
'''THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OT...
33.957746
80
0.702613
ff1a5759d9dfe9b8eb5bab6ea2dd708e21ae2399
369
py
Python
ros/build/twist_controller/catkin_generated/pkg.develspace.context.pc.py
bryantravissmith/SelfDrivingCar-ND-Capstone
58147b0b3977a918b2cf9f182c315c8dd7c041e2
[ "MIT" ]
null
null
null
ros/build/twist_controller/catkin_generated/pkg.develspace.context.pc.py
bryantravissmith/SelfDrivingCar-ND-Capstone
58147b0b3977a918b2cf9f182c315c8dd7c041e2
[ "MIT" ]
11
2020-01-28T23:13:19.000Z
2022-03-12T00:10:25.000Z
ros/build/twist_controller/catkin_generated/pkg.develspace.context.pc.py
bryantravissmith/SelfDrivingCar-ND-Capstone
58147b0b3977a918b2cf9f182c315c8dd7c041e2
[ "MIT" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "twist_controller" PROJECT_SPACE_DIR =...
41
68
0.704607
ff1a76650b9833cadb731e62188ed9e8a06511dd
1,286
py
Python
tests/common/test_op/ascend/mul_ad.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_op/ascend/mul_ad.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_op/ascend/mul_ad.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-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...
28.577778
74
0.726283
ff1a7ad3650e66b770b997f18755cbcae7abb8e5
31,548
py
Python
cam/sgnmt/predictors/length.py
wenting-zhao/sgnmt
bc6be550b116a1274b44eb1deabf67d99975d434
[ "Apache-2.0" ]
null
null
null
cam/sgnmt/predictors/length.py
wenting-zhao/sgnmt
bc6be550b116a1274b44eb1deabf67d99975d434
[ "Apache-2.0" ]
null
null
null
cam/sgnmt/predictors/length.py
wenting-zhao/sgnmt
bc6be550b116a1274b44eb1deabf67d99975d434
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # coding=utf-8 # Copyright 2019 The SGNMT Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
38.379562
89
0.5885
ff1a7ba213239c57d528fddde3bca2deee672452
453
py
Python
scripts/train.py
jhejna/research-lightning
4c7391a4a69d1753089d8e43be19de3e6b3bfe01
[ "MIT" ]
2
2022-01-13T23:15:32.000Z
2022-01-18T21:23:47.000Z
scripts/train.py
jhejna/research-lightning
4c7391a4a69d1753089d8e43be19de3e6b3bfe01
[ "MIT" ]
null
null
null
scripts/train.py
jhejna/research-lightning
4c7391a4a69d1753089d8e43be19de3e6b3bfe01
[ "MIT" ]
null
null
null
import argparse from research.utils.trainer import Config, train if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--config", "-c", type=str, default=None) parser.add_argument("--path", "-p", type=str, default=None) parser.add_argument("--device", "-d", type=str, d...
34.846154
67
0.682119
ff1a92476867df68dd4834de951a95c09d267a28
32,650
py
Python
Tests/test_MafIO_index.py
mikepm35/biopython
9f2d4d8d70ec7223df35fdc3d9c4a3c018756327
[ "BSD-3-Clause" ]
null
null
null
Tests/test_MafIO_index.py
mikepm35/biopython
9f2d4d8d70ec7223df35fdc3d9c4a3c018756327
[ "BSD-3-Clause" ]
null
null
null
Tests/test_MafIO_index.py
mikepm35/biopython
9f2d4d8d70ec7223df35fdc3d9c4a3c018756327
[ "BSD-3-Clause" ]
1
2019-03-14T18:59:30.000Z
2019-03-14T18:59:30.000Z
# Copyright 2012 by Andrew Sczesnak. All rights reserved. # Revisions Copyright 2017 by Blaise Li. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Unit tests for Bio.AlignIO....
52.407705
140
0.529525
ff1a95a72caefd74047fab248f90b92f663eab5f
6,081
py
Python
sdk/cosmos/azure-cosmos/test/test_user_configs.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/cosmos/azure-cosmos/test/test_user_configs.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/cosmos/azure-cosmos/test/test_user_configs.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# The MIT License (MIT) # Copyright (c) 2021 Microsoft Corporation # 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...
50.256198
118
0.739352
ff1aeafd2742bb5cacac2b69a8586e6f74b703f0
1,259
py
Python
kubi_ecs_logger/models/include.py
kumina/kubi_ecs_logger
64d9519e0759a24253a4edc53e0c024675033d1c
[ "BSD-3-Clause" ]
6
2019-12-15T12:47:06.000Z
2022-01-11T08:54:58.000Z
kubi_ecs_logger/models/include.py
kumina/kubi_ecs_logger
64d9519e0759a24253a4edc53e0c024675033d1c
[ "BSD-3-Clause" ]
null
null
null
kubi_ecs_logger/models/include.py
kumina/kubi_ecs_logger
64d9519e0759a24253a4edc53e0c024675033d1c
[ "BSD-3-Clause" ]
null
null
null
from marshmallow import fields from .fields import * INCLUDE_FIELDS = { 'agent': fields.Nested(AgentSchema), 'client': fields.Nested(ClientSchema), 'cloud': fields.Nested(CloudSchema), 'container': fields.Nested(ContainerSchema), 'destination': fields.Nested(DestinationSchema), 'ecs': fields.N...
37.029412
54
0.706116
ff1af90272627d87d61493b6626ceef65a0e23c0
533
py
Python
lrtc_lib/data_access/processors/process_cola_data.py
MovestaDev/low-resource-text-classification-framework
4380755a65b35265e84ecbf4b87e872d79e8f079
[ "Apache-2.0" ]
57
2020-11-18T15:13:06.000Z
2022-03-28T22:33:26.000Z
lrtc_lib/data_access/processors/process_cola_data.py
MovestaDev/low-resource-text-classification-framework
4380755a65b35265e84ecbf4b87e872d79e8f079
[ "Apache-2.0" ]
5
2021-02-23T22:11:07.000Z
2021-12-13T00:13:48.000Z
lrtc_lib/data_access/processors/process_cola_data.py
MovestaDev/low-resource-text-classification-framework
4380755a65b35265e84ecbf4b87e872d79e8f079
[ "Apache-2.0" ]
14
2021-02-10T08:55:27.000Z
2022-02-23T22:37:54.000Z
# (c) Copyright IBM Corporation 2020. # LICENSE: Apache License 2.0 (Apache-2.0) # http://www.apache.org/licenses/LICENSE-2.0 from lrtc_lib.data_access.processors.dataset_part import DatasetPart from lrtc_lib.data_access.processors.process_csv_data import CsvProcessor class ColaProcessor(CsvProcessor): def __i...
31.352941
91
0.771107
ff1b4cf1b0094e7755a1cc282e8acf8b3821c133
4,052
py
Python
alipay/aop/api/request/AlipaySecurityDataAlibabaSecuritydataQueryRequest.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/AlipaySecurityDataAlibabaSecuritydataQueryRequest.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/AlipaySecurityDataAlibabaSecuritydataQueryRequest.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.AlipaySecurityDataAlibabaSecuritydataQueryModel import AlipaySecurityDataAlibabaSecuritydataQueryModel class AlipaySecurityDataAliba...
27.944828
148
0.65153
ff1b4e17a38aed53937bbf6ecb6cda517129e949
1,581
py
Python
superset/examples/__init__.py
rodrigoguariento/incubator-superset
b2633a51d43faaca74751349b96fc32784d4b377
[ "Apache-2.0" ]
30
2020-10-24T02:30:31.000Z
2022-03-29T23:21:48.000Z
superset/examples/__init__.py
Odirlei-Stein/incubator-superset
52afc33b31475536b287b56d262b9eaa32f479ab
[ "Apache-2.0" ]
339
2017-03-09T00:02:21.000Z
2022-03-29T22:28:50.000Z
superset/examples/__init__.py
Odirlei-Stein/incubator-superset
52afc33b31475536b287b56d262b9eaa32f479ab
[ "Apache-2.0" ]
9
2020-12-21T16:20:20.000Z
2022-03-18T06:04:37.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...
46.5
65
0.83365
ff1b585a316dd2d8eef1d94427ececfd3d988749
867
py
Python
acp_calendar/api/urls.py
luiscberrocal/django-acp-calendar
7251d7cbb1ba16983bbc3ba9af6178eb31408bee
[ "BSD-3-Clause" ]
1
2016-10-05T05:17:35.000Z
2016-10-05T05:17:35.000Z
acp_calendar/api/urls.py
luiscberrocal/django-acp-calendar
7251d7cbb1ba16983bbc3ba9af6178eb31408bee
[ "BSD-3-Clause" ]
17
2016-09-30T13:43:20.000Z
2021-06-10T20:44:40.000Z
acp_calendar/api/urls.py
luiscberrocal/django-acp-calendar
7251d7cbb1ba16983bbc3ba9af6178eb31408bee
[ "BSD-3-Clause" ]
6
2016-04-11T14:41:44.000Z
2017-10-20T21:16:39.000Z
from django.conf.urls import url from . import views urlpatterns = [ url(r"^working-days/(?P<start_date>[0-9]{4}-[0-9]{2}-[0-9]{2})/(?P<end_date>[0-9]{4}-[0-9]{2}-[0-9]{2})/$", views.CalendarCalculationsView.as_view(), {'calculation': 'working_days'}, name="working_days", ), url(r"^working-delta/(?P<s...
57.8
112
0.634371
ff1b63d075ac7a9dbf4b0e622b3059b8dad9707a
2,297
py
Python
udev/udev-182/.pc/fix_rule-syntax-regex-ptest.patch/test/rule-syntax-check.py
imx6uldev/depedency_tools
0748392a4e97ded2a770b6fbcab281dd3fda2db7
[ "MIT" ]
null
null
null
udev/udev-182/.pc/fix_rule-syntax-regex-ptest.patch/test/rule-syntax-check.py
imx6uldev/depedency_tools
0748392a4e97ded2a770b6fbcab281dd3fda2db7
[ "MIT" ]
null
null
null
udev/udev-182/.pc/fix_rule-syntax-regex-ptest.patch/test/rule-syntax-check.py
imx6uldev/depedency_tools
0748392a4e97ded2a770b6fbcab281dd3fda2db7
[ "MIT" ]
null
null
null
#!/usr/bin/python # Simple udev rules syntax checker # # (C) 2010 Canonical Ltd. # Author: Martin Pitt <martin.pitt@ubuntu.com> # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2...
35.338462
141
0.610361
ff1b64ffd59e7ab4b6176dc6406e6b811a9b44d5
13,353
py
Python
mmvec/heatmap.py
mstrazar/mmvec
199532f7ecdc63bac3a9892822ac0b8d10426d00
[ "BSD-3-Clause" ]
68
2019-10-20T02:56:34.000Z
2022-03-07T01:44:04.000Z
mmvec/heatmap.py
mstrazar/mmvec
199532f7ecdc63bac3a9892822ac0b8d10426d00
[ "BSD-3-Clause" ]
82
2019-09-05T15:31:44.000Z
2022-03-22T20:02:29.000Z
mmvec/heatmap.py
mstrazar/mmvec
199532f7ecdc63bac3a9892822ac0b8d10426d00
[ "BSD-3-Clause" ]
36
2019-09-10T19:17:12.000Z
2022-03-18T20:27:48.000Z
import seaborn as sns import matplotlib.pyplot as plt import numpy as np import pandas as pd import warnings _heatmap_choices = { 'metric': {'braycurtis', 'canberra', 'chebyshev', 'cityblock', 'correlation', 'cosine', 'dice', 'euclidean', 'hamming', 'jaccard', 'kulsinski', 'mahalanob...
39.389381
79
0.666442
ff1b9e634d31ee4d0f62396e83dfb2886513eabf
3,342
py
Python
examples/devices.py
jdekarske/axopy
a60abb44a12c5e833b9033170825773bb0691394
[ "MIT" ]
13
2019-01-23T13:00:00.000Z
2022-01-17T14:45:32.000Z
examples/devices.py
jdekarske/axopy
a60abb44a12c5e833b9033170825773bb0691394
[ "MIT" ]
45
2017-01-16T22:44:59.000Z
2018-12-18T18:43:08.000Z
examples/devices.py
jdekarske/axopy
a60abb44a12c5e833b9033170825773bb0691394
[ "MIT" ]
5
2017-01-13T00:14:08.000Z
2018-11-08T13:16:24.000Z
""" Built-In Devices ================ This example demonstrates some input devices built into AxoPy for testing. Pass the following options to try out different devices: rainbow Basic use of an NoiseGenerator to show lots of colorful random data. keyboard Basic use of a Keyboard to show roughly-timed keyboard...
28.084034
79
0.660981
ff1bfd4870f4b8ee48f757755a065c1e81aad3a9
5,336
py
Python
melody/constraints/step_sequence_constraint.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
1
2021-05-06T19:45:54.000Z
2021-05-06T19:45:54.000Z
melody/constraints/step_sequence_constraint.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
melody/constraints/step_sequence_constraint.py
dpazel/music_rep
2f9de9b98b13df98f1a0a2120b84714725ce527e
[ "MIT" ]
null
null
null
""" File: step_sequence_policy.py Purpose: Ordered list of notes that vary by a number of diatonic steps. """ from melody.constraints.abstract_constraint import AbstractConstraint from structure.note import Note from tonalmodel.pitch_scale import PitchScale class StepSequenceConstraint(AbstractConstraint): """...
40.732824
116
0.605885
ff1c0ec0321819cdb9afa98fddd90bb57bac9c5f
1,282
py
Python
counselor/watcher.py
joergeschmann/counselor
455ba2a07d25c5ac946f9b3dab0678eec7d46c40
[ "MIT" ]
null
null
null
counselor/watcher.py
joergeschmann/counselor
455ba2a07d25c5ac946f9b3dab0678eec7d46c40
[ "MIT" ]
null
null
null
counselor/watcher.py
joergeschmann/counselor
455ba2a07d25c5ac946f9b3dab0678eec7d46c40
[ "MIT" ]
null
null
null
import logging import time from datetime import timedelta from threading import Event, Thread LOGGER = logging.getLogger(__name__) class Task(Thread): """Base class to represent a Task that is executed by a trigger. """ def __init__(self, name: str, interval: timedelta, stop_event: Event, log_interval_s...
28.488889
107
0.645086
ff1c10c88fd2204cc48147cdc9c3c9c34aece456
989
py
Python
python-code/vtk-learning/07-dumpimage.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
13
2018-09-07T02:29:07.000Z
2021-06-18T08:40:09.000Z
python-code/vtk-learning/07-dumpimage.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
null
null
null
python-code/vtk-learning/07-dumpimage.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 vtk sph = vtk.vtkSphereSource() sph.SetCenter(0.0,0.0,0.0) sph.SetRadius(1.0) sph.SetThetaResolution(64) sph.SetPhiResolution(64) m=vtk.vtkPolyDataMapper() m.SetInputConnection(sph.GetOutputPort()) a=vtk.vtkActor() a.SetMapper(m) a.GetProperty().SetColor(0.0, 1.0, 0.0) a.GetProperty().SetOpacity...
21.5
51
0.789687
ff1c21605ccb2b00619704d00c51ec1a41371002
6,294
py
Python
python/pynq/iop/pmod_als.py
AEW2015/PYNQ_PR_Overlay
2c685d2d76d04e579beecdbdfd8d0919b3dfa71c
[ "BSD-3-Clause" ]
16
2017-03-14T20:28:40.000Z
2021-11-02T12:45:15.000Z
python/pynq/iop/pmod_als.py
xupsh/PYNQ_PR_Overlay
2c685d2d76d04e579beecdbdfd8d0919b3dfa71c
[ "BSD-3-Clause" ]
2
2017-12-04T05:46:35.000Z
2018-11-30T21:40:45.000Z
python/pynq/iop/pmod_als.py
xupsh/PYNQ_PR_Overlay
2c685d2d76d04e579beecdbdfd8d0919b3dfa71c
[ "BSD-3-Clause" ]
8
2017-03-30T22:00:43.000Z
2020-09-08T12:49:39.000Z
# Copyright (c) 2016, Xilinx, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of ...
32.276923
81
0.607563
ff1c2ae902fc21c88d256bd4db00c91c4e82eda8
956
py
Python
src/admin/widgets/polygon.py
aimanow/sft
dce87ffe395ae4bd08b47f28e07594e1889da819
[ "Apache-2.0" ]
280
2016-07-19T09:59:02.000Z
2022-03-05T19:02:48.000Z
widgets/polygon.py
YAR-SEN/GodMode2
d8a79b45c6d8b94f3d2af3113428a87d148d20d0
[ "WTFPL" ]
3
2016-07-20T05:36:49.000Z
2018-12-10T16:16:19.000Z
widgets/polygon.py
YAR-SEN/GodMode2
d8a79b45c6d8b94f3d2af3113428a87d148d20d0
[ "WTFPL" ]
20
2016-07-20T10:51:34.000Z
2022-01-12T23:15:22.000Z
import wtforms from flask import render_template from godmode.widgets.base import BaseWidget class PolygonWidget(BaseWidget): filterable = False field = wtforms.TextAreaField() def render_list(self, item): value = getattr(item, self.name, None) if item else None value = str(value if valu...
39.833333
94
0.66318
ff1c3251a90f7ab3cf39378962e3cfe655188ad7
3,324
py
Python
demo/dense/LB.py
VictorEijkhout/ignition
95cd8ada9281db31bb7c5a64f5561b43c472cb41
[ "BSD-2-Clause-FreeBSD" ]
1
2019-10-05T23:14:27.000Z
2019-10-05T23:14:27.000Z
demo/dense/LB.py
VictorEijkhout/ignition
95cd8ada9281db31bb7c5a64f5561b43c472cb41
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
demo/dense/LB.py
VictorEijkhout/ignition
95cd8ada9281db31bb7c5a64f5561b43c472cb41
[ "BSD-2-Clause-FreeBSD" ]
1
2019-11-14T01:27:23.000Z
2019-11-14T01:27:23.000Z
"""Example for Rule B=L*B""" from ignition import * class LBRule (OpRule): """The LB rule B = L * B where L is Lower Triangular For more information on creating operation rules see rules.OpRule """ def __init__ (self): OpRule.__init__(self) part_size = "2x2" def PME (...
24.80597
71
0.513538
ff1c583e4b2e42c6b592083ed6e8473f6fbaf74a
4,780
py
Python
pyembroidery/PecReader.py
fstwn/ironpyembroidery
1e1620edbba2ca2c661acb743ce9f58caa0c2bc3
[ "MIT" ]
null
null
null
pyembroidery/PecReader.py
fstwn/ironpyembroidery
1e1620edbba2ca2c661acb743ce9f58caa0c2bc3
[ "MIT" ]
null
null
null
pyembroidery/PecReader.py
fstwn/ironpyembroidery
1e1620edbba2ca2c661acb743ce9f58caa0c2bc3
[ "MIT" ]
null
null
null
from .EmbThreadPec import get_thread_set from .ReadHelper import read_string_8, read_int_8, read_int_24le JUMP_CODE = 0x10 TRIM_CODE = 0x20 FLAG_LONG = 0x80 def read(f, out, settings=None): pec_string = read_string_8(f, 8) # pec_string must equal #PEC0001 read_pec(f, out) out.interpolate_...
29.506173
72
0.541632
ff1c5d9b09617d12e634ff9747ee81ff5508ca51
4,792
py
Python
server/app/scrapers/voorberg.py
damienallen/makelaardij-notify
ea8e37e1b0f867487b90590c5273e7fb25d868cf
[ "MIT" ]
null
null
null
server/app/scrapers/voorberg.py
damienallen/makelaardij-notify
ea8e37e1b0f867487b90590c5273e7fb25d868cf
[ "MIT" ]
15
2021-02-13T23:46:28.000Z
2021-02-25T15:36:08.000Z
server/app/scrapers/voorberg.py
damienallen/makelaardij-notify
ea8e37e1b0f867487b90590c5273e7fb25d868cf
[ "MIT" ]
null
null
null
import asyncio from datetime import datetime from typing import List, Union from app.common import SkipListing from app.scrapers.base import BaseScraper class VoorbergScraper(BaseScraper): MAKELAARDIJ: str = "voorberg" BASE_URL: str = "https://www.voorberg.nl" QUERY: str = "?s=Rotterdam&min-koop=0&max-ko...
31.116883
138
0.542988
ff1c60febfb9bb391cbe9f060895591c3216d066
52
py
Python
archive/nexus-api-v2/API/AWS/SSM/__init__.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
null
null
null
archive/nexus-api-v2/API/AWS/SSM/__init__.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
null
null
null
archive/nexus-api-v2/API/AWS/SSM/__init__.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
1
2022-01-03T05:33:15.000Z
2022-01-03T05:33:15.000Z
from . import Schema from API.AWS.Imports import *
13
29
0.75
ff1ca2d01842802494cc0d7b5b40651ead85f336
54,252
py
Python
denoiser-multi-gpu.py
Jeffrey-Ede/Electron-Micrograph-Denoiser
23e4fa6a79540d9ce8e294d12623e972e3b9b584
[ "MIT" ]
9
2018-08-25T20:28:48.000Z
2021-09-26T11:01:04.000Z
denoiser-multi-gpu.py
Jeffrey-Ede/Electron-Micrograph-Denoiser
23e4fa6a79540d9ce8e294d12623e972e3b9b584
[ "MIT" ]
null
null
null
denoiser-multi-gpu.py
Jeffrey-Ede/Electron-Micrograph-Denoiser
23e4fa6a79540d9ce8e294d12623e972e3b9b584
[ "MIT" ]
2
2019-07-02T02:21:44.000Z
2021-02-21T01:38:48.000Z
from __future__ import division from __future__ import print_function from __future__ import absolute_import import argparse import numpy as np import tensorflow as tf import cv2 from scipy.misc import imread import time import os, random os.environ["CUDA_VISIBLE_DEVICES"] = "1" import functools i...
37.440994
161
0.574615
ff1cad48a9f0c07bb102e473de29811e3fb93980
3,958
py
Python
metadata-ingestion/examples/library/dataset_add_column_term.py
cuong-pham/datahub
cb4eb001758f55622add0f4dc3650cf483609cba
[ "Apache-2.0" ]
1,603
2016-03-03T17:21:03.000Z
2020-01-22T22:12:02.000Z
metadata-ingestion/examples/library/dataset_add_column_term.py
cuong-pham/datahub
cb4eb001758f55622add0f4dc3650cf483609cba
[ "Apache-2.0" ]
1,157
2016-03-03T19:29:22.000Z
2020-01-20T14:41:59.000Z
metadata-ingestion/examples/library/dataset_add_column_term.py
cuong-pham/datahub
cb4eb001758f55622add0f4dc3650cf483609cba
[ "Apache-2.0" ]
570
2016-03-03T17:21:05.000Z
2020-01-21T06:54:10.000Z
import logging import time from datahub.emitter.mce_builder import make_dataset_urn, make_term_urn from datahub.emitter.mcp import MetadataChangeProposalWrapper # read-modify-write requires access to the DataHubGraph (RestEmitter is not enough) from datahub.ingestion.graph.client import DatahubClientConfig, DataHubGr...
35.026549
87
0.728903
ff1ccaa2dd95b4379521c637607c2273e431f90c
80,351
py
Python
cinder/tests/unit/volume/drivers/hitachi/test_hitachi_vsp_horcm_iscsi.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/volume/drivers/hitachi/test_hitachi_vsp_horcm_iscsi.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
2
2018-10-25T13:04:01.000Z
2019-08-17T13:15:24.000Z
cinder/tests/unit/volume/drivers/hitachi/test_hitachi_vsp_horcm_iscsi.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
2
2018-10-17T13:32:50.000Z
2018-11-08T08:39:39.000Z
# Copyright (C) 2016, Hitachi, 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...
42.267754
79
0.661796
ff1ce4794f51e25c7b7ed7544fb8bd7750df708d
107,465
py
Python
lib/tool_shed/galaxy_install/tool_dependencies/recipe/step_handler.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
4
2018-10-29T18:34:38.000Z
2021-09-29T23:30:42.000Z
lib/tool_shed/galaxy_install/tool_dependencies/recipe/step_handler.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
1
2019-02-04T16:21:27.000Z
2019-02-04T16:45:17.000Z
lib/tool_shed/galaxy_install/tool_dependencies/recipe/step_handler.py
chambm/galaxy
fd1926767996a161cd2fc8bd184e6835fd688765
[ "CC-BY-3.0" ]
3
2020-02-12T15:22:24.000Z
2021-08-19T10:27:39.000Z
import hashlib import logging import os import re import shutil import stat import tarfile import tempfile import zipfile from string import Template # TODO: eliminate the use of fabric here. from fabric.api import lcd, settings from galaxy.util import ( asbool, download_to_file ) from galaxy.util.template im...
56.176163
371
0.619597
ff1d0c091b1cb0a14616cd959b61b1b1d5dc8f2f
3,115
py
Python
config.py
KevinHQChen/rfnet
306da8f032e5c57ca09eab6464b63b068a0394eb
[ "MIT" ]
113
2019-06-04T03:39:36.000Z
2022-03-31T01:45:19.000Z
config.py
KevinHQChen/rfnet
306da8f032e5c57ca09eab6464b63b068a0394eb
[ "MIT" ]
19
2019-06-07T12:19:07.000Z
2022-03-25T06:47:30.000Z
config.py
KevinHQChen/rfnet
306da8f032e5c57ca09eab6464b63b068a0394eb
[ "MIT" ]
19
2019-06-19T14:58:34.000Z
2021-08-31T23:45:42.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function # `pip install easydict` if you don't have it from easydict import EasyDict as edict __C = edict() cfg = __C """ Project options """ __C.PROJ = edict() # whether us gpu __C.PROJ.USE_GPU = True # seed for ra...
17.209945
79
0.722632
ff1d12689191f21fe7ed0680b38b5b766503ef2f
1,595
py
Python
dataset_poetry.py
HalcyonBrown/cs451-practicals
fc3fcfa57aae03d06c6c94cd349b148d412e0c24
[ "BSD-3-Clause" ]
1
2021-03-02T21:54:36.000Z
2021-03-02T21:54:36.000Z
dataset_poetry.py
HalcyonBrown/cs451-practicals
fc3fcfa57aae03d06c6c94cd349b148d412e0c24
[ "BSD-3-Clause" ]
2
2021-03-04T23:29:59.000Z
2021-03-26T14:20:18.000Z
dataset_poetry.py
HalcyonBrown/cs451-practicals
fc3fcfa57aae03d06c6c94cd349b148d412e0c24
[ "BSD-3-Clause" ]
21
2021-03-02T21:50:07.000Z
2021-03-30T22:09:13.000Z
import numpy as np from shared import ( dataset_local_path, ) from typing import Tuple, Dict import pandas as pd from sklearn.preprocessing import StandardScaler from sklearn.model_selection import train_test_split from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.feature_extraction import Di...
33.93617
83
0.755486
ff1d2231e91b8bc1b4389e7b7a0972ce4c33adf1
1,803
py
Python
alternative_wmiircs/python/pygmi/menu.py
martinetd/wmii
7f41d11da154100521d9f9c66e99df9a52a80273
[ "MIT" ]
2
2019-03-21T11:47:13.000Z
2019-04-22T18:54:32.000Z
alternative_wmiircs/python/pygmi/menu.py
martinetd/wmii
7f41d11da154100521d9f9c66e99df9a52a80273
[ "MIT" ]
null
null
null
alternative_wmiircs/python/pygmi/menu.py
martinetd/wmii
7f41d11da154100521d9f9c66e99df9a52a80273
[ "MIT" ]
1
2022-02-08T01:15:28.000Z
2022-02-08T01:15:28.000Z
from threading import Thread from pygmi.util import call __all__ = 'Menu', 'ClickMenu' def inthread(name, args, action, **kwargs): fn = lambda: call(*args, **kwargs) if not action: return fn() t = Thread(target=lambda: action(fn())) t.name += '-%s' % name t.daemon = True t.start() cla...
28.619048
86
0.542429
ff1d3171317bca928b0eedcc5300473944f30437
2,665
py
Python
scripts/dl.py
edwardoughton/open-rigbi
c861bbc469c9dbab7a2214a0cedcca68d96ef1c6
[ "MIT" ]
null
null
null
scripts/dl.py
edwardoughton/open-rigbi
c861bbc469c9dbab7a2214a0cedcca68d96ef1c6
[ "MIT" ]
null
null
null
scripts/dl.py
edwardoughton/open-rigbi
c861bbc469c9dbab7a2214a0cedcca68d96ef1c6
[ "MIT" ]
null
null
null
""" Download Aquaduct data. """ import os import configparser from lxml import html import requests import urllib.request from tqdm import tqdm CONFIG = configparser.ConfigParser() CONFIG.read(os.path.join(os.path.dirname(__file__), 'script_config.ini')) BASE_PATH = CONFIG['file_locations']['base_path'] DATA_RAW = o...
26.386139
121
0.574109
ff1d3d1ef6af15edb89d377583975af75d8ab368
8,517
py
Python
datawinners/custom_reports/crs/migrations/0011_auto__add_waybillreceivedport.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/custom_reports/crs/migrations/0011_auto__add_waybillreceivedport.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/custom_reports/crs/migrations/0011_auto__add_waybillreceivedport.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 import 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 'WayBillReceivedPort' db.create_table('crs_waybillreceivedport', ( ('id', self....
66.023256
113
0.555125
ff1d4dabc44f1122b28fce6d6a46cb0a36fc4544
9,953
py
Python
src/fortformat/fnetout.py
vanderhe/fortnet-python
118237f0ce750852d973b213161fc04623fd7f82
[ "BSD-2-Clause" ]
null
null
null
src/fortformat/fnetout.py
vanderhe/fortnet-python
118237f0ce750852d973b213161fc04623fd7f82
[ "BSD-2-Clause" ]
1
2022-03-11T15:21:56.000Z
2022-03-11T15:33:46.000Z
src/fortformat/fnetout.py
vanderhe/fortnet-python
118237f0ce750852d973b213161fc04623fd7f82
[ "BSD-2-Clause" ]
null
null
null
#------------------------------------------------------------------------------# # fortnet-python: Python Tools for the Fortnet Software Package # # Copyright (C) 2021 - 2022 T. W. van der Heide # # ...
30.069486
80
0.544961
ff1d5231ae04c9d8507171b5c2ff5e4438fe7dcb
156,688
py
Python
docassemble_base/docassemble/base/functions.py
JuryA/docassemble
5d2de6de4d1c84745a1ab94d377419b759963f96
[ "MIT" ]
1
2019-07-25T15:38:39.000Z
2019-07-25T15:38:39.000Z
docassemble_base/docassemble/base/functions.py
JuryA/docassemble
5d2de6de4d1c84745a1ab94d377419b759963f96
[ "MIT" ]
null
null
null
docassemble_base/docassemble/base/functions.py
JuryA/docassemble
5d2de6de4d1c84745a1ab94d377419b759963f96
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import types from six import string_types, text_type, PY2 import markdown from mdx_smartypants import SmartypantsExt import pattern.en import re #import operator import os import shutil import inspect import mimetypes import locale import pkg_resources import titlecase from docassemble.base.logg...
41.572831
2,227
0.64054
ff1d789ac373a03ecdad5c21e5d36ef4c9699c63
5,657
py
Python
tests/unit/plugins/common/scenarios/dummy/test_dummy.py
LorenzoBianconi/rally
2bbd7ee590cca048fb4ad6a8eefc484989979ff8
[ "Apache-2.0" ]
1
2021-09-29T02:16:09.000Z
2021-09-29T02:16:09.000Z
tests/unit/plugins/common/scenarios/dummy/test_dummy.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-14T11:29:31.000Z
2020-07-14T11:29:31.000Z
tests/unit/plugins/common/scenarios/dummy/test_dummy.py
noah8713/rally-ovs
2434787c2cf4ca267108966c4ddc55ded3c333d9
[ "Apache-2.0" ]
1
2020-07-02T01:33:48.000Z
2020-07-02T01:33:48.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...
45.620968
79
0.548701
ff1da67187d92ca3ca3cb9cdc9118b0d1584ec0f
1,143
py
Python
configs/lvis/mask_rcnn_r50_fpn_sample1e-3_mstrain_2x_lvis_v0.5.py
ddayzzz/mmdetection
b9940c56cc19b3dda7468a5fd858b9683e93a486
[ "Apache-2.0" ]
426
2020-10-16T08:09:27.000Z
2022-03-30T03:36:04.000Z
configs/lvis/mask_rcnn_r50_fpn_sample1e-3_mstrain_2x_lvis_v0.5.py
Oz-art/mmdetection
d3cf38d91c454b1a6881e8c36c1e4a66dc5521b8
[ "Apache-2.0" ]
35
2020-11-26T14:33:57.000Z
2022-03-29T01:40:15.000Z
configs/lvis/mask_rcnn_r50_fpn_sample1e-3_mstrain_2x_lvis_v0.5.py
Oz-art/mmdetection
d3cf38d91c454b1a6881e8c36c1e4a66dc5521b8
[ "Apache-2.0" ]
47
2020-11-26T02:48:03.000Z
2022-03-06T09:28:54.000Z
_base_ = [ '../_base_/models/mask_rcnn_r50_fpn.py', '../_base_/datasets/lvis_v0.5_instance.py', '../_base_/schedules/schedule_2x.py', '../_base_/default_runtime.py' ] model = dict( roi_head=dict( bbox_head=dict(num_classes=1230), mask_head=dict(num_classes=1230))) test_cfg = dict( rcnn=dict(...
35.71875
77
0.631671
ff1e244f0f44258f9843e16965485087be4ac9ea
585
py
Python
base/forms.py
AlexWanyoike/Neighborhood-Api
a3ebc72421c0602a44e8817ff2b283683a5ae93d
[ "MIT" ]
null
null
null
base/forms.py
AlexWanyoike/Neighborhood-Api
a3ebc72421c0602a44e8817ff2b283683a5ae93d
[ "MIT" ]
null
null
null
base/forms.py
AlexWanyoike/Neighborhood-Api
a3ebc72421c0602a44e8817ff2b283683a5ae93d
[ "MIT" ]
null
null
null
from django import forms from .models import Neighborhood, Post, Business from django.contrib.auth.models import User class ProfileForm(forms.ModelForm): class Meta: model = Profile exclude = ['username'] class PostForm(forms.ModelForm): class Meta: model = Post exclude = ['us...
25.434783
49
0.65812
ff1e60048d3a2ba1bed7243268ab2349723f8c2f
37,845
py
Python
vdx_helper/vdx_helper.py
Morphotech/vdx-helper-python
3116ad05bd9b947e0ba77988c22776507e441cea
[ "MIT" ]
null
null
null
vdx_helper/vdx_helper.py
Morphotech/vdx-helper-python
3116ad05bd9b947e0ba77988c22776507e441cea
[ "MIT" ]
null
null
null
vdx_helper/vdx_helper.py
Morphotech/vdx-helper-python
3116ad05bd9b947e0ba77988c22776507e441cea
[ "MIT" ]
null
null
null
import io import time from datetime import datetime from http import HTTPStatus from typing import Optional, Callable, Dict, TypeVar, Tuple, List, Iterable, BinaryIO from uuid import UUID import requests from nndict import nndict from vdx_helper.errors import error_from_response, VDXError from vdx_helper.mappers impor...
40.737352
124
0.641723
ff1e68159f753f1e09aa350a23a72f897a243440
457
py
Python
modernize/fixes/fix_unichr.py
superjkl/python-modernize-division-warnings
7095261ec661fbf33db59c87c501f0f84ecc4f4a
[ "BSD-3-Clause" ]
220
2015-03-25T11:06:13.000Z
2020-08-19T13:33:57.000Z
modernize/fixes/fix_unichr.py
superjkl/python-modernize-division-warnings
7095261ec661fbf33db59c87c501f0f84ecc4f4a
[ "BSD-3-Clause" ]
113
2015-01-03T18:05:27.000Z
2020-08-18T21:42:23.000Z
modernize/fixes/fix_unichr.py
superjkl/python-modernize-division-warnings
7095261ec661fbf33db59c87c501f0f84ecc4f4a
[ "BSD-3-Clause" ]
39
2015-01-18T10:08:52.000Z
2020-07-12T18:44:40.000Z
from __future__ import generator_stop from fissix import fixer_base, fixer_util from fissix.fixer_util import is_probably_builtin class FixUnichr(fixer_base.ConditionalFix): BM_compatible = True skip_on = "six.moves.unichr" PATTERN = """'unichr'""" def transform(self, node, results): if sel...
25.388889
58
0.695842
ff1e6f531e1342f8ff6665bffe08d6044ae4954b
6,482
py
Python
ValveAnnulusAnalysis/HeartValveLib/HeartValvesSubjectHierarchyPlugin.py
SlicerHeart/SlicerHeart
5ead8d723f6dec67ea6065b847cb4f8dce5bef72
[ "BSD-3-Clause" ]
48
2016-04-13T10:22:53.000Z
2022-03-21T16:31:41.000Z
ValveAnnulusAnalysis/HeartValveLib/HeartValvesSubjectHierarchyPlugin.py
SlicerHeart/SlicerHeart
5ead8d723f6dec67ea6065b847cb4f8dce5bef72
[ "BSD-3-Clause" ]
14
2018-10-25T21:15:20.000Z
2021-11-26T16:55:55.000Z
ValveAnnulusAnalysis/HeartValveLib/HeartValvesSubjectHierarchyPlugin.py
SlicerHeart/SlicerHeart
5ead8d723f6dec67ea6065b847cb4f8dce5bef72
[ "BSD-3-Clause" ]
21
2017-09-12T08:20:36.000Z
2021-10-30T02:22:11.000Z
import vtk, qt, ctk, slicer import logging from AbstractScriptedSubjectHierarchyPlugin import * class HeartValvesSubjectHierarchyPlugin(AbstractScriptedSubjectHierarchyPlugin): """ Scripted subject hierarchy plugin for the Segment Statistics module. This is also an example for scripted plugins, so includes al...
47.313869
137
0.754243
ff1e9171860e3f7a8cd78ac9b70f1f580c2f4ebb
2,035
py
Python
setup.py
Northeastern-Systematic-Alpha/alphalens
da7cbc6992a052f5d444414769f8e3564db97e8d
[ "Apache-2.0" ]
null
null
null
setup.py
Northeastern-Systematic-Alpha/alphalens
da7cbc6992a052f5d444414769f8e3564db97e8d
[ "Apache-2.0" ]
null
null
null
setup.py
Northeastern-Systematic-Alpha/alphalens
da7cbc6992a052f5d444414769f8e3564db97e8d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages import versioneer import sys long_description = '' if 'upload' in sys.argv: with open('README.rst') as f: long_description = f.read() install_reqs = [ 'matplotlib>=1.4.0', 'numpy>=1.9.1', 'pandas>=1.0.0', 'scipy>=0.14.0', ...
30.833333
113
0.58231
ff1ea1e054f210a9a276c6f5a69a4828d389e1f2
7,150
py
Python
nova/api/openstack/compute/contrib/agents.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/contrib/agents.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/contrib/agents.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
1
2020-07-24T06:47:54.000Z
2020-07-24T06:47:54.000Z
# Copyright 2012 IBM Corp. # # 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 t...
39.071038
79
0.603217
ff1ea7965100e680c93bdd3a262a8884c71e4e5d
411
py
Python
CLUSTER_MANAGEMENT/ClusterManagement/ClusterManagement/asgi.py
udhayprakash/Django_Projects
5c5257944d36a552428f8b8a926110d64055fc12
[ "Apache-2.0" ]
null
null
null
CLUSTER_MANAGEMENT/ClusterManagement/ClusterManagement/asgi.py
udhayprakash/Django_Projects
5c5257944d36a552428f8b8a926110d64055fc12
[ "Apache-2.0" ]
27
2020-06-05T23:26:44.000Z
2022-02-10T11:21:31.000Z
CLUSTER_MANAGEMENT/ClusterManagement/ClusterManagement/asgi.py
udhayprakash/Django_Projects
5c5257944d36a552428f8b8a926110d64055fc12
[ "Apache-2.0" ]
null
null
null
""" ASGI config for ClusterManagement project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJ...
24.176471
78
0.79562
ff1ec392fc767d77819aa4a9e6d98fa13d0678de
755
py
Python
tests/test_import.py
ritviksahajpal/octvi
9aa3a4ffcee8fe2c2f5af14571d8cad9ce71fcfa
[ "MIT" ]
10
2020-02-06T14:48:04.000Z
2021-04-11T11:39:49.000Z
tests/test_import.py
ritviksahajpal/octvi
9aa3a4ffcee8fe2c2f5af14571d8cad9ce71fcfa
[ "MIT" ]
null
null
null
tests/test_import.py
ritviksahajpal/octvi
9aa3a4ffcee8fe2c2f5af14571d8cad9ce71fcfa
[ "MIT" ]
3
2020-02-12T19:28:36.000Z
2021-03-10T20:06:26.000Z
from unittest import TestCase def test_import_main(): try: import octvi except ImportError: raise AssertionError except ModuleNotFoundError: raise AssertionError class TestSubmoduleImports(TestCase): def test_array_automatically_imported(self): try: import octvi octvi.array except AttributeError: ...
19.868421
50
0.786755
ff1f11caae15c2ff1e4105c026462218eb36a885
821
py
Python
string/stringwithoutAAAandBBB.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
string/stringwithoutAAAandBBB.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
string/stringwithoutAAAandBBB.py
mengyangbai/leetcode
e7a6906ecc5bce665dec5d0f057b302a64d50f40
[ "MIT" ]
null
null
null
class Solution(object): def strWithout3a3b(self, A, B): """ :type A: int :type B: int :rtype: str """ if A >= 2*B: return 'aab'* B + 'a'* (A-2*B) elif A >= B: return 'aab' * (A-B) + 'ab' * (2*B - A) elif B >= 2*A: re...
25.65625
52
0.388551
ff1f5c0f9a604a00b0b64bfdc561aad167025877
1,565
py
Python
personal/sitemaps.py
florimondmanca/personal-api
6300f965d3f51d1bf5f10cf1eb15d673bd627631
[ "MIT" ]
4
2018-08-17T08:06:06.000Z
2020-02-20T15:15:56.000Z
personal/sitemaps.py
florimondmanca/personal-api
6300f965d3f51d1bf5f10cf1eb15d673bd627631
[ "MIT" ]
2
2018-10-08T15:59:58.000Z
2018-10-20T16:50:13.000Z
personal/sitemaps.py
florimondmanca/personal-api
6300f965d3f51d1bf5f10cf1eb15d673bd627631
[ "MIT" ]
1
2019-09-14T23:15:10.000Z
2019-09-14T23:15:10.000Z
"""Definition of site maps. They help search engines index the website. Note: locations are defined as paths, not full URLs (no domain, not scheme). See: https://docs.djangoproject.com/fr/2.1/ref/contrib/sitemaps """ from datetime import datetime from typing import List from django.contrib.sitemaps import Sitemap f...
26.083333
78
0.64345
ff1f7d7d1bd53d5c4ac2b4b800898e7b7e9e26a6
1,906
py
Python
rpoB_gene_extractor.py
vappiah/bioinfoscripts
fcb091495f174f59001a443185d58356cad52c4a
[ "MIT" ]
2
2021-11-24T22:28:16.000Z
2022-01-11T18:05:43.000Z
rpoB_gene_extractor.py
vappiah/bioinfoscripts
fcb091495f174f59001a443185d58356cad52c4a
[ "MIT" ]
1
2022-02-06T19:53:07.000Z
2022-02-06T19:53:07.000Z
rpoB_gene_extractor.py
vappiah/bioinfoscripts
fcb091495f174f59001a443185d58356cad52c4a
[ "MIT" ]
3
2021-07-14T00:11:00.000Z
2021-10-14T13:26:17.000Z
#This script was written by Vincent Appiah #This program extracts the sequence of rpoB gene from genbank files #Don't forget to like my github page (vappiah) and my youtube channel(Bioinformatics Coach) #You are free to use, modify and distribute this script #I am not responsible for any anything that happens as a resu...
28.447761
91
0.689927
ff1f9858ae5823733f05d2957ceceb9c069491fc
1,477
py
Python
training/model_simulations/sim_C_rewards.py
akapne01/gym_tower_of_london
4c4597c8dba0e23ef649713997bc5a2f99d53175
[ "CC-BY-2.0" ]
null
null
null
training/model_simulations/sim_C_rewards.py
akapne01/gym_tower_of_london
4c4597c8dba0e23ef649713997bc5a2f99d53175
[ "CC-BY-2.0" ]
2
2020-08-25T08:36:38.000Z
2020-08-25T08:36:58.000Z
training/model_simulations/sim_C_rewards.py
akapne01/gym_tower_of_london
4c4597c8dba0e23ef649713997bc5a2f99d53175
[ "CC-BY-2.0" ]
null
null
null
import time from training.model_simulations.rewards_lookahead import dyna_rewards_lookahead from training.utils.parameters import epsilon, transition_times, \ epsilon_decay, version, alpha, gamma, min_epsilon """ Experimental Problem C """ start = 24 goal = 66 letter = 'C' episodes = 1000 participants = 40 i...
31.425532
79
0.481381
ff1fcfb3b9ac38cf89ca0d88f2237357aa78bc99
1,776
py
Python
mtp_bank_admin/apps/bank_admin/decorators.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-bank-admin
b210cfd947ecdc7f50fd77f5023076ad400446b6
[ "MIT" ]
null
null
null
mtp_bank_admin/apps/bank_admin/decorators.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-bank-admin
b210cfd947ecdc7f50fd77f5023076ad400446b6
[ "MIT" ]
null
null
null
mtp_bank_admin/apps/bank_admin/decorators.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-bank-admin
b210cfd947ecdc7f50fd77f5023076ad400446b6
[ "MIT" ]
null
null
null
from datetime import datetime from functools import wraps from django.contrib import messages from django.http import HttpResponseBadRequest from django.shortcuts import redirect from django.urls import reverse_lazy from django.utils.translation import gettext as _ from .exceptions import EmptyFileError, EarlyReconci...
39.466667
92
0.693694
ff20089d368f24750050141319cd6cb3ae3e7346
1,310
py
Python
models/event.py
EpicEric/rpcar-controller
9ab8afa30b470000f9b9a8ec5e1182f656fc8f16
[ "MIT" ]
null
null
null
models/event.py
EpicEric/rpcar-controller
9ab8afa30b470000f9b9a8ec5e1182f656fc8f16
[ "MIT" ]
null
null
null
models/event.py
EpicEric/rpcar-controller
9ab8afa30b470000f9b9a8ec5e1182f656fc8f16
[ "MIT" ]
null
null
null
from enum import Enum class EngineDirection(Enum): FORWARD = 0 BACKWARD = 1 class InputEvent: pass class DirectionEvent(InputEvent): @staticmethod def is_coordinates_valid(x, y): return (x ** 2) + (y ** 2) <= 1 def __init__(self, x, y): #assert DirectionEvent.is_coordinate...
26.734694
114
0.616794
ff20597099f67b186c6c2f7a4dd76ccfa23926d0
2,516
py
Python
tests/integration/test_readme_minimal.py
phillips96/similarity
3794f288f17f47f1f90b5368e5c0eeac1e81e10d
[ "Apache-2.0" ]
706
2021-09-04T02:11:05.000Z
2022-03-31T13:29:14.000Z
tests/integration/test_readme_minimal.py
phillips96/similarity
3794f288f17f47f1f90b5368e5c0eeac1e81e10d
[ "Apache-2.0" ]
119
2021-09-01T22:32:40.000Z
2022-03-30T22:39:27.000Z
tests/integration/test_readme_minimal.py
phillips96/similarity
3794f288f17f47f1f90b5368e5c0eeac1e81e10d
[ "Apache-2.0" ]
57
2021-09-04T02:11:14.000Z
2022-03-31T13:29:15.000Z
"Test that the example in the readme work correctly" import os import pytest from tensorflow.keras import layers from tensorflow_similarity.layers import MetricEmbedding from tensorflow_similarity.losses import MultiSimilarityLoss from tensorflow_similarity.models import SimilarityModel from tensorflow_similarity.sam...
33.546667
76
0.687599
ff205b4cf65c825e17c90d70d917c98da8db5661
2,694
py
Python
LC/272.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/272.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/272.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def closestKValues(self, root, target, k): """ :type root: TreeNode :type target: float :...
29.933333
87
0.451002
ff20848a3c12a5816d005c3cd770d34b5e1484c5
1,778
py
Python
tests/test_simple.py
cloudbutton/lithops-array
5e74b881c7db95eccdccf986f1e3b0dc44603889
[ "Apache-2.0" ]
null
null
null
tests/test_simple.py
cloudbutton/lithops-array
5e74b881c7db95eccdccf986f1e3b0dc44603889
[ "Apache-2.0" ]
null
null
null
tests/test_simple.py
cloudbutton/lithops-array
5e74b881c7db95eccdccf986f1e3b0dc44603889
[ "Apache-2.0" ]
null
null
null
from numpywren.matrix import BigMatrix from numpywren.matrix_init import local_numpy_init import numpy as np import unittest from lithops.utils import setup_lithops_logger setup_lithops_logger('DEBUG') class SimpleTestClass(unittest.TestCase): def test_single_shard_matrix(self): X = np.random.randn(128,...
33.54717
64
0.677165
ff20b16e63c4e6cfd1259ab1dcafb3420d9e4c78
5,473
py
Python
asposewordscloud/models/requests/get_document_statistics_online_request.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/requests/get_document_statistics_online_request.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/requests/get_document_statistics_online_request.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="get_document_statistics_online_request.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person o...
47.591304
144
0.670565
ff20d8776f6ac05aece7fcdff3d43a0861066ab9
2,525
py
Python
tests/common/test_run/ascend/reduce_logsumexp_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_run/ascend/reduce_logsumexp_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_run/ascend/reduce_logsumexp_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-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...
47.641509
111
0.698218
ff2120e8667537c7965d6ade47b9424ad481cd97
1,305
py
Python
solutions/rotting-oranges.py
edab/-LC_StudyPlan_Python
e065f0ced68d23800d7b5001102c2e930ee35e23
[ "MIT" ]
null
null
null
solutions/rotting-oranges.py
edab/-LC_StudyPlan_Python
e065f0ced68d23800d7b5001102c2e930ee35e23
[ "MIT" ]
1
2022-02-22T15:42:54.000Z
2022-02-25T00:10:04.000Z
solutions/rotting-oranges.py
edab/-LC_StudyPlan_Python
e065f0ced68d23800d7b5001102c2e930ee35e23
[ "MIT" ]
null
null
null
# Leetcode 994. Rotting Oranges # # Link: https://leetcode.com/problems/rotting-oranges/ # Difficulty: Medium # Solution using multi source BFS changing grid values instead of visited set. # Complexity: # O(M*N) time | where M and N represent the rows and cols of the input matrix # O(M*N) time | where M and N repr...
34.342105
87
0.500383
ff21384752551fb894f5be2364c426f7649632ff
1,288
py
Python
mysqlconnection.py
Elizandtech/tennis_paradise
bf97dc2e5a357ff906480cc35e3f5da868c9ff57
[ "MIT" ]
1
2019-07-24T05:31:30.000Z
2019-07-24T05:31:30.000Z
mysqlconnection.py
Elizandtech/tennis_paradise
bf97dc2e5a357ff906480cc35e3f5da868c9ff57
[ "MIT" ]
5
2019-07-24T14:55:09.000Z
2019-07-24T17:46:06.000Z
mysqlconnection.py
Elizandtech/tennis_paradise
bf97dc2e5a357ff906480cc35e3f5da868c9ff57
[ "MIT" ]
1
2019-07-24T16:12:59.000Z
2019-07-24T16:12:59.000Z
import pymysql.cursors class MySQLConnection: def __init__(self, db): connection = pymysql.connect(host = 'localhost', user = 'root', password = 'root', db = db, ...
34.810811
77
0.468944
ff21a48c660bd70ca7ee2971bafefd6c8ba9a3fc
1,530
py
Python
psg_utils/preprocessing/psg_sampling.py
perslev/sleep-utils
9f9edf67f4cac6d8361243b4153bfe6351314844
[ "MIT" ]
1
2022-03-17T10:37:17.000Z
2022-03-17T10:37:17.000Z
psg_utils/preprocessing/psg_sampling.py
perslev/sleep-utils
9f9edf67f4cac6d8361243b4153bfe6351314844
[ "MIT" ]
null
null
null
psg_utils/preprocessing/psg_sampling.py
perslev/sleep-utils
9f9edf67f4cac6d8361243b4153bfe6351314844
[ "MIT" ]
null
null
null
""" Set of functions for down- and re-sampling of PSG signals """ import logging logger = logging.getLogger(__name__) def fourier_resample(psg, new_sample_rate, old_sample_rate): from mne.filter import resample return resample(psg, new_sample_rate, old_sample_rate, axis=0) def poly_resample(psg, new_sample...
34.772727
78
0.699346
ff21ca52b315fdf9c75b6db2410051f37a5dfcec
4,294
py
Python
backend/tournesol/serializers/entity.py
ramprakashram/tournesol
f2b224e884bc09eb6caa152ea403fea12ab23a1e
[ "CC0-1.0" ]
null
null
null
backend/tournesol/serializers/entity.py
ramprakashram/tournesol
f2b224e884bc09eb6caa152ea403fea12ab23a1e
[ "CC0-1.0" ]
null
null
null
backend/tournesol/serializers/entity.py
ramprakashram/tournesol
f2b224e884bc09eb6caa152ea403fea12ab23a1e
[ "CC0-1.0" ]
null
null
null
from collections import defaultdict from typing import Optional from django.db.models import ObjectDoesNotExist from drf_spectacular.utils import extend_schema_field from rest_framework import serializers from rest_framework.exceptions import NotFound, ValidationError from rest_framework.fields import RegexField from ...
33.546875
91
0.659758
ff220753db49c8e85994dda2fd96d27480b92521
4,066
py
Python
tests/__init__.py
ssciwr/filteradapt
40c54fcd23923536304bfae1368138e8ccdeb2bc
[ "MIT" ]
2
2022-02-11T08:31:11.000Z
2022-03-21T10:19:16.000Z
tests/__init__.py
ssciwr/adaptivefiltering
40c54fcd23923536304bfae1368138e8ccdeb2bc
[ "MIT" ]
187
2021-06-21T19:46:15.000Z
2022-03-21T12:14:47.000Z
tests/__init__.py
ssciwr/adaptivefiltering
40c54fcd23923536304bfae1368138e8ccdeb2bc
[ "MIT" ]
3
2022-01-19T20:06:57.000Z
2022-03-21T09:27:17.000Z
import adaptivefiltering import contextlib import os import pytest @contextlib.contextmanager def mock_environment(**env): """Temporarily update the environment. Implementation taken from https://stackoverflow.com/questions/2059482/python-temporarily-modify-the-current-processs-environment/34333710 """ ...
42.8
115
0.466306
ff22669d7cb622cc07263f1cadace2da57643af3
63,146
py
Python
neural_tangents/tests/stax_test.py
fibercoke/neural-tangents
f5ae74533c205298022261a95aadaf6b8750d255
[ "ECL-2.0", "Apache-2.0" ]
1
2020-05-14T17:00:53.000Z
2020-05-14T17:00:53.000Z
neural_tangents/tests/stax_test.py
fibercoke/neural-tangents
f5ae74533c205298022261a95aadaf6b8750d255
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
neural_tangents/tests/stax_test.py
fibercoke/neural-tangents
f5ae74533c205298022261a95aadaf6b8750d255
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
35.858035
85
0.545973
ff226fa763c97decfa7296102c345a2abde3c6ac
35,613
py
Python
hw5/meta/train_policy.py
whoiszyc/cs294-112_hws
68f18e002cf99d88fd68241215a428fda5189b60
[ "MIT" ]
102
2019-01-18T09:58:03.000Z
2022-01-28T14:50:42.000Z
hw5/meta/train_policy.py
whoiszyc/cs294-112_hws
68f18e002cf99d88fd68241215a428fda5189b60
[ "MIT" ]
1
2020-03-10T15:43:22.000Z
2020-03-10T15:43:22.000Z
hw5/meta/train_policy.py
whoiszyc/cs294-112_hws
68f18e002cf99d88fd68241215a428fda5189b60
[ "MIT" ]
47
2019-01-17T19:40:22.000Z
2022-01-18T08:55:25.000Z
""" Original code from John Schulman for CS294 Deep Reinforcement Learning Spring 2017 Adapted for CS294-112 Fall 2017 by Abhishek Gupta and Joshua Achiam Adapted for CS294-112 Fall 2018 by Michael Chang and Soroush Nasiriany Adapted for use in CS294-112 Fall 2018 HW5 by Kate Rakelly and Michael Chang """ import numpy ...
41.123557
231
0.617078
ff2275bb569407aa6eb3863e09970c4596024dea
6,562
py
Python
src/tngsdk/benchmark/tests/test_unit_tango.py
qarawlus/tng-sdk-benchmark
692490cae343288b0f7c93e3753e92bcaafabdd9
[ "Apache-2.0" ]
2
2019-10-18T19:59:46.000Z
2019-12-02T03:11:06.000Z
src/tngsdk/benchmark/tests/test_unit_tango.py
qarawlus/tng-sdk-benchmark
692490cae343288b0f7c93e3753e92bcaafabdd9
[ "Apache-2.0" ]
33
2019-07-08T13:56:27.000Z
2022-02-11T13:57:25.000Z
src/tngsdk/benchmark/tests/test_unit_tango.py
qarawlus/tng-sdk-benchmark
692490cae343288b0f7c93e3753e92bcaafabdd9
[ "Apache-2.0" ]
5
2019-08-26T13:00:20.000Z
2019-10-12T17:35:31.000Z
# Copyright (c) 2018 SONATA-NFV, 5GTANGO, Paderborn University # ALL RIGHTS RESERVED. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
42.888889
79
0.616123
ff22b12a500960d7931bacf53c2a02db3840bd3e
2,545
py
Python
apps/advection/2d/example1_gauges/setplot.py
geoflows/geoclaw-4.x
c8879d25405017b38392aa3b1ea422ff3e3604ea
[ "BSD-3-Clause" ]
7
2016-11-13T03:11:51.000Z
2021-09-07T18:59:48.000Z
apps/advection/2d/example1_gauges/setplot.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
11
2020-01-14T18:00:37.000Z
2022-03-29T14:25:24.000Z
apps/advection/2d/example1_gauges/setplot.py
che-wenchao/D-Claw
8ab5d971c9a7a7130e03a447a4b8642e292f4e88
[ "BSD-3-Clause" ]
6
2020-01-14T17:15:42.000Z
2021-12-03T17:28:44.000Z
""" Set up the plot figures, axes, and items to be done for each frame. This module is imported by the plotting routines and then the function setplot is called to set the plot parameters. """ #-------------------------- def setplot(plotdata): #-------------------------- """ Specify what is to b...
31.036585
74
0.646758
ff22b76425a2d0f7ddf6601c7896106b7187fe5e
193
py
Python
codility.com/prefix_sum/passingCars.py
Jagrmi-C/jagrmitest
7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96
[ "MIT" ]
null
null
null
codility.com/prefix_sum/passingCars.py
Jagrmi-C/jagrmitest
7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96
[ "MIT" ]
null
null
null
codility.com/prefix_sum/passingCars.py
Jagrmi-C/jagrmitest
7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96
[ "MIT" ]
null
null
null
# def solution(a): # right, total = 0, 0 # for left in a: # right, total = (right + 1, total) if not left else (right, total + right) # return total if total < 1000000000000
38.6
83
0.590674
ff22c9e1d910b90d4e6a1c9e416be3162b44dd67
2,211
py
Python
python/ppml/src/bigdl/ppml/fl/nn/fl_client.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
python/ppml/src/bigdl/ppml/fl/nn/fl_client.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
python/ppml/src/bigdl/ppml/fl/nn/fl_client.py
sgwhat/BigDL
25b402666fbb26b0bc18fc8100e9a00469844778
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
36.245902
86
0.681592
ff22dbb72c51493bc7936a02ae12fb55a4261441
3,647
py
Python
alipay/aop/api/domain/AlipayEbppIndustryJobApplySyncModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayEbppIndustryJobApplySyncModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayEbppIndustryJobApplySyncModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayEbppIndustryJobApplySyncModel(object): def __init__(self): self._apply_change_time = None self._apply_info_url = None self._apply_status = None self._apply_t...
31.439655
85
0.615574
ff22ed807552a037529243f0cd42274499198e44
580
py
Python
TWLight/resources/migrations/0077_auto_20191030_0919.py
Ammarpad/TWLight
9ebdf6a4f36f23a6a8fc6fac6efb40c24c03d976
[ "MIT" ]
null
null
null
TWLight/resources/migrations/0077_auto_20191030_0919.py
Ammarpad/TWLight
9ebdf6a4f36f23a6a8fc6fac6efb40c24c03d976
[ "MIT" ]
null
null
null
TWLight/resources/migrations/0077_auto_20191030_0919.py
Ammarpad/TWLight
9ebdf6a4f36f23a6a8fc6fac6efb40c24c03d976
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.25 on 2019-10-30 09:19 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('resources', '0076_auto_20191011_0137'), ] operations = [ migrations.AlterF...
27.619048
156
0.667241
ff22f1cdb9cdfa22341b03ae63deb944d864aefc
5,702
py
Python
autotest/pyscripts/test_gdal_polygonize.py
chambbj/gdal
3d56aecb5b8e9890dae8f560acd099992e707d12
[ "MIT" ]
1
2015-02-16T16:51:38.000Z
2015-02-16T16:51:38.000Z
autotest/pyscripts/test_gdal_polygonize.py
theduckylittle/gdal
61be261cae524582ba28bceebb027cc1e967e0ab
[ "MIT" ]
null
null
null
autotest/pyscripts/test_gdal_polygonize.py
theduckylittle/gdal
61be261cae524582ba28bceebb027cc1e967e0ab
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test gdal_polygonize.py script # Author: Frank Warmerdam <warmerdam@pobox.com> # ############################################################################### #...
32.770115
227
0.64188
ff2306db8b7009c2f414656b8e5ec3ff03025347
4,097
py
Python
test/language/array_types/python/ArraysMappingTest.py
PeachOS/zserio
ea01f6906c125a6baab7e8ed865eeb08cd46c37c
[ "BSD-3-Clause" ]
null
null
null
test/language/array_types/python/ArraysMappingTest.py
PeachOS/zserio
ea01f6906c125a6baab7e8ed865eeb08cd46c37c
[ "BSD-3-Clause" ]
null
null
null
test/language/array_types/python/ArraysMappingTest.py
PeachOS/zserio
ea01f6906c125a6baab7e8ed865eeb08cd46c37c
[ "BSD-3-Clause" ]
null
null
null
import unittest from testutils import getZserioApi class ArraysMappingTest(unittest.TestCase): @classmethod def setUpClass(cls): cls.api = getZserioApi(__file__, "array_types.zs").arrays_mapping def testUnsignedIntegerArrays(self): arraysMapping = self.api.ArraysMapping() intArray...
38.28972
105
0.728582
ff2347aebc5f69284d1465bf0e1775261cb7c756
11,023
py
Python
kusanagi/sdk/param.py
kusanagi/kusanagi-sdk-python
4fd6843f39fa271afc7588b5ec58e7758b09fd61
[ "MIT" ]
1
2022-02-24T19:02:28.000Z
2022-02-24T19:02:28.000Z
kusanagi/sdk/param.py
jeronimoalbi/kusanagi-sdk-python
4fd6843f39fa271afc7588b5ec58e7758b09fd61
[ "MIT" ]
null
null
null
kusanagi/sdk/param.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. from __future__ import ann...
27.765743
108
0.623333
ff23671ecc95ab6b5f0793320a425c183a6b59c4
1,698
py
Python
tools/perf/benchmarks/dummy_benchmark.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
tools/perf/benchmarks/dummy_benchmark.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/benchmarks/dummy_benchmark.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Dummy benchmarks for the bisect FYI integration tests. The number they produce aren't meant to represent any actual performance data of the browser. For m...
27.387097
76
0.732038
ff237de04d21be715a1d78d7dfe8be83ade6ea08
111,683
py
Python
quest/keras/engine/training.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
quest/keras/engine/training.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
quest/keras/engine/training.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import absolute_import import warnings import copy import numpy as np import six from keras.utils import Sequence from keras.utils import GeneratorEnqueuer from keras.utils import OrderedEnqueuer try: import queue except ImportError: ...
45.603512
145
0.530179
ff23877dccb2b0087f81f770783dd68751e83cab
4,731
py
Python
setup.py
damianoamatruda/yt-dlp
705e7c2005dfe67a905e18736c9f6345ee9d386b
[ "Unlicense" ]
1
2022-01-03T19:13:33.000Z
2022-01-03T19:13:33.000Z
setup.py
XkaV/yt-dlp
fee3f44f5f58274c637499f077aa0312e650f493
[ "Unlicense" ]
null
null
null
setup.py
XkaV/yt-dlp
fee3f44f5f58274c637499f077aa0312e650f493
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 import os.path import warnings import sys try: from setuptools import setup, Command, find_packages setuptools_available = True except ImportError: from distutils.core import setup, Command setuptools_available = False from distutils.spawn import spawn # Get the ...
33.083916
115
0.612978
ff23914aa130f2139c6f1a2a262313ee524559ce
5,430
py
Python
cnudie/retrieve.py
busunkim96/cc-utils
aa864b1fad3061410907d6b93b8aee8cd25f33b5
[ "Apache-2.0" ]
15
2018-04-18T13:25:30.000Z
2022-03-04T09:25:41.000Z
cnudie/retrieve.py
busunkim96/cc-utils
aa864b1fad3061410907d6b93b8aee8cd25f33b5
[ "Apache-2.0" ]
221
2018-04-12T06:29:43.000Z
2022-03-27T03:01:40.000Z
cnudie/retrieve.py
busunkim96/cc-utils
aa864b1fad3061410907d6b93b8aee8cd25f33b5
[ "Apache-2.0" ]
29
2018-04-11T14:42:23.000Z
2021-11-09T16:26:32.000Z
import functools import logging import typing import gci.componentmodel as cm import ccc.delivery import cnudie.util import delivery.client import product.v2 logger = logging.getLogger(__name__) def component_descriptor( name: str, version: str, ctx_repo_url: str=None, ctx_repo: cm.RepositoryContex...
29.51087
92
0.6814
ff23c8f8ab505226503633a5a2f0af7d4c50e71e
21,752
py
Python
source_code/FastPoseCNN/callbacks.py
edavalosanaya/MastersProject
5409aad0ac681e7017ab5abcea89b5b85664c715
[ "MIT" ]
3
2021-02-18T06:18:12.000Z
2022-03-13T13:21:16.000Z
source_code/FastPoseCNN/callbacks.py
edavalosanaya/FastPoseCNN
5409aad0ac681e7017ab5abcea89b5b85664c715
[ "MIT" ]
null
null
null
source_code/FastPoseCNN/callbacks.py
edavalosanaya/FastPoseCNN
5409aad0ac681e7017ab5abcea89b5b85664c715
[ "MIT" ]
null
null
null
""" File Metadata: The callbacks.py file houses all the callbacks used during the training loop within the train.py file. These callbacks contain all the Tensorboard logging and generation of visualization of the input and output. """ #------------------------------------------------------------------------------- imp...
35.484502
120
0.590107
ff23d3e29c767fcde0cf4ba60e413663c08b9702
538
py
Python
workflow/torch/to_shapes.py
Aiwizo/ml-workflow
88e104fce571dd3b76914626a52f9001342c07cc
[ "Apache-2.0" ]
4
2020-09-23T15:39:24.000Z
2021-09-12T22:11:00.000Z
workflow/torch/to_shapes.py
Aiwizo/ml-workflow
88e104fce571dd3b76914626a52f9001342c07cc
[ "Apache-2.0" ]
4
2020-09-23T15:07:39.000Z
2020-10-30T10:26:24.000Z
workflow/torch/to_shapes.py
Aiwizo/ml-workflow
88e104fce571dd3b76914626a52f9001342c07cc
[ "Apache-2.0" ]
null
null
null
import torch def to_shapes(*args): ''' Helper function to convert nested dict / list of tensors to shapes for debugging ''' if len(args) == 1: x = args[0] else: x = args if type(x) == tuple: return tuple(to_shapes(value) for value in x) if type(x) == list: ...
22.416667
70
0.563197
ff242f79f13392729211ca8792265b919ed9f3c5
952
py
Python
flexget/plugins/operate/domain_delay.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
1
2018-05-02T21:14:50.000Z
2018-05-02T21:14:50.000Z
flexget/plugins/operate/domain_delay.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/plugins/operate/domain_delay.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin import logging from flexget import plugin from flexget.event import event from flexget.utils.requests import TimedLimiter log = logging.getLogger('domain_delay') class Domai...
28.848485
97
0.711134
ff2433d3b5d748e546946309493725b5950a04b2
17,501
py
Python
space/tle.py
kerel-fs/space-command
7bd585e23f23c874166a2688f9c3bd7e4b99cc62
[ "MIT" ]
null
null
null
space/tle.py
kerel-fs/space-command
7bd585e23f23c874166a2688f9c3bd7e4b99cc62
[ "MIT" ]
null
null
null
space/tle.py
kerel-fs/space-command
7bd585e23f23c874166a2688f9c3bd7e4b99cc62
[ "MIT" ]
null
null
null
import os import sys import asyncio import aiohttp import async_timeout import requests import logging from datetime import datetime from peewee import ( Model, IntegerField, CharField, TextField, DateTimeField, SqliteDatabase, fn, ) from beyond.io.tle import Tle from .wspace import ws lo...
30.865961
166
0.538598
ff244b39cb3c64b61edba91492ba7a5935f616f2
599
py
Python
tests/test_status.py
moor84/website-monitor
a3ee9ab5cb0fbe8bfc0bbbcecf6da93e81aba74a
[ "MIT" ]
null
null
null
tests/test_status.py
moor84/website-monitor
a3ee9ab5cb0fbe8bfc0bbbcecf6da93e81aba74a
[ "MIT" ]
null
null
null
tests/test_status.py
moor84/website-monitor
a3ee9ab5cb0fbe8bfc0bbbcecf6da93e81aba74a
[ "MIT" ]
null
null
null
from datetime import datetime, timezone import pytest from website_monitor.status import Status class TestStatus: """ Test the Status dataclass. """ def test_parsed_timestamp(self): status = Status('http://www.ya.ru', '2021-02-10T18:04:28.023922+00:00', 200, 0.358636, True) assert st...
29.95
102
0.672788
ff246c1e55fcc0b0d90f22f4242222282bf84c1e
3,756
py
Python
ucb_cs61A/lab/lab06/data.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
null
null
null
ucb_cs61A/lab/lab06/data.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2017-07-31T08:15:26.000Z
2017-07-31T08:15:26.000Z
ucb_cs61A/lab/lab06/data.py
tavaresdong/courses-notes
7fb89103bca679f5ef9b14cbc777152daac1402e
[ "MIT" ]
1
2019-10-06T16:52:31.000Z
2019-10-06T16:52:31.000Z
# CS 61A World Game Data: from classes import * # Characters: john = Character('John', "I can't believe I lost my wallet again! " "I wish someone could find it for me.") brian = Character('Brian', 'John went to Soda to start grading. You can find him there.') sumukh...
37.939394
88
0.61262
ff247a3257d0aa139f40df92e728aa2aff4b9446
32,871
py
Python
network/datadog_checks/network/network.py
dvanderveer/integrations-core
41dd9950296455457c9b7342584153678503d5aa
[ "BSD-3-Clause" ]
null
null
null
network/datadog_checks/network/network.py
dvanderveer/integrations-core
41dd9950296455457c9b7342584153678503d5aa
[ "BSD-3-Clause" ]
null
null
null
network/datadog_checks/network/network.py
dvanderveer/integrations-core
41dd9950296455457c9b7342584153678503d5aa
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2010-2017 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) """ Collects network metrics. """ # stdlib import re import socket from collections import defaultdict # project from datadog_checks.checks import AgentCheck from datadog_checks.utils.platform import Platform fro...
45.973427
149
0.511028
ff247b57a4eed80813bebb3c143ab401073d3bab
10,986
py
Python
launch.py
niubi007/accelerator1
0b2a7ab41aeb983942020bdd5e5a99629f2f551b
[ "Apache-2.0" ]
1
2022-01-20T10:51:31.000Z
2022-01-20T10:51:31.000Z
launch.py
fyesgo/accelerator
24bc0fd1b5895ba5d26afc7147a181145ada7938
[ "Apache-2.0" ]
null
null
null
launch.py
fyesgo/accelerator
24bc0fd1b5895ba5d26afc7147a181145ada7938
[ "Apache-2.0" ]
1
2020-02-15T16:52:47.000Z
2020-02-15T16:52:47.000Z
############################################################################ # # # Copyright (c) 2017 eBay Inc. # # # # Licensed u...
33.699387
213
0.661933
ff248659dedaccda2ba6f9d6e071741130a31395
3,241
py
Python
tools/experimental/dev_ecs.py
shawn-rusaw/aws-lambda-fsm-workflows
9fcf5af14bf0f4500d4a7e7b3e0eda00423c1d42
[ "Apache-2.0" ]
21
2017-01-26T21:23:57.000Z
2021-08-07T02:56:49.000Z
tools/experimental/dev_ecs.py
shawn-rusaw/aws-lambda-fsm-workflows
9fcf5af14bf0f4500d4a7e7b3e0eda00423c1d42
[ "Apache-2.0" ]
151
2016-11-29T05:09:33.000Z
2021-05-19T22:47:58.000Z
tools/experimental/dev_ecs.py
shawn-rusaw/aws-lambda-fsm-workflows
9fcf5af14bf0f4500d4a7e7b3e0eda00423c1d42
[ "Apache-2.0" ]
17
2016-11-29T05:07:58.000Z
2021-05-04T21:22:29.000Z
#!/usr/bin/env python # Copyright 2016-2020 Workiva 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 ...
35.228261
94
0.623573
ff24901a0752e58f9442ccf462db3d17a2d83346
884
py
Python
sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
46.526316
114
0.66629
ff24ba1b3bb72ef024d7d61b5055694e108c89c3
1,696
py
Python
aiortc/stats.py
dsvictor94/aiortc
081d05e4e8fab41bc787da26ef7b2c46e2e92be4
[ "BSD-3-Clause" ]
1
2021-07-23T09:44:11.000Z
2021-07-23T09:44:11.000Z
aiortc/stats.py
dsvictor94/aiortc
081d05e4e8fab41bc787da26ef7b2c46e2e92be4
[ "BSD-3-Clause" ]
null
null
null
aiortc/stats.py
dsvictor94/aiortc
081d05e4e8fab41bc787da26ef7b2c46e2e92be4
[ "BSD-3-Clause" ]
null
null
null
import attr @attr.s class RTCStats: timestamp = attr.ib() "The timestamp associated with this object." type = attr.ib() id = attr.ib() @attr.s class RTCRtpStreamStats(RTCStats): ssrc = attr.ib() kind = attr.ib() transportId = attr.ib() @attr.s class RTCReceivedRtpStreamStats(RTCRtpStre...
23.232877
80
0.71934
ff24bbc1aaf05721c6d5f136164fbc0ea5987621
19
py
Python
clustering/__init__.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
1
2020-07-21T23:24:25.000Z
2020-07-21T23:24:25.000Z
clustering/__init__.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
4
2021-06-29T00:38:57.000Z
2022-01-15T00:22:15.000Z
clustering/__init__.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
null
null
null
from .bic import *
9.5
18
0.684211
ff24c64af3fe94de54b2415753f10c5d5dbe6207
21,409
py
Python
anomaly detector/feature_extractor/getRFs.py
abhilashabhilash3/Robust-vision-based-obstacle-detection
e8f48a2dd157a02844cde893e4944ae920361d20
[ "MIT" ]
null
null
null
anomaly detector/feature_extractor/getRFs.py
abhilashabhilash3/Robust-vision-based-obstacle-detection
e8f48a2dd157a02844cde893e4944ae920361d20
[ "MIT" ]
null
null
null
anomaly detector/feature_extractor/getRFs.py
abhilashabhilash3/Robust-vision-based-obstacle-detection
e8f48a2dd157a02844cde893e4944ae920361d20
[ "MIT" ]
1
2020-06-08T16:30:03.000Z
2020-06-08T16:30:03.000Z
import matplotlib.pyplot as plt import tensorflow as tf import tensorflow_hub as hub from receptivefield.keras import KerasReceptiveField from receptivefield.image import get_default_image from Models.C3D.c3d import C2D import efficientnet.tfkeras as efn # tf.config.set_visible_devices([], 'GPU') shape = (300, 300, 3...
94.312775
185
0.500257
ff24d0fe6209ef41700772fc4e385750135ba26f
2,294
py
Python
Test33_textgen/tweet_generator.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
3
2018-07-29T17:31:58.000Z
2019-06-27T10:36:34.000Z
Test33_textgen/tweet_generator.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
null
null
null
Test33_textgen/tweet_generator.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
1
2019-02-18T02:27:39.000Z
2019-02-18T02:27:39.000Z
#!/usr/bin/python3 import yaml import tweepy import re from textgenrnn import textgenrnn def process_tweet_text(text): text = re.sub(r'http\S+', '', text) # Remove URLs text = re.sub(r'@[a-zA-Z0-9_]+', '', text) # Remove @ mentions text = text.strip(" ") # Remove whitespace resulting from above ...
32.309859
78
0.604621
ff24e76ff230f9edd0f3ceda228048bbb6426c2d
2,334
py
Python
src/xanim/xframe.py
hsoju/Cally
0383a7d6a6df8f94314b9260f9905cf38f301e14
[ "MIT" ]
null
null
null
src/xanim/xframe.py
hsoju/Cally
0383a7d6a6df8f94314b9260f9905cf38f301e14
[ "MIT" ]
null
null
null
src/xanim/xframe.py
hsoju/Cally
0383a7d6a6df8f94314b9260f9905cf38f301e14
[ "MIT" ]
null
null
null
from typing import Sequence from mathutils import Quaternion, Vector from xml.etree import ElementTree as et from ..maps.positions import PositionMap from ..maps.rotations import RotationMap class XFrame: def __init__(self, f_time: float, bone_name: str, rotation: Sequence[float], translation: Se...
44.884615
104
0.649957
ff24fa07d6bcbe5f1eb8f8201d1612f70f0d6590
1,059
py
Python
tests/conda_env/specs/test_requirements.py
cswartzvi/conda
b2e0ed6b6119b7623d8f64c47d4d04f56e9cf137
[ "BSD-3-Clause" ]
null
null
null
tests/conda_env/specs/test_requirements.py
cswartzvi/conda
b2e0ed6b6119b7623d8f64c47d4d04f56e9cf137
[ "BSD-3-Clause" ]
3
2022-03-03T02:36:53.000Z
2022-03-03T02:42:50.000Z
tests/conda_env/specs/test_requirements.py
cswartzvi/conda
b2e0ed6b6119b7623d8f64c47d4d04f56e9cf137
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2012 Anaconda, Inc # SPDX-License-Identifier: BSD-3-Clause import unittest from .. import support_file from conda_env import env from conda_env.specs.requirements import RequirementsSpec class TestRequiremets(unittest.TestCase): def test_no_environment_file(self): ...
32.090909
86
0.697828