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
f9cecddb776a65506fdd38f3a4e11bafbdddf7ff
7,045
py
Python
tests/test_helpers.py
rootifera/sceptre
0a1aeb8305c38dbd5c6c6cc6ec0cae4d468abdcf
[ "Apache-2.0" ]
2
2021-05-16T09:43:29.000Z
2022-03-15T10:21:54.000Z
tests/test_helpers.py
joseroubert08/sceptre
652b844ce69aecfe0ed31d918a6b49fd954a23bd
[ "Apache-2.0" ]
null
null
null
tests/test_helpers.py
joseroubert08/sceptre
652b844ce69aecfe0ed31d918a6b49fd954a23bd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import pytest from mock import Mock, patch, sentinel from botocore.exceptions import ClientError from sceptre.exceptions import RetryLimitExceededError from sceptre.exceptions import ProtectedStackError from sceptre.helpers import exponential_backoff from sceptre.helpers import get...
34.199029
78
0.631512
2654c8baef92b528dc38553b77c174ee235a48b9
441
py
Python
src/py42/_internal/compat.py
unparalleled-js/py42
8c6b054ddd8c2bfea92bf77b0d648af76f1efcf1
[ "MIT" ]
null
null
null
src/py42/_internal/compat.py
unparalleled-js/py42
8c6b054ddd8c2bfea92bf77b0d648af76f1efcf1
[ "MIT" ]
null
null
null
src/py42/_internal/compat.py
unparalleled-js/py42
8c6b054ddd8c2bfea92bf77b0d648af76f1efcf1
[ "MIT" ]
null
null
null
""" This module handles import compatibility issues between Python 2 and Python 3. """ import sys _ver = sys.version_info #: Python 2.x? is_py2 = _ver[0] == 2 if is_py2: from urllib import quote from urlparse import urljoin, urlparse str = unicode import repr as reprlib string_type = basestri...
14.7
68
0.689342
cc6883e27c32090710b309587c4964b8ca0bbc20
40,334
py
Python
gee_tools/datasources/sentinel2.py
AnthonyPerez/gee_tools
fddb8d184c1031fc1ff36301889b83b801a0d68b
[ "MIT" ]
3
2019-01-14T19:00:04.000Z
2019-03-11T12:57:46.000Z
gee_tools/datasources/sentinel2.py
AnthonyPerez/gee_tools
fddb8d184c1031fc1ff36301889b83b801a0d68b
[ "MIT" ]
3
2020-02-13T20:23:39.000Z
2021-08-23T17:34:53.000Z
gee_tools/datasources/sentinel2.py
AnthonyPerez/gee_tools
fddb8d184c1031fc1ff36301889b83b801a0d68b
[ "MIT" ]
3
2018-07-07T00:43:12.000Z
2019-05-29T15:46:29.000Z
import numpy as np import ee from gee_tools.datasources.interface import MultiImageDatasource, DatasourceError from gee_tools.imgtools import appendBand, getGLCMTexture, addDOY class Sentinel2TOA(MultiImageDatasource): def build_img_coll(self, addVIs=True, addCloudMasks=True): """ Args: ...
48.6538
163
0.539594
38075c5747a1918253e54b2275af01997ca0e48a
49,821
py
Python
parlai/core/params.py
Misterion777/ParlAI
1a6849d643a30a9a981825d9f50470b6512817c5
[ "MIT" ]
null
null
null
parlai/core/params.py
Misterion777/ParlAI
1a6849d643a30a9a981825d9f50470b6512817c5
[ "MIT" ]
null
null
null
parlai/core/params.py
Misterion777/ParlAI
1a6849d643a30a9a981825d9f50470b6512817c5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Provide an argument parser and default command line options for using ParlAI. """ import argparse import importlib i...
35.535663
94
0.562052
ba6c1075e1f0939f2df9e958582cc07ccc98616b
3,429
py
Python
microian/blog.py
iangomez/websitedev
2683c1982643b10fbe2a9b80a0080149468dc23f
[ "BSD-3-Clause" ]
1
2019-11-22T16:53:17.000Z
2019-11-22T16:53:17.000Z
microian/blog.py
iangomez/websitedev
2683c1982643b10fbe2a9b80a0080149468dc23f
[ "BSD-3-Clause" ]
null
null
null
microian/blog.py
iangomez/websitedev
2683c1982643b10fbe2a9b80a0080149468dc23f
[ "BSD-3-Clause" ]
null
null
null
from flask import Blueprint from flask import flash from flask import g from flask import redirect from flask import render_template from flask import request from flask import url_for from werkzeug.exceptions import abort from microian.auth import login_required from microian.db import get_db bp = Blueprint("blog", ...
26.789063
86
0.582386
5488a19bb09600866dd91ed0de5c9a0067d7349a
712
py
Python
backend/ohq/migrations/0003_auto_20200822_1116.py
pennlabs/Office-Hours-Queue
f73ec90223c43595c9a167162d9d74abfb11ca42
[ "MIT" ]
8
2020-05-08T15:28:51.000Z
2020-05-28T03:27:03.000Z
backend/ohq/migrations/0003_auto_20200822_1116.py
pennlabs/Office-Hours-Queue
f73ec90223c43595c9a167162d9d74abfb11ca42
[ "MIT" ]
161
2020-08-05T17:05:56.000Z
2022-03-27T17:44:51.000Z
backend/ohq/migrations/0003_auto_20200822_1116.py
pennlabs/office-hours-queue
fce98d3a1b83d1459f61e6d9c3347ef619ee384e
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-08-22 15:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("ohq", "0002_auto_20200816_1727"), ] operations = [ migrations.AlterField( model_name="question", name="status", ...
24.551724
47
0.446629
8a9656f231ee986037f25bbc45378f75bca664ca
1,140
py
Python
paxos/partition1.py
airekans/paxosim
2bfe72ab49b5b010ea4042e5ea34318834ac0306
[ "MIT" ]
2
2015-12-13T08:51:11.000Z
2020-04-20T10:33:24.000Z
paxos/partition1.py
airekans/paxosim
2bfe72ab49b5b010ea4042e5ea34318834ac0306
[ "MIT" ]
null
null
null
paxos/partition1.py
airekans/paxosim
2bfe72ab49b5b010ea4042e5ea34318834ac0306
[ "MIT" ]
null
null
null
""" This case shows that if the proposer itself has been partitioned from other agents after the agents has promised to it, then the only one to accept its value is itself. In this case, the consensus for this paxos instance is not finished, because no majority of the agents have accepted it. And in this cases, the age...
49.565217
82
0.607895
98263a5074c36affe6f71791232f80c409d651ca
11,130
py
Python
code/EVSegNet/RunEVSegNet.py
ercanburak/EVDodgeNet
063bab8616f7c059b8d897e8d708390fd7bd8625
[ "BSD-3-Clause" ]
62
2020-05-22T03:00:11.000Z
2022-03-16T02:26:35.000Z
code/EVSegNet/RunEVSegNet.py
ercanburak/EVDodgeNet
063bab8616f7c059b8d897e8d708390fd7bd8625
[ "BSD-3-Clause" ]
8
2020-04-02T10:47:30.000Z
2021-06-18T17:35:40.000Z
code/EVSegNet/RunEVSegNet.py
ercanburak/EVDodgeNet
063bab8616f7c059b8d897e8d708390fd7bd8625
[ "BSD-3-Clause" ]
24
2020-04-14T14:49:56.000Z
2022-03-19T09:20:28.000Z
#!/usr/bin/env python # Dependencies: # opencv, do (pip install opencv-python) # skimage, do (sudo) # termcolor, do (pip install termcolor) # tqdm, do (pip install tqdm) # TODO: # Clean print statements # Global step only loss/epoch on tensorboard # Print Num parameters in model as a function # Clean comments # Check...
36.491803
160
0.648787
833414a4fda9119fbf475e76eaebc90534035a0c
3,037
py
Python
contrib/linearize/linearize-hashes.py
snodedev/snode-coin
d0e3d6d429278100b88bbe11d8f75e2d1ed7588e
[ "MIT" ]
5
2018-10-01T18:36:00.000Z
2019-11-13T09:12:56.000Z
contrib/linearize/linearize-hashes.py
snodedev/snode-coin
d0e3d6d429278100b88bbe11d8f75e2d1ed7588e
[ "MIT" ]
2
2018-09-14T22:00:13.000Z
2019-09-30T08:21:41.000Z
contrib/linearize/linearize-hashes.py
snodedev/snode-coin
d0e3d6d429278100b88bbe11d8f75e2d1ed7588e
[ "MIT" ]
4
2018-09-21T08:35:19.000Z
2019-03-08T18:23:06.000Z
#!/usr/bin/python # # linearize-hashes.py: List blocks in a linear, no-fork version of the chain. # # Copyright (c) 2013-2014 The Bitcoin developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # from __future__ import pri...
26.640351
90
0.682581
6d57a276d7d5f7ec5339d1059c6e7c631b3a1c91
2,632
py
Python
tech_project/lib/python2.7/site-packages/aldryn_common/slugs.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
2
2015-03-11T09:58:13.000Z
2016-08-05T20:18:37.000Z
tech_project/lib/python2.7/site-packages/aldryn_common/slugs.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
27
2015-03-23T16:09:02.000Z
2018-12-18T14:22:20.000Z
tech_project/lib/python2.7/site-packages/aldryn_common/slugs.py
priyamshah112/Project-Descripton-Blog
8e01016c6be79776c4f5ca75563fa3daa839e39e
[ "MIT" ]
8
2015-03-23T16:14:22.000Z
2017-02-21T21:07:01.000Z
# -*- coding: utf-8 -*- # from http://djangosnippets.org/snippets/690/ import re from django.template.defaultfilters import slugify def unique_slugify(instance, value, slug_field_name='slug', queryset=None, slug_separator='-'): """ Calculates and stores a unique slug of ``value`` for an in...
35.093333
79
0.641337
d112a4c7e20bff01a0bf6d0296c9b97bcc16268a
5,755
py
Python
python/test_tools/stubber_factory.py
iconara/aws-doc-sdk-examples
52706b31b4fce8fb89468e56743edf5369e69628
[ "Apache-2.0" ]
1
2022-02-02T03:49:17.000Z
2022-02-02T03:49:17.000Z
python/test_tools/stubber_factory.py
iconara/aws-doc-sdk-examples
52706b31b4fce8fb89468e56743edf5369e69628
[ "Apache-2.0" ]
1
2021-04-09T21:17:09.000Z
2021-04-09T21:17:09.000Z
python/test_tools/stubber_factory.py
iconara/aws-doc-sdk-examples
52706b31b4fce8fb89468e56743edf5369e69628
[ "Apache-2.0" ]
1
2021-03-02T15:20:09.000Z
2021-03-02T15:20:09.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 """ A factory function that returns the stubber for an AWS service, based on the name of the service that is used by Boto 3. This factory is used by the make_stubber fixture found in the set of common fixtures. ...
39.689655
85
0.771156
8be4abad8e52912aae0b59655f4254f1a7f259fb
3,089
py
Python
kratos_salome_plugin/utilities.py
armingeiser/KratosSalomePlugin
d402ca9edef8dff071ceabf0ebac0d858a6fbfcc
[ "BSD-3-Clause" ]
6
2020-01-23T20:54:17.000Z
2021-02-19T09:52:29.000Z
kratos_salome_plugin/utilities.py
armingeiser/KratosSalomePlugin
d402ca9edef8dff071ceabf0ebac0d858a6fbfcc
[ "BSD-3-Clause" ]
20
2020-01-25T16:05:43.000Z
2020-12-18T20:36:46.000Z
kratos_salome_plugin/utilities.py
armingeiser/KratosSalomePlugin
d402ca9edef8dff071ceabf0ebac0d858a6fbfcc
[ "BSD-3-Clause" ]
3
2020-05-27T13:31:08.000Z
2020-12-18T19:50:43.000Z
# _ __ _ ___ _ ___ _ _ # | |/ /_ _ __ _| |_ ___ __/ __| __ _| |___ _ __ ___| _ \ |_ _ __ _(_)_ _ # | ' <| '_/ _` | _/ _ (_-<__ \/ _` | / _ \ ' \/ -_) _/ | || / _` | | ' \ # |_|\_\_| \__,_|\__\___/__/___/\__,_|_\___/_|_|_\___|_| |_|\_,_\__, |_|_||_| # ...
44.128571
137
0.668177
8203fda9e9ddcf02fd8df0999ad2da4c0012973f
2,379
py
Python
rubberband/handlers/fe/download.py
ambros-gleixner/rubberband
72dd935dbc4bed93860fdcaa0cbe752bcbd6e395
[ "MIT" ]
4
2018-03-25T15:01:20.000Z
2020-06-22T14:34:01.000Z
rubberband/handlers/fe/download.py
ambros-gleixner/rubberband
72dd935dbc4bed93860fdcaa0cbe752bcbd6e395
[ "MIT" ]
41
2016-12-19T21:17:41.000Z
2021-12-13T19:50:34.000Z
rubberband/handlers/fe/download.py
ambros-gleixner/rubberband
72dd935dbc4bed93860fdcaa0cbe752bcbd6e395
[ "MIT" ]
1
2017-10-06T13:52:57.000Z
2017-10-06T13:52:57.000Z
"""Contains DownloadView.""" from tornado.web import HTTPError import zipfile from io import BytesIO import os from rubberband.constants import IPET_EVALUATIONS, EXPORT_FILE_TYPES from .base import BaseHandler from .result import load_testsets class DownloadView(BaseHandler): """Request handler handling the down...
33.041667
92
0.529214
b95dbe3a72459825555d502ed765c095e640a39c
344
py
Python
src/util/datapaths.py
fn2189/cnn-music-structure
9b89cda68f8974997d7dec3854c75fbbef4e71f4
[ "MIT" ]
2
2020-06-02T16:09:28.000Z
2021-01-13T11:40:37.000Z
src/util/datapaths.py
fn2189/cnn-music-structure
9b89cda68f8974997d7dec3854c75fbbef4e71f4
[ "MIT" ]
null
null
null
src/util/datapaths.py
fn2189/cnn-music-structure
9b89cda68f8974997d7dec3854c75fbbef4e71f4
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ @name: datapaths.py @desc: Contains all the paths to data directories. @auth: Tim O'Brien @date: Feb. 16, 2016 """ import os MIR = '/home/franck/TRASH/' SALAMI = os.path.join(MIR, 'salami-data-public') IA = os.path.join(MIR, 'salami', 'SALAMI-IA') RWC = os.path.join(MIR, 'RWC') if __name__ ...
19.111111
50
0.659884
39f4800f3210207d8767ee560d6393a800fa4e72
19,588
py
Python
bayesian/test/test_graph.py
Blankeos/bayesian-belief-networks
697bf0a6b70a192e38e7691b81275b8a2f9c915e
[ "Apache-2.0" ]
1
2015-11-05T21:28:43.000Z
2015-11-05T21:28:43.000Z
bayesian/test/test_graph.py
jackode/bayesian-belief-networks
430a648e702d5dc9d9d1444bb5a88a00349dc847
[ "Apache-2.0" ]
null
null
null
bayesian/test/test_graph.py
jackode/bayesian-belief-networks
430a648e702d5dc9d9d1444bb5a88a00349dc847
[ "Apache-2.0" ]
1
2021-04-06T04:07:03.000Z
2021-04-06T04:07:03.000Z
import pytest import os from bayesian.factor_graph import * def fA(x1): if x1 is True: return 0.1 elif not x1: return 0.9 fA.domains = dict(x1=[True, False]) def fB(x2): if x2 is True: return 0.3 elif not x2: return 0.7 fB.domains = dict(x2=[True, False]) def p...
25.538462
77
0.599142
2500d108f3a4c40e83690a63f858ac91d35e4032
1,748
py
Python
torchreid/losses/hard_mine_triplet_loss.py
yyyjoe/deep-person-reid
82380612ca87928c772ea8059da5cb8c6bb06e0c
[ "MIT" ]
25
2020-03-17T10:21:05.000Z
2022-03-16T20:05:41.000Z
torchreid/losses/hard_mine_triplet_loss.py
wencoast/Semantics-Aligned-Representation-Learning-for-Person-Re-identification
e53715dd40be81b2215f4a530bde0c76bf1f378d
[ "MIT" ]
5
2020-03-29T18:05:49.000Z
2020-11-15T17:03:20.000Z
torchreid/losses/hard_mine_triplet_loss.py
wencoast/Semantics-Aligned-Representation-Learning-for-Person-Re-identification
e53715dd40be81b2215f4a530bde0c76bf1f378d
[ "MIT" ]
12
2020-03-17T06:27:29.000Z
2021-09-13T12:48:12.000Z
from __future__ import absolute_import from __future__ import division import torch import torch.nn as nn class TripletLoss(nn.Module): """Triplet loss with hard positive/negative mining. Reference: Hermans et al. In Defense of the Triplet Loss for Person Re-Identification. arXiv:1703.07737. Cod...
35.673469
97
0.620137
8036eaac013e7918a91b4cdc2c41989f824201cb
3,268
py
Python
preprocess.py
82magnolia/HorizonNet
5cda6c5f3552b20b900e3f9accc7049301e7884b
[ "MIT" ]
null
null
null
preprocess.py
82magnolia/HorizonNet
5cda6c5f3552b20b900e3f9accc7049301e7884b
[ "MIT" ]
null
null
null
preprocess.py
82magnolia/HorizonNet
5cda6c5f3552b20b900e3f9accc7049301e7884b
[ "MIT" ]
null
null
null
''' This script preprocess the given 360 panorama image under euqirectangular projection and dump them to the given directory for further layout prediction and visualization. The script will: - extract and dump the vanishing points - rotate the equirect image to align with the detected VP - extract the VP a...
37.563218
94
0.673501
a2c4ba50797df2a7699384cd6cf4253565aa314f
8,682
py
Python
uhd_restpy/testplatform/sessions/ixnetwork/watch/execwatch/execwatch.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
uhd_restpy/testplatform/sessions/ixnetwork/watch/execwatch/execwatch.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
uhd_restpy/testplatform/sessions/ixnetwork/watch/execwatch/execwatch.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # 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,...
36.944681
206
0.651808
a16870077f6f516c31eb82f048c6f04ded150be2
648
py
Python
tests/test.py
BurhanH/graph-ql-project
49dd6cd71a91364726afc74c652d1420d484cde0
[ "MIT" ]
1
2019-02-08T18:26:46.000Z
2019-02-08T18:26:46.000Z
tests/test.py
BurhanH/graph-ql-project
49dd6cd71a91364726afc74c652d1420d484cde0
[ "MIT" ]
2
2019-02-01T01:33:07.000Z
2021-07-14T01:48:27.000Z
tests/test.py
BurhanH/graph-ql-project
49dd6cd71a91364726afc74c652d1420d484cde0
[ "MIT" ]
1
2020-07-13T20:09:40.000Z
2020-07-13T20:09:40.000Z
import graphene from snapshottest import TestCase from graphene.test import Client from queries import Query class APITestCase(TestCase): def _test(self, schema_name, argument=''): client = Client(graphene.Schema(query=Query)) if argument != '': line = schema_name + ' (argument: "{0}...
24.923077
78
0.612654
52de60fc6abcf6d8cf561871f76518857ce3fb6f
1,674
py
Python
config/wsgi.py
luizhpriotto/piloto_apresentacao
c968025db819633ee4cd75df5357ab6a4ab7d9af
[ "MIT" ]
null
null
null
config/wsgi.py
luizhpriotto/piloto_apresentacao
c968025db819633ee4cd75df5357ab6a4ab7d9af
[ "MIT" ]
null
null
null
config/wsgi.py
luizhpriotto/piloto_apresentacao
c968025db819633ee4cd75df5357ab6a4ab7d9af
[ "MIT" ]
null
null
null
""" WSGI config for . project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION`` settin...
42.923077
79
0.803465
a15c2628ca3b1d73d141df043b5b5b3b6c0caff5
330
py
Python
LFS171x/indy-material/nodejs/indy_config.py
rashmidixit/education
b363c6ca06c361fe808ba44d87a98115175ab822
[ "Apache-2.0" ]
302
2017-09-13T13:29:45.000Z
2020-01-21T08:43:15.000Z
LFS171x/indy-material/nodejs/indy_config.py
rashmidixit/education
b363c6ca06c361fe808ba44d87a98115175ab822
[ "Apache-2.0" ]
97
2017-08-25T20:11:43.000Z
2019-11-23T09:35:34.000Z
LFS171x/indy-material/nodejs/indy_config.py
rashmidixit/education
b363c6ca06c361fe808ba44d87a98115175ab822
[ "Apache-2.0" ]
334
2017-08-25T20:11:19.000Z
2020-01-17T12:35:11.000Z
NETWORK_NAME = 'sandbox' LEDGER_DIR = '/home/indy/ledger' LOG_DIR = '/home/indy/log' KEYS_DIR = LEDGER_DIR GENESIS_DIR = LEDGER_DIR BACKUP_DIR = '/home/indy/backup' PLUGINS_DIR = '/home/indy/plugins' NODE_INFO_DIR = LEDGER_DIR CLI_BASE_DIR = '/home/indy/.indy-cli/' CLI_NETWORK_DIR = '/home/indy/.indy-cli/n...
25.384615
50
0.721212
6aed435a6edfa3f5c3a4a7eb95f9db559f6eee7b
3,825
py
Python
xlsxwriter/test/worksheet/test_cond_format06.py
haiyangd/XlsxWriter
81f8c9435b3e03a1458bf9ba314b5d3f7508290f
[ "BSD-2-Clause-FreeBSD" ]
3
2018-02-26T12:31:41.000Z
2020-10-10T14:14:11.000Z
xlsxwriter/test/worksheet/test_cond_format06.py
haiyangd/XlsxWriter
81f8c9435b3e03a1458bf9ba314b5d3f7508290f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/worksheet/test_cond_format06.py
haiyangd/XlsxWriter
81f8c9435b3e03a1458bf9ba314b5d3f7508290f
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2017, John McNamara, jmcnamara@cpan.org # import unittest from ...compatibility import StringIO from ..helperfunctions import _xml_to_list from ...worksheet import Worksheet class TestAss...
36.778846
171
0.381699
4c65c6d688d7b9e3607190120c37e26b1a6a09ef
2,203
py
Python
nideep/iow/read_img.py
kashefy/nideep
ffe1fbc7000f39011cabfa4fdaddb2790cb8f647
[ "BSD-2-Clause" ]
3
2016-04-08T15:02:24.000Z
2016-05-01T15:30:23.000Z
nideep/iow/read_img.py
kashefy/nideep
ffe1fbc7000f39011cabfa4fdaddb2790cb8f647
[ "BSD-2-Clause" ]
6
2016-04-05T12:34:17.000Z
2016-05-20T16:15:03.000Z
nideep/iow/read_img.py
kashefy/nideep
ffe1fbc7000f39011cabfa4fdaddb2790cb8f647
[ "BSD-2-Clause" ]
2
2016-03-16T18:47:06.000Z
2016-05-03T13:21:10.000Z
''' Created on Jul 23, 2015 @author: kashefy ''' import numpy as np from PIL import Image import cv2 as cv2 import caffe from nideep.blobs import mat_utils as mu def read_img_PIL(fpath, mean=None): ''' load image, switch to BGR, subtract mean, and make dims C x H x W for Caffe ''' img = Image.open(fpa...
25.321839
94
0.654562
8a24c9632b7224e709b33bbbf0de08818117c5e8
719
py
Python
Lib/idlelib/idle_test/test_config_key.py
Golfist/cpython
c4750959acbfc3057f12aaec832483ba30898d1c
[ "PSF-2.0" ]
27
2017-04-21T14:57:04.000Z
2021-11-03T22:10:38.000Z
Lib/idlelib/idle_test/test_config_key.py
Golfist/cpython
c4750959acbfc3057f12aaec832483ba30898d1c
[ "PSF-2.0" ]
null
null
null
Lib/idlelib/idle_test/test_config_key.py
Golfist/cpython
c4750959acbfc3057f12aaec832483ba30898d1c
[ "PSF-2.0" ]
9
2017-04-26T14:14:05.000Z
2020-12-14T16:26:41.000Z
''' Test idlelib.config_key. Coverage: 56% from creating and closing dialog. ''' from idlelib import config_key from test.support import requires requires('gui') import unittest from tkinter import Tk class GetKeysTest(unittest.TestCase): @classmethod def setUpClass(cls): cls.root = Tk() cls...
21.147059
70
0.642559
ec3208f3d7ad8f68fba6470abb08401df748f0de
212
py
Python
day02/python/jktubs/utils/helper.py
jamhocken/aoc-2020
b1f9e04177afaf7e7c15fdc7bf7bc76f27a029f6
[ "MIT" ]
16
2020-11-21T16:11:07.000Z
2021-12-06T10:02:25.000Z
day02/python/jktubs/utils/helper.py
jamhocken/aoc-2020
b1f9e04177afaf7e7c15fdc7bf7bc76f27a029f6
[ "MIT" ]
38
2020-11-26T05:53:35.000Z
2021-11-22T17:01:58.000Z
day02/python/jktubs/utils/helper.py
jamhocken/aoc-2020
b1f9e04177afaf7e7c15fdc7bf7bc76f27a029f6
[ "MIT" ]
41
2020-11-21T16:11:10.000Z
2021-12-07T13:36:07.000Z
def getVersion(): print("AoC2020_Day2!") def read_file_to_list(filename): list = [] file = open(filename, "r") for line in file: list.append(line.strip()) file.close() return list
21.2
33
0.613208
2ef27025b3dd726d309bb82c355ffbc166d3ddce
1,485
py
Python
src/python/pants/core_tasks/generate_pants_ini.py
lgirault/pants
7731c9783d8011089f59d47c41d49fdd6433bb4f
[ "Apache-2.0" ]
94
2015-01-15T21:24:20.000Z
2022-02-16T16:55:43.000Z
src/python/pants/core_tasks/generate_pants_ini.py
lgirault/pants
7731c9783d8011089f59d47c41d49fdd6433bb4f
[ "Apache-2.0" ]
5
2020-07-18T01:04:43.000Z
2021-05-10T08:40:56.000Z
src/python/pants/core_tasks/generate_pants_ini.py
lgirault/pants
7731c9783d8011089f59d47c41d49fdd6433bb4f
[ "Apache-2.0" ]
47
2015-02-25T02:20:07.000Z
2022-03-21T00:59:16.000Z
# coding=utf-8 # Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals import os.path from textwrap import dedent from pants.base.build_environment import get_...
34.534884
120
0.717845
2f1db53674398da896f22d131b3ea48c692b01e0
7,600
py
Python
tests/integration_tests/functional/test_snapshot_version.py
georgepisaltu/firecracker
9652630c591bb8ec75bf310512c009efc6987d82
[ "Apache-2.0" ]
2
2022-02-16T03:15:16.000Z
2022-02-16T03:19:52.000Z
tests/integration_tests/functional/test_snapshot_version.py
sthagen/firecracker
75b3677918130c1ac8d9eed55bba4cdc3f5450da
[ "Apache-2.0" ]
1
2022-02-01T17:57:01.000Z
2022-02-01T17:57:01.000Z
tests/integration_tests/functional/test_snapshot_version.py
sthagen/firecracker
75b3677918130c1ac8d9eed55bba4cdc3f5450da
[ "Apache-2.0" ]
2
2021-12-13T11:18:11.000Z
2021-12-13T11:33:14.000Z
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 """Basic tests scenarios for snapshot save/restore.""" import platform import pytest from framework.artifacts import NetIfaceConfig from framework.builder import SnapshotBuilder, MicrovmBuilder import host_...
36.190476
79
0.685789
e79f981a44c7c92533d880be42a93c6cd8de3e81
9,353
py
Python
easy_thumbnails/tests/aliases.py
emschorsch/easy-thumbnails
769fddaada30eea9564ab459f120364da5888711
[ "BSD-3-Clause" ]
1
2016-05-07T12:05:16.000Z
2016-05-07T12:05:16.000Z
easy_thumbnails/tests/aliases.py
emschorsch/easy-thumbnails
769fddaada30eea9564ab459f120364da5888711
[ "BSD-3-Clause" ]
null
null
null
easy_thumbnails/tests/aliases.py
emschorsch/easy-thumbnails
769fddaada30eea9564ab459f120364da5888711
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from easy_thumbnails import files, fields, signals, signal_handlers from easy_thumbnails.alias import aliases from easy_thumbnails.conf import settings from easy_thumbnails import test class Profile(models.Model): avatar = fields.ThumbnailerField(upload_to='avatars') logo = model...
34.135036
78
0.568588
d275740374ca93ac3e72fd72b693af860501b4f2
2,777
py
Python
bgesdk/management/commands/api/commands/get_data_items.py
teambge/bge-python-sdk
097170e538ac7c14e78aebfb25b2a0e222e938e7
[ "MIT" ]
null
null
null
bgesdk/management/commands/api/commands/get_data_items.py
teambge/bge-python-sdk
097170e538ac7c14e78aebfb25b2a0e222e938e7
[ "MIT" ]
null
null
null
bgesdk/management/commands/api/commands/get_data_items.py
teambge/bge-python-sdk
097170e538ac7c14e78aebfb25b2a0e222e938e7
[ "MIT" ]
null
null
null
import json import sys from bgesdk.client import API from bgesdk.error import APIError from bgesdk.management import constants from bgesdk.management.command import BaseCommand from bgesdk.management.utils import ( get_active_project, config_get, read_config, output ) from bgesdk.models import ModelEncoder from bg...
28.927083
80
0.576882
122ba0608afb70dd5eebef669d235cbbdc842a86
1,243
py
Python
templates/polished_facts_skills_1/messages.py
Robinson04/inoft_vocal_framework
9659e0852604bc628b01e0440535add0ae5fc5d1
[ "MIT" ]
11
2020-04-15T07:47:34.000Z
2022-03-30T21:47:36.000Z
templates/polished_facts_skills_1/messages.py
Robinson04/inoft_vocal_framework
9659e0852604bc628b01e0440535add0ae5fc5d1
[ "MIT" ]
20
2020-08-09T00:11:49.000Z
2021-09-11T11:34:02.000Z
templates/polished_facts_skills_1/messages.py
Robinson04/inoft_vocal_framework
9659e0852604bc628b01e0440535add0ae5fc5d1
[ "MIT" ]
6
2020-02-21T04:45:19.000Z
2021-07-18T22:13:55.000Z
from inoft_vocal_engine import SpeechsList, Speech MSGS_START_FACT = SpeechsList(id="startFactPhrase", speechs=[ Speech().add_text("Did you know").set_prob(1), Speech().add_text("Have you heard").set_prob(1), Speech().add_text("Did you suspected").set_prob(0.5) ]) MSGS_END_FACT = SpeechsList(id="endFactPh...
47.807692
159
0.703942
5e051757fb6fd6d8b3665d0285f1fa53a3707df8
565
py
Python
library/migrations/0003_auto_20201201_1044.py
echarlotte612/jets
fec53d669186731980fcfdc1dbad03d713831b3c
[ "Unlicense" ]
null
null
null
library/migrations/0003_auto_20201201_1044.py
echarlotte612/jets
fec53d669186731980fcfdc1dbad03d713831b3c
[ "Unlicense" ]
18
2020-11-30T13:56:28.000Z
2020-12-04T11:13:57.000Z
library/migrations/0003_auto_20201201_1044.py
echarlotte612/jets
fec53d669186731980fcfdc1dbad03d713831b3c
[ "Unlicense" ]
1
2020-12-02T16:24:46.000Z
2020-12-02T16:24:46.000Z
# Generated by Django 3.1.4 on 2020-12-01 10:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('library', '0002_auto_20201201_1037'), ] operations = [ migrations.AddField( model_name='sighting', name='report', ...
22.6
47
0.564602
77e4db05537a3120056452cbb73d24048dfd11a2
30,160
py
Python
ibmsecurity/isam/web/reverse_proxy/junctions.py
djorgen-ibm/ibmsecurity
388ca2b7b0370e82399761cb834b60f550289cc3
[ "Apache-2.0" ]
null
null
null
ibmsecurity/isam/web/reverse_proxy/junctions.py
djorgen-ibm/ibmsecurity
388ca2b7b0370e82399761cb834b60f550289cc3
[ "Apache-2.0" ]
null
null
null
ibmsecurity/isam/web/reverse_proxy/junctions.py
djorgen-ibm/ibmsecurity
388ca2b7b0370e82399761cb834b60f550289cc3
[ "Apache-2.0" ]
null
null
null
import logging from ibmsecurity.utilities import tools logger = logging.getLogger(__name__) # URI for this module uri = "/wga/reverseproxy" requires_modules = ["wga"] requires_version = None def get_all(isamAppliance, reverseproxy_id, check_mode=False, force=False): """ Retrieving a list of standard and vir...
51.821306
166
0.600729
f5d2b8a54025cc15cc7c742447a1b0422d2bdaf6
10,180
py
Python
djforms/giving/forms.py
carthage-college/django-djforms
870bb1fea245cd487bb6c40addad88779f1cb926
[ "Unlicense" ]
1
2019-11-20T12:30:50.000Z
2019-11-20T12:30:50.000Z
djforms/giving/forms.py
carthage-college/django-djforms
870bb1fea245cd487bb6c40addad88779f1cb926
[ "Unlicense" ]
8
2020-03-23T20:36:06.000Z
2022-02-20T17:06:13.000Z
djforms/giving/forms.py
carthage-college/django-djforms
870bb1fea245cd487bb6c40addad88779f1cb926
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from django import forms from djforms.core.models import Promotion from djforms.core.models import STATE_CHOICES from djforms.processors.models import Order from djforms.processors.forms import ContactForm from djforms.processors.forms import OrderForm from djforms.giving.models import Donatio...
27.814208
88
0.585069
db0486a6ceaec9bd797bb7dea17eec5c7f46f2c9
3,401
py
Python
test.py
rystylee/pytorch-BicycleGAN
3ee8433ec6112564b44fbdeac3fd80bd39f9c707
[ "MIT" ]
2
2020-07-21T23:19:37.000Z
2020-10-28T11:56:34.000Z
test.py
rystylee/pytorch-BicycleGAN
3ee8433ec6112564b44fbdeac3fd80bd39f9c707
[ "MIT" ]
null
null
null
test.py
rystylee/pytorch-BicycleGAN
3ee8433ec6112564b44fbdeac3fd80bd39f9c707
[ "MIT" ]
null
null
null
import argparse import time import torch from PIL import Image import cv2 from model import Generator from util import sample_z, get_input_tensor, toPIL, denormalize def test_simple(args): device = 'cuda:0' if torch.cuda.is_available() else 'cpu' g_n_blocks = 8 G = Generator(args.input...
33.019417
101
0.628639
b2653250401c39ac282201c4719413f63802a00b
1,410
py
Python
pandas_practice/a6_slicing.py
dkp-1024/my_machine_learning
11ace64c7ae5c709f20cb6691529768b42d08d22
[ "Apache-2.0" ]
null
null
null
pandas_practice/a6_slicing.py
dkp-1024/my_machine_learning
11ace64c7ae5c709f20cb6691529768b42d08d22
[ "Apache-2.0" ]
null
null
null
pandas_practice/a6_slicing.py
dkp-1024/my_machine_learning
11ace64c7ae5c709f20cb6691529768b42d08d22
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd #import tensorflow as tf import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2' dates = pd.date_range('20130101',periods=6) df = pd.DataFrame(np.random.randn(6,4),index=dates,columns=list('ABCD')) # print(df) #get first n rows from the data frame print(df[:3]) #slice based on date r...
21.044776
80
0.68227
7981c8d7b020cff894859516617ce334e2336657
19,016
py
Python
beast/physicsmodel/helpers/hdfstore.py
marthaboyer/beast
1ca71fb64ab60827e4e4e1937b64f319a98166c3
[ "BSD-3-Clause" ]
null
null
null
beast/physicsmodel/helpers/hdfstore.py
marthaboyer/beast
1ca71fb64ab60827e4e4e1937b64f319a98166c3
[ "BSD-3-Clause" ]
null
null
null
beast/physicsmodel/helpers/hdfstore.py
marthaboyer/beast
1ca71fb64ab60827e4e4e1937b64f319a98166c3
[ "BSD-3-Clause" ]
null
null
null
""" HDFStore High level interface to PyTables for reading and writing structures to disk Could work either as a (key, value) storage or as a classic tables.file.File object. Example Usage:: import numpy as np #make a store with HDFStore('tmp.hd5', mode='w') as hd: #make some variables d = {...
31.959664
106
0.555217
8e6abdcb766d237d52ff558ea47f04e220021e11
15,043
py
Python
test/functional/wallet_bumpfee.py
toadcoin-project/toadcoin
a9852b48b4b719aaf2c6db5bb589685dd95aba6d
[ "MIT" ]
null
null
null
test/functional/wallet_bumpfee.py
toadcoin-project/toadcoin
a9852b48b4b719aaf2c6db5bb589685dd95aba6d
[ "MIT" ]
null
null
null
test/functional/wallet_bumpfee.py
toadcoin-project/toadcoin
a9852b48b4b719aaf2c6db5bb589685dd95aba6d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016-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 the bumpfee RPC. Verifies that the bumpfee RPC creates replacement transactions successfully when...
46.862928
159
0.729642
7e7b982553c29b05f9a8fc7ffc1a0477f835fc46
6,030
py
Python
runYANGallstats/runYANGallstats.py
stanislav-chlebec/backend
95b8861c51a4a72de5b50587208b771b9e79d25d
[ "Apache-2.0" ]
null
null
null
runYANGallstats/runYANGallstats.py
stanislav-chlebec/backend
95b8861c51a4a72de5b50587208b771b9e79d25d
[ "Apache-2.0" ]
null
null
null
runYANGallstats/runYANGallstats.py
stanislav-chlebec/backend
95b8861c51a4a72de5b50587208b771b9e79d25d
[ "Apache-2.0" ]
null
null
null
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright 2018 Cisco and its affiliates # # 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...
44.666667
171
0.628524
dbbb19f3949773b3f754569d13ed56e82c5ab673
378
py
Python
check_split.py
rstojan/Learning_Python
77ce25787021a0c8b2d8e31c1cfd6e939316f4a6
[ "MIT" ]
null
null
null
check_split.py
rstojan/Learning_Python
77ce25787021a0c8b2d8e31c1cfd6e939316f4a6
[ "MIT" ]
null
null
null
check_split.py
rstojan/Learning_Python
77ce25787021a0c8b2d8e31c1cfd6e939316f4a6
[ "MIT" ]
null
null
null
def split_check(total, num_diners, tip_rate=0.15, tax_rate = 0.09): cost_divided_by_person = (total + (total * tip_rate) + (total * tax_rate)) / num_diners return round(cost_divided_by_person, 2) total = float(input('Enter bill total:\n')) num_diners = int(input('Enter number of diners:\n')) print('Cost per d...
42
91
0.716931
3de4549f4c14563206de8e3ffcaee92f8019c598
809
py
Python
udemy/urls.py
hudsonbrendon/udemy-free-courses
a3bdb06683c2e8864976ac19004ec81036fb54d9
[ "MIT" ]
36
2018-02-28T18:16:36.000Z
2021-11-08T11:41:29.000Z
udemy/urls.py
hudsonbrendon/udemy-free-courses
a3bdb06683c2e8864976ac19004ec81036fb54d9
[ "MIT" ]
2
2018-03-13T01:31:51.000Z
2018-03-27T21:13:53.000Z
udemy/urls.py
hudsonbrendon/udemy-free-courses
a3bdb06683c2e8864976ac19004ec81036fb54d9
[ "MIT" ]
9
2018-02-27T23:58:27.000Z
2022-01-06T15:39:28.000Z
"""udemy URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based v...
33.708333
77
0.703337
af504d302dd26c4f33e1b0607d59be332f45c3c4
5,526
py
Python
docs/api/conf.py
takahi-i/janome
430724cc69bb518414c17684562de716231e38a1
[ "Apache-2.0" ]
null
null
null
docs/api/conf.py
takahi-i/janome
430724cc69bb518414c17684562de716231e38a1
[ "Apache-2.0" ]
null
null
null
docs/api/conf.py
takahi-i/janome
430724cc69bb518414c17684562de716231e38a1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # janome documentation build configuration file, created by # sphinx-quickstart on Tue Jun 27 23:45:02 2017. # # 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 # aut...
29.238095
79
0.676801
0f9f78fdd6489f958d4412dcccc25eeb7c603476
8,755
py
Python
coinDice/_util.py
RunzheStat/TROPE
ac704b1fcb422f0e9e7b2e1b16d3c8b1812560f1
[ "MIT" ]
8
2021-05-13T23:20:35.000Z
2021-07-30T08:56:29.000Z
coinDice/_util.py
callmespring/D2OPE
ac704b1fcb422f0e9e7b2e1b16d3c8b1812560f1
[ "MIT" ]
null
null
null
coinDice/_util.py
callmespring/D2OPE
ac704b1fcb422f0e9e7b2e1b16d3c8b1812560f1
[ "MIT" ]
3
2021-05-12T11:39:21.000Z
2021-08-09T17:02:56.000Z
# instance.method = MethodType(method, instance) # !aws codecommit list-repositories # !autopep8 --in-place --aggressive --aggressive brac_dual_agent.py # gpus = tf.config.experimental.list_physical_devices('GPU') # if gpus: # try: # for gpu in gpus: # tf.config.experimental.set_memory_growth(g...
28.517915
124
0.6008
faf56cfa27386bf77624a2350977b03d34fcab97
934
py
Python
shelving.py
russelljjarvis/sirg_geo_net
02628873d60fb4f9f19278d35bfd07467848adbb
[ "MIT" ]
1
2021-12-17T07:17:05.000Z
2021-12-17T07:17:05.000Z
shelving.py
russelljjarvis/CoauthorNetVis
efbb631d110b09c98558a6f3ffa6b80227a1e123
[ "MIT" ]
null
null
null
shelving.py
russelljjarvis/CoauthorNetVis
efbb631d110b09c98558a6f3ffa6b80227a1e123
[ "MIT" ]
null
null
null
import shelve import pickle import networkx import holoviews as hv import chord2 hv.extension("bokeh", logo=False) hv.output(size=100) MAIN_AUTHOR = "Brian H Smith" with shelve.open("fast_graphs_splash.p") as db: print(list(db.keys())) """ with open("Brian H Smith.p","rb") as f: g = pickle.load(f) with open('Br...
25.243243
77
0.70985
28186f415edbbb1c5182616c2de2f7b48f3b2ac9
658
py
Python
skill/__init__.py
TwinIsland/webot
909241d8ce0887567914774eb8838001268b13d1
[ "Apache-2.0" ]
null
null
null
skill/__init__.py
TwinIsland/webot
909241d8ce0887567914774eb8838001268b13d1
[ "Apache-2.0" ]
null
null
null
skill/__init__.py
TwinIsland/webot
909241d8ce0887567914774eb8838001268b13d1
[ "Apache-2.0" ]
null
null
null
################################################################ # # # @ @ @@@@@@ @@@@@@ @ @ @ @@@@@@@ # # @ @ @ @ @ @ @ @ # # @ @ @ @ @@@@ @@@@@@ @ @ @ ...
43.866667
64
0.075988
822949fea8cee186c4941c3d278e4dc6f3448ec3
16,761
py
Python
tests/pytests/unit/modules/test_win_pkg.py
tomdoherty/salt
f87d5d7abbf9777773c4d91fdafecb8b1a728e76
[ "Apache-2.0" ]
9,425
2015-01-01T05:59:24.000Z
2022-03-31T20:44:05.000Z
tests/pytests/unit/modules/test_win_pkg.py
tomdoherty/salt
f87d5d7abbf9777773c4d91fdafecb8b1a728e76
[ "Apache-2.0" ]
33,507
2015-01-01T00:19:56.000Z
2022-03-31T23:48:20.000Z
tests/pytests/unit/modules/test_win_pkg.py
tomdoherty/salt
f87d5d7abbf9777773c4d91fdafecb8b1a728e76
[ "Apache-2.0" ]
5,810
2015-01-01T19:11:45.000Z
2022-03-31T02:37:20.000Z
""" Tests for the win_pkg module """ import pytest import salt.modules.config as config import salt.modules.pkg_resource as pkg_resource import salt.modules.win_pkg as win_pkg import salt.utils.data import salt.utils.platform import salt.utils.win_reg as win_reg from salt.exceptions import MinionError from tests.suppo...
33.656627
106
0.582483
b3180526629099cafc9799d1a3739cb859796d05
433
py
Python
vocabseditor/settings/dev.py
csae8092/vocabseditor
de94161424dcaee6f9e8f41936a5910493cfe3c2
[ "MIT" ]
9
2019-04-24T10:10:11.000Z
2021-10-21T13:52:02.000Z
vocabseditor/settings/dev.py
csae8092/vocabseditor
de94161424dcaee6f9e8f41936a5910493cfe3c2
[ "MIT" ]
21
2020-02-07T10:38:04.000Z
2022-02-04T11:42:55.000Z
vocabseditor/settings/dev.py
csae8092/vocabseditor
de94161424dcaee6f9e8f41936a5910493cfe3c2
[ "MIT" ]
4
2020-07-03T21:24:43.000Z
2021-12-26T19:34:52.000Z
from .base import * # SECURITY WARNING: keep the secret key used in production secret! # Change your secret in production! SECRET_KEY = '^mm-24*i-6iecm7c@z9l+7%^ns^4g^z!8=dgffg4ulggr-4=1%' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = [] DATABASES = { 'default':...
22.789474
66
0.667436
5fc04c3d84efd82f278688080d221ba6479c5a70
5,286
py
Python
deodr/examples/rgb_image_hand_fitting.py
martinResearch/DEODR
101b2223341331986e77db883e3684128a4fbf2d
[ "BSD-2-Clause" ]
262
2019-12-17T15:57:17.000Z
2022-03-29T03:25:52.000Z
deodr/examples/rgb_image_hand_fitting.py
martinResearch/DEODR
101b2223341331986e77db883e3684128a4fbf2d
[ "BSD-2-Clause" ]
115
2020-03-02T23:05:45.000Z
2022-03-19T00:40:47.000Z
deodr/examples/rgb_image_hand_fitting.py
martinResearch/DEODR
101b2223341331986e77db883e3684128a4fbf2d
[ "BSD-2-Clause" ]
23
2019-12-18T02:43:58.000Z
2022-03-04T01:25:51.000Z
"""Example with fitting a colored hand mesh model to an image.""" import datetime import glob import json import os import time import cv2 import deodr from deodr import read_obj from deodr import ColoredTriMesh from imageio import imread, imsave import matplotlib.pyplot as plt import numpy as np def run( ...
26.69697
86
0.556754
c54259124df769ffc4f57aa71ae7a325ebba5afe
12,576
py
Python
client/commands/tests/language_server_protocol_test.py
esiebomaj/pyre-check
bc75489e04ca21f51ba1ebc6296e2ff5c27626c9
[ "MIT" ]
3
2021-06-17T16:32:46.000Z
2021-09-20T14:47:23.000Z
client/commands/tests/language_server_protocol_test.py
sthagen/pyre-check
2cd35436b5a5516116177e8e80881882341701e5
[ "MIT" ]
87
2021-02-03T22:05:58.000Z
2021-12-07T16:30:09.000Z
client/commands/tests/language_server_protocol_test.py
sthagen/pyre-check
2cd35436b5a5516116177e8e80881882341701e5
[ "MIT" ]
3
2021-06-17T16:32:54.000Z
2021-10-13T20:53:12.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import functools import json from pathlib import Path from typing import Mapping, Optional, TypeVar, Callable import testslide from ... impo...
36.55814
88
0.528308
10ae4d5f1630aa83eaa657693bca7048fc8b9e48
135
py
Python
healthbuddy_backend/rapidpro/tests.py
Asfak06/health-buddy
1a40a35a95bc4179a44445ed0c0b9dc32360e0bc
[ "MIT" ]
null
null
null
healthbuddy_backend/rapidpro/tests.py
Asfak06/health-buddy
1a40a35a95bc4179a44445ed0c0b9dc32360e0bc
[ "MIT" ]
null
null
null
healthbuddy_backend/rapidpro/tests.py
Asfak06/health-buddy
1a40a35a95bc4179a44445ed0c0b9dc32360e0bc
[ "MIT" ]
null
null
null
from django.test import TestCase class ProxyRapidProTestCase(TestCase): ... class RapidProProxyViewTestCase(TestCase): ...
13.5
42
0.740741
2a08f8a0f8d605165873f28ce3161539f334cbf7
23,850
py
Python
seabass/SB_support.py
eocdb/ocdb-server
0e28d092e8ecf5f4813878aab43de990cc5fb4ee
[ "MIT" ]
null
null
null
seabass/SB_support.py
eocdb/ocdb-server
0e28d092e8ecf5f4813878aab43de990cc5fb4ee
[ "MIT" ]
null
null
null
seabass/SB_support.py
eocdb/ocdb-server
0e28d092e8ecf5f4813878aab43de990cc5fb4ee
[ "MIT" ]
null
null
null
""" Module for manipulating data from NASA GSFC SeaBASS files. Author: Joel Scott, SAIC / NASA GSFC Ocean Ecology Lab Notes: * This module is designed to work with files that have been properly formatted according to SeaBASS guidelines (i.e. Files that passed FCHECK). Some error checking is performed, but imprope...
42.362345
333
0.44826
24807bc7acd544fa1b4e3e1b572f8cd02a6fcc79
5,242
py
Python
test/e2e/sagemaker/tests/test_trainingjob.py
pharos/ack-community
cc9f2ce0997e5a67d30557f756dd9c141b95ded1
[ "Apache-2.0" ]
null
null
null
test/e2e/sagemaker/tests/test_trainingjob.py
pharos/ack-community
cc9f2ce0997e5a67d30557f756dd9c141b95ded1
[ "Apache-2.0" ]
null
null
null
test/e2e/sagemaker/tests/test_trainingjob.py
pharos/ack-community
cc9f2ce0997e5a67d30557f756dd9c141b95ded1
[ "Apache-2.0" ]
null
null
null
# Copyright 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" file accompanyin...
34.486842
90
0.71156
08d9df5d7f09d147e17691df841775942b092428
3,801
py
Python
skdecide/builders/discrete_optimization/tsp/common_tools_tsp.py
galleon/bug-free-invention
37bcea112da39d1390ff2b30951b36ee5dbc0e6d
[ "MIT" ]
null
null
null
skdecide/builders/discrete_optimization/tsp/common_tools_tsp.py
galleon/bug-free-invention
37bcea112da39d1390ff2b30951b36ee5dbc0e6d
[ "MIT" ]
null
null
null
skdecide/builders/discrete_optimization/tsp/common_tools_tsp.py
galleon/bug-free-invention
37bcea112da39d1390ff2b30951b36ee5dbc0e6d
[ "MIT" ]
null
null
null
import math from collections import namedtuple import os import networkx as nx from typing import List import numpy as np import matplotlib.pyplot as plt from skdecide.builders.discrete_optimization.tsp.tsp_model import Point2D, length this_path = os.path.dirname(os.path.abspath(__file__)) os.chdir(this_path) def le...
31.413223
81
0.651144
1d0d0b791c4646e7de69415dc08cd1e1c2539778
5,866
py
Python
fiat/data.py
chamhoo/Severstal
29e7cf7083b6e5a6228379177dc83f6f85533e9a
[ "MIT" ]
null
null
null
fiat/data.py
chamhoo/Severstal
29e7cf7083b6e5a6228379177dc83f6f85533e9a
[ "MIT" ]
null
null
null
fiat/data.py
chamhoo/Severstal
29e7cf7083b6e5a6228379177dc83f6f85533e9a
[ "MIT" ]
null
null
null
""" auther: leechh """ import os import tensorflow as tf from tqdm import trange from math import ceil from fiat.chunk import chunk from fiat.os import mkdir class TFR(object): def __init__(self, path, count, feature_dict, shards=1000, compression=None, c_level=None): """ :param path: :pa...
34.710059
112
0.540573
527f1ba22b0e8db445582c3a96282c4f0d512d91
20,402
py
Python
cwltool/argparser.py
uniqueg/cwltool
e1db94fffa23ec6d30568f9e705180c8b33e7d0d
[ "Apache-2.0" ]
null
null
null
cwltool/argparser.py
uniqueg/cwltool
e1db94fffa23ec6d30568f9e705180c8b33e7d0d
[ "Apache-2.0" ]
null
null
null
cwltool/argparser.py
uniqueg/cwltool
e1db94fffa23ec6d30568f9e705180c8b33e7d0d
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function import argparse import logging import os from typing import (Any, AnyStr, Dict, List, Sequence, Text, Union, cast) from . import loghandler from schema_salad.ref_resolver import file_uri from .process import (Process, shortname) from .resol...
48.925659
170
0.614695
0342f53127e98eca660a18d6fba92a0c0e2e430f
276
py
Python
webtypes/tokenize/__init__.py
abetkin/webtypes
af62501b91368f18acb569d6c3a587f0b7a125f7
[ "BSD-3-Clause" ]
null
null
null
webtypes/tokenize/__init__.py
abetkin/webtypes
af62501b91368f18acb569d6c3a587f0b7a125f7
[ "BSD-3-Clause" ]
null
null
null
webtypes/tokenize/__init__.py
abetkin/webtypes
af62501b91368f18acb569d6c3a587f0b7a125f7
[ "BSD-3-Clause" ]
null
null
null
from webtypes.tokenize.tokenize_json import tokenize_json from webtypes.tokenize.tokenize_yaml import tokenize_yaml from webtypes.tokenize.tokens import DictToken, ListToken, ScalarToken __all__ = ['DictToken', 'ListToken', 'ScalarToken', 'tokenize_json', 'tokenize_yaml', ]
46
87
0.822464
e41ae4205615a29a0d523d54d019940186d45887
62,644
py
Python
bentoml/yatai/proto/repository_pb2.py
DrizzlingCattus/BentoML
3ca0cc134c72d92e2e806113df1677e38f2567e0
[ "Apache-2.0" ]
null
null
null
bentoml/yatai/proto/repository_pb2.py
DrizzlingCattus/BentoML
3ca0cc134c72d92e2e806113df1677e38f2567e0
[ "Apache-2.0" ]
null
null
null
bentoml/yatai/proto/repository_pb2.py
DrizzlingCattus/BentoML
3ca0cc134c72d92e2e806113df1677e38f2567e0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: repository.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.prot...
44.970567
5,169
0.765772
c4fea551443a51792299c8239a4b0917b447ee9f
980
py
Python
cleo/ui/ui.py
Ivoz/cleo
8dc694ed5ed350403966f93d330654ecb447801b
[ "MIT" ]
859
2015-02-04T02:33:22.000Z
2022-03-31T10:41:06.000Z
cleo/ui/ui.py
Ivoz/cleo
8dc694ed5ed350403966f93d330654ecb447801b
[ "MIT" ]
66
2015-01-04T19:43:48.000Z
2022-03-30T02:33:13.000Z
cleo/ui/ui.py
Ivoz/cleo
8dc694ed5ed350403966f93d330654ecb447801b
[ "MIT" ]
64
2015-01-18T08:32:43.000Z
2022-03-02T10:43:58.000Z
from typing import Dict from typing import List from cleo.exceptions import ValueException from .component import Component class UI: def __init__(self, components: List[Component] = None) -> None: self._components: Dict[str, Component] = {} if components is None: components = [] ...
28
74
0.641837
eb50c31213cdba3a07e96c34fd3fd944e3af2bce
3,272
py
Python
huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_show_security_compliance_by_option_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_show_security_compliance_by_option_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_show_security_compliance_by_option_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class KeystoneShowSecurityComplianceByOptionResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
28.955752
97
0.586186
afedc8cc990c24a82b793dd0b193637ddced461f
10,162
py
Python
sagemaker-python-sdk/tensorboard_keras/source_dir/tensorboard_keras_cifar10.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
5
2019-01-19T23:53:35.000Z
2022-01-29T14:04:31.000Z
sagemaker-python-sdk/tensorboard_keras/source_dir/tensorboard_keras_cifar10.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
4
2020-09-26T01:25:36.000Z
2021-08-25T16:10:50.000Z
sagemaker-python-sdk/tensorboard_keras/source_dir/tensorboard_keras_cifar10.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
7
2020-03-04T22:23:51.000Z
2021-07-13T14:05:46.000Z
# Copyright 2018 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 # # https://aws.amazon.com/apache-2-0/ # ...
38.78626
174
0.702519
6a743f797f7a58e5b6dd6b45fb30255a708e83e0
48,344
py
Python
lib/kb_AssemblyUtilities/kb_AssemblyUtilitiesImpl.py
kbaseapps/kb_AssemblyUtilities
1107fbca69258b67d4b66e1700e10cdb76e63244
[ "MIT" ]
null
null
null
lib/kb_AssemblyUtilities/kb_AssemblyUtilitiesImpl.py
kbaseapps/kb_AssemblyUtilities
1107fbca69258b67d4b66e1700e10cdb76e63244
[ "MIT" ]
1
2020-05-20T03:24:42.000Z
2020-05-20T03:24:42.000Z
lib/kb_AssemblyUtilities/kb_AssemblyUtilitiesImpl.py
kbaseapps/kb_AssemblyUtilities
1107fbca69258b67d4b66e1700e10cdb76e63244
[ "MIT" ]
2
2020-01-31T00:32:45.000Z
2020-01-31T00:58:04.000Z
# -*- coding: utf-8 -*- #BEGIN_HEADER from __future__ import print_function from __future__ import division import logging import os import sys import shutil import hashlib import subprocess import requests import re import traceback import uuid from datetime import datetime from pprint import pprint, pformat from in...
49.532787
197
0.557484
16ab6461e07732f555ab26c2297bffe009958c64
15,903
py
Python
pyrtl/memory.py
zou-sheng/PyRTL
c8d671c632126df173d6976830598a69ce37cc53
[ "BSD-3-Clause" ]
null
null
null
pyrtl/memory.py
zou-sheng/PyRTL
c8d671c632126df173d6976830598a69ce37cc53
[ "BSD-3-Clause" ]
null
null
null
pyrtl/memory.py
zou-sheng/PyRTL
c8d671c632126df173d6976830598a69ce37cc53
[ "BSD-3-Clause" ]
null
null
null
""" Defines PyRTL memories. These blocks of memories can be read (potentially async) and written (sync) MemBlocks supports any number of the following operations: * read: `d = mem[address]` * write: `mem[address] = d` * write with an enable: `mem[address] = MemBlock.EnabledWrite(d,enable=we)` Based on the number of ...
43.930939
100
0.63925
84852b8d50975ee79b6296bf6eb1d5c1c534b65d
4,525
py
Python
astroquery/utils/tap/model/tapcolumn.py
hdevillepoix/astroquery
ce8c500c28424fe841e04741d4230b8f695ee194
[ "BSD-3-Clause" ]
null
null
null
astroquery/utils/tap/model/tapcolumn.py
hdevillepoix/astroquery
ce8c500c28424fe841e04741d4230b8f695ee194
[ "BSD-3-Clause" ]
1
2021-06-25T15:14:44.000Z
2021-06-25T15:14:44.000Z
astroquery/utils/tap/model/tapcolumn.py
hdevillepoix/astroquery
ce8c500c28424fe841e04741d4230b8f695ee194
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ ============= TAP plus ============= @author: Juan Carlos Segovia @contact: juan.carlos.segovia@sciops.esa.int European Space Astronomy Centre (ESAC) European Space Agency (ESA) Created on 30 jun. 2016 """ class TapColumn(objec...
22.625
64
0.487956
f0c544fcf3adc3c867d9187ea9a8d6e821b5c431
2,094
py
Python
mail/3dpoint2d.py
cakirogluozan/savas-pipeline
3084d52b5554a23da52e752d9dcef27042333c6f
[ "MIT" ]
null
null
null
mail/3dpoint2d.py
cakirogluozan/savas-pipeline
3084d52b5554a23da52e752d9dcef27042333c6f
[ "MIT" ]
null
null
null
mail/3dpoint2d.py
cakirogluozan/savas-pipeline
3084d52b5554a23da52e752d9dcef27042333c6f
[ "MIT" ]
null
null
null
import numpy as np import cv2 def roty(t): c = np.cos(t) s = np.sin(t) return np.array([[c, 0, s], [0, 1, 0], [-s, 0, c]]) def compute_box_3d(ry, l1, w1, h1, t0, t1, t2): R = roty(ry) l = w1 w = l1 h = h1 # 3d bounding box corners ...
26.846154
87
0.543935
9053a6262d67c2dc79e3b96fa56749633e2105af
1,289
py
Python
example/sqlalchemy/a.py
aturkenov/wampify
5dcb0a766c1d0a139f11b934899b07d78a849931
[ "MIT" ]
1
2022-03-26T14:42:56.000Z
2022-03-26T14:42:56.000Z
example/sqlalchemy/a.py
aturkenov/wampify
5dcb0a766c1d0a139f11b934899b07d78a849931
[ "MIT" ]
null
null
null
example/sqlalchemy/a.py
aturkenov/wampify
5dcb0a766c1d0a139f11b934899b07d78a849931
[ "MIT" ]
null
null
null
from wampify import Wampify from wampify.story import * from wampify.signals import entrypoint_signals wampify = Wampify( debug=False, uri_prefix='com.example', router_url='ws://127.0.0.1:8080/private', wamps={ 'realm': 'example', 'show_registered': True, 'show_subscribed': Tru...
23.017857
90
0.726144
b6d64d0fe32bdea36d64d2dbeee9c3610600d986
6,370
py
Python
pysnmp-with-texts/SMUX-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/SMUX-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/SMUX-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module SMUX-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SMUX-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:07:52 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:1...
120.188679
543
0.777551
f58c9e33dbc287269178603f2b9f1c143ed1d12e
93,974
py
Python
venv/lib/python3.6/site-packages/numpy/lib/tests/test_io.py
Seifar/ChitAnalysis
0580802c78b11766ba21e3929b8fa96f8f6a17f0
[ "MIT" ]
69
2019-02-18T12:07:35.000Z
2022-03-12T10:38:32.000Z
venv/lib/python3.7/site-packages/numpy/lib/tests/test_io.py
John1001Song/Big-Data-Robo-Adviser
9444dce96954c546333d5aecc92a06c3bfd19aa5
[ "MIT" ]
12
2018-12-06T22:06:49.000Z
2022-02-25T17:40:44.000Z
venv/lib/python3.7/site-packages/numpy/lib/tests/test_io.py
John1001Song/Big-Data-Robo-Adviser
9444dce96954c546333d5aecc92a06c3bfd19aa5
[ "MIT" ]
28
2020-04-15T15:24:17.000Z
2021-12-26T04:05:02.000Z
from __future__ import division, absolute_import, print_function import sys import gzip import os import threading import time import warnings import gc import io import re import pytest from tempfile import NamedTemporaryFile from io import BytesIO, StringIO from datetime import datetime import locale import numpy a...
38.816192
84
0.520506
7320c466a4ddb1afdcdc3dea8fef51cb31de6b06
8,101
py
Python
jetmontecarlo/tests/radiatorderiv_tests/test_fixedcoupsubradderivs.py
samcaf/JetMonteCarlo
71f50f3bb53a4f68ed927eaeaed5ee258da0dd34
[ "MIT" ]
null
null
null
jetmontecarlo/tests/radiatorderiv_tests/test_fixedcoupsubradderivs.py
samcaf/JetMonteCarlo
71f50f3bb53a4f68ed927eaeaed5ee258da0dd34
[ "MIT" ]
null
null
null
jetmontecarlo/tests/radiatorderiv_tests/test_fixedcoupsubradderivs.py
samcaf/JetMonteCarlo
71f50f3bb53a4f68ed927eaeaed5ee258da0dd34
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.backends.backend_pdf # Local utils: from jetmontecarlo.montecarlo.integrator import * from jetmontecarlo.utils.plot_utils import * from jetmontecarlo.utils.color_utils import * # Local jet tools from jetmontecarlo.jets.jetSamplers import * from jetmontecarlo.jets.observables impor...
38.393365
77
0.447969
39577811ffd5d18ee31dd310c80ae0213e25ca5b
6,397
py
Python
modoboa/admin/tests/test_domain.py
vinaebizs/modoboa
fb1e7f4c023b7eb6be3aa77174bfa12fc653670e
[ "0BSD" ]
null
null
null
modoboa/admin/tests/test_domain.py
vinaebizs/modoboa
fb1e7f4c023b7eb6be3aa77174bfa12fc653670e
[ "0BSD" ]
null
null
null
modoboa/admin/tests/test_domain.py
vinaebizs/modoboa
fb1e7f4c023b7eb6be3aa77174bfa12fc653670e
[ "0BSD" ]
null
null
null
# coding: utf-8 """Domain related test cases.""" import json from django.core.urlresolvers import reverse from modoboa.core.models import User from modoboa.lib import parameters from modoboa.lib.tests import ModoTestCase from .. import factories from ..models import Domain, Alias class DomainTestCase(ModoTestCas...
35.538889
73
0.599187
42767fda3541fb546863a1355a1e62c0c9044d51
54,643
py
Python
tools/PythonExtensionChecker.py
Amit0617/OpenMS
70ef98e32b02721f45fe72bd4de4b4833755a66f
[ "BSL-1.0", "Zlib", "Apache-2.0" ]
1
2022-03-23T09:45:02.000Z
2022-03-23T09:45:02.000Z
tools/PythonExtensionChecker.py
Amit0617/OpenMS
70ef98e32b02721f45fe72bd4de4b4833755a66f
[ "BSL-1.0", "Zlib", "Apache-2.0" ]
1
2018-04-02T18:07:10.000Z
2018-04-02T18:07:10.000Z
tools/PythonExtensionChecker.py
Amit0617/OpenMS
70ef98e32b02721f45fe72bd4de4b4833755a66f
[ "BSL-1.0", "Zlib", "Apache-2.0" ]
3
2018-01-10T19:50:48.000Z
2021-11-12T15:56:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ -------------------------------------------------------------------------- OpenMS -- Open-Source Mass Spectrometry -------------------------------------------------------------------------- Copyright The OpenMS Team -- Eberhard Karls University Tuebin...
41.936301
207
0.584723
fe6ac4451add47fb87193effde00e61f0eb44ad2
14,985
py
Python
geemap/chart.py
ppoon23/geemap
e1a9660336ab9a7eddd702964719118b012db697
[ "MIT" ]
null
null
null
geemap/chart.py
ppoon23/geemap
e1a9660336ab9a7eddd702964719118b012db697
[ "MIT" ]
null
null
null
geemap/chart.py
ppoon23/geemap
e1a9660336ab9a7eddd702964719118b012db697
[ "MIT" ]
null
null
null
"""Module for creating charts for Earth Engine data. """ import ee import pandas as pd import numpy as np from bqplot import Tooltip from bqplot import pyplot as plt from .common import ee_to_df from typing import Union class BaseChartClass: """This should include everything a chart module requires to plot fig...
29.556213
173
0.612946
58332d57524ae21d1a616aefd9cb83a0e7de5001
8,445
py
Python
generic_dataset/data_pipeline.py
micheleantonazzi/gibson-dataset
cb5fc81061bbda1a653d6fc7b625b14c8a517f3c
[ "MIT" ]
3
2021-10-31T17:43:50.000Z
2022-03-21T08:55:01.000Z
generic_dataset/data_pipeline.py
micheleantonazzi/gibson-dataset
cb5fc81061bbda1a653d6fc7b625b14c8a517f3c
[ "MIT" ]
null
null
null
generic_dataset/data_pipeline.py
micheleantonazzi/gibson-dataset
cb5fc81061bbda1a653d6fc7b625b14c8a517f3c
[ "MIT" ]
null
null
null
import copy from typing import Callable import numpy as np import generic_dataset.utilities.engine_selector as eg class PipelineAlreadyRunException(Exception): """ This exception is raised when the user tries to change the status of a run pipeline or the pipeline is re-run. """ def __init__(self): ...
42.437186
158
0.672469
6f6ce811ceb3c7725a3c08b41400e69c12771189
8,108
py
Python
notegenerator.py
khakers/unturned-note-generator
24081fb767661866734f9d728d16cf08a88ff918
[ "MIT" ]
null
null
null
notegenerator.py
khakers/unturned-note-generator
24081fb767661866734f9d728d16cf08a88ff918
[ "MIT" ]
null
null
null
notegenerator.py
khakers/unturned-note-generator
24081fb767661866734f9d728d16cf08a88ff918
[ "MIT" ]
null
null
null
import json from typing import List from click.exceptions import FileError from jinja2.loaders import FileSystemLoader from pathvalidate.error import ValidationError import yaml from yaml.loader import FullLoader from uuid import uuid4 import config import pathlib import random import click from jinja2 import Environm...
39.55122
248
0.643439
86b780a248184add63847c97a243838946f22ea9
14,588
py
Python
sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_generated/v7_2/aio/operations/_role_definitions_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_generated/v7_2/aio/operations/_role_definitions_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_generated/v7_2/aio/operations/_role_definitions_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
42.780059
146
0.646833
c37b97776933f6e4e4063e95cd0e865bfc0fa4f0
2,249
py
Python
src/news_kg/__init__.py
andreeaiana/geneg
f2039e3c26608399ca60709895aaed6c745a5dc9
[ "MIT" ]
2
2021-12-09T16:21:31.000Z
2021-12-10T10:35:20.000Z
src/news_kg/__init__.py
andreeaiana/geneg
f2039e3c26608399ca60709895aaed6c745a5dc9
[ "MIT" ]
null
null
null
src/news_kg/__init__.py
andreeaiana/geneg
f2039e3c26608399ca60709895aaed6c745a5dc9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import utils from src.news_kg.graph import GeNeG import src.news_kg.serialize as news_kg_serialize def get_base_graph() -> GeNeG: """ Retrieves the base graph created from the news dataset. """ utils.get_logger().info('GeNeG: Loading base knowledge graph into memory..') global __B...
43.25
130
0.724322
abdb00a52f880c7f0adf5f4a091160880e12d40d
9,031
py
Python
sdk/python/pulumi_oci/optimizer/get_profile.py
EladGabay/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
5
2021-08-17T11:14:46.000Z
2021-12-31T02:07:03.000Z
sdk/python/pulumi_oci/optimizer/get_profile.py
pulumi-oci/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
1
2021-09-06T11:21:29.000Z
2021-09-06T11:21:29.000Z
sdk/python/pulumi_oci/optimizer/get_profile.py
pulumi-oci/pulumi-oci
6841e27d4a1a7e15c672306b769912efbfd3ba99
[ "ECL-2.0", "Apache-2.0" ]
2
2021-08-24T23:31:30.000Z
2022-01-02T19:26:54.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
39.609649
277
0.669583
533a3d283baed7ecbcf75f156a504c7d086e81dd
5,356
py
Python
test/molecule-role/molecule/kubernetes/tests/test_receiver_metrics.py
StackVista/stackstate-agent
843f66189fae107646c57f71fed962bdaab3b3be
[ "Apache-2.0" ]
2
2018-11-12T22:00:56.000Z
2019-11-07T22:14:23.000Z
test/molecule-role/molecule/kubernetes/tests/test_receiver_metrics.py
StackVista/stackstate-agent
843f66189fae107646c57f71fed962bdaab3b3be
[ "Apache-2.0" ]
49
2018-10-02T18:14:58.000Z
2022-01-20T21:06:31.000Z
test/molecule-role/molecule/kubernetes/tests/test_receiver_metrics.py
StackVista/stackstate-agent
843f66189fae107646c57f71fed962bdaab3b3be
[ "Apache-2.0" ]
3
2019-05-10T13:06:59.000Z
2020-05-21T17:29:33.000Z
import json import os import util import pytest from testinfra.utils.ansible_runner import AnsibleRunner testinfra_hosts = AnsibleRunner(os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('kubernetes-cluster-agent') def test_agents_running(host): url = "http://localhost:7070/api/topic/sts_multi_metrics?limit=1000...
40.575758
131
0.605489
8699212162dfd5ccbefa8f6c4b8d01b727c185ca
4,499
py
Python
catchat/blueprints/chat.py
xianfeng0115/catchat
9e8976d4febf3d10745f09348c95427ac1b259d0
[ "MIT" ]
null
null
null
catchat/blueprints/chat.py
xianfeng0115/catchat
9e8976d4febf3d10745f09348c95427ac1b259d0
[ "MIT" ]
null
null
null
catchat/blueprints/chat.py
xianfeng0115/catchat
9e8976d4febf3d10745f09348c95427ac1b259d0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ :author: Grey Li (李辉) :url: http://greyli.com :copyright: © 2018 Grey Li <withlihui@gmail.com> :license: MIT, see LICENSE for more details. """ from flask import render_template, redirect, url_for, request, Blueprint, current_app, abort,flash from flask_login import c...
35.148438
99
0.680373
e15ab5480ac27768a8adbe0cf5489f63d89d474e
491
py
Python
cwl-wdl/test_WdlV1_1.py
Anu-123-gif/wdl-cwl-translator
af9ff9ef217dec1bb2352ae99048871027542aeb
[ "Apache-2.0" ]
null
null
null
cwl-wdl/test_WdlV1_1.py
Anu-123-gif/wdl-cwl-translator
af9ff9ef217dec1bb2352ae99048871027542aeb
[ "Apache-2.0" ]
null
null
null
cwl-wdl/test_WdlV1_1.py
Anu-123-gif/wdl-cwl-translator
af9ff9ef217dec1bb2352ae99048871027542aeb
[ "Apache-2.0" ]
null
null
null
f = open("sample.txt", "r") import sys from antlr4 import * from WdlV1_1Lexer import WdlV1_1Lexer from WdlV1_1Parser import WdlV1_1Parser from WdlV1_1ParserVisitor import WdlV1_1ParserVisitor from EvaluateTaskVisitor import EvaluateTaskVisitor text = InputStream(f.read()) lexer = WdlV1_1Lexer(text) stream = CommonTok...
25.842105
53
0.802444
f00657367f46d0062a4dcb36866ad3836cb8c345
219
py
Python
abstract_tools/abstract_class_test.py
DimDimi4-and-fixiki/yadisk_tools
ebae005bc6ab64e8a6d9159b2b4dcdd6ec72fc81
[ "MIT" ]
null
null
null
abstract_tools/abstract_class_test.py
DimDimi4-and-fixiki/yadisk_tools
ebae005bc6ab64e8a6d9159b2b4dcdd6ec72fc81
[ "MIT" ]
null
null
null
abstract_tools/abstract_class_test.py
DimDimi4-and-fixiki/yadisk_tools
ebae005bc6ab64e8a6d9159b2b4dcdd6ec72fc81
[ "MIT" ]
null
null
null
import os from abstract_yadisk_handler import AbstractYadiskHandler from dotenv import load_dotenv from yadisk import YaDisk load_dotenv() token = os.getenv('YADISK_TOKEN') yadisk = YaDisk(token=token) print(yadisk)
18.25
57
0.821918
abafa210a778296254db648e582b3eb8561ef360
2,565
py
Python
boto3_type_annotations/boto3_type_annotations/devicefarm/paginator.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
119
2018-12-01T18:20:57.000Z
2022-02-02T10:31:29.000Z
boto3_type_annotations/boto3_type_annotations/devicefarm/paginator.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
15
2018-11-16T00:16:44.000Z
2021-11-13T03:44:18.000Z
boto3_type_annotations/boto3_type_annotations/devicefarm/paginator.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
11
2019-05-06T05:26:51.000Z
2021-09-28T15:27:59.000Z
from typing import Dict from typing import List from botocore.paginate import Paginator class GetOfferingStatus(Paginator): def paginate(self, PaginationConfig: Dict = None) -> Dict: pass class ListArtifacts(Paginator): def paginate(self, arn: str, type: str, PaginationConfig: Dict = None) -> Dict: ...
24.663462
101
0.679142
0ec896751ef6c59ba6e3656859de59e616e25b1d
189
py
Python
torch_em/__init__.py
JonasHell/torch-em
2e008e0cd2f0ea6681581374fce4f9f47b986d55
[ "MIT" ]
13
2021-03-09T21:31:09.000Z
2022-03-21T05:24:26.000Z
torch_em/__init__.py
JonasHell/torch-em
2e008e0cd2f0ea6681581374fce4f9f47b986d55
[ "MIT" ]
16
2021-03-02T23:19:34.000Z
2022-03-25T19:43:41.000Z
torch_em/__init__.py
JonasHell/torch-em
2e008e0cd2f0ea6681581374fce4f9f47b986d55
[ "MIT" ]
4
2021-05-18T08:29:33.000Z
2022-02-11T12:16:20.000Z
from .segmentation import ( default_segmentation_dataset, default_segmentation_loader, default_segmentation_trainer, get_data_loader, ) from .__version__ import __version__
23.625
36
0.804233
6df60dae67fb0ffaba21638d1d0c8db6f1314190
147
py
Python
meican/__init__.py
liamchzh/meican
e26dcb982866e899b9b229857528de43487ece53
[ "MIT" ]
null
null
null
meican/__init__.py
liamchzh/meican
e26dcb982866e899b9b229857528de43487ece53
[ "MIT" ]
null
null
null
meican/__init__.py
liamchzh/meican
e26dcb982866e899b9b229857528de43487ece53
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'Lirian Su' __version__ = '0.2.7' from meican.exceptions import * from meican.tools import MeiCan as MeiCan
18.375
41
0.70068
460da535a8ea1225fff0313b1075a6441f9a35f6
3,684
py
Python
src/waldur_vmware/migrations/0011_add_datastore.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
26
2017-10-18T13:49:58.000Z
2021-09-19T04:44:09.000Z
src/waldur_vmware/migrations/0011_add_datastore.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
14
2018-12-10T14:14:51.000Z
2021-06-07T10:33:39.000Z
src/waldur_vmware/migrations/0011_add_datastore.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
32
2017-09-24T03:10:45.000Z
2021-10-16T16:41:09.000Z
# Generated by Django 1.11.21 on 2019-07-08 11:57 import django.db.models.deletion from django.db import migrations, models import waldur_core.core.fields import waldur_core.core.models import waldur_core.core.validators class Migration(migrations.Migration): dependencies = [ ('structure', '0009_project...
33.490909
87
0.440011
d986bb46ecd2ba17a79e5c97b71c21d407fa8a64
1,299
py
Python
extern.py
sarthakgupte/Pareto-optimization-on-GPS-data
d88672fb4b1bba3d31cf234409badef31794ae13
[ "MIT" ]
null
null
null
extern.py
sarthakgupte/Pareto-optimization-on-GPS-data
d88672fb4b1bba3d31cf234409badef31794ae13
[ "MIT" ]
null
null
null
extern.py
sarthakgupte/Pareto-optimization-on-GPS-data
d88672fb4b1bba3d31cf234409badef31794ae13
[ "MIT" ]
null
null
null
# # author: Paul Galatic # # Program to store common utilities. # import time import pathlib # CONSTANTS KML_PATH = pathlib.Path('kml/') TIME_FORMAT = '%H:%M:%S' ALPHA = 0.1 # These thresholds serve as informal decision boundaries for our program, # arrived at through manual experimentation and educated assumptions...
31.682927
79
0.709777
6420e89b7263e9f32a09b5f3f1eb8255ac42ce61
1,272
py
Python
plenum/test/view_change_slow_nodes/test_view_change_2_of_4_nodes_with_non_primary.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
148
2017-07-11T19:05:25.000Z
2022-03-16T21:31:20.000Z
plenum/test/view_change_slow_nodes/test_view_change_2_of_4_nodes_with_non_primary.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
561
2017-06-29T17:59:56.000Z
2022-03-09T15:47:14.000Z
plenum/test/view_change_slow_nodes/test_view_change_2_of_4_nodes_with_non_primary.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
378
2017-06-29T17:45:27.000Z
2022-03-26T07:27:59.000Z
from plenum.test.test_node import getNonPrimaryReplicas from plenum.test.view_change.helper import view_change_in_between_3pc def slow_nodes(node_set): return [replica.node for replica in getNonPrimaryReplicas(node_set)[1:]] def test_view_change_in_between_3pc_2_of_4_nodes_with_non_primary( txnPoolNodeS...
39.75
77
0.68239
4688832a6932c5bc6fa78ff935049d0844b46a69
2,174
py
Python
Example Code/CircuitPython/USB-HID/HID-Keyboard-Mouse.py
crisdeodates/Pi-MAKER-PI-PICO
dd5b6a644c4602996b221a35449676d7e11e8e3f
[ "MIT" ]
47
2021-02-12T12:16:04.000Z
2022-03-31T13:29:52.000Z
Example Code/CircuitPython/USB-HID/HID-Keyboard-Mouse.py
crisdeodates/Pi-MAKER-PI-PICO
dd5b6a644c4602996b221a35449676d7e11e8e3f
[ "MIT" ]
8
2021-02-23T16:15:58.000Z
2022-03-28T03:43:16.000Z
Example Code/CircuitPython/USB-HID/HID-Keyboard-Mouse.py
crisdeodates/Pi-MAKER-PI-PICO
dd5b6a644c4602996b221a35449676d7e11e8e3f
[ "MIT" ]
36
2021-02-03T09:37:51.000Z
2022-03-03T07:00:42.000Z
### This example code uses: Maker Pi Pico ;; Reference: www.cytron.io/p-maker-pi-pico import time import board import digitalio import usb_hid from adafruit_hid.keycode import Keycode from adafruit_hid.keyboard import Keyboard from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS from adafruit_hid.mou...
28.233766
87
0.625575
ba32864c57ef069fa8abffc32b7f5c065a4803bc
2,147
py
Python
memberships.database/python/cs-api.py
anytizer/membership.pro
c1664be277332e4705c685aca88bc79d754c93db
[ "MIT" ]
null
null
null
memberships.database/python/cs-api.py
anytizer/membership.pro
c1664be277332e4705c685aca88bc79d754c93db
[ "MIT" ]
null
null
null
memberships.database/python/cs-api.py
anytizer/membership.pro
c1664be277332e4705c685aca88bc79d754c93db
[ "MIT" ]
null
null
null
from _processor import * print("using libraries.business;") print("using libraries.dtos;") print("using Microsoft.AspNetCore.Mvc;") print() tables = processor().tables() for tbl, sql in tables: fields = processor().fields(tbl) dtoname = processor().dtoname(tbl) print("namespace webapi.control...
42.098039
88
0.516069
d6bef932f42e630bca7765ba38056230378c682d
3,768
py
Python
salt/states/pdbedit.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
12
2015-01-21T00:18:25.000Z
2021-07-11T07:35:26.000Z
salt/states/pdbedit.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
86
2017-01-27T11:54:46.000Z
2020-05-20T06:25:26.000Z
salt/states/pdbedit.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
12
2015-01-05T09:50:42.000Z
2019-08-19T01:43:40.000Z
# -*- coding: utf-8 -*- ''' Manage accounts in Samba's passdb using pdbedit :maintainer: Jorge Schrauwen <sjorge@blackdot.be> :maturity: new :depends: pdbedit :platform: posix .. versionadded:: 2017.7.0 .. code-block:: yaml wash: pdbedit.absent kaylee: pdbedit.managed: ...
24.153846
94
0.588641
31f77791d140de7b2d2f435cf6f40f3804c5972b
4,932
py
Python
movienightbot/util.py
squirrelo/MovieNightBot
53fad77d533f13587d47d64fe7583db55529184a
[ "WTFPL" ]
3
2020-02-22T14:22:21.000Z
2021-02-04T19:44:38.000Z
movienightbot/util.py
squirrelo/MovieNightBot
53fad77d533f13587d47d64fe7583db55529184a
[ "WTFPL" ]
42
2020-02-10T03:42:29.000Z
2022-02-12T23:43:43.000Z
movienightbot/util.py
squirrelo/MovieNightBot
53fad77d533f13587d47d64fe7583db55529184a
[ "WTFPL" ]
3
2020-02-14T23:22:24.000Z
2020-06-06T21:00:14.000Z
import datetime import re from typing import List, Optional, Union import asyncio import logging import discord import imdb from .db.controllers import ServerController, MovieVoteController, MovieVote logger = logging.getLogger("movienightbot") async def cleanup_messages( messages: List[discord.Message], sec_...
30.825
108
0.623074
c3c75a28591f74be5fcdc9669ca5da9074acb513
2,862
py
Python
annotators/set_mturk_qualification.py
zpapakipos/dynabench-1
95884b4e29c57263dc1a85909be979c084d5fac3
[ "MIT" ]
15
2021-09-24T00:46:04.000Z
2022-03-16T13:24:56.000Z
annotators/set_mturk_qualification.py
zpapakipos/dynabench-1
95884b4e29c57263dc1a85909be979c084d5fac3
[ "MIT" ]
98
2021-09-22T12:33:21.000Z
2022-03-21T22:23:52.000Z
annotators/set_mturk_qualification.py
zpapakipos/dynabench-1
95884b4e29c57263dc1a85909be979c084d5fac3
[ "MIT" ]
12
2021-09-25T05:08:18.000Z
2022-02-28T21:02:20.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # This scripts helps to create a local qualification that # maps to a known qualification on mturk. """ This script is ...
33.670588
92
0.691474
f0ccfe5afabe0c872301ed4e0d2827ea0d517a20
26,335
py
Python
venv/lib/python3.8/site-packages/pip/_internal/operations/install/wheel.py
GePajarinen/Django-App
cb5cc13fe560a1a929ccd1f88f45219f60e68c43
[ "MIT" ]
1
2020-06-24T13:23:30.000Z
2020-06-24T13:23:30.000Z
venv/lib/python3.8/site-packages/pip/_internal/operations/install/wheel.py
GePajarinen/Django-App
cb5cc13fe560a1a929ccd1f88f45219f60e68c43
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/pip/_internal/operations/install/wheel.py
GePajarinen/Django-App
cb5cc13fe560a1a929ccd1f88f45219f60e68c43
[ "MIT" ]
null
null
null
"""Support for installing and building the "wheel" binary package format. """ from __future__ import absolute_import import collections import compileall import contextlib import csv import logging import os.path import re import shutil import stat import sys import warnings from base64 import urlsafe...
38.389213
80
0.623163
93c30c98fbde542a209ecb8e6bfc392647395815
4,421
py
Python
mwlib/htmlcolornames.py
aarddict/mwlib
2e231d4980e7ed33fc0f8cba426b7db8f8c9d3f4
[ "Unlicense" ]
2
2015-05-10T06:26:06.000Z
2017-01-23T20:55:56.000Z
mwlib/htmlcolornames.py
h4ck3rm1k3/mwlib
11475c6ad7480e35a4a59f276c47f6a5203435cc
[ "Unlicense" ]
null
null
null
mwlib/htmlcolornames.py
h4ck3rm1k3/mwlib
11475c6ad7480e35a4a59f276c47f6a5203435cc
[ "Unlicense" ]
null
null
null
colorname2rgb_map = { 'aliceblue' : (240, 248, 255), 'antiquewhite' : (250, 235, 215), 'aqua' : (0, 255, 255), 'aquamarine' : (127, 255, 212), 'azure' : (240, 255, 255), 'beige' : (245, 245, 220), 'bisque' : (255, 228, 196), 'black' : (0, 0, 0), 'blanchedalmond' : (255, 235, 205), 'blue' : (0, 0, 255), 'blueviolet' : (...
29.473333
41
0.566162
44b4df192ae13e2c57fe3189db3650dbaa6714af
5,655
py
Python
services/intent_service.py
pabvald/chatbot
17cdbce4c51eebb27dd0aa090fb9634868eb3e64
[ "MIT" ]
null
null
null
services/intent_service.py
pabvald/chatbot
17cdbce4c51eebb27dd0aa090fb9634868eb3e64
[ "MIT" ]
null
null
null
services/intent_service.py
pabvald/chatbot
17cdbce4c51eebb27dd0aa090fb9634868eb3e64
[ "MIT" ]
1
2020-10-29T13:38:26.000Z
2020-10-29T13:38:26.000Z
import numpy as np from app import app, db from intents import INTENTS, PATH_DEFINITIONS, INTENTS_PRIORITIES, FALLBACK_INTENT from models import Intent, Parameter from services.entity_service import EntityService from services.knowledge_service import KnowledgeService from utils import read_json class IntentService(ob...
41.580882
108
0.62405
5c00480c26b9153b7ea4371eaffd3b42c9dc3793
25,799
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_resource_groups_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_resource_groups_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2017_05_10/operations/_resource_groups_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
48.042831
161
0.661033
203bd49d9052b5004a76fe22f020a6ab10b06373
4,023
py
Python
cogs/monitors/blootooth.py
Chr1sDev/Bloo
3e580c06c415f949997a1b6417308aa93543d64b
[ "MIT" ]
34
2021-10-30T16:48:28.000Z
2022-03-25T03:22:12.000Z
cogs/monitors/blootooth.py
Chr1sDev/Bloo
3e580c06c415f949997a1b6417308aa93543d64b
[ "MIT" ]
9
2021-11-19T04:25:29.000Z
2022-03-09T22:35:46.000Z
cogs/monitors/blootooth.py
Chr1sDev/Bloo
3e580c06c415f949997a1b6417308aa93543d64b
[ "MIT" ]
20
2021-11-05T21:14:59.000Z
2022-03-30T21:15:40.000Z
from io import BytesIO import aiohttp import discord from data.model.guild import Guild from data.services.guild_service import guild_service from discord.ext import commands from utils.config import cfg from utils.logger import logger class Blootooth(commands.Cog): def __init__(self, bot): self.bot = bo...
43.258065
145
0.662441
725a1591cde34e46d7fbad277329c71aa323fa5d
107,151
py
Python
tests/test_cli.py
bhumikapahariapuresoftware/hashin
7548b9020a4b56d930efdf05a392a224781e93a9
[ "MIT" ]
null
null
null
tests/test_cli.py
bhumikapahariapuresoftware/hashin
7548b9020a4b56d930efdf05a392a224781e93a9
[ "MIT" ]
null
null
null
tests/test_cli.py
bhumikapahariapuresoftware/hashin
7548b9020a4b56d930efdf05a392a224781e93a9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import argparse import sys import json import pytest import mock from packaging.requirements import Requirement import hashin if sys.version_info >= (3,): # As in, Python 3 from urllib.error import HTTPError else: FileNotFoundError = IOError # ugly but necessary # Python 2...
35.800535
154
0.476962
40e514d7a4bce483cb11524dd08fe8dcd7204b48
2,398
py
Python
Python/python-tutorials/algo/abstract.py
zhongyangynag/code-study
5410929554107a384a09d899c6fa3d16ed383d2b
[ "MIT" ]
null
null
null
Python/python-tutorials/algo/abstract.py
zhongyangynag/code-study
5410929554107a384a09d899c6fa3d16ed383d2b
[ "MIT" ]
null
null
null
Python/python-tutorials/algo/abstract.py
zhongyangynag/code-study
5410929554107a384a09d899c6fa3d16ed383d2b
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding=utf8 from BeautifulSoup import BeautifulSoup from BeautifulSoup import Tag,NavigableString from urlparse import urlparse import urllib2 import sys def affect(points, keep_ratio, ratio, power): keep = points * keep_ratio if ratio >= 1.: return points return keep + (points - kee...
32.405405
88
0.585488
e98064a13996619bf386588f583e913a58e8b188
232
py
Python
terrascript/resource/plukevdh/dmsnitch.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/plukevdh/dmsnitch.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/plukevdh/dmsnitch.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/plukevdh/dmsnitch.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:15:17 UTC) import terrascript class dmsnitch_snitch(terrascript.Resource): pass __all__ = [ "dmsnitch_snitch", ]
17.846154
73
0.758621
b14845588e7b52dc6147c94a8a5ad7f3d299139d
3,483
py
Python
source/run-textract/run_textract.py
gdunkle/scrub-pii-poc
0f81e85f7a4f7ff229e32c1f4cd51989df9786d4
[ "Apache-2.0" ]
null
null
null
source/run-textract/run_textract.py
gdunkle/scrub-pii-poc
0f81e85f7a4f7ff229e32c1f4cd51989df9786d4
[ "Apache-2.0" ]
null
null
null
source/run-textract/run_textract.py
gdunkle/scrub-pii-poc
0f81e85f7a4f7ff229e32c1f4cd51989df9786d4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ############################################################################## # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Amazon Software Lic...
40.034483
158
0.465116
8e55cc0f8558985273f24b9e626a6ea8da534ca9
4,452
py
Python
venv/Lib/site-packages/IPython/core/tests/test_display.py
Tyranicangel/dtrans
a5e23d200a310701bb357bff09e35a5629a3f7a3
[ "BSD-3-Clause" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
IPython/core/tests/test_display.py
khinsen/ipython
dfd5cb1d3e34048593ba537dacdbef08fe766624
[ "BSD-3-Clause-Clear" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
IPython/core/tests/test_display.py
khinsen/ipython
dfd5cb1d3e34048593ba537dacdbef08fe766624
[ "BSD-3-Clause-Clear" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
#----------------------------------------------------------------------------- # Copyright (C) 2010-2011 The IPython Development Team. # # Distributed under the terms of the BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #------------------------------------------------...
37.411765
108
0.665544