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 |
|---|---|---|---|---|---|---|---|---|---|---|
aio-libs/multidict | tests/test_abc.py | 1 | 3176 | from collections.abc import Mapping, MutableMapping
import pytest
from multidict import MultiMapping, MutableMultiMapping
from multidict._compat import USE_CYTHON
from multidict._multidict_py import CIMultiDict as PyCIMultiDict
from multidict._multidict_py import CIMultiDictProxy as PyCIMultiDictProxy
from multidict.... | apache-2.0 | 7,996,560,003,841,092,000 | 23.060606 | 77 | 0.67034 | false |
taedori81/gentlecoffee | saleor/registration/views.py | 13 | 5525 | try:
from urllib.parse import urlencode
except ImportError:
from urllib import urlencode
from django.conf import settings
from django.contrib import messages
from django.contrib.auth import login as auth_login, logout as auth_logout
from django.contrib.auth.decorators import login_required
from django.contrib.... | bsd-3-clause | -1,762,914,693,102,405,600 | 36.080537 | 79 | 0.662443 | false |
obimod/taiga-back | tests/integration/test_custom_attributes_tasks.py | 20 | 7862 | # Copyright (C) 2015 Andrey Antukh <niwi@niwi.be>
# Copyright (C) 2015 Jesús Espino <jespinog@gmail.com>
# Copyright (C) 2015 David Barragán <bameda@dbarragan.com>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the F... | agpl-3.0 | 6,188,127,188,266,182,000 | 37.910891 | 89 | 0.635369 | false |
dmilith/SublimeText3-dmilith | Package Storage/lsp_utils/node-runtime/12.20.2/node/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py | 11 | 1333 | # Copyright 2014 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.
"""A clone of the default copy.deepcopy that doesn't handle cyclic
structures or complex types except for dicts and lists. This is
because gyp copies so large structur... | mit | -6,670,855,597,996,581,000 | 25.66 | 72 | 0.690173 | false |
Austin503/pyglet | contrib/layout/layout/gl/__init__.py | 29 | 6125 | #!/usr/bin/env python
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id$'
from pyglet.gl import *
from pyglet.event import *
from layout.css import *
from layout.content import *
from layout.frame import *
from layout.locator import *
from layout.view import *
from layout.gl.device import *
from layout.... | bsd-3-clause | 565,995,281,508,547,400 | 33.217877 | 79 | 0.617796 | false |
wuhengzhi/chromium-crosswalk | tools/perf/benchmarks/media.py | 3 | 4626 | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from core import perf_benchmark
from telemetry import benchmark
from telemetry.page import legacy_page_test
from telemetry.value import list_of_scalar_value... | bsd-3-clause | -1,252,890,044,117,824,000 | 30.684932 | 79 | 0.720061 | false |
moolitayer/cockpit | test-avocado/libnetwork.py | 26 | 3621 | # -*- coding: utf-8 -*-
# This file is part of Cockpit.
#
# Copyright (C) 2015 Red Hat, Inc.
#
# Cockpit is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your... | lgpl-2.1 | -2,464,310,632,489,320,000 | 39.233333 | 98 | 0.639602 | false |
cmvac/demagorgon.repository | plugin.audio.m80/jscrypto.py | 77 | 4201 | import hashlib
import json
import base64
import pyaes
from pkcs7 import PKCS7Encoder
import os, urllib2,urllib
import cookielib
def evpKDF(passwd, salt, key_size=8, iv_size=4, iterations=1, hash_algorithm="md5"):
target_key_size = key_size + iv_size
derived_bytes = ""
number_of_derived_words = 0
b... | gpl-2.0 | -8,371,376,505,882,718,000 | 29.442029 | 305 | 0.674363 | false |
xianian/qt-creator | share/qtcreator/debugger/boosttypes.py | 2 | 5200 | ############################################################################
#
# Copyright (C) 2015 The Qt Company Ltd.
# Contact: http://www.qt.io/licensing
#
# This file is part of Qt Creator.
#
# Commercial License Usage
# Licensees holding valid commercial Qt licenses may use this file in
# accordance with the comm... | lgpl-2.1 | -6,193,715,642,400,309,000 | 35.363636 | 92 | 0.618654 | false |
koharjidan/litecoin | contrib/seeds/makeseeds.py | 1 | 4297 | #!/usr/bin/env python
#
# Generate seeds.txt from Pieter's DNS seeder
#
NSEEDS=512
MAX_SEEDS_PER_ASN=2
MIN_BLOCKS = 337600
# These are hosts that have been observed to be behaving strangely (e.g.
# aggressively connecting to every node).
SUSPICIOUS_HOSTS = set([
"130.211.129.106", "178.63.107.226",
"83.81.1... | mit | 5,958,086,188,028,758,000 | 30.595588 | 186 | 0.555504 | false |
bczmufrn/frequencia | frequencia/justificativas/rules.py | 1 | 1401 | import rules
from frequencia.accounts.rules import is_gestor, is_bolsista
from frequencia.vinculos.utils import get_setores
#Predicates
@rules.predicate
def is_justificativa_author(user, justificativa):
try:
return justificativa.vinculo in user.vinculos.all()
except:
return None
@rules.predicate
def is_justifi... | mit | -4,319,390,705,390,975,000 | 28.208333 | 103 | 0.785867 | false |
pf4d/dolfin-adjoint | tests_dolfin/heat/heat.py | 1 | 1357 | import sys
from dolfin import *
from dolfin_adjoint import *
f = Expression("x[0]*(x[0]-1)*x[1]*(x[1]-1)")
mesh = UnitSquareMesh(4, 4)
V = FunctionSpace(mesh, "CG", 1)
def main(ic, annotate=True):
u = TrialFunction(V)
v = TestFunction(V)
u_0 = Function(V, name="Solution")
u_0.assign(ic, annotate=Fal... | lgpl-3.0 | 4,663,922,794,525,074,000 | 22.807018 | 199 | 0.573324 | false |
darkryder/django | django/core/management/utils.py | 67 | 3739 | from __future__ import unicode_literals
import os
import sys
from subprocess import PIPE, Popen
from django.apps import apps as installed_apps
from django.utils import six
from django.utils.crypto import get_random_string
from django.utils.encoding import DEFAULT_LOCALE_ENCODING, force_text
from .base import Command... | bsd-3-clause | -5,281,129,796,309,336,000 | 31.798246 | 89 | 0.609789 | false |
lduarte1991/edx-platform | common/djangoapps/entitlements/api/v1/filters.py | 18 | 1215 | from django_filters import rest_framework as filters
from entitlements.models import CourseEntitlement
class CharListFilter(filters.CharFilter):
""" Filters a field via a comma-delimited list of values. """
def filter(self, qs, value): # pylint: disable=method-hidden
if value not in (None, ''):
... | agpl-3.0 | -3,659,096,410,733,860,000 | 28.634146 | 107 | 0.618107 | false |
mlperf/training_results_v0.7 | Fujitsu/benchmarks/resnet/implementations/implementation_open/mxnet/3rdparty/tvm/nnvm/python/nnvm/compiler/param_dict.py | 2 | 2538 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | 923,615,052,900,351,000 | 31.961039 | 72 | 0.675335 | false |
64studio/pdk | pdk/xml_legacy/sax/expatreader.py | 11 | 15122 | """
SAX driver for the pyexpat C module. This driver works with
pyexpat.__version__ == '2.22'.
"""
version = "0.20"
from xml.sax._exceptions import *
from xml.sax.handler import feature_validation, feature_namespaces
from xml.sax.handler import feature_namespace_prefixes
from xml.sax.handler import feature_external_... | gpl-2.0 | -3,606,978,457,409,362,000 | 34.249417 | 79 | 0.600913 | false |
BassantMorsi/finderApp | lib/python2.7/site-packages/numpy/doc/structured_arrays.py | 56 | 11442 | """
=================
Structured Arrays
=================
Introduction
============
NumPy provides powerful capabilities to create arrays of structured datatype.
These arrays permit one to manipulate the data by named fields. A simple
example will show what is meant.: ::
>>> x = np.array([(1,2.,'Hello'), (2,3.,"Wo... | mit | 3,150,666,122,774,913,000 | 38.455172 | 91 | 0.621045 | false |
Bridgewater/appetite | src/modules/conn_manager.py | 1 | 31814 | #!/usr/bin/env python
# pylint: disable=too-complex,relative-import,no-member,invalid-name,too-many-arguments,import-error,too-many-nested-blocks
"""Command Manger
Module to handle ssh communication. Commands are either dictated though
functions or restricted configuration files.
"""
import os
import json
import tim... | apache-2.0 | 2,881,759,527,018,070,000 | 32.880724 | 160 | 0.550984 | false |
bhenne/MoSP | mosp_examples/pause_wiggler.py | 1 | 1479 | #!/bin/env python
""" Pausing example: person is paused at every node
- random movement
- at every node the person stops for 20 ticks
- uses pause_movement and Simulation.person_alarm_clock for waking up
(could alternativly be implemented using a special Location at every node)
- output t... | gpl-3.0 | 6,816,193,836,533,403,000 | 31.152174 | 84 | 0.697093 | false |
Knotis/django-oauth-toolkit | oauth2_provider/tests/settings.py | 14 | 2859 | import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = ()
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'example.sqlite',
}
}
ALLOWED_HOSTS = []
TIME_ZONE = 'America/Chicago'
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
USE_I18N = True
USE_L10N = Tr... | bsd-2-clause | -4,409,790,341,584,948,700 | 20.992308 | 95 | 0.578524 | false |
mouradmourafiq/django-calendar | calendars/models/cals.py | 1 | 20998 | # -*- coding: utf-8 -*-
'''
Created on Mar 20, 2011
@author: Mourad Mourafiq
@copyright: Copyright © 2011
other contributers:
'''
import os
import heapq
from django.db import models
from django.conf import settings
from django.template.defaultfilters import truncatewords
from django.contrib.auth.models import User
f... | bsd-2-clause | -1,781,793,395,687,973,400 | 36.764388 | 132 | 0.591418 | false |
ezralanglois/arachnid | arachnid/core/gui/property/ButtonDelegate.py | 1 | 10446 | ''' Defines a set of delegates to display widgets in a table/tree cell
.. Created on Dec 11, 2010
.. codeauthor:: Robert Langlois <rl2528@columbia.edu>
'''
#from ..dialogs.WorkflowDialog import Dialog as WorkflowDialog
from ..util.qt4_loader import QtGui,QtCore, qtSignal
import os, logging
_logger = logging.getLogger... | gpl-2.0 | 5,363,836,567,735,419,000 | 32.480769 | 110 | 0.574 | false |
ZhangXinNan/tensorflow | tensorflow/contrib/boosted_trees/estimator_batch/trainer_hooks.py | 28 | 9303 | # 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 | 1,792,694,783,903,156,200 | 39.447826 | 81 | 0.689885 | false |
gvb/odoo | addons/point_of_sale/report/__init__.py | 381 | 1238 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | 5,785,562,049,435,779,000 | 37.6875 | 78 | 0.647011 | false |
makinacorpus/django | django/core/files/locks.py | 114 | 1789 | """
Portable file locking utilities.
Based partially on example by Jonathan Feignberg <jdf@pobox.com> in the Python
Cookbook, licensed under the Python Software License.
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65203
Example Usage::
>>> from django.core.files import locks
>>> with open('.... | bsd-3-clause | -3,588,766,957,797,814,000 | 24.927536 | 78 | 0.643935 | false |
ConstantineLignos/Codeswitchador | tools/filter_cs.py | 1 | 2151 | #!/usr/bin/env python
"""
Remove non-codeswitched tweets.
Constantine Lignos
February 2013
"""
# Copyright (c) 2013 Constantine Lignos
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Red... | bsd-2-clause | 5,226,822,638,421,615,000 | 33.142857 | 73 | 0.738726 | false |
fritsvanveen/QGIS | python/ext-libs/requests/__init__.py | 149 | 2215 | # -*- coding: utf-8 -*-
# __
# /__) _ _ _ _ _/ _
# / ( (- (/ (/ (- _) / _)
# /
"""
Requests HTTP library
~~~~~~~~~~~~~~~~~~~~~
Requests is an HTTP library, written in Python, for human beings. Basic GET
usage:
>>> import requests
>>> r = requests.get('https://www.python.org')
>>> ... | gpl-2.0 | -3,409,974,038,982,252,500 | 23.88764 | 77 | 0.662754 | false |
WildGenie/mtasa-blue | vendor/google-breakpad/src/tools/gyp/test/generator-output/gyptest-subdir2-deep.py | 216 | 1034 | #!/usr/bin/env python
# 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.
"""
Verifies building a target from a .gyp file a few subdirectories
deep when the --generator-output= option is used to put the build
confi... | gpl-3.0 | 173,020,364,429,562,100 | 26.945946 | 72 | 0.665377 | false |
jmesteve/asterisk | openerp/addons/analytic/analytic.py | 8 | 17640 | # -*- 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,536,599,260,709,302,000 | 49.25641 | 372 | 0.588152 | false |
arokem/nipype | nipype/algorithms/tests/test_overlap.py | 7 | 1388 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
import os
from shutil import rmtree
from tempfile import mkdtemp
from nipype.testing import (assert_equal, assert_raises,
assert_a... | bsd-3-clause | 5,700,033,599,069,459,000 | 26.215686 | 73 | 0.659222 | false |
Emercoin/emcweb | engine/emcweb/emcweb_webapi/views/wallet.py | 1 | 2709 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
import sys
import time
from pathlib import Path
from flask import current_app
from flask_login import current_user
from flask_restful import reqparse
from emcweb.emcweb_webapi.login_resource import LoginResource
from werkzeug.utils import secur... | gpl-3.0 | 9,080,710,991,753,697,000 | 32.036585 | 78 | 0.555556 | false |
velorientc/git_test7 | contrib/thgdebugtools/widgets.py | 1 | 6451 | # widgets.py - menu to find invisible widgets and gc issues
#
# Copyright 2013 Yuya Nishihara <yuya@tcha.org>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2, incorporated herein by reference.
import cgi, gc, pprint, re, weakref
from PyQt4.QtCore impo... | gpl-2.0 | 2,814,716,836,457,373,700 | 31.746193 | 79 | 0.598357 | false |
jonathan-beard/edx-platform | common/djangoapps/third_party_auth/models.py | 16 | 18301 | # -*- coding: utf-8 -*-
"""
Models used to implement SAML SSO support in third_party_auth
(inlcuding Shibboleth support)
"""
from config_models.models import ConfigurationModel, cache
from django.conf import settings
from django.core.exceptions import ValidationError
from django.db import models
from django.utils impor... | agpl-3.0 | 6,142,449,522,914,404,000 | 42.264775 | 120 | 0.6445 | false |
jwalgran/otm-core | opentreemap/manage_treemap/tests/test_instance_invitations.py | 3 | 7088 | # -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from registration.models import RegistrationProfile
from django.core import mail
from django.http import HttpRequest
from django.test import override_settings
from treemap.models impo... | gpl-3.0 | -3,147,909,887,763,648,500 | 33.407767 | 79 | 0.62627 | false |
framon/samba | python/samba/ndr.py | 45 | 1563 | # -*- coding: utf-8 -*-
# Unix SMB/CIFS implementation.
# Copyright © Jelmer Vernooij <jelmer@samba.org> 2008
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, ... | gpl-3.0 | 4,792,612,824,085,504,000 | 30.24 | 76 | 0.701665 | false |
jbedorf/tensorflow | tensorflow/python/framework/proto_test.py | 178 | 1704 | # 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,600,447,263,616,203,000 | 35.255319 | 80 | 0.704225 | false |
yanchen036/tensorflow | tensorflow/contrib/labeled_tensor/python/ops/ops.py | 7 | 46402 | # 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 | -87,739,129,525,728,700 | 35.223263 | 81 | 0.664691 | false |
mfrlin/zemcounters | zemcounters/tailer.py | 1 | 3196 | import time
import bson
import bson.objectid
import bson.errors
import tornado.escape
from tornado.websocket import WebSocketHandler
from tornado.web import RequestHandler
from tornado.ioloop import IOLoop
from tornado import gen
class TailHandler(WebSocketHandler):
listeners = {}
def open(self, counter_id)... | mit | 2,276,216,023,622,111,200 | 28.054545 | 92 | 0.589487 | false |
jreback/pandas | pandas/tests/series/apply/test_series_apply.py | 1 | 29906 | from collections import Counter, defaultdict
from itertools import chain
import numpy as np
import pytest
from pandas.core.dtypes.common import is_number
import pandas as pd
from pandas import DataFrame, Index, MultiIndex, Series, isna, timedelta_range
import pandas._testing as tm
from pandas.core.base import Specif... | bsd-3-clause | -8,193,708,597,075,491,000 | 35.162031 | 88 | 0.534642 | false |
gr33ndata/irlib | irlib/matrix.py | 1 | 17160 | '''
Informations Retrieval Library
==============================
Matrix is an index for documents, terms, and their classes.
'''
# Author: Tarek Amr <@gr33ndata>
import sys, math, random
from superlist import SuperList
from progress import Progress
class MatrixDocs(list):
def doc_fields(self):
retur... | mit | 2,417,124,493,609,315,300 | 34.163934 | 119 | 0.505186 | false |
pchauncey/ansible | test/units/modules/network/ios/test_ios_ping.py | 20 | 2742 | #
# (c) 2016 Red Hat Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is d... | gpl-3.0 | -178,382,658,840,783,000 | 38.171429 | 91 | 0.674325 | false |
kkochubey1/docker-sikuli-novnc | web/log/config.py | 15 | 3429 | #!/usr/bin/env python
import sys
import logging
import logging.handlers
#The terminal has 8 colors with codes from 0 to 7
BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = range(8)
#These are the sequences need to get colored ouput
RESET_SEQ = "\033[0m"
COLOR_SEQ = "\033[1;%dm"
BOLD_SEQ = "\033[1m"
#The backg... | apache-2.0 | 4,313,582,680,282,175,500 | 37.52809 | 79 | 0.546223 | false |
tkinz27/ansible-modules-core | cloud/linode/linode.py | 142 | 18004 | #!/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 | 5,167,190,669,148,008,000 | 34.936128 | 100 | 0.556765 | false |
babycaseny/poedit | deps/boost/libs/python/pyste/src/Pyste/HeaderExporter.py | 54 | 3065 | # Copyright Bruno da Silva de Oliveira 2003. Use, modification and
# distribution is subject to the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
from Exporter import Exporter
from ClassExporter import ClassExporter
from FunctionExpor... | mit | 7,036,138,974,670,937,000 | 36.839506 | 81 | 0.625122 | false |
necessary129/GitFetcher | cronjob.py | 1 | 1771 | #!/usr/bin/python3
# Copyright (C) 2015 Muhammed Shamil K
#
# 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 | 1,234,926,523,176,994,800 | 25.848485 | 86 | 0.656126 | false |
kingvuplus/b-p | lib/python/Screens/Scart.py | 126 | 1771 | from Screen import Screen
from MessageBox import MessageBox
from Components.AVSwitch import AVSwitch
from Tools import Notifications
class Scart(Screen):
def __init__(self, session, start_visible=True):
Screen.__init__(self, session)
self.msgBox = None
self.notificationVisible = None
self.avswitch = AVSwitch... | gpl-2.0 | -7,391,896,683,107,810,000 | 32.415094 | 217 | 0.735178 | false |
ar4s/django | django/db/backends/postgresql_psycopg2/version.py | 12 | 1502 | """
Extracts the version of the PostgreSQL server.
"""
import re
# This reg-exp is intentionally fairly flexible here.
# Needs to be able to handle stuff like:
# PostgreSQL 8.3.6
# EnterpriseDB 8.3
# PostgreSQL 8.3 beta4
# PostgreSQL 8.4beta1
VERSION_RE = re.compile(r'\S+ (\d+)\.(\d+)\.?(\d+)?')
def _parse_... | bsd-3-clause | 6,952,758,338,925,377,000 | 33.136364 | 79 | 0.671771 | false |
luzfcb/django-simple-history | simple_history/registry_tests/tests.py | 1 | 5594 | from __future__ import unicode_literals
import unittest
from datetime import datetime, timedelta
import django
from django.contrib.auth import get_user_model
from django.core import management
from django.test import TestCase
from simple_history import exceptions, register
from six.moves import cStringIO as StringIO
... | bsd-3-clause | 1,913,832,650,098,920,200 | 34.858974 | 78 | 0.613693 | false |
ChengXiaoZ/MariaDBserver | storage/tokudb/mysql-test/tokudb/t/change_column_text.py | 54 | 1409 | import sys
def main():
print "# this test is generated by change_text.py"
print "# generate hot text expansion test cases"
print "--disable_warnings"
print "DROP TABLE IF EXISTS t;"
print "--enable_warnings"
print "SET SESSION DEFAULT_STORAGE_ENGINE=\"TokuDB\";"
print "SET SESSION TOKUDB_DIS... | gpl-2.0 | -4,373,467,786,997,397,500 | 51.185185 | 117 | 0.572747 | false |
KaranToor/MA450 | google-cloud-sdk/lib/surface/meta/debug.py | 6 | 1629 | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | apache-2.0 | 3,440,734,472,258,757,000 | 32.9375 | 79 | 0.731123 | false |
chhao91/QGIS | python/ext-libs/pygments/styles/friendly.py | 364 | 2515 | # -*- coding: utf-8 -*-
"""
pygments.styles.friendly
~~~~~~~~~~~~~~~~~~~~~~~~
A modern style based on the VIM pyte theme.
:copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.style import Style
from pygments.token import Keyw... | gpl-2.0 | -7,019,996,999,766,329,000 | 33.930556 | 70 | 0.450099 | false |
abhishek-ch/hue | desktop/core/ext-py/tablib-0.10.0/tablib/packages/odf3/presentation.py | 56 | 2716 | # -*- coding: utf-8 -*-
# Copyright (C) 2006-2007 Søren Roug, European Environment Agency
#
# 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 Software Foundation; either
# version 2.1 of the License, or (at you... | apache-2.0 | 4,159,594,601,393,883,000 | 30.941176 | 80 | 0.704236 | false |
abloomston/sympy | sympy/core/tests/test_arit.py | 14 | 57459 | from __future__ import division
from sympy import (Basic, Symbol, sin, cos, exp, sqrt, Rational, Float, re, pi,
sympify, Add, Mul, Pow, Mod, I, log, S, Max, symbols, oo, Integer,
sign, im, nan, Dummy, factorial, comp
)
from sympy.core.compatibility import long, range
from sympy.utilities.iterables impo... | bsd-3-clause | -4,336,170,053,634,700,300 | 29.449921 | 80 | 0.568597 | false |
jemmyw/ansible | lib/ansible/plugins/action/copy.py | 10 | 12996 | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | gpl-3.0 | -2,922,001,833,445,230,600 | 43.204082 | 159 | 0.586103 | false |
blitzmann/Pyfa | scripts/dump_data.py | 3 | 3214 | #!/usr/bin/env python
"""
This script bootstraps Phobos from a supplied path and feeds it
information regarding EVE data paths and where to dump data. It then imports
some other scripts and uses them to convert the json data into a SQLite
database and then compare the new database to the existing one, producing a
diff ... | gpl-3.0 | 7,603,172,317,837,979,000 | 38.195122 | 173 | 0.743311 | false |
miguelpalacio/python-for-android | python-build/python-libs/gdata/src/gdata/Crypto/Util/number.py | 232 | 5495 | #
# number.py : Number-theoretic functions
#
# 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 for us... | apache-2.0 | -6,593,837,490,705,438,000 | 26.338308 | 78 | 0.573248 | false |
cinnamoncoin/eloipool-1 | jsonrpcserver.py | 8 | 11072 | # Eloipool - Python Bitcoin pool server
# Copyright (C) 2011-2013 Luke Dashjr <luke-jr+eloipool@utopios.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# L... | agpl-3.0 | 132,312,010,093,812,100 | 28.525333 | 160 | 0.680094 | false |
huzq/scikit-learn | examples/svm/plot_separating_hyperplane_unbalanced.py | 44 | 2463 | """
=================================================
SVM: Separating hyperplane for unbalanced classes
=================================================
Find the optimal separating hyperplane using an SVC for classes that
are unbalanced.
We first find the separating plane with a plain SVC and then plot
(dashed) the ... | bsd-3-clause | -1,106,928,484,384,830,500 | 29.7875 | 78 | 0.658546 | false |
zhaojiedi1992/pm | pm/pipelines.py | 1 | 3614 | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import json
import csv
import codecs
from collections import OrderedDict
#from pm.comm.log import *
from pm.items import PmIte... | apache-2.0 | 7,541,520,481,836,694,000 | 34.137255 | 96 | 0.589565 | false |
whuang001/cts | gui/Interest.py | 1 | 2153 | """ shwo user who share similar interest """
from PyQt5.QtWidgets import QWidget, QTableWidgetItem
from PyQt5 import QtCore, QtGui, QtWidgets
class Interest(QWidget):
def __init__(self, parent=None):
super(Interest, self).__init__(parent)
self.setupUi(self)
def setupUi(self, Form):
F... | mit | 3,373,863,203,408,263,000 | 40.423077 | 86 | 0.681375 | false |
postfix/viper-1 | modules/clamav.py | 3 | 2365 | # This file is part of Viper - https://github.com/viper-framework/viper
# See the file 'LICENSE' for copying permission.
try:
import pyclamd
HAVE_CLAMD = True
except ImportError:
HAVE_CLAMD = False
from viper.common.abstracts import Module
from viper.core.session import __sessions__
class ClamAV(Module)... | bsd-3-clause | -3,006,563,025,738,192,000 | 30.118421 | 110 | 0.551797 | false |
mydongistiny/external_chromium_org | ui/resources/resource_check/resource_scale_factors.py | 81 | 4858 | # Copyright (c) 2012 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.
"""Presubmit script for Chromium browser resources.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about t... | bsd-3-clause | 8,114,058,402,931,702,000 | 38.819672 | 80 | 0.649856 | false |
zchking/odoo | addons/anonymization/anonymization.py | 77 | 28690 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
# ... | agpl-3.0 | 4,006,273,023,469,566,000 | 43.959248 | 157 | 0.561846 | false |
hbenniou/trunk | examples/not-working/insertion-sort-collider.py | 8 | 1378 |
""" NOTE
Needs yade compiled with CGAL feature
"""
O.engines=[
ForceResetter(),
InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Box_Aabb(),Bo1_Facet_Aabb()]),
InteractionLoop([Ig2_Facet_Sphere_ScGeom()],[Ip2_FrictMat_FrictMat_FrictPhys()],[Law2_ScGeom_FrictPhys_CundallStrack()],),
NewtonIntegrator(damping=0.01,gravi... | gpl-2.0 | 7,653,565,126,303,174,000 | 30.318182 | 123 | 0.694485 | false |
jmartinm/invenio | modules/websubmit/lib/functions/Mail_Approval_Request_to_Referee.py | 33 | 20233 | ## This file is part of Invenio.
## Copyright (C) 2008, 2009, 2010, 2011 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your option) any later ... | gpl-2.0 | 4,971,879,229,730,985,000 | 48.469438 | 147 | 0.562151 | false |
brakhane/python-mode | pymode/libs2/rope/refactor/move.py | 30 | 26601 | """A module containing classes for move refactoring
`create_move()` is a factory for creating move refactoring objects
based on inputs.
"""
from rope.base import pyobjects, codeanalyze, exceptions, pynames, taskhandle, evaluate, worder
from rope.base.change import ChangeSet, ChangeContents, MoveResource
from rope.ref... | lgpl-3.0 | -7,097,453,860,980,867,000 | 41.290938 | 95 | 0.608323 | false |
noba3/KoTos | addons/plugin.video.mega/resources/lib/platform_libraries/Xbox/Crypto/Protocol/AllOrNothing.py | 226 | 10952 | """This file implements all-or-nothing package transformations.
An all-or-nothing package transformation is one in which some text is
transformed into message blocks, such that all blocks must be obtained before
the reverse transformation can be applied. Thus, if any blocks are corrupted
or lost, the original message... | gpl-2.0 | -3,635,109,120,539,521,000 | 36.125424 | 79 | 0.612856 | false |
tkasp/osmose-backend | analysers/analyser_osmosis_relation_open.py | 4 | 3760 | #!/usr/bin/env python
#-*- coding: utf-8 -*-
###########################################################################
## ##
## Copyrights Frédéric Rodrigo 2020 ##
## ... | gpl-3.0 | -6,596,252,443,867,429,000 | 40.296703 | 116 | 0.490953 | false |
PRIMEDesigner15/PRIMEDesigner15 | dependencies/Lib/test/unittests/test_nntplib.py | 23 | 56030 | import io
import socket
import datetime
import textwrap
import unittest
import functools
import contextlib
from test import support
from nntplib import NNTP, GroupInfo, _have_ssl
import nntplib
if _have_ssl:
import ssl
TIMEOUT = 30
# TODO:
# - test the `file` arg to more commands
# - test error conditions
# - tes... | bsd-3-clause | -3,447,265,231,258,644,000 | 38.45 | 99 | 0.57634 | false |
Ophiuchus1312/enigma2-master | lib/python/Screens/TimerEntry.py | 1 | 22034 | # -*- coding: utf-8 -*-
from Screens.Screen import Screen
import ChannelSelection
from ServiceReference import ServiceReference
from Components.config import config, ConfigSelection, ConfigText, ConfigSubList, ConfigDateTime, ConfigClock, ConfigYesNo, getConfigListEntry
from Components.ActionMap import NumberActionMap
... | gpl-2.0 | 1,782,359,616,574,965,800 | 37.929329 | 357 | 0.707044 | false |
mistercrunch/airflow | airflow/providers/apache/hive/transfers/hive_to_samba.py | 7 | 2867 | #
# 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 | -7,095,364,778,065,740,000 | 37.743243 | 109 | 0.698291 | false |
faribas/RMG-Py | mergeModels.py | 4 | 4047 | #!/usr/bin/env python
# encoding: utf-8
"""
This script enables the automatic merging of two or more Chemkin files (and
associated species dictionaries) into a single unified Chemkin file. Simply
pass the paths of the Chemkin files and species dictionaries on the
command-line, e.g.
$ python mergeModels.py /path/... | mit | 8,199,688,920,097,407,000 | 45.528736 | 181 | 0.668891 | false |
lixiangning888/whole_project | analyzer/windows/modules/packages/html.py | 1 | 1174 | # Copyright (C) 2010-2015 Cuckoo Foundation.
# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org
# See the file 'docs/LICENSE' for copying permission.
import shutil
import logging
from lib.common.abstracts import Package
log = logging.getLogger(__name__)
class HTML(Package):
"""HTML file analys... | lgpl-3.0 | 7,393,443,926,770,276,000 | 35.6875 | 83 | 0.646508 | false |
AltarBeastiful/qt-creator | tests/system/suite_APTW/tst_APTW03/test.py | 4 | 7796 | #############################################################################
##
## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
## Contact: http://www.qt-project.org/legal
##
## This file is part of Qt Creator.
##
## Commercial License Usage
## Licensees holding valid commercial Qt licenses may use this f... | lgpl-2.1 | 6,483,492,679,437,618,000 | 53.901408 | 102 | 0.615829 | false |
MKTCloud/MKTCloud | openstack_dashboard/dashboards/admin/images_and_snapshots/snapshots/views.py | 10 | 2163 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# no... | apache-2.0 | 7,368,084,944,129,775,000 | 33.333333 | 78 | 0.666667 | false |
shepdelacreme/ansible | test/units/modules/network/f5/test_bigip_cli_script.py | 8 | 3465 | # -*- coding: utf-8 -*-
#
# Copyright: (c) 2018, F5 Networks Inc.
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import os
import json
import pytest
import sys
from nose.plugins.skip i... | gpl-3.0 | -1,317,151,865,446,558,200 | 29.9375 | 91 | 0.670707 | false |
astaninger/speakout | venv/lib/python3.6/site-packages/flask_pymongo/tests/test_gridfs.py | 2 | 3039 | from hashlib import md5
from io import BytesIO
from bson.objectid import ObjectId
from gridfs import GridFS
from werkzeug.exceptions import NotFound
import pytest
from flask_pymongo.tests.util import FlaskPyMongoTest
class GridFSCleanupMixin(object):
def tearDown(self):
gridfs = GridFS(self.mongo.db)
... | mit | -5,971,774,604,562,741,000 | 29.39 | 73 | 0.631787 | false |
ahmetdaglarbas/e-commerce | oscar/apps/analytics/migrations/0002_auto_20140827_1705.py | 49 | 1091 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('analytics', '0001_initial'),
('catalogue', '0001_initial'),
migrations.swappable_dependency(... | bsd-3-clause | -7,094,304,504,269,997,000 | 30.171429 | 109 | 0.5967 | false |
halexus/Uno | src/main.py | 1 | 4228 | #TODO: KI
"""
Uno: A clone of the cardgame UNO (C)
Copyright (C) 2011 Alexander Thaller <alex.t@gmx.at>
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
(a... | gpl-3.0 | -2,807,757,647,145,516,000 | 40.727273 | 101 | 0.676679 | false |
ryfx/modrana | core/platform_detection.py | 1 | 2696 | # modRana current-platform detection
import os
import sys
from core import qrc
DEFAULT_DEVICE_MODULE_ID = "pc"
DEFAULT_GUI_MODULE_ID = "GTK"
import logging
log = logging.getLogger("core.platform_detection")
def getBestDeviceModuleId():
log.info("** detecting current device **")
result = _check()
if re... | gpl-3.0 | 6,722,168,872,536,230,000 | 28.955556 | 94 | 0.591617 | false |
shifter/rekall | rekall-core/rekall/plugins/addrspaces/elfcore.py | 3 | 9619 | # Rekall Memory Forensics
#
# Copyright 2012 Philippe Teuwen, Thorsten Sick, Michael Cohen
# Copyright 2013 Google Inc. All Rights Reserved.
#
# 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; eit... | gpl-2.0 | 8,949,934,098,174,020,000 | 35.996154 | 80 | 0.613785 | false |
drinkssu/YourVoiceAlarmBackend | lib/werkzeug/contrib/atom.py | 311 | 15281 | # -*- coding: utf-8 -*-
"""
werkzeug.contrib.atom
~~~~~~~~~~~~~~~~~~~~~
This module provides a class called :class:`AtomFeed` which can be
used to generate feeds in the Atom syndication format (see :rfc:`4287`).
Example::
def atom_feed(request):
feed = AtomFeed("My Blog", feed... | apache-2.0 | 1,827,128,304,032,519,200 | 43.037464 | 79 | 0.55304 | false |
citrix-openstack-build/tempest | tempest/services/compute/json/images_client.py | 6 | 5332 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 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.apach... | apache-2.0 | -4,770,483,384,755,731,000 | 35.772414 | 79 | 0.590585 | false |
rugk/letsencrypt | letsencrypt/constants.py | 10 | 2636 | """Let's Encrypt constants."""
import os
import logging
from acme import challenges
SETUPTOOLS_PLUGINS_ENTRY_POINT = "letsencrypt.plugins"
"""Setuptools entry point group name for plugins."""
CLI_DEFAULTS = dict(
config_files=[
"/etc/letsencrypt/cli.ini",
# http://freedesktop.org/wiki/Software/x... | apache-2.0 | -2,338,074,580,520,678,000 | 26.747368 | 73 | 0.688923 | false |
shastikk/youtube-dl | youtube_dl/extractor/mitele.py | 18 | 2942 | from __future__ import unicode_literals
from .common import InfoExtractor
from ..compat import compat_urllib_parse
from ..utils import (
encode_dict,
get_element_by_attribute,
int_or_none,
)
class MiTeleIE(InfoExtractor):
IE_DESC = 'mitele.es'
_VALID_URL = r'http://www\.mitele\.es/[^/]+/[^/]+/[^/... | unlicense | 4,136,121,474,675,795,000 | 33.611765 | 105 | 0.507818 | false |
zstackio/zstack-woodpecker | integrationtest/vm/perf/sg/test_crt_sg_with_max_threads.py | 4 | 5749 | '''
New Perf Test for creating SG and other SG rules related operations.
The created number will depends on the environment variable: ZSTACK_TEST_NUM
The default max threads are 1000. It could be modified by env variable:
ZSTACK_THREAD_THRESHOLD
This case might need to run in KVM simulator environemnt, if t... | apache-2.0 | -7,287,135,798,789,799,000 | 33.708075 | 249 | 0.647765 | false |
40223101/2015final2 | static/Brython3.1.1-20150328-091302/Lib/browser/markdown.py | 623 | 13060 | # -*- coding: utf-8 -*-
try:
import _jsre as re
except:
import re
import random
import time
letters = 'abcdefghijklmnopqrstuvwxyz'
letters += letters.upper()+'0123456789'
class URL:
def __init__(self,src):
elts = src.split(maxsplit=1)
self.href = elts[0]
self.alt = ''
if ... | gpl-3.0 | -5,391,237,700,036,666,000 | 29.87234 | 76 | 0.415039 | false |
zakuro9715/lettuce | tests/integration/lib/Django-1.2.5/tests/regressiontests/admin_widgets/tests.py | 38 | 15241 | # encoding: utf-8
from datetime import datetime
from unittest import TestCase
from django import forms
from django.conf import settings
from django.contrib import admin
from django.contrib.admin import widgets
from django.contrib.admin.widgets import FilteredSelectMultiple, AdminSplitDateTime
from django.contrib.admi... | gpl-3.0 | 8,476,907,166,488,776,000 | 44.610778 | 455 | 0.648024 | false |
Mercy-Nekesa/sokoapp | sokoapp/trending/managers.py | 2 | 1033 | import datetime
from django.core.exceptions import ObjectDoesNotExist
from django.db import models
from django.db.models import Sum
from django.contrib.contenttypes.models import ContentType
class TrendingManager(models.Manager):
def trending(self, model, days=30, kind=""):
views = self.filter(
... | mit | 8,048,387,975,360,108,000 | 29.382353 | 80 | 0.563408 | false |
40223137/w1717 | wsgi.py | 1 | 50394 | # coding=utf-8
# 上面的程式內容編碼必須在程式的第一或者第二行才會有作用
################# (1) 模組導入區
# 導入 cherrypy 模組, 為了在 OpenShift 平台上使用 cherrypy 模組, 必須透過 setup.py 安裝
import cherrypy
# 導入 Python 內建的 os 模組, 因為 os 模組為 Python 內建, 所以無需透過 setup.py 安裝
import os
# 導入 random 模組
import random
import math
from cherrypy.lib.static import serve_file
# ... | gpl-3.0 | 8,089,166,200,112,629,000 | 27.722479 | 137 | 0.549803 | false |
Osndok/zim-desktop-wiki | zim/export/__init__.py | 1 | 2943 | # -*- coding: utf-8 -*-
# Copyright 2008-2014 Jaap Karssenberg <jaap.karssenberg@gmail.com>
'''This module contains the framework for exporting data from zim.
The main API for exporting from the application is the L{Exporter}
object. There are subclasses of Exporter to export to multiple files,
to a single file or t... | gpl-2.0 | -6,574,526,091,675,576,000 | 33.623529 | 79 | 0.765885 | false |
mitdrc/director | src/python/director/switchplanner.py | 5 | 12264 | import os
import sys
import vtkAll as vtk
import math
import time
import types
import functools
import numpy as np
from director import transformUtils
from director import lcmUtils
from director.timercallback import TimerCallback
from director.asynctaskqueue import AsyncTaskQueue
from director import objectmodel as om... | bsd-3-clause | 1,303,622,991,604,021,000 | 37.933333 | 186 | 0.712492 | false |
Eric89GXL/scikit-learn | examples/applications/wikipedia_principal_eigenvector.py | 41 | 7742 | """
===============================
Wikipedia principal eigenvector
===============================
A classical way to assert the relative importance of vertices in a
graph is to compute the principal eigenvector of the adjacency matrix
so as to assign to each vertex the values of the components of the first
eigenvect... | bsd-3-clause | -8,951,180,990,388,962,000 | 32.80786 | 79 | 0.647378 | false |
UXE/local-edx | common/test/acceptance/pages/lms/dashboard.py | 17 | 3339 | # -*- coding: utf-8 -*-
"""
Student dashboard page.
"""
from bok_choy.page_object import PageObject
from bok_choy.promise import EmptyPromise
from . import BASE_URL
class DashboardPage(PageObject):
"""
Student dashboard, where the student can view
courses she/he has registered for.
"""
url = BAS... | agpl-3.0 | -5,587,139,556,478,734,000 | 33.42268 | 113 | 0.598383 | false |
ValvePython/vdf | tests/test_binary_vdf.py | 1 | 6876 | import sys
import unittest
import vdf
from io import BytesIO
from collections import OrderedDict
u = str if sys.version_info >= (3,) else unicode
class BinaryVDF(unittest.TestCase):
def test_BASE_INT(self):
repr(vdf.BASE_INT())
def test_simple(self):
pairs = [
('a', 'test'),
... | mit | -505,570,332,584,896,830 | 35.574468 | 159 | 0.601803 | false |
alash3al/rethinkdb | external/gtest_1.6.0/test/gtest_list_tests_unittest.py | 1068 | 5415 | #!/usr/bin/env python
#
# Copyright 2006, 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... | agpl-3.0 | -152,310,566,177,583,100 | 29.59322 | 79 | 0.671099 | false |
40223240/cadb_g3_0420 | static/Brython3.1.1-20150328-091302/Lib/xml/dom/__init__.py | 873 | 4019 | """W3C Document Object Model implementation for Python.
The Python mapping of the Document Object Model is documented in the
Python Library Reference in the section on the xml.dom package.
This package contains the following modules:
minidom -- A simple implementation of the Level 1 DOM with namespace
sup... | gpl-3.0 | -4,832,637,681,941,436,000 | 27.707143 | 76 | 0.657626 | false |
varunnaganathan/django | tests/validation/test_picklable.py | 576 | 2010 | import pickle
from unittest import TestCase
from django.core.exceptions import ValidationError
class PickableValidationErrorTestCase(TestCase):
def test_validationerror_is_picklable(self):
original = ValidationError('a', code='something')
unpickled = pickle.loads(pickle.dumps(original))
... | bsd-3-clause | 8,356,181,291,202,392,000 | 48.02439 | 89 | 0.700498 | false |
manuelnaranjo/LightBlue---Mac | src/mac/_IOBluetooth.py | 1 | 3556 | # Copyright (c) 2009 Bea Lam. All rights reserved.
#
# This file is part of LightBlue.
#
# LightBlue 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 l... | gpl-3.0 | 8,054,115,831,252,876,000 | 40.348837 | 94 | 0.697975 | false |
willemneal/Docky | lib/unidecode/x075.py | 253 | 4675 | data = (
'Zhui ', # 0x00
'Ping ', # 0x01
'Bian ', # 0x02
'Zhou ', # 0x03
'Zhen ', # 0x04
'Senchigura ', # 0x05
'Ci ', # 0x06
'Ying ', # 0x07
'Qi ', # 0x08
'Xian ', # 0x09
'Lou ', # 0x0a
'Di ', # 0x0b
'Ou ', # 0x0c
'Meng ', # 0x0d
'Zhuan ', # 0x0e
'Peng ', # 0x0f
'Lin ', ... | mit | -4,874,793,573,354,910,000 | 17.120155 | 24 | 0.39615 | 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.