hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
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
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
e4c4a1a9b4555cbf8478e7bf4e73c7328720aa90
530
py
Python
server/server.py
straayke/ClassReport
5c4fbb0422142c4784a6eba99bbebe8418444898
[ "MIT" ]
7
2018-11-25T12:47:04.000Z
2019-08-02T14:14:54.000Z
server/server.py
straayke/ClassReport
5c4fbb0422142c4784a6eba99bbebe8418444898
[ "MIT" ]
3
2020-09-06T18:23:54.000Z
2022-02-12T18:13:28.000Z
server/server.py
straayke/ClassReport
5c4fbb0422142c4784a6eba99bbebe8418444898
[ "MIT" ]
null
null
null
from flask import Flask, request from flask import jsonify import os from openpose import nb_raised from flask_cors import CORS app = Flask(__name__) CORS(app) @app.route('/hand-raised', methods=['POST']) def hand_raised(): file = request.files["file"] file.save(os.path.join("uploaded.jpg")) ret, people, p...
23.043478
69
0.69434
24f38975b2b1d1be7c6b11bf38071662038084ed
110
py
Python
comb/mq/mysql.py
nextoa/comb
9bddd6c7366bd71b06d0ad7c28188abec8a874b0
[ "MIT" ]
null
null
null
comb/mq/mysql.py
nextoa/comb
9bddd6c7366bd71b06d0ad7c28188abec8a874b0
[ "MIT" ]
2
2015-06-30T10:59:58.000Z
2016-01-14T07:15:15.000Z
comb/mq/mysql.py
kbonez/comb
9bddd6c7366bd71b06d0ad7c28188abec8a874b0
[ "MIT" ]
1
2019-11-09T20:34:54.000Z
2019-11-09T20:34:54.000Z
# -*- coding: utf-8 -*- def token(handle): # @todo pass def release(handle): # @todo pass
9.166667
23
0.509091
22d9e7f02b2ae6267e6489c7aae8ca82ff5ab691
2,146
py
Python
fcoclient/api.py
b-77/cloudify-flexiant-plugin
72b8bd98995331972a404d4e22c2df415d9d9e9e
[ "Apache-2.0" ]
null
null
null
fcoclient/api.py
b-77/cloudify-flexiant-plugin
72b8bd98995331972a404d4e22c2df415d9d9e9e
[ "Apache-2.0" ]
null
null
null
fcoclient/api.py
b-77/cloudify-flexiant-plugin
72b8bd98995331972a404d4e22c2df415d9d9e9e
[ "Apache-2.0" ]
null
null
null
# coding=UTF-8 """Abstraction of FCO API in the form of a Python wrapper.""" import fcoclient.clients as clients import fcoclient.exceptions as exceptions import resttypes.endpoints as endpoints import json class REST(object): """FCO REST API Interface.""" def __init__(self, auth, logger): """Ini...
32.515152
77
0.603448
ab9e1413030083c82cb05a882dd3b761c0a7b44a
517
py
Python
discordbot.py
shiitake08/discordpy-startup
becd187061d15b2fc8b9dc12f3e6fbb9e85ab8bd
[ "MIT" ]
null
null
null
discordbot.py
shiitake08/discordpy-startup
becd187061d15b2fc8b9dc12f3e6fbb9e85ab8bd
[ "MIT" ]
null
null
null
discordbot.py
shiitake08/discordpy-startup
becd187061d15b2fc8b9dc12f3e6fbb9e85ab8bd
[ "MIT" ]
null
null
null
from discord.ext import commands import os import traceback bot = commands.Bot(command_prefix='/') token = os.environ['DISCORD_BOT_TOKEN'] @bot.event async def on_command_error(ctx, error): orig_error = getattr(error, "original", error) error_msg = ''.join(traceback.TracebackException.from_exception(orig_err...
20.68
89
0.72147
d281f4fa442827272cc456b77af21d3bcc763f22
2,769
py
Python
examples/src/main/python/ml/simple_text_classification_pipeline.py
liuhb86/spark
18f2098433e0bfef9497bacd601fdf098ed03eab
[ "Apache-2.0" ]
24
2017-10-11T02:59:45.000Z
2021-12-06T05:01:13.000Z
examples/src/main/python/ml/simple_text_classification_pipeline.py
liuhb86/spark
18f2098433e0bfef9497bacd601fdf098ed03eab
[ "Apache-2.0" ]
1
2022-03-21T18:44:10.000Z
2022-03-21T18:44:10.000Z
examples/src/main/python/ml/simple_text_classification_pipeline.py
liuhb86/spark
18f2098433e0bfef9497bacd601fdf098ed03eab
[ "Apache-2.0" ]
18
2017-10-26T14:16:10.000Z
2022-03-30T02:18:14.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 us...
39.557143
92
0.675334
128461083691a6de3b31088e462523e87f8699e6
1,567
py
Python
confusion_test.py
cocoaaa/ml_gesture
a23dd7b9d13bbcb5a1ee049a7f1b026f81a4ba9d
[ "MIT" ]
null
null
null
confusion_test.py
cocoaaa/ml_gesture
a23dd7b9d13bbcb5a1ee049a7f1b026f81a4ba9d
[ "MIT" ]
null
null
null
confusion_test.py
cocoaaa/ml_gesture
a23dd7b9d13bbcb5a1ee049a7f1b026f81a4ba9d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jun 30 10:12:44 2015 Confusion matrix studies on the Iris data @author: LLP-admin """ import matplotlib.pyplot as plt import pandas as pd import numpy as np from mpl_toolkits.mplot3d import Axes3D from sklearn.decomposition import PCA from sklearn import datasets df =datase...
29.566038
106
0.681557
b6ca608f06b523d93f3ac2201c9bf0481993de52
4,321
py
Python
examples/image/resnet50.py
vsl9/NeMo
4137c2b4e3cba0ec5ca1da7b58b3ff97fdb25e50
[ "Apache-2.0" ]
2
2021-03-04T16:37:46.000Z
2021-03-04T16:40:22.000Z
examples/image/resnet50.py
vsl9/NeMo
4137c2b4e3cba0ec5ca1da7b58b3ff97fdb25e50
[ "Apache-2.0" ]
null
null
null
examples/image/resnet50.py
vsl9/NeMo
4137c2b4e3cba0ec5ca1da7b58b3ff97fdb25e50
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 NVIDIA Corporation import argparse import os import sys from tensorboardX import SummaryWriter import nemo from nemo.backends.pytorch.torchvision.helpers import compute_accuracy, eval_epochs_done_callback, eval_iter_callback from nemo.utils.lr_policies import SquareAnnealing sys.path.insert(0, o...
31.540146
117
0.722055
87ae0ffa42dc7530b60e89e4df7abeed9e43a735
821
py
Python
pytorch-SAC/Hyperparameters.py
Fable67/Soft-Actor-Critic-Pytorch
034c5cc37904f568773cdf3c25caf1a5d28a6cee
[ "MIT" ]
4
2019-05-08T23:18:26.000Z
2019-09-05T19:59:47.000Z
pytorch-SAC/Hyperparameters.py
Fable67/Soft-Actor-Critic-Pytorch
034c5cc37904f568773cdf3c25caf1a5d28a6cee
[ "MIT" ]
null
null
null
pytorch-SAC/Hyperparameters.py
Fable67/Soft-Actor-Critic-Pytorch
034c5cc37904f568773cdf3c25caf1a5d28a6cee
[ "MIT" ]
1
2022-01-19T06:47:56.000Z
2022-01-19T06:47:56.000Z
import torch from ReplayBuffer import ReplayBuffer from CombinedReplayBuffer import CombinedReplayBuffer import torch.optim as optim from ranger import Ranger DEVICE = 'cuda' if torch.cuda.is_available() else 'cpu' POLICY_LEARNING_RATE = 3e-4 Q_LEARNING_RATE = 3e-4 ALPHA_LEARNING_RATE = 3e-4 POLICY_OPTIM = optim.Adam...
20.02439
55
0.784409
eecd58e988f0a937e5c4cc571a3f68a1d15835b6
2,057
py
Python
src/connectedvmware/azext_connectedvmware/vendored_sdks/models/tracked_resource.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/connectedvmware/azext_connectedvmware/vendored_sdks/models/tracked_resource.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/connectedvmware/azext_connectedvmware/vendored_sdks/models/tracked_resource.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.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 ...
36.087719
139
0.601361
5a42bc515555091b62a329de7b2e4547c65b0aee
703
py
Python
server/catalog/management/commands/update_mapping.py
icapora/django-elasticsearch
4ae00c84b66a927c33eaffcdb86fedb0e100728d
[ "MIT" ]
null
null
null
server/catalog/management/commands/update_mapping.py
icapora/django-elasticsearch
4ae00c84b66a927c33eaffcdb86fedb0e100728d
[ "MIT" ]
null
null
null
server/catalog/management/commands/update_mapping.py
icapora/django-elasticsearch
4ae00c84b66a927c33eaffcdb86fedb0e100728d
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from elasticsearch_dsl import connections from catalog.constants import ES_INDEX, ES_MAPPING class Command(BaseCommand): help = 'Updates a mapping on an Elasticsearch index.' def handle(self, *args, **kwargs): self.stdout.write(f'Upd...
37
78
0.709815
76a8732468efb01e91b3adb0789286ba6392b6ad
6,281
py
Python
tests/test_dpkg_evironment.py
adelton/swidGenerator
0d0941d261925cc01638e88df748c0f2c4395131
[ "MIT" ]
13
2015-10-16T18:28:32.000Z
2021-08-29T09:36:08.000Z
tests/test_dpkg_evironment.py
adelton/swidGenerator
0d0941d261925cc01638e88df748c0f2c4395131
[ "MIT" ]
11
2018-07-03T13:34:08.000Z
2019-04-10T10:29:29.000Z
tests/test_dpkg_evironment.py
adelton/swidGenerator
0d0941d261925cc01638e88df748c0f2c4395131
[ "MIT" ]
12
2017-02-22T14:51:10.000Z
2022-03-23T16:55:20.000Z
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import, unicode_literals import os import unittest from swid_generator.command_manager import CommandManager from tests.fixtures.command_manager_mock import CommandManagerMock from swid_generator.environments.dpkg_environment import Dpk...
48.689922
137
0.741124
31ada8c9a12ca55750ecb63f23f6f61d3d33db48
623
py
Python
AutoLog/setup.py
gouzil/Learn-DeepFM
138971145617ace4c8bb5ff153a2c38723e181f7
[ "Apache-2.0" ]
1
2022-02-24T10:20:06.000Z
2022-02-24T10:20:06.000Z
AutoLog/setup.py
gouzil/Learn-DeepFM
138971145617ace4c8bb5ff153a2c38723e181f7
[ "Apache-2.0" ]
null
null
null
AutoLog/setup.py
gouzil/Learn-DeepFM
138971145617ace4c8bb5ff153a2c38723e181f7
[ "Apache-2.0" ]
1
2022-02-24T10:20:08.000Z
2022-02-24T10:20:08.000Z
from setuptools import setup # python3.7 setup.py bdist_wheel with open('requirements.txt', encoding="utf-8-sig") as f: requirements = f.readlines() setup(name='auto_log', version='1.0.0', install_requires=requirements, license='Apache License 2.0', keywords='auto log', descri...
32.789474
162
0.682183
a7b903257023fa9f3ce89c0dfbfd044f2c12c7e1
49,450
py
Python
nova/api/openstack/compute/volumes.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/volumes.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/volumes.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
2
2017-07-20T17:31:34.000Z
2020-07-24T02:42:19.000Z
begin_unit comment|'# Copyright 2011 Justin Santa Barbara' nl|'\n' comment|'# All Rights Reserved.' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n' co...
12.751418
229
0.596704
7e3e8356438dcf119531f901f7966495b18a8b87
4,682
py
Python
rl_trainer/episode_serializer/proto/episode_pb2.py
Roboy/nips-2018-ai-for-prosthetics
acb69f267a0cc852842828edbbfb47d1840c0a17
[ "BSD-3-Clause" ]
3
2018-08-31T15:04:53.000Z
2019-07-13T01:11:10.000Z
rl_trainer/episode_serializer/proto/episode_pb2.py
Roboy/nips-2018-ai-for-prosthetics
acb69f267a0cc852842828edbbfb47d1840c0a17
[ "BSD-3-Clause" ]
null
null
null
rl_trainer/episode_serializer/proto/episode_pb2.py
Roboy/nips-2018-ai-for-prosthetics
acb69f267a0cc852842828edbbfb47d1840c0a17
[ "BSD-3-Clause" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: episode.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _refle...
33.927536
410
0.745622
ad10d97006a669a48e3800d706022f0230c55e8b
5,767
py
Python
install_viewer.py
gruzzlymug/ddg-2018
76f598f7548ad51b126ec9efb7da0fd0d4a306c2
[ "MIT" ]
1
2018-02-11T03:32:22.000Z
2018-02-11T03:32:22.000Z
install_viewer.py
gruzzlymug/ddg-2018
76f598f7548ad51b126ec9efb7da0fd0d4a306c2
[ "MIT" ]
null
null
null
install_viewer.py
gruzzlymug/ddg-2018
76f598f7548ad51b126ec9efb7da0fd0d4a306c2
[ "MIT" ]
null
null
null
import os import json import zipfile import shutil import sys from urllib.request import urlretrieve, urlopen #def downloadFile(url, outFile): # urlretrieve(url, outFile) def isNewer(new, original): majorMult, minorMult, patchMult = 10000,100,1 major1, minor1, patch1 = original.split('.') major2, mino...
42.718519
184
0.601873
ac91986cfa31d1b802c5b1e44e1b4aad9d0a55de
253
py
Python
app/recipe/serializers.py
NicolefAvella/api-maquina
2f8301d364a57baf16c92cdff734b9a43b676289
[ "MIT" ]
null
null
null
app/recipe/serializers.py
NicolefAvella/api-maquina
2f8301d364a57baf16c92cdff734b9a43b676289
[ "MIT" ]
null
null
null
app/recipe/serializers.py
NicolefAvella/api-maquina
2f8301d364a57baf16c92cdff734b9a43b676289
[ "MIT" ]
null
null
null
from rest_framework import serializers from core.models import Tag class TagSerializer(serializers.ModelSerializer): """Serializer para tag """ class Meta: model = Tag fields = ('id','name') read_only_fields = ('id',)
21.083333
49
0.656126
499d1be71a050c1d83ce97089f15d280acc05bf2
11,654
py
Python
ppcls/modeling/architectures/xception.py
vslyu/PaddleClas
1b6799cf508ec48a8b76da202f22fb7961f52ee3
[ "Apache-2.0" ]
null
null
null
ppcls/modeling/architectures/xception.py
vslyu/PaddleClas
1b6799cf508ec48a8b76da202f22fb7961f52ee3
[ "Apache-2.0" ]
null
null
null
ppcls/modeling/architectures/xception.py
vslyu/PaddleClas
1b6799cf508ec48a8b76da202f22fb7961f52ee3
[ "Apache-2.0" ]
null
null
null
import paddle from paddle import ParamAttr import paddle.nn as nn import paddle.nn.functional as F from paddle.nn import Conv2D, BatchNorm, Linear, Dropout from paddle.nn import AdaptiveAvgPool2D, MaxPool2D, AvgPool2D from paddle.nn.initializer import Uniform import math __all__ = ['Xception41', 'Xception65', 'Xceptio...
33.77971
78
0.578514
8baae63de707231476240997e8146840c6816dce
3,912
py
Python
thrift/test/py/ForwardCompatibility.py
lucyge/FBThrift
2cb49e1c1ee1712416db9cc1f4b833382b04d8cd
[ "Apache-2.0" ]
1
2018-02-28T06:45:51.000Z
2018-02-28T06:45:51.000Z
thrift/test/py/ForwardCompatibility.py
lucyge/FBThrift
2cb49e1c1ee1712416db9cc1f4b833382b04d8cd
[ "Apache-2.0" ]
null
null
null
thrift/test/py/ForwardCompatibility.py
lucyge/FBThrift
2cb49e1c1ee1712416db9cc1f4b833382b04d8cd
[ "Apache-2.0" ]
1
2018-02-28T06:45:18.000Z
2018-02-28T06:45:18.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...
37.980583
82
0.716002
c974364539921c1e2ea1ca130c4cc03e817cf818
7,192
py
Python
login_sonicwall.py
NathanLundner/Sonic-Wall-Login
c57608ddc6fbc9030c184caf459e11892cebb8d3
[ "BSD-3-Clause" ]
null
null
null
login_sonicwall.py
NathanLundner/Sonic-Wall-Login
c57608ddc6fbc9030c184caf459e11892cebb8d3
[ "BSD-3-Clause" ]
null
null
null
login_sonicwall.py
NathanLundner/Sonic-Wall-Login
c57608ddc6fbc9030c184caf459e11892cebb8d3
[ "BSD-3-Clause" ]
null
null
null
# from def_funtions import (setup_session, login, persist, update_rem_time,keep_alive) '''I have modified this code for my schools use. The code did not function as advertised so I changed a few funtions and how the main executes so it provides constant access to wifi as long as the program is open. BSD 3-Clause ...
32.990826
158
0.631257
66dc7694c677d3671bdfe011b1fe3fd503d0fcb7
16,885
py
Python
portfolyo/core/pfline/tests/test_interop.py
rwijtvliet/portfolyo
b22948fbc55264ec5d69824e791ca7ef45c6e49c
[ "BSD-3-Clause" ]
null
null
null
portfolyo/core/pfline/tests/test_interop.py
rwijtvliet/portfolyo
b22948fbc55264ec5d69824e791ca7ef45c6e49c
[ "BSD-3-Clause" ]
null
null
null
portfolyo/core/pfline/tests/test_interop.py
rwijtvliet/portfolyo
b22948fbc55264ec5d69824e791ca7ef45c6e49c
[ "BSD-3-Clause" ]
null
null
null
from typing import Dict from pint import DimensionalityError, UndefinedUnitError from portfolyo.core.pfline import interop as io from portfolyo.tools.nits import Q_ import pandas as pd import numpy as np import pytest idx1 = pd.date_range("2020", freq="MS", periods=12) val1 = 100 + 20 * np.random.random(len(idx1)) s1...
26.057099
88
0.375659
46915a4ede9c51565edfbd0a439dd6467f9b8985
17,916
py
Python
PZR_bubblegeneration_Fin/SAC_Discrete.py
LeeDaeil/CNS_Autonomous
2ae3688cfd654b9669893e3cdf4cdf1ac0748b9f
[ "Apache-2.0" ]
2
2020-03-22T14:35:00.000Z
2020-05-26T05:06:41.000Z
PZR_bubblegeneration_Fin/SAC_Discrete.py
LeeDaeil/CNS_Autonomous
2ae3688cfd654b9669893e3cdf4cdf1ac0748b9f
[ "Apache-2.0" ]
null
null
null
PZR_bubblegeneration_Fin/SAC_Discrete.py
LeeDaeil/CNS_Autonomous
2ae3688cfd654b9669893e3cdf4cdf1ac0748b9f
[ "Apache-2.0" ]
null
null
null
""" Builder: Daeil Lee 2021-01-03 Ref-Code: - https://github.com/ku2482/sac-discrete.pytorch - """ import torch import torch.optim as opt import torch.nn.functional as F import numpy as np import asyncio from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor, wait from datetime import datetime...
44.567164
148
0.558439
dcf8abe258e05bdf4a36697c49e573eb5ef7cea8
7,007
py
Python
keystone/tests/unit/backend/role/test_ldap.py
maestro-hybrid-cloud/keystone
a597a86b854215835a4d54885daeb161d7b0efb8
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/backend/role/test_ldap.py
maestro-hybrid-cloud/keystone
a597a86b854215835a4d54885daeb161d7b0efb8
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/backend/role/test_ldap.py
maestro-hybrid-cloud/keystone
a597a86b854215835a4d54885daeb161d7b0efb8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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, softwa...
43.253086
79
0.6572
cbab3a357e4ad69576afc85b4060587fbf96f82b
3,329
py
Python
code/main.py
bnesposito/zika-detection
62d5f962e71af54d9dc51eb91b62329d84735e68
[ "Apache-2.0" ]
null
null
null
code/main.py
bnesposito/zika-detection
62d5f962e71af54d9dc51eb91b62329d84735e68
[ "Apache-2.0" ]
null
null
null
code/main.py
bnesposito/zika-detection
62d5f962e71af54d9dc51eb91b62329d84735e68
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd import time from sklearn.ensemble import VotingClassifier import config import process import models def main(): LOGGER_LEVEL = 10 RAW_DATA_PATH = './data/raw/' RAW_CSV_NAME = 'raw_data.csv' t0 = time.time() logger = config.config_logger(__name__, LOGGER_LE...
36.582418
81
0.676479
d00423c680ad949ad979bd13fbaf3a375a88ee47
1,196
py
Python
tests/testapp/migrations/0001_initial.py
garyd203/django-lifecycle
f60a1394b3fb44b84c9c997ac87c2edc7b7a7f55
[ "MIT" ]
null
null
null
tests/testapp/migrations/0001_initial.py
garyd203/django-lifecycle
f60a1394b3fb44b84c9c997ac87c2edc7b7a7f55
[ "MIT" ]
null
null
null
tests/testapp/migrations/0001_initial.py
garyd203/django-lifecycle
f60a1394b3fb44b84c9c997ac87c2edc7b7a7f55
[ "MIT" ]
null
null
null
# Generated by Django 2.0.3 on 2018-03-23 05:44 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='UserAccount', fields=[ ('id', models.AutoFi...
36.242424
158
0.560201
4b99949609a4b6ed5e86b2396aae2366d75f8167
555
py
Python
1-100/17/17.py
Thomaw/Project-Euler
bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d
[ "MIT" ]
null
null
null
1-100/17/17.py
Thomaw/Project-Euler
bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d
[ "MIT" ]
null
null
null
1-100/17/17.py
Thomaw/Project-Euler
bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d
[ "MIT" ]
null
null
null
s={0:"",1:"one",2:"two",3:"three",4:"four",5:"five",6:"six"/ ,7:"seven",8:"eight",9:"nine",10:"ten",11:"eleven"/ ,12:"twelve",13:"thirteen",14:"fourteen",15:"fifteen"/ ,16:"sixteen",17:"seventeen",18:"eighteen",19:"nineteen"/ ,20:"twenty",30:"thirty",40:"forty",50:"fifty"/ ,60:"sixty",70:"seventy",80:"eighty",90:"ninet...
27.75
60
0.583784
0954f281c8639b3673eb8cae034b02aa05706ce5
1,961
py
Python
omtk/__init__.py
renaudll/omtk
a7740d53a5587529773594bfd7c37e553787028f
[ "MIT" ]
20
2015-09-30T16:07:02.000Z
2022-03-12T06:57:59.000Z
omtk/__init__.py
nilouco/omtk
a7740d53a5587529773594bfd7c37e553787028f
[ "MIT" ]
23
2015-12-22T15:41:02.000Z
2018-04-13T02:52:41.000Z
omtk/__init__.py
nilouco/omtk
a7740d53a5587529773594bfd7c37e553787028f
[ "MIT" ]
13
2015-07-10T16:06:26.000Z
2021-08-21T20:09:41.000Z
import sys from .core import * import pymel.core as pymel __dependencies__ = [ ('deps',) ] current_dir = os.path.dirname(os.path.realpath(__file__)) for dependency in __dependencies__: path = os.path.realpath(os.path.join(current_dir, *dependency)) sys.path.append(path) # HACK: Load matrixNodes.dll pymel...
20.642105
67
0.711882
41a07abad738f41570fda5fe865b70918bfc53bd
1,917
py
Python
Web/4/example_12.py
mabdelaal86/python-courses
5e2be0df3c00eb084ec39d49402be38fac635097
[ "MIT" ]
1
2020-03-10T15:40:22.000Z
2020-03-10T15:40:22.000Z
Web/4/example_12.py
mabdelaal86/python-courses
5e2be0df3c00eb084ec39d49402be38fac635097
[ "MIT" ]
null
null
null
Web/4/example_12.py
mabdelaal86/python-courses
5e2be0df3c00eb084ec39d49402be38fac635097
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from flask import Flask, request, jsonify, abort app = Flask(__name__) students = { 105: {"id": 105, "name": "Ibrahim Fatti", "gender": "Male", "birth_date": "1995-12-13", "address": "Giza", "class": 3, "group": "A"}, 109: {"id": 109, "name": "Shady Hamdy", "gender": "Male", "birth_da...
27.385714
138
0.624413
45ac478bcc60a60ba1fd6d251de2e254b76ada60
6,164
py
Python
xblog/tests/test_mt.py
rubeon/django-xblog
1709a3c2f6c1901231f817f9adeb189b0be6251e
[ "BSD-2-Clause" ]
null
null
null
xblog/tests/test_mt.py
rubeon/django-xblog
1709a3c2f6c1901231f817f9adeb189b0be6251e
[ "BSD-2-Clause" ]
null
null
null
xblog/tests/test_mt.py
rubeon/django-xblog
1709a3c2f6c1901231f817f9adeb189b0be6251e
[ "BSD-2-Clause" ]
null
null
null
""" test case for mt. xmlrpc methods """ from django.test import TestCase from django.core.exceptions import PermissionDenied from django.contrib.auth.models import User from django.contrib.sites.models import Site from django.test.utils import override_settings from django.test.client import Client from django.conf i...
30.364532
99
0.614049
40055188cda07e9016356349c69a69d50848fabb
11,502
py
Python
trainer.py
zedoggo/ThesisBinus
1132330cd221677a4e7abe27ff0637642ee02872
[ "MIT" ]
2
2020-11-08T15:39:10.000Z
2021-02-25T08:07:55.000Z
trainer.py
zedoggo/ThesisBinus
1132330cd221677a4e7abe27ff0637642ee02872
[ "MIT" ]
null
null
null
trainer.py
zedoggo/ThesisBinus
1132330cd221677a4e7abe27ff0637642ee02872
[ "MIT" ]
1
2020-12-13T13:40:34.000Z
2020-12-13T13:40:34.000Z
import numpy as np import torch from torch import optim from torch.autograd import Variable from torch.optim.lr_scheduler import StepLR from models.CC import CrowdCounter from config import cfg from misc.utils import * import pdb import csv class Trainer(): def __init__(self, dataloader, cfg_data, pwd): ...
39.662069
167
0.565467
9ea8d9ccbfd0def3d7a84712fe1828ccb9d69b0d
235
py
Python
tests/packages/tree/tree-package2/setup.py
sbg/dante
104543c3ccb5e762d3e9cd6e8fa04c5fa91e2227
[ "Apache-2.0" ]
9
2017-11-03T15:53:01.000Z
2019-10-01T14:09:56.000Z
tests/packages/tree/tree-package2/setup.py
sbg/dante
104543c3ccb5e762d3e9cd6e8fa04c5fa91e2227
[ "Apache-2.0" ]
4
2019-10-01T12:53:58.000Z
2021-04-26T15:39:16.000Z
tests/packages/tree/tree-package2/setup.py
sbg/dante
104543c3ccb5e762d3e9cd6e8fa04c5fa91e2227
[ "Apache-2.0" ]
5
2017-11-03T15:50:40.000Z
2021-09-13T08:50:45.000Z
from setuptools import setup, find_packages install_requires = [ 'tree-package3', 'tree-package7' ] setup( name='tree-package2', version='1.0.0', install_requires=install_requires, packages=find_packages(), )
16.785714
43
0.689362
501b2784e981c8e2b766beeac3ba2218b9884d98
2,916
py
Python
tests/test_reduce_max.py
yanndupis/tf-encrypted
cfaea3ba87520f73979ed4e4f397eba3beb0a535
[ "Apache-2.0" ]
null
null
null
tests/test_reduce_max.py
yanndupis/tf-encrypted
cfaea3ba87520f73979ed4e4f397eba3beb0a535
[ "Apache-2.0" ]
null
null
null
tests/test_reduce_max.py
yanndupis/tf-encrypted
cfaea3ba87520f73979ed4e4f397eba3beb0a535
[ "Apache-2.0" ]
null
null
null
import unittest import numpy as np import tensorflow as tf import tf_encrypted as tfe import pytest @pytest.mark.slow class TestReduceMax(unittest.TestCase): def setUp(self): tf.reset_default_graph() def tearDown(self): tf.reset_default_graph() def test_reduce_max_1d(self): t ...
30.061856
76
0.580247
a70be78f82e9b079a603298a6da542545d6fc4ce
2,277
py
Python
doc/scripts/new_kernel.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
doc/scripts/new_kernel.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
doc/scripts/new_kernel.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
from radical.ensemblemd.kernel_plugins.kernel_base import KernelBase # ------------------------------------------------------------------------------ # _KERNEL_INFO = { "name": "sleep", # Mandatory "description": "sleeping kernel", # Optional "arguments": { ...
41.4
94
0.467721
36fd7c4e13cfcdedbc820127300c3083245cb73f
1,079
py
Python
checkov/kubernetes/checks/resource/k8s/MemoryRequests.py
vangundy-jason-pfg/checkov
2fb50908f62390c98dda665f1fa94fe24806b654
[ "Apache-2.0" ]
null
null
null
checkov/kubernetes/checks/resource/k8s/MemoryRequests.py
vangundy-jason-pfg/checkov
2fb50908f62390c98dda665f1fa94fe24806b654
[ "Apache-2.0" ]
null
null
null
checkov/kubernetes/checks/resource/k8s/MemoryRequests.py
vangundy-jason-pfg/checkov
2fb50908f62390c98dda665f1fa94fe24806b654
[ "Apache-2.0" ]
null
null
null
from checkov.common.models.enums import CheckCategories, CheckResult from checkov.kubernetes.checks.resource.base_spec_check import BaseK8Check class MemoryRequests(BaseK8Check): def __init__(self): name = "Memory requests should be set" id = "CKV_K8S_12" # Location: container .resources....
34.806452
100
0.650602
2b85296d381b7291d7f65939352149c99b60e83c
2,866
py
Python
demo/demo.py
mcstro/natural-neighbor-interpolation
76ba7bb50c84aef35e993902c46824e5991df45d
[ "MIT" ]
64
2017-09-17T00:37:20.000Z
2022-02-03T20:16:54.000Z
demo/demo.py
mcstro/natural-neighbor-interpolation
76ba7bb50c84aef35e993902c46824e5991df45d
[ "MIT" ]
5
2018-07-27T16:31:35.000Z
2020-06-15T02:53:48.000Z
demo/demo.py
mcstro/natural-neighbor-interpolation
76ba7bb50c84aef35e993902c46824e5991df45d
[ "MIT" ]
13
2018-06-06T18:51:50.000Z
2021-12-26T02:47:05.000Z
''' Comparison of natural neighbor and linear barycentric interpolation. ''' import numpy as np import scipy.interpolate import matplotlib as mpl mpl.use('Agg') # so it can run on Travis without a display import matplotlib.pyplot as plt import naturalneighbor def error_str(errors): numerical_error = errors[~np....
30.168421
104
0.671668
d765dc90842041b034636bca6e35759d3c8fac58
4,267
py
Python
kubernetes/client/models/extensions_v1beta1_deployment_strategy.py
L3T/python
b6e4ae81a2afb49f668a142eb7d1c6e2571ef478
[ "Apache-2.0" ]
2
2020-06-21T08:03:18.000Z
2020-06-21T09:53:29.000Z
kubernetes/client/models/extensions_v1beta1_deployment_strategy.py
L3T/python
b6e4ae81a2afb49f668a142eb7d1c6e2571ef478
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/extensions_v1beta1_deployment_strategy.py
L3T/python
b6e4ae81a2afb49f668a142eb7d1c6e2571ef478
[ "Apache-2.0" ]
1
2020-12-10T07:28:08.000Z
2020-12-10T07:28:08.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.16 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class Exten...
30.262411
124
0.609562
4c31f4bb76ebaf032fe58c1ed8efbd00da52a9c2
2,438
py
Python
day22/sol.py
samstronghammer/adventofcode2020
a03098ce886bbf011e01f5897461e7caac468202
[ "MIT" ]
null
null
null
day22/sol.py
samstronghammer/adventofcode2020
a03098ce886bbf011e01f5897461e7caac468202
[ "MIT" ]
null
null
null
day22/sol.py
samstronghammer/adventofcode2020
a03098ce886bbf011e01f5897461e7caac468202
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys import os sys.path.append(f"{os.path.dirname(__file__)}/..") import util import math # Implementation of the classic "war" card game with a recursive # twist at the end. Very fun :) For part 1 and 2 I used lists # where the end of the list is the top of the deck. It seemed # easier. def ...
28.022989
83
0.597621
a717eed88b103ba28b6c3cb1a7d7262f9fa49bc8
246
py
Python
deposito/api/viewsets.py
TooDoo-BlastOff-Desafios/Python-Squad1
e5e9523baf20b770aeb6682abb09522a8402ae27
[ "MIT" ]
null
null
null
deposito/api/viewsets.py
TooDoo-BlastOff-Desafios/Python-Squad1
e5e9523baf20b770aeb6682abb09522a8402ae27
[ "MIT" ]
null
null
null
deposito/api/viewsets.py
TooDoo-BlastOff-Desafios/Python-Squad1
e5e9523baf20b770aeb6682abb09522a8402ae27
[ "MIT" ]
null
null
null
from rest_framework import viewsets from deposito.api import serializers from deposito import models class DepositoViewset(viewsets.ModelViewSet): serializer_class = serializers.DepositoSerializer queryset = models.Deposito.objects.all()
35.142857
53
0.833333
533694e6de300a9c4fe71fca6cd42c1ea2334e52
831
py
Python
Growth_calc.py
Samosborne94/FinanceModel
a8faff18538a080ead42602c2b96c61bd8a13021
[ "Apache-2.0" ]
null
null
null
Growth_calc.py
Samosborne94/FinanceModel
a8faff18538a080ead42602c2b96c61bd8a13021
[ "Apache-2.0" ]
null
null
null
Growth_calc.py
Samosborne94/FinanceModel
a8faff18538a080ead42602c2b96c61bd8a13021
[ "Apache-2.0" ]
1
2021-09-26T03:57:42.000Z
2021-09-26T03:57:42.000Z
#Portfolio Growth Calculator (incorporating asset allocation decisions) #User Inputs: num1 = input('Waiting Time (Years): ') num2 = input('Equity Allocation (Dollars): ') num3 = input('Bond Allocation (Dollars): ') #Transform string inputs into floats and integers for calculation: a = int(float(num1)) b = int(float(n...
29.678571
88
0.695548
ce545c49f8f43be4b066813a2f1e86a586b88553
40,315
py
Python
pygments/lexers/asm.py
eerimoq/pygments
3cd60987c27d2228ac46bfa2648e280aaaf61fc1
[ "BSD-2-Clause" ]
1
2021-12-27T22:40:31.000Z
2021-12-27T22:40:31.000Z
pygments/lexers/asm.py
eerimoq/pygments
3cd60987c27d2228ac46bfa2648e280aaaf61fc1
[ "BSD-2-Clause" ]
null
null
null
pygments/lexers/asm.py
eerimoq/pygments
3cd60987c27d2228ac46bfa2648e280aaaf61fc1
[ "BSD-2-Clause" ]
null
null
null
""" pygments.lexers.asm ~~~~~~~~~~~~~~~~~~~ Lexers for assembly languages. :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import RegexLexer, include, bygroups, using, words, \ DelegatingLexer, defau...
39.064922
94
0.479598
f2ed06d019ed23f69b7810bb3bb85c4c4d21fe4b
3,750
py
Python
labcontrol/gui/handlers/process_handlers/test/test_sequencing_process.py
jdereus/LabControl
9c1867dc8047075f1f3e505a2f4c3479ee6388cc
[ "BSD-3-Clause" ]
3
2018-01-21T05:24:32.000Z
2019-07-12T21:49:02.000Z
labcontrol/gui/handlers/process_handlers/test/test_sequencing_process.py
jdereus/labman
9c1867dc8047075f1f3e505a2f4c3479ee6388cc
[ "BSD-3-Clause" ]
465
2017-05-25T01:33:29.000Z
2019-07-12T21:47:59.000Z
labcontrol/gui/handlers/process_handlers/test/test_sequencing_process.py
biocore/LabControl
9c1867dc8047075f1f3e505a2f4c3479ee6388cc
[ "BSD-3-Clause" ]
16
2017-05-12T21:39:18.000Z
2019-04-03T16:19:21.000Z
# ---------------------------------------------------------------------------- # Copyright (c) 2017-, LabControl development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # -------------------------------------------------...
44.642857
78
0.645867
15992f14f25e2e2945c556dffe9d2a2bc89bacf0
2,158
py
Python
templates/app.py
brix4dayz/TRiCAM2.0
716f154403c8c0aa903d7391bf4c14d45c778a22
[ "MIT" ]
1
2015-08-11T20:50:36.000Z
2015-08-11T20:50:36.000Z
templates/app.py
brix4dayz/TRiCAM2.0
716f154403c8c0aa903d7391bf4c14d45c778a22
[ "MIT" ]
null
null
null
templates/app.py
brix4dayz/TRiCAM2.0
716f154403c8c0aa903d7391bf4c14d45c778a22
[ "MIT" ]
null
null
null
import os from flask import Flask, render_template, request, redirect, url_for, send_from_directory from werkzeug import secure_filename # Initialize the Flask application app = Flask(__name__) # This is the path to the upload directory app.config['UPLOAD_FOLDER'] = 'uploads/' # These are the extension that we are a...
36.576271
89
0.673772
ef7304c1f55547f8e355782f15d2423ae2e2cdf5
4,057
py
Python
docs/conf.py
f4nu/vpype
2328ce3fb0bef60aeaf3556d2c47d0dc882d5daf
[ "MIT" ]
null
null
null
docs/conf.py
f4nu/vpype
2328ce3fb0bef60aeaf3556d2c47d0dc882d5daf
[ "MIT" ]
46
2021-01-26T01:09:10.000Z
2022-03-25T06:22:02.000Z
docs/conf.py
str4w/vpype
c649445b8fec56b4ce9a436a7b8741c5fec1d640
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
31.449612
79
0.653439
4448a6544487d434df7489d374fd3456107f8879
647
py
Python
__primeNumberLessThanGivenNumber.py
simdevex/01.Basics
cf4f372384e66f4b26e4887d2f5d815a1f8e929c
[ "MIT" ]
null
null
null
__primeNumberLessThanGivenNumber.py
simdevex/01.Basics
cf4f372384e66f4b26e4887d2f5d815a1f8e929c
[ "MIT" ]
null
null
null
__primeNumberLessThanGivenNumber.py
simdevex/01.Basics
cf4f372384e66f4b26e4887d2f5d815a1f8e929c
[ "MIT" ]
null
null
null
''' Write a Python program to print the number of prime numbers which are less than or equal to a given integer. Input: n (1 <= n <= 999,999) Input the number(n): 35 Number of prime numbers which are less than or equal to n.: 11 ''' primes = [1] * 500000 primes[0] = 0 for i in range (3, 1000, 2): if primes[i //...
29.409091
103
0.605873
c7b6c2a4ea7917ef12d1d36e6f7e6b0c7542cc6c
21,994
py
Python
django/conf/global_settings.py
Oktosha/django
b10a8bd90bb1087d7abcdda971d51269579aeaad
[ "PSF-2.0", "BSD-3-Clause" ]
5
2019-10-17T21:29:53.000Z
2021-06-23T16:27:02.000Z
django/conf/global_settings.py
Oktosha/django
b10a8bd90bb1087d7abcdda971d51269579aeaad
[ "PSF-2.0", "BSD-3-Clause" ]
2
2020-04-16T15:27:35.000Z
2020-06-28T00:42:50.000Z
django/conf/global_settings.py
Oktosha/django
b10a8bd90bb1087d7abcdda971d51269579aeaad
[ "PSF-2.0", "BSD-3-Clause" ]
11
2019-09-14T20:57:30.000Z
2022-01-19T17:59:26.000Z
""" Default Django settings. Override these with settings in the module pointed to by the DJANGO_SETTINGS_MODULE environment variable. """ # This is defined here as a do-nothing function because we can't import # django.utils.translation -- that module depends on the settings. def gettext_noop(s): return s ####...
34.473354
101
0.701873
8c0e0884748d6b991611ffe94a49130edfc61d72
902
py
Python
May_work/python/tkinter/quitBUtton.py
EricMorse/ECE434-Project
315b81003b49b51d4fc936b4826a4b70cb6b403d
[ "MIT" ]
null
null
null
May_work/python/tkinter/quitBUtton.py
EricMorse/ECE434-Project
315b81003b49b51d4fc936b4826a4b70cb6b403d
[ "MIT" ]
null
null
null
May_work/python/tkinter/quitBUtton.py
EricMorse/ECE434-Project
315b81003b49b51d4fc936b4826a4b70cb6b403d
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ ZetCode Tkinter tutorial This program creates a Quit button. When we press the button, the application terminates. Author: Jan Bodnar Last modified: July 2017 Website: www.zetcode.com """ from tkinter import Tk, BOTH from tkinter.ttk import Frame, Button, Style class...
18.04
46
0.590909
be97feb70d74485b6e5b7a64fe33d09d8372016a
7,667
py
Python
doc/conf.py
bioidiap/bob.pipelines
cbefdaf3b384ee11cb26a279281f007adc2d8f19
[ "BSD-3-Clause" ]
1
2020-10-13T19:58:44.000Z
2020-10-13T19:58:44.000Z
doc/conf.py
bioidiap/bob.pipelines
cbefdaf3b384ee11cb26a279281f007adc2d8f19
[ "BSD-3-Clause" ]
null
null
null
doc/conf.py
bioidiap/bob.pipelines
cbefdaf3b384ee11cb26a279281f007adc2d8f19
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import time import pkg_resources import sphinx_rtd_theme # For inter-documentation mapping: from bob.extension.utils import link_documentation, load_requirements # -- General configuration ----------------------------------------------------- # If your docume...
31.040486
110
0.718925
52cef4c0e1c1086e90a051cf9971738bcaaeb805
321
py
Python
plaso/engine/logger.py
pyllyukko/plaso
7533db2d1035ca71d264d6281ebd5db2d073c587
[ "Apache-2.0" ]
1,253
2015-01-02T13:58:02.000Z
2022-03-31T08:43:39.000Z
plaso/engine/logger.py
pyllyukko/plaso
7533db2d1035ca71d264d6281ebd5db2d073c587
[ "Apache-2.0" ]
3,388
2015-01-02T11:17:58.000Z
2022-03-30T10:21:45.000Z
plaso/engine/logger.py
pyllyukko/plaso
7533db2d1035ca71d264d6281ebd5db2d073c587
[ "Apache-2.0" ]
376
2015-01-20T07:04:54.000Z
2022-03-04T23:53:00.000Z
# -*- coding: utf-8 -*- """The engine sub module logger.""" import logging _logger = logging.getLogger('engine') # Mimic the logging module interface. critical = _logger.critical debug = _logger.debug error = _logger.error exception = _logger.exception info = _logger.info log = _logger.log warning = _logger.warning...
18.882353
37
0.738318
62dc48021c7971c56b9f0f65a4bfbbc815d0315c
28,335
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_images_operations.py
dubiety/azure-sdk-for-python
62ffa839f5d753594cf0fe63668f454a9d87a346
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_images_operations.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/operations/_images_operations.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
41.124819
187
0.654773
88d3a987205b05336482703559d27efc2269b815
6,387
py
Python
sentry_sdk/integrations/tornado.py
Siecje/sentry-python
d8405491c60c5b7c3d2ec3ed97ab4bea104f4e51
[ "BSD-2-Clause" ]
1
2019-04-15T03:36:19.000Z
2019-04-15T03:36:19.000Z
sentry_sdk/integrations/tornado.py
Siecje/sentry-python
d8405491c60c5b7c3d2ec3ed97ab4bea104f4e51
[ "BSD-2-Clause" ]
null
null
null
sentry_sdk/integrations/tornado.py
Siecje/sentry-python
d8405491c60c5b7c3d2ec3ed97ab4bea104f4e51
[ "BSD-2-Clause" ]
null
null
null
import weakref from inspect import iscoroutinefunction from sentry_sdk.hub import Hub, _should_send_default_pii from sentry_sdk.utils import ( HAS_REAL_CONTEXTVARS, event_from_exception, capture_internal_exceptions, transaction_from_function, ) from sentry_sdk.integrations import Integration from sentr...
33.265625
108
0.617817
1b19a171614b14406a92a8b5831462d0ee184820
688
py
Python
OpenCV/Q2.py
fun-math/Autumn-of-Automation
08c04510f3500ac335f5c830ce3fbabb9c3fa05c
[ "MIT" ]
null
null
null
OpenCV/Q2.py
fun-math/Autumn-of-Automation
08c04510f3500ac335f5c830ce3fbabb9c3fa05c
[ "MIT" ]
null
null
null
OpenCV/Q2.py
fun-math/Autumn-of-Automation
08c04510f3500ac335f5c830ce3fbabb9c3fa05c
[ "MIT" ]
null
null
null
import cv2 import numpy as np import random img=cv2.imread("T.jpg",1) rows,cols,ch=img.shape M=np.float32([[1,0,0],[0,1,0]]) for i in range(8): x=random.randrange(40,80) y=random.randrange(40,80) sgnx=random.randrange(-1,2,2) sgny=random.randrange(-1,2,2) theta=random.randrange(0,360) M[0,2]=sgnx*x M[1,2]=sg...
22.933333
49
0.728198
44fbfa2265f71f2f461f19fc0a07bc85c90a4609
1,643
py
Python
heap/k_largest_elements_immutable_max_heap.py
greyshell/ds_algorithm
6d61b56b5c91b8159b0705d1eb09718cc66b14f5
[ "MIT" ]
18
2020-04-09T02:53:55.000Z
2022-02-23T19:12:08.000Z
heap/k_largest_elements_immutable_max_heap.py
greyshell/ds_algorithm
6d61b56b5c91b8159b0705d1eb09718cc66b14f5
[ "MIT" ]
1
2020-06-22T00:35:30.000Z
2020-06-27T18:09:42.000Z
heap/k_largest_elements_immutable_max_heap.py
greyshell/ds_algorithm
6d61b56b5c91b8159b0705d1eb09718cc66b14f5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # author: greyshell # description: find k largest elements from a immutable max heap from snowowl import Heap, HeapType class Node: def __init__(self, value, index): self.value = value self.index = index def __lt__(self, other): return self.value < other.value...
29.339286
93
0.671942
3139657f501d1cb7dfb0c6da88355c321c47f1b8
335
py
Python
koku/api/settings/default_settings.py
rubik-ai/koku
3255d1c217b7b6685cb2e130bf4e025946e76fac
[ "Apache-2.0" ]
157
2018-04-30T16:27:53.000Z
2022-03-31T08:17:21.000Z
koku/api/settings/default_settings.py
rubik-ai/koku
3255d1c217b7b6685cb2e130bf4e025946e76fac
[ "Apache-2.0" ]
3,250
2018-04-26T14:14:25.000Z
2022-03-31T23:49:15.000Z
koku/api/settings/default_settings.py
rubik-ai/koku
3255d1c217b7b6685cb2e130bf4e025946e76fac
[ "Apache-2.0" ]
65
2018-05-10T14:11:50.000Z
2022-03-18T19:22:58.000Z
# # Copyright 2021 Red Hat Inc. # SPDX-License-Identifier: Apache-2.0 # """Set of default settings for the user_settings table jsonfield""" from koku.settings import KOKU_DEFAULT_COST_TYPE from koku.settings import KOKU_DEFAULT_CURRENCY DEFAULT_USER_SETTINGS = {"currency": KOKU_DEFAULT_CURRENCY, "cost_type": KOKU_DEFA...
33.5
96
0.81194
0718f4ea3eefec9642fd08e5fd4d109f052de471
872
py
Python
mockup page/plot.py
pohldavid/weather
880760a6840bfb2bca909e9ae3f06159107dba15
[ "CC0-1.0" ]
null
null
null
mockup page/plot.py
pohldavid/weather
880760a6840bfb2bca909e9ae3f06159107dba15
[ "CC0-1.0" ]
null
null
null
mockup page/plot.py
pohldavid/weather
880760a6840bfb2bca909e9ae3f06159107dba15
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 import matplotlib.pyplot as plt import csv def make_X_Axis_Label(): x_label = [] for h in range(8): x_label.append(str(h)+"AM") return x_label # x = ['Maths', 'Physics', 'Chemistry'] y1=[] y2=[] y3=[] with open('data.html','r') as csvfile: plot = csv.reader(csvfile, del...
17.44
62
0.59289
f0054ebfdbdcc3a45b0744f9a61f3289a685b6ef
181
py
Python
__Training__/Python - HackerRank/2. Basic Data Types/Tuples.py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
__Training__/Python - HackerRank/2. Basic Data Types/Tuples.py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
__Training__/Python - HackerRank/2. Basic Data Types/Tuples.py
JUD210/Study-Note
2add9db3f11d99370f49878f0c19e9caa60d2d02
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/python-tuples/problem num = int(input()) # 2 int_list = tuple(map(int, input().split())) # 1 2 print(hash(int_list)) # 3713081631934410656
18.1
61
0.712707
88c68474d8821a923ee6073ff6b56471033a1a8f
862
py
Python
setup.py
smithblack-0/pygenetic
185e6b6f1a97e748094610cdf6557607024b4c8e
[ "MIT" ]
2
2020-05-30T05:13:37.000Z
2021-03-15T19:54:28.000Z
setup.py
smithblack-0/pygenetic
185e6b6f1a97e748094610cdf6557607024b4c8e
[ "MIT" ]
1
2021-06-19T20:30:25.000Z
2021-06-19T20:30:25.000Z
setup.py
smithblack-0/pygenetic
185e6b6f1a97e748094610cdf6557607024b4c8e
[ "MIT" ]
2
2020-08-02T20:52:50.000Z
2021-02-07T15:52:15.000Z
import setuptools with open("README.md", "r") as f: long_description = f.read() setuptools.setup( name="pygenetic", version="1.0.2", author="Bharatraj S Telkar, Daniel Isaac, Shreyas V Patil", author_email="telkarraj@gmail.com, danielbcbs2@gmail.com, pshreyasv100@gmail.com", description="An Eff...
30.785714
86
0.643852
06223891018246fe555c65b4ecd0acbf933cfc50
130
py
Python
remote-scripts/stop-server.py
stevecui/azure-linux-automation-1
ce5479f8ad229fb176c84b4ab924e78d30090e56
[ "Apache-2.0" ]
59
2015-01-21T17:04:14.000Z
2022-03-05T19:51:15.000Z
remote-scripts/stop-server.py
stevecui/azure-linux-automation-1
ce5479f8ad229fb176c84b4ab924e78d30090e56
[ "Apache-2.0" ]
24
2015-03-04T07:46:45.000Z
2018-10-11T07:32:55.000Z
remote-scripts/stop-server.py
stevecui/azure-linux-automation-1
ce5479f8ad229fb176c84b4ab924e78d30090e56
[ "Apache-2.0" ]
151
2015-01-16T06:51:57.000Z
2021-06-08T19:00:52.000Z
#!/usr/bin/python import subprocess import logging import string import os from azuremodules import * global op StopServer()
9.285714
26
0.776923
9a9223f8b1c7a88fe34c6ed2682b977c467f785b
9,303
py
Python
agent/vm_manager/vm_manager.py
fortinet/ips-bph-framework
145e14cced2181f388ade07d78b4f0e9452143dd
[ "Apache-2.0" ]
21
2019-10-24T04:59:52.000Z
2021-05-11T12:47:17.000Z
agent/vm_manager/vm_manager.py
fortinet/ips-bph-framework
145e14cced2181f388ade07d78b4f0e9452143dd
[ "Apache-2.0" ]
null
null
null
agent/vm_manager/vm_manager.py
fortinet/ips-bph-framework
145e14cced2181f388ade07d78b4f0e9452143dd
[ "Apache-2.0" ]
9
2019-10-26T16:56:08.000Z
2021-03-15T14:10:21.000Z
import socket import sys import re import subprocess import time BPH_NAME = "[BLACKPHENIX]" def show_banner(): banner = \ """ -=[B L A C K P H E N I X]=- by Chris Navarrete @ FortiGuard Labs [VirtualMachine Server Manager] """ print(banner) class VB...
37.361446
138
0.448565
54e04bb61b341ef9d3dad6089e5d30d4cc2e35ea
1,820
py
Python
voorbeelden/hardware/adc/example_arduino.py
ddland/TIS-TN-python
d1f7d864c09f0af907697e5d81d66a24c08814ad
[ "MIT" ]
3
2019-05-19T14:52:43.000Z
2020-09-24T07:54:29.000Z
voorbeelden/hardware/adc/example_arduino.py
ddland/TIS-TN-python
d1f7d864c09f0af907697e5d81d66a24c08814ad
[ "MIT" ]
1
2017-03-31T07:18:02.000Z
2017-05-03T20:21:20.000Z
voorbeelden/hardware/adc/example_arduino.py
ddland/TIS-TN-python
d1f7d864c09f0af907697e5d81d66a24c08814ad
[ "MIT" ]
4
2017-01-31T10:12:49.000Z
2021-11-18T07:47:16.000Z
import serial from TN_code.hardware import get_data from TN_code.hardware import write_data ser = serial.Serial('/dev/ttyACM0', 9600) # arduino """ AnalogReadSerial.ino -> 1 datapunt /* AnalogReadSerial Reads an analog input on pin 0, prints the result to the serial monitor. Attach the center pin of a potent...
24.931507
74
0.713736
b736d096ff0493d96a7dedcc3d8df9a646bf11f3
1,733
py
Python
utils/transforms.py
AndreRoelofs/Random-Erasing
2dd4c1ac82d27423fc16b450c8ea07a55cff7b9d
[ "Apache-2.0" ]
650
2017-09-15T09:01:45.000Z
2022-03-22T08:22:54.000Z
utils/transforms.py
AndreRoelofs/Random-Erasing
2dd4c1ac82d27423fc16b450c8ea07a55cff7b9d
[ "Apache-2.0" ]
18
2017-09-23T15:25:11.000Z
2022-03-09T13:23:00.000Z
utils/transforms.py
AndreRoelofs/Random-Erasing
2dd4c1ac82d27423fc16b450c8ea07a55cff7b9d
[ "Apache-2.0" ]
160
2017-10-19T08:22:53.000Z
2022-03-25T07:00:32.000Z
from __future__ import absolute_import from torchvision.transforms import * import numpy as np import torch class RandomErasing(object): def __init__(self, EPSILON = 0.5, sl = 0.02, sh = 0.4, r1 = 0.3, mean=[0.4914, 0.4822, 0.4465]): self.EPSILON = EPSILON self.mean = mean self.sl = sl ...
36.104167
100
0.491056
a2684607f62942c572a3f726e3f07004430e0d84
9,097
py
Python
EnterpriseAPT29Eval.py
0xF2EDCA5A/EnterpriseAPT29Eval
425a62ca34a9baba8283a97a4124cb79d0e662e3
[ "MIT" ]
null
null
null
EnterpriseAPT29Eval.py
0xF2EDCA5A/EnterpriseAPT29Eval
425a62ca34a9baba8283a97a4124cb79d0e662e3
[ "MIT" ]
null
null
null
EnterpriseAPT29Eval.py
0xF2EDCA5A/EnterpriseAPT29Eval
425a62ca34a9baba8283a97a4124cb79d0e662e3
[ "MIT" ]
null
null
null
from enum import Enum import pandas as pd import json import glob import os class EnterpriseAPT29Eval(): def __init__(self, filename): self._vendor = filename.split('/', 2)[2] self._vendor = self._vendor.split('.', 1)[0] with open(filename, 'r') as infile: data=infile.read() self._obj = json.loads(da...
30.62963
169
0.68682
e3da042c1f03d48514d0799410f5572c12656ce4
32,323
py
Python
numba/tests/test_array_reductions.py
blair1306/numba
3b9647d17d653abac15363da604eeb804dbdd15a
[ "BSD-2-Clause" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
numba/tests/test_array_reductions.py
blair1306/numba
3b9647d17d653abac15363da604eeb804dbdd15a
[ "BSD-2-Clause" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
numba/tests/test_array_reductions.py
blair1306/numba
3b9647d17d653abac15363da604eeb804dbdd15a
[ "BSD-2-Clause" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
from itertools import product, combinations_with_replacement import numpy as np from numba import jit, typeof from numba.core.compiler import compile_isolated from numba.tests.support import TestCase, MemoryLeakMixin, tag import unittest def array_all(arr): return arr.all() def array_all_global(arr): retur...
31.199807
92
0.588497
1b2984c83bccefc7229589b51dabfb4e47b3e6d5
13,720
py
Python
pyro/util.py
ssameerr/pyro
c04fc931631ec9e8694def207b5ca0e432d5e501
[ "MIT" ]
null
null
null
pyro/util.py
ssameerr/pyro
c04fc931631ec9e8694def207b5ca0e432d5e501
[ "MIT" ]
null
null
null
pyro/util.py
ssameerr/pyro
c04fc931631ec9e8694def207b5ca0e432d5e501
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import functools import re import warnings import graphviz import numpy as np import torch from torch.autograd import Variable from torch.nn import Parameter from pyro.poutine.poutine import _PYRO_STACK from pyro.poutine.util import site_is_subsample ...
34.734177
108
0.654373
5eddd41fc903f23c5ff489f5db219a6d12f5ee1f
64
py
Python
google_screener_data_extract/__init__.py
spidezad/google_screener_data_extract
8efe14e73918808182d8745ef38c38f1ac686f6e
[ "BSD-3-Clause" ]
28
2015-09-27T21:11:23.000Z
2021-05-17T06:33:20.000Z
google_screener_data_extract/__init__.py
spidezad/google_screener_data_extract
8efe14e73918808182d8745ef38c38f1ac686f6e
[ "BSD-3-Clause" ]
1
2015-10-18T23:11:03.000Z
2018-03-27T05:58:10.000Z
google_screener_data_extract/__init__.py
spidezad/google_screener_data_extract
8efe14e73918808182d8745ef38c38f1ac686f6e
[ "BSD-3-Clause" ]
24
2016-01-14T09:53:48.000Z
2018-05-17T02:00:56.000Z
from .google_screener_data_extract import GoogleStockDataExtract
64
64
0.9375
fe7c4626a7c0b1bb731c5b6a94b98e65b194c35e
4,755
py
Python
ps2/PeachPy/tor_tmsk_tmrc.py
SeiichiroMine/Tales-of-Rebirth
5cb00825dd19affed4062f1f849906b74bb7fcc0
[ "MIT" ]
2
2021-06-17T14:56:59.000Z
2021-11-04T02:50:34.000Z
ps2/PeachPy/tor_tmsk_tmrc.py
SeiichiroMine/Tales-of-Rebirth
5cb00825dd19affed4062f1f849906b74bb7fcc0
[ "MIT" ]
null
null
null
ps2/PeachPy/tor_tmsk_tmrc.py
SeiichiroMine/Tales-of-Rebirth
5cb00825dd19affed4062f1f849906b74bb7fcc0
[ "MIT" ]
3
2021-06-17T14:57:16.000Z
2021-11-29T19:32:40.000Z
import sys import os import json import struct import re import subprocess import shutil import string tmsk_pointer_begin = 0x410 #tmsk_isize = 0xAC00 tmrc_pointer_begin = 0x450 extension = 'tm2' #tmsk_num = data[0x404:2] #tmrc_num = data[0x406:2] #palette = data[:0x400] ##Header construction info TIM2_header_magic = ...
39.625
218
0.617035
16b7e8181d9a4136104c0a75fc0de84740ca772b
946
py
Python
banners/migrations/0001_initial.py
AlexGolovaschenko/OwenAgriculture
4d393da3736d0a71b1d25b720ed16af38013b682
[ "Apache-2.0" ]
null
null
null
banners/migrations/0001_initial.py
AlexGolovaschenko/OwenAgriculture
4d393da3736d0a71b1d25b720ed16af38013b682
[ "Apache-2.0" ]
7
2021-03-19T03:36:56.000Z
2022-01-13T02:44:37.000Z
banners/migrations/0001_initial.py
AlexGolovaschenko/OwenAgriculture
4d393da3736d0a71b1d25b720ed16af38013b682
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.6 on 2020-06-18 08:12 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Banner', fields=[ ('id', models.AutoField(a...
32.62069
114
0.584567
7552955cfda3953c5be741bc73e47097a19e94bf
12,400
py
Python
test/test_related_events.py
LaudateCorpus1/hyper-h2
7dfab8f8e0e8605c4a2a90706b217d0a0a0c45b7
[ "MIT" ]
2
2020-07-01T20:46:51.000Z
2021-04-28T21:28:48.000Z
test/test_related_events.py
LaudateCorpus1/hyper-h2
7dfab8f8e0e8605c4a2a90706b217d0a0a0c45b7
[ "MIT" ]
null
null
null
test/test_related_events.py
LaudateCorpus1/hyper-h2
7dfab8f8e0e8605c4a2a90706b217d0a0a0c45b7
[ "MIT" ]
3
2021-06-03T10:10:16.000Z
2022-03-17T19:57:00.000Z
# -*- coding: utf-8 -*- """ test_related_events.py ~~~~~~~~~~~~~~~~~~~~~~ Specific tests to validate the "related events" logic used by certain events inside hyper-h2. """ import h2.connection import h2.events class TestRelatedEvents(object): """ Related events correlate all those events that happen on a sin...
33.695652
78
0.647823
ed69fb60ee18639c056e88d7ff043799e6bee82e
26,335
py
Python
AppServer/lib/django-1.4/tests/modeltests/invalid_models/invalid_models/models.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/lib/django-1.4/tests/modeltests/invalid_models/invalid_models/models.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/lib/django-1.4/tests/modeltests/invalid_models/invalid_models/models.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
#encoding=utf-8 """ 26. Invalid models This example exists purely to point out errors in models. """ from django.db import connection, models class FieldErrors(models.Model): charfield = models.CharField() charfield2 = models.CharField(max_length=-1) charfield3 = models.CharField(max_length="bad") d...
73.356546
214
0.793924
ab09bf83d4fa5149f01f0a01c26fdbc04f8e91ff
6,963
py
Python
tests/unit_tests/test_report.py
ljhopkins2/sqlfmt
439811ada91e6a274b2b757c452f5140a05ecc06
[ "Apache-2.0" ]
36
2021-11-02T04:08:22.000Z
2022-03-30T14:47:49.000Z
tests/unit_tests/test_report.py
ljhopkins2/sqlfmt
439811ada91e6a274b2b757c452f5140a05ecc06
[ "Apache-2.0" ]
85
2021-11-01T19:22:59.000Z
2022-03-31T03:33:41.000Z
tests/unit_tests/test_report.py
ljhopkins2/sqlfmt
439811ada91e6a274b2b757c452f5140a05ecc06
[ "Apache-2.0" ]
1
2022-01-30T23:20:52.000Z
2022-01-30T23:20:52.000Z
from pathlib import Path from typing import List import pytest from sqlfmt.api import SqlFormatResult from sqlfmt.mode import Mode from sqlfmt.report import Report @pytest.fixture def no_change_results() -> List[SqlFormatResult]: results = [ SqlFormatResult( source_path=Path("~/path/to/file....
34.132353
78
0.637082
b87020f297335880d8429d3cb7a34e720f16a5e6
3,546
py
Python
neural_spline_flows/nde/transforms/splines/linear.py
VincentStimper/nsf
6bde505639ebcb67bffa227ea0021e3de235e03d
[ "MIT" ]
null
null
null
neural_spline_flows/nde/transforms/splines/linear.py
VincentStimper/nsf
6bde505639ebcb67bffa227ea0021e3de235e03d
[ "MIT" ]
null
null
null
neural_spline_flows/nde/transforms/splines/linear.py
VincentStimper/nsf
6bde505639ebcb67bffa227ea0021e3de235e03d
[ "MIT" ]
null
null
null
import math import torch from torch.nn import functional as F import numpy as np from neural_spline_flows import utils from neural_spline_flows.nde import transforms def unconstrained_linear_spline(inputs, unnormalized_pdf, inverse=False, tail_bound=1....
33.771429
83
0.601241
f48317cdbaefddc652c16b156c48efb6943f9586
28,694
py
Python
src/olympia/lib/crypto/tests/test_packaged.py
akanksha1612/addons-server
b125ad213a513bcbd97805105d862b400fbf9720
[ "BSD-3-Clause" ]
null
null
null
src/olympia/lib/crypto/tests/test_packaged.py
akanksha1612/addons-server
b125ad213a513bcbd97805105d862b400fbf9720
[ "BSD-3-Clause" ]
null
null
null
src/olympia/lib/crypto/tests/test_packaged.py
akanksha1612/addons-server
b125ad213a513bcbd97805105d862b400fbf9720
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import base64 import hashlib import os import shutil import tempfile import zipfile from django.conf import settings from django.core import mail from django.core.files.storage import default_storage as storage from django.test.utils import override_settings import mock import pytest import re...
41.889051
79
0.637903
f36dec897f5598b673a91a63b8334367fd242101
1,633
py
Python
sample-demo/venv/Lib/site-packages/PyQt6/lupdate/translations.py
rupc/bsp-protos
58833e7ab9ff53f3633708fb5f95edfdd152c5ea
[ "Apache-2.0" ]
null
null
null
sample-demo/venv/Lib/site-packages/PyQt6/lupdate/translations.py
rupc/bsp-protos
58833e7ab9ff53f3633708fb5f95edfdd152c5ea
[ "Apache-2.0" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
sample-demo/venv/Lib/site-packages/PyQt6/lupdate/translations.py
rupc/bsp-protos
58833e7ab9ff53f3633708fb5f95edfdd152c5ea
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com> # # This file is part of PyQt6. # # This file may be used under the terms of the GNU General Public License # version 3.0 as published by the Free Software Foundation and appearing in # the file LICENSE included in the packaging of this fi...
31.403846
78
0.685242
67840a505e9240bb969e4c9e53e0341ec6912859
138,027
py
Python
tensorflow/python/keras/engine/training_v1.py
ProctorU/tensorflow
fd05051846fd9ceb090206600afd1a71ba852e20
[ "Apache-2.0" ]
1
2020-02-15T14:00:01.000Z
2020-02-15T14:00:01.000Z
tensorflow/python/keras/engine/training_v1.py
alubanana/tensorflow
454f89ab3baacbac567d6bcceef4c743f23ce58b
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/engine/training_v1.py
alubanana/tensorflow
454f89ab3baacbac567d6bcceef4c743f23ce58b
[ "Apache-2.0" ]
1
2020-02-14T10:12:19.000Z
2020-02-14T10:12:19.000Z
# Copyright 2015 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...
43.241541
111
0.667898
e7a4d1b45612a008c503a518e0d5976b688b53d0
940
py
Python
magic/magic/items.py
TxarlyToad/Magic-Cardmarket-Spider
c2f5c5eeefbea0a30855dc8396d9fdd85af07637
[ "MIT" ]
2
2021-09-11T23:30:57.000Z
2021-09-14T17:45:58.000Z
magic/magic/items.py
TxarlyToad/Magic-Cardmarket-Spider
c2f5c5eeefbea0a30855dc8396d9fdd85af07637
[ "MIT" ]
null
null
null
magic/magic/items.py
TxarlyToad/Magic-Cardmarket-Spider
c2f5c5eeefbea0a30855dc8396d9fdd85af07637
[ "MIT" ]
1
2022-03-09T16:56:28.000Z
2022-03-09T16:56:28.000Z
# Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html from scrapy import Item, Field class MagicCardMarketInformation(Item): url = Field(type=str) name = Field(type=str) set_number = Field(type=str) card_set = Field(type=str) ...
28.484848
53
0.705319
aae80ffd40b36ec673a1221c0a5bf18116bc41b0
22,611
py
Python
lib/termineter/core.py
jayaram24/Termineter-Modified
2cab514ff1640809337c6fe17f24433bcdec2260
[ "MIT" ]
null
null
null
lib/termineter/core.py
jayaram24/Termineter-Modified
2cab514ff1640809337c6fe17f24433bcdec2260
[ "MIT" ]
null
null
null
lib/termineter/core.py
jayaram24/Termineter-Modified
2cab514ff1640809337c6fe17f24433bcdec2260
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # termineter/core.py # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of ...
44.863095
218
0.745699
25624f2c81c8cd43f0926551bcc2493a90f111d0
6,084
py
Python
kws_streaming/models/utils_test.py
ojInc/google-research
9929c88b664800a25b8716c22068dd77d80bd5ee
[ "Apache-2.0" ]
1
2020-10-25T04:07:57.000Z
2020-10-25T04:07:57.000Z
kws_streaming/models/utils_test.py
ojInc/google-research
9929c88b664800a25b8716c22068dd77d80bd5ee
[ "Apache-2.0" ]
null
null
null
kws_streaming/models/utils_test.py
ojInc/google-research
9929c88b664800a25b8716c22068dd77d80bd5ee
[ "Apache-2.0" ]
null
null
null
# 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...
36.214286
79
0.649244
9f08c6feaf839c3954a367eec3687cffcefb80f1
1,526
py
Python
test/functional/disablewallet.py
BitcoinBridgeOffical/Bitcoin-Bridge
d800625c9b4b6fe1ddc0f0615a854e43463b82ad
[ "MIT" ]
1
2018-01-13T18:02:47.000Z
2018-01-13T18:02:47.000Z
test/functional/disablewallet.py
BitcoinBridgeOffical/Bitcoin-Bridge
d800625c9b4b6fe1ddc0f0615a854e43463b82ad
[ "MIT" ]
null
null
null
test/functional/disablewallet.py
BitcoinBridgeOffical/Bitcoin-Bridge
d800625c9b4b6fe1ddc0f0615a854e43463b82ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2016 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 a node with the -disablewallet option. - Test that validateaddress RPC works when running with -d...
43.6
126
0.731324
bce2c57196cb60c3d9b93df390eeb480d205fe0b
779
py
Python
webdriver/clickSpeedTest.py
DarkMaguz/CP-Python
aa1113d6c70c8f2c32fd29cf49bb39c41e819fae
[ "MIT" ]
1
2019-02-23T13:50:46.000Z
2019-02-23T13:50:46.000Z
webdriver/clickSpeedTest.py
DarkMaguz/CP-Python
aa1113d6c70c8f2c32fd29cf49bb39c41e819fae
[ "MIT" ]
null
null
null
webdriver/clickSpeedTest.py
DarkMaguz/CP-Python
aa1113d6c70c8f2c32fd29cf49bb39c41e819fae
[ "MIT" ]
1
2019-03-08T14:40:47.000Z
2019-03-08T14:40:47.000Z
from coockieClickerUtils import * # import os # import time # # from selenium import webdriver # from selenium.webdriver.common.by import By # # os.environ['PATH'] += os.pathsep + 'bin/' # driver = webdriver.Chrome() driver.get("https://clickspeedtest.com/5-seconds.html") driver.find_element(By.ID, 'ez-accept-all')....
22.911765
68
0.709884
33d20c1775dbde862204a516a8313cd41a24ccf9
5,605
py
Python
userbot/modules/chat_info.py
HitaloSama/PaperplaneMinimal
5cf45ca4ae90ad4a52ee6d6dc679053a69fbed32
[ "Naumen", "Condor-1.1", "MS-PL" ]
9
2020-06-11T18:47:48.000Z
2021-11-08T18:05:37.000Z
userbot/modules/chat_info.py
HitaloSama/PaperplaneMinimal
5cf45ca4ae90ad4a52ee6d6dc679053a69fbed32
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2020-08-28T18:37:46.000Z
2020-09-25T15:32:29.000Z
userbot/modules/chat_info.py
HitaloSama/PaperplaneMinimal
5cf45ca4ae90ad4a52ee6d6dc679053a69fbed32
[ "Naumen", "Condor-1.1", "MS-PL" ]
8
2020-06-14T02:08:41.000Z
2020-12-15T13:25:15.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.d (the "License"); # you may not use this file except in compliance with the License. # from typing import Union from kantex.md import (Bold, Link, SubSection, SubSubSection, KeyValue...
36.875
108
0.551115
82c4ac6067a013e715ebe38452a97c9a40478b08
206
py
Python
dirutility.py
rlowrance/re-avm
d4cfa62e9f65d325e8ac98caa61d3fb666b8a6a2
[ "BSD-3-Clause" ]
25
2016-10-07T05:08:15.000Z
2022-03-22T01:36:51.000Z
dirutility.py
rlowrance/re-avm
d4cfa62e9f65d325e8ac98caa61d3fb666b8a6a2
[ "BSD-3-Clause" ]
1
2021-01-14T22:27:23.000Z
2021-01-14T22:27:23.000Z
dirutility.py
rlowrance/re-avm
d4cfa62e9f65d325e8ac98caa61d3fb666b8a6a2
[ "BSD-3-Clause" ]
8
2016-08-12T07:26:29.000Z
2021-07-05T01:22:42.000Z
'''utilities for managing directories''' import os def assure_exists(dir_path): if not os.path.exists(dir_path): os.makedirs(dir_path) # make all intermediate directories return dir_path
22.888889
66
0.728155
2222a7cb37d4cf28316c4987311199244a6cd379
1,358
py
Python
fix_settings.py
prehensilecode/votca_helper
ebbe61aff6df1c5ca36a70ddc390bd150b57c639
[ "Unlicense" ]
null
null
null
fix_settings.py
prehensilecode/votca_helper
ebbe61aff6df1c5ca36a70ddc390bd150b57c639
[ "Unlicense" ]
null
null
null
fix_settings.py
prehensilecode/votca_helper
ebbe61aff6df1c5ca36a70ddc390bd150b57c639
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import sys import os from pathlib import Path import xml.dom.minidom ### README ### * Save this file as fix_settings.py in the same directory as your job script ### * Make it executable: chmod +x fix_settings.py def generate_hostfile(pe_hostfile): '''Convert Univa Grid Engine hostfile to Op...
34.820513
176
0.688513
84df66448edbd29765d091a8fc64fbab77432037
2,900
py
Python
stdplugins/_help.py
andromechanic/BotHub
18853e3a5f2a1ecdc93f9d6173411baf89dd8f00
[ "Apache-2.0" ]
25
2019-10-26T08:01:11.000Z
2022-02-21T08:18:00.000Z
stdplugins/_help.py
andromechanic/BotHub
18853e3a5f2a1ecdc93f9d6173411baf89dd8f00
[ "Apache-2.0" ]
2
2020-05-11T08:42:33.000Z
2020-05-21T02:30:09.000Z
stdplugins/_help.py
andromechanic/BotHub
18853e3a5f2a1ecdc93f9d6173411baf89dd8f00
[ "Apache-2.0" ]
291
2019-11-06T04:25:13.000Z
2021-10-03T15:56:23.000Z
"""COMMAND : .helpme, .dc, .exec ls stdplugins, .stdplugins, .syntax""" import sys from telethon import events, functions, __version__ from uniborg.util import admin_cmd @borg.on(admin_cmd(pattern="helpme ?(.*)", allow_sudo=False)) # pylint:disable=E0602 async def _(event): if event.fwd_from: return ...
39.189189
257
0.64931
d2babe1e89a20554eac46fe4704f4b54f9ec3e14
677
py
Python
api/index.py
add830830/tg-serverless
6955387d8b8aece6c6e08766b11eeac6c5d7f03d
[ "MIT" ]
null
null
null
api/index.py
add830830/tg-serverless
6955387d8b8aece6c6e08766b11eeac6c5d7f03d
[ "MIT" ]
null
null
null
api/index.py
add830830/tg-serverless
6955387d8b8aece6c6e08766b11eeac6c5d7f03d
[ "MIT" ]
null
null
null
from jinja2 import Environment, FileSystemLoader from sanic import Sanic, response env = Environment(loader=FileSystemLoader("api/templates")) app = Sanic(__name__) @app.route("/") async def index(request): title = "tg-serverless" description = "A Telegram bot Python app use Vercel as Serverless Function!" ...
29.434783
91
0.720827
50b430bb45d4ace632e4d04ead7aa7002077f144
17,590
py
Python
qlib/config.py
lpd6375/qlib
3a911bc09ba5136cd7c61c2c8dcca8a63339e738
[ "MIT" ]
null
null
null
qlib/config.py
lpd6375/qlib
3a911bc09ba5136cd7c61c2c8dcca8a63339e738
[ "MIT" ]
null
null
null
qlib/config.py
lpd6375/qlib
3a911bc09ba5136cd7c61c2c8dcca8a63339e738
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. """ About the configs ================= The config will be based on _default_config. Two modes are supported - client - server """ from __future__ import annotations import os import re import copy import logging import platform import multipro...
36.418219
138
0.620523
dcbed37e387d963bef6365f7bf8074e902cdf13c
20,600
py
Python
chemprop/web/app/views.py
anonymous20201002/chemprop
3e36f6a3bb36194366feadb31be94dfc7e98fd91
[ "MIT" ]
1
2022-02-12T06:39:32.000Z
2022-02-12T06:39:32.000Z
chemprop/web/app/views.py
anonymous20201002/chemprop
3e36f6a3bb36194366feadb31be94dfc7e98fd91
[ "MIT" ]
null
null
null
chemprop/web/app/views.py
anonymous20201002/chemprop
3e36f6a3bb36194366feadb31be94dfc7e98fd91
[ "MIT" ]
null
null
null
"""Defines a number of routes/views for the flask app.""" from functools import wraps import io import os import sys import shutil from tempfile import TemporaryDirectory, NamedTemporaryFile import time from typing import Callable, List, Tuple import multiprocessing as mp import zipfile from flask import json, jsonif...
34.915254
131
0.637816
72da179ad533a686b2d00e372789b251044cfc82
26,773
py
Python
src/utils/inference_utils.py
hynekdav/semi-supervised-VOS
6b29baef2e4fd018502fb434e978e8e924fb84b1
[ "MIT" ]
null
null
null
src/utils/inference_utils.py
hynekdav/semi-supervised-VOS
6b29baef2e4fd018502fb434e978e8e924fb84b1
[ "MIT" ]
2
2022-01-13T03:45:31.000Z
2022-03-12T00:57:40.000Z
src/utils/inference_utils.py
hynekdav/semi-supervised-VOS
6b29baef2e4fd018502fb434e978e8e924fb84b1
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- # ! python3 from __future__ import annotations from __future__ import generator_stop import numpy as np import torch import torch.nn.functional as F from tqdm import tqdm from src.config import Config from src.model.predict import prepare_first_frame, predict from src.utils.transforms impo...
44.921141
171
0.563852
bf8626c52f23cfd6c0ccee0c6b673808dea7b45c
10,926
py
Python
sympy/printing/repr.py
ethankward/sympy
44664d9f625a1c68bc492006cfe1012cb0b49ee4
[ "BSD-3-Clause" ]
2
2021-02-16T14:20:37.000Z
2021-02-16T16:37:47.000Z
sympy/printing/repr.py
ethankward/sympy
44664d9f625a1c68bc492006cfe1012cb0b49ee4
[ "BSD-3-Clause" ]
null
null
null
sympy/printing/repr.py
ethankward/sympy
44664d9f625a1c68bc492006cfe1012cb0b49ee4
[ "BSD-3-Clause" ]
1
2020-03-06T15:18:46.000Z
2020-03-06T15:18:46.000Z
""" A Printer for generating executable code. The most important function here is srepr that returns a string so that the relation eval(srepr(expr))=expr holds in an appropriate environment. """ from __future__ import print_function, division from typing import Any, Dict from sympy.core.function import AppliedUndef...
34.037383
99
0.576698
5ec5fc17bca9444bce675ea5f951bd248c8ef42d
542
py
Python
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/small-poetry-31544
960a0945af1b45d421be56a7164ab7f42b69ffdc
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/small-poetry-31544
960a0945af1b45d421be56a7164ab7f42b69ffdc
[ "FTL", "AML", "RSA-MD" ]
5
2021-10-19T08:15:10.000Z
2021-10-19T08:15:13.000Z
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/small-poetry-31544
960a0945af1b45d421be56a7164ab7f42b69ffdc
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.db import migrations def create_site(apps, schema_editor): Site = apps.get_model("sites", "Site") custom_domain = "small-poetry-31544.botics.co" site_params = { "name": "Small Poetry", } if custom_domain: site_params["domain"] = custom_domain Site.objects.update_o...
20.846154
61
0.656827
365cc8757a4d8e529c2e3d79cc61141faf808d77
594
py
Python
schevo/store/tests/test_store_utils.py
Schevo/schevo
d57a41f8b7b514ed48dc0164dcd3412a89e9873b
[ "MIT" ]
1
2020-09-05T00:47:50.000Z
2020-09-05T00:47:50.000Z
schevo/store/tests/test_store_utils.py
Schevo/schevo
d57a41f8b7b514ed48dc0164dcd3412a89e9873b
[ "MIT" ]
null
null
null
schevo/store/tests/test_store_utils.py
Schevo/schevo
d57a41f8b7b514ed48dc0164dcd3412a89e9873b
[ "MIT" ]
null
null
null
""" $URL: svn+ssh://svn/repos/trunk/durus/test/utest_utils.py $ $Id: utest_utils.py 27079 2005-07-25 20:54:05Z dbinger $ """ from schevo.store.utils import format_oid, u64, p64, u32, p32 class Test(object): def test_check_format_oid(self): assert format_oid('A'*8) == '4702111234474983745' ...
27
62
0.579125
e6ed4d1c80720881b56b0151d2de44ff3a486aa4
254,550
py
Python
bigquery/tests/unit/test_client.py
codyoss/google-cloud-python
505d55357fbdffc5d55005c58712932c758737bd
[ "Apache-2.0" ]
null
null
null
bigquery/tests/unit/test_client.py
codyoss/google-cloud-python
505d55357fbdffc5d55005c58712932c758737bd
[ "Apache-2.0" ]
null
null
null
bigquery/tests/unit/test_client.py
codyoss/google-cloud-python
505d55357fbdffc5d55005c58712932c758737bd
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
37.450346
106
0.567826
63b02d551772ab48b977037382797f342280817e
25,310
py
Python
selfdrive/car/honda/interface.py
jzluo/openpilot
99301a5d71a930e6645a4362896cb3a59d15d2b3
[ "MIT" ]
null
null
null
selfdrive/car/honda/interface.py
jzluo/openpilot
99301a5d71a930e6645a4362896cb3a59d15d2b3
[ "MIT" ]
null
null
null
selfdrive/car/honda/interface.py
jzluo/openpilot
99301a5d71a930e6645a4362896cb3a59d15d2b3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import numpy as np from cereal import car from common.numpy_fast import clip, interp from common.realtime import DT_CTRL from selfdrive.swaglog import cloudlog from selfdrive.config import Conversions as CV from selfdrive.controls.lib.events import ET from selfdrive.car.honda.values import Cruise...
43.940972
144
0.654326
860589ec69c6aef2f6ac55e687ee0ca53be43059
178,837
py
Python
pytorch/test/quantization/test_quantized_op.py
zhou3968322/dl-code-read
aca204a986dabe2755becff0f42de1082299d791
[ "MIT" ]
null
null
null
pytorch/test/quantization/test_quantized_op.py
zhou3968322/dl-code-read
aca204a986dabe2755becff0f42de1082299d791
[ "MIT" ]
null
null
null
pytorch/test/quantization/test_quantized_op.py
zhou3968322/dl-code-read
aca204a986dabe2755becff0f42de1082299d791
[ "MIT" ]
null
null
null
from __future__ import division from builtins import round import itertools import numpy as np import sys import unittest import torch from torch import _VF import torch.jit import torch.nn.functional as F from torch.nn.modules.utils import _single, _pair from hypothesis import settings, HealthCheck from hypothesis ...
46.754771
124
0.555422
933bb5cf4efa7bb1148bec519683973ebc68c2f0
19,544
py
Python
examples/frameworks/pytorch/pytorch_matplotlib.py
noklam/trains
70536544ed5e2b9aac8576ef2eaaef31c99ca670
[ "Apache-2.0" ]
8
2019-04-24T18:55:50.000Z
2022-03-04T13:38:42.000Z
examples/frameworks/pytorch/pytorch_matplotlib.py
aliceUnhinged613/trains
8ec6bba4d91104a2bdd2e537bec21078529540e0
[ "Apache-2.0" ]
2
2020-07-05T08:28:40.000Z
2020-08-11T13:32:49.000Z
examples/frameworks/pytorch/pytorch_matplotlib.py
aliceUnhinged613/trains
8ec6bba4d91104a2bdd2e537bec21078529540e0
[ "Apache-2.0" ]
6
2021-03-06T03:18:14.000Z
2021-12-14T02:40:12.000Z
# TRAINS - Example of Pytorch and matplotlib integration and reporting # """ Neural Transfer Using PyTorch ============================= **Author**: `Alexis Jacq <https://alexis-jacq.github.io>`_ **Edited by**: `Winston Herring <https://github.com/winston6>`_ Introduction ------------ This tutorial explains how to imp...
40.463768
186
0.647667
0511512cf9c1f20d93b313eeb13302178d0be3fe
947
py
Python
myclasses/ClassHomework5.py
gurmeetkhehra/python-practice
abeb5586f8c1e673fd8ff312a4ae0941f2a0194b
[ "Apache-2.0" ]
null
null
null
myclasses/ClassHomework5.py
gurmeetkhehra/python-practice
abeb5586f8c1e673fd8ff312a4ae0941f2a0194b
[ "Apache-2.0" ]
null
null
null
myclasses/ClassHomework5.py
gurmeetkhehra/python-practice
abeb5586f8c1e673fd8ff312a4ae0941f2a0194b
[ "Apache-2.0" ]
null
null
null
# 5. Write a Python class Car and all attributes private. Write method to return all individual attributes class Car(): def __init__(self, brand, model, year, color): self.brand = brand self.model = model self.year = year self.color = color def get_car_details(self): p...
27.852941
106
0.654699
8953f544bfd4760e29f4de01a9f1ac2eba5e0594
3,195
py
Python
gui/qt/qrwindow.py
stratisproject/electrum
c60fa543418c31ce7f5dcf5aa717d82a5c47e216
[ "MIT" ]
26
2017-06-09T04:13:13.000Z
2021-11-15T11:35:30.000Z
gui/qt/qrwindow.py
stratisproject/electrum
c60fa543418c31ce7f5dcf5aa717d82a5c47e216
[ "MIT" ]
29
2017-05-07T05:08:06.000Z
2021-02-19T13:15:03.000Z
gui/qt/qrwindow.py
stratisproject/electrum
c60fa543418c31ce7f5dcf5aa717d82a5c47e216
[ "MIT" ]
21
2017-05-31T14:24:20.000Z
2021-01-30T17:35:43.000Z
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2014 Thomas Voegtlin # # 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...
33.989362
141
0.694836
f4eda96fc27599aff40f0ee7dfbcf3f031ad9ef8
1,994
py
Python
benchmarks/experimental/benchmark_dataset.py
gautham-kollu/fairscale
9dc1b92ff0897f150f8d0259966ef477ef891883
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
benchmarks/experimental/benchmark_dataset.py
gautham-kollu/fairscale
9dc1b92ff0897f150f8d0259966ef477ef891883
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
benchmarks/experimental/benchmark_dataset.py
gautham-kollu/fairscale
9dc1b92ff0897f150f8d0259966ef477ef891883
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # # This source code is licensed under the BSD license found in the # LICENSE file in the root directory of this source tree. import torch from torch.utils.data import Dataset # TODO(sidgoyal): Refactor benchmarks to remove this file eventually. ...
29.761194
78
0.629388
77736aa1fe9c94bea589eb6e7574d81227dec2e6
1,153
py
Python
recipe_scrapers/thevintagemixer.py
riki900/recipes
7895802f6cf80d14db8465e2f3d3874cec922b5d
[ "MIT" ]
null
null
null
recipe_scrapers/thevintagemixer.py
riki900/recipes
7895802f6cf80d14db8465e2f3d3874cec922b5d
[ "MIT" ]
null
null
null
recipe_scrapers/thevintagemixer.py
riki900/recipes
7895802f6cf80d14db8465e2f3d3874cec922b5d
[ "MIT" ]
null
null
null
from ._abstract import AbstractScraper from ._utils import get_minutes, normalize_string class TheVintageMixer(AbstractScraper): @classmethod def host(self): return 'thevintagemixer.com' def title(self): return self.soup.find( 'div', {'class': 'wprm-recipe-name'} ...
25.065217
63
0.575889
0eee58f996a06392582f59bf111614aa5707cc46
19,146
py
Python
tests/tensorflow/test_nn.py
xnuohz/dgl
115ac0b9a3dbd806cc52f2a428048b79502f2350
[ "Apache-2.0" ]
1
2020-06-04T07:57:12.000Z
2020-06-04T07:57:12.000Z
tests/tensorflow/test_nn.py
hetong007/dgl
1bfc3118e4a542821c1415e376c026fe1dfd0b59
[ "Apache-2.0" ]
null
null
null
tests/tensorflow/test_nn.py
hetong007/dgl
1bfc3118e4a542821c1415e376c026fe1dfd0b59
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from tensorflow.keras import layers import networkx as nx import pytest import dgl import dgl.nn.tensorflow as nn import dgl.function as fn import backend as F from test_utils.graph_cases import get_cases, random_graph, random_bipartite, random_dglgraph from test_utils import parametrize_dtype f...
34.684783
110
0.595007
84c5414277bc1734a47f55cab27ea5504f745f74
310
py
Python
src/rfidam/setup.py
larioandr/thesis-models
ecbc8c01aaeaa69034d6fe1d8577ab655968ea5f
[ "MIT" ]
1
2021-01-17T15:49:03.000Z
2021-01-17T15:49:03.000Z
src/rfidam/setup.py
larioandr/thesis-models
ecbc8c01aaeaa69034d6fe1d8577ab655968ea5f
[ "MIT" ]
null
null
null
src/rfidam/setup.py
larioandr/thesis-models
ecbc8c01aaeaa69034d6fe1d8577ab655968ea5f
[ "MIT" ]
1
2021-03-07T15:31:06.000Z
2021-03-07T15:31:06.000Z
from setuptools import setup setup( name='rfidam', version='1.0', py_modules=['rfidam'], install_requires=[ 'Click', 'numpy>=1.19.2', ], tests_requires=[ 'pytest', ], entry_points=''' [console_scripts] rfidam=rfidam.main:main ''' )
15.5
31
0.522581
765af8f31a422794d675590ce89e84015b8c7c07
10,487
py
Python
nova/cmd/baremetal_deploy_helper.py
melwitt/nova
6c8706b70c3bb386e01742116306a0a7942956be
[ "Apache-2.0" ]
null
null
null
nova/cmd/baremetal_deploy_helper.py
melwitt/nova
6c8706b70c3bb386e01742116306a0a7942956be
[ "Apache-2.0" ]
null
null
null
nova/cmd/baremetal_deploy_helper.py
melwitt/nova
6c8706b70c3bb386e01742116306a0a7942956be
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2012 NTT DOCOMO, 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.apach...
32.568323
79
0.575093
36d98648a0c36bd93bf3b48ca406dee51349fcc6
824
py
Python
authentication/auth.py
morfat/djangorest_start
093b6ea878ec51bfc10b99f0801f989d09bc3f88
[ "MIT" ]
1
2017-01-27T13:24:57.000Z
2017-01-27T13:24:57.000Z
authentication/auth.py
morfat/djangorest_start
093b6ea878ec51bfc10b99f0801f989d09bc3f88
[ "MIT" ]
null
null
null
authentication/auth.py
morfat/djangorest_start
093b6ea878ec51bfc10b99f0801f989d09bc3f88
[ "MIT" ]
null
null
null
from users.models import User class CustomBackend(object): """authenticate when given email,phone number or secret key and password """ def get_by_email(self,email,password): try: user = User.objects.get(email=email) if password: if user.check_password(pas...
23.542857
80
0.525485