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 |
|---|---|---|---|---|---|---|---|---|---|---|
ManageIQ/integration_tests | cfme/networks/cloud_network.py | 2 | 7763 | import attr
from navmazing import NavigateToAttribute
from navmazing import NavigateToSibling
from widgetastic.utils import Version
from widgetastic.utils import VersionPick
from cfme.common import CustomButtonEventsMixin
from cfme.common import Taggable
from cfme.exceptions import ItemNotFound
from cfme.modeling.base... | gpl-2.0 | -3,697,714,027,101,318,000 | 38.810256 | 95 | 0.658895 | false |
chirilo/mozillians | vendor-local/lib/python/djcelery/tests/test_backends/test_database.py | 13 | 3037 | from __future__ import absolute_import
from datetime import timedelta
from celery import current_app
from celery import states
from celery.result import AsyncResult
from celery.task import PeriodicTask
from celery.utils import gen_unique_id
from djcelery.backends.database import DatabaseBackend
from djcelery.utils i... | bsd-3-clause | 778,058,426,922,947,300 | 29.676768 | 70 | 0.616727 | false |
pinkavaj/gnuradio | gr-utils/python/modtool/gr-newmod/python/build_utils_codes.py | 263 | 1391 | #
# Copyright 2004 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
#... | gpl-3.0 | 8,131,959,934,263,429,000 | 25.75 | 70 | 0.677211 | false |
inspirehep/raven-python | raven/handlers/logbook.py | 21 | 3313 | """
raven.handlers.logbook
~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
from __future__ import print_function
import logbook
import sys
import traceback
from raven.base impor... | bsd-3-clause | -8,657,912,476,644,599,000 | 31.80198 | 122 | 0.557501 | false |
Peratham/tweater | py/nltk/tag/stanford.py | 4 | 3422 | # -*- coding: utf-8 -*-
# Natural Language Toolkit: Interface to the Stanford POS-tagger
#
# Copyright (C) 2001-2011 NLTK Project
# Author: Nitin Madnani <nmadnani@ets.org>
# URL: <http://www.nltk.org/>
# For license information, see LICENSE.TXT
#
# $Id: stanford.py $
"""
A module for interfacing with the Stanford POS... | gpl-3.0 | 1,126,086,400,115,045,400 | 36.604396 | 98 | 0.601695 | false |
eonpatapon/neutron | neutron/tests/api/test_flavors_extensions.py | 23 | 6787 | # Copyright 2015 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | apache-2.0 | -159,901,846,158,474,460 | 43.071429 | 79 | 0.655371 | false |
rebost/django | django/utils/html_parser.py | 4 | 3867 | import HTMLParser as _HTMLParser
import re
tagfind = re.compile('([a-zA-Z][-.a-zA-Z0-9:_]*)(?:\s|/(?!>))*')
class HTMLParser(_HTMLParser.HTMLParser):
"""
Patched version of stdlib's HTMLParser with patch from:
http://bugs.python.org/issue670664
"""
def __init__(self):
_HTMLParser.HTMLParse... | bsd-3-clause | -3,326,667,886,710,711,300 | 37.67 | 79 | 0.50556 | false |
ttouchstone/deap | examples/eda/pbil.py | 12 | 2789 | # This file is part of DEAP.
#
# DEAP 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 later version.
#
# DEAP is distributed ... | lgpl-3.0 | -9,080,284,653,340,874,000 | 31.811765 | 88 | 0.665113 | false |
douggeiger/gnuradio | gr-utils/python/modtool/modtool_info.py | 38 | 6952 | #
# Copyright 2013 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
#... | gpl-3.0 | -2,725,130,968,167,653,400 | 43.851613 | 123 | 0.585155 | false |
mkyaw/flasky | tests/test_api.py | 53 | 10687 | import unittest
import json
import re
from base64 import b64encode
from flask import url_for
from app import create_app, db
from app.models import User, Role, Post, Comment
class APITestCase(unittest.TestCase):
def setUp(self):
self.app = create_app('testing')
self.app_context = self.app.app_contex... | mit | 2,163,688,803,801,730,600 | 39.176692 | 77 | 0.579957 | false |
revmischa/boto | boto/gs/acl.py | 184 | 11457 | # Copyright 2010 Google Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish, dis-
# trib... | mit | 7,416,618,496,250,023,000 | 36.198052 | 80 | 0.577464 | false |
zhenxu66/scipy2015-blaze-bokeh | utils/colormap.py | 12 | 1348 | import numpy as np
def hex_to_rgb(value):
"""Given a color in hex format, return it in RGB."""
values = value.lstrip('#')
lv = len(values)
rgb = list(int(values[i:i + lv // 3], 16) for i in range(0, lv, lv // 3))
return rgb
class RGBAColorMapper(object):
"""Maps floating point values to rg... | mit | 587,618,775,276,799,400 | 38.676471 | 95 | 0.575668 | false |
srcLurker/home-assistant | homeassistant/components/alarm_control_panel/manual.py | 3 | 5946 | """
Support for manual alarms.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/alarm_control_panel.manual/
"""
import datetime
import logging
import voluptuous as vol
import homeassistant.components.alarm_control_panel as alarm
import homeassistant.util... | mit | -8,179,920,726,940,794,000 | 33.976471 | 79 | 0.618063 | false |
gojira/tensorflow | tensorflow/contrib/graph_editor/tests/select_test.py | 40 | 11614 | # 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 | -5,236,689,886,603,296,000 | 36.224359 | 80 | 0.60384 | false |
ptonner/GPy | GPy/testing/observable_tests.py | 12 | 6069 | # Copyright (c) 2014, Max Zwiessele
# Licensed under the BSD 3-clause license (see LICENSE.txt)
import unittest
from GPy.core.parameterization.parameterized import Parameterized
from GPy.core.parameterization.param import Param
import numpy
# One trigger in init
_trigger_start = -1
class ParamTestParent(Parameterized... | bsd-3-clause | 3,217,538,255,943,035,000 | 44.977273 | 137 | 0.675894 | false |
yongshengwang/hue | desktop/core/ext-py/tablib-0.10.0/build/lib/tablib/packages/openpyxl3/cell.py | 55 | 14252 | # file openpyxl/cell.py
# Copyright (c) 2010 openpyxl
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, m... | apache-2.0 | 284,390,652,064,501,120 | 36.114583 | 111 | 0.585813 | false |
molebot/brython | www/src/Lib/test/test_multibytecodec.py | 28 | 11560 | #!/usr/bin/env python3
#
# test_multibytecodec.py
# Unit test for multibytecodec itself
#
from test import support
from test.support import TESTFN
import unittest, io, codecs, sys, os
import _multibytecodec
ALL_CJKENCODINGS = [
# _codecs_cn
'gb2312', 'gbk', 'gb18030', 'hz',
# _codecs_hk
'big5hkscs',
# _code... | bsd-3-clause | -7,905,648,970,820,287,000 | 38.453925 | 79 | 0.586505 | false |
jyotikamboj/container | dj-tests/template_tests/filter_tests/test_pluralize.py | 430 | 1200 | from decimal import Decimal
from django.template.defaultfilters import pluralize
from django.test import SimpleTestCase
class FunctionTests(SimpleTestCase):
def test_integers(self):
self.assertEqual(pluralize(1), '')
self.assertEqual(pluralize(0), 's')
self.assertEqual(pluralize(2), 's')... | mit | 7,593,421,375,252,136,000 | 33.285714 | 57 | 0.6225 | false |
cadrian/microcosmos | src/net/cadrian/microcosmos/model/bugs/__init__.py | 1 | 1120 | # Microcosmos: an antsy game
# Copyright (C) 2010 Cyril ADRIAN <cyril.adrian@gmail.com>
#
# 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, version 3 exclusively.
#
# This program is distrib... | gpl-3.0 | -2,411,615,938,734,749,000 | 43.8 | 94 | 0.785714 | false |
mollstam/UnrealPy | UnrealPyEmbed/Development/Python/2015.08.07-Python2710-x64-Source-vs2015/Python27/Source/Python-2.7.10/Lib/test/test_unpack.py | 182 | 2556 | doctests = """
Unpack tuple
>>> t = (1, 2, 3)
>>> a, b, c = t
>>> a == 1 and b == 2 and c == 3
True
Unpack list
>>> l = [4, 5, 6]
>>> a, b, c = l
>>> a == 4 and b == 5 and c == 6
True
Unpack implied tuple
>>> a, b, c = 7, 8, 9
>>> a == 7 and b == 8 and c == 9
True
Unpa... | mit | -7,305,088,803,497,371,000 | 18.661538 | 79 | 0.520736 | false |
claws/AutobahnPython | examples/asyncio/wamp/basic/pubsub/complex/frontend.py | 5 | 1802 | ###############################################################################
##
## Copyright (C) 2014 Tavendo GmbH
##
## 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:/... | apache-2.0 | 8,895,679,543,711,109,000 | 29.542373 | 121 | 0.634295 | false |
vikitripathi/MB-MessApp-API | messApp/env/lib/python2.7/site-packages/pip/vcs/git.py | 473 | 7898 | import tempfile
import re
import os.path
from pip.util import call_subprocess
from pip.util import display_path, rmtree
from pip.vcs import vcs, VersionControl
from pip.log import logger
from pip.backwardcompat import url2pathname, urlparse
urlsplit = urlparse.urlsplit
urlunsplit = urlparse.urlunsplit
class Git(Versi... | apache-2.0 | -1,037,549,199,727,420,000 | 39.71134 | 111 | 0.561028 | false |
Diacamma2/syndic | diacamma/syndic/pdf/fr/conf.py | 1 | 10285 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Diacamma Asso documentation build configuration file, created by
# sphinx-quickstart on Tue Dec 22 17:11:37 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in thi... | gpl-3.0 | 3,859,089,893,317,601,000 | 31.650794 | 80 | 0.69684 | false |
xuleiboy1234/autoTitle | tensorflow/tensorflow/contrib/distributions/python/ops/conditional_distribution.py | 120 | 3310 | # 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 | -5,610,475,722,038,700,000 | 43.133333 | 80 | 0.703323 | false |
joeywen/nlpy | examples/demo_sils.py | 3 | 3760 | # Demonstrate usage of PyMa27 abstract class for the solution of symmetric
# systems of linear equations.
# Example usage: python demo_ma27.py file1.mtx ... fileN.mtx
# where each fileK.mtx is in MatrixMarket format.
from nlpy.linalg.pyma27 import PyMa27Context as LBLContext
#from nlpy.linalg.pyma57 import PyMa57Conte... | gpl-3.0 | 2,409,934,529,955,842,000 | 30.596639 | 78 | 0.585372 | false |
CTSRD-CHERI/u-boot | test/py/tests/test_efi_secboot/test_signed_intca.py | 5 | 6342 | # SPDX-License-Identifier: GPL-2.0+
# Copyright (c) 2020, Linaro Limited
# Author: AKASHI Takahiro <takahiro.akashi@linaro.org>
#
# U-Boot UEFI: Image Authentication Test (signature with certificates chain)
"""
This test verifies image authentication for a signed image which is signed
by user certificate and cont... | gpl-2.0 | -8,069,862,114,580,349,000 | 45.977778 | 87 | 0.563229 | false |
mandeepdhami/nova | nova/tests/unit/compute/test_compute_cells.py | 14 | 18377 | # Copyright (c) 2012 Rackspace Hosting
# 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 req... | apache-2.0 | -7,100,264,542,937,018,000 | 41.052632 | 79 | 0.626326 | false |
motion2015/edx-platform | common/test/acceptance/pages/studio/index.py | 102 | 4852 | """
Studio Home page
"""
from bok_choy.page_object import PageObject
from . import BASE_URL
class DashboardPage(PageObject):
"""
Studio Home page
"""
url = BASE_URL + "/course/"
def is_browser_on_page(self):
return self.q(css='body.view-dashboard').present
@property
def course_... | agpl-3.0 | -7,001,919,501,963,105,000 | 36.323077 | 107 | 0.597898 | false |
guijomatos/SickRage | lib/unidecode/x0ad.py | 253 | 4766 | data = (
'gwan', # 0x00
'gwanj', # 0x01
'gwanh', # 0x02
'gwad', # 0x03
'gwal', # 0x04
'gwalg', # 0x05
'gwalm', # 0x06
'gwalb', # 0x07
'gwals', # 0x08
'gwalt', # 0x09
'gwalp', # 0x0a
'gwalh', # 0x0b
'gwam', # 0x0c
'gwab', # 0x0d
'gwabs', # 0x0e
'gwas', # 0x0f
'gwass', #... | gpl-3.0 | -6,924,353,305,054,952,000 | 17.472868 | 19 | 0.461393 | false |
fragro/Open-Assembly | ver1_0/openassembly/testlib.py | 1 | 3108 | import os, sys, pdb, imp, re, inspect
from django.contrib.admin import site
from django.template import add_to_builtins
def get_module_list(start):
all_files = os.walk(start)
file_list = [(i[0], (i[1], i[2])) for i in all_files]
file_dict = dict(file_list)
curr = start
modules = []
pathlist =... | bsd-3-clause | 4,240,213,163,362,668,000 | 29.772277 | 90 | 0.56982 | false |
tcheehow/MissionPlanner | Lib/lib2to3/refactor.py | 50 | 28271 | # Copyright 2006 Google, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
"""Refactoring framework.
Used as a main program, this can refactor any number of files and/or
recursively descend down directories. Imported as a module, this
provides infrastructure to write your own refactor... | gpl-3.0 | 1,949,422,101,070,679,600 | 36.152497 | 80 | 0.52782 | false |
bowen0701/algorithms_data_structures | lc0171_excel_sheet_column_number.py | 1 | 1027 | """Leetcode 171. Excel Sheet Column Number
Easy
URL: https://leetcode.com/problems/excel-sheet-column-number/
Given a column title as appear in an Excel sheet,
return its corresponding column number.
For example:
A -> 1
B -> 2
C -> 3
...
Z -> 26
AA -> 27
AB -> 28
...
Example 1:
Inpu... | bsd-2-clause | -1,376,339,445,206,633,000 | 15.301587 | 61 | 0.542356 | false |
termie/nova-migration-demo | nova/virt/images.py | 1 | 4244 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
# Copyright (c) 2010 Citrix Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you m... | apache-2.0 | 6,935,650,362,884,109,000 | 33.786885 | 79 | 0.625589 | false |
timkahlke/BASTA | basta/NCBITaxonomyCreator.py | 1 | 5963 | #!/usr/bin/env python
import os
import sys
import argparse
import gzip
import logging
############
#
# NCBI taxonomy creator
#
####
# COPYRIGHT DISCALIMER:
# 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... | gpl-3.0 | -7,149,194,774,931,625,000 | 33.270115 | 184 | 0.540835 | false |
imsparsh/python-for-android | python3-alpha/extra_modules/pyxmpp2/ext/disco.py | 46 | 28522 | #
# (C) Copyright 2003-2010 Jacek Konieczny <jajcus@jajcus.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License Version
# 2.1 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be u... | apache-2.0 | -5,117,390,913,205,989,000 | 31.011223 | 131 | 0.554169 | false |
adrianholovaty/django | django/db/backends/postgresql_psycopg2/base.py | 11 | 9427 | """
PostgreSQL database backend for Django.
Requires psycopg 2: http://initd.org/projects/psycopg2
"""
import sys
from django.db import utils
from django.db.backends import *
from django.db.backends.signals import connection_created
from django.db.backends.postgresql_psycopg2.operations import DatabaseOperations
from... | bsd-3-clause | -6,205,257,168,390,971,000 | 38.776371 | 105 | 0.629893 | false |
houzhenggang/hiwifi-openwrt-HC5661-HC5761 | staging_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ralink/usr/lib/python2.7/collections.py | 110 | 25403 | __all__ = ['Counter', 'deque', 'defaultdict', 'namedtuple', 'OrderedDict']
# For bootstrapping reasons, the collection ABCs are defined in _abcoll.py.
# They should however be considered an integral part of collections.py.
from _abcoll import *
import _abcoll
__all__ += _abcoll.__all__
from _collections import deque, ... | gpl-2.0 | 8,928,110,352,341,491,000 | 37.028443 | 126 | 0.545802 | false |
sadaf2605/django | django/contrib/gis/geos/linestring.py | 136 | 6019 | from django.contrib.gis.geos import prototypes as capi
from django.contrib.gis.geos.coordseq import GEOSCoordSeq
from django.contrib.gis.geos.error import GEOSException
from django.contrib.gis.geos.geometry import GEOSGeometry, LinearGeometryMixin
from django.contrib.gis.geos.point import Point
from django.contrib.gis.... | bsd-3-clause | -1,210,564,886,511,007,700 | 33.00565 | 98 | 0.573517 | false |
philipn/sycamore | Sycamore/macro/orphanedpages.py | 2 | 3914 | # -*- coding: utf-8 -*-
"""
Sycamore - OrphanedPages Macro
@copyright: 2006-2007 by Philip Neustrom <philipn@gmail.com>
@copyright: 2001 by Jürgen Hermann <jh@web.de>
@license: GNU GPL, see COPYING for details.
"""
# Imports
from Sycamore import config, user, wikiutil, wikidb
_guard = 0
Dependencies... | gpl-2.0 | 6,270,281,700,711,809,000 | 33.946429 | 74 | 0.570261 | false |
jonfoster/pyxb2 | tests/trac/test-trac-0123.py | 5 | 2272 | # -*- coding: utf-8 -*-
import logging
if __name__ == '__main__':
logging.basicConfig()
_log = logging.getLogger(__name__)
import sys
import pyxb.binding.generate
import pyxb.utils.domutils
xmls = '''<?xml version="1.0"?>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationM... | apache-2.0 | -1,767,158,553,026,633,000 | 43.54902 | 379 | 0.694982 | false |
grap/OCB | openerp/service/http_server.py | 57 | 6641 | # -*- coding: utf-8 -*-
#
# Copyright P. Christeas <p_christ@hol.gr> 2008-2010
# Copyright 2010 OpenERP SA. (http://www.openerp.com)
#
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eve... | agpl-3.0 | 4,319,794,762,302,089,700 | 36.100559 | 137 | 0.637555 | false |
b0ttl3z/SickRage | sickbeard/providers/hdbits.py | 5 | 6628 | # coding=utf-8
#
# URL: https://sickrage.github.io
#
# This file is part of SickRage.
#
# SickRage 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 lat... | gpl-3.0 | 9,215,613,605,664,759,000 | 32.306533 | 138 | 0.56035 | false |
vijayendrabvs/hap | neutron/db/l3_db.py | 2 | 43177 | # Copyright 2012 VMware, 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 a... | apache-2.0 | 175,424,580,186,082,340 | 46.974444 | 79 | 0.53774 | false |
sandeepgupta2k4/tensorflow | tensorflow/contrib/training/python/training/resample_test.py | 107 | 7930 | # 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 | 467,106,465,446,769,860 | 34.560538 | 80 | 0.62623 | false |
HiroIshikawa/21playground | voting/venv/lib/python3.5/site-packages/werkzeug/contrib/testtools.py | 365 | 2453 | # -*- coding: utf-8 -*-
"""
werkzeug.contrib.testtools
~~~~~~~~~~~~~~~~~~~~~~~~~~
This module implements extended wrappers for simplified testing.
`TestResponse`
A response wrapper which adds various cached attributes for
simplified assertions on various content types.
:copyright:... | mit | -8,869,789,556,331,100,000 | 32.60274 | 76 | 0.616388 | false |
loggly/skyline | src/horizon/roomba.py | 12 | 6377 | from os import kill
from redis import StrictRedis, WatchError
from multiprocessing import Process
from threading import Thread
from msgpack import Unpacker, packb
from types import TupleType
from time import time, sleep
import logging
import settings
logger = logging.getLogger("HorizonLog")
class Roomba(Thread):
... | mit | -2,539,729,599,031,822,300 | 34.427778 | 139 | 0.506508 | false |
Eficent/odoo-operating-unit | hr_payroll_account_operating_unit/__openerp__.py | 1 | 1561 | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2014 Eficent (<http://www.eficent.com/>)
# Jordi Ballester Alomar <jordi.ballester@eficent.com>
#
# This program is free software: you can redistribute it and/or modify
# it und... | agpl-3.0 | -2,289,595,589,861,539,300 | 37.073171 | 78 | 0.590006 | false |
liberation/django-admin-tools | admin_tools/menu/views.py | 2 | 3362 | from django.contrib.auth.decorators import login_required
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import get_object_or_404, render_to_response
from django.template import RequestContext
from django.contrib import messages
try:
from django.views.decorators.csrf import csrf_e... | mit | 7,729,543,788,866,354,000 | 34.765957 | 84 | 0.622844 | false |
cedricpradalier/vrep_ros_ws | src/blob_tracker/nodes/camshift.py | 1 | 6395 | #!/usr/bin/env python
'''
Camshift tracker
================
This is a demo that shows mean-shift based tracking
You select a color objects such as your face and it tracks it.
This reads from video camera (0 by default, or the camera number the user enters)
http://www.robinhewitt.com/research/track/camshift.html
Usage:... | bsd-3-clause | 2,245,528,441,553,239,600 | 35.542857 | 112 | 0.556372 | false |
dmarteau/QGIS | python/plugins/processing/tests/QgisAlgorithmsTest1.py | 17 | 3591 | # -*- coding: utf-8 -*-
"""
***************************************************************************
QgisAlgorithmTests.py
---------------------
Date : January 2016
Copyright : (C) 2016 by Matthias Kuhn
Email : matthias@opengis.ch
***********************... | gpl-2.0 | 8,115,282,035,817,531,000 | 32.25 | 114 | 0.560847 | false |
WinterNis/sqlalchemy | lib/sqlalchemy/engine/default.py | 55 | 36456 | # engine/default.py
# Copyright (C) 2005-2015 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Default implementations of per-dialect sqlalchemy.engine classes.
These are se... | mit | 9,134,962,894,953,787,000 | 34.636364 | 79 | 0.597021 | false |
kenshay/ImageScript | ProgramData/SystemFiles/Python/Lib/site-packages/elan/Pools/AddRemove/3_Count_Lighting_Interfaces.py | 2 | 1856 |
from ImageScripter import *
from elan.functions import Get_Device_List_Simple,Diff
from elan import *
Past_List = ['CentraLite Elegance (single MCP)', 'CentraLite JetStream', 'Clipsal Lighting', 'Dynalite Bridge', 'Electronic Solutions R2D7', 'HAI Lighting Controller', 'HDL Bus Pro Lighting', 'iLight Source Controlle... | gpl-3.0 | -3,345,829,184,710,598,700 | 37.6875 | 911 | 0.738685 | false |
aptuz/aptuz_site | aptuz_site/views.py | 1 | 2506 | from mezzanine.pages.models import Page
from mezzanine.utils.views import render
from mezzanine.blog.models import BlogPost
from django.template import Context,loader,RequestContext
from django.core.mail import EmailMessage
from django.http import HttpResponse
from django.template.loader import render_to_string,get_tem... | mit | -6,163,719,849,770,491,000 | 33.805556 | 95 | 0.647247 | false |
legalsylvain/OpenUpgrade | openerp/openupgrade/openupgrade.py | 8 | 19183 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# This module copyright (C) 2011-2013 Therp BV (<http://therp.nl>)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms... | agpl-3.0 | 681,958,140,190,496,000 | 36.986139 | 79 | 0.581661 | false |
DarthMaulware/EquationGroupLeaks | Leak #5 - Lost In Translation/windows/Resources/Python/Core/Lib/idlelib/ScrolledList.py | 1 | 4002 | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: ScrolledList.py
from Tkinter import *
class ScrolledList:
default = '(None)'
def __init__(self, master, **options):
self.master = m... | unlicense | -4,254,374,842,930,509,000 | 26.231293 | 86 | 0.567466 | false |
paulondc/gaffer | contrib/GafferRIUI/__init__.py | 4 | 1820 | ##########################################################################
#
# Copyright (c) 2011, John Haddon. 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... | bsd-3-clause | 2,987,793,812,862,534,700 | 48.189189 | 77 | 0.676374 | false |
azureplus/hue | desktop/libs/libzookeeper/setup.py | 30 | 1309 | # Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file ex... | apache-2.0 | -8,709,614,633,756,420,000 | 41.225806 | 74 | 0.719633 | false |
GuessWhoSamFoo/pandas | asv_bench/benchmarks/panel_ctor.py | 2 | 1701 | import warnings
from datetime import datetime, timedelta
from pandas import DataFrame, Panel, date_range
class DifferentIndexes(object):
def setup(self):
self.data_frames = {}
start = datetime(1990, 1, 1)
end = datetime(2012, 1, 1)
for x in range(100):
end += timedelta... | bsd-3-clause | -7,099,791,479,560,789,000 | 29.927273 | 73 | 0.546149 | false |
Lh4cKg/brython | www/src/Lib/test/unittests/test_range.py | 20 | 22514 | # Python test set -- built-in functions
import test.support, unittest
import sys
import pickle
import itertools
# pure Python implementations (3 args only), for comparison
def pyrange(start, stop, step):
if (start - stop) // step < 0:
# replace stop with next element in the sequence of integers
# ... | bsd-3-clause | -2,915,614,758,660,160,500 | 34.907496 | 79 | 0.529182 | false |
yongshengwang/hue | desktop/core/ext-py/Django-1.6.10/build/lib/django/test/runner.py | 105 | 10949 | import os
from optparse import make_option
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.test import TestCase
from django.test.utils import setup_test_environment, teardown_test_environment
from django.utils import unittest
from django.utils.unittest import TestSu... | apache-2.0 | -8,689,860,087,122,928,000 | 36.62543 | 104 | 0.59905 | false |
xmission/d-note | venv/lib/python2.7/site-packages/Crypto/Hash/__init__.py | 122 | 2432 | # -*- coding: utf-8 -*-
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that dedication to the public domain is not available,
# everyone is granted a worldwide, perpetual, royalty-free,
# non-exclusive license to e... | agpl-3.0 | -2,427,970,467,190,870,000 | 42.428571 | 87 | 0.706414 | false |
muupan/chainer | chainer/functions/math/trigonometric.py | 17 | 1603 | import numpy
from chainer import cuda
from chainer import function
from chainer import utils
from chainer.utils import type_check
class Sin(function.Function):
@property
def label(self):
return 'sin'
def check_type_forward(self, in_types):
type_check.expect(in_types.size() == 1)
... | mit | -7,342,750,890,811,792,000 | 22.231884 | 63 | 0.555209 | false |
RobertWWong/WebDev | djangoApp/ENV/lib/python3.5/site-packages/pip/_vendor/html5lib/treewalkers/etree.py | 322 | 4684 | from __future__ import absolute_import, division, unicode_literals
try:
from collections import OrderedDict
except ImportError:
try:
from ordereddict import OrderedDict
except ImportError:
OrderedDict = dict
import re
from pip._vendor.six import string_types
from . import base
from .._ut... | mit | 4,125,276,112,257,741,000 | 33.189781 | 84 | 0.503416 | false |
HashDataInc/bireme | bireme_tpcc_test/sqlCheckSum.py | 1 | 3388 | import hashlib
import MySQLdb
import MySQLdb.cursors
import psycopg2
import psycopg2.extras
import binascii
import re
def sqlCheckSum(dbtype, host, port, user, passwd, db, table, *key):
try:
nameAndType = getNameAndType(dbtype, host, port, user, passwd, db, table)
nameAndType.sort()
if dbt... | apache-2.0 | -6,408,510,156,949,570,000 | 36.241758 | 140 | 0.581759 | false |
openilabs/falconlab | env/lib/python2.7/site-packages/tests/test_headers.py | 1 | 14113 | from collections import defaultdict
from datetime import datetime
import six
from testtools.matchers import Contains, Not
import falcon
import falcon.testing as testing
class StatusTestResource:
sample_body = testing.rand_string(0, 128 * 1024)
def __init__(self, status):
self.status = status
d... | mit | -1,847,199,884,978,331,000 | 33.421951 | 79 | 0.620704 | false |
CCI-MOC/haas | tests/integration/keystone.py | 2 | 12038 | """Tests for the keystone auth backend.
Note that these require a keystone instance to be installed and running, with
a specific configuration and database contents. The script
"ci/keystone/keystone.sh" at the root of the repository can be used to set
this up. This is done automatically in our travis config.
"""
from ... | apache-2.0 | 2,111,246,659,917,288,700 | 33.892754 | 79 | 0.625519 | false |
mnesov/CodeBlocks-Arduino | helpers/test_avr_size.py | 6 | 2496 | #!/usr/bin/env python
import optparse
# colors in cmd line. See - http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python
class bcolors:
IMPORTANT = '\033[01m'
WARNING = '\033[93m'
FAIL = '\033[01;93m'
ENDC = '\033[0m'
def disable(self):
self.IMPORTANT = ''
... | gpl-3.0 | 4,394,399,113,007,487,500 | 33.191781 | 179 | 0.609776 | false |
Yen-Chung-En/2015cdb_W12 | static/Brython3.1.3-20150514-095342/Lib/site-packages/highlight.py | 617 | 2518 | import keyword
import _jsre as re
from browser import html
letters = 'abcdefghijklmnopqrstuvwxyz'
letters += letters.upper()+'_'
digits = '0123456789'
builtin_funcs = ("abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|" +
"eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|" +... | agpl-3.0 | 6,931,775,310,551,972,000 | 34.478873 | 86 | 0.476172 | false |
janrygl/gensim | gensim/utils.py | 4 | 41124 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010 Radim Rehurek <radimrehurek@seznam.cz>
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
"""
This module contains various general utility functions.
"""
from __future__ import with_statement
import logging
logger = logging... | gpl-3.0 | 2,622,802,034,306,967,000 | 34.711555 | 121 | 0.599041 | false |
ryfeus/lambda-packs | LightGBM_sklearn_scipy_numpy/source/sklearn/ensemble/__init__.py | 153 | 1382 | """
The :mod:`sklearn.ensemble` module includes ensemble-based methods for
classification, regression and anomaly detection.
"""
from .base import BaseEnsemble
from .forest import RandomForestClassifier
from .forest import RandomForestRegressor
from .forest import RandomTreesEmbedding
from .forest import ExtraTreesCla... | mit | 5,349,484,057,904,368,000 | 38.485714 | 79 | 0.776411 | false |
omprakasha/odoo | addons/stock/__init__.py | 376 | 1115 | # -*- 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 | 4,532,105,328,242,356,000 | 34.967742 | 78 | 0.626906 | false |
richardkiss/pycoin | pycoin/vm/annotate.py | 1 | 5674 | import collections
import itertools
from pycoin.encoding.hash import hash160
from pycoin.encoding.hexbytes import b2h
from pycoin.encoding.sec import is_sec_compressed, public_pair_to_hash160_sec
from pycoin.intbytes import byte2int
from pycoin.satoshi.flags import SIGHASH_ALL, SIGHASH_NONE, SIGHASH_SINGLE, SIGHASH_AN... | mit | -3,707,460,808,269,833,000 | 39.820144 | 112 | 0.59288 | false |
mlperf/training_results_v0.7 | Fujitsu/benchmarks/resnet/implementations/implementation_open/mxnet/3rdparty/tvm/apps/benchmark/gpu_imagenet_bench.py | 2 | 4001 | # 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 | -8,124,156,436,964,250,000 | 40.247423 | 106 | 0.613597 | false |
Senseg/Py4A | python3-alpha/python3-src/Lib/test/test_threadsignals.py | 55 | 9241 | """PyUnit testing that threads honor our signal semantics"""
import unittest
import signal
import os
import sys
from test.support import run_unittest, import_module
thread = import_module('_thread')
import time
if sys.platform[:3] in ('win', 'os2') or sys.platform=='riscos':
raise unittest.SkipTest("Can't test si... | apache-2.0 | 3,907,510,808,465,225,700 | 40.439462 | 83 | 0.609891 | false |
wbyne/QGIS | python/plugins/db_manager/db_plugins/postgis/plugins/versioning/__init__.py | 15 | 2252 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
Name : Versioning plugin for DB Manager
Description : Set up versioning support for a table
Date : Mar 12, 2012
copyright : (C) 2012 by Giuseppe Sucameli
email ... | gpl-2.0 | 7,124,843,280,935,502,000 | 42.307692 | 95 | 0.55151 | false |
FWennerdahl/GoSublime | gosubl/sh.py | 9 | 8845 | from . import about
from . import ev
from . import gs
from collections import namedtuple
import os
import re
import string
import sublime
import subprocess
import time
try:
STARTUPINFO = subprocess.STARTUPINFO()
STARTUPINFO.dwFlags |= subprocess.STARTF_USESHOWWINDOW
STARTUPINFO.wShowWindow = subprocess.SW_HIDE
exce... | mit | 2,834,131,254,813,273,000 | 19.194064 | 100 | 0.596382 | false |
flh/odoo | addons/l10n_ma/__init__.py | 430 | 1071 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | agpl-3.0 | -2,411,926,914,285,396,000 | 45.565217 | 79 | 0.609711 | false |
ccn-2m/django | tests/modeltests/get_or_create/tests.py | 68 | 2499 | from __future__ import absolute_import
from datetime import date
import traceback
from django.db import IntegrityError
from django.test import TestCase
from .models import Person, ManualPrimaryKeyTest
class GetOrCreateTests(TestCase):
def test_get_or_create(self):
p = Person.objects.create(
... | bsd-3-clause | -7,969,983,852,405,834,000 | 36.863636 | 82 | 0.628251 | false |
dmarteau/QGIS | python/plugins/processing/algs/qgis/MinimumBoundingGeometry.py | 15 | 11851 | # -*- coding: utf-8 -*-
"""
***************************************************************************
MinimumBoundingGeometry.py
--------------------------
Date : September 2017
Copyright : (C) 2017 by Nyall Dawson
Email : nyall dot dawson at gmail dot co... | gpl-2.0 | 4,173,765,928,778,367,500 | 40.582456 | 122 | 0.518522 | false |
yeming233/horizon | openstack_dashboard/dashboards/project/cg_snapshots/forms.py | 3 | 3114 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | apache-2.0 | -2,512,079,822,373,479,000 | 39.973684 | 77 | 0.586063 | false |
tareqalayan/ansible | test/units/playbook/test_task.py | 35 | 3597 | # (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 | -253,123,960,995,647,680 | 30.552632 | 109 | 0.677231 | false |
dongjoon-hyun/tensorflow | tensorflow/python/kernel_tests/parse_single_example_op_test.py | 10 | 34248 | # 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 | -1,540,533,696,924,471,000 | 35.550694 | 80 | 0.513198 | false |
sveetch/boussole | tests/102_projectstarter/001_expand.py | 1 | 1963 | # -*- coding: utf-8 -*-
import pytest
@pytest.mark.parametrize("sources,expected", [
# basic
(
[
'.',
'foo.json',
'scss',
'css',
'/home/foo',
],
(
'/home/foo',
'/home/foo/foo.json',
'/home/f... | mit | -2,544,430,458,734,183,000 | 20.811111 | 71 | 0.372899 | false |
mbaijal/incubator-mxnet | plugin/opencv/opencv.py | 61 | 6214 | # 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 | 1,866,143,902,626,040,800 | 31.364583 | 89 | 0.588671 | false |
benob/icsisumm | icsisumm-primary-sys34_v1/nltk/nltk-0.9.2/nltk_contrib/lpath/treecanvasnode.py | 9 | 5605 | from qt import *
from qtcanvas import *
from lpathtree_qt import *
class Point:
def __init__(self, *args):
if len(args) == 2 and \
(isinstance(args[0],int) or isinstance(args[0],float)) and \
(isinstance(args[1],int) or isinstance(args[0],float)):
self.x = float(args[0])
... | gpl-3.0 | 657,043,839,167,101,200 | 29.297297 | 71 | 0.506334 | false |
alanjds/xhtml2pdf | demo/tgpisa/tgpisa/commands.py | 14 | 1682 | # -*- coding: utf-8 -*-
"""This module contains functions called from console script entry points."""
import os
import sys
from os.path import dirname, exists, join
import pkg_resources
pkg_resources.require("TurboGears")
import turbogears
import cherrypy
cherrypy.lowercase_api = True
class Config... | apache-2.0 | 2,470,048,521,445,765,600 | 30.346154 | 77 | 0.655767 | false |
naturali/tensorflow | tensorflow/python/kernel_tests/argmax_op_test.py | 28 | 2865 | # 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,702,100,659,382,215,000 | 32.313953 | 80 | 0.649913 | false |
kittehcoin/p2pool | p2pool/test/bitcoin/test_sha256.py | 275 | 1213 | from __future__ import division
import unittest
import hashlib
import random
from p2pool.bitcoin import sha256
class Test(unittest.TestCase):
def test_all(self):
for test in ['', 'a', 'b', 'abc', 'abc'*50, 'hello world']:
#print test
#print sha256.sha256(test).hexdigest()
... | gpl-3.0 | 2,099,693,225,069,824,000 | 31.783784 | 86 | 0.527617 | false |
arshsingh/hellosign-python-sdk | hellosign_sdk/resource/signature.py | 2 | 1640 | from .resource import Resource
#
# The MIT License (MIT)
#
# Copyright (C) 2014 hellosign.com
#
# 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 limit... | mit | -8,453,731,721,657,745,000 | 32.469388 | 80 | 0.72561 | false |
Anonymouslemming/ansible | lib/ansible/modules/utilities/logic/async_status.py | 13 | 3428 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>, and others
#
# 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 ... | gpl-3.0 | 6,120,791,962,314,225,000 | 30.163636 | 94 | 0.654609 | false |
home-assistant/home-assistant | tests/components/mobile_app/test_device_tracker.py | 20 | 4128 | """Test mobile app device tracker."""
async def test_sending_location(hass, create_registrations, webhook_client):
"""Test sending a location via a webhook."""
resp = await webhook_client.post(
"/api/webhook/{}".format(create_registrations[1]["webhook_id"]),
json={
"type": "update_... | apache-2.0 | 8,894,615,558,822,400,000 | 34.895652 | 88 | 0.574855 | false |
nitzmahone/ansible-modules-extras | cloud/cloudstack/cs_router.py | 44 | 10710 | #!/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 | -2,290,065,105,980,966,400 | 27.631016 | 106 | 0.596377 | false |
Vassy/odoo | addons/website_sale/controllers/main.py | 9 | 31237 | # -*- coding: utf-8 -*-
import werkzeug
from openerp import SUPERUSER_ID
from openerp.addons.web import http
from openerp.addons.web.http import request
from openerp.tools.translate import _
from openerp.addons.website.models.website import slug
PPG = 20 # Products Per Page
PPR = 4 # Products Per Row
class table_co... | agpl-3.0 | -5,312,799,770,655,984,000 | 43.057828 | 167 | 0.586484 | false |
luisibanez/SahanaEden | modules/geopy/geocoders/virtual_earth.py | 25 | 2500 | import re
from urllib2 import urlopen
from urllib import urlencode
import simplejson
from geopy.geocoders.base import Geocoder
from geopy.point import Point
from geopy.location import Location
from geopy import util
class VirtualEarth(Geocoder):
"""Geocoder using Microsoft's Windows Live Local web service, powered... | mit | -2,392,447,198,485,912,000 | 35.246377 | 76 | 0.6012 | false |
Distrotech/scons | test/option/profile.py | 4 | 3304 | #!/usr/bin/env python
#
# __COPYRIGHT__
#
# 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,
... | mit | -879,338,967,053,954,300 | 26.081967 | 73 | 0.692191 | false |
honur/django-tenant-schemas | docs/conf.py | 5 | 6555 | # -*- coding: utf-8 -*-
#
# dinnertime documentation build configuration file, created by
# sphinx-quickstart on Wed Aug 19 10:27:46 2009.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... | mit | 4,481,384,136,591,086,600 | 31.939698 | 100 | 0.71167 | false |
kaushik94/sympy | sympy/external/tests/test_codegen.py | 11 | 12123 | # This tests the compilation and execution of the source code generated with
# utilities.codegen. The compilation takes place in a temporary directory that
# is removed after the test. By default the test directory is always removed,
# but this behavior can be changed by setting the environment variable
# SYMPY_TEST_CL... | bsd-3-clause | 1,596,434,884,820,738,800 | 31.853659 | 111 | 0.620886 | false |
siddhika1889/Pydev-Editor | pysrc/pydevd_vars.py | 8 | 16846 | """ pydevd_vars deals with variables:
resolution/conversion to XML.
"""
import pickle
from pydevd_constants import * #@UnusedWildImport
from types import * #@UnusedWildImport
from pydevd_custom_frames import getCustomFrame
from pydevd_xml import *
from _pydev_imps import _pydev_thread
try:
from StringIO impor... | epl-1.0 | -4,992,445,661,906,948,000 | 32.557769 | 132 | 0.562329 | false |
kenshay/ImageScripter | Script_Runner/PYTHON/Lib/multiprocessing/semaphore_tracker.py | 11 | 5467 | #
# On Unix we run a server process which keeps track of unlinked
# semaphores. The server ignores SIGINT and SIGTERM and reads from a
# pipe. Every other process of the program has a copy of the writable
# end of the pipe, so we get EOF when all other processes have exited.
# Then the server process unlinks any remai... | gpl-3.0 | 1,088,880,095,004,321,200 | 33.601266 | 79 | 0.543991 | false |
sahmed95/sympy | sympy/combinatorics/tests/test_partitions.py | 58 | 3382 | from sympy.core.compatibility import range
from sympy.combinatorics.partitions import (Partition, IntegerPartition,
RGS_enum, RGS_unrank, RGS_rank,
random_integer_partition)
from sympy.utilities.pytest import raises
from sympy.utili... | bsd-3-clause | -3,017,936,042,403,590,000 | 33.161616 | 85 | 0.555293 | 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.