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 |
|---|---|---|---|---|---|---|---|---|---|---|
hugheaves/ardupilot-solo | mk/PX4/Tools/gencpp/scripts/gen_cpp.py | 214 | 2168 | #!/usr/bin/env python
# Software License Agreement (BSD License)
#
# Copyright (c) 2009, 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... | gpl-3.0 | 5,728,665,697,762,954,000 | 42.36 | 78 | 0.714483 | false |
omwomotieno/tunza_v3 | config/settings/production.py | 2 | 8273 | # -*- coding: utf-8 -*-
"""
Production Configurations
- Use djangosecure
- Use Amazon's S3 for storing static files and uploaded media
- Use mailgun to send emails
- Use Redis on Heroku
- Use sentry for error logging
- Use opbeat for error reporting
"""
from __future__ import absolute_import, unicode_literals
fro... | mit | 3,647,515,892,626,284,000 | 34.506438 | 117 | 0.620452 | false |
simplyvikram/google-chartwrapper | setup.py | 7 | 2547 | from distutils.core import setup
CLASSIFIERS = (
('Development Status :: 5 - Production/Stable'),
('Environment :: Console'),
('Environment :: Web Environment'),
('Framework :: Django'),
#('Framework :: Zope3'),
#('Framework :: Trac'),
#('Framework :: TurboGears :: Widgets'),
#('Framewo... | bsd-3-clause | 8,842,458,508,213,390,000 | 43.701754 | 94 | 0.649391 | false |
BaconPancakes/valor | lib/pip/_vendor/lockfile/pidlockfile.py | 536 | 6090 | # -*- coding: utf-8 -*-
# pidlockfile.py
#
# Copyright © 2008–2009 Ben Finney <ben+python@benfinney.id.au>
#
# This is free software: you may copy, modify, and/or distribute this work
# under the terms of the Python Software Foundation License, version 2 or
# later as published by the Python Software Foundation.
# No ... | gpl-3.0 | -7,446,721,151,513,988,000 | 30.848168 | 75 | 0.58047 | false |
martynovp/edx-platform | cms/djangoapps/contentstore/features/problem-editor.py | 116 | 12757 | # disable missing docstring
# pylint: disable=missing-docstring
import json
from lettuce import world, step
from nose.tools import assert_equal, assert_true # pylint: disable=no-name-in-module
from common import type_in_codemirror, open_new_course
from advanced_settings import change_value, ADVANCED_MODULES_KEY
from ... | agpl-3.0 | -4,927,295,229,761,935,000 | 32.395288 | 123 | 0.694207 | false |
wakermahmud/sync-engine | inbox/util/consistency_check/__main__.py | 6 | 9625 | """
Integrity check debugging tool for IMAP accounts.
Run as:
python -m inbox.util.consistency_check --help
"""
from __future__ import absolute_import, division, print_function
import argparse
import errno
import os
import pkg_resources
import subprocess
import sys
from fnmatch import fnmatch
from inbox.models... | agpl-3.0 | 666,999,243,564,779,400 | 35.458333 | 108 | 0.523325 | false |
0-wiz-0/audacity | lib-src/lv2/lv2/plugins/eg-sampler.lv2/waflib/Configure.py | 181 | 9880 | #! /usr/bin/env python
# encoding: utf-8
# WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
import os,shlex,sys,time
from waflib import ConfigSet,Utils,Options,Logs,Context,Build,Errors
try:
from urllib import request
except ImportError:
from urllib import urlopen
... | gpl-2.0 | 3,484,202,922,688,574,500 | 30.167192 | 141 | 0.683806 | false |
Hairo/trackma | trackma/ui/curses.py | 1 | 40982 | # This file is part of Trackma.
#
# 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 the... | gpl-3.0 | -4,341,050,059,831,076,400 | 33.46762 | 360 | 0.554975 | false |
newerthcom/savagerebirth | libs/python-2.72/Lib/plat-mac/gensuitemodule.py | 40 | 44464 | """
gensuitemodule - Generate an AE suite module from an aete/aeut resource
Based on aete.py.
Reading and understanding this code is left as an exercise to the reader.
"""
from warnings import warnpy3k
warnpy3k("In 3.x, the gensuitemodule module is removed.", stacklevel=2)
import MacOS
import EasyDialogs
import os
... | gpl-2.0 | -7,626,111,438,328,596,000 | 35.565789 | 147 | 0.5672 | false |
hefen1/chromium | third_party/closure_compiler/checker.py | 1 | 10762 | #!/usr/bin/python
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Runs Closure compiler on a JavaScript file to check for errors."""
import argparse
import os
import re
import subprocess
import sys
imp... | bsd-3-clause | 4,791,372,480,057,375,000 | 32.113846 | 79 | 0.636499 | false |
vauxoo-dev/docker-odoo-image | build.py | 1 | 2810 | # coding: utf-8
"""Check if any file has changed and then build this Dockerfile"""
import os
import sys
import subprocess
import argparse
class DockerOdooImages(object):
"""Class to build if has changed any file"""
def __init__(self, folder, docker_image):
"""Init method
folder : Folder to c... | gpl-2.0 | 684,887,445,901,074,200 | 37.493151 | 77 | 0.549466 | false |
vdods/fabric | bddtests/steps/peer_rest_impl.py | 11 | 1869 | #
# Copyright IBM Corp. 2016 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 ... | apache-2.0 | 4,674,572,095,841,938,000 | 42.465116 | 185 | 0.742643 | false |
dalepartridge/seapy | roms/interp.py | 1 | 32584 | #!/usr/bin/env python
"""
roms.interp
Methods to interpolate ROMS fields onto other grids
Written by Brian Powell on 11/02/13
Copyright (c)2017 University of Hawaii under the BSD-License.
"""
import numpy as np
import netCDF4
import os
import seapy
from seapy.timeout import timeout, TimeoutError
from joblib... | mit | -6,549,497,986,093,955,000 | 40.089533 | 104 | 0.542874 | false |
WillamLi/itool | mysql_tool/mysql_concat/test.py | 1 | 2436 | #!/bin/python
#coding=utf-8
import MySQLdb
import sys
from optparse import OptionParser
user_value="reboot"
pass_value='reboot123'
port_value=3306
def CHECK_ARGV():
argv_dict = {}
usage = "usage: %prog [options] arg1 arg2"
parser = OptionParser(usage)
parser.add_option("-H","--host",dest="hostn... | gpl-2.0 | 3,365,380,461,842,295,300 | 27.325581 | 119 | 0.610837 | false |
alvin319/CarnotKE | jyhton/lib-python/2.7/multiprocessing/queues.py | 103 | 12318 | #
# Module implementing queues
#
# multiprocessing/queues.py
#
# Copyright (c) 2006-2008, R Oudkerk
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must ret... | apache-2.0 | -8,555,566,803,334,094,000 | 30.343511 | 84 | 0.553255 | false |
rmoorman/feedhq | feedhq/reader/authentication.py | 2 | 1407 | from django.core.cache import cache
from rest_framework.authentication import (BaseAuthentication,
get_authorization_header)
from ..profiles.models import User
from .exceptions import PermissionDenied
from .models import check_auth_token
class GoogleLoginAuthentication(Base... | bsd-3-clause | 4,833,392,109,293,259,000 | 32.5 | 72 | 0.61194 | false |
taaviteska/django | tests/staticfiles_tests/test_storage.py | 24 | 26035 | import os
import shutil
import sys
import tempfile
import unittest
from io import StringIO
from django.conf import settings
from django.contrib.staticfiles import finders, storage
from django.contrib.staticfiles.management.commands.collectstatic import \
Command as CollectstaticCommand
from django.core.cache.backe... | bsd-3-clause | -2,304,492,678,730,740,500 | 42.682886 | 118 | 0.662224 | false |
daevaorn/sentry | src/sentry/migrations/0034_auto__add_groupbookmark__add_unique_groupbookmark_project_user_group.py | 36 | 14391 | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'GroupBookmark'
db.create_table('sentry_groupbookmark', (
('id', self.gf('sentry.db.mod... | bsd-3-clause | -5,832,276,719,527,717,000 | 76.789189 | 167 | 0.556528 | false |
YangLiu928/NDP_Projects | Python_Projects/Python_MySQL/pipe_delimit_2014_FTD/pipe_delimition.py | 1 | 1719 | import codecs
from os.path import join,isfile,isdir
from os import mkdir
def get_intervals(layout):
results = []
layout = codecs.open(layout,'r')
count = 0
for line in layout:
count = count + 1
if count < 8:
continue
if line.strip()=='':
continue
# print line.split(' ')
numbers = ''
segment... | mit | 5,875,705,198,320,379,000 | 20.772152 | 102 | 0.649796 | false |
retsu0/FFmepg-Android | jni/x264/tools/test_x264.py | 138 | 16077 | #!/usr/bin/env python
import operator
from optparse import OptionGroup
import sys
from time import time
from digress.cli import Dispatcher as _Dispatcher
from digress.errors import ComparisonError, FailedTestError, DisabledTestError
from digress.testing import depends, comparer, Fixture, Case
from digress.comparer... | mit | 8,242,667,682,293,195,000 | 32.148454 | 145 | 0.4754 | false |
maestrano/odoo | addons/resource/faces/task.py | 433 | 126405 | #@+leo-ver=4
#@+node:@file task.py
#@@language python
#@<< Copyright >>
#@+node:<< Copyright >>
############################################################################
# Copyright (C) 2005, 2006, 2007, 2008 by Reithinger GmbH
# mreithinger@web.de
#
# This file is part of faces.
#
# faces is free software; ... | agpl-3.0 | 7,812,157,073,744,961,000 | 31.78138 | 105 | 0.541347 | false |
mjfarmer/scada_py | env/lib/python2.7/site-packages/twisted/internet/_win32serialport.py | 19 | 4617 | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Serial port support for Windows.
Requires PySerial and pywin32.
"""
from __future__ import division, absolute_import
# system imports
from serial import PARITY_NONE
from serial import STOPBITS_ONE
from serial import EIGHTBITS
import win32fi... | gpl-3.0 | -6,911,358,335,974,138,000 | 35.354331 | 97 | 0.617934 | false |
digris/openbroadcast.org | website/tools/l10n/models.py | 2 | 5224 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.encoding import python_2_unicode_compatible
from django.conf import settings
CONTINENTS = (
("AF", _("Africa")),
("NA", _("North America")),
... | gpl-3.0 | -8,949,129,581,442,201,000 | 28.514124 | 88 | 0.577144 | false |
tiagofrepereira2012/tensorflow | tensorflow/contrib/keras/python/keras/losses_test.py | 27 | 3551 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 7,414,352,869,750,383,000 | 39.352273 | 80 | 0.639538 | false |
pauloschilling/sentry | src/sentry/models/releasefile.py | 20 | 1259 | """
sentry.models.releasefile
~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2015 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
from django.db import models
from hashlib import sha1
from sentry.db.models import FlexibleForei... | bsd-3-clause | -3,566,575,531,196,163,000 | 26.977778 | 78 | 0.649722 | false |
kobejean/tensorflow | tensorflow/contrib/distribute/python/input_ops_test.py | 7 | 9593 | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -3,484,561,256,498,715,000 | 37.526104 | 80 | 0.678203 | false |
jarshwah/django | django/contrib/contenttypes/migrations/0002_remove_content_type_name.py | 582 | 1168 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
def add_legacy_name(apps, schema_editor):
ContentType = apps.get_model('contenttypes', 'ContentType')
for ct in ContentType.objects.all():
try:
ct.name = apps.get_model(ct.app_label, c... | bsd-3-clause | -2,375,627,550,394,507,300 | 26.809524 | 93 | 0.568493 | false |
scrollback/kuma | vendor/lib/python/taggit/models.py | 12 | 5092 | import django
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.generic import GenericForeignKey
from django.db import models, IntegrityError, transaction
from django.template.defaultfilters import slugify as default_slugify
from django.utils.translation import ugettext_lazy as... | mpl-2.0 | 8,675,080,244,004,216,000 | 30.825 | 82 | 0.573252 | false |
enriclluelles/ansible-modules-extras | notification/sns.py | 8 | 5738 | #!/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 | -8,495,272,896,414,765,000 | 29.041885 | 119 | 0.657372 | false |
packages/psutil | examples/nettop.py | 11 | 4712 | #!/usr/bin/env python
#
# $Id: iotop.py 1160 2011-10-14 18:50:36Z g.rodola@gmail.com $
#
# Copyright (c) 2009, Giampaolo Rodola'. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Shows real-time network statistics.
Author: Giampaolo Rodola'... | bsd-3-clause | -4,479,485,386,555,976,700 | 27.557576 | 73 | 0.527589 | false |
nanolearning/edx-platform | lms/djangoapps/certificates/migrations/0001_added_generatedcertificates.py | 188 | 6863 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'GeneratedCertificate'
db.create_table('certificates_generatedcertificate', (
('i... | agpl-3.0 | -1,453,809,865,872,088,600 | 72.795699 | 182 | 0.565788 | false |
yamila-moreno/nikola | nikola/plugins/command/install_theme.py | 9 | 6202 | # -*- coding: utf-8 -*-
# Copyright © 2012-2015 Roberto Alsina and others.
# 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 t... | mit | 6,927,676,991,373,442,000 | 35.052326 | 124 | 0.560071 | false |
trishnaguha/ansible | lib/ansible/modules/network/fortios/fortios_system_sdn_connector.py | 7 | 18926 | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2018 Fortinet, Inc.
#
# 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 Lic... | gpl-3.0 | -8,979,292,433,203,599,000 | 34.048148 | 100 | 0.464071 | false |
resba/gnuradio | gnuradio-core/src/python/gnuradio/gr/qa_bin_statistics.py | 11 | 7437 | #!/usr/bin/env python
#
# Copyright 2006,2007,2010 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at you... | gpl-3.0 | 8,468,333,258,246,191,000 | 31.334783 | 78 | 0.496168 | false |
Oliver2213/NVDAYoutube-dl | addon/globalPlugins/nvdaYoutubeDL/youtube_dl/extractor/senateisvp.py | 19 | 6075 | # coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
ExtractorError,
unsmuggle_url,
)
from ..compat import (
compat_parse_qs,
compat_urlparse,
)
class SenateISVPIE(InfoExtractor):
_COMM_MAP = [
["ag", "76440", "http://ag... | gpl-2.0 | -8,299,779,134,352,444,000 | 40.896552 | 238 | 0.537942 | false |
sylvan5/PRML | ch5/digits.py | 2 | 2415 | #coding:utf-8
import numpy as np
from mlp import MultiLayerPerceptron
from sklearn.datasets import load_digits
from sklearn.cross_validation import train_test_split
from sklearn.preprocessing import LabelBinarizer
from sklearn.metrics import confusion_matrix, classification_report
"""
簡易手書き数字データの認識
scikit-learnのインストール... | mit | -8,284,359,709,080,531,000 | 27.957143 | 79 | 0.612235 | false |
alexryndin/ambari | ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/PIG/package/scripts/pig_client.py | 4 | 1154 | """
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this ... | apache-2.0 | -8,366,520,901,354,706,000 | 27.146341 | 72 | 0.754766 | false |
shsingh/ansible | test/support/network-integration/collections/ansible_collections/ansible/netcommon/plugins/action/net_get.py | 47 | 6707 | # (c) 2018, Ansible Inc,
#
# 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 later version.
#
# Ansible is di... | gpl-3.0 | -8,277,621,378,252,203,000 | 32.703518 | 97 | 0.581035 | false |
tareqalayan/ansible | lib/ansible/modules/cloud/cloudstack/cs_disk_offering.py | 24 | 11291 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (c) 2018, David Passante <@dpassante>
# (c) 2017, René Moser <mail@renemoser.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_M... | gpl-3.0 | 610,814,135,728,480,400 | 29.265416 | 105 | 0.633448 | false |
dendisuhubdy/tensorflow | tensorflow/contrib/distributions/python/ops/vector_laplace_diag.py | 3 | 8336 | # Copyright 2017 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 | -378,601,907,274,193,100 | 34.931034 | 110 | 0.635077 | false |
mrquim/repository.mrquim | plugin.video.mrpiracy/resources/lib/js2py/legecy_translators/nodevisitor.py | 54 | 15965 | from jsparser import *
from utils import *
import re
from utils import *
#Note all white space sent to this module must be ' ' so no '\n'
REPL = {}
#PROBLEMS
# <<=, >>=, >>>=
# they are unusual so I will not fix that now. a++ +b works fine and a+++++b (a++ + ++b) does not work even in V8
ASSIGNMENT_MATCH = '(?<!=|!... | gpl-2.0 | 1,827,220,195,007,226,600 | 30.93 | 126 | 0.479674 | false |
bluemurder/mlfl | config.py | 1 | 3279 | version = "1.0"
start_date = '2009-01-01' # Start date for all the computations
ref_symbol = 'ETFMIB.MI' # Symbol used to map main market (SPY, ETFMIB,...)
test_portfolio = ['STS.MI', 'ENEL.MI', 'SFER.MI']
ftsemib_symbols = ['A2A.MI', 'ATL.MI', 'BMPS.MI', 'BAMI.MI',
'BMED.MI', 'BPE.MI',
'BRE.MI', 'BZU.MI', 'CPR.MI', ... | mit | -5,431,125,624,936,542,000 | 57.553571 | 75 | 0.509302 | false |
jeffery-do/Vizdoombot | doom/lib/python3.5/site-packages/theano/scan_module/scan.py | 3 | 48450 | """
This module provides the Scan Op.
Scanning is a general form of recurrence, which can be used for looping.
The idea is that you *scan* a function along some input sequence, producing
an output at each time-step that can be seen (but not modified) by the
function at the next time-step. (Technically, the function ca... | mit | -2,087,115,831,158,472,200 | 42.413978 | 87 | 0.573808 | false |
noroutine/ansible | lib/ansible/modules/cloud/google/gce_snapshot.py | 122 | 6781 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright: Ansible Project
# 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 = {'metadata_version': '1.1',
... | gpl-3.0 | -5,992,060,087,182,516,000 | 29.137778 | 95 | 0.662144 | false |
MaralAfris/wasp-summer-school-team6 | drone/bebop_controller/src/PID.py | 2 | 1594 | from copy import deepcopy
import numpy
from PIDParameters import *
class PID(object):
def __init__(self):
p = PIDParameters()
p.Beta = 1.0
p.H = 0.05
p.integratorOn = False
p.K = 0.25 # start 0.1 # used to be 0.20
p.N = 10
p.Td = 0.0 # start 0.1
p... | gpl-3.0 | 4,722,212,425,552,949,000 | 24.709677 | 107 | 0.493726 | false |
HBEE/odoo-addons | sale_require_purchase_order_number/__openerp__.py | 2 | 1599 | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 ADHOC SA (http://www.adhoc.com.ar)
# All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Pu... | agpl-3.0 | 2,173,952,806,954,126,800 | 30.352941 | 78 | 0.539087 | false |
MalloyDelacroix/DownloaderForReddit | Tests/unittests/core/test_content_filter.py | 1 | 5834 | from unittest import TestCase
from unittest.mock import MagicMock
from DownloaderForReddit.core.content_filter import ContentFilter
from DownloaderForReddit.database.database_handler import DatabaseHandler
from DownloaderForReddit.utils import injector
from Tests.mockobjects.mock_objects import (get_user, get_post, ge... | gpl-3.0 | -4,737,180,361,284,728,000 | 38.958904 | 104 | 0.649126 | false |
JamesAng/oe | lib/oe/types.py | 25 | 3409 | import re
class OEList(list):
"""OpenEmbedded 'list' type
Acts as an ordinary list, but is constructed from a string value and a
separator (optional), and re-joins itself when converted to a string with
str(). Set the variable type flag to 'list' to use this type, and the
'separator' flag may be ... | mit | -3,032,186,627,537,262,000 | 31.778846 | 78 | 0.616896 | false |
13xforever/webserver | qa/141-FastCGI-EmptyVars.py | 8 | 1608 | import os
from base import *
DIR = "/FCGI-EmptyVars/"
MAGIC = "Cherokee and FastCGI rocks!"
PORT = get_free_port()
PYTHON = look_for_python()
SCRIPT = """
from fcgi import *
def app (environ, start_response):
start_response('200 OK', [("Content-Type", "text/plain")])
resp = ""
for k in environ:
... | gpl-2.0 | 2,544,969,047,824,234,500 | 26.724138 | 78 | 0.608209 | false |
alanjw/GreenOpenERP-Win-X86 | openerp/addons/crm_todo/__init__.py | 66 | 1071 | # -*- 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... | agpl-3.0 | -2,839,972,535,286,685,700 | 43.625 | 79 | 0.608777 | false |
dkodnik/Ant | addons/l10n_gt/__openerp__.py | 170 | 2385 | # -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2009-2010 Soluciones Tecnologócias Prisma S.A. All Rights Reserved.
# José Rodrigo Fernández Menegazzo, Soluciones Tecnologócias Prisma S.A.
# (http://www.solucionesprisma.com)
#
# This program is ... | agpl-3.0 | 7,835,540,339,489,336,000 | 39.305085 | 83 | 0.645921 | false |
goodfeli/pylearn2 | pylearn2/datasets/vector_spaces_dataset.py | 41 | 6009 | """TODO: module-level docstring."""
__authors__ = "Pascal Lamblin and Razvan Pascanu"
__copyright__ = "Copyright 2010-2013, Universite de Montreal"
__credits__ = ["Pascal Lamblin", "Razvan Pascanu", "Ian Goodfellow",
"Mehdi Mirza"]
__license__ = "3-clause BSD"
__maintainer__ = "Pascal Lamblin"
__email__ ... | bsd-3-clause | 2,729,578,193,214,583,300 | 33.534483 | 79 | 0.594442 | false |
kkoksvik/FreeCAD | src/Mod/Ship/shipCapacityCurve/PlotAux.py | 8 | 5494 | #***************************************************************************
#* *
#* Copyright (c) 2011, 2016 *
#* Jose Luis Cercos Pita <jlcercos@gmail.com> *
#* ... | lgpl-2.1 | 7,415,408,683,436,342,000 | 40.007463 | 76 | 0.49818 | false |
eusi/MissionPlanerHM | Lib/site-packages/scipy/optimize/linesearch.py | 55 | 17394 | from scipy.optimize import minpack2
import numpy as np
from numpy.compat import asbytes
__all__ = ['line_search_wolfe1', 'line_search_wolfe2',
'scalar_search_wolfe1', 'scalar_search_wolfe2',
'line_search_armijo']
#------------------------------------------------------------------------------
# M... | gpl-3.0 | -2,860,221,955,606,073,300 | 28.282828 | 82 | 0.524779 | false |
DarkPurpleShadow/ConnectFour | urwid/main_loop.py | 2 | 41354 | #!/usr/bin/python
#
# Urwid main loop code
# Copyright (C) 2004-2012 Ian Ward
# Copyright (C) 2008 Walter Mundt
# Copyright (C) 2009 Andrew Psaltis
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by ... | bsd-3-clause | -7,095,506,268,798,331,000 | 32.269509 | 88 | 0.564178 | false |
druuu/django | django/contrib/gis/gdal/geometries.py | 337 | 24056 | """
The OGRGeometry is a wrapper for using the OGR Geometry class
(see http://www.gdal.org/ogr/classOGRGeometry.html). OGRGeometry
may be instantiated when reading geometries from OGR Data Sources
(e.g. SHP files), or when given OGC WKT (a string).
While the 'full' API is not present yet, the API is "pythonic" u... | bsd-3-clause | -6,647,982,867,083,647,000 | 33.073654 | 108 | 0.611448 | false |
insertnamehere1/maraschino | lib/flask/templating.py | 19 | 4417 | # -*- coding: utf-8 -*-
"""
flask.templating
~~~~~~~~~~~~~~~~
Implements the bridge to Jinja2.
:copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
import posixpath
from jinja2 import BaseLoader, Environment as BaseEnvironment, \
TemplateNotFound
from .glo... | mit | -1,920,471,063,828,807,400 | 31.007246 | 75 | 0.616708 | false |
hwu25/AppPkg | Applications/Python/Python-2.7.2/Tools/scripts/ifdef.py | 10 | 3829 | #! /usr/bin/env python
# Selectively preprocess #ifdef / #ifndef statements.
# Usage:
# ifdef [-Dname] ... [-Uname] ... [file] ...
#
# This scans the file(s), looking for #ifdef and #ifndef preprocessor
# commands that test for one of the names mentioned in the -D and -U
# options. On standard output it write... | bsd-2-clause | 1,560,201,895,634,536,400 | 32.1875 | 70 | 0.52233 | false |
geoadmin/mapproxy | mapproxy/test/system/test_watermark.py | 5 | 3475 | # This file is part of the MapProxy project.
# Copyright (C) 2011 Omniscale <http://omniscale.de>
#
# 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... | apache-2.0 | -4,617,563,940,788,021,000 | 45.959459 | 93 | 0.588777 | false |
kr41/ggrc-core | src/ggrc_workflows/migrations/versions/20150714220605_3605dca868e4_add_slug_to_task_group_task.py | 7 | 1213 | # Copyright (C) 2016 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""add slug to task group task
Revision ID: 3605dca868e4
Revises: 1431e7094e26
Create Date: 2015-07-14 22:06:05.063945
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by ... | apache-2.0 | 2,220,077,115,562,167,600 | 22.326923 | 78 | 0.679308 | false |
missionpinball/mpf-examples | tests/test_TutorialStep16.py | 1 | 6127 | from mpfmc.tests.MpfIntegrationTestCase import MpfIntegrationTestCase
class TestTutorialStep16(MpfIntegrationTestCase):
def getConfigFile(self):
return 'config.yaml'
def getMachinePath(self):
return self.get_abs_path('tutorial_step_16')
def get_platform(self):
return 'smart_virt... | mit | 3,805,965,289,845,129,000 | 42.453901 | 76 | 0.657092 | false |
ahmedaljazzar/edx-platform | lms/djangoapps/survey/tests/test_signals.py | 11 | 1876 | """
Test signal handlers for the survey app
"""
from openedx.core.djangoapps.user_api.accounts.tests.retirement_helpers import fake_completed_retirement
from student.tests.factories import UserFactory
from survey.models import SurveyAnswer
from survey.tests.factories import SurveyAnswerFactory
from xmodule.modulestore... | agpl-3.0 | 1,977,563,256,018,352,400 | 36.52 | 104 | 0.696162 | false |
goldeneye-source/ges-python | lib/test/test_urllib2net.py | 7 | 12602 | import unittest
from test import support
from test.test_urllib2 import sanepathname2url
import os
import socket
import urllib.error
import urllib.request
import sys
try:
import ssl
except ImportError:
ssl = None
support.requires("network")
TIMEOUT = 60 # seconds
def _retry_thrice(func, exc, *args, **kwarg... | gpl-3.0 | -3,697,397,725,245,806,000 | 35.847953 | 93 | 0.561895 | false |
dimagol/trex-core | scripts/external_libs/scapy-2.3.1/python3/scapy/layers/dns.py | 3 | 24849 | ## This file is part of Scapy
## See http://www.secdev.org/projects/scapy for more informations
## Copyright (C) Philippe Biondi <phil@secdev.org>
## This program is published under a GPLv2 license
"""
DNS: Domain Name System.
"""
import socket,struct
from scapy.packet import *
from scapy.fields import *
from scapy.... | apache-2.0 | 5,233,905,360,704,916,000 | 33.900281 | 146 | 0.488108 | false |
NeCTAR-RC/ceilometer | ceilometer/tests/hardware/inspector/test_snmp.py | 4 | 9033 | # -*- encoding: utf-8 -*-
#
# Copyright © 2013 Intel Corp
#
# Authors: Lianhao Lu <lianhao.lu@intel.com>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/license... | apache-2.0 | 536,985,782,934,831,600 | 37.434043 | 77 | 0.31333 | false |
mozilla/kitsune | kitsune/messages/tasks.py | 1 | 2038 | import logging
from django.conf import settings
from django.contrib.sites.models import Site
from django.urls import reverse
from django.utils.translation import ugettext as _
from celery import task
from kitsune.messages.models import InboxMessage
from kitsune.sumo.email_utils import make_mail, safe_translation, se... | bsd-3-clause | -3,994,669,563,935,343,000 | 31.349206 | 79 | 0.656526 | false |
wikilinks/nel | nel/process/tag.py | 1 | 6517 | #!/usr/bin/env python
import os
import sys
import re
import string
from itertools import izip
from time import time
from bisect import bisect_left
from subprocess import Popen, PIPE
from cStringIO import StringIO
import spacy
from .process import Process
from ..model import recognition
from ..doc import Mention, Cha... | mit | -70,161,372,517,395,450 | 36.028409 | 121 | 0.539052 | false |
pthaike/keras | keras/datasets/imdb.py | 37 | 1855 | from __future__ import absolute_import
import six.moves.cPickle
import gzip
from .data_utils import get_file
import random
from six.moves import zip
import numpy as np
def load_data(path="imdb.pkl", nb_words=None, skip_top=0, maxlen=None, test_split=0.2, seed=113,
start_char=1, oov_char=2, index_from=3)... | mit | 8,461,929,509,147,339,000 | 27.106061 | 96 | 0.539623 | false |
beblount/Steer-Clear-Backend-Web | env/Lib/site-packages/sqlalchemy/util/topological.py | 60 | 2794 | # util/topological.py
# Copyright (C) 2005-2015 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Topological sorting algorithms."""
from ..exc import CircularDependencyError... | mit | 3,823,996,842,447,653,000 | 26.94 | 85 | 0.598425 | false |
rubbish/oh-my-zsh | plugins/git-prompt/gitstatus.py | 343 | 2372 | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from subprocess import Popen, PIPE
import re
# change those symbols to whatever you prefer
symbols = {
'ahead of': '↑',
'behind': '↓',
'staged': '♦',
'changed': '‣',
'untracked': '…',
'clean': '⚡',
'unmerged': '≠',
'sha1': ':'
}
output, err... | mit | -8,217,502,269,166,572,000 | 27.756098 | 87 | 0.575064 | false |
ProvidencePlan/Profiles | communityprofiles/maps/forms.py | 2 | 3018 | from django import forms
from maps.models import ShapeFile
from django.core.exceptions import ValidationError
from django.db.models.fields.files import FieldFile
from maps.utils import *
from django.contrib.gis.gdal import DataSource
from django.contrib.gis.geos import GEOSGeometry, MultiPolygon
class ShapeFileForm(fo... | mit | 3,605,108,177,108,543,000 | 45.430769 | 148 | 0.606693 | false |
ml-lab/pylearn2 | pylearn2/datasets/tests/test_cifar10.py | 3 | 3549 | import unittest
import numpy as np
from pylearn2.datasets.cifar10 import CIFAR10
from pylearn2.space import Conv2DSpace
from pylearn2.testing.skip import skip_if_no_data
class TestCIFAR10(unittest.TestCase):
def setUp(self):
skip_if_no_data()
self.test = CIFAR10(which_set='test')
def test_top... | bsd-3-clause | -2,388,973,186,115,207,000 | 39.329545 | 74 | 0.527191 | false |
CloudServer/nova | nova/api/openstack/compute/contrib/flavor_disabled.py | 79 | 2223 | # Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | apache-2.0 | -7,026,907,491,892,744,000 | 33.734375 | 79 | 0.666667 | false |
Jeff-Tian/mybnb | Python27/Tools/Scripts/ndiff.py | 12 | 3942 | #! /usr/bin/env python
# Module ndiff version 1.7.0
# Released to the public domain 08-Dec-2000,
# by Tim Peters (tim.one@home.com).
# Provided as-is; use at your own risk; no warranty; no promises; enjoy!
# ndiff.py is now simply a front-end to the difflib.ndiff() function.
# Originally, it contained the d... | apache-2.0 | 1,625,154,863,085,341,200 | 27.639098 | 75 | 0.603754 | false |
Sarah-Alsinan/muypicky | lib/python3.6/site-packages/django/contrib/contenttypes/management/__init__.py | 60 | 4919 | from django.apps import apps as global_apps
from django.db import DEFAULT_DB_ALIAS, migrations, router, transaction
from django.db.utils import IntegrityError
from django.utils import six
class RenameContentType(migrations.RunPython):
def __init__(self, app_label, old_model, new_model):
self.app_label = a... | mit | -5,708,554,910,691,702,000 | 35.437037 | 119 | 0.623907 | false |
anestv/pa | test/external/requests/packages/urllib3/request.py | 83 | 5557 | try:
from urllib.parse import urlencode
except ImportError:
from urllib import urlencode
from .filepost import encode_multipart_formdata
__all__ = ['RequestMethods']
class RequestMethods(object):
"""
Convenience mixin for classes who implement a :meth:`urlopen` method, such
as :class:`~urllib3.... | artistic-2.0 | 7,630,176,448,673,860,000 | 40.162963 | 80 | 0.608782 | false |
michallula/marathon-proxy-manager | src/marathon_proxy_manager/nginx.py | 1 | 6399 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2015 Lingaro
import os
import subprocess
from marathon import MarathonClient
from jinja2 import Environment, ChoiceLoader, FileSystemLoader, PackageLoader
class MarathonProxyManagerCommand(object):
DEFAULT_TEMPLATE_LOADER = PackageLoader(u'maratho... | mit | 4,501,890,245,240,249,000 | 36.863905 | 113 | 0.609001 | false |
barachka/odoo | addons/portal/portal.py | 386 | 1361 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2011 OpenERP S.A (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms ... | agpl-3.0 | 1,131,886,280,346,491,800 | 41.53125 | 100 | 0.609111 | false |
bsipocz/astroML | doc/conf.py | 2 | 7960 | # -*- coding: utf-8 -*-
#
# astroML documentation build configuration file, created by
# sphinx-quickstart on Thu Oct 6 15:37:12 2011.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All... | bsd-2-clause | -6,174,854,539,872,637,000 | 30.215686 | 80 | 0.706533 | false |
opencloudinfra/orchestrator | venv/Lib/site-packages/django/conf/locale/ka/formats.py | 504 | 2180 | # -*- 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 = 'l, j F, Y'
TIME_FORMAT = 'h:i a'
... | gpl-3.0 | 5,682,332,605,966,224,000 | 42.6 | 93 | 0.486697 | false |
arskom/spyne | spyne/test/protocol/test_yaml.py | 2 | 1914 | #!/usr/bin/env python
#
# spyne - Copyright (C) Spyne contributors.
#
# This library 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; either
# version 2.1 of the License, or (at your option) any later ve... | lgpl-2.1 | -5,319,836,137,067,135,000 | 32 | 83 | 0.704807 | false |
cs-shadow/phabricator-tools | py/abd/abdt_classicnaming.py | 4 | 6547 | """Branch naming conventions for 'arcyd-review/description/base' style."""
# =============================================================================
# CONTENTS
# -----------------------------------------------------------------------------
# abdt_classicnaming
#
# Public Classes:
# Naming
# .make_tracker_bra... | apache-2.0 | -4,948,766,706,816,758,000 | 33.824468 | 79 | 0.561784 | false |
poiesisconsulting/openerp-restaurant | document/test_cindex.py | 444 | 1553 | #!/usr/bin/python
import sys
import os
import glob
import time
import logging
from optparse import OptionParser
logging.basicConfig(level=logging.DEBUG)
parser = OptionParser()
parser.add_option("-q", "--quiet",
action="store_false", dest="verbose", default=True,
help="don't prin... | agpl-3.0 | 7,569,474,720,183,684,000 | 27.236364 | 116 | 0.613007 | false |
z3ntu/razer-drivers | examples/custom_starlight.py | 1 | 2320 | from collections import defaultdict
import colorsys
import random
import time
import threading
from razer.client import DeviceManager
from razer.client import constants as razer_constants
# Create a DeviceManager. This is used to get specific devices
device_manager = DeviceManager()
print("Found {} Razer devices".f... | gpl-2.0 | -941,148,863,435,823,000 | 26.951807 | 91 | 0.673276 | false |
nazeehshoura/crawler | env/lib/python2.7/site-packages/django/contrib/gis/db/models/manager.py | 83 | 3548 | from django.db.models.manager import Manager
from django.contrib.gis.db.models.query import GeoQuerySet
class GeoManager(Manager):
"Overrides Manager to return Geographic QuerySets."
# This manager should be used for queries on related fields
# so that geometry columns on Oracle and MySQL are selected
... | mit | -3,254,124,153,539,259,400 | 33.115385 | 68 | 0.63106 | false |
xuxiao19910803/edx-platform | common/test/acceptance/pages/studio/course_page.py | 172 | 1522 | """
Base class for pages specific to a course in Studio.
"""
import os
from opaque_keys.edx.locator import CourseLocator
from bok_choy.page_object import PageObject
from . import BASE_URL
class CoursePage(PageObject):
"""
Abstract base class for page objects specific to a course in Studio.
"""
# Ove... | agpl-3.0 | -5,195,732,783,008,240,000 | 31.382979 | 100 | 0.614323 | false |
infoelliex/odoo-saas-tools | saas_client/models/res_user.py | 6 | 3354 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010, 2014 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | lgpl-3.0 | -1,717,268,531,551,331,600 | 42.558442 | 175 | 0.586166 | false |
MarkuNauma2/Markus | py/openage/convert/stringresource.py | 46 | 1211 | from collections import defaultdict
from . import dataformat
from .util import dbg
class StringResource(dataformat.Exportable):
name_struct = "string_resource"
name_struct_file = "string_resource"
struct_description = "string id/language to text mapping, extracted from language.dll file."
dat... | gpl-3.0 | 5,750,467,361,484,456,000 | 29.275 | 96 | 0.562345 | false |
jejimenez/django | tests/backends/models.py | 223 | 3397 | from __future__ import unicode_literals
from django.contrib.contenttypes.fields import (
GenericForeignKey, GenericRelation,
)
from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class S... | bsd-3-clause | 5,558,061,870,248,649,000 | 27.546218 | 112 | 0.705328 | false |
blbarker/spark-tk | regression-tests/sparktkregtests/testcases/models/kmeans_test.py | 10 | 11430 | # vim: set encoding=utf-8
# Copyright (c) 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | apache-2.0 | -1,943,741,537,693,149,700 | 51.555556 | 106 | 0.465116 | false |
DirectXMan12/nova-hacking | nova/db/sqlalchemy/types.py | 12 | 1853 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 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.apach... | apache-2.0 | -665,139,110,330,514,200 | 36.06 | 78 | 0.69401 | false |
coderb0t/CouchPotatoServer | libs/rsa/varblock.py | 216 | 4360 | # -*- coding: utf-8 -*-
#
# Copyright 2011 Sybren A. Stüvel <sybren@stuvel.eu>
#
# 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
#
# Unl... | gpl-3.0 | 8,954,533,461,723,758,000 | 27.122581 | 79 | 0.628126 | false |
monokal/qb | qb.py | 1 | 8376 | #!/usr/bin/env python3
""" A command-line client to manage qb environments. """
import argparse
import logging.handlers
import sys
from client.config import Config
from container.container import Container
from machine.machine import Machine
__author__ = "Daniel Middleton"
__email__ = "d@monokal.io"
__status__ = "P... | gpl-3.0 | 2,168,040,386,768,599,000 | 27.20202 | 79 | 0.505731 | false |
hcsturix74/django | tests/template_tests/templatetags/inclusion.py | 174 | 8479 | import operator
from django.template import Engine, Library
from django.utils import six
engine = Engine(app_dirs=True)
register = Library()
@register.inclusion_tag('inclusion.html')
def inclusion_no_params():
"""Expected inclusion_no_params __doc__"""
return {"result": "inclusion_no_params - Expected resul... | bsd-3-clause | 2,431,835,893,074,113,500 | 47.176136 | 154 | 0.723434 | false |
rodrigoasmacedo/PySPED | tests/testutils.py | 9 | 2472 | # -*- coding: utf-8 -*-
import fnmatch
import os
import pysped
def list_recursively(directory, pattern):
"""Returns files recursively from directory matching pattern
:param directory: directory to list
:param pattern: glob mattern to match
"""
matches = []
for root, dirnames, filenames in os.... | lgpl-2.1 | 4,459,960,627,083,598,300 | 28.783133 | 77 | 0.565129 | false |
Pablo126/SSBW | Tarea3/tarea3/lib/python3.5/site-packages/setuptools/command/build_clib.py | 314 | 4484 | import distutils.command.build_clib as orig
from distutils.errors import DistutilsSetupError
from distutils import log
from setuptools.dep_util import newer_pairwise_group
class build_clib(orig.build_clib):
"""
Override the default build_clib behaviour to do the following:
1. Implement a rudimentary time... | gpl-3.0 | -8,695,320,611,377,915,000 | 44.755102 | 80 | 0.524978 | false |
stackforge/watcher | watcher/decision_engine/goal/goals.py | 2 | 6789 | # -*- encoding: utf-8 -*-
# Copyright (c) 2016 b<>com
#
# 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 a... | apache-2.0 | -8,547,498,503,718,921,000 | 24.33209 | 79 | 0.676977 | false |
matrixise/odoo | addons/base_gengo/__init__.py | 377 | 1122 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Openerp sa (<http://openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of th... | agpl-3.0 | -2,283,955,828,702,476,000 | 40.555556 | 78 | 0.630125 | false |
apaku/pygmailarchive | setup.py | 1 | 1214 | import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.pat... | bsd-2-clause | -7,822,123,894,518,207,000 | 38.16129 | 103 | 0.604613 | false |
arm-hpc/allinea_json_analysis | PR_JSON_Scripts/pr_json_common.py | 1 | 3809 | #!/usr/bin/env python
# Copyright 2015-2017 ARM Limited
#
# 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... | apache-2.0 | -4,528,700,001,243,548,000 | 29.96748 | 80 | 0.681281 | 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.