repo_name stringlengths 5 100 | path stringlengths 4 299 | copies stringclasses 990
values | size stringlengths 4 7 | content stringlengths 666 1.03M | license stringclasses 15
values | hash int64 -9,223,351,895,964,839,000 9,223,297,778B | line_mean float64 3.17 100 | line_max int64 7 1k | alpha_frac float64 0.25 0.98 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
shenghaozou/PythonGrader | P6/gradeSettings.py | 1 | 8808 | import re
ASSIGNMENT_NAME = 'P6'
ASSIGNMENT_TEST_NUM = 7
EMAIL_SEND = 0
EAMIL_SEND_UPPER_BOUND = 0
def toset(x):
if x != None:
return set(x)
else:
return None
OUTPUT_RESULT_REG_EXP = []
SCRIPT_REG_EXP = []
SCRIPT_EXISTENCE_REG_EXP = []
FUNCTION_ORDER = ['get_level', 'g... | apache-2.0 | 3,998,847,276,830,594,600 | 81.317757 | 192 | 0.421776 | false |
style95/openwhisk | tools/actionProxy/invoke.py | 3 | 5428 | #!/usr/bin/env python
"""Executable Python script for testing the action proxy.
/*
* 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 thi... | apache-2.0 | -4,198,531,153,512,349,700 | 34.477124 | 170 | 0.639278 | false |
manassolanki/erpnext | erpnext/setup/setup_wizard/operations/company_setup.py | 6 | 4042 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.utils import cstr, getdate
from frappe.utils.file_manager import save_file
from .default_website import w... | gpl-3.0 | 8,346,347,122,581,855,000 | 31.604839 | 112 | 0.672192 | false |
ticosax/django | tests/middleware/tests.py | 5 | 32482 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import gzip
import random
import re
from io import BytesIO
from unittest import skipIf
from django.conf import settings
from django.core import mail
from django.http import (
FileResponse, HttpRequest, HttpResponse, HttpResponsePermanentRedirect,
... | bsd-3-clause | 2,149,251,753,672,232,200 | 42.71467 | 114 | 0.637777 | false |
edusegzy/pychemqt | lib/reaction.py | 1 | 9477 | #!/usr/bin/python
# -*- coding: utf-8 -*-
###############################################################################
# Module to define chemical reaction functionality
###############################################################################
from math import exp, log
import sqlite3
from numpy import pol... | gpl-3.0 | -8,300,069,145,932,927,000 | 36.450593 | 96 | 0.528654 | false |
jqug/microscopy-object-detection | readdata.py | 1 | 10627 | import skimage
from lxml import etree
import os
import glob
from sklearn.cross_validation import train_test_split
import numpy as np
from progress_bar import ProgressBar
from skimage import io
from scipy import misc
def create_sets(img_dir, train_set_proportion=.6, test_set_proportion=.2, val_set_proportion=.2):
'... | mit | -5,541,153,820,586,001,000 | 32.736508 | 165 | 0.580973 | false |
keszybz/gnuplot-py | gp_unix.py | 1 | 8276 | # $Id$
# Copyright (C) 1998-2003 Michael Haggerty <mhagger@alum.mit.edu>
#
# This file is licensed under the GNU Lesser General Public License
# (LGPL). See LICENSE.txt for details.
"""gp_unix -- an interface to gnuplot used for unix platforms.
This file implements a low-level interface to a gnuplot program for a
u... | lgpl-2.1 | -326,566,317,161,167,000 | 38.222749 | 79 | 0.661672 | false |
cherusk/ansible | lib/ansible/modules/cloud/vmware/vmware_guest.py | 10 | 58143 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# This module is also sponsored by E.T.A.I. (www.etai.fr)
#
# This file is part of Ansible
#
# Ansible 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... | gpl-3.0 | 3,674,283,513,872,331,000 | 42.19688 | 144 | 0.588859 | false |
jasonbot/django | tests/template_tests/filter_tests/test_add.py | 503 | 1688 | from datetime import date, timedelta
from django.template.defaultfilters import add
from django.test import SimpleTestCase
from ..utils import setup
class AddTests(SimpleTestCase):
"""
Tests for #11687 and #16676
"""
@setup({'add01': '{{ i|add:"5" }}'})
def test_add01(self):
output = se... | bsd-3-clause | -6,339,160,291,653,412,000 | 30.849057 | 99 | 0.567536 | false |
redhat-openstack/manila | manila_tempest_tests/tests/api/admin/test_quotas.py | 2 | 13084 | # Copyright 2014 Mirantis 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 | 756,142,312,881,644,400 | 36.276353 | 78 | 0.63635 | false |
MIPS/external-chromium_org | chrome/test/chromedriver/embed_extension_in_cpp.py | 158 | 1124 | #!/usr/bin/env python
# Copyright 2013 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.
"""Embeds Chrome user data files in C++ code."""
import base64
import optparse
import os
import StringIO
import sys
import zipfile
im... | bsd-3-clause | 6,195,955,007,070,498,000 | 26.414634 | 72 | 0.676157 | false |
cloudera/hue | desktop/core/ext-py/pytest-django-3.10.0/tests/test_db_setup.py | 2 | 16810 | import pytest
from pytest_django.lazy_django import get_django_version
from pytest_django_test.db_helpers import (
db_exists,
drop_database,
mark_database,
mark_exists,
skip_if_sqlite_in_memory,
)
def test_db_reuse_simple(django_testdir):
"A test for all backends to check that `--reuse-db` wo... | apache-2.0 | -8,053,944,852,993,336,000 | 28.804965 | 95 | 0.546817 | false |
lfairchild/PmagPy | programs/di_eq.py | 3 | 1144 | #!/usr/bin/env python
from __future__ import print_function
import sys
import numpy
import pmagpy.pmag as pmag
def main():
"""
NAME
di_eq.py
DESCRIPTION
converts dec, inc pairs to x,y pairs using equal area projection
NB: do only upper or lower hemisphere at a time: does not dist... | bsd-3-clause | -4,779,181,520,607,800,000 | 24.422222 | 97 | 0.562063 | false |
haroldl/homeworklog | django/contrib/formtools/tests/__init__.py | 151 | 15220 | import os
from django import forms, http
from django.conf import settings
from django.contrib.formtools import preview, wizard, utils
from django.test import TestCase
from django.utils import unittest
success_string = "Done was called!"
class TestFormPreview(preview.FormPreview):
def get_context(self, request, ... | bsd-3-clause | 8,039,805,062,381,923,000 | 34.811765 | 86 | 0.606176 | false |
VitalPet/account-financial-tools | account_journal_period_close/model/account_period.py | 39 | 2628 | # -*- coding: utf-8 -*-
#
#
# Authors: Adrien Peiffer
# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu)
# All Rights Reserved
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences result... | agpl-3.0 | -4,961,826,770,113,750,000 | 44.310345 | 79 | 0.5879 | false |
aliaspider/RetroArch | tools/vulkan_loader_generator.py | 17 | 6901 | #!/usr/bin/env python3
import sys
import re
def entry_is_device(entry):
first_arg_type = entry[1][1:].split(' ')[0]
device_types = ['VkDevice', 'VkCommandBuffer', 'VkQueue']
return (first_arg_type in device_types) and (entry[0] != 'vkGetDeviceProcAddr')
def main():
pure_entrypoints = []
entrypoin... | gpl-3.0 | -831,942,777,880,563,100 | 38.890173 | 166 | 0.615853 | false |
mattclay/ansible | test/units/modules/test_unarchive.py | 11 | 2342 | from __future__ import absolute_import, division, print_function
__metaclass__ = type
import pytest
from ansible.modules.unarchive import ZipArchive, TgzArchive
class AnsibleModuleExit(Exception):
def __init__(self, *args, **kwargs):
self.args = args
self.kwargs = kwargs
class ExitJson(Ansib... | gpl-3.0 | 7,708,063,336,122,327,000 | 24.736264 | 100 | 0.584116 | false |
steventimberman/masterDebater | venv/lib/python2.7/site-packages/django/utils/dateparse.py | 44 | 4235 | """Functions to parse datetime objects."""
# We're using regular expressions rather than time.strptime because:
# - They provide both validation and parsing.
# - They're more flexible for datetimes.
# - The date/datetime/time constructors produce friendlier error messages.
import datetime
import re
from django.utils... | mit | 7,183,141,940,545,935,000 | 31.328244 | 90 | 0.57686 | false |
booto/dolphin | Externals/fmt/support/manage.py | 10 | 8973 | #!/usr/bin/env python
"""Manage site and releases.
Usage:
manage.py release [<branch>]
manage.py site
"""
from __future__ import print_function
import datetime, docopt, errno, fileinput, json, os
import re, requests, shutil, sys, tempfile
from contextlib import contextmanager
from distutils.version import LooseV... | gpl-2.0 | 6,713,448,280,147,638,000 | 33.37931 | 79 | 0.579405 | false |
ahb0327/intellij-community | python/lib/Lib/site-packages/django/contrib/contenttypes/models.py | 307 | 4052 | from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.encoding import smart_unicode
class ContentTypeManager(models.Manager):
# Cache to avoid re-looking up ContentType objects all over the place.
# This cache is shared by all the get_for_* methods.
_cache ... | apache-2.0 | -2,538,725,684,188,147,000 | 37.590476 | 86 | 0.607601 | false |
RhodriM/rugby_rankings_py | tests/test_ratings_input.py | 1 | 1207 | import unittest
import rugby_rankings.ratings_input
class TestRatingsInput(unittest.TestCase):
def test_construct(self):
inputObj = rugby_rankings.ratings_input.RatingsInput(0.0, 0.0, 0, 0)
self.assertTrue(
isinstance(inputObj, rugby_rankings.ratings_input.RatingsInput)
)
... | mit | -6,626,536,389,736,616,000 | 25.822222 | 76 | 0.618061 | false |
bverburg/CouchPotatoServer | couchpotato/core/notifications/pushbullet.py | 32 | 3088 | import base64
import json
from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.helpers.variable import splitString
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
log = CPLog(__name__)
autoload = 'Pushbullet'
class Pushbullet(Notifica... | gpl-3.0 | 2,234,443,901,645,350,400 | 28.132075 | 135 | 0.479598 | false |
lhfei/spark-in-action | spark-2.x/src/main/python/wordcount.py | 1 | 1501 | #
# 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 n... | apache-2.0 | -5,112,120,671,417,800,000 | 32.113636 | 74 | 0.655563 | false |
ismailsunni/inasafe | safe/common/parameters/test/example.py | 6 | 1728 | # coding=utf-8
"""Example usage of custom parameters."""
import sys
from safe.definitions.constants import INASAFE_TEST
from safe.test.utilities import get_qgis_app
QGIS_APP, CANVAS, IFACE, PARENT = get_qgis_app(qsetting=INASAFE_TEST)
from qgis.PyQt.QtWidgets import QApplication, QWidget, QGridLayout # NOQA
from ... | gpl-3.0 | -5,598,390,315,238,141,000 | 25.584615 | 74 | 0.697917 | false |
liam2/liam2 | tools/simulation_txt2yaml.py | 1 | 31398 | import csv
import itertools
from itertools import izip
import operator
import os
from os import path
import sys
import yaml
from expr import *
from align_txt2csv import convert_txt_align
# TODO
# - filter fields: output only those which are actually used (comment out
# the rest)
# - convert "leaf" ... | gpl-3.0 | 8,364,246,382,288,008,000 | 33.598639 | 88 | 0.511625 | false |
scalable-networks/gnuradio-3.7.0.1 | gr-filter/python/filter/qa_fractional_interpolator.py | 10 | 3149 | #!/usr/bin/env python
#
# Copyright 2007,2010,2012,2013 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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 ... | gpl-3.0 | 961,250,160,224,597,600 | 30.49 | 89 | 0.614481 | false |
mvanderkolff/xhtml2pdf | xhtml2pdf/pdf.py | 41 | 1949 | # -*- coding: utf-8 -*-
# Copyright 2010 Dirk Holtwick, holtwick.it
#
# 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 | 1,486,583,681,041,580,500 | 28.530303 | 74 | 0.651616 | false |
issyrichards/spartify2 | requests-master/requests/api.py | 160 | 5280 | # -*- coding: utf-8 -*-
"""
requests.api
~~~~~~~~~~~~
This module implements the Requests API.
:copyright: (c) 2012 by Kenneth Reitz.
:license: Apache2, see LICENSE for more details.
"""
from . import sessions
def request(method, url, **kwargs):
"""Constructs and sends a :class:`Request <Request>`.
:par... | mit | 2,258,093,387,737,762,000 | 35.164384 | 144 | 0.665909 | false |
aaronorosen/horizon-congress | openstack_dashboard/dashboards/project/stacks/tabs.py | 14 | 5069 | # 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 th... | apache-2.0 | 7,963,771,650,803,494,000 | 32.348684 | 79 | 0.636615 | false |
zhengzhihust/tablib | tablib/packages/openpyxl/workbook.py | 116 | 6200 | # file openpyxl/workbook.py
# Copyright (c) 2010 openpyxl
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modif... | mit | 1,500,311,661,661,735,700 | 32.333333 | 94 | 0.653226 | false |
jpshort/odoo | addons/portal_gamification/__openerp__.py | 381 | 1571 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013 OpenERP SA (<http://openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | -4,278,666,906,487,907,300 | 36.404762 | 99 | 0.557607 | false |
MickSandoz/compassion-modules | __unported__/child_update_picture_date/wizard/update_child_picture_date.py | 5 | 1907 | # -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2014 Compassion CH (http://www.compassion.ch)
# Releasing children from poverty in Jesus' name
# @author: David Coninckx <david@coninckx.com>
#
# The licence is in the file __ope... | agpl-3.0 | -1,409,625,517,877,852,000 | 33.981132 | 78 | 0.471421 | false |
niegenug/wesnoth | scons/python_devel.py | 49 | 1381 | # vi: syntax=python:et:ts=4
import sys, os
from config_check_utils import backup_env, restore_env
import distutils.sysconfig
def exists():
return True
def PythonExtension(env, target, source, **kv):
return env.SharedLibrary(target, source, SHLIBPREFIX='', SHLIBSUFFIX=distutils.sysconfig.get_config_var("SO"), ... | gpl-2.0 | 7,044,031,859,669,092,000 | 31.116279 | 120 | 0.637944 | false |
adam111316/SickGear | lib/rtorrent/compat.py | 180 | 1258 | # Copyright (c) 2013 Chris Lucas, <chris@chrisjlucas.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, copy, modify, ... | gpl-3.0 | -4,105,558,524,421,486,000 | 40.933333 | 72 | 0.765501 | false |
zubair-arbi/edx-platform | lms/djangoapps/debug/views.py | 119 | 2136 | """Views for debugging and diagnostics"""
import pprint
import traceback
from django.http import Http404, HttpResponse, HttpResponseNotFound
from django.contrib.auth.decorators import login_required
from django.utils.html import escape
from django.views.decorators.csrf import ensure_csrf_cookie
from edxmako.shortcut... | agpl-3.0 | -2,770,769,319,604,355,000 | 33.451613 | 102 | 0.682584 | false |
rue89-tech/edx-analytics-pipeline | edx/analytics/tasks/tests/test_student_engagement.py | 3 | 15248 | """Test student engagement metrics"""
import json
import luigi
from ddt import ddt, data, unpack
from edx.analytics.tasks.student_engagement import StudentEngagementTask, SUBSECTION_VIEWED_MARKER
from edx.analytics.tasks.tests import unittest
from edx.analytics.tasks.tests.opaque_key_mixins import InitializeOpaqueKe... | agpl-3.0 | -7,322,102,819,882,186,000 | 35.742169 | 108 | 0.571222 | false |
wscullin/spack | var/spack/repos/builtin/packages/fontcacheproto/package.py | 3 | 1563 | ##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | lgpl-2.1 | -195,328,897,392,362,980 | 44.970588 | 87 | 0.682022 | false |
BT-fgarbely/odoo | addons/stock/report/stock_graph.py | 326 | 4514 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | -3,023,454,693,498,379,300 | 38.252174 | 141 | 0.541205 | false |
hdknr/paloma | example/app/workers.py | 1 | 1671 | import os
import sys
#
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings")
APP_DIR=os.path.dirname(__file__)
LOG_FILE="/tmp/paloma.log" #: celery worker logfile
PID_FILE="/tmp/paloma.pid" #: celery worker PID file
PID_CAM="/tmp/paloma.pid"
NODE="celery" #: celery = default node
LOG_LEVEL="DEBU... | bsd-2-clause | -606,034,114,957,265,400 | 29.381818 | 68 | 0.479952 | false |
WalterPaixaoCortes/Reusables | labio/labio/argParseWrapper.py | 1 | 5984 | """
Purpose
The purpose of the argParseWrapper module is to create an easy way to use the native argparse module from python distribution
in order to parse command line arguments.
Description
It contains a simple wrapper class for the argparse.Action class, which adds the action attribute and a return_args me... | gpl-2.0 | 2,381,034,933,764,863,500 | 42.362319 | 252 | 0.676638 | false |
nabsboss/CouchPotatoServer | libs/elixir/collection.py | 27 | 4457 | '''
Default entity collection implementation
'''
import sys
import re
class BaseCollection(list):
def __init__(self, entities=None):
list.__init__(self)
if entities is not None:
self.extend(entities)
def extend(self, entities):
for e in entities:
self.append(e)
... | gpl-3.0 | -7,679,875,595,149,602,000 | 34.656 | 79 | 0.54319 | false |
pitch-sands/i-MPI | flask/Lib/site-packages/pip-1.5.6-py2.7.egg/pip/log.py | 344 | 9455 | """Logging
"""
import sys
import os
import logging
from pip import backwardcompat
from pip._vendor import colorama, pkg_resources
def _color_wrap(*colors):
def wrapped(inp):
return "".join(list(colors) + [inp, colorama.Style.RESET_ALL])
return wrapped
def should_color(consumer, environ, std=(sys.s... | bsd-3-clause | 6,310,305,760,913,892,000 | 33.257246 | 88 | 0.553358 | false |
yelizariev/account-financial-tools | account_credit_control/wizard/__init__.py | 40 | 1154 | # -*- coding: utf-8 -*-
##############################################################################
#
# Author: Nicolas Bessi, Guewen Baconnier
# Copyright 2012-2014 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Publi... | agpl-3.0 | 6,910,343,125,543,812,000 | 45.16 | 78 | 0.638648 | false |
joopert/home-assistant | homeassistant/components/mobile_app/websocket_api.py | 2 | 3785 | """Websocket API for mobile_app."""
import voluptuous as vol
from homeassistant.components.cloud import async_delete_cloudhook
from homeassistant.components.websocket_api import (
ActiveConnection,
async_register_command,
async_response,
error_message,
result_message,
websocket_command,
ws_... | apache-2.0 | -8,799,296,426,778,394,000 | 30.02459 | 88 | 0.699604 | false |
onitu/onitu | docs/conf.py | 1 | 8416 | # -*- coding: utf-8 -*-
#
# Onitu documentation build configuration file, created by
# sphinx-quickstart on Fri Nov 8 21:18:03 2013.
#
# 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 c... | mit | -6,218,835,167,545,076,000 | 33.600823 | 211 | 0.711108 | false |
eneabio/nova | nova/rootwrap/wrapper.py | 8 | 1974 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2011 OpenStack, 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... | apache-2.0 | -8,385,412,597,798,560,000 | 30.333333 | 78 | 0.634245 | false |
taedla01/MissionPlanner | Lib/site-packages/numpy/core/function_base.py | 82 | 5474 | __all__ = ['logspace', 'linspace']
import numeric as _nx
from numeric import array
def linspace(start, stop, num=50, endpoint=True, retstep=False):
"""
Return evenly spaced numbers over a specified interval.
Returns `num` evenly spaced samples, calculated over the
interval [`start`, `stop` ].
Th... | gpl-3.0 | -3,677,860,711,188,999,700 | 31.778443 | 79 | 0.569602 | false |
chokribr/invenio | invenio/modules/upgrader/engine.py | 13 | 19568 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2012, 2013, 2014, 2015 CERN.
#
# Invenio 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... | gpl-2.0 | -4,705,255,355,286,112,000 | 35.439479 | 79 | 0.570779 | false |
nox/skia | tools/tests/base_unittest.py | 68 | 2416 | #!/usr/bin/python
"""
Copyright 2014 Google Inc.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
A wrapper around the standard Python unittest library, adding features we need
for various unittests within this directory.
"""
import errno
import os
import shutil
impo... | bsd-3-clause | 553,703,964,622,482,300 | 26.454545 | 79 | 0.701159 | false |
mpdehaan/ansible | lib/ansible/runner/connection_plugins/funcd.py | 62 | 3629 | # Based on local.py (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# Based on chroot.py (c) 2013, Maykel Moya <mmoya@speedyrails.com>
# (c) 2013, Michael Scherer <misc@zarb.org>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU Gene... | gpl-3.0 | 6,136,095,483,007,943,000 | 35.656566 | 113 | 0.653624 | false |
raildo/nova | nova/objects/compute_node.py | 13 | 19773 | # Copyright 2013 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
#
# Unless required by applicable law or agreed... | apache-2.0 | 8,978,395,070,462,576,000 | 44.983721 | 79 | 0.5991 | false |
spaceexperiment/forum-app | app/api/views/category.py | 1 | 1784 | from flask import request, session, g, redirect, url_for, abort
from . import api
from ..exceptions import ExistsError
from ..models import Category
from .main import BaseMethodView
class CategoryView(BaseMethodView):
def get(self, id=None):
if id:
instance = Category(id)
if not... | mit | 4,978,601,089,325,236,000 | 28.245902 | 72 | 0.580717 | false |
homme/ansible | test/integration/cleanup_gce.py | 163 | 2589 | '''
Find and delete GCE resources matching the provided --match string. Unless
--yes|-y is provided, the prompt for confirmation prior to deleting resources.
Please use caution, you can easily delete your *ENTIRE* GCE infrastructure.
'''
import os
import re
import sys
import optparse
import yaml
try:
from libclo... | gpl-3.0 | -1,652,462,611,346,272,300 | 32.623377 | 92 | 0.654307 | false |
nizhikov/ignite | modules/platforms/python/pyignite/datatypes/__init__.py | 11 | 1078 | # 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 ... | apache-2.0 | 455,566,814,023,181,700 | 38.925926 | 75 | 0.769944 | false |
ArcticaProject/vcxsrv | mesalib/src/glsl/nir/nir_opcodes_c.py | 1 | 2036 | #! /usr/bin/env python
#
# Copyright (C) 2014 Connor Abbott
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modi... | gpl-3.0 | 2,463,435,750,173,568,000 | 36.018182 | 78 | 0.700884 | false |
demarle/VTK | ThirdParty/Twisted/twisted/cred/strcred.py | 63 | 8301 | # -*- test-case-name: twisted.test.test_strcred -*-
#
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
#
"""
Support for resolving command-line strings that represent different
checkers available to cred.
Examples:
- passwd:/etc/passwd
- memory:admin:asdf:user:lkj
- unix
"""
import sys
fro... | bsd-3-clause | 1,770,969,183,393,619,200 | 29.744444 | 79 | 0.647392 | false |
vrieni/orange | Orange/OrangeWidgets/Data/OWSave.py | 6 | 5594 | from OWWidget import *
import OWGUI
import re, os.path
from exceptions import Exception
NAME = "Save"
DESCRIPTION = "Saves data to file."
LONG_DESCRIPTION = ""
ICON = "icons/Save.svg"
PRIORITY = 90
AUTHOR = "Janez Demsar"
AUTHOR_EMAIL = "janez.demsar(@at@)fri.uni-lj.si"
INPUTS = [("Data", Orange.data.Table, "dataset",... | gpl-3.0 | 9,171,081,184,410,673,000 | 36.543624 | 184 | 0.59975 | false |
locustio/locust | locust/test/test_wait_time.py | 1 | 2342 | import random
import time
from locust import User, TaskSet, between, constant, constant_pacing
from locust.exception import MissingWaitTimeError
from .testcases import LocustTestCase
class TestWaitTime(LocustTestCase):
def test_between(self):
class MyUser(User):
wait_time = between(3, 9)
... | mit | 7,875,299,310,437,960,000 | 28.64557 | 76 | 0.577284 | false |
icio/github3.py | tests/unit/test_null.py | 10 | 1832 | from .helper import UnitHelper
from github3.null import NullObject
import pytest
class TestNullObject(UnitHelper):
described_class = NullObject
def create_instance_of_described_class(self):
return self.described_class()
def test_returns_empty_list(self):
assert list(self.instance) == []... | bsd-3-clause | 7,603,991,016,720,208,000 | 28.548387 | 68 | 0.651201 | false |
gmist/fix-5studio | main/auth/twitter.py | 6 | 1468 | # coding: utf-8
from __future__ import absolute_import
import flask
import auth
import config
import model
import util
from main import app
twitter_config = dict(
access_token_url='https://api.twitter.com/oauth/access_token',
authorize_url='https://api.twitter.com/oauth/authorize',
base_url='https://api.twit... | mit | 7,253,663,417,025,386,000 | 24.310345 | 66 | 0.714578 | false |
js0701/chromium-crosswalk | tools/perf_expectations/make_expectations.py | 37 | 12595 | #!/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.
# For instructions see:
# http://www.chromium.org/developers/tree-sheriffs/perf-sheriffs
import hashlib
import math
import optpars... | bsd-3-clause | -3,387,298,855,177,554,000 | 32.057743 | 80 | 0.624295 | false |
MediaKraken/MediaKraken_Deployment | source/database_async/db_base_metadata_async.py | 1 | 8531 | import inspect
from common import common_logging_elasticsearch_httpx
async def db_metadata_guid_from_media_guid(self, guid, db_connection=None):
await common_logging_elasticsearch_httpx.com_es_httpx_post_async(message_type='info',
message_text=... | gpl-3.0 | 793,320,040,041,768,300 | 57.431507 | 117 | 0.327746 | false |
dwightgunning/django | tests/auth_tests/test_mixins.py | 274 | 8335 | from django.contrib.auth import models
from django.contrib.auth.mixins import (
LoginRequiredMixin, PermissionRequiredMixin, UserPassesTestMixin,
)
from django.contrib.auth.models import AnonymousUser
from django.core.exceptions import PermissionDenied
from django.http import HttpResponse
from django.test import Re... | bsd-3-clause | 1,535,350,661,884,959,700 | 32.207171 | 110 | 0.660588 | false |
s20121035/rk3288_android5.1_repo | external/chromium_org/third_party/closure_compiler/compiler_customization_test.py | 40 | 6461 | #!/usr/bin/env python
# Copyright 2014 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 os
import unittest
from checker import Checker
from processor import FileCache, Processor
ASSERT_FILE = os.path.join("..", ".... | gpl-3.0 | -3,230,904,830,558,759,400 | 25.698347 | 78 | 0.67033 | false |
CapOM/ChromiumGStreamerBackend | tools/telemetry/third_party/gsutilz/third_party/boto/boto/sdb/item.py | 153 | 6885 | # Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modi... | bsd-3-clause | -8,353,511,660,481,222,000 | 37.898305 | 82 | 0.592447 | false |
dudepare/django | django/contrib/admindocs/urls.py | 574 | 1183 | from django.conf.urls import url
from django.contrib.admindocs import views
urlpatterns = [
url('^$',
views.BaseAdminDocsView.as_view(template_name='admin_doc/index.html'),
name='django-admindocs-docroot'),
url('^bookmarklets/$',
views.BookmarkletsView.as_view(),
name='django-ad... | bsd-3-clause | 9,114,568,968,733,334,000 | 35.96875 | 78 | 0.609467 | false |
patilsangram/erpnext | erpnext/patches/v10_0/set_auto_created_serial_no_in_stock_entry.py | 17 | 1708 | # Copyright (c) 2017, Frappe and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
def execute():
serialised_items = [d.name for d in frappe.get_all("Item", filters={"has_serial_no": 1})]
if not serialised_items:
return
for dt in ["Stoc... | gpl-3.0 | -8,319,387,747,381,059,000 | 29.517857 | 95 | 0.620609 | false |
agentfog/qiime | scripts/upgma_cluster.py | 15 | 2742 | #!/usr/bin/env python
# File created on 09 Feb 2010
from __future__ import division
__author__ = "Justin Kuczynski"
__copyright__ = "Copyright 2011, The QIIME Project"
__credits__ = ["Justin Kuczynski"]
__license__ = "GPL"
__version__ = "1.9.1-dev"
__maintainer__ = "Justin Kuczynski"
__email__ = "justinak@gmail.com"
... | gpl-2.0 | -1,893,105,543,927,502,600 | 45.474576 | 296 | 0.681619 | false |
donce/django-cms | cms/models/fields.py | 11 | 4349 | # -*- coding: utf-8 -*-
from cms.forms.fields import PageSelectFormField
from cms.models.pagemodel import Page
from cms.models.placeholdermodel import Placeholder
from cms.utils.placeholder import PlaceholderNoAction, validate_placeholder_name
from django.db import models
class PlaceholderField(models.ForeignKey):
... | bsd-3-clause | -4,439,365,943,613,584,000 | 41.223301 | 118 | 0.649575 | false |
Frodox/buildbot | master/buildbot/test/unit/test_changes_gerritchangesource.py | 3 | 14848 | # This file is part of Buildbot. Buildbot 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, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | gpl-2.0 | -7,526,128,971,953,130,000 | 40.591036 | 106 | 0.556573 | false |
darrenabbey/ymap | scripts_genomes/genome_process_for_standard_bins.GC_bias_1.py | 2 | 7151 | # Input arguments: (Those with '[*]' at end are used here.)
# 2) genome : [String]: defines genome in use for project. (ex. 'Ca_a') [*]
# 3) workingDir : [String]: Directory where links in system are stored. (ex. '/home/bermanj/shared/links/) [*]
#
# Process input files:
# 1) Restriction-... | mit | -9,136,194,222,161,701,000 | 45.435065 | 127 | 0.551391 | false |
flumotion-mirror/flumotion-flash | flumotion/component/encoders/flv/flv.py | 1 | 1114 | # -*- Mode: Python -*-
# vi:si:et:sw=4:sts=4:ts=4
# Flumotion - a streaming media server
# Copyright (C) 2004,2005,2006,2007,2008,2009 Fluendo, S.L.
# Copyright (C) 2010,2011 Flumotion Services, S.A.
# All rights reserved.
#
# This file may be distributed and/or modified under the terms of
# the GNU Lesser General Pub... | lgpl-2.1 | -8,250,751,326,807,032,000 | 34.935484 | 73 | 0.733393 | false |
oczkers/pyllegro | pyllegro/core.py | 1 | 13373 | # -*- coding: utf-8 -*-
"""
gshop.allegro
~~~~~~~~~~~~~~~~~~~
A lightweight wrapper around the Allegro webapi.
"""
import sys
import time
import logging
from zeep import Client
from zeep.exceptions import Fault
from requests.exceptions import ConnectionError
# from socket import error as socketError
from decimal im... | lgpl-3.0 | -1,098,039,346,399,221,400 | 41.852564 | 214 | 0.506731 | false |
dariomalchiodi/yaplf | test/test_models.py | 1 | 3023 |
#*****************************************************************************
# Copyright (C) 2010 Dario Malchiodi <malchiodi@di.unimi.it>
#
# This file is part of yaplf.
# yaplf is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by... | lgpl-3.0 | 6,286,507,239,552,671,000 | 41.591549 | 78 | 0.58915 | false |
jcoady9/python-for-android | python3-alpha/python3-src/Lib/distutils/bcppcompiler.py | 179 | 14935 | """distutils.bcppcompiler
Contains BorlandCCompiler, an implementation of the abstract CCompiler class
for the Borland C++ compiler.
"""
# This implementation by Lyle Johnson, based on the original msvccompiler.py
# module and using the directions originally published by Gordon Williams.
# XXX looks like there's a L... | apache-2.0 | -1,643,218,921,075,377,000 | 37.002545 | 80 | 0.529494 | false |
ahb0327/intellij-community | python/helpers/coverage/bytecode.py | 209 | 2036 | """Bytecode manipulation for coverage.py"""
import opcode, types
from coverage.backward import byte_to_int
class ByteCode(object):
"""A single bytecode."""
def __init__(self):
# The offset of this bytecode in the code object.
self.offset = -1
# The opcode, defined in the `opcode` mod... | apache-2.0 | -1,538,157,550,117,243,000 | 26.146667 | 77 | 0.530452 | false |
jarvys/django-1.7-jdb | tests/db_backends/tests.py | 32 | 1074 | from django.test import TestCase
from django.db.backends import BaseDatabaseWrapper
class DummyDatabaseWrapper(BaseDatabaseWrapper):
pass
class DummyObject(object):
alias = None
class DbBackendTests(TestCase):
def test_compare_db_wrapper_with_another_object(self):
wrapper = BaseDatabaseWrapper... | bsd-3-clause | -4,903,524,571,859,792,000 | 28.833333 | 69 | 0.676909 | false |
mhvk/astropy | astropy/coordinates/builtin_frames/altaz.py | 3 | 5451 | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import numpy as np
from astropy import units as u
from astropy.utils.decorators import format_doc
from astropy.coordinates import representation as r
from astropy.coordinates.baseframe import BaseCoordinateFrame, RepresentationMap... | bsd-3-clause | -619,457,488,633,602,400 | 41.92126 | 94 | 0.683177 | false |
kayhayen/Nuitka | nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Options/PackageOption.py | 7 | 1965 | #
# Copyright (c) 2001 - 2014 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge... | apache-2.0 | -423,020,038,802,458,240 | 38.3 | 103 | 0.755216 | false |
Sephyros/URI-Python | 01 - Iniciante/1006.py | 1 | 1180 | # URI Online Judge | 1006
# Média 2
#
# Adaptado por Neilor Tonin, URI Brasil
# Timelimit: 1
#
# Leia 3 valores, no caso, variáveis A, B e C, que são as três notas de um aluno. A seguir, calcule a média do aluno,
# sabendo que a nota A tem peso 2, a nota B tem peso 3 e a nota C tem peso 5. Considere que cada nota pode ... | gpl-3.0 | 7,447,770,970,794,053,000 | 28.74359 | 119 | 0.647414 | false |
pydlv/rlauncher | requests/packages/chardet/big5freq.py | 3133 | 82594 | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights R... | mit | 1,350,161,219,097,926,700 | 88.290811 | 103 | 0.770903 | false |
asascience-open/ooi-ui-services | ooiservices/app/uframe/events_create_update.py | 1 | 12767 | """
Asset Management - Events: Create and update functions.
"""
__author__ = 'Edna Donoughe'
from ooiservices.app.uframe.uframe_tools import (uframe_get_asset_by_uid, get_uframe_event, uframe_put_event,
uframe_postto, uframe_create_cruise, uframe_create_calibration)
fr... | apache-2.0 | -2,366,507,318,431,808,500 | 39.277603 | 121 | 0.585651 | false |
miing/mci_migo | webui/views/devices.py | 1 | 11714 | # Copyright 2012 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
import re
from base64 import b16encode
from collections import namedtuple
from django.contrib import messages
from django.contrib.auth.views import redirect_to_login
from django.c... | agpl-3.0 | 3,464,751,272,790,637,600 | 33.967164 | 79 | 0.668089 | false |
GabrieleAndrea/MEGAnnotator | bin/SPAdes/share/spades/pyyaml3/reader.py | 272 | 6854 | # This module contains abstractions for the input stream. You don't have to
# looks further, there are no pretty code.
#
# We define two classes here.
#
# Mark(source, line, column)
# It's just a record and its only use is producing nice error messages.
# Parser does not use it for any other purposes.
#
# Reader(so... | gpl-3.0 | 8,118,727,755,371,595,000 | 34.697917 | 86 | 0.546104 | false |
Godiyos/python-for-android | python-modules/twisted/twisted/python/dxprofile.py | 61 | 1528 | # Copyright (c) 2001-2007 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
DEPRECATED since Twisted 8.0.
Utility functions for reporting bytecode frequencies to Skip Montanaro's
stat collector.
This module requires a version of Python build with DYNAMIC_EXCUTION_PROFILE,
and optionally DXPAIRS, defined to... | apache-2.0 | -9,000,950,117,111,381,000 | 26.285714 | 80 | 0.643979 | false |
kingvuplus/boom2 | lib/python/Plugins/SystemPlugins/AnimationSetup/plugin.py | 15 | 8964 | from Screens.Screen import Screen
from Screens.MessageBox import MessageBox
from Components.ActionMap import ActionMap
from Components.ConfigList import ConfigListScreen
from Components.MenuList import MenuList
from Components.Sources.StaticText import StaticText
from Components.config import config, ConfigNumber, Conf... | gpl-2.0 | -8,683,468,355,515,691,000 | 35.291498 | 213 | 0.697791 | false |
menardorama/ReadyNAS-Add-ons | headphones-1.0.0/files/etc/apps/headphones/lib/unidecode/x07a.py | 252 | 4669 | data = (
'Xi ', # 0x00
'Kao ', # 0x01
'Lang ', # 0x02
'Fu ', # 0x03
'Ze ', # 0x04
'Shui ', # 0x05
'Lu ', # 0x06
'Kun ', # 0x07
'Gan ', # 0x08
'Geng ', # 0x09
'Ti ', # 0x0a
'Cheng ', # 0x0b
'Tu ', # 0x0c
'Shao ', # 0x0d
'Shui ', # 0x0e
'Ya ', # 0x0f
'Lun ', # 0x10
'Lu '... | gpl-2.0 | 1,929,247,342,009,774,000 | 17.096899 | 20 | 0.392161 | false |
primepix/django-sentry | sentry/filters.py | 2 | 5486 | """
sentry.filters
~~~~~~~~~~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
# Widget api is pretty ugly
from __future__ import absolute_import
from django.conf import settings as django_settings
from django.utils.datastructures import Sort... | bsd-3-clause | -418,618,235,165,186,700 | 32.048193 | 241 | 0.582209 | false |
kyleabeauchamp/FAHMunge | FAHMunge/fah.py | 1 | 9735 | ##############################################################################
# MDTraj: A Python Library for Loading, Saving, and Manipulating
# Molecular Dynamics Trajectories.
# Copyright 2012-2013 Stanford University and the Authors
#
# Authors: Kyle A. Beauchamp
# Contributors:
#
# MDTraj is free software:... | lgpl-2.1 | 5,793,126,494,510,251,000 | 39.903361 | 188 | 0.62753 | false |
gusai-francelabs/datafari | windows/python/Lib/site-packages/pip/_vendor/requests/exceptions.py | 895 | 2517 | # -*- coding: utf-8 -*-
"""
requests.exceptions
~~~~~~~~~~~~~~~~~~~
This module contains the set of Requests' exceptions.
"""
from .packages.urllib3.exceptions import HTTPError as BaseHTTPError
class RequestException(IOError):
"""There was an ambiguous exception that occurred while handling your
request.""... | apache-2.0 | -1,447,260,705,400,122,400 | 24.424242 | 74 | 0.692094 | false |
ToonTownInfiniteRepo/ToontownInfinite | Panda3D-1.9.0/python/Lib/JOD/NewJamoDrum.py | 3 | 10076 | """
A generic Jam-o-Drum input interface for the Jam-o-Drum that uses the OptiPAC
for both spinners and pads.
@author: U{Ben Buchwald <bb2@alumni.cmu.edu>}
Last Updated: 2/27/2006
"""
from direct.showbase.DirectObject import DirectObject
import string, sys, md5
from pandac.PandaModules import Filename
from pandac.Pan... | mit | -6,825,525,793,610,439,000 | 34.60424 | 111 | 0.557166 | false |
brennie/reviewboard | reviewboard/ssh/utils.py | 3 | 3339 | from __future__ import unicode_literals
import os
import paramiko
from django.utils import six
from reviewboard.ssh.client import SSHClient
from reviewboard.ssh.errors import (BadHostKeyError, SSHAuthenticationError,
SSHError, SSHInvalidPortError)
from reviewboard.ssh.policy impor... | mit | 8,464,793,154,522,550,000 | 29.633028 | 79 | 0.667865 | false |
hbenniou/trunk | examples/gts-horse/gts-random-pack.py | 10 | 3271 |
""" CAUTION:
Running this script can take very long!
"""
from numpy import arange
from yade import pack
import pylab
# define the section shape as polygon in 2d; repeat first point at the end to close the polygon
poly=((1e-2,5e-2),(5e-2,2e-2),(7e-2,-2e-2),(1e-2,-5e-2),(1e-2,5e-2))
# show us the meridian shape
#pylab.... | gpl-2.0 | -7,740,019,440,590,569,000 | 57.410714 | 201 | 0.772241 | false |
stscieisenhamer/pyqtgraph | pyqtgraph/units.py | 55 | 1402 | # -*- coding: utf-8 -*-
## Very simple unit support:
## - creates variable names like 'mV' and 'kHz'
## - the value assigned to the variable corresponds to the scale prefix
## (mV = 0.001)
## - the actual units are purely cosmetic for making code clearer:
##
## x = 20*pA is identical to x = 20*1e-12
#... | mit | -6,974,808,280,071,847,000 | 20.890625 | 88 | 0.542857 | false |
chjw8016/GreenOdoo7-haibao | openerp/addons/point_of_sale/controllers/main.py | 56 | 5627 | # -*- coding: utf-8 -*-
import logging
import simplejson
import os
import openerp
from openerp.addons.web.controllers.main import manifest_list, module_boot, html_template
class PointOfSaleController(openerp.addons.web.http.Controller):
_cp_path = '/pos'
@openerp.addons.web.http.httprequest
def app(self,... | mit | -2,109,445,237,641,725,000 | 32.1 | 127 | 0.60032 | false |
jejimenez/django | django/contrib/postgres/lookups.py | 199 | 1175 | from django.db.models import Lookup, Transform
class PostgresSimpleLookup(Lookup):
def as_sql(self, qn, connection):
lhs, lhs_params = self.process_lhs(qn, connection)
rhs, rhs_params = self.process_rhs(qn, connection)
params = lhs_params + rhs_params
return '%s %s %s' % (lhs, self... | bsd-3-clause | 6,577,103,604,244,673,000 | 22.039216 | 61 | 0.657872 | false |
bholley/servo | tests/wpt/web-platform-tests/tools/pywebsocket/src/test/test_extensions.py | 413 | 16128 | #!/usr/bin/env python
#
# Copyright 2012, 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... | mpl-2.0 | -3,178,761,645,231,186,400 | 43.8 | 79 | 0.692832 | false |
Jgarcia-IAS/localizacion | openerp/addons/l10n_be_invoice_bba/partner.py | 379 | 2268 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
#
# Created by Luc De Meyer
# Copyright (c) 2010 Noviat nv/sa (www.noviat.be). All rights reserved.
#
# This program is free software: you can redistribu... | agpl-3.0 | 1,777,546,695,650,925,300 | 39.5 | 104 | 0.616843 | false |
PeterLauris/aifh | vol1/python-examples/examples/example_ocr.py | 4 | 8445 | #!/usr/bin/env python
"""
Artificial Intelligence for Humans
Volume 1: Fundamental Algorithms
Python Version
http://www.aifh.org
http://www.jeffheaton.com
Code repository:
https://github.com/jeffheaton/aifh
Copyright 2013 by Jeff Heaton
Licensed under the Apache License, Version 2... | apache-2.0 | -4,258,145,730,547,948,500 | 36.207048 | 108 | 0.596803 | false |
wagtail/wagtail | wagtail/tests/testapp/migrations/0058_blockcountsstreammodel_minmaxcountstreammodel.py | 6 | 1214 | # Generated by Django 2.1.7 on 2019-03-28 02:30
from django.db import migrations, models
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = [
('tests', '0057_customdocumentwithauthor'),
]
operations = [
... | bsd-3-clause | -4,844,687,278,163,032,000 | 39.466667 | 209 | 0.626853 | false |
Subsets and Splits
Gradio Code Samples
Limits the results to entries containing the word 'gradio' in the repo_name, content, or path, providing a filtered subset of the dataset.