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 |
|---|---|---|---|---|---|---|---|---|---|---|
Alwnikrotikz/visvis.dev | core/orientation.py | 5 | 6451 | # -*- coding: utf-8 -*-
# Copyright (C) 2012, Almar Klein
#
# Visvis is distributed under the terms of the (new) BSD License.
# The full license can be found in 'license.txt'.
""" Module baseWobjects
Defines the mix class for orientable wobjects.
"""
import numpy as np
from visvis.core import misc
from visvis.pypoi... | bsd-3-clause | -4,064,351,584,112,723,500 | 38.335366 | 93 | 0.569679 | false |
juanc27/myfavteam | news/nba_news.py | 2 | 9360 | from newspaper import Article, Config
from bs4 import BeautifulSoup
from urllib2 import urlopen
import datetime
import re
from collections import OrderedDict
import pytz
from pytz import timezone
from dateutil.parser import parse
nba_url = "http://www.nba.com"
espn_url = "http://espn.go.com"
#lxml didn't work for es... | mit | 6,313,839,723,252,596,000 | 31.61324 | 92 | 0.559722 | false |
rollokb/django-mailgun | django_mailgun.py | 1 | 5894 | from __future__ import unicode_literals
import six
import requests
from django.conf import settings
from django.core.mail.backends.base import BaseEmailBackend
from django.core.mail.message import sanitize_address
from requests.packages.urllib3.filepost import encode_multipart_formdata
__version__ = '0.7.1'
version ... | mit | 1,728,921,739,636,360,000 | 35.8375 | 96 | 0.583305 | false |
opendatateam/udata | udata/frontend/__init__.py | 1 | 1614 | import inspect
import logging
from importlib import import_module
from jinja2 import Markup
from udata import assets, entrypoints
from .markdown import UdataCleaner, init_app as init_markdown
log = logging.getLogger(__name__)
class SafeMarkup(Markup):
'''Markup object bypasses Jinja's escaping. This override... | agpl-3.0 | 7,320,030,350,934,159,000 | 28.888889 | 103 | 0.679058 | false |
CoDEmanX/ArangoDB | 3rdParty/V8-4.3.61/third_party/python_26/Lib/encodings/iso2022_jp_2.py | 816 | 1061 | #
# iso2022_jp_2.py: Python Unicode Codec for ISO2022_JP_2
#
# Written by Hye-Shik Chang <perky@FreeBSD.org>
#
import _codecs_iso2022, codecs
import _multibytecodec as mbc
codec = _codecs_iso2022.getcodec('iso2022_jp_2')
class Codec(codecs.Codec):
encode = codec.encode
decode = codec.decode
class Incrementa... | apache-2.0 | -4,348,393,940,529,492,500 | 26.205128 | 74 | 0.702168 | false |
Zen-CODE/kivybits | Examples/DynamicUI/main.py | 1 | 3087 | """
Small app demonstrating a dynamic UI
Author: ZenCODE
Date: 22/10/2013
"""
from kivy.lang import Builder
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.factory import Factory
class DataSource(object):
"""
This class would be an abstraction of your data source:
the MySQLdb... | mit | 7,099,345,708,829,937,000 | 29.564356 | 86 | 0.568837 | false |
a-parhom/edx-platform | openedx/core/djangoapps/credit/signals.py | 18 | 3705 | """
This file contains receivers of course publication signals.
"""
import logging
from django.dispatch import receiver
from django.utils import timezone
from opaque_keys.edx.keys import CourseKey
from openedx.core.djangoapps.signals.signals import COURSE_GRADE_CHANGED
log = logging.getLogger(__name__)
def on_cou... | agpl-3.0 | -740,572,477,190,660,100 | 38 | 128 | 0.586235 | false |
mitchellcash/ion | qa/rpc-tests/txn_doublespend.py | 1 | 5059 | #!/usr/bin/env python2
# Copyright (c) 2014-2018 The Bitcoin Core developers
# Copyright (c) 2015-2018 The PIVX developers
# Copyright (c) 2018 The Ion developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test proper acc... | mit | 9,000,425,572,157,098,000 | 40.467213 | 111 | 0.635896 | false |
louisLouL/pair_trading | capstone_env/lib/python3.6/site-packages/pandas/tests/tools/test_numeric.py | 6 | 14437 | import pytest
import decimal
import numpy as np
import pandas as pd
from pandas import to_numeric, _np_version_under1p9
from pandas.util import testing as tm
from numpy import iinfo
class TestToNumeric(object):
def test_empty(self):
# see gh-16302
s = pd.Series([], dtype=object)
res = ... | mit | -1,611,026,365,908,463,400 | 36.401554 | 79 | 0.549837 | false |
Hassan93/openTima | node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py | 2485 | 5536 | # This file comes from
# https://github.com/martine/ninja/blob/master/misc/ninja_syntax.py
# Do not edit! Edit the upstream one instead.
"""Python module for generating .ninja files.
Note that this is emphatically not a required piece of Ninja; it's
just a helpful utility for build-file-generation systems that alr... | gpl-2.0 | -7,489,120,442,481,716,000 | 33.6 | 80 | 0.551662 | false |
alxgu/ansible | lib/ansible/modules/network/netvisor/_pn_trunk.py | 47 | 14298 | #!/usr/bin/python
""" PN CLI trunk-create/trunk-delete/trunk-modify """
#
# 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 y... | gpl-3.0 | -1,846,130,167,162,037,000 | 29.748387 | 81 | 0.602812 | false |
DoubleNegativeVisualEffects/gaffer | python/Gaffer/InfoPathFilter.py | 5 | 2873 | ##########################################################################
#
# Copyright (c) 2012, Image Engine Design 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:
#
# * Red... | bsd-3-clause | -9,201,933,831,618,949,000 | 35.367089 | 77 | 0.666551 | false |
kefo/moto | moto/dynamodb2/comparisons.py | 4 | 1528 | from __future__ import unicode_literals
# TODO add tests for all of these
EQ_FUNCTION = lambda item_value, test_value: item_value == test_value # flake8: noqa
NE_FUNCTION = lambda item_value, test_value: item_value != test_value # flake8: noqa
LE_FUNCTION = lambda item_value, test_value: item_value <= test_value # ... | apache-2.0 | -8,555,215,095,376,118,000 | 36.268293 | 121 | 0.674084 | false |
zstackorg/zstack-woodpecker | integrationtest/vm/multihosts/bs/test_iso_vm_del_ops_all_expg_hot_migrate.py | 1 | 4687 | '''
Test for deleting vm iso check vm all operations and expunge vm check change os.
@author: SyZhao
'''
import os
import apibinding.inventory as inventory
import zstackwoodpecker.test_util as test_util
import zstackwoodpecker.test_state as test_state
import zstackwoodpecker.test_lib as test_lib
import zstackwoodpecke... | apache-2.0 | -4,563,834,138,471,196,000 | 35.333333 | 135 | 0.706635 | false |
kakunbsc/enigma2.1 | lib/python/Screens/VirtualKeyBoard.py | 2 | 10905 | # -*- coding: iso-8859-1 -*-
from Components.Language import language
from Components.ActionMap import ActionMap
from Components.Label import Label
from Components.Pixmap import Pixmap
from Components.MenuList import MenuList
from Components.MultiContent import MultiContentEntryText, MultiContentEntryPixmapAlphaTest
fr... | gpl-2.0 | -6,924,088,789,754,726,000 | 33.729299 | 132 | 0.576341 | false |
rhjdjong/Slip | tests/integration/test_slip_file_unbuffered.py | 2 | 1139 | # Copyright (c) 2020. Ruud de Jong
# This file is part of the SlipLib project which is released under the MIT license.
# See https://github.com/rhjdjong/SlipLib for details.
# pylint: disable=relative-beyond-top-level
"""Test using SlipStream with an unbuffered file"""
from sliplib import encode, SlipStream
from ... | mit | 8,260,674,658,288,135,000 | 34.59375 | 84 | 0.65496 | false |
ff94315/hiwifi-openwrt-HC5661-HC5761 | staging_dir/target-mipsel_r2_uClibc-0.9.33.2/usr/lib/python2.7/abc.py | 488 | 7145 | # Copyright 2007 Google, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
"""Abstract Base Classes (ABCs) according to PEP 3119."""
import types
from _weakrefset import WeakSet
# Instance of old-style class
class _C: pass
_InstanceType = type(_C())
def abstractmethod(funcobj):
"""A d... | gpl-2.0 | -430,393,113,692,658,500 | 37.621622 | 79 | 0.611337 | false |
baylee/django | tests/staticfiles_tests/cases.py | 38 | 4503 | # -*- encoding: utf-8 -*-
from __future__ import unicode_literals
import codecs
import os
import shutil
import tempfile
from django.conf import settings
from django.core.management import call_command
from django.template import Context, Template
from django.test import SimpleTestCase, override_settings
from django.u... | bsd-3-clause | 1,951,230,834,800,181,000 | 32.325926 | 99 | 0.647477 | false |
calroc/Tkinter3D | neat_demo.py | 1 | 1755 | #!/usr/bin/env python
#
# Copyright 2011, 2012, 2013, 2014 Simon Forman
#
# This file is part of Tkinter3D.
#
# Tkinter3D 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 ... | gpl-3.0 | 5,097,531,412,627,403,000 | 25.590909 | 73 | 0.698006 | false |
nanchenchen/emoticon-analysis | emoticonvis/apps/enhance/management/commands/build_tweet_dictionary.py | 1 | 1427 | from django.core.management.base import BaseCommand, make_option, CommandError
from time import time
import path
from django.db import transaction
class Command(BaseCommand):
help = "From Tweet Parser results, extract words and connect with messages for a dataset."
args = '<dataset_id> <parsed_filename> [...]'... | mit | -8,923,610,039,147,219,000 | 37.594595 | 97 | 0.622285 | false |
hamiltont/CouchPotatoServer | libs/oauthlib/oauth1/rfc5849/signature.py | 112 | 19020 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
"""
oauthlib.oauth1.rfc5849.signature
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This module represents a direct implementation of `section 3.4`_ of the spec.
Terminology:
* Client: software interfacing with an OAuth API
* Server: the API provider
* Resource Ow... | gpl-3.0 | -4,068,094,883,390,585,000 | 36.964072 | 99 | 0.583649 | false |
indashnet/InDashNet.Open.UN2000 | android/external/antlr/antlr-3.4/runtime/Python/tests/t047treeparser.py | 20 | 4342 | import unittest
import textwrap
import antlr3
import antlr3.tree
import testbase
class T(testbase.ANTLRTest):
def walkerClass(self, base):
class TWalker(base):
def __init__(self, *args, **kwargs):
base.__init__(self, *args, **kwargs)
self.traces = []
... | apache-2.0 | 1,523,813,629,345,287,200 | 34.590164 | 241 | 0.500921 | false |
hillwoodroc/deepin-music-player | src/common.py | 1 | 3015 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2011 ~ 2012 Deepin, Inc.
# 2011 ~ 2012 Hou Shaohui
#
# Author: Hou Shaohui <houshao55@gmail.com>
# Maintainer: Hou Shaohui <houshao55@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the ter... | gpl-3.0 | 2,009,000,018,069,555,200 | 32.876404 | 85 | 0.635489 | false |
Stavitsky/neutron | neutron/common/topics.py | 45 | 1863 | # Copyright (c) 2012 OpenStack Foundation.
#
# 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... | apache-2.0 | -5,900,867,314,987,998,000 | 31.12069 | 70 | 0.706388 | false |
hellozt/gnome15 | src/gamewrap/gw/__init__.py | 8 | 4907 | # Gnome15 - Suite of tools for the Logitech G series keyboards and headsets
# Copyright (C) 2011 Brett Smith <tanktarta@blueyonder.co.uk>
#
# 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, e... | gpl-3.0 | 7,160,617,263,435,965,000 | 33.321678 | 126 | 0.618504 | false |
axonchisel/ax_metrics | py/axonchisel/metrics/foundation/metricdef/mdefl.py | 1 | 9203 | """
Ax_Metrics - MDefL Metric Definition Language Parser
------------------------------------------------------------------------------
Author: Dan Kamins <dos at axonchisel dot net>
Copyright (c) 2014 Dan Kamins, AxonChisel.net
"""
# ----------------------------------------------------------------------------
imp... | mit | 4,013,234,294,652,391,000 | 28.031546 | 78 | 0.557644 | false |
jtyr/ansible-modules-extras | notification/sns.py | 31 | 6005 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2014, Michael J. Schultz <mjschultz@gmail.com>
#
# 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 ... | gpl-3.0 | -6,877,596,757,618,771,000 | 28.875622 | 119 | 0.657286 | false |
tysonclugg/django | django/db/models/fields/files.py | 19 | 17906 | import datetime
import posixpath
from django import forms
from django.core import checks
from django.core.files.base import File
from django.core.files.images import ImageFile
from django.core.files.storage import default_storage
from django.db.models import signals
from django.db.models.fields import Field
from djang... | bsd-3-clause | -7,213,573,523,506,420,000 | 37.673866 | 100 | 0.617726 | false |
isrohutamahopetechnik/ardupilot | mk/PX4/Tools/genmsg/src/genmsg/msgs.py | 161 | 12254 | # Software License Agreement (BSD License)
#
# Copyright (c) 2008, Willow Garage, 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... | gpl-3.0 | 258,773,398,167,689,250 | 34.111748 | 109 | 0.594173 | false |
berrange/nova | nova/virt/hyperv/vmutils.py | 8 | 29325 | # Copyright (c) 2010 Cloud.com, Inc
# Copyright 2012 Cloudbase Solutions Srl / Pedro Navarro Perez
# 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
#
# ... | apache-2.0 | 5,866,014,623,009,019,000 | 41.377168 | 79 | 0.573708 | false |
steventimberman/masterDebater | env/lib/python2.7/site-packages/django/db/backends/postgresql/creation.py | 58 | 2275 | import sys
from django.db.backends.base.creation import BaseDatabaseCreation
class DatabaseCreation(BaseDatabaseCreation):
def _quote_name(self, name):
return self.connection.ops.quote_name(name)
def _get_database_create_suffix(self, encoding=None, template=None):
suffix = ""
if enc... | mit | -5,228,488,110,730,801,000 | 39.625 | 101 | 0.582418 | false |
ecolitan/fatics | venv/lib/python2.7/site-packages/twisted/application/app.py | 13 | 22166 | # -*- test-case-name: twisted.test.test_application,twisted.test.test_twistd -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
import sys, os, pdb, getpass, traceback, signal
from operator import attrgetter
from twisted.python import runtime, log, usage, failure, util, logfile
from twisted.p... | agpl-3.0 | 92,364,532,039,956,690 | 31.88724 | 89 | 0.599883 | false |
bonsai-team/matam | scripts/fastq_get_pairs.py | 3 | 4310 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
fastq_get_pairs
Description: Retrieve paired and singleton reads from a single fastq file
fastq_get_pairs.py -i input.fq
-----------------------------------------------------------------------
Author: This software is written and maintained by Pierre Pericard
(p... | agpl-3.0 | -3,224,927,057,190,629,400 | 30.925926 | 105 | 0.592807 | false |
philanthropy-u/edx-platform | lms/djangoapps/grades/migrations/0013_persistentsubsectiongradeoverride.py | 21 | 1201 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from coursewarehistoryextended.fields import UnsignedBigIntOneToOneField
class Migration(migrations.Migration):
dependencies = [
('grades', '0012_computegradessetting'),
]
operations = [
... | agpl-3.0 | -183,943,342,400,203,200 | 40.413793 | 119 | 0.631973 | false |
farhi-naz/phantomjs | src/qt/qtwebkit/Tools/Scripts/webkitpy/tool/steps/applywatchlist_unittest.py | 124 | 2302 | # Copyright (C) 2011 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | bsd-3-clause | -3,476,106,841,369,863,700 | 44.137255 | 84 | 0.752389 | false |
pferreir/indico-backup | indico/tests/python/unit/indico_tests/modules_tests/scheduler_tests/tasks_test.py | 1 | 2783 | # -*- coding: utf-8 -*-
##
##
## This file is part of Indico.
## Copyright (C) 2002 - 2014 European Organization for Nuclear Research (CERN).
##
## Indico is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; eith... | gpl-3.0 | 2,951,336,387,316,187,600 | 41.815385 | 82 | 0.671577 | false |
PersonalGenomesOrg/open-humans | data_import/templatetags/data_import.py | 2 | 1245 | from django import template
from django.apps import apps
from private_sharing.models import project_membership_visible
from public_data.models import is_public
register = template.Library()
@register.simple_tag
def source_is_connected(source, user):
"""
Return True if the given source is connected (has the ... | mit | 2,835,184,546,305,820,000 | 26.666667 | 75 | 0.718876 | false |
kirillzhuravlev/numpy | numpy/ma/tests/test_regression.py | 113 | 2470 | from __future__ import division, absolute_import, print_function
import warnings
import numpy as np
from numpy.testing import (assert_, TestCase, assert_array_equal,
assert_allclose, run_module_suite)
from numpy.compat import sixu
rlevel = 1
class TestRegression(TestCase):
def test_m... | bsd-3-clause | -1,710,622,473,703,747,000 | 29.875 | 74 | 0.542105 | false |
salaria/odoo | addons/hr_timesheet_invoice/wizard/__init__.py | 433 | 1159 | # -*- 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,345,627,282,409,993,700 | 41.925926 | 78 | 0.634167 | false |
aospx-kitkat/platform_external_chromium_org | chrome/test/functional/multiprofile.py | 50 | 13257 | #!/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.
import re
import pyauto_functional
import pyauto
class MultiprofileTest(pyauto.PyUITest):
"""Tests for Multi-Profile / Multi-u... | bsd-3-clause | -64,203,652,193,483,420 | 41.219745 | 79 | 0.686204 | false |
wolfskaempf/ga_statistics | lib/python2.7/site-packages/crispy_forms/layout.py | 10 | 15081 | import warnings
from django.conf import settings
from django.template import Context, Template
from django.template.loader import render_to_string
from django.utils.html import conditional_escape
from crispy_forms.compatibility import string_types, text_type
from crispy_forms.utils import render_field, flatatt
TEMPL... | mit | -5,088,395,528,216,756,000 | 33.042889 | 137 | 0.591804 | false |
Lamecarlate/gourmet | gourmet/gglobals.py | 6 | 6335 | import os, os.path, gobject, re, gtk
import tempfile
from gdebug import debug
from OptionParser import args
from util import windows
tmpdir = tempfile.gettempdir()
if args.gourmetdir:
gourmetdir = args.gourmetdir
debug("User specified gourmetdir %s"%gourmetdir,0)
else:
if os.name =='nt':
# Under W... | gpl-2.0 | 4,074,403,741,678,433,000 | 34.391061 | 131 | 0.576638 | false |
aosagie/spark | examples/src/main/python/ml/onehot_encoder_example.py | 31 | 1638 | #
# 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 | 7,084,640,044,498,938,000 | 32.428571 | 77 | 0.673993 | false |
simbits/Lumiere | bulb/bulb.py | 1 | 5877 | #!/usr/bin/env python
from pyomxplayer import OMXPlayer
import RPi.GPIO as GPIO
import pprint
import random
import socket
import struct
import sys
import time
import traceback
DRAWERS = 9
MCAST_GRP = '224.19.79.1'
MCAST_PORT = 9999
MOVIE_PATH = '/usr/share/lumiere/media'
MOVIE_SUFFIX = 'mp4'
MOVIE_LIST = [ '%s/%d.%s... | mit | 708,628,124,309,549,600 | 27.950739 | 95 | 0.546708 | false |
medspx/QGIS | python/plugins/processing/gui/PointSelectionPanel.py | 8 | 3303 | # -*- coding: utf-8 -*-
"""
***************************************************************************
PointSelectionPanel.py
---------------------
Date : February 2016
Copyright : (C) 2016 by Alexander Bruy
Email : alexander dot bruy at gmail dot com
****... | gpl-2.0 | -8,217,441,572,238,531,000 | 31.382353 | 75 | 0.50439 | false |
timokoola/finnegan | fwtweeter.py | 1 | 2453 | #!/usr/bin/python
import tweepy, sys, os
from collections import Counter
import re
import argparse # requires 2.7
import time
class TweepyHelper:
def __init__(self,keyfile):
f = open(keyfile)
lines = f.readlines()
f.close()
consumerkey = lines[0].split("#")[0]
consumersecre... | apache-2.0 | 4,428,032,999,088,167,000 | 26.875 | 116 | 0.563392 | false |
ianatpn/nupictest | examples/opf/experiments/anomaly/temporal/saw_200/description.py | 3 | 14514 | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... | gpl-3.0 | -4,111,900,825,612,882,400 | 37.498674 | 102 | 0.605278 | false |
poguez/datacats | datacats/cli/purge.py | 8 | 2153 | # Copyright 2014-2015 Boxkite Inc.
# This file is part of the DataCats package and is released under
# the terms of the GNU Affero General Public License version 3.0.
# See LICENSE.txt or http://www.fsf.org/licensing/licenses/agpl-3.0.html
from shutil import rmtree
from datacats.environment import Environment, Datac... | agpl-3.0 | -233,034,424,256,929,820 | 35.491525 | 95 | 0.673479 | false |
klonage/nlt-gcs | Lib/site-packages/scipy/special/utils/makenpz.py | 57 | 2159 | #!/bin/bash
"""
makenpz.py DIRECTORY
Build a npz containing all data files in the directory.
"""
import os
import numpy as np
from optparse import OptionParser
def main():
p = OptionParser()
options, args = p.parse_args()
if len(args) != 1:
p.error("no valid directory given")
inp = args[0]
... | gpl-3.0 | -1,029,903,024,829,332,900 | 25.329268 | 82 | 0.547939 | false |
chengdh/openerp-ktv | openerp/addons/auction/report/buyer_form_report.py | 9 | 2671 | # -*- 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 | -4,328,688,751,632,081,000 | 37.710145 | 138 | 0.588544 | false |
simonwydooghe/ansible | lib/ansible/plugins/connection/__init__.py | 26 | 16411 | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
# (c) 2015 Toshio Kuratomi <tkuratomi@ansible.com>
# (c) 2017, Peter Sprygada <psprygad@redhat.com>
# (c) 2017 Ansible Project
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import fcntl
import os
import shlex
from abc... | gpl-3.0 | 4,923,437,112,592,569,000 | 41.848564 | 140 | 0.640851 | false |
40223119/2015w13-1 | static/Brython3.1.3-20150514-095342/Lib/socket.py | 730 | 14913 | # Wrapper module for _socket, providing some additional facilities
# implemented in Python.
"""\
This module provides socket operations and some related functions.
On Unix, it supports IP (Internet Protocol) and Unix domain sockets.
On other systems, it only supports IP. Functions specific for a
socket are available a... | gpl-3.0 | 2,818,364,267,610,992,600 | 33.125858 | 87 | 0.603836 | false |
anthonypdawson/LazyLibrarian | lazylibrarian/webServe.py | 1 | 15735 | import os, cherrypy, urllib
from cherrypy.lib.static import serve_file
from mako.template import Template
from mako.lookup import TemplateLookup
from mako import exceptions
import threading, time
import lazylibrarian
from lazylibrarian import logger, importer, database, postprocess, formatter
from lazylibrarian.sear... | gpl-3.0 | -2,966,894,634,946,641,000 | 42.952514 | 218 | 0.617604 | false |
apporc/nova | nova/db/sqlalchemy/migrate_repo/versions/234_add_expire_reservations_index.py | 146 | 1511 | # All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | apache-2.0 | -7,092,286,350,196,333,000 | 32.577778 | 78 | 0.688948 | false |
andrewruba/YangLab | SlideBook spl file converter/spl_reader python 3.py | 1 | 7317 | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 15 12:40:19 2017
@author: Andrew Ruba
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
(a... | gpl-3.0 | -4,749,608,567,652,602,000 | 32.523585 | 130 | 0.510182 | false |
multikatt/CouchPotatoServer | libs/pyasn1/debug.py | 161 | 3044 | import time
import logging
from pyasn1.compat.octets import octs2ints
from pyasn1 import error
from pyasn1 import __version__
flagNone = 0x0000
flagEncoder = 0x0001
flagDecoder = 0x0002
flagAll = 0xffff
flagMap = {
'encoder': flagEncoder,
'decoder': flagDecoder,
'all': flagAll
}
class Prin... | gpl-3.0 | -1,125,818,364,910,566,000 | 26.672727 | 87 | 0.550263 | false |
Vagab0nd/SiCKRAGE | lib3/imdb/Movie.py | 1 | 13758 | # Copyright 2004-2018 Davide Alberani <da@erlug.linux.it>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This pro... | gpl-3.0 | 7,876,707,654,463,566,000 | 38.994186 | 100 | 0.562364 | false |
Therp/odoo | addons/account_bank_statement_extensions/account_bank_statement.py | 179 | 6737 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
#
# Copyright (c) 2011 Noviat nv/sa (www.noviat.be). All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under ... | agpl-3.0 | -3,009,342,559,880,495,000 | 47.818841 | 126 | 0.606353 | false |
bbbenja/SickRage | lib/unidecode/x00c.py | 252 | 4102 | data = (
'[?]', # 0x00
'N', # 0x01
'N', # 0x02
'H', # 0x03
'[?]', # 0x04
'a', # 0x05
'aa', # 0x06
'i', # 0x07
'ii', # 0x08
'u', # 0x09
'uu', # 0x0a
'R', # 0x0b
'L', # 0x0c
'[?]', # 0x0d
'e', # 0x0e
'ee', # 0x0f
'ai', # 0x10
'[?]', # 0x11
'o', # 0x12
'oo', # 0x... | gpl-3.0 | -909,067,443,063,525,800 | 14.961089 | 16 | 0.306192 | false |
BiznetGIO/horizon | openstack_dashboard/dashboards/admin/hypervisors/tables.py | 10 | 3108 | # Copyright 2013 B1 Systems GmbH
#
# 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 ag... | apache-2.0 | -1,137,598,138,281,338,400 | 37.85 | 78 | 0.54601 | false |
rouault/Quantum-GIS | python/plugins/db_manager/db_plugins/postgis/plugins/qgis_topoview/__init__.py | 16 | 11572 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
Name : TopoViewer plugin for DB Manager
Description : Create a project to display topology schema on Qgis
Date : Sep 23, 2011
copyright : (C) 2011 by Giuseppe Suc... | gpl-2.0 | 5,016,330,985,982,223,000 | 41.388278 | 243 | 0.614155 | false |
dotancohen/fleshwound | fleshwound.py | 1 | 3040 | #!/usr/bin/python3
"""
Python script for finding PHP vulnerabilities and coding errors.
TODO
KNOWN ISSUES
Only supports variable assignment on a single line.
Only supports function declaration on a single line.
Does not support code outside functions after function declarations start.
Does not support variables ... | apache-2.0 | 4,311,094,756,140,839,000 | 21.189781 | 96 | 0.677632 | false |
benbox69/pyload | module/plugins/crypter/QuickshareCzFolder.py | 15 | 1039 | # -*- coding: utf-8 -*-
import re
from module.plugins.internal.Crypter import Crypter
class QuickshareCzFolder(Crypter):
__name__ = "QuickshareCzFolder"
__type__ = "crypter"
__version__ = "0.12"
__status__ = "testing"
__pattern__ = r'http://(?:www\.)?quickshare\.cz/slozka-\d+'
__confi... | gpl-3.0 | 577,424,268,478,965,400 | 31.46875 | 95 | 0.570741 | false |
defivelo/django-parler | example/example/settings.py | 6 | 3432 | # Django settings for example project.
import django
from os.path import join, dirname, realpath
SRC_DIR = dirname(dirname(realpath(__file__)))
# Add parent path,
# Allow starting the app without installing the module.
import sys
sys.path.insert(0, dirname(SRC_DIR))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
... | apache-2.0 | -7,059,855,951,003,056,000 | 23.869565 | 126 | 0.634615 | false |
ivirshup/bioconda-recipes | recipes/biopet-sampleconfig/0.1/biopet-sampleconfig.py | 24 | 3375 | #!/usr/bin/env python
#
# Wrapper script for starting the biopet-sampleconfig JAR package
#
# This script is written for use with the Conda package manager and is copied
# from the peptide-shaker wrapper. Only the parameters are changed.
# (https://github.com/bioconda/bioconda-recipes/blob/master/recipes/peptide-shaker... | mit | 2,883,705,277,276,371,000 | 30.542056 | 101 | 0.645037 | false |
xifle/home-assistant | script/gen_requirements_all.py | 6 | 3683 | #!/usr/bin/env python3
"""Generate an updated requirements_all.txt."""
import importlib
import os
import pkgutil
import re
import sys
COMMENT_REQUIREMENTS = (
'RPi.GPIO',
'rpi-rf',
'Adafruit_Python_DHT',
'fritzconnection',
'pybluez',
'bluepy',
'python-lirc',
'gattlib',
'pyuserinput'... | mit | -2,677,223,878,769,526,000 | 24.755245 | 76 | 0.579962 | false |
jeffery-do/Vizdoombot | doom/lib/python3.5/site-packages/scipy/optimize/_root.py | 109 | 26007 | """
Unified interfaces to root finding algorithms.
Functions
---------
- root : find a root of a vector function.
"""
from __future__ import division, print_function, absolute_import
__all__ = ['root']
import numpy as np
from scipy._lib.six import callable
from warnings import warn
from .optimize import MemoizeJa... | mit | -7,290,366,536,019,230,000 | 39.699531 | 81 | 0.603876 | false |
neerajvashistha/pa-dude | lib/python2.7/site-packages/django/contrib/gis/gdal/prototypes/raster.py | 320 | 4013 | """
This module houses the ctypes function prototypes for GDAL DataSource (raster)
related data structures.
"""
from ctypes import POINTER, c_char_p, c_double, c_int, c_void_p
from functools import partial
from django.contrib.gis.gdal.libgdal import GDAL_VERSION, std_call
from django.contrib.gis.gdal.prototypes.genera... | mit | -5,602,105,714,580,846,000 | 53.22973 | 117 | 0.720658 | false |
latusrepo/propmtime | test_propmtime/test_run.py | 2 | 1532 |
import time
import os
from balsa import get_logger
import propmtime
import test_propmtime
log = get_logger("test_propmtime")
def get_mtimes(root_folder, file_path):
root_mtime = os.path.getmtime(root_folder)
file_mtime = os.path.getmtime(file_path)
log.info('%s mtime : %f' % (root_folder, root_mtime))... | mit | 8,846,400,064,544,931,000 | 25.431034 | 112 | 0.675587 | false |
ariabuckles/pyobjc-framework-Cocoa | PyObjCTest/test_cfnotificationcenter.py | 3 | 4469 | from PyObjCTools.TestSupport import *
from CoreFoundation import *
try:
long
except NameError:
long = int
class TestNotificationCenter (TestCase):
def testTypes(self):
self.assertIsCFType(CFNotificationCenterRef)
def testTypeID(self):
self.assertIsInstance(CFNotificationCenterGetTy... | mit | 8,539,407,397,876,693,000 | 49.213483 | 184 | 0.705974 | false |
googleinterns/cabby | cabby/geo/visualize.py | 1 | 3273 | # coding=utf-8
# Copyright 2020 Google LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | apache-2.0 | 3,070,972,481,918,681,600 | 32.060606 | 75 | 0.664833 | false |
knowsWhereHisTowelIs/pi-pyth-serv-socketio | lib/python3.5/site-packages/pip/_vendor/requests/packages/urllib3/util/retry.py | 360 | 10664 | from __future__ import absolute_import
import time
import logging
from ..exceptions import (
ConnectTimeoutError,
MaxRetryError,
ProtocolError,
ReadTimeoutError,
ResponseError,
)
from ..packages import six
log = logging.getLogger(__name__)
class Retry(object):
""" Retry configuration.
... | mit | 2,026,008,332,306,434,600 | 34.546667 | 84 | 0.620405 | false |
craigderington/studentloan5 | studentloan5/Lib/site-packages/django/contrib/admin/validation.py | 82 | 23810 | from django.contrib.admin.utils import NotRelationField, get_fields_from_path
from django.core.exceptions import FieldDoesNotExist, ImproperlyConfigured
from django.db import models
from django.forms.models import (
BaseModelForm, BaseModelFormSet, _get_foreign_key,
)
"""
Does basic ModelAdmin option validation. C... | bsd-3-clause | 6,608,919,516,173,174,000 | 51.911111 | 114 | 0.542713 | false |
TrevorLowing/PyGames | pysollib/tk/playeroptionsdialog.py | 2 | 6800 | #!/usr/bin/env python
# -*- mode: python; coding: utf-8; -*-
##---------------------------------------------------------------------------##
##
## Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer
## Copyright (C) 2003 Mt. Hood Playing Card Co.
## Copyright (C) 2005-2009 Skomoroh
##
## This program is free ... | gpl-2.0 | -7,864,327,510,845,503,000 | 38.534884 | 79 | 0.558235 | false |
matheus2740/alpha_empire | dgvm/ipc/protocol.py | 1 | 2779 | __author__ = 'salvia'
import pickle
class ICPProtocolException(Exception):
pass
class BaseIPCProtocol(object):
"""
Class which handles how the data is passed through the socket.
This base class implements a very simple mechanism of pickling objects and
prefixing the message with `HEADER_SIZE` h... | gpl-3.0 | -7,973,246,357,053,907,000 | 35.578947 | 111 | 0.65995 | false |
bopo/tablib | tablib/packages/openpyxl/writer/theme.py | 116 | 10933 | # -*- coding: utf-8 -*-
# file openpyxl/writer/theme.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 ... | mit | 8,876,829,156,971,683,000 | 52.787129 | 79 | 0.546157 | false |
mxOBS/deb-pkg_trusty_chromium-browser | third_party/webpagereplay/sslproxy.py | 2 | 3073 | # Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | bsd-3-clause | 3,476,511,761,792,407,600 | 35.152941 | 80 | 0.684022 | false |
bgris/ODL_bgris | lib/python3.5/site-packages/pygments/lexers/data.py | 25 | 18771 | # -*- coding: utf-8 -*-
"""
pygments.lexers.data
~~~~~~~~~~~~~~~~~~~~
Lexers for data file format.
:copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.lexer import RegexLexer, ExtendedRegexLexer, LexerContext, \
... | gpl-3.0 | 5,415,311,125,145,537,000 | 32.821622 | 83 | 0.488679 | false |
Shiroy/servo | tests/wpt/web-platform-tests/tools/pywebsocket/src/example/origin_check_wsh.py | 516 | 1992 | # Copyright 2011, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | mpl-2.0 | 9,109,443,037,294,291,000 | 44.272727 | 74 | 0.75502 | false |
ujjwalwahi/odoo | openerp/report/printscreen/__init__.py | 381 | 1203 | # -*- 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 | -700,976,567,683,866,500 | 37.806452 | 79 | 0.620948 | false |
painnick/linkToEver | slackutil.py | 1 | 1426 | import logging
import time
import slackweb
WEBHOOK = None
logging.config.fileConfig('log.config')
logger = logging.getLogger('slackLogger')
def message(title, link):
attachments = [
{
'fallback': 'Save links to Evernote.',
'color': 'good',
'title': title,
... | gpl-3.0 | 632,782,515,103,001,700 | 19.084507 | 74 | 0.475456 | false |
pabulumm/neighbors | lib/python3.4/site-packages/django/utils/termcolors.py | 76 | 7612 | """
termcolors.py
"""
from django.utils import six
color_names = ('black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white')
foreground = {color_names[x]: '3%s' % x for x in range(8)}
background = {color_names[x]: '4%s' % x for x in range(8)}
RESET = '0'
opt_dict = {'bold': '1', 'underscore': '4', 'blink... | bsd-3-clause | -5,674,969,603,637,028,000 | 33.6 | 89 | 0.526406 | false |
spiegela/elasticsearch | dev-tools/create_bwc_index_with_conficting_mappings.py | 217 | 2963 | import create_bwc_index
import logging
import os
import random
import shutil
import subprocess
import sys
import tempfile
def fetch_version(version):
logging.info('fetching ES version %s' % version)
if subprocess.call([sys.executable, os.path.join(os.path.split(sys.argv[0])[0], 'get-bwc-version.py'), version]) != ... | apache-2.0 | -425,800,938,237,197,000 | 30.860215 | 130 | 0.658117 | false |
sideeffects/stats_houdini | houdini_stats/migrations/0001_initial.py | 1 | 7835 | # encoding: utf-8
import datetime
import south.db
from south.db import dbs
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'MachineConfig'
db = dbs['stats']
db.dry_run = south.db.db.dry_run
... | mit | -5,524,620,849,634,745,000 | 59.736434 | 127 | 0.594767 | false |
chriskmanx/qmole | QMOLEDEV/boost_1_49_0/tools/build/v2/tools/notfile.py | 71 | 1728 | # Status: ported.
# Base revision: 64429.
#
# Copyright (c) 2005-2010 Vladimir Prus.
#
# Use, modification and distribution is subject to the Boost Software
# License Version 1.0. (See accompanying file LICENSE_1_0.txt or
# http://www.boost.org/LICENSE_1_0.txt)
import b2.build.type as type
import b2.build.generat... | gpl-3.0 | 1,317,226,299,949,840,400 | 32.882353 | 94 | 0.663194 | false |
rwl/muntjac | muntjac/demo/sampler/features/commons/BrowserInformation.py | 1 | 1077 |
from muntjac.demo.sampler.APIResource import APIResource
from muntjac.demo.sampler.Feature import Feature, Version
from muntjac.terminal.gwt.server.web_browser import WebBrowser
class BrowserInformation(Feature):
def getDescription(self):
return ('Browser differences are mostly hidden by Muntjac but in ... | apache-2.0 | -7,445,853,048,497,281,000 | 28.916667 | 79 | 0.687094 | false |
BrotherPhil/django | django/conf/locale/eo/formats.py | 504 | 2335 | # -*- 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'j\-\a \d\e F Y' # '26-a ... | bsd-3-clause | 6,006,063,733,810,354,000 | 43.903846 | 80 | 0.421842 | false |
Anonymous-X6/django | tests/introspection/models.py | 216 | 1112 | from __future__ import unicode_literals
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class Reporter(models.Model):
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=30)
email = models.EmailField(... | bsd-3-clause | -3,924,223,177,433,305,000 | 28.263158 | 71 | 0.667266 | false |
barrachri/epcon | p3/management/commands/attendify_schedule_xlsx.py | 2 | 9581 | # -*- coding: utf-8 -*-
""" Update an Attendify schedule XLSX file with the currently accepted
talks.
Usage: manage.py attendify_schedule_xlsx ep2016 schedule.xlsx
Note that for Attendify you have to download the schedule before
running this script, since they add meta data to the downloaded
file ... | bsd-2-clause | 3,415,934,658,834,493,000 | 28.48 | 78 | 0.569669 | false |
spulec/moto | tests/test_cloudformation/fixtures/route53_health_check.py | 2 | 1093 | from __future__ import unicode_literals
template = {
"Resources": {
"HostedZone": {
"Type": "AWS::Route53::HostedZone",
"Properties": {"Name": "my_zone"},
},
"my_health_check": {
"Type": "AWS::Route53::HealthCheck",
"Properties": {
... | apache-2.0 | 8,650,379,758,814,754,000 | 30.228571 | 60 | 0.383349 | false |
minhphung171093/GreenERP_V8 | openerp/workflow/__init__.py | 378 | 3793 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2014 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,011,746,707,995,376,000 | 35.825243 | 81 | 0.671236 | false |
shankisg/twisted-intro | twisted/plugins/fastpoetry_plugin.py | 11 | 2309 | # This is the Twisted Fast Poetry Server, version 3.0
from zope.interface import implements
from twisted.python import usage, log
from twisted.plugin import IPlugin
from twisted.internet.protocol import ServerFactory, Protocol
from twisted.application import internet, service
# Normally we would import these classe... | mit | 1,204,520,172,546,357,500 | 27.506173 | 71 | 0.677783 | false |
aviciimaxwell/odoo | addons/purchase_double_validation/purchase_double_validation_installer.py | 432 | 2315 | # -*- 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 | 4,507,449,435,211,934,000 | 46.244898 | 113 | 0.633261 | false |
perryjohnson/biplaneblade | sandia_blade_lib/plot_MK.py | 1 | 6585 | """Plot the mass and stiffness data from Sandia and VABS.
First, data from mass and stiffness matrices for the Sandia blade are written
to the file 'sandia_blade/blade_props_from_VABS.csv'
Then, these data are plotted against published data from Griffith & Resor 2011.
Usage
-----
Open an IPython terminal an... | gpl-3.0 | -6,979,873,262,624,607,000 | 41.039216 | 111 | 0.641762 | false |
Softmotions/edx-platform | common/lib/xmodule/xmodule/tests/test_lti_unit.py | 98 | 22100 | # -*- coding: utf-8 -*-
"""Test for LTI Xmodule functional logic."""
import datetime
from django.utils.timezone import UTC
from mock import Mock, patch, PropertyMock
import textwrap
from lxml import etree
from webob.request import Request
from copy import copy
import urllib
from xmodule.fields import Timedelta
from x... | agpl-3.0 | -7,229,101,229,846,730,000 | 42.503937 | 164 | 0.621267 | false |
ar7z1/ansible | lib/ansible/modules/network/meraki/meraki_mr_l3_firewall.py | 35 | 9202 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2018, Kevin Breit (@kbreit) <kevin.breit@kevinbreit.net>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {
... | gpl-3.0 | 1,690,669,689,782,033,200 | 32.220217 | 112 | 0.589654 | false |
mcltn/ansible | lib/ansible/plugins/action/copy.py | 48 | 12949 | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# 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) an... | gpl-3.0 | 8,255,811,017,874,124,000 | 43.194539 | 159 | 0.585296 | false |
schlos/eden | modules/tests/org/change_user_roles.py | 27 | 4661 | """ Sahana Eden Automated Test - ORG010 Change User Roles
@copyright: 2011-2012 (c) Sahana Software Foundation
@license: MIT
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 wi... | mit | 8,307,002,802,715,154,000 | 33.783582 | 123 | 0.641064 | false |
codetorex/spritex | setup.py | 1 | 1345 | #!/usr/bin/env python
from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = ""
packages = [
'editor'
]
requires = [
'numpy>=1.12.1'
'Kivy>=1.10.0'
'pillow>=2.1.0'
'cython'
]
setup(
... | mit | -5,924,839,716,619,719,000 | 25.9 | 98 | 0.618587 | false |
astronaut1712/taiga-back | tests/integration/test_hooks_github.py | 13 | 17297 | import pytest
from unittest import mock
from django.core.urlresolvers import reverse
from django.core import mail
from taiga.base.utils import json
from taiga.hooks.github import event_hooks
from taiga.hooks.github.api import GitHubViewSet
from taiga.hooks.exceptions import ActionSyntaxException
from taiga.projects.... | agpl-3.0 | 3,970,424,818,434,624,500 | 34.885892 | 147 | 0.652772 | 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.