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 |
|---|---|---|---|---|---|---|---|---|---|---|
scieloorg/wayta | setup.py | 1 | 1219 | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.txt')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.txt')) as f:
CHANGES = f.read()
requires = [
'elasticsearch>=1.1.1',
'pyramid>=1.5.2',
... | bsd-2-clause | -1,527,593,102,391,974,000 | 28.02381 | 111 | 0.607055 | false |
zorroz/microblog | flask/lib/python2.7/site-packages/setuptools/sandbox.py | 221 | 9994 | import os
import sys
import tempfile
import operator
import functools
import itertools
import re
import pkg_resources
if os.name == "java":
import org.python.modules.posix.PosixModule as _os
else:
_os = sys.modules[os.name]
try:
_file = file
except NameError:
_file = None
_open = open
from distutils.e... | bsd-3-clause | -4,998,048,370,257,236,000 | 30.037267 | 79 | 0.577747 | false |
uglyboxer/linear_neuron | net-p3/lib/python3.5/site-packages/setuptools/compat.py | 456 | 2094 | import sys
import itertools
PY3 = sys.version_info >= (3,)
PY2 = not PY3
if PY2:
basestring = basestring
import __builtin__ as builtins
import ConfigParser
from StringIO import StringIO
BytesIO = StringIO
func_code = lambda o: o.func_code
func_globals = lambda o: o.func_globals
im_func... | mit | -5,642,556,743,955,036,000 | 30.727273 | 76 | 0.69914 | false |
guewen/OpenUpgrade | addons/account_payment/wizard/__init__.py | 436 | 1144 | # -*- 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 | -6,422,384,616,153,183,000 | 43 | 78 | 0.632867 | false |
zhuwenping/python-for-android | python-build/python-libs/gdata/build/lib/gdata/health/service.py | 263 | 10007 | #!/usr/bin/python
#
# Copyright 2009 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 b... | apache-2.0 | -5,420,982,813,106,255,000 | 37.04943 | 79 | 0.674328 | false |
pp-mo/iris | lib/iris/quickplot.py | 2 | 9074 | # Copyright Iris contributors
#
# This file is part of Iris and is released under the LGPL license.
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.
"""
High-level plotting extensions to :mod:`iris.plot`.
These routines work much like their :mod:`iris.plot` counterparts, but... | lgpl-3.0 | -4,965,416,833,127,718,000 | 28.270968 | 79 | 0.634009 | false |
suizokukan/urwid | urwid/tests/test_str_util.py | 20 | 1258 | import unittest
from urwid.compat import B
from urwid.escape import str_util
class DecodeOneTest(unittest.TestCase):
def gwt(self, ch, exp_ord, exp_pos):
ch = B(ch)
o, pos = str_util.decode_one(ch,0)
assert o==exp_ord, " got:%r expected:%r" % (o, exp_ord)
assert pos==exp_pos, " go... | lgpl-2.1 | 6,452,453,846,512,600,000 | 33 | 67 | 0.520668 | false |
igabriel85/dmon-adp | misc/keras_test.py | 1 | 1530 | import numpy
import pandas as pd
from keras.models import Sequential
from keras.layers import Dense
from keras.wrappers.scikit_learn import KerasClassifier
from keras.utils import np_utils
from sklearn.model_selection import cross_val_score
from sklearn.model_selection import KFold
from sklearn.preprocessing import Lab... | apache-2.0 | -2,858,827,367,040,694,300 | 28.442308 | 90 | 0.74183 | false |
dreadworks/college-cg | t2-objv/parser.py | 1 | 10996 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import numpy as np
from util import LOG
log = LOG.out.info
"""
Parser Library.
Every class gets instantiated with the
name of the file that should be parsed.
Every instance of a parser is bound to
a file and thus maintains the files data.
The classes shou... | mit | 1,192,911,812,575,661,000 | 28.202128 | 79 | 0.463388 | false |
fujunwei/chromium-crosswalk | tools/telemetry/telemetry/core/platform/power_monitor/power_monitor_controller.py | 69 | 1214 | # 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 telemetry.core.platform.power_monitor as power_monitor
class PowerMonitorController(power_monitor.PowerMonitor):
"""
PowerMonitor that acts as f... | bsd-3-clause | 4,080,641,003,020,368,400 | 32.722222 | 78 | 0.726524 | false |
globocom/oauth2u | tests/helpers.py | 1 | 2130 | import sys
import urllib
import cgi
import base64
import json
from functools import partial
import requests
__all__ = ('TEST_SERVER_HOST',
'build_root_url',
'build_basic_authorization_header',
'build_access_token_url',
'parse_json_response',
'parse_query_string',... | mit | 7,794,158,819,076,828,000 | 29.869565 | 80 | 0.613146 | false |
Conchylicultor/DeepQA | chatbot/corpus/scotusdata.py | 10 | 1602 | # Copyright 2015 Conchylicultor. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | apache-2.0 | -52,163,720,397,949,330 | 26.62069 | 80 | 0.594881 | false |
DevMine/devmine-core | devmine/__init__.py | 1 | 1683 | __devmine_version__ = '0.1.0'
__api_version__ = '1'
import logging
import bottle
from bottle.ext import sqlalchemy
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from devmine.app.models import Base
from devmine.config import routes
from devmine.lib import composition
class Devmine:
... | bsd-3-clause | 3,464,901,256,400,185,300 | 24.119403 | 56 | 0.571598 | false |
walterreade/scikit-learn | sklearn/externals/joblib/my_exceptions.py | 31 | 3690 | """
Exceptions
"""
# Author: Gael Varoquaux < gael dot varoquaux at normalesup dot org >
# Copyright: 2010, Gael Varoquaux
# License: BSD 3 clause
import sys
from ._compat import PY3_OR_LATER
class JoblibException(Exception):
"""A simple exception with an error message that you can get to."""
def __init__(se... | bsd-3-clause | 1,029,027,122,358,540,800 | 34.142857 | 72 | 0.630623 | false |
alianmohammad/pd-gem5 | src/arch/micro_asm_test.py | 86 | 3195 | # Copyright (c) 2007 The Regents of The University of Michigan
# 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 ... | bsd-3-clause | -4,477,015,458,987,570,700 | 28.859813 | 79 | 0.696088 | false |
akash1808/nova_test_latest | nova/tests/unit/scheduler/weights/test_weights_ioopsweight.py | 73 | 2785 | # 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
# d... | apache-2.0 | -8,470,592,831,959,123,000 | 39.955882 | 78 | 0.61149 | false |
jabez1314/shadowsocks | tests/coverage_server.py | 1072 | 1655 | #!/usr/bin/env python
#
# Copyright 2015 clowwindy
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | apache-2.0 | -2,438,028,363,540,857,300 | 35.777778 | 75 | 0.555287 | false |
BeATz-UnKNoWN/python-for-android | python-build/python-libs/gdata/src/gdata/alt/app_engine.py | 136 | 3386 | #!/usr/bin/python
#
# Copyright (C) 2009 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | apache-2.0 | 4,032,265,594,405,438,500 | 32.524752 | 78 | 0.723272 | false |
leafclick/intellij-community | python/helpers/py2only/docutils/languages/fr.py | 148 | 1893 | # $Id: fr.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: Stefane Fermigier <sf@fermigier.com>
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
# read <http://docutils.sf.net/docs/howto/i18n.html>. Two files must be
# translat... | apache-2.0 | -3,634,663,531,247,253,000 | 31.637931 | 76 | 0.628104 | false |
play113/swer | heekscnc-read-only/nc/nc.py | 25 | 20718 | ################################################################################
# nc.py
#
# Base class for NC code creation
# And global functions for calling current creator
#
# Hirutso Enni, 2009-01-13
# altered by Dan Falck 2010-08-04
# added tap() arguments Michael Haberler 2010-10-07
####################... | mit | 6,023,234,747,818,765,000 | 27.597143 | 318 | 0.533884 | false |
ParticulateSolutions/django-paydirekt | django_paydirekt/migrations/0001_initial.py | 1 | 4278 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='PaydirektCapture',
fields=[
('id', models.AutoF... | mit | -895,930,965,108,189,400 | 56.04 | 164 | 0.588125 | false |
MrLoick/python-for-android | python-modules/twisted/twisted/test/test_stringtransport.py | 56 | 9941 | # Copyright (c) 2009-2010 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for L{twisted.test.proto_helpers}.
"""
from zope.interface.verify import verifyObject
from twisted.internet.interfaces import (ITransport, IPushProducer, IConsumer,
IReactorTCP, IReactorSSL, IReactorUNIX, IAddress, IListe... | apache-2.0 | 5,605,581,684,867,703,000 | 34.634409 | 79 | 0.659692 | false |
jagg81/translate-toolkit | translate/lang/si.py | 4 | 1048 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2010 Zuza Software Foundation
#
# This file is part of the Translate Toolkit.
#
# 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... | gpl-2.0 | -6,726,473,792,437,943,000 | 31.75 | 74 | 0.743321 | false |
geodrinx/gearthview | ext-libs/twisted/internet/_posixserialport.py | 42 | 2068 | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Serial Port Protocol
"""
# system imports
import os, errno
# dependent on pyserial ( http://pyserial.sf.net/ )
# only tested w/ 1.18 (5 Dec 2002)
import serial
from serial import PARITY_NONE, PARITY_EVEN, PARITY_ODD
from serial import STOPB... | gpl-3.0 | 8,425,912,776,426,885,000 | 26.945946 | 74 | 0.659574 | false |
GeoNode/geonode | geonode/monitoring/views.py | 4 | 27048 | # -*- coding: utf-8 -*-
#########################################################################
#
# Copyright (C) 2017 OSGeo
#
# 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 ... | gpl-3.0 | -8,006,961,202,023,900,000 | 32.979899 | 107 | 0.556603 | false |
rackerlabs/ironic | ironic/drivers/modules/deploy_utils.py | 1 | 17645 | # Copyright (c) 2012 NTT DOCOMO, 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 requ... | apache-2.0 | -5,319,612,824,135,378,000 | 36.225738 | 79 | 0.608274 | false |
xzturn/tensorflow | tensorflow/tools/docs/generate_lib.py | 4 | 22402 | # Lint as: python2, python3
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
... | apache-2.0 | -1,247,658,788,023,999,200 | 33.785714 | 80 | 0.63847 | false |
Mevlock/xbmc | lib/gtest/test/gtest_env_var_test.py | 184 | 3546 | #!/usr/bin/env python
#
# Copyright 2008, 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... | gpl-2.0 | 6,911,166,276,109,264,000 | 33.096154 | 79 | 0.701918 | false |
sudiptpa/google-diff-match-patch | python2/diff_match_patch_test.py | 319 | 41744 | #!/usr/bin/python2.4
"""Test harness for diff_match_patch.py
Copyright 2006 Google Inc.
http://code.google.com/p/google-diff-match-patch/
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 | 7,225,473,876,815,896,000 | 47.036824 | 408 | 0.645578 | false |
chaluemwut/fbserver | venv/lib/python2.7/site-packages/scipy/io/matlab/tests/test_mio_funcs.py | 17 | 1816 | #!/usr/bin/env python
''' Jottings to work out format for __function_workspace__ matrix at end
of mat file.
'''
from __future__ import division, print_function, absolute_import
from os.path import join as pjoin, dirname
import sys
from io import BytesIO
from numpy.testing import \
assert_array_equal, \
as... | apache-2.0 | 795,994,972,358,193,200 | 24.577465 | 72 | 0.624449 | false |
uclaros/QGIS | tests/src/python/test_qgsoptional.py | 74 | 2145 | # -*- coding: utf-8 -*-
'''
test_qgsoptional.py
--------------------------------------
Date : September 2016
Copyright : (C) 2016 Matthias Kuhn
email : matthias@opengis.ch
***************************************... | gpl-2.0 | 2,118,830,919,897,886,700 | 35.355932 | 77 | 0.498834 | false |
JingZhou0404/phantomjs | src/qt/qtwebkit/Tools/Scripts/webkitpy/tool/steps/build.py | 119 | 2636 | # Copyright (C) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and th... | bsd-3-clause | 5,639,353,447,083,814,000 | 40.84127 | 105 | 0.716995 | false |
simartin/servo | python/servo/build_commands.py | 2 | 45345 | # Copyright 2013 The Servo Project Developers. See the COPYRIGHT
# file at the top-level directory of this distribution.
#
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
#... | mpl-2.0 | -9,109,003,718,326,073,000 | 42.896418 | 141 | 0.54264 | false |
MalkIPP/ipp_work | ipp_work/simulations/ir_marg_rate.py | 1 | 8481 | # -*- coding: utf-8 -*-
# OpenFisca -- A versatile microsimulation software
# By: OpenFisca Team <contact@openfisca.fr>
#
# Copyright (C) 2011, 2012, 2013, 2014, 2015 OpenFisca Team
# https://github.com/openfisca
#
# This file is part of OpenFisca.
#
# OpenFisca is free software; you can redistribute it and/or modify... | agpl-3.0 | 4,238,916,866,469,250,000 | 44.069149 | 150 | 0.66883 | false |
agx/git-buildpackage | gbp/scripts/import_ref.py | 1 | 8733 | # vim: set fileencoding=utf-8 :
#
# (C) 2018 Michael Stapelberg <stapelberg@debian.org>
# 2018 Guido Günther <agx@sigxcpu.org>
# 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... | gpl-2.0 | -2,448,606,281,932,488,000 | 40.966346 | 95 | 0.590446 | false |
yodalee/servo | tests/wpt/web-platform-tests/tools/py/testing/log/test_warning.py | 161 | 2253 | import pytest
import py
mypath = py.path.local(__file__).new(ext=".py")
@pytest.mark.xfail
def test_forwarding_to_warnings_module():
pytest.deprecated_call(py.log._apiwarn, "1.3", "..")
def test_apiwarn_functional(recwarn):
capture = py.io.StdCapture()
py.log._apiwarn("x.y.z", "something", stacklevel=1)
... | mpl-2.0 | 7,405,839,485,959,459,000 | 28.644737 | 83 | 0.600976 | false |
quasiben/bokeh | examples/plotting/server/selection_histogram.py | 4 | 3752 | # You must first run "bokeh serve" to view this example
import numpy as np
from bokeh.client import push_session
from bokeh.models import BoxSelectTool, LassoSelectTool, Paragraph
from bokeh.plotting import curdoc, figure, hplot, vplot
# create three normal population samples with different parameters
x1 = np.random... | bsd-3-clause | -1,259,513,667,026,541,800 | 38.083333 | 106 | 0.685501 | false |
shownomercy/django | django/conf/locale/lt/formats.py | 504 | 1830 | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = r'Y \m. E j \d.'
TIME_FORMAT = 'H:... | bsd-3-clause | -5,178,753,615,758,317,000 | 37.125 | 81 | 0.505464 | false |
uwcirg/true_nth_usa_portal | tests/test_portal.py | 1 | 11562 | """Unit test module for portal views"""
from datetime import datetime
import tempfile
import urllib
from flask_swagger import swagger
from flask_webtest import SessionScope
from swagger_spec_validator import validate_spec_url
from portal.config.config import TestConfig
from portal.extensions import db
from portal.fa... | bsd-3-clause | -5,025,709,329,483,542,000 | 34.466258 | 79 | 0.606729 | false |
andersinno/foosball | config/settings/production.py | 1 | 4603 | # -*- coding: utf-8 -*-
"""
Production Configurations
"""
from __future__ import absolute_import, unicode_literals
from django.utils import six
from .common import * # noqa
# Enable social integration plugins
SOCIAL_ACCOUNTS = (
'allauth.socialaccount.providers.google',
'allauth.socialaccount.providers.face... | mit | 1,731,769,611,805,305,600 | 33.096296 | 117 | 0.563546 | false |
ducthien1490/youtube-dl | youtube_dl/extractor/instagram.py | 93 | 4498 | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
int_or_none,
limit_length,
)
class InstagramIE(InfoExtractor):
_VALID_URL = r'https://instagram\.com/p/(?P<id>[\da-zA-Z]+)'
_TEST = {
'url': 'https://instagram.com/p/aye83DjauH/?foo=bar#... | unlicense | 54,199,603,054,088,460 | 32.567164 | 79 | 0.450867 | false |
bloopletech/Comix | src/preferences.py | 6 | 22727 | """preferences.py - Preference handler."""
import os
import cPickle
import gtk
import pango
import constants
import labels
ZOOM_MODE_BEST = 0
ZOOM_MODE_WIDTH = 1
ZOOM_MODE_HEIGHT = 2
ZOOM_MODE_MANUAL = 3
# All the preferences are stored here.
prefs = {
'comment extensions': ['txt', 'nfo'],
'auto load last ... | gpl-2.0 | -1,446,618,445,956,264,400 | 44.72837 | 257 | 0.616887 | false |
ghxandsky/zstack-utility | kvmagent/kvmagent/plugins/network_plugin.py | 1 | 7289 | '''
@author: frank
'''
from kvmagent import kvmagent
from zstacklib.utils import jsonobject
from zstacklib.utils import http
from zstacklib.utils import log
from zstacklib.utils import lock
from zstacklib.utils import shell
from zstacklib.utils import linux
import os
import traceback
CHECK_PHYSICAL_NETW... | apache-2.0 | 3,011,938,923,725,352,000 | 37.61413 | 184 | 0.641377 | false |
KanoComputing/nush | cherrypy/test/test_auth_basic.py | 54 | 2853 | # This file is part of CherryPy <http://www.cherrypy.org/>
# -*- coding: utf-8 -*-
# vim:ts=4:sw=4:expandtab:fileencoding=utf-8
import cherrypy
from cherrypy._cpcompat import md5, ntob
from cherrypy.lib import auth_basic
from cherrypy.test import helper
class BasicAuthTest(helper.CPWebCase):
def setup_server():... | gpl-3.0 | 6,043,323,925,622,085,000 | 35.113924 | 106 | 0.596916 | false |
ghickman/tvrenamr | tvrenamr/logs.py | 2 | 2377 | import logging
import logging.handlers
import os
def convert_log_level(level=26):
"""
Get a numeric log level from a string. The default 26 is for SHORT logs.
:param level
:return level
"""
# annoying but the level can be passed in as None
if not level:
level = 26
levels = {'... | mit | 6,956,430,640,036,286,000 | 28.7125 | 94 | 0.622213 | false |
simleo/openmicroscopy | components/tools/OmeroPy/test/integration/test_chgrp.py | 2 | 46241 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2012-2015 University of Dundee & Open Microscopy Environment.
# All rights reserved. Use is subject to license terms supplied in LICENSE.txt
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General P... | gpl-2.0 | 1,454,220,204,188,468,700 | 38.021941 | 79 | 0.586038 | false |
MarcosCommunity/odoo | addons/base_report_designer/plugin/openerp_report_designer/bin/script/Repeatln.py | 293 | 13228 | #########################################################################
#
# Copyright (c) 2003-2004 Danny Brewer d29583@groovegarden.com
# Copyright (C) 2004-2010 OpenERP SA (<http://openerp.com>).
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser Gene... | agpl-3.0 | -1,155,928,816,165,303,000 | 46.412186 | 160 | 0.571591 | false |
NitroKK/kernel_lge_iproj | tools/perf/scripts/python/sched-migration.py | 11215 | 11670 | #!/usr/bin/python
#
# Cpu task migration overview toy
#
# Copyright (C) 2010 Frederic Weisbecker <fweisbec@gmail.com>
#
# perf script event handlers have been generated by perf script -g python
#
# This software is distributed under the terms of the GNU General
# Public License ("GPL") version 2 as published by the Fre... | gpl-2.0 | 8,364,869,242,313,903,000 | 24.314534 | 88 | 0.675407 | false |
CLVsol/oehealth | oehealth_pharmacy/oehealth_annotation.py | 1 | 1638 | # -*- encoding: utf-8 -*-
################################################################################
# #
# Copyright (C) 2013-Today Carlos Eduardo Vercelino - CLVsol #
# ... | agpl-3.0 | 4,323,486,043,866,246,700 | 55.482759 | 80 | 0.440171 | false |
SrNetoChan/Quantum-GIS | python/plugins/processing/algs/qgis/Heatmap.py | 15 | 11238 | # -*- coding: utf-8 -*-
"""
***************************************************************************
Heatmap.py
---------------------
Date : November 2016
Copyright : (C) 2016 by Nyall Dawson
Email : nyall dot dawson at gmail dot com
********************... | gpl-2.0 | 5,786,339,362,994,566,000 | 48.289474 | 261 | 0.532657 | false |
SnabbCo/neutron | neutron/tests/unit/services/firewall/agents/l3reference/test_firewall_l3_agent.py | 3 | 16283 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (c) 2013 OpenStack Foundation
# All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.ap... | apache-2.0 | 812,300,187,931,894,500 | 40.644501 | 79 | 0.586071 | false |
nathanielvarona/airflow | airflow/providers/google/cloud/hooks/functions.py | 1 | 10000 | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | apache-2.0 | -1,905,960,405,674,623,000 | 38.0625 | 122 | 0.6187 | false |
rorasa/KeeTerm | Crypto/SelfTest/Random/Fortuna/__init__.py | 118 | 1825 | # -*- coding: utf-8 -*-
#
# SelfTest/Random/Fortuna/__init__.py: Self-test for Fortuna modules
#
# Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net>
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that de... | mit | 4,642,142,392,486,135,000 | 40.477273 | 129 | 0.682192 | false |
argonemyth/sentry | src/sentry/migrations/0168_unfill_projectkey_user.py | 34 | 36774 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
ProjectKey = orm['sentry.ProjectKey']
ProjectKey.objects.filter(
u... | bsd-3-clause | -5,341,465,913,821,492,000 | 87.399038 | 223 | 0.571382 | false |
jakubtyniecki/pact | tests/test_merge_rec.py | 1 | 1117 |
""" merge rec sort tests module """
import unittest
import random
from sort import merge_rec
from tests import helper
class MergeSortTests(unittest.TestCase):
""" merge rec sort unit tests class """
max = 100
arr = []
def setUp(self):
""" setting up for the test """
self.arr = rand... | mit | -4,817,606,431,334,600,000 | 21.795918 | 80 | 0.569382 | false |
git-cola/git-cola | cola/widgets/log.py | 3 | 2617 | from __future__ import absolute_import, division, unicode_literals
import time
from qtpy import QtGui
from qtpy import QtWidgets
from qtpy.QtCore import Qt
from qtpy.QtCore import Signal
from .. import core
from .. import qtutils
from ..i18n import N_
from . import defs
from .text import VimTextEdit
class LogWidget... | gpl-2.0 | 2,925,479,753,435,552,300 | 30.914634 | 87 | 0.625908 | false |
hassoon3/odoo | addons/l10n_us/__openerp__.py | 341 | 1763 | # -*- 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 | -1,198,873,749,042,053,600 | 37.326087 | 78 | 0.581395 | false |
ResByte/graph_slam | scripts/robot.py | 1 | 1487 | #!/usr/bin/env python
import roslib
import rospy
import sys
from geometry_msgs.msg import Twist
import numpy as np
from nav_msgs.msg import Odometry
from tf.transformations import euler_from_quaternion
import matplotlib.pyplot as plt
from sensor_msgs.msg import PointCloud2
import sensor_msgs.point_cloud2 as pc2
imp... | gpl-2.0 | -2,485,843,108,175,711,000 | 30.659574 | 128 | 0.729657 | false |
erinspace/osf.io | tests/test_utils.py | 1 | 18008 | # -*- coding: utf-8 -*-
import datetime
import mock
import os
import pytest
import time
import unittest
from django.utils import timezone
from flask import Flask
from nose.tools import * # noqa (PEP8 asserts)
import blinker
from tests.base import OsfTestCase, DbTestCase
from osf_tests.factories import RegistrationFa... | apache-2.0 | -7,115,528,908,618,472,000 | 38.751663 | 119 | 0.593429 | false |
aerophile/django | tests/view_tests/tests/test_specials.py | 66 | 1428 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.test import TestCase, override_settings
@override_settings(ROOT_URLCONF='view_tests.generic_urls')
class URLHandling(TestCase):
"""
Tests for URL handling in views and responses.
"""
redirect_target = "/%E4%B8%AD%E6%96%87/tar... | bsd-3-clause | 5,085,993,936,269,425,000 | 36.473684 | 77 | 0.668539 | false |
lochiiconnectivity/boto | boto/ec2/autoscale/__init__.py | 2 | 33259 | # Copyright (c) 2009-2011 Reza Lotun http://reza.lotun.name/
# Copyright (c) 2011 Jann Kleen
# Copyright (c) 2012 Mitch Garnaat http://garnaat.org/
# Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this sof... | mit | 3,487,480,716,292,861,000 | 40.418431 | 194 | 0.615984 | false |
18padx08/PPTex | PPTexEnv_x86_64/lib/python2.7/site-packages/sympy/plotting/pygletplot/plot_curve.py | 25 | 2853 | from __future__ import print_function, division
from pyglet.gl import *
from plot_mode_base import PlotModeBase
from sympy.core import S
from sympy.core.compatibility import xrange
class PlotCurve(PlotModeBase):
style_override = 'wireframe'
def _on_calculate_verts(self):
self.t_interval = self.inte... | mit | 4,147,604,870,148,563,500 | 32.564706 | 69 | 0.473887 | false |
R3v1L/evogtk | evogtk/gui/accessclasslib/spinbutton.py | 2 | 1871 | # -*- coding: utf-8 -*-
###############################################################################
# Copyright (C) 2008 EVO Sistemas Libres <central@evosistemas.com>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the F... | mit | -4,306,299,812,427,367,400 | 33.648148 | 85 | 0.59861 | false |
2mny/mylar | lib/comictaggerlib/matchselectionwindow.py | 1 | 4989 | """
A PyQT4 dialog to select from automated issue matches
"""
"""
Copyright 2012-2014 Anthony Beville
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
... | gpl-3.0 | 6,659,778,074,985,122,000 | 30.18125 | 104 | 0.732411 | false |
p0psicles/SickGear | sickbeard/clients/deluge.py | 3 | 8261 | # Author: Mr_Orange <mr_orange@hotmail.it>
# URL: http://code.google.com/p/sickbeard/
#
# This file is part of SickGear.
#
# SickGear 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 Lic... | gpl-3.0 | 5,227,302,978,426,104,000 | 35.553097 | 79 | 0.454303 | false |
helenst/django | django/conf/locale/zh_Hant/formats.py | 634 | 1810 | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'Y年n月j日' # 2016年9月5... | bsd-3-clause | 1,843,172,978,198,359,300 | 36.6 | 77 | 0.536643 | false |
omni5cience/django-inlineformfield | .tox/py27/lib/python2.7/site-packages/IPython/core/displayhook.py | 8 | 11365 | # -*- coding: utf-8 -*-
"""Displayhook for IPython.
This defines a callable class that IPython uses for `sys.displayhook`.
Authors:
* Fernando Perez
* Brian Granger
* Robert Kern
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2011 The IPython Developmen... | mit | 550,763,466,342,112,600 | 38.877193 | 89 | 0.556445 | false |
ntrrgc/snorky | snorky/tests/utils/rpc.py | 1 | 2428 | # 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/.
from snorky.services.base import format_call
from snorky.hashable import make_hashable
class TestRequest(object):
... | mpl-2.0 | 5,013,836,287,573,457,000 | 33.685714 | 77 | 0.654036 | false |
mccheung/kbengine | kbe/src/lib/python/Lib/asyncio/events.py | 61 | 18822 | """Event loop and event loop policy."""
__all__ = ['AbstractEventLoopPolicy',
'AbstractEventLoop', 'AbstractServer',
'Handle', 'TimerHandle',
'get_event_loop_policy', 'set_event_loop_policy',
'get_event_loop', 'set_event_loop', 'new_event_loop',
'get_child_watcher... | lgpl-3.0 | -7,761,992,944,354,123,000 | 31.119454 | 79 | 0.626767 | false |
skatsuta/aerospike-training | book/answers/Complete/Python/TweetService.py | 2 | 9958 | #!/usr/bin/env python
#
# * Copyright 2012-2014 by Aerospike.
# *
# * 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... | mit | -2,930,180,760,949,846,500 | 46.194313 | 982 | 0.574011 | false |
wangli1426/heron | heron/examples/src/python/misc/test_task_hook.py | 8 | 2350 | # Copyright 2016 Twitter. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | apache-2.0 | -4,632,834,672,013,429,000 | 37.52459 | 86 | 0.685957 | false |
guoxiaolongzte/spark | examples/src/main/python/avro_inputformat.py | 51 | 3170 | #
# 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 | -3,921,060,171,460,118,500 | 33.835165 | 99 | 0.675079 | false |
dpendl00/headphones | lib/html5lib/constants.py | 963 | 87346 | from __future__ import absolute_import, division, unicode_literals
import string
import gettext
_ = gettext.gettext
EOF = None
E = {
"null-character":
_("Null character in input stream, replaced with U+FFFD."),
"invalid-codepoint":
_("Invalid codepoint in stream."),
"incorrectly-placed-so... | gpl-3.0 | -8,795,280,964,289,582,000 | 27.13982 | 94 | 0.498603 | false |
cselis86/edx-platform | lms/djangoapps/notes/api.py | 165 | 7855 | from opaque_keys.edx.locations import SlashSeparatedCourseKey
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse, Http404
from django.core.exceptions import ValidationError
from notes.models import Note
from notes.utils import notes_enabled_for_course
from courseware.courses... | agpl-3.0 | -1,831,694,184,086,946,300 | 29.925197 | 115 | 0.647104 | false |
danielpalomino/gem5 | src/arch/x86/isa/insts/general_purpose/control_transfer/jump.py | 40 | 5389 | # Copyright (c) 2007 The Hewlett-Packard Development Company
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implemen... | bsd-3-clause | 6,019,071,972,304,923,000 | 29.971264 | 72 | 0.696419 | false |
gmacchi93/serverInfoParaguay | apps/venv/lib/python2.7/site-packages/django/middleware/locale.py | 85 | 3156 | "This is the locale selecting middleware that will look at accept headers"
from django.conf import settings
from django.core.urlresolvers import (
LocaleRegexURLResolver, get_resolver, get_script_prefix, is_valid_path,
)
from django.http import HttpResponseRedirect
from django.utils import translation
from django.... | apache-2.0 | -3,226,576,463,676,864,500 | 41.08 | 82 | 0.613435 | false |
bwhmather/wmii | alternative_wmiircs/python/pyxp/client.py | 9 | 9838 | # Copyright (C) 2009 Kris Maglione
import operator
import os
import re
import sys
from threading import *
import traceback
import pyxp
from pyxp import fcall, fields
from pyxp.mux import Mux
from pyxp.types import *
if os.environ.get('NAMESPACE', None):
namespace = os.environ['NAMESPACE']
else:
try:
... | mit | 1,797,695,052,249,184,500 | 27.270115 | 86 | 0.494511 | false |
furkantokac/Faunus | src/utilinux.py | 1 | 3351 | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import subprocess, os, socket
def validate_ip(addr):
try:
socket.inet_aton(addr)
return True # legal
except socket.error:
return False # Not legal
def get_stdout(pi):
result = pi.communicate()
if len(result[0])>0:
return resu... | mit | 3,148,119,722,267,052,000 | 25.1875 | 101 | 0.604297 | false |
zycdragonball/tensorflow | tensorflow/contrib/framework/python/framework/tensor_util.py | 48 | 10771 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 5,745,323,022,520,242,000 | 35.886986 | 80 | 0.676725 | false |
kmolab/kmolab.github.io | data/Brython-3.3.4/Lib/test/test_urllib2.py | 24 | 61773 | import unittest
from test import support
import os
import io
import socket
import array
import sys
import urllib.request
# The proxy bypass method imported below has logic specific to the OSX
# proxy config data structure but is testable on all platforms.
from urllib.request import Request, OpenerDirector, _proxy_byp... | agpl-3.0 | -5,734,097,133,676,702,000 | 39.533465 | 83 | 0.567513 | false |
ywcui1990/nupic.research | projects/vehicle-control/agent/run_sm.py | 6 | 7819 | #!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2015, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions ... | agpl-3.0 | 2,449,206,957,233,335,300 | 28.066914 | 130 | 0.654687 | false |
morelab/weblabdeusto | server/launch/sample_balanced2_concurrent_experiments/main_machine/lab_and_experiment1/experiment48/server_config.py | 968 | 1526 | #!/usr/bin/env python
#-*-*- encoding: utf-8 -*-*-
weblab_xilinx_experiment_xilinx_device = 'FPGA'
weblab_xilinx_experiment_port_number = 1
# This should be something like this:
# import os as _os
# xilinx_home = _os.getenv('XILINX_HOME')
# if xilinx_home == None:
# if _os.name == 'nt':
# xilinx_home = r'C:... | bsd-2-clause | 6,883,212,198,247,922,000 | 32.911111 | 116 | 0.68152 | false |
ahujamoh/seldon-server | scripts/zookeeper/set-client-config.py | 7 | 1898 | #!/usr/bin/env python
import sys, getopt, argparse
from kazoo.client import KazooClient
import json
def loadZookeeperOptions(opts,zk):
node = "/all_clients/"+opts['client']+"/offline/semvec"
if zk.exists(node):
data, stat = zk.get(node)
jStr = data.decode("utf-8")
print "Found zookeeper... | apache-2.0 | -7,577,533,050,142,838,000 | 31.724138 | 91 | 0.564805 | false |
mhabrnal/abrt | tests/runtests/abrt-cli-report-mantisbt/fakefaf.py | 6 | 1502 | #!/usr/bin/env python
# Single purpose HTTP server
# - accepts POST of ureport JSON and dumps it to a file
import sys
import json
import BaseHTTPServer, cgi
class Handler(BaseHTTPServer.BaseHTTPRequestHandler):
def do_POST(self):
# parse form data
form = cgi.FieldStorage(
fp=self.rfile... | gpl-2.0 | -9,040,532,042,226,652,000 | 29.04 | 75 | 0.551265 | false |
h3biomed/ansible | lib/ansible/plugins/doc_fragments/default_callback.py | 3 | 1911 | # -*- coding: utf-8 -*-
# Copyright: (c) 2017, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
class ModuleDocFragment(object):
DOCUMENTATION = r'''
options:
display_skipped_hosts:
name: Show skipped hosts
description: "Toggl... | gpl-3.0 | 5,353,748,675,572,584,000 | 31.948276 | 114 | 0.59079 | false |
pyfa-org/Pyfa | eos/saveddata/fighterAbility.py | 2 | 5835 | # ===============================================================================
# Copyright (C) 2010 Diego Duclos
#
# This file is part of eos.
#
# eos is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, ... | gpl-3.0 | 1,730,855,668,616,154,600 | 37.388158 | 134 | 0.631705 | false |
jallohm/django | tests/template_tests/syntax_tests/test_extends.py | 83 | 15481 | from django.test import SimpleTestCase
from ..utils import setup
inheritance_templates = {
'inheritance01': "1{% block first %}&{% endblock %}3{% block second %}_{% endblock %}",
'inheritance02': "{% extends 'inheritance01' %}"
"{% block first %}2{% endblock %}{% block second %}4{% endblo... | bsd-3-clause | 7,454,957,381,154,839,000 | 38.093434 | 121 | 0.606744 | false |
pgleeson/TestArea | lib/jython/Lib/test/test_cl.py | 31 | 3929 | #! /usr/bin/env python
"""Whimpy test script for the cl module
Roger E. Masse
"""
import cl
from test.test_support import verbose
clattrs = ['ADDED_ALGORITHM_ERROR', 'ALAW', 'ALGORITHM_ID',
'ALGORITHM_VERSION', 'AUDIO', 'AWARE_ERROR', 'AWARE_MPEG_AUDIO',
'AWARE_MULTIRATE', 'AWCMP_CONST_QUAL', 'AWCMP_FIXED_RATE',
'A... | gpl-2.0 | 6,156,309,849,971,909,000 | 49.371795 | 70 | 0.697888 | false |
vrenaville/ngo-addons-backport | openerp/addons/base/ir/ir_exports.py | 72 | 1721 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the... | agpl-3.0 | 8,530,300,790,177,927,000 | 35.617021 | 94 | 0.589192 | false |
josyb/myhdl | cosimulation/test/test_bin2gray.py | 4 | 2691 | import unittest
from unittest import TestCase
from myhdl import Simulation, Signal, delay, intbv, bin
from bin2gray import bin2gray
MAX_WIDTH = 10
def nextLn(Ln):
""" Return Gray code Ln+1, given Ln. """
Ln0 = ['0' + codeword for codeword in Ln]
Ln1 = ['1' + codeword for codeword in Ln]
Ln1.reverse(... | lgpl-2.1 | -7,735,305,907,664,894,000 | 23.463636 | 71 | 0.466741 | false |
openstack/futurist | releasenotes/source/conf.py | 1 | 8555 | # -*- coding: utf-8 -*-
# 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... | apache-2.0 | -3,698,890,901,426,041,000 | 31.777778 | 79 | 0.708124 | false |
anchore/anchore-engine | tests/integration/services/policy_engine/engine/policy/gates/test_vulnerabilities.py | 1 | 5979 | import pytest
from anchore_engine.services.policy_engine.engine.policy.gates.vulnerabilities import (
VulnerabilitiesGate,
UnsupportedDistroTrigger,
FeedOutOfDateTrigger,
VulnerabilityMatchTrigger,
)
from anchore_engine.db import Image, get_thread_scoped_session
from tests.integration.services.policy_e... | apache-2.0 | 2,048,998,247,285,682,700 | 31.494565 | 96 | 0.588225 | false |
codilime/cloudify-agent | cloudify_agent/api/pm/nssm.py | 1 | 7393 | #########
# Copyright (c) 2015 GigaSpaces Technologies Ltd. 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... | apache-2.0 | 4,193,093,223,739,896,300 | 37.108247 | 79 | 0.6145 | false |
ghickman/django | tests/admin_widgets/tests.py | 2 | 58590 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import gettext
import os
from datetime import datetime, timedelta
from importlib import import_module
from unittest import skipIf
from django import forms
from django.conf import settings
from django.contrib import admin
from django.contrib.admin import ... | bsd-3-clause | 5,103,426,652,341,202,000 | 43.877395 | 119 | 0.620524 | false |
mediatum/mediatum | metadata/list.py | 1 | 7868 | """
mediatum - a multimedia content repository
Copyright (C) 2007 Arne Seifert <seiferta@in.tum.de>
Copyright (C) 2007 Matthias Kramm <kramm@in.tum.de>
Copyright (C) 2012 Iryna Feuerstein <feuersti@in.tum.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Gene... | gpl-3.0 | 5,651,938,077,670,280,000 | 39.142857 | 120 | 0.534443 | false |
varunkumta/azure-linux-extensions | CustomScript/azure/servicemanagement/websitemanagementservice.py | 46 | 10015 | #-------------------------------------------------------------------------
# Copyright (c) Microsoft. 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.apac... | apache-2.0 | 2,105,203,108,201,576,400 | 41.617021 | 147 | 0.588717 | false |
codekaki/odoo | addons/hr_timesheet/hr_timesheet.py | 39 | 9938 | # -*- 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 | -7,368,773,884,944,683,000 | 44.797235 | 191 | 0.59509 | false |
matbu/ansible-modules-extras | cloud/centurylink/clc_modify_server.py | 48 | 35314 | #!/usr/bin/python
#
# Copyright (c) 2015 CenturyLink
#
# 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 3 of the License, or
# (at your option) any la... | gpl-3.0 | -9,147,589,440,165,450,000 | 34.997961 | 119 | 0.52642 | false |
OndrejIT/pyload | module/gui/ConnectionManager.py | 41 | 11002 | # -*- coding: utf-8 -*-
"""
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.
This program is distributed in ... | gpl-3.0 | -338,773,994,099,214,100 | 35.430464 | 134 | 0.544901 | false |
nakagami/reportlab | src/tools/utils/dumpttf.py | 10 | 1887 | __all__=('dumpttf',)
def dumpttf(fn,fontName=None, verbose=0):
'''dump out known glyphs from a ttf file'''
import os
if not os.path.isfile(fn):
raise IOError('No such file "%s"' % fn)
from reportlab.pdfbase.pdfmetrics import registerFont, stringWidth
from reportlab.pdfbase.ttfonts import TTF... | bsd-3-clause | -8,049,532,288,049,378,000 | 30.45 | 88 | 0.564388 | 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.