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 |
|---|---|---|---|---|---|---|---|---|---|---|
kuri65536/python-for-android | python-build/python-libs/gdata/src/gdata/tlslite/integration/POP3_TLS.py | 271 | 5466 | """TLS Lite + poplib."""
import socket
from poplib import POP3
from gdata.tlslite.TLSConnection import TLSConnection
from gdata.tlslite.integration.ClientHelper import ClientHelper
# POP TLS PORT
POP3_TLS_PORT = 995
class POP3_TLS(POP3, ClientHelper):
"""This class extends L{poplib.POP3} with TLS support."""
... | apache-2.0 | 909,638,754,900,657,800 | 37.492958 | 83 | 0.636114 | false |
TeMPO-Consulting/mediadrop | mediacore/model/settings.py | 1 | 4239 | # This file is a part of MediaDrop (http://www.mediadrop.net),
# Copyright 2009-2013 MediaCore Inc., Felix Schwarz and other contributors.
# For the exact contribution history, see the git revision log.
# The source code contained in this file is licensed under the GPLv3 or
# (at your option) any later version.
# See L... | gpl-3.0 | 1,688,854,665,998,850,800 | 32.117188 | 89 | 0.673272 | false |
JeremyRubin/bitcoin | test/functional/p2p_segwit.py | 1 | 95731 | #!/usr/bin/env python3
# Copyright (c) 2016-2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test segwit transactions and blocks on P2P network."""
import math
import random
import struct
import t... | mit | 9,174,906,642,596,410,000 | 45.381298 | 187 | 0.630705 | false |
DMOJ/judge | dmoj/tests/test_problem.py | 1 | 4108 | import os
import unittest
from unittest import mock
from dmoj.config import InvalidInitException
from dmoj.problem import Problem, ProblemDataManager
class ProblemTest(unittest.TestCase):
def setUp(self):
self.data_patch = mock.patch('dmoj.problem.ProblemDataManager')
data_mock = self.data_patch.... | agpl-3.0 | 4,718,125,784,180,389,000 | 40.08 | 120 | 0.478822 | false |
valtech-mooc/edx-platform | common/djangoapps/student/tests/test_roles.py | 61 | 7708 | """
Tests of student.roles
"""
import ddt
from django.test import TestCase
from courseware.tests.factories import UserFactory, StaffFactory, InstructorFactory
from student.tests.factories import AnonymousUserFactory
from student.roles import (
GlobalStaff, CourseRole, CourseStaffRole, CourseInstructorRole,
Or... | agpl-3.0 | -1,431,941,181,013,096,000 | 38.937824 | 98 | 0.649196 | false |
webmedic/booker | src/plugins/tags/__init__.py | 1 | 4970 | from PyQt4 import QtGui, QtCore
import sys, os
import models
from pluginmgr import ShelfView
# This plugin lists the books by tag
EBOOK_EXTENSIONS=['epub','mobi','pdf']
class Catalog(ShelfView):
title = "Books By Tag"
itemText = "Tags"
items = {}
def showList(self, search = None):
"""Ge... | mit | -8,237,720,128,516,522,000 | 34.248227 | 112 | 0.574044 | false |
duncanwp/iris | lib/iris/tests/unit/plot/test_points.py | 11 | 3049 | # (C) British Crown Copyright 2014 - 2016, Met Office
#
# This file is part of Iris.
#
# Iris 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 3 of the License, or
# (at your option) any l... | lgpl-3.0 | 9,134,854,747,925,333,000 | 33.647727 | 74 | 0.66776 | false |
zhangjunlei26/servo | python/mozlog/mozlog/structured/formatters/machformatter.py | 45 | 12405 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import time
from collections import defaultdict
try:
import blessings
except ImportError:
blessings = None
imp... | mpl-2.0 | 2,516,867,410,716,997,600 | 33.845506 | 96 | 0.508666 | false |
harisibrahimkv/django | django/db/backends/oracle/compiler.py | 25 | 2437 | from django.db import NotSupportedError
from django.db.models.sql import compiler
class SQLCompiler(compiler.SQLCompiler):
def as_sql(self, with_limits=True, with_col_aliases=False):
"""
Create the SQL for this query. Return the SQL string and list
of parameters. This is overridden from t... | bsd-3-clause | 6,315,438,832,730,179,000 | 38.306452 | 113 | 0.608945 | false |
acrsteiner/three.js | utils/exporters/blender/addons/io_three/logger.py | 176 | 1423 | import os
import logging
import tempfile
from . import constants
LOG_FILE = None
LOGGER = None
LEVELS = {
constants.DEBUG: logging.DEBUG,
constants.INFO: logging.INFO,
constants.WARNING: logging.WARNING,
constants.ERROR: logging.ERROR,
constants.CRITICAL: logging.CRITICAL
}
def init(filename, l... | mit | -8,727,811,980,096,798,000 | 20.892308 | 71 | 0.66409 | false |
timlinux/QGIS | tests/src/python/test_qgspointcloudattributebyramprenderer.py | 1 | 17855 | # -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsPointCloudAttributeByRampRenderer
.. 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 ... | gpl-2.0 | 3,611,403,781,188,709,000 | 43.415423 | 115 | 0.7021 | false |
maartenq/ansible | lib/ansible/modules/network/eos/eos_vlan.py | 25 | 11418 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2017, Ansible by Red Hat, inc
#
# 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 Foundation, either version 3 of the Li... | gpl-3.0 | 5,958,455,012,172,262,000 | 31.16338 | 129 | 0.572429 | false |
mattcongy/itshop | docker-images/taigav2/taiga-back/taiga/mdrender/templatetags/functions.py | 2 | 1172 | # -*- coding: utf-8 -*-
# Copyright (C) 2014-2016 Andrey Antukh <niwi@niwi.nz>
# Copyright (C) 2014-2016 Jesús Espino <jespinog@gmail.com>
# Copyright (C) 2014-2016 David Barragán <bameda@dbarragan.com>
# Copyright (C) 2014-2016 Alejandro Alonso <alejandro.alonso@kaleidos.net>
# This program is free software: you can r... | mit | 6,781,456,459,550,168,000 | 40.785714 | 74 | 0.752137 | false |
bop/hybrid | lib/python2.6/site-packages/django/contrib/admin/util.py | 101 | 15254 | from __future__ import unicode_literals
import datetime
import decimal
from django.db import models
from django.db.models.constants import LOOKUP_SEP
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 f... | gpl-2.0 | 5,461,938,227,624,950,000 | 32.525275 | 94 | 0.597876 | false |
gechr/ansible-modules-extras | network/dnsimple.py | 49 | 11750 | #!/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 | -3,614,467,743,824,539,000 | 37.52459 | 246 | 0.567574 | false |
rotofly/odoo | addons/crm_helpdesk/__init__.py | 442 | 1081 | # -*- 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 | 3,506,989,740,764,477,400 | 40.576923 | 78 | 0.617946 | false |
fernandezcuesta/ansible | lib/ansible/modules/cloud/cloudstack/cs_region.py | 18 | 5397 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (c) 2016, René Moser <mail@renemoser.net>
#
# 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 Lice... | gpl-3.0 | -4,224,494,481,638,739,500 | 25.446078 | 70 | 0.620204 | false |
edum1978/eduengage | boilerplate/external/pytz/tzfile.py | 118 | 4340 | #!/usr/bin/env python
'''
$Id: tzfile.py,v 1.8 2004/06/03 00:15:24 zenzen Exp $
'''
from cStringIO import StringIO
from datetime import datetime, timedelta
from struct import unpack, calcsize
from pytz.tzinfo import StaticTzInfo, DstTzInfo, memorized_ttinfo
from pytz.tzinfo import memorized_datetime, memorized_timede... | lgpl-3.0 | -3,298,285,419,007,529,000 | 34.57377 | 77 | 0.548157 | false |
Technorip/Myntra | Django Backend/myntra/env/lib/python2.7/site-packages/django/core/checks/compatibility/django_1_8_0.py | 286 | 1052 | from __future__ import unicode_literals
from django.conf import global_settings, settings
from .. import Tags, Warning, register
@register(Tags.compatibility)
def check_duplicate_template_settings(app_configs, **kwargs):
if settings.TEMPLATES:
values = [
'TEMPLATE_DIRS',
'ALLOWED... | gpl-2.0 | -6,169,457,255,836,149,000 | 32.935484 | 79 | 0.573194 | false |
gigglesninja/senior-design | MissionPlanner/Lib/email/charset.py | 180 | 16043 | # Copyright (C) 2001-2006 Python Software Foundation
# Author: Ben Gertzfield, Barry Warsaw
# Contact: email-sig@python.org
__all__ = [
'Charset',
'add_alias',
'add_charset',
'add_codec',
]
import codecs
import email.base64mime
import email.quoprimime
from email import errors
from email.encoders ... | gpl-2.0 | 4,743,380,534,371,180,000 | 39.007481 | 81 | 0.620645 | false |
erkanay/django | django/http/request.py | 11 | 21075 | from __future__ import unicode_literals
import copy
import os
import re
import sys
from io import BytesIO
from itertools import chain
from pprint import pformat
from django.conf import settings
from django.core import signing
from django.core.exceptions import DisallowedHost, ImproperlyConfigured
from django.core.fil... | bsd-3-clause | 3,606,347,989,027,084,000 | 35.652174 | 110 | 0.585338 | false |
freakboy3742/django | tests/forms_tests/widget_tests/test_splitdatetimewidget.py | 84 | 2669 | from datetime import date, datetime, time
from django.forms import SplitDateTimeWidget
from .base import WidgetTest
class SplitDateTimeWidgetTest(WidgetTest):
widget = SplitDateTimeWidget()
def test_render_empty(self):
self.check_html(self.widget, 'date', '', html=(
'<input type="text" ... | bsd-3-clause | -7,669,931,759,818,791,000 | 41.365079 | 94 | 0.572124 | false |
ulif/pulp | server/pulp/server/db/migrations/0027_importer_schema_change.py | 1 | 1091 | import datetime
import isodate
from pulp.server.db.connection import get_collection
def migrate(*args, **kwargs):
"""
Add last_updated and last_override_config to the importer collection.
"""
updated_key = 'last_updated'
config_key = 'last_override_config'
collection = get_collection('repo_i... | gpl-2.0 | 961,681,694,132,968,600 | 31.088235 | 97 | 0.620532 | false |
jinnykoo/wuyisj | tests/integration/offer/manager_tests.py | 53 | 1741 | import datetime
from django.test import TestCase
from django.utils import timezone
from oscar.test import factories
from oscar.apps.offer import models
class TestActiveOfferManager(TestCase):
def test_includes_offers_in_date_range(self):
# Create offer that is available but with the wrong status
... | bsd-3-clause | -8,440,224,175,311,983,000 | 36.042553 | 66 | 0.682366 | false |
bitifirefly/edx-platform | lms/djangoapps/verify_student/views.py | 5 | 58018 | """
Views for the verification flow
"""
import datetime
import decimal
import json
import logging
import urllib
from pytz import UTC
from ipware.ip import get_ip
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.core.mail import send_mail
from django.core.urlresolv... | agpl-3.0 | 6,672,905,549,594,937,000 | 38.334237 | 119 | 0.630494 | false |
cobalys/django | django/contrib/webdesign/lorem_ipsum.py | 230 | 4908 | """
Utility functions for generating "lorem ipsum" Latin text.
"""
from __future__ import unicode_literals
import random
COMMON_P = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco ... | bsd-3-clause | 5,613,577,768,618,588,000 | 46.650485 | 459 | 0.610228 | false |
phalax4/CarnotKE | jyhton/lib-python/2.7/tarfile.py | 8 | 89024 | #!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
#-------------------------------------------------------------------
# tarfile.py
#-------------------------------------------------------------------
# Copyright (C) 2002 Lars Gustäbel <lars@gustaebel.de>
# All rights reserved.
#
# Permission is hereby granted, fre... | apache-2.0 | -6,498,345,370,909,645,000 | 33.372201 | 103 | 0.535878 | false |
akkana/scripts | astro/marsoppy.py | 1 | 14537 | #!/usr/bin/env python3
# Plot all the planets' orbits, as viewed from a point that
# floats above the Earth's north ecliptic pole and moves with
# the Earth, to demonstrate phenomena like epicycles and the
# Venus pentagram. Idea from Galen Gisler's planetarium show.
#
# Copyright 2020 by Akkana Peck: Share and enjoy ... | gpl-2.0 | -640,194,651,697,535,100 | 38.077957 | 79 | 0.508564 | false |
bunnyinc/django-oidc-provider | oidc_provider/tests/test_utils.py | 1 | 2459 | import time
from datetime import datetime
from django.test import TestCase
from django.utils import timezone
from oidc_provider.lib.utils.common import get_issuer
from oidc_provider.lib.utils.token import create_id_token
from oidc_provider.tests.app.utils import create_fake_user
class Request(object):
"""
M... | mit | 8,580,068,148,021,425,000 | 30.525641 | 77 | 0.589671 | false |
mrry/tensorflow | tensorflow/contrib/learn/python/learn/basic_session_run_hooks.py | 3 | 14433 | # 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 | -902,728,234,952,753,400 | 35.0825 | 89 | 0.663064 | false |
coderbone/SickRage | lib/tvdb_api/tvdb_api.py | 12 | 35715 | # !/usr/bin/env python2
# encoding:utf-8
# author:dbr/Ben
#project:tvdb_api
#repository:http://github.com/dbr/tvdb_api
#license:unlicense (http://unlicense.org/)
from functools import wraps
import traceback
__author__ = "dbr/Ben"
__version__ = "1.9"
import os
import re
import time
import getpass
import StringIO
impo... | gpl-3.0 | -4,359,985,044,943,779,300 | 35.443878 | 160 | 0.552989 | false |
wldtyp/flask | tests/test_helpers.py | 1 | 27016 | # -*- coding: utf-8 -*-
"""
tests.helpers
~~~~~~~~~~~~~~~~~~~~~~~
Various helpers.
:copyright: (c) 2015 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
import pytest
import os
import datetime
import flask
from logging import StreamHandler
from werkzeug.exceptions import BadRe... | bsd-3-clause | -7,277,954,857,394,219,000 | 35.530447 | 105 | 0.509335 | false |
zstackio/zstack-woodpecker | zstackwoodpecker/zstackwoodpecker/zstack_test/vcenter_checker/zstack_vcenter_snapshot_checker.py | 2 | 9805 | import zstackwoodpecker.header.checker as checker_header
import zstackwoodpecker.operations.volume_operations as vol_ops
import zstackwoodpecker.test_lib as test_lib
import zstackwoodpecker.test_util as test_util
import zstackwoodpecker.zstack_test.zstack_test_snapshot as zstack_sp_header
import zstackwoodpecker.header... | apache-2.0 | 7,924,296,997,090,319,000 | 48.520202 | 252 | 0.624069 | false |
tuxnani/open-telugu | tests/tamil_regexp.py | 3 | 4571 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# (C) 2013-2015 Muthiah Annamalai
#
# This file is part of 'open-tamil' package tests
#
# setup the paths
import codecs
import re
from opentamiltests import *
from tamil.utils.santhirules import joinWords
from tamil.regexp import make_pattern
class SantheeRules(unitt... | mit | -2,627,890,649,315,196,000 | 31.742188 | 108 | 0.518492 | false |
orcasgit/python-healthvault | healthvaultlib/status_codes.py | 1 | 10202 | class HealthVaultStatus(object):
"""Status codes that HealthVault can return.
`See also <http://msdn.microsoft.com/en-us/library/hh567902.aspx>`_
"""
OK = 0 # The request was successful.
FAILED = 1 # Generic failure due to unknown causes or internal error.
BAD_HTTP = 2 # Http protocol prob... | mit | -1,922,435,709,822,506,200 | 78.703125 | 193 | 0.736424 | false |
kkanahin/django-avatar | avatar/views.py | 3 | 8108 | from django.http import Http404
from django.shortcuts import render, redirect
from django.utils import six
from django.utils.translation import ugettext as _
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from avatar.forms import PrimaryAvatarForm, DeleteAvatarForm, Uplo... | bsd-3-clause | -3,761,141,852,235,347,500 | 35.687783 | 100 | 0.625432 | false |
wooga/airflow | tests/www/api/experimental/test_endpoints.py | 1 | 21328 | #
# 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... | apache-2.0 | 3,584,455,724,658,494,500 | 38.42329 | 107 | 0.578676 | false |
vismantic-ohtuprojekti/image-filtering-suite | qualipy/utils/tesseract.py | 2 | 1421 | import subprocess
import tempfile
import os
def img_to_str(tesseract_path, image):
"""Reads text in an image with tesseract-ocr
:param tesseract_path: path to the tesseract executable
:type tesseracth_path: str
:param image: path to the input image
:type image: str
"""
if not os.path.isfi... | mit | -6,089,292,067,045,030,000 | 28.604167 | 66 | 0.619282 | false |
runt18/nupic | src/nupic/data/aggregator.py | 1 | 28990 | #! /usr/bin/env python
# ----------------------------------------------------------------------
# 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... | agpl-3.0 | 3,947,203,172,248,661,500 | 32.398618 | 83 | 0.614315 | false |
dje42/gdb | gdb/contrib/cleanup_check.py | 20 | 13262 | # Copyright 2013 Free Software Foundation, Inc.
#
# This 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 i... | gpl-2.0 | -1,139,908,911,967,899,600 | 38.58806 | 115 | 0.588976 | false |
Godiyos/python-for-android | python-build/python-libs/gdata/build/lib/gdata/sample_util.py | 133 | 7858 | #!/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 | -1,095,789,578,838,443,100 | 35.892019 | 79 | 0.647748 | false |
Godiyos/python-for-android | python-build/python-libs/gdata/src/gdata/Crypto/PublicKey/qNEW.py | 228 | 5545 | #
# qNEW.py : The q-NEW signature algorithm.
#
# Part of the Python Cryptography Toolkit
#
# Distribute and use freely; there are no restrictions on further
# dissemination and usage except those imposed by the laws of your
# country of residence. This software is provided "as is" without
# warranty of fitness fo... | apache-2.0 | 7,821,494,523,921,376,000 | 31.617647 | 94 | 0.571506 | false |
pramasoul/micropython | tests/extmod/vfs_fat_finaliser.py | 14 | 1906 | # Test VfsFat class and its finaliser
try:
import uerrno, uos
uos.VfsFat
except (ImportError, AttributeError):
print("SKIP")
raise SystemExit
class RAMBlockDevice:
def __init__(self, blocks, sec_size=512):
self.sec_size = sec_size
self.data = bytearray(blocks * self.sec_size)
... | mit | -3,013,091,855,140,831,000 | 26.623188 | 81 | 0.648478 | false |
fgclaramonte/Odoo-addons | inter_company_rules/models/inter_company_invoice.py | 21 | 5617 | from openerp import models, fields, api, _
from openerp.exceptions import Warning
class account_invoice(models.Model):
_inherit = 'account.invoice'
auto_generated = fields.Boolean(string='Auto Generated Document', copy=False)
auto_invoice_id = fields.Many2one('account.invoice', string='Source Invoice',
... | gpl-3.0 | 5,583,683,049,762,702,000 | 51.990566 | 134 | 0.597828 | false |
pmghalvorsen/gramps_branch | gramps/gen/filters/rules/family/_hastag.py | 2 | 1730 | #
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2010 Nick Hall
#
# 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... | gpl-2.0 | 7,058,798,302,969,537,000 | 33.6 | 79 | 0.528324 | false |
camptocamp/odoo | addons/l10n_in_hr_payroll/__init__.py | 430 | 1117 | #-*- coding:utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2011 OpenERP SA (<http://openerp.com>). All Rights Reserved
#
# This program is free software: you can redistribute it and/or modify
# it under th... | agpl-3.0 | -357,303,169,001,409,300 | 42 | 80 | 0.628469 | false |
linkhub-sdk/popbill.taxinvoice.example.py | cancelIssue.py | 1 | 1516 | # -*- coding: utf-8 -*-
# code for console Encoding difference. Dont' mind on it
import sys
import imp
imp.reload(sys)
try:
sys.setdefaultencoding('UTF8')
except Exception as E:
pass
import testValue
from popbill import TaxinvoiceService, PopbillException
taxinvoiceService = TaxinvoiceService(testValue.Link... | mit | -2,675,356,383,787,168,000 | 24.058824 | 85 | 0.707355 | false |
dineshappavoo/virtdc | virtdc_init/virtdc_init.py | 2 | 1747 | #!/usr/bin/env python
import subprocess, sys
#API - virtdc command line init tool
#==============================================================================
# Variables
#==============================================================================
# Some descriptive variables
#name = "virtdc"
#ve... | mit | -7,807,982,920,771,440,000 | 46.216216 | 138 | 0.630223 | false |
srvelivela/ansibledoc | lib/ansible/plugins/lookup/consul_kv.py | 89 | 4541 | # (c) 2015, Steve Gargan <steve.gargan@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) any later v... | gpl-3.0 | -2,738,424,637,369,656,300 | 33.142857 | 146 | 0.605373 | false |
SVRobots/Minecraft | modules/world.py | 1 | 2839 | from os import listdir, mkdir
import cPickle
from imp import load_source
api = load_source('api', 'modules\\api.py')
from api import *
class World(object):
#initialize
def __init__(self):
super(World, self).__init__()
self.world="Default"
self.dimension="DIM1"
self.playername="Default"
self.world_blocks={}... | gpl-2.0 | -7,457,913,990,684,695,000 | 24.357143 | 243 | 0.659387 | false |
dati91/servo | tests/wpt/web-platform-tests/resource-timing/resources/multi_redirect.py | 17 | 1767 | def main(request, response):
"""Handler that causes multiple redirections.
The request has two mandatory and one optional query parameters:
page_origin - The page origin, used for redirection and to set TAO. This is a mandatory parameter.
cross_origin - The cross origin used to make this a cross-origin ... | mpl-2.0 | -8,498,140,194,006,947,000 | 43.175 | 123 | 0.654782 | false |
acsone/partner-contact | base_location_nuts/models/res_partner_nuts.py | 5 | 1197 | # -*- coding: utf-8 -*-
# © 2015 Antiun Ingeniería S.L. - Antonio Espinosa
# © 2015 Antiun Ingeniería S.L. - Jairo Llopis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields
class ResPartnerNuts(models.Model):
_name = 'res.partner.nuts'
_order = "parent_lef... | agpl-3.0 | -1,704,822,542,284,996,000 | 35.151515 | 78 | 0.616094 | false |
rwl/puddle | puddle/python_editor/python_workbench_editor.py | 1 | 6267 | #------------------------------------------------------------------------------
# Copyright (C) 2009 Richard W. Lincoln
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restrictio... | mit | 4,991,800,274,352,044,000 | 31.640625 | 79 | 0.49274 | false |
dischinator/pyload | module/lib/simplejson/encoder.py | 45 | 20060 | """Implementation of JSONEncoder
"""
import re
from decimal import Decimal
def _import_speedups():
try:
from simplejson import _speedups
return _speedups.encode_basestring_ascii, _speedups.make_encoder
except ImportError:
return None, None
c_encode_basestring_ascii, c_make_encoder = _im... | gpl-3.0 | -6,977,356,010,366,139,000 | 36.565543 | 82 | 0.534148 | false |
open-o/nfvo | lcm/lcm/packages/tests/test_nf.py | 1 | 23203 | # Copyright 2016-2017 ZTE Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | apache-2.0 | 7,188,164,469,112,064,000 | 48.26327 | 115 | 0.48873 | false |
emilk/sproxel | distro/common/lib/ctypes/macholib/dylib.py | 59 | 2107 | ######################################################################
# This file should be kept compatible with Python 2.3, see PEP 291. #
######################################################################
"""
Generic dylib path manipulation
"""
import re
__all__ = ['dylib_info']
DYLIB_RE = re.comp... | bsd-3-clause | -6,101,371,475,512,709,000 | 29.924242 | 96 | 0.521595 | false |
bitkeeper/python-opcua | examples/client_to_kepware.py | 1 | 1723 | import sys
sys.path.insert(0, "..")
import logging
from opcua import Client
from opcua import uaprotocol as ua
class SubHandler(object):
"""
Client to subscription. It will receive events from server
"""
def datachange_notification(self, node, val, data):
print("Python: New data change even... | lgpl-3.0 | 2,871,847,764,149,168,600 | 30.327273 | 93 | 0.629716 | false |
clumsy/intellij-community | python/lib/Lib/unicodedata.py | 69 | 6437 | from bisect import bisect_left
import operator
import java.lang.Character
# XXX - this is intended as a stopgap measure until 2.5.1, which will have a Java implementation
# requires java 6 for `normalize` function
# only has one version of the database
# does not normalized ideographs
_codepoints = {}
_eaw = {}
_name... | apache-2.0 | -6,758,697,989,492,542,000 | 27.10917 | 106 | 0.607426 | false |
EDRN/CancerDataExpo | src/edrn.rdf/setup.py | 2 | 2657 | # encoding: utf-8
# Copyright 2008-2011 California Institute of Technology. ALL RIGHTS
# RESERVED. U.S. Government Sponsorship acknowledged.
from setuptools import setup, find_packages
import os.path
# Package data
# ------------
_name = 'edrn.rdf'
_version = '1.3.8'
_description = 'EDRN RDF S... | apache-2.0 | 3,337,923,018,098,752,500 | 29.193182 | 108 | 0.629281 | false |
stephanie-wang/ray | python/ray/tune/suggest/sigopt.py | 1 | 5550 | import copy
import os
import logging
import pickle
try:
import sigopt as sgo
except ImportError:
sgo = None
from ray.tune.suggest.suggestion import SuggestionAlgorithm
logger = logging.getLogger(__name__)
class SigOptSearch(SuggestionAlgorithm):
"""A wrapper around SigOpt to provide trial suggestions.
... | apache-2.0 | -1,845,133,324,321,591,300 | 35.27451 | 79 | 0.559099 | false |
aetilley/scikit-learn | examples/svm/plot_svm_anova.py | 250 | 2000 | """
=================================================
SVM-Anova: SVM with univariate feature selection
=================================================
This example shows how to perform univariate feature before running a SVC
(support vector classifier) to improve the classification scores.
"""
print(__doc__)
import... | bsd-3-clause | 6,470,606,179,744,523,000 | 34.087719 | 79 | 0.6125 | false |
dagdaggo/coala | tests/bearlib/spacing/SpacingHelperTest.py | 26 | 4341 | import unittest
from coalib.bearlib.spacing.SpacingHelper import SpacingHelper
from coalib.settings.Section import Section
class SpacingHelperTest(unittest.TestCase):
def setUp(self):
self.uut = SpacingHelper()
def test_needed_settings(self):
self.assertEqual(list(self.uut.get_optional_sett... | agpl-3.0 | -452,152,684,058,441,000 | 47.233333 | 79 | 0.599862 | false |
hanchentech/git-repo | subcmds/help.py | 48 | 4794 | #
# Copyright (C) 2008 The Android Open Source Project
#
# 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 la... | apache-2.0 | 8,913,382,724,638,427,000 | 26.872093 | 74 | 0.585732 | false |
CubicERP/odoo | addons/account/report/account_journal.py | 255 | 10035 | # -*- 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 | -7,353,666,811,201,545,000 | 45.24424 | 291 | 0.592128 | false |
hailongqiu/new-deepin-media-player | src/widget/preview.py | 2 | 6604 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2012 Deepin, Inc.
# 2012 Hailong Qiu
#
# Author: Hailong Qiu <356752238@qq.com>
# Maintainer: Hailong Qiu <356752238@qq.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General P... | gpl-3.0 | -7,695,444,990,471,682,000 | 34.021277 | 127 | 0.511543 | false |
wqer1019/student-work | vendor/psy/psysh/test/tools/vis.py | 710 | 3428 | """
vis.py
======
Ctypes based module to access libbsd's strvis & strunvis functions.
The `vis` function is the equivalent of strvis.
The `unvis` function is the equivalent of strunvis.
All functions accept unicode string as input and return a unicode string.
Constants:
----------
* to select alternate encoding for... | mit | -4,698,864,931,030,523,000 | 26.206349 | 76 | 0.599767 | false |
koobonil/Boss2D | Boss2D/addon/tensorflow-1.2.1_for_boss/tensorflow/python/util/deprecation_test.py | 17 | 28084 | # 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... | mit | 2,090,367,151,633,026,000 | 35.284238 | 80 | 0.636021 | false |
kaltsimon/youtube-dl | youtube_dl/extractor/myspass.py | 105 | 2721 | from __future__ import unicode_literals
import os.path
from .common import InfoExtractor
from ..compat import (
compat_urllib_parse_urlparse,
)
from ..utils import (
ExtractorError,
)
class MySpassIE(InfoExtractor):
_VALID_URL = r'http://www\.myspass\.de/.*'
_TEST = {
'url': 'http://www.myspa... | unlicense | 2,858,924,838,063,547,000 | 36.273973 | 255 | 0.604925 | false |
klenks/jobsportal | venv/lib/python2.7/site-packages/debug_toolbar/panels/templates/views.py | 3 | 2341 | from __future__ import absolute_import, unicode_literals
from django.http import HttpResponseBadRequest
from django.shortcuts import render_to_response
from django.template import TemplateDoesNotExist
from django.template.engine import Engine
from django.utils.safestring import mark_safe
try:
from django.template... | mit | 6,540,948,073,250,825,000 | 32.442857 | 76 | 0.641179 | false |
Eksmo/calibre | src/calibre/ebooks/oeb/transforms/jacket.py | 1 | 8466 | #!/usr/bin/env python
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
from __future__ import with_statement
__license__ = 'GPL v3'
__copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import sys
from xml.sax.saxutils import escape
from lxml import etree
from calibre ... | gpl-3.0 | -1,363,386,381,183,059,000 | 32.070313 | 98 | 0.546421 | false |
araines/moto | tests/test_s3/test_s3_lifecycle.py | 18 | 3339 | from __future__ import unicode_literals
import boto
from boto.exception import S3ResponseError
from boto.s3.lifecycle import Lifecycle, Transition, Expiration, Rule
import sure # noqa
from moto import mock_s3
@mock_s3
def test_lifecycle_create():
conn = boto.s3.connect_to_region("us-west-1")
bucket = conn... | apache-2.0 | -8,541,337,628,694,407,000 | 32.059406 | 80 | 0.65319 | false |
bourneagain/pythonBytes | quickSort.py | 1 | 1075 | œœdef kthlargest(arr1, arr2, k):
if len(arr1) == 0:
return arr2[k]
elif len(arr2) == 0:
return arr1[k]
mida1 = len(arr1)/2
mida2 = len(arr2)/2
if mida1+mida2<k:
if arr1[mida1]>arr2[mida2]:
return kthlargest(arr1, arr2[mida2+1:], k-mida2-1)
else:
... | mit | 2,610,790,294,793,926,700 | 25.825 | 62 | 0.474371 | false |
stackforge/networking-nec | networking_nec/nwa/common/config.py | 2 | 4009 | # Copyright 2015-2016 NEC Corporation. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | apache-2.0 | -5,495,047,114,034,500,000 | 39.09 | 78 | 0.596408 | false |
ergoregion/Rota-Program | Rota_System/UI/People/widget_population.py | 1 | 1876 | __author__ = 'Neil Butcher'
from PyQt4 import QtCore, QtGui
from model_population import PopulationModel
from Rota_System.UI.widget_addDel_list import AddDelListWidget
from widget_person import PersonWidget
class PopulationWidget(QtGui.QWidget):
commandIssued = QtCore.pyqtSignal(QtGui.QUndoCommand)
criticalC... | mit | 4,877,304,131,031,213,000 | 28.777778 | 82 | 0.710021 | false |
williamfeng323/py-web | flask/lib/python3.6/site-packages/sqlalchemy_utils/listeners.py | 2 | 7485 | import sqlalchemy as sa
from .exceptions import ImproperlyConfigured
def coercion_listener(mapper, class_):
"""
Auto assigns coercing listener for all class properties which are of coerce
capable type.
"""
for prop in mapper.iterate_properties:
try:
listener = prop.columns[0].... | mit | 6,640,016,475,307,439,000 | 27.245283 | 79 | 0.593721 | false |
BT-astauder/odoo | addons/web_analytics/__openerp__.py | 305 | 1432 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2010-2012 OpenERP s.a. (<http://openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of ... | agpl-3.0 | 444,133,330,025,892,800 | 33.926829 | 78 | 0.581006 | false |
brianwoo/django-tutorial | ENV/lib/python2.7/site-packages/pip/_vendor/lockfile/__init__.py | 475 | 9162 | """
lockfile.py - Platform-independent advisory file locks.
Requires Python 2.5 unless you apply 2.4.diff
Locking is done on a per-thread basis instead of a per-process basis.
Usage:
>>> lock = LockFile('somefile')
>>> try:
... lock.acquire()
... except AlreadyLocked:
... print 'somefile', 'is locked already... | gpl-3.0 | 5,312,652,990,075,613,000 | 27.104294 | 79 | 0.59332 | false |
Boedaxbayah-vpn/boedaxbayah | ps_mem.py | 3 | 17568 | #!/usr/bin/env python
# Try to determine how much RAM is currently being used per program.
# Note per _program_, not per process. So for example this script
# will report RAM used by all httpd process together. In detail it reports:
# sum(private RAM for program processes) + sum(Shared RAM for program processes)
# The... | gpl-3.0 | -5,824,614,722,368,798,000 | 34.92638 | 97 | 0.57508 | false |
introprogramming/exercises | exercises/plot_2d/plot_2d.py | 1 | 5835 | import math, pygame
from pygame.locals import *
#############################################
## Standard colors (RGB)
BLACK = (20, 20, 40)
WHITE = (255, 255, 255)
BLUE = (0, 0, 255)
GREEN = (0, 255, 0)
RED = (255, 0, 0)
#############################################
## Customize plot here
def function_to_print(x):
... | mit | -779,678,578,324,625,400 | 23.620253 | 81 | 0.554927 | false |
hitchtest/hitchvagrant | hitchvagrant/vagrant.py | 1 | 1317 | from sys import argv, stdout, stderr, exit
from subprocess import call, PIPE
from os import path, chdir
import optparse
import time
def run():
parser = optparse.OptionParser()
parser.add_option("-d", "--directory", type="str", dest="directory", default=".",
help="Specify the directory th... | agpl-3.0 | 113,397,798,606,808,370 | 28.931818 | 110 | 0.602126 | false |
dannyboi104/SickRage | lib/hachoir_parser/archive/mozilla_ar.py | 74 | 2405 | """MAR (Mozilla ARchive) parser
Author: Robert Xiao
Creation date: July 10, 2007
"""
from hachoir_core.endian import BIG_ENDIAN
from hachoir_core.field import (RootSeekableFieldSet, FieldSet,
String, CString, UInt32, RawBytes)
from hachoir_core.text_handler import displayHandler, filesizeHandler
from hachoir_cor... | gpl-3.0 | 1,947,980,633,558,039,000 | 39.083333 | 93 | 0.63368 | false |
meabsence/python-for-android | python3-alpha/python3-src/Tools/pybench/Unicode.py | 92 | 11110 | try:
unicode
except NameError:
raise ImportError
from pybench import Test
class ConcatUnicode(Test):
version = 2.0
operations = 10 * 5
rounds = 60000
def test(self):
# Make sure the strings are *not* interned
s = unicode(u''.join(map(str,range(100))))
t = unicode(u''... | apache-2.0 | -8,933,290,414,536,158,000 | 19.536044 | 76 | 0.350045 | false |
IgowWang/ML_python3 | kerasgo/qa.py | 2 | 4487 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author igor
# Created by iFantastic on 16-6-3
import re
import tarfile
from functools import reduce
import numpy as np
import nltk
from keras.preprocessing.sequence import pad_sequences
from keras.layers.embeddings import Embedding
from keras.layers.core import Dense, M... | gpl-3.0 | 5,982,826,061,479,286,000 | 33.515385 | 119 | 0.60887 | false |
jwiggins/scikit-image | skimage/transform/tests/test_pyramids.py | 35 | 2302 | from numpy.testing import assert_array_equal, assert_raises, run_module_suite
from skimage import data
from skimage.transform import pyramids
image = data.astronaut()
image_gray = image[..., 0]
def test_pyramid_reduce_rgb():
rows, cols, dim = image.shape
out = pyramids.pyramid_reduce(image, downscale=2)
... | bsd-3-clause | -7,279,729,311,152,568,000 | 30.972222 | 77 | 0.668983 | false |
hqpr/findyour3d | findyour3d/company/forms.py | 1 | 6270 | from django import forms
from .models import Company, SpecialOffer
EXPEDITED_CHOICES = (
(0, 'No, we do not offer any expedited shipping options.'),
(1, 'Yes we offer an expedited process for a fee.')
)
class AddCompanyForm(forms.ModelForm):
class Meta:
model = Company
fields = ['name'... | mit | -911,143,808,225,559,300 | 49.532258 | 116 | 0.59368 | false |
seberm/Titulky.com-Downloader | prototypes/captcha-qt/captcha.py | 1 | 2280 | import sys
from PyQt4 import QtGui, QtCore, QtNetwork
from PyQt4.QtCore import SLOT, SIGNAL
CAPTCHA_URL = 'http://www.titulky.com/captcha/captcha.php'
MAX_CAPTCHA_LEN = 8
class CaptchaDialog(QtGui.QDialog):
# Signal is emmited if captcha code is sucessfuly re-typed
codeRead = QtCore.pyqtSignal()
def... | gpl-3.0 | 2,012,148,595,861,505,000 | 25.206897 | 92 | 0.641228 | false |
CEG-FYP-OpenStack/scheduler | nova/tests/unit/pci/test_request.py | 11 | 7404 | # Copyright 2013 Intel Corporation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | apache-2.0 | -4,818,857,070,135,511,000 | 34.425837 | 78 | 0.493922 | false |
hainn8x/gnuradio | gr-blocks/python/blocks/qa_multiply_matrix_ff.py | 19 | 4796 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2014 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 versio... | gpl-3.0 | 1,884,023,812,199,144,700 | 26.883721 | 111 | 0.48457 | false |
uwosh/Campus_Directory_web_service | getAllSubjectsCX.py | 1 | 1441 | # getAllSubjectsCX
import re
import xmlrpclib
import cx_Oracle
Kim_Nguyen_G5 = '192.168.0.1'
Kim_Nguyen_iMac = '192.168.0.1'
Kim_Nguyen_MacBook = '192.168.0.1'
Plone1 = '192.168.0.1'
Plone3 = '192.168.0.1'
def getAllSubjectsCX (self, usexml):
request = self.REQUEST
RESPONSE = request.RESPONSE
remote_ad... | gpl-2.0 | -8,733,606,344,912,039,000 | 41.382353 | 290 | 0.639833 | false |
crs4/ProMort | promort/utils/__init__.py | 42 | 1098 | # Copyright (c) 2019, CRS4
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribu... | mit | 9,081,209,460,135,976,000 | 56.789474 | 83 | 0.76867 | false |
SecWiki/windows-kernel-exploits | MS14-068/pykek/pyasn1/type/namedtype.py | 200 | 4794 | # NamedType specification for constructed types
import sys
from pyasn1.type import tagmap
from pyasn1 import error
class NamedType:
isOptional = 0
isDefaulted = 0
def __init__(self, name, t):
self.__name = name; self.__type = t
def __repr__(self): return '%s(%s, %s)' % (
self.__class__.... | mit | -2,993,511,859,429,008,400 | 35.318182 | 75 | 0.548185 | false |
cooniur/ansible-modules-core | cloud/amazon/ec2_vol.py | 11 | 19254 | #!/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 | 8,486,378,547,538,384,000 | 31.468803 | 270 | 0.621793 | false |
hplustree/trove | trove/db/sqlalchemy/migrate_repo/versions/025_add_service_statuses_indexes.py | 4 | 1221 | # Copyright 2014 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | apache-2.0 | 5,618,446,004,645,272,000 | 33.885714 | 79 | 0.737101 | false |
dockerera/func | func/minion/modules/netapp/options.py | 5 | 1483 | ##
## NetApp Filer 'options' Module
##
## Copyright 2008, Red Hat, Inc
## John Eckersberg <jeckersb@redhat.com>
##
## This software may be freely redistributed under the terms of the GNU
## general public license.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not... | gpl-2.0 | 3,093,679,156,829,956,600 | 27.519231 | 71 | 0.582603 | false |
ivanalejandro0/bitmask_client | src/leap/bitmask/logs/streamtologger.py | 8 | 2008 | # -*- coding: utf-8 -*-
# streamtologger.py
# Copyright (C) 2013 LEAP
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
... | gpl-3.0 | -9,182,516,545,356,664,000 | 33.033898 | 78 | 0.65239 | false |
domenicosolazzo/jroc | tests/jroc/nlp/pos/nltk/test_taggerstorage.py | 1 | 1821 | # -*- coding: utf-8 -*-
from . import TaggerStorageAdapter
import unittest
import os
import codecs
class TaggerStorageAdapterTestCase(unittest.TestCase):
taggerStorage = TaggerStorageAdapter()
currentDirectory = "%s" % (os.path.dirname(os.path.realpath(__file__)), )
testTextsDirectory = "%s/../../../../d... | gpl-3.0 | -1,996,718,754,081,553,700 | 29.864407 | 78 | 0.616694 | false |
karsev/mbed-os | TESTS/netsocket/host_tests/udp_shotgun.py | 39 | 4553 | """
mbed SDK
Copyright (c) 2011-2013 ARM Limited
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | apache-2.0 | -2,323,919,752,832,379,400 | 31.06338 | 100 | 0.628816 | false |
pnavarro/neutron | neutron/tests/base.py | 1 | 13886 | # Copyright 2010-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 required by ap... | apache-2.0 | -2,358,476,202,939,519,500 | 33.542289 | 79 | 0.642086 | false |
ryancanhelpyou/servo | components/script/dom/bindings/codegen/parser/tests/test_enum.py | 134 | 2866 | import WebIDL
def WebIDLTest(parser, harness):
parser.parse("""
enum TestEnum {
"",
"foo",
"bar"
};
interface TestEnumInterface {
TestEnum doFoo(boolean arg);
readonly attribute TestEnum foo;
};
""")
results = parser.finish... | mpl-2.0 | 5,266,820,082,998,595,000 | 34.382716 | 99 | 0.624215 | false |
noslenfa/tdjangorest | uw/lib/python2.7/site-packages/IPython/utils/data.py | 3 | 1165 | # encoding: utf-8
"""Utilities for working with data structures like lists, dicts and tuples.
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2011 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the f... | apache-2.0 | -2,935,835,936,047,431,700 | 32.285714 | 78 | 0.593991 | 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.