hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
8eb604ab527630f6782f71fc57175248b93e85b4
8,019
py
Python
infra/libs/buildbot/test/master_test.py
asdfghjjklllllaaa/infra
8f63af54e46194cd29291813f2790ff6e986804d
[ "BSD-3-Clause" ]
1
2020-11-11T06:25:13.000Z
2020-11-11T06:25:13.000Z
infra/libs/buildbot/test/master_test.py
mcgreevy/chromium-infra
09064105713603f7bf75c772e8354800a1bfa256
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
infra/libs/buildbot/test/master_test.py
asdfghjjklllllaaa/infra
8f63af54e46194cd29291813f2790ff6e986804d
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import collections import json import os import requests import simplejson import subprocess from infra.libs.buildbot import master from testing_support imp...
34.123404
79
0.681506
ce66bb511d631a73acfb8472fe0a47fb976e50eb
14,835
py
Python
scripts/train_fcn_adda.py
Luodian/MADAN
7a2918da44f5203b72652bc4cba0e70057482114
[ "MIT" ]
150
2019-10-29T01:22:31.000Z
2022-02-16T02:09:31.000Z
scripts/train_fcn_adda.py
pikachusocute/MADAN
7a2918da44f5203b72652bc4cba0e70057482114
[ "MIT" ]
6
2020-01-05T16:56:51.000Z
2021-10-13T03:25:05.000Z
scripts/train_fcn_adda.py
pikachusocute/MADAN
7a2918da44f5203b72652bc4cba0e70057482114
[ "MIT" ]
23
2019-11-04T15:46:29.000Z
2022-01-16T09:10:01.000Z
import logging import os import os.path import sys from collections import deque from datetime import datetime import click import numpy as np import torch import torch.nn.functional as F from tensorboardX import SummaryWriter from torch.autograd import Variable sys.path.append('/nfs/project/libo_iMADAN') from cycad...
33.947368
133
0.670442
db81e31298f08579b22bb87e588bb0ef1ac23df3
25,405
py
Python
tornado_demo/web2py/gluon/contrib/pysimplesoap/server.py
ls-2018/tips
1f5f5195d7181b5dd4616db02166f7f92c97f1cd
[ "MIT" ]
2
2019-05-07T03:08:25.000Z
2020-05-22T10:10:00.000Z
tornado_demo/web2py/gluon/contrib/pysimplesoap/server.py
ls-2018/tips
1f5f5195d7181b5dd4616db02166f7f92c97f1cd
[ "MIT" ]
7
2020-05-22T13:29:42.000Z
2021-09-23T23:30:25.000Z
tornado_demo/web2py/gluon/contrib/pysimplesoap/server.py
ls-2018/py
1f5f5195d7181b5dd4616db02166f7f92c97f1cd
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by the # Free Software Foundation; either version 3, or (at your option) any later # version. # # This program is distributed in the...
39.882261
120
0.55556
09348d427d83e25f47dedcc3f787fd58db41f760
8,432
py
Python
lib/set_room.py
MuffinAmor/nellie
eace65ac7d7d1730c131345e6e5e5b7d39b078ef
[ "MIT" ]
1
2022-03-12T17:34:05.000Z
2022-03-12T17:34:05.000Z
lib/set_room.py
MuffinAmor/nellie
eace65ac7d7d1730c131345e6e5e5b7d39b078ef
[ "MIT" ]
null
null
null
lib/set_room.py
MuffinAmor/nellie
eace65ac7d7d1730c131345e6e5e5b7d39b078ef
[ "MIT" ]
null
null
null
import json import os import sys os.chdir(r'/') def create_tree(): if not os.path.isfile("Global"): try: os.mkdir("Global") except: pass if not os.path.isfile("Global/rooms"): try: os.mkdir("Global/rooms") except: ...
32.682171
80
0.480313
3d008e7524687a609fb3858b59eaa5be1ecf6451
1,936
py
Python
files/xmlrpcplugin/0.10/tracrpc/search.py
Puppet-Finland/puppet-trac
ffdf467ba80ff995778c30b0bdc6dc3e7d4e6cd3
[ "BSD-2-Clause" ]
null
null
null
files/xmlrpcplugin/0.10/tracrpc/search.py
Puppet-Finland/puppet-trac
ffdf467ba80ff995778c30b0bdc6dc3e7d4e6cd3
[ "BSD-2-Clause" ]
null
null
null
files/xmlrpcplugin/0.10/tracrpc/search.py
Puppet-Finland/puppet-trac
ffdf467ba80ff995778c30b0bdc6dc3e7d4e6cd3
[ "BSD-2-Clause" ]
null
null
null
from trac.core import * from tracrpc.api import IXMLRPCHandler from trac.Search import ISearchSource try: a = set() except: from sets import Set as set class SearchRPC(Component): """ Search Trac. """ implements(IXMLRPCHandler) search_sources = ExtensionPoint(ISearchSource) # IXMLRPCHandler ...
35.2
83
0.619835
72aeaa4a6631dc9e69f1cf348282ffb3310e6ecc
87
py
Python
micApp/apps.py
AkashPushkar/audio-synthesis-webapp
b4053e0cea315d3906c7482249de0c02fcc802d6
[ "MIT" ]
null
null
null
micApp/apps.py
AkashPushkar/audio-synthesis-webapp
b4053e0cea315d3906c7482249de0c02fcc802d6
[ "MIT" ]
7
2020-01-28T22:20:14.000Z
2022-02-09T23:35:32.000Z
micApp/apps.py
AkashPushkar/audio-synthesis-webapp
b4053e0cea315d3906c7482249de0c02fcc802d6
[ "MIT" ]
null
null
null
from django.apps import AppConfig class MicappConfig(AppConfig): name = 'micApp'
14.5
33
0.747126
cf9708372fc17a8548833c24075deaa047e31ba2
1,909
py
Python
zipline/pipeline/downsample_helpers.py
quantrocket-llc/zipline
4eccd1ff3f07addbdc1f9682b608e0584a9b59c6
[ "Apache-2.0" ]
14
2018-02-05T18:38:15.000Z
2022-01-15T21:31:30.000Z
zipline/pipeline/downsample_helpers.py
quantrocket-llc/zipline
4eccd1ff3f07addbdc1f9682b608e0584a9b59c6
[ "Apache-2.0" ]
null
null
null
zipline/pipeline/downsample_helpers.py
quantrocket-llc/zipline
4eccd1ff3f07addbdc1f9682b608e0584a9b59c6
[ "Apache-2.0" ]
8
2020-02-14T04:21:46.000Z
2022-01-30T06:42:50.000Z
""" Helpers for downsampling code. """ from operator import attrgetter from zipline.utils.input_validation import expect_element from zipline.utils.numpy_utils import changed_locations from zipline.utils.sharedoc import ( templated_docstring, PIPELINE_DOWNSAMPLING_FREQUENCY_DOC, ) _dt_to_period = { 'year_...
28.924242
79
0.711891
961bc5e1558cf9f0ca9e1174c5645728f55a54d7
1,029
py
Python
scripts/pyqtgraph-develop/pyqtgraph/graphicsItems/tests/test_GraphicsItem.py
kuldeepaman/tf-pose
8050912c52a7b4f3c8a2656f267d47ba21d093f6
[ "Apache-2.0" ]
null
null
null
scripts/pyqtgraph-develop/pyqtgraph/graphicsItems/tests/test_GraphicsItem.py
kuldeepaman/tf-pose
8050912c52a7b4f3c8a2656f267d47ba21d093f6
[ "Apache-2.0" ]
null
null
null
scripts/pyqtgraph-develop/pyqtgraph/graphicsItems/tests/test_GraphicsItem.py
kuldeepaman/tf-pose
8050912c52a7b4f3c8a2656f267d47ba21d093f6
[ "Apache-2.0" ]
null
null
null
import gc import weakref try: import faulthandler faulthandler.enable() except ImportError: pass import pyqtgraph as pg pg.mkQApp() def test_getViewWidget(): view = pg.PlotWidget() vref = weakref.ref(view) item = pg.InfiniteLine() view.addItem(item) assert item.getViewW...
21.893617
62
0.628766
bfd20e0979c5d26b50932314489962987fa44fe5
1,325
py
Python
django_cv_env/lib/python3.8/site-packages/django/contrib/admindocs/urls.py
vignif/django_cv
0426b47da82341e676adcf7b441a7b55a3fa2d78
[ "MIT" ]
null
null
null
django_cv_env/lib/python3.8/site-packages/django/contrib/admindocs/urls.py
vignif/django_cv
0426b47da82341e676adcf7b441a7b55a3fa2d78
[ "MIT" ]
null
null
null
django_cv_env/lib/python3.8/site-packages/django/contrib/admindocs/urls.py
vignif/django_cv
0426b47da82341e676adcf7b441a7b55a3fa2d78
[ "MIT" ]
null
null
null
from django.contrib.admindocs import views from django.urls import path, re_path urlpatterns = [ path( '', views.BaseAdminDocsView.as_view(template_name='admin_doc/index.html'), name='django-admindocs-docroot', ), path( 'educationmarklets/', views.EducationmarkletsVi...
25.980392
78
0.579623
15852b1dbf986224c4e1f8a7b474892a647b7c59
2,668
py
Python
07_itertools/test_bite17.py
covrebo/python100
758233f9a52b2ffae8cd5c44e6794aceb1fd1614
[ "MIT" ]
null
null
null
07_itertools/test_bite17.py
covrebo/python100
758233f9a52b2ffae8cd5c44e6794aceb1fd1614
[ "MIT" ]
1
2021-05-11T02:03:56.000Z
2021-05-11T02:03:56.000Z
07_itertools/test_bite17.py
covrebo/python100
758233f9a52b2ffae8cd5c44e6794aceb1fd1614
[ "MIT" ]
null
null
null
import pytest from bite17 import friends_teams friends = 'Bob Dante Julian Martin'.split() @pytest.mark.parametrize('test_input,expected', [ (('Bob', 'Dante'), True), (('Bob', 'Julian'), True), (('Bob', 'Martin'), True), (('Dante', 'Julian'), True), (('Dante', 'Martin'), True), (('Julian', '...
32.144578
79
0.609445
a6b46d9c3c572dad37d2c982659f0162f2c5a739
10,770
py
Python
natlas-server/app/elastic.py
thesubtlety/natlas
c7e6afc44244c5e0bb6dcadb3d11a45bd445540d
[ "Apache-2.0" ]
null
null
null
natlas-server/app/elastic.py
thesubtlety/natlas
c7e6afc44244c5e0bb6dcadb3d11a45bd445540d
[ "Apache-2.0" ]
null
null
null
natlas-server/app/elastic.py
thesubtlety/natlas
c7e6afc44244c5e0bb6dcadb3d11a45bd445540d
[ "Apache-2.0" ]
null
null
null
import json import elasticsearch import random import os import subprocess class Elastic: es = None status = False errrorinfo = '' natlasPipelines = ["geoip"] natlasIndices = ["nmap", "nmap_history"] def __init__(self, elasticURL): try: self.es = elasticsearch.Elasticsearc...
46.623377
157
0.402878
a6edc395e28af52770d7515daa9f771577b22bf4
3,030
py
Python
HealthPoint.py
serin-delaunay/fleohsis
b4e824eb6e0ccf7aa7cb2435936656399c92553a
[ "MIT" ]
1
2018-06-12T11:46:17.000Z
2018-06-12T11:46:17.000Z
HealthPoint.py
serin-delaunay/fleohsis
b4e824eb6e0ccf7aa7cb2435936656399c92553a
[ "MIT" ]
10
2017-03-06T04:42:58.000Z
2017-03-12T20:48:42.000Z
HealthPoint.py
serin-delaunay/fleohsis
b4e824eb6e0ccf7aa7cb2435936656399c92553a
[ "MIT" ]
null
null
null
# coding: utf-8 from typing import List, TypeVar from obsub import event from sortedcontainers import SortedListWithKey from AbilityBag import AbilityBag from Abilities import get_ability from Ability import Ability T = TypeVar('T', bound='HealthPoint') class HealthPoint(object): def __init__(self, name : str, ...
42.676056
84
0.605941
aa0236f798ad05a959d939f9e8e08144c95297e2
2,996
py
Python
Marker5/Hilbert.py
varsheshjp/game
2a47f2099aa0538301815272f749c63aa11e6ce1
[ "MIT" ]
null
null
null
Marker5/Hilbert.py
varsheshjp/game
2a47f2099aa0538301815272f749c63aa11e6ce1
[ "MIT" ]
null
null
null
Marker5/Hilbert.py
varsheshjp/game
2a47f2099aa0538301815272f749c63aa11e6ce1
[ "MIT" ]
null
null
null
def make_mapping(m): """ Return a dictionary built up of a single mapping m rotated and flipped. The keys are 2 character strings where the first is one of [,],u,n and the second is either 'a'nticlockwise or 'c'lockwise. The values are a list of integer, tuple pair which specify how to spl...
32.215054
76
0.535714
7dedab524f481d15bafbd2edd6c272f21b058669
8,367
py
Python
test/functional/feature_proxy.py
mmontuori/quarkcoin
c4da680fd4d852e3ba835d7fd23181a8f08e47db
[ "MIT" ]
null
null
null
test/functional/feature_proxy.py
mmontuori/quarkcoin
c4da680fd4d852e3ba835d7fd23181a8f08e47db
[ "MIT" ]
12
2021-05-31T22:55:50.000Z
2021-06-04T02:30:02.000Z
test/functional/feature_proxy.py
mmontuori/quarkcoin
c4da680fd4d852e3ba835d7fd23181a8f08e47db
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2018 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 monetad with different proxy configuration. Test plan: - Start monetad's with different proxy con...
41.420792
121
0.625672
19f3992a92389c4c62d27316c81136da744f2ce2
308
py
Python
xoeuf/tests/test_xoeuf_api/tests/__init__.py
merchise-autrement/xoeuf
583a0faa345480e73110d467203eefd142b0a710
[ "BSD-3-Clause" ]
3
2015-05-16T04:40:14.000Z
2016-01-26T05:36:20.000Z
xoeuf/tests/test_xoeuf_api/tests/__init__.py
merchise-autrement/xoeuf
583a0faa345480e73110d467203eefd142b0a710
[ "BSD-3-Clause" ]
null
null
null
xoeuf/tests/test_xoeuf_api/tests/__init__.py
merchise-autrement/xoeuf
583a0faa345480e73110d467203eefd142b0a710
[ "BSD-3-Clause" ]
1
2017-03-23T23:08:50.000Z
2017-03-23T23:08:50.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) Merchise Autrement [~º/~] and Contributors # All rights reserved. # # This is free software; you can do what the LICENCE file allows you to. # from . import test_api # noqa
30.8
72
0.525974
43109446c2af035cec1dba9aa1a3b0ac72ca68f7
1,818
py
Python
strategies/Pump.py
igolaizola/freqtrade
7475ac27c81922d39d90e1234199b1cb174c1166
[ "MIT" ]
15
2021-03-28T20:41:26.000Z
2021-07-20T11:20:11.000Z
strategies/Pump.py
igolaizola/freqtrade
7475ac27c81922d39d90e1234199b1cb174c1166
[ "MIT" ]
null
null
null
strategies/Pump.py
igolaizola/freqtrade
7475ac27c81922d39d90e1234199b1cb174c1166
[ "MIT" ]
5
2021-03-29T20:07:59.000Z
2022-02-22T22:10:57.000Z
# --- Do not remove these libs --- from freqtrade.strategy import IStrategy, merge_informative_pair from datetime import datetime, timedelta from freqtrade.persistence import Trade from pandas import DataFrame import pandas # -------------------------------- class Pump(IStrategy): """ author@: igolaizola ...
31.894737
108
0.638614
ceacc6af1ca867f3ffcc7847d5acabc1018b677d
172
py
Python
guitarHarmony/register.py
fuyuan-li/Guitar-Harmony
8cd836782bb19cbf39ce4a4722ea52d7988b2cc4
[ "MIT" ]
5
2020-03-15T19:09:59.000Z
2021-02-26T03:32:38.000Z
guitarHarmony/register.py
fuyuan-li/Guitar-Harmony
8cd836782bb19cbf39ce4a4722ea52d7988b2cc4
[ "MIT" ]
1
2020-03-30T06:46:17.000Z
2020-03-30T06:46:17.000Z
guitarHarmony/register.py
fuyuan-li/Guitar-Harmony
8cd836782bb19cbf39ce4a4722ea52d7988b2cc4
[ "MIT" ]
1
2020-03-30T05:59:24.000Z
2020-03-30T05:59:24.000Z
# -*- coding: utf-8 -*- # @Author: Xi He # @Date: 2020-03-21 12:34:40 # @Last Modified by: Xi He # @Last Modified time: 2020-03-21 12:36:06 from .helper import CONSTANT
28.666667
42
0.639535
0d24368ac235cc6c012368ffd0a757711cec3ceb
712
py
Python
dkeras/config/process_config.py
gndctrl2mjrtm/dkeras
97bcf176dbc96bd52cc6e19283159a6e73f0a4dc
[ "MIT" ]
195
2019-09-05T08:41:53.000Z
2022-03-09T14:04:07.000Z
dkeras/config/process_config.py
gndctrl2mjrtm/dkeras
97bcf176dbc96bd52cc6e19283159a6e73f0a4dc
[ "MIT" ]
4
2019-11-27T00:45:31.000Z
2020-03-11T14:12:44.000Z
dkeras/config/process_config.py
gndctrl2mjrtm/dkeras
97bcf176dbc96bd52cc6e19283159a6e73f0a4dc
[ "MIT" ]
14
2019-11-27T17:32:36.000Z
2022-02-12T03:55:15.000Z
#!/bin/env/python # -*- encoding: utf-8 -*- """ """ from __future__ import print_function, division import dkeras.config.config as config type_dict = { 'CPU_OVERLOAD_LIMIT': float, 'N_CPUS_PER_SERVER': int, 'N_CPUS_PER_WORKER': int } def verify_types(): """ :return: None """ local...
20.342857
74
0.599719
43a7e5b1d304bab2f4e750abab66ec03ecf1d69d
4,344
py
Python
venv/lib/python3.7/site-packages/telegram/ext/choseninlineresulthandler.py
danigfavero/ada
3c3842023c22510eedf207b23c418f22389622aa
[ "MIT" ]
1
2021-08-20T05:43:20.000Z
2021-08-20T05:43:20.000Z
venv/lib/python3.6/site-packages/telegram/ext/choseninlineresulthandler.py
assaufianggie/VerraBot
cbe46ccb219c2972871e760268b427e1f8e79f93
[ "MIT" ]
5
2021-03-31T19:34:39.000Z
2021-12-13T20:29:07.000Z
venv/lib/python3.6/site-packages/telegram/ext/choseninlineresulthandler.py
assaufianggie/VerraBot
cbe46ccb219c2972871e760268b427e1f8e79f93
[ "MIT" ]
1
2020-09-02T07:24:59.000Z
2020-09-02T07:24:59.000Z
#!/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 #...
49.931034
99
0.683702
a6d3574085f276b565fe3d9b7dfcec63e52b2ab7
1,662
py
Python
flaskblog/models.py
oecorrechag/ProyectoM
e21acfc44c566e9030b2931c7b450da9bcc1b19d
[ "MIT" ]
null
null
null
flaskblog/models.py
oecorrechag/ProyectoM
e21acfc44c566e9030b2931c7b450da9bcc1b19d
[ "MIT" ]
null
null
null
flaskblog/models.py
oecorrechag/ProyectoM
e21acfc44c566e9030b2931c7b450da9bcc1b19d
[ "MIT" ]
null
null
null
from datetime import datetime from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from flask import current_app from flaskblog import db, login_manager from flask_login import UserMixin @login_manager.user_loader def load_user(user_id): return User.query.get(int(user_id)) class User(db.Model,...
35.361702
81
0.690734
3f02ff84a26d33492b748b602335c14e59efc7ee
5,753
py
Python
checkov/common/util/docs_generator.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
null
null
null
checkov/common/util/docs_generator.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
null
null
null
checkov/common/util/docs_generator.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import re from typing import List, Optional, Tuple, Union from tabulate import tabulate from checkov.arm.registry import arm_resource_registry, arm_parameter_registry from checkov.bicep.checks.param.registry import registry as bicep_param_registry from checkov.bicep.checks.resource.registry imp...
55.317308
120
0.746046
f8b0b35c09c785b08cc76fff5d91f8b138396f08
982
py
Python
tests/test_json.py
JoshKarpel/iax
3f28ba2f94eb373b02ea080955f33681c951578c
[ "MIT" ]
null
null
null
tests/test_json.py
JoshKarpel/iax
3f28ba2f94eb373b02ea080955f33681c951578c
[ "MIT" ]
null
null
null
tests/test_json.py
JoshKarpel/iax
3f28ba2f94eb373b02ea080955f33681c951578c
[ "MIT" ]
null
null
null
import datetime import random import pytest from ix import ix def test_to_jsons(): @ix class JSON: a: int b: float d: str e: bool jsons = [ JSON(0, 1.8, 'hi', True), JSON(2, 5.3, 'lo', False), JSON(-10, -4.2, 'foo', True), ] expected = '[...
16.931034
148
0.5
b3ddffb8f2869b82f5a9c1b1b8c9bb343758e5f4
857
py
Python
src/command_modules/azure-cli-configure/azure/cli/command_modules/configure/commands.py
kristapratico/azure-cli
00d4ce5caed40758d4a13c428a28583d10c155cf
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-configure/azure/cli/command_modules/configure/commands.py
kristapratico/azure-cli
00d4ce5caed40758d4a13c428a28583d10c155cf
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-configure/azure/cli/command_modules/configure/commands.py
kristapratico/azure-cli
00d4ce5caed40758d4a13c428a28583d10c155cf
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
42.85
102
0.572929
71fa1053686b34be41af7c3ac5cc774b88081e14
4,036
py
Python
benchmark/startQiskit_noisy1011.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_noisy1011.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_noisy1011.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=5 # total number=41 import cirq import qiskit from qiskit.providers.aer import QasmSimulator from qiskit.test.mock import FakeVigo from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import ...
31.53125
82
0.61893
e5b009d0d07e01f4929836786ce1cb730508c633
3,506
py
Python
tests/test_eta_3_simple.py
Robpol86/etaprogress
224e8a248c2bf820bad218763281914ad3983fff
[ "MIT" ]
13
2015-08-25T05:54:21.000Z
2021-03-23T15:56:58.000Z
tests/test_eta_3_simple.py
Robpol86/etaprogress
224e8a248c2bf820bad218763281914ad3983fff
[ "MIT" ]
5
2015-03-14T16:31:38.000Z
2019-01-13T20:46:25.000Z
tests/test_eta_3_simple.py
Robpol86/etaprogress
224e8a248c2bf820bad218763281914ad3983fff
[ "MIT" ]
5
2015-05-31T14:16:50.000Z
2021-02-06T11:23:43.000Z
from etaprogress import eta def test_one(): eta_instance = eta.ETA(1) eta._NOW = lambda: 1411868722.680839 eta_instance.set_numerator(1) assert 1 == eta_instance.denominator assert eta_instance.eta_epoch is None assert 0.0 == eta_instance.rate assert 1 == eta_instance.numerator assert...
33.711538
54
0.736737
e14320e18a07497f6d86105edc01d72f6fb68b18
145,198
py
Python
doppler/rv.py
dnidever/radvel
7e97ee6537b69bfd4bde7e30d8b3639b00507163
[ "MIT" ]
null
null
null
doppler/rv.py
dnidever/radvel
7e97ee6537b69bfd4bde7e30d8b3639b00507163
[ "MIT" ]
null
null
null
doppler/rv.py
dnidever/radvel
7e97ee6537b69bfd4bde7e30d8b3639b00507163
[ "MIT" ]
null
null
null
#!/usr/bin/env python """RV.PY - Generic Radial Velocity Software """ from __future__ import print_function __authors__ = 'David Nidever <dnidever@montana.edu>' __version__ = '20210605' # yyyymmdd ...
38.698827
160
0.591468
451e90bea550796fa188607b230a6bfea10dd926
6,865
py
Python
libraries/botframework-connector/tests/test_auth.py
awaemmanuel/botbuilder-python
bcc85a49f1426ccf682205566fd03937ee6d315c
[ "MIT" ]
1
2019-05-31T10:55:15.000Z
2019-05-31T10:55:15.000Z
libraries/botframework-connector/tests/test_auth.py
awaemmanuel/botbuilder-python
bcc85a49f1426ccf682205566fd03937ee6d315c
[ "MIT" ]
null
null
null
libraries/botframework-connector/tests/test_auth.py
awaemmanuel/botbuilder-python
bcc85a49f1426ccf682205566fd03937ee6d315c
[ "MIT" ]
null
null
null
import pytest from botbuilder.schema import Activity from botframework.connector.auth import JwtTokenValidation from botframework.connector.auth import SimpleCredentialProvider from botframework.connector.auth import EmulatorValidation from botframework.connector.auth import ChannelValidation from botframework.connect...
58.675214
158
0.75295
4c056a7c6bfe871f925cd90d9aab06e383ec131b
339
py
Python
superadmin/urls.py
nkmrohit/python
bd644d51909cda548684b5da98eab998564f3568
[ "Apache-2.0" ]
null
null
null
superadmin/urls.py
nkmrohit/python
bd644d51909cda548684b5da98eab998564f3568
[ "Apache-2.0" ]
null
null
null
superadmin/urls.py
nkmrohit/python
bd644d51909cda548684b5da98eab998564f3568
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from django.conf.urls import include, url from django.urls import path from django.conf import settings from django.conf.urls.static import static import authUser.views urlpatterns = [ url('auth/', include('adminauth.urls')), ] + static(settings.MEDIA_URL, document_root=se...
21.1875
65
0.769912
8ff42132c461b74eb57d15e0f6df1f38c7d55644
20,290
py
Python
src/slurm_plugin/slurm_resources.py
lukeseawalker/cfncluster-node
0c7619a6440a5848a1d0bb3ff88c33b197055a48
[ "Apache-2.0" ]
33
2018-11-14T14:54:47.000Z
2022-03-22T23:47:51.000Z
src/slurm_plugin/slurm_resources.py
gmarciani/aws-parallelcluster-node
ab77de979f429676ef228a49fecd3cf28a6eec4c
[ "Apache-2.0" ]
180
2019-02-21T09:33:10.000Z
2022-03-31T08:01:28.000Z
src/slurm_plugin/slurm_resources.py
gmarciani/aws-parallelcluster-node
ab77de979f429676ef228a49fecd3cf28a6eec4c
[ "Apache-2.0" ]
35
2019-02-06T13:36:18.000Z
2022-03-01T12:54:05.000Z
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "LICENSE.txt" file accom...
41.492843
119
0.648448
8a2c43a2ce7edc4425faae33fb8cc260020487d6
3,942
py
Python
test/functional/p2p_feefilter.py
patrickdugan/BlockPo-to-Tradelayer
ba1ebf3c329751d414302577a09481ba28db1815
[ "MIT" ]
null
null
null
test/functional/p2p_feefilter.py
patrickdugan/BlockPo-to-Tradelayer
ba1ebf3c329751d414302577a09481ba28db1815
[ "MIT" ]
5
2021-06-21T21:21:53.000Z
2021-06-22T20:10:16.000Z
test/functional/p2p_feefilter.py
patrickdugan/BlockPo-to-Tradelayer
ba1ebf3c329751d414302577a09481ba28db1815
[ "MIT" ]
1
2021-06-21T21:14:45.000Z
2021-06-21T21:14:45.000Z
#!/usr/bin/env python3 # Copyright (c) 2016-2017 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 processing of feefilter messages.""" from test_framework.mininode import * from test_framework.te...
39.029703
96
0.662608
81f6e2ac54f1810cfd522811e9935cacd8b8c39b
8,184
py
Python
pilot/copytool/common.py
ptrlv/pilot2
c5a83e0eccf7de7bee81705064508198cf09cb49
[ "Apache-2.0" ]
null
null
null
pilot/copytool/common.py
ptrlv/pilot2
c5a83e0eccf7de7bee81705064508198cf09cb49
[ "Apache-2.0" ]
null
null
null
pilot/copytool/common.py
ptrlv/pilot2
c5a83e0eccf7de7bee81705064508198cf09cb49
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # 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 # # Authors: # - Tobias Wegner, tobias.wegner@cern.ch, 2017 # - Paul Nilsson, ...
39.921951
116
0.659213
d3cc0245efb050062a005341fc62d2b5dedd9e9a
1,425
py
Python
qucumber/__init__.py
silky/QuCumber
f0dd8725b8dd3a0c94f10f1a3b88a769c63a567f
[ "ECL-2.0", "Apache-2.0" ]
1
2019-06-27T11:26:29.000Z
2019-06-27T11:26:29.000Z
qucumber/__init__.py
silky/QuCumber
f0dd8725b8dd3a0c94f10f1a3b88a769c63a567f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
qucumber/__init__.py
silky/QuCumber
f0dd8725b8dd3a0c94f10f1a3b88a769c63a567f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2018 PIQuIL - All Rights Reserved # 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 Licens...
32.386364
85
0.720702
c99b7e55483bf1fc11e83311bd16ff2e8b99d417
5,545
py
Python
google/ads/google_ads/v6/proto/services/gender_view_service_pb2.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v6/proto/services/gender_view_service_pb2.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v6/proto/services/gender_view_service_pb2.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads/v6/services/gender_view_service.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import ...
52.809524
1,120
0.818034
7a701e1a94da219fb124addde8b739c7bbbc65b6
3,392
py
Python
src/sdp_readers.py
gabrielStanovsky/brat-visualizer
b741ea894795f56c46238ec5509d8783f6291a73
[ "MIT" ]
3
2019-07-16T20:44:39.000Z
2022-03-16T16:08:39.000Z
src/sdp_readers.py
gabrielStanovsky/brat-visualizer
b741ea894795f56c46238ec5509d8783f6291a73
[ "MIT" ]
null
null
null
src/sdp_readers.py
gabrielStanovsky/brat-visualizer
b741ea894795f56c46238ec5509d8783f6291a73
[ "MIT" ]
null
null
null
""" Common functions for reading sdp format. """ # External imports import logging import pdb from pprint import pprint from pprint import pformat from docopt import docopt import networkx as nx #import matplotlib.pyplot as plt # Local imports #---- def safe_zip(*lists): """ Zip while making sure all lists ...
28.745763
79
0.519458
a50746665e4bf18b03f55a396d137aa550a61f39
16,344
py
Python
setup.py
GArik/opencv-python
ad0668838a3446ceddecd3ab7f4bb68435e368d0
[ "Apache-2.0", "MIT" ]
null
null
null
setup.py
GArik/opencv-python
ad0668838a3446ceddecd3ab7f4bb68435e368d0
[ "Apache-2.0", "MIT" ]
null
null
null
setup.py
GArik/opencv-python
ad0668838a3446ceddecd3ab7f4bb68435e368d0
[ "Apache-2.0", "MIT" ]
null
null
null
import io import os import os.path import sys import runpy import subprocess import re import sysconfig import platform import skbuild from skbuild import cmaker def main(): os.chdir(os.path.dirname(os.path.abspath(__file__))) CI_BUILD = os.environ.get("CI_BUILD", "False") is_CI_build = True if CI_BUILD ...
35.68559
125
0.596427
ec576e197844f7c2320e2b6563d77fd1569e417b
2,298
py
Python
tests/test_chi_ssa_1.py
zarifmahmud/city-scrapers
52d6056001c8ea5e100dd686c52947836d63aff9
[ "MIT" ]
null
null
null
tests/test_chi_ssa_1.py
zarifmahmud/city-scrapers
52d6056001c8ea5e100dd686c52947836d63aff9
[ "MIT" ]
null
null
null
tests/test_chi_ssa_1.py
zarifmahmud/city-scrapers
52d6056001c8ea5e100dd686c52947836d63aff9
[ "MIT" ]
null
null
null
from datetime import date, time import pytest from freezegun import freeze_time from tests.utils import file_response from city_scrapers.constants import COMMISSION, CONFIRMED, PASSED, TENTATIVE from city_scrapers.spiders.chi_ssa_1 import ChiSsa1Spider test_response = file_response('files/chi_ssa_1.html') spider = C...
26.413793
144
0.695387
8fcde5aa01b53c0a475451d3b45264a00c1c9f47
1,332
py
Python
deli_menu/http/mounts/root/routes/metadata.py
sandwichcloud/deli-menu
ca7a3a88b71188124dc174e810c17e8b19a320b4
[ "MIT" ]
null
null
null
deli_menu/http/mounts/root/routes/metadata.py
sandwichcloud/deli-menu
ca7a3a88b71188124dc174e810c17e8b19a320b4
[ "MIT" ]
null
null
null
deli_menu/http/mounts/root/routes/metadata.py
sandwichcloud/deli-menu
ca7a3a88b71188124dc174e810c17e8b19a320b4
[ "MIT" ]
null
null
null
import cherrypy from ingredients_db.models.instance import Instance from ingredients_db.models.region import Region from ingredients_db.models.zones import Zone from ingredients_http.route import Route from ingredients_http.router import Router class MetaDataRouter(Router): def __init__(self): super().__...
32.487805
106
0.623874
d4f109f265a9ef80d103ea28f7cb435d0da19e52
220
py
Python
mirumon/main.py
mirumon/mirumon-backend
9b4d914b67dcc839ed8264f470e822dc22c98ad7
[ "MIT" ]
19
2020-01-25T22:52:09.000Z
2022-03-20T13:45:10.000Z
mirumon/main.py
mirumon/mirumon-backend
9b4d914b67dcc839ed8264f470e822dc22c98ad7
[ "MIT" ]
15
2019-10-07T18:18:40.000Z
2020-10-17T15:47:39.000Z
mirumon/main.py
mirumon/mirumon-backend
9b4d914b67dcc839ed8264f470e822dc22c98ad7
[ "MIT" ]
1
2020-01-20T14:16:29.000Z
2020-01-20T14:16:29.000Z
import uvicorn from mirumon.api.asgi import create_app from mirumon.settings.config import get_app_settings settings = get_app_settings() app = create_app(settings) if __name__ == "__main__": uvicorn.run(app=app)
20
52
0.786364
a5430cf8e3823cb1bf637dca2a204efd8777c749
5,568
py
Python
modifiers.py
mglac/S2C-excel-modifier-for-trading
03237c14cf60c715a43607cb53f33314674524d1
[ "MIT" ]
null
null
null
modifiers.py
mglac/S2C-excel-modifier-for-trading
03237c14cf60c715a43607cb53f33314674524d1
[ "MIT" ]
null
null
null
modifiers.py
mglac/S2C-excel-modifier-for-trading
03237c14cf60c715a43607cb53f33314674524d1
[ "MIT" ]
null
null
null
# modifiers.py - This class contains the methods used to alter the portfolio # spreadsheets to the desired format for trading assets. import os from openpyxl import styles from openpyxl import load_workbook from openpyxl import Workbook from tkinter import filedialog from tkinter import Text # excel_modifications Met...
45.639344
79
0.663973
ccd22d7f32a2c08ed895a76d5482386df233260a
5,693
py
Python
person_tracking/scripts/real_time_object_detection.py
CARMinesDouai/2020-RobotGuide-Freight
123f4ba42f09b36038b519c69fc42208478408f2
[ "MIT" ]
null
null
null
person_tracking/scripts/real_time_object_detection.py
CARMinesDouai/2020-RobotGuide-Freight
123f4ba42f09b36038b519c69fc42208478408f2
[ "MIT" ]
null
null
null
person_tracking/scripts/real_time_object_detection.py
CARMinesDouai/2020-RobotGuide-Freight
123f4ba42f09b36038b519c69fc42208478408f2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # USAGE # python real_time_object_detection.py --prototxt MobileNetSSD_deploy.prototxt.txt --model MobileNetSSD_deploy.caffemodel # import the necessary packages from imutils.video import VideoStream from imutils.video import FPS from geometry_msgs.msg import Twist from sensor_msgs.msg import Las...
29.045918
128
0.724925
323632b51b01039d6884d39eef1288ccbe680a73
916
py
Python
_draft/x_6_9_c.py
ofl/kuku2
7247fb1862d917d23258ebe7a93dca5939433225
[ "MIT" ]
null
null
null
_draft/x_6_9_c.py
ofl/kuku2
7247fb1862d917d23258ebe7a93dca5939433225
[ "MIT" ]
1
2021-11-13T08:03:04.000Z
2021-11-13T08:03:04.000Z
_draft/x_6_9_c.py
ofl/kuku2
7247fb1862d917d23258ebe7a93dca5939433225
[ "MIT" ]
null
null
null
# x_6_9 # # class CardErorr(Exception): pass class StoreErorr(Exception): pass class StockError(StoreErorr): pass class ZipcodeError(StoreErorr): pass class ExpiredError(CardErorr): pass class NumberError(CardErorr): pass order_count = input('きび団子を何個注文しますか?:') zipcode = input('郵便番号を...
17.615385
62
0.675764
f6c1886cb58f26bd7f951bc947a23fce51e311ba
10,282
py
Python
exercises/rest-api/rest_api_test.py
Grociu/fork-of-exercism-python
8aed8612117d5f9fa9db56a2b4bdc6143f6e15fd
[ "MIT" ]
41
2015-02-09T18:08:45.000Z
2022-03-06T15:23:32.000Z
exercises/rest-api/rest_api_test.py
Grociu/fork-of-exercism-python
8aed8612117d5f9fa9db56a2b4bdc6143f6e15fd
[ "MIT" ]
21
2019-12-28T17:47:06.000Z
2021-02-27T19:43:00.000Z
exercises/rest-api/rest_api_test.py
Grociu/fork-of-exercism-python
8aed8612117d5f9fa9db56a2b4bdc6143f6e15fd
[ "MIT" ]
18
2016-04-29T14:35:12.000Z
2021-06-23T07:32:29.000Z
import unittest import json from rest_api import RestAPI # Tests adapted from `problem-specifications//canonical-data.json` @ v1.1.1 class RestAPITest(unittest.TestCase): def test_no_users(self): database = {"users": []} api = RestAPI(database) response = api.get('/users') self.a...
26.986877
75
0.264637
67bfa4eeb220f01ba271e8a17610d6b2b82caa27
8,036
py
Python
noxfile.py
cojenco/python-storage
79b669bbede1cd4f06f1d697b71c7f9f2442fb80
[ "Apache-2.0" ]
null
null
null
noxfile.py
cojenco/python-storage
79b669bbede1cd4f06f1d697b71c7f9f2442fb80
[ "Apache-2.0" ]
null
null
null
noxfile.py
cojenco/python-storage
79b669bbede1cd4f06f1d697b71c7f9f2442fb80
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
32.666667
84
0.649701
d503dd6dc640f3e0a5c6e46789b1889d3cd56e2f
10,031
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/modules/network/fortios/fortios_system_replacemsg_ec.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/venv/lib/python2.7/site-packages/ansible/modules/network/fortios/fortios_system_replacemsg_ec.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
32
2018-10-09T04:13:42.000Z
2020-05-11T07:20:28.000Z
ansible/venv/lib/python2.7/site-packages/ansible/modules/network/fortios/fortios_system_replacemsg_ec.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
11
2018-10-09T00:14:53.000Z
2021-11-03T10:54:09.000Z
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019 Fortinet, Inc. # # 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 3 of the Lic...
29.502941
101
0.596152
2cc24ce40dd0be5944ef45c17b02b7192f49653a
59,189
py
Python
infoblox_netmri/api/broker/v3_6_0/auth_service_broker.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/broker/v3_6_0/auth_service_broker.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
infoblox_netmri/api/broker/v3_6_0/auth_service_broker.py
IngmarVG-IB/infoblox-netmri
b0c725fd64aee1890d83917d911b89236207e564
[ "Apache-2.0" ]
null
null
null
from ..broker import Broker class AuthServiceBroker(Broker): controller = "auth_services" def show(self, **kwargs): """Shows the details for the specified auth service. **Inputs** | ``api version min:`` None | ``api version max:`` None ...
45.21696
551
0.576273
8a77c01b8f406eac0194dde8ff68f36a1f189a7b
617
py
Python
forum/migrations/0027_c.py
shmilyoo/ggxxBBS
cef6408e533bd0b0f57c3e2f5da4e93ea07c4331
[ "MIT" ]
null
null
null
forum/migrations/0027_c.py
shmilyoo/ggxxBBS
cef6408e533bd0b0f57c3e2f5da4e93ea07c4331
[ "MIT" ]
null
null
null
forum/migrations/0027_c.py
shmilyoo/ggxxBBS
cef6408e533bd0b0f57c3e2f5da4e93ea07c4331
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('forum', '0026_a_b'), ] operations = [ migrations.CreateModel( name='C', fields=[ ('i...
23.730769
76
0.523501
c7b6ca60dd2bb29a50f7e726b0325d56cbd04d1d
2,322
py
Python
applications/FootballAction/train_lstm/scenario_lib/config.py
XYZ916829/PaddleVideo
8e422ee9fd4e08b711e80b7e9ff627c331f31c30
[ "Apache-2.0" ]
5
2022-01-30T07:35:58.000Z
2022-02-08T05:45:20.000Z
applications/FootballAction/train_lstm/scenario_lib/config.py
liutinglong/PaddleVideo
6b8a723360ac652ca7aafa1908e6c67a67cf5ea5
[ "Apache-2.0" ]
null
null
null
applications/FootballAction/train_lstm/scenario_lib/config.py
liutinglong/PaddleVideo
6b8a723360ac652ca7aafa1908e6c67a67cf5ea5
[ "Apache-2.0" ]
1
2022-01-24T16:27:01.000Z
2022-01-24T16:27:01.000Z
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve. # # 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 applic...
27.317647
74
0.594746
753c3e1d1006ffe29675a1567579dd3bea800956
675
py
Python
setup.py
thearn/github-auto-tools
ce9227a2407c45710a09e7a32eebf1568a068c92
[ "Apache-2.0" ]
1
2020-07-16T17:26:11.000Z
2020-07-16T17:26:11.000Z
setup.py
silky/github-auto-tools
ce9227a2407c45710a09e7a32eebf1568a068c92
[ "Apache-2.0" ]
4
2020-11-22T21:11:15.000Z
2020-11-29T15:33:16.000Z
setup.py
silky/github-auto-tools
ce9227a2407c45710a09e7a32eebf1568a068c92
[ "Apache-2.0" ]
1
2016-06-04T09:19:51.000Z
2016-06-04T09:19:51.000Z
from setuptools import setup, find_packages import sys, os setup(name='github_clonetools', version='0.1', description="Command line tools to clone all github repos of a given account", author='Tristan Hearn', author_email='tristanhearn@gmail.com', url='https://github.com/thearn/github-auto-tools',...
30.681818
82
0.69037
83bff45fb9ffa4c4e7cfe41932c8676163d74ec1
5,229
py
Python
tests/test_cmd_resetdep.py
m4ta1l/doit
d1a1b7b3abc7641d977d3b78b580d97aea4e27ea
[ "MIT" ]
1,390
2015-01-01T21:11:47.000Z
2022-03-31T11:35:44.000Z
tests/test_cmd_resetdep.py
m4ta1l/doit
d1a1b7b3abc7641d977d3b78b580d97aea4e27ea
[ "MIT" ]
393
2015-01-05T11:18:29.000Z
2022-03-20T11:46:46.000Z
tests/test_cmd_resetdep.py
m4ta1l/doit
d1a1b7b3abc7641d977d3b78b580d97aea4e27ea
[ "MIT" ]
176
2015-01-07T16:58:56.000Z
2022-03-28T12:12:11.000Z
from io import StringIO import pytest from doit.cmd_resetdep import ResetDep from doit.dependency import TimestampChecker, get_md5, get_file_md5 from doit.exceptions import InvalidCommand from doit.task import Task from tests.conftest import tasks_sample, CmdFactory, get_abspath class TestCmdResetDep(object): ...
42.169355
81
0.605852
d92041b03487fbbcb917e572313bc66fef689c77
1,660
py
Python
node/util.py
martindale/OpenBazaar
620012832d614992d1097f66c75b24c1fa6648e5
[ "MIT" ]
null
null
null
node/util.py
martindale/OpenBazaar
620012832d614992d1097f66c75b24c1fa6648e5
[ "MIT" ]
null
null
null
node/util.py
martindale/OpenBazaar
620012832d614992d1097f66c75b24c1fa6648e5
[ "MIT" ]
1
2020-07-15T05:03:34.000Z
2020-07-15T05:03:34.000Z
import os import sys import webbrowser import platform def is_mac(): os_name = platform.uname()[0] return os_name == 'Darwin' def open_default_webbrowser(url, protocol="http"): """ Open URL at the default browser. @param url: The URL to open. @type url: str @param protocol: The interne...
28.62069
79
0.61988
d51c28c810964e609fa0edbccaab5a931d8cfc80
10,114
py
Python
google/ads/googleads/v5/services/services/location_view_service/transports/grpc.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v5/services/services/location_view_service/transports/grpc.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v5/services/services/location_view_service/transports/grpc.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
41.281633
90
0.6228
a439b267021d7c5df887c99d6d3d4c3e5e0da21f
4,797
py
Python
segment tree 2/2E.py
iammanish17/CodeforcesEdu
961543b332c773010320bd0b2e9d4a4b1c8dc0ea
[ "MIT" ]
6
2020-09-14T19:16:23.000Z
2021-12-10T19:07:51.000Z
segment tree 2/2E.py
iammanish17/CodeforcesEdu
961543b332c773010320bd0b2e9d4a4b1c8dc0ea
[ "MIT" ]
null
null
null
segment tree 2/2E.py
iammanish17/CodeforcesEdu
961543b332c773010320bd0b2e9d4a4b1c8dc0ea
[ "MIT" ]
1
2021-08-12T19:37:22.000Z
2021-08-12T19:37:22.000Z
# By manish.17, contest: ITMO Academy. Дерево отрезков 2 - 2, problem: (E) Assignment and Minimum # https://codeforces.com/profile/manish.17 import os import sys from io import BytesIO, IOBase BUFSIZE = 8192 class FastIO(IOBase): newlines = 0 def __init__(self, file): self._fd = file.fileno() ...
33.545455
138
0.543673
d4a661f5d8a0b900ebf54dfd1e80945fe2156980
26,488
py
Python
Windows_Version.py
radonintro1234/inventory-tracking-system
df26907630a19cb10a720ad111173a381bd530ff
[ "MIT" ]
null
null
null
Windows_Version.py
radonintro1234/inventory-tracking-system
df26907630a19cb10a720ad111173a381bd530ff
[ "MIT" ]
null
null
null
Windows_Version.py
radonintro1234/inventory-tracking-system
df26907630a19cb10a720ad111173a381bd530ff
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- __version__ = "0.1.1 for Windows 10" __author__ = "Rishi Mule, Shubham Mulik, Gaurav Gend, Vedant Padwal" __license__ = 'MIT' from tkinter import * from tkinter import ttk from tkinter import messagebox from dbToCSV import toCSV from csvToPdf import CsvtoPDF from dialog impo...
56.598291
218
0.39516
bd76b6b6ee215e096b2b0924ab60e7d5ae5c5080
6,057
py
Python
djangocms_events/south_migrations/0010_auto__add_field_event_target_page.py
kohout/djangocms-getaweb-events
e02f635748c919ba4092790d5c14d05645cd8bc9
[ "Unlicense" ]
null
null
null
djangocms_events/south_migrations/0010_auto__add_field_event_target_page.py
kohout/djangocms-getaweb-events
e02f635748c919ba4092790d5c14d05645cd8bc9
[ "Unlicense" ]
null
null
null
djangocms_events/south_migrations/0010_auto__add_field_event_target_page.py
kohout/djangocms-getaweb-events
e02f635748c919ba4092790d5c14d05645cd8bc9
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Event.target_page' db.add_column(u'djangocms_events_event...
66.56044
177
0.579165
6d483295229e88d0b0fe472751c0f43066742443
4,260
py
Python
lib/utils.py
tijsmaas/TrafficPrediction
9129faea8fee8c2d90595d2974f0b11030ad2674
[ "MIT" ]
17
2020-08-16T04:17:57.000Z
2022-02-28T01:13:49.000Z
lib/utils.py
tijsmaas/TrafficPrediction
9129faea8fee8c2d90595d2974f0b11030ad2674
[ "MIT" ]
null
null
null
lib/utils.py
tijsmaas/TrafficPrediction
9129faea8fee8c2d90595d2974f0b11030ad2674
[ "MIT" ]
5
2020-05-23T07:47:15.000Z
2021-11-16T15:05:05.000Z
import scipy.sparse as sp from lib.dataloaders.dataloader import * from scipy.sparse import linalg import numpy as np import pickle def sym_adj(adj): """Symmetrically normalize adjacency matrix.""" adj = sp.coo_matrix(adj) rowsum = np.array(adj.sum(1)) d_inv_sqrt = np.power(rowsum, -0.5).flatten() ...
34.634146
113
0.669718
5e0ffb9e4479ab798e2c84cde42a609743d1a419
26
py
Python
python/testData/psi/DictMissingValue.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/psi/DictMissingValue.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/psi/DictMissingValue.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
dl = {key1: value1, key2:}
26
26
0.615385
30ef5b615a6040925aa0ff2239d3c905067bf712
1,034
py
Python
rapidez/main/forms.py
asisbagga-dev/RapidezWriter
e1453e69978b6def402ea64805415e6758ee4459
[ "MIT" ]
null
null
null
rapidez/main/forms.py
asisbagga-dev/RapidezWriter
e1453e69978b6def402ea64805415e6758ee4459
[ "MIT" ]
11
2021-04-06T18:30:11.000Z
2022-03-12T00:53:28.000Z
rapidez/main/forms.py
asisbagga-dev/RapidezWriter
e1453e69978b6def402ea64805415e6758ee4459
[ "MIT" ]
null
null
null
from django import forms from .models import Database, Category, Testimonials from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User class Databaseform(forms.ModelForm): class Meta: model = Database fields = ('heading', 'description', ...
33.354839
97
0.667311
e2d8eccfa0868ce494e9b037529d59c28989f8cf
10,690
py
Python
tensorflow_lite_support/python/test/task/vision/image_classifier_test.py
ccen-stripe/tflite-support
a92abc7eb8bd08c1fb8b26fecf394e0f8fcf3654
[ "Apache-2.0" ]
null
null
null
tensorflow_lite_support/python/test/task/vision/image_classifier_test.py
ccen-stripe/tflite-support
a92abc7eb8bd08c1fb8b26fecf394e0f8fcf3654
[ "Apache-2.0" ]
null
null
null
tensorflow_lite_support/python/test/task/vision/image_classifier_test.py
ccen-stripe/tflite-support
a92abc7eb8bd08c1fb8b26fecf394e0f8fcf3654
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 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...
37.907801
90
0.724228
9197cb6e3a218c9c6f7dc65d7d2de551ba0668fd
103
py
Python
python3/func.py
eiadshahtout/Python
b2406b0806bc55a9d8f5482a304a8d6968249018
[ "MIT" ]
null
null
null
python3/func.py
eiadshahtout/Python
b2406b0806bc55a9d8f5482a304a8d6968249018
[ "MIT" ]
null
null
null
python3/func.py
eiadshahtout/Python
b2406b0806bc55a9d8f5482a304a8d6968249018
[ "MIT" ]
null
null
null
def spam(): eggs = 99 bacon() print(eggs) def bacon(): ham = 101 eggs = 0 spam()
10.3
15
0.485437
79b3da64c89f9152072afde814c1596079a73445
2,366
py
Python
core/datastream/change.py
xUndero/noc
9fb34627721149fcf7064860bd63887e38849131
[ "BSD-3-Clause" ]
1
2019-09-20T09:36:48.000Z
2019-09-20T09:36:48.000Z
core/datastream/change.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
core/datastream/change.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ---------------------------------------------------------------------- # DataStream change notification # ---------------------------------------------------------------------- # Copyright (C) 2007-2018 The NOC Project # See LICENSE for details # -----------------------------------------------...
24.645833
77
0.610313
a759be85790b9d4d4dbe38e7c7e37eed3c3ad62a
2,525
py
Python
statsmodels/datasets/committee/data.py
escheffel/statsmodels
bc70147c4c7ea00b6ac7256bbaf107902983c189
[ "BSD-3-Clause" ]
2
2017-01-05T22:44:37.000Z
2018-04-26T08:34:00.000Z
statsmodels/datasets/committee/data.py
changhiskhan/statsmodels
af26395e8b75b112ae7b3099532aefd8d002b8ca
[ "BSD-3-Clause" ]
null
null
null
statsmodels/datasets/committee/data.py
changhiskhan/statsmodels
af26395e8b75b112ae7b3099532aefd8d002b8ca
[ "BSD-3-Clause" ]
null
null
null
"""First 100 days of the US House of Representatives 1995""" __docformat__ = 'restructuredtext' COPYRIGHT = """Used with express permission from the original author, who retains all rights.""" TITLE = __doc__ SOURCE = """ Jeff Gill's `Generalized Linear Models: A Unifited Approach` http://jgill.wustl.ed...
35.069444
79
0.725149
ede6f55df27cbc102012eb8d7a7312413cdb6ded
13,895
py
Python
pipelines.py
flash-ai-fydp/question_generation
fba1e2292e26207b99db8dc783536b9bf51d786e
[ "MIT" ]
null
null
null
pipelines.py
flash-ai-fydp/question_generation
fba1e2292e26207b99db8dc783536b9bf51d786e
[ "MIT" ]
null
null
null
pipelines.py
flash-ai-fydp/question_generation
fba1e2292e26207b99db8dc783536b9bf51d786e
[ "MIT" ]
null
null
null
import itertools import logging from typing import Optional, Dict, Union from nltk import sent_tokenize import torch from transformers import( AutoModelForSeq2SeqLM, AutoTokenizer, PreTrainedModel, PreTrainedTokenizer, ) logger = logging.getLogger(__name__) class QGPipeline: """Poor man's QG pi...
34.224138
179
0.59158
debae7eecb3a915e6d20c4737934f796dd5c57b7
1,794
py
Python
src/m1_motion.py
boewebe/06-IntroductionToRobots
85df9a4caccd4246e3674753a81fe0ae687090d3
[ "MIT" ]
null
null
null
src/m1_motion.py
boewebe/06-IntroductionToRobots
85df9a4caccd4246e3674753a81fe0ae687090d3
[ "MIT" ]
null
null
null
src/m1_motion.py
boewebe/06-IntroductionToRobots
85df9a4caccd4246e3674753a81fe0ae687090d3
[ "MIT" ]
null
null
null
""" An opportunity to explore how to make an EV3 Robot move. Authors: Dave Fisher, David Mutchler, Vibha Alangar, their colleagues, and Brendan Boewe. """ # DONE: 1. PUT YOUR NAME IN THE ABOVE LINE. # ----------------------------------------------------------------------------- # TODO: 2. # Follow along with the l...
32.035714
79
0.554069
7e0647d92db805932df3616a04c69ccd7d1c34eb
6,761
py
Python
tests/test_07_oob_entity.py
sklemer1/fedoidcmsg
b5e48de7a2e55c93915df1b274770134e77888c8
[ "Apache-2.0" ]
1
2018-05-09T20:47:06.000Z
2018-05-09T20:47:06.000Z
tests/test_07_oob_entity.py
sklemer1/fedoidcmsg
b5e48de7a2e55c93915df1b274770134e77888c8
[ "Apache-2.0" ]
null
null
null
tests/test_07_oob_entity.py
sklemer1/fedoidcmsg
b5e48de7a2e55c93915df1b274770134e77888c8
[ "Apache-2.0" ]
1
2018-10-04T13:55:58.000Z
2018-10-04T13:55:58.000Z
import os from urllib.parse import quote_plus from oidcmsg.key_jar import KeyJar from oidcmsg.key_jar import build_keyjar from oidcmsg.key_jar import public_keys_keyjar from oidcmsg.oauth2 import Message from fedoidcmsg import MetadataStatement from fedoidcmsg.bundle import JWKSBundle from fedoidcmsg.entity import Fe...
35.213542
83
0.633782
4d4db935980cef08c9a01f37d8841233ce019348
1,113
py
Python
share/rpcuser/rpcuser.py
VadiqueMe/dogecoin
e1aeae0e40dbc13c17fd8f8c0cc5c639e936b10f
[ "MIT" ]
1
2021-01-03T13:55:19.000Z
2021-01-03T13:55:19.000Z
share/rpcuser/rpcuser.py
VadiqueMe/dogecoin
e1aeae0e40dbc13c17fd8f8c0cc5c639e936b10f
[ "MIT" ]
2
2020-01-01T05:27:26.000Z
2021-01-06T08:04:47.000Z
share/rpcuser/rpcuser.py
VadiqueMe/dogecoin
e1aeae0e40dbc13c17fd8f8c0cc5c639e936b10f
[ "MIT" ]
1
2021-01-03T13:39:37.000Z
2021-01-03T13:39:37.000Z
#!/usr/bin/env python2 # 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 import hashlib import sys import os from random import SystemRandom import base64 import hmac if len(sy...
26.5
79
0.728661
85e15bb11c30c485cadae7a08d9507c19011677c
632
py
Python
config.py
jamietsadler/itx_nabla
c9696c75f9ca02796b9c89e4656013722f15b075
[ "MIT" ]
null
null
null
config.py
jamietsadler/itx_nabla
c9696c75f9ca02796b9c89e4656013722f15b075
[ "MIT" ]
60
2021-09-13T07:19:50.000Z
2022-03-29T07:18:18.000Z
config.py
jamietsadler/itx_nabla
c9696c75f9ca02796b9c89e4656013722f15b075
[ "MIT" ]
null
null
null
"""Flask configuration.""" from os import environ, path from dotenv import load_dotenv basedir = path.abspath(path.dirname(__file__)) load_dotenv(path.join(basedir, '.env')) class Config: """Set Flask config variables.""" FLASK_ENV = 'development' TESTING = True SECRET_KEY = environ.get('SECRET_KEY'...
26.333333
68
0.712025
5afee75a91dc41f48230b292ccc4813ddf9fab99
2,077
py
Python
zvt/recorders/eastmoney/dividend_financing/spo_detail_recorder.py
Evergreen2020/zvt
446a2512d716a38a12164b6d4468a6c9de01b986
[ "MIT" ]
1
2020-04-06T04:17:53.000Z
2020-04-06T04:17:53.000Z
zvt/recorders/eastmoney/dividend_financing/spo_detail_recorder.py
Evergreen2020/zvt
446a2512d716a38a12164b6d4468a6c9de01b986
[ "MIT" ]
2
2019-12-20T13:12:30.000Z
2020-01-03T06:24:30.000Z
zvt/recorders/eastmoney/dividend_financing/spo_detail_recorder.py
Evergreen2020/zvt
446a2512d716a38a12164b6d4468a6c9de01b986
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from zvdata.utils.pd_utils import pd_is_not_null from zvdata.utils.time_utils import now_pd_timestamp from zvdata.utils.utils import to_float from zvt.api.api import get_dividend_financing, get_spo_detail from zvt.domain import SpoDetail, DividendFinancing from zvt.recorders.eastmoney.common imp...
38.462963
101
0.614829
04f3516c6d09788a13ae0fe4217bfa02721bc48b
82,178
py
Python
snmp/tests/test_profiles.py
szibis/integrations-core
e8eb6484a7aea40f5919929e02608cbe4babaacf
[ "BSD-3-Clause" ]
null
null
null
snmp/tests/test_profiles.py
szibis/integrations-core
e8eb6484a7aea40f5919929e02608cbe4babaacf
[ "BSD-3-Clause" ]
null
null
null
snmp/tests/test_profiles.py
szibis/integrations-core
e8eb6484a7aea40f5919929e02608cbe4babaacf
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2020-present # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import logging import pytest from datadog_checks.base import ConfigurationError from datadog_checks.dev.utils import get_metadata_metrics from datadog_checks.snmp import SnmpCheck from datadog_checks.snmp.util...
41.462159
120
0.672881
76a696faa434f1a385919c7aa42b0c62bf8e9a58
2,644
py
Python
scons-local-1.1.0/SCons/Tool/CVS.py
frew/simpleproto
393a7a059802152c888130c0a117fcc62d4fc8ab
[ "BSD-2-Clause", "MIT" ]
null
null
null
scons-local-1.1.0/SCons/Tool/CVS.py
frew/simpleproto
393a7a059802152c888130c0a117fcc62d4fc8ab
[ "BSD-2-Clause", "MIT" ]
null
null
null
scons-local-1.1.0/SCons/Tool/CVS.py
frew/simpleproto
393a7a059802152c888130c0a117fcc62d4fc8ab
[ "BSD-2-Clause", "MIT" ]
null
null
null
"""SCons.Tool.CVS.py Tool-specific initialization for CVS. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The SCons Foundation # # Permission...
38.882353
103
0.674357
f193a4793b5413eef85ecfb9fcbc48939954de51
2,449
py
Python
RGB_LED_Control.py
Linja82/Raspberry-Pi-RGB-LED-Control-w-GUI
295c58f9a126bf72b03e2d3d59c0747daff6e912
[ "MIT" ]
null
null
null
RGB_LED_Control.py
Linja82/Raspberry-Pi-RGB-LED-Control-w-GUI
295c58f9a126bf72b03e2d3d59c0747daff6e912
[ "MIT" ]
null
null
null
RGB_LED_Control.py
Linja82/Raspberry-Pi-RGB-LED-Control-w-GUI
295c58f9a126bf72b03e2d3d59c0747daff6e912
[ "MIT" ]
null
null
null
from tkinter import * import RPi.GPIO as GPIO import time ##### NOTES ##### # The common anode pin connects to the 3.3V rail # Duty cycle values need to be inverted because the LED is common anode # Higher duty cycle reduces the voltage difference between the GPIO pin and the 3.3V rail # Resistors: # Red: 200 Ω # ...
24.989796
91
0.648428
3a3ad300f5b6f7114ca10cd9739e425d90ef1196
659
py
Python
examples/redirect_requests.py
sebdraven/mitmproxy
6a31d3271219dffc9786f08e387ad5dc812fe86c
[ "MIT" ]
2
2015-05-10T15:07:44.000Z
2016-01-04T21:13:01.000Z
examples/redirect_requests.py
kmanna/mitmproxy
f850bdd8483907b297804ab0f8d07ff1cb456ff5
[ "MIT" ]
null
null
null
examples/redirect_requests.py
kmanna/mitmproxy
f850bdd8483907b297804ab0f8d07ff1cb456ff5
[ "MIT" ]
null
null
null
from libmproxy.flow import Response from netlib.odict import ODictCaseless """ This example shows two ways to redirect flows to other destinations. """ def request(context, flow): if flow.request.host.endswith("example.com"): resp = Response(flow.request, [1,1], ...
32.95
70
0.561457
b2cdb79eaa0e2fb2bd5cf8b32803b2b2e0268f83
1,275
py
Python
authors/apps/articles/migrations/0003_auto_20180925_1142.py
andela/ah-leagueOfLegends
ebe3a4621a5baf36a9345d4b126ba73dc37acd1f
[ "BSD-3-Clause" ]
null
null
null
authors/apps/articles/migrations/0003_auto_20180925_1142.py
andela/ah-leagueOfLegends
ebe3a4621a5baf36a9345d4b126ba73dc37acd1f
[ "BSD-3-Clause" ]
43
2018-08-27T16:53:58.000Z
2022-03-11T23:28:24.000Z
authors/apps/articles/migrations/0003_auto_20180925_1142.py
andela/ah-leagueOfLegends
ebe3a4621a5baf36a9345d4b126ba73dc37acd1f
[ "BSD-3-Clause" ]
2
2018-10-30T10:30:35.000Z
2018-11-12T07:48:02.000Z
# Generated by Django 2.1 on 2018-09-25 11:42 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('articles', '0002_report'),...
33.552632
150
0.607843
c7299c637ea4dc17f7beac2b8418db19371ed43a
3,021
py
Python
src/graphql/utilities/get_introspection_query.py
KingDarBoja/graphql-core
22970e94f1016e813848fc0ab5d1e7ab9ad612e4
[ "MIT" ]
1
2021-07-27T20:47:34.000Z
2021-07-27T20:47:34.000Z
src/graphql/utilities/get_introspection_query.py
KingDarBoja/graphql-core
22970e94f1016e813848fc0ab5d1e7ab9ad612e4
[ "MIT" ]
null
null
null
src/graphql/utilities/get_introspection_query.py
KingDarBoja/graphql-core
22970e94f1016e813848fc0ab5d1e7ab9ad612e4
[ "MIT" ]
null
null
null
from textwrap import dedent __all__ = ["get_introspection_query"] def get_introspection_query( descriptions: bool = True, specified_by_url: bool = False, directive_is_repeatable: bool = False, schema_description: bool = False, ) -> str: """Get a query for introspection. Optionally, you can e...
25.175
85
0.438265
6b84f803137196cc212dae9f55083afd5cfec7bd
265
py
Python
tests/conftest.py
cammeronm/trickster
b7e3d64f2c3b99e986f4fde59a05caa1c7cadac9
[ "MIT" ]
null
null
null
tests/conftest.py
cammeronm/trickster
b7e3d64f2c3b99e986f4fde59a05caa1c7cadac9
[ "MIT" ]
null
null
null
tests/conftest.py
cammeronm/trickster
b7e3d64f2c3b99e986f4fde59a05caa1c7cadac9
[ "MIT" ]
null
null
null
import pytest from trickster.api_app import ApiApp from trickster.config import Config @pytest.fixture def config(): return Config() @pytest.fixture def app(config): return ApiApp(config) @pytest.fixture def client(app): return app.test_client()
13.25
36
0.743396
4ba782ef9203a320ede7c1102479d5729fbaae73
7,878
py
Python
S01 - Bootcamp and Binary Classification/SLU16 - Data Sufficiency and Selection/utils.py
jtiagosg/batch3-students
5eb94bee46625881e9470da2b137aaa0f6cf7912
[ "MIT" ]
12
2019-07-06T09:06:17.000Z
2020-11-13T00:58:42.000Z
S01 - Bootcamp and Binary Classification/SLU16 - Data Sufficiency and Selection/utils.py
jtiagosg/batch3-students
5eb94bee46625881e9470da2b137aaa0f6cf7912
[ "MIT" ]
29
2019-07-01T14:19:49.000Z
2021-03-24T13:29:50.000Z
S01 - Bootcamp and Binary Classification/SLU16 - Data Sufficiency and Selection/utils.py
jtiagosg/batch3-students
5eb94bee46625881e9470da2b137aaa0f6cf7912
[ "MIT" ]
36
2019-07-05T15:53:35.000Z
2021-07-04T04:18:02.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.model_selection import learning_curve from sklearn.model_selection import train_test_split from sklearn.tree import DecisionTreeClassifier from sklearn.linear_model import LogisticRegression from sklearn.preprocessing import OneHotEncod...
35.486486
86
0.675679
a448a96869d2205cdfb4cdf8c9b5cdc800e32870
1,854
py
Python
openquake/hazardlib/tests/gsim/pezeshk_2011_test.py
gfzriesgos/shakyground-lfs
2caf67cc32e6800286eded2df1efb05973ccf41b
[ "BSD-3-Clause" ]
1
2019-08-01T00:28:24.000Z
2019-08-01T00:28:24.000Z
openquake/hazardlib/tests/gsim/pezeshk_2011_test.py
gfzriesgos/shakyground-lfs
2caf67cc32e6800286eded2df1efb05973ccf41b
[ "BSD-3-Clause" ]
4
2018-08-31T14:14:35.000Z
2021-10-11T12:53:13.000Z
openquake/hazardlib/tests/gsim/pezeshk_2011_test.py
gfzriesgos/shakyground-lfs
2caf67cc32e6800286eded2df1efb05973ccf41b
[ "BSD-3-Clause" ]
3
2018-08-31T14:11:00.000Z
2019-07-17T10:06:02.000Z
# -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (C) 2013-2018 GEM Foundation # # OpenQuake is free software: you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the Licen...
36.352941
74
0.70658
f954302ee30286eefa44a77cf8a43a2be480da2d
158
py
Python
src/Python/cvdrun.py
apoorva-25/Learning-Git
0b2676b18a8198355e6075fae28233cfedd4ee5e
[ "MIT" ]
null
null
null
src/Python/cvdrun.py
apoorva-25/Learning-Git
0b2676b18a8198355e6075fae28233cfedd4ee5e
[ "MIT" ]
2
2020-09-24T11:36:34.000Z
2020-09-30T14:17:53.000Z
src/Python/cvdrun.py
apoorva-25/Learning-Git
0b2676b18a8198355e6075fae28233cfedd4ee5e
[ "MIT" ]
5
2020-09-21T13:21:08.000Z
2021-10-03T17:10:01.000Z
t = int(input()) for i in range(t): a = [int(i) for i in input().split(" ")] val = (a[0] - a[2] + a[3])%a[1] if val: print("NO") else: print("YES")
15.8
41
0.487342
fe716e5e27839770bfdbce7c010bc27e2ac0cac3
767
py
Python
users/models.py
Ndundiro/Instagram-Clone
db4a73324fe88357894cb5ccc56570127f7cb0df
[ "MIT" ]
1
2020-04-27T16:13:53.000Z
2020-04-27T16:13:53.000Z
users/models.py
Ndundiro/Instagram-Clone
db4a73324fe88357894cb5ccc56570127f7cb0df
[ "MIT" ]
5
2020-06-05T23:42:26.000Z
2022-02-10T13:17:46.000Z
users/models.py
Ndundiro/Instagram-Clone
db4a73324fe88357894cb5ccc56570127f7cb0df
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from PIL import Image class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) bio = models.CharField(max_length=250, default="Hey there,am on Insta", blank=True) image = models.ImageField(default='def...
22.558824
87
0.647979
f30b0011e9a27c1dd89bd7d67f967247038adeb7
9,256
py
Python
docs/conf.py
mycarta/bruges
4b7dd42e96d477ffaaedd9134f9f7b7b60dd7123
[ "Apache-2.0" ]
209
2015-07-16T18:23:42.000Z
2022-02-27T02:59:46.000Z
docs/conf.py
mycarta/bruges
4b7dd42e96d477ffaaedd9134f9f7b7b60dd7123
[ "Apache-2.0" ]
74
2015-07-12T16:12:01.000Z
2022-02-22T14:27:26.000Z
docs/conf.py
mycarta/bruges
4b7dd42e96d477ffaaedd9134f9f7b7b60dd7123
[ "Apache-2.0" ]
112
2015-08-07T14:12:11.000Z
2022-02-10T14:12:50.000Z
# -*- coding: utf-8 -*- # # bruges documentation build configuration file, created by # sphinx-quickstart on Thu Dec 12 16:14:28 2013. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # Al...
31.69863
88
0.718777
3341a39a2d50bb02f68bc28745b5a404f415e392
1,976
py
Python
pai-management/paiLibrary/paiBuild/image_tag.py
luoch/pai
983326061006954bf3b99988d8698704598392e3
[ "MIT" ]
2
2018-09-13T11:37:28.000Z
2018-09-13T11:39:33.000Z
pai-management/paiLibrary/paiBuild/image_tag.py
luoch/pai
983326061006954bf3b99988d8698704598392e3
[ "MIT" ]
null
null
null
pai-management/paiLibrary/paiBuild/image_tag.py
luoch/pai
983326061006954bf3b99988d8698704598392e3
[ "MIT" ]
1
2018-09-13T11:37:31.000Z
2018-09-13T11:37:31.000Z
# Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # 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 ...
35.285714
128
0.748482
647ff764f7c89fd5cfc9365c73713971e19f3b64
21,412
py
Python
pytorch_lightning/plugins/training_type/ddp.py
moisutsu/pytorch-lightning
b294c5760eee30a995fcd400127be209b12c4d7c
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/plugins/training_type/ddp.py
moisutsu/pytorch-lightning
b294c5760eee30a995fcd400127be209b12c4d7c
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/plugins/training_type/ddp.py
moisutsu/pytorch-lightning
b294c5760eee30a995fcd400127be209b12c4d7c
[ "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...
41.097889
120
0.671726
c7b3dbc84279231bb9c8dd66ab4e26633c400572
1,116
py
Python
tests/components/myq/test_light.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
22,481
2020-03-02T13:09:59.000Z
2022-03-31T23:34:28.000Z
tests/components/myq/test_light.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/myq/test_light.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,411
2020-03-02T14:19:20.000Z
2022-03-31T22:46:07.000Z
"""The scene tests for the myq platform.""" from homeassistant.const import STATE_OFF, STATE_ON from .util import async_init_integration async def test_create_lights(hass): """Test creation of lights.""" await async_init_integration(hass) state = hass.states.get("light.garage_door_light_off") asse...
30.162162
88
0.694444
c9c4d292d0f00f4468fe62f0502c48da5e0a1711
964
py
Python
samples/py.py
mliscourtney/vim256colorschemes
17c060fec90fb0afd3b638776277e88935e2f21f
[ "MIT" ]
1
2015-12-29T19:56:18.000Z
2015-12-29T19:56:18.000Z
samples/py.py
mliscourtney/vim256colorschemes
17c060fec90fb0afd3b638776277e88935e2f21f
[ "MIT" ]
null
null
null
samples/py.py
mliscourtney/vim256colorschemes
17c060fec90fb0afd3b638776277e88935e2f21f
[ "MIT" ]
null
null
null
#!/usr/bin/env python import random random.seed() mugwump_x = random.randrange(10) mugwump_y = random.randrange(10) units_from_mugwump = 1 turn_number = 0 while units_from_mugwump and turn_number < 10: guess = map(int, raw_input("What is your guess (x y)? ").split()) if not all(0 <= values < 10 for values in...
32.133333
80
0.637967
93cba62fc9a46bb5cb5c1354c9d545719b7e3849
2,091
py
Python
zun-3.0.0/zun/conf/__init__.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
zun-3.0.0/zun/conf/__init__.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
zun-3.0.0/zun/conf/__init__.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
30.75
78
0.812052
ff920e6b3abe5f46a8ead655592fc7794e61c8d1
3,717
py
Python
contrib/macdeploy/custom_dsstore.py
Apiocoin/litecoin
779be6dc6f0fa3f8c8eefad4cd487f2f9f9e3c69
[ "MIT" ]
3
2021-06-08T00:07:01.000Z
2021-06-09T17:53:44.000Z
contrib/macdeploy/custom_dsstore.py
Apiocoin/litecoin
779be6dc6f0fa3f8c8eefad4cd487f2f9f9e3c69
[ "MIT" ]
null
null
null
contrib/macdeploy/custom_dsstore.py
Apiocoin/litecoin
779be6dc6f0fa3f8c8eefad4cd487f2f9f9e3c69
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2013-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import biplist from ds_store import DSStore from mac_alias import Alias import sys output_file = sys.argv...
61.95
1,817
0.724778
ae11f429e05e898ed4f2102e3645a2ef36a1d317
655
py
Python
viewer/forms.py
reskyner/fragalysis-backend
6b83e801b86f8b39ed02d6a8cae466790c2bd486
[ "Apache-2.0" ]
null
null
null
viewer/forms.py
reskyner/fragalysis-backend
6b83e801b86f8b39ed02d6a8cae466790c2bd486
[ "Apache-2.0" ]
null
null
null
viewer/forms.py
reskyner/fragalysis-backend
6b83e801b86f8b39ed02d6a8cae466790c2bd486
[ "Apache-2.0" ]
null
null
null
from django import forms import zipfile from cStringIO import StringIO CHOICES = [ (0, 'validate'), (1, 'upload'), ] class CSetForm(forms.Form): target_name = forms.CharField(label='Target', max_length=100) sdf_file = forms.FileField(label='All compounds sdf (.sdf)') pdb_zip = forms.FileField(requ...
32.75
129
0.723664
a5630ed7c0808b97cbd43c8cc31c9f3098aafb2a
11,342
py
Python
src/config/options.py
spunkmars/django-spms
95ac193891f93da07c3a26feeaf846e6030f3466
[ "BSD-3-Clause" ]
23
2020-04-14T07:50:38.000Z
2022-01-27T09:07:19.000Z
src/config/options.py
bjzhangyong/django-spms
95ac193891f93da07c3a26feeaf846e6030f3466
[ "BSD-3-Clause" ]
8
2021-03-19T09:01:16.000Z
2022-02-10T12:28:55.000Z
src/config/options.py
bjzhangyong/django-spms
95ac193891f93da07c3a26feeaf846e6030f3466
[ "BSD-3-Clause" ]
6
2020-04-14T13:34:29.000Z
2022-01-25T04:05:16.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import sys if sys.version_info >= (3, 6, 0): import configparser as ConfigParser else: import ConfigParser from django.utils.translation import ugettext_lazy from django.utils.translation import ugettext from spmo.common import Common def get_...
37.309211
113
0.515253
6a9e79b784b5fce2847d866b7ad311979c5d1d47
24
py
Python
client/labml/__init__.py
vpj/lab
0575be18d1a7c4af67ccbb50a9c87f55de558481
[ "MIT" ]
174
2018-11-17T09:05:03.000Z
2020-04-17T21:50:47.000Z
client/labml/__init__.py
vpj/lab
0575be18d1a7c4af67ccbb50a9c87f55de558481
[ "MIT" ]
7
2019-07-02T23:27:58.000Z
2020-04-18T02:50:58.000Z
client/labml/__init__.py
vpj/lab
0575be18d1a7c4af67ccbb50a9c87f55de558481
[ "MIT" ]
21
2018-12-05T18:33:49.000Z
2020-04-18T03:58:30.000Z
__version__ = '0.4.150'
12
23
0.666667
4f0db8c58b9946fafc9eccd127dfcc073020a3d9
27,166
py
Python
slitronomy/Optimization/solver_base.py
austinpeel/SLITronomy
2fbd1a910e09c3e24268826a85f1c8684e9ffff0
[ "MIT" ]
null
null
null
slitronomy/Optimization/solver_base.py
austinpeel/SLITronomy
2fbd1a910e09c3e24268826a85f1c8684e9ffff0
[ "MIT" ]
null
null
null
slitronomy/Optimization/solver_base.py
austinpeel/SLITronomy
2fbd1a910e09c3e24268826a85f1c8684e9ffff0
[ "MIT" ]
null
null
null
__author__ = 'aymgal' # class that implements SLIT algorithm import copy import numpy as np from slitronomy.Optimization.model_operators import ModelOperators from slitronomy.Lensing.lensing_operator import LensingOperator from slitronomy.Optimization.noise_levels import NoiseLevels from slitronomy.Util.solver_plott...
46.837931
190
0.656666
fa0c22c19de3e9b156049b11657468f5940684d4
17,828
py
Python
lib/modules/python/persistence/osx/CreateHijacker.py
Strazzom/Empire
9f519bc45b3b5a203f77d8c00b07499157c307ad
[ "BSD-3-Clause" ]
230
2017-03-01T22:29:59.000Z
2022-03-27T17:41:59.000Z
lib/modules/python/persistence/osx/CreateHijacker.py
Strazzom/Empire
9f519bc45b3b5a203f77d8c00b07499157c307ad
[ "BSD-3-Clause" ]
9
2017-03-05T17:01:46.000Z
2018-04-22T21:05:25.000Z
lib/modules/python/persistence/osx/CreateHijacker.py
Strazzom/Empire
9f519bc45b3b5a203f77d8c00b07499157c307ad
[ "BSD-3-Clause" ]
47
2017-04-04T18:25:37.000Z
2021-09-27T22:48:35.000Z
import base64 class Module: def __init__(self, mainMenu, params=[]): # metadata info about the module, not modified during runtime self.info = { # name for the module that will appear in module menus 'Name': 'CreateDylibHijacker', # list of one or more authors ...
32.180505
279
0.558728
991ba12b1c0cde1e4c18f108f09a865fe803c415
4,576
py
Python
smarts/core/remote_agent.py
zbzhu99/SMARTS
652aa23e71bd4e2732e2742140cfcd0ec082a7da
[ "MIT" ]
null
null
null
smarts/core/remote_agent.py
zbzhu99/SMARTS
652aa23e71bd4e2732e2742140cfcd0ec082a7da
[ "MIT" ]
null
null
null
smarts/core/remote_agent.py
zbzhu99/SMARTS
652aa23e71bd4e2732e2742140cfcd0ec082a7da
[ "MIT" ]
null
null
null
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to us...
39.791304
96
0.676136
767ad8c1fb199395d7adcc0eed8ac61081bbe743
23,017
py
Python
mobile_deployment/tensorflow/slim/models/official/vision/detection/modeling/losses.py
zhoudaquan/rethinking_bottleneck_structure_code_release
195ee737952e2f8d729a14b51651748caf35794c
[ "BSD-3-Clause-Clear" ]
153
2020-10-25T13:58:04.000Z
2022-03-07T06:01:54.000Z
official/vision/detection/modeling/losses.py
MissMonster/models
5a68ac6245993ae351f6b9aca6b22d38cc4bdda1
[ "Apache-2.0" ]
11
2020-07-13T08:29:00.000Z
2022-03-24T07:21:09.000Z
official/vision/detection/modeling/losses.py
MissMonster/models
5a68ac6245993ae351f6b9aca6b22d38cc4bdda1
[ "Apache-2.0" ]
23
2020-10-25T14:44:47.000Z
2021-03-31T02:12:13.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
42.545287
186
0.682626
4bf0c1266dd79e0aa7dad9942a18418f53c42b40
2,427
py
Python
docs/source/conf.py
rchui/laminar
63bcc813484bd8510bcfa93456e46118b7093b5e
[ "MIT" ]
null
null
null
docs/source/conf.py
rchui/laminar
63bcc813484bd8510bcfa93456e46118b7093b5e
[ "MIT" ]
1
2022-02-04T00:50:26.000Z
2022-02-04T00:50:26.000Z
docs/source/conf.py
rchui/laminar
83e03aa97a11943218fc792b0f33017200cb10be
[ "MIT" ]
null
null
null
import os import sys from typing import Any # 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 --------------------------...
32.36
91
0.646889
2552f3e9b067632eb8aa7f91192f1ecce678d4e7
8,809
py
Python
asposetaskscloud/models/calendar.py
aspose-tasks-cloud/aspose-tasks-cloud-python
d1852a02fb1aa2591501a34d5e56079f8aac43f0
[ "MIT" ]
2
2021-08-16T09:25:51.000Z
2022-01-27T20:20:41.000Z
asposetaskscloud/models/calendar.py
aspose-tasks-cloud/aspose-tasks-cloud-python
d1852a02fb1aa2591501a34d5e56079f8aac43f0
[ "MIT" ]
null
null
null
asposetaskscloud/models/calendar.py
aspose-tasks-cloud/aspose-tasks-cloud-python
d1852a02fb1aa2591501a34d5e56079f8aac43f0
[ "MIT" ]
null
null
null
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="Calendar.py"> # Copyright (c) 2020 Aspose.Tasks Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy # of this softwar...
34.011583
139
0.601884
23170666ae6bf19e7e069a252d786a7db1dcfcb4
43,131
py
Python
pyrender/viewer.py
monsieurgustav/pyrender
10ada1d4f895a4e9272299347def675ec4ba4407
[ "MIT" ]
53
2020-03-29T04:15:44.000Z
2022-03-19T02:49:12.000Z
pyrender/viewer.py
monsieurgustav/pyrender
10ada1d4f895a4e9272299347def675ec4ba4407
[ "MIT" ]
3
2020-07-13T12:54:58.000Z
2020-11-18T15:50:04.000Z
pyrender/viewer.py
monsieurgustav/pyrender
10ada1d4f895a4e9272299347def675ec4ba4407
[ "MIT" ]
7
2020-06-16T14:42:48.000Z
2021-04-13T04:34:52.000Z
"""A pyglet-based interactive 3D scene viewer. """ import copy import os import sys from threading import Thread, RLock import time import imageio import numpy as np import OpenGL import trimesh try: from Tkinter import Tk, tkFileDialog as filedialog except Exception: try: from tkinter import Tk, file...
38.202834
88
0.571399
5f7e13a979805a3a5ace82b752da0eec596f6153
3,561
py
Python
electrumsys/plugins/revealer/revealer.py
syscoin/electrum
ac576539c758640ff87ed6be1311eb57b57d205f
[ "MIT" ]
1
2019-06-26T16:51:43.000Z
2019-06-26T16:51:43.000Z
electrumsys/plugins/revealer/revealer.py
syscoin/electrumsys
ac576539c758640ff87ed6be1311eb57b57d205f
[ "MIT" ]
null
null
null
electrumsys/plugins/revealer/revealer.py
syscoin/electrumsys
ac576539c758640ff87ed6be1311eb57b57d205f
[ "MIT" ]
1
2018-09-10T21:43:02.000Z
2018-09-10T21:43:02.000Z
import random import os from hashlib import sha256 from typing import NamedTuple, Optional, Dict, Tuple from electrumsys.plugin import BasePlugin from electrumsys.util import to_bytes, bh2u, bfh from .hmac_drbg import DRBG class VersionedSeed(NamedTuple): version: str seed: str checksum: str def ge...
33.59434
93
0.579051
8e7a5dfda3473634172982b58de10cc83690024c
265
py
Python
topicos/10_strings/respostas/LoginValido.py
erosvitor/curso-python-fundamentos
daf113f08f724f6e7a92977799c76f49a021e5bd
[ "MIT" ]
null
null
null
topicos/10_strings/respostas/LoginValido.py
erosvitor/curso-python-fundamentos
daf113f08f724f6e7a92977799c76f49a021e5bd
[ "MIT" ]
null
null
null
topicos/10_strings/respostas/LoginValido.py
erosvitor/curso-python-fundamentos
daf113f08f724f6e7a92977799c76f49a021e5bd
[ "MIT" ]
null
null
null
#!python3 print("Login") print("") loginValido = False while not loginValido: login = input("Digite o login: ") if login.strip(): print("Login válido.") loginValido = True else: print("Login inválido, tente novamente.") loginValido = False
16.5625
45
0.656604
363654efc40d7ca4613b8d9352eb6dfea0b4c779
1,018
py
Python
lib/spack/spack/hooks/module_file_generation.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-10T13:47:48.000Z
2019-04-17T13:05:17.000Z
lib/spack/spack/hooks/module_file_generation.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
17
2019-03-21T15:54:00.000Z
2022-03-29T19:34:28.000Z
lib/spack/spack/hooks/module_file_generation.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-04-07T18:27:09.000Z
2022-03-31T22:52:38.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import spack.config import spack.modules import spack.modules.common import llnl.util.tty as tty def _for_each_enabled(s...
29.085714
78
0.682711
2999593581b7b885aa192f7b9b50013fd436c1c3
8,536
py
Python
wavefront_api_client/api/message_api.py
PowerOlive/python-client
eebda67381fcf893914c309103878236b609a70b
[ "Apache-2.0" ]
11
2016-05-30T17:16:45.000Z
2021-06-11T19:32:59.000Z
wavefront_api_client/api/message_api.py
PowerOlive/python-client
eebda67381fcf893914c309103878236b609a70b
[ "Apache-2.0" ]
25
2016-05-02T23:05:19.000Z
2020-11-18T22:43:20.000Z
wavefront_api_client/api/message_api.py
PowerOlive/python-client
eebda67381fcf893914c309103878236b609a70b
[ "Apache-2.0" ]
30
2016-04-29T17:17:11.000Z
2022-02-11T04:58:37.000Z
# coding: utf-8 """ Wavefront REST API <p>The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.</p><p>When you make REST API calls outside the Wavefront REST ...
37.275109
409
0.611176
5d7d7d85d2ad50b3d2d4ca0dca49023644f7a13a
9,663
py
Python
autoPyTorch/data_management/data_reader.py
urbanmatthias/Auto-PyTorch
fe7c51b33c48041e405ef2975ee691c0539691ab
[ "BSD-3-Clause" ]
1
2019-11-19T12:22:46.000Z
2019-11-19T12:22:46.000Z
autoPyTorch/data_management/data_reader.py
gaohuan2015/Auto-PyTorch
3c6bf7e051b32284d2655cc484aee1a8c982c04e
[ "Apache-2.0" ]
null
null
null
autoPyTorch/data_management/data_reader.py
gaohuan2015/Auto-PyTorch
3c6bf7e051b32284d2655cc484aee1a8c982c04e
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function, division import pandas as pd import numpy as np from abc import abstractmethod import os from scipy.sparse import csr_matrix import math from autoPyTorch.data_management.data_converter import DataConverter __author__ = "Max Dippel, Michael Burkart and Matthias Urban" __version_...
41.294872
148
0.608093