repo_name stringlengths 5 92 | path stringlengths 4 232 | copies stringclasses 19
values | size stringlengths 4 7 | content stringlengths 721 1.04M | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 15 997 | alpha_frac float64 0.25 0.97 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
ElectroweakGroup/Database_Extraction_Tool | Main.py | 1 | 1572 | import IsotopeDataExporting as ided
import os
import glob
import time
import sys
import renormalize as renorm
def function(option):
#Exports data requested by the user into text files (necessary to generate plots)
userInput = ided.datExp(option,True,True)
#Prints the user input allowing user to make su... | mit | 5,746,059,216,080,461,000 | 30.081633 | 123 | 0.666667 | false |
apache/airflow | airflow/sentry.py | 2 | 6613 | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | apache-2.0 | 2,442,797,794,449,061,400 | 36.151685 | 109 | 0.583245 | false |
anurag03/integration_tests | cfme/storage/object_store_object.py | 1 | 6474 | # -*- coding: utf-8 -*-
import attr
from navmazing import NavigateToSibling, NavigateToAttribute
from widgetastic.widget import View, Text, NoSuchElementException
from widgetastic_patternfly import BreadCrumb, Button, Dropdown
from cfme.base.ui import BaseLoggedInPage
from cfme.common import TagPageView, Taggable
from... | gpl-2.0 | 781,696,630,555,552,000 | 34.966667 | 96 | 0.666358 | false |
eroicaleo/LearningPython | interview/leet/394_Decode_String.py | 1 | 2187 | #!/usr/bin/env python3
import re
# s = "3[a]2[bc]", return "aaabcbc".
# s = "3[a2[c]]", return "accaccacc".
# s = "2[abc]3[cd]ef", return "abcabccdcdcdef".
class Solution:
def decodeString(self, s):
stack, n, t = [], 0, ''
for c in s:
if c.isdigit():
n = 10*n + int(c)
... | mit | -4,032,999,080,055,340,000 | 26.3375 | 87 | 0.38866 | false |
aviaryan/pythons | TheHyliaSoundtrack/hylia_s.py | 1 | 1588 | from bs4 import BeautifulSoup
from urllib.request import urlopen
from platform import subprocess
# if genlist = 0, then this script downloads the files, the cmd_downloader variable comes into play
# if genlist = 1, then this script generates a list.txt file containing direct links to music files in the working direct... | apache-2.0 | -7,543,069,623,663,879,000 | 23.828125 | 124 | 0.677582 | false |
RasaHQ/rasa_nlu | rasa/core/policies/form_policy.py | 1 | 5093 | import logging
from typing import List, Optional, Dict, Text
from rasa.core.actions.action import ACTION_LISTEN_NAME
from rasa.core.domain import PREV_PREFIX, ACTIVE_FORM_PREFIX, Domain
from rasa.core.events import FormValidation
from rasa.core.featurizers import TrackerFeaturizer
from rasa.core.policies.memoization i... | apache-2.0 | 9,093,935,141,866,872,000 | 35.120567 | 82 | 0.596112 | false |
koonsolo/MysticMine | monorail/pickupsview.py | 1 | 11068 |
import random
import pygame
from koon.geo import Vec2D
import koon.geo as geo
from koon.gfx import SpriteFilm, Font, LoopAnimationTimer, PingPongTimer, Timer
from koon.res import resman
import pickups
import event
import tiles
class PickupView:
def __init__( self ):
self.pos = None
self.jump_pos... | mit | -8,202,370,288,542,892,000 | 34.703226 | 111 | 0.58502 | false |
mitsuhiko/click | src/click/types.py | 1 | 30864 | import os
import stat
from datetime import datetime
from ._compat import _get_argv_encoding
from ._compat import filename_to_ui
from ._compat import get_filesystem_encoding
from ._compat import get_strerror
from ._compat import open_stream
from .exceptions import BadParameter
from .utils import LazyFile
from .utils im... | bsd-3-clause | -5,114,859,521,448,229,000 | 32.402597 | 88 | 0.596099 | false |
mwilliammyers/sportsstats | tests/test_nba.py | 1 | 1960 | #!/usr/bin/env python
"""test_nba
Tests for `nba` module.
"""
from sportsstats import nba
import unittest
class TestNba(unittest.TestCase):
def setUp(self):
from datetime import datetime
april_9 = datetime(2016, 4, 9)
self.nba_stats = nba.Stats(april_9, april_9)
self.expected_qu... | gpl-3.0 | 1,037,946,190,995,494,400 | 32.220339 | 77 | 0.590306 | false |
ionomy/ion | test/functional/token_test-pt1.py | 1 | 8466 | #!/usr/bin/env python3
# Copyright (c) 2018-2020 The Ion Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the functionality of all CLI commands.
"""
from test_framework.test_framework import BitcoinTestFrame... | mit | 4,159,290,901,435,272,700 | 55.818792 | 245 | 0.66773 | false |
axmachado/simplepos | simplepos/objfile/module.py | 1 | 5296 | # -*- coding: utf-8 -*-
"""
Copyright © 2017 - Alexandre Machado <axmachado@gmail.com>
This file is part of Simple POS Compiler.
Simnple POS Compiler 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 Found... | gpl-3.0 | -5,143,156,768,576,183,000 | 34.066225 | 79 | 0.622663 | false |
praekelt/molo | molo/core/migrations/0020_add-social-media-fields-to-article-page.py | 1 | 1042 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailimages', '0010_change_on_delete_behaviour'),
('core', '0019_add_tags_to_article'),
]
... | bsd-2-clause | -5,566,844,998,955,386,000 | 32.612903 | 172 | 0.613244 | false |
befelix/GPy | GPy/util/normalizer.py | 1 | 2996 | '''
Created on Aug 27, 2014
@author: Max Zwiessele
'''
import numpy as np
class _Norm(object):
def __init__(self):
pass
def scale_by(self, Y):
"""
Use data matrix Y as normalization space to work in.
"""
raise NotImplementedError
def normalize(self, Y):
"... | bsd-3-clause | 3,887,301,455,200,167,000 | 25.513274 | 102 | 0.578104 | false |
greenape/gem-module | gaussianemulation/uncertainty.py | 1 | 2386 | from sympy import *
from mpmath import *
from util import *
def E(r_h, b_hat, r_t, e):
return r_h.T*b_hat + r_t.T*e
def V(sigma, u, r_t, A_inv, r_h, g, w):
res = Matrix([u])
res -= r_t.T*A_inv*r_t
res += (r_h - g.T*r_t).T*w*(r_h-g.T*r_t)
res *= sigma
return sigma*(u - r_t.T*A_inv*r_t + (r_h - ... | mpl-2.0 | 5,845,735,544,084,785,000 | 30.407895 | 114 | 0.475272 | false |
kyleabeauchamp/EnsemblePaper | code/model_building/fit_model.py | 1 | 1807 | import numpy as np
from fitensemble import belt, ensemble_fitter
import experiment_loader
import sys
import ALA3
belt.ne.set_num_threads(1)
def run(ff, prior, regularization_strength, bootstrap_index_list):
pymc_filename = ALA3.data_directory + "/models/model_%s_%s_reg-%.1f-BB%d.h5" % (ff, prior, regularization_st... | gpl-3.0 | -55,501,563,004,168,850 | 45.333333 | 161 | 0.723852 | false |
xtr4nge/FruityProxy | plugins/plugin.py | 1 | 1262 | #!/usr/bin/env python
# Copyright (C) 2015-2016 xtr4nge [_AT_] 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 3 of the License, or
# (at your option) any later versi... | lgpl-3.0 | 4,761,346,344,156,788,000 | 29.047619 | 71 | 0.715531 | false |
mordred-descriptor/mordred | mordred/_util.py | 1 | 2230 | from __future__ import print_function
import os
import sys
import numpy as np
def parse_enum(enum, v):
if isinstance(v, enum):
return v
else:
return enum[v]
def atoms_to_numpy(f, mol, dtype="float"):
return np.fromiter((f(a) for a in mol.GetAtoms()), dtype, mol.GetNumAtoms())
def con... | bsd-3-clause | 3,277,547,088,414,851,600 | 18.561404 | 87 | 0.561435 | false |
mrhubbs/merge_csv | work.py | 1 | 2511 | """
10-20-15
"""
import tempfile
import csv
def load_csv_as_dict(csv_path):
"""
Loads a CSV into a dictionary.
"""
with open(csv_path, 'rb') as csvfile:
reader = csv.reader(csvfile, delimiter=',')
header_row = reader.next()
dat = [[] for _ in header_row]
row_len = len... | gpl-2.0 | -531,748,911,764,550,500 | 22.036697 | 78 | 0.557149 | false |
romeubertho/USP-IntroPython | django/learning_log/learning_log/learning_log/settings.py | 1 | 3158 | """
Django settings for learning_log project.
Generated by 'django-admin startproject' using Django 1.11.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
impo... | mit | 6,835,176,702,205,230,000 | 24.885246 | 91 | 0.686827 | false |
elthariel/dff | api/gui/dialog/applymodule.py | 1 | 12581 | # DFF -- An Open Source Digital Forensics Framework
# Copyright (C) 2009-2010 ArxSys
# This program is free software, distributed under the terms of
# the GNU General Public License Version 2. See the LICENSE file
# at the top of the source tree.
#
# See http://www.digital-forensic.org for more information about this... | gpl-2.0 | 6,638,311,531,804,442,000 | 40.114379 | 232 | 0.581591 | false |
jmarsik/mopidy | mopidy/http/handlers.py | 1 | 7595 | from __future__ import absolute_import, unicode_literals
import functools
import logging
import os
import socket
import tornado.escape
import tornado.ioloop
import tornado.web
import tornado.websocket
import mopidy
from mopidy import core, models
from mopidy.internal import encoding, jsonrpc
logger = logging.getLo... | apache-2.0 | -545,906,839,529,140,350 | 31.182203 | 78 | 0.59684 | false |
anantb/confer | server/settings.py | 1 | 5344 | # Django settings for confer project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'confer', # Or path to database fil... | mit | -6,319,879,744,797,158,000 | 31.987654 | 109 | 0.682635 | false |
SergeyPirogov/selene | selene/conditions.py | 1 | 9603 | from abc import ABCMeta, abstractmethod
import operator
from future.utils import with_metaclass, lmap
from selene.abctypes.conditions import IEntityCondition
from selene.abctypes.webdriver import IWebDriver
from selene.abctypes.webelement import IWebElement
from selene.exceptions import ConditionMismatchException
c... | mit | -2,331,676,207,702,236,000 | 24.956757 | 113 | 0.640633 | false |
reingart/pyafipws | wslpg.py | 1 | 216526 | #!/usr/bin/python
# -*- coding: utf8 -*-
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 3, or (at your option) any later
# version.
#
# This program is distributed in the hope th... | gpl-3.0 | -3,899,072,255,980,930,600 | 46.503294 | 135 | 0.514621 | false |
jonls/lpd-monitor | btcon.py | 1 | 16600 |
import socket
import struct
import random
import hashlib
import errno
from gi.repository import GLib
from gi.repository import GObject
from bencode import bencode, bdecode, bdecode_all
class Bitfield(object):
def __init__(self, size, data=None):
if size < 0:
raise ValueError('Bitfield size ... | mit | -7,883,889,488,519,300,000 | 33.016393 | 129 | 0.527169 | false |
KshitijKarthick/tvecs | tvecs/visualization/server.py | 1 | 12380 | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
"""CherryPy Server to provide recommendations of semantic similarity."""
import os
import json
import codecs
import cherrypy
import argparse
import configparser
from gensim.models import Word2Vec
from nltk.tokenize import word_tokenize
from jinja2 import Environment, Fi... | mit | 6,555,203,023,060,832,000 | 33.873239 | 88 | 0.569386 | false |
hazelcast/hazelcast-python-client | tests/unit/discovery/hazelcast_cloud_discovery_test.py | 1 | 5900 | import ssl
import os
import threading
from hazelcast.six.moves import BaseHTTPServer
from hazelcast import six
from unittest import TestCase
from hazelcast.core import Address
from hazelcast.errors import HazelcastCertificationError
from hazelcast.discovery import HazelcastCloudDiscovery
from hazelcast.client import H... | apache-2.0 | -2,846,003,328,017,166,300 | 34.542169 | 106 | 0.634576 | false |
mic4ael/indico | indico/core/db/sqlalchemy/searchable_titles.py | 1 | 1794 | # This file is part of Indico.
# Copyright (C) 2002 - 2020 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from __future__ import unicode_literals
from sqlalchemy.ext.declarative import declared_attr
from indico... | mit | -4,994,673,740,867,772,000 | 32.222222 | 107 | 0.628205 | false |
kubeflow/kfserving | python/kfserving/test/test_v1alpha2_tensorflow_spec.py | 1 | 1476 | # Copyright 2020 kubeflow.org.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | apache-2.0 | 1,852,714,055,918,691,800 | 26.333333 | 98 | 0.722222 | false |
Mibou/django-memcache-status | memcache_status/templatetags/memcache_status_tags.py | 1 | 3249 | from django import template
from django.conf import settings
try:
from django.core.cache import caches
except:
from django.core.cache import get_cache as caches
if caches.__module__.startswith('debug_toolbar'):
from debug_toolbar.panels.cache import original_get_cache as caches
get_cache = lambda cache_na... | bsd-3-clause | 115,984,585,617,540,590 | 32.84375 | 104 | 0.602647 | false |
hiteshagrawal/python | battleship3.py | 1 | 1558 | #!/usr/bin/python
import random
board = []
size = 0
def board_print():
global board
for row in board:
print " ".join(row)
def new_game():
global board,size
board = []
size = input("Enter board size:") ## Input will automatically convert it to integer
for row in range(size):
board.append(["0"] * size )
b... | gpl-2.0 | 6,092,222,742,744,449,000 | 23.34375 | 84 | 0.639281 | false |
chromium/chromium | third_party/blink/tools/blinkpy/web_tests/port/driver.py | 1 | 30937 | # Copyright (C) 2011 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | bsd-3-clause | -8,903,017,021,316,949,000 | 41.437586 | 127 | 0.580729 | false |
Barrog/C4-Datapack | data/jscript/quests/343_UnderTheShadowOfTheIvoryTower/__init__.py | 1 | 7613 | # Made by mtrix - v0.2 by DrLecter
import sys
from net.sf.l2j.gameserver.model.quest import State
from net.sf.l2j.gameserver.model.quest import QuestState
from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest
ORB = 4364
ECTOPLASM = 4365
ADENA = 57
CHANCE = 65
RANDOM_REWARDS=[[951,1], #Enchant We... | gpl-2.0 | 7,425,132,417,915,398,000 | 35.600962 | 170 | 0.543019 | false |
meteorfox/PerfKitBenchmarker | perfkitbenchmarker/linux_packages/ycsb.py | 1 | 28681 | # Copyright 2016 PerfKitBenchmarker 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 appli... | apache-2.0 | -1,323,101,496,213,141,800 | 34.85125 | 80 | 0.644364 | false |
vene/ambra | ambra/cross_validation.py | 1 | 9371 | import numbers
import time
import numpy as np
from sklearn.utils import safe_indexing
from sklearn.base import is_classifier, clone
from sklearn.metrics.scorer import check_scoring
from sklearn.externals.joblib import Parallel, delayed, logger
from ambra.backports import _num_samples, indexable
from sklearn.cross_val... | bsd-2-clause | 9,139,787,003,201,027,000 | 35.321705 | 79 | 0.593 | false |
kupiakos/pybcd | bcdelement.py | 1 | 3754 |
from common import *
from elements import *
from bcddevice import BCDDevice
class BCDElement:
obj = None
_type = None
_changed = False
_identifier = None
_enum = None
_value = None
fmt = None
def __init__(self, obj, type):
self.obj = obj
self._type = type
... | mit | -2,685,742,574,924,046,300 | 26.807407 | 83 | 0.478689 | false |
ceph/radosgw-agent | radosgw_agent/util/log.py | 1 | 2537 | import logging
import sys
def get_dev_logger(name='dev.radosgw_agent'):
"""
A simple utility to be able to log things that are meant for developer-eyes
and not for user facing.
All developer logs must be prepended with `dev` so this utility ensures
that is the case. To use it::
dev_log =... | mit | 9,070,884,113,438,311,000 | 27.505618 | 92 | 0.653134 | false |
jmccrae/wn-rdf | stresstest.py | 1 | 1210 | import multiprocessing
import sqlite3
import time
import urllib
def do_query(uri):
t1 = time.time()
try:
for line in urllib.urlopen(uri):
pass
print "Got %s in %f" % (uri, time.time() - t1)
except Exception as e:
print "Failed on %s: %s" % (uri, str(e))
if __name__ == ... | bsd-3-clause | 1,839,928,328,675,111,000 | 33.571429 | 98 | 0.6 | false |
acutesoftware/AIKIF | aikif/.z_prototype/create_word_lists.py | 1 | 5833 | # coding: utf-8
# create_word_lists.py written by Duncan Murray 3/2/2014
# creates a simple list of verbs, nouns and adjectives for
# simple 'bag of words' parsing.
# First implementation uses the following dataset:
# WordNet 3.1 Copyright 2011 by Princeton University.
import os
import sys
from xml.dom.minidom ... | gpl-3.0 | -5,059,939,750,035,146,000 | 40.077465 | 138 | 0.640665 | false |
Infinidat/gitpy | gitpy/tag.py | 1 | 1690 | # Copyright (c) 2009, Rotem Yaari <vmalloc@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this li... | bsd-3-clause | -295,788,819,390,010,940 | 50.212121 | 79 | 0.750296 | false |
shish/sdog | sdog/monitor.py | 1 | 4065 | #!/usr/bin/env python
import socket
import os
import subprocess
from optparse import OptionParser
from time import time, sleep
from select import select
import sys
try:
from setproctitle import setproctitle
except ImportError:
def setproctitle(title):
pass
def main(argv=sys.argv):
parser = Optio... | mit | -6,080,029,052,725,349,000 | 32.04878 | 120 | 0.518819 | false |
online-behaviour/machine-learning | getTweetText.py | 1 | 1768 | #!/usr/bin/python3 -W all
"""
getTweetText.py: extract tweet text from json file
usage: getTweetText.py < file
20170418 erikt(at)xs4all.nl
"""
import csv
import json
import re
import sys
# command name for error messages
COMMAND = sys.argv[0]
patternNewline = re.compile("\n")
# open csv output
with sys.s... | apache-2.0 | -3,595,196,623,432,548,000 | 38.288889 | 79 | 0.639706 | false |
knowmetools/km-api | km_api/know_me/migrations/0006_subscription.py | 1 | 2495 | # Generated by Django 2.0.6 on 2018-10-20 23:41
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import permission_utils.model_mixins
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL... | apache-2.0 | 4,595,380,879,259,776,500 | 33.178082 | 89 | 0.420441 | false |
mrksu/flac2m | src/paths.py | 1 | 4790 | #!/usr/bin/env python3
from typing import List, Tuple
import os
from common import error_exit
MusicDir = Tuple[str, List[str]] # A tuple of dir name and all of its files
MusicMap = List[MusicDir] # List of dirs containing music
def find_music(roots: List[str]) -> MusicMap:
music_dirs = []
for ... | gpl-3.0 | 7,273,973,328,679,862,000 | 29.653846 | 80 | 0.604559 | false |
fnp/wolnelektury | src/social/models.py | 1 | 6767 | # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
from random import randint
from django.db import models
from django.conf import settings
from django.core.exceptions import ValidationError
from django.urls import ... | agpl-3.0 | -6,219,693,261,399,555,000 | 38.8 | 152 | 0.635087 | false |
abrt/faf | src/pyfaf/storage/migrations/versions/1c7edfbf8941_drop_reportunknownpackage_running_fields.py | 1 | 3689 | # Copyright (C) 2015 ABRT Team
# Copyright (C) 2015 Red Hat, Inc.
#
# This file is part of faf.
#
# faf is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) ... | gpl-3.0 | -5,371,299,803,623,686,000 | 36.642857 | 79 | 0.657089 | false |
rpadilha/rvpsite | rvpsite/blog/migrations/0001_initial.py | 1 | 2442 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-03-15 16:02
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import s3direct.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
... | agpl-3.0 | -2,348,001,654,431,502,000 | 41.666667 | 228 | 0.561266 | false |
JonasSC/SuMPF | tests/tests/_internal/test_interpolation.py | 1 | 11458 | # This file is a part of the "SuMPF" package
# Copyright (C) 2018-2021 Jonas Schulte-Coerne
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your ... | lgpl-3.0 | -1,703,911,663,758,874,600 | 57.162437 | 207 | 0.619393 | false |
syscoin/syscoin | test/functional/mining_getblocktemplate_longpoll.py | 1 | 3612 | #!/usr/bin/env python3
# Copyright (c) 2014-2020 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 longpolling with getblocktemplate."""
from decimal import Decimal
import random
import threading
... | mit | -6,632,683,884,443,701,000 | 43.592593 | 134 | 0.668051 | false |
Lucretiel/autocommand | test/test_automain.py | 1 | 1906 | # Copyright 2014-2016 Nathan West
#
# This file is part of autocommand.
#
# autocommand is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later v... | lgpl-3.0 | 7,467,804,652,391,681,000 | 27.029412 | 77 | 0.654774 | false |
mhotwagner/backstage | facade/models.py | 1 | 2837 | from django.db import models
from ckeditor.fields import RichTextField
from solo.models import SingletonModel
from phonenumber_field import modelfields as phonenumber_models
from foti.models import Foto
from opere.models import Opera
from scritti.models import Scritto
class Profile(SingletonModel):
name = mod... | mit | -9,128,234,938,688,416,000 | 29.836957 | 143 | 0.650335 | false |
qPCR4vir/orange3 | Orange/canvas/canvas/items/utils.py | 3 | 3147 | import numpy
import sip
from PyQt4.QtGui import QColor, QRadialGradient, QPainterPathStroker
from PyQt4.QtCore import QObject, QSignalMapper
from PyQt4.QtCore import pyqtSignal as Signal
def saturated(color, factor=150):
"""Return a saturated color.
"""
h = color.hsvHueF()
s = color.hsvSaturationF()... | bsd-2-clause | 2,656,843,960,027,728,400 | 28.411215 | 85 | 0.68033 | false |
moqada/hatena2evernote | h2e.py | 1 | 11014 | # -*- coding: utf-8 -*-
import argparse
import binascii
import datetime
import hashlib
import os
import re
import requests
import time
import urllib
from evernote.api.client import EvernoteClient
from evernote.edam.type import ttypes as Types
from BeautifulSoup import BeautifulSoup
try:
from ConfigParser import Saf... | mit | 4,049,014,021,036,972,000 | 32.121622 | 79 | 0.555998 | false |
zooniverse/aggregation | docs/source/conf.py | 1 | 9778 | # -*- coding: utf-8 -*-
#
# Zooniverse Aggregation Engine documentation build configuration file, created by
# sphinx-quickstart on Mon Mar 14 11:15:07 2016.
#
# 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... | apache-2.0 | -6,004,966,478,125,117,000 | 31.596667 | 99 | 0.709143 | false |
bbqsrc/kbdgen | pysrc/kbdgen/gen/osxutil.py | 2 | 30141 | import copy
import json
import uuid
import pathlib
import itertools
import subprocess
import re
from collections import OrderedDict
import xml.etree.ElementTree as etree
from xml.etree.ElementTree import Element, SubElement
from ..bundle import parse_desktop_layout
from ..base import get_logger
from ..cldr import CP_... | apache-2.0 | -701,396,370,112,063,200 | 30.199793 | 86 | 0.497329 | false |
plaice/Zebrackets | src/zebrackets/zebraFont.py | 1 | 8776 | #!/usr/bin/python3
# File zebraFont.py
#
# Copyright (c) Blanca Mancilla, John Plaice, 2015, 2016
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at you... | gpl-3.0 | 613,869,908,422,646,400 | 38.35426 | 80 | 0.635939 | false |
zhenwendai/RGP | gpnarx.py | 1 | 1997 | from __future__ import print_function
import GPy
import numpy as np
def transformTimeSeriesToSeq(Y, timeWindow):
Ntr,D = Y.shape
blocksNumber = Ntr - timeWindow
X = np.zeros((blocksNumber, timeWindow*D))
Ynew = np.zeros((blocksNumber,D))
for i in range(blocksNumber):
tmp = Y[i:i+timeWindow... | bsd-3-clause | -546,439,118,895,596,200 | 26 | 105 | 0.548322 | false |
Spiderlover/Toontown | toontown/suit/SuitInvasionManagerAI.py | 1 | 11138 | import time
from random import random, randint, choice
from direct.directnotify import DirectNotifyGlobal
from direct.task import Task
from toontown.battle import SuitBattleGlobals
from toontown.toonbase.ToontownGlobals import IDES_OF_MARCH
import SuitDNA
from SuitInvasionGlobals import *
class SuitInvasionManagerAI:... | mit | 4,798,560,781,277,343,000 | 36.628378 | 109 | 0.5993 | false |
super13/tensorflow-speech-recognition-pai | src/smodels/RNN/utils.py | 1 | 1207 | import os
import tensorflow as tf
from configparser import ConfigParser
from utilities.set_dirs import get_conf_dir
conf_dir = get_conf_dir(debug=False)
parser = ConfigParser(os.environ)
parser.read(os.path.join(conf_dir, 'neural_network.ini'))
# AdamOptimizer
beta1 = parser.getfloat('optimizer', 'beta1')
beta2 = pa... | mit | 4,560,532,424,190,191,000 | 32.527778 | 87 | 0.654515 | false |
sguotciq/django-test | mysite/mysite/urls.py | 1 | 1262 | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-base... | gpl-2.0 | 7,233,505,913,969,201,000 | 36.147059 | 77 | 0.644216 | false |
pyload/pyload | src/pyload/webui/app/blueprints/cnl_blueprint.py | 1 | 5834 | # -*- coding: utf-8 -*-
import os
from base64 import standard_b64decode
from functools import wraps
from urllib.parse import unquote
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
import flask
from flask.json import jsonify
from p... | agpl-3.0 | 127,344,608,567,084,850 | 29.705263 | 113 | 0.632842 | false |
codebox/algorithms | graph_data_structures.py | 1 | 1452 | class DirectedAdjacencyMatrix:
def __init__(self, n):
self.n = n
self.data = [[0] * n for i in range(n)]
def connect(self, i_from, i_to):
self.data[i_from][i_to] += 1
def disconnect(self, i_from, i_to):
self.data[i_from][i_to] = max(0, self.data[i_from][i_to] - 1)
def ... | mit | 477,269,199,493,675,600 | 29.893617 | 86 | 0.544077 | false |
ChinaMassClouds/copenstack-server | openstack/src/horizon-2014.2/openstack_dashboard/dashboards/project/overview/panel.py | 1 | 1101 | # Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance w... | gpl-2.0 | -294,169,869,297,582,850 | 32.40625 | 78 | 0.723887 | false |
vmagamedov/kinko | kinko/compile/incremental_dom.py | 1 | 9185 | from json.encoder import encode_basestring
from slimit import ast as js
from ..types import NamedArgMeta, VarArgsMeta, VarNamedArgsMeta
from ..utils import split_args, normalize_args
from ..nodes import Tuple, Symbol, Placeholder, String, Number
from ..utils import Environ
from ..compat import text_type
from ..checke... | bsd-3-clause | -2,293,292,613,418,274,800 | 30.135593 | 79 | 0.587371 | false |
mottosso/pyblish-magenta | pyblish_magenta/vendor/capture.py | 1 | 15009 | """Maya Capture
Playblasting with independent viewport, camera and display options
"""
import re
import sys
import contextlib
from maya import cmds
version_info = (1, 1, 0)
__version__ = "%s.%s.%s" % version_info
__license__ = "MIT"
def capture(camera=None,
width=None,
height=None,
... | lgpl-3.0 | -8,235,345,355,411,183,000 | 30.399582 | 81 | 0.625225 | false |
lstephen/construi | construi/errors.py | 1 | 1545 | import sys
import traceback
from typing import Any, Callable, Dict, NoReturn
import construi.console as console
from compose.errors import OperationFailedError
from compose.service import BuildError
from docker.errors import APIError
from .config import ConfigException, NoSuchTargetException
from .target import Build... | apache-2.0 | -6,980,914,250,378,748,000 | 28.711538 | 80 | 0.682201 | false |
Jitsusama/lets-do-dns | tests/unit/acme_dns_auth/authenticate/test_cleanup_stage.py | 1 | 2731 | """Tests the lets_do_dns.acme_dns_auth.authenticate.py module."""
from mock import call, ANY
import pytest
from lets_do_dns.environment import Environment
from lets_do_dns.acme_dns_auth.authenticate import Authenticate
def test_properly_initializes_resource(mocker):
stub_environment = mocker.MagicMock(
... | apache-2.0 | -206,368,680,023,479,680 | 33.56962 | 74 | 0.683266 | false |
phoebe-project/phoebe2-docs | 2.1/examples/minimal_contact_binary.py | 1 | 5694 | #!/usr/bin/env python
# coding: utf-8
# Minimal Contact Binary System
# ============================
#
# Setup
# -----------------------------
# Let's first make sure we have the latest version of PHOEBE 2.1 installed. (You can comment out this line if you don't use pip for your installation or don't want to update ... | gpl-3.0 | -6,267,416,586,209,777,000 | 15.946429 | 359 | 0.680541 | false |
ThoriumGroup/thorium | setup.py | 1 | 7980 | #!/usr/bin/env python
"""
setup.py
========
This is a generic as possible setup.py template. The goal is to retrieve almost
all of the information from the main module file, rather than relying on values
explicitly entered here.
## Usage
This setup.py script needs to modified in the following ways:
- `MAIN_FILE` n... | mit | 982,966,810,194,731,900 | 34.784753 | 81 | 0.545865 | false |
paulscherrerinstitute/snapshot | snapshot/gui/snapshot_gui.py | 1 | 15841 | #!/usr/bin/env python
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
import datetime
import json
import os
import sys
from PyQt5 import QtCore
from PyQt5.QtCore import Qt, QTime... | gpl-3.0 | 5,937,342,904,867,033,000 | 36.716667 | 105 | 0.596806 | false |
sslattery/Chimera | doc/spn/fuel_assembly/sp3/fs_azilut02.py | 1 | 16598 | ###############################################################################
## fs.py
## 9te [angband.ornl.gov]
## Wed Jan 12 10:37:50 2011
###############################################################################
## Copyright (C) 2008 Oak Ridge National Laboratory, UT-Battelle, LLC.
##------------------------... | bsd-3-clause | 735,892,012,629,939,000 | 27.617241 | 111 | 0.457826 | false |
gurneyalex/odoo | addons/website/tests/test_qweb.py | 3 | 6800 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import re
from odoo import http, tools
from odoo.addons.website.tools import MockRequest
from odoo.modules.module import get_module_resource
from odoo.tests.common import TransactionCase
class TestQweb(TransactionCase... | agpl-3.0 | -8,959,988,184,103,590,000 | 44.333333 | 154 | 0.548971 | false |
Mariaanisimova/pythonintask | INBa/2015/Shemenev_A_V/task_100_30.py | 1 | 3036 | #Задача №10, Вариант 30
#Напишите программу "Генератор персонажей" для игры.Пользователю должно быть предоставлено 30 пунктов,
#которые можно распределить между четырьмя характеристиками: Сила, Здоровье, Мудрость и Ловкость.
#Надо сделать так, чтобы пользователь мог не только брать эти пункты из общего "пула", но ... | apache-2.0 | -5,101,172,537,701,492,000 | 32.721311 | 148 | 0.707827 | false |
jeremiedecock/snippets | python/matplotlib/hist_logscale_x.py | 1 | 1804 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Make a histogram using a logarithmic scale on X axis
See:
- http://stackoverflow.com/questions/6855710/how-to-have-logarithmic-bins-in-a-python-histogram
"""
import numpy as np
import matplotlib.pyplot as plt
# SETUP ###############################################... | mit | 2,079,215,973,483,422,700 | 24.542857 | 95 | 0.47651 | false |
kekivelez/DjangoSkeleton | tcshealth/users/views.py | 1 | 7243 | from django.shortcuts import render
# Create your views here.
import uuid
from rest_framework import status
from rest_framework.response import Response
from rest_framework import generics
from rest_framework import serializers as DRFserializers
from rest_framework import permissions
from rest_framework import rendere... | gpl-2.0 | -2,183,183,850,071,830,500 | 30.77193 | 104 | 0.620047 | false |
purushothamc/myibitsolutions | strings/justified_text.py | 1 | 1674 | def fullJustify(strings_list, number):
result = []
if not strings_list or number <= 0:
return result
current_length, idx, firstWord = 0, 0, True
for word in strings_list:
if firstWord:
result.append(word)
current_length += len(result[-1])
firstWord = F... | gpl-3.0 | -5,097,210,866,806,517,000 | 31.843137 | 74 | 0.470729 | false |
opencord/voltha | voltha/adapters/adtran_olt/test/codec/test_olt_state.py | 1 | 4156 | # Copyright 2017-present Adtran, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | apache-2.0 | -6,060,464,990,337,727,000 | 27.272109 | 84 | 0.703321 | false |
Thraxis/pymedusa | tests/issue_submitter_tests.py | 1 | 2025 | # coding=UTF-8
# Author: Dennis Lutter <lad1337@gmail.com>
# URL: http://code.google.com/p/sickbeard/
#
# This file is part of SickRage.
#
# SickRage 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 vers... | gpl-3.0 | -696,303,457,686,900,900 | 28.779412 | 90 | 0.65284 | false |
riklaunim/django-custom-multisite | setup.py | 1 | 4043 | from distutils.core import setup
from distutils.command.install_data import install_data
from distutils.command.install import INSTALL_SCHEMES
import os
import sys
class osx_install_data(install_data):
# On MacOS, the platform-specific lib dir is /System/Library/Framework/Python/.../
# which is wrong. Python 2... | bsd-3-clause | -6,663,430,971,561,462,000 | 39.43 | 117 | 0.666337 | false |
wakatime/wakadump | setup.py | 1 | 1515 | from setuptools import setup
about = {}
with open('wakadump/__about__.py') as f:
exec(f.read(), about)
packages = [
about['__title__'],
]
install_requires = [x.strip() for x in open('requirements.txt').readlines()]
setup(
name=about['__title__'],
version=about['__version__'],
license=about['__... | bsd-3-clause | 2,962,711,954,959,608,000 | 29.3 | 76 | 0.579538 | false |
Autodesk/molecular-design-toolkit | moldesign/integrators/verlet.py | 1 | 2603 | from __future__ import print_function, absolute_import, division
from future.builtins import *
from future import standard_library
standard_library.install_aliases()
# Copyright 2017 Autodesk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with ... | apache-2.0 | -1,039,936,645,698,552,800 | 34.657534 | 95 | 0.661544 | false |
mgohde/nudge-tools | tools/dbtool.py | 1 | 4655 | #!/usr/bin/python
import os
import sys
# Because of course Python has XML parsing built in.
import xml.etree.ElementTree as ET
# dbtool.py -- Quick and dirty tool to insert XML formatted storylines into the database.
def nodesearch(nodename, node):
for n in node:
if n.tag==nodename:
return n
... | gpl-2.0 | 5,467,210,576,468,532,000 | 30.241611 | 208 | 0.570569 | false |
parinporecha/backend_gtgonline | GTG/tests/test_urlregex.py | 1 | 1375 | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Getting Things GNOME! - a personal organizer for the GNOME desktop
# Copyright (c) 2008-2012 - Lionel Dricot & Bertrand Rousseau
#
# This program is free software: you can redistribute it and/or modify it under
# t... | gpl-3.0 | -1,338,562,269,334,985,500 | 37.194444 | 79 | 0.637091 | false |
Nolski/airmozilla | airmozilla/manage/forms.py | 1 | 29803 | import re
import datetime
from collections import defaultdict
import dateutil.parser
import pytz
from django import forms
from django.db.models import Count
from django.conf import settings
from django.contrib.auth.models import User, Group
from django.utils.timezone import utc
from django.utils.safestring import mar... | bsd-3-clause | -2,282,395,597,957,980,700 | 31.115302 | 79 | 0.562863 | false |
mdg/pygrate | test/migration_test.py | 1 | 5291 | import unittest
import os.path
import types
from pygration.migration import VersionNumber, Loader
import pygration
@pygration.step_class
class TestStep(object):
ADD_FILE = 'add.sql'
class StepTest(unittest.TestCase):
def test_class_decorator(self):
self.assertEqual("test.migration_test", TestStep.ve... | apache-2.0 | -2,929,203,148,356,788,000 | 32.916667 | 78 | 0.612361 | false |
ianmiell/OLD-shutitdist | inetutils/inetutils.py | 1 | 1466 | """ShutIt module. See http://shutit.tk
"""
from shutit_module import ShutItModule
class inetutils(ShutItModule):
def is_installed(self, shutit):
return shutit.file_exists('/root/shutit_build/module_record/' + self.module_id + '/built')
def build(self, shutit):
shutit.send('mkdir -p /tmp/build/inetutils')
... | gpl-2.0 | -6,905,995,326,169,488,000 | 25.178571 | 114 | 0.686903 | false |
zmr/namsel | accuracy_test.py | 1 | 2139 | #encoding: utf-8
import cPickle as pickle
from classify import load_cls, label_chars
from cv2 import GaussianBlur
from feature_extraction import get_zernike_moments, get_hu_moments, \
extract_features, normalize_and_extract_features
from functools import partial
import glob
from multiprocessing.pool import Pool
im... | mit | -5,771,223,519,204,429,000 | 23.872093 | 107 | 0.640019 | false |
bruderstein/PythonScript | PythonLib/full/unittest/test/testmock/testmock.py | 1 | 71837 | import copy
import re
import sys
import tempfile
from test.support import ALWAYS_EQ
import unittest
from unittest.test.testmock.support import is_instance
from unittest import mock
from unittest.mock import (
call, DEFAULT, patch, sentinel,
MagicMock, Mock, NonCallableMock,
NonCallableMagicMock, AsyncMock,... | gpl-2.0 | -6,548,717,165,340,701,000 | 32.08936 | 98 | 0.547573 | false |
tensorflow/probability | tensorflow_probability/python/vi/optimization.py | 1 | 14806 | # Copyright 2018 The TensorFlow Probability 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 o... | apache-2.0 | -8,091,259,992,861,452,000 | 46.915858 | 80 | 0.690261 | false |
aver803bath5/igene_bot | bot.py | 1 | 1802 | # -*- coding: utf-8 -*-
from telegram.ext import Updater
from telegram.ext import (Updater, CommandHandler, MessageHandler, Filters, RegexHandler,
ConversationHandler)
from bs4 import BeautifulSoup
from configparser import ConfigParser
from models import *
import logging
import re
import requ... | mit | -7,335,339,185,011,991,000 | 37.217391 | 102 | 0.658134 | false |
uxebu/tddbin-backend | src/tddbin/settings.py | 1 | 3937 | """
Django settings for tddbin project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
imp... | mit | 9,179,233,704,222,769,000 | 24.564935 | 161 | 0.677927 | false |
WoodNeck/tataru | cogs/sound.py | 1 | 7698 | import os
import asyncio
import logging
from discord import opus, ClientException
from discord.ext import commands
from discord.opus import OpusNotLoaded
from cogs.utils.music import Music
from cogs.utils.music_type import MusicType
from cogs.utils.music_player import MusicPlayer
OPUS_LIBS = ['libopus-0.x86.dll', 'lib... | mit | 120,925,598,734,384,880 | 37.854839 | 131 | 0.619206 | false |
ronaldhan/python-data | sqlite2mysql_test.py | 1 | 3652 | # -*- coding: utf-8 -*-
import sqlite3 as lite
import MySQLdb
import python_mysql as mydb
try:
dbPath="C:/Program Files (x86)/火车采集器V8/Data"
fileName="/5/SpiderResult.db3"
tableName='yhxxl'
conn=lite.connect(dbPath+fileName)
conn.row_factory=lite.Row
cur=conn.cursor()
... | apache-2.0 | 7,242,926,501,114,921,000 | 39.953488 | 170 | 0.524418 | false |
Tinkerforge/brickv | src/brickv/plugin_system/plugins/red/program_page_ruby.py | 1 | 10155 | # -*- coding: utf-8 -*-
"""
RED Plugin
Copyright (C) 2014-2015 Matthias Bolte <matthias@tinkerforge.com>
Copyright (C) 2014 Olaf Lüke <olaf@tinkerforge.com>
program_page_ruby.py: Program Wizard Ruby Page
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public ... | gpl-2.0 | 354,112,692,375,024,500 | 46.009259 | 123 | 0.593067 | false |
snua12/zlomekfs | tests/nose-tests/remoteZfs.py | 1 | 10216 | #! /bin/env python
"""
locally, we wrap every RemoteReference into RemoteObject
"""
from twisted.spread import pb
from twisted.internet import reactor
from twisted.python.failure import Failure
import sys
import os
import logging
import tempfile
from insecticide.snapshot import SnapshotDescription
from insecticid... | gpl-2.0 | 279,440,433,751,394,370 | 27.858757 | 89 | 0.586139 | false |
ivmech/iviny-scope | lib/xlsxwriter/test/comparison/test_chart_font05.py | 1 | 2453 | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013, John McNamara, jmcnamara@cpan.org
#
import unittest
import os
from ...workbook import Workbook
from ..helperfunctions import _compare_xlsx_files
class TestCompareXLSXFiles(unittest.TestC... | gpl-3.0 | -8,548,962,040,107,279,000 | 25.663043 | 79 | 0.482674 | false |
alephobjects/Cura | Cura/util/pluginInfo.py | 1 | 5074 | """
The plugin module contains information about the plugins found for Cura.
It keeps track of a list of installed plugins and the information contained within.
"""
__copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License"
import os
import sys
import traceback
import platform
import... | agpl-3.0 | -2,194,463,804,802,275,000 | 28.5 | 160 | 0.671462 | false |
sekikn/ambari | ambari-server/src/main/resources/stack-hooks/before-ANY/scripts/hook.py | 2 | 1181 | """
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this ... | apache-2.0 | 2,745,474,116,633,084,400 | 28.525 | 86 | 0.749365 | false |
rafaellc28/Latex2MiniZinc | latex2minizinc/Expression.py | 1 | 1933 | class Expression:
"""
Class representing a expression node in the AST of a MLP
"""
def __init__(self):
self.indice = -1
self.identifier = None
self.identifierName = None
self.identifierList = None
self.isInSet = False
self.isSet = None
self.isVar ... | mit | -3,935,649,969,850,362,400 | 24.434211 | 60 | 0.619762 | false |
Kotaimen/awscfncli | awscfncli2/cli/commands/validate/validate.py | 1 | 1394 | import click
from awscfncli2.cli.context import Context
from awscfncli2.cli.utils.deco import command_exception_handler
from awscfncli2.cli.utils.pprint import echo_pair_if_exists
@click.command('validate')
@click.pass_context
@command_exception_handler
def cli(ctx):
"""Validate template file."""
assert isin... | mit | -3,338,195,612,921,171,000 | 31.418605 | 80 | 0.649211 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.