hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
0446e3feb81c7004e3819b804fbc8d5360976ede
571
py
Python
mail/ajax.py
svelle/Lagerregal
d0340d2fa5bbb8dfc090c23a772f46f769064ea1
[ "BSD-3-Clause" ]
null
null
null
mail/ajax.py
svelle/Lagerregal
d0340d2fa5bbb8dfc090c23a772f46f769064ea1
[ "BSD-3-Clause" ]
null
null
null
mail/ajax.py
svelle/Lagerregal
d0340d2fa5bbb8dfc090c23a772f46f769064ea1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import json from django.views.generic.base import View from django.http import HttpResponse import six from mail.models import USAGES from mail.models import MailTemplate class LoadChoices(View): def post(self, request, *args, **kwargs): used = MailTemplate.obje...
28.55
94
0.705779
0ca223262952986f25a208c352af39aba4a7c1ee
1,259
py
Python
resources/python/flink/connection/Constants.py
BobYuan1993/Bigdatabench
72ac7b2d6308aad515c6ad2aa8cc0f6b158b818f
[ "BSD-3-Clause" ]
1
2017-05-17T00:35:10.000Z
2017-05-17T00:35:10.000Z
resources/python/flink/connection/Constants.py
BobYuan1993/Bigdatabench
72ac7b2d6308aad515c6ad2aa8cc0f6b158b818f
[ "BSD-3-Clause" ]
15
2015-02-04T22:56:50.000Z
2015-06-25T13:44:53.000Z
resources/python/flink/connection/Constants.py
BobYuan1993/Bigdatabench
72ac7b2d6308aad515c6ad2aa8cc0f6b158b818f
[ "BSD-3-Clause" ]
3
2016-01-09T18:48:42.000Z
2019-07-12T13:26:47.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...
39.34375
80
0.619539
7ceffd2d0f5acd42002c6da2e783da6c53328db4
3,743
py
Python
contrib/opencensus-ext-pymongo/tests/test_pymongo_trace.py
hkwi/opencensus-python
4673e1bbe091f5ca4d2e8d2b778005104396f764
[ "Apache-2.0" ]
null
null
null
contrib/opencensus-ext-pymongo/tests/test_pymongo_trace.py
hkwi/opencensus-python
4673e1bbe091f5ca4d2e8d2b778005104396f764
[ "Apache-2.0" ]
null
null
null
contrib/opencensus-ext-pymongo/tests/test_pymongo_trace.py
hkwi/opencensus-python
4673e1bbe091f5ca4d2e8d2b778005104396f764
[ "Apache-2.0" ]
null
null
null
# Copyright 2017, OpenCensus 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 w...
28.356061
77
0.647342
693b9bab2ab3591e9875870678fefa526a42b50f
22,929
py
Python
tensorpack/dataflow/parallel.py
layolu/tensorpack
97360e5b8ca9ce03d8a18b3abef5abfc92cb9907
[ "Apache-2.0" ]
1
2019-11-21T07:53:39.000Z
2019-11-21T07:53:39.000Z
tensorpack/dataflow/parallel.py
layolu/tensorpack
97360e5b8ca9ce03d8a18b3abef5abfc92cb9907
[ "Apache-2.0" ]
1
2022-02-10T06:36:29.000Z
2022-02-10T06:36:29.000Z
tensorpack/dataflow/parallel.py
layolu/tensorpack
97360e5b8ca9ce03d8a18b3abef5abfc92cb9907
[ "Apache-2.0" ]
1
2020-04-21T08:37:38.000Z
2020-04-21T08:37:38.000Z
# -*- coding: utf-8 -*- # File: parallel.py import atexit import pickle import errno import traceback import itertools import multiprocessing as mp import os import sys import uuid import weakref from contextlib import contextmanager import zmq from six.moves import queue, range from ..utils import logger from ..util...
40.226316
123
0.625409
9f088ad4c1f52dbec9f2e67b784f591eafedb243
2,845
py
Python
classictraversal.py
joostrijneveld/merkletreetraversal
14e094f736950a5176a6a2170c89d0cf5224b9f3
[ "CC0-1.0" ]
null
null
null
classictraversal.py
joostrijneveld/merkletreetraversal
14e094f736950a5176a6a2170c89d0cf5224b9f3
[ "CC0-1.0" ]
null
null
null
classictraversal.py
joostrijneveld/merkletreetraversal
14e094f736950a5176a6a2170c89d0cf5224b9f3
[ "CC0-1.0" ]
1
2020-04-27T10:02:25.000Z
2020-04-27T10:02:25.000Z
#! /usr/bin/env python import copy from common import Node, leafcalc, g, recursive_hash, compute_root, treehash H = 8 AUTH = [None] * H TREEHASH = [None] * H class Treehash(object): def __init__(self, h, startidx=0, completed=False): self.next_idx = startidx self.stack = [] self.complet...
31.263736
79
0.573638
e87a3564979300c793bac1362c17ad4e610d1328
874
py
Python
tests/test_migrations.py
sq9mev/djangocms-text-ckeditor
2664a5cb25c390b4f3a1ece70ae55e243472dc4f
[ "BSD-3-Clause" ]
95
2020-09-14T08:14:15.000Z
2022-03-22T22:32:07.000Z
tests/test_migrations.py
sq9mev/djangocms-text-ckeditor
2664a5cb25c390b4f3a1ece70ae55e243472dc4f
[ "BSD-3-Clause" ]
51
2020-10-16T09:21:19.000Z
2022-03-30T09:08:33.000Z
tests/test_migrations.py
sq9mev/djangocms-text-ckeditor
2664a5cb25c390b4f3a1ece70ae55e243472dc4f
[ "BSD-3-Clause" ]
32
2020-10-14T09:07:40.000Z
2022-02-11T07:32:33.000Z
# original from # http://tech.octopus.energy/news/2016/01/21/testing-for-missing-migrations-in-django.html import io from django.core.management import call_command from django.test import TestCase, override_settings class MigrationTestCase(TestCase): @override_settings(MIGRATION_MODULES={}) def test_for_mi...
28.193548
90
0.60984
93ef7f16bbebd1280efdd311d9947206618573dc
1,930
py
Python
testapp/testapp/migrations/0001_initial.py
surface-security/django-dbcleanup
f35239aea97ee98bf25e8ccd95d973d29f1b72e2
[ "MIT" ]
2
2021-12-14T09:07:08.000Z
2022-01-24T10:29:07.000Z
testapp/testapp/migrations/0001_initial.py
surface-security/django-dbcleanup
f35239aea97ee98bf25e8ccd95d973d29f1b72e2
[ "MIT" ]
2
2022-01-20T18:07:16.000Z
2022-03-23T18:14:28.000Z
testapp/testapp/migrations/0001_initial.py
surface-security/django-dbcleanup
f35239aea97ee98bf25e8ccd95d973d29f1b72e2
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-09-03 11:53 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Food', fields=[ ...
33.859649
114
0.5
a1c11c19e826c0fdb5ef36d637393d4b5184558a
130
py
Python
python/modules/funtoo/boot/extensions/__init__.py
cchalpha/boot-update
8e49495b6d07e28031a87b5f5ba913d66736a652
[ "Xnet", "Linux-OpenIB", "X11" ]
1
2015-04-16T14:12:45.000Z
2015-04-16T14:12:45.000Z
python/modules/funtoo/boot/extensions/__init__.py
cchalpha/boot-update
8e49495b6d07e28031a87b5f5ba913d66736a652
[ "Xnet", "Linux-OpenIB", "X11" ]
null
null
null
python/modules/funtoo/boot/extensions/__init__.py
cchalpha/boot-update
8e49495b6d07e28031a87b5f5ba913d66736a652
[ "Xnet", "Linux-OpenIB", "X11" ]
null
null
null
# -*- coding: ascii -*- """ package of bootloader-specific extensions """ __all__ = [ "grub", "grub-legacy", "lilo", "syslinux" ]
32.5
55
0.623077
c8a4a390a374562f2393f7f1a3f10241a3fd06da
7,261
py
Python
sdk/python/pulumi_azure_native/datashare/get_kusto_database_data_set_mapping.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/datashare/get_kusto_database_data_set_mapping.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/datashare/get_kusto_database_data_set_mapping.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
37.817708
207
0.658036
6acb45161b367fbef6b26a65f9c75480e65e25a0
218
py
Python
electrum_ltc/plugins/audio_modem/__init__.py
jakesum/electrum-ltc
8bc205e086210e6ec40dbc0b8f46c9fc74c47121
[ "MIT" ]
196
2015-02-17T14:26:43.000Z
2022-03-23T09:58:16.000Z
electrum_ltc/plugins/audio_modem/__init__.py
jakesum/electrum-ltc
8bc205e086210e6ec40dbc0b8f46c9fc74c47121
[ "MIT" ]
258
2015-01-30T12:06:32.000Z
2022-03-25T21:32:01.000Z
electrum_ltc/plugins/audio_modem/__init__.py
jakesum/electrum-ltc
8bc205e086210e6ec40dbc0b8f46c9fc74c47121
[ "MIT" ]
154
2015-01-17T07:27:59.000Z
2022-03-18T01:31:53.000Z
from electrum_ltc.i18n import _ fullname = _('Audio MODEM') description = _('Provides support for air-gapped transaction signing.') requires = [('amodem', 'http://github.com/romanz/amodem/')] available_for = ['qt']
27.25
71
0.720183
8c95ca2c472a945cc1aa3311a8d80b7e0b7277fa
764
py
Python
task_manager/tasks/migrations/0014_auto_20220413_1241.py
rabilrbl/task_manager
10c96df8f41caf2db6a0ec2aa7cb961135412843
[ "BSD-3-Clause" ]
null
null
null
task_manager/tasks/migrations/0014_auto_20220413_1241.py
rabilrbl/task_manager
10c96df8f41caf2db6a0ec2aa7cb961135412843
[ "BSD-3-Clause" ]
null
null
null
task_manager/tasks/migrations/0014_auto_20220413_1241.py
rabilrbl/task_manager
10c96df8f41caf2db6a0ec2aa7cb961135412843
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.2.12 on 2022-04-13 12:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tasks', '0013_auto_20220413_1220'), ] operations = [ migrations.RenameField( model_name='task', old_name='board', ...
26.344828
119
0.569372
57000ec18d4cf78a099da02043157d4ccb6f43e4
21,236
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_11_01/operations/_network_interface_tap_configurations_operations.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2019-05-17T21:24:53.000Z
2020-02-12T11:13:42.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_11_01/operations/_network_interface_tap_configurations_operations.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
15
2019-07-12T18:18:04.000Z
2019-07-25T20:55:51.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_11_01/operations/_network_interface_tap_configurations_operations.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.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 ...
50.561905
244
0.679836
1698f1b49dc47e30567062d4628629fbae574aa9
20,263
py
Python
temporal/(pp) grasp_and_pick_split.py
velasale/PickApp
2a6b025de217a6f350bd4e83a9bf120d7a2bae56
[ "MIT" ]
null
null
null
temporal/(pp) grasp_and_pick_split.py
velasale/PickApp
2a6b025de217a6f350bd4e83a9bf120d7a2bae56
[ "MIT" ]
1
2022-02-10T18:30:59.000Z
2022-02-10T18:30:59.000Z
temporal/(pp) grasp_and_pick_split.py
SoftwareDevEngResearch/PickApp
643f1f141ec2ee079917edfe1fe41b854fdaa14b
[ "MIT" ]
1
2022-01-25T18:31:20.000Z
2022-01-25T18:31:20.000Z
""" Takes data from the apple pick experiments and splits it in two halves: Grasp and Pick This is useful to: - Get rid of the points sampled during the rest of the time (e.g. amidst labeling) - Have the data split for grasp or pick analyses independently """ # @Time : 1/26/2022 11:09 AM # @Author : Alejandro Velasqu...
41.268839
133
0.608005
b3e3a73bf342070aeef69bbc1452fb5f90d512e3
493
py
Python
setup.py
bpsagar/captaincloud-tasks
99058929357968ac9b2a62174aa3f8570de9d5f2
[ "MIT" ]
null
null
null
setup.py
bpsagar/captaincloud-tasks
99058929357968ac9b2a62174aa3f8570de9d5f2
[ "MIT" ]
null
null
null
setup.py
bpsagar/captaincloud-tasks
99058929357968ac9b2a62174aa3f8570de9d5f2
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='captaincloud-tasks', version='1.0.0-alpha', description='', url='https://github.com/bpsagar/captaincloud-tasks', author='Sagar Chakravarthy', license='MIT', packages=find_packages(exclude=('tests',)), install_requires=[ 'c...
21.434783
56
0.598377
704dd6126b5f76dc754ec2abbbfe945cca4447d2
4,186
py
Python
test/functional/feature_asmap.py
Kingourd/bitcoin
bd5670eafcfbdf2b0bcb2c74655f860bac8eef45
[ "MIT" ]
7
2020-11-09T15:10:26.000Z
2022-03-04T21:55:39.000Z
test/functional/feature_asmap.py
Kingourd/bitcoin
bd5670eafcfbdf2b0bcb2c74655f860bac8eef45
[ "MIT" ]
14
2022-03-28T20:33:16.000Z
2022-03-29T14:42:33.000Z
test/functional/feature_asmap.py
Kingourd/bitcoin
bd5670eafcfbdf2b0bcb2c74655f860bac8eef45
[ "MIT" ]
2
2021-09-05T22:45:02.000Z
2021-09-08T16:16:40.000Z
#!/usr/bin/env python3 # Copyright (c) 2020 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test asmap config argument for ASN-based IP bucketing. Verify node behaviour and debug log when launching b...
39.490566
89
0.691352
ff2c7efea8a9756f7cea8b752988afbaf242352d
2,470
py
Python
sdk/python/pulumi_azure_native/containerservice/v20180331/list_managed_cluster_user_credentials.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/containerservice/v20180331/list_managed_cluster_user_credentials.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/containerservice/v20180331/list_managed_cluster_user_credentials.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
36.865672
184
0.71336
394980bcd5e16123363f17e818fdb69aa979e284
4,334
py
Python
shadowsocks/servers.py
4kercc/shadowsocks-py-mu
59a28c79ea1f9cd1d9aea3aab98009c41e73e321
[ "Apache-2.0" ]
1
2020-12-19T01:52:36.000Z
2020-12-19T01:52:36.000Z
shadowsocks/servers.py
4kercc/shadowsocks-py-mu
59a28c79ea1f9cd1d9aea3aab98009c41e73e321
[ "Apache-2.0" ]
null
null
null
shadowsocks/servers.py
4kercc/shadowsocks-py-mu
59a28c79ea1f9cd1d9aea3aab98009c41e73e321
[ "Apache-2.0" ]
1
2018-04-17T15:14:17.000Z
2018-04-17T15:14:17.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2015 mengskysama # Copyright 2016 Howard Liu # # 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...
37.042735
122
0.693124
633a2b64d093064c09c32e71e63440c7fa86d925
848
py
Python
backend/medtagger/storage/models.py
kolszewska/MedTagger
c691c822dd23a9fb402d1314e7fe2e6bde898e9c
[ "Apache-2.0" ]
71
2019-01-31T19:50:31.000Z
2022-02-20T07:36:49.000Z
backend/medtagger/storage/models.py
kolszewska/MedTagger
c691c822dd23a9fb402d1314e7fe2e6bde898e9c
[ "Apache-2.0" ]
379
2019-02-16T19:12:01.000Z
2022-03-11T23:12:24.000Z
backend/medtagger/storage/models.py
kolszewska/MedTagger
c691c822dd23a9fb402d1314e7fe2e6bde898e9c
[ "Apache-2.0" ]
16
2019-01-31T16:44:39.000Z
2022-02-14T15:23:29.000Z
"""Definition of storage for MedTagger.""" from cassandra.cqlengine.models import Model from cassandra.cqlengine.columns import Text, Blob from medtagger.storage import MEDTAGGER_KEYSPACE class OriginalSlice(Model): """Model representing original Slice image.""" __table_name__ = 'original_slices' __keys...
23.555556
64
0.732311
1c2cfa067573151f4c0869d0c10acd318d538534
6,182
py
Python
src/clustering.py
DianaLaboratory/DeepTSS
9f6d7cb94268aedbd9d38944ee6707ef9d6df882
[ "MIT" ]
null
null
null
src/clustering.py
DianaLaboratory/DeepTSS
9f6d7cb94268aedbd9d38944ee6707ef9d6df882
[ "MIT" ]
null
null
null
src/clustering.py
DianaLaboratory/DeepTSS
9f6d7cb94268aedbd9d38944ee6707ef9d6df882
[ "MIT" ]
null
null
null
import pandas as pd import multiprocessing as mp import time import os from src.FindClusters import * from src.Func import * def _args_(input_file): filename = os.path.basename(input_file) name = os.path.splitext(filename)[0] return(filename, name) def findAllRepresentatives(line): line = line.split('...
38.160494
165
0.620511
64da82441c0ffc4d62240d543a7e18477def69ef
22,758
py
Python
insights/parsers/ip.py
sagaraivale/insights-core
852a9669c998acf995e316bd407aeb4dbc6c485e
[ "Apache-2.0" ]
1
2018-03-26T12:59:24.000Z
2018-03-26T12:59:24.000Z
insights/parsers/ip.py
sagaraivale/insights-core
852a9669c998acf995e316bd407aeb4dbc6c485e
[ "Apache-2.0" ]
null
null
null
insights/parsers/ip.py
sagaraivale/insights-core
852a9669c998acf995e316bd407aeb4dbc6c485e
[ "Apache-2.0" ]
null
null
null
""" Parsers for ``ip`` command outputs ================================== This module provides the following parsers: IpAddr - command ``ip addr`` ---------------------------- RouteDevices - command ``ip route show table all`` -------------------------------------------------- IpNeighParser - command ``ip neigh sho...
32.326705
110
0.540777
72223d1d9eb674719f8a701c48133b7eed640b69
51
py
Python
multilingual_t5/r_ml_en/__init__.py
sumanthd17/mt5
c99b4e3ad1c69908c852c730a1323ccb52d48f58
[ "Apache-2.0" ]
null
null
null
multilingual_t5/r_ml_en/__init__.py
sumanthd17/mt5
c99b4e3ad1c69908c852c730a1323ccb52d48f58
[ "Apache-2.0" ]
null
null
null
multilingual_t5/r_ml_en/__init__.py
sumanthd17/mt5
c99b4e3ad1c69908c852c730a1323ccb52d48f58
[ "Apache-2.0" ]
null
null
null
"""r_ml_en dataset.""" from .r_ml_en import RMlEn
12.75
26
0.705882
568b4c55e8f3df855f26760fd92a32866aec1c71
9,651
py
Python
userbot/modules/fakeload.py
ikyfadilla/Pocong-Userbot
f17e8fad1e693d5e6909cf504bd9f384ca88a5f4
[ "Naumen", "Condor-1.1", "MS-PL" ]
16
2021-03-26T15:39:48.000Z
2021-12-15T07:27:25.000Z
userbot/modules/fakeload.py
ikyfadilla/Pocong-Userbot
f17e8fad1e693d5e6909cf504bd9f384ca88a5f4
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2021-04-23T06:45:58.000Z
2021-07-05T11:48:45.000Z
userbot/modules/fakeload.py
ikyfadilla/Pocong-Userbot
f17e8fad1e693d5e6909cf504bd9f384ca88a5f4
[ "Naumen", "Condor-1.1", "MS-PL" ]
111
2021-02-20T16:18:48.000Z
2022-03-28T22:17:29.000Z
from time import sleep from userbot import CMD_HELP from userbot.events import register @register(outgoing=True, pattern=r'^\.kill(?: |$)(.*)') async def typewriter(typew): typew.pattern_match.group(1) await typew.edit("`Mau Gue Santet Lu Broo?..`") sleep(4) await typew.edit("0%") number = 1 a...
30.065421
59
0.486789
9a6485dfc31d7b084d1d1b15fb049d3c410f4135
358
py
Python
configs/upernet/upernet_r50_769x769_40k_cityscapes.py
vietawake/mmSegmentation
1f643d6d81708ebf5726c48f66d02c70fe99fe00
[ "Apache-2.0" ]
null
null
null
configs/upernet/upernet_r50_769x769_40k_cityscapes.py
vietawake/mmSegmentation
1f643d6d81708ebf5726c48f66d02c70fe99fe00
[ "Apache-2.0" ]
null
null
null
configs/upernet/upernet_r50_769x769_40k_cityscapes.py
vietawake/mmSegmentation
1f643d6d81708ebf5726c48f66d02c70fe99fe00
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/upernet_r50.py', '../_base_/datasets/cityscapes_769x769.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_40k.py' ] model = dict( decode_head=dict(align_corners=True), auxiliary_head=dict(align_corners=True), test_cfg=dict(mode='slide', crop_...
35.8
80
0.673184
1bfd8d2bbb212d80827a6caea71b9f25490dd164
3,311
py
Python
challenge/agoda_cancellation_estimator.py
AriNailand/IML.HUJI
5b2177c5547e6e4b2f619902bdb0f914c3206c36
[ "MIT" ]
null
null
null
challenge/agoda_cancellation_estimator.py
AriNailand/IML.HUJI
5b2177c5547e6e4b2f619902bdb0f914c3206c36
[ "MIT" ]
null
null
null
challenge/agoda_cancellation_estimator.py
AriNailand/IML.HUJI
5b2177c5547e6e4b2f619902bdb0f914c3206c36
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import NoReturn from IMLearn.base import BaseEstimator import numpy as np from sklearn.linear_model import LogisticRegression from sklearn.ensemble import AdaBoostClassifier, AdaBoostRegressor from sklearn.ensemble import RandomForestClassifier from sklearn.neighbors impo...
30.657407
113
0.578375
aa66f963be68f9da2bd07ae046a9d8f3bcdf3676
4,482
py
Python
tracardi/tests/unit/test_context_service.py
ryomahan/read-tracardi
216b05395d70a869593a60e2804e0a71b58dfc8f
[ "MIT" ]
29
2021-04-17T06:04:46.000Z
2021-11-25T10:22:43.000Z
tracardi/tests/unit/test_context_service.py
ryomahan/read-tracardi
216b05395d70a869593a60e2804e0a71b58dfc8f
[ "MIT" ]
77
2021-04-03T21:20:04.000Z
2021-10-17T10:12:23.000Z
tracardi/tests/unit/test_context_service.py
ryomahan/read-tracardi
216b05395d70a869593a60e2804e0a71b58dfc8f
[ "MIT" ]
17
2021-06-29T13:13:18.000Z
2021-10-17T10:52:57.000Z
# import elasticsearch # import pytest # # import tracardi # from .mocks.mock_storage import MockStorageCrud # from tracardi.domain.entity import Entity # from tracardi.domain.profile import Profile # from tracardi.domain.session import Session # from tracardi.domain.payload.tracker_payload import TrackerPayload # # # ...
35.291339
89
0.701249
bf8ffd86606edc7d91ef295d212620e856ceeb88
369
py
Python
lib/oeqa/runtime/cases/rubygems_rubygems_aws_sdk_elasticloadbalancing.py
tuxable-ltd/meta-rubygems
e80630e79b64e1be8339e1add0ab07644ec99425
[ "BSD-2-Clause" ]
null
null
null
lib/oeqa/runtime/cases/rubygems_rubygems_aws_sdk_elasticloadbalancing.py
tuxable-ltd/meta-rubygems
e80630e79b64e1be8339e1add0ab07644ec99425
[ "BSD-2-Clause" ]
141
2021-02-04T16:22:13.000Z
2022-03-27T08:29:40.000Z
lib/oeqa/runtime/cases/rubygems_rubygems_aws_sdk_elasticloadbalancing.py
tuxable-ltd/meta-rubygems
e80630e79b64e1be8339e1add0ab07644ec99425
[ "BSD-2-Clause" ]
3
2021-02-04T14:02:01.000Z
2022-02-02T16:46:52.000Z
from rubygems_utils import RubyGemsTestUtils class RubyGemsTestrubygems_aws_sdk_elasticloadbalancing(RubyGemsTestUtils): def test_gem_list_rubygems_aws_sdk_elasticloadbalancing(self): self.gem_is_installed("aws-sdk-elasticloadbalancing") def test_load_aws_sdk_elasticloadbalancing(self): self....
33.545455
75
0.829268
143e1cace7205484c238e28f535d29a4ee08c7f1
470
py
Python
app/admin/routes.py
natacha-beck/conp-portal
28950b4cd957b157260b288cfea2488658ac2d53
[ "MIT" ]
10
2019-02-27T22:55:28.000Z
2021-06-15T12:55:10.000Z
app/admin/routes.py
natacha-beck/conp-portal
28950b4cd957b157260b288cfea2488658ac2d53
[ "MIT" ]
325
2019-02-27T22:58:32.000Z
2022-03-17T15:48:54.000Z
app/admin/routes.py
natacha-beck/conp-portal
28950b4cd957b157260b288cfea2488658ac2d53
[ "MIT" ]
31
2019-03-05T16:04:01.000Z
2021-12-22T15:25:15.000Z
# -*- coding: utf-8 -*- """ Routes Module Currently this module contains all of the routes for the admin console NOTE CURRENTLY WORKING """ from flask import render_template from app.admin import admin_bp @admin_bp.route('/admin') def admin(): """ Admin Route Route that leads to the admin page# ...
19.583333
74
0.631915
32160c6a130a962035c6088c2ed50428917def22
8,289
py
Python
homeassistant/components/tradfri/light.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/tradfri/light.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/tradfri/light.py
liangleslie/core
cc807b4d597daaaadc92df4a93c6e30da4f570c6
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Support for IKEA Tradfri lights.""" from __future__ import annotations from collections.abc import Callable from typing import Any, cast from pytradfri.command import Command from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_COLOR_TEMP, ATTR_HS_COLOR, ATTR_TRANSITION, ColorMod...
36.515419
86
0.62215
543b3e6b02d191c8e99c17fad47308388c6010d3
15,441
py
Python
django/contrib/admindocs/views.py
jedie/django
09f2cdbe1a43e79e31f5ea509b59d4c87db29832
[ "BSD-3-Clause" ]
3
2015-09-26T13:33:07.000Z
2020-03-08T07:34:38.000Z
django/contrib/admindocs/views.py
jedie/django
09f2cdbe1a43e79e31f5ea509b59d4c87db29832
[ "BSD-3-Clause" ]
null
null
null
django/contrib/admindocs/views.py
jedie/django
09f2cdbe1a43e79e31f5ea509b59d4c87db29832
[ "BSD-3-Clause" ]
15
2016-01-08T14:28:41.000Z
2019-04-19T08:33:31.000Z
import inspect import os import re from importlib import import_module from django.apps import apps from django.conf import settings from django.contrib import admin from django.contrib.admin.views.decorators import staff_member_required from django.contrib.admindocs import utils from django.core import urlresolvers f...
39.694087
116
0.575675
d577e43228c9038e9146471f69c4d517461a1b72
32,901
py
Python
ProgettoLube/WebInspector/venv/Lib/site-packages/tensorflow_estimator/python/estimator/tpu/tpu_context.py
Lube-Project/ProgettoLube
cbf33971e2c2e865783ec1a2302625539186a338
[ "MIT" ]
4
2020-09-02T16:13:51.000Z
2021-06-05T08:45:59.000Z
ProgettoLube/WebInspector/venv/Lib/site-packages/tensorflow_estimator/python/estimator/tpu/tpu_context.py
Lube-Project/ProgettoLube
cbf33971e2c2e865783ec1a2302625539186a338
[ "MIT" ]
null
null
null
ProgettoLube/WebInspector/venv/Lib/site-packages/tensorflow_estimator/python/estimator/tpu/tpu_context.py
Lube-Project/ProgettoLube
cbf33971e2c2e865783ec1a2302625539186a338
[ "MIT" ]
1
2021-01-28T01:57:41.000Z
2021-01-28T01:57:41.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...
38.890071
107
0.705358
f01288f6c619f8311eac6996667b5bc8de28f94e
311
py
Python
color-depth-reduction/MNIST/generate_codes.py
jfc43/pixel-discretization
1543649e5172cb4f8226962a5ab5087091910418
[ "Apache-2.0" ]
6
2019-03-08T23:09:20.000Z
2021-07-29T19:23:58.000Z
color-depth-reduction/Fashion-MNIST/generate_codes.py
jfc43/pixel-discretization
1543649e5172cb4f8226962a5ab5087091910418
[ "Apache-2.0" ]
null
null
null
color-depth-reduction/Fashion-MNIST/generate_codes.py
jfc43/pixel-discretization
1543649e5172cb4f8226962a5ab5087091910418
[ "Apache-2.0" ]
1
2020-02-05T20:07:19.000Z
2020-02-05T20:07:19.000Z
import numpy as np import json with open('config.json') as config_file: config = json.load(config_file) k = config['k'] codes_path = config['codes_path'] codes = [] for i in range(k): codes.append([float(i)/(k-1)]) codes = np.array(codes) print('# codes: %d'%codes.shape[0]) np.save(codes_path,codes)
18.294118
40
0.678457
9dd43b9bd4fce762b6121b684e44d6d6fba087a7
2,785
py
Python
scripts-python/tkinter.py
Dani25/study
3839d9ab7bf99b1f53ec28306d98ebb03253f6cf
[ "MIT" ]
null
null
null
scripts-python/tkinter.py
Dani25/study
3839d9ab7bf99b1f53ec28306d98ebb03253f6cf
[ "MIT" ]
null
null
null
scripts-python/tkinter.py
Dani25/study
3839d9ab7bf99b1f53ec28306d98ebb03253f6cf
[ "MIT" ]
null
null
null
""" import sys sys.stderr.write('test\n') sys.stderr.flush() sys.stdout.write('test\n') print(sys.argv) if (len(sys.argv))>1: print(float(sys.argv)+5) """ #import urllib.request #import urllib.parse """ #x = urllib.request.urlopen("http://www.google.com") #print (x.read()) url = 'http://pythonprogramming.net' v...
21.098485
76
0.623698
bb7528c2a3362faef8a3346cf7b89eba8cc5fb1c
35
py
Python
meiduo_mall/celery_tasks/config.py
m17630030204/Django_project
9f207b38abfcb1b84be5850f1ec90949b571d9bb
[ "MIT" ]
10
2019-08-23T07:53:43.000Z
2021-01-05T13:19:45.000Z
meiduo_mall/celery_tasks/config.py
m17630030204/Django_project
9f207b38abfcb1b84be5850f1ec90949b571d9bb
[ "MIT" ]
7
2020-02-12T01:25:49.000Z
2022-02-18T08:05:16.000Z
meiduo_mall/celery_tasks/config.py
m17630030204/Django_project
9f207b38abfcb1b84be5850f1ec90949b571d9bb
[ "MIT" ]
7
2019-09-20T04:03:49.000Z
2021-11-08T07:45:37.000Z
broker_url = "redis://127.0.0.1/14"
35
35
0.657143
64cec20c43431338ee5a9ceafa9cc175bb615fd2
1,742
py
Python
src/main.py
d2718nis/codewars-prime-number-decompositions
83630e24887dab7e12f82235a37ac427fb444252
[ "MIT" ]
null
null
null
src/main.py
d2718nis/codewars-prime-number-decompositions
83630e24887dab7e12f82235a37ac427fb444252
[ "MIT" ]
null
null
null
src/main.py
d2718nis/codewars-prime-number-decompositions
83630e24887dab7e12f82235a37ac427fb444252
[ "MIT" ]
null
null
null
def get_all_prime_factors(n): """Get prime decomposition by ascending factors for the given number. Keyword arguments: n -- integer value to get prime decomposition for Return a list of prime factors, sorted by ascending order, e.g.: [2, 2, 5, 5]. """ if type(n) is not int or n < 1: ...
28.096774
79
0.617681
d72a81ae2ee872159213ed8a71f887246c47d533
13,375
py
Python
code/python/helper.py
JasonLo/SSR_modeling_RD
6cfd829fadbcafa983b2ab1cf99d5acf45240fdd
[ "MIT" ]
null
null
null
code/python/helper.py
JasonLo/SSR_modeling_RD
6cfd829fadbcafa983b2ab1cf99d5acf45240fdd
[ "MIT" ]
null
null
null
code/python/helper.py
JasonLo/SSR_modeling_RD
6cfd829fadbcafa983b2ab1cf99d5acf45240fdd
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import altair as alt from typing import Callable from scipy.optimize import curve_fit alt.data_transformers.disable_max_rows() class RawData: """Parse raw sim data into a proper pd.Dataframe""" def __init__(self, filename: str): self.filename = filename ...
31.544811
106
0.535626
bc3adbc89da4c85264887f893ea73803710ebc89
10,665
py
Python
open-ce/inputs.py
bnemanich/open-ce
df79cdb0779814d6500cc1f7d19b376b7cce3c90
[ "Apache-2.0" ]
null
null
null
open-ce/inputs.py
bnemanich/open-ce
df79cdb0779814d6500cc1f7d19b376b7cce3c90
[ "Apache-2.0" ]
null
null
null
open-ce/inputs.py
bnemanich/open-ce
df79cdb0779814d6500cc1f7d19b376b7cce3c90
[ "Apache-2.0" ]
null
null
null
""" ***************************************************************** Licensed Materials - Property of IBM (C) Copyright IBM Corp. 2020. All Rights Reserved. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. ************************************...
50.306604
120
0.451102
4db49c2df352e9a81dea3c49b8affa680be13bf9
702
py
Python
user/models.py
maoxuelin083/restful-Blog
29a08613d71ee6c369dcec9ffb09a2a2ed837431
[ "Apache-2.0" ]
null
null
null
user/models.py
maoxuelin083/restful-Blog
29a08613d71ee6c369dcec9ffb09a2a2ed837431
[ "Apache-2.0" ]
null
null
null
user/models.py
maoxuelin083/restful-Blog
29a08613d71ee6c369dcec9ffb09a2a2ed837431
[ "Apache-2.0" ]
null
null
null
from werkzeug.security import generate_password_hash, check_password_hash from FlaskProject.extendsions import db from common.BaseModel import BaseModelPrimaryKey class Users(BaseModelPrimaryKey): username = db.Column(db.String(32), nullable=False, unique=True) _password = db.Column(db.String(128), nul...
33.428571
74
0.7151
2182e99789cb042d1d56601b4abc482cc8a94516
1,792
py
Python
nomadgram/images/migrations/0002_auto_20180811_1619.py
eshellster/Cloning-instagram
da6c7037629697238948ce22545c8299f25698ba
[ "MIT" ]
null
null
null
nomadgram/images/migrations/0002_auto_20180811_1619.py
eshellster/Cloning-instagram
da6c7037629697238948ce22545c8299f25698ba
[ "MIT" ]
5
2020-06-05T18:51:58.000Z
2021-09-08T00:09:05.000Z
nomadgram/images/migrations/0002_auto_20180811_1619.py
eshellster/Cloning-instagram
da6c7037629697238948ce22545c8299f25698ba
[ "MIT" ]
null
null
null
# Generated by Django 2.0.7 on 2018-08-11 07:19 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('images', '0001_initial')...
36.571429
133
0.605469
bb7ef2b2255c4a4f171973e6ee9ecd3b8f66be8d
1,268
py
Python
tests/test_strips_hgn/test_planning/test_strips.py
matgreco/trainhgn
4da36033512b904e0547b31e5cb8ad9249e1d343
[ "MIT" ]
5
2020-11-29T05:22:24.000Z
2022-01-28T22:52:43.000Z
tests/test_strips_hgn/test_planning/test_strips.py
matgreco/trainhgn
4da36033512b904e0547b31e5cb8ad9249e1d343
[ "MIT" ]
null
null
null
tests/test_strips_hgn/test_planning/test_strips.py
matgreco/trainhgn
4da36033512b904e0547b31e5cb8ad9249e1d343
[ "MIT" ]
4
2020-08-14T01:26:52.000Z
2021-08-30T14:21:53.000Z
import pytest from strips_hgn.planning.strips import STRIPSAction _TEST_ACTION = STRIPSAction( name="test", cost=1.0, preconditions=frozenset({"a", "b", "c"}), add_effects=frozenset({"d", "e"}), del_effects=frozenset({"b", "c", "f"}), ) @pytest.mark.parametrize( "current_state, expected_new...
26.978723
74
0.572555
336f557ccb9697565eafa02e3e3439687d0f83bd
6,638
py
Python
Case A - Day - Extended/Plus1/DJIA_plus1A_extended.py
Mattia9494/Analysis-of-news-sentiments-using-natural-language-processing-and-deep-learning
e5c17012c7e4d6a21aea297980127a7e7671145c
[ "MIT" ]
null
null
null
Case A - Day - Extended/Plus1/DJIA_plus1A_extended.py
Mattia9494/Analysis-of-news-sentiments-using-natural-language-processing-and-deep-learning
e5c17012c7e4d6a21aea297980127a7e7671145c
[ "MIT" ]
null
null
null
Case A - Day - Extended/Plus1/DJIA_plus1A_extended.py
Mattia9494/Analysis-of-news-sentiments-using-natural-language-processing-and-deep-learning
e5c17012c7e4d6a21aea297980127a7e7671145c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Sep 18 18:23:47 2020 @author: mattiavicari """ import numpy as np import tensorflow as tf import random as rn # The below is necessary for starting Numpy generated random numbers # in a well-defined initial state. np.random.seed(1) # The below is nece...
33.695431
184
0.735613
a359b9dde468521277514106478da60f923cbc65
717
py
Python
sinfer/dataset/writer/base.py
geoyee/SlideInfer
1f790f895f66b6322c5d337ef16a30393cfa41ed
[ "Apache-2.0" ]
4
2022-03-28T15:58:34.000Z
2022-03-31T16:00:36.000Z
sinfer/dataset/writer/base.py
geoyee/SlideInfer
1f790f895f66b6322c5d337ef16a30393cfa41ed
[ "Apache-2.0" ]
null
null
null
sinfer/dataset/writer/base.py
geoyee/SlideInfer
1f790f895f66b6322c5d337ef16a30393cfa41ed
[ "Apache-2.0" ]
null
null
null
import os.path as osp from typing import Dict class BaseWriter(object): def __init__(self, config: Dict, ext: str="tif") -> None: file_split = osp.split(config["file_path"]) self.save_path = osp.join(file_split[0], osp.splitext(file_split[-1])[0] + "_output." + ext) self.width = co...
34.142857
101
0.606695
8950445078b92b121618017aa82a7d7e692f1fe0
3,063
py
Python
apps/cowry/models.py
jfterpstra/onepercentclub-site
43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e
[ "BSD-3-Clause" ]
7
2015-01-02T19:31:14.000Z
2021-03-22T17:30:23.000Z
apps/cowry/models.py
jfterpstra/onepercentclub-site
43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e
[ "BSD-3-Clause" ]
1
2015-03-06T08:34:59.000Z
2015-03-06T08:34:59.000Z
apps/cowry/models.py
jfterpstra/onepercentclub-site
43e8e01ac4d3d1ffdd5959ebd048ce95bb2dba0e
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.utils.text import Truncator from django.utils.translation import ugettext as _ from django_extensions.db.fields import ModificationDateTimeField, CreationDateTimeField from djchoices import DjangoChoices, ChoiceItem from polymorphic import PolymorphicModel class PaymentStatuse...
43.140845
134
0.698988
f25902a4bbbd3be4c05c2ab8cc541089669a7c4a
9,211
py
Python
kikit/panelize_ui.py
RomaVis/KiKit
fb918105feeba9fb956063e95390877aae4ea6db
[ "MIT" ]
1
2021-11-07T18:33:09.000Z
2021-11-07T18:33:09.000Z
kikit/panelize_ui.py
RomaVis/KiKit
fb918105feeba9fb956063e95390877aae4ea6db
[ "MIT" ]
null
null
null
kikit/panelize_ui.py
RomaVis/KiKit
fb918105feeba9fb956063e95390877aae4ea6db
[ "MIT" ]
null
null
null
import click import os import csv import io import glob import traceback from kikit.panelize_ui_sections import * PKG_BASE = os.path.dirname(__file__) PRESETS = os.path.join(PKG_BASE, "resources/panelizePresets") def splitStr(delimiter, escapeChar, s): """ Splits s based on delimiter that can be escaped via e...
36.697211
94
0.638476
cd0f9fc9a24522524eafcdbae17d1d40e4718e7b
337
py
Python
beer/dists/__init__.py
desh2608/beer
57ccbd3cf5c415d854d02d2b114143f61a63305d
[ "MIT" ]
null
null
null
beer/dists/__init__.py
desh2608/beer
57ccbd3cf5c415d854d02d2b114143f61a63305d
[ "MIT" ]
null
null
null
beer/dists/__init__.py
desh2608/beer
57ccbd3cf5c415d854d02d2b114143f61a63305d
[ "MIT" ]
null
null
null
'''Collections of distributions/probability density functions.''' #import warnings #warnings.filterwarnings("default", category=DeprecationWarning) from .basedist import * from .dirichlet import * from .isonormalgamma import * from .normalgamma import * from .normalwishart import * from .normaldiag import * from .no...
19.823529
65
0.780415
c8966db5819882a005689b3e0428676e27da7310
1,318
py
Python
tests/h/views/home_test.py
kevinjalbert/h
0f260bf59847f27eff720eeb3c3b2468571412b2
[ "BSD-2-Clause" ]
1
2020-06-19T01:49:39.000Z
2020-06-19T01:49:39.000Z
tests/h/views/home_test.py
kevinjalbert/h
0f260bf59847f27eff720eeb3c3b2468571412b2
[ "BSD-2-Clause" ]
5
2020-03-24T18:14:50.000Z
2022-03-02T06:56:50.000Z
tests/h/views/home_test.py
liquidinvestigations/hypothesis-h
2eebc0b20823fc5bc42a8e8c33551a6d448ad6ba
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from pyramid.httpexceptions import HTTPFound from h.views.home import index_redirect @pytest.mark.usefixtures("routes") class TestIndexRedirect: def test_redirects_to_user_search_page_for_user(self, factories, pyramid_request): pyramid_request.user = factories.User(...
30.651163
86
0.701062
0f795719dbe5ab39c7f79ca7f7b084a130691ffa
5,430
py
Python
playbooks/openstack/inventory.py
huaweicloud/openshift-ansible
4fe2bd3aacc7396753e07cf01de2a818b67bce5f
[ "Apache-2.0" ]
1
2018-11-14T01:47:19.000Z
2018-11-14T01:47:19.000Z
playbooks/openstack/inventory.py
huaweicloud/openshift-ansible
4fe2bd3aacc7396753e07cf01de2a818b67bce5f
[ "Apache-2.0" ]
null
null
null
playbooks/openstack/inventory.py
huaweicloud/openshift-ansible
4fe2bd3aacc7396753e07cf01de2a818b67bce5f
[ "Apache-2.0" ]
4
2018-07-30T02:40:11.000Z
2019-11-12T06:59:02.000Z
#!/usr/bin/env python """ This is an Ansible dynamic inventory for OpenStack. It requires your OpenStack credentials to be set in clouds.yaml or your shell environment. """ from __future__ import print_function from collections import Mapping import json import os import shade OPENSHIFT_CLUSTER = os.getenv('OPEN...
35.960265
104
0.649724
cd5837bb0d61e9c1af63c1e6839a80005bfaee59
24,407
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_extensions_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_extensions_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_virtual_machine_extensions_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "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 ...
49.507099
216
0.671201
23da0a6090b7879f071b0909560472e2a66d94fa
3,237
py
Python
main.py
mcasperson/SlackOutageUpdater
688d83096d05f2ba7229755bb807104959ffdf3a
[ "Apache-2.0" ]
null
null
null
main.py
mcasperson/SlackOutageUpdater
688d83096d05f2ba7229755bb807104959ffdf3a
[ "Apache-2.0" ]
null
null
null
main.py
mcasperson/SlackOutageUpdater
688d83096d05f2ba7229755bb807104959ffdf3a
[ "Apache-2.0" ]
null
null
null
import logging import argparse import base64 from datetime import datetime from slack_sdk import WebClient logging.basicConfig(level=logging.INFO) parser = argparse.ArgumentParser(description='Find the unanswered posts in Slack.') parser.add_argument('--slackApiToken', dest='slack_api_token', ...
39
108
0.615385
c453efef745f4b46949845d026a718b9e1456bfe
1,690
py
Python
tests/integration/test_integration_check_queue_controller.py
AntaresSimulatorTeam/antares-launcher
8915f4ef0ce88565bd130b1230574247a9685a65
[ "Apache-2.0" ]
null
null
null
tests/integration/test_integration_check_queue_controller.py
AntaresSimulatorTeam/antares-launcher
8915f4ef0ce88565bd130b1230574247a9685a65
[ "Apache-2.0" ]
8
2021-04-02T12:16:28.000Z
2021-09-17T08:19:56.000Z
tests/integration/test_integration_check_queue_controller.py
AntaresSimulatorTeam/antares-launcher
8915f4ef0ce88565bd130b1230574247a9685a65
[ "Apache-2.0" ]
1
2021-03-11T09:08:43.000Z
2021-03-11T09:08:43.000Z
from unittest import mock import pytest from antareslauncher.data_repo.idata_repo import IDataRepo from antareslauncher.remote_environnement.remote_environment_with_slurm import ( RemoteEnvironmentWithSlurm, ) from antareslauncher.remote_environnement.slurm_script_features import ( SlurmScriptFeatures, ) from...
35.957447
81
0.756805
bf8db769d0ae0e8b2bab4f72bdbefac1c3316730
5,007
py
Python
Products/mcdutils/mapping.py
zms-publishing/Products.mcdutils
c5e88d85302dd09d62bfb6fa9cb0f68af1a995ab
[ "ZPL-2.1" ]
null
null
null
Products/mcdutils/mapping.py
zms-publishing/Products.mcdutils
c5e88d85302dd09d62bfb6fa9cb0f68af1a995ab
[ "ZPL-2.1" ]
5
2019-03-28T21:17:09.000Z
2021-09-03T10:30:16.000Z
Products/mcdutils/mapping.py
zms-publishing/Products.mcdutils
c5e88d85302dd09d62bfb6fa9cb0f68af1a995ab
[ "ZPL-2.1" ]
2
2020-12-31T20:03:23.000Z
2021-09-02T16:03:22.000Z
""" memcache-aware transactional mapping """ import transaction from AccessControl.class_init import InitializeClass from AccessControl.SecurityInfo import ClassSecurityInfo from persistent.mapping import PersistentMapping from transaction.interfaces import IDataManagerSavepoint from transaction.interfaces import ISave...
29.627219
76
0.644298
1baebca82d4f72f0f5ed7b50d151f0d87aacc964
845
py
Python
hard-gists/5603909/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/5603909/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/5603909/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
"""Example to compute word frequency using simple map/reduce utility from openlibrary. https://github.com/internetarchive/openlibrary/tree/master/openlibrary/data/mapreduce.py """ import sys import logging from openlibrary.data import mapreduce class WordFrequecy(mapreduce.Task): def map(self, key, value): ...
24.852941
88
0.697041
a019ab0dd94aae6df69bcfc583286211c226fb79
148
py
Python
connections.py
jwoos/ghsync
1754c03976fc7c60a5c310c2a3a8ee58758f38cb
[ "MIT" ]
1
2020-11-17T08:30:05.000Z
2020-11-17T08:30:05.000Z
connections.py
jwoos/gitsync
1754c03976fc7c60a5c310c2a3a8ee58758f38cb
[ "MIT" ]
7
2017-04-09T04:22:59.000Z
2017-10-11T21:44:12.000Z
connections.py
jwoos/shell_gitsync
1754c03976fc7c60a5c310c2a3a8ee58758f38cb
[ "MIT" ]
null
null
null
from enum import Enum class RemoteType(Enum): GITHUB = 1 GITLAB = 2 OTHER = 3 class ConnectionType(Enum): SSH = 1 HTTPS = 2
11.384615
27
0.608108
e05d7cdf0461285feb701d9fd893e84efc7ea6ee
419
py
Python
scripts/infrastructure/deploy_oracle.py
michaelnowotny/hybrid-smart-contract-kit
b285422067865cf51fd4ee637fdcc7f553e9fcd9
[ "MIT" ]
12
2022-01-13T03:30:12.000Z
2022-03-16T03:41:31.000Z
scripts/infrastructure/deploy_oracle.py
michaelnowotny/hybrid-smart-contract-kit
b285422067865cf51fd4ee637fdcc7f553e9fcd9
[ "MIT" ]
null
null
null
scripts/infrastructure/deploy_oracle.py
michaelnowotny/hybrid-smart-contract-kit
b285422067865cf51fd4ee637fdcc7f553e9fcd9
[ "MIT" ]
2
2022-02-25T04:28:49.000Z
2022-03-24T10:42:43.000Z
#!/usr/bin/python3 import os from brownie import LinkToken, Oracle, accounts, network, config def main(): dev = accounts.add(config['wallets']['dev_account_0']) link_token_address = LinkToken[-1].address print(f'Using LINK token contract at {link_token_address}') oracle_contract = Oracle.deploy(link...
29.928571
70
0.735084
99461272e16b8ede1d0bf1aea02e8f53fcca6f2e
408
py
Python
qtpyvcp/app/enums.py
Lcvette/qtpyvcp
4143a4a4e1f557f7d0c8998c886b4a254f0be60b
[ "BSD-3-Clause-LBNL", "MIT" ]
1
2021-11-10T06:34:38.000Z
2021-11-10T06:34:38.000Z
qtpyvcp/app/enums.py
adargel/qtpyvcp
2fcb9c26616ac4effa8d92befa9e1c00a80daafa
[ "BSD-3-Clause-LBNL", "MIT" ]
null
null
null
qtpyvcp/app/enums.py
adargel/qtpyvcp
2fcb9c26616ac4effa8d92befa9e1c00a80daafa
[ "BSD-3-Clause-LBNL", "MIT" ]
null
null
null
class Axis(object): ALL = -1 X, Y, Z, A, B, C, U, V, W = range(9) class ReferenceType(object): Absolute = 0 Relative = 1 DistanceToGo = 2 class Units(object): Program = 0 # Use program units Inch = 1 # CANON_UNITS_INCHES=1 Metric = 2 # CANON_UNITS_MM=2 class Permission(object): ...
19.428571
40
0.60049
d71106228635623b21d2ca3b4276657836d69da3
15,359
py
Python
sdk/lusid/models/portfolio_search_result.py
finbourne/lusid-sdk-python-generated-preview
9c36c953e8149443a4390ed7f0c04d01211401b6
[ "MIT" ]
null
null
null
sdk/lusid/models/portfolio_search_result.py
finbourne/lusid-sdk-python-generated-preview
9c36c953e8149443a4390ed7f0c04d01211401b6
[ "MIT" ]
null
null
null
sdk/lusid/models/portfolio_search_result.py
finbourne/lusid-sdk-python-generated-preview
9c36c953e8149443a4390ed7f0c04d01211401b6
[ "MIT" ]
null
null
null
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.4425 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except ImportError: from inspect import getargspec as getf...
33.608315
242
0.625171
9686f8d8ad067c0ccaee5ecbf6fa8a93bc05327e
7,770
py
Python
models/bua/rpn.py
Zoroaster97/bottom-up-attention.pytorch
bb0be9ef73688438e1b263bc7d6d55829b4930bc
[ "Apache-2.0" ]
210
2020-04-27T13:46:39.000Z
2022-03-31T12:32:37.000Z
models/bua/rpn.py
Zoroaster97/bottom-up-attention.pytorch
bb0be9ef73688438e1b263bc7d6d55829b4930bc
[ "Apache-2.0" ]
66
2020-04-27T15:12:07.000Z
2022-03-25T07:06:14.000Z
models/bua/rpn.py
Zoroaster97/bottom-up-attention.pytorch
bb0be9ef73688438e1b263bc7d6d55829b4930bc
[ "Apache-2.0" ]
67
2020-04-24T02:07:35.000Z
2022-02-24T01:04:33.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from typing import Dict, List import torch import torch.nn as nn import torch.nn.functional as F from detectron2.modeling import RPN_HEAD_REGISTRY from detectron2.layers import ShapeSpec from detectron2.modeling.proposal_generator import build_rp...
43.407821
103
0.653668
018979511528f9aecc856054f51fe9d50af0e0df
4,888
py
Python
backfire/bots/gdax_func.py
ddxv/backfire-dev
dd767363c4aa88d58109cd6a3982be1d15d47f11
[ "MIT" ]
null
null
null
backfire/bots/gdax_func.py
ddxv/backfire-dev
dd767363c4aa88d58109cd6a3982be1d15d47f11
[ "MIT" ]
1
2018-06-03T11:52:12.000Z
2018-06-03T11:52:12.000Z
backfire/bots/gdax_func.py
ddxv/backfire-dev
dd767363c4aa88d58109cd6a3982be1d15d47f11
[ "MIT" ]
null
null
null
import numpy as np import gdax import json import logging from os.path import expanduser import pandas as pd from backfire.bots import bot_db logger = logging.getLogger(__name__) def load_gdax_auth(test_bool): home = expanduser("~") if test_bool == True: gdax_auth = json.load(open(f'{home}/auth/gdax_s...
41.423729
200
0.680033
5883984ddd7361fec663ca17eee94c30fb5a5dbb
103,746
py
Python
other/logistics/ClientForm.py
sshyran/testoob
729fa6a17660d0bd8c75907a89ed6998180b5765
[ "Apache-2.0" ]
null
null
null
other/logistics/ClientForm.py
sshyran/testoob
729fa6a17660d0bd8c75907a89ed6998180b5765
[ "Apache-2.0" ]
null
null
null
other/logistics/ClientForm.py
sshyran/testoob
729fa6a17660d0bd8c75907a89ed6998180b5765
[ "Apache-2.0" ]
null
null
null
"""HTML form handling for web clients. ClientForm is a Python module for handling HTML forms on the client side, useful for parsing HTML forms, filling them in and returning the completed forms to the server. It has developed from a port of Gisle Aas' Perl module HTML::Form, from the libwww-perl library, but the inte...
36.338354
87
0.610626
ea0cdfc942e478aad5d46e932865370984684f2c
3,197
py
Python
rpa-client/airtest/utils/apkparser/stringblock.py
yihleego/robotic-process-automation
8684b37ce6961de8b6cad60a959bd7f0eb6b7595
[ "MIT" ]
3
2022-03-26T14:13:23.000Z
2022-03-26T14:24:01.000Z
rpa-client/airtest/utils/apkparser/stringblock.py
yihleego/robotic-process-automation
8684b37ce6961de8b6cad60a959bd7f0eb6b7595
[ "MIT" ]
null
null
null
rpa-client/airtest/utils/apkparser/stringblock.py
yihleego/robotic-process-automation
8684b37ce6961de8b6cad60a959bd7f0eb6b7595
[ "MIT" ]
null
null
null
# This file is part of Androguard. # # Copyright (C) 2010, Anthony Desnos <desnos at t0t0.fr> # All rights reserved. # # Androguard is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of th...
31.038835
101
0.594933
ed9099b33866ff5de1c45d19284267d69c51341d
2,114
py
Python
valohai_cli/utils/cli_utils.py
valohai/valohai-cli
d45f4d8d3b39e803730c070a40f8d2ddfbfb661c
[ "MIT" ]
11
2017-11-06T16:31:46.000Z
2020-10-26T09:55:12.000Z
valohai_cli/utils/cli_utils.py
valohai/valohai-cli
d45f4d8d3b39e803730c070a40f8d2ddfbfb661c
[ "MIT" ]
147
2017-04-06T09:46:11.000Z
2022-03-10T16:24:15.000Z
valohai_cli/utils/cli_utils.py
valohai/valohai-cli
d45f4d8d3b39e803730c070a40f8d2ddfbfb661c
[ "MIT" ]
4
2017-04-16T16:00:51.000Z
2021-07-05T11:36:36.000Z
from typing import Any, Callable, List, Optional, Sequence, Tuple, TypeVar, Union import click from valohai_cli.help_texts import EXECUTION_COUNTER_HELP FuncT = TypeVar('FuncT', bound=Callable[..., Any]) def _default_name_formatter(option: Any) -> str: if isinstance(option, dict) and 'name' in option: ...
34.096774
98
0.618732
4519ab5d4024802c04e5e6321078a2ba0c551a03
2,789
py
Python
dmsclient/core/config.py
dekuenstle/dmsclient
df9d4aa11812fe2ed5ed9b1585cb961ccd280f6d
[ "MIT" ]
2
2018-03-05T17:36:27.000Z
2019-01-09T09:43:09.000Z
dmsclient/core/config.py
dekuenstle/dmsclient
df9d4aa11812fe2ed5ed9b1585cb961ccd280f6d
[ "MIT" ]
18
2017-12-19T10:44:26.000Z
2019-02-11T12:34:30.000Z
dmsclient/core/config.py
dekuenstle/dmsclient
df9d4aa11812fe2ed5ed9b1585cb961ccd280f6d
[ "MIT" ]
1
2018-03-05T17:36:50.000Z
2018-03-05T17:36:50.000Z
import os from configparser import ConfigParser from enum import Enum __all__ = ['ReadStatus', 'Sec', 'DmsConfig'] class ReadStatus(Enum): """Result enum for DmsConfig.read()""" NOT_FOUND = 0 OUTDATED = 1 LATEST = 2 class Sec(Enum): """Available config sections""" ALIASES = 'ALIASES' G...
29.357895
81
0.598064
be6a311f0ec1379f00f7ee5316ce7cbae6913139
533
py
Python
pymagnitude/third_party/allennlp/run.py
tpeng/magnitude
aec98628b5547773ca8c4114ec6d1ad51e21b230
[ "MIT" ]
1,520
2018-03-01T13:37:49.000Z
2022-03-25T11:40:20.000Z
pymagnitude/third_party/allennlp/run.py
tpeng/magnitude
aec98628b5547773ca8c4114ec6d1ad51e21b230
[ "MIT" ]
87
2018-03-03T15:12:50.000Z
2022-02-21T15:24:12.000Z
pymagnitude/third_party/allennlp/run.py
tpeng/magnitude
aec98628b5547773ca8c4114ec6d1ad51e21b230
[ "MIT" ]
121
2018-03-03T08:40:53.000Z
2022-03-16T05:19:38.000Z
#!/usr/bin/env python from __future__ import absolute_import import logging import os import sys if os.environ.get(u"ALLENNLP_DEBUG"): LEVEL = logging.DEBUG else: LEVEL = logging.INFO sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.join(__file__, os.pardir)))) logging.basicConfig(format=u'%(asctim...
25.380952
87
0.705441
ea972ea46c102219506c0707f8e37d962cb8b967
20,020
py
Python
smg_utilities/util/customize.py
osama6162/resilient-community-apps
a7506b6d91b8fe185e930514d7a2c9fda5942ff1
[ "MIT" ]
null
null
null
smg_utilities/util/customize.py
osama6162/resilient-community-apps
a7506b6d91b8fe185e930514d7a2c9fda5942ff1
[ "MIT" ]
null
null
null
smg_utilities/util/customize.py
osama6162/resilient-community-apps
a7506b6d91b8fe185e930514d7a2c9fda5942ff1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Generate the Resilient customizations required for smg_utilities""" from __future__ import print_function from resilient_circuits.util import * def codegen_reload_data(): """Parameters to codegen used to generate the smg_utilities package""" reload_params = {"package": u"smg_utilit...
69.034483
89
0.948402
99cd7711fa9b544b4a31446208d69cee17fbcdc5
1,048
py
Python
todo_list/base/migrations/0001_initial.py
westrheim/django-todo-list
c83968b22471f9e05543bf936e8cbb93f8534f14
[ "BSD-2-Clause" ]
null
null
null
todo_list/base/migrations/0001_initial.py
westrheim/django-todo-list
c83968b22471f9e05543bf936e8cbb93f8534f14
[ "BSD-2-Clause" ]
null
null
null
todo_list/base/migrations/0001_initial.py
westrheim/django-todo-list
c83968b22471f9e05543bf936e8cbb93f8534f14
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-27 15:34 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
32.75
141
0.603053
c95e6bfda9f2d2b58a4a2d1fd7ef399db46c864a
8,266
py
Python
mulm/residualizer/residualizer.py
neurospin/pylearn-mulm
cfbcda8312a495a8e82657e04b67dc95db2a3306
[ "BSD-3-Clause" ]
6
2015-02-27T13:29:36.000Z
2021-05-04T11:45:42.000Z
mulm/residualizer/residualizer.py
neurospin/pylearn-mulm
cfbcda8312a495a8e82657e04b67dc95db2a3306
[ "BSD-3-Clause" ]
null
null
null
mulm/residualizer/residualizer.py
neurospin/pylearn-mulm
cfbcda8312a495a8e82657e04b67dc95db2a3306
[ "BSD-3-Clause" ]
1
2020-05-20T15:42:07.000Z
2020-05-20T15:42:07.000Z
# -*- coding: utf-8 -*- ########################################################################## # Created on Created on Thu Feb 6 15:15:14 2020 # Copyright (c) 2013-2021, CEA/DRF/Joliot/NeuroSpin. All rights reserved. # @author: Edouard Duchesnay # @email: edouard.duchesnay@cea.fr # @license: BSD 3-clause. #####...
33.738776
95
0.578877
8c91eb1ba312c4aac3fed5869404e75f4d5df3e3
1,550
py
Python
pdf2text.py
xueli-pan/scholarly_paper_recommendatation
376e684fc4834b14b72142ddc6e1c633eb03569d
[ "MIT" ]
null
null
null
pdf2text.py
xueli-pan/scholarly_paper_recommendatation
376e684fc4834b14b72142ddc6e1c633eb03569d
[ "MIT" ]
null
null
null
pdf2text.py
xueli-pan/scholarly_paper_recommendatation
376e684fc4834b14b72142ddc6e1c633eb03569d
[ "MIT" ]
null
null
null
# python 3.7 # -*- coding: utf-8 -*- # @Time : 2020-01-03 17:46 # @Author : Xueli # @File : pdf2text.py # @Software: PyCharm # required packages:pdfminer.six from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter from pdfminer.converter import HTMLConverter, TextConverter, XMLConverter from pdfmi...
29.245283
101
0.674194
807e9bdfde942196d01c4a7eeed2a4057f535cb4
42,397
py
Python
tests/plugins/project/test_extension_helpers.py
cloudblue/connect-cli
4b0b460782a27e5d96a106579f082cbccfe10c67
[ "Apache-2.0" ]
12
2020-10-10T10:53:16.000Z
2022-02-16T10:15:56.000Z
tests/plugins/project/test_extension_helpers.py
cloudblue/connect-cli
4b0b460782a27e5d96a106579f082cbccfe10c67
[ "Apache-2.0" ]
37
2020-09-28T12:00:52.000Z
2021-12-20T12:38:25.000Z
tests/plugins/project/test_extension_helpers.py
cloudblue/connect-cli
4b0b460782a27e5d96a106579f082cbccfe10c67
[ "Apache-2.0" ]
11
2020-11-04T18:17:01.000Z
2022-02-23T08:18:07.000Z
# Copyright © 2021 CloudBlue. All rights reserved. import os import tempfile from json.decoder import JSONDecodeError import subprocess import pytest import toml import yaml from click import ClickException from cookiecutter.config import DEFAULT_CONFIG from cookiecutter.exceptions import OutputDirExistsException, R...
32.021903
118
0.660094
fe0d6d2cc2d47c1d6a7f5271923015d055ab5fc8
27,337
py
Python
zerver/tests/test_slack_importer.py
lunayach/zulip
2d8c1f6d93499aa6395cfcb1895859569890953f
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_slack_importer.py
lunayach/zulip
2d8c1f6d93499aa6395cfcb1895859569890953f
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_slack_importer.py
lunayach/zulip
2d8c1f6d93499aa6395cfcb1895859569890953f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf import settings from django.utils.timezone import now as timezone_now from zerver.lib.slack_data_to_zulip_data import ( allocate_ids, get_user_data, build_zerver_realm, get_user_email, get_admin, get_user_avatar_source, get_user_timezone, users_t...
53.601961
185
0.584812
dcce8a8027bb003a29921c78480fb12aba28851e
182
py
Python
habittracker/app_config.py
anjakuchenbecker/oofpp_habits_project
5db8e46fedc7ce839008bf8a7f00eabfee2ba901
[ "MIT" ]
2
2021-02-16T16:49:16.000Z
2021-05-13T13:22:02.000Z
habittracker/app_config.py
anjakuchenbecker/oofpp_habits_project
5db8e46fedc7ce839008bf8a7f00eabfee2ba901
[ "MIT" ]
null
null
null
habittracker/app_config.py
anjakuchenbecker/oofpp_habits_project
5db8e46fedc7ce839008bf8a7f00eabfee2ba901
[ "MIT" ]
null
null
null
import os db_name = False data_dir = os.path.join(os.path.realpath(os.path.pardir), "habittracker", "data") plugin_folder = os.path.join(os.path.dirname(__file__), "commands")
30.333333
82
0.725275
bb0a17d4f2de7e392ba1424fb584b08314fd3fa7
6,985
py
Python
plug-ins/mitsuba/materials/plastic.py
hpd/MitsubaForMaya
2d1a53f6243fbeb51dbdb7bf152aabcf25fd9999
[ "MIT" ]
22
2015-11-24T03:21:28.000Z
2020-10-20T08:24:13.000Z
plug-ins/mitsuba/materials/plastic.py
hpd/MitsubaForMaya
2d1a53f6243fbeb51dbdb7bf152aabcf25fd9999
[ "MIT" ]
null
null
null
plug-ins/mitsuba/materials/plastic.py
hpd/MitsubaForMaya
2d1a53f6243fbeb51dbdb7bf152aabcf25fd9999
[ "MIT" ]
5
2015-11-28T11:46:28.000Z
2020-09-10T08:31:13.000Z
import sys import maya.OpenMaya as OpenMaya import maya.OpenMayaMPx as OpenMayaMPx import maya.cmds as cmds kPluginNodeName = "MitsubaPlasticShader" kPluginNodeClassify = "/shader/surface" kPluginNodeId = OpenMaya.MTypeId(0x87006) class plastic(OpenMayaMPx.MPxNode): def __init__(self): OpenMayaMPx.MPxNode...
34.751244
104
0.627917
96b67098b843ed255482675a17771415f3d107ac
2,049
py
Python
pytorch/datasets/plane_dataset_scannet.py
VisualMine/PlaneNet
a4327f0233dd3a5c4de375c2857402d28b308230
[ "MIT" ]
372
2018-03-27T23:26:38.000Z
2022-03-30T02:58:51.000Z
pytorch/datasets/plane_dataset_scannet.py
Piratelhx/PlaneNet
88eb76d88bb678bd26b7f101f0bb273e4897e92d
[ "MIT" ]
38
2018-04-17T02:03:23.000Z
2022-02-17T07:44:28.000Z
pytorch/datasets/plane_dataset_scannet.py
Piratelhx/PlaneNet
88eb76d88bb678bd26b7f101f0bb273e4897e92d
[ "MIT" ]
90
2018-03-27T13:47:17.000Z
2022-03-16T03:22:27.000Z
import numpy as np from datasets.scannet_scene import ScanNetScene import os import glob ## This class maintains a pool of ScanNet scenes to load plane information class PlaneDatasetScanNet(): def __init__(self, options, split, random=True): self.options = options self.random = random ...
39.403846
140
0.604685
59d77f550e50122ccfba7838de609b624f96d72c
111,617
py
Python
python/GafferArnoldTest/IECoreArnoldPreviewTest/RendererTest.py
ndufort/gaffer
240825977df1a66481b90e5cc81e5de889bfa905
[ "BSD-3-Clause" ]
null
null
null
python/GafferArnoldTest/IECoreArnoldPreviewTest/RendererTest.py
ndufort/gaffer
240825977df1a66481b90e5cc81e5de889bfa905
[ "BSD-3-Clause" ]
null
null
null
python/GafferArnoldTest/IECoreArnoldPreviewTest/RendererTest.py
ndufort/gaffer
240825977df1a66481b90e5cc81e5de889bfa905
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2016, Image Engine Design 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: # # * Redistrib...
35.266035
266
0.692923
0bcee4638167255510597ee29b13b03f3665feb3
5,357
py
Python
kaltura-bulk.py
NORDUnet/kaltura-bulk
c1f425aab702427757652f04924da3052af8bfaf
[ "BSD-3-Clause" ]
null
null
null
kaltura-bulk.py
NORDUnet/kaltura-bulk
c1f425aab702427757652f04924da3052af8bfaf
[ "BSD-3-Clause" ]
null
null
null
kaltura-bulk.py
NORDUnet/kaltura-bulk
c1f425aab702427757652f04924da3052af8bfaf
[ "BSD-3-Clause" ]
null
null
null
import csv import os import xml.etree.cElementTree as ET from xml.dom import minidom FIELDS = ["mediaType", "name", "description", "downloadUrl", "userId", "tags", "categories", "startDate", "endDate" ] def create_item(name, description, downloadUrl, userId, tags, categories, startDate, endDate, mediaType): # Ord...
42.515873
188
0.63095
55ecdd978a229faec13863882e5c5fd989a12190
7,684
py
Python
Lib/site-packages/setuptools/command/sdist.py
RaniaJarraya/fraudulent_behavior_detection
d1506603fd3468a6c106c73d4880623c5a9b4869
[ "BSD-3-Clause" ]
25
2019-09-03T22:18:58.000Z
2022-02-01T22:57:18.000Z
Lib/site-packages/setuptools/command/sdist.py
RaniaJarraya/fraudulent_behavior_detection
d1506603fd3468a6c106c73d4880623c5a9b4869
[ "BSD-3-Clause" ]
27
2019-11-14T00:59:44.000Z
2019-12-08T22:52:26.000Z
Lib/site-packages/setuptools/command/sdist.py
RaniaJarraya/fraudulent_behavior_detection
d1506603fd3468a6c106c73d4880623c5a9b4869
[ "BSD-3-Clause" ]
35
2019-12-22T05:05:43.000Z
2019-12-22T07:16:56.000Z
from distutils import log import distutils.command.sdist as orig import os import sys import io import contextlib from setuptools.extern import six, ordered_set from .py36compat import sdist_add_defaults import pkg_resources _default_revctrl = list def walk_revctrl(dirname=''): """Find all files under revisio...
33.12069
80
0.588365
3d842a3fc5e7b0205078bb9eed466724603bce92
72,077
py
Python
core/libdeno/build/android/gyp/write_build_config.py
shadowkun/denotf
76d8cb8a66ca533c08939fd53c98fb63247129f0
[ "MIT" ]
null
null
null
core/libdeno/build/android/gyp/write_build_config.py
shadowkun/denotf
76d8cb8a66ca533c08939fd53c98fb63247129f0
[ "MIT" ]
null
null
null
core/libdeno/build/android/gyp/write_build_config.py
shadowkun/denotf
76d8cb8a66ca533c08939fd53c98fb63247129f0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright 2014 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. """Writes a build_config file. The build_config file for a target is a json file containing information about how to build that targ...
41.471231
80
0.721603
dccba3dadc327090538e2b7c76a2b3dadd73996d
883
py
Python
human_services/locations/viewsets.py
pg-irc/pathways-backend
05a8c4e750523d2d081b030a248c5444d1ed7992
[ "BSD-3-Clause" ]
12
2017-08-30T18:21:00.000Z
2021-12-09T04:04:17.000Z
human_services/locations/viewsets.py
pg-irc/pathways-backend
05a8c4e750523d2d081b030a248c5444d1ed7992
[ "BSD-3-Clause" ]
424
2017-08-08T18:32:14.000Z
2022-03-30T21:42:51.000Z
human_services/locations/viewsets.py
pg-irc/pathways-backend
05a8c4e750523d2d081b030a248c5444d1ed7992
[ "BSD-3-Clause" ]
7
2017-09-29T21:14:37.000Z
2019-12-30T21:07:37.000Z
from rest_framework import viewsets from django.utils.decorators import method_decorator from human_services.locations import models, serializers, documentation from common.filters import (SearchFilter, LocationIdFilter, ServiceIdFilter, TaxonomyFilter) # pylint: disable=too-many-ancestors ...
42.047619
82
0.798414
267ac2404e6ac7bd0d4a9479947f9455e0378643
5,048
py
Python
ros/devel/lib/python2.7/dist-packages/dbw_mkz_msgs/msg/_ThrottleCmd.py
NeoKish/CarND-Capstone
d87dec456bc769fe17c2c490415ee0bf9c6446fe
[ "MIT" ]
2
2019-08-23T08:11:24.000Z
2019-09-26T01:47:21.000Z
ros/devel/lib/python2.7/dist-packages/dbw_mkz_msgs/msg/_ThrottleCmd.py
NeoKish/CarND-Capstone
d87dec456bc769fe17c2c490415ee0bf9c6446fe
[ "MIT" ]
14
2020-01-28T23:05:09.000Z
2022-03-12T00:41:53.000Z
ros/devel/lib/python2.7/dist-packages/dbw_mkz_msgs/msg/_ThrottleCmd.py
SarbSingh92/Programming_A_Real_Self_Driving_Car
b4fe1fb009d5894afdc37ee65b5ea44f71791506
[ "MIT" ]
3
2019-03-04T09:27:10.000Z
2019-04-07T12:24:48.000Z
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from dbw_mkz_msgs/ThrottleCmd.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct class ThrottleCmd(genpy.Message): _md5sum = "d75259a1444adebea30e45b37542c415" _type = "...
32.358974
145
0.668185
db4b297ec30c188686cb393e055d97dae6744e77
5,856
py
Python
accelRF/render/volsdf_render.py
nexuslrf/Accel-RF
6e1034c27ea2a3f51093a6dcb10310e7fae04e30
[ "MIT" ]
null
null
null
accelRF/render/volsdf_render.py
nexuslrf/Accel-RF
6e1034c27ea2a3f51093a6dcb10310e7fae04e30
[ "MIT" ]
null
null
null
accelRF/render/volsdf_render.py
nexuslrf/Accel-RF
6e1034c27ea2a3f51093a6dcb10310e7fae04e30
[ "MIT" ]
null
null
null
from typing import Optional, Tuple import torch import torch.nn as nn from torch import Tensor from .nerf_render import volumetric_rendering class VolSDFRender(nn.Module): def __init__( self, embedder_pts: Optional[nn.Module], embedder_views: Optional[nn.Module], sdf_net: nn.Module...
50.921739
146
0.599556
f9d9857a27ff2fa09bd9bf0d34ff99517724f856
1,765
py
Python
api/ver2/endpoints/vote.py
pcf26536/politico-api
1c9b8755ddad2baf0bfdeab4aa0674e4197a0d7c
[ "MIT" ]
1
2019-02-22T19:34:32.000Z
2019-02-22T19:34:32.000Z
api/ver2/endpoints/vote.py
pcf26536/politico-api
1c9b8755ddad2baf0bfdeab4aa0674e4197a0d7c
[ "MIT" ]
null
null
null
api/ver2/endpoints/vote.py
pcf26536/politico-api
1c9b8755ddad2baf0bfdeab4aa0674e4197a0d7c
[ "MIT" ]
1
2019-02-07T22:12:25.000Z
2019-02-07T22:12:25.000Z
from flask import request, Blueprint from flask_jwt_extended import jwt_required, get_jwt_identity from api.ver2.utils.strings import vote_key from api.strings import post_method, status_201, get_method from api.ver1.ballot.strings import candidate_key from api.ver1.utils import check_form_data, no_entry_resp, \ fi...
33.942308
74
0.616431
0b4f54073efc2b0f5a1036c208b0cf336c168fcd
7,733
py
Python
indico/modules/categories/serialize.py
yamiacat/indico
754c02cd7cd25bf1eab0ca5f497eb24b135dd51c
[ "MIT" ]
null
null
null
indico/modules/categories/serialize.py
yamiacat/indico
754c02cd7cd25bf1eab0ca5f497eb24b135dd51c
[ "MIT" ]
null
null
null
indico/modules/categories/serialize.py
yamiacat/indico
754c02cd7cd25bf1eab0ca5f497eb24b135dd51c
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from io import BytesIO import icalendar as ical from feedgen.feed import FeedGenerator from flask import ...
43.689266
116
0.630932
7c05fc7b934dfc49b7612c8e18e1cad232669fce
6,656
py
Python
heat/engine/clients/os/swift.py
stackriot/heat
9ed612906e388eda8bf850420cbceef54e05841c
[ "Apache-2.0" ]
265
2015-01-02T09:33:22.000Z
2022-03-26T23:19:54.000Z
heat/engine/clients/os/swift.py
HyunJin-Jeong/heat
8353fddf9ebfb0eca67d6f2b2feb529031acff89
[ "Apache-2.0" ]
8
2015-09-01T15:43:19.000Z
2021-12-14T05:18:23.000Z
heat/engine/clients/os/swift.py
HyunJin-Jeong/heat
8353fddf9ebfb0eca67d6f2b2feb529031acff89
[ "Apache-2.0" ]
295
2015-01-06T07:00:40.000Z
2021-09-06T08:05:06.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 # ...
37.60452
79
0.602915
7f98adc8e5d804f0486920baa22510eb64ae9e34
3,603
py
Python
src/encode_xcor.py
fjames003/chip-seq-pipeline2
5d00c04fa6eee8cc1e5ea57bec657f46e4a9ac6e
[ "MIT" ]
1
2020-04-29T00:39:57.000Z
2020-04-29T00:39:57.000Z
src/encode_xcor.py
fjames003/chip-seq-pipeline2
5d00c04fa6eee8cc1e5ea57bec657f46e4a9ac6e
[ "MIT" ]
2
2019-03-04T12:01:11.000Z
2019-03-14T14:50:48.000Z
src/encode_xcor.py
fjames003/chip-seq-pipeline2
5d00c04fa6eee8cc1e5ea57bec657f46e4a9ac6e
[ "MIT" ]
3
2019-03-04T11:19:04.000Z
2019-03-25T14:52:06.000Z
#!/usr/bin/env python # ENCODE DCC cross-correlation analysis wrapper # Author: Jin Lee (leepc12@gmail.com) import sys import os import argparse from encode_common_genomic import * from encode_common_log_parser import parse_xcor_score def parse_arguments(): parser = argparse.ArgumentParser(prog='ENCODE DCC cross...
35.323529
83
0.61088
ce0278a3bc2b4952aa926571ce61641ea536e5a5
2,527
py
Python
fairseq/tasks/sim_models.py
jwcmu/min-risk
73c2446faf2b057816096110904a14e80191b81a
[ "BSD-3-Clause" ]
null
null
null
fairseq/tasks/sim_models.py
jwcmu/min-risk
73c2446faf2b057816096110904a14e80191b81a
[ "BSD-3-Clause" ]
null
null
null
fairseq/tasks/sim_models.py
jwcmu/min-risk
73c2446faf2b057816096110904a14e80191b81a
[ "BSD-3-Clause" ]
1
2020-12-07T05:57:59.000Z
2020-12-07T05:57:59.000Z
import torch import torch.nn as nn from torch.nn.modules.distance import CosineSimilarity import numpy as np import sentencepiece as spm class ParaModel(nn.Module): def __init__(self, args, vocab, sp_file='simile-mrt/sim/sim.sp.30k.model'): super(ParaModel, self).__init__() self.args = args ...
31.197531
95
0.592798
237beafcad94ab13f3145cd9ce74aef2db5839cc
184,345
py
Python
z3/bin/python/z3/z3core.py
hrfmartins/dafny
110ef7aa2ce6dbe2e4fcd8f1dad20c8d1bf035ac
[ "MIT" ]
null
null
null
z3/bin/python/z3/z3core.py
hrfmartins/dafny
110ef7aa2ce6dbe2e4fcd8f1dad20c8d1bf035ac
[ "MIT" ]
null
null
null
z3/bin/python/z3/z3core.py
hrfmartins/dafny
110ef7aa2ce6dbe2e4fcd8f1dad20c8d1bf035ac
[ "MIT" ]
null
null
null
# Automatically generated file import sys, os import ctypes import pkg_resources from .z3types import * from .z3consts import * _ext = 'dll' if sys.platform in ('win32', 'cygwin') else 'dylib' if sys.platform == 'darwin' else 'so' _lib = None _default_dirs = ['.', os.path.dirname(os.path.abspath(__fi...
35.774306
236
0.770685
202b2bad49c3a5a542438f09af2724e4cb329a82
4,852
py
Python
lfw_eval.py
tapas/sphereface_pytorch
39ecfa716e4d8c56d43e3abe39e2897564a8b741
[ "MIT" ]
null
null
null
lfw_eval.py
tapas/sphereface_pytorch
39ecfa716e4d8c56d43e3abe39e2897564a8b741
[ "MIT" ]
null
null
null
lfw_eval.py
tapas/sphereface_pytorch
39ecfa716e4d8c56d43e3abe39e2897564a8b741
[ "MIT" ]
null
null
null
################################################################################## ## Run command: python lfw_eval.py --model model/sphere20a_20171020.pth --lfw ~/Downloads/dataset/lfw_for_sphereface.zip ################################################################################## from __future__ import print_fun...
32.783784
120
0.625721
fa0e753a5e968839c93153d3ffe50906793127b2
675
py
Python
firmware/adafruit-circuitpython-bundle-5.x-mpy-20200915/examples/ads1x15_ads1115_simpletest.py
freeglow/microcontroller-cpy
5adfda49da6eefaece81be2a2f26122d68736355
[ "MIT" ]
null
null
null
firmware/adafruit-circuitpython-bundle-5.x-mpy-20200915/examples/ads1x15_ads1115_simpletest.py
freeglow/microcontroller-cpy
5adfda49da6eefaece81be2a2f26122d68736355
[ "MIT" ]
null
null
null
firmware/adafruit-circuitpython-bundle-5.x-mpy-20200915/examples/ads1x15_ads1115_simpletest.py
freeglow/microcontroller-cpy
5adfda49da6eefaece81be2a2f26122d68736355
[ "MIT" ]
null
null
null
import time import board import busio import adafruit_ads1x15.ads1115 as ADS from adafruit_ads1x15.analog_in import AnalogIn # Create the I2C bus i2c = busio.I2C(board.SCL, board.SDA) # Create the ADC object using the I2C bus ads = ADS.ADS1115(i2c) # you can specify an I2C adress instead of the default 0x4...
25.961538
62
0.69037
43a36c21d746d6fa2854c19290a52064bc71771e
441
py
Python
opencv/resize.py
khyeyoon/Video-Super-Resolution
7a6f13d3933db6c5be3319e37815c57ff72ab374
[ "Apache-2.0", "MIT" ]
9
2020-11-08T03:26:36.000Z
2021-12-15T00:41:46.000Z
opencv/resize.py
khyeyoon/Video-Super-Resolution
7a6f13d3933db6c5be3319e37815c57ff72ab374
[ "Apache-2.0", "MIT" ]
null
null
null
opencv/resize.py
khyeyoon/Video-Super-Resolution
7a6f13d3933db6c5be3319e37815c57ff72ab374
[ "Apache-2.0", "MIT" ]
null
null
null
import cv2 for i in range(0, 1000): print(i) name = '/workspace/HY/BasicSR/SR_testset/landscape/frame' + str(i) + '.jpg' src = cv2.imread(name, cv2.IMREAD_COLOR) print(src.shape) dst = cv2.resize(src, dsize=(2880, 1440), interpolation=cv2.INTER_AREA) resize_path = '/works...
19.173913
89
0.609977
dc7d4e41cc0b0091f672b2ea38ef64dfcefae4d0
29
py
Python
sales/domain/money.py
smart-protection/fastapi-pycones-upr
16ce2545978c4ddcf884a8c691b63ee60f1f0d67
[ "Apache-2.0" ]
6
2021-08-16T18:33:31.000Z
2022-01-09T04:19:34.000Z
sales/domain/money.py
smart-protection/fastapi-pycones-upr
16ce2545978c4ddcf884a8c691b63ee60f1f0d67
[ "Apache-2.0" ]
null
null
null
sales/domain/money.py
smart-protection/fastapi-pycones-upr
16ce2545978c4ddcf884a8c691b63ee60f1f0d67
[ "Apache-2.0" ]
1
2021-09-23T03:30:17.000Z
2021-09-23T03:30:17.000Z
class Money(float): pass
9.666667
19
0.655172
00355b1b20aa3a901aba076b53595cde99b43622
12,267
py
Python
pybalboa/__main__.py
gazoodle/pybalboa
5f2a5dfc450ba520f55c7486c860b8ecb9e63137
[ "Apache-2.0" ]
11
2020-03-17T17:45:55.000Z
2021-08-01T14:29:29.000Z
pybalboa/__main__.py
gazoodle/pybalboa
5f2a5dfc450ba520f55c7486c860b8ecb9e63137
[ "Apache-2.0" ]
7
2019-12-21T12:49:15.000Z
2021-08-05T10:41:59.000Z
pybalboa/__main__.py
gazoodle/pybalboa
5f2a5dfc450ba520f55c7486c860b8ecb9e63137
[ "Apache-2.0" ]
11
2019-12-22T09:11:21.000Z
2021-12-19T18:40:10.000Z
try: import balboa except ImportError: import pybalboa as balboa import asyncio import sys def usage(): print("Usage: {0} <ip/host>".format(sys.argv[0])) def test_crc(): """ Test the CRC algo. """ status_update = bytes.fromhex('7E1DFFAF13000064082D00000100000400000000000000000064000000067E') ...
39.317308
169
0.595582
ca8afcf939db57cd118bc115f21916f1b02ebdd3
175
py
Python
tests/utils/jensen_shannon_divergence.py
DavidBerdik/dictances
7b804b62032bbdecc8e73946cf74b171681fe4f5
[ "MIT" ]
30
2018-08-30T16:00:14.000Z
2022-03-14T14:36:17.000Z
tests/utils/jensen_shannon_divergence.py
DavidBerdik/dictances
7b804b62032bbdecc8e73946cf74b171681fe4f5
[ "MIT" ]
6
2019-06-18T15:37:23.000Z
2021-04-15T12:40:42.000Z
tests/utils/jensen_shannon_divergence.py
DavidBerdik/dictances
7b804b62032bbdecc8e73946cf74b171681fe4f5
[ "MIT" ]
6
2019-02-10T23:22:25.000Z
2020-10-01T16:25:40.000Z
import scipy def jensen_shannon_divergence(p, q): p /= p.sum() q /= q.sum() m = (p + q) / 2 return (scipy.stats.entropy(p, m) + scipy.stats.entropy(q, m)) / 2
25
70
0.571429
aa2b5ccd5c7d9d784e1376c48b02d8d50cc6fa27
9,996
py
Python
src/fractalnet.py
aendrs/keras-fractalnet
5803cb771092d8b220f2257200797ba0a4028e15
[ "MIT" ]
null
null
null
src/fractalnet.py
aendrs/keras-fractalnet
5803cb771092d8b220f2257200797ba0a4028e15
[ "MIT" ]
null
null
null
src/fractalnet.py
aendrs/keras-fractalnet
5803cb771092d8b220f2257200797ba0a4028e15
[ "MIT" ]
null
null
null
# FRACTALNET # https://github.com/snf/keras-fractalnet/blob/master/src/fractalnet.py # import numpy as np from keras.layers import ( Input, BatchNormalization, Activation, Dense, Dropout, # Merge, Convolution2D, Conv2D, MaxPooling2D, ZeroPadding2D ) from keras.models import Model from keras.engine...
38.446154
132
0.583433
1008c874750f03f93d25f1c6ecefc6a6a029561c
87,687
py
Python
mne/report.py
rylaw/mne-python
aa526c8ed7049046734ca28493d99e841672b0eb
[ "BSD-3-Clause" ]
null
null
null
mne/report.py
rylaw/mne-python
aa526c8ed7049046734ca28493d99e841672b0eb
[ "BSD-3-Clause" ]
null
null
null
mne/report.py
rylaw/mne-python
aa526c8ed7049046734ca28493d99e841672b0eb
[ "BSD-3-Clause" ]
null
null
null
"""Generate self-contained HTML reports from MNE objects.""" # Authors: Alex Gramfort <alexandre.gramfort@inria.fr> # Mainak Jas <mainak@neuro.hut.fi> # Teon Brooks <teon.brooks@gmail.com> # # License: BSD (3-clause) import base64 from io import BytesIO from mne.proj import read_proj import os impor...
38.526801
938
0.547367
f461a5f71481f5f64a7326580dea1712c3240e4e
1,048
py
Python
Week 05/guess_final.py
buzzcola/codingclub
cfaba250f1f1771e3d1a3062bbb7ffd6e73c9e0e
[ "MIT" ]
1
2019-10-02T20:23:26.000Z
2019-10-02T20:23:26.000Z
Week 05/guess_final.py
buzzcola/codingclub
cfaba250f1f1771e3d1a3062bbb7ffd6e73c9e0e
[ "MIT" ]
null
null
null
Week 05/guess_final.py
buzzcola/codingclub
cfaba250f1f1771e3d1a3062bbb7ffd6e73c9e0e
[ "MIT" ]
null
null
null
# import the "random" module, which has functions for making random numbers. import random # make a random number that the user can guess. maximum = 20 number = random.randint(1, maximum) guesses = 0 # set up the guess variable here. The user hasn't guessed anything yet, so set it to "None". guess = None # Tell the ...
36.137931
95
0.688931
33bd3edb93d0641ab807ee72de20d04804c2ffff
161
py
Python
tests/model_control/detailed/transf_Anscombe/model_control_one_enabled_Anscombe_Lag1Trend_Seasonal_Minute_AR.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/model_control/detailed/transf_Anscombe/model_control_one_enabled_Anscombe_Lag1Trend_Seasonal_Minute_AR.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/model_control/detailed/transf_Anscombe/model_control_one_enabled_Anscombe_Lag1Trend_Seasonal_Minute_AR.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Anscombe'] , ['Lag1Trend'] , ['Seasonal_Minute'] , ['AR'] );
40.25
83
0.751553
5ddfa0bfc9be1abfc02337b77ad553699e157af7
1,966
py
Python
challenge-14.py
matt-kendall/python-challenge
a3ea03ed96bc2329df5eb388e32bee5adc30d754
[ "Unlicense" ]
null
null
null
challenge-14.py
matt-kendall/python-challenge
a3ea03ed96bc2329df5eb388e32bee5adc30d754
[ "Unlicense" ]
null
null
null
challenge-14.py
matt-kendall/python-challenge
a3ea03ed96bc2329df5eb388e32bee5adc30d754
[ "Unlicense" ]
null
null
null
""" Python Challenge Level 14. The page title is 'walk around' and the image is some kind of spiral pastry. There is a 10,000 x 1pixel image resembling a barcode ('wire.png') underneath. The clue in the page source 'remember: 100*100 = (100+99+99+98) + (...' tells us to 'wrap' the barcode-like image into a 100*100 ima...
29.343284
78
0.605799
2ed7e255f2559aea867be26da96e3384958b426d
1,603
py
Python
tensorflow/contrib/keras/api/keras/optimizers/__init__.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
6
2022-02-04T18:12:24.000Z
2022-03-21T23:57:12.000Z
Lib/site-packages/tensorflow/contrib/keras/api/keras/optimizers/__init__.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/tensorflow/contrib/keras/api/keras/optimizers/__init__.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
1
2022-02-08T03:53:23.000Z
2022-02-08T03:53:23.000Z
# Copyright 2016 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...
40.075
81
0.756082
a812c584a806a45f205764a9e905f19930d04880
2,484
py
Python
plugins/pelican-plugins/pelican_javascript/pelican_javascript.py
dbgriffith01/blog_source
bc5cd3e1ac1ff068de0cbb78b1470a7db743cd53
[ "MIT" ]
17
2015-10-13T14:59:31.000Z
2022-01-22T12:50:26.000Z
plugins/pelican-plugins/pelican_javascript/pelican_javascript.py
dbgriffith01/blog_source
bc5cd3e1ac1ff068de0cbb78b1470a7db743cd53
[ "MIT" ]
4
2015-08-16T16:52:31.000Z
2020-07-06T12:13:06.000Z
plugins/pelican-plugins/pelican_javascript/pelican_javascript.py
dbgriffith01/blog_source
bc5cd3e1ac1ff068de0cbb78b1470a7db743cd53
[ "MIT" ]
6
2015-08-16T16:14:46.000Z
2020-12-16T16:07:13.000Z
""" Include JavaScript and CSS files for Pelican ============================================ This plugin allows you to easily embed JS and CSS in the header of individual articles. """ import os import shutil from pelican import signals def copy_resources(src, dest, file_list): """ Copy files from content f...
29.927711
88
0.581723
9bce6752e77e7f1cf7d674cd699b9940b3faf1e1
30,883
py
Python
python/exchanges.py
verc/trustless-liquidity-pool
d54a77b3629a27e4e8a414c6b04c05245f407880
[ "MIT" ]
1
2021-01-04T14:38:18.000Z
2021-01-04T14:38:18.000Z
python/exchanges.py
verc/nu-pool
d54a77b3629a27e4e8a414c6b04c05245f407880
[ "MIT" ]
null
null
null
python/exchanges.py
verc/nu-pool
d54a77b3629a27e4e8a414c6b04c05245f407880
[ "MIT" ]
3
2018-09-23T15:33:04.000Z
2021-06-20T14:34:56.000Z
#! /usr/bin/env python """ The MIT License (MIT) Copyright (c) 2015 creon (creon.nu@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the...
42.893056
164
0.613865
cb984eaad88bc4825e75d4fb0a531e76db275dcf
27,045
py
Python
pioreactor/background_jobs/base.py
Pioreactor/pioreactor
63288a2b7ef90b663ff19b85f19586ac0b42bc1b
[ "MIT" ]
32
2021-01-01T01:56:04.000Z
2022-03-31T21:23:22.000Z
pioreactor/background_jobs/base.py
Pioreactor/pioreactor
63288a2b7ef90b663ff19b85f19586ac0b42bc1b
[ "MIT" ]
222
2020-11-28T18:21:56.000Z
2022-03-30T19:23:32.000Z
pioreactor/background_jobs/base.py
Pioreactor/pioreactor
63288a2b7ef90b663ff19b85f19586ac0b42bc1b
[ "MIT" ]
3
2021-02-12T17:50:22.000Z
2022-02-18T18:53:21.000Z
# -*- coding: utf-8 -*- from __future__ import annotations import signal from typing import Callable, Union, Any import threading import atexit import os import sys from collections import namedtuple from json import dumps from pioreactor.utils import pio_jobs_running, local_intermittent_storage from pioreactor.pub...
36.399731
375
0.598003
8141dc577194623b088b539e2d7740804cee739b
25,005
py
Python
etcmodel/tensor_utils.py
muell-monster/google-research
04d2024f4723bc4be3d639a668c19fb1f6a31478
[ "Apache-2.0" ]
3
2021-01-18T04:46:49.000Z
2021-03-05T09:21:40.000Z
etcmodel/tensor_utils.py
Alfaxad/google-research
2c0043ecd507e75e2df9973a3015daf9253e1467
[ "Apache-2.0" ]
7
2021-11-10T19:44:38.000Z
2022-02-10T06:48:39.000Z
etcmodel/tensor_utils.py
Alfaxad/google-research
2c0043ecd507e75e2df9973a3015daf9253e1467
[ "Apache-2.0" ]
4
2021-02-08T10:25:45.000Z
2021-04-17T14:46:26.000Z
# coding=utf-8 # Copyright 2020 The Google Research 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 applicab...
34.729167
80
0.656149