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 |
|---|---|---|---|---|---|---|---|---|---|---|
Rfam/rfam-production | scripts/support/mirnas/auto_commit.py | 1 | 5214 | import os
import sys
import argparse
import subprocess
import json
import time
from datetime import date
from subprocess import Popen, PIPE
search_dirs = ["/hps/nobackup/production/xfam/rfam/RELEASES/14.3/miRNA_relabelled/batch1_chunk1_searches",
"/hps/nobackup/production/xfam/rfam/RELEASES/14.3/miRNA_r... | apache-2.0 | 9,119,662,882,263,894,000 | 29.313953 | 135 | 0.561949 | false |
mscuthbert/abjad | abjad/tools/documentationtools/ReSTAutosummaryDirective.py | 1 | 2421 | # -*- encoding: utf-8 -*-
from abjad.tools import datastructuretools
from abjad.tools.documentationtools.ReSTDirective import ReSTDirective
class ReSTAutosummaryDirective(ReSTDirective):
r'''A ReST Autosummary directive.
::
>>> toc = documentationtools.ReSTAutosummaryDirective()
>>> for item... | gpl-3.0 | 665,987,143,855,517,400 | 25.043011 | 78 | 0.518381 | false |
apdavison/elephant | elephant/test/test_spike_train_dissimilarity.py | 1 | 29313 | # -*- coding: utf-8 -*-
"""
Tests for the spike train dissimilarity measures module.
:copyright: Copyright 2016 by the Elephant team, see `doc/authors.rst`.
:license: Modified BSD, see LICENSE.txt for details.
"""
import unittest
from neo import SpikeTrain
import numpy as np
from numpy.testing import assert_array_equ... | bsd-3-clause | -2,688,211,261,997,703,700 | 55.371154 | 79 | 0.495821 | false |
icsnju/nap-core | nap_rest/orchestration/test/createFromTable.py | 1 | 1102 | from orchestration.nap_api.project_create import create_project_from_table
table = []
t = {}
t['name'] = 'master'
t['cpu_shares'] = '1024'
t['mem_limit'] = '32m'
t['command'] = '/usr/sbin/sshd -D'
t['image'] = 'docker.iwanna.xyz:5000/hmonkey/mpi:v1'
t['volumes'] = [{'container_path': '/data', 'host_path': '/va', 'mode... | apache-2.0 | -3,719,459,185,290,209,000 | 44.916667 | 151 | 0.596189 | false |
simphony/simphony-common | simphony/io/tests/test_h5_cuds.py | 1 | 9192 | import unittest
import os
from contextlib import closing
import shutil
import tempfile
import tables
from simphony.core import CUBA
from simphony.core.data_container import DataContainer
from simphony.io.h5_cuds import H5CUDS
from simphony.io.h5_mesh import H5Mesh
from simphony.io.h5_particles import H5Particles
from ... | bsd-2-clause | 6,869,646,592,674,389,000 | 32.794118 | 79 | 0.619017 | false |
lindenb/bedtools2 | docs/conf.py | 2 | 8228 | # -*- coding: utf-8 -*-
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.
import sys, os... | gpl-2.0 | 4,217,841,412,627,542,500 | 32.311741 | 88 | 0.69227 | false |
jbudynk/sherpa | sherpa/logposterior.py | 1 | 3090 | #
# Copyright (C) 2009 Smithsonian Astrophysical Observatory
#
#
# 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 version.
... | gpl-3.0 | 2,770,907,433,389,379,000 | 31.87234 | 76 | 0.609385 | false |
jimstorch/python-read-filepro | read_filepro/fpdatabase.py | 1 | 4921 | #------------------------------------------------------------------------------
# read_filepro/database.py
# Copyright 2010 Jim Storch
# 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 ... | apache-2.0 | 5,153,057,967,458,974,000 | 32.705479 | 79 | 0.58037 | false |
abramhindle/UnnaturalCodeFork | python/testdata/launchpad/lib/lp/services/mail/tests/test_notificationrecipients.py | 1 | 1215 | # Copyright 2009-2011 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
__metaclass__ = type
from lp.registry.interfaces.person import PersonVisibility
from lp.services.mail.notificationrecipientset import NotificationRecipientSet
from lp.testing... | agpl-3.0 | -8,638,399,599,228,031,000 | 38.193548 | 78 | 0.729218 | false |
sunu/oppia-test-2 | apps/image/tests.py | 1 | 1768 | # coding: utf-8
#
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | apache-2.0 | 6,075,939,482,199,800,000 | 33.666667 | 74 | 0.671946 | false |
JohnReid/biopsy | Python/gapped_pssms/score_pssms.py | 1 | 5645 | #
# Copyright John Reid 2008
#
"""
Code to rank PSSMs by "interesting-ness".
Information content.
Low-order predictability.
Number of sequences with sites.
"""
from gapped_pssms.parse_gapped_format import parse_models
from itertools import imap
from gapped_pssms.pssm_score import *
from cookbook import DictOfLists
i... | mit | -1,598,437,059,165,579,800 | 33.631902 | 121 | 0.586005 | false |
ilogue/scrolls | test/configuration_tests.py | 1 | 3494 | from test.ditestcase import DITestCase
from mock import Mock, patch
from os.path import expanduser
class ConfigurationTests(DITestCase):
def setUp(self):
super(ConfigurationTests, self).setUp()
self.patchers = {
'configparser': patch('scrolls.configuration.configparser'),
... | mit | 3,694,330,506,573,593,000 | 39.16092 | 73 | 0.64024 | false |
lutianming/leetcode | reverse_nodes_in_k_group.py | 1 | 1097 | from leetcode import ListNode
class Solution:
# @param head, a ListNode
# @param k, an integer
# @return a ListNode
def reverseKGroup(self, head, k):
if not head or not head.next or k==1:
return head
newhead = None
head = head
tail = head
prev = Non... | mit | -468,447,601,640,617,300 | 22.340426 | 51 | 0.44485 | false |
ChampionZP/DeepLearningImplementations | Colorful/src/utils/general_utils.py | 1 | 4257 | import os
import numpy as np
from skimage import color
import matplotlib.pylab as plt
def remove_files(files):
"""
Remove files from disk
args: files (str or list) remove all files in 'files'
"""
if isinstance(files, (list, tuple)):
for f in files:
if os.path.isfile(os.path.e... | mit | -6,095,970,284,944,061,000 | 34.181818 | 108 | 0.603477 | false |
MMTObservatory/camsrv | setup.py | 1 | 1955 | #!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst
# NOTE: The configuration for the package, including the name, version, and
# other information are set in the setup.cfg file.
import os
import sys
from setuptools import setup
# First provide helpful messages if contributors try... | bsd-3-clause | -7,323,620,810,202,405,000 | 24.064103 | 76 | 0.706394 | false |
visionegg/visionegg | VisionEgg/win32_maxpriority.py | 1 | 2142 | # This file was created automatically by SWIG.
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.
import _win32_maxpriority
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
if (name == "this"):
if isinstance(val... | lgpl-2.1 | 1,918,292,327,711,323,000 | 38.666667 | 84 | 0.737162 | false |
OpenAgInitiative/gro-api | gro_api/actuators/migrations/0008_auto_20150812_1550.py | 1 | 1250 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('actuators', '0007_auto_20150812_1520'),
]
operations = [
migrations.AlterField(
model_name='actuatoreffect',
... | gpl-2.0 | -4,914,615,802,447,475,000 | 31.051282 | 144 | 0.5896 | false |
LumaPictures/rez | src/rez/resolved_context.py | 1 | 63181 | from rez import __version__, module_root_path
from rez.package_repository import package_repository_manager
from rez.solver import SolverCallbackReturn
from rez.resolver import Resolver, ResolverStatus
from rez.system import system
from rez.config import config
from rez.util import shlex_join, dedup
from rez.utils.sour... | lgpl-3.0 | -8,348,680,213,081,125,000 | 37.619193 | 89 | 0.572767 | false |
matthewjwoodruff/language-of-choice | article/nodsl.py | 1 | 3949 | """
nodsl.py
Attempt to express the language of choice without
overloading operators.
I understand why the article did it, and I'm impressed
that it works so well, but it's hard to follow what's
happening. Too much magic for me.
I think partly it's because the article conflates variables
and choices. A variable's ... | gpl-3.0 | 1,861,754,821,942,455,800 | 25.863946 | 83 | 0.593062 | false |
ASMlover/study | compiler/eLisp2/eLisp/number.py | 1 | 2219 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# Copyright (c) 2015 ASMlover. 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 copyrig... | bsd-2-clause | 8,802,085,610,972,698,000 | 32.119403 | 70 | 0.684993 | false |
lizardsystem/lizard-kpi | setup.py | 1 | 1150 | from setuptools import setup
version = '0.5.dev0'
long_description = '\n\n'.join([
open('README.rst').read(),
open('TODO.rst').read(),
open('CREDITS.rst').read(),
open('CHANGES.rst').read(),
])
install_requires = [
'Django',
'django-extensions',
'django-nose',
'lizard-ui',
'pk... | gpl-3.0 | -1,418,867,999,999,005,700 | 24.555556 | 78 | 0.58 | false |
tonygalmiche/is_coheliance | __openerp__.py | 1 | 3089 | # -*- coding: utf-8 -*-
{
"name" : "InfoSaône - Module Odoo pour Coheliance",
"version" : "0.1",
"author" : "InfoSaône / Tony Galmiche",
"category" : "InfoSaône",
'description': """
InfoSaône - Module Odoo pour Coheliance
===================================================
InfoSaône - Module Odoo pour Cohel... | agpl-3.0 | 7,043,962,657,802,477,000 | 39.302632 | 129 | 0.616716 | false |
NCI-GDC/gdcdatamodel | migrations/update_legacy_states.py | 1 | 6311 | #!/usr/bin/env python
"""gdcdatamodel.migrations.update_legacy_states
----------------------------------
File nodes from legacy projects were given a `state` that represents
what is now `file_state`. This script transforms the old `state` into
`file_state` and set's the `state` according the the following table:
| ... | apache-2.0 | 7,030,365,817,418,758,000 | 25.078512 | 79 | 0.575978 | false |
fahadsultan/CausalRelations | FeaturesExtractor.py | 1 | 14860 |
from bs4 import BeautifulSoup
import os
import pandas as pd
import sys
import traceback
from sklearn.feature_extraction.text import CountVectorizer
class FeaturesExtractor:
def __init__(self):
self.FEATURE_NAMES = ['e1_token_id', 'e1_number','e1_sentence','e1_token','e1_aspect', 'e1_class','e1_event_id'... | apache-2.0 | 3,989,359,469,246,249,500 | 43.624625 | 538 | 0.421467 | false |
hotsyk/uapython2 | event/migrations/0001_initial.py | 1 | 2895 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='City',
fields=[
('id', models.AutoField(verbose... | bsd-3-clause | 5,386,760,394,031,964,000 | 37.092105 | 114 | 0.516408 | false |
dutradda/myreco | myreco/engine_strategies/filters/factory.py | 1 | 4207 | # MIT License
# Copyright (c) 2016 Diogo Dutra <dutradda@gmail.com>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, co... | mit | -5,812,263,325,621,395,000 | 40.245098 | 98 | 0.550986 | false |
hyperhq/nova-hyper | novahyper/virt/hyper/hostinfo.py | 1 | 2080 | # Copyright (c) 2013 dotCloud, Inc.
# Copyright (c) 2015 HyperHQ Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/license... | apache-2.0 | 7,434,647,035,159,597,000 | 24.679012 | 78 | 0.603365 | false |
sony/nnabla | python/benchmark/function/test_logical.py | 1 | 2622 | # Copyright 2017,2018,2019,2020,2021 Sony Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | apache-2.0 | 6,322,361,230,130,387,000 | 33.5 | 90 | 0.635774 | false |
JamesClough/dagology | dagology/generators/random_dag.py | 1 | 1482 | """
Random DAG model, as in Karrer & Newman, 2009, Phys Rev E
"""
# Copyright (C) 2016 by
# James Clough <james.clough91@gmail.com>
# All rights reserved.
# BSD license.
__author__ = "\n".join(["James Clough (james.clough91@gmail.com)"])
import networkx as nx
import numpy as np
from random import randran... | mit | -711,647,949,574,725,400 | 27.5 | 73 | 0.609312 | false |
SonicFrog/jdrpoly | main/migrations/0004_comitymember_mainpagesection_news.py | 1 | 2798 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-02-24 11:48
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
... | gpl-2.0 | 1,634,196,145,750,455,800 | 42.71875 | 143 | 0.556469 | false |
MaxTyutyunnikov/lino | obsolete/src/lino/adamo/datatypes.py | 1 | 11685 | ## Copyright 2003-2007 Luc Saffre
## This file is part of the Lino project.
## Lino 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 versio... | gpl-3.0 | -7,101,941,256,306,729,000 | 24.681319 | 73 | 0.55798 | false |
nju-websoft/JAPE | code/attr2vec_func.py | 1 | 2786 | import math
import collections
import random
import numpy as np
import tensorflow as tf
import itertools
import time
def sum_rows(x):
"""Returns a vector summing up each row of the matrix x."""
cols = tf.shape(x)[1]
ones_shape = tf.stack([cols, 1])
ones = tf.ones(ones_shape, x.dtype)
return tf.res... | mit | 4,553,009,698,414,285,000 | 34.717949 | 119 | 0.604451 | false |
sebastien-forestier/explaupoppydiva | explaupoppydiva/environment/slider_env.py | 1 | 5012 | import matplotlib.pyplot as plt
from numpy import array, dot
from numpy.linalg import norm
from explauto.environment.environment import Environment
from explauto.utils import bounds_min_max
class SliderEnvironment(Environment):
''' Add a slider to an environment '''
def __init__(self, env_cls, env_config, m_... | gpl-3.0 | -2,884,166,587,582,036,500 | 37.267176 | 128 | 0.48344 | false |
andrew-lundgren/gwpy | gwpy/plotter/frequencyseries.py | 1 | 11434 | # -*- coding: utf-8 -*-
# Copyright (C) Duncan Macleod (2013)
#
# This file is part of GWpy.
#
# GWpy 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 ... | gpl-3.0 | -6,821,686,522,418,402,000 | 35.069401 | 80 | 0.546091 | false |
isudox/leetcode-solution | python-algorithm/leetcode/flip_binary_tree_to_match_preorder_traversal.py | 1 | 2107 | # -*- coding: utf-8 -*-
"""971. Flip Binary Tree To Match Preorder Traversal
https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/
Given a binary tree with N nodes, each node has a different value from
{1, ..., N}.
A node in this binary tree can be flipped by swapping the left child and the
right... | mit | -1,886,637,052,181,223,000 | 28.676056 | 80 | 0.58187 | false |
cguZZman/onedrive-kodi-addon | service.py | 1 | 1499 | #-------------------------------------------------------------------------------
# Copyright (C) 2017 Carlos Guzman (cguZZman) carlosguzmang@protonmail.com
#
# This file is part of OneDrive for Kodi
#
# OneDrive for Kodi is free software: you can redistribute it and/or modify
# it under the terms of the GNU Gen... | gpl-2.0 | -7,071,460,802,058,548,000 | 48.033333 | 87 | 0.677785 | false |
SciGaP/DEPRECATED-Cipres-Airavata-POC | saminda/cipres-airavata/cipres-portal/cipres-rest-service/cipresrest/testscripts/test1.py | 2 | 2706 | #!/usr/bin/env python
"""
-u
username
-p
password
-a
appid
-t
toolspec directory
-s
rest service url
-n
number of times to submit toolspec
-w
wait for submissions to finish
"""
import sys
import os
import re
import string
imp... | apache-2.0 | -8,775,285,948,206,499,000 | 24.055556 | 98 | 0.4915 | false |
Sirs0ri/PersonalAssistant | samantha/plugins/test2_plugin.py | 1 | 1402 | """A plugin to test loading devices. It doesn't do anything."""
###############################################################################
#
# TODO: [ ]
#
###############################################################################
# standard library imports
import logging
from threading import Timer
# rela... | mit | 4,971,076,125,456,897,000 | 24.962963 | 79 | 0.582026 | false |
cloudmesh/vagrant | setup.py | 1 | 3460 | #!/usr/bin/env python
# ----------------------------------------------------------------------- #
# Copyright 2008-2010, Gregor von Laszewski #
# Copyright 2010-2013, Indiana University #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); ... | apache-2.0 | 4,580,480,080,358,300,700 | 36.608696 | 88 | 0.573988 | false |
Alignak-monitoring/alignak-checks-example | version.py | 1 | 1285 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2015-2017:
# Frederic Mohier, frederic.mohier@alignak.net
#
"""
Alignak - Checks pack for EXAMPLE
"""
# Package name
__pkg_name__ = u"alignak_checks_EXAMPLE"
# Checks types for PyPI keywords
# Used for:
# - PyPI keywords
# - directory where to store... | agpl-3.0 | 1,924,157,300,005,393,700 | 31.125 | 95 | 0.670817 | false |
splotz90/urh | src/urh/models/ProtocolLabelListModel.py | 1 | 4134 | from PyQt5.QtCore import QAbstractListModel, pyqtSignal, Qt, QModelIndex, QMimeData
from PyQt5.QtGui import QFont
from urh import constants
from urh.signalprocessing.FieldType import FieldType
from urh.signalprocessing.MessageType import MessageType
from urh.signalprocessing.ProtocoLabel import ProtocolLabel
from urh.... | gpl-3.0 | -1,866,661,335,700,646,400 | 36.243243 | 113 | 0.643445 | false |
eciis/web | backend/test/model_test/invite_institution_test.py | 1 | 5437 | # -*- coding: utf-8 -*-
from ..test_base import TestBase
from models import Invite
from models import Institution
from models import InviteInstitution
from models import User
from custom_exceptions import FieldException
from mock import patch
class InviteInstitutionTest(TestBase):
"""Test invite model."""
... | gpl-3.0 | 3,515,197,406,887,376,000 | 34.305195 | 101 | 0.640611 | false |
karinemiras/evoman_framework | evoman/player.py | 1 | 12662 | ################################
# EvoMan FrameWork - V1.0 2016 #
# Author: Karine Miras #
# karine.smiras@gmail.com #
################################
import sys
import numpy
import struct
import binascii
import Base
from Base.SpriteConstants import *
from Base.SpriteDefinition import *
from sensors imp... | cc0-1.0 | 2,649,441,619,843,990,500 | 35.074074 | 192 | 0.525746 | false |
VarunRaval48/SignCode | java.sign/TestScripts/Valid/python/iterateChangeParameterPython.py | 1 | 3261 |
# ****************************************************************************
# Copyright (c) 2015 UT-Battelle, LLC.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available a... | gpl-3.0 | 5,838,214,338,211,463,000 | 38.780488 | 90 | 0.767863 | false |
jenshnielsen/hemelb | Tools/setuptool/HemeLbSetupTool/View/VectorCtrl.py | 1 | 2871 | #
# Copyright (C) University College London, 2007-2012, all rights reserved.
#
# This file is part of HemeLB and is provided to you under the terms of
# the GNU LGPL. Please see LICENSE in the top level directory for full
# details.
#
import wx
# from wx.lib.masked import NumCtrl, EVT_NUM
from HemeLbSetupTool.Bind... | lgpl-3.0 | -1,803,520,995,720,174,000 | 32 | 98 | 0.604667 | false |
achanda/refstack | refstack/tools/tempest_subunit_test_result.py | 1 | 7924 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2014 IBM Corp.
#
# 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
#
# ... | apache-2.0 | -8,004,023,840,272,725,000 | 38.422886 | 78 | 0.614967 | false |
davidfokkema/artist | demo/demo_histogram_fit.py | 1 | 1160 | import numpy as np
import scipy.optimize
import scipy.stats
from artist import Plot
def main():
# Draw random numbers from the normal distribution
np.random.seed(1)
N = np.random.normal(size=2000)
# define bin edges
edge = 5
bin_width = .1
bins = np.arange(-edge, edge + .5 * bin_width, b... | gpl-3.0 | 6,107,514,388,074,478,000 | 22.673469 | 70 | 0.612931 | false |
orbingol/NURBS-Python | geomdl/exchange.py | 1 | 33428 | """
.. module:: exchange
:platform: Unix, Windows
:synopsis: Provides CAD exchange and interoperability functions
.. moduleauthor:: Onur Rauf Bingol <orbingol@gmail.com>
"""
import os
import struct
import json
from io import StringIO
from . import compatibility, operations, elements, linalg
from . import _ex... | mit | 1,979,683,606,880,411,600 | 35.06041 | 119 | 0.638447 | false |
Villoid/PynamoDB | pynamodb/tests/test_attributes.py | 1 | 13953 | """
pynamodb attributes tests
"""
import six
import json
from base64 import b64encode
from datetime import datetime
from delorean import Delorean
from mock import patch
from pynamodb.compat import CompatTestCase as TestCase
from pynamodb.constants import UTC, DATETIME_FORMAT
from pynamodb.models import Model
from pynam... | mit | -4,106,644,730,118,012,000 | 29.73348 | 115 | 0.60582 | false |
brokendata/bigmler | bigmler/train_reader.py | 1 | 11880 | # -*- coding: utf-8 -*-
#
# Copyright 2013-2015 BigML
#
# 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 ... | apache-2.0 | 4,185,642,118,313,162,000 | 36.358491 | 79 | 0.555724 | false |
ameihm0912/MozDef | bot/modules/zilla.py | 1 | 3113 | #!/usr/bin/env python
# Inspired by https://github.com/ayust/kitnirc/blob/master/kitnirc/contrib/healthcheck.py
#
# 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/.
# Copyr... | mpl-2.0 | -57,613,220,247,150,950 | 33.588889 | 159 | 0.600064 | false |
aaronlbrink/cs108FinalProject | src/command_test.py | 1 | 2541 | import unittest
import command
import re
from datetime import timedelta
class CommandTest(unittest.TestCase):
def test_command(self):
''' Test the base class throws errors correctly
This test case was written by binki to show me how to write test cases
'''
failed_to_throw =... | gpl-3.0 | 7,133,469,518,591,081,000 | 42.810345 | 182 | 0.609209 | false |
edgarcosta/endomorphisms | endomorphisms/Representations.py | 1 | 1456 | """
* Representation functions
*
* Copyright (C) 2016-2017
* Edgar Costa (edgarcosta@math.dartmouth.edu)
* Davide Lombardo (davide.lombardo@math.u-psud.fr)
* Jeroen Sijsling (jeroen.sijsling@uni-ulm.de)
*
* See LICENSE.txt for license details.
"""
from sage.all import... | gpl-2.0 | 1,946,836,060,677,192,400 | 32.860465 | 86 | 0.62294 | false |
kgullikson88/LasCampanas-MIKE | ConvertToExtensions.py | 1 | 2043 | import FittingUtilities
from astropy.io import fits as pyfits
import sys
import os
import numpy
import matplotlib.pyplot as plt
import HelperFunctions
left_trim = 8
right_trim = 0
bad_regions = {}
if __name__ == "__main__":
fileList = []
for arg in sys.argv[1:]:
fileList.append(arg)
for fname in fileL... | gpl-3.0 | 8,868,885,856,817,803,000 | 31.428571 | 105 | 0.604014 | false |
Arvedui/i3pystatus | i3pystatus/mail/maildir.py | 1 | 1360 | import os
from i3pystatus.mail import Backend
class MaildirMail(Backend):
"""
Checks for local mail in Maildir
"""
settings = (
"directory",
)
required = ("directory",)
directory = ""
def init(self):
self.directory = os.path.expanduser(self.directory)
@property
... | mit | -4,569,347,419,518,561,000 | 29.222222 | 90 | 0.611029 | false |
xray7224/PyPump | tests/collection_test.py | 1 | 4323 | # -*- coding: utf-8 -*-
import six
from pypump.models.collection import Collection
from pypump.models.feed import Feed
from tests import PyPumpTest
class CollectionTest(PyPumpTest):
def setUp(self):
super(CollectionTest, self).setUp()
self.response.data = {
"content": "",
... | gpl-3.0 | -6,928,660,012,419,072,000 | 35.319328 | 101 | 0.554836 | false |
janvanrijn/openml-pimp | tests/test_sklearn/verify_successive_halving_results.py | 1 | 6592 |
import unittest
import arff
import math
import numpy as np
import openmlpimp
import os
class VerifySuccessiveHalvingRunTest(unittest.TestCase):
@staticmethod
def obtain_config(data_point, param_indices):
# data_points = list<mixed>
# param_indices = dict<int, str>
config = []
... | bsd-3-clause | -9,072,625,614,570,782,000 | 44.468966 | 135 | 0.626214 | false |
Statoil/libecl | python/ecl/grid/ecl_region.py | 1 | 41631 | # Copyright (C) 2011 Equinor ASA, Norway.
#
# The file 'ecl_region.py' is part of ERT - Ensemble based Reservoir Tool.
#
# ERT 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 Lice... | gpl-3.0 | -2,768,528,232,218,818,000 | 38.01687 | 134 | 0.587567 | false |
mjames-upc/python-awips | dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/discrete/DiscreteKey.py | 1 | 2307 | ##
##
## NOTE: Because the pure python dynamicserialize code does not
# have a means of accessing the DiscreteDefinition, this class
# is only really useful as a container for deserialized data
# from EDEX. I would not recommend trying to use it for anything
# else.
SUBKEY_SEPARATOR = '^'
AUXDATA_SEPARATOR = ':'... | bsd-3-clause | 2,756,679,888,910,306,000 | 24.921348 | 85 | 0.581274 | false |
pubs/pubs | pubs/commands/export_cmd.py | 1 | 1748 | from __future__ import unicode_literals
import argparse
from .. import repo
from ..uis import get_ui
from .. import endecoder
from ..utils import resolve_citekey_list
from ..endecoder import BIBFIELD_ORDER
from ..completion import CiteKeyCompletion, CommaSeparatedListCompletion
class CommaSeparatedList(argparse.Act... | lgpl-3.0 | -1,259,626,932,651,064,800 | 28.133333 | 91 | 0.66762 | false |
sidnarayanan/BAdNet | train/gen/adv/models/particles/v4_Adam_trunc7_limit100/trainer.py | 1 | 2034 | #!/usr/bin/env python2.7
from argparse import ArgumentParser
parser = ArgumentParser()
parser.add_argument('--nepoch',type=int,default=20)
parser.add_argument('--version',type=int,default=4)
parser.add_argument('--trunc',type=int,default=7)
parser.add_argument('--limit',type=int,default=100)
parser.add_argument('--adv... | mit | -7,653,248,862,955,114,000 | 29.818182 | 132 | 0.602262 | false |
google-aai/tf-serving-k8s-tutorial | client/resnet_client.py | 1 | 5117 | #!/usr/bin/env python2.7
#
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | apache-2.0 | -162,718,467,718,734,300 | 32.012903 | 78 | 0.683017 | false |
ustunb/risk-slim | riskslim/bound_tightening.py | 1 | 6773 | import numpy as np
def chained_updates(bounds, C_0_nnz, new_objval_at_feasible = None, new_objval_at_relaxation = None, MAX_CHAIN_COUNT = 20):
new_bounds = dict(bounds)
# update objval_min using new_value (only done once)
if new_objval_at_relaxation is not None:
if new_bounds['objval_min'] < new... | bsd-3-clause | -6,996,975,109,408,880,000 | 42.416667 | 130 | 0.591761 | false |
anthonyserious/okdataset | okdataset/profiler.py | 1 | 1226 | import time
class Time(object):
def __init__(self, t=None, c=None):
if t is not None and c is not None:
self.time = t
self.cpu = c
else:
self.time = time.time()
self.cpu = time.clock()
def __add__(self, t):
return Time(
self.t... | mit | -2,381,361,044,137,555,500 | 20.892857 | 73 | 0.492659 | false |
alessandrothea/gardener | tree/manyJetsHiggsVar.py | 1 | 7690 | from tree.gardening import TreeCloner
import optparse
import sys
import ROOT
import numpy
import re
import os.path
import math
from math import *
from array import array;
#
#
# \ | | | | | _)
# |\/ | _` | __ \ | | | _ \ __| | | | _` | ... | gpl-2.0 | -2,007,795,501,905,367,800 | 32.290043 | 228 | 0.46827 | false |
factly/election-results-2017 | goa/goa/spiders/results_spider.py | 1 | 2491 | import scrapy
from scrapy import Request
class CWACResultsSpider(scrapy.Spider):
name = "cw-all-candidates"
def start_requests(self):
for i in range(40):
if self.endpoint == 'archive':
yield Request('https://web.archive.org/web/20160823114553/http://eciresults.ni... | mit | -1,441,801,575,931,974,400 | 48.82 | 165 | 0.58049 | false |
adsorensen/flow | devops/ansible/roles/girder.girder/library/girder.py | 1 | 63424 | #!/usr/bin/python
###############################################################################
# Copyright Kitware 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:... | apache-2.0 | 5,519,976,455,228,743,000 | 32.628844 | 95 | 0.494529 | false |
r-o-b-b-i-e/pootle | setup.py | 1 | 10498 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import os
import re
im... | gpl-3.0 | 8,064,249,622,696,830,000 | 33.646865 | 79 | 0.572395 | false |
CSD-Public/stonix | src/tests/rules/unit_tests/zzzTestRuleSystemAccounting.py | 1 | 10501 | #!/usr/bin/env python3
###############################################################################
# #
# Copyright 2019. Triad National Security, LLC. All rights reserved. #
# This program was produced under U.S. Government contrac... | gpl-2.0 | -2,501,568,841,889,519,000 | 31.918495 | 90 | 0.570898 | false |
scibi/django-sqltables-old | sqltables/__init__.py | 1 | 1379 | # -*- coding: utf-8 -*-
__version__ = '0.1.0'
from sqltables.manager import manager
#
# Code heavily inspred by django.contrib.admin
#
def autodiscover():
"""
Auto-discover INSTALLED_APPS tables.py modules and fail silently when
not present. This forces an import on them to register any tables bits they... | bsd-3-clause | 8,323,986,165,523,579,000 | 33.475 | 79 | 0.641769 | false |
chickenzord/dotenvy | src/dotenvy/parser.py | 1 | 2349 | from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from builtins import bytes
from future import standard_library
standard_library.install_aliases()
from sys import version_info
from string import Template
from .exception... | mit | -5,616,391,606,090,050,000 | 23.726316 | 79 | 0.604938 | false |
ministryofjustice/cla_backend | cla_backend/apps/knowledgebase/management/commands/builddata.py | 1 | 1649 | """"
usage-
./manage.py builddata load_knowledgebase_csv ~/Documents/Scratch/knowledgebase.csv
Creates derived dataset of constants used by JS frontend. Data is sourced from cla_common.
you can then load the fixture with-
./manage.py loaddata cla_backend/apps/knowledgebase/fixtures/kb_from_spreadsheet.json
"""
from ... | mit | 2,654,605,644,263,438,300 | 32.653061 | 94 | 0.627653 | false |
bfirsh/pspec | pspec/groups/base.py | 1 | 1889 |
class BaseGroup(object):
"""
A collection of tests and other groups.
Groups are stored as a tree. They know of their children and parent.
"""
def __init__(self, subject=None, children=None, parent=None):
# An identifier for this group
self.subject = subject
# This gro... | bsd-3-clause | -153,653,773,385,091,260 | 25.985714 | 83 | 0.561143 | false |
CompPhysics/ThesisProjects | doc/MSc/msc_students/former/AudunHansen/Audun/Pythonscripts/CCD_matrix_implementation_class_mkII.py | 1 | 40959 | from numpy import *
from time import *
from matplotlib.pyplot import *
from scipy.sparse import csr_matrix, coo_matrix
class electronbasis():
def __init__(self, N, rs, Nparticles):
self.rs = rs
self.states = []
self.nstates = 0
self.nparticles = Nparticles
Nm = in... | cc0-1.0 | -4,270,726,599,347,849,700 | 39.542596 | 147 | 0.487121 | false |
foauth/oauth-proxy | setuser.py | 1 | 1376 | import getpass
import os
import sys
from werkzeug.datastructures import MultiDict
import models
import forms
# Make sure the database gets installed properly
models.db.create_all()
values = MultiDict()
form = forms.SetUser(values)
values['email'] = sys.argv[1] if len(sys.argv) > 1 else raw_input('%s: ' % form.emai... | bsd-3-clause | -4,924,099,926,810,548,000 | 26.52 | 97 | 0.704942 | false |
nimadini/Teammate | main.py | 1 | 2620 | __author__ = 'stanley'
import webapp2
from handlers.dashboard.dashboard import DashboardHandler
from handlers.home.home import HomeHandler
from handlers.about import AboutHandler
from handlers.home.upload import UploadHandler
from handlers.home.upload_url import UploadURLHandler
from handlers.home.education import Edu... | apache-2.0 | 8,140,410,365,557,745,000 | 51.42 | 80 | 0.597328 | false |
cloudbase/coriolis | coriolis/osmorphing/osdetect/oracle.py | 1 | 1061 | # Copyright 2020 Cloudbase Solutions Srl
# All Rights Reserved.
import re
from coriolis import constants
from coriolis.osmorphing.osdetect import base
ORACLE_DISTRO_IDENTIFIER = "Oracle Linux"
class OracleOSDetectTools(base.BaseLinuxOSDetectTools):
def detect_os(self):
info = {}
oracle_releas... | agpl-3.0 | -3,441,065,869,275,441,700 | 32.15625 | 70 | 0.526861 | false |
gensmusic/test | l/python/test/json-to-object/json-to-object.py | 1 | 1287 | #!/usr/bin/python
#coding:utf-8
j = '{"action": "print", "method": "onData", "data": {"key1" : 1, "key2":"value2"} }'
import json
class Payload(object):
def __init__(self, j):
self.__dict__ = json.loads(j)
p = Payload(j)
print '-' * 30
print dir(p)
print '-' * 30
print p.action
print p.method
print p.dat... | gpl-2.0 | -2,800,019,684,156,221,000 | 21.508772 | 111 | 0.554949 | false |
intfrr/SoCo | soco/data_structures.py | 1 | 38123 | # -*- coding: utf-8 -*-
# pylint: disable=star-args, too-many-arguments, fixme
""" This module contains classes for handling DIDL-Lite metadata.
This is the XML schema used by Sonos for carrying metadata representing many
items such as tracks, playlists, composers, albums etc.
"""
# It tries to follow the class h... | mit | 8,021,834,686,697,248,000 | 35.48134 | 81 | 0.572069 | false |
yeyanchao/calibre | src/calibre/gui2/library/views.py | 1 | 39819 | #!/usr/bin/env python
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
__license__ = 'GPL v3'
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import os, itertools, operator
from functools import partial
from future_builtins import map
from collections import Ordere... | gpl-3.0 | 4,215,792,900,672,243,700 | 38.230542 | 105 | 0.555815 | false |
dradux/tracker | web/migrations/versions/95ecf01d9cb4_add_test_result_status_items.py | 1 | 1277 | """add test_result_status items
Revision ID: 95ecf01d9cb4
Revises: ea71f73f5460
Create Date: 2017-03-29 19:41:26.581925
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '95ecf01d9cb4'
down_revision = 'ea71f73f5460'
branch_labels = None
depends_on = None
def up... | gpl-3.0 | 2,511,160,009,906,113,000 | 33.513514 | 135 | 0.680501 | false |
openstack/tempest | tempest/api/identity/v3/test_access_rules.py | 1 | 3331 | # Copyright 2019 SUSE LLC
#
# 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 ap... | apache-2.0 | -4,020,664,339,231,408,000 | 38.654762 | 79 | 0.652056 | false |
convexopt/gpkit | gpkit/tests/t_tools.py | 1 | 5666 | """Tests for tools module"""
import unittest
import numpy as np
from numpy import log
from gpkit import Variable, VectorVariable, Model, NomialArray
from gpkit.tools.autosweep import BinarySweepTree
from gpkit.tools.tools import te_exp_minus1, te_secant, te_tangent
from gpkit.small_scripts import mag
from gpkit import ... | mit | -906,842,295,716,805,000 | 34.63522 | 97 | 0.53018 | false |
noemu/script.example-master | default.py | 1 | 7991 | # https://docs.python.org/2.7/
import os
import sys
import urllib
import urlparse
# http://mirrors.kodi.tv/docs/python-docs/
import xbmcaddon
import xbmcgui
import xbmcplugin
# http://docs.python-requests.org/en/latest/
import requests
from threading import Thread
import time
class PlayerWindow(xbmcgui.WindowXML):
... | gpl-2.0 | -3,525,701,916,214,955,000 | 27.641577 | 137 | 0.568014 | false |
Endika/manufacture | mrp_operations_time_control/models/operation_time.py | 1 | 2588 | # -*- coding: utf-8 -*-
# © 2015 Avanzosc
# © 2015 Pedro M. Baeza
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from openerp import api, models, fields
class MrpProductionWorkcenterLine(models.Model):
_inherit = 'mrp.production.workcenter.line'
operation_time_lines = fields.One2many(
... | agpl-3.0 | -6,874,118,255,651,219,000 | 33.48 | 79 | 0.643852 | false |
Clinical-Genomics/scout | tests/utils/test_scout_requests.py | 1 | 14457 | """Tests for scout requests"""
import tempfile
import zlib
from urllib.error import HTTPError
import pytest
import requests
import responses
from scout.utils import scout_requests
def test_get_request_json_error():
"""Test the function that sends a GET request that returns an error"""
# GIVEN A URL that re... | bsd-3-clause | 7,195,936,272,157,844,000 | 27.347059 | 97 | 0.657605 | false |
rikima/spark | python/pyspark/context.py | 1 | 45234 | #
# 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 us... | apache-2.0 | -2,844,523,567,311,684,600 | 41.713881 | 99 | 0.611376 | false |
etienne-gauvin/music-player-core | examples/demo-console-player.py | 1 | 3812 | #!/usr/bin/env python
# MusicPlayer, https://github.com/albertz/music-player
# Copyright (c) 2012, Albert Zeyer, www.az2000.de
# All rights reserved.
# This code is under the 2-clause BSD license, see License.txt in the root directory of this project.
import sys, os, random, fnmatch
# Our parent path might contain a ... | bsd-2-clause | 4,915,947,774,121,647,000 | 24.245033 | 101 | 0.658447 | false |
tmct/adventOfCode2016 | problems/11/State.py | 1 | 8576 | number_of_levels = 4
from itertools import cycle, islice, combinations
def roundrobin(*iterables):
"roundrobin('ABC', 'D', 'EF') --> A D E B F C"
# Recipe credited to George Sakkis
pending = len(iterables)
nexts = cycle(iter(it).__next__ for it in iterables)
while pending:
try:
... | mit | 1,454,731,120,773,989,400 | 39.074766 | 114 | 0.596082 | false |
reider-roque/crypto-challenges | cryptopals/set-1-basics/chal-1/hextobase64_test.py | 1 | 1596 | import unittest
from base64 import b64encode
from binascii import unhexlify
from hextobase64 import hextobase64
# Run tests with python -m unittest file.py
class HexToBase64Tests(unittest.TestCase):
def test_HexToBase64_HexInUppercase_Succeeds(self):
test_input = "0xAB12CD"
expected_result = b64en... | mit | -3,997,586,875,885,445,000 | 42.162162 | 119 | 0.735589 | false |
mfxox/ILCC | ILCC/utility.py | 1 | 31390 | # coding=utf-8
'''
Created on 3/20/2017 8:58 57PM Wang Weimin
@author: wangwm
'''
import os
from pcd_corners_est import exact_full_marker_data
import numpy as np
from pcd_corners_est import generate_grid_coords
import matplotlib.pyplot as plt
import matplotlib
import vtk
import config
from ast import literal_eval as m... | bsd-2-clause | -3,670,802,329,565,017,000 | 37.468137 | 136 | 0.599618 | false |
melipelo/ejemplo | app.py | 1 | 3030 | #!/usr/bin/env python
# coding=utf-8
import requests
import urllib2
import json
import os
from flask import Flask
from flask import request
from flask import make_response
from bs4 import BeautifulSoup
# Flask app should start in global layout
app = Flask(__name__)
@app.route('/webhook', methods=['POST'])
def webh... | apache-2.0 | 5,939,019,461,058,861,000 | 30.237113 | 185 | 0.642244 | false |
petewarden/tensorflow | tensorflow/python/keras/saving/saved_model/save_impl.py | 1 | 28457 | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -5,671,393,154,205,207,000 | 38.688982 | 111 | 0.697965 | false |
DavideCanton/Python3 | docs/docs.py | 1 | 1567 | __author__ = 'davide'
import pathlib
import string
import math
from collections import defaultdict
def compute_inverse(fdt, docs, terms):
ft = defaultdict(int)
for t in terms:
for d in docs:
ft[t] += fdt[t, d]
return ft
def index():
terms = set()
docs = []
fdt = default... | gpl-3.0 | -8,411,056,482,351,363,000 | 24.290323 | 74 | 0.498405 | false |
lahwaacz/tvnamer | tests/test_anime_filenames.py | 1 | 1102 | #!/usr/bin/env python
"""Tests anime filename output
"""
from functional_runner import run_tvnamer, verify_out_data
from nose.plugins.attrib import attr
@attr("functional")
def test_group():
"""Anime filename [#100]
"""
out_data = run_tvnamer(
with_files = ['[Some Group] Scrubs - 01 [A1B2C3].avi... | unlicense | 3,900,368,123,542,362,600 | 23.488889 | 112 | 0.608893 | false |
zookeepr/zookeepr | zk/model/ceiling.py | 1 | 3694 | """The application's model objects"""
import sqlalchemy as sa
from meta import Base
from pylons.controllers.util import abort
from beaker.cache import CacheManager
from role import Role
from person_role_map import person_role_map
from meta import Session
import datetime
import random
class Ceiling(Base):
"""S... | gpl-2.0 | -5,095,891,693,858,206,000 | 29.783333 | 170 | 0.61072 | false |
ContinuumIO/dask | dask/array/utils.py | 2 | 11059 | import difflib
import functools
import math
import numbers
import os
import warnings
import numpy as np
from tlz import frequencies, concat
from .core import Array
from ..highlevelgraph import HighLevelGraph
from ..utils import has_keyword, ignoring, is_arraylike
try:
AxisError = np.AxisError
except AttributeErr... | bsd-3-clause | 7,372,364,514,582,665,000 | 29.465565 | 87 | 0.5694 | false |
twwd/MoodleDownloader | downloader.py | 1 | 9854 | #!/usr/bin/env python3
import argparse
import importlib
import os
import re
import sqlite3
from datetime import datetime
from urllib.parse import urljoin
import requests
import yaml
def load_plugin_class(plugin_class_str):
"""
dynamically load a class from a string
"""
class_data = plugin_class_str.s... | mit | 195,151,069,313,467,550 | 37.643137 | 146 | 0.531561 | false |
eliben/code-for-blog | 2017/continuations-trampolines/tracing.py | 1 | 1493 | # Tracing of function calls. Use @TraceCalls() as a decorator on functions.
#
# Eli Bendersky [http://eli.thegreenplace.net]
# This code is in the public domain.
import sys
from functools import wraps
class TraceCalls(object):
""" Use as a decorator on functions that should be traced. Several
functions ca... | unlicense | 7,345,459,679,741,440,000 | 33.72093 | 75 | 0.58004 | false |
JulienDrecq/django-phonebook | phonebook/tests/test.py | 1 | 5797 | from django.test import TestCase
from phonebook.models import Contact
from phonebook.forms import LoginForm, ContactForm
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
class ContactTestCase(TestCase):
def setUp(self):
self.user = User.objects.create_user(username=... | bsd-3-clause | 8,311,268,371,994,698,000 | 47.308333 | 118 | 0.642746 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.