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 |
|---|---|---|---|---|---|---|---|---|---|---|
dirtycold/git-cola | cola/widgets/dag.py | 2 | 52694 | from __future__ import division, absolute_import, unicode_literals
import collections
import math
from qtpy import QtCore
from qtpy import QtGui
from qtpy import QtWidgets
from qtpy.QtCore import Qt
from qtpy.QtCore import Signal
from qtpy.QtCore import QPointF
from qtpy.QtCore import QRectF
from .. import core
from ... | gpl-2.0 | 376,283,620,925,080,260 | 32.520356 | 80 | 0.584716 | false |
kohnle-lernmodule/palama | twisted/trial/test/test_util.py | 14 | 7278 | from twisted.python import log
from twisted.internet import utils
from twisted.internet import defer, reactor, threads, interfaces
from twisted.trial import unittest, util
from twisted.trial.test import packages
import sys, os, time
suppress = [(['ignore', 'Do NOT use wait.*'], {})]
class WaitReentrancyTest(unittest... | gpl-2.0 | -7,995,333,878,308,959,000 | 34.15942 | 78 | 0.646606 | false |
iuscommunity/ius-tools | src/iustools.version_tracker/iustools/bootstrap/version_tracker.py | 1 | 1771 | """
This bootstrap module should be used to setup parts of the version_tracker plugin
that need to exist before all controllers are loaded. It is best used to
define/register hooks, setup namespaces, and the like.
"""
from pkg_resources import get_distribution
from cement.core.namespace import CementNamespace, re... | gpl-2.0 | 5,688,168,622,849,149,000 | 39.25 | 88 | 0.750988 | false |
xifle/home-assistant | homeassistant/components/light/lifx.py | 15 | 8350 | """
Support for the LIFX platform that implements lights.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/light.lifx/
"""
import colorsys
import logging
import voluptuous as vol
from homeassistant.components.light import (
ATTR_BRIGHTNESS, ATTR_COLO... | mit | -3,841,923,416,325,890,600 | 29.144404 | 79 | 0.561198 | false |
google-code/android-scripting | python/src/Mac/Modules/te/tescan.py | 34 | 1975 | # Scan an Apple header file, generating a Python file of generator calls.
import sys
from bgenlocations import TOOLBOXDIR, BGENDIR
sys.path.append(BGENDIR)
from scantools import Scanner
LONG = "TextEdit"
SHORT = "te"
OBJECT = "TEHandle"
def main():
input = LONG + ".h"
output = SHORT + "gen.py"
defsoutput... | apache-2.0 | -7,786,867,238,563,003,000 | 28.924242 | 88 | 0.515443 | false |
AutorestCI/azure-sdk-for-python | azure-mgmt-web/azure/mgmt/web/models/top_level_domain.py | 2 | 1850 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | 2,812,657,742,762,197,000 | 32.636364 | 76 | 0.561081 | false |
rll/lfd | lfd/rapprentice/kinematics_utils.py | 2 | 2519 | import numpy as np
import scipy.interpolate as si
from numpy import pi
from lfd.rapprentice import math_utils as mu
def smaller_ang(x):
return (x + pi)%(2*pi) - pi
def closer_ang(x,a,dir=0):
"""
find angle y (==x mod 2*pi) that is clos... | bsd-2-clause | -6,290,843,525,515,534,000 | 32.6 | 81 | 0.527193 | false |
cheminfo/Visualizer-grunt | src/components/three.js/utils/converters/fbx/convert_to_threejs.py | 50 | 67563 | # @author zfedoran / http://github.com/zfedoran
import os
import sys
import math
import operator
# #####################################################
# Globals
# #####################################################
option_triangulate = True
option_textures = True
option_prefix = True
option_geometry = False
optio... | mit | 5,898,790,565,841,595,000 | 34.88051 | 214 | 0.572473 | false |
heyavery/lopenr | venv/lib/python2.7/site-packages/django/contrib/messages/storage/base.py | 526 | 6285 | from __future__ import unicode_literals
from django.conf import settings
from django.contrib.messages import constants, utils
from django.utils.encoding import force_text, python_2_unicode_compatible
LEVEL_TAGS = utils.get_level_tags()
@python_2_unicode_compatible
class Message(object):
"""
Represents an ac... | mit | -2,040,254,896,124,812,000 | 32.972973 | 93 | 0.610342 | false |
msrb/samba | python/samba/subunit/__init__.py | 32 | 2672 | # Subunit handling
# Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2014
#
# 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 vers... | gpl-3.0 | -399,540,692,560,952,300 | 29.022472 | 78 | 0.665419 | false |
jhseu/tensorflow | tensorflow/python/keras/layers/simplernn_test.py | 1 | 8143 | # 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 | 6,286,391,649,317,049,000 | 33.948498 | 80 | 0.662041 | false |
kevin-coder/tensorflow-fork | tensorflow/python/kernel_tests/reduce_join_op_test.py | 13 | 13578 | # 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,177,358,207,990,413,000 | 37.140449 | 80 | 0.646119 | false |
cloudify-cosmo/cloudify-cli | cloudify_cli/execution_events_fetcher.py | 1 | 9188 | ########
# Copyright (c) 2014 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | apache-2.0 | -3,596,048,164,653,665,300 | 34.474903 | 77 | 0.579669 | false |
Changaco/oh-mainline | vendor/packages/gdata/samples/analytics/mgmt_feed_demo.py | 39 | 8348 | #!/usr/bin/python
#
# Copyright 2010 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | agpl-3.0 | -401,391,963,825,239,000 | 33.353909 | 87 | 0.676809 | false |
kenwith/cs561 | cs561-as2-kenwith/pox/tools/gui/views/elastictree.py | 7 | 8231 | '''
ElasticTree view for drawn topology
@author Albert Wu (awu12345@stanford.edu)
'''
from nox.ripcordapps.dispatch_server.ripcord_pb2 import Vertex, Edge, \
Path, Tunnels, Tunnel, TunnelsRequest, NewTunnelRequest, Topology,\
DisplayTunnel, DisplaySwitch, TopologyRequest, TopologyReply, \
LinkUtilizationRequ... | gpl-3.0 | 4,079,504,366,183,447,000 | 32.877119 | 89 | 0.597497 | false |
salguarnieri/intellij-community | python/lib/Lib/email/Encoders.py | 152 | 2302 | # Copyright (C) 2001-2006 Python Software Foundation
# Author: Barry Warsaw
# Contact: email-sig@python.org
"""Encodings and related functions."""
__all__ = [
'encode_7or8bit',
'encode_base64',
'encode_noop',
'encode_quopri',
]
import base64
from quopri import encodestring as _encodestring
d... | apache-2.0 | 6,348,850,127,135,204,000 | 23.752688 | 78 | 0.633797 | false |
argonemyth/sentry | src/sentry/rules/conditions/event_frequency.py | 6 | 2862 | """
sentry.rules.conditions.event_frequency
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
from datetime import datetime, timedelta
from django import forms
fro... | bsd-3-clause | -3,392,447,802,671,016,000 | 28.505155 | 93 | 0.597135 | false |
skion/oauthlib-oidc | oauthlib/oauth1/rfc5849/request_validator.py | 4 | 30462 | # -*- coding: utf-8 -*-
"""
oauthlib.oauth1.rfc5849
~~~~~~~~~~~~~~
This module is an implementation of various logic needed
for signing and checking OAuth 1.0 RFC 5849 requests.
"""
from __future__ import absolute_import, unicode_literals
import sys
from . import SIGNATURE_METHODS, utils
class RequestValidator(obj... | bsd-3-clause | -3,032,756,294,597,743,000 | 35.569028 | 107 | 0.654323 | false |
mxjl620/scikit-learn | sklearn/cluster/tests/test_spectral.py | 262 | 7954 | """Testing for Spectral Clustering methods"""
from sklearn.externals.six.moves import cPickle
dumps, loads = cPickle.dumps, cPickle.loads
import numpy as np
from scipy import sparse
from sklearn.utils import check_random_state
from sklearn.utils.testing import assert_equal
from sklearn.utils.testing import assert_a... | bsd-3-clause | -3,405,469,811,463,340,500 | 39.581633 | 77 | 0.566759 | false |
tux-00/ansible | lib/ansible/modules/monitoring/monit.py | 49 | 7071 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2013, Darryl Stoflet <stoflet@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Li... | gpl-3.0 | 1,335,462,491,821,420,500 | 35.261538 | 129 | 0.617734 | false |
Valeureux/donation | donation_recurring/__openerp__.py | 2 | 1628 | # -*- encoding: utf-8 -*-
##############################################################################
#
# Donation Recurring module for Odoo
# Copyright (C) 2014-2015 Barroux Abbey (www.barroux.org)
# Copyright (C) 2014-2015 Akretion France (www.akretion.com)
# @author: Alexis de Lattre <alexis.delattre@... | agpl-3.0 | 9,056,201,125,343,080,000 | 39.7 | 78 | 0.609337 | false |
BRAINSia/ITK | Wrapping/Generators/Python/itk/support/itkLazy.py | 1 | 4992 | # ==========================================================================
#
# Copyright NumFOCUS
#
# 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/... | apache-2.0 | 7,179,085,698,646,080,000 | 40.6 | 98 | 0.608373 | false |
cin/spark | examples/src/main/python/ml/onehot_encoder_example.py | 72 | 1605 | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | apache-2.0 | -5,381,837,739,414,564,000 | 31.1 | 81 | 0.682243 | false |
pombredanne/invenio | modules/websubmit/lib/websubmit_templates.py | 1 | 135737 | ## This file is part of Invenio.
## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, ... | gpl-2.0 | -2,836,588,877,695,577,600 | 42.970522 | 504 | 0.441611 | false |
cwayne18/ActivityTracker | py/pl.py | 3 | 20187 | #!/usr/bin/env python
# vim: set fileencoding=utf8 ts=4 sw=4 noexpandtab:
#
# (c) Sergey Astanin <s.astanin@gmail.com> 2008
#
# 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 vers... | gpl-3.0 | -170,977,127,121,560,700 | 26.882597 | 106 | 0.664933 | false |
johnjohndoe/spendb | spendb/model/run.py | 5 | 1968 | from datetime import datetime
from sqlalchemy.orm import relationship, backref
from sqlalchemy.schema import Column, ForeignKey
from sqlalchemy.types import Integer, Unicode, DateTime
from spendb.core import db, url_for
from spendb.model.dataset import Dataset
class Run(db.Model):
""" A run is a generic groupin... | agpl-3.0 | 1,957,824,083,208,571,400 | 31.262295 | 76 | 0.589431 | false |
ericlink/adms-server | playframework-dist/1.1-src/python/Lib/cgi.py | 2 | 36075 | #! /usr/local/bin/python
# NOTE: the above "/usr/local/bin/python" is NOT a mistake. It is
# intentionally NOT "/usr/bin/env python". On many systems
# (e.g. Solaris), /usr/local/bin is not in $PATH as passed to CGI
# scripts, and /usr/local/bin is the default directory where Python is
# installed, so /usr/bin... | mit | -258,310,244,137,098,980 | 31.683473 | 78 | 0.556036 | false |
shubhdev/edx-platform | common/lib/xmodule/xmodule/open_ended_grading_classes/controller_query_service.py | 113 | 6432 | import dogstats_wrapper as dog_stats_api
import logging
from .grading_service_module import GradingService
log = logging.getLogger(__name__)
class ControllerQueryService(GradingService):
"""
Interface to controller query backend.
"""
METRIC_NAME = 'edxapp.open_ended_grading.controller_query_service... | agpl-3.0 | 8,047,657,673,935,898,000 | 34.340659 | 116 | 0.562966 | false |
nowls/gnuradio | gr-digital/python/digital/utils/tagged_streams.py | 47 | 4622 | #!/usr/bin/env python
#
# Copyright 2013 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
... | gpl-3.0 | -8,947,178,027,712,225,000 | 33.237037 | 93 | 0.604933 | false |
reversefold/jevent | examples/gboth.py | 1 | 1811 | import logging
import sys
import time
log = logging.getLogger(__name__)
def run_client():
from examples import gclient as client
client.main()
def run_server():
from examples import gserver as server
server.main()
def main_greenlets():
from greenlet import greenlet, GreenletExit
s = greenl... | mit | 6,303,418,860,553,039,000 | 26.439394 | 162 | 0.624517 | false |
crateio/carrier | carrier/config/__init__.py | 1 | 5489 | import errno
import imp
import importlib
import os
import six
class Config(dict):
"""
Works exactly like a dict but provides ways to fill it from files
or special dictionaries. There are two common patterns to populate the
config.
Either you can fill the config from a config file::
app... | bsd-2-clause | 5,235,801,892,222,273,000 | 37.929078 | 79 | 0.624704 | false |
rshorey/moxie | moxie/cores/alert.py | 4 | 2231 | # Copyright (c) Paul R. Tagliamonte <tag@pault.ag>, 2015
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify... | mit | -509,524,041,540,138,400 | 34.412698 | 76 | 0.701927 | false |
yatinkumbhare/openstack-nova | nova/tests/unit/scheduler/test_host_filters.py | 67 | 1522 | # 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.apache.org/licenses/LICENSE-2.0
#
# Unless req... | apache-2.0 | -8,854,977,622,000,119,000 | 39.052632 | 78 | 0.720105 | false |
Metronus/metronus | Metronus-Project/metronus_app/test/testDepartment.py | 1 | 13673 | from metronus_app.model.role import Role
from metronus_app.model.company import Company
from metronus_app.model.employee import Employee
from metronus_app.model.project import Project
from metronus_app.model.department import Department
from django.contrib.auth.models import User
from metronus_app.model.administrator i... | mpl-2.0 | 3,796,651,223,050,114,000 | 36.352459 | 110 | 0.612172 | false |
webcube/django-hyperadmin | setup.py | 1 | 1621 | #!/usr/bin/env python
import os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
VERSION = '0.9.0'
PATH = os.path.dirname(os.path.abspath(__file__))
try:
LONG_DESC = '\n===='+open(os.path.join(PATH, 'README.rst'), 'r').read().split('====',... | bsd-3-clause | -2,041,110,625,583,617,800 | 30.173077 | 96 | 0.586058 | false |
gogobebe2/Replicating-DeepMind | src/ai/NeuralNet.py | 6 | 4717 | """
NeuralNet class creates a neural network.
"""
from convnet import *
import numpy as np
import time
from collections import OrderedDict
class SimpleDataProvider:
dims = None
def __init__(self, data_dir, batch_range=None, init_epoch=1, init_batchnum=None, dp_params=None, test=False):
pass
de... | gpl-3.0 | 3,652,083,877,527,999,500 | 35.007634 | 142 | 0.616282 | false |
qutebrowser/qutebrowser | qutebrowser/browser/webkit/webkittab.py | 1 | 37238 | # vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:
# Copyright 2016-2021 Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# This file is part of qutebrowser.
#
# qutebrowser 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 S... | gpl-3.0 | -4,987,680,440,650,846,000 | 36.38755 | 99 | 0.613459 | false |
NikNitro/Python-iBeacon-Scan | sympy/polys/domains/old_polynomialring.py | 24 | 13861 | """Implementation of :class:`PolynomialRing` class. """
from __future__ import print_function, division
from sympy.polys.domains.ring import Ring
from sympy.polys.domains.compositedomain import CompositeDomain
from sympy.polys.domains.characteristiczero import CharacteristicZero
from sympy.polys.domains.old_fractionf... | gpl-3.0 | -158,816,956,432,874,620 | 31.160093 | 83 | 0.568069 | false |
jorgb/airs | gui/images/anim/progress_1_12.py | 1 | 3292 | #----------------------------------------------------------------------
# This file was generated by D:\personal\src\airs\gui\images\anim\make_images.py
#
from wx import ImageFromStream, BitmapFromImage, EmptyIcon
import cStringIO, zlib
def getData():
return zlib.decompress(
'x\xda\x01\x9a\x03e\xfc\x89PN... | gpl-2.0 | 2,834,699,808,698,877,400 | 58.962963 | 80 | 0.696841 | false |
yg257/Pangea | templates/root/ec2/lib/boto-2.34.0/boto/rds/regioninfo.py | 167 | 1513 | # Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/
# Copyright (c) 2010, Eucalyptus Systems, Inc.
# 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 without res... | apache-2.0 | -6,311,004,532,205,947,000 | 44.848485 | 74 | 0.738268 | false |
Trust-Code/trust-addons | purchase_requisitor/__init__.py | 4 | 1407 | # -*- encoding: utf-8 -*-
###############################################################################
# #
# Copyright (C) 2015 Trustcode - www.trustcode.com.br #
# ... | agpl-3.0 | 7,103,734,331,347,114,000 | 73.052632 | 79 | 0.39801 | false |
icereval/osf.io | scripts/analytics/addon_snapshot.py | 4 | 5540 | from __future__ import absolute_import
import logging
# App must be initialized before models or ADDONS_AVAILABLE are available
from website.app import init_app
init_app()
from osf.models import OSFUser, AbstractNode
from framework.database import paginated
from scripts.analytics.base import SnapshotAnalytics
from w... | apache-2.0 | -3,677,544,678,767,281,000 | 40.654135 | 181 | 0.61083 | false |
stackforge/poppy | tests/unit/transport/pecan/controllers/base.py | 2 | 2763 | # Copyright (c) 2015 Rackspace, 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 wr... | apache-2.0 | -5,663,249,399,305,714,000 | 29.7 | 75 | 0.653999 | false |
Belxjander/Kirito | Python-3.5.0-Amiga/Lib/lib2to3/pgen2/driver.py | 89 | 5153 | # Copyright 2004-2005 Elemental Security, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
# Modifications:
# Copyright 2006 Google, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
"""Parser driver.
This provides a high-level interface to parse a file into a synta... | gpl-3.0 | -8,915,932,967,897,473,000 | 31.821656 | 76 | 0.552688 | false |
amenonsen/ansible | lib/ansible/modules/network/cloudengine/ce_vxlan_arp.py | 6 | 24334 | #!/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 distribut... | gpl-3.0 | -6,299,434,938,256,577,000 | 34.42067 | 106 | 0.563656 | false |
rcharp/toyota-flask | venv/lib/python2.7/site-packages/numpy/f2py/crackfortran.py | 53 | 119354 | #!/usr/bin/env python
"""
crackfortran --- read fortran (77,90) code and extract declaration information.
Copyright 1999-2004 Pearu Peterson all rights reserved,
Pearu Peterson <pearu@ioc.ee>
Permission to use, modify, and distribute this software is given under the
terms of the NumPy License.
NO WARRANTY IS EXPRESSE... | apache-2.0 | 3,343,749,273,958,949,400 | 40.58676 | 251 | 0.502312 | false |
maxwward/SCOPEBak | askbot/migrations/0080_transplant_favquestions_2.py | 2 | 27311 | # 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):
# Deleting field 'FavoriteExercise.exercise'
db.delete_column(u'favorite_exercise', 'exercise_id')
... | gpl-3.0 | 7,004,851,934,542,434,000 | 85.977707 | 221 | 0.560141 | false |
caioserra/apiAdwords | examples/adspygoogle/dfa/v1_19/get_available_permissions.py | 3 | 2027 | #!/usr/bin/python
#
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | apache-2.0 | -1,912,957,088,937,012,000 | 31.693548 | 77 | 0.719783 | false |
aam-at/tensorflow | tensorflow/python/debug/lib/session_debug_file_test.py | 21 | 5221 | # 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 | 3,300,972,353,318,238,700 | 36.833333 | 80 | 0.636851 | false |
autotest/arc | arc/shared/frontend.py | 1 | 1316 | # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# bu... | gpl-2.0 | -3,895,430,438,486,534,700 | 33.631579 | 78 | 0.726444 | false |
opensourcechipspark/platform_external_chromium_org | third_party/pexpect/fdpexpect.py | 171 | 3366 | """This is like pexpect, but will work on any file descriptor that you pass it.
You are reponsible for opening and close the file descriptor.
PEXPECT LICENSE
This license is approved by the OSI and FSF as GPL-compatible.
http://opensource.org/licenses/isc-license.txt
Copyright (c) 2012, Noah Spurrier... | bsd-3-clause | 4,397,789,342,046,134,300 | 33.346939 | 139 | 0.641414 | false |
Lekanich/intellij-community | python/helpers/profiler/thriftpy3/server/TNonblockingServer.py | 44 | 11883 | #
# 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 u... | apache-2.0 | -8,686,815,015,440,897,000 | 33.048711 | 79 | 0.583102 | false |
nyrocron/eve-wspace | evewspace/API/tasks.py | 8 | 1097 | # Eve W-Space
# Copyright 2014 Andrew Austin and contributors
#
# 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 | 6,470,448,847,183,503,000 | 32.242424 | 76 | 0.719234 | false |
JanzTam/zulip | zerver/lib/narrow.py | 123 | 1633 | from zerver.decorator import JsonableError
def check_supported_events_narrow_filter(narrow):
for element in narrow:
operator = element[0]
if operator not in ["stream", "topic", "sender", "is"]:
raise JsonableError("Operator %s not supported." % (operator,))
def build_narrow_filter(narr... | apache-2.0 | -9,043,523,054,809,741,000 | 38.829268 | 75 | 0.51684 | false |
Paul-Ezell/cinder-1 | cinder/api/contrib/used_limits.py | 18 | 2128 | # Copyright 2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | apache-2.0 | 2,937,696,941,754,590,700 | 33.885246 | 78 | 0.664474 | false |
suiyuan2009/tensorflow | tensorflow/contrib/framework/python/framework/tensor_util_test.py | 45 | 15289 | # 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 | 1,178,549,713,702,065,000 | 40.099462 | 80 | 0.613709 | false |
googleinterns/smart-content-summary | classifier/run_classifier.py | 1 | 12969 | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | -9,005,816,656,772,982,000 | 38.904615 | 80 | 0.658493 | false |
mfherbst/spack | var/spack/repos/builtin/packages/templight-tools/package.py | 2 | 1653 | ##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | lgpl-2.1 | 8,417,555,298,740,778,000 | 43.675676 | 78 | 0.674531 | false |
bfirsh/django-old | tests/regressiontests/views/urls.py | 10 | 4935 | # coding: utf-8
from os import path
from django.conf.urls.defaults import *
from models import *
import views
base_dir = path.dirname(path.abspath(__file__))
media_dir = path.join(base_dir, 'media')
locale_dir = path.join(base_dir, 'locale')
js_info_dict = {
'domain': 'djangojs',
'packages': ('regressionte... | bsd-3-clause | -5,147,273,794,544,654,000 | 38.352 | 118 | 0.633259 | false |
nharraud/b2share | invenio/legacy/websubmit/functions/Video_Processing.py | 13 | 4374 | # This file is part of Invenio.
# Copyright (C) 2011 CERN.
#
# Invenio is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# Invenio is d... | gpl-2.0 | -5,932,723,152,221,724,000 | 37.368421 | 108 | 0.670553 | false |
seppius-xbmc-repo/ru | script.module.antizapret/lib/antizapret.py | 2 | 3852 | # -*- coding: utf-8 -*-
import os
import re
import fnmatch
import threading
import urllib2
import xbmc
import xbmcaddon
from contextlib import contextmanager, closing
__addon__ = xbmcaddon.Addon()
CACHE_DIR = xbmc.translatePath(__addon__.getAddonInfo("profile"))
PAC_URL = "http://antizapret.prostovpn.org/proxy.pac"
U... | gpl-2.0 | -2,137,734,569,953,415,200 | 30.317073 | 161 | 0.548027 | false |
19kestier/taiga-back | taiga/projects/services/stats.py | 3 | 12983 | # Copyright (C) 2014 Andrey Antukh <niwi@niwi.be>
# Copyright (C) 2014 Jesús Espino <jespinog@gmail.com>
# Copyright (C) 2014 David Barragán <bameda@dbarragan.com>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the F... | agpl-3.0 | 653,245,588,081,316,700 | 41.700658 | 136 | 0.638086 | false |
dago/ansible-modules-extras | cloud/centurylink/clc_server_snapshot.py | 43 | 14562 | #!/usr/bin/python
#
# Copyright (c) 2015 CenturyLink
#
# This file is part of Ansible.
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any la... | gpl-3.0 | 5,625,438,578,671,446,000 | 33.837321 | 119 | 0.606922 | false |
nerzhul/ansible | lib/ansible/playbook/attribute.py | 46 | 3856 | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | gpl-3.0 | -694,150,242,436,773,500 | 40.462366 | 162 | 0.669087 | false |
smart-developerr/my-first-blog | Lib/site-packages/django/db/backends/oracle/introspection.py | 517 | 11463 | import cx_Oracle
from django.db.backends.base.introspection import (
BaseDatabaseIntrospection, FieldInfo, TableInfo,
)
from django.utils.encoding import force_text
class DatabaseIntrospection(BaseDatabaseIntrospection):
# Maps type objects to Django Field types.
data_types_reverse = {
cx_Oracle.... | gpl-3.0 | 1,045,652,009,552,065,000 | 38.940767 | 111 | 0.537556 | false |
8u1a/plaso | plaso/parsers/olecf.py | 2 | 3143 | # -*- coding: utf-8 -*-
"""Parser for OLE Compound Files (OLECF)."""
import logging
import pyolecf
from plaso import dependencies
from plaso.lib import errors
from plaso.lib import specification
from plaso.parsers import interface
from plaso.parsers import manager
dependencies.CheckModuleVersion(u'pyolecf')
clas... | apache-2.0 | 2,340,499,992,058,702,000 | 30.118812 | 79 | 0.68056 | false |
ValentmSTEM/gps_v1 | tornado/wsgi.py | 9 | 11744 | #!/usr/bin/env python
#
# Copyright 2009 Facebook
#
# 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... | mit | 3,732,745,131,725,173,000 | 38.675676 | 85 | 0.610099 | false |
SerpentCS/odoo | addons/auth_crypt/__openerp__.py | 310 | 2298 | # -*- encoding: utf-8 -*-
##############################################################################
#
# Odoo, Open Source Management Solution
# Copyright (C) 2004-2014 OpenERP S.A. (<http://odoo.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the ... | agpl-3.0 | -1,248,304,819,480,069,400 | 36.672131 | 78 | 0.668842 | false |
tectronics/py-lepton | examples/magnet.py | 8 | 4163 | #############################################################################
#
# Copyright (c) 2008 by Casey Duncan and contributors
# All Rights Reserved.
#
# This software is subject to the provisions of the MIT License
# A copy of the license should accompany this distribution.
# THE SOFTWARE IS PROVIDED "AS IS", W... | mit | 5,893,330,762,307,306,000 | 25.515924 | 88 | 0.683882 | false |
opesci/devito | devito/data/allocators.py | 1 | 14759 | import abc
from functools import reduce
from operator import mul
import mmap
import os
import sys
import numpy as np
import ctypes
from ctypes.util import find_library
from devito.logger import logger
from devito.parameters import configuration
from devito.tools import dtype_to_ctype
__all__ = ['ALLOC_FLAT', 'ALLOC_... | mit | 181,837,123,315,945,100 | 34.308612 | 88 | 0.613524 | false |
rouge8/pip | src/pip/_vendor/html5lib/constants.py | 102 | 83518 | from __future__ import absolute_import, division, unicode_literals
import string
EOF = None
E = {
"null-character":
"Null character in input stream, replaced with U+FFFD.",
"invalid-codepoint":
"Invalid codepoint in stream.",
"incorrectly-placed-solidus":
"Solidus (/) incorrectly ... | mit | -688,062,188,756,882,700 | 27.340007 | 94 | 0.504263 | false |
chop-dbhi/serrano | tests/cases/resources/tests/exporter.py | 1 | 3653 | import json
from django.test import TestCase
from restlib2.http import codes
from avocado.conf import OPTIONAL_DEPS
from serrano.resources import API_VERSION
class ExporterResourceTestCase(TestCase):
def test_delete(self):
self.client.get('/api/data/export/csv/')
response = self.client.delete('/ap... | bsd-2-clause | -7,509,167,516,444,888,000 | 46.441558 | 155 | 0.645497 | false |
wsmith323/django | django/db/models/fields/files.py | 7 | 18911 | import datetime
import os
from django import forms
from django.core import checks
from django.core.files.base import File
from django.core.files.images import ImageFile
from django.core.files.storage import default_storage
from django.db.models import signals
from django.db.models.fields import Field
from django.utils... | bsd-3-clause | -461,337,497,750,053,900 | 38.397917 | 104 | 0.62461 | false |
joone/chromium-crosswalk | chrome/common/extensions/docs/server2/features_bundle.py | 78 | 14840 | # 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.
from copy import copy
from branch_utility import BranchUtility
from compiled_file_system import SingleFile, Unicode
from docs_server_utils import StringIden... | bsd-3-clause | -5,696,869,413,504,732,000 | 37.950131 | 80 | 0.646361 | false |
markofu/scripts | nmap/nmap/zenmap/build/lib/zenmapGUI/higwidgets/higboxes.py | 4 | 10511 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ***********************IMPORTANT NMAP LICENSE TERMS************************
# * *
# * The Nmap Security Scanner is (C) 1996-2013 Insecure.Com LLC. Nmap is *
# * also a registered trademark of Inse... | gpl-2.0 | 365,578,665,996,686,100 | 59.062857 | 78 | 0.564551 | false |
chaos95/fluxxbot | pyGBot/Plugins/system/CommandSpec/PlayGame.py | 1 | 2071 | ##
## pyGBot - Versatile IRC Bot
## Copyright (C) 2008 Morgan Lokhorst-Blight, Alex Soborov
##
## 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 | -9,939,092,636,025,600 | 39.42 | 109 | 0.607919 | false |
GitYiheng/reinforcement_learning_test | test04_neural_network/tf_syntax_basics.py | 1 | 1051 | import tensorflow as tf
# print(tf.__version__)
# tensor = n-dimensional array
hello = tf.constant("Hello ")
world = tf.constant("World")
# print(type(hello))
# print(hello)
# with tf.Session() as sess:
# result = sess.run(hello + world)
# print(result)
# a = tf.constant(10)
# b = tf.constant(20)
# print(type(a... | mit | -7,106,507,394,569,701,000 | 21.847826 | 63 | 0.581351 | false |
akhof/Python-Sorting-Algorithms | src/Example.py | 1 | 1482 | from PySortAlgos import *
def example_1():
persons = {"Thomas":21, "Ursula":58, "Mike":19, "Max":30, "Tina":21}
person_sortedKeysByAge1 = BubbleSort(key=lambda p: persons[p]).sort(persons.keys())
person_sortedKeysByAge2 = QuickSort(key=lambda p: persons[p]).sort(persons.keys())
print(... | mit | -60,877,896,079,769,340 | 36.051282 | 136 | 0.581646 | false |
ivesbai/mediadrop | mediadrop/validation/limit_feed_items_validator.py | 10 | 1106 | # -*- coding: utf-8 -*-
# This file is a part of MediaDrop (http://www.mediadrop.net),
# Copyright 2009-2015 MediaDrop contributors
# For the exact contribution history, see the git revision log.
# The source code contained in this file is licensed under the GPLv3 or
# (at your option) any later version.
# See LICENSE.... | gpl-3.0 | 8,198,481,637,411,771,000 | 30.6 | 71 | 0.679024 | false |
yceruto/django | tests/view_tests/tests/test_i18n.py | 6 | 9398 | # -*- coding:utf-8 -*-
import gettext
import os
from os import path
import unittest
from django.conf import settings
from django.core.urlresolvers import reverse
from django.test import LiveServerTestCase, TestCase
from django.test.utils import override_settings
from django.utils import six
from django.utils._os impor... | bsd-3-clause | -621,508,737,843,425,700 | 42.5 | 118 | 0.65017 | false |
mgrygoriev/CloudFerry | cloudferrylib/os/discovery/keystone.py | 1 | 1594 | # Copyright 2016 Mirantis 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 writing, so... | apache-2.0 | -849,699,322,418,285,300 | 33.652174 | 74 | 0.700753 | false |
SenorPez/project-cars-replay-enhancer | test/test_ParticipantPacket.py | 1 | 6889 | """Tests ParticipantPacket.py
"""
import unittest
from hashlib import md5
from struct import pack
from replayenhancer.ParticipantPacket import ParticipantPacket
class TestParticipantPacket(unittest.TestCase):
"""Unit tests against the ParticipantPacket object.
"""
expected_build_version_n... | mit | 1,699,305,926,015,260,400 | 35.622951 | 80 | 0.638199 | false |
z1gm4/desarrollo_web_udp | env/lib/python2.7/site-packages/coverage/python.py | 27 | 5903 | # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
"""Python source expertise for coverage.py"""
import os.path
import zipimport
from coverage import env, files
from coverage.misc import contract, expensive, NoSou... | gpl-3.0 | -7,569,960,029,374,175,000 | 28.813131 | 84 | 0.600542 | false |
AllisonWang/incubator-airflow | tests/contrib/hooks/test_spark_submit_hook.py | 7 | 13102 | # -*- coding: utf-8 -*-
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
... | apache-2.0 | 5,425,024,330,236,859,000 | 38.227545 | 183 | 0.546939 | false |
AeroNotix/django-timetracker | tracker/api.py | 1 | 1202 | from tastypie.resources import ModelResource
from tastypie import fields
from tastypie.authentication import ApiKeyAuthentication
from tastypie.authorization import Authorization
from timetracker.tracker.models import Tbluser
from timetracker.tracker.trackingentry import TrackingEntry
from timetracker.utils.datemaps i... | bsd-3-clause | 5,081,438,917,770,458,000 | 33.342857 | 79 | 0.72213 | false |
heke123/chromium-crosswalk | tools/perf/page_sets/tough_image_cases.py | 35 | 1060 | # 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.
from telemetry.page import page as page_module
from telemetry.page import shared_page_state
from telemetry import story
class ToughImageCasesPage(page_modul... | bsd-3-clause | -744,336,595,831,146,000 | 32.125 | 73 | 0.708491 | false |
batxes/4c2vhic | SHH_INV_models/SHH_INV_models_final_output_0.2_-0.1_10000/mtx1_models/SHH_INV_models48063.py | 4 | 17576 | 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 | -4,750,080,890,764,666,000 | 46.120643 | 75 | 0.699704 | false |
pdonadeo/django-oscar | tests/functional/catalogue/catalogue_tests.py | 36 | 4107 | from django.conf import settings
from django.core.cache import cache
from django.core.urlresolvers import reverse
from django.utils.six.moves import http_client
from oscar.apps.catalogue.models import Category
from oscar.test.decorators import ignore_deprecation_warnings
from oscar.test.testcases import WebTestCase
f... | bsd-3-clause | -1,131,175,592,494,255,400 | 38.114286 | 78 | 0.667884 | false |
BonexGu/Blik2D-SDK | Blik2D/addon/opencv-3.1.0_for_blik/modules/python/test/ticket_6.py | 13 | 2971 | #!/usr/bin/env python
import urllib
import cv2.cv as cv
import Image
import unittest
class TestLoadImage(unittest.TestCase):
def setUp(self):
open("large.jpg", "w").write(urllib.urlopen("http://www.cs.ubc.ca/labs/lci/curious_george/img/ROS_bug_imgs/IMG_3560.jpg").read())
def test_load(self):
... | mit | 1,081,011,328,999,627,900 | 37.089744 | 137 | 0.602154 | false |
0359xiaodong/viewfinder | backend/www/test/update_user_photo_test.py | 13 | 4568 | # Copyright 2013 Viewfinder Inc. All Rights Reserved.
"""Tests update_user_photo method.
"""
__author__ = ['ben@emailscrubbed.com (Ben Darnell)']
import time
from copy import deepcopy
from viewfinder.backend.base import util
from viewfinder.backend.db.db_client import DBKey
from viewfinder.backend.db.episode impor... | apache-2.0 | -4,323,727,921,061,010,400 | 41.691589 | 112 | 0.66331 | false |
seccomp/libseccomp | tests/39-basic-api_level.py | 1 | 2177 | #!/usr/bin/env python
#
# Seccomp Library test program
#
# Copyright (c) 2016 Red Hat <pmoore@redhat.com>
# Copyright (c) 2017 Canonical Ltd.
# Authors: Paul Moore <paul@paul-moore.com>
# Tyler Hicks <tyhicks@canonical.com>
#
#
# This library is free software; you can redistribute it and/or modify it
# under... | lgpl-2.1 | -74,758,755,546,739,410 | 25.228916 | 93 | 0.661461 | false |
chand3040/cloud_that | pavelib/paver_tests/test_paver_bok_choy_cmds.py | 74 | 3080 | """
Tests for the bok-choy paver commands themselves.
Run just this test with: paver test_lib -t pavelib/paver_tests/test_paver_bok_choy_cmds.py
"""
import os
import unittest
from pavelib.utils.test.suites import BokChoyTestSuite
REPO_DIR = os.getcwd()
class TestPaverBokChoyCmd(unittest.TestCase):
def _expected... | agpl-3.0 | -3,549,796,211,039,173,600 | 34 | 90 | 0.596104 | false |
bslatkin/pycon2014 | lib/asyncio-0.4.1/asyncio/base_events.py | 6 | 30987 | """Base implementation of event loop.
The event loop can be broken up into a multiplexer (the part
responsible for notifying us of IO events) and the event loop proper,
which wraps a multiplexer with functionality for scheduling callbacks,
immediately or at a given time in the future.
Whenever a public API takes a ca... | apache-2.0 | -1,656,584,060,416,961,800 | 37.39777 | 79 | 0.548553 | false |
KyleJamesWalker/ansible | test/runner/lib/manage_ci.py | 49 | 6035 | """Access Ansible Core CI remote services."""
from __future__ import absolute_import, print_function
import pipes
from time import sleep
import lib.pytar
from lib.util import (
SubprocessError,
ApplicationError,
run_command,
)
from lib.core_ci import (
AnsibleCoreCI,
)
from lib.ansible_util impor... | gpl-3.0 | -1,006,401,445,623,647,100 | 32.904494 | 114 | 0.542668 | false |
liberatorqjw/scikit-learn | sklearn/feature_extraction/tests/test_image.py | 14 | 10178 | # Authors: Emmanuelle Gouillart <emmanuelle.gouillart@normalesup.org>
# Gael Varoquaux <gael.varoquaux@normalesup.org>
# License: BSD 3 clause
import numpy as np
import scipy as sp
from scipy import ndimage
from nose.tools import assert_equal, assert_true
from numpy.testing import assert_raises
from ..image... | bsd-3-clause | 5,320,701,196,493,912,000 | 34.463415 | 79 | 0.593437 | false |
amarian12/e-pool.net | nattraverso/pynupnp/__init__.py | 288 | 1088 | """
This package offers ways to retreive ip addresses of the machine, and map ports
through UPnP devices.
@author: Raphael Slinckx
@copyright: Copyright 2005
@license: LGPL
@contact: U{raphael@slinckx.net<mailto:raphael@slinckx.net>}
@version: 0.1.0
"""
__revision__ = "$id"
from nattraverso.pynupnp.upnp import search... | gpl-3.0 | -3,296,121,441,978,007,600 | 31.969697 | 79 | 0.714154 | false |
spisneha25/django | django/contrib/admindocs/views.py | 146 | 15441 | import inspect
import os
import re
from importlib import import_module
from django.apps import apps
from django.conf import settings
from django.contrib import admin
from django.contrib.admin.views.decorators import staff_member_required
from django.contrib.admindocs import utils
from django.core import urlresolvers
f... | bsd-3-clause | -3,056,702,149,087,445,000 | 38.796392 | 116 | 0.550482 | false |
froyobin/ceilometer | ceilometer/tests/ipmi/pollsters/test_sensor.py | 6 | 4747 | # Copyright 2014 Intel Corp.
#
# Author: Zhai Edwin <edwin.zhai@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/licenses/LICENSE-2.0
#
# Unless requi... | apache-2.0 | 4,174,932,450,266,445,300 | 25.971591 | 75 | 0.690331 | false |
Neurita/pelican-plugins | events/events.py | 37 | 4126 | # -*- coding: utf-8 -*-
"""
events plugin for Pelican
=========================
This plugin looks for and parses an "events" directory and generates
blog posts with a user-defined event date. (typically in the future)
It also generates an ICalendar v2.0 calendar file.
https://en.wikipedia.org/wiki/ICalendar
Author: ... | agpl-3.0 | 7,384,795,098,399,870,000 | 26.324503 | 84 | 0.614639 | false |
sanjuro/RCJK | api/xmlrpc.py | 32 | 4100 | # Copyright 2009 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | -8,520,534,774,423,049,000 | 36.272727 | 75 | 0.671463 | 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.