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 |
|---|---|---|---|---|---|---|---|---|---|---|
rekbun/browserscope | test/test_decorators.py | 9 | 1678 | #!/usr/bin/python2.5
#
# Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the 'License')
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | apache-2.0 | -2,323,096,876,804,251,600 | 26.064516 | 74 | 0.718713 | false |
30loops/libthirty | libthirty/state.py | 1 | 4469 | # Copyright (c) 2011-2012, 30loops.net
# 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 condition... | bsd-3-clause | 3,043,340,186,601,897,000 | 30.471831 | 80 | 0.623853 | false |
clems/openfisca | src/views/ui_page02.py | 1 | 22628 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui/page02.ui'
#
# Created: Tue May 29 19:14:52 2012
# by: PyQt4 UI code generator 4.8.5
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except Attri... | gpl-3.0 | -2,913,424,931,489,744,000 | 75.260135 | 239 | 0.681699 | false |
kivatu/kivy_old | kivy/uix/checkbox.py | 5 | 3103 | '''
CheckBox
========
.. versionadded:: 1.4.0
.. image:: images/checkbox.png
:align: right
:class:`CheckBox` is a specific two-state button that can be either checked or
unchecked. If the CheckBox is in a Group, it becomes a Radio button.
As with the :class:`~kivy.uix.togglebutton.ToggleButton`, only one Radio b... | mit | -7,030,273,432,267,212,000 | 27.209091 | 80 | 0.59942 | false |
pfnet/chainer | chainer/training/extensions/polynomial_shift.py | 10 | 3354 | from __future__ import division
import numpy
from chainer.training import extension
class PolynomialShift(extension.Extension):
"""Trainer extension to polynomially shift an optimizer attribute.
This extension polynomially decreases the specified attribute of the
optimizer. The typical use case is a p... | mit | -9,045,266,975,561,982,000 | 34.680851 | 79 | 0.608229 | false |
fbsder/zephyr | doc/conf.py | 1 | 12262 | # -*- coding: utf-8 -*-
#
# Zephyr documentation build configuration file, created by
# sphinx-quickstart on Fri May 8 11:43:01 2015.
#
# 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.
#
# Al... | apache-2.0 | 6,315,691,974,838,142,000 | 31.609043 | 109 | 0.692439 | false |
melodous/designate | designate/api/v2/controllers/extensions/tenants.py | 1 | 1568 | # COPYRIGHT 2014 Rackspace
#
# Author: Betsy Luzader <betsy.luzader@rackspace.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
#
# Unle... | apache-2.0 | -4,246,955,447,771,906,600 | 32.361702 | 75 | 0.720663 | false |
anilmuthineni/tensorflow | tensorflow/contrib/layers/python/layers/optimizers.py | 20 | 18031 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -8,883,572,021,005,696,000 | 41.227166 | 80 | 0.644778 | false |
tedi3231/openerp | openerp/addons/l10n_be_coda/l10n_be_coda.py | 63 | 3843 | # -*- 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 | -79,852,793,143,953,040 | 51.643836 | 193 | 0.591205 | false |
bvcms/bvcms | CmsWeb/Lib/logging/__init__.py | 2 | 61272 | # Copyright 2001-2014 by Vinay Sajip. All Rights Reserved.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted,
# provided that the above copyright notice appear in all copies and that
# both that copyright notice and this permissio... | gpl-2.0 | -7,688,737,665,484,001,000 | 34.133028 | 93 | 0.581603 | false |
RafaelCosman/pybrain | pybrain/tools/customxml/networkreader.py | 25 | 3676 | from __future__ import print_function
__author__ = 'Tom Schaul, tom@idsia.ch'
from .handling import XMLHandling
# those imports are necessary for the eval() commands to find the right classes
import pybrain #@UnusedImport
from scipy import array #@UnusedImport
try:
import arac.pybrainbridge #@UnusedImport
exc... | bsd-3-clause | 3,858,495,127,116,370,400 | 30.418803 | 87 | 0.582971 | false |
evernote/zing | pootle/apps/pootle_app/management/commands/refresh_scores.py | 1 | 2645 | # -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
import datetime
import os
os.environ["DJAN... | gpl-3.0 | 3,745,891,478,949,949,000 | 34.266667 | 87 | 0.590926 | false |
aidanhs/servo | tests/wpt/web-platform-tests/tools/six/documentation/conf.py | 420 | 7015 | # -*- coding: utf-8 -*-
#
# six documentation build configuration file
import os
import sys
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like ... | mpl-2.0 | -5,703,070,377,000,352,000 | 31.327189 | 80 | 0.694512 | false |
salopensource/sal | server/plugins/munkiinfo/scripts/munkiinfo.py | 2 | 1614 | #!/usr/local/sal/Python.framework/Versions/3.8/bin/python3
import sys
import sal
sys.path.append('/usr/local/munki')
from munkilib import munkicommon
PREFS_TO_GET = (
'ManagedInstallDir',
'SoftwareRepoURL',
'ClientIdentifier',
'LogFile',
'LoggingLevel',
'LogToSyslog',
'InstallAppleSoftw... | apache-2.0 | -3,521,534,059,735,694,000 | 22.735294 | 71 | 0.672862 | false |
JshWright/home-assistant | homeassistant/components/notify/ciscospark.py | 19 | 1851 | """
Cisco Spark platform for notify component.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/notify.ciscospark/
"""
import logging
import voluptuous as vol
from homeassistant.components.notify import (
PLATFORM_SCHEMA, BaseNotificationService, ATT... | apache-2.0 | -9,143,084,378,268,551,000 | 31.473684 | 78 | 0.663965 | false |
guojianli/code-for-blog | 2008/libcollect.py | 14 | 14080 | """
libcollect.py
Provides the LibCollect class, used for collecting the various libraries
your script uses for delivery as a self-contained distribution package.
Author: Eli Bendersky (http://eli.thegreenplace.net)
License: Same as Python
Motivation:
Imagine that you've written a script that uses several librarie... | unlicense | 1,895,727,236,468,860,400 | 38.220056 | 128 | 0.598935 | false |
saraivaufc/askMathPlus | askmath/models/history/answered_questions_historic.py | 1 | 1398 | from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext as _
#historico das respostas das questoes
class AnsweredQuestionsHistoric(models.Model):
discipline = models.ForeignKey('Discipline', related_name=_('Discipline'), verbose_name=_(u"Discipline"))
lesso... | gpl-2.0 | 5,627,018,009,979,603,000 | 35.789474 | 109 | 0.675966 | false |
adhoc-dev/sale-workflow | sale_order_type/__openerp__.py | 13 | 2363 | # -*- encoding: utf-8 -*-
##############################################################################
# #
# OpenERP, Open Source Management Solution. #
# ... | agpl-3.0 | -3,734,275,604,216,928,000 | 45.313725 | 78 | 0.409822 | false |
keenlabs/KeenClient-Python | keen/tests/scoped_key_tests.py | 1 | 1665 | from keen import scoped_keys
from keen.tests.base_test_case import BaseTestCase
class ScopedKeyTests(BaseTestCase):
api_key = "24077ACBCB198BAAA2110EDDB673282F8E34909FD823A15C55A6253A664BE368"
bad_api_key = "24077ACBCB198BAAA2110EDDB673282F8E34909FD823A15C55A6253A664BE369"
old_api_key = "ab428324dbdbcfe74... | mit | 5,849,995,575,345,504,000 | 38.642857 | 84 | 0.659459 | false |
dlodato/AliPhysics | PWGMM/MC/aligenqa/aligenqa/utils.py | 37 | 7697 | import os
import random
import string
import subprocess
import re
from rootpy import asrootpy
from rootpy.plotting import Graph
def gen_random_name():
"""Generate a random name for temp hists"""
return ''.join(random.choice(string.ascii_letters + string.digits) for _ in range(25))
def get_est_dirs(sums, co... | bsd-3-clause | 567,412,052,938,493,630 | 32.758772 | 119 | 0.615175 | false |
danakj/chromium | chrome/common/extensions/docs/server2/branch_utility_test.py | 77 | 7693 | #!/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 os
import sys
import unittest
from branch_utility import BranchUtility, ChannelInfo
from fake_url_fetcher import FakeUrlFet... | bsd-3-clause | -1,780,394,781,207,415,600 | 42.219101 | 78 | 0.660861 | false |
YongseopKim/crosswalk-test-suite | webapi/tct-csp-w3c-tests/csp-py/csp_font-src_cross-origin_allowed-manual.py | 30 | 2615 | def main(request, response):
import simplejson as json
f = file('config.json')
source = f.read()
s = json.JSONDecoder().decode(source)
url1 = "http://" + s['host'] + ":" + str(s['ports']['http'][1])
_CSP = "font-src " + url1
response.headers.set("Content-Security-Policy", _CSP)
response.... | bsd-3-clause | -1,894,933,208,292,640,000 | 39.230769 | 81 | 0.701721 | false |
palerdot/calibre | src/calibre/ebooks/oeb/polish/cover.py | 2 | 15201 | #!/usr/bin/env python
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:fdm=marker:ai
from __future__ import (unicode_literals, division, absolute_import,
print_function)
__license__ = 'GPL v3'
__copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
... | gpl-3.0 | 1,939,646,759,069,212,400 | 40.876033 | 103 | 0.624696 | false |
caisq/tensorflow | tensorflow/contrib/lookup/lookup_ops_test.py | 6 | 91453 | # 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 | -2,894,319,252,296,150,000 | 37.377256 | 80 | 0.620767 | false |
jbuchbinder/youtube-dl | youtube_dl/extractor/democracynow.py | 22 | 3016 | # coding: utf-8
from __future__ import unicode_literals
import re
import os.path
from .common import InfoExtractor
from ..compat import compat_urlparse
from ..utils import (
url_basename,
remove_start,
)
class DemocracynowIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?democracynow\.org/(?P<id>[^\?... | unlicense | -7,950,667,886,734,781,000 | 30.747368 | 122 | 0.527851 | false |
dscotese/bitcoin | test/functional/test_framework/segwit_addr.py | 18 | 4177 | #!/usr/bin/env python3
# Copyright (c) 2017 Pieter Wuille
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Reference implementation for Bech32 and segwit addresses."""
import unittest
CHARSET = "qpzry9x8gf2tvdw0s3jn54khce6mua7l"... | mit | 3,133,384,536,085,922,000 | 33.520661 | 94 | 0.613838 | false |
rew4332/tensorflow | tensorflow/python/kernel_tests/summary_tensor_op_test.py | 9 | 3807 | # 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 | 5,157,101,657,149,643,000 | 32.394737 | 80 | 0.657736 | false |
kiniou/qtile | libqtile/widget/textbox.py | 2 | 2262 | # Copyright (c) 2008, 2010 Aldo Cortesi
# Copyright (c) 2011 Mounier Florian
# Copyright (c) 2012, 2015 Tycho Andersen
# Copyright (c) 2013 Tao Sauvage
# Copyright (c) 2013 Craig Barnes
# Copyright (c) 2014 Sean Vig
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and ... | mit | 7,763,493,135,095,383,000 | 36.7 | 79 | 0.67595 | false |
wxgeo/geophar | wxgeometrie/pylib/fonctions.py | 1 | 29422 | # -*- coding: utf-8 -*-
##########################################################################
#
# Fonctions couramment utilisees, et non implementees en Python
# (...du moins, à ma connaissance !)
#
##########################################################################
# WxGeometr... | gpl-2.0 | -143,964,024,907,607,600 | 31.6466 | 130 | 0.577995 | false |
dlazz/ansible | test/units/modules/network/edgeswitch/test_edgeswitch_vlan.py | 29 | 5640 | # (c) 2018 Red Hat 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 dis... | gpl-3.0 | -1,494,007,375,208,604,700 | 35.623377 | 117 | 0.58227 | false |
surdy/dcos | pkgpanda/test_util.py | 2 | 14309 | import os
import tempfile
from subprocess import CalledProcessError
import pytest
import pkgpanda.util
from pkgpanda import UserManagement
from pkgpanda.exceptions import ValidationError
PathSeparator = '/' # Currently same for both windows and linux. Constant may vary in near future by platform
def test_remove_f... | apache-2.0 | 4,585,809,773,517,996,500 | 33.98533 | 118 | 0.649801 | false |
CottageLabs/OpenArticleGauge | openarticlegauge/tests/test_provider_skeleton.py | 1 | 11803 | from unittest import TestCase
import requests, os
from openarticlegauge import config, models
######################################################################################
# Set these variables/imports and the test case will use them to perform some general
# tests on your provider code
# import your plugin... | bsd-3-clause | 3,915,169,568,840,055,000 | 49.225532 | 815 | 0.611201 | false |
tpetmanson/pfe | pypfe/corpedit.py | 2 | 2341 | # -*- coding: utf-8 -*-
# Python 2.7
# Pattern based fact extraction library.
# Copyright (C) 2013 University of Tartu
#
# 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 versi... | gpl-3.0 | -7,793,618,818,389,073,000 | 29.012821 | 75 | 0.620675 | false |
openstack/nova | nova/virt/arch.py | 7 | 1548 | # Copyright 2018 VEXXHOST, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | apache-2.0 | 2,818,277,261,630,564,400 | 22.815385 | 78 | 0.683463 | false |
batxes/4Cin | Six_mouse_models/Six_mouse_models_final_output_0.2_-0.1_11000/Six_mouse_models47608.py | 2 | 18219 | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | gpl-3.0 | -2,856,797,872,106,215,000 | 45.358779 | 71 | 0.699544 | false |
mbareta/edx-platform-ft | common/djangoapps/track/views/tests/test_segmentio.py | 11 | 22013 | """Ensure we can parse events sent to us from the Segment webhook integration"""
from datetime import datetime
import json
from ddt import ddt, data, unpack
from mock import sentinel
from nose.plugins.attrib import attr
from django.contrib.auth.models import User
from django.test.client import RequestFactory
from dj... | agpl-3.0 | 227,689,618,033,500,380 | 39.689464 | 149 | 0.541816 | false |
wateraccounting/SEBAL | PreSEBAL/preSEBAL.py | 1 | 110216 | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 08 15:09:49 2016
#test Github
@author: tih
"""
import numpy as np
import os
import scipy.interpolate
import gdal
from openpyxl import load_workbook
import osr
from datetime import datetime, timedelta
import pandas as pd
import shutil
import glob
from netCDF4 import Dataset... | apache-2.0 | 5,328,898,394,228,644,000 | 49.626091 | 284 | 0.568114 | false |
benschmaus/catapult | telemetry/telemetry/internal/platform/mac_platform_backend.py | 1 | 7073 | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import ctypes
import os
import platform
import subprocess
import sys
import time
from telemetry.core import os_version as os_version_module
from telemetry i... | bsd-3-clause | -4,090,298,747,025,432,000 | 34.365 | 80 | 0.66153 | false |
akintoey/django | tests/ordering/models.py | 261 | 1379 | """
Specifying ordering
Specify default ordering for a model using the ``ordering`` attribute, which
should be a list or tuple of field names. This tells Django how to order
``QuerySet`` results.
If a field name in ``ordering`` starts with a hyphen, that field will be
ordered in descending order. Otherwise, it'll be ... | bsd-3-clause | 7,713,651,897,796,556,000 | 27.142857 | 77 | 0.70921 | false |
fintech-circle/edx-platform | lms/djangoapps/commerce/tests/test_utils.py | 1 | 4317 | """Tests of commerce utilities."""
from django.conf import settings
from django.test import TestCase
from django.test.client import RequestFactory
from django.test.utils import override_settings
from mock import patch
from waffle.testutils import override_switch
from commerce.models import CommerceConfiguration
from c... | agpl-3.0 | 7,236,134,839,867,639,000 | 43.05102 | 100 | 0.698633 | false |
YuepengGuo/backtrader | backtrader/feeds/blaze.py | 2 | 2832 | #!/usr/bin/env python
# -*- coding: utf-8; py-indent-offset:4 -*-
###############################################################################
#
# Copyright (C) 2015 Daniel Rodriguez
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as pub... | gpl-3.0 | 7,512,006,635,329,745,000 | 29.782609 | 79 | 0.572387 | false |
wkeyword/pip | pip/_vendor/requests/packages/chardet/mbcssm.py | 1783 | 19590 | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
#
# Con... | mit | -1,680,314,730,222,894,300 | 33.248252 | 93 | 0.492037 | false |
SummerLW/Perf-Insight-Report | telemetry/telemetry/internal/platform/network_controller_backend_unittest.py | 1 | 14322 | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import mock
import unittest
from telemetry.internal import forwarders
from telemetry.internal.platform import network_controller_backend
from tele... | bsd-3-clause | 9,140,361,408,450,670,000 | 36.007752 | 80 | 0.710376 | false |
kylepolich/sandbox | andrew/example.py | 1 | 2031 | #!/usr/bin/python
import daemon
import web
import sys
import os
port=8081
header = '<html><body><a href="/car/list">List</a> | <a href="/car/set">Set</a> | <a href="/goodbye">Terminate Server</a><br/>'
footer = '</body></html>'
class hello:
def GET(self):
return header + footer
class car_list:
def GET(self)... | cc0-1.0 | -1,303,225,168,307,934,000 | 24.3875 | 194 | 0.584934 | false |
ricotabor/opendrop | site_scons/site_tools/cython.py | 2 | 8689 | import os
import re
import shlex
import subprocess
from SCons.Scanner import FindPathDirs
from SCons.Script import Action, Builder
def exists(env):
return env.Detect('cython')
def generate(env):
env.Tool('python')
env.SetDefault(CYTHONPATH=[])
env['BUILDERS']['Cython'] = Builder(
action=A... | gpl-2.0 | 6,121,500,385,252,195,000 | 26.760383 | 103 | 0.487398 | false |
iDTLabssl/kitsune | kitsune/settings_test.py | 16 | 1298 | # The test system uses this to override settings in settings.py and
# settings_local.py with settings appropriate for testing.
import os
ES_LIVE_INDEXING = False
ES_INDEX_PREFIX = 'sumotest'
ES_INDEXES = {
'default': 'test-default',
'non-critical': 'test-non-critical',
'metrics': 'test-metrics',
}
ES_WRITE... | bsd-3-clause | -3,175,055,708,674,342,000 | 32.282051 | 74 | 0.726502 | false |
xubenben/scikit-learn | sklearn/cross_decomposition/cca_.py | 209 | 3150 | from .pls_ import _PLS
__all__ = ['CCA']
class CCA(_PLS):
"""CCA Canonical Correlation Analysis.
CCA inherits from PLS with mode="B" and deflation_mode="canonical".
Read more in the :ref:`User Guide <cross_decomposition>`.
Parameters
----------
n_components : int, (default 2).
numb... | bsd-3-clause | -6,511,971,167,413,375,000 | 28.439252 | 77 | 0.598095 | false |
vladikr/nova_drafts | nova/db/sqlalchemy/migrate_repo/versions/252_add_instance_extra_table.py | 29 | 2574 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | apache-2.0 | 655,907,665,460,297,100 | 35.253521 | 78 | 0.626651 | false |
grantcoin/grantcoin-new | contrib/p2pool/wstools/WSDLTools.py | 292 | 60641 | # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISC... | agpl-3.0 | 2,224,082,950,996,452,000 | 35.355516 | 95 | 0.582708 | false |
tylertian/Openstack | openstack F/python-glanceclient/tests/test_exc.py | 3 | 1035 | # Copyright 2012 OpenStack LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | apache-2.0 | -2,888,136,024,096,881,700 | 34.689655 | 78 | 0.732367 | false |
savoirfairelinux/OpenUpgrade | addons/hw_escpos/controllers/main.py | 125 | 14043 | # -*- coding: utf-8 -*-
import commands
import logging
import simplejson
import os
import os.path
import io
import base64
import openerp
import time
import random
import math
import md5
import openerp.addons.hw_proxy.controllers.main as hw_proxy
import pickle
import re
import subprocess
import traceback
from threading ... | agpl-3.0 | 1,147,009,089,853,384,200 | 36.249337 | 215 | 0.530727 | false |
kastriothaliti/techstitution | venv/lib/python2.7/site-packages/jinja2/loaders.py | 333 | 17380 | # -*- coding: utf-8 -*-
"""
jinja2.loaders
~~~~~~~~~~~~~~
Jinja loader classes.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
import os
import sys
import weakref
from types import ModuleType
from os import path
from hashlib import sha1
from jinja2.excepti... | gpl-3.0 | 7,516,060,472,024,198,000 | 35.133056 | 78 | 0.612601 | false |
sechacking/MITMf | plugins/browsersniper.py | 26 | 6804 | #!/usr/bin/env python2.7
# Copyright (c) 2014-2016 Marcello Salvati
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#... | gpl-3.0 | 543,226,641,227,615,550 | 37.224719 | 124 | 0.570988 | false |
colinligertwood/odoo | addons/base_gengo/__openerp__.py | 68 | 2119 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | -1,841,097,875,271,203,000 | 40.54902 | 158 | 0.630958 | false |
PlayUAV/MissionPlanner | Lib/xml/sax/saxutils.py | 53 | 10131 | """\
A library of useful helper classes to the SAX classes, for the
convenience of application and driver writers.
"""
import os, urlparse, urllib, types
import handler
import xmlreader
try:
_StringTypes = [types.StringType, types.UnicodeType]
except AttributeError:
_StringTypes = [types.StringTyp... | gpl-3.0 | 95,761,590,234,927,070 | 30.892857 | 78 | 0.608232 | false |
Zanzibar82/streamondemand.test | lib/gdata/geo/__init__.py | 249 | 6006 | # -*-*- encoding: utf-8 -*-*-
#
# This is gdata.photos.geo, implementing geological positioning in gdata structures
#
# $Id: __init__.py 81 2007-10-03 14:41:42Z havard.gulldahl $
#
# Copyright 2007 Håvard Gulldahl
# Portions copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");... | gpl-3.0 | -4,210,842,722,312,806,400 | 31.454054 | 104 | 0.686709 | false |
hadjian/gtest-1.6.0 | test/gtest_xml_output_unittest.py | 397 | 11279 | #!/usr/bin/env python
#
# Copyright 2006, 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... | bsd-3-clause | 8,118,003,884,751,796,000 | 45.607438 | 188 | 0.679227 | false |
p4datasystems/CarnotKEdist | dist/Lib/test/test_codecencodings_kr.py | 149 | 2750 | #!/usr/bin/env python
#
# test_codecencodings_kr.py
# Codec encoding tests for ROK encodings.
#
from test import test_support
from test import test_multibytecodec_support
import unittest
class Test_CP949(test_multibytecodec_support.TestBase, unittest.TestCase):
encoding = 'cp949'
tstring = test_multibytecod... | apache-2.0 | -88,149,641,870,298,050 | 38.855072 | 74 | 0.584364 | false |
rds0751/colinkers | env/Lib/site-packages/django/utils/log.py | 85 | 6462 | from __future__ import unicode_literals
import logging
import logging.config # needed when logging_config doesn't start with logging.config
from copy import copy
from django.conf import settings
from django.core import mail
from django.core.mail import get_connection
from django.core.management.color import color_st... | agpl-3.0 | -1,571,483,401,977,751,300 | 32.138462 | 90 | 0.586351 | false |
eonpatapon/nova | nova/tests/unit/objects/test_aggregate.py | 30 | 7793 | # Copyright 2013 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | apache-2.0 | -418,217,951,659,296,700 | 38.160804 | 79 | 0.619017 | false |
choderalab/YankTools | testsystems/systems.py | 1 | 74487 | #!/usr/local/bin/env python
"""
Module to generate Systems and positions for simple reference molecular systems for testing.
DESCRIPTION
This module provides functions for building a number of test systems of varying complexity,
useful for testing both OpenMM and various codes based on pyopenmm.
Note that the PYOPE... | gpl-2.0 | -3,412,415,884,852,902,000 | 37.159324 | 167 | 0.578544 | false |
eLvErDe/nicotine-plus | plugins/plugindebugger/__init__.py | 1 | 3009 | from pynicotine.pluginsystem import BasePlugin
def enable(plugins):
global PLUGIN
PLUGIN = Plugin(plugins)
def disable(plugins):
global PLUGIN
PLUGIN = None
class Plugin(BasePlugin):
__name__ = "Plugin Debugger"
__version__ = "2009-05-27r00"
__author__ = "quinox"
__desc__ = """Plug... | gpl-3.0 | 5,116,911,755,498,585,000 | 31.354839 | 118 | 0.649053 | false |
kenshay/ImageScripter | ProgramData/SystemFiles/Python/Lib/site-packages/pygame/examples/macosx/aliens_app_example/aliens.py | 17 | 9634 | #! /usr/bin/env python
import random, os.path
#import basic pygame modules
import pygame
from pygame.locals import *
#see if we can load more than standard BMP
if not pygame.image.get_extended():
raise SystemExit("Sorry, extended image module required")
#game constants
MAX_SHOTS = 2 #most player bull... | gpl-3.0 | -3,002,421,623,600,034,300 | 28.643077 | 83 | 0.610131 | false |
lhellebr/GreenTea | apps/core/admin.py | 2 | 10226 | #!/bin/python
# -*- coding: utf-8 -*-
# Author: Pavel Studenik
# Email: pstudeni@redhat.com
# Date: 24.9.2013
import reversion
from django.contrib import admin
from django.core.urlresolvers import reverse
from models import (Arch, Author, CheckProgress, Distro, DistroTemplate, Event,
FileLog, Git... | gpl-2.0 | 2,282,417,359,035,209,700 | 32.638158 | 135 | 0.641893 | false |
Edraak/edraak-platform | cms/djangoapps/contentstore/views/library.py | 14 | 10232 | """
Views related to content libraries.
A content library is a structure containing XBlocks which can be re-used in the
multiple courses.
"""
from __future__ import absolute_import
import logging
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.core.exceptions imp... | agpl-3.0 | -9,124,488,790,349,779,000 | 37.322097 | 118 | 0.682369 | false |
vlegoff/tsunami | src/secondaires/navigation/editeurs/matedit/__init__.py | 1 | 5288 | # -*-coding:Utf-8 -*
# Copyright (c) 2010-2017 LE GOFF Vincent
# 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
# ... | bsd-3-clause | 414,419,015,110,490,430 | 41.08 | 79 | 0.664259 | false |
kogotko/carburetor | openstack_dashboard/api/rest/keystone.py | 1 | 19555 | # Copyright 2014, Rackspace, US, 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 in w... | apache-2.0 | 8,584,303,693,846,941,000 | 31.215815 | 79 | 0.603273 | false |
Drooids/odoo | addons/l10n_multilang/__init__.py | 438 | 1082 | # -*- 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 | -8,460,206,510,953,993,000 | 44.083333 | 78 | 0.620148 | false |
ultilix/catawampus | tr/vendor/bup/lib/bup/ssh.py | 8 | 1763 | """SSH connection.
Connect to a remote host via SSH and execute a command on the host.
"""
import sys, os, re, subprocess
from bup import helpers, path
def connect(rhost, port, subcmd):
"""Connect to 'rhost' and execute the bup subcommand 'subcmd' on it."""
assert(not re.search(r'[^\w-]', subcmd))
nicedir... | apache-2.0 | 236,007,867,918,045,900 | 40.97619 | 80 | 0.553035 | false |
vinutah/apps | tools/llvm/llvm_39/opt/bindings/python/llvm/tests/test_disassembler.py | 97 | 1475 | from .base import TestBase
from ..disassembler import Disassembler, Option_UseMarkup
class TestDisassembler(TestBase):
def test_instantiate(self):
Disassembler('i686-apple-darwin9')
def test_basic(self):
sequence = '\x67\xe3\x81' # jcxz -127
triple = 'i686-apple-darwin9'
dis... | gpl-3.0 | 7,128,617,311,220,693,000 | 33.302326 | 92 | 0.649492 | false |
yg257/Pangea | lib/boto-2.34.0/boto/ec2/elb/healthcheck.py | 185 | 3775 | # Copyright (c) 2006-2012 Mitch Garnaat http://garnaat.org/
# Copyright (c) 2012 Amazon.com, Inc. or its affiliates.
# All Rights Reserved
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software wi... | apache-2.0 | -343,356,477,119,816,260 | 41.41573 | 120 | 0.663311 | false |
hdemeyer/king-phisher | king_phisher/client/tabs/campaign.py | 1 | 27197 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# king_phisher/client/tabs/campaign.py
#
# 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
# not... | bsd-3-clause | -8,454,680,402,702,398,000 | 32.288862 | 136 | 0.701144 | false |
JFriel/honours_project | venv/lib/python2.7/site-packages/numpy/core/tests/test_longdouble.py | 65 | 5845 | from __future__ import division, absolute_import, print_function
import locale
import numpy as np
from numpy.testing import (
run_module_suite, assert_, assert_equal, dec, assert_raises,
assert_array_equal, TestCase, temppath,
)
from numpy.compat import sixu
from test_print import in_foreign_locale
longdoubl... | gpl-3.0 | 8,337,200,007,316,732,000 | 26.966507 | 74 | 0.617622 | false |
pf/enso | enso/contrib/evaluate.py | 8 | 5500 | # Copyright (c) 2008, Humanized, 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:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditi... | bsd-3-clause | -6,018,148,451,441,296,000 | 32.536585 | 89 | 0.534545 | false |
CopeX/odoo | addons/procurement/procurement.py | 151 | 15839 | # -*- 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 | -9,044,082,233,510,554,000 | 44.645533 | 254 | 0.592335 | false |
noba3/KoTos | addons/script.module.youtube.dl/lib/youtube_dl/extractor/sunporno.py | 127 | 2384 | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
parse_duration,
int_or_none,
qualities,
determine_ext,
)
class SunPornoIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?sunporno\.com/videos/(?P<id>\d+)'
_TEST = {
'url': 'ht... | gpl-2.0 | 5,716,074,143,267,141,000 | 31.216216 | 81 | 0.518037 | false |
adrian-zumbler/IdealNews | node_modules/grunt-docker/node_modules/docker/node_modules/pygmentize-bundled/vendor/pygments/build-2.7/pygments/styles/colorful.py | 364 | 2778 | # -*- coding: utf-8 -*-
"""
pygments.styles.colorful
~~~~~~~~~~~~~~~~~~~~~~~~
A colorful style, inspired by CodeRay.
:copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.style import Style
from pygments.token import Keyword, ... | mit | -8,047,571,199,570,066,000 | 33.296296 | 70 | 0.424046 | false |
Haibo-Wang-ORG/pytest | _pytest/pdb.py | 27 | 3415 | """ interactive debugging with PDB, the Python Debugger. """
from __future__ import absolute_import
import pdb
import sys
import pytest
def pytest_addoption(parser):
group = parser.getgroup("general")
group._addoption('--pdb',
action="store_true", dest="usepdb", default=False,
h... | mit | -3,035,674,549,563,803,000 | 30.62037 | 74 | 0.631332 | false |
Atlas-Sailed-Co/oppia | core/domain/gadget_registry_test.py | 24 | 1686 | # coding: utf-8
#
# Copyright 2014 The Oppia 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 requi... | apache-2.0 | 734,151,440,789,217,200 | 34.125 | 74 | 0.685647 | false |
Ghalko/osf.io | tests/test_permissions.py | 58 | 1302 | # -*- coding: utf-8 -*-
"""Tests for the permissions module."""
import unittest
from nose.tools import * # PEP8 asserts
from website.util import permissions
def test_expand_permissions():
result = permissions.expand_permissions('admin')
assert_equal(result, ['read', 'write', 'admin'])
result2 = permiss... | apache-2.0 | -7,993,537,672,168,970,000 | 26.702128 | 71 | 0.692012 | false |
sasukeh/neutron | neutron/tests/unit/plugins/oneconvergence/test_plugin_helper.py | 43 | 2504 | # Copyright 2014 OneConvergence, 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 requir... | apache-2.0 | 3,075,361,512,925,972,000 | 41.440678 | 78 | 0.628594 | false |
harshilasu/LinkurApp | y/google-cloud-sdk/platform/gsutil/third_party/boto/boto/file/bucket.py | 97 | 4075 | # Copyright 2010 Google Inc.
# Copyright (c) 2011, Nexenta Systems Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use... | gpl-3.0 | -105,686,706,758,622,720 | 35.383929 | 81 | 0.639755 | false |
apyrgio/synnefo | snf-cyclades-app/synnefo/volume/util.py | 6 | 4183 | # Copyright (C) 2010-2014 GRNET S.A.
#
# 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 i... | gpl-3.0 | -5,314,866,332,078,948,000 | 35.060345 | 76 | 0.674874 | false |
40223136/w17test2 | static/Brython3.1.0-20150301-090019/Lib/xml/dom/domreg.py | 841 | 3402 | """Registration facilities for DOM. This module should not be used
directly. Instead, the functions getDOMImplementation and
registerDOMImplementation should be imported from xml.dom."""
# This is a list of well-known implementations. Well-known names
# should be published by posting to xml-sig@python.org, and are
# ... | gpl-3.0 | -3,201,514,019,984,049,700 | 34.072165 | 78 | 0.668724 | false |
horance-liu/tensorflow | tensorflow/python/estimator/estimator_lib.py | 13 | 3243 | # 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 | -8,045,259,588,049,937,000 | 39.037037 | 94 | 0.7749 | false |
magul/pywikibot-core | scripts/isbn.py | 1 | 42218 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
This script reports and fixes invalid ISBN numbers.
Additionally, it can convert all ISBN-10 codes to the ISBN-13 format, and
correct the ISBN format by placing hyphens.
These command line parameters can be used to specify which pages to work on:
¶ms;
Furthermore, t... | mit | -2,023,259,570,068,452,400 | 24.159714 | 99 | 0.391918 | false |
adityacs/ansible | lib/ansible/utils/module_docs_fragments/openswitch.py | 166 | 4001 | #
# (c) 2015, Peter Sprygada <psprygada@ansible.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) any late... | gpl-3.0 | 6,930,112,188,682,468,000 | 39.826531 | 82 | 0.703574 | false |
vaishalitekale/treeherder | tests/etl/test_perf_data_adapters.py | 1 | 2747 | import json
import zlib
from tests.sampledata import SampleData
from treeherder.etl.perf_data_adapters import TalosDataAdapter
def test_adapt_and_load():
talos_perf_data = SampleData.get_talos_perf_data()
tda = TalosDataAdapter()
result_count = 0
for datum in talos_perf_data:
datum = {
... | mpl-2.0 | -4,818,731,691,626,108,000 | 36.630137 | 111 | 0.56862 | false |
mschurenko/ansible-modules-core | cloud/rackspace/rax_clb_nodes.py | 43 | 8603 | #!/usr/bin/python
# 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 distributed... | gpl-3.0 | -240,370,262,164,740,500 | 29.615658 | 84 | 0.596304 | false |
yugangw-msft/azure-cli | src/azure-cli/azure/cli/command_modules/kusto/_params.py | 6 | 1902 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | mit | 6,711,375,064,881,013,000 | 47.769231 | 144 | 0.617771 | false |
yanirs/servo | tests/wpt/web-platform-tests/tools/pywebsocket/src/mod_pywebsocket/common.py | 489 | 9947 | # Copyright 2012, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | mpl-2.0 | 3,418,972,434,514,587,000 | 31.828383 | 78 | 0.720117 | false |
vanloswang/conky_all | conky_colors/conkycolors/scripts/conkyGoogleReader.py | 7 | 12797 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
###############################################################################
# conkyEmail.py is a simple python script to gather
# details of google reader subscriptions for use in conky.
#
# Author: Kaivalagi
# Created: 09/07/2008
#
# 18/05/2009 Updated to expa... | gpl-3.0 | 1,421,552,268,242,638,800 | 42.379661 | 270 | 0.564351 | false |
blakfeld/ansible | contrib/inventory/libvirt_lxc.py | 132 | 1324 | #!/usr/bin/env python
# (c) 2013, Michael Scherer <misc@zarb.org>
#
# This file is part of Ansible,
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your o... | gpl-3.0 | 3,427,686,607,323,122,700 | 34.783784 | 111 | 0.685801 | false |
hexastorm/opticaldesign | simulation.py | 1 | 3946 | %pylab inline
import warnings
import numpy as np
import matplotlib.pyplot as plt
import rayopt as ro
# Lens used 12.5mm Dia. x 90mm FL, VIS-NIR, Inked, Achromatic Lens from Edmund Optics
# LINK: http://www.edmundoptics.com/document/download/391099
filename='zmax_49332ink.zmx'
with open(filename) as file:
data=f... | gpl-3.0 | 5,926,348,338,278,896,000 | 40.536842 | 108 | 0.673594 | false |
davidbz/trafficserver | tests/gold_tests/autest-site/ports.py | 5 | 3718 | '''
'''
# 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");... | apache-2.0 | -1,401,336,975,459,264,000 | 28.046875 | 100 | 0.59333 | false |
2ndy/RaspIM | usr/lib/python2.7/lib-tk/tkCommonDialog.py | 193 | 1418 | # base class for tk common dialogues
#
# this module provides a base class for accessing the common
# dialogues available in Tk 4.2 and newer. use tkFileDialog,
# tkColorChooser, and tkMessageBox to access the individual
# dialogs.
#
# written by Fredrik Lundh, May 1997
#
from Tkinter import *
class Dialog:
com... | gpl-2.0 | -6,235,262,273,605,984,000 | 22.633333 | 67 | 0.577574 | false |
ihidalgo/uip-prog3 | Parciales/practicas/kivy-designer-master/designer/tree.py | 5 | 2922 | from kivy.uix.widget import Widget
class TreeException(Exception):
pass
class TreeNode(object):
'''TreeNode class for representing information of Widgets
'''
def __init__(self):
super(TreeNode, self).__init__()
self.parent_node = None
self.list_children = []
self.cl... | mit | 2,706,412,836,613,336,000 | 27.368932 | 68 | 0.569473 | false |
nyee/RMG-Py | external/cclib/method/lpa.py | 24 | 4492 | """
cclib (http://cclib.sf.net) is (c) 2006, the cclib development team
and licensed under the LGPL (http://www.gnu.org/copyleft/lgpl.html).
"""
__revision__ = "$Revision: 837 $"
import random
import numpy
from population import Population
class LPA(Population):
"""The Lowdin population analysis"""
def __... | mit | 5,618,780,824,635,907,000 | 33.030303 | 90 | 0.590606 | false |
mengxn/tensorflow | tensorflow/contrib/keras/python/keras/engine/training_test.py | 36 | 24119 | # 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 | -8,432,146,959,088,343,000 | 33.703597 | 92 | 0.563788 | false |
eneabio/nova | nova/scheduler/filter_scheduler.py | 1 | 11203 | # Copyright (c) 2011 OpenStack, LLC.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | apache-2.0 | -9,189,987,664,743,500,000 | 40.03663 | 139 | 0.59493 | 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.