hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
794a73620f5d067b364940326f363e8479ab68b5
6,697
py
Python
src/stratis_cli/_actions/_formatting.py
lleshchi/stratis-cli
6e847d918d075dfd9548c66dd37a9b96b71e8f7d
[ "Apache-2.0" ]
null
null
null
src/stratis_cli/_actions/_formatting.py
lleshchi/stratis-cli
6e847d918d075dfd9548c66dd37a9b96b71e8f7d
[ "Apache-2.0" ]
null
null
null
src/stratis_cli/_actions/_formatting.py
lleshchi/stratis-cli
6e847d918d075dfd9548c66dd37a9b96b71e8f7d
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
39.863095
89
0.712259
794a752312a17bd3f67c43b7bf61de444163206c
2,234
py
Python
azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/azure_reachability_report_parameters_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2022-03-30T22:39:15.000Z
2022-03-30T22:39:15.000Z
azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/azure_reachability_report_parameters_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/azure_reachability_report_parameters_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.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 ...
40.618182
123
0.645927
794a7776eed9a561853be3aa1ac2058be78d9548
3,263
py
Python
tests/test_passportelementerrorfrontside.py
ehsanbarkhordar/botcup
4e45c3df2dceb8afe3833c0e89813fa9493295ed
[ "MIT" ]
1
2019-10-22T03:46:17.000Z
2019-10-22T03:46:17.000Z
python-telegram-bot/tests/test_passportelementerrorfrontside.py
shyguy-ry/paddingCheckBot
d0a60cc2f397b9b8e4d60bdea699a94beaff2ea1
[ "Apache-2.0" ]
null
null
null
python-telegram-bot/tests/test_passportelementerrorfrontside.py
shyguy-ry/paddingCheckBot
d0a60cc2f397b9b8e4d60bdea699a94beaff2ea1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2018 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as published by #...
40.7875
92
0.708857
794a77a793fbaa20f2ce0c65a5b80adfe30c9548
2,005
py
Python
QiskitTestProject/methods.py
chicknmilk/Quantum-Phase-Estimation
91c83a13155d7e5fee869a5a874d4edf713fc7a5
[ "MIT" ]
2
2021-07-27T21:06:23.000Z
2021-07-27T21:28:59.000Z
QiskitTestProject/methods.py
chicknmilk/Quantum-Phase-Estimation
91c83a13155d7e5fee869a5a874d4edf713fc7a5
[ "MIT" ]
null
null
null
QiskitTestProject/methods.py
chicknmilk/Quantum-Phase-Estimation
91c83a13155d7e5fee869a5a874d4edf713fc7a5
[ "MIT" ]
null
null
null
from qiskit import QuantumCircuit, ClassicalRegister, QuantumRegister from qiskit.circuit.library import QFT from qiskit import execute from qiskit import Aer from qiskit.test.mock import FakeMontreal from qiskit import IBMQ import math def QPE(oracle, circuit, register, ancilla): # initialize registers circu...
27.465753
97
0.654364
794a77e58de3b05d706997ba75f9dbe0f3491c2d
3,835
py
Python
fsdk/analysis/emotion/compare.py
luigivieira/fsdk
3d3b04bcde5f72c95044caa637114368f9818979
[ "MIT" ]
null
null
null
fsdk/analysis/emotion/compare.py
luigivieira/fsdk
3d3b04bcde5f72c95044caa637114368f9818979
[ "MIT" ]
null
null
null
fsdk/analysis/emotion/compare.py
luigivieira/fsdk
3d3b04bcde5f72c95044caa637114368f9818979
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # This file is part of the Fun SDK (fsdk) project. The complete source code is # available at https://github.com/luigivieira/fsdk. # # Copyright (c) 2016-2017, Luiz Carlos Vieira (http://www.luiz.vieira.nom.br) # # MIT License # # Permission is hereby granted, free of charge, to any person obtai...
32.777778
80
0.597653
794a78a5dd34a5bdf88e1a47e0b099962cd27858
333
py
Python
pythonclub/club/urls.py
janainfanger/itc240-webapp-1
0e9f9b0e12d82bf49ed1996ef2ed4ea21d3adc23
[ "Apache-2.0" ]
null
null
null
pythonclub/club/urls.py
janainfanger/itc240-webapp-1
0e9f9b0e12d82bf49ed1996ef2ed4ea21d3adc23
[ "Apache-2.0" ]
null
null
null
pythonclub/club/urls.py
janainfanger/itc240-webapp-1
0e9f9b0e12d82bf49ed1996ef2ed4ea21d3adc23
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index' ), path('resources/', views.resources, name='resources'), path('getmeetings/', views.getmeetings, name='getmeetings'), path('meetingdetail/<int:id>', views.meetingdetail, name='details') #the int id part includes the id...
37
111
0.72973
794a78d84f5f5179166166f4db3e60df1cbd9273
412
py
Python
buzzbnb/base/models/category.py
AmidBidee/buzzbnb
632b44096229a9e346f57e918bc8d6f2d777e143
[ "CC0-1.0" ]
null
null
null
buzzbnb/base/models/category.py
AmidBidee/buzzbnb
632b44096229a9e346f57e918bc8d6f2d777e143
[ "CC0-1.0" ]
null
null
null
buzzbnb/base/models/category.py
AmidBidee/buzzbnb
632b44096229a9e346f57e918bc8d6f2d777e143
[ "CC0-1.0" ]
null
null
null
from django.db import models from django.urls import reverse import datetime class Categorie(models.Model): name = models.CharField(max_length=50) slug = models.SlugField(unique=True, primary_key=True) class Meta: ordering = ['name'] def __str__(self): return self.name def ge...
25.75
70
0.686893
794a7abce96ceb98a7dc0701ce36b6a5c26898b4
7,271
py
Python
tests/functional/clients/scripts/standalone.py
Vijay-P/anchore-engine
660a0bf10c56d16f894919209c51ec7a12081e9b
[ "Apache-2.0" ]
null
null
null
tests/functional/clients/scripts/standalone.py
Vijay-P/anchore-engine
660a0bf10c56d16f894919209c51ec7a12081e9b
[ "Apache-2.0" ]
null
null
null
tests/functional/clients/scripts/standalone.py
Vijay-P/anchore-engine
660a0bf10c56d16f894919209c51ec7a12081e9b
[ "Apache-2.0" ]
null
null
null
""" This script is a wrapper to allow the code in anchore_engine.clients.localanchore_standalone work without the need for a running anchore-engine service(s). More specifically, it sets everything up needed for the `analyze_image()` function, and it does so *for testing purposes*. By default, it uses the `centos:cent...
31.07265
89
0.669647
794a7cd4b1a000c184bc367ecec280b25f118abe
19,183
py
Python
bin/ft_transformer.py
allbits/rtdl
65cf8edc360343d77723b83b07d76fb9f94c2168
[ "Apache-2.0" ]
null
null
null
bin/ft_transformer.py
allbits/rtdl
65cf8edc360343d77723b83b07d76fb9f94c2168
[ "Apache-2.0" ]
null
null
null
bin/ft_transformer.py
allbits/rtdl
65cf8edc360343d77723b83b07d76fb9f94c2168
[ "Apache-2.0" ]
null
null
null
# %% import math import typing as ty from pathlib import Path import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.nn.init as nn_init import zero from torch import Tensor import lib # %% class Tokenizer(nn.Module): category_offsets: ty.Optional[Tensor] def __in...
35.856075
161
0.557577
794a7cddb068ad32b73c32ac3a102ff39a0b8268
2,014
py
Python
configs/FDDB/kl/cfgs_res50_fddb_kl_v5.py
chisyliu/RotationDetection
6f2bd55a51a6de0bcd0959a85977682511fd440d
[ "Apache-2.0" ]
2
2022-03-05T09:55:49.000Z
2022-03-05T10:12:51.000Z
configs/FDDB/kl/cfgs_res50_fddb_kl_v5.py
ZhangRan24/RotationDetection
85791a4ec944bb0b14b8721193477eb0f582e981
[ "Apache-2.0" ]
null
null
null
configs/FDDB/kl/cfgs_res50_fddb_kl_v5.py
ZhangRan24/RotationDetection
85791a4ec944bb0b14b8721193477eb0f582e981
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import import numpy as np from alpharotate.utils.pretrain_zoo import PretrainModelZoo from configs._base_.models.retinanet_r50_fpn import * from configs._base_.datasets.dota_detection import * from configs._base_.schedules.schedule_1x i...
27.972222
101
0.750248
794a7d5f7d8127455f9a24184e3e051180a0f513
523
py
Python
tests/test_user.py
Kevson102/Pitches
a1c41b83edf687135edf35dc068696ea6b7bf824
[ "MIT" ]
null
null
null
tests/test_user.py
Kevson102/Pitches
a1c41b83edf687135edf35dc068696ea6b7bf824
[ "MIT" ]
null
null
null
tests/test_user.py
Kevson102/Pitches
a1c41b83edf687135edf35dc068696ea6b7bf824
[ "MIT" ]
null
null
null
import unittest from app.models import User class UserModelTest(unittest.TestCase): def setUp(self): self.new_user = User(password = 'phoenix') def test_password_setter(self): self.assertTrue(self.new_user.pass_secure is not None) def test_no_access_password(self): with self.assertRaises(A...
26.15
61
0.730402
794a7e01412b8bba33c761c355fc928e28c8c8b0
13,185
py
Python
aiida_quantumespresso/parsers/cp.py
lbotsch/aiida-quantumespresso
fe75c80cecb61113641366961ced8ed5a03cf896
[ "MIT" ]
null
null
null
aiida_quantumespresso/parsers/cp.py
lbotsch/aiida-quantumespresso
fe75c80cecb61113641366961ced8ed5a03cf896
[ "MIT" ]
null
null
null
aiida_quantumespresso/parsers/cp.py
lbotsch/aiida-quantumespresso
fe75c80cecb61113641366961ced8ed5a03cf896
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from distutils.version import LooseVersion import numpy from aiida.common import NotExistent from aiida.orm import Dict, TrajectoryData from qe_tools.constants import bohr_to_ang, hartree_to_ev, timeau_to_sec from aiida_quantumespresso.parsers.parse_raw.cp import parse_cp_raw_output, parse_cp_...
48.653137
116
0.607509
794a7e2c0152e327e393c8bec790bc48a5eb8e76
49,899
py
Python
tensorflow/python/eager/benchmarks_test.py
drezap/tensorflow
df6853ac5b6dbeefa814e67041fc4744c1528629
[ "Apache-2.0" ]
2
2020-02-20T15:42:41.000Z
2020-03-06T09:38:56.000Z
tensorflow/python/eager/benchmarks_test.py
drezap/tensorflow
df6853ac5b6dbeefa814e67041fc4744c1528629
[ "Apache-2.0" ]
2
2021-08-25T16:09:48.000Z
2022-02-10T02:18:35.000Z
tensorflow/python/eager/benchmarks_test.py
Chiranjeevi731/Machine-Learning
0ec3c78e0a34f224ee041b54a24717f77d3246fa
[ "Apache-2.0" ]
1
2021-08-29T09:37:58.000Z
2021-08-29T09:37:58.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.798673
80
0.716147
794a7e96a00e7f9dadbeae58340c3b963fe3aa9d
667
py
Python
api/tacticalrmm/agents/management/commands/show_outdated_agents.py
MikroT/tacticalrmm
f0b7e515b6d71c6d86454947e567f5908ae636ce
[ "MIT" ]
null
null
null
api/tacticalrmm/agents/management/commands/show_outdated_agents.py
MikroT/tacticalrmm
f0b7e515b6d71c6d86454947e567f5908ae636ce
[ "MIT" ]
null
null
null
api/tacticalrmm/agents/management/commands/show_outdated_agents.py
MikroT/tacticalrmm
f0b7e515b6d71c6d86454947e567f5908ae636ce
[ "MIT" ]
null
null
null
from django.conf import settings from django.core.management.base import BaseCommand from agents.models import Agent from tacticalrmm.constants import AGENT_STATUS_ONLINE, ONLINE_AGENTS class Command(BaseCommand): help = "Shows online agents that are not on the latest version" def handle(self, *args, **kwar...
35.105263
80
0.685157
794a7efe123a0044e11433f6e0e7a3164b27bc8e
966
py
Python
qiskit/qasm/node/reset.py
lerongil/qiskit-terra
a25af2a2378bc3d4f5ec73b948d048d1b707454c
[ "Apache-2.0" ]
22
2019-08-15T04:39:15.000Z
2022-03-06T05:17:04.000Z
qiskit/qasm/node/reset.py
lerongil/qiskit-terra
a25af2a2378bc3d4f5ec73b948d048d1b707454c
[ "Apache-2.0" ]
4
2019-05-13T15:28:46.000Z
2019-12-19T20:47:02.000Z
qiskit/qasm/node/reset.py
lerongil/qiskit-terra
a25af2a2378bc3d4f5ec73b948d048d1b707454c
[ "Apache-2.0" ]
9
2019-09-05T05:33:00.000Z
2021-10-09T16:04:53.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
29.272727
77
0.681159
794a7f09cfc93e4df37cd204ea0953d64e12ec53
89
py
Python
openapi_client_generator/info.py
ppentchev/openapi-client-generator
a058af4ec28a1e53809273a662fb8cba0157695e
[ "MIT" ]
6
2021-01-16T21:36:43.000Z
2022-01-24T10:21:14.000Z
openapi_client_generator/info.py
ppentchev/openapi-client-generator
a058af4ec28a1e53809273a662fb8cba0157695e
[ "MIT" ]
11
2021-01-17T00:05:44.000Z
2022-01-23T16:13:56.000Z
openapi_client_generator/info.py
ppentchev/openapi-client-generator
a058af4ec28a1e53809273a662fb8cba0157695e
[ "MIT" ]
2
2021-11-06T00:07:34.000Z
2022-01-14T01:35:06.000Z
DISTRIBUTION_NAME = 'openapi-client-generator' PACKAGE_NAME = 'openapi_client_generator'
29.666667
46
0.842697
794a7f737a701c04fb59b66e98428fc389ee3973
754
py
Python
train.py
KopfKrieg/ReinLife
560e1495319e2b68d74285a60007cde6c1a27a18
[ "MIT" ]
44
2020-05-05T14:50:38.000Z
2022-03-26T21:01:17.000Z
train.py
KopfKrieg/ReinLife
560e1495319e2b68d74285a60007cde6c1a27a18
[ "MIT" ]
1
2022-01-08T21:38:44.000Z
2022-01-08T21:38:44.000Z
train.py
KopfKrieg/ReinLife
560e1495319e2b68d74285a60007cde6c1a27a18
[ "MIT" ]
8
2020-05-06T05:51:43.000Z
2021-08-10T02:02:17.000Z
from ReinLife.Models import D3QN, DQN, PERD3QN, PERDQN, PPO from ReinLife.Helpers import trainer n_episodes = 15_000 brains = [DQN(train_freq=20, max_epi=n_episodes), D3QN(train_freq=20), PERDQN(train_freq=20), PERD3QN(train_freq=20), PPO(train_freq=20)] trainer(brains, n_episo...
41.888889
108
0.724138
794a810e8919e29d8b9ca461e9543c553ca51cb2
9,099
py
Python
library/ntc_install_os.py
itdependsnetworks/ntc-ansible
f691ef9275333f14c63bf38faacd516d6556e5cf
[ "Apache-2.0" ]
null
null
null
library/ntc_install_os.py
itdependsnetworks/ntc-ansible
f691ef9275333f14c63bf38faacd516d6556e5cf
[ "Apache-2.0" ]
null
null
null
library/ntc_install_os.py
itdependsnetworks/ntc-ansible
f691ef9275333f14c63bf38faacd516d6556e5cf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2015 Jason Edelman <jason@networktocode.com> # Network to Code, 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/LI...
35.822835
135
0.639631
794a81a90e210c9c1ce81fe2f5fd45daef8545a6
261
py
Python
src/saturnv_api/setup.py
epkaz93/saturnv
b8a2c61bb0e833f2e31698050113038bab3ca5a4
[ "MIT" ]
1
2022-03-12T07:38:09.000Z
2022-03-12T07:38:09.000Z
src/saturnv_api/setup.py
epkaz93/saturnv
b8a2c61bb0e833f2e31698050113038bab3ca5a4
[ "MIT" ]
null
null
null
src/saturnv_api/setup.py
epkaz93/saturnv
b8a2c61bb0e833f2e31698050113038bab3ca5a4
[ "MIT" ]
null
null
null
from setuptools import setup, find_namespace_packages setup( name='saturnv_api', packages=find_namespace_packages(include=['saturnv.api']), requires=[ 'six', 'SQLAlchemy', 'psycopg2', 'psutil', 'rez' ] )
18.642857
62
0.590038
794a8209a635006733a8b49cf7578ff255a66983
1,545
py
Python
project/core/db/base.py
p141592/simple_fastapi
f0ee4340b7904586cba62bc6a38e4ad9bfa6c37b
[ "MIT" ]
2
2020-04-21T02:20:46.000Z
2020-08-20T21:26:06.000Z
project/core/db/base.py
p141592/simple_fastapi
f0ee4340b7904586cba62bc6a38e4ad9bfa6c37b
[ "MIT" ]
1
2021-12-01T06:41:57.000Z
2021-12-01T06:41:57.000Z
project/core/db/base.py
p141592/simple_fastapi
f0ee4340b7904586cba62bc6a38e4ad9bfa6c37b
[ "MIT" ]
null
null
null
import sqlalchemy as s from pydantic_sqlalchemy import sqlalchemy_to_pydantic from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declared_attr from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker from sqlalchemy.util.compat import contextmanager from ...
24.52381
83
0.721683
794a821168f32d004fb5f1f1e366e4b4044653e6
337
py
Python
ecosystems/cedar_settings.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
null
null
null
ecosystems/cedar_settings.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
11
2020-03-24T15:29:46.000Z
2022-03-11T23:14:48.000Z
ecosystems/cedar_settings.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
null
null
null
from cedar_settings.default_settings import default_settings default_settings['ecosystems_project_code_prefix'] = ('text', '#ECO-PRJ-') # see DEV PRJ settings for an example of how to use this. default_settings['ecosystems_project_misc_textareas'] = ('text', ""...
42.125
75
0.646884
794a83286f2ff607191648298d8f857fac82a749
8,202
py
Python
grader.py
petef4/payg
3a83e093abb985a71cbfd6ab94fd258471550df7
[ "MIT" ]
1
2021-09-02T22:03:52.000Z
2021-09-02T22:03:52.000Z
grader.py
petef4/payg
3a83e093abb985a71cbfd6ab94fd258471550df7
[ "MIT" ]
2
2021-03-24T17:33:47.000Z
2021-03-24T17:33:48.000Z
grader.py
petef4/payg
3a83e093abb985a71cbfd6ab94fd258471550df7
[ "MIT" ]
null
null
null
import re class Grader: def __init__(self, grading): self.grading = grading def grade(self, data): """Amend data with scores, keys (for sorting columns) and grades. Scores are determined for most columns. Sort keys start with the column score but then may draw on other column...
34.317992
86
0.528164
794a83a35335a231168ec73248bb23a4abb622c3
740
py
Python
onadata/apps/eventlog/migrations/0015_auto_20170906_1211.py
awemulya/fieldsight-kobocat
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
38
2017-02-28T05:39:40.000Z
2019-01-16T04:39:04.000Z
onadata/apps/eventlog/migrations/0015_auto_20170906_1211.py
awemulya/fieldsightt
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
20
2017-04-27T09:14:27.000Z
2019-01-17T06:35:52.000Z
onadata/apps/eventlog/migrations/0015_auto_20170906_1211.py
awemulya/fieldsightt
f302d084e30fb637d43ec638c701e01a3dddc721
[ "BSD-2-Clause" ]
5
2017-02-22T12:25:19.000Z
2019-01-15T11:16:40.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ('eventlog', '0014_auto_20170901_1159'), ] operations = [ migration...
28.461538
120
0.632432
794a83d6df80a000a6904ffc29448c3ca3e19ee9
25,998
py
Python
dql/cli.py
stevearc/dql
6ed2cfcd16d5b077c1613a0ff219bcedfcaf5539
[ "MIT" ]
136
2016-09-30T15:08:08.000Z
2022-01-04T07:44:54.000Z
dql/cli.py
stevearc/dql
6ed2cfcd16d5b077c1613a0ff219bcedfcaf5539
[ "MIT" ]
38
2016-10-01T05:33:04.000Z
2021-12-23T23:20:27.000Z
dql/cli.py
stevearc/dql
6ed2cfcd16d5b077c1613a0ff219bcedfcaf5539
[ "MIT" ]
11
2016-09-16T16:29:05.000Z
2020-08-27T23:41:03.000Z
""" Interative DQL client """ import cmd import functools import json import os import random import shlex import subprocess from builtins import input from collections import OrderedDict from contextlib import contextmanager from fnmatch import fnmatch from typing import Any, Callable, ContextManager, Dict, Optional, ...
30.986889
88
0.552504
794a84f6a8114eb656a7faa0dfc13cf173af736b
387
py
Python
test1/test1/wsgi.py
StanislavDanilov/interview
4b113c6415cc8f18c6d0b18d40949032a8ccd8eb
[ "MIT" ]
null
null
null
test1/test1/wsgi.py
StanislavDanilov/interview
4b113c6415cc8f18c6d0b18d40949032a8ccd8eb
[ "MIT" ]
null
null
null
test1/test1/wsgi.py
StanislavDanilov/interview
4b113c6415cc8f18c6d0b18d40949032a8ccd8eb
[ "MIT" ]
null
null
null
""" WSGI config for test1 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTING...
22.764706
78
0.782946
794a8587323e82ba32c12c9024ec7ffbd0fb1c47
2,705
py
Python
Assignment1-Deauth/main.py
pushqin/cyber_wifi_defence
190ef231f387efe01201dd350c0a2094a70d1dd2
[ "Apache-2.0" ]
null
null
null
Assignment1-Deauth/main.py
pushqin/cyber_wifi_defence
190ef231f387efe01201dd350c0a2094a70d1dd2
[ "Apache-2.0" ]
null
null
null
Assignment1-Deauth/main.py
pushqin/cyber_wifi_defence
190ef231f387efe01201dd350c0a2094a70d1dd2
[ "Apache-2.0" ]
null
null
null
import os import inquirer import deauth_client from find_ap_connected_stations import FindAccessPointConnectedStations from scan_acess_points import ScanAccessPoints def select_ap_bssid(values): """ allows the user to select an access point from a list Parameters ---------- values : Dictionary ...
33.8125
142
0.726063
794a85aa1d62626726a7ef3a11bd5ec22c240186
5,288
py
Python
test/cpython/test_cmd_line.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
test/cpython/test_cmd_line.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/cpython/test_cmd_line.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
# expected: fail # Tests invocation of the interpreter with various command line arguments # All tests are executed with environment variables ignored # See test_cmd_line_script.py for testing of script execution import test.test_support import sys import unittest from test.script_helper import ( assert_python_ok,...
36.468966
77
0.625946
794a85fe28c64c05a8d8e9a58dec10a8c9f6bf69
93,004
py
Python
toontown/toon/DistributedToon.py
CrankySupertoon01/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
toontown/toon/DistributedToon.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
toontown/toon/DistributedToon.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
import copy from direct.controls.GravityWalker import GravityWalker from direct.directnotify import DirectNotifyGlobal from direct.distributed import DistributedObject from direct.distributed import DistributedSmoothNode from direct.distributed.ClockDelta import * from direct.distributed.MsgTypes import * from direct.f...
37.39606
682
0.637059
794a86ad1b19068fe88b6ace9cb058dee06b1383
1,548
py
Python
Course I/Алгоритмы Python/Part1/семинары/pract5/task2.py
GeorgiyDemo/FA
641a29d088904302f5f2164c9b3e1f1c813849ec
[ "WTFPL" ]
27
2019-08-18T20:54:27.000Z
2022-02-22T02:39:45.000Z
Course I/Алгоритмы Python/Part1/семинары/pract5/task2.py
GeorgiyDemo/FA
641a29d088904302f5f2164c9b3e1f1c813849ec
[ "WTFPL" ]
217
2019-09-22T14:43:25.000Z
2022-03-30T13:49:18.000Z
Course I/Алгоритмы Python/Part1/семинары/pract5/task2.py
GeorgiyDemo/FA
641a29d088904302f5f2164c9b3e1f1c813849ec
[ "WTFPL" ]
42
2019-09-18T11:36:28.000Z
2022-03-19T18:43:00.000Z
""" Реализовать создание, запись, чтение и удаление файла с данными о пользователе. пользователь выбирает действие самостоятельно, а так же указывает путь к размещению файла. """ import os class FileProcessing: def __init__(self): select_d = { "1": self.file_add, "2": self.file...
26.689655
108
0.552326
794a874f39d0e04a0a1e09083feb6bcc7e5b79aa
1,075
py
Python
hackerearth/Algorithms/Benny and Segments/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerearth/Algorithms/Benny and Segments/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
hackerearth/Algorithms/Benny and Segments/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
""" # Sample code to perform I/O: name = input() # Reading input from STDIN print('Hi, %s.' % name) # Writing output to STDOUT # Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail """ # Write your code here t = int(input()) for _ in range(t): n, ...
28.289474
94
0.484651
794a87eac30404525fcf9dfdaf9b2d888681dcb2
2,574
py
Python
demos/test_GP_active.py
tsilifis/quinoa
cc01e942e0453ad4ec21da6223731745ec543371
[ "MIT" ]
1
2020-01-31T02:42:20.000Z
2020-01-31T02:42:20.000Z
demos/test_GP_active.py
tsilifis/quinoa
cc01e942e0453ad4ec21da6223731745ec543371
[ "MIT" ]
null
null
null
demos/test_GP_active.py
tsilifis/quinoa
cc01e942e0453ad4ec21da6223731745ec543371
[ "MIT" ]
null
null
null
import numpy as np import quinoa as qu import matplotlib.pyplot as plt import GPy as gpy from scipy import linalg #np.random.seed(31051985) X = np.random.normal(scale = 1, size = (2,1)) #X = np.array([0, 1.]).reshape((2,1)) Y = np.sin(X)# + 0.1 * np.random.normal(size = (3,1)) kern = qu.RBF(1, 1, 4) ker = gpy.kern....
26
125
0.637141
794a881c2b9fa070a844e9d52d866808566e8671
5,056
py
Python
src/pythonfinder/models/windows.py
awkimball/pythonfinder
d7af08e07cbb1d79f078d8c0b6aab80d320e7b74
[ "MIT" ]
34
2018-06-10T19:09:42.000Z
2022-02-25T21:34:08.000Z
src/pythonfinder/models/windows.py
awkimball/pythonfinder
d7af08e07cbb1d79f078d8c0b6aab80d320e7b74
[ "MIT" ]
92
2018-07-08T00:03:47.000Z
2022-02-21T14:25:50.000Z
src/pythonfinder/models/windows.py
awkimball/pythonfinder
d7af08e07cbb1d79f078d8c0b6aab80d320e7b74
[ "MIT" ]
17
2018-10-12T08:35:20.000Z
2022-03-09T16:51:10.000Z
# -*- coding=utf-8 -*- from __future__ import absolute_import, print_function import operator from collections import defaultdict import attr from ..environment import MYPY_RUNNING from ..exceptions import InvalidPythonVersion from ..utils import ensure_path from .mixins import BaseFinder from .path import PathEntry...
33.932886
88
0.58307
794a886cbcac419c244d5345f4c774d6c473dc7c
3,838
py
Python
converter.py
coloz/IC2BA
ee5d55b36db31184d6465328f3a4a6a47199d36e
[ "Apache-2.0" ]
3
2021-01-13T07:58:46.000Z
2022-01-04T09:30:53.000Z
converter.py
coloz/IC2BA
ee5d55b36db31184d6465328f3a4a6a47199d36e
[ "Apache-2.0" ]
null
null
null
converter.py
coloz/IC2BA
ee5d55b36db31184d6465328f3a4a6a47199d36e
[ "Apache-2.0" ]
1
2021-01-13T07:58:48.000Z
2021-01-13T07:58:48.000Z
''' 2017.2.5 chenlvzhou ''' from PIL import Image import argparse def load_image(filename, target_width, target_height): """ Loads an image, resized it to the target dimensions and returns it's data. """ image = Image.open(filename, 'r') image = image.resize((target_width, target_height), Image.N...
25.25
102
0.600573
794a8974433bd0a52593c15f034d0639762c450e
106,699
py
Python
py-tnt/pytnt/shipmentresponseout.py
QwadwoNyamekye/purplship-carriers
ce34e3054de246e3d85ddf6928b607193d061ae2
[ "MIT" ]
null
null
null
py-tnt/pytnt/shipmentresponseout.py
QwadwoNyamekye/purplship-carriers
ce34e3054de246e3d85ddf6928b607193d061ae2
[ "MIT" ]
null
null
null
py-tnt/pytnt/shipmentresponseout.py
QwadwoNyamekye/purplship-carriers
ce34e3054de246e3d85ddf6928b607193d061ae2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated Thu Jun 14 23:10:43 2018 by generateDS.py version 2.29.14. # Python 3.6.5 (default, May 19 2018, 11:27:13) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] # # Command line options: # ('--no-namespace-defs', '') # ('-o', '../pytnt/shipmentrespo...
42.140205
181
0.60323
794a8ac2a5cee035e62b2aed61618d02c7234770
76
py
Python
app/utils/class_schedule/__init__.py
Hansybx/guohe3
53990b92f5d45bac1c2b903fd8df9cb97283697e
[ "Apache-2.0" ]
1
2019-08-18T13:16:14.000Z
2019-08-18T13:16:14.000Z
app/utils/class_schedule/__init__.py
Hansybx/guohe3
53990b92f5d45bac1c2b903fd8df9cb97283697e
[ "Apache-2.0" ]
1
2019-08-19T02:05:32.000Z
2022-02-11T07:27:37.000Z
app/utils/class_schedule/__init__.py
Hansybx/guohe3
53990b92f5d45bac1c2b903fd8df9cb97283697e
[ "Apache-2.0" ]
1
2019-08-18T09:08:25.000Z
2019-08-18T09:08:25.000Z
""" -*- coding: utf-8 -*- Time : 2019/7/12 16:53 Author : Hansybx """
10.857143
25
0.5
794a8b44cbcdd5dc7503074a262f105d2a9d3a9a
5,819
py
Python
homeassistant/components/homematicip_cloud/climate.py
petewill/home-assistant
5859dba4344f05fb8774aa1207e47ac28f627a67
[ "Apache-2.0" ]
3
2020-01-21T18:09:09.000Z
2022-01-17T08:06:03.000Z
homeassistant/components/homematicip_cloud/climate.py
petewill/home-assistant
5859dba4344f05fb8774aa1207e47ac28f627a67
[ "Apache-2.0" ]
39
2016-12-16T12:40:34.000Z
2017-02-13T17:53:42.000Z
homeassistant/components/homematicip_cloud/climate.py
petewill/home-assistant
5859dba4344f05fb8774aa1207e47ac28f627a67
[ "Apache-2.0" ]
3
2020-03-03T18:14:10.000Z
2020-10-04T06:52:45.000Z
"""Support for HomematicIP Cloud climate devices.""" import logging from typing import Awaitable from homematicip.aio.device import AsyncHeatingThermostat, AsyncHeatingThermostatCompact from homematicip.aio.group import AsyncHeatingGroup from homematicip.aio.home import AsyncHome from homematicip.base.enums import Abs...
32.327778
88
0.684654
794a8b641b76e3cc346c807731d2762d70461db8
1,531
gyp
Python
ppapi/ppapi_tests_mojo.gyp
hefen1/chromium
52f0b6830e000ca7c5e9aa19488af85be792cc88
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
ppapi/ppapi_tests_mojo.gyp
hefen1/chromium
52f0b6830e000ca7c5e9aa19488af85be792cc88
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
ppapi/ppapi_tests_mojo.gyp
hefen1/chromium
52f0b6830e000ca7c5e9aa19488af85be792cc88
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2020-04-04T13:34:56.000Z
2020-11-04T07:17:52.000Z
# 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. { 'includes': [ 'ppapi_nacl_test_common.gypi', ], 'targets': [ { 'target_name': 'ppapi_tests_mojo', 'type': 'none', 'variable...
29.442308
72
0.574135
794a8b83317ab8cd07a15d9640ca3d2290bf286e
357
py
Python
examples/example_dates_range_str.py
jeff00seattle/pyfortified-datetime
51e52bd815cb2e82b9f6e781868316676ff2a05d
[ "MIT" ]
null
null
null
examples/example_dates_range_str.py
jeff00seattle/pyfortified-datetime
51e52bd815cb2e82b9f6e781868316676ff2a05d
[ "MIT" ]
null
null
null
examples/example_dates_range_str.py
jeff00seattle/pyfortified-datetime
51e52bd815cb2e82b9f6e781868316676ff2a05d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # from pprintpp import pprint import datetime as dt import pyfortified_datetime start_dt = dt.date(2015, 12, 20) end_dt = dt.date(2016, 1, 11) print(type(pyfortified_datetime.dates_range(start_dt, end_dt))) for dt in pyfortified_datetime.dates_range(start_dt, end_dt): ...
21
63
0.728291
794a8c1883de370cc025a07ccf68020f3ca4c7a1
19,750
py
Python
dataclasses_avroschema/fields.py
slawak/dataclasses-avroschema
04e69a176b3e72bfa0acd3edbd044ecd161b1a68
[ "MIT" ]
null
null
null
dataclasses_avroschema/fields.py
slawak/dataclasses-avroschema
04e69a176b3e72bfa0acd3edbd044ecd161b1a68
[ "MIT" ]
null
null
null
dataclasses_avroschema/fields.py
slawak/dataclasses-avroschema
04e69a176b3e72bfa0acd3edbd044ecd161b1a68
[ "MIT" ]
null
null
null
import abc import collections import dataclasses import datetime import json import typing import uuid from collections import OrderedDict import inflect from dataclasses_avroschema import schema_generator, types, utils p = inflect.engine() BOOLEAN = "boolean" NULL = "null" INT = "int" FLOAT = "float" LONG = "long"...
28.74818
99
0.63757
794a8ceb3ffab46a07f10ab701e066980aeaa1d4
17,175
py
Python
srunner/scenarios/open_scenario.py
auto-bwcx-me/scenario_runner
acf26639f97ec2ef0df121106f248285ec754eb9
[ "MIT" ]
null
null
null
srunner/scenarios/open_scenario.py
auto-bwcx-me/scenario_runner
acf26639f97ec2ef0df121106f248285ec754eb9
[ "MIT" ]
null
null
null
srunner/scenarios/open_scenario.py
auto-bwcx-me/scenario_runner
acf26639f97ec2ef0df121106f248285ec754eb9
[ "MIT" ]
1
2020-12-22T09:38:13.000Z
2020-12-22T09:38:13.000Z
#!/usr/bin/env python # Copyright (c) 2019-2020 Intel Corporation # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. """ Basic scenario class using the OpenSCENARIO definition """ import py_trees from srunner.scenariomanager.scenarioatomics.atomic_...
43.925831
120
0.612402
794a8d0fc3822d6fef339cfadb3b3b6c1a15d1b8
12,015
py
Python
autokeras/nn/model_trainer.py
wpsliu123/AUTOKERAS
172fb3cf705126e4c3d86b41292463e30ecf3c15
[ "MIT" ]
null
null
null
autokeras/nn/model_trainer.py
wpsliu123/AUTOKERAS
172fb3cf705126e4c3d86b41292463e30ecf3c15
[ "MIT" ]
null
null
null
autokeras/nn/model_trainer.py
wpsliu123/AUTOKERAS
172fb3cf705126e4c3d86b41292463e30ecf3c15
[ "MIT" ]
null
null
null
import os import abc import sys from copy import deepcopy from functools import reduce import numpy as np import torch from torchvision import utils as vutils from tqdm.autonotebook import tqdm from autokeras.constant import Constant from autokeras.utils import get_device class ModelTrainerBase(abc.ABC): def __i...
38.883495
115
0.57603
794a8d7983042049c8f1997afc63b91a188f8dba
2,790
py
Python
airflow/npmjs_dags1/npmjs_static_22.py
Yanivmd/maloss
af85ac202668da88d0b4a885386a1e56703e37c8
[ "MIT" ]
1
2022-01-29T16:13:06.000Z
2022-01-29T16:13:06.000Z
airflow/npmjs_dags1/npmjs_static_22.py
Yanivmd/maloss
af85ac202668da88d0b4a885386a1e56703e37c8
[ "MIT" ]
null
null
null
airflow/npmjs_dags1/npmjs_static_22.py
Yanivmd/maloss
af85ac202668da88d0b4a885386a1e56703e37c8
[ "MIT" ]
1
2022-01-29T16:13:07.000Z
2022-01-29T16:13:07.000Z
import re import pickle import logging import networkx from airflow import DAG from airflow.operators.bash_operator import BashOperator from datetime import datetime, timedelta default_args = { 'owner': 'airflow', 'depends_on_past': False, 'start_date': datetime(2019, 1, 1), 'email': ['airflow@exampl...
34.875
175
0.699283
794a8dd17a6ce4ecc2a0998beff72261f7572ba1
8,500
py
Python
typ.py
tomkren/TFGPy
24c46dac95fd4bc28a9e3cd1d988a6050266c069
[ "MIT" ]
3
2017-04-28T11:04:49.000Z
2021-08-23T18:20:29.000Z
typ.py
tomkren/TFGPy
24c46dac95fd4bc28a9e3cd1d988a6050266c069
[ "MIT" ]
7
2017-06-13T15:58:36.000Z
2017-07-03T10:07:04.000Z
typ.py
tomkren/TFGPy
24c46dac95fd4bc28a9e3cd1d988a6050266c069
[ "MIT" ]
null
null
null
from collections import OrderedDict from collections import namedtuple from functools import reduce import sub as sub_m import utils from utils import make_enum_table FreshResult = namedtuple('FreshResult', ['typ', 'n']) class Typ: def apply_mini_sub(self, key, typ): raise NotImplementedError def _...
25.993884
140
0.613412
794a8f101e031a66942802d854ebdd49c3c43a41
1,525
py
Python
scrapy/tutorial/tutorial/spiders/quotes.py
amirongit/notecode
3ce453531eaf4674d9a15e59510fa8dea77704fd
[ "Unlicense" ]
null
null
null
scrapy/tutorial/tutorial/spiders/quotes.py
amirongit/notecode
3ce453531eaf4674d9a15e59510fa8dea77704fd
[ "Unlicense" ]
null
null
null
scrapy/tutorial/tutorial/spiders/quotes.py
amirongit/notecode
3ce453531eaf4674d9a15e59510fa8dea77704fd
[ "Unlicense" ]
null
null
null
import scrapy # scrapy uses spiders to scrape information from a websites # they must define the initial requests to make class QuotesSpider(scrapy.Spider): # identifies the spider and must be unique within a project name = 'quotes' # start_requests method should return an iterable of Request objects whi...
38.125
78
0.672131
794a8f5744a3e7c9fe35b61b5a4b90df09367658
2,784
py
Python
netbox_agent/vendors/supermicro.py
z0nker/netbox-agent
c306b1226e37e32015440a9974fc0d444145cbd2
[ "Apache-2.0" ]
null
null
null
netbox_agent/vendors/supermicro.py
z0nker/netbox-agent
c306b1226e37e32015440a9974fc0d444145cbd2
[ "Apache-2.0" ]
null
null
null
netbox_agent/vendors/supermicro.py
z0nker/netbox-agent
c306b1226e37e32015440a9974fc0d444145cbd2
[ "Apache-2.0" ]
null
null
null
from netbox_agent.location import Slot from netbox_agent.server import ServerBase class SupermicroHost(ServerBase): """ Supermicro DMI can be messed up. They depend on the vendor to set the correct values. The endusers cannot change them without buying a license from Supermicro. There are 3...
29.935484
72
0.61602
794a8f7c8895dbd3d1b2399f9d26fab4726a7ed4
7,996
py
Python
Chapter 06/tic_tac_toe/tic_tac_toe_moves.py
makwakwa/Tensor_flow
47c240d7fb9842f36ef2a51514dfce62bb973b6a
[ "MIT" ]
null
null
null
Chapter 06/tic_tac_toe/tic_tac_toe_moves.py
makwakwa/Tensor_flow
47c240d7fb9842f36ef2a51514dfce62bb973b6a
[ "MIT" ]
null
null
null
Chapter 06/tic_tac_toe/tic_tac_toe_moves.py
makwakwa/Tensor_flow
47c240d7fb9842f36ef2a51514dfce62bb973b6a
[ "MIT" ]
1
2020-01-27T17:54:09.000Z
2020-01-27T17:54:09.000Z
# Learning Optimal Tic-Tac-Toe Moves via a Neural Network #--------------------------------------- # # We will build a one-hidden layer neural network # to predict tic-tac-toe optimal moves. This will # be accomplished by loading a small list of board # positions with the optimal play response in a csv # then we a...
34.465517
108
0.639195
794a90202181ebcd32aefc5337eac52153b277e0
10,012
py
Python
conftest.py
nghia-tran/f5-common-python
acb23a6e5830a119b460c19a578654113419f5c3
[ "Apache-2.0" ]
272
2016-02-23T06:05:44.000Z
2022-02-20T02:09:32.000Z
conftest.py
nghia-tran/f5-common-python
acb23a6e5830a119b460c19a578654113419f5c3
[ "Apache-2.0" ]
1,103
2016-02-11T17:48:03.000Z
2022-02-15T17:13:37.000Z
conftest.py
nghia-tran/f5-common-python
acb23a6e5830a119b460c19a578654113419f5c3
[ "Apache-2.0" ]
167
2016-02-11T17:48:21.000Z
2022-01-17T20:13:05.000Z
# Copyright 2015-2016 F5 Networks Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
36.407273
100
0.675989
794a902e941e4c6c1d96d781a512d2f94af8d91f
7,919
py
Python
homeassistant/components/smartthings/light.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
3
2021-11-22T22:37:43.000Z
2022-03-17T00:55:28.000Z
homeassistant/components/smartthings/light.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
25
2021-11-24T06:24:10.000Z
2022-03-31T06:23:06.000Z
homeassistant/components/smartthings/light.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
3
2022-01-02T18:49:54.000Z
2022-01-25T02:03:54.000Z
"""Support for lights through the SmartThings cloud API.""" from __future__ import annotations import asyncio from collections.abc import Sequence from pysmartthings import Capability from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_COLOR_TEMP, ATTR_HS_COLOR, ATTR_TRANSITION, SU...
36.325688
87
0.667382
794a91bff956a6b30f890f72112824acceb80294
17,860
py
Python
test/functional/feature_bip68_sequence.py
CoinBitCore/temp
a2ebefc861aa979b441286a203d574197459b0d6
[ "MIT" ]
null
null
null
test/functional/feature_bip68_sequence.py
CoinBitCore/temp
a2ebefc861aa979b441286a203d574197459b0d6
[ "MIT" ]
null
null
null
test/functional/feature_bip68_sequence.py
CoinBitCore/temp
a2ebefc861aa979b441286a203d574197459b0d6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Coinbit Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test BIP68 implementation.""" from test_framework.test_framework import CoinbitTestFramework from test...
45.10101
140
0.633203
794a9253531c046b1d9703ca3b95ad7db35f3681
164
py
Python
4_MATRIX/i.py
clauvm/project_map_reduce
a7b4847cad195965fe939698b747bd495f8ea30b
[ "MIT" ]
null
null
null
4_MATRIX/i.py
clauvm/project_map_reduce
a7b4847cad195965fe939698b747bd495f8ea30b
[ "MIT" ]
null
null
null
4_MATRIX/i.py
clauvm/project_map_reduce
a7b4847cad195965fe939698b747bd495f8ea30b
[ "MIT" ]
null
null
null
import numpy as np A = np.random.rand(1000,50) B = np.random.rand(50,2000) np.savetxt('A.txt',A) np.savetxt('B.txt',B) C = np.dot(A,B) np.savetxt('C.txt',C)
10.933333
27
0.628049
794a93283571e2d79e3ee4dcad10dfbd510cbc2a
1,276
py
Python
benchmarks/benchmarks/small_ramses.py
fzmolina/yt
59fbfc2f7e5eea7bf2517fa4bd53113372f01a7c
[ "BSD-3-Clause-Clear" ]
1
2021-11-29T21:59:06.000Z
2021-11-29T21:59:06.000Z
benchmarks/benchmarks/small_ramses.py
bkhamesra/yt-EinsteinToolkit
576bf88b5cd706fd577c513c23b1db07ec5f4cd2
[ "BSD-3-Clause-Clear" ]
1
2016-04-05T22:30:14.000Z
2016-04-05T22:30:14.000Z
benchmarks/benchmarks/small_ramses.py
bkhamesra/yt-EinsteinToolkit
576bf88b5cd706fd577c513c23b1db07ec5f4cd2
[ "BSD-3-Clause-Clear" ]
1
2020-12-05T05:51:09.000Z
2020-12-05T05:51:09.000Z
import numpy as np import yt class SmallRAMSESSuite: dsname = "output_00080/info_00080.txt" def setup(self): self.ds = yt.load(self.dsname) def time_all_particles(self): dd = self.ds.all_data() dd["all", "particle_velocity_x"] dd["all", "particle_velocity_y"] dd["al...
29.674419
76
0.634013
794a9362073ce7ba7ad0d79a22848e39234f52ca
757
py
Python
python/projeto06/comentarios/models.py
WilliamDeveloper/udemy_cursos
f592bafbe3d2a5d631458f8c42151c880aadef17
[ "MIT" ]
null
null
null
python/projeto06/comentarios/models.py
WilliamDeveloper/udemy_cursos
f592bafbe3d2a5d631458f8c42151c880aadef17
[ "MIT" ]
null
null
null
python/projeto06/comentarios/models.py
WilliamDeveloper/udemy_cursos
f592bafbe3d2a5d631458f8c42151c880aadef17
[ "MIT" ]
null
null
null
from django.db import models from posts.models import Post from django.contrib.auth.models import User from django.utils import timezone # Create your models here. class Comentario(models.Model): nome_comentario = models.CharField(max_length=150, verbose_name='Nome') email_comentario = models.EmailField(verbo...
42.055556
100
0.784676
794a9401375db1c1203aad0a2f707bc2092f4953
4,283
py
Python
samples/nx-config-nd.py
jonnyrocks/nxtoolkit
f03872793a31613c3b7498a8d65cfac3080aeee0
[ "Apache-2.0" ]
44
2015-09-01T19:26:21.000Z
2022-03-24T18:06:44.000Z
samples/nx-config-nd.py
jonnyrocks/nxtoolkit
f03872793a31613c3b7498a8d65cfac3080aeee0
[ "Apache-2.0" ]
10
2015-09-18T13:40:41.000Z
2018-08-13T19:39:24.000Z
samples/nx-config-nd.py
jonnyrocks/nxtoolkit
f03872793a31613c3b7498a8d65cfac3080aeee0
[ "Apache-2.0" ]
37
2015-09-01T19:28:22.000Z
2020-07-08T19:57:40.000Z
#!/usr/bin/env python ################################################################################ # # # Copyright (c) 2015 Cisco Systems # # All Rights Reserved. ...
41.582524
80
0.487742
794a942639f14f9a72001793afbef61090fcf3a0
3,938
py
Python
electrum_dash/scripts/bruteforce_pw.py
PanderMusubi/electrum-dash
02cd655c57adba276bc17084bd4d1a105fb10bfe
[ "MIT" ]
51
2018-01-09T01:44:49.000Z
2022-02-22T13:28:43.000Z
electrum_dash/scripts/bruteforce_pw.py
PanderMusubi/electrum-dash
02cd655c57adba276bc17084bd4d1a105fb10bfe
[ "MIT" ]
152
2017-07-11T16:24:56.000Z
2022-03-21T13:29:39.000Z
electrum_dash/scripts/bruteforce_pw.py
PanderMusubi/electrum-dash
02cd655c57adba276bc17084bd4d1a105fb10bfe
[ "MIT" ]
67
2018-01-11T23:54:50.000Z
2022-03-29T21:59:23.000Z
#!/usr/bin/env python3 # # This script is just a demonstration how one could go about bruteforcing an # Electrum wallet file password. As it is pure-python and runs in the CPU, # it is horribly slow. It could be changed to utilise multiple threads # but any serious attempt would need at least GPU acceleration. # # Ther...
40.597938
101
0.686897
794a9554850163441270b62bfe591a2c43987fd4
671
py
Python
1 File Python Problems/FizzBuzz/FizzBuzz.py
TheRealDougie1/SmallCodeProjects
0b04a6b96b8700dad808a54b78e435274627f173
[ "MIT" ]
null
null
null
1 File Python Problems/FizzBuzz/FizzBuzz.py
TheRealDougie1/SmallCodeProjects
0b04a6b96b8700dad808a54b78e435274627f173
[ "MIT" ]
4
2020-12-07T18:13:06.000Z
2020-12-08T18:41:25.000Z
1 File Python Problems/FizzBuzz/FizzBuzz.py
TheRealDougie1/SmallCodeProjects
0b04a6b96b8700dad808a54b78e435274627f173
[ "MIT" ]
null
null
null
""" Basic Problem Summary: For 100 numbers: If the number is divisible by 3, print Fizz. If the number is divisible by 5, print Buzz If the number is divisible by both 3 and 5, print FizzBuzz Otherwise, just print the number :) Example Output: 1,2,Fizz,4,Buzz,Fizz,7,8,Fizz,Buzz """ def FizzBuz...
25.807692
62
0.558867
794a95ace00732377d5566144faf41ebb7a303a0
19,976
py
Python
configs/common/Options.py
AMHM/gem5-PhD
c1af9c50dcb3569f2d9bba9364de560260832d09
[ "BSD-3-Clause" ]
1
2020-09-08T13:35:28.000Z
2020-09-08T13:35:28.000Z
configs/common/Options.py
AMHM/gem5-PhD
c1af9c50dcb3569f2d9bba9364de560260832d09
[ "BSD-3-Clause" ]
null
null
null
configs/common/Options.py
AMHM/gem5-PhD
c1af9c50dcb3569f2d9bba9364de560260832d09
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2013 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functionality ...
53.55496
131
0.621846
794a960100de33c9c7bb87c0c9b32b283a91d6a4
5,753
py
Python
utils/helpers.py
dgriffiths3/mononet3d
4505234025efaee727d4bb4bb3f013fee8dc65b4
[ "MIT" ]
9
2020-08-24T17:48:33.000Z
2021-01-29T17:26:51.000Z
utils/helpers.py
dgriffiths3/mononet3d
4505234025efaee727d4bb4bb3f013fee8dc65b4
[ "MIT" ]
1
2021-01-15T10:51:06.000Z
2021-01-21T10:39:15.000Z
utils/helpers.py
dgriffiths3/mononet3d
4505234025efaee727d4bb4bb3f013fee8dc65b4
[ "MIT" ]
1
2021-02-18T14:06:16.000Z
2021-02-18T14:06:16.000Z
import os import numpy as np import progressbar import pyvista as pv import toml import tensorflow as tf import colorsys class EvalProgBar(): def __init__(self): self.widgets = [progressbar.FormatLabel('')] self.bar = progressbar.ProgressBar(widgets=self.widgets) self.bar.start(max_value=progressbar.Unknown...
20.620072
101
0.58665
794a96be12ba6650ac283118aefe6a48f04659f5
12,121
py
Python
sdks/python/apache_beam/runners/direct/direct_runner.py
acidburn0zzz/beam
92540d0ecd98125e4f6fe13917dca46a77af52f0
[ "Apache-2.0" ]
3
2018-12-04T14:44:37.000Z
2021-07-07T09:23:54.000Z
sdks/python/apache_beam/runners/direct/direct_runner.py
acidburn0zzz/beam
92540d0ecd98125e4f6fe13917dca46a77af52f0
[ "Apache-2.0" ]
13
2019-11-13T03:56:36.000Z
2021-12-14T21:12:07.000Z
sdks/python/apache_beam/runners/direct/direct_runner.py
permutive/beam
13d7c5c54daacd4536b533c072f72e80e5e86c78
[ "Apache-2.0" ]
1
2019-02-07T19:20:22.000Z
2019-02-07T19:20:22.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...
37.760125
80
0.742678
794a97b7185b91f8d5a500a2cad6bebfbdd81a38
1,477
py
Python
tests/conftest.py
epics-containers/ibek
0c021e0b3221051a2dea263e8d907bcace243084
[ "Apache-2.0" ]
5
2021-09-08T11:03:29.000Z
2022-02-28T22:59:17.000Z
tests/conftest.py
epics-containers/ibek
0c021e0b3221051a2dea263e8d907bcace243084
[ "Apache-2.0" ]
7
2021-09-08T18:21:42.000Z
2022-03-30T12:07:40.000Z
tests/conftest.py
epics-containers/ibek
0c021e0b3221051a2dea263e8d907bcace243084
[ "Apache-2.0" ]
null
null
null
from pathlib import Path from pytest import fixture from ruamel.yaml import YAML from ibek.ioc import clear_entity_classes, make_entity_classes from ibek.support import Support def get_support(samples: Path, yaml_file: str) -> Support: """ Get a support object from the sample YAML directory """ # lo...
24.616667
68
0.735274
794a9a39f9b4ab873a7413b54047aec8e0b8021d
1,927
py
Python
data_processing/dataentities.py
stbman/reactivegumi
b85edcbbcdc65f2d95ceb7bc490da0ff78c0cf5e
[ "MIT" ]
null
null
null
data_processing/dataentities.py
stbman/reactivegumi
b85edcbbcdc65f2d95ceb7bc490da0ff78c0cf5e
[ "MIT" ]
null
null
null
data_processing/dataentities.py
stbman/reactivegumi
b85edcbbcdc65f2d95ceb7bc490da0ff78c0cf5e
[ "MIT" ]
null
null
null
""" Test script to process entities """ import pandas import numpy as np filename = 'groups_102523307031776_23-05-2018-15-02-44.tsv' df = pandas.read_csv(filename, sep='\t') df['Timestamp String'] = df['Timestamp'] df['Timestamp'] = pandas.to_datetime(df['Timestamp']) df['User Content'] = df['User Content'].replace(...
31.590164
101
0.689673
794a9c40409addb1eb8cd14830361178095df064
2,481
py
Python
configs/types/contribution_types.py
iPr0ger/mdr-fastapi
5ac3c4dc254969caa095c01ef629add1c5b72c49
[ "MIT" ]
null
null
null
configs/types/contribution_types.py
iPr0ger/mdr-fastapi
5ac3c4dc254969caa095c01ef629add1c5b72c49
[ "MIT" ]
null
null
null
configs/types/contribution_types.py
iPr0ger/mdr-fastapi
5ac3c4dc254969caa095c01ef629add1c5b72c49
[ "MIT" ]
null
null
null
CONTRIBUTION_TYPES = ( { "id": 11, "name": "Creator" }, { "id": 12, "name": "Contact person" }, { "id": 13, "name": "Data collector" }, { "id": 14, "name": "Data curator" }, { "id": 15, "name": "Data manager" }, { "id": 16, "name": "Distributor" },...
13.557377
53
0.433293
794a9c5e226966d45d3659d4c22161da565ae1be
2,703
py
Python
pytorch_lightning/plugins/training_type/ddp2.py
lemairecarl/pytorch-lightning
85304d4672a9ed24a16f7f5b2abaa34148ab86f4
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/plugins/training_type/ddp2.py
lemairecarl/pytorch-lightning
85304d4672a9ed24a16f7f5b2abaa34148ab86f4
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/plugins/training_type/ddp2.py
lemairecarl/pytorch-lightning
85304d4672a9ed24a16f7f5b2abaa34148ab86f4
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
35.565789
114
0.715131
794a9c75ef92ad0e6c4b5024bfcf2bb234a97376
16,170
py
Python
circus/tests/support.py
sphuber/circus
da45a601001954082ed270d130922d9ce46b983c
[ "Apache-2.0" ]
null
null
null
circus/tests/support.py
sphuber/circus
da45a601001954082ed270d130922d9ce46b983c
[ "Apache-2.0" ]
null
null
null
circus/tests/support.py
sphuber/circus
da45a601001954082ed270d130922d9ce46b983c
[ "Apache-2.0" ]
null
null
null
from tempfile import mkstemp, mkdtemp import os import signal import sys from time import time, sleep from collections import defaultdict import cProfile import pstats import shutil import functools import multiprocessing import socket try: import sysconfig DEBUG = sysconfig.get_config_var('Py_DEBUG') == 1 exce...
27.927461
78
0.598083
794a9d511d3d68a9ef4b9ce3d827d7b6f763868b
4,298
py
Python
gamestonk_terminal/mutual_funds/yfinance_view.py
i2infinity/GamestonkTerminal
abf79a5249930e5a9f5d2a1c4ba64590888ecef5
[ "MIT" ]
null
null
null
gamestonk_terminal/mutual_funds/yfinance_view.py
i2infinity/GamestonkTerminal
abf79a5249930e5a9f5d2a1c4ba64590888ecef5
[ "MIT" ]
1
2022-03-29T13:45:05.000Z
2022-03-29T13:45:05.000Z
gamestonk_terminal/mutual_funds/yfinance_view.py
i2infinity/GamestonkTerminal
abf79a5249930e5a9f5d2a1c4ba64590888ecef5
[ "MIT" ]
1
2021-06-20T02:42:40.000Z
2021-06-20T02:42:40.000Z
"""Yahoo Finance Mutual Fund Model""" __docformat__ = "numpy" import os import pandas as pd import matplotlib.pyplot as plt from rich.console import Console from gamestonk_terminal.helper_funcs import ( rich_table_from_df, export_data, plot_autoscale, ) from gamestonk_terminal.mutual_funds import yfinanc...
32.315789
110
0.625407
794a9dbe5db931440a3183f9362c48991ad07713
2,232
py
Python
src/w3s_pg_002.py
antalpeti/Python-Tutorial
157d631f4c5c888aa8d961a56fe0c6542a433321
[ "MIT" ]
null
null
null
src/w3s_pg_002.py
antalpeti/Python-Tutorial
157d631f4c5c888aa8d961a56fe0c6542a433321
[ "MIT" ]
2
2019-10-31T10:26:53.000Z
2019-10-31T10:27:16.000Z
src/w3s_pg_002.py
antalpeti/Python-Tutorial
157d631f4c5c888aa8d961a56fe0c6542a433321
[ "MIT" ]
null
null
null
x = str("s1") y = str(2) z = str(3.0) print(x) print(y) print(z) x = float(1) y = float(2.8) z = float("3") w = float("4.2") print(x) print(y) print(z) print(w) x = int(1) y = int(2.8) z = int("3") print(x) print(y) print(z) import random print(random.randrange(1,10)) x = 1 # int y = 2.8 # float z = 1j # compl...
10.054054
44
0.613351
794a9f081bfe4b2f76627dbcf6b4edfb2872a28e
31,274
bzl
Python
apple/internal/watchos_rules.bzl
specto-dev/rules_apple
9ee34a4793b5906eba5e5b948c4339c74e29e797
[ "Apache-2.0" ]
null
null
null
apple/internal/watchos_rules.bzl
specto-dev/rules_apple
9ee34a4793b5906eba5e5b948c4339c74e29e797
[ "Apache-2.0" ]
null
null
null
apple/internal/watchos_rules.bzl
specto-dev/rules_apple
9ee34a4793b5906eba5e5b948c4339c74e29e797
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Bazel 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 applicable la...
39.043695
143
0.668447
794a9f286c0c7410dd73ddbff3edfe9d2fbb3d55
2,957
py
Python
tests/fields/test_input.py
hiporox/strawberry-graphql-django
eb2924a35fc503a5fb1fb73c4188dc6bdc90c58e
[ "MIT" ]
96
2021-03-11T05:50:55.000Z
2022-03-30T09:14:09.000Z
tests/fields/test_input.py
hiporox/strawberry-graphql-django
eb2924a35fc503a5fb1fb73c4188dc6bdc90c58e
[ "MIT" ]
92
2021-03-11T13:28:31.000Z
2022-03-31T15:20:19.000Z
tests/fields/test_input.py
hiporox/strawberry-graphql-django
eb2924a35fc503a5fb1fb73c4188dc6bdc90c58e
[ "MIT" ]
22
2021-03-17T18:41:48.000Z
2022-03-18T12:11:51.000Z
import strawberry from django.db import models from strawberry.type import StrawberryOptional import strawberry_django from strawberry_django import auto class InputFieldsModel(models.Model): mandatory = models.IntegerField() default = models.IntegerField(default=1) blank = models.IntegerField(blank=True...
26.168142
84
0.655056
794aa15c74cd776523eb7c0d7f541a52521fa9d9
656
py
Python
scripts/mongio.py
msirprism/cryptoview
9ad8196100c0031c5d7e2c3de58cc1aadfa2bb7d
[ "MIT" ]
224
2017-12-25T06:53:52.000Z
2022-02-09T03:35:34.000Z
scripts/mongio.py
msirprism/cryptoview
9ad8196100c0031c5d7e2c3de58cc1aadfa2bb7d
[ "MIT" ]
9
2017-12-29T19:29:33.000Z
2018-05-10T22:38:06.000Z
scripts/mongio.py
msirprism/cryptoview
9ad8196100c0031c5d7e2c3de58cc1aadfa2bb7d
[ "MIT" ]
72
2017-12-25T09:46:12.000Z
2021-12-30T06:08:59.000Z
import pymongo import json import sys # Local Files sys.path.append("..") from scripts import settings client = pymongo.MongoClient(settings.mongo_server, settings.mongo_id) db = client[settings.mongo_client] db.authenticate(settings.mongo_user, settings.mongo_pass) def save(account, datatype, data): d = db.posi...
27.333333
81
0.713415
794aa17038cd6b459b611130a61641236d63f13d
6,365
py
Python
python/paddle/fluid/tests/unittests/dygraph_to_static/test_save_inference_model.py
RangeKing/Paddle
2d87300809ae75d76f5b0b457d8112cb88dc3e27
[ "Apache-2.0" ]
8
2016-08-15T07:02:27.000Z
2016-08-24T09:34:00.000Z
python/paddle/fluid/tests/unittests/dygraph_to_static/test_save_inference_model.py
RangeKing/Paddle
2d87300809ae75d76f5b0b457d8112cb88dc3e27
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/dygraph_to_static/test_save_inference_model.py
RangeKing/Paddle
2d87300809ae75d76f5b0b457d8112cb88dc3e27
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle 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 app...
38.113772
101
0.623095
794aa24767cb47ca8dae04f759e9042668004db0
18,608
py
Python
all code (not organized)/Database Load one hot semantic of sorts.py
TaylorChris2/Virtuoso
87a3d59141172d5daff0ae4725b843351b52fe63
[ "Apache-2.0" ]
null
null
null
all code (not organized)/Database Load one hot semantic of sorts.py
TaylorChris2/Virtuoso
87a3d59141172d5daff0ae4725b843351b52fe63
[ "Apache-2.0" ]
null
null
null
all code (not organized)/Database Load one hot semantic of sorts.py
TaylorChris2/Virtuoso
87a3d59141172d5daff0ae4725b843351b52fe63
[ "Apache-2.0" ]
null
null
null
import sounddevice as sd from scipy.signal import istft from scipy.signal import stft import librosa import librosa.display import midi import skimage.transform import numpy as np import os import h5py import time import matplotlib.pyplot as plt start_time = time.time() def load_midi_violin(path): ...
36.994036
136
0.551
794aa27d55496924767cfd42e99241c88171cf0c
2,492
py
Python
game/memobrowser.py
AmkG/gearhead-caramel
0238378295a09b4b33adb2ec0854fa06b0ad7b1b
[ "Apache-2.0" ]
null
null
null
game/memobrowser.py
AmkG/gearhead-caramel
0238378295a09b4b33adb2ec0854fa06b0ad7b1b
[ "Apache-2.0" ]
null
null
null
game/memobrowser.py
AmkG/gearhead-caramel
0238378295a09b4b33adb2ec0854fa06b0ad7b1b
[ "Apache-2.0" ]
null
null
null
import pbge import pygame class MemoBrowser(object): def __init__(self,camp): self.camp = camp self.text_area = pbge.frects.Frect(-200,-100,400,200) self.memos = [p.memo for p in camp.active_plots() if p.memo] if not self.memos: self.memos = ["<<No memos.>>"] sel...
35.6
117
0.628812
794aa310245a161204649cae29e759c39aff78e0
627
py
Python
recursive_count_items/recursive_count_items.py
Lumexralph/python-algorithm-datastructures
5108cbc19c6cb650e72a95e5fa0c69be2a3354ee
[ "MIT" ]
null
null
null
recursive_count_items/recursive_count_items.py
Lumexralph/python-algorithm-datastructures
5108cbc19c6cb650e72a95e5fa0c69be2a3354ee
[ "MIT" ]
null
null
null
recursive_count_items/recursive_count_items.py
Lumexralph/python-algorithm-datastructures
5108cbc19c6cb650e72a95e5fa0c69be2a3354ee
[ "MIT" ]
1
2019-06-11T00:02:10.000Z
2019-06-11T00:02:10.000Z
def count_items_in_list(items): """function to recursively count items in a list without using the len() function Args: items(list): an array of items Returns: int: the count of items in a list """ if not isinstance(items, list): return "data not a list/array" try: # remove first item ...
20.9
50
0.671451
794aa3e6e9edb544472bbcbde0cfbf0f3f15f9a1
2,403
py
Python
share/qt/extract_strings_qt.py
fujicoin/fujicoin-0.20.0
2bed6d064ce44ada8bf3263fc2138029b78a8011
[ "MIT" ]
null
null
null
share/qt/extract_strings_qt.py
fujicoin/fujicoin-0.20.0
2bed6d064ce44ada8bf3263fc2138029b78a8011
[ "MIT" ]
null
null
null
share/qt/extract_strings_qt.py
fujicoin/fujicoin-0.20.0
2bed6d064ce44ada8bf3263fc2138029b78a8011
[ "MIT" ]
1
2021-07-18T11:40:12.000Z
2021-07-18T11:40:12.000Z
#!/usr/bin/env python3 # Copyright (c) 2012-2019 The Fujicoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Extract _("...") strings for translation and convert to Qt stringdefs so that they can be picked up b...
27.94186
105
0.629213
794aa41bef7cc9154fa183231c97277d53309e87
1,320
py
Python
hathor/p2p/netfilter/rule.py
mbnunes/hathor-core
e5e0d4a627341e2a37ee46db5c9354ddb7f8dfb8
[ "Apache-2.0" ]
51
2019-12-28T03:33:27.000Z
2022-03-10T14:03:03.000Z
hathor/p2p/netfilter/rule.py
mbnunes/hathor-core
e5e0d4a627341e2a37ee46db5c9354ddb7f8dfb8
[ "Apache-2.0" ]
316
2019-09-10T09:20:05.000Z
2022-03-31T20:18:56.000Z
hathor/p2p/netfilter/rule.py
jansegre/hathor-core
22b3de6be2518e7a0797edbf0e4f6eb1cf28d6fd
[ "Apache-2.0" ]
19
2020-01-04T00:13:18.000Z
2022-02-08T21:18:46.000Z
# Copyright 2021 Hathor Labs # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
37.714286
94
0.739394
794aa4445d46e27f0eae59e03a75fd56cc056dba
1,753
py
Python
kwanmath/geodesy.py
kwan3217/kwanmath
c43f8209324cdb0c673b969b41b06d49c9d46e71
[ "BSD-3-Clause" ]
null
null
null
kwanmath/geodesy.py
kwan3217/kwanmath
c43f8209324cdb0c673b969b41b06d49c9d46e71
[ "BSD-3-Clause" ]
null
null
null
kwanmath/geodesy.py
kwan3217/kwanmath
c43f8209324cdb0c673b969b41b06d49c9d46e71
[ "BSD-3-Clause" ]
null
null
null
""" Geodesy and gravity calculations """ from .vector import vdecomp, vlength, vcomp, rv import numpy as np def xyz2llr(sv): """ Calculate spherical coordinates of state :param sv: State vector, can be stack :return: tuple of (lon,lat,r). Each will be an array iff sv is a stack """ x,y,z=vdecom...
32.462963
122
0.663434
794aa4be77b7073fc8f4a1ad438ae9a13480151f
7,957
py
Python
src/graphql/type/directives.py
KingDarBoja/graphql-core
22970e94f1016e813848fc0ab5d1e7ab9ad612e4
[ "MIT" ]
null
null
null
src/graphql/type/directives.py
KingDarBoja/graphql-core
22970e94f1016e813848fc0ab5d1e7ab9ad612e4
[ "MIT" ]
null
null
null
src/graphql/type/directives.py
KingDarBoja/graphql-core
22970e94f1016e813848fc0ab5d1e7ab9ad612e4
[ "MIT" ]
null
null
null
from typing import Any, Collection, Dict, List, Optional, cast from ..language import ast, DirectiveLocation from ..pyutils import inspect, is_description, FrozenList from .definition import GraphQLArgument, GraphQLInputType, GraphQLNonNull, is_input_type from .scalars import GraphQLBoolean, GraphQLString __all__ = [...
34.445887
88
0.646852
794aa519b39aec3d57d2b9c13f3564b32aa35383
2,716
py
Python
reproject/utils.py
barentsen/reproject
af164f0cabc3ec772c6d2a03e58eef65060bfb52
[ "BSD-3-Clause" ]
null
null
null
reproject/utils.py
barentsen/reproject
af164f0cabc3ec772c6d2a03e58eef65060bfb52
[ "BSD-3-Clause" ]
null
null
null
reproject/utils.py
barentsen/reproject
af164f0cabc3ec772c6d2a03e58eef65060bfb52
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from astropy.io import fits from astropy.io.fits import CompImageHDU, HDUList, Header, ImageHDU, PrimaryHDU from astropy.wcs import WCS from astropy.wcs.wcsapi import BaseHighLevelWCS def parse_input_data(input_data, hdu_in=None): """ Parse input data to return a Numpy array and WCS object....
41.784615
121
0.678203
794aa55b7b9af4ce05e4960e812cc0d6353eb77b
26,582
py
Python
tests/core/tests/indexes.py
infoxchange/django-haystack
5c2dec0da28846eec87a3a5c6166a1734d4245ab
[ "BSD-3-Clause" ]
null
null
null
tests/core/tests/indexes.py
infoxchange/django-haystack
5c2dec0da28846eec87a3a5c6166a1734d4245ab
[ "BSD-3-Clause" ]
null
null
null
tests/core/tests/indexes.py
infoxchange/django-haystack
5c2dec0da28846eec87a3a5c6166a1734d4245ab
[ "BSD-3-Clause" ]
null
null
null
import datetime from threading import Thread import time from django.test import TestCase from django.utils.six.moves import queue from haystack import connections, connection_router from haystack.exceptions import SearchFieldError from haystack import indexes from haystack.utils.loading import UnifiedIndex from core.m...
41.212403
209
0.657964
794aa58362bc9838495c7facb590ce593449435b
9,893
py
Python
src/webapp/azext_webapp/create_util.py
j-martens/azure-cli-extensions
3d4854205b0f0d882f688cfa12383d14506c2e35
[ "MIT" ]
1
2019-05-10T19:58:09.000Z
2019-05-10T19:58:09.000Z
src/webapp/azext_webapp/create_util.py
j-martens/azure-cli-extensions
3d4854205b0f0d882f688cfa12383d14506c2e35
[ "MIT" ]
null
null
null
src/webapp/azext_webapp/create_util.py
j-martens/azure-cli-extensions
3d4854205b0f0d882f688cfa12383d14506c2e35
[ "MIT" ]
1
2021-07-28T14:50:54.000Z
2021-07-28T14:50:54.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
39.257937
119
0.685333
794aa5f8b2d7af6be29f554bc47c72f6dc3fcb3f
4,671
py
Python
Jalase5/main.py
ashkanjalaliQ/Maadanchi
acb2ec9ecdb1e20398454c942cce166f92facda6
[ "MIT" ]
null
null
null
Jalase5/main.py
ashkanjalaliQ/Maadanchi
acb2ec9ecdb1e20398454c942cce166f92facda6
[ "MIT" ]
null
null
null
Jalase5/main.py
ashkanjalaliQ/Maadanchi
acb2ec9ecdb1e20398454c942cce166f92facda6
[ "MIT" ]
null
null
null
from urllib.request import urlopen from bs4 import BeautifulSoup import pandas as pd def divider_tag(tag): tag = tag[tag.find('>') + 1:tag.find('</')] if len(tag) == 0: tag = '-' return tag def attach(names): result = '' if len(names) != 1: for i in range(len(names)): ...
33.364286
208
0.519375
794aa66456a1484843d7f5cc75537fdd1e040e13
7,028
py
Python
GRsync.py
clyang/GRsync
4d72a2260eeb0d0e8bd467e8aa8d44a13ef29e26
[ "MIT" ]
41
2015-12-09T01:50:18.000Z
2021-12-09T16:21:22.000Z
GRsync.py
clyang/GRsync
4d72a2260eeb0d0e8bd467e8aa8d44a13ef29e26
[ "MIT" ]
5
2019-06-18T11:16:20.000Z
2022-01-16T01:07:03.000Z
GRsync.py
clyang/GRsync
4d72a2260eeb0d0e8bd467e8aa8d44a13ef29e26
[ "MIT" ]
6
2018-12-31T03:46:54.000Z
2021-10-18T12:37:21.000Z
#!/usr/bin/python -u # -*- coding: utf-8 -*- import urllib2 import sys import json import argparse from argparse import RawTextHelpFormatter import socket import re import os # remember the ending "/" # eg: PHOTO_DEST_DIR = "/home/user/photos/" PHOTO_DEST_DIR = "" # GR_HOST is FIXED. DO NOT CHANGE!! GR_HOST = "http:...
34.792079
133
0.593341
794aa825d89ec7b3bb9112c16836e448686573f9
8,230
py
Python
smac/utils/io/input_reader.py
brenting/SMAC3
f628d8b83f9f1803054d6e39bce7a51ab033dff1
[ "BSD-3-Clause" ]
51
2019-02-01T19:43:37.000Z
2022-03-16T09:07:03.000Z
smac/utils/io/input_reader.py
brenting/SMAC3
f628d8b83f9f1803054d6e39bce7a51ab033dff1
[ "BSD-3-Clause" ]
2
2019-02-23T18:54:22.000Z
2019-11-09T01:30:32.000Z
smac/utils/io/input_reader.py
brenting/SMAC3
f628d8b83f9f1803054d6e39bce7a51ab033dff1
[ "BSD-3-Clause" ]
35
2019-02-08T02:00:31.000Z
2022-03-01T23:17:00.000Z
import numpy as np from smac.configspace import pcs __author__ = "Marius Lindauer" __copyright__ = "Copyright 2015, ML4AAD" __license__ = "3-clause BSD" __maintainer__ = "Marius Lindauer" __email__ = "lindauer@cs.uni-freiburg.de" __version__ = "0.0.1" class InputReader(object): """Reading all input files for SM...
43.544974
83
0.431106
794aa8d1274014142632265c55a066dbe8483572
717
py
Python
iexfinance/tests/data_apis/test_time_series.py
dirtyFox27/iexfinance
cae6745fbee2246b010629ab05c62ffbce2c1c9c
[ "Apache-2.0" ]
null
null
null
iexfinance/tests/data_apis/test_time_series.py
dirtyFox27/iexfinance
cae6745fbee2246b010629ab05c62ffbce2c1c9c
[ "Apache-2.0" ]
null
null
null
iexfinance/tests/data_apis/test_time_series.py
dirtyFox27/iexfinance
cae6745fbee2246b010629ab05c62ffbce2c1c9c
[ "Apache-2.0" ]
null
null
null
import pandas as pd import pytest from iexfinance.data_apis import get_time_series class TestTimeSeries(object): @pytest.mark.xfail(reason="Endpoint not working in sandbox environment") def test_all_series(self): data = get_time_series() assert isinstance(data, list) @pytest.mark.xfail(...
28.68
76
0.719665
794aa953761c1fecfdb974275e3060c739ce305a
538
py
Python
tests/conftest.py
izm51/obniz-python-sdk
40a738b5fe2c0a415cdc09f46d28c143982bfb07
[ "MIT" ]
11
2019-03-22T12:02:11.000Z
2021-01-21T04:57:18.000Z
tests/conftest.py
izm51/obniz-python-sdk
40a738b5fe2c0a415cdc09f46d28c143982bfb07
[ "MIT" ]
5
2019-03-02T08:28:25.000Z
2021-02-02T22:06:37.000Z
tests/conftest.py
izm51/obniz-python-sdk
40a738b5fe2c0a415cdc09f46d28c143982bfb07
[ "MIT" ]
3
2019-07-20T06:55:09.000Z
2019-12-04T05:05:00.000Z
import pytest from .utils import release_obnize, setup_obniz, receive_json, assert_send @pytest.fixture(scope="function") def obniz(mocker): obniz = setup_obniz(mocker) receive_json(obniz, [{'ws': {'ready': True, 'obniz': {'hw': 'obnizb1', 'firmware': '2.0.2'}}}]) assert_send(obniz, [{'ws': {'reset_obniz...
25.619048
99
0.700743
794aa958b96d5b4ea31e2d5ef46d2117e8ed00e0
3,794
py
Python
mapa_cidadao/mapa_cidadao/core/migrations/0001_initial.py
zokis/mapa_do_cidadao
abfbf79c5a1fcc3ee812e3f3f768c65a425e917c
[ "MIT" ]
1
2015-06-15T13:44:55.000Z
2015-06-15T13:44:55.000Z
mapa_cidadao/mapa_cidadao/core/migrations/0001_initial.py
zokis/mapa_do_cidadao
abfbf79c5a1fcc3ee812e3f3f768c65a425e917c
[ "MIT" ]
1
2015-08-14T18:39:02.000Z
2015-08-14T18:39:02.000Z
mapa_cidadao/mapa_cidadao/core/migrations/0001_initial.py
zokis/mapa_do_cidadao
abfbf79c5a1fcc3ee812e3f3f768c65a425e917c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import jsonfield.fields import django.contrib.gis.db.models.fields from django.conf import settings import mapa_cidadao.core.models class Migration(migrations.Migration): dependencies = [ migrations....
44.635294
225
0.568793
794aa95cc6dc2a75d3de366d2806414e2ef2d68c
176
py
Python
examples/_scripts/maria_muster/q2.py
lebalz/easy_template
8d19ebf9a3cd723511ad8ee1877a5066c7d3b4d0
[ "MIT" ]
null
null
null
examples/_scripts/maria_muster/q2.py
lebalz/easy_template
8d19ebf9a3cd723511ad8ee1877a5066c7d3b4d0
[ "MIT" ]
null
null
null
examples/_scripts/maria_muster/q2.py
lebalz/easy_template
8d19ebf9a3cd723511ad8ee1877a5066c7d3b4d0
[ "MIT" ]
null
null
null
def collatz(num) if num % 2 == 0: return num / 2 return (3 * num) + 1 res = [] zahl = 9 while zahl > 1 zahl = collatz(zahl) res.append(zahl) print(res)
13.538462
24
0.539773
794aa997dec029c7dfc7f4b20e9e837f3ea85a99
8,861
py
Python
tensorflow_asr/featurizers/methods/gammatone.py
Thumb-Technologies/TensorFlowASR
37ea12af04a8f2c13f75a617f4aa4331f95ce945
[ "Apache-2.0" ]
1
2021-11-30T16:04:53.000Z
2021-11-30T16:04:53.000Z
tensorflow_asr/featurizers/methods/gammatone.py
xbsdsongnan/TensorFlowASR
130124ccaf23fabe3e7a6f138d9403a7c0946ef3
[ "Apache-2.0" ]
null
null
null
tensorflow_asr/featurizers/methods/gammatone.py
xbsdsongnan/TensorFlowASR
130124ccaf23fabe3e7a6f138d9403a7c0946ef3
[ "Apache-2.0" ]
1
2021-08-17T14:53:33.000Z
2021-08-17T14:53:33.000Z
# Copyright 2020 Huy Le Nguyen (@usimarit) and Huy Phan (@pquochuy) # # 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 a...
34.885827
87
0.633111
794aa9982a87cbd5cdadce0a3df9adcef69fea18
7,772
py
Python
util/reggen/data.py
joshuisken/opentitan
d4d5d2f3bb87af5ca2f2787af5bc19bee04ffc6a
[ "Apache-2.0" ]
1
2021-12-10T17:05:45.000Z
2021-12-10T17:05:45.000Z
util/reggen/data.py
abignail/opentitan
920b48f3da14f90661b5b52d1f9de19a1ba3f012
[ "Apache-2.0" ]
null
null
null
util/reggen/data.py
abignail/opentitan
920b48f3da14f90661b5b52d1f9de19a1ba3f012
[ "Apache-2.0" ]
1
2021-03-25T15:48:48.000Z
2021-03-25T15:48:48.000Z
# Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 from .field_enums import HwAccess, SwAccess, SwRdAccess, SwWrAccess # helper funtion that strips trailing number from name # TODO: this is a workaround, should solve this...
29.777778
80
0.584148
794aaa6ddbec7beb255acbf73bd9af55b4e66946
22,198
py
Python
airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/streams.py
dsdorazio/airbyte
078c6604a499c5ab68beb403d80b3068e6bef4ab
[ "MIT" ]
null
null
null
airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/streams.py
dsdorazio/airbyte
078c6604a499c5ab68beb403d80b3068e6bef4ab
[ "MIT" ]
null
null
null
airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/streams.py
dsdorazio/airbyte
078c6604a499c5ab68beb403d80b3068e6bef4ab
[ "MIT" ]
null
null
null
# # MIT License # # Copyright (c) 2020 Airbyte # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, pu...
40.655678
126
0.652401
794aabcd0e8d4ad6c6d3d6e609ac48a9b7a0f6f1
7,004
py
Python
vodloader.py
retrontology/vodloader
6b9b62854f164f3a7bb0619fc1950fb841274581
[ "MIT" ]
5
2021-05-20T00:54:48.000Z
2022-01-23T01:18:32.000Z
vodloader.py
retrontology/vodloader
6b9b62854f164f3a7bb0619fc1950fb841274581
[ "MIT" ]
2
2021-05-08T23:01:41.000Z
2021-05-30T08:51:10.000Z
vodloader.py
retrontology/vodloader
6b9b62854f164f3a7bb0619fc1950fb841274581
[ "MIT" ]
2
2021-05-08T22:57:42.000Z
2021-06-19T16:52:41.000Z
from twitchAPI.types import VideoType, EventSubSubscriptionConflict, EventSubSubscriptionTimeout, EventSubSubscriptionError from time import sleep from threading import Thread import logging from vodloader_video import vodloader_video from vodloader_status import vodloader_status from youtube_uploader import YouTubeOve...
43.234568
182
0.611508
794aac901a4f7be1f96bd0bf07eb907bb4569410
8,098
py
Python
Python/libraries/datatypes-timex-expression/datatypes_timex_expression/timex_helpers.py
inloco/Recognizers-Text
9f4ac7cd4170fe39e48ccf52c028877e7c421e60
[ "MIT" ]
1
2019-01-03T16:41:29.000Z
2019-01-03T16:41:29.000Z
Python/libraries/datatypes-timex-expression/datatypes_timex_expression/timex_helpers.py
inloco/Recognizers-Text
9f4ac7cd4170fe39e48ccf52c028877e7c421e60
[ "MIT" ]
76
2018-11-09T18:19:44.000Z
2019-08-20T20:29:53.000Z
Python/libraries/datatypes-timex-expression/datatypes_timex_expression/timex_helpers.py
inloco/Recognizers-Text
9f4ac7cd4170fe39e48ccf52c028877e7c421e60
[ "MIT" ]
6
2017-05-04T17:24:59.000Z
2019-07-23T15:48:44.000Z
from datetime import date, timedelta, datetime from math import floor from .timex_inference import TimexInference from .date_range import DateRange from .time import Time from .time_range import TimeRange from .timex_constants import Constants from .timex_range import TimexRange class TimexHelpers: @staticmet...
35.674009
96
0.57187
794aadb9a06ac5d31f40133fa95070269163088b
2,107
py
Python
venv/Lib/site-packages/pyrogram/raw/base/stats/broadcast_stats.py
iamgeorgiy/heroku-userbot
5a92417d16f8ead949d88cb38da213fc2da5d3a4
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/base/stats/broadcast_stats.py
iamgeorgiy/heroku-userbot
5a92417d16f8ead949d88cb38da213fc2da5d3a4
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/base/stats/broadcast_stats.py
iamgeorgiy/heroku-userbot
5a92417d16f8ead949d88cb38da213fc2da5d3a4
[ "Apache-2.0" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2020 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram 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...
36.327586
93
0.639298
794aae6b7df9a9130c935ce7b01d01575297e946
3,287
py
Python
blender/2.79/scripts/addons/io_scene_ms3d/__init__.py
uzairakbar/bpy2.79
3a3e0004ac6783c4e4b89d939e4432de99026a85
[ "MIT" ]
2
2019-11-27T09:05:42.000Z
2020-02-20T01:25:23.000Z
io_scene_ms3d/__init__.py
1-MillionParanoidTterabytes/blender-addons-master
acc8fc23a38e6e89099c3e5079bea31ce85da06a
[ "Unlicense" ]
null
null
null
io_scene_ms3d/__init__.py
1-MillionParanoidTterabytes/blender-addons-master
acc8fc23a38e6e89099c3e5079bea31ce85da06a
[ "Unlicense" ]
4
2020-02-19T20:02:26.000Z
2022-02-11T18:47:56.000Z
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
30.719626
79
0.584119
794aaeaaef6ab4dcd98d135a4fdaae0c4ca6aaae
1,003
py
Python
labeling.py
qwerlarlgus/Object_tracking
1ef0eded171d2d432cfdcfbeb5b794a6546bf116
[ "MIT" ]
null
null
null
labeling.py
qwerlarlgus/Object_tracking
1ef0eded171d2d432cfdcfbeb5b794a6546bf116
[ "MIT" ]
null
null
null
labeling.py
qwerlarlgus/Object_tracking
1ef0eded171d2d432cfdcfbeb5b794a6546bf116
[ "MIT" ]
null
null
null
import sys import random import numpy as np import cv2 src = cv2.imread('crop0.jpg', cv2.IMREAD_GRAYSCALE) if src is None: print('Image load failed!') sys.exit() h, w = src.shape[:2] dst1 = np.zeros((h, w, 3), np.uint8) dst2 = np.zeros((h, w, 3), np.uint8) # 전처리 src = cv2.blur(src, (3, 3))...
25.075
81
0.65005
794aaee4046557600d02440f4e9cd1b8a8f1ff95
2,292
py
Python
redis-srv.py
M-O-P-D/crims
19ca9ac3701bd6725e01ee29a2bfb429775d79da
[ "MIT" ]
null
null
null
redis-srv.py
M-O-P-D/crims
19ca9ac3701bd6725e01ee29a2bfb429775d79da
[ "MIT" ]
12
2020-11-11T11:24:05.000Z
2021-03-11T11:43:43.000Z
redis-srv.py
M-O-P-D/crims
19ca9ac3701bd6725e01ee29a2bfb429775d79da
[ "MIT" ]
null
null
null
#redis-srv.py import redis import pandas as pd import pickle import json from datetime import date # requires non-python dependency redis-server # sudo apt install redis-server # follow instructions here: https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-redis-on-ubuntu-18-04 import neworder...
28.296296
155
0.671466
794aaf7234b3ee90332fb39568eb198808b5e94f
5,348
py
Python
model_zoo/official/nlp/bert/scripts/ascend_distributed_launcher/run_distribute_pretrain.py
Rossil2012/mindspore
8a20b5d784b3fec6d32e058581ec56ec553a06a0
[ "Apache-2.0" ]
1
2021-04-23T06:35:18.000Z
2021-04-23T06:35:18.000Z
model_zoo/official/nlp/bert/scripts/ascend_distributed_launcher/run_distribute_pretrain.py
nudt-eddie/mindspore
55372b41fdfae6d2b88d7078971e06d537f6c558
[ "Apache-2.0" ]
null
null
null
model_zoo/official/nlp/bert/scripts/ascend_distributed_launcher/run_distribute_pretrain.py
nudt-eddie/mindspore
55372b41fdfae6d2b88d7078971e06d537f6c558
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
37.398601
95
0.6092
794ab257259a261ababb4dfd5261e0d7a7ddf359
5,736
py
Python
superset/queries/saved_queries/api.py
piyush-singhal/incubator-superset
cf4edf73a6ad1a61e7a65f05b6e4201db3a4b6e4
[ "Apache-2.0" ]
1
2020-10-24T06:54:41.000Z
2020-10-24T06:54:41.000Z
superset/queries/saved_queries/api.py
piyush-singhal/incubator-superset
cf4edf73a6ad1a61e7a65f05b6e4201db3a4b6e4
[ "Apache-2.0" ]
1
2021-02-23T16:45:47.000Z
2021-04-24T23:15:03.000Z
superset/queries/saved_queries/api.py
piyush-singhal/incubator-superset
cf4edf73a6ad1a61e7a65f05b6e4201db3a4b6e4
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
30.83871
76
0.621688
794ab2746411301365665cbacaae817feb3617db
1,000
py
Python
NoteBooks/Curso de Python/Python/Algoritmos/Sorting/Bubble_Sort.py
Alejandro-sin/Learning_Notebooks
161d6bed4c7b1d171b45f61c0cc6fa91e9894aad
[ "MIT" ]
1
2021-02-26T13:12:22.000Z
2021-02-26T13:12:22.000Z
NoteBooks/Curso de Python/Python/Algoritmos/Sorting/Bubble_Sort.py
Alejandro-sin/Learning_Notebooks
161d6bed4c7b1d171b45f61c0cc6fa91e9894aad
[ "MIT" ]
null
null
null
NoteBooks/Curso de Python/Python/Algoritmos/Sorting/Bubble_Sort.py
Alejandro-sin/Learning_Notebooks
161d6bed4c7b1d171b45f61c0cc6fa91e9894aad
[ "MIT" ]
null
null
null
''' Facil enteneder e implementar. Performance On**2. El primer loop lo que hace es que cuenta desde el ultimo dato hasta el primero. el segundo loop, me habla sobre la compración entre elementos vecinos ''' # Bubble sort algorithm def bubbleSort(dataset): # TODO: start with the array length and decremen...
23.255814
79
0.601
794ab2a0426e4976d5ee0d2905f226d72bf2360a
190
py
Python
Week 6/1.py
ShruKin/Python-Assignments
f6b5d8b2e23f0d6f68d7acced43a1830c6ecebf3
[ "MIT" ]
null
null
null
Week 6/1.py
ShruKin/Python-Assignments
f6b5d8b2e23f0d6f68d7acced43a1830c6ecebf3
[ "MIT" ]
1
2019-11-16T08:40:15.000Z
2019-11-16T08:40:15.000Z
Week 6/1.py
ShruKin/Python-Assignments
f6b5d8b2e23f0d6f68d7acced43a1830c6ecebf3
[ "MIT" ]
null
null
null
print("Kinjal Raykarmakar\nSec: CSE2H\tRoll: 29\n") tup = [('item1', '12.20'), ('item2','15.10' ), ('item3', '24.50') ] tup.sort(key = lambda x: float(x[1]), reverse = True) print(tup)
31.666667
68
0.589474
794ab2e34056e597458fcc0bfbbbdf828ee82ab6
3,744
py
Python
project/settings.py
lsmiley/django-ex-ess-tools
42ac288e67b1ec28c1acc206762c3f3dadb1dba9
[ "CC0-1.0" ]
null
null
null
project/settings.py
lsmiley/django-ex-ess-tools
42ac288e67b1ec28c1acc206762c3f3dadb1dba9
[ "CC0-1.0" ]
null
null
null
project/settings.py
lsmiley/django-ex-ess-tools
42ac288e67b1ec28c1acc206762c3f3dadb1dba9
[ "CC0-1.0" ]
null
null
null
""" Django settings for this project. Generated by 'django-admin startproject' using Django 1.11.6. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os #...
26
91
0.703259