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 |
|---|---|---|---|---|---|---|---|---|---|---|
ldgarcia/django-allauth | allauth/socialaccount/providers/vk/provider.py | 65 | 1616 | from allauth.socialaccount import providers
from allauth.socialaccount.providers.base import ProviderAccount
from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider
from allauth.socialaccount import app_settings
class VKAccount(ProviderAccount):
def get_profile_url(self):
return self.ac... | mit | 225,250,552,841,582,700 | 30.686275 | 74 | 0.62995 | false |
adviti/melange | thirdparty/google_appengine/lib/django_0_96/django/utils/feedgenerator.py | 32 | 11349 | """
Syndication feed generation library -- used for generating RSS, etc.
Sample usage:
>>> feed = feedgenerator.Rss201rev2Feed(
... title=u"Poynter E-Media Tidbits",
... link=u"http://www.poynter.org/column.asp?id=31",
... description=u"A group weblog by the sharpest minds in online media/journalism/publi... | apache-2.0 | -1,065,506,411,078,544,900 | 40.571429 | 99 | 0.588774 | false |
chidea/GoPythonDLLWrapper | bin/lib/wsgiref/util.py | 119 | 5634 | """Miscellaneous WSGI-related Utilities"""
import posixpath
__all__ = [
'FileWrapper', 'guess_scheme', 'application_uri', 'request_uri',
'shift_path_info', 'setup_testing_defaults',
]
class FileWrapper:
"""Wrapper to convert file-like objects to iterables"""
def __init__(self, filelike, blksize=819... | mit | -5,228,280,960,462,081,000 | 33.145455 | 82 | 0.634363 | false |
apigee/edx-platform | common/djangoapps/student/migrations/0031_drop_student_anonymoususerid_temp_archive.py | 5 | 15979 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
"Write your forwards methods here."
# Note: Remember to use orm['appname.ModelName'] rather than "from appname.mo... | agpl-3.0 | 7,150,652,835,225,078,000 | 84.908602 | 182 | 0.550347 | false |
codrut3/tensorflow | tensorflow/compiler/tests/reduce_ops_test.py | 19 | 5418 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 5,810,733,029,646,663,000 | 37.425532 | 80 | 0.63289 | false |
johndpope/tensorflow | tensorflow/compiler/tests/clustering_test.py | 123 | 3878 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 6,364,113,217,970,979,000 | 36.650485 | 80 | 0.648272 | false |
s1lvester/heuteinmannheim | heuteinma.py | 1 | 6121 | import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), "lib"))
import facebook
import websites
import feeds
#import beachstatus
from event import EventVault
import logging
import datetime
import time
import locale
locale.setlocale(locale.LC_TIME, '') # locale for date, time an the infamous germ... | mit | 5,949,435,641,609,201,000 | 42.685714 | 204 | 0.483486 | false |
fhools/doom3.gpl | neo/sys/gllog/logfunc.py | 62 | 2211 | #!/usr/bin/env python
# generate logging code
# this requires an analysis of the parameters for verbose and do actual call
import sys, string, re
from read import read_gl
def do_logfunc(f_in, f_out):
(gl, wgl, glX) = read_gl(f_in)
for l in (gl, glX):
for t in l:
# process ret type to strip trailing spaces
... | gpl-3.0 | -7,219,097,463,339,814,000 | 28.48 | 107 | 0.5346 | false |
ghtmtt/QGIS | tests/src/python/test_qgsrange.py | 23 | 23316 | # -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsRange
.. note:: 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.
"""
__author_... | gpl-2.0 | 2,931,418,365,467,184,000 | 50.243956 | 104 | 0.648868 | false |
AlCutter/certificate-transparency | python/ct/client/async_log_client_test.py | 8 | 16485 | #!/usr/bin/env trial
import gflags
import json
import mock
import sys
import urlparse
from ct.client import log_client
from ct.client import async_log_client
from ct.client import log_client_test_util as test_util
from ct.client.db import database
from twisted.internet import defer
from twisted.internet import task
fr... | apache-2.0 | 2,579,803,520,188,143,000 | 41.161125 | 81 | 0.617228 | false |
GuLinux/PySpectrum | import_image.py | 1 | 5892 | from pyui.import_image import Ui_ImportImage
from PyQt5.QtWidgets import QWidget, QToolBar, QDialog, QDialogButtonBox, QProgressDialog, QMessageBox
from PyQt5.QtGui import QIcon
from PyQt5.QtCore import Qt, QCoreApplication
from qmathplotwidget import QMathPlotWidget, QImPlotWidget
import matplotlib.pyplot as plt
from ... | gpl-3.0 | -6,155,929,002,361,670,000 | 50.692982 | 280 | 0.672098 | false |
h-hirokawa/swampdragon | swampdragon/tests/test_selfpub_model.py | 1 | 3350 | from ..route_handler import ModelRouter
from ..pubsub_providers.base_provider import PUBACTIONS
from .dragon_test_case import DragonTestCase
from .models import FooSelfPub, BarSelfPub
from .serializers import FooSelfPubSerializer, BarSelfPubSerializer
from datetime import datetime
class FooModelRouter(ModelRouter):
... | bsd-3-clause | -1,348,968,510,869,027,600 | 37.953488 | 80 | 0.668955 | false |
Kalyzee/edx-platform | common/djangoapps/xblock_django/tests/test_user_service.py | 132 | 3992 | """
Tests for the DjangoXBlockUserService.
"""
from django.test import TestCase
from xblock_django.user_service import (
DjangoXBlockUserService,
ATTR_KEY_IS_AUTHENTICATED,
ATTR_KEY_USER_ID,
ATTR_KEY_USERNAME,
ATTR_KEY_USER_IS_STAFF,
)
from student.models import anonymous_id_for_user
from student.te... | agpl-3.0 | -8,796,746,495,746,789,000 | 39.323232 | 129 | 0.667836 | false |
redhat-openstack/ironic | ironic/tests/conf_fixture.py | 11 | 1431 | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# 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 ... | apache-2.0 | 3,040,773,665,392,038,000 | 34.775 | 78 | 0.701607 | false |
MingdaZhou/gnuradio | gr-vocoder/examples/codec2_audio_loopback.py | 47 | 1553 | #!/usr/bin/env python
#
# Copyright 2005,2007,2011 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your ... | gpl-3.0 | -1,516,148,865,656,601,000 | 32.042553 | 70 | 0.710882 | false |
AakashRaina/radpress | radpress/urls.py | 3 | 1287 | from django.conf.urls import patterns, url
from radpress.views import (
ArticleArchiveView, ArticleDetailView, ArticleListView, PreviewView,
PageDetailView, SearchView, ZenModeView, ZenModeUpdateView)
from radpress.feeds import ArticleFeed
urlpatterns = patterns(
'',
url(r'^$',
view=ArticleLis... | mit | 8,750,976,305,379,518,000 | 25.265306 | 72 | 0.587413 | false |
admcrae/tensorflow | tensorflow/examples/adding_an_op/zero_out_2_test.py | 111 | 1988 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 3,552,741,396,103,948,000 | 32.694915 | 93 | 0.634809 | false |
mszewczy/odoo | addons/board/__openerp__.py | 261 | 1647 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2010-2012 OpenERP s.a. (<http://openerp.com>).
#
# This program is free software: you ca... | agpl-3.0 | 4,224,184,009,156,844,000 | 35.6 | 78 | 0.576806 | false |
ecino/compassion-modules | thankyou_letters/__manifest__.py | 2 | 2325 | # -*- coding: utf-8 -*-
##############################################################################
#
# ______ Releasing children from poverty _
# / ____/___ ____ ___ ____ ____ ___________(_)___ ____
# / / / __ \/ __ `__ \/ __ \/ __ `/ ___/ ___/ / __ \/ __ \
# / /___/ /_/ / / / / / / /_/... | agpl-3.0 | -7,162,171,920,646,610,000 | 37.114754 | 78 | 0.504086 | false |
Hazelsuko07/17WarmingUp | py3.6/lib/python3.6/site-packages/pip/operations/check.py | 342 | 1590 |
def check_requirements(installed_dists):
missing_reqs_dict = {}
incompatible_reqs_dict = {}
for dist in installed_dists:
key = '%s==%s' % (dist.project_name, dist.version)
missing_reqs = list(get_missing_reqs(dist, installed_dists))
if missing_reqs:
missing_reqs_dict[... | mit | -401,628,731,427,761,700 | 31.44898 | 77 | 0.666038 | false |
DefyVentures/edx-platform | lms/djangoapps/survey/models.py | 81 | 7589 | """
Models to support Course Surveys feature
"""
import logging
from lxml import etree
from collections import OrderedDict
from django.db import models
from student.models import User
from django.core.exceptions import ValidationError
from model_utils.models import TimeStampedModel
from survey.exceptions import Surv... | agpl-3.0 | 4,452,996,037,420,719,600 | 32.879464 | 106 | 0.617868 | false |
INM-6/python-neo | neo/io/neuralynxio_v1.py | 2 | 105289 | """
Class for reading data from Neuralynx files.
This IO supports NCS, NEV and NSE file formats.
This module is an older implementation with old neo.io API.
A new class NeuralynxIO compunded by NeuralynxRawIO and BaseFromIO
superseed this one.
Depends on: numpy
Supported: Read
Author: Julia Sprenger, Carlos Canova... | bsd-3-clause | 3,845,068,956,470,738,400 | 42.778378 | 97 | 0.497811 | false |
captainpete/rethinkdb | external/v8_3.30.33.16/build/landmines.py | 49 | 4879 | #!/usr/bin/env python
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
This script runs every build as a hook. If it detects that the build should
be clobbered, it will touch the file <build_dir>/.lan... | agpl-3.0 | 3,808,867,847,769,036,000 | 34.100719 | 79 | 0.695429 | false |
dhutchis/accumulo | test/system/bench/cloudstone5/cloudstone5.py | 7 | 1070 | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | apache-2.0 | -8,368,251,239,055,802,000 | 35.896552 | 74 | 0.760748 | false |
blamedcloud/AISuite | weight_heuristic.py | 2 | 2291 | #!/usr/bin/env python
#weight_heuristic.py
import random
from alphabeta import UPPER_BOUND
from alphabeta import LOWER_BOUND
class WeightHeuristic(object):
def __init__(self, weight_m):
self.weights = weight_m
self.wins = 0
self.losses = 0
def __call__(self, game_state):
value = 0
state = self.parse(gam... | mit | -8,009,684,653,297,383,000 | 23.634409 | 118 | 0.615452 | false |
bkirui/odoo | addons/account/company.py | 384 | 2814 | # -*- 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 | -2,820,190,051,052,536,000 | 54.176471 | 610 | 0.673063 | false |
jaapz/werkzeug | examples/couchy/views.py | 44 | 1999 | from werkzeug.utils import redirect
from werkzeug.exceptions import NotFound
from couchy.utils import render_template, expose, \
validate_url, url_for, Pagination
from couchy.models import URL
@expose('/')
def new(request):
error = url = ''
if request.method == 'POST':
url = request.form.get('url... | bsd-3-clause | 8,268,488,097,135,613,000 | 31.770492 | 107 | 0.605303 | false |
nesi/easybuild-framework | easybuild/framework/easyconfig/constants.py | 6 | 2350 | #
# Copyright 2013-2015 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# the Hercules foundation (http... | gpl-2.0 | -7,266,035,335,851,191,000 | 35.71875 | 107 | 0.714894 | false |
bbc/kamaelia | Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/File/WholeFileWriter.py | 9 | 2403 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1)
#
# (1) Kamaelia Contributors are listed in the AUTHORS file and at
# http://www.kamaelia.org/AUTHORS - please extend this file,
# not this notice.
#
# Licensed under the Apache License... | apache-2.0 | 7,747,922,741,827,870,000 | 30.618421 | 78 | 0.611319 | false |
polojacky/ehfpi | ehf/rest_framework/tests/test_nullable_fields.py | 16 | 1069 | from django.core.urlresolvers import reverse
from rest_framework.compat import patterns, url
from rest_framework.test import APITestCase
from rest_framework.tests.models import NullableForeignKeySource
from rest_framework.tests.serializers import NullableFKSourceSerializer
from rest_framework.tests.views import Nullab... | apache-2.0 | 1,062,316,351,393,000,200 | 34.633333 | 92 | 0.744621 | false |
tsdmgz/ansible | lib/ansible/utils/module_docs_fragments/aci.py | 36 | 2382 | # -*- coding: utf-8 -*-
# Copyright 2017 Dag Wieers <dag@wieers.com>
# Copyright 2017 Swetha Chunduri (@schunduri)
# This file is part of Ansible by Red Hat
#
# 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 Fo... | gpl-3.0 | 4,123,078,530,955,032,000 | 33.028571 | 113 | 0.716205 | false |
aabbox/kbengine | kbe/src/lib/python/Lib/test/test_asyncio/test_windows_events.py | 60 | 4592 | import os
import sys
import unittest
if sys.platform != 'win32':
raise unittest.SkipTest('Windows only')
import _winapi
import asyncio
from asyncio import _overlapped
from asyncio import test_utils
from asyncio import windows_events
class UpperProto(asyncio.Protocol):
def __init__(self):
self.buf =... | lgpl-3.0 | -759,867,738,910,190,500 | 31.567376 | 79 | 0.61324 | false |
grlee77/scipy | scipy/optimize/_lsq/trf.py | 21 | 19479 | """Trust Region Reflective algorithm for least-squares optimization.
The algorithm is based on ideas from paper [STIR]_. The main idea is to
account for the presence of the bounds by appropriate scaling of the variables (or,
equivalently, changing a trust-region shape). Let's introduce a vector v:
| ub[i] ... | bsd-3-clause | -166,482,030,192,741,440 | 33.783929 | 83 | 0.581703 | false |
adlius/osf.io | api/base/exceptions.py | 2 | 12106 | from past.builtins import basestring
from rest_framework import status as http_status
from django.utils.translation import ugettext_lazy as _
from rest_framework import status
from rest_framework.exceptions import APIException, AuthenticationFailed, ErrorDetail
def get_resource_object_member(error_key, context):
... | apache-2.0 | -4,940,389,085,349,513,000 | 38.305195 | 200 | 0.677515 | false |
fosfataza/protwis | common/sequence_signature.py | 1 | 29836 | """
A module for generating sequence signatures for the given two sets of proteins.
"""
from django.conf import settings
from django.core import exceptions
from alignment.functions import strip_html_tags, get_format_props
Alignment = getattr(__import__(
'common.alignment_' + settings.SITE_NAME,
fromlist=['Alig... | apache-2.0 | 4,413,995,730,283,294,700 | 41.320567 | 177 | 0.537572 | false |
anirudhSK/chromium | tools/perf/benchmarks/thread_times.py | 2 | 1721 | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry import test
from benchmarks import silk_flags
from measurements import thread_times
class ThreadTimesKeySilkCases(test.Test):
"""Measures ... | bsd-3-clause | -7,497,054,484,465,839,000 | 35.617021 | 77 | 0.765253 | false |
cmelange/ansible | lib/ansible/modules/system/aix_inittab.py | 26 | 7988 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2017, Joris Weijters <joris.weijters@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of... | gpl-3.0 | 3,695,662,398,566,407,700 | 30.698413 | 122 | 0.574236 | false |
wrigri/libcloud | libcloud/test/storage/test_oss.py | 11 | 36276 | # -*- 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 "Lice... | apache-2.0 | 1,451,032,568,254,711,600 | 40.164586 | 88 | 0.568191 | false |
dims/cinder | cinder/tests/unit/fake_vmem_client.py | 23 | 1779 | # Copyright 2014 Violin Memory, 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 requi... | apache-2.0 | -1,910,002,199,048,692,500 | 26.369231 | 78 | 0.697583 | false |
brianjimenez/lightdock | bin/simulation/lightdock_setup.py | 1 | 6309 | #!/usr/bin/env python
"""Before launching the LightDock simulation, a setup step is required.
This step parses the input PDB structures, calculates the minimum ellipsoid
containing each of them, calculates the swarms on the surface of the
receptor and populates each swarm with random coordinates for each glowworm's... | gpl-3.0 | -8,445,596,598,521,049,000 | 47.530769 | 119 | 0.613885 | false |
m1ck/bookadoptions | django/conf/locale/pl/formats.py | 238 | 1288 | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j E Y'
TIME_FORMAT = 'H:i:s'
DATETIME_FORMAT = 'j E Y H:i:s'
YEAR_MONTH_F... | bsd-3-clause | -9,150,665,608,630,431,000 | 33.783784 | 77 | 0.551671 | false |
whereismyjetpack/ansible | lib/ansible/plugins/connection/zone.py | 45 | 7978 | # Based on local.py (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# and chroot.py (c) 2013, Maykel Moya <mmoya@speedyrails.com>
# and jail.py (c) 2013, Michael Scherer <misc@zarb.org>
# (c) 2015, Dagobert Michelsen <dam@baltic-online.de>
# (c) 2015, Toshio Kuratomi <tkuratomi@ansible.com>
#
# This file ... | gpl-3.0 | 6,919,412,866,669,932,000 | 39.704082 | 121 | 0.614314 | false |
StanfordBioinformatics/loom | server/loomengine_server/core/settings.py | 2 | 14306 | # Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
import datetime
import json
import logging
import os
import random
import socket
import sys
import tempfile
import warnings
from django.core.exceptions import ValidationError
SESSION_... | agpl-3.0 | 4,712,104,880,341,630,000 | 34.149877 | 143 | 0.642038 | false |
senuido/stash-scanner | lib/ModsHelper.py | 1 | 3577 | import json
import re
from lib.ModFilter import ModFilterType
from lib.ModFilterGroup import PSEUDO_MODS
from lib.Utility import AppException
class ModsHelper:
MODS_FNAME = 'res\\mods.json'
MOD_TEXT_REGEX = re.compile('\(([^()]+)\)\s+(.*)')
def __init__(self):
self.mod_list = None
self.m... | gpl-3.0 | 3,681,077,305,719,443,500 | 29.322034 | 106 | 0.536763 | false |
jashworth-isb/cmonkey-python | test/util_test.py | 1 | 11520 | """util_test.py - test classes for util module
This file is part of cMonkey Python. Please see README and LICENSE for
more information and licensing details.
"""
import unittest
import util
import operator
import numpy as np
class DelimitedFileTest(unittest.TestCase): # pylint: disable-msg=R0904
"""Test class f... | lgpl-3.0 | -2,578,243,708,874,551,000 | 41.666667 | 81 | 0.608507 | false |
Srisai85/scipy | scipy/stats/tests/test_contingency.py | 126 | 5959 | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.testing import (run_module_suite, assert_equal, assert_array_equal,
assert_array_almost_equal, assert_approx_equal, assert_raises,
assert_allclose)
from scipy.special import xlogy
from scipy.stats.contingen... | bsd-3-clause | 1,608,764,446,934,120,400 | 28.5 | 82 | 0.549589 | false |
Lkhagvadelger/phantomjs | src/qt/qtwebkit/Tools/Scripts/webkitpy/tool/bot/patchanalysistask.py | 122 | 10361 | # Copyright (c) 2010 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 ... | bsd-3-clause | 375,294,841,708,857,340 | 39.952569 | 135 | 0.651868 | false |
baxter-cs/BaxterEPCSWeek1 | studentInfo.py | 1 | 1635 | def main():
students = [
Student("Larsson", 37),
Student("BonJovi", 55),
]
printHeader()
selection = getUserSelection()
if selection == 0:
printStudentsByAge(students)
elif selection == 1:
pass
elif selection == 2:
pass
else:
print "SELECTION NOT RECOGNIZED"
class Student:
d... | mit | -5,100,208,046,927,496,000 | 20.526316 | 79 | 0.670948 | false |
Slezhuk/ansible | lib/ansible/modules/notification/pushover.py | 36 | 3667 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2012, Jim Richardson <weaselkeeper@gmail.com>
# All rights reserved.
#
# 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 F... | gpl-3.0 | 1,811,475,203,637,493,800 | 28.813008 | 88 | 0.646578 | false |
jeffzheng1/tensorflow | tensorflow/python/ops/clip_ops.py | 17 | 10072 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -4,841,790,955,476,334,000 | 35.759124 | 80 | 0.662927 | false |
openplans/shareabouts-api | src/sa_api_v2/cors/south_migrations/0004__rename_originpermission_to_origin.py | 1 | 5202 | # -*- 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):
# Deleting model 'OriginPermission'
db.rename_table('cors_originpermission', 'cors_origin')
db.renam... | gpl-3.0 | -8,386,165,305,271,780,000 | 65.705128 | 187 | 0.564783 | false |
Teamxrtc/webrtc-streaming-node | third_party/webrtc/src/chromium/src/third_party/cython/src/Cython/Compiler/Naming.py | 93 | 5553 | #
# C naming conventions
#
#
# Prefixes for generating C names.
# Collected here to facilitate ensuring uniqueness.
#
pyrex_prefix = "__pyx_"
codewriter_temp_prefix = pyrex_prefix + "t_"
temp_prefix = u"__cyt_"
builtin_prefix = pyrex_prefix + "builtin_"
arg_prefix = pyrex_prefix + "arg_"
f... | mit | 8,775,358,642,645,349,000 | 36.77551 | 97 | 0.669008 | false |
buckett/sakai-gitflow | reference/library/src/webapp/editor/FCKeditor/editor/filemanager/connectors/py/fckoutput.py | 131 | 4042 | #!/usr/bin/env python
"""
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2010 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the "GPL")
http:... | apache-2.0 | 2,306,227,955,323,575,000 | 31.966387 | 208 | 0.644483 | false |
aerickson/ansible | lib/ansible/modules/cloud/openstack/os_network.py | 27 | 8686 | #!/usr/bin/python
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
# Copyright (c) 2013, Benno Joy <benno@ansible.com>
#
# This module is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either vers... | gpl-3.0 | -1,259,732,425,694,379,800 | 32.797665 | 91 | 0.608796 | false |
adishjain/youtube-dl | youtube_dl/extractor/parliamentliveuk.py | 179 | 1781 | from __future__ import unicode_literals
import re
from .common import InfoExtractor
class ParliamentLiveUKIE(InfoExtractor):
IE_NAME = 'parliamentlive.tv'
IE_DESC = 'UK parliament videos'
_VALID_URL = r'https?://www\.parliamentlive\.tv/Main/Player\.aspx\?(?:[^&]+&)*?meetingId=(?P<id>[0-9]+)'
_TEST ... | unlicense | -6,493,123,807,118,066,000 | 32.603774 | 108 | 0.515441 | false |
eckucukoglu/arm-linux-gnueabihf | arm-linux-gnueabihf/libc/usr/lib/python2.7/lib2to3/fixes/fix_operator.py | 326 | 3472 | """Fixer for operator functions.
operator.isCallable(obj) -> hasattr(obj, '__call__')
operator.sequenceIncludes(obj) -> operator.contains(obj)
operator.isSequenceType(obj) -> isinstance(obj, collections.Sequence)
operator.isMappingType(obj) -> isinstance(obj, collections.Mapping)
operator.isNumberType(obj) ... | gpl-2.0 | -3,357,940,651,782,782,500 | 35.166667 | 81 | 0.599366 | false |
openstack/swift | test/unit/common/ring/test_builder.py | 1 | 197289 | # Copyright (c) 2010-2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | apache-2.0 | 3,144,215,153,188,027,000 | 42.513233 | 79 | 0.482992 | false |
komsas/OpenUpgrade | addons/sale_crm/__init__.py | 353 | 1076 | # -*- 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 | -953,248,329,403,408,800 | 42.04 | 78 | 0.6171 | false |
mattvick/phantomjs | src/qt/qtwebkit/Tools/Scripts/webkitpy/common/watchlist/filenamepattern_unittest.py | 124 | 2557 | # Copyright (C) 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 ... | bsd-3-clause | -7,268,910,329,784,358,000 | 48.173077 | 77 | 0.757137 | false |
tudorvio/nova | nova/api/openstack/compute/plugins/v3/deferred_delete.py | 36 | 2841 | # Copyright 2011 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | apache-2.0 | -7,896,704,534,790,792,000 | 35.423077 | 79 | 0.687786 | false |
JASON0916/testrail-library | testrail_client/api/plan.py | 1 | 6164 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from base import TestRailAPIBase
class Plan(TestRailAPIBase):
"""
Use the following API methods to request details
... | mit | -6,673,403,322,345,974,000 | 45.69697 | 165 | 0.578034 | false |
iut-ibk/DynaMind-UrbanSim | 3rdparty/opus/src/urbansim/configs/dplcm_zone_estimation_config.py | 2 | 1198 | # Opus/UrbanSim urban simulation software.
# Copyright (C) 2005-2009 University of Washington
# See opus_core/LICENSE
from dplcm_estimation_config import dplcm_configuration as dplcm_gridcell_config
from estimation_zone_config import run_configuration as config
class dplcm_configuration(dplcm_gridcell_config):... | gpl-2.0 | -462,067,657,238,776,450 | 38 | 86 | 0.649416 | false |
transt/cloud-init-0.7.5 | cloudinit/distros/parsers/hosts.py | 8 | 3241 | # vi: ts=4 expandtab
#
# Copyright (C) 2012 Yahoo! Inc.
#
# Author: Joshua Harlow <harlowja@yahoo-inc.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3, as
# published by the Free Software Foundation.
#
# This... | gpl-3.0 | -6,904,120,220,140,626,000 | 34.228261 | 78 | 0.553224 | false |
mrunge/horizon | openstack_dashboard/dashboards/project/data_processing/jobs/workflows/launch.py | 14 | 16820 | # 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 the... | apache-2.0 | -9,050,693,190,965,560,000 | 35.25 | 79 | 0.575565 | false |
apiaryio/snowcrash | tools/gyp/pylib/gyp/xcode_emulation.py | 3 | 66631 | # Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
This module contains classes that help to emulate xcodebuild behavior on top of
other build systems, such as make and ninja.
"""
import copy
import gyp.common... | mit | -8,256,173,839,986,919,000 | 39.042668 | 191 | 0.662379 | false |
ewindisch/nova | nova/tests/api/openstack/compute/plugins/v3/test_user_data.py | 17 | 8671 | # Copyright 2012 OpenStack Foundation
# Copyright 2013 IBM Corp.
# 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/LIC... | apache-2.0 | 2,905,124,806,532,589,000 | 36.375 | 78 | 0.586092 | false |
imsparsh/python-for-android | python-build/python-libs/gdata/build/lib/gdata/docs/service.py | 133 | 22521 | #!/usr/bin/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 required b... | apache-2.0 | -2,228,777,188,269,581,000 | 36.472546 | 79 | 0.682208 | false |
thisisshi/cloud-custodian | tools/c7n_gcp/c7n_gcp/output.py | 2 | 6276 | # Copyright The Cloud Custodian Authors.
# SPDX-License-Identifier: Apache-2.0
"""
TODO: provider policy execution initialization for outputs
"""
import datetime
import logging
import time
try:
from google.cloud.storage import Bucket, Client as StorageClient
except ImportError:
Bucket, StorageClient = None,... | apache-2.0 | 7,073,328,727,557,018,000 | 33.295082 | 91 | 0.579031 | false |
tomspur/shedskin | shedskin/lib/socket.py | 6 | 2243 | # Copyright 2005-2011 Mark Dufour and contributors; License Expat (See LICENSE)
# model for module socket for shed skin
# from python 2.5.1 documentation
SHUT_RD=0
SHUT_WR=1
SHUT_RDWR=2
SOL_IP=0
SOL_SOCKET=1
SO_REUSEADDR=2
AI_PASSIVE=1
AF_UNIX=1
AF_INET=2
AF_INET6=10
IP_TOS=1
SOCK_STREAM=1
SOCK_DGRAM=2
SOMAXCO... | gpl-3.0 | 1,241,705,058,179,799,300 | 15.253623 | 79 | 0.620597 | false |
sbesson/openmicroscopy | components/tools/OmeroWeb/test/integration/test_thumbnails.py | 2 | 7336 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2016 University of Dundee & Open Microscopy Environment.
# All rights reserved.
#
# 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 Founda... | gpl-2.0 | -7,647,566,067,223,346,000 | 34.100478 | 77 | 0.582606 | false |
KublaikhanGeek/scrapy | scrapy/xlib/tx/endpoints.py | 164 | 41184 | # -*- test-case-name: twisted.internet.test.test_endpoints -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Implementations of L{IStreamServerEndpoint} and L{IStreamClientEndpoint} that
wrap the L{IReactorTCP}, L{IReactorSSL}, and L{IReactorUNIX} interfaces.
This also implements an exte... | bsd-3-clause | 7,499,918,760,542,452,000 | 31.453901 | 92 | 0.642264 | false |
j717273419/ibus | ibus/common.py | 6 | 6133 | # vim:set et sts=4 sw=4:
#
# ibus - The Input Bus
#
# Copyright (c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com>
# Copyright (c) 2007-2010 Red Hat, Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Sof... | lgpl-2.1 | -3,775,140,702,536,878,600 | 30.777202 | 98 | 0.624327 | false |
SanchayanMaity/gem5 | src/arch/x86/isa/insts/simd128/integer/data_reordering/shuffle.py | 91 | 3586 | # Copyright (c) 2007 The Hewlett-Packard Development Company
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implemen... | bsd-3-clause | 8,709,310,040,235,131,000 | 39.292135 | 72 | 0.737869 | false |
lukeiwanski/tensorflow | tensorflow/contrib/ffmpeg/decode_video_op_test.py | 31 | 2478 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -7,127,018,586,020,921,000 | 34.913043 | 80 | 0.656174 | false |
rbrito/pkg-youtube-dl | youtube_dl/extractor/ceskatelevize.py | 12 | 10657 | # coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..compat import (
compat_urllib_parse_unquote,
compat_urllib_parse_urlparse,
)
from ..utils import (
ExtractorError,
float_or_none,
sanitized_Request,
unescapeHTML,
update_url_query,
... | unlicense | -1,979,965,866,312,919,300 | 35.84083 | 173 | 0.498732 | false |
lsigithub/axxia_yocto_linux_4.1 | scripts/gdb/linux/symbols.py | 367 | 6324 | #
# gdb helper commands and functions for Linux kernel debugging
#
# load kernel and module symbols
#
# Copyright (c) Siemens AG, 2011-2013
#
# Authors:
# Jan Kiszka <jan.kiszka@siemens.com>
#
# This work is licensed under the terms of the GNU GPL version 2.
#
import gdb
import os
import re
import string
from linux... | gpl-2.0 | -3,188,376,766,379,216,400 | 34.728814 | 79 | 0.583017 | false |
stack-of-tasks/rbdlpy | tutorial/lib/python2.7/site-packages/OpenGLContext/shadow/volume.py | 2 | 12772 | """Shadow-volume implementation
A volume is cast by a light from an edgeset, it's
basically the volume of space which is shadowed by
the given edgeset/object.
"""
from OpenGLContext.arrays import *
from OpenGL.GL import *
import weakref
class Volume( object ):
"""A shadow-volume object
This object represents... | lgpl-3.0 | -8,386,678,043,707,955,000 | 37.472892 | 114 | 0.538522 | false |
teslaji/homebase | venv/HomeBase/lib/python2.7/site-packages/setuptools/command/bdist_rpm.py | 1049 | 1508 | import distutils.command.bdist_rpm as orig
class bdist_rpm(orig.bdist_rpm):
"""
Override the default bdist_rpm behavior to do the following:
1. Run egg_info to ensure the name and version are properly calculated.
2. Always run 'install' using --single-version-externally-managed to
disable eggs... | gpl-3.0 | 3,653,923,585,467,684,400 | 34.069767 | 75 | 0.580902 | false |
JacerOmri/PokemonGo-Bot-Desktop | pywin/Lib/threading.py | 26 | 47132 | """Thread module emulating a subset of Java's threading model."""
import sys as _sys
try:
import thread
except ImportError:
del _sys.modules[__name__]
raise
import warnings
from collections import deque as _deque
from itertools import count as _count
from time import time as _time, sleep as _sleep
from ... | mit | -2,244,524,759,658,020,000 | 34.652042 | 99 | 0.586141 | false |
kickstandproject/asterisk-testsuite-temporary | tests/channels/pjsip/publish/asterisk_event_mwi/mwi_sender.py | 5 | 1084 | #!/usr/bin/env python
'''
Copyright (C) 2014, Digium, Inc.
Mark Michelson <mmichelson@digium.com>
This program is free software, distributed under the terms of
the GNU General Public License Version 2.
'''
class MWISender(object):
'''Test module that updates MWI on the sending Asterisk server.
This reads te... | gpl-2.0 | 8,493,740,453,852,712,000 | 30.882353 | 75 | 0.610701 | false |
dreamhost/akanda-rug | akanda/rug/openstack/common/gettextutils.py | 2 | 1560 | # Copyright 2014 DreamHost, LLC
#
# Author: DreamHost, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | apache-2.0 | 5,463,567,517,911,340,000 | 30.2 | 78 | 0.737179 | false |
ohanar/PolyBoRi | pyroot/polybori/memusage.py | 1 | 1523 | import os
from sys import maxint
_proc_status = '/proc/%d/status' % os.getpid()
#_scale = {'kB': 1024.0, 'mB': 1024.0*1024.0,
# 'KB': 1024.0, 'MB': 1024.0*1024.0}
_scale = {'kB': 1, 'mB': 1024, 'gB': 1024 * 1024,
'KB': 1, 'MB': 1024, 'GB': 1024 * 1024}
def _VmB(VmKey):
'''Private.
'''
... | gpl-2.0 | 3,194,151,537,511,053,000 | 22.430769 | 54 | 0.544977 | false |
dnozay/lettuce | tests/integration/lib/Django-1.2.5/django/contrib/localflavor/kw/forms.py | 310 | 1988 | """
Kuwait-specific Form helpers
"""
import re
from datetime import date
from django.core.validators import EMPTY_VALUES
from django.forms import ValidationError
from django.forms.fields import Field, RegexField
from django.utils.translation import gettext as _
id_re = re.compile(r'^(?P<initial>\d{1})(?P<yy>\d\d)(?P<... | gpl-3.0 | 2,829,958,518,768,291,300 | 30.555556 | 111 | 0.617706 | false |
ecino/compassion-modules | mobile_app_connector/models/compassion_child_pictures.py | 2 | 1958 | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2018 Compassion CH (http://www.compassion.ch)
# Releasing children from poverty in Jesus' name
# @author: Emanuel Cino <ecino@compassion.ch>
#
# The licence is in the file __manifest__.py... | agpl-3.0 | -8,698,730,183,214,458,000 | 34.6 | 87 | 0.515322 | false |
dhp-denero/LibrERP | massive_category_change/wizard/wizard.py | 2 | 1662 | # -*- coding: utf-8 -*-
# Copyright 2012 Francesco OpenCode Apruzzese <f.apruzzese@andreacometa.it>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versi... | agpl-3.0 | -3,864,974,103,749,511,700 | 34.361702 | 81 | 0.679302 | false |
kustodian/ansible | lib/ansible/modules/network/avi/avi_cloudconnectoruser.py | 28 | 4856 | #!/usr/bin/python
#
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 17.1.1
#
# Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses... | gpl-3.0 | -6,427,750,039,231,484,000 | 31.15894 | 92 | 0.598641 | false |
sbkolate/sap_frappe_v6 | frappe/custom/doctype/custom_field/custom_field.py | 3 | 4659 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils import cstr
from frappe import _
import json
from frappe.model.document import Document
class CustomField(Document):
def autoname(self):
self.s... | mit | -1,475,740,865,231,869,000 | 32.517986 | 116 | 0.687916 | false |
firmlyjin/brython | www/tests/unittests/test/test_wsgiref.py | 25 | 21880 | from __future__ import nested_scopes # Backward compat for 2.1
from unittest import TestCase
from wsgiref.util import setup_testing_defaults
from wsgiref.headers import Headers
from wsgiref.handlers import BaseHandler, BaseCGIHandler
from wsgiref import util
from wsgiref.validate import validator
from wsgiref.simple... | bsd-3-clause | -107,042,960,670,653,100 | 33.671949 | 80 | 0.543605 | false |
ammaraskar/gunicorn | gunicorn/pidfile.py | 31 | 2291 | # -*- coding: utf-8 -
#
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.
from __future__ import with_statement
import errno
import os
import tempfile
class Pidfile(object):
"""\
Manage a PID file. If a specific name is provided
it and '"%s.oldpid" % ... | mit | -8,384,642,754,495,060,000 | 25.639535 | 80 | 0.494544 | false |
tweemeterjop/thug | thug/ActiveX/modules/ZenturiProgramCheckerAttack.py | 1 | 1826 |
import logging
log = logging.getLogger("Thug")
def DownloadFile(self, *arg):
log.ThugLogging.add_behavior_warn('[ZenturiProgramChecker ActiveX] Attack in DownloadFile function')
log.ThugLogging.add_behavior_warn('[ZenturiProgramChecker ActiveX] Downloading from %s' % (arg[0], ))
log.ThugLogging.add_beha... | gpl-2.0 | -1,450,692,979,710,471,200 | 47.052632 | 115 | 0.548193 | false |
herow/planning_qgis | python/plugins/processing/algs/qgis/PointsToPaths.py | 8 | 5638 | # -*- coding: utf-8 -*-
"""
***************************************************************************
PointsToPaths.py
---------------------
Date : April 2014
Copyright : (C) 2014 by Alexander Bruy
Email : alexander dot bruy at gmail dot com
*************... | gpl-2.0 | 5,652,513,696,830,232,000 | 37.616438 | 89 | 0.554984 | false |
jazzij/powertoken | background/database.py | 1 | 6870 | #imports for database engine
import os
from sqlalchemy import create_engine
from sqlalchemy.pool import NullPool
from sqlalchemy.orm import scoped_session, sessionmaker
#imports for models
from datetime import datetime, timedelta
from sqlalchemy import MetaData, Column, ForeignKey, Integer, String, DateTime, Float, Bo... | mit | -7,145,989,785,779,802,000 | 28.110169 | 114 | 0.703202 | false |
Aeron/django-evolution | django_evolution/evolve.py | 6 | 2860 | import os
from django_evolution import EvolutionException, is_multi_db
from django_evolution.builtin_evolutions import BUILTIN_SEQUENCES
from django_evolution.models import Evolution
from django_evolution.mutations import SQLMutation
def get_evolution_sequence(app):
"Obtain the full evolution sequence for an app... | bsd-3-clause | 5,478,306,128,026,732,000 | 29.752688 | 79 | 0.586014 | false |
sahiljain/catapult | third_party/gsutil/third_party/protorpc/protorpc/remote.py | 19 | 39078 | #!/usr/bin/env python
#
# Copyright 2010 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... | bsd-3-clause | 7,059,193,963,409,829,000 | 30.33761 | 79 | 0.6746 | false |
diorcety/intellij-community | python/lib/Lib/site-packages/django/conf/locale/id/formats.py | 78 | 1855 | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j N Y'
DATETIME_FORMAT = "j N Y, G:i:s"
TIME_FORMAT = 'G:i:s'
YEAR_MONTH_... | apache-2.0 | -982,166,138,323,838,000 | 38.468085 | 79 | 0.442588 | false |
reshadh/Keepnote-LaTeX | dist/keepnote-0.7.5.win/extensions/latex_prompt/editor_richtext.py | 3 | 57757 | """
KeepNote
Editor widget in main window
"""
#
# KeepNote
# Copyright (c) 2008-2011 Matt Rasmussen
# Author: Matt Rasmussen <rasmus@mit.edu>
#
# 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... | gpl-2.0 | -6,252,252,930,391,750,000 | 32.482319 | 90 | 0.531399 | false |
eusoubrasileiro/fatiando_seismic | fatiando/gravmag/sphere.py | 3 | 24356 | r"""
Calculate the potential fields of a homogeneous sphere.
**Magnetic**
Calculates the magnetic effect produced by an sphere. The functions are
based on Blakely (1995).
* :func:`~fatiando.gravmag.sphere.tf`: calculates the total-field anomaly
* :func:`~fatiando.gravmag.sphere.bx`: calculates the x component of the... | bsd-3-clause | 4,972,256,355,419,756,000 | 27.789598 | 79 | 0.597553 | false |
sitepod/kubernetes | cluster/juju/return-node-ips.py | 310 | 1024 | #!/usr/bin/env python
# Copyright 2015 The Kubernetes 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
#
# Unle... | apache-2.0 | 7,708,610,732,656,663,000 | 34.310345 | 74 | 0.732422 | false |
mlaitinen/odoo | addons/project_issue/report/project_issue_report.py | 303 | 4652 |
# -*- 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 GN... | agpl-3.0 | -296,643,432,376,574,340 | 49.021505 | 112 | 0.567498 | false |
SnakeJenny/TensorFlow | tensorflow/contrib/graph_editor/transform.py | 46 | 24592 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -6,267,076,126,941,165,000 | 36.317147 | 80 | 0.681685 | 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.