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 |
|---|---|---|---|---|---|---|---|---|---|---|
crazy-canux/django | django/db/backends/postgresql/base.py | 143 | 10451 | """
PostgreSQL database backend for Django.
Requires psycopg 2: http://initd.org/projects/psycopg2
"""
import warnings
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.db import DEFAULT_DB_ALIAS
from django.db.backends.base.base import BaseDatabaseWrapper
from djan... | bsd-3-clause | 7,459,163,755,946,436,000 | 38.587121 | 113 | 0.624151 | false |
anant-dev/django | tests/model_meta/tests.py | 84 | 11711 | from django.apps import apps
from django.contrib.contenttypes.fields import (
GenericForeignKey, GenericRelation,
)
from django.core.exceptions import FieldDoesNotExist
from django.db.models.fields import CharField, Field, related
from django.db.models.options import EMPTY_RELATION_TREE, IMMUTABLE_WARNING
from djan... | bsd-3-clause | -8,400,895,670,341,254,000 | 42.861423 | 119 | 0.638887 | false |
ArthurGarnier/SickRage | lib/github/GitTree.py | 10 | 3487 | # -*- coding: utf-8 -*-
# ########################## Copyrights and license ############################
# #
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
# Copyright 2012 Zearin <zearin@gonk.net> ... | gpl-3.0 | -2,570,581,327,430,702,600 | 42.5875 | 115 | 0.48351 | false |
DICENetworks/DICE-pjsip | pkgconfig.py | 75 | 4188 | import sys
import os
REMOVE_THESE = ["-I/usr/include", "-I/usr/include/", "-L/usr/lib", "-L/usr/lib/"]
class Pkg:
def __init__(self, pkg_name):
self.name = pkg_name
self.priority = 0
self.vars = {}
def parse(self, pkg_config_path):
f = None
for pkg_path in pkg_config_path.split(':'):
if pkg_path[-1] !... | gpl-2.0 | -6,355,889,581,332,981,000 | 23.208092 | 103 | 0.606734 | false |
HerlanAssis/Django-AulaOsvandoSantana | lib/python2.7/site-packages/django/db/models/query.py | 20 | 71252 | """
The main QuerySet implementation. This provides the public API for the ORM.
"""
import copy
import sys
import warnings
from collections import OrderedDict, deque
from django.conf import settings
from django.core import exceptions
from django.db import (
DJANGO_VERSION_PICKLE_KEY, IntegrityError, connections, ... | mit | -3,841,649,322,333,401,000 | 39.255367 | 115 | 0.587675 | false |
plepe/pgmapcss | pgmapcss/db/osmosis/db_functions.py | 1 | 15332 | # Use this functions only with a database based on an import with osmosis
def objects_bbox(_bbox, db_selects, options, add_columns={}, add_param_type=[], add_param_value=[]):
import pghstore
qry = ''
if len(add_columns):
add_columns_qry = ', ' + ', '.join([
q + ' as "' + k + '"'
... | agpl-3.0 | 5,470,081,386,128,267,000 | 40.215054 | 521 | 0.505348 | false |
safchain/contrail-sandesh | library/python/pysandesh/test/sandesh_trace_test.py | 3 | 12959 | #!/usr/bin/env python
#
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
#
# sandesh_trace_test
#
import sys
import socket
import unittest
import test_utils
sys.path.insert(1, sys.path[0]+'/../../../python')
from pysandesh.sandesh_base import *
from gen_py.msg_test.ttypes import *
class SandeshTr... | apache-2.0 | -2,146,164,230,247,699,000 | 49.819608 | 93 | 0.618643 | false |
egroeper/exscript | src/Exscriptd/config/DatabaseConfig.py | 6 | 2012 | # Copyright (C) 2010 Samuel Abels.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2, as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; wi... | gpl-2.0 | 1,199,485,063,296,622,000 | 36.259259 | 75 | 0.656561 | false |
houzhenggang/hiwifi-openwrt-HC5661-HC5761 | staging_dir/target-mipsel_r2_uClibc-0.9.33.2/usr/lib/python2.7/ctypes/test/test_pickling.py | 88 | 2200 | import unittest
import pickle
from ctypes import *
import _ctypes_test
dll = CDLL(_ctypes_test.__file__)
class X(Structure):
_fields_ = [("a", c_int), ("b", c_double)]
init_called = 0
def __init__(self, *args, **kw):
X.init_called += 1
self.x = 42
class Y(X):
_fields_ = [("str", c_char... | gpl-2.0 | 1,837,139,906,483,769,300 | 25.506024 | 67 | 0.539545 | false |
bigdocker/cloud-init | cloudinit/sources/DataSourceNoCloud.py | 4 | 10215 | # vi: ts=4 expandtab
#
# Copyright (C) 2009-2010 Canonical Ltd.
# Copyright (C) 2012, 2013 Hewlett-Packard Development Company, L.P.
# Copyright (C) 2012 Yahoo! Inc.
#
# Author: Scott Moser <scott.moser@canonical.com>
# Author: Juerg Hafliger <juerg.haefliger@hp.com>
# Author: Joshua Harlow <harlowja@... | gpl-3.0 | 9,082,954,233,635,247,000 | 36.555147 | 79 | 0.563289 | false |
calancha/DIRAC | Core/Utilities/CountryMapping.py | 11 | 1071 | # $HeadURL$
""" The CountryMapping module performs the necessary CS gymnastics to resolve country codes """
__RCSID__ = "$Id$"
from DIRAC import gConfig, S_OK, S_ERROR
def getCountryMapping( country ):
""" Determines the associated country from the country code"""
mappedCountries = [country]
while True:
m... | gpl-3.0 | -5,761,971,532,053,651,000 | 34.7 | 97 | 0.697479 | false |
Juniper/contrail-dev-generateDS | ServiceGenerator.py | 4 | 131390 | import os
import time
import logging
import textwrap
def CamelCase(input):
words = input.replace('_', '-').split('-')
name = ''
for w in words:
name += w.capitalize()
return name
def escape_string(instring):
s1 = instring
s1 = s1.replace('\\', '\\\\')
s1 = s1.replace("'", "\\'")
... | mit | -7,983,475,372,673,049,000 | 50.687648 | 211 | 0.493051 | false |
caplio/sc02c | tools/perf/scripts/python/syscall-counts-by-pid.py | 944 | 1744 | # system call counts, by pid
# (c) 2010, Tom Zanussi <tzanussi@gmail.com>
# Licensed under the terms of the GNU GPL License version 2
#
# Displays system-wide system call totals, broken down by syscall.
# If a [comm] arg is specified, only syscalls called by [comm] are displayed.
import os
import sys
sys.path.append(... | gpl-2.0 | 3,027,504,439,292,431,400 | 26.25 | 77 | 0.610092 | false |
aliutkus/commonfate | examples/cfm_decompose.py | 1 | 1202 | import os
import numpy as np
import soundfile as sf
import argparse
from commonfate import decompose
def export(input, input_file, output_path, samplerate):
if not os.path.exists(output_path):
os.makedirs(output_path)
basepath = os.path.join(
output_path, os.path.splitext(os.path.basename(inp... | bsd-3-clause | 3,768,253,633,355,109,000 | 22.568627 | 70 | 0.597338 | false |
frouty/odoogoeen | addons/point_of_sale/wizard/pos_payment_report.py | 55 | 1808 | # -*- 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 | 6,946,599,417,397,387,000 | 35.897959 | 78 | 0.589602 | false |
flwh/KK_mt6589_iq451 | prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/test_richcmp.py | 129 | 11466 | # Tests for rich comparisons
import unittest
from test import test_support
import operator
class Number:
def __init__(self, x):
self.x = x
def __lt__(self, other):
return self.x < other
def __le__(self, other):
return self.x <= other
def __eq__(self, other):
return... | gpl-2.0 | -413,822,359,969,104,200 | 32.923077 | 81 | 0.539421 | false |
arquetype/thus | src/jobs/job_5.py | 1 | 3412 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# job_cleanup_drivers
#
# Copyright 2014 KaOS (http://kaosx.us)
#
# 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 Li... | gpl-3.0 | -9,091,818,315,011,579,000 | 30.88785 | 101 | 0.566823 | false |
ahamilton55/ansible | test/units/modules/network/iosxr/test_iosxr_facts.py | 62 | 3226 | # (c) 2016 Red Hat Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is dis... | gpl-3.0 | 5,265,459,456,043,807,000 | 39.325 | 95 | 0.66088 | false |
EUDAT-B2SHARE/invenio-old | modules/webstyle/lib/goto_plugins/goto_plugin_latest_record.py | 8 | 2360 | # -*- coding: utf-8 -*-
##
## This file is part of Invenio.
## Copyright (C) 2012 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) a... | gpl-2.0 | -9,008,206,107,945,436,000 | 39 | 77 | 0.651271 | false |
demonchild2112/travis-test | grr/core/grr_response_core/lib/parsers/linux_release_parser_test.py | 2 | 6232 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""Unit test for the linux distribution parser."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
import io
import os
from absl import app
from grr_response_core.lib.parsers import linux_release_parser
fr... | apache-2.0 | 3,354,986,424,329,454,000 | 30.958974 | 80 | 0.670732 | false |
ChristineLaMuse/mozillians | mozillians/phonebook/tests/test_views/test_views_login.py | 12 | 1179 | from django.core.urlresolvers import reverse
from django.test import Client
from mozillians.common.tests import TestCase, requires_login
from mozillians.users.tests import UserFactory
class LoginTests(TestCase):
@requires_login()
def test_login_anonymous(self):
client = Client()
client.get(r... | bsd-3-clause | -3,576,267,469,536,493,600 | 37.032258 | 74 | 0.689567 | false |
rooshilp/CMPUT410W15-project | testenv/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/setuptools/tests/doctest.py | 69 | 99730 | # Module doctest.
# Released to the public domain 16-Jan-2001, by Tim Peters (tim@python.org).
# Major enhancements and refactoring by:
# Jim Fulton
# Edward Loper
# Provided as-is; use at your own risk; no warranty; no promises; enjoy!
try:
basestring
except NameError:
basestring = str,unicode
try:
... | gpl-2.0 | 16,853,893,294,249,750 | 36.226577 | 79 | 0.570591 | false |
dbckz/ansible | lib/ansible/utils/module_docs_fragments/docker.py | 173 | 3598 | # 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 | -1,322,602,578,843,710,200 | 37.688172 | 118 | 0.652307 | false |
lordmuffin/aws-cfn-plex | functions/credstash/botocore/docs/__init__.py | 26 | 1543 | # Copyright 2015 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | mit | -3,107,347,093,855,113,700 | 39.605263 | 76 | 0.71873 | false |
milani/cycleindex | tests/test_cyclecount.py | 1 | 1444 | import pytest
import numpy as np
from cycleindex.cyclecount import (
cycle_count
)
@pytest.mark.parametrize("A, expected", [
(
np.array([[0, 0.5, 0],
[0, 0, -0.5],
[0.5, 0, 0]]),
([0, 0, -0.12500, 0, 0, 0, 0], [0, 0, 0.12500, 0, 0, 0, 0])
),
(
... | bsd-3-clause | 2,957,116,944,844,984,300 | 30.391304 | 96 | 0.31856 | false |
mshameers/me | app/api/comment.py | 1 | 1794 | from flask import Blueprint, jsonify, request
from app import db
from app.api import InvalidUsage, LinkHeaderBuilder, parse_json, parse_arg, \
parse_pagination_args, sql_ordering, handle_invalid_usage
from app.api.auth import require_authorization
from app.api.comment_validators import validate_name
from app.mode... | gpl-2.0 | -2,583,736,565,876,334,000 | 28.42623 | 77 | 0.637124 | false |
spirrello/spirrello-pynet-work | applied_python/lib/python2.7/site-packages/pylint/checkers/logging.py | 3 | 10888 | # Copyright (c) 2009-2010 Google, 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 2 of the License, or (at your option) any later
# version.
#
# This program is distributed i... | gpl-3.0 | -2,133,837,413,804,724,700 | 41.20155 | 96 | 0.600569 | false |
jrumball/PyKoans | python 3/koans/about_generators.py | 3 | 4604 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Written in place of AboutBlocks in the Ruby Koans
#
# Note: Both blocks and generators use a yield keyword, but they behave
# a lot differently
#
from runner.koan import *
class AboutGenerators(Koan):
def test_generating_values_on_the_fly(self):
... | mit | -7,935,133,267,400,542,000 | 30.534247 | 94 | 0.537142 | false |
ptkool/spark | examples/src/main/python/sql/basic.py | 52 | 6269 | #
# 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,883,201,234,163,682,000 | 28.15814 | 97 | 0.592918 | false |
DhruvSarma/retrogamelib | retrogamelib/font.py | 8 | 1873 | import pygame
from pygame.locals import *
class Font(object):
def __init__(self, font, color=(255, 255, 255)):
#Dict to hold the letter images
self.letters = {}
import os
letters = {}
format = " abcdefghijklmnopqrstuvwxyz0123456789-+:,.=!)(?><"
... | lgpl-2.1 | 8,783,660,468,906,310,000 | 31.293103 | 72 | 0.470902 | false |
homework/nox | src/nox/coreapps/coretests/test_mod.py | 10 | 1990 | # Copyright 2008 (C) Nicira, Inc.
#
# This file is part of NOX.
#
# NOX 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.
#
# NOX is d... | gpl-3.0 | -4,175,463,996,685,921,000 | 28.701493 | 78 | 0.646231 | false |
mikecroucher/GPy | GPy/util/debug.py | 7 | 1127 | # Copyright (c) 2012, GPy authors (see AUTHORS.txt).
# Licensed under the BSD 3-clause license (see LICENSE.txt)
"""
The module for some general debug tools
"""
import numpy as np
def checkFinite(arr, name=None):
if name is None:
name = 'Array with ID['+str(id(arr))+']'
if np.any(np.logical_not(np.i... | bsd-3-clause | 9,054,929,406,830,757,000 | 31.2 | 110 | 0.614907 | false |
nkatre/php-buildpack | lib/yaml/events.py | 985 | 2445 |
# Abstract classes.
class Event(object):
def __init__(self, start_mark=None, end_mark=None):
self.start_mark = start_mark
self.end_mark = end_mark
def __repr__(self):
attributes = [key for key in ['anchor', 'tag', 'implicit', 'value']
if hasattr(self, key)]
argu... | apache-2.0 | 8,610,885,242,060,379,000 | 27.430233 | 77 | 0.619632 | false |
h4wkmoon/shinken | test/test_business_correlator.py | 1 | 63781 | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken 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 | -1,993,434,023,869,167,600 | 40.01672 | 147 | 0.580408 | false |
crosswalk-project/chromium-crosswalk-efl | third_party/protobuf/python/google/protobuf/internal/type_checkers.py | 527 | 12163 | # Protocol Buffers - Google's data interchange format
# Copyright 2008 Google Inc. All rights reserved.
# http://code.google.com/p/protobuf/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions o... | bsd-3-clause | -6,279,694,923,689,391,000 | 41.527972 | 80 | 0.748582 | false |
Fokko/incubator-airflow | tests/contrib/operators/test_slack_webhook_operator.py | 2 | 3263 | # -*- coding: utf-8 -*-
#
# 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
#... | apache-2.0 | 2,293,342,058,806,237,700 | 36.94186 | 91 | 0.648483 | false |
mic4ael/indico | bin/maintenance/build-assets.py | 1 | 10446 | #!/usr/bin/env python
# This file is part of Indico.
# Copyright (C) 2002 - 2020 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
import errno
import json
import os
import re
import shutil
import subprocess
import ... | mit | 8,751,502,704,968,776,000 | 37.263736 | 119 | 0.621099 | false |
cpatrick/comic-django | django/comicsite/migrations/0004_auto__add_field_comicsite_description.py | 1 | 2296 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'ComicSite.description'
db.add_column('comicsite_comicsite', 'description',
... | apache-2.0 | 4,929,861,489,527,840,000 | 47.87234 | 130 | 0.554878 | false |
kevinvandervlist/tfa | src/vehicles.py | 1 | 3847 | #!/usr/bin/python
# Vehicle program
# Copyright (C) 2012 Kevin van der Vlist, Rosco Voorrips
#
# 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 opt... | gpl-3.0 | -1,543,497,011,438,848,800 | 32.745614 | 160 | 0.6366 | false |
lwinters-cs470/Flask-OAuth | flask_oauth.py | 19 | 17752 | # -*- coding: utf-8 -*-
"""
flask_oauth
~~~~~~~~~~~
Implements basic OAuth support for Flask.
:copyright: (c) 2010 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
import httplib2
from functools import wraps
from urlparse import urljoin
from flask import request, session, json, ... | bsd-3-clause | 4,639,061,905,282,999,000 | 39.809195 | 88 | 0.584892 | false |
SaganBolliger/nupic | examples/opf/experiments/missing_record/simple_0/description.py | 32 | 1722 | # ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This progra... | agpl-3.0 | -6,275,730,240,527,651,000 | 33.44 | 76 | 0.609756 | false |
vipul-sharma20/oh-mainline | mysite/profile/migrations/0064_person_location_flags.py | 17 | 17461 | # This file is part of OpenHatch.
# Copyright (C) 2010 Parker Phinney
# Copyright (C) 2010 OpenHatch, Inc.
#
# 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 Free Software Foundation, either version 3 of the Licens... | agpl-3.0 | 4,749,282,868,902,366,000 | 72.058577 | 151 | 0.574938 | false |
jsilter/scipy | scipy/integrate/__init__.py | 46 | 1899 | """
=============================================
Integration and ODEs (:mod:`scipy.integrate`)
=============================================
.. currentmodule:: scipy.integrate
Integrating functions, given function object
============================================
.. autosummary::
:toctree: generated/
quad ... | bsd-3-clause | -2,405,780,890,863,360,500 | 31.741379 | 78 | 0.622959 | false |
frankyrumple/ope | admin_app/gluon/contrib/markmin/markmin2html.py | 8 | 55792 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# created by Massimo Di Pierro
# recreated by Vladyslav Kozlovskyy
# license MIT/BSD/GPL
import re
import urllib
from cgi import escape
from string import maketrans
try:
from ast import parse as ast_parse
import ast
except ImportError: # python 2.5
from compil... | mit | 6,774,918,797,658,627,000 | 35.299284 | 264 | 0.500072 | false |
mcflugen/topoflow | topoflow/gui/ZZ_Old_Stuff/plot_window.py | 6 | 1324 |
# April 24, 2009
# S.D. Peckham
import wx
#----------------------------------------------------------------
class Plot_Window(wx.Window):
def __init__(self, parent, title, labels):
wx.Window.__init__(self, parent)
self.title = title
self.labels = labels
self.data = [0.0]... | mit | 803,830,980,494,208,100 | 23.072727 | 65 | 0.377644 | false |
damirda/ansible-modules-core | cloud/amazon/ec2_vpc_net.py | 21 | 10137 | #!/usr/bin/python
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed... | gpl-3.0 | -2,990,088,256,342,743,600 | 32.455446 | 173 | 0.621782 | false |
ryfeus/lambda-packs | Tensorflow_LightGBM_Scipy_nightly/source/setuptools/build_meta.py | 5 | 5995 | """A PEP 517 interface to setuptools
Previously, when a user or a command line tool (let's call it a "frontend")
needed to make a request of setuptools to take a certain action, for
example, generating a list of installation requirements, the frontend would
would call "setup.py egg_info" or "setup.py bdist_wheel" on t... | mit | 2,623,164,328,786,052,000 | 31.93956 | 86 | 0.666055 | false |
LynxyssCZ/Flexget | flexget/plugins/clients/deluge.py | 5 | 42348 | from __future__ import unicode_literals, division, absolute_import
from builtins import * # noqa pylint: disable=unused-import, redefined-builtin
from future.utils import native
import base64
import glob
import logging
import pkg_resources
import os
import re
import sys
import time
import warnings
from flexget impor... | mit | -2,552,230,895,210,373,000 | 46.850847 | 165 | 0.523756 | false |
mozts2005/OuterSpace | server/lib/ige/ospace/Const.py | 2 | 6566 | #
# Copyright 2001 - 2006 Ludek Smid [http://www.ospace.net/]
#
# This file is part of IGE - Outer Space.
#
# IGE - Outer Space 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 t... | gpl-2.0 | -7,401,655,552,724,043,000 | 26.672489 | 84 | 0.71261 | false |
u3mur4/syndicate | synx.py | 1 | 7902 | #! /usr/bin/env python
from subprocess import Popen,PIPE,STDOUT
import collections
import os
import sys
import time
import math
import os
from urllib2 import urlopen
SERVER_IP = urlopen('https://api.ipify.org/').read()
NODE_LIST = urlopen('https://pastebin.com/raw/haX0XxCA').read()
BOOTSTRAP_URL = "https://mega.nz/#!5... | apache-2.0 | -6,191,008,904,991,583,000 | 33.207792 | 237 | 0.602379 | false |
relue2718/diff-scraper | diffscraper/libdiffscraper/tokenizer.py | 1 | 3927 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Author: Seunghyun Yoo (shyoo1st@cs.ucla.edu)
"""
from . import htmlparser, textparser
class Tokenizer(object):
def __init__(self):
pass
@staticmethod
def feature(parser_type, raw_string):
parser = Tokenizer.create_parser(parser_type... | gpl-3.0 | -239,056,794,603,034,340 | 37.5 | 112 | 0.589763 | false |
carlmw/oscar-wager | django/contrib/admin/util.py | 12 | 9600 | from django.db import models
from django.db.models.deletion import Collector
from django.db.models.related import RelatedObject
from django.forms.forms import pretty_name
from django.utils import formats
from django.utils.html import escape
from django.utils.safestring import mark_safe
from django.utils.text import cap... | bsd-3-clause | -5,493,316,739,600,477,000 | 33.042553 | 94 | 0.576979 | false |
mozilla/stoneridge | python/src/Lib/test/test_unicodedata.py | 110 | 12083 | """ Test script for the unicodedata module.
Written by Marc-Andre Lemburg (mal@lemburg.com).
(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
"""
import sys
import unittest
import hashlib
import subprocess
import test.test_support
encoding = 'utf-8'
### Run tests
class UnicodeMethodsTest(unittest.T... | mpl-2.0 | 6,980,988,948,611,813,000 | 37.116719 | 87 | 0.576347 | false |
hamish/SmeltCMS | packages/docutils/transforms/components.py | 196 | 1993 | # $Id: components.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
Docutils component-related transforms.
"""
__docformat__ = 'reStructuredText'
import sys
import os
import re
import time
from docutils import nodes,... | gpl-3.0 | -4,619,965,842,639,281,000 | 37.326923 | 78 | 0.697943 | false |
abhilashnta/edx-platform | pavelib/paver_tests/utils.py | 111 | 1498 | """Unit tests for the Paver server tasks."""
import os
from paver import tasks
from unittest import TestCase
class PaverTestCase(TestCase):
"""
Base class for Paver test cases.
"""
def setUp(self):
super(PaverTestCase, self).setUp()
# Show full length diffs upon test failure
... | agpl-3.0 | 7,374,551,773,395,588,000 | 26.236364 | 68 | 0.61482 | false |
ashwinr64/android_kernel_cyanogen_msm8916 | scripts/gcc-wrapper.py | 580 | 3524 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2011-2012, The Linux Foundation. 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 th... | gpl-2.0 | 9,073,482,200,690,589,000 | 33.213592 | 97 | 0.661748 | false |
bartTC/django-frontendadmin | example_project/settings.py | 2 | 3743 | import sys, os
# Quick hack to put frontendadmin from the parent directory into pythonpath
# If this is not working correctly, uncomment these lines and put
# frontendadmin manually into pythonpath.
sys.path.append(
os.path.abspath(
os.path.normpath('%s/../' % os.path.dirname(__file__))
)
)
PROJECT_RO... | bsd-3-clause | 3,882,993,619,624,466,400 | 32.419643 | 108 | 0.707454 | false |
panoptes/POCS | tests/test_sensors.py | 1 | 1867 | # Test sensors.py ability to read from two sensor boards.
import pytest
import responses
from panoptes.pocs.sensor import remote
from panoptes.pocs.sensor import power
from panoptes.utils import error
@pytest.fixture
def remote_response():
return {
"data": {
"source": "sleeping",
... | mit | -5,792,943,591,094,932,000 | 25.295775 | 85 | 0.660953 | false |
ivotron/teuthology | setup.py | 1 | 3300 | from setuptools import setup, find_packages
import re
module_file = open("teuthology/__init__.py").read()
metadata = dict(re.findall(r"__([a-z]+)__\s*=\s*['\"]([^'\"]*)['\"]", module_file))
long_description = open('README.rst').read()
setup(
name='teuthology',
version=metadata['version'],
packages=find_pa... | mit | 8,979,649,954,574,862,000 | 38.285714 | 109 | 0.505758 | false |
dbremner/bite-project | deps/gdata-python-client/samples/apps/marketplace_sample/atom/mock_http_core.py | 102 | 12008 | #!/usr/bin/env python
#
# Copyright (C) 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 ... | apache-2.0 | -4,061,404,706,930,169,300 | 36.176471 | 78 | 0.676133 | false |
XuezheMax/NeuroNLP | experiments/bi-maxru-cnn.py | 1 | 25603 | __author__ = 'max'
"""
Implementation of Bi-directional TARU-CNNs-CRF model for sequence labeling.
"""
import time
import sys
import argparse
import numpy as np
import lasagne
import theano
import theano.tensor as T
from lasagne.layers import Gate
from lasagne import nonlinearities
from lasagne.updates import nestero... | mit | -5,089,704,847,443,721,000 | 52.675052 | 121 | 0.622427 | false |
Juniper/nova | nova/tests/unit/virt/xenapi/test_vmops.py | 2 | 98803 | # Copyright 2013 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 requ... | apache-2.0 | 6,989,269,673,832,369,000 | 46.296793 | 79 | 0.576885 | false |
Peratham/tweater | py/nltk/cluster/kmeans.py | 4 | 7550 | # Natural Language Toolkit: K-Means Clusterer
#
# Copyright (C) 2001-2011 NLTK Project
# Author: Trevor Cohn <tacohn@cs.mu.oz.au>
# URL: <http://www.nltk.org/>
# For license information, see LICENSE.TXT
import numpy
import random
from api import *
from util import *
class KMeansClusterer(VectorSpaceClusterer):
"... | gpl-3.0 | -4,639,814,020,480,307,000 | 36.192118 | 88 | 0.577483 | false |
supersam654/gatech-maintenance-requests | scripts/summarizer.py | 1 | 2330 | #!/usr/bin/env python
import json
from profanity import profanity
# Too many false positives with "cockroaches".
profanity.get_words()
profanity.words.remove('cock')
import db
# note that this file is relative to the root of the project, not this file.
OUT_FILE = 'site/frontend_data/summaries.json'
def summarize_by... | mit | 3,697,429,113,103,372,000 | 21.843137 | 76 | 0.507296 | false |
jonasrogert/Quadcopter | visualization/rotating_cube.py | 1 | 7071 | """
Simulation of a rotating 3D Cube
Developed by Leonel Machava <leonelmachava@gmail.com>
http://codeNtronix.com
"""
import sys, math, pygame
from operator import itemgetter
import sys
import os.path
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from quad.motor import calculate_dc_for... | gpl-2.0 | 3,148,454,834,662,321,700 | 33.179104 | 120 | 0.479706 | false |
eric-stanley/NewsBlur | utils/feedparser.py | 2 | 155430 | """Universal feed parser
Handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds
Visit https://code.google.com/p/feedparser/ for the latest version
Visit http://packages.python.org/feedparser/ for the latest documentation
Required: Python 2.4 or later
Recommended: iconv_codec <http://cjkpython.i18n.org... | mit | 7,976,654,957,782,292,000 | 39.935212 | 208 | 0.579315 | false |
pyoceans/python-seawater | seawater/eos80.py | 2 | 30335 | # -*- coding: utf-8 -*-
from __future__ import division, absolute_import
import numpy as np
from .constants import deg2rad, earth_radius
from .library import T90conv, T68conv, salrt, salrp, sals, seck, smow
__all__ = ['adtg',
'alpha',
'aonb',
'beta',
'dpth',
... | mit | 6,212,604,722,398,670,000 | 30.139774 | 79 | 0.502426 | false |
TravisCG/SI_scripts | deepsnvres2vcf.py | 1 | 4185 | #!/usr/bin/python
"""
Read the deepSNV res (the concatenated one, where the sample name is the first column)
And convert it to VCF, to feed it into Vagrent
"""
import sys
import math
import decimal
class Vari:
def __init__(self):
self.chr = ""
self.pos = 0
self.ref = ""
self.alt = ""
self.pval = lis... | gpl-3.0 | -6,567,122,842,365,030,000 | 26.175325 | 124 | 0.620072 | false |
digimarc/django | django/contrib/auth/admin.py | 11 | 8644 | from django.conf import settings
from django.conf.urls import url
from django.contrib import admin, messages
from django.contrib.admin.options import IS_POPUP_VAR
from django.contrib.admin.utils import unquote
from django.contrib.auth import update_session_auth_hash
from django.contrib.auth.forms import (
AdminPass... | bsd-3-clause | 3,071,114,951,674,803,700 | 42.004975 | 126 | 0.602615 | false |
toastdriven/eliteracing | courses/migrations/0002_initial_courses.py | 1 | 5357 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import json
import os
from django.db import migrations, models
def create_course(Commander, Course, data):
cmdr, _ = Commander.objects.get_or_create(
name=data['created_by']
)
course, _ = Course.objects.get_or_create(
title=... | bsd-3-clause | -7,682,332,771,542,125,000 | 36.468531 | 78 | 0.536121 | false |
mbiciunas/nix | src/cli_nix/cli_tags.py | 1 | 1531 | # Nix
# Copyright (c) 2017 Mark Biciunas.
#
# 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 distrib... | gpl-3.0 | -2,041,788,099,680,199,400 | 29.62 | 77 | 0.707381 | false |
enzochiau/bitbucketcli | bitbucket/groups.py | 1 | 11015 | # Copyright (c) 2013 Yogesh Panchal, yspanchal@gmail.com
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law ... | apache-2.0 | -8,901,836,845,055,799,000 | 27.986842 | 80 | 0.525828 | false |
hellfish2/treeio | account/cron.py | 3 | 3417 | # encoding: utf-8
# Copyright 2011 Tree.io Limited
# This file is part of Treeio.
# License www.tree.io/license
"""
Account cron jobs
"""
import codecs
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
from django.db.models import Q
from django.utils.html import strip_tags... | mit | 5,799,773,461,113,731,000 | 38.275862 | 125 | 0.558092 | false |
sushramesh/lwc | lib/python2.7/site-packages/django/template/utils.py | 308 | 4736 | import os
import warnings
from collections import Counter, OrderedDict
from django.apps import apps
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.utils import lru_cache
from django.utils._os import upath
from django.utils.deprecation import RemovedInDjango110Warni... | mit | 5,861,456,639,990,135,000 | 35.713178 | 83 | 0.587416 | false |
FireWRT/OpenWrt-Firefly-Libraries | staging_dir/target-mipsel_1004kc+dsp_uClibc-0.9.33.2/usr/lib/python2.7/test/test_fileinput.py | 34 | 9590 | '''
Tests for fileinput module.
Nick Mathewson
'''
import unittest
from test.test_support import verbose, TESTFN, run_unittest
from test.test_support import unlink as safe_unlink
import sys, re
from StringIO import StringIO
from fileinput import FileInput, hook_encoded
# The fileinput module has 2 interfaces: the Fil... | gpl-2.0 | -6,601,002,106,458,320,000 | 35.052632 | 84 | 0.535349 | false |
ranjinidas/Axelrod | axelrod/tests/unit/test_calculator.py | 2 | 1308 | """Tests for calculator strategies."""
import random
import axelrod
from .test_player import TestPlayer
C, D = axelrod.Actions.C, axelrod.Actions.D
class TestCalculator(TestPlayer):
name = "Calculator"
player = axelrod.Calculator
expected_classifier = {
'memory_depth': float('inf'),
'... | mit | 8,113,478,726,780,506,000 | 27.434783 | 84 | 0.54052 | false |
TopOPPS/salesforce_user_group_April_3_2014 | demo/views.py | 1 | 2691 | from django.shortcuts import render
from django.views.decorators.csrf import csrf_exempt
from django.conf import settings
from simple_salesforce import Salesforce
import base64
import hashlib
import hmac
import json
@csrf_exempt
def index(request):
"""
When this view is loaded in a canvas app, Salesforce send... | mit | 3,615,528,226,043,104,000 | 35.876712 | 119 | 0.66518 | false |
haoyuchen1992/osf.io | website/addons/badges/views/crud.py | 59 | 2323 | # -*- coding: utf-8 -*-
import httplib as http
from flask import request
from framework.exceptions import HTTPError
from website.util.sanitize import escape_html
from website.project.decorators import ( # noqa
must_be_contributor_or_public,
must_have_addon, must_not_be_registration,
must_be_valid_projec... | apache-2.0 | -540,898,336,710,131,840 | 31.71831 | 97 | 0.646578 | false |
shujaatak/UAV_MissionPlanner | Lib/posixpath.py | 145 | 13182 | """Common operations on Posix pathnames.
Instead of importing this module directly, import os and refer to
this module as os.path. The "os.path" name is an alias for this
module on Posix systems; on other systems (e.g. Mac, Windows),
os.path provides the same operations in a manner specific to that
platform, and is a... | gpl-2.0 | -6,154,683,424,203,740,000 | 30.763855 | 79 | 0.620998 | false |
justajeffy/arsenalsuite | python/apps/farm_stats/reportselectordialog.py | 11 | 1246 |
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.uic import *
from blur.Stonegui import *
from farmreport import Types
from reportwindow import *
ReportWindows = []
class ReportSelectorDialog(QDialog):
def __init__(self,parent=None):
QDialog.__init__(self,parent)
loadUi("reportselectordialogui.ui... | gpl-2.0 | 1,915,323,154,523,117,800 | 28.690476 | 91 | 0.717496 | false |
tcatut/plugin.video.youtube | resources/lib/youtube/helper/yt_login.py | 1 | 4617 | __author__ = 'bromix'
import time
def process(mode, provider, context, re_match, needs_tv_login=True):
def _do_login(_for_tv=False):
_client = provider.get_client(context)
json_data = {}
if _for_tv:
json_data = _client.generate_user_code_tv()
pass
else:
... | gpl-2.0 | 1,484,254,763,591,562,800 | 37.798319 | 113 | 0.546459 | false |
Kmaschta/django-algolia | algolia/tests/test_backends.py | 1 | 2099 | # -*- coding: utf-8 -*-
import pytest
from django.core.exceptions import ImproperlyConfigured
from algolia import AlgoliaIndexer
@pytest.fixture()
def configs_success():
return {
'API_KEY': 'some-api-key',
'API_SECRET': 'some-api-secret',
}
@pytest.fixture()
def configs_wrong():
return... | bsd-2-clause | 718,247,559,606,175,200 | 23.988095 | 81 | 0.679371 | false |
minhphung171093/GreenERP_V9 | openerp/addons/website_portal_sale/controllers/main.py | 17 | 2084 | # -*- coding: utf-8 -*-
import datetime
from openerp import http
from openerp.http import request
from openerp.addons.website_portal.controllers.main import website_account
class website_account(website_account):
@http.route(['/my/home'], type='http', auth="user", website=True)
def account(self, **kw):
... | gpl-3.0 | -8,546,564,880,070,324,000 | 36.890909 | 114 | 0.56142 | false |
davidobrien1985/ansible-modules-core | packaging/os/rpm_key.py | 43 | 7357 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Ansible module to import third party repo keys to your rpm db
# (c) 2013, Héctor Acosta <hector.acosta@gazzang.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 ... | gpl-3.0 | -3,094,175,830,626,867,700 | 34.028571 | 140 | 0.590266 | false |
Russell-IO/ansible | lib/ansible/module_utils/six/__init__.py | 60 | 31144 | # This code is strewn with things that are not defined on Python3 (unicode,
# long, etc) but they are all shielded by version checks. This is also an
# upstream vendored file that we're not going to modify on our own
# pylint: disable=undefined-variable
# Copyright (c) 2010-2017 Benjamin Peterson
#
# Permission is he... | gpl-3.0 | 4,554,956,771,399,608,300 | 33.758929 | 98 | 0.630587 | false |
AOKP/external_chromium_org | tools/checkbins/checkbins.py | 77 | 3798 | #!/usr/bin/env python
# Copyright (c) 2011 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.
"""Makes sure that all EXE and DLL files in the provided directory were built
correctly.
In essense it runs a subset of BinScope t... | bsd-3-clause | -3,745,078,796,262,568,000 | 33.844037 | 77 | 0.657188 | false |
bluevoda/BloggyBlog | lib/python3.4/site-packages/django/contrib/gis/geos/prototypes/errcheck.py | 486 | 2954 | """
Error checking functions for GEOS ctypes prototype functions.
"""
from ctypes import c_void_p, string_at
from django.contrib.gis.geos.error import GEOSException
from django.contrib.gis.geos.libgeos import GEOSFuncFactory
# Getting the `free` routine used to free the memory allocated for
# string pointers returne... | gpl-3.0 | 1,147,971,068,619,696,900 | 31.108696 | 118 | 0.685511 | false |
abhiQmar/servo | tests/wpt/web-platform-tests/webdriver/support/keys.py | 41 | 17652 | # Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | mpl-2.0 | -434,243,659,415,594,240 | 20.738916 | 83 | 0.397179 | false |
azaghal/ansible | lib/ansible/utils/vars.py | 7 | 10177 | # (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 | 2,120,316,802,931,058,700 | 33.498305 | 152 | 0.627199 | false |
sonali0901/zulip | zerver/tests/test_tornado.py | 9 | 11648 | # -*- coding: utf-8 -*-
"""WebSocketBaseTestCase is based on combination of Tornado
and Django test systems. It require to use decorator '@gen.coroutine'
for each test case method( see documentation: http://www.tornadoweb.org/en/stable/testing.html).
It requires implementation of 'get_app' method to initialize tornado... | apache-2.0 | -7,220,742,661,340,431,000 | 38.754266 | 113 | 0.557263 | false |
Automatic/paramiko | paramiko/compress.py | 62 | 1245 | # Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com>
#
# This file is part of paramiko.
#
# Paramiko is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (a... | lgpl-2.1 | -7,943,614,463,770,599,000 | 30.923077 | 79 | 0.714859 | false |
newsters/coinrail | balance.py | 1 | 1155 | """
잔고확인
"""
import base64
import simplejson as json
import hashlib
import hmac
import httplib2
import time
ACCESS_KEY = ''
SECRET_KEY = ''
def get_encoded_payload(payload):
dumped_json = json.dumps(payload)
encoded_json = base64.b64encode(dumped_json)
return encoded_json
def get_signature(encoded_payload, sec... | mit | -7,462,489,045,805,358,000 | 22.916667 | 86 | 0.699215 | false |
Lekensteyn/buildbot | master/buildbot/test/unit/test_data_workers.py | 9 | 9322 | # This file is part of Buildbot. Buildbot 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, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | gpl-2.0 | -7,803,246,686,314,786,000 | 33.14652 | 93 | 0.604699 | false |
Nihn/Diamond-1 | src/collectors/vmsfs/vmsfs.py | 69 | 3023 | # coding=utf-8
"""
Uses /sys/fs/vmsfs to collect host-global data on VMS memory usage
#### Dependencies
* /sys/fs/vmsfs <- vmsfs package, vmsfs mounted
"""
import diamond.collector
import os
class VMSFSCollector(diamond.collector.Collector):
SYSFS = '/sys/fs/vmsfs'
VMSFS_STATS = {
'resident': ... | mit | -8,520,015,248,296,604,000 | 31.159574 | 79 | 0.565994 | false |
openshift/openshift-tools | openshift/installer/vendored/openshift-ansible-3.11.28-1/roles/lib_utils/filter_plugins/openshift_aws_filters.py | 16 | 3743 | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Custom filters for use in openshift_aws
'''
from ansible import errors
class FilterModule(object):
''' Custom ansible filters for use by openshift_aws role'''
@staticmethod
def subnet_count_list(size, subnets):
"""This function will modify create a l... | apache-2.0 | 7,615,438,880,413,180,000 | 33.981308 | 108 | 0.562917 | false |
konstruktoid/ansible-upstream | lib/ansible/modules/network/nxos/nxos_ospf.py | 100 | 4148 | #!/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 | 8,295,079,242,804,823,000 | 25.935065 | 84 | 0.651639 | false |
djgagne/scikit-learn | sklearn/feature_extraction/stop_words.py | 290 | 3252 | # This list of English stop words is taken from the "Glasgow Information
# Retrieval Group". The original list can be found at
# http://ir.dcs.gla.ac.uk/resources/linguistic_utils/stop_words
ENGLISH_STOP_WORDS = frozenset([
"a", "about", "above", "across", "after", "afterwards", "again", "against",
"all", "almo... | bsd-3-clause | -8,490,368,202,515,738,000 | 71.266667 | 79 | 0.542435 | false |
2013Commons/HUE-SHARK | desktop/core/ext-py/Django-1.2.3/build/lib.linux-i686-2.7/django/contrib/gis/tests/layermap/models.py | 161 | 2179 | from django.contrib.gis.db import models
class State(models.Model):
name = models.CharField(max_length=20)
objects = models.GeoManager()
class County(models.Model):
name = models.CharField(max_length=25)
state = models.ForeignKey(State)
mpoly = models.MultiPolygonField(srid=4269) # Multipolygon in... | apache-2.0 | -529,606,169,908,596,160 | 32.015152 | 135 | 0.62827 | false |
soldag/home-assistant | homeassistant/components/cloud/__init__.py | 9 | 7067 | """Component to integrate the Home Assistant cloud."""
from hass_nabucasa import Cloud
import voluptuous as vol
from homeassistant.components.alexa import const as alexa_const
from homeassistant.components.google_assistant import const as ga_c
from homeassistant.const import (
CONF_MODE,
CONF_NAME,
CONF_RE... | apache-2.0 | 7,197,893,425,387,515,000 | 29.07234 | 83 | 0.662516 | false |
duki994/SM-G850_Kernel_LP | android-toolchain/share/gdb/python/gdb/command/prompt.py | 68 | 2079 | # Extended prompt.
# Copyright (C) 2011-2015 Free Software Foundation, 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 License, or
# (at your option) any later vers... | gpl-2.0 | -5,432,602,447,019,330,000 | 30.984615 | 72 | 0.644541 | 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.