hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
1a4ef1fd2913145127635b7aeb5c6c6950045eb0
22,896
py
Python
utest/reporting/test_jsmodelbuilders.py
bradyarthur/RobotFramework
f45747dfec1095359379ba0088cecd955a83e576
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
utest/reporting/test_jsmodelbuilders.py
bradyarthur/RobotFramework
f45747dfec1095359379ba0088cecd955a83e576
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
utest/reporting/test_jsmodelbuilders.py
bradyarthur/RobotFramework
f45747dfec1095359379ba0088cecd955a83e576
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import base64 import unittest import zlib from os.path import abspath, basename, dirname, join from robot.utils.asserts import assert_equal, assert_true from robot.utils.platform import PY2 from robot.result import Keyword, Message, TestCase, TestSuite from robot.result.executionerrors import ExecutionErrors from robo...
46.254545
96
0.586609
1a4f1de284efbaacbb8d0888d7af6ae1e8e792bb
1,432
py
Python
datastructures/trees/tree_diameter_using_dfs.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
10
2020-09-21T22:23:09.000Z
2022-01-25T16:58:44.000Z
datastructures/trees/tree_diameter_using_dfs.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
null
null
null
datastructures/trees/tree_diameter_using_dfs.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict, deque def find_tree_diameter(g, n): """ Standard awesome problem So for each node, I want to find the maximum distance to another node :param g: :return: """ # We can approach this question in the binary tree way (or) the graph way # Tree - Post ord...
28.078431
77
0.551676
1a4f2877e01faf4e72eb469527e3225c5de33982
3,311
py
Python
data/dataset.py
jkulhanek/soloist
6cc0c49c7e5d9a866620802c8ae19d547cd76d62
[ "MIT" ]
3
2021-04-26T07:20:44.000Z
2021-08-16T10:08:01.000Z
data/dataset.py
jkulhanek/soloist
6cc0c49c7e5d9a866620802c8ae19d547cd76d62
[ "MIT" ]
null
null
null
data/dataset.py
jkulhanek/soloist
6cc0c49c7e5d9a866620802c8ae19d547cd76d62
[ "MIT" ]
null
null
null
import bisect import os import json from .utils import BlacklistItemsWrapper from collections import OrderedDict from utils import AutoDatabase, AutoLexicalizer from .utils import DialogDataset, DialogDatasetItem, split_name DATASETS_PATH = os.path.join(os.path.expanduser(os.environ.get('DATASETS_PATH', '~/datasets'))...
38.057471
106
0.639686
1a4f2d71f07f9529b915ca1be30f12e7074f6d51
303
py
Python
cutfinder/utils/utils.py
Cluff1112/cutfinder
9d334868ed52455cc29162649e545475d2d05da0
[ "MIT" ]
null
null
null
cutfinder/utils/utils.py
Cluff1112/cutfinder
9d334868ed52455cc29162649e545475d2d05da0
[ "MIT" ]
null
null
null
cutfinder/utils/utils.py
Cluff1112/cutfinder
9d334868ed52455cc29162649e545475d2d05da0
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ A new .py file """ __author__ = 'ccluff' from typing import List def parse_arg(arg: str) -> List[float]: """for parsing cli args from str to python objects""" arg = arg.replace('[', '').replace(']', '').replace(' ', '').split(',') return list(map(float, arg))
18.9375
75
0.594059
1a4f33963cc653151cea3eb94ee867a8bc500078
660
py
Python
test_RTC_DS1307.py
LeMaker/LeScratch
0dde167925afe40cf63cf8ccba13321761494c25
[ "Apache-2.0" ]
4
2015-06-23T17:57:47.000Z
2016-02-15T12:52:46.000Z
test_RTC_DS1307.py
LeMaker/LeScratch
0dde167925afe40cf63cf8ccba13321761494c25
[ "Apache-2.0" ]
1
2021-08-18T03:17:45.000Z
2021-08-18T03:17:45.000Z
test_RTC_DS1307.py
LeMaker/LeScratch
0dde167925afe40cf63cf8ccba13321761494c25
[ "Apache-2.0" ]
4
2015-07-13T14:43:24.000Z
2015-12-25T09:14:50.000Z
#!/usr/bin/env python # # Test RTC_DS1307 import sys import time import datetime import RTC_DS1307 # Main Program print "Program Started at:"+ time.strftime("%Y-%m-%d %H:%M:%S") filename = time.strftime("%Y-%m-%d%H:%M:%SRTCTest") + ".txt" starttime = datetime.datetime.utcnow() ds1307 = RTC_DS1307.RTC_DS1307(2, 0x...
18.333333
75
0.692424
1a4f356bea86687b83648665d47350f4f86a619c
5,318
py
Python
src/nfc/handover/server.py
javgh/bitpay-brick
688cb3403111494bba5f453ea681515e03bf43b4
[ "MIT" ]
15
2016-11-20T15:38:49.000Z
2021-08-23T02:59:49.000Z
nfc/handover/server.py
PHSCRC/phsled
e2e0c2a26de3b6c9b6c1be6eea5b21d7f5315b86
[ "MIT" ]
null
null
null
nfc/handover/server.py
PHSCRC/phsled
e2e0c2a26de3b6c9b6c1be6eea5b21d7f5315b86
[ "MIT" ]
3
2016-11-21T11:57:13.000Z
2019-03-24T21:12:41.000Z
# -*- coding: latin-1 -*- # ----------------------------------------------------------------------------- # Copyright 2009-2011 Stephen Tiedemann <stephen.tiedemann@googlemail.com> # # Licensed under the EUPL, Version 1.1 or - as soon they # will be approved by the European Commission - subsequent # versions of the EU...
41.874016
79
0.581422
1a4f40042a72b02bd87b85f09fd22f434aa1f795
2,049
py
Python
mmcls/models/losses/reg_loss.py
youqingxiaozhua/ABAW3
51ab58ab311ecd6603a8485a45af0dcc39880e69
[ "Apache-2.0" ]
null
null
null
mmcls/models/losses/reg_loss.py
youqingxiaozhua/ABAW3
51ab58ab311ecd6603a8485a45af0dcc39880e69
[ "Apache-2.0" ]
null
null
null
mmcls/models/losses/reg_loss.py
youqingxiaozhua/ABAW3
51ab58ab311ecd6603a8485a45af0dcc39880e69
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import torch import torch.nn as nn import torch.nn.functional as F from ..builder import LOSSES from .utils import weight_reduce_loss @LOSSES.register_module() class MSELoss(nn.Module): """MSE loss. Args: reduction (str): The method used to reduce the ...
24.987805
108
0.534407
1a4f5d70a8577a0a9705df21ce4d77fd3aae1605
36,990
py
Python
mindspore/context.py
king4arabs/mindspore
bc38590e5300588aa551355836043af0ea092a72
[ "Apache-2.0" ]
1
2021-03-10T09:05:13.000Z
2021-03-10T09:05:13.000Z
mindspore/context.py
king4arabs/mindspore
bc38590e5300588aa551355836043af0ea092a72
[ "Apache-2.0" ]
null
null
null
mindspore/context.py
king4arabs/mindspore
bc38590e5300588aa551355836043af0ea092a72
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
47.181122
120
0.674398
1a4f81c22d00c17c0b76b75b032d3664b456ca80
4,509
py
Python
scraper/video_extractor.py
Stimson-Center/stimson-web-scraper
c2e6c3ae4abb8e8697b10d844bfb0fa3d305d05f
[ "MIT" ]
1
2020-09-11T01:13:27.000Z
2020-09-11T01:13:27.000Z
scraper/video_extractor.py
Stimson-Center/stimson-web-scraper
c2e6c3ae4abb8e8697b10d844bfb0fa3d305d05f
[ "MIT" ]
15
2020-06-19T01:14:36.000Z
2021-09-08T02:00:20.000Z
scraper/video_extractor.py
Stimson-Center/stimson-web-scraper
c2e6c3ae4abb8e8697b10d844bfb0fa3d305d05f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __title__ = 'stimson-web-scraper' __author__ = 'Lucas Ou-Yang' __license__ = 'MIT' __copyright__ = 'Copyright 2014, Lucas Ou-Yang' __maintainer__ = "The Stimson Center" __maintainer_email = "cooper@pobox.com" VIDEOS_TAGS = ['iframe', 'embed', 'object', 'video'] VIDEO_PROVIDERS = ['youtube', 'y...
31.096552
85
0.607008
1a4f8f5ceeb40ea924aafa0e58ee9cabb6416e47
5,027
py
Python
ngraph/frontends/neon/activation.py
NervanaSystems/ngraph-python
ac032c83c7152b615a9ad129d54d350f9d6a2986
[ "Apache-2.0" ]
18
2018-03-19T04:16:49.000Z
2021-02-08T14:44:58.000Z
ngraph/frontends/neon/activation.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
2
2019-04-16T06:41:49.000Z
2019-05-06T14:08:13.000Z
ngraph/frontends/neon/activation.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
11
2018-06-16T15:59:08.000Z
2021-03-06T00:45:30.000Z
# ****************************************************************************** # Copyright 2017-2018 Intel Corporation # # 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.apa...
25.779487
98
0.562363
1a4f9c56709069ce5bcf8a7a39563ba80269abb0
479
py
Python
runserver.py
NotMyRealNameHahaha/Flask-YtDl
be1d6f4353fb6c53ff56fae18680a02428cecb22
[ "BSD-3-Clause" ]
null
null
null
runserver.py
NotMyRealNameHahaha/Flask-YtDl
be1d6f4353fb6c53ff56fae18680a02428cecb22
[ "BSD-3-Clause" ]
null
null
null
runserver.py
NotMyRealNameHahaha/Flask-YtDl
be1d6f4353fb6c53ff56fae18680a02428cecb22
[ "BSD-3-Clause" ]
null
null
null
from YTR import app # Python imports import subprocess import json import os def open_browser(): # open config.JSON as r+ config = open("config.JSON", "r+") my_config = json.load(config) if my_config['OS'] == 'Linux': subprocess.run("sensible-browser 127.0.0.1:5100", shell=True) elif my_co...
23.95
69
0.649269
1a4fae9e68d190438a4173e20ad1df0de1a0a312
4,659
py
Python
src/load_char.py
shuu-tatsu/ner
c2bd818f9064517f89d3003192f00a97a17cfa8d
[ "W3C" ]
2
2019-02-24T13:27:04.000Z
2021-09-06T08:06:53.000Z
src/load_char.py
shuu-tatsu/ner
c2bd818f9064517f89d3003192f00a97a17cfa8d
[ "W3C" ]
null
null
null
src/load_char.py
shuu-tatsu/ner
c2bd818f9064517f89d3003192f00a97a17cfa8d
[ "W3C" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys sys.path.append('./') import codecs import collections import torch import pickle import utils import torch.nn as nn class Loader(): def __init__(self, target_dir): self.target_dir = target_dir self.char2idx = collections.defaultdict(int)...
32.131034
91
0.490663
1a4fc2afbfcda0b35dfc94bd174b57d40165ff31
1,503
py
Python
datasets/ShEMO/process.py
bagustris/emotion
5bd83d3ca8a6eb930f449b7a990fefd75d0c7d36
[ "MIT" ]
3
2020-11-03T14:54:22.000Z
2021-04-12T12:23:10.000Z
datasets/ShEMO/process.py
bagustris/emotion
5bd83d3ca8a6eb930f449b7a990fefd75d0c7d36
[ "MIT" ]
null
null
null
datasets/ShEMO/process.py
bagustris/emotion
5bd83d3ca8a6eb930f449b7a990fefd75d0c7d36
[ "MIT" ]
2
2020-12-03T06:21:59.000Z
2021-01-16T04:47:12.000Z
"""Process the raw ShEMO dataset. This assumes the file structure from the original compressed file: /.../ male/ *.wav female/ ... """ from pathlib import Path import click from ertk.dataset import resample_audio, write_annotations, write_filelist from ertk.utils import PathlibPath emotion_map ...
26.368421
88
0.645376
1a4fc42ec0c4ee349378f129d9ab57347c44930c
15,031
py
Python
observing_suite/target.py
prappleizer/observing-suite
b8d342a6515da7357e34c51c7fdef9cff6eee125
[ "MIT" ]
3
2022-02-26T20:01:09.000Z
2022-03-15T22:34:50.000Z
observing_suite/target.py
prappleizer/observing-suite
b8d342a6515da7357e34c51c7fdef9cff6eee125
[ "MIT" ]
null
null
null
observing_suite/target.py
prappleizer/observing-suite
b8d342a6515da7357e34c51c7fdef9cff6eee125
[ "MIT" ]
null
null
null
from ast import Continue from astropy.io import fits import numpy as np import matplotlib.pyplot as plt import astropy.units as u from astropy.wcs import WCS from astropy.coordinates import SkyCoord import pandas as pd from photutils.aperture import SkyRectangularAperture, SkyCircularAperture from .imaging import imp...
46.249231
312
0.667953
1a4fc5ffa88e4a2cdea59caf5c1d468b588a4baa
3,891
py
Python
src/python/three_state_totalistic_ca.py
paul-reiners/code-1635
09249d7b53d518041d3a89891b4e1ab17ae4f15f
[ "Apache-2.0" ]
1
2020-03-31T20:44:53.000Z
2020-03-31T20:44:53.000Z
src/python/three_state_totalistic_ca.py
paul-reiners/code-1635
09249d7b53d518041d3a89891b4e1ab17ae4f15f
[ "Apache-2.0" ]
null
null
null
src/python/three_state_totalistic_ca.py
paul-reiners/code-1635
09249d7b53d518041d3a89891b4e1ab17ae4f15f
[ "Apache-2.0" ]
null
null
null
# Author: # Adapted from code in Think Complexity, 2nd Edition, by by Allen Downey import sys import numpy as np rule_width = 7 def make_table(rule_num): """Make the table for a given CA rule. rule: int 0-2186 returns: array of 7 0s, 1s, and 2s """ rule_set = [0] * rule_width num = rule_n...
27.992806
84
0.57543
1a502a4c569faaa94edf9ae8b9d0784df221a8c8
10,164
py
Python
webhook.py
brhahlen/3commas-cyber-bots
39440219582aa5d5b3d2928a9f19295f322621ae
[ "MIT" ]
107
2021-11-03T16:43:32.000Z
2022-03-30T22:29:37.000Z
webhook.py
brhahlen/3commas-cyber-bots
39440219582aa5d5b3d2928a9f19295f322621ae
[ "MIT" ]
92
2021-10-13T22:20:42.000Z
2022-03-27T14:24:41.000Z
webhook.py
brhahlen/3commas-cyber-bots
39440219582aa5d5b3d2928a9f19295f322621ae
[ "MIT" ]
47
2021-11-04T13:34:54.000Z
2022-03-25T20:34:10.000Z
#!/usr/bin/env python3 """Cyberjunky's 3Commas bot helpers.""" import argparse import configparser import json import os import ssl import sys import time import uuid from pathlib import Path from aiohttp import web from helpers.logging import Logger, NotificationHandler from helpers.misc import format_pair from help...
31.273846
99
0.579595
1a5074ec86b9dc5481e17eb5e5ba0fdc5fe5792a
1,688
py
Python
ios/chrome/tools/build/ios_copy_files.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
ios/chrome/tools/build/ios_copy_files.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
ios/chrome/tools/build/ios_copy_files.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
#!/usr/bin/env python # Copyright 2016 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 argparse import os import shutil import sys def DoMain(argv): parser = argparse.ArgumentParser(description='Generate forward...
32.461538
78
0.673578
1a5080cfb18962865047b43a5b352ccb65758ac5
3,359
py
Python
rlberry/agents/torch/utils/training.py
akrouriad/rlberry
dde4e2cbafca05fdef1df07646bb6368059eeadf
[ "MIT" ]
null
null
null
rlberry/agents/torch/utils/training.py
akrouriad/rlberry
dde4e2cbafca05fdef1df07646bb6368059eeadf
[ "MIT" ]
null
null
null
rlberry/agents/torch/utils/training.py
akrouriad/rlberry
dde4e2cbafca05fdef1df07646bb6368059eeadf
[ "MIT" ]
null
null
null
import numpy as np import torch from gym import spaces from torch import nn as nn from torch.nn import functional as F def loss_function_factory(loss_function): if loss_function == "l2": return F.mse_loss elif loss_function == "l1": return F.l1_loss elif loss_function == "smooth_l1": ...
31.101852
79
0.679964
1a508320b82773c126e2598fc03b21c04c4fc9ce
3,447
py
Python
example.py
BenStriner/bayesian_dense
8cae1fa7f5dd6f4c67ff39f894535c87eae2a600
[ "MIT" ]
null
null
null
example.py
BenStriner/bayesian_dense
8cae1fa7f5dd6f4c67ff39f894535c87eae2a600
[ "MIT" ]
null
null
null
example.py
BenStriner/bayesian_dense
8cae1fa7f5dd6f4c67ff39f894535c87eae2a600
[ "MIT" ]
null
null
null
""""Example usage of BayesianDense layer on MNIST dataset (~1.5% test error). """ import os import logging import logging.config from sklearn.utils import shuffle from keras.layers import Dense, Input from keras.models import Model from keras.datasets import mnist from keras.optimizers import Adam import numpy as np ...
37.064516
117
0.650131
1a50b3a7351297968a096beb7a71d73f7a3d02a0
14,600
py
Python
chapter3-deep-networks/cifar10-resnet.3.2.1.py
roatienza/dl-keras
9472dce7381e0bc05b52db269905909c2a2aa5c8
[ "MIT" ]
3
2017-12-31T15:03:22.000Z
2021-03-10T09:39:08.000Z
chapter3-deep-networks/cifar10-resnet.3.2.1.py
roatienza/dl-keras
9472dce7381e0bc05b52db269905909c2a2aa5c8
[ "MIT" ]
null
null
null
chapter3-deep-networks/cifar10-resnet.3.2.1.py
roatienza/dl-keras
9472dce7381e0bc05b52db269905909c2a2aa5c8
[ "MIT" ]
9
2017-10-25T05:59:39.000Z
2020-04-16T08:51:47.000Z
"""Trains a ResNet on the CIFAR10 dataset. ResNet v1 [a] Deep Residual Learning for Image Recognition https://arxiv.org/pdf/1512.03385.pdf ResNet v2 [b] Identity Mappings in Deep Residual Networks https://arxiv.org/pdf/1603.05027.pdf """ from __future__ import print_function import keras from keras.layers import Den...
35.35109
80
0.588493
1a50b3f588058de6daf384decb2638c09ca9b846
1,231
py
Python
tensorflow/contrib/gan/python/losses/python/tuple_losses.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
522
2016-06-08T02:15:50.000Z
2022-03-02T05:30:36.000Z
tensorflow/contrib/gan/python/losses/python/tuple_losses.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/gan/python/losses/python/tuple_losses.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
108
2016-06-16T15:34:05.000Z
2022-03-12T13:23:11.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
43.964286
80
0.753046
1a51858aea86a584eeac192dc46b3e543fb59149
636
py
Python
conekt/controllers/admin/controls/cache.py
legumeinfo/CoNekT
709a4980cfa255cafd456b268e274db2b4b1f5fb
[ "MIT" ]
14
2018-08-20T03:07:21.000Z
2021-11-04T11:15:31.000Z
conekt/controllers/admin/controls/cache.py
mutwil/CoNekT
f4a4496a87d14b15bcf587975b31a2edc24c6bf7
[ "MIT" ]
9
2018-07-17T15:30:47.000Z
2021-07-05T13:11:54.000Z
conekt/controllers/admin/controls/cache.py
mutwil/CoNekT
f4a4496a87d14b15bcf587975b31a2edc24c6bf7
[ "MIT" ]
3
2019-08-05T09:16:34.000Z
2019-12-04T23:59:28.000Z
from flask import flash, url_for from conekt.extensions import admin_required from werkzeug.utils import redirect from conekt import cache from conekt.controllers.admin.controls import admin_controls @admin_controls.route('/clear/cache') @admin_required def clear_cache(): """ Touching this endpoint will clea...
26.5
69
0.715409
1a5190829e7051b58999ec9d2af561bdd2e924bb
735
py
Python
setup.py
mattrepl/cle
08f5f24d61470da8a99ee0c40f2185397a958313
[ "BSD-2-Clause" ]
1
2021-05-11T17:27:28.000Z
2021-05-11T17:27:28.000Z
setup.py
fiberx/cle-fiber
08f5f24d61470da8a99ee0c40f2185397a958313
[ "BSD-2-Clause" ]
null
null
null
setup.py
fiberx/cle-fiber
08f5f24d61470da8a99ee0c40f2185397a958313
[ "BSD-2-Clause" ]
null
null
null
try: from setuptools import setup from setuptools import find_packages packages = find_packages() except ImportError: from distutils.core import setup import os packages = [x.strip('./').replace('/','.') for x in os.popen('find -name "__init__.py" | xargs -n1 dirname').read().strip().split('\n')...
30.625
172
0.62449
1a521334f9759e68ad6bef05b0d807a818835ec9
1,872
py
Python
CryptMeme/apps/sam/Demos/datagramTests/samOut.py
NoYouShutup/CryptMeme
95d766a222e8ef9310337a7f568a83e462df057c
[ "MIT" ]
4
2016-07-17T22:29:28.000Z
2021-01-16T02:35:00.000Z
CryptMeme/apps/sam/Demos/datagramTests/samOut.py
NoYouShutup/CryptMeme
95d766a222e8ef9310337a7f568a83e462df057c
[ "MIT" ]
null
null
null
CryptMeme/apps/sam/Demos/datagramTests/samOut.py
NoYouShutup/CryptMeme
95d766a222e8ef9310337a7f568a83e462df057c
[ "MIT" ]
null
null
null
#!/usr/bin/python # sends a message to datagram destinations opened by samForward.py and samIn.py, using specified sending session name # at least samForward.py should be running for results to be seen # usage : ./samOut.py [ sendingSessionName [ message ... ] ] # sendingSessionName : default = datagramSam...
58.5
565
0.834402
1a5232910e9439122a66de907a0ab2463ec4786d
188,795
py
Python
distributed/scheduler.py
marco-neumann-jdas/distributed
86b5743ae1be52c80ebe440f5b58e8529fe2817e
[ "BSD-3-Clause" ]
null
null
null
distributed/scheduler.py
marco-neumann-jdas/distributed
86b5743ae1be52c80ebe440f5b58e8529fe2817e
[ "BSD-3-Clause" ]
null
null
null
distributed/scheduler.py
marco-neumann-jdas/distributed
86b5743ae1be52c80ebe440f5b58e8529fe2817e
[ "BSD-3-Clause" ]
null
null
null
import asyncio from collections import defaultdict, deque from collections.abc import Mapping, Set from contextlib import suppress from datetime import timedelta from functools import partial import inspect import itertools import json import logging import math from numbers import Number import operator import os impo...
33.617343
104
0.541423
1a527093aed44ea54843631636ab7ac64f95a699
294
py
Python
sentence_transformers/readers/__init__.py
Ing-David/sentence-transformers
4895f2f806d209a41a770e96ba2425aac605497c
[ "Apache-2.0" ]
null
null
null
sentence_transformers/readers/__init__.py
Ing-David/sentence-transformers
4895f2f806d209a41a770e96ba2425aac605497c
[ "Apache-2.0" ]
null
null
null
sentence_transformers/readers/__init__.py
Ing-David/sentence-transformers
4895f2f806d209a41a770e96ba2425aac605497c
[ "Apache-2.0" ]
null
null
null
from .InputExample import InputExample from .LabelSentenceReader import LabelSentenceReader from .NLIDataReader import NLIDataReader from .STSDataReader import STSDataReader, STSBenchmarkDataReader from .TripletReader import TripletReader from .InputExampleDocument import InputExampleDocument
42
64
0.891156
1a52784a9e2d5924fe0c7e259c4ff5a556e8e0fa
6,028
py
Python
rllite/HierarchicalDQN/HierarchicalDQN.py
ZJU-RL/zjurl
6aab83aaba7249bc43d112f21787c45b111d8aa4
[ "MIT" ]
3
2019-03-07T13:24:21.000Z
2019-08-08T12:49:51.000Z
rllite/HierarchicalDQN/HierarchicalDQN.py
tyGavinZJU/rllite
5c85eb11babb69a09604a04f0eb7bdc5a96f08f0
[ "MIT" ]
null
null
null
rllite/HierarchicalDQN/HierarchicalDQN.py
tyGavinZJU/rllite
5c85eb11babb69a09604a04f0eb7bdc5a96f08f0
[ "MIT" ]
null
null
null
import math import random from collections import namedtuple, deque import numpy as np import matplotlib.pyplot as plt import torch import torch.nn as nn import torch.optim as optim from rllite.common import ReplayBuffer2 USE_CUDA = torch.cuda.is_available() class StochasticMDP: def __init__(self): se...
32.06383
144
0.585103
1a527ae7f332da4f3d5fd4a3136c9864b2acb7f9
1,041
py
Python
hs_core/migrations/0021_fundingagency.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_core/migrations/0021_fundingagency.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_core/migrations/0021_fundingagency.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
# -*- coding: utf-8 -*- from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ('hs_core', '0020_baseresource_collections'), ] operations = [ migrations.CreateModel( name='F...
33.580645
129
0.575408
1a529748ecbeff7ccae1f1070281e76e839765d2
927
py
Python
coinlendingbot/plugins/Plugin.py
m3h7/coinlendingbot
d6d217d46fc6e04caf0d4a963278b9895e6737e9
[ "MIT" ]
3
2018-07-13T12:42:48.000Z
2021-03-22T01:15:32.000Z
coinlendingbot/plugins/Plugin.py
m3h7/coinlendingbot
d6d217d46fc6e04caf0d4a963278b9895e6737e9
[ "MIT" ]
1
2018-07-29T14:43:19.000Z
2022-01-16T13:53:11.000Z
coinlendingbot/plugins/Plugin.py
m3h7/coinlendingbot
d6d217d46fc6e04caf0d4a963278b9895e6737e9
[ "MIT" ]
3
2020-05-05T12:41:37.000Z
2022-01-21T14:48:17.000Z
# coding=utf-8 class Plugin(object): """ @type cfg1: modules.Configuration @type api1: modules.Poloniex.Poloniex @type log1: modules.Logger.Logger """ def __init__(self, cfg1, api1, log1, notify_config1): self.api = api1 self.config = cfg1 self.notify_config = notify_co...
28.090909
78
0.659115
1a52afce8b75e3a344a5d50b35fa2bc039d90b19
1,676
py
Python
tests/setup/defaults.py
AzureCloudMonk/mysql-operator
210631cd058587e513109cbc009ef3d69b535dae
[ "Apache-2.0" ]
1
2022-02-11T22:13:57.000Z
2022-02-11T22:13:57.000Z
tests/setup/defaults.py
AzureCloudMonk/mysql-operator
210631cd058587e513109cbc009ef3d69b535dae
[ "Apache-2.0" ]
null
null
null
tests/setup/defaults.py
AzureCloudMonk/mysql-operator
210631cd058587e513109cbc009ef3d69b535dae
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, 2021, Oracle and/or its affiliates. # # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ # import os # version VERSION_TAG = "8.0.28" MIN_SUPPORTED_VERSION = "8.0.24" MAX_SUPPORTED_VERSION = "8.0.28" # image IMAGE_REGISTRY = os.getenv( ...
25.393939
104
0.768496
1a52bb4533c616e4422afa007fb2627b105b55e9
2,152
py
Python
src/data_loader.py
villoro/expensor_personal
93296b782700d81beb5ee2450626b2292c74728a
[ "MIT" ]
2
2019-03-11T14:48:56.000Z
2021-01-02T00:20:41.000Z
src/data_loader.py
villoro/expensor_personal
93296b782700d81beb5ee2450626b2292c74728a
[ "MIT" ]
5
2019-01-08T10:43:22.000Z
2019-03-27T10:45:39.000Z
src/data_loader.py
villoro/expensor_personal
93296b782700d81beb5ee2450626b2292c74728a
[ "MIT" ]
null
null
null
""" Utilities for input/output operations. It is important to have DFS as global variable in this class to take advantatges of singeltons Info: https://python-3-patterns-idioms-test.readthedocs.io/en/latest/Singleton.html All pages can import this file and retrive data by: > from data_loader ...
23.911111
98
0.669145
1a52c02817bc6c29f7fa5b0d5b62ebe824397a31
3,432
py
Python
src/test/tests/operators/radial_resample.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/operators/radial_resample.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/operators/radial_resample.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: radial_resample.py # # Tests: mesh - 2D rectilinear, single domain, # 3D rectilinear, single domain # 3D unstructured, multiple domain # ...
25.422222
78
0.735431
1a52c8cbaff5ae5a506fff4153af0d847488e446
7,016
py
Python
sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2021_06_01_preview/aio/_app_platform_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2021_06_01_preview/aio/_app_platform_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2021_06_01_preview/aio/_app_platform_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
54.8125
260
0.747577
1a5309637d2cd750cc3a3180fff726f1c87c2b58
16,080
py
Python
ssda_nlp/collate.py
slavesocieties/ssda-nlp
8764d2f928ca0fe4e5737fbea4dcd518b8b804f6
[ "MIT" ]
null
null
null
ssda_nlp/collate.py
slavesocieties/ssda-nlp
8764d2f928ca0fe4e5737fbea4dcd518b8b804f6
[ "MIT" ]
21
2021-02-23T22:31:04.000Z
2022-01-27T22:51:18.000Z
ssda_nlp/collate.py
slavesocieties/ssda-nlp
8764d2f928ca0fe4e5737fbea4dcd518b8b804f6
[ "MIT" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 31-collate-xml-entities-spans.ipynb (unless otherwise specified). __all__ = ['genAltEnts', 'generateSpans', 'parseEntities', 'parseManualEntities', 'parseXML', 'genEntryIDs', 'collate_frames', 'manual_collate', 'genSpaCyInput', 'frames_to_spacy'] # Cell import p...
38.4689
255
0.639117
1a530c0dd6bca62c78a9fef6fa8bc0bf39aa784c
233
py
Python
applications/tenant/models/__init__.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
applications/tenant/models/__init__.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
1
2022-03-12T00:57:37.000Z
2022-03-12T00:57:37.000Z
applications/tenant/models/__init__.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
from mighty.applications.tenant.models.role import Role from mighty.applications.tenant.models.tenant import Tenant from mighty.applications.tenant.models.invitation import TenantInvitation __all__ = (Role, Tenant, TenantInvitation)
46.6
73
0.854077
1a534baed5c9dd49456b32e1f62febe3a653a0c8
269
py
Python
terrascript/opnsense/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/opnsense/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/opnsense/__init__.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/opnsense/__init__.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 ) import terrascript class opnsense(terrascript.Provider): pass
17.933333
79
0.773234
1a5357ff2d66b3afc9cea4e770a1e6162113d276
5,691
py
Python
answerer.py
Yifan-G/StanzaGraphs
58c0e2d135ee2ff2ee033c4c7916cde76102125d
[ "Apache-2.0" ]
null
null
null
answerer.py
Yifan-G/StanzaGraphs
58c0e2d135ee2ff2ee033c4c7916cde76102125d
[ "Apache-2.0" ]
null
null
null
answerer.py
Yifan-G/StanzaGraphs
58c0e2d135ee2ff2ee033c4c7916cde76102125d
[ "Apache-2.0" ]
null
null
null
import summarizer as nlp import csv from sklearn.preprocessing import OneHotEncoder import numpy as np from collections import defaultdict, Counter import math from myfile import * from googletrans import Translator # turns .tsv file into list of lists def tsv2mat(fname) : with open(fname) as f: wss = csv.rea...
27.360577
122
0.642418
1a535dcc39a9f7e87780f3bc9b6c0c69c26859a4
1,102
py
Python
panda_prospecting/prospecting/urls.py
helanan/Panda_Prospecting
501b8188bfc135bf0499a0377a30361b48dbfbe0
[ "MIT" ]
null
null
null
panda_prospecting/prospecting/urls.py
helanan/Panda_Prospecting
501b8188bfc135bf0499a0377a30361b48dbfbe0
[ "MIT" ]
10
2017-06-09T18:47:26.000Z
2019-11-28T15:53:48.000Z
panda_prospecting/prospecting/urls.py
helanan/Panda_Prospecting
501b8188bfc135bf0499a0377a30361b48dbfbe0
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views app_name = 'prospecting' urlpatterns = [ # ex: /prospecting/ url(r'^$', views.IndexView.as_view(), name='index'), # ex: /prospecting/5/ url(r'^(?P<pk>[0-9]+)/$', views.DetailView.as_view(), name='detail'), # ex: /prospecting/5/results/ url(r...
40.814815
98
0.656987
1a53698be3186e2e02d4c37de3b7f71987c12916
1,580
py
Python
2020/15/a.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
2020/15/a.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
2020/15/a.py
cj-wong/advent
f6a489773f488f5daf49caa9d652b1886608b928
[ "MIT" ]
null
null
null
from collections import defaultdict from typing import List import config def number_game(numbers: List[str], max_turns: int = 2020) -> int: """Simulate the number game. Args: numbers (List[str]): starting numbers for the game Returns: int: the 2020th number spoken """ last_tur...
24.6875
74
0.637342
1a538b77e95dae78e137a176ea945bb8742cc258
7,546
py
Python
python/ogr/shape_test.py
schwehr/gdal-autotest2
e153b594162f6554280212d919e645b0f01bf7e6
[ "Apache-2.0" ]
null
null
null
python/ogr/shape_test.py
schwehr/gdal-autotest2
e153b594162f6554280212d919e645b0f01bf7e6
[ "Apache-2.0" ]
4
2017-01-25T18:11:31.000Z
2017-04-04T20:51:45.000Z
python/ogr/shape_test.py
schwehr/gdal-autotest2
e153b594162f6554280212d919e645b0f01bf7e6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
35.59434
80
0.71031
1a53bba07b0f5bd0d8fcd5fb3373a5745f80652b
27,699
py
Python
venv/lib/python3.9/site-packages/igraph/datatypes.py
pavelberanek91/algoritmizace-python-advanced
660a2aefb15fdc19c04478132593b1a0673b904a
[ "Unlicense" ]
2
2022-02-26T11:19:40.000Z
2022-03-28T08:23:25.000Z
venv/lib/python3.9/site-packages/igraph/datatypes.py
pavelberanek91/algoritmizace-python-advanced
660a2aefb15fdc19c04478132593b1a0673b904a
[ "Unlicense" ]
null
null
null
venv/lib/python3.9/site-packages/igraph/datatypes.py
pavelberanek91/algoritmizace-python-advanced
660a2aefb15fdc19c04478132593b1a0673b904a
[ "Unlicense" ]
null
null
null
# vim:ts=4:sw=4:sts=4:et # -*- coding: utf-8 -*- """Additional auxiliary data types""" from itertools import islice class Matrix: """Simple matrix data type. Of course there are much more advanced matrix data types for Python (for instance, the C{ndarray} data type of Numeric Python) and this implementa...
37.685714
88
0.548215
1a53db89d924dfbc21336c22ef3d3f1ba6852100
2,483
py
Python
listener/decode.py
CSCIX691DAL/AISExplore
2826e4eefb156b890d2f08d0ca60bc8a8ea8f94e
[ "MIT" ]
null
null
null
listener/decode.py
CSCIX691DAL/AISExplore
2826e4eefb156b890d2f08d0ca60bc8a8ea8f94e
[ "MIT" ]
1
2021-07-07T02:14:35.000Z
2021-07-07T02:14:35.000Z
listener/decode.py
CSCIX691DAL/AISExplore
2826e4eefb156b890d2f08d0ca60bc8a8ea8f94e
[ "MIT" ]
null
null
null
import argparse import os from datetime import datetime from ais import stream from pymongo import MongoClient, errors from src.functions import more_processing client = MongoClient('mongodb://useradmin:SOh3TbdfdgPxmt1@bigdata4.research.cs.dal.ca:27011/ais') # save to mongo def save_mongo(result): try: ...
30.280488
101
0.576722
1a53e0c2909bc15306fc88fd2ac26e89b420ab41
3,662
py
Python
skbio/sequence/_dna.py
johnchase/scikit-bio
340e6153b6c93053d923d344e63481860e03731e
[ "BSD-3-Clause" ]
null
null
null
skbio/sequence/_dna.py
johnchase/scikit-bio
340e6153b6c93053d923d344e63481860e03731e
[ "BSD-3-Clause" ]
null
null
null
skbio/sequence/_dna.py
johnchase/scikit-bio
340e6153b6c93053d923d344e63481860e03731e
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
34.224299
79
0.607591
1a542f0aa60296051310f167cf7eaef27d3ea4e0
73,732
py
Python
src/tools/fx/movietools/arial.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/tools/fx/movietools/arial.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/tools/fx/movietools/arial.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
import ImageDraw, math # Coordinates for nice_font_x. There are 238 unique numbers. nice_font_x = (\ 0.16943, 0.11279, 0.08594, 0.19482, 0.19092, 0.08984, 0.12402, \ 0.07031, 0.04590, 0.14600, 0.28467, 0.23193, 0.20801, 0.30811, \ 0.05029, 0.09277, 0.01025, 0.10742, 0.18066, 0.21680, 0.14355, \ 0.37061, 0.15820, 0.200...
57.603125
79
0.43688
1a5435cb18b7be9b591e4f203a228bb87c5080c3
14,728
py
Python
Kerning/makeKerningDisplay.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
2
2021-02-12T20:36:29.000Z
2021-11-03T08:04:01.000Z
Kerning/makeKerningDisplay.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
null
null
null
Kerning/makeKerningDisplay.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
null
null
null
# MenuTitle: Make Kerning Display # -*- coding: utf-8 -*- __doc__ = """ Open tab containing Kerning strings for the selected glyphs. """ import re from collections import defaultdict, OrderedDict try: from itertools import zip_longest except ImportError: from itertools import izip_longest as zip_longest from ...
40.911111
185
0.587452
1a54362247c0796b3115ffe8f84f8780745fd716
327
py
Python
nautobot_device_lifecycle_mgmt/jobs/__init__.py
jdrew82/nautobot-plugin-device-lifecycle-mgmt
7ac9a479f7912b7c082f61cccc4b48e6aad16e46
[ "Apache-2.0" ]
21
2021-11-05T18:20:09.000Z
2022-03-19T16:41:27.000Z
nautobot_device_lifecycle_mgmt/jobs/__init__.py
jdrew82/nautobot-plugin-device-lifecycle-mgmt
7ac9a479f7912b7c082f61cccc4b48e6aad16e46
[ "Apache-2.0" ]
34
2021-11-05T16:52:35.000Z
2022-03-22T21:02:14.000Z
nautobot_device_lifecycle_mgmt/jobs/__init__.py
jdrew82/nautobot-plugin-device-lifecycle-mgmt
7ac9a479f7912b7c082f61cccc4b48e6aad16e46
[ "Apache-2.0" ]
8
2021-11-05T22:04:43.000Z
2022-03-28T15:15:31.000Z
"""Nautobot Jobs for the Device Lifecycle plugin.""" from .cve_tracking import GenerateVulnerabilities from .lifecycle_reporting import DeviceSoftwareValidationFullReport, InventoryItemSoftwareValidationFullReport jobs = [DeviceSoftwareValidationFullReport, InventoryItemSoftwareValidationFullReport, GenerateVulnerabil...
54.5
111
0.88685
1a543e61afe1e5fb028ae03754da9f1b4be430ae
1,180
py
Python
tests/test_flo.py
tomvansteijn/adopy
78e8e63365153334ebbfb8a0fea7aa16a7d88c3b
[ "MIT" ]
null
null
null
tests/test_flo.py
tomvansteijn/adopy
78e8e63365153334ebbfb8a0fea7aa16a7d88c3b
[ "MIT" ]
null
null
null
tests/test_flo.py
tomvansteijn/adopy
78e8e63365153334ebbfb8a0fea7aa16a7d88c3b
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # Tom van Steijn, Royal HaskoningDHV import adopy import numpy as np import pytest import shutil import os @pytest.fixture def steadyflofile(tmpdir): datadir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data') flofilename = r'flairs.FLO' flof...
27.44186
78
0.70339
1a547dc3677e7cbaa930c0540ad6d3beb36b1735
9,590
py
Python
premade_modules/2.80/e5e885d0ecb9430a73e0a904cdb6035a2ef77e98/aud.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.80/e5e885d0ecb9430a73e0a904cdb6035a2ef77e98/aud.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.80/e5e885d0ecb9430a73e0a904cdb6035a2ef77e98/aud.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
AP_LOCATION = None '''constant value 3 ''' AP_ORIENTATION = None '''constant value 4 ''' AP_PANNING = None '''constant value 1 ''' AP_PITCH = None '''constant value 2 ''' AP_VOLUME = None '''constant value 0 ''' CHANNELS_INVALID = None '''constant value 0 ''' CHANNELS_MONO = None '''constant value 1 ''' CHANNELS...
24.464286
420
0.676851
1a54bcc805cfb85ab55550de668e096041c316a0
601
py
Python
exp/data_prep.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
20
2017-10-16T18:12:51.000Z
2021-12-23T02:34:20.000Z
exp/data_prep.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
1
2018-11-10T04:59:48.000Z
2021-01-21T04:51:31.000Z
exp/data_prep.py
yjy941124/PPR-FCN
1eba5515b37e7b32413efdf14bb0c22a2e46fee9
[ "MIT" ]
5
2017-10-17T00:54:42.000Z
2018-04-08T15:09:40.000Z
import _init_paths import utils.zl_utils as zl import h5py import zl_config as C import numpy as np def merge_pickled_files(): import os h5f = h5py.File(C.coco_eb_h5_path,'w') cnt = 0 zl.tick() for path, subdirs, files in os.walk(C.coco_eb_dir): for name in files: cnt += 1 ...
26.130435
61
0.567388
1a54c4e229f240d3771c56695e8ec412dab9c50f
8,253
py
Python
aiohttp_json_api/helpers.py
MarSoft/aiohttp_json_api
1d4864a0f73e4df33278e16d499642a60fa89aaa
[ "MIT" ]
19
2017-08-10T07:58:33.000Z
2022-02-13T01:30:10.000Z
aiohttp_json_api/helpers.py
MarSoft/aiohttp_json_api
1d4864a0f73e4df33278e16d499642a60fa89aaa
[ "MIT" ]
218
2017-06-14T22:41:25.000Z
2021-07-19T02:57:58.000Z
aiohttp_json_api/helpers.py
MarSoft/aiohttp_json_api
1d4864a0f73e4df33278e16d499642a60fa89aaa
[ "MIT" ]
5
2017-08-23T08:17:05.000Z
2022-03-27T12:27:19.000Z
"""Helpers.""" import inspect from collections import Iterable, Mapping from typing import Optional, Tuple, List, Iterable as IterableType from aiohttp import web from mimeparse import parse_media_range, _filter_blank from .abc.field import FieldABC from .fields.decorators import Tag from .typings import Callee, Mim...
33.685714
79
0.63795
1a54d0aef058d4384006e969f75e4928f766ab7d
893
py
Python
src/scrapy/crawler/pipelines.py
andifunke/topic-labeling
f38ffce44fb1d661114bc53afb565ec61b61eae0
[ "Apache-2.0" ]
28
2019-02-05T23:01:32.000Z
2021-09-05T13:48:46.000Z
src/scrapy/crawler/pipelines.py
andifunke/topic-labeling
f38ffce44fb1d661114bc53afb565ec61b61eae0
[ "Apache-2.0" ]
1
2022-02-11T23:26:59.000Z
2022-03-12T09:20:21.000Z
src/scrapy/crawler/pipelines.py
andifunke/topic-labeling
f38ffce44fb1d661114bc53afb565ec61b61eae0
[ "Apache-2.0" ]
8
2019-08-30T02:23:50.000Z
2022-02-22T19:20:14.000Z
# -*- coding: utf-8 -*- # Definition of item pipelines # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html from w3lib.html import remove_tags, remove_tags_with_content from scrapy.exceptions import DropItem class RemoveTagsPipeline(object): """removing formatting tags (span, a, ...) from extracted pa...
29.766667
99
0.637178
1a54dc2841e703c1b5db576a9876b233da61244c
2,411
py
Python
tests/migrations/0001_initial.py
grantmcconnaughey/django-field-history
84cda9d5d49d5ea6220ab1c82878c37280490a6b
[ "BSD-3-Clause" ]
346
2016-02-17T22:29:55.000Z
2022-03-20T17:43:26.000Z
tests/migrations/0001_initial.py
grantmcconnaughey/django-field-history
84cda9d5d49d5ea6220ab1c82878c37280490a6b
[ "BSD-3-Clause" ]
36
2016-02-18T18:41:11.000Z
2021-09-17T05:48:36.000Z
tests/migrations/0001_initial.py
grantmcconnaughey/django-field-history
84cda9d5d49d5ea6220ab1c82878c37280490a6b
[ "BSD-3-Clause" ]
42
2016-02-19T18:20:47.000Z
2020-09-11T01:31:52.000Z
# Generated by Django 2.2.9 on 2020-01-04 21:20 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
41.568966
189
0.586479
1a54e4817135f1b95752590fe7dc017076137b70
785
py
Python
AlgorithmsPractice/otherQuestion/tecent/2019-back-end/Q2.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
58
2019-03-03T04:42:23.000Z
2022-01-13T04:36:31.000Z
AlgorithmsPractice/otherQuestion/tecent/2019-back-end/Q2.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
null
null
null
AlgorithmsPractice/otherQuestion/tecent/2019-back-end/Q2.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
28
2019-08-11T01:25:00.000Z
2021-08-22T06:46:06.000Z
# coding=utf-8 """ 2 2 1 4 3 4 1 2 0 2 """ def solver(n, init, m, nums): ret = [] for i in nums: gap = 2**i init = reverseNum(init, gap) # 每gap间隔翻转 cur = computeReversePair(init) ret.append(cur) return ret def reverseNum(init, gap): ret = [] for i in range(0, l...
17.065217
49
0.499363
1a54e6c5b8c308b7fac84442464c3a851df2fb4d
4,149
py
Python
src/textManager.py
cawolfkreo/Caption-Users-Pictures-Bot
18bbf435a870e9abd5fdccad5ef79722847e4379
[ "MIT" ]
null
null
null
src/textManager.py
cawolfkreo/Caption-Users-Pictures-Bot
18bbf435a870e9abd5fdccad5ef79722847e4379
[ "MIT" ]
null
null
null
src/textManager.py
cawolfkreo/Caption-Users-Pictures-Bot
18bbf435a870e9abd5fdccad5ef79722847e4379
[ "MIT" ]
null
null
null
from datetime import datetime from telegram import base, messageentity, userprofilephotos import imageText from io import BytesIO import random userKey = "userDict" ''' This is the key needed to access the user dictionary on the cotext.bot_data dictionary. ''' randomKey = "randomMsg" ''' This is the key needed to a...
31.431818
133
0.678959
1a5502028628919260e4b44654b9a8eb87c42deb
1,898
py
Python
sdk/python/tests/compiler/testdata/two_step.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
sdk/python/tests/compiler/testdata/two_step.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
sdk/python/tests/compiler/testdata/two_step.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# Copyright 2021 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
35.811321
78
0.694415
1a551124d4299b8a34952a6167a5f15670200ad1
2,825
py
Python
django_saas_email/admin.py
leotrubach/django-saas-email
f410c9dd69d96f47ef19af88d266092a3bd60d4d
[ "MIT" ]
null
null
null
django_saas_email/admin.py
leotrubach/django-saas-email
f410c9dd69d96f47ef19af88d266092a3bd60d4d
[ "MIT" ]
null
null
null
django_saas_email/admin.py
leotrubach/django-saas-email
f410c9dd69d96f47ef19af88d266092a3bd60d4d
[ "MIT" ]
null
null
null
from django.apps import apps from django.contrib import admin from django.utils.translation import ugettext_lazy as _ from django.conf import settings from .models import Mail, MailTemplate, Attachment, TemplateAttachment from .tasks import send_asynchronous_mail from .utils import create_and_send_mail from django.cor...
31.388889
120
0.689558
1a55257a4273fb61eff1130f8f5f7e0869ae1b2c
3,105
py
Python
m.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
m.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
4
2021-06-08T20:20:08.000Z
2022-03-11T23:30:22.000Z
m.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
import cloudmesh from pprint import pprint cloudmesh.logger(False) username = cloudmesh.load().username() cloudmesh.banner("INIT MONGO") mesh = cloudmesh.mesh("mongo") # # authentication as a user - username is requried # On webgui side, this is achieved by the framework, # and the username is obtined from g.user.id...
25.243902
75
0.718196
1a5577a41b0aa9c67de55c184a8596b80ae9cb8e
282
py
Python
src/edeposit/amqp/rest/database/__init__.py
edeposit/edeposit.rest
ecb1c00f7c156e1ed2000a0b68a3e4da506e7992
[ "MIT" ]
1
2015-12-10T13:30:22.000Z
2015-12-10T13:30:22.000Z
src/edeposit/amqp/rest/database/__init__.py
edeposit/edeposit.rest
ecb1c00f7c156e1ed2000a0b68a3e4da506e7992
[ "MIT" ]
33
2015-10-06T16:02:13.000Z
2015-12-10T15:00:04.000Z
src/edeposit/amqp/rest/database/__init__.py
edeposit/edeposit.rest
ecb1c00f7c156e1ed2000a0b68a3e4da506e7992
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Interpreter version: python 2.7 # # Imports ===================================================================== from user_handler import UserHandler from cache_handler import CacheHandler from status_handler import StatusHandler
28.2
79
0.578014
1a55b4080af739125fd701fe8ecfb44c65fe7dd0
457
py
Python
setup.py
lukew3/vid2slides
7eb2cfe4548bfbca0f69155dc3978b23a9117d1a
[ "MIT" ]
1
2021-02-01T14:43:05.000Z
2021-02-01T14:43:05.000Z
setup.py
lukew3/vid2slides
7eb2cfe4548bfbca0f69155dc3978b23a9117d1a
[ "MIT" ]
5
2021-02-05T15:33:19.000Z
2021-02-05T15:41:49.000Z
setup.py
lukew3/vid2slides
7eb2cfe4548bfbca0f69155dc3978b23a9117d1a
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='vid2slides', version='0.0.4', description='Extract a slideshow from a video presentation', url='https://github.com/lukew3/vid2slides', author='Luke Weiler', author_email='lukew25073@gmail.com', license='MIT', packages=find_package...
26.882353
64
0.671772
1a55d6d9d3c240d13febb955ca3737053f772be8
39
py
Python
wrast/__init__.py
lig/wrast
7a4b140d79548e3eb48ba6d1e63b8765e2060981
[ "MIT" ]
2
2017-12-29T06:09:18.000Z
2017-12-29T20:05:38.000Z
wrast/__init__.py
lig/wrast
7a4b140d79548e3eb48ba6d1e63b8765e2060981
[ "MIT" ]
null
null
null
wrast/__init__.py
lig/wrast
7a4b140d79548e3eb48ba6d1e63b8765e2060981
[ "MIT" ]
null
null
null
from wrast.tools import wrastf, wrasts
19.5
38
0.820513
1a55e840ffefb3dc2cf25637ee56ff1c20820011
4,869
py
Python
trac/wiki/intertrac.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/wiki/intertrac.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/wiki/intertrac.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2005-2020 Edgewall Software # Copyright (C) 2005-2006 Christian Boos <cboos@edgewall.org> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http...
37.167939
76
0.578353
1a562265382b20be8ac3c615bf6f244c1acead48
11,802
py
Python
lib/galaxy/visualization/plugins/registry.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
4
2018-10-29T18:34:38.000Z
2021-09-29T23:30:42.000Z
lib/galaxy/visualization/plugins/registry.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
1
2019-02-04T16:21:27.000Z
2019-02-04T16:45:17.000Z
lib/galaxy/visualization/plugins/registry.py
chambm/galaxy
fd1926767996a161cd2fc8bd184e6835fd688765
[ "CC-BY-3.0" ]
3
2020-02-12T15:22:24.000Z
2021-08-19T10:27:39.000Z
""" Lower level of visualization framework which does three main things: - associate visualizations with objects - create urls to visualizations based on some target object(s) - unpack a query string into the desired objects needed for rendering """ import os import weakref from galaxy.web import url_for i...
44.202247
113
0.630741
1a56402df14da0bf6b48f5ebd8348a47820d4634
482
py
Python
alipay/aop/api/response/AlipayBossFncGfsettlePaycontractConfirmResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayBossFncGfsettlePaycontractConfirmResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayBossFncGfsettlePaycontractConfirmResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayBossFncGfsettlePaycontractConfirmResponse(AlipayResponse): def __init__(self): super(AlipayBossFncGfsettlePaycontractConfirmResponse, self).__init__() def parse_r...
30.125
120
0.798755
1a5662bbd0e5d7cbe17b9f12538f40f12c02b43a
1,961
py
Python
src/common_functions.py
Vistaus/my-weather-indicator
32aaa77a14cf2f85edbfb72c45d154e1676abe83
[ "MIT" ]
null
null
null
src/common_functions.py
Vistaus/my-weather-indicator
32aaa77a14cf2f85edbfb72c45d154e1676abe83
[ "MIT" ]
null
null
null
src/common_functions.py
Vistaus/my-weather-indicator
32aaa77a14cf2f85edbfb72c45d154e1676abe83
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (C) 2011-2016 Lorenzo Carbonell # lorenzo.carbonell.cerezo@gmail.com # # 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...
25.467532
71
0.63182
1a56843623b42aa069890901df50c457267da825
1,195
py
Python
account/admin.py
Elbar/congenial-dollop
7a3330a32100598b0baacdf03df7093342c5b9d1
[ "MIT" ]
null
null
null
account/admin.py
Elbar/congenial-dollop
7a3330a32100598b0baacdf03df7093342c5b9d1
[ "MIT" ]
11
2020-02-11T21:48:53.000Z
2022-03-11T23:12:02.000Z
account/admin.py
Elbar/congenial-dollop
7a3330a32100598b0baacdf03df7093342c5b9d1
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from .models import User, Librarian, Patron, Student, Faculty, Professor, TA, Instructor from django.contrib.auth.forms import UserChangeForm # Register your models here. class BaseUserChangeForm(UserChangeForm): class Meta(UserChan...
20.964912
88
0.76318
1a56920de499e0b75d7aaa01a68af9518661a8bc
5,822
py
Python
tests/unit/modules/win_status_test.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/win_status_test.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/win_status_test.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
3
2020-05-10T02:08:44.000Z
2020-11-06T11:01:57.000Z
# Import python libs import new import sys # Import Salt Testing libs from salttesting import skipIf, TestCase from salttesting.helpers import ensure_in_syspath ensure_in_syspath('../../') # wmi and pythoncom modules are platform specific... wmi = new.module('wmi') sys.modules['wmi'] = wmi pythoncom = new.module('py...
30.010309
77
0.659739
1a56959839188458fc00d01357c32e361852b688
748
py
Python
src/api/endpoints/activities/models.py
andela/andela-societies-backend
b8382f308449a08e5c7bda46c6deabe597cc2e25
[ "MIT" ]
1
2018-09-13T16:33:20.000Z
2018-09-13T16:33:20.000Z
src/api/endpoints/activities/models.py
jonathankamau/andela-societies-backend
b8382f308449a08e5c7bda46c6deabe597cc2e25
[ "MIT" ]
6
2019-03-11T17:50:27.000Z
2019-08-26T11:00:40.000Z
src/api/endpoints/activities/models.py
jonathankamau/andela-societies-backend
b8382f308449a08e5c7bda46c6deabe597cc2e25
[ "MIT" ]
9
2019-01-09T12:23:12.000Z
2021-05-28T04:58:31.000Z
from api.models.base import Base db = Base.db class Activity(Base): """Model activities available for points.""" __tablename__ = 'activities' activity_type_id = db.Column( db.String, db.ForeignKey('activity_types.uuid'), nullable=False ) added_by_id = db.Column( ...
20.777778
50
0.614973
1a56b4b4d748e2ac650093163cefb9d8bc724075
544
py
Python
tests/test_vm.py
rerobots/mistygrind
be0f4dc602bbbb004c99b520f8f69ce5643c8d61
[ "Apache-2.0" ]
2
2019-03-17T22:23:43.000Z
2019-10-02T23:33:59.000Z
tests/test_vm.py
rerobots/mistygrind
be0f4dc602bbbb004c99b520f8f69ce5643c8d61
[ "Apache-2.0" ]
1
2020-02-08T23:21:56.000Z
2020-03-02T18:49:57.000Z
tests/test_vm.py
rerobots/mistygrind
be0f4dc602bbbb004c99b520f8f69ce5643c8d61
[ "Apache-2.0" ]
null
null
null
"""Basic tests of the Misty VM SCL <scott@rerobots.net> Copyright (c) 2020 rerobots, Inc. """ import pytest import mistygrind @pytest.fixture def client(loop, aiohttp_client): yield loop.run_until_complete( aiohttp_client(mistygrind.vm.create_vm()) ) async def test_api_battery(client): resp =...
21.76
85
0.700368
1a56c3cc893a02b94d943a6ccbadaf389e381a09
14,532
py
Python
VFF/matrix_structures.py
st--/VFF
828e6c0437eea143274b65c0171ee7605c9d460a
[ "Apache-2.0" ]
1
2021-04-13T16:13:34.000Z
2021-04-13T16:13:34.000Z
VFF/matrix_structures.py
st--/VFF
828e6c0437eea143274b65c0171ee7605c9d460a
[ "Apache-2.0" ]
null
null
null
VFF/matrix_structures.py
st--/VFF
828e6c0437eea143274b65c0171ee7605c9d460a
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 ST John # Copyright 2016 James Hensman # # 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...
30.529412
100
0.559937
1a56c7ef3f13600dd1c9182306c665b3972a6753
4,178
py
Python
tests/test_user.py
blazelibs/blazeweb
b120a6a2e38c8b53da2b73443ff242e2d1438053
[ "BSD-3-Clause" ]
null
null
null
tests/test_user.py
blazelibs/blazeweb
b120a6a2e38c8b53da2b73443ff242e2d1438053
[ "BSD-3-Clause" ]
6
2016-11-01T18:42:34.000Z
2020-11-16T16:52:14.000Z
tests/test_user.py
blazelibs/blazeweb
b120a6a2e38c8b53da2b73443ff242e2d1438053
[ "BSD-3-Clause" ]
1
2020-01-22T18:20:46.000Z
2020-01-22T18:20:46.000Z
import unittest from werkzeug import Client from werkzeug.wrappers.base_response import BaseResponse from blazeweb.users import User, UserProxy from blazewebtestapp.applications import make_wsgi class TestUserFunctional(unittest.TestCase): def setUp(self): self.app = make_wsgi('Testruns') self...
25.950311
72
0.606271
1a56e537f8ff448e3eeffe63909219393a8d189d
1,624
py
Python
tests/network/account/test_save_load.py
acolytec3/brownie
e00e1f26f5b05e963fe50ffe198634c9e8876589
[ "MIT" ]
null
null
null
tests/network/account/test_save_load.py
acolytec3/brownie
e00e1f26f5b05e963fe50ffe198634c9e8876589
[ "MIT" ]
null
null
null
tests/network/account/test_save_load.py
acolytec3/brownie
e00e1f26f5b05e963fe50ffe198634c9e8876589
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from pathlib import Path import pytest priv_key = "0x416b8a7d9290502f5661da81f0cf43893e3d19cb9aea3c426cfb36e8186e9c09" addr = "0x14b0Ed2a7C4cC60DD8F676AE44D0831d3c9b2a9E" @pytest.fixture(autouse=True) def no_pass(monkeypatch): monkeypatch.setattr("brownie.network.account.getpass", lambda x: "...
24.984615
79
0.681034
1a5718bd7559482e0640ec8a853643c3ef90bcf7
374
py
Python
scielomanager/journalmanager/templatetags/field_attrs.py
patymori/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
8
2015-07-07T03:09:16.000Z
2019-03-16T04:46:32.000Z
scielomanager/journalmanager/templatetags/field_attrs.py
DalavanCloud/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
245
2015-01-14T13:29:58.000Z
2022-01-13T00:48:44.000Z
scielomanager/journalmanager/templatetags/field_attrs.py
DalavanCloud/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
5
2016-02-19T15:47:08.000Z
2019-03-16T04:46:20.000Z
from django import template register = template.Library() @register.filter_function def attr(obj, arg1): """ Use in templates: {% load field_attrs %} then, in a form field: {{ form.phone|attr:"style=width:143px;background-color:yellow"|attr:"size=30" }} """ att, value = arg1.split("=") ...
22
84
0.644385
1a572a8c3ed56148371ce9f32112a2669803563f
1,847
py
Python
test/lmp/util/tknzr/test_signature.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
test/lmp/util/tknzr/test_signature.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
test/lmp/util/tknzr/test_signature.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
"""Test :py:mod:`lmp.util.tknzr` signatures.""" import inspect from inspect import Parameter, Signature from typing import Any import lmp.util.tknzr from lmp.tknzr import BaseTknzr def test_module_attribute() -> None: """Ensure module attributes' signatures.""" assert hasattr(lmp.util.tknzr, 'FILE_NAME') asse...
26.385714
63
0.660531
1a5740a686ff8ee83d6cd5e57c69e45ba1e368d5
25,421
py
Python
twilio/rest/api/v2010/account/application.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
1
2021-02-24T04:59:03.000Z
2021-02-24T04:59:03.000Z
twilio/rest/api/v2010/account/application.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
null
null
null
twilio/rest/api/v2010/account/application.py
theDrinkMD/twibbage
c0aba60bd2df50f0a5688db4a01048ea1efd1a45
[ "MIT" ]
1
2018-12-09T00:53:21.000Z
2018-12-09T00:53:21.000Z
# coding=utf-8 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base....
36.367668
94
0.635262
1a57521e65646e4269e9eccadcf81ee59f7602fd
18,574
py
Python
raiden/transfer/mediated_transfer/initiator.py
ExchangeUnion/raiden
2217bcb698fcfce3499dc1f41ad919ed82e8e45f
[ "MIT" ]
null
null
null
raiden/transfer/mediated_transfer/initiator.py
ExchangeUnion/raiden
2217bcb698fcfce3499dc1f41ad919ed82e8e45f
[ "MIT" ]
12
2019-08-09T19:12:17.000Z
2019-12-05T15:49:29.000Z
raiden/transfer/mediated_transfer/initiator.py
ExchangeUnion/raiden
2217bcb698fcfce3499dc1f41ad919ed82e8e45f
[ "MIT" ]
null
null
null
import random from raiden.constants import ABSENT_SECRET from raiden.settings import DEFAULT_WAIT_BEFORE_LOCK_REMOVAL from raiden.transfer import channel, routes from raiden.transfer.architecture import Event, TransitionResult from raiden.transfer.events import EventPaymentSentFailed, EventPaymentSentSuccess from raid...
38.615385
95
0.730591
1a57997684aeec6770214be428bcfc18e9a69cb6
1,322
py
Python
setup.py
facumartinarguello/aries-staticagent-python
7b9e242d778336a78ca269d2cdd98b70e9010854
[ "Apache-2.0" ]
1
2021-01-15T17:28:29.000Z
2021-01-15T17:28:29.000Z
setup.py
Woonkly/aries-staticagent-python
7b9e242d778336a78ca269d2cdd98b70e9010854
[ "Apache-2.0" ]
null
null
null
setup.py
Woonkly/aries-staticagent-python
7b9e242d778336a78ca269d2cdd98b70e9010854
[ "Apache-2.0" ]
1
2021-01-15T17:27:38.000Z
2021-01-15T17:27:38.000Z
""" package aries_staticagent """ from setuptools import setup, find_packages from version import VERSION def parse_requirements(filename): """Load requirements from a pip requirements file.""" lineiter = (line.strip() for line in open(filename)) return [line for line in lineiter if line and not line.sta...
33.897436
75
0.636157
1a57c5876f01aea71068aca09357848943774cbe
101,497
py
Python
colossalai/nn/optimizer/zero_redundancy_optimizer_level_2.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
1
2022-03-12T04:49:19.000Z
2022-03-12T04:49:19.000Z
colossalai/nn/optimizer/zero_redundancy_optimizer_level_2.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
null
null
null
colossalai/nn/optimizer/zero_redundancy_optimizer_level_2.py
rahulgupta9202/ColossalAI
993088d45eaa032e39cf5959df2a506f0663bc2e
[ "Apache-2.0" ]
null
null
null
''' Copyright 2019 The Microsoft DeepSpeed Team ''' import math import torch import torch.distributed as dist try: from deepspeed.git_version_info import version from deepspeed.moe.utils import is_moe_param from deepspeed.ops.adam import DeepSpeedCPUAdam from deepspeed.ops.op_builder import UtilsBuil...
43.282303
431
0.6032
1a58268017fe7d24c2714e4276d8a4ae54193831
5,877
py
Python
sherlock/tests/test_transient_classifier.py
Mattlk13/sherlock
8b6d12d18b2d2529f972b028c5b9b9cfb1ac0afa
[ "MIT" ]
null
null
null
sherlock/tests/test_transient_classifier.py
Mattlk13/sherlock
8b6d12d18b2d2529f972b028c5b9b9cfb1ac0afa
[ "MIT" ]
null
null
null
sherlock/tests/test_transient_classifier.py
Mattlk13/sherlock
8b6d12d18b2d2529f972b028c5b9b9cfb1ac0afa
[ "MIT" ]
null
null
null
import os import unittest import shutil import yaml from sherlock import transient_classifier, cl_utils from sherlock.utKit import utKit from fundamentals import tools su = tools( arguments={"settingsFile": None}, docString=__doc__, logLevel="DEBUG", options_first=False, projectName="sherlock" ) a...
29.094059
88
0.65969
1a5833cb9b16f8e5732ac5f8d9e2b67dc28286ff
5,757
py
Python
data/s2_4_bipartite_to_downsampled.py
cookbook-ms/simplicial_convolutional_neural_networks
1e2ffeb37642631f1f904114f95d4f1754061ec8
[ "MIT" ]
33
2020-11-03T13:02:20.000Z
2022-03-15T01:57:15.000Z
data/s2_4_bipartite_to_downsampled.py
cookbook-ms/simplicial_convolutional_neural_networks
1e2ffeb37642631f1f904114f95d4f1754061ec8
[ "MIT" ]
3
2021-02-08T12:22:27.000Z
2021-12-10T15:46:26.000Z
data/s2_4_bipartite_to_downsampled.py
cookbook-ms/simplicial_convolutional_neural_networks
1e2ffeb37642631f1f904114f95d4f1754061ec8
[ "MIT" ]
8
2020-11-17T16:04:26.000Z
2021-12-23T14:43:42.000Z
#!/usr/bin/env python3 """ Input: collaboration bipartite graph X-Y and weights on X. Output: X'= Downsample set of nodes of X (from bipartite graph X-Y) such that each node connects to at most 10 nodes in Y (eg the paper has at most 10 authors) and its weights are at least 5 (eg the number of citation is at l...
37.627451
161
0.685079
1a5840f3265e0873788881f8c40905b34ec8119a
21,339
py
Python
vlcp/service/debugging/console.py
hubo1016/vlcp
61c4c2595b610675ac0cbc4dbc46f70ec40090d3
[ "Apache-2.0" ]
252
2015-11-17T14:21:50.000Z
2022-03-11T10:19:47.000Z
vlcp/service/debugging/console.py
SarahZarei/vlcp
61c4c2595b610675ac0cbc4dbc46f70ec40090d3
[ "Apache-2.0" ]
23
2018-01-09T13:28:52.000Z
2019-12-12T06:11:44.000Z
vlcp/service/debugging/console.py
SarahZarei/vlcp
61c4c2595b610675ac0cbc4dbc46f70ec40090d3
[ "Apache-2.0" ]
37
2016-08-03T04:42:22.000Z
2021-12-30T16:57:10.000Z
''' Created on 2015/12/29 :author: hubo ''' from __future__ import print_function from vlcp.utils.connector import async_processor, async_to_async, Connector,\ generator_to_async from vlcp.event.event import withIndices, Event, M_ from vlcp.config import defaultconfig from vlcp.server.module import Module, call_ap...
39.663569
123
0.522564
1a5843ca28f0b22fbdfdc8c13d870131010daafa
1,014
py
Python
scripts/get_set.py
pedbrgs/Pruning-Darknet
8a147871e02cedc010e04223128f79c0529acd7f
[ "MIT" ]
3
2021-11-01T02:36:24.000Z
2022-02-02T12:44:44.000Z
scripts/get_set.py
pedbrgs/Pruning-Darknet
8a147871e02cedc010e04223128f79c0529acd7f
[ "MIT" ]
null
null
null
scripts/get_set.py
pedbrgs/Pruning-Darknet
8a147871e02cedc010e04223128f79c0529acd7f
[ "MIT" ]
1
2021-11-01T02:36:25.000Z
2021-11-01T02:36:25.000Z
# Download images and labels related to the validation/test set in the dataset import os import cv2 import shutil import argparse from PIL import Image parser = argparse.ArgumentParser() parser.add_argument('--inp', type = str, help = 'Input path.') parser.add_argument('--out', type = str, help = 'Output path.') pars...
25.35
85
0.635108
1a5884a0af8ce84550706e2840c7d5aedfbd7f88
1,348
py
Python
lib/tests/conftest.py
deepchatterjeevns/streamlit
631d42877bd16bdec14ee124c936917b430f6ce4
[ "Apache-2.0" ]
1
2019-11-01T09:52:06.000Z
2019-11-01T09:52:06.000Z
lib/tests/conftest.py
umairnsr87/streamlit
edd17c4cca86a92becb1b693c2581ca2086b3de2
[ "Apache-2.0" ]
null
null
null
lib/tests/conftest.py
umairnsr87/streamlit
edd17c4cca86a92becb1b693c2581ca2086b3de2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018-2019 Streamlit Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
28.083333
83
0.755935
1a58a62b1ffdb284dd818a82be305b2b53c24aa2
1,414
py
Python
tutorial/async_sql/main.py
brianmask/fast-boiler
7fc1710d13ba7187445e885735cb54ff6169b566
[ "Apache-2.0" ]
1
2020-03-05T23:53:45.000Z
2020-03-05T23:53:45.000Z
tutorial/async_sql/main.py
brianmask/fast-home-api
350b1ce6f278dccbcac2530342c77c3d3c0c9180
[ "Apache-2.0" ]
null
null
null
tutorial/async_sql/main.py
brianmask/fast-home-api
350b1ce6f278dccbcac2530342c77c3d3c0c9180
[ "Apache-2.0" ]
null
null
null
from typing import List import databases import sqlalchemy from fastapi import FastAPI from pydantic import BaseModel # SQLAlchemy specific code, as with any other app DATABASE_URL = "sqlite:///./test.db" # DATABASE_URL = "postgresql://user:password@postgresserver/db" database = databases.Database(DATABASE_URL) met...
21.753846
75
0.725601
1a58a6f5256777506cba75664748944b618759ae
2,709
py
Python
lib/ExpImp_Data.py
Rsky-20/Gestionnaire_Automobile
9d7af6386828dab9e21b87ef74344c4a592d4da1
[ "MIT" ]
null
null
null
lib/ExpImp_Data.py
Rsky-20/Gestionnaire_Automobile
9d7af6386828dab9e21b87ef74344c4a592d4da1
[ "MIT" ]
null
null
null
lib/ExpImp_Data.py
Rsky-20/Gestionnaire_Automobile
9d7af6386828dab9e21b87ef74344c4a592d4da1
[ "MIT" ]
null
null
null
#from os import path import tkinter as tk from tkinter.filedialog import * # pour les gestions de fichiers from PIL import Image as Img from PIL import ImageTk import lib.DataTool as DT from tkinter import messagebox def export_page(fileToExport): """ [Description] Fonction permettant de générer la page ...
31.870588
123
0.641565
1a58f1c1b951a92e1c96a0a963d68dd15824fffe
3,027
py
Python
vgio/quake/bsp/bsp29a.py
joshuaskelly/game-tools
e71bcf4ef6553adf0b51f4379f72bc5a82a60176
[ "MIT" ]
22
2017-11-30T22:13:50.000Z
2019-12-19T17:56:40.000Z
vgio/quake/bsp/bsp29a.py
joshuaskelly/vgio
e71bcf4ef6553adf0b51f4379f72bc5a82a60176
[ "MIT" ]
22
2019-08-11T05:07:26.000Z
2020-12-30T16:07:04.000Z
vgio/quake/bsp/bsp29a.py
joshuaskelly/game-tools
e71bcf4ef6553adf0b51f4379f72bc5a82a60176
[ "MIT" ]
4
2018-06-24T14:04:36.000Z
2019-05-14T06:01:51.000Z
"""This module provides file I/O for Quake BSP2 map files. Example: bsp_file = bsp.Bsp.open('ad_sepulcher.bsp') """ import struct from .bsp29 import Bsp as Bsp29 __all__ = ['is_bspfile', 'Bsp'] IDENTITY = b'BSP2' def _check_bspfile(fp): fp.seek(0) data = fp.read(struct.calcsize('<4s')) identity...
23.10687
83
0.636934
1a58f3311683c3427730706c018a7c9b77f92f1f
748
py
Python
chainer/functions/sum.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
chainer/functions/sum.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
null
null
null
chainer/functions/sum.py
umitanuki/chainer
225c56b233e684ff4855451d2af4c2fb66915f21
[ "MIT" ]
1
2018-11-18T00:36:51.000Z
2018-11-18T00:36:51.000Z
import numpy from chainer import cuda from chainer import function from chainer.utils import type_check class Sum(function.Function): """Summation over all elements.""" def check_type_forward(self, in_types): type_check.expect( in_types.size() == 1, in_types[0].dtype == nump...
21.371429
49
0.605615
1a58f5360574e681e9f43391027b6e6934e5cad1
2,741
py
Python
passrotate/providers/twitter.py
simon816/pass-rotate
2c133e736cb27cebf2d903f863722b685f4f76fc
[ "MIT" ]
null
null
null
passrotate/providers/twitter.py
simon816/pass-rotate
2c133e736cb27cebf2d903f863722b685f4f76fc
[ "MIT" ]
null
null
null
passrotate/providers/twitter.py
simon816/pass-rotate
2c133e736cb27cebf2d903f863722b685f4f76fc
[ "MIT" ]
null
null
null
from passrotate.provider import Provider, ProviderOption, PromptType, register_provider from passrotate.forms import get_form import requests from urllib.parse import urlparse class Twitter(Provider): """ [twitter.com] username=Your Twitter username """ name = "Twitter" domains = [ "twi...
38.605634
114
0.597957
1a58feaf4d020c1e922a81895b72ebd01c7a7f05
6,789
py
Python
django_namespaced_cache/namespaced_cache.py
pardo/namespaced-cache
a14fb224e57dce4e5c75b8c09780ba2a3d1b6c46
[ "MIT" ]
null
null
null
django_namespaced_cache/namespaced_cache.py
pardo/namespaced-cache
a14fb224e57dce4e5c75b8c09780ba2a3d1b6c46
[ "MIT" ]
null
null
null
django_namespaced_cache/namespaced_cache.py
pardo/namespaced-cache
a14fb224e57dce4e5c75b8c09780ba2a3d1b6c46
[ "MIT" ]
null
null
null
class MockCache(): def __init__(self): self.d = {} def set(self, key, value, timeout=0, version=None): self.d[key] = value def has_key(self, k, version=None): return self.d.has_key(k) def get_many(self, keys, version=None): d = {} for k in keys: val...
30.443946
87
0.603034
1a590ac59aa6d248c437bd9e8ded3caaeac778f7
13,886
py
Python
cosmos/admin/samples/simpledef.py
kuasha/peregrine
b3dd92146d26fe9e4ea589868431b590324b47d1
[ "MIT" ]
1
2018-10-12T15:12:15.000Z
2018-10-12T15:12:15.000Z
cosmos/admin/samples/simpledef.py
kuasha/peregrine
b3dd92146d26fe9e4ea589868431b590324b47d1
[ "MIT" ]
null
null
null
cosmos/admin/samples/simpledef.py
kuasha/peregrine
b3dd92146d26fe9e4ea589868431b590324b47d1
[ "MIT" ]
null
null
null
# ------------------------------------------------- # # Auto generated. Modification will be overwritten. # # ------------------------------------------------- # import base64 file_data_list=[ { 'name': '/app/login.html', 'data': base64.b64decode(b'PCFET0NUWVBFIGh0bWw+CjxodG1sIG5nLWFwcD0iY29zbW9zQXBwIj4KPGhlYWQgbGFuZ...
694.3
4,440
0.978828
1a590e9618a568740b0ac7ef2d12c5f577bb1434
113
py
Python
manage.py
sun-fengcai/flask_template
fc6c5963ac9ac632c83d81c7b62ab74d7e99d02d
[ "MIT" ]
3
2019-11-16T06:51:17.000Z
2019-11-21T01:18:31.000Z
manage.py
sun-fengcai/flask_template
fc6c5963ac9ac632c83d81c7b62ab74d7e99d02d
[ "MIT" ]
27
2019-11-17T13:56:49.000Z
2021-06-28T12:04:18.000Z
manage.py
sun-fengcai/flask_template
fc6c5963ac9ac632c83d81c7b62ab74d7e99d02d
[ "MIT" ]
1
2021-04-23T23:57:28.000Z
2021-04-23T23:57:28.000Z
from app import create_app from app.cli import cli if __name__ == "__main__": app = create_app() cli()
14.125
26
0.672566
1a5940d8eed4bc08301add15d5e09804d25c720a
1,769
py
Python
windlass/tools.py
LaudateCorpus1/windlass
721c3a8eb7e0afc5b8a152d90958a1b9e007c5c5
[ "Apache-2.0" ]
4
2018-09-11T15:57:10.000Z
2019-06-17T08:01:51.000Z
windlass/tools.py
LaudateCorpus1/windlass
721c3a8eb7e0afc5b8a152d90958a1b9e007c5c5
[ "Apache-2.0" ]
8
2019-06-11T10:17:29.000Z
2021-05-04T16:59:28.000Z
windlass/tools.py
LaudateCorpus1/windlass
721c3a8eb7e0afc5b8a152d90958a1b9e007c5c5
[ "Apache-2.0" ]
1
2019-05-30T15:33:42.000Z
2019-05-30T15:33:42.000Z
# # (c) Copyright 2017-2018 Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
29
76
0.64104
1a5942820aabd7ce5466c04d71623eb692b25c4d
461
py
Python
settings.py
xtremepathfinder/workflow_project
8a0b5b15dbdc1cc23ae31de17b881abc6e4d979f
[ "MIT" ]
null
null
null
settings.py
xtremepathfinder/workflow_project
8a0b5b15dbdc1cc23ae31de17b881abc6e4d979f
[ "MIT" ]
79
2017-10-04T17:47:19.000Z
2021-05-30T21:38:19.000Z
settings.py
xtremepathfinder/workflow_project
8a0b5b15dbdc1cc23ae31de17b881abc6e4d979f
[ "MIT" ]
15
2017-10-05T13:07:51.000Z
2021-06-01T12:16:27.000Z
"""Settings from flow_manager NApp.""" # Pooling frequency STATS_INTERVAL = 30 FLOWS_DICT_MAX_SIZE = 10000 # Time (in seconds) to wait retrieve box from storehouse BOX_RESTORE_TIMER = 0.1 ENABLE_CONSISTENCY_CHECK = True # List of flows ignored by the consistency check # To filter by a cookie or `table_id` use [value] ...
32.928571
62
0.778742
1a594d6cbfa01a1395903baf93e4d4c1f4ce885e
24
py
Python
unique/git.py
samv/unique
d5d8deb109d0b14ce072118432baf0bebc11826b
[ "MIT" ]
1
2015-04-02T20:27:25.000Z
2015-04-02T20:27:25.000Z
unique/git.py
samv/unique
d5d8deb109d0b14ce072118432baf0bebc11826b
[ "MIT" ]
null
null
null
unique/git.py
samv/unique
d5d8deb109d0b14ce072118432baf0bebc11826b
[ "MIT" ]
null
null
null
import os import git
4
10
0.708333
1a595dc0a50f30e2206fff8df1e49946824bc4bb
2,226
py
Python
analysis/add_parsimony_muts.py
hyanwong/tsinfer-benchmarks
230e19e2a583c11360d65523de736d313911955b
[ "MIT" ]
null
null
null
analysis/add_parsimony_muts.py
hyanwong/tsinfer-benchmarks
230e19e2a583c11360d65523de736d313911955b
[ "MIT" ]
null
null
null
analysis/add_parsimony_muts.py
hyanwong/tsinfer-benchmarks
230e19e2a583c11360d65523de736d313911955b
[ "MIT" ]
1
2020-08-20T10:36:21.000Z
2020-08-20T10:36:21.000Z
import argparse import tskit if __name__ == "__main__": parser = argparse.ArgumentParser( description=( 'Quick hack: add an extra mutations column calculated by re-laying' ' mutations using parsimony. The modified' 'csv is output to stdout, so do e.g. `python add_RF.py f...
42.807692
95
0.538634
1a5991b6fcd51e13b5206f5e07664dc17e210b03
418
py
Python
vapor_manager/conftest.py
codescribblr/project-manager-django3
d0dc79e992811eee3e35666acdb16bcafa16d98d
[ "MIT" ]
null
null
null
vapor_manager/conftest.py
codescribblr/project-manager-django3
d0dc79e992811eee3e35666acdb16bcafa16d98d
[ "MIT" ]
null
null
null
vapor_manager/conftest.py
codescribblr/project-manager-django3
d0dc79e992811eee3e35666acdb16bcafa16d98d
[ "MIT" ]
null
null
null
import pytest from django.test import RequestFactory from vapor_manager.users.models import User from vapor_manager.users.tests.factories import UserFactory @pytest.fixture(autouse=True) def media_storage(settings, tmpdir): settings.MEDIA_ROOT = tmpdir.strpath @pytest.fixture def user() -> User: return Use...
19.904762
59
0.784689
1a59c010099b0c8cde9cdbafa5147927e3d18895
18,914
py
Python
appengine/cr-buildbucket/validation.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/cr-buildbucket/validation.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/cr-buildbucket/validation.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 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. """Validates V2 proto messages. Internally, this module is a bit magical. It keeps a stack of fields currently being validated per thread. It is used to con...
30.555735
129
0.694248
1a59c5706550dc75ac00caaaabbe2d9733b0fb3a
18,258
py
Python
osarchiver/source/db.py
pcibot/osarchiver
19f07ba7585c021f03f7928fc0b5614570db75a3
[ "BSD-3-Clause" ]
null
null
null
osarchiver/source/db.py
pcibot/osarchiver
19f07ba7585c021f03f7928fc0b5614570db75a3
[ "BSD-3-Clause" ]
2
2019-10-30T16:11:24.000Z
2019-10-30T16:19:47.000Z
osarchiver/source/db.py
pcibot/osarchiver
19f07ba7585c021f03f7928fc0b5614570db75a3
[ "BSD-3-Clause" ]
null
null
null
# Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Copyright 2019 The OSArchiver Authors. All rights reserved. """ OSArchiver's Source class that implement a db backend """ import re import time import logging import pymysql import arrow from numpy import array_spli...
42.859155
79
0.539051
1a59ff28e620da729ac7f87da4900ac09dcd0f02
7,180
py
Python
asv/commands/show.py
prisae/asv
57c386d7cc27f91ecd8daf1ad2e0413f2efdd39c
[ "BSD-3-Clause" ]
2
2019-08-18T11:05:25.000Z
2019-11-17T02:07:18.000Z
asv/commands/show.py
prisae/asv
57c386d7cc27f91ecd8daf1ad2e0413f2efdd39c
[ "BSD-3-Clause" ]
1
2019-02-19T17:11:38.000Z
2019-02-19T17:11:38.000Z
asv/commands/show.py
prisae/asv
57c386d7cc27f91ecd8daf1ad2e0413f2efdd39c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) from collections import defaultdict from . import Command from ..benchmarks import Benchmarks from ..machine import iter...
37.202073
94
0.573955
1a5a18b41de570bde4d8409713fef1adbfc821c6
1,529
py
Python
kg/diff/real_abs_1e_7.py
kevinsogo/compgen
c765fdb3008d41f409836a45ad5a506db6a99e74
[ "MIT" ]
6
2019-11-30T17:03:13.000Z
2021-09-30T05:08:31.000Z
kg/diff/real_abs_1e_7.py
kevinsogo/compgen
c765fdb3008d41f409836a45ad5a506db6a99e74
[ "MIT" ]
1
2020-01-20T12:13:03.000Z
2020-01-20T12:13:03.000Z
kg/diff/real_abs_1e_7.py
kevinsogo/compgen
c765fdb3008d41f409836a45ad5a506db6a99e74
[ "MIT" ]
null
null
null
# Checks for an absolute error # with an error of at most 1e-7 # Don't edit this file. Edit real_abs_rel_template.py instead, and then run _real_check_gen.py from itertools import zip_longest from decimal import Decimal, InvalidOperation from kg.checkers import * ### @import EPS = Decimal('1e-7') EPS *= 1+Decima...
41.324324
94
0.602354
1a5a40aedfe2b697ad129fd263f09acc73b538ad
574
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_NR.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_NR.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_NR.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. NR metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_NR = PhoneMetadata(id='NR', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='1\\d{2}', possible_length=(3,)), ...
63.777778
121
0.75784