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 |
|---|---|---|---|---|---|---|---|---|---|---|
kbdick/RecycleTracker | recyclecollector/scrap/gdata-2.0.18/src/gdata/contacts/__init__.py | 119 | 28208 | #!/usr/bin/env python
#
# Copyright 2009 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | gpl-3.0 | 4,873,943,453,772,972,000 | 37.118919 | 79 | 0.654991 | false |
doot/CouchPotatoServer | libs/tornado/util.py | 102 | 12256 | """Miscellaneous utility functions and classes.
This module is used internally by Tornado. It is not necessarily expected
that the functions and classes defined here will be useful to other
applications, but they are documented here in case they are.
The one public-facing part of this module is the `Configurable` cl... | gpl-3.0 | -9,205,382,301,484,718,000 | 33.330532 | 97 | 0.646785 | false |
aidan-fitz/instant-press | languages/hi-hi.py | 6 | 10092 | # coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN',
'%Y-%m-%d': '%Y-%m-%d',
'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S',
'%s r... | gpl-2.0 | 3,418,578,968,777,350,000 | 47.857143 | 281 | 0.663743 | false |
proversity-org/edx-platform | common/lib/xmodule/xmodule/modulestore/xml_exporter.py | 12 | 18035 | """
Methods for exporting course data to XML
"""
import logging
from abc import abstractmethod
from six import text_type
import lxml.etree
from xblock.fields import Scope, Reference, ReferenceList, ReferenceValueDict
from xmodule.contentstore.content import StaticContent
from xmodule.exceptions import NotFoundError
fr... | agpl-3.0 | -5,251,375,027,366,788,000 | 43.095355 | 125 | 0.623233 | false |
jptomo/rpython-lang-scheme | rpython/rtyper/callparse.py | 1 | 4745 | from rpython.annotator.argument import ArgumentsForTranslation, ArgErr
from rpython.annotator import model as annmodel
from rpython.rtyper import rtuple
from rpython.rtyper.error import TyperError
from rpython.rtyper.lltypesystem import lltype
class ArgumentsForRtype(ArgumentsForTranslation):
def newtuple(self, it... | mit | 3,914,594,531,846,699,500 | 28.110429 | 82 | 0.600421 | false |
smi96/django-blog_website | lib/python2.7/site-packages/django/db/backends/postgresql/schema.py | 202 | 4100 | import psycopg2
from django.db.backends.base.schema import BaseDatabaseSchemaEditor
class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
sql_alter_column_type = "ALTER COLUMN %(column)s TYPE %(type)s USING %(column)s::%(type)s"
sql_create_sequence = "CREATE SEQUENCE %(sequence)s"
sql_delete_sequence =... | mit | 2,130,684,223,850,867,500 | 41.708333 | 110 | 0.467561 | false |
laslabs/vertical-medical | medical_medicament_us/tests/test_medical_medicament.py | 1 | 2603 | # -*- coding: utf-8 -*-
# Copyright 2016 LasLabs Inc.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp.tests.common import TransactionCase
class TestMedicalMedicament(TransactionCase):
def setUp(self):
super(TestMedicalMedicament, self).setUp()
self.test_gcn = s... | agpl-3.0 | -6,770,298,627,955,971,000 | 36.185714 | 79 | 0.634268 | false |
palladius/gcloud | packages/gsutil/boto/boto/plugin.py | 111 | 2695 | # Copyright 2010 Google 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, copy, modify, merge, publish, dis-
# trib... | gpl-3.0 | -8,806,418,516,966,083,000 | 28.944444 | 79 | 0.693878 | false |
rosswhitfield/mantid | qt/python/mantidqt/dialogs/errorreports/report.py | 3 | 5965 | # Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source,
# Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Identifier: GPL - 3.0 +
fro... | gpl-3.0 | -938,921,812,033,839,000 | 37.483871 | 100 | 0.676614 | false |
zerotired/kotori | kotori/vendor/luftdaten/application.py | 2 | 4013 | # -*- coding: utf-8 -*-
# (c) 2017 Andreas Motl <andreas@getkotori.org>
import json
from pkg_resources import resource_filename
from jinja2 import Template
from twisted.logger import Logger
from grafana_api_client import GrafanaPreconditionFailedError, GrafanaClientError
from kotori.daq.services.mig import MqttInfluxG... | agpl-3.0 | 8,249,197,943,016,283,000 | 44.602273 | 140 | 0.688014 | false |
leopittelli/Django-on-App-Engine-Example | django/contrib/gis/feeds.py | 225 | 5932 | from __future__ import unicode_literals
from django.contrib.syndication.views import Feed as BaseFeed
from django.utils.feedgenerator import Atom1Feed, Rss201rev2Feed
class GeoFeedMixin(object):
"""
This mixin provides the necessary routines for SyndicationFeed subclasses
to produce simple GeoRSS or W3C G... | mit | 469,958,736,604,622,460 | 42.29927 | 101 | 0.587492 | false |
jokajak/itweb | data/env/lib/python2.6/site-packages/Mako-0.3.4-py2.6.egg/mako/runtime.py | 21 | 17576 | # runtime.py
# Copyright (C) 2006, 2007, 2008, 2009, 2010 Michael Bayer mike_mp@zzzcomputing.com
#
# This module is part of Mako and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""provides runtime services for templates, including Context, Namespace, and various helper funct... | gpl-3.0 | -927,779,595,786,785,900 | 36.002105 | 127 | 0.587676 | false |
LagunaJS/Midori | django_comments/south_migrations/0001_initial.py | 11 | 7979 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
from django.contrib.auth import get_user_model
User = get_user_model()
user_orm_label = '%s.%s' % (User._meta.app_label, User._meta.object_name)
user_mod... | mit | -642,275,514,966,809,700 | 67.196581 | 187 | 0.584785 | false |
40223250/2015cd_midterm- | static/Brython3.1.1-20150328-091302/Lib/types.py | 756 | 3167 | """
Define names for built-in types that aren't directly accessible as a builtin.
"""
import sys
# Iterators in Python aren't a matter of type but of protocol. A large
# and changing number of builtin types implement *some* flavor of
# iterator. Don't check the type! Use hasattr to check for both
# "__iter__" and "... | gpl-3.0 | 2,450,574,333,059,934,000 | 30.356436 | 77 | 0.628671 | false |
ClearCorp/odoo-clearcorp | TODO-9.0/project_event/resource.py | 3 | 2336 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Addons modules by CLEARCORP S.A.
# Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>).
#
# This program is free software: you can redistribute... | agpl-3.0 | -7,036,138,707,060,302,000 | 39.293103 | 96 | 0.601884 | false |
lgandx/Responder | tools/MultiRelay.py | 1 | 39626 | #!/usr/bin/env python
# -*- coding: latin-1 -*-
# This file is part of Responder, a network take-over set of tools
# created and maintained by Laurent Gaffie.
# email: laurent.gaffie@gmail.com
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License a... | gpl-3.0 | 4,106,894,401,780,348,400 | 45.454865 | 199 | 0.554434 | false |
martingms/django-globalshorturls | globalshorturls/admin/contrib.py | 1 | 2513 | # encoding: utf-8
from django.contrib.admin import site, ModelAdmin
from globalshorturls.models import Shorturl
from django.forms import ModelForm
from django.contrib.admin.filterspecs import FilterSpec, ChoicesFilterSpec
from django.utils.translation import ugettext as _
from django.utils.encoding import smart_unicode... | mit | 8,428,196,929,774,937,000 | 37.676923 | 121 | 0.671707 | false |
dominicelse/scipy | benchmarks/benchmarks/sparse_linalg_solve.py | 30 | 2163 | """
Check the speed of the conjugate gradient solver.
"""
from __future__ import division, absolute_import, print_function
import numpy as np
from numpy.testing import assert_equal
try:
from scipy import linalg, sparse
from scipy.sparse.linalg import cg, minres, spsolve
except ImportError:
pass
try:
... | bsd-3-clause | -5,272,682,686,121,058,000 | 25.060241 | 67 | 0.574202 | false |
dencee/AWG | AWG_App_py3.py | 1 | 19683 | # Title: AWG - Akemi's Word Game
# Author: Daniel Commins
# Date: June 13, 2015
# Files: AWG_App_py2.py; SINGLE.TXT (dictionary words file)
# Tested: python 2.61
# Info: Akemi's Word Game: The game where you try and guess the computer's randomly
# selected word! Each letter appears only once.
import sys... | mit | 3,234,303,404,919,293,000 | 48.581864 | 174 | 0.564396 | false |
jevgen/namebench | nb_third_party/graphy/backends/google_chart_api/encoders.py | 230 | 14800 | #!/usr/bin/python2.4
#
# 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 o... | apache-2.0 | 1,440,252,435,834,017,500 | 33.418605 | 80 | 0.631081 | false |
vatsalgit/Deep-Learning- | assignment1/data/deep/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/filepost.py | 713 | 2320 | from __future__ import absolute_import
import codecs
from uuid import uuid4
from io import BytesIO
from .packages import six
from .packages.six import b
from .fields import RequestField
writer = codecs.lookup('utf-8')[3]
def choose_boundary():
"""
Our embarassingly-simple replacement for mimetools.choose_b... | gpl-3.0 | -6,402,843,337,765,813,000 | 23.680851 | 85 | 0.628879 | false |
Dreizan/csci1200OnlineCourse | tests/functional/controllers_review.py | 5 | 29623 | # coding: utf-8
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | apache-2.0 | 4,509,567,241,261,761,000 | 40.546985 | 80 | 0.610843 | false |
MBoustani/GeoParser | geoparser_app/urls.py | 3 | 2166 | from django.conf.urls import patterns, url
from . import views
urlpatterns = patterns('geoparser_app.views',
url(r'^$', views.index, name='index'),
url(r'^extract_text/(?P<file_name>\S+)$', views.extract_text, name='extract_text'),
url(r'^find_location/(?P<file_name>\S+)', views.find_location, name='find... | apache-2.0 | -6,716,810,178,570,947,000 | 85.68 | 171 | 0.668052 | false |
RaoUmer/django | tests/regressiontests/utils/datastructures.py | 7 | 10672 | """
Tests for stuff in django.utils.datastructures.
"""
import copy
import pickle
import warnings
from django.test import SimpleTestCase
from django.utils.datastructures import (DictWrapper, ImmutableList,
MultiValueDict, MultiValueDictKeyError, MergeDict, SortedDict)
from django.utils import six
class SortedDi... | bsd-3-clause | -565,376,974,323,611,140 | 34.45515 | 95 | 0.545352 | false |
willharris/django | tests/sites_framework/migrations/0001_initial.py | 99 | 1649 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sites', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='CustomArticle',
fields=[
... | bsd-3-clause | -12,916,931,738,349,056 | 31.98 | 114 | 0.502729 | false |
colinligertwood/odoo | addons/account_sequence/account_sequence_installer.py | 39 | 3904 | # -*- 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 | 5,997,102,660,266,903,000 | 46.036145 | 184 | 0.604252 | false |
sudosurootdev/external_chromium_org | tools/auto_bisect/PRESUBMIT.py | 25 | 3243 | # Copyright (c) 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.
"""Top-level presubmit script for auto-bisect.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for
details on the presubmit ... | bsd-3-clause | -1,022,108,640,698,142,100 | 33.870968 | 79 | 0.699352 | false |
cnsoft/kbengine-cocos2dx | kbe/res/scripts/common/Lib/test/test_pipes.py | 54 | 7175 | import pipes
import os
import string
import unittest
from test.support import TESTFN, run_unittest, unlink, reap_children
if os.name != 'posix':
raise unittest.SkipTest('pipes module only works on posix')
TESTFN2 = TESTFN + "2"
# tr a-z A-Z is not portable, so make the ranges explicit
s_command = 'tr %s %s' % (s... | lgpl-3.0 | -6,913,531,561,075,049,000 | 33.004739 | 79 | 0.569338 | false |
schleichdi2/openpli-e2 | lib/python/Components/Converter/ServiceName.py | 24 | 1939 | # -*- coding: utf-8 -*-
from Components.Converter.Converter import Converter
from enigma import iServiceInformation, iPlayableService, iPlayableServicePtr, eServiceReference
from ServiceReference import resolveAlternate
from Components.Element import cached
class ServiceName(Converter, object):
NAME = 0
PROVIDER = 1... | gpl-2.0 | 7,645,101,249,338,529,000 | 27.940299 | 132 | 0.700877 | false |
sYnfo/samba | selftest/target/samba.py | 1 | 4169 | #!/usr/bin/perl
# Bootstrap Samba and run a number of tests against it.
# Copyright (C) 2005-2012 Jelmer Vernooij <jelmer@samba.org>
# Published under the GNU GPL, v3 or later.
from __future__ import absolute_import
import os
import sys
def bindir_path(bindir, path):
"""Find the executable to use.
:param b... | gpl-3.0 | -1,059,297,147,391,001,900 | 25.896774 | 126 | 0.618134 | false |
whatsthehubbub/playpilots | ebi/actstream/tests.py | 2 | 4691 | import unittest
from django.db import models
from django.test.client import Client
from django.contrib.auth.models import User, Group
from django.contrib.comments.models import Comment
from django.contrib.contenttypes.models import ContentType
from django.contrib.sites.models import Site
from actstream.signals import ... | mit | 902,271,589,175,147,500 | 42.036697 | 147 | 0.617566 | false |
ryfeus/lambda-packs | Tensorflow/source/tensorflow/contrib/boosted_trees/python/ops/stats_accumulator_ops.py | 62 | 9211 | # 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... | mit | 1,865,877,822,511,427,600 | 43.497585 | 81 | 0.656063 | false |
devs1991/test_edx_docmode | venv/lib/python2.7/site-packages/rest_framework/compat.py | 29 | 7549 | """
The `compat` module provides support for backwards compatibility with older
versions of Django/Python, and compatibility wrappers around optional packages.
"""
# flake8: noqa
from __future__ import unicode_literals
import django
from django.conf import settings
from django.db import connection, transaction
from d... | agpl-3.0 | 2,562,711,023,433,366,000 | 31.821739 | 107 | 0.686581 | false |
MichaelNedzelsky/intellij-community | python/testData/refactoring/pullup/pyPullUpInfoModel.py | 80 | 1827 | class EmptyParent:pass
class SomeParent:
PARENT_CLASS_FIELD = 42
def __init__(self):
self.parent_instance_field = "egg"
def parent_func(self):
pass
class ChildWithDependencies(SomeParent, EmptyParent):
CLASS_FIELD_FOO = 42
CLASS_FIELD_DEPENDS_ON_CLASS_FIELD_FOO = CLASS_FIELD_FOO... | apache-2.0 | -5,834,207,651,409,390,000 | 21.280488 | 79 | 0.621237 | false |
MaximLich/oppia | core/jobs_test.py | 13 | 34314 | # 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 | -1,856,952,554,176,331,000 | 39.608284 | 112 | 0.665676 | false |
lihui7115/ChromiumGStreamerBackend | tools/perf/benchmarks/skpicture_printer.py | 13 | 1709 | # 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 core import perf_benchmark
from telemetry import benchmark
from telemetry.core import discover
from telemetry import story
from measurements import sk... | bsd-3-clause | 3,187,680,469,179,440,000 | 33.18 | 79 | 0.688122 | false |
pwittrock/reference-docs | vendor/k8s.io/kubernetes/cluster/juju/layers/kubernetes-master/reactive/kubernetes_master.py | 21 | 37137 | #!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors.
#
# 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 appli... | apache-2.0 | 7,844,764,014,608,322,000 | 35.915507 | 79 | 0.667286 | false |
Codeusa/Steam-Grid-View-Image-Dumper | griddumper.py | 1 | 1594 | import sys
import os.path
from urllib2 import urlopen, HTTPError
import time
import re
def get_app_ids(appstring):
index = '"appid":'
substring = 0
while True:
substring = appstring.find(index, substring)
if substring == -1:
return
pattern = re.compile('(\"appid":)([0-9... | gpl-3.0 | -4,743,272,856,986,844,000 | 25.566667 | 87 | 0.624216 | false |
jyi/ITSP | prophet-gpl/crawler/python-github3-master/setup.py | 6 | 1203 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from os.path import join
from setuptools import setup, find_packages
import pygithub3
# Odd hack to get 'python setup.py test' working on py2.7
try:
import multiprocessing
import logging
except ImportError:
pass
setup(
name=pygithub3.__name__,
vers... | mit | 316,954,749,045,166,800 | 27.642857 | 76 | 0.632585 | false |
carsongee/edx-platform | common/djangoapps/config_models/__init__.py | 220 | 2002 | """
Model-Based Configuration
=========================
This app allows other apps to easily define a configuration model
that can be hooked into the admin site to allow configuration management
with auditing.
Installation
------------
Add ``config_models`` to your ``INSTALLED_APPS`` list.
Usage
-----
Create a sub... | agpl-3.0 | -7,320,066,905,892,144,000 | 31.290323 | 90 | 0.741259 | false |
sjsucohort6/openstack | python/venv/lib/python2.7/site-packages/wheel/test/test_signatures.py | 565 | 1120 | from wheel import signatures
from wheel.signatures import djbec, ed25519py
from wheel.util import binary
def test_getlib():
signatures.get_ed25519ll()
def test_djbec():
djbec.dsa_test()
djbec.dh_test()
def test_ed25519py():
kp0 = ed25519py.crypto_sign_keypair(binary(' '*32))
kp = ed25519p... | mit | 355,611,683,186,622,800 | 22.851064 | 62 | 0.6125 | false |
JoeGlancy/linux | tools/perf/scripts/python/futex-contention.py | 1997 | 1508 | # futex contention
# (c) 2010, Arnaldo Carvalho de Melo <acme@redhat.com>
# Licensed under the terms of the GNU GPL License version 2
#
# Translation of:
#
# http://sourceware.org/systemtap/wiki/WSFutexContention
#
# to perf python scripting.
#
# Measures futex contention
import os, sys
sys.path.append(os.environ['PER... | gpl-2.0 | -9,223,116,981,966,895,000 | 29.16 | 96 | 0.690318 | false |
VishvajitP/django-tastypie | tests/namespaced/tests.py | 11 | 1284 | from django.conf import settings
from django.core.urlresolvers import reverse, NoReverseMatch
from django.http import HttpRequest
from django.test import TestCase
from django.utils import simplejson as json
class NamespacedViewsTestCase(TestCase):
urls = 'namespaced.api.urls'
def test_urls(self):
... | bsd-3-clause | -4,008,991,076,824,836,000 | 60.142857 | 336 | 0.702492 | false |
ric2b/Vivaldi-browser | chromium/chrome/common/extensions/docs/examples/apps/hello-python/oauth2/clients/smtp.py | 884 | 1680 | """
The MIT License
Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel
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 ... | bsd-3-clause | -8,429,839,645,670,632,000 | 39.97561 | 79 | 0.754762 | false |
edushifts/book-voyage | bookvoyage-backend/core/mail/__init__.py | 1 | 3852 | """
Tools for sending email.
"""
# Import utilities
from django.template.loader import render_to_string
from django.utils.encoding import force_bytes, force_text
from django.contrib.auth.tokens import default_token_generator
from django.core.mail import send_mail
from django.utils.http import urlsafe_base64_encode
# I... | gpl-3.0 | -5,521,015,942,578,284,000 | 30.064516 | 109 | 0.66433 | false |
spacecowboy/article-annriskgroups-source | stats.py | 1 | 3897 | # -*- coding: utf-8 -*-
import numpy as np
def surv_area(durations, events=None, absolute=False):
'''
Parameters:
durations - array of event times (must be greater than zero)
events - array of event indicators (1/True for event, 0/False for censored)
absolute - if True, returns the actual area. Ot... | gpl-3.0 | -7,565,069,649,911,503,000 | 35.083333 | 101 | 0.625353 | false |
trungnt13/scikit-learn | examples/linear_model/plot_ols.py | 220 | 1940 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
=========================================================
Linear Regression Example
=========================================================
This example uses the only the first feature of the `diabetes` dataset, in
order to illustrate a two-dimensional plot of this regre... | bsd-3-clause | 1,261,405,634,912,694,300 | 27.955224 | 77 | 0.700515 | false |
trianglefraternitymtu/slack-bridge | server/settings.py | 1 | 4877 | """
Django settings for slack announcement approval project, on Heroku. For more info, see:
https://github.com/heroku/heroku-django-template
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/... | mit | -9,003,396,248,352,767,000 | 27.354651 | 91 | 0.635022 | false |
mdanielwork/intellij-community | python/lib/Lib/site-packages/django/contrib/gis/db/backends/util.py | 377 | 1749 | """
A collection of utility routines and classes used by the spatial
backends.
"""
def gqn(val):
"""
The geographic quote name function; used for quoting tables and
geometries (they use single rather than the double quotes of the
backend quotename function).
"""
if isinstance(val, basestring):
... | apache-2.0 | -7,309,029,701,186,243,000 | 30.232143 | 70 | 0.571184 | false |
vongochung/buiquocviet | home/views.py | 1 | 11342 | # -*- coding: utf-8 -*-
from datetime import datetime, timedelta
from django.http import Http404
from django.views.decorators.csrf import ensure_csrf_cookie
from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response, redirect, HttpResponse, get_object_or_404
from django.template import... | bsd-3-clause | 4,577,825,283,039,295,000 | 33.688073 | 132 | 0.705784 | false |
adieu/django-nonrel | django/contrib/comments/admin.py | 361 | 3299 | from django.contrib import admin
from django.contrib.comments.models import Comment
from django.utils.translation import ugettext_lazy as _, ungettext
from django.contrib.comments import get_model
from django.contrib.comments.views.moderation import perform_flag, perform_approve, perform_delete
class CommentsAdmin(adm... | bsd-3-clause | -6,407,621,922,310,696,000 | 44.191781 | 112 | 0.62231 | false |
bverdu/Pyanocktail | pyanocktail/pyanalysis.py | 1 | 31981 | # -*- coding: utf-8 -*-
# This software is free software; you can redistribute it and/or modify it under
# the terms of version 2 of GNU General Public License as published by the
# Free Software Foundation (see License.txt).
from __future__ import division
import numpy as np
# Note FJ :
# format des fic... | lgpl-2.1 | -671,513,183,776,288,300 | 38.030189 | 133 | 0.547731 | false |
stone5495/NewsBlur | vendor/typogrify/smartypants.py | 37 | 29160 | #!/usr/bin/python
r"""
==============
smartypants.py
==============
----------------------------
SmartyPants ported to Python
----------------------------
Ported by `Chad Miller`_
Copyright (c) 2004, 2007 Chad Miller
original `SmartyPants`_ by `John Gruber`_
Copyright (c) 2003 John Gruber
Synopsis
========
A sma... | mit | -1,972,851,282,068,823,300 | 31.292359 | 198 | 0.650686 | false |
resmo/ansible | lib/ansible/module_utils/network/checkpoint/checkpoint.py | 8 | 19463 | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | gpl-3.0 | -1,970,166,692,051,579,100 | 40.498934 | 131 | 0.644762 | false |
jbuchbinder/youtube-dl | youtube_dl/extractor/steam.py | 61 | 4662 | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
ExtractorError,
unescapeHTML,
)
class SteamIE(InfoExtractor):
_VALID_URL = r"""(?x)
https?://store\.steampowered\.com/
(agecheck/)?
(?P<urltype>video|app)/ #If the pa... | unlicense | -7,882,243,147,157,133,000 | 36.902439 | 148 | 0.478979 | false |
kizniche/Mycodo | mycodo/mycodo_flask/api/output.py | 1 | 9541 | # coding=utf-8
import logging
import traceback
import flask_login
from flask_accept import accept
from flask_restx import Resource
from flask_restx import abort
from flask_restx import fields
from mycodo.databases.models import Output
from mycodo.databases.models import OutputChannel
from mycodo.databases.models.outp... | gpl-3.0 | 8,491,038,470,360,638,000 | 37.164 | 94 | 0.585159 | false |
DepthDeluxe/ansible | lib/ansible/module_utils/facts/hardware/sunos.py | 64 | 9586 | # 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 in the hope that ... | gpl-3.0 | 8,220,107,935,792,656,000 | 35.173585 | 108 | 0.566555 | false |
AlexandreDecan/sismic | sismic/model/events.py | 1 | 2623 | import warnings
from typing import Any
__all__ = ['Event', 'InternalEvent', 'MetaEvent']
class Event:
"""
An event with a name and (optionally) some data passed as named parameters.
The list of parameters can be obtained using *dir(event)*. Notice that
*name* and *data* are reserved names. If a *del... | lgpl-3.0 | -4,263,694,073,331,279,000 | 28.47191 | 96 | 0.599695 | false |
Bootz/shiny-robot | plug-ins/pygimp/plug-ins/whirlpinch.py | 16 | 9500 | #!/usr/bin/env python
# Gimp-Python - allows the writing of Gimp plugins in Python.
# Copyright (C) 1997 James Henstridge <james@daa.com.au>
#
# 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 Fou... | gpl-3.0 | 4,800,084,004,397,519,000 | 40.85022 | 79 | 0.451895 | false |
tgoodlet/pytest | testing/test_pdb.py | 5 | 11401 | import sys
import platform
import _pytest._code
import pytest
def runpdb_and_get_report(testdir, source):
p = testdir.makepyfile(source)
result = testdir.runpytest_inprocess("--pdb", p)
reports = result.reprec.getreports("pytest_runtest_logreport")
assert len(reports) == 3, reports # setup/call/teard... | mit | 1,663,352,925,457,144,300 | 29.647849 | 80 | 0.513464 | false |
anirudhjayaraman/scikit-learn | sklearn/utils/tests/test_extmath.py | 70 | 16531 | # Authors: Olivier Grisel <olivier.grisel@ensta.org>
# Mathieu Blondel <mathieu@mblondel.org>
# Denis Engemann <d.engemann@fz-juelich.de>
#
# License: BSD 3 clause
import numpy as np
from scipy import sparse
from scipy import linalg
from scipy import stats
from sklearn.utils.testing import assert_eq... | bsd-3-clause | 2,544,661,088,037,422,000 | 33.728992 | 79 | 0.605589 | false |
cisco-openstack/tempest | tempest/lib/services/volume/v3/groups_client.py | 2 | 5170 | # Copyright (C) 2017 Dell Inc. or its subsidiaries.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | apache-2.0 | 3,082,253,233,467,389,000 | 38.166667 | 85 | 0.64294 | false |
r-mibu/ceilometer | ceilometer/tests/network/statistics/opendaylight/test_driver.py | 12 | 66291 | #
# Copyright 2013 NEC Corporation. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | apache-2.0 | 4,576,517,831,753,559,600 | 37.857562 | 79 | 0.389299 | false |
3L3N4/metagoofil | pdfminer/pdftypes.py | 26 | 7735 | #!/usr/bin/env python2
import sys
import zlib
from lzw import lzwdecode
from ascii85 import ascii85decode, asciihexdecode
from runlength import rldecode
from psparser import PSException, PSObject
from psparser import LIT, KWD, STRICT
LITERAL_CRYPT = LIT('Crypt')
# Abbreviation of Filter names in PDF 4.8.6. "Inline Im... | gpl-2.0 | 4,280,389,643,255,911,000 | 28.98062 | 100 | 0.559664 | false |
egonw/citeulike | plugins/python/cases.py | 2 | 3673 | #!/usr/bin/env python
import os, sys, re, urllib2, cookielib, string
from urllib import urlencode
from urllib2 import urlopen
from copy import copy
import BeautifulSoup
import htmlentitydefs
import socket
socket.setdefaulttimeout(15)
class ParseException(Exception):
pass
##
# Removes HTML or XML character refere... | bsd-3-clause | -1,907,637,463,961,163,000 | 24.331034 | 164 | 0.622107 | false |
nguyenfilip/subscription-manager | test/test_rct_cert_command.py | 3 | 2207 | #
# Copyright (c) 2012 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should have received a copy of... | gpl-2.0 | -6,185,564,035,410,825,000 | 37.719298 | 86 | 0.675578 | false |
alexgorban/models | research/textsum/batch_reader.py | 14 | 10400 | # 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,198,700,568,311,423,000 | 38.245283 | 80 | 0.637115 | false |
jelugbo/hebs_master | common/lib/xmodule/xmodule/modulestore/django.py | 17 | 6349 | """
Module that provides a connection to the ModuleStore specified in the django settings.
Passes settings.MODULESTORE as kwargs to MongoModuleStore
"""
from __future__ import absolute_import
from importlib import import_module
from django.conf import settings
if not settings.configured:
settings.configure()
fro... | agpl-3.0 | 2,187,341,260,609,576,700 | 34.272222 | 118 | 0.685305 | false |
xuweiliang/Codelibrary | openstack_dashboard/dashboards/admin/users/tables.py | 1 | 7776 | # 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
# distributed under t... | apache-2.0 | 142,018,871,782,313,800 | 33.56 | 90 | 0.561214 | false |
ccellis/WHACK2016 | flask/lib/python2.7/site-packages/pip/commands/search.py | 344 | 4736 | import sys
import textwrap
import pip.download
from pip.basecommand import Command, SUCCESS
from pip.util import get_terminal_size
from pip.log import logger
from pip.backwardcompat import xmlrpclib, reduce, cmp
from pip.exceptions import CommandError
from pip.status_codes import NO_MATCHES_FOUND
from pip._vendor imp... | bsd-3-clause | -1,124,570,996,603,187,500 | 34.878788 | 102 | 0.603463 | false |
frabcus/mpcv | bin/parl.2017-06-08/01-all-candidates.py | 1 | 2347 | #!/usr/bin/env python3
import sys
import os
import collections
import datetime
import flask_mail
import boto.s3.key
sys.path.append(os.getcwd())
import app
import identity
import lookups
app.app.config['SERVER_NAME'] = 'cv.democracyclub.org.uk'
# Get list of when last sent
last_sent_by_email = lookups.candidate_ma... | agpl-3.0 | -7,220,414,835,251,594,000 | 28.3375 | 93 | 0.597358 | false |
pavels/pootle | pootle/core/utils/wordcount.py | 4 | 4873 | # -*- 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 re
re._MAXCACHE = 1000
remove = r... | gpl-3.0 | 2,861,978,391,407,678,500 | 31.697987 | 79 | 0.579023 | false |
wkschwartz/django | tests/template_tests/syntax_tests/test_url.py | 34 | 11815 | from django.template import RequestContext, TemplateSyntaxError
from django.test import RequestFactory, SimpleTestCase, override_settings
from django.urls import NoReverseMatch, resolve
from ..utils import setup
@override_settings(ROOT_URLCONF='template_tests.urls')
class UrlTagTests(SimpleTestCase):
request_fac... | bsd-3-clause | -5,389,943,958,253,432,000 | 42.058608 | 112 | 0.595151 | false |
argriffing/numpy | numpy/core/tests/test_records.py | 5 | 13700 | from __future__ import division, absolute_import, print_function
import sys
import collections
import pickle
from os import path
import numpy as np
from numpy.compat import asbytes
from numpy.testing import (
TestCase, run_module_suite, assert_, assert_equal, assert_array_equal,
assert_array_almost_equal, ass... | bsd-3-clause | 3,310,966,152,427,312,600 | 38.595376 | 96 | 0.519416 | false |
drayanaindra/django-shop | shop/tests/api.py | 16 | 2260 | from shop.models.ordermodel import OrderExtraInfo, Order
from django.test.testcases import TestCase
from django.contrib.auth.models import User
from shop.tests.util import Mock
from shop.shop_api import ShopAPI
from decimal import Decimal
class ShopApiTestCase(TestCase):
def setUp(self):
self.user = User.... | bsd-3-clause | 2,631,179,910,283,354,600 | 31.285714 | 69 | 0.630973 | false |
rellla/xbmca10 | tools/EventClients/lib/python/ps3/sixpair.py | 208 | 2903 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import usb
vendor = 0x054c
product = 0x0268
timeout = 5000
passed_value = 0x03f5
def find_sixaxes():
res = []
for bus in usb.busses():
for dev in bus.devices:
if dev.idVendor == vendor and dev.idProduct == product:
res.append(dev)
return r... | gpl-2.0 | -6,913,882,019,155,779,000 | 24.464912 | 97 | 0.594557 | false |
stevenaubertin/showsServer | lib/werkzeug/datastructures.py | 146 | 86337 | # -*- coding: utf-8 -*-
"""
werkzeug.datastructures
~~~~~~~~~~~~~~~~~~~~~~~
This module provides mixins and classes with an immutable interface.
:copyright: (c) 2014 by the Werkzeug Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
import re
import sys
import cod... | apache-2.0 | 2,562,384,758,529,963,500 | 31.940481 | 86 | 0.569142 | false |
moses-palmer/slimit | src/slimit/visitors/ecmavisitor.py | 1 | 12856 | ###############################################################################
#
# Copyright (c) 2011 Ruslan Spivak
#
# 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, inc... | mit | 702,696,883,069,655,800 | 31.14 | 79 | 0.518979 | false |
FedeMPouzols/Savu | savu/plugins/loaders/multi_modal_loaders/i18_loaders/i18xrd_loader.py | 1 | 5937 | # Copyright 2014 Diamond Light Source Ltd.
#
# 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 t... | gpl-3.0 | -7,426,081,832,613,310,000 | 42.654412 | 117 | 0.59744 | false |
zitouni/ieee_802-15-4_868-900 | examples/usrpN210/tools/crc16.py | 7 | 1996 | #!/usr/bin/env python
"""
Translation from a C code posted to a forum on the Internet.
@translator Thomas Schmid
"""
from array import array
def reflect(crc, bitnum):
# reflects the lower 'bitnum' bits of 'crc'
j=1
crcout=0
for b in range(bitnum):
i=1<<(bitnum-1-b)
i... | gpl-3.0 | 551,362,120,101,230,300 | 20.934066 | 144 | 0.480461 | false |
kelemetry/beacon | vendor/github.com/ugorji/go/codec/test.py | 107 | 4029 | #!/usr/bin/env python
# This will create golden files in a directory passed to it.
# A Test calls this internally to create the golden files
# So it can process them (so we don't have to checkin the files).
# Ensure msgpack-python and cbor are installed first, using:
# sudo apt-get install python-dev
# sudo apt-g... | apache-2.0 | -6,868,696,857,130,023,000 | 30.97619 | 96 | 0.569868 | false |
BrainDamage/Flexget | flexget/plugins/search_ptn.py | 4 | 4667 | from __future__ import unicode_literals, division, absolute_import
import logging
from requests.auth import AuthBase
from flexget import plugin
from flexget.entry import Entry
from flexget.event import event
from flexget.utils import requests
from flexget.utils.imdb import extract_id
from flexget.utils.soup import ge... | mit | 6,010,418,141,242,508,000 | 34.356061 | 109 | 0.526248 | false |
map222/spark | examples/src/main/python/ml/n_gram_example.py | 123 | 1545 | #
# 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 | 796,762,692,266,558,700 | 34.113636 | 74 | 0.682201 | false |
t0in4/django | tests/check_framework/test_multi_db.py | 191 | 1682 | from django.db import connections, models
from django.test import TestCase, mock
from django.test.utils import override_settings
from .tests import IsolateModelsMixin
class TestRouter(object):
"""
Routes to the 'other' database if the model name starts with 'Other'.
"""
def allow_migrate(self, db, ap... | bsd-3-clause | 215,806,418,526,590,750 | 38.116279 | 93 | 0.661712 | false |
Ervii/garage-time | garage/src/python/pants/backend/jvm/tasks/jvm_compile/anonymizer.py | 2 | 4846 | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (nested_scopes, generators, division, absolute_import, with_statement,
print_function, unicode_literals)
import base64
import... | apache-2.0 | -914,592,778,820,087,900 | 28.91358 | 105 | 0.652084 | false |
brendandburns/tensorflow | tensorflow/python/training/queue_runner_test.py | 5 | 6725 | """Tests for QueueRunner."""
import time
import tensorflow.python.platform
import tensorflow as tf
class QueueRunnerTest(tf.test.TestCase):
def testBasic(self):
with self.test_session() as sess:
# CountUpTo will raise OUT_OF_RANGE when it reaches the count.
zero64 = tf.constant(0, dtype=tf.int64)... | apache-2.0 | -1,303,419,447,974,835,700 | 35.155914 | 77 | 0.635985 | false |
sebastien-j/gensim | gensim/corpora/sharded_corpus.py | 63 | 35097 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Original author: Jan Hajic jr.
# Copyright (C) 2015 Radim Rehurek and gensim team.
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
"""
This module implements a corpus class that stores its data in separate files called
"shards". This is a com... | gpl-3.0 | 306,182,225,580,232,000 | 40.387972 | 100 | 0.588455 | false |
zmike/servo | tests/wpt/css-tests/tools/pywebsocket/src/mod_pywebsocket/msgutil.py | 658 | 7598 | # Copyright 2011, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | mpl-2.0 | -1,855,365,556,284,930,600 | 33.694064 | 79 | 0.661227 | false |
gioman/QGIS | python/plugins/processing/algs/qgis/ShortestPathPointToLayer.py | 1 | 11506 | # -*- coding: utf-8 -*-
"""
***************************************************************************
ShortestPathPointToLayer.py
---------------------
Date : December 2016
Copyright : (C) 2016 by Alexander Bruy
Email : alexander dot bruy at gmail dot com... | gpl-2.0 | -3,578,964,556,221,195,300 | 43.084291 | 143 | 0.526595 | false |
CamelBackNotation/hackdfw | Dependencies/build/lib.linux-x86_64-2.7/pymouse/mac.py | 10 | 5547 | #Copyright 2013 Paul Barton
#
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later version.
#
#This program is distributed in the hope tha... | mit | -1,704,382,213,220,390,000 | 40.706767 | 98 | 0.614026 | false |
BerserkerTroll/root | bindings/pyroot/JupyROOT/utils.py | 6 | 14510 | # -*- coding:utf-8 -*-
#-----------------------------------------------------------------------------
# Author: Danilo Piparo <Danilo.Piparo@cern.ch> CERN
#-----------------------------------------------------------------------------
from __future__ import print_function
import os
import sys
import select
import te... | lgpl-2.1 | -7,166,167,120,123,723,000 | 27.619329 | 171 | 0.627154 | false |
IsCoolEntertainment/debpkg_python-boto | boto/ec2/elb/securitygroup.py | 57 | 1576 | # Copyright (c) 2010 Reza Lotun http://reza.lotun.name
#
# 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, m... | mit | -3,766,237,517,782,144,500 | 40.473684 | 74 | 0.712563 | false |
eoncloud-dev/eonboard | eoncloud_web/cloud/api/swift.py | 10 | 11697 | # Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the... | apache-2.0 | 1,103,970,919,797,390,500 | 33.402941 | 79 | 0.589553 | false |
arcsun/neteaseMenu | start.py | 1 | 11671 | #coding=utf-8
from flask import Flask, redirect, render_template, request, Response
from codepy import menulog
import anydbm as dbm
import shelve
import os, sys
import urllib
from datetime import datetime
import time
import urllib2
import hashlib
app = Flask(__name__)
visit = 0
visitHome = 0
startTime = time.time()
t... | apache-2.0 | -3,355,608,342,837,316,600 | 25.896296 | 205 | 0.541357 | false |
gregdek/ansible | lib/ansible/modules/network/fortios/fortios_firewall_address.py | 7 | 15896 | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2018 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Lic... | gpl-3.0 | -6,537,436,329,098,680,000 | 32.821277 | 111 | 0.490627 | false |
flyher/pymo | android/pgs4a-0.9.6/python-install/lib/python2.7/distutils/tests/setuptools_build_ext.py | 149 | 11489 | from distutils.command.build_ext import build_ext as _du_build_ext
try:
# Attempt to use Pyrex for building extensions, if available
from Pyrex.Distutils.build_ext import build_ext as _build_ext
except ImportError:
_build_ext = _du_build_ext
import os, sys
from distutils.file_util import copy_file
from di... | mit | -3,508,374,496,247,061,500 | 39.031359 | 93 | 0.582731 | false |
w1ll1am23/home-assistant | homeassistant/components/yeelightsunflower/light.py | 21 | 3638 | """Support for Yeelight Sunflower color bulbs (not Yeelight Blue or WiFi)."""
import logging
import voluptuous as vol
import yeelightsunflower
from homeassistant.components.light import (
ATTR_BRIGHTNESS,
ATTR_HS_COLOR,
PLATFORM_SCHEMA,
SUPPORT_BRIGHTNESS,
SUPPORT_COLOR,
LightEntity,
)
from ho... | apache-2.0 | -1,719,767,012,948,952,000 | 31.482143 | 78 | 0.629192 | false |
syllog1sm/TextBlob | text/nltk/tag/tnt.py | 2 | 18395 | # Natural Language Toolkit: TnT Tagger
#
# Copyright (C) 2001-2013 NLTK Project
# Author: Sam Huston <sjh900@gmail.com>
#
# URL: <http://www.nltk.org/>
# For license information, see LICENSE.TXT
'''
Implementation of 'TnT - A Statisical Part of Speech Tagger'
by Thorsten Brants
http://acl.ldc.upenn.edu/A/A00/A00-1031... | mit | -6,458,898,123,796,336,000 | 29.304778 | 92 | 0.545692 | false |
barnone/EigenD | plg_midi/midi_input_plg.py | 1 | 16450 |
#
# Copyright 2009 Eigenlabs Ltd. http://www.eigenlabs.com
#
# This file is part of EigenD.
#
# EigenD 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) a... | gpl-3.0 | -6,468,693,866,637,945,000 | 35.474501 | 166 | 0.569726 | false |
patsissons/Flexget | flexget/plugins/output/pushalot.py | 4 | 6342 | from __future__ import unicode_literals, division, absolute_import
import logging
from flexget import plugin
from flexget.event import event
from flexget.utils import json
from flexget.utils.template import RenderError
from flexget.config_schema import one_or_more
log = logging.getLogger("pushalot")
pushalot_url = "... | mit | 624,903,931,182,064,400 | 40.45098 | 105 | 0.52176 | 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.