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 |
|---|---|---|---|---|---|---|---|---|---|---|
madoodia/codeLab | python/Built-in_Functions.py | 1 | 15493 | ######################################### Built-in Functions #########################################
abs(x) # Return the absolute value of a number
# .........................................
all(iterable) # Return True if all elements of the iterable are true
# equivalent to:
def all(iterable):
for element i... | mit | 4,427,158,441,983,250,000 | 46.904025 | 217 | 0.545208 | false |
pmrowla/goonbcs | goonbcs/models.py | 1 | 3450 | # Copyright (c) 2013 Peter Rowlands
from __future__ import absolute_import
from flask.ext.security import UserMixin, RoleMixin
from . import db
class Conference(db.Model):
"""A college football conference"""
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(255), unique=True)
... | mit | -7,676,578,578,878,434,000 | 33.848485 | 75 | 0.648406 | false |
charany1/googlecl | src/debug_util.py | 2 | 2144 | # Copyright (C) 2010 Google 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... | mit | 1,641,560,307,784,319,000 | 34.733333 | 79 | 0.695429 | false |
heromod/migrid | mig/edpickle.py | 1 | 2501 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# edpickle - a simple pickled object editor.
# Copyright (C) 2009 Jonas Bardino
#
# This file is part of MiG.
#
# MiG 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... | gpl-2.0 | -489,058,328,799,537,700 | 32.346667 | 81 | 0.628149 | false |
NewAcropolis/api | app/routes/venues/rest.py | 1 | 3126 | import os
from flask import (
Blueprint,
current_app,
jsonify,
request
)
from flask_jwt_extended import jwt_required
from app.dao.venues_dao import (
dao_create_venue,
dao_get_venues,
dao_update_venue,
dao_get_venue_by_id
)
from app.errors import register_errors
from app.routes.venues... | mit | 2,526,085,522,634,169,000 | 25.948276 | 119 | 0.636916 | false |
ifcharming/voltdb2.1 | tools/vis.py | 1 | 5697 | #!/usr/bin/env python
# This is a visualizer which pulls TPC-C benchmark results from the MySQL
# databases and visualizes them. Four graphs will be generated, latency graph on
# sinigle node and multiple nodes, and throughput graph on single node and
# multiple nodes.
#
# Run it without any arguments to see what argu... | gpl-3.0 | 7,035,395,335,418,342,000 | 30.131148 | 80 | 0.552923 | false |
klahnakoski/jx-sqlite | vendor/mo_collections/unique_index.py | 1 | 5570 | # encoding: utf-8
#
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Contact: Kyle Lahnakoski (kyle@lahnakoski.com)
#
from __future__ import absolute_import, divis... | mpl-2.0 | -1,573,903,108,648,493,300 | 28.315789 | 129 | 0.523878 | false |
jamespcole/home-assistant | tests/util/test_yaml.py | 1 | 17357 | """Test Home Assistant yaml loader."""
import io
import os
import unittest
import logging
from unittest.mock import patch
import pytest
from homeassistant.exceptions import HomeAssistantError
from homeassistant.util import yaml
from homeassistant.config import YAML_CONFIG_FILE, load_yaml_config_file
from tests.common... | apache-2.0 | -1,518,754,949,115,915,300 | 37.977528 | 79 | 0.528452 | false |
gdetor/SI-RF-Structure | Statistics/clear_data.py | 1 | 5369 | # Copyright (c) 2014, Georgios Is. Detorakis (gdetor@gmail.com) and
# Nicolas P. Rougier (nicolas.rougier@inria.fr)
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redis... | gpl-3.0 | -1,296,385,003,780,873,000 | 37.625899 | 106 | 0.631589 | false |
cheral/orange3 | doc/development/source/orange-demo/orangedemo/OWLearningCurveB.py | 2 | 13882 | import sys
from collections import OrderedDict
from functools import reduce
import numpy
import sklearn.cross_validation
from PyQt4.QtGui import QTableWidget, QTableWidgetItem
import Orange.data
import Orange.classification
from Orange.widgets import widget, gui, settings
from Orange.evaluation.testing import Resul... | bsd-2-clause | 929,211,082,219,131,100 | 33.02451 | 96 | 0.590693 | false |
bolkedebruin/airflow | tests/providers/segment/hooks/test_segment.py | 1 | 2017 | # -*- coding: utf-8 -*-
#
# 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
#... | apache-2.0 | 4,212,838,040,843,026,400 | 31.532258 | 80 | 0.695092 | false |
leandro86/epubcreator | epubcreator/epubbase/ebook.py | 1 | 14784 | import os
from lxml import etree
from epubcreator.pyepub.pyepubwriter import epub
from epubcreator.epubbase import ebook_metadata, ebook_data, files, images
from epubcreator.misc import utils
from epubcreator.misc.options import Options, Option
class Ebook(Options):
OPTIONS = [Option(name="includeOptionalFiles"... | unlicense | 1,965,789,741,287,960,000 | 50.632867 | 149 | 0.609237 | false |
praekelt/go-http-api | go_http/tests/test_account.py | 1 | 8152 | """
Tests for go_http.account
"""
import collections
import copy
import json
from unittest import TestCase
from requests import HTTPError, Session
from requests.adapters import HTTPAdapter
from requests_testadapter import TestSession, Resp, TestAdapter
from go_http.account import AccountApiClient
from go_http.except... | bsd-3-clause | 8,543,179,118,958,206,000 | 34.911894 | 79 | 0.625859 | false |
artminster/artminster | core/utils/fields.py | 1 | 10035 | from django.utils.translation import ugettext as _
from django.db import models, connection
from django.utils.text import capfirst
from itertools import chain
from django.utils.html import conditional_escape
from django.utils.safestring import mark_safe
from django.utils.encoding import force_unicode, smart_unicode
fro... | mit | 4,693,943,054,560,884,000 | 30.264798 | 98 | 0.47703 | false |
JioCloud/oslo-incubator | openstack/common/db/sqlalchemy/migration.py | 1 | 10048 | # coding: utf-8
#
# Copyright (c) 2013 OpenStack Foundation
# 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
#
# Unle... | apache-2.0 | -3,339,525,715,949,184,000 | 35.140288 | 79 | 0.695431 | false |
enikesha/pacioli | pacioli/views.py | 1 | 31775 | # Copyright (c) 2014, Satoshi Nakamoto Institute
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditio... | bsd-3-clause | 207,046,590,486,542,980 | 43.070735 | 757 | 0.628419 | false |
rdmorganiser/rdmo | rdmo/projects/models/value.py | 1 | 6697 | import mimetypes
from pathlib import Path
import iso8601
from django.db import models
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _
from django_cleanup import cleanup
from rdmo.core.constants import (VALUE_TYPE_BOOLEAN, VALUE_TYPE_CHOICES,
VALU... | apache-2.0 | 2,072,839,092,465,988,000 | 30.148837 | 100 | 0.558907 | false |
sxjscience/tvm | tests/python/relay/test_ir_parser.py | 1 | 22635 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | -6,946,301,590,166,049,000 | 24.094235 | 99 | 0.522377 | false |
ewheeler/tracpro | tracpro/msgs/tests.py | 1 | 4100 | from __future__ import absolute_import, unicode_literals
from django.core.urlresolvers import reverse
from django.test.utils import override_settings
from django.utils import timezone
from mock import patch
from temba.types import Broadcast
from tracpro.msgs.models import Message, COHORT_ALL, COHORT_RESPONDENTS, COHOR... | bsd-3-clause | -3,310,450,870,934,221,300 | 50.25 | 114 | 0.688537 | false |
xhchrn/gegan | train.py | 1 | 3732 | # -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import absolute_import
import tensorflow as tf
import argparse
from model.gegan import GEGAN
parser = argparse.ArgumentParser(description='Train')
parser.add_argument('--experiment_dir', dest='experiment_dir', required=True,
... | apache-2.0 | -6,427,230,271,344,068,000 | 61.2 | 119 | 0.681404 | false |
cdgriffith/PyFoto | pyfoto/config.py | 1 | 2058 | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import os
import logging
import yaml
import reusables
default_config = dict(
storage_directory="storage",
# TODO add {date}, {time}, {type}, {hash}, {size}
dir_names="{increment}",
file_names="{increment}.{ext}",
remove_source=False,
folder_limit... | mit | -5,122,755,118,486,069,000 | 24.407407 | 80 | 0.606414 | false |
Ictp/indico | bin/utils/changeStyle.py | 1 | 1781 | # -*- coding: utf-8 -*-
##
##
## This file is part of Indico.
## Copyright (C) 2002 - 2014 European Organization for Nuclear Research (CERN).
##
## Indico 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; eith... | gpl-3.0 | -5,476,135,551,570,129,000 | 37.717391 | 96 | 0.732734 | false |
tkaitchuck/nupic | external/common/lib/python2.6/site-packages/logilab/astng/test/unittest_inference.py | 1 | 41136 | # copyright 2003-2010 Sylvain Thenault, all rights reserved.
# contact mailto:thenault@gmail.com
#
# This file is part of logilab-astng.
#
# logilab-astng 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,... | gpl-3.0 | 3,295,323,266,890,843,000 | 34.926638 | 147 | 0.594953 | false |
virtualnobi/MediaFiler | nobi/ProductTraderPattern.py | 1 | 2526 | """Product Trader Pattern
This class implements a simple version of the Product Trader Pattern:
A SimpleProductTrader manages a registry mapping specifications to classes.
Strings are used as Specification.
For each Product, a SimpleProductTrader is created.
Subclasses of Product register with this SimpleProd... | gpl-3.0 | -2,615,523,185,855,493,600 | 26.382022 | 112 | 0.644101 | false |
Alignak-monitoring/alignak | tests/test_satellite_link.py | 1 | 3229 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015-2018: Alignak team, see AUTHORS.txt file for contributors
#
# This file is part of Alignak.
#
# Alignak is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free So... | agpl-3.0 | -3,222,885,129,645,364,700 | 32.989474 | 93 | 0.703314 | false |
vietdh85/vh-utility | script/rcb/graspgold.py | 1 | 1037 | import sys
import os.path
from pyquery import PyQuery as pq
import time
import common
def getValues(item):
url = item[3]
print("getValues(): ", url)
format = "%b %d %Y %H:%M:%S"
d = pq(url=url)
list = d(".list td")
index = 0
while index < len(list):
try :
obj = {}
obj['date'] = common.removeNumber... | gpl-3.0 | 1,925,032,494,287,725,800 | 22.568182 | 139 | 0.580521 | false |
juliakreutzer/bandit-neuralmonkey | neuralmonkey/decoders/word_alignment_decoder.py | 1 | 3918 | from typing import cast
import numpy as np
import tensorflow as tf
from neuralmonkey.dataset import Dataset
from neuralmonkey.encoders.recurrent import RecurrentEncoder
from neuralmonkey.decoders.decoder import Decoder
from neuralmonkey.logging import warn
from neuralmonkey.model.model_part import ModelPart, FeedDict... | bsd-3-clause | 5,833,592,751,520,678,000 | 34.944954 | 79 | 0.593415 | false |
JamesSample/ecosystem_services_impacts | Code/01_es_lu_cc.py | 1 | 21539 | #------------------------------------------------------------------------------
# Name: 01_es_lu_cc.py
# Purpose: Processing for the CREW project on ES, LUC and CC.
#
# Author: James Sample
#
# Created: 14/01/2015
# Copyright: (c) James Sample and JHI, 2015
# License: https://github.com/JamesS... | mit | 7,467,887,343,285,515,000 | 32.92126 | 128 | 0.566229 | false |
severin-lemaignan/minimalkb | testing/test_reasoner.py | 1 | 3841 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
import unittest
import time
try:
import kb
except ImportError:
import sys
print("You must first install pykb")
sys.exit(1)
from minimalkb import __version__
from queue import Empty
REASONING_DELAY = 0.2
class TestRDFSReasoner(unittest.Tes... | bsd-3-clause | 121,374,193,478,665,800 | 29.728 | 97 | 0.633949 | false |
silky/ProbablyOverthinkingIt | thinkstats2.py | 1 | 69096 | """This file contains code for use with "Think Stats" and
"Think Bayes", both by Allen B. Downey, available from greenteapress.com
Copyright 2014 Allen B. Downey
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
"""
from __future__ import print_function, division
"""This file contains class definitions for:
H... | mit | 1,973,675,057,824,859,000 | 23.589324 | 79 | 0.577964 | false |
redhat-openstack/rdo-infra | ci-scripts/dlrnapi_promoter/test_dlrn_integration.py | 1 | 6534 | """
This test is launched as part of the existing tox command
It tests if promoter and dlrn server are interacting correctly
Uses standard pytest fixture as a setup/teardown method
"""
import logging
import os
import promoter_integration_checks
import pytest
import yaml
from common import close_logging
from config_... | apache-2.0 | 3,242,506,652,930,499,000 | 33.389474 | 79 | 0.662687 | false |
diego-d5000/MisValesMd | env/lib/python2.7/site-packages/django/contrib/auth/tests/custom_user.py | 1 | 3775 | from django.contrib.auth.models import (
AbstractBaseUser, AbstractUser, BaseUserManager, Group, Permission,
PermissionsMixin, UserManager,
)
from django.db import models
# The custom User uses email as the unique identifier, and requires
# that every user provide a date of birth. This lets us test
#... | mit | -8,085,511,089,587,579,000 | 31.40708 | 88 | 0.647947 | false |
wxgeo/geophar | wxgeometrie/sympy/physics/tests/test_secondquant.py | 8 | 46268 | from sympy.physics.secondquant import (
Dagger, Bd, VarBosonicBasis, BBra, B, BKet, FixedBosonicBasis,
matrix_rep, apply_operators, InnerProduct, Commutator, KroneckerDelta,
AnnihilateBoson, CreateBoson, BosonicOperator,
F, Fd, FKet, BosonState, CreateFermion, AnnihilateFermion,
evaluate_deltas, Ant... | gpl-2.0 | 8,171,116,117,596,623,000 | 36.433657 | 86 | 0.545236 | false |
creasyw/IMTAphy | modules/phy/copper/PyConfig/copper/TimeDependentDistBER.py | 1 | 5027 | ###############################################################################
# This file is part of openWNS (open Wireless Network Simulator)
# _____________________________________________________________________________
#
# Copyright (C) 2004-2009
# Chair of Communication Networks (ComNets)
# Kopernikusstr. 5, D-5... | gpl-2.0 | -1,640,753,965,825,216,300 | 36.514925 | 169 | 0.536901 | false |
hbrunn/bank-payment | account_banking_mandate/__openerp__.py | 1 | 1321 | # -*- coding: utf-8 -*-
# © 2014 Compassion CH - Cyril Sester <csester@compassion.ch>
# © 2014 Serv. Tecnol. Avanzados - Pedro M. Baeza
# © 2015 Akretion - Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Account Banking Mandate',
'... | agpl-3.0 | -7,318,439,020,409,000,000 | 34.621622 | 68 | 0.600152 | false |
sniemi/SamPy | sandbox/src1/examples/multi_image.py | 1 | 1769 | #!/usr/bin/env python
'''
Make a set of images with a single colormap, norm, and colorbar.
It also illustrates colorbar tick labelling with a multiplier.
'''
from matplotlib.pyplot import figure, show, sci
from matplotlib import cm, colors
from matplotlib.font_manager import FontProperties
from numpy import amin, ama... | bsd-2-clause | 9,214,454,940,438,378,000 | 23.232877 | 64 | 0.637648 | false |
eunchong/build | scripts/slave/recipe_modules/chromium_tests/chromium_webrtc_fyi.py | 1 | 3616 | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import copy
import collections
from . import chromium_linux
from . import chromium_mac
from . import chromium_win
from . import chromium_webrtc
# GN build... | bsd-3-clause | -8,831,264,559,717,010,000 | 36.666667 | 76 | 0.694137 | false |
BackSlasher/greg | greg/__main__.py | 1 | 2640 | #!/usr/bin/env python
import argparse
import greg.config
def main():
parser = argparse.ArgumentParser(description='Integrate your build server and source control')
parser.add_argument('--config', default='config.yaml', help='Path to config file')
parser.add_argument('--fix-hooks', action='store_const', con... | gpl-3.0 | 1,664,957,608,571,238,400 | 41.580645 | 136 | 0.653788 | false |
jhnphm/boar | front.py | 1 | 29536 | # -*- coding: utf-8 -*-
# Copyright 2010 Mats Ekberg
#
# 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... | apache-2.0 | 9,191,154,933,669,040,000 | 41.134094 | 118 | 0.628961 | false |
nirinA/scripts_python | mangorona.py | 1 | 12832 | '''game of mangorona.
goal:
keep more pawn on the board than your opponent.
movement:
move your pawn to an unoccupied place.
pick:
fill or create an empty place beetwen your pawn and
your opponent's, and pick all opponent pawn in the
same line of movement.
'''
import sys
import random
import time... | unlicense | 4,551,880,349,135,935,500 | 33.869565 | 93 | 0.488622 | false |
rjschwei/azure-sdk-for-python | azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/models/azure_sku.py | 1 | 1111 | # 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 ... | mit | 1,389,177,205,370,494,500 | 27.487179 | 76 | 0.540954 | false |
briancurtin/python-openstacksdk | openstack/tests/unit/message/v2/test_proxy.py | 1 | 9468 | # 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, software
# distributed under t... | apache-2.0 | 4,928,571,807,809,514,000 | 46.577889 | 78 | 0.560097 | false |
vjlux/luxlib | LuxSynth/LuxSynth/LuxPreprocessor.py | 1 | 1130 | #!/usr/bin/env python3
## Copyright (c) MIT. All rights reserved.
## lux (vjlux@gmx.at) 2016
############################################################
# Imports
############################################################
import logging
import LuxImage
import open3d as o3d
import numpy as np
##################... | mit | 3,467,147,251,003,499,000 | 24.704545 | 77 | 0.39646 | false |
chaincoin/chaincoin | qa/rpc-tests/replace-by-fee.py | 1 | 22023 | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test replace by fee code
#
from test_framework.test_framework import BitcoinTestFramework
from test_... | mit | 5,439,684,677,800,086,000 | 36.327119 | 105 | 0.5823 | false |
pytorch/fairseq | examples/multilingual/data_scripts/utils/fasttext_multi_filter.py | 1 | 2340 | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#!/bin/python
import fasttext
from multiprocessing import Pool
import contextlib
import sys
import argparse
from functools import partial
im... | mit | -9,120,572,381,256,521,000 | 36.142857 | 107 | 0.584188 | false |
dolphx/browsepy | browsepy/plugin/player/playable.py | 1 | 7332 |
import sys
import codecs
import os.path
import warnings
from browsepy.compat import range, PY_LEGACY # noqa
from browsepy.file import Node, File, Directory, \
underscore_replace, check_under_base
if PY_LEGACY:
import ConfigParser as configparser
else:
import configparser
ConfigPa... | mit | 1,423,550,198,939,433,700 | 29.423237 | 79 | 0.575286 | false |
Southpaw-TACTIC/TACTIC | src/pyasm/web/webware_adapter.py | 1 | 4985 | ###########################################################
#
# Copyright (c) 2005, Southpaw Technology
# All Rights Reserved
#
# PROPRIETARY INFORMATION. This software is proprietary to
# Southpaw Technology, and is not to be reproduced, transmitted,
# or disclosed in any way without written permi... | epl-1.0 | 7,359,882,747,816,298,000 | 23.800995 | 104 | 0.566901 | false |
phenoxim/nova | nova/tests/unit/api/openstack/placement/test_handler.py | 1 | 7223 | # All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | apache-2.0 | -6,712,546,996,518,206,000 | 36.231959 | 78 | 0.618856 | false |
stianstr/autodeploy | autodeploy/Api.py | 1 | 3374 | from DependencyContainer import DependencyContainer
from Deployer import AlreadyDeployed
import traceback
dc = DependencyContainer()
# Step 1 - Check if branch can be deployed
def check(branch, server, user, internalCheck=False):
checker = dc.getDeploymentChecker(server)
result = checker.check(branch)
if ... | mit | 2,985,443,141,897,539,600 | 29.396396 | 78 | 0.546829 | false |
derickr/mongo-c-driver | build/evergreen_config_lib/tasks.py | 1 | 29912 | # Copyright 2018-present MongoDB, 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 w... | apache-2.0 | 7,362,404,252,155,893,000 | 38.618543 | 111 | 0.533766 | false |
windskyer/k_nova | nova_extension/compute/ibm/etree_wrapper.py | 1 | 4367 | # =================================================================
# =================================================================
"""Wrapper around ElementTree, using either the native implementation or lxml.
This module creates a wrapper around the ElementTree library, picking an
appropriate implementation for... | apache-2.0 | -7,815,707,756,236,600,000 | 27.542484 | 78 | 0.650561 | false |
dhalleine/tensorflow | tensorflow/python/kernel_tests/control_flow_ops_py_test.py | 1 | 59408 | # Copyright 2015 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... | apache-2.0 | 7,064,295,795,435,686,000 | 32.60181 | 80 | 0.57536 | false |
gamesun/MyCdecl | main.py | 1 | 5018 | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# Copyright (c) 2013, gamesun
# 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 a... | bsd-3-clause | -6,601,908,336,828,603,000 | 38.144 | 100 | 0.535273 | false |
SnowWalkerJ/quantlib | quant/data/wind/tables/asharestockrating.py | 1 | 2127 | from ....common.db.sql import VARCHAR, Numeric as NUMBER, DateTime as DATETIME, Column, BaseModel, CLOB, DATE
VARCHAR2 = VARCHAR
class AShareStockRating(BaseModel):
"""
4.75 中国A股投资评级明细
Attributes
----------
object_id: VARCHAR2(100)
对象ID
s_info_windcode: VARCHAR2(40)
Wind代码 ... | gpl-3.0 | 3,560,199,213,089,072,600 | 29.5 | 109 | 0.619249 | false |
nikpap/inspire-next | inspirehep/modules/workflows/tasks/classifier.py | 1 | 4238 | # -*- coding: utf-8 -*-
#
# This file is part of INSPIRE.
# Copyright (C) 2015 CERN.
#
# INSPIRE is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later... | gpl-2.0 | -5,475,445,670,009,735,000 | 36.504425 | 84 | 0.607834 | false |
zhaozhi406/news | config.py | 1 | 1431 | #-*- coding:utf-8 -*-
import logging.config
IMAGE_SIZES = {
"large": (680,382),
"middle": (720, 0),
"small": (226,150 )
}
IMAGE_SAVE_DIR = "/Users/jiangqiurong/Desktop"
mongodb_conn_string = "mongodb://47.88.194.127:27017/"
mysql_config = {
"user": "zhaozhi",
"password": "zzhao",
"host": "47... | mit | 5,140,971,644,401,568,000 | 22.080645 | 89 | 0.47659 | false |
trosa/forca | reportlab/lib/testutils.py | 1 | 11504 | #Copyright ReportLab Europe Ltd. 2000-2008
#see license.txt for license details
__version__='''$Id: testutils.py 3662 2010-02-09 11:23:58Z rgbecker $'''
__doc__="""Provides support for the test suite.
The test suite as a whole, and individual tests, need to share
certain support functions. We have to put these ... | gpl-2.0 | 6,965,741,556,274,241,000 | 32.546547 | 119 | 0.59362 | false |
zxqzx/scripts | emailmodule.py | 1 | 1669 | #!/usr/bin/env python3
# Import smtplib for the actual sending function
import smtplib
# Import the email modules we'll need
from email.mime.text import MIMEText
import sys
import argparse
#User Options
globalsender = ""
loginrequired = "no"
server = "localhost"
port = "587"
starttls = "no"
username = "username"
p... | mit | -3,210,705,563,425,402,000 | 20.960526 | 70 | 0.627322 | false |
haddocking/disvis | disvis/IO/mmcif.py | 1 | 1979 | from __future__ import print_function
import sys
from collections import OrderedDict
import numpy as np
def parse_cif(infile):
if isinstance(infile, file):
pass
elif isinstance(infile, str):
infile = open(infile)
else:
raise TypeError("Input should either be a file or string.")
... | apache-2.0 | 8,828,443,199,216,002,000 | 33.12069 | 68 | 0.54472 | false |
uclouvain/osis | attribution/tests/ddd/domain/test_teacher.py | 1 | 2419 | ##############################################################################
#
# OSIS stands for Open Student Information System. It's an application
# designed to manage the core business of higher education institutions,
# such as universities, faculties, institutes and professional schools.
# The core ... | agpl-3.0 | -4,446,630,505,314,006,000 | 34.043478 | 87 | 0.612903 | false |
halbbob/dff | api/gui/model/search_model.py | 1 | 16526 | # DFF -- An Open Source Digital Forensics Framework
# Copyright (C) 2009-2011 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 | -762,149,715,988,854,500 | 33.645702 | 125 | 0.63863 | false |
bailabs/bench-v7 | install.py | 1 | 10678 | # wget setup_frappe.py | python
import os, sys, subprocess, getpass, json, multiprocessing, shutil, platform
from distutils.spawn import find_executable
tmp_bench_repo = '/tmp/bench-v7'
def install_bench(args):
check_distribution_compatibility()
check_brew_installed()
# pre-requisites for bench repo cloning
insta... | gpl-3.0 | -1,744,825,575,128,492,300 | 29.249292 | 127 | 0.699569 | false |
diN0bot/ProcrasDonate | adwords/views/main.py | 1 | 2790 | import settings
from lib.view_utils import render_response, render_string, HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.contrib.auth.decorators import user_passes_test
from adwords.models import *
def adword_page(request, group):
page = "landing"
return render_response(reque... | agpl-3.0 | 758,947,347,224,055,200 | 40.641791 | 96 | 0.574194 | false |
dennerlager/sepibrews | sepibrews/command.py | 1 | 2978 | import sys
import unittest
class Command():
"""Use factory method 'create(command_name)' to instantiate"""
def __init__(self, arguments, executionEngine):
self.arguments = arguments
self.executionEngine = executionEngine
def execute(self):
raise NotImplementedError()
class StartC... | gpl-3.0 | -4,192,804,074,547,650,600 | 31.021505 | 98 | 0.671927 | false |
odahoda/noisicaa | noisicaa/ui/graph/base_node.py | 1 | 34059 | #!/usr/bin/python3
# @begin:license
#
# Copyright (c) 2015-2019, Benjamin Niemann <pink@odahoda.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at y... | gpl-2.0 | 6,715,687,354,517,147,000 | 33.472672 | 99 | 0.580023 | false |
GuessWhoSamFoo/pandas | pandas/tests/tseries/test_frequencies.py | 1 | 29684 | from datetime import datetime, timedelta
import numpy as np
import pytest
from pandas._libs.tslibs import frequencies as libfrequencies, resolution
from pandas._libs.tslibs.ccalendar import MONTHS
from pandas._libs.tslibs.frequencies import (
INVALID_FREQ_ERR_MSG, FreqGroup, _period_code_map, get_freq, get_freq_c... | bsd-3-clause | 8,207,404,789,403,593,000 | 36.432535 | 79 | 0.55289 | false |
chromium/chromium | tools/android/modularization/convenience/build_gn_editor.py | 6 | 10119 | # Lint as: python3
# Copyright 2021 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.
r'''Helper code to handle editing BUILD.gn files.'''
from __future__ import annotations
import difflib
import pathlib
import re
import su... | bsd-3-clause | 719,191,919,956,314,500 | 29.20597 | 80 | 0.612709 | false |
qedsoftware/commcare-hq | corehq/apps/hqmedia/views.py | 1 | 22884 | from StringIO import StringIO
from mimetypes import guess_all_extensions, guess_type
import uuid
import zipfile
import logging
import os
from django.contrib.auth.decorators import login_required
import json
import itertools
from django.conf import settings
from django.core.urlresolvers import reverse
from django.utils.... | bsd-3-clause | 1,299,744,272,025,321,000 | 34.589425 | 121 | 0.627775 | false |
IntersectAustralia/asvo-tao | core/PerformanceCode/WallTimeResultsMerge.py | 1 | 2770 | import pickle, os, logging,string
import pg
import locale
import time
from datetime import date
import logging
import settingReader
class DBInterface(object):
def __init__(self,Options):
self.Options=Options
self.InitDBConnection(self.Options)
self.IsOpen=Fal... | gpl-3.0 | 8,723,199,746,973,042,000 | 34.075949 | 135 | 0.555596 | false |
simone-campagna/py-structparser | examples/versioning/model/model_r1.py | 1 | 3830 | #
# Copyright 2013 Simone Campagna
#
# 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 wri... | apache-2.0 | -2,636,145,637,851,915,000 | 32.596491 | 106 | 0.597389 | false |
endlessm/chromium-browser | components/policy/tools/template_writers/writers/admx_writer_unittest.py | 3 | 25665 | #!/usr/bin/env python
# Copyright (c) 2012 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.
"""Unittests for writers.admx_writer."""
import os
import sys
import unittest
if __name__ == '__main__':
sys.path.append(os.path.... | bsd-3-clause | 4,272,008,609,559,117,300 | 35.664286 | 80 | 0.561816 | false |
jkoelker/quark | quark/tests/plugin_modules/test_subnets.py | 1 | 36379 | # Copyright 2013 Openstack Foundation
# 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 applicab... | apache-2.0 | 5,589,751,111,151,484,000 | 43.042373 | 79 | 0.546469 | false |
Mariaanisimova/pythonintask | IVTa/2014/EGOROV_V_I/task_8_8.py | 1 | 2933 | # Задача 8. Вариант 8
'''
Доработайте игру "Анаграммы" (см. М.Доусон
Программируем на Python. Гл.4) так, чтобы к
каждому слову полагалась подсказка. Игрок должен
получать право на подсказку в том случае, если
у него нет никаких предположений. Разработайте
систему начисления очков, по которой бы игроки,
отгадавшие слово... | apache-2.0 | -1,640,939,314,107,939,300 | 27.333333 | 105 | 0.683333 | false |
dasseclab/dasseclab | clones/routersploit/tests/payloads/x64/test_reverse_tcp.py | 1 | 1678 | from routersploit.modules.payloads.x64.reverse_tcp import Payload
# reverse tcp with lhost=192.168.1.4 lport=4321
reverse_tcp = (
b"\x6a\x29\x58\x99\x6a\x02\x5f\x6a\x01\x5e\x0f\x05\x48\x97\x48"
b"\xb9\x02\x00\x10\xe1\xc0\xa8\x01\x04\x51\x48\x89\xe6\x6a\x10"
b"\x5a\x6a\x2a\x58\x0f\x05\x6a\x03\x5e\x48\xff\... | gpl-2.0 | 1,970,158,449,034,645,000 | 42.025641 | 67 | 0.679976 | false |
flavoi/diventi | diventi/ebooks/migrations/0110_auto_20200830_1750.py | 1 | 3345 | # Generated by Django 2.2.13 on 2020-08-30 15:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ebooks', '0109_auto_20200821_1049'),
]
operations = [
migrations.AlterField(
model_name='book',
name='color',
... | apache-2.0 | 6,576,685,759,129,036,000 | 62.113208 | 284 | 0.556652 | false |
Malphaet/vkyweb | generator/file_parser.py | 1 | 6822 | # Copyleft (c) 2016 Cocobug All Rights Reserved.
# -*- coding: utf_8 -*-
import os,sys,codecs
import re
import traceback
class WebPage(object):
"A webpage object, with some variables and all localisations"
def __init__(self,path):
self.path=path
self.name=os.path.split(path)[-1]
self.v... | unlicense | 2,348,765,967,386,563,000 | 37.982857 | 138 | 0.572266 | false |
sindhus/hasjob | hasjob/models/__init__.py | 1 | 2623 | # -*- coding: utf-8 -*-
# flake8: noqa
from datetime import timedelta
from coaster import LabeledEnum
from coaster.db import db
from coaster.sqlalchemy import (BaseMixin, BaseNameMixin, TimestampMixin, BaseScopedIdMixin,
BaseScopedNameMixin, CoordinatesMixin, make_timestamp_columns)
from .. import app
agelimit = ... | agpl-3.0 | 6,810,176,725,132,138,000 | 32.628205 | 100 | 0.655738 | false |
jcrudy/sklearntools | sklearntools/test/test_transformers.py | 1 | 3613 | from sklearntools.transformers import Constant, VariableTransformer, Identity,\
Censor, NanMap, Log
import numpy as np
import pandas
from numpy.testing.utils import assert_array_almost_equal
from sklearn.datasets.base import load_boston
from pyearth.earth import Earth
from sklearntools.calibration import ResponseTr... | bsd-3-clause | 5,028,816,710,361,895,000 | 38.703297 | 183 | 0.612787 | false |
leogregianin/pychess | lib/pychess/Players/CECPEngine.py | 1 | 39654 |
import asyncio
import itertools
import re
from gi.repository import Gtk, GObject
from pychess.compat import create_task
from pychess.Utils import wait_signal
from pychess.System import conf
from pychess.System.Log import log
from pychess.widgets import mainwindow
from pychess.Utils.Move import Move
from pychess.Uti... | gpl-3.0 | 7,185,567,614,037,482,000 | 39.054545 | 140 | 0.489459 | false |
mate-desktop/pluma | tools/preprocessor.py | 1 | 5353 | # -*- coding: utf-8 -*-
# preprocessor.py - simple preprocessor for plugin template files
# This file is part of pluma
#
# Copyright (C) 2006 - Steve Frécinaux
# Copyright (C) 2012-2021 MATE Developers
#
# pluma is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public Lice... | gpl-2.0 | 851,380,180,004,629,900 | 32.037037 | 85 | 0.508969 | false |
feedhq/feedhq | feedhq/feeds/tasks.py | 1 | 8652 | from collections import defaultdict
from datetime import timedelta
import requests
import structlog
from django.conf import settings
from django.utils import timezone
from django_push.subscriber.models import Subscription, SubscriptionError
from rache import schedule_job
from requests.exceptions import MissingSchema
f... | bsd-3-clause | -1,002,127,284,446,079,100 | 35.200837 | 79 | 0.537217 | false |
zmsch27/Python | PythonBase/Python_SQL.py | 1 | 5850 | #以下来自廖雪峰的Python学习之Python数据库
#SQLite////////////////////////////////////////////////////
#SQLite是一种嵌入式数据库,它的数据库就是一个文件。由于SQLite本身是C写的,而且体积很小
#所以,经常被集成到各种应用程序中,甚至在iOS和Android的App中都可以集成。
#Python就内置了SQLite3,所以,在Python中使用SQLite,不需要安装任何东西,直接使用。
# 导入SQLite驱动:
import sqlite3
# 连接到SQLite数据库
# 数据库文件是test.db
# 如果文件不存在,会自动在当前目录创建... | apache-2.0 | -6,221,566,883,954,505,000 | 28.697183 | 90 | 0.6824 | false |
vnbrs/project-euler | problem-13.py | 1 | 5266 | n_list = [37107287533902102798797998220837590246510135740250,
46376937677490009712648124896970078050417018260538,
74324986199524741059474233309513058123726617309629,
91942213363574161572522430563301811072406154908250,
23067588207539346171171980310421047513778063246676,
89261670696623633820136378418383684178734361726757... | mit | 6,598,877,877,318,739,000 | 48.679245 | 61 | 0.955564 | false |
Synss/pyhard2 | pyhard2/ctrlr/deltaelektronika.py | 1 | 1159 | """Graphical user interface to Delta-Elektronika SM-700 Series
controllers."""
import sys
import pyhard2.driver as drv
import pyhard2.driver.virtual as virtual
import pyhard2.driver.deltaelektronika as delta
import pyhard2.ctrlr as ctrlr
def createController():
"""Initialize controller."""
config = ctrlr.Co... | mit | 3,446,449,083,983,620,600 | 27.975 | 79 | 0.684211 | false |
jirutka/ngx-oauth | integration/support/nginx_server.py | 1 | 1260 | import os
from os import path
import shlex
from subprocess import Popen
from time import sleep
from .util import write_file
import requests
from requests import ConnectionError
from retry import retry
__all__ = ['NginxServer']
class NginxServer:
def __init__(self, nginx_conf, check_url, temp_dir='.'):
... | mit | -6,519,647,580,464,918,000 | 25.25 | 94 | 0.603175 | false |
supertree-toolkit/stk | stk/stk_import_export.py | 1 | 22750 | #!/usr/bin/env python
#
# Supertree Toolkit. Software for managing and manipulating sources
# trees ready for supretree construction.
# Copyright (C) 2011, Jon Hill, Katie Davis
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License... | gpl-3.0 | 6,061,260,257,360,899,000 | 35.871961 | 120 | 0.617275 | false |
divio/askbot-devel | askbot/views/writers.py | 1 | 39556 | # encoding:utf-8
"""
:synopsis: views diplaying and processing main content post forms
This module contains views that allow adding, editing, and deleting main textual content.
"""
import datetime
import logging
import os
import os.path
import random
import sys
import tempfile
import time
from django.shortcuts import ... | gpl-3.0 | -7,389,069,209,881,651,000 | 38.794769 | 184 | 0.566008 | false |
kmshi/miroguide | channelguide/channels/migrations/0003_switch_user_ids.py | 1 | 13086 |
from south.db import db
from django.db import models
from channelguide.channels.models import *
class Migration:
no_dry_run = True
def forwards(self, orm):
"Write your forwards migration here"
for channel in orm.Channel.objects.all():
for field in ('owner', 'featured_by', 'moderat... | agpl-3.0 | 668,921,977,871,084,900 | 76.431953 | 177 | 0.539814 | false |
skdaccess/skdaccess | skdaccess/geo/srtm/cache/data_fetcher.py | 2 | 10677 | # The MIT License (MIT)
# Copyright (c) 2016 Massachusetts Institute of Technology
#
# Authors: Cody Rude, Guillaume Rongier
# This software has been created in projects supported by the US National
# Science Foundation and NASA (PI: Pankratius)
#
# Permission is hereby granted, free of charge, to any person obtaining ... | mit | 6,060,677,398,640,232,000 | 39.290566 | 133 | 0.583966 | false |
labkode/rtlv | handlers.py | 1 | 6340 | from google.appengine.ext.db import BadValueError
from google.appengine.api import channel
from google.appengine.api import users
from google.appengine.ext import ndb
import webapp2
import jinja2
import os
import json
from datetime import datetime
import time
from models import Log
from models import System
JINJA_E... | agpl-3.0 | 5,098,910,542,018,449,000 | 29.926829 | 151 | 0.699211 | false |
incuna/authentic | authentic2/auth2_auth/auth2_openid/views.py | 1 | 17205 | import urllib
from django_authopenid.forms import OpenidDissociateForm, AssociateOpenID
from django_authopenid.forms import OpenidSigninForm
from django_authopenid import DjangoOpenIDStore
from django_authopenid.models import UserAssociation
from django_authopenid.utils import *
from django_authopenid.views import ass... | agpl-3.0 | -8,868,549,658,912,582,000 | 45.25 | 112 | 0.626271 | false |
espressomd/espresso | maintainer/benchmarks/lb.py | 1 | 6553 | #
# Copyright (C) 2013-2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo 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... | gpl-3.0 | -8,576,075,647,164,855,000 | 34.808743 | 78 | 0.581566 | false |
frontg8/frontg8lib | doc/ext/breathe/breathe/renderer/filter.py | 1 | 37770 | """
Filters
-------
Filters are an interesting and somewhat challenging part of the code base. They are used for
two different purposes:
- To figure out which nodes in the xml hierarchy to start rendering from. These are called
'finder filters' or 'content filters'. This is done before rendering starts.
- To fig... | bsd-3-clause | -4,144,635,030,783,446,500 | 32.336275 | 100 | 0.610988 | false |
jjgoings/McMurchie-Davidson | mmd/utils/spectrum.py | 1 | 3029 | from __future__ import division
import numpy as np
"""Contains some routines to do the (Pade approximant) Fourier transform
as well as some peak-finding routines, useful for post processing a
real-time calculation
"""
def genSpectra(time,dipole,signal):
fw, frequency = pade(time,dipole)
fw_sig, frequen... | bsd-3-clause | -264,727,656,188,925,760 | 29.908163 | 89 | 0.584021 | false |
danielfrg/remote-pip | rpip/tests/test_output.py | 1 | 1204 | from rpip.output import Output
exit0 = {'exit_code': 0, 'stdout': 'yes', 'stderr': ''}
exit1 = {'exit_code': 1, 'stdout': '', 'stderr': 'ERROR'}
o0 = {'host1': exit0, 'host2': exit0, 'host3': exit0}
o1 = {'host1': exit0, 'host2': exit1, 'host3': exit0}
o2 = {'host1': exit0, 'host2': exit1, 'host3': exit1}
def test_... | apache-2.0 | 3,832,086,671,021,986,300 | 22.607843 | 57 | 0.575581 | false |
namlook/mongokit | mongokit/schema_document.py | 1 | 42677 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2009-2011, Nicolas Clairon
# 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 abov... | bsd-3-clause | 3,304,417,042,122,618,000 | 42.996907 | 117 | 0.506455 | false |
JohnUrban/fast5tools | bin/samGenomicWindows.py | 1 | 5426 | #!/usr/bin/env python2.7
import argparse
from collections import defaultdict
from fast5tools.samclass import *
from fast5tools.samops import *
parser = argparse.ArgumentParser(description="""
DESCRIPTION
Given a SAM file (with F5:Z: info attached) that is sorted by read name:
- get the alignment or set o... | mit | 6,325,595,526,689,239,000 | 51.679612 | 337 | 0.651861 | false |
DigitalCampus/django-oppia | api/resources/course.py | 1 | 9945 | import json
import os
import re
import shutil
import xmltodict
import zipfile
from django.conf import settings
from django.conf.urls import url
from django.core.exceptions import MultipleObjectsReturned
from django.db.models import Q
from django.http import HttpResponse, Http404
from django.utils.translation import ug... | gpl-3.0 | 3,532,451,220,382,889,000 | 37.103448 | 79 | 0.539769 | false |
yilei0620/3D_Conditional_Gan | GenSample_obj.py | 1 | 4544 | import sys
sys.path.append('..')
import os
import json
from time import time
import numpy as np
from sklearn.externals import joblib
import scipy
from scipy import io
# from matplotlib import pyplot as plt
# from sklearn.externals import joblib
import theano
import theano.tensor as T
from lib import activations
fro... | mit | 4,118,196,402,505,532,400 | 27.942675 | 261 | 0.659991 | false |
wkschwartz/django | tests/runtests.py | 2 | 23029 | #!/usr/bin/env python
import argparse
import atexit
import copy
import os
import shutil
import socket
import subprocess
import sys
import tempfile
import warnings
try:
import django
except ImportError as e:
raise RuntimeError(
'Django module not found, reference tests/README.rst for instructions.'
... | bsd-3-clause | -6,603,682,544,696,628,000 | 37.510033 | 113 | 0.642755 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.