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 |
|---|---|---|---|---|---|---|---|---|---|---|
gimli-org/gimli | pygimli/physics/SIP/importData.py | 1 | 15351 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Import/Export for SIP data."""
import codecs
from datetime import datetime
import numpy as np
import re
import pygimli as pg
def load(fileName, verbose=False, **kwargs):
"""Shortcut to load SIP spectral data.
Import Data and try to assume the file format.
... | apache-2.0 | 8,571,273,197,497,748,000 | 33.256696 | 135 | 0.443409 | false |
brewster76/fuzzy-archer | bin/user/historygenerator.py | 1 | 17207 | #
# Copyright (c) 2013-2016 Nick Dajda <nick.dajda@gmail.com>
#
# Distributed under the terms of the GNU GENERAL PUBLIC LICENSE
#
"""Extends the Cheetah generator search list to add html historic data tables in a nice colour scheme.
Tested on Weewx release 4.0.0.
Works with all databases.
Observes the units of measur... | gpl-2.0 | -535,727,713,453,255,360 | 42.45202 | 156 | 0.552275 | false |
cswiercz/sympy | sympy/physics/vector/functions.py | 74 | 23381 | from __future__ import print_function, division
from sympy import (sympify, diff, sin, cos, Matrix, Symbol, integrate,
trigsimp, Function, symbols)
from sympy.core.basic import S
from sympy.core.compatibility import reduce
from .vector import Vector, _check_vector
from .frame import CoordinateSym, _... | bsd-3-clause | 5,657,295,904,785,990,000 | 37.266776 | 132 | 0.540824 | false |
ryfeus/lambda-packs | Keras_tensorflow_nightly/source2.7/tensorflow/contrib/learn/python/learn/datasets/base.py | 41 | 8304 | # 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 | -3,573,597,825,651,515,000 | 31.311284 | 93 | 0.657635 | false |
apark263/tensorflow | tensorflow/contrib/text/python/ops/__init__.py | 102 | 1026 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -5,806,916,827,694,175,000 | 45.636364 | 93 | 0.71345 | false |
colevscode/quickkvs | quickkvs/backends.py | 1 | 4939 | import json
import time
class ExpirationMixin(object):
def _calc_ttl(self, item):
if item['expires'] < 0: return -1 # never expires
ttl = item['expires'] - time.clock()
return 0 if ttl < 0 else ttl
def _set_expires(self, item, expires):
item['expires'] = time.clock() + expires... | mit | -9,173,040,122,084,562,000 | 29.121951 | 84 | 0.552136 | false |
kangxu/crosswalk-test-suite | usecase/usecase-apptools-tests/inst.deb.py | 14 | 3130 | #!/usr/bin/env python
import os
import sys
import subprocess
from optparse import OptionParser
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
PARAMETERS = None
def doCMD(cmd):
print "-->> \"%s\"" % cmd
output = []
cmd_return_code = 1
cmd_proc = subprocess.Popen(
cmd, stdout=subproce... | bsd-3-clause | -3,027,010,332,442,841,000 | 28.528302 | 104 | 0.541214 | false |
hradec/gaffer | python/GafferDelightTest/InteractiveDelightRenderTest.py | 6 | 4100 | ##########################################################################
#
# Copyright (c) 2017, Image Engine Design 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:
#
# * Redistrib... | bsd-3-clause | 7,805,350,545,024,816,000 | 33.166667 | 87 | 0.711951 | false |
Collegeville/Homework | bin/get-dashboard.py | 5 | 3397 | #!/usr/bin/env python3
'''Create YAML for dashboard page by querying GitHub repositories.'''
import sys
import time
import yaml
CONTROLS = (
('swcarpentry/shell-novice', 'Unix Shell'),
('swcarpentry/git-novice', 'Git'),
('swcarpentry/hg-novice', 'Mercurial'),
('swcarpentry/sql-novice-survey', 'SQL')... | mit | 4,242,849,256,936,948,000 | 32.633663 | 105 | 0.595231 | false |
suutari/shoop | shuup_tests/core/test_telemetry.py | 1 | 8497 | # -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2016, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
import datetime
import json
import requests
from django.test.utils... | agpl-3.0 | 4,587,024,041,695,913,500 | 35.625 | 117 | 0.67565 | false |
163gal/Time-Line | libs/wx/lib/pubsub/core/weakmethod.py | 9 | 4103 | '''
This module provides a basic "weak method" implementation. It is necessary
because the weakref module does not support weak methods (in the sense that,
counter-intuitively, a user who creates a weakref.ref(obj.method), a reasonable
action, get a weak ref that is None.
:copyright: Copyright 2006-2009 by Oliver Sch... | gpl-3.0 | 1,961,598,113,534,556,000 | 38.07619 | 83 | 0.632708 | false |
jarshwah/django | tests/queryset_pickle/models.py | 281 | 1904 | import datetime
from django.db import DJANGO_VERSION_PICKLE_KEY, models
from django.utils import six
from django.utils.translation import ugettext_lazy as _
def standalone_number():
return 1
class Numbers(object):
@staticmethod
def get_static_number():
return 2
class PreviousDjangoVersionQuer... | bsd-3-clause | 3,113,862,457,791,288,000 | 29.709677 | 84 | 0.720063 | false |
chauhanmohit/phantomjs | src/qt/qtwebkit/Tools/Scripts/webkitpy/common/prettypatch.py | 140 | 2966 | # Copyright (c) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | bsd-3-clause | 1,822,460,488,909,766,000 | 43.268657 | 81 | 0.687458 | false |
kyvinh/home-assistant | homeassistant/components/notify/pushbullet.py | 9 | 5058 | """
PushBullet platform for notify component.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/notify.pushbullet/
"""
import logging
import voluptuous as vol
from homeassistant.components.notify import (
ATTR_DATA, ATTR_TARGET, ATTR_TITLE, ATTR_TITLE... | apache-2.0 | 408,022,639,077,095,800 | 34.619718 | 78 | 0.5862 | false |
linjunzhe/p2pool | SOAPpy/Utilities.py | 294 | 5112 | """
################################################################################
# Copyright (c) 2003, Pfizer
# Copyright (c) 2001, Cayce Ullman.
# Copyright (c) 2001, Brian Matthews.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provid... | gpl-3.0 | 1,347,783,276,639,906,000 | 28.045455 | 80 | 0.521127 | false |
ecederstrand/django | tests/m2m_regress/models.py | 358 | 2826 | from django.contrib.auth import models as auth
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
# No related name is needed here, since symmetrical relations are not
# explicitly reversible.
@python_2_unicode_compatible
class SelfRefer(models.Model):
name = models.CharFie... | bsd-3-clause | -5,908,773,360,941,107,000 | 27.26 | 80 | 0.723992 | false |
TridevGuha/django | tests/select_related_regress/tests.py | 206 | 9404 | from __future__ import unicode_literals
from django.test import TestCase
from django.utils import six
from .models import (
A, B, C, Building, Chick, Child, Class, Client, ClientStatus, Connection,
Country, Device, Enrollment, Hen, Item, Organizer, Person, Port,
SpecialClient, State, Student, TUser,
)
c... | bsd-3-clause | 4,205,039,598,491,932,700 | 46.494949 | 131 | 0.641748 | false |
tjandy/work | excelToCode/csv_to_csharp.py | 1 | 3837 | #coding:utf-8
import glob
from xml.etree import ElementTree
desc=""
def print_node(node):
'''''打印结点基本信息'''
print node.text
def read_xml(text):
'''''读xml文件'''
# 加载XML文件(2种方法,一是加载指定字符串,二是加载指定文件)
# root = ElementTree.parse(r"D:/test.xml")
root = ElementTree.fromstring(text)
... | mit | 3,740,620,207,730,201,600 | 30.222222 | 159 | 0.439091 | false |
streamlink/streamlink | docs/conf.py | 3 | 6502 | #!/usr/bin/env python3
import os
import sys
from streamlink import __version__ as streamlink_version
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolu... | bsd-2-clause | 3,507,307,847,378,149,400 | 32.689119 | 145 | 0.708551 | false |
rajat1994/scikit-learn | sklearn/datasets/__init__.py | 176 | 3671 | """
The :mod:`sklearn.datasets` module includes utilities to load datasets,
including methods to load and fetch popular reference datasets. It also
features some artificial data generators.
"""
from .base import load_diabetes
from .base import load_digits
from .base import load_files
from .base import load_iris
from .... | bsd-3-clause | 3,637,296,374,688,991,700 | 35.346535 | 71 | 0.684827 | false |
homework/nox | src/nox/coreapps/pyrt/componentws.py | 10 | 4528 | from nox.webapps.webservice import webservice
from nox.lib.config import version
from nox.lib.core import *
import simplejson
#
# Verifies that component name exists
#
class WSPathExistingComponent(webservice.WSPathComponent):
def __init__(self, component):
webservice.WSPathComponent.__init__(self)
... | gpl-3.0 | -8,717,589,553,465,450,000 | 33.564885 | 88 | 0.595848 | false |
ShassAro/ShassAro | DockerAdmin/dockerVirtualEnv/lib/python2.7/site-packages/django/core/handlers/base.py | 49 | 10871 | from __future__ import unicode_literals
import logging
import sys
import types
from django import http
from django.conf import settings
from django.core import urlresolvers
from django.core import signals
from django.core.exceptions import MiddlewareNotUsed, PermissionDenied, SuspiciousOperation
from django.db import... | gpl-2.0 | 7,131,633,492,643,551,000 | 41.968379 | 157 | 0.583479 | false |
RO-ny9/python-for-android | python3-alpha/python3-src/Lib/test/test_xml_etree_c.py | 49 | 1980 | # xml.etree test for cElementTree
from test import support
from test.support import precisionbigmemtest, _2G
import unittest
cET = support.import_module('xml.etree.cElementTree')
# cElementTree specific tests
def sanity():
r"""
Import sanity.
>>> from xml.etree import cElementTree
Issue #6697.
... | apache-2.0 | 2,713,990,546,751,194,600 | 26.123288 | 72 | 0.619697 | false |
hkawasaki/kawasaki-aio8-1 | lms/djangoapps/instructor/views/api.py | 3 | 49296 | """
Instructor Dashboard API views
JSON views which the instructor dashboard requests.
Many of these GETs may become PUTs in the future.
"""
import json
import logging
import re
import requests
from django.conf import settings
from django_future.csrf import ensure_csrf_cookie
from django.views.decorators.cache impor... | agpl-3.0 | -305,831,320,174,106,430 | 35.380812 | 241 | 0.64557 | false |
hanvo/MusicCloud | Crawler/Install Files/pygame/test/image_test.py | 4 | 15119 | if __name__ == '__main__':
import sys
import os
pkg_dir = os.path.split(os.path.abspath(__file__))[0]
parent_dir, pkg_name = os.path.split(pkg_dir)
is_pygame_pkg = (pkg_name == 'tests' and
os.path.split(parent_dir)[1] == 'pygame')
if not is_pygame_pkg:
sys.path.inser... | bsd-3-clause | -7,670,721,288,223,055,000 | 38.168394 | 198 | 0.552616 | false |
hsoft/moneyguru | core/gui/completable_edit.py | 2 | 4063 | # Copyright 2019 Virgil Dupras
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from core.util import nonone, dedupe
from .base import DocumentGUIObject
f... | gpl-3.0 | -6,631,837,332,573,159,000 | 32.303279 | 98 | 0.614571 | false |
pgoeser/gnuradio | gnuradio-core/src/python/gnuradio/gr/qa_interleave.py | 11 | 2859 | #!/usr/bin/env python
#
# Copyright 2004,2007,2010 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 you... | gpl-3.0 | -6,026,530,047,699,556,000 | 34.296296 | 74 | 0.626793 | false |
zq317157782/Narukami | external/googletest/googletest/scripts/upload.py | 32 | 51025 | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | mit | -1,052,761,106,093,572,500 | 35.788032 | 80 | 0.619735 | false |
dermoth/gramps | gramps/plugins/mapservices/eniroswedenmap.py | 3 | 7555 | # Gramps - a GTK+/GNOME based genealogy program
# -*- coding: utf-8 -*-
#
# Copyright (C) 2009 Benny Malengier
# Copyright (C) 2009 Peter Landgren
#
# 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 Softwa... | gpl-2.0 | -6,006,083,614,754,429,000 | 38.549738 | 79 | 0.559306 | false |
whosyourban/pyspider | tests/test_response.py | 66 | 2738 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8:
# Author: Binux<roy@binux.me>
# http://binux.me
# Created on 2015-01-18 11:10:27
import os
import copy
import time
import httpbin
import unittest2 as unittest
import logging
import logging.config
logging.config.f... | apache-2.0 | -8,083,030,124,161,430,000 | 29.422222 | 82 | 0.636961 | false |
fding/llama | analyze_fof.py | 1 | 4633 | import argparse
import math
import re
class Experiment(object):
def __init__(self, commit, params):
self.commit = commit
self.params = dict([
tuple(kv.split('=')) for kv in params.split(',')
])
self.outputs = []
class Results(dict):
def __init__(self, *args, **kwarg... | bsd-3-clause | -4,037,309,700,135,194,600 | 30.09396 | 90 | 0.493417 | false |
turbokongen/home-assistant | tests/components/humidifier/test_device_trigger.py | 3 | 12065 | """The tests for Humidifier device triggers."""
import datetime
import pytest
import voluptuous_serialize
import homeassistant.components.automation as automation
from homeassistant.components.humidifier import DOMAIN, const, device_trigger
from homeassistant.const import ATTR_SUPPORTED_FEATURES, STATE_OFF, STATE_ON
... | apache-2.0 | 9,144,288,144,125,236,000 | 33.081921 | 88 | 0.473104 | false |
varunarya10/posix_ipc | tests/test_module.py | 5 | 4122 | # Python imports
# Don't add any from __future__ imports here. This code should execute
# against standard Python.
import unittest
import datetime
import mmap
import os
import resource
# Project imports
import posix_ipc
# Hack -- add tests directory to sys.path so Python 3 can find base.py.
import sys
sys.path.insert(... | bsd-3-clause | 7,499,917,597,688,800,000 | 39.811881 | 80 | 0.642892 | false |
dparks1134/DBB | dbb/merge.py | 1 | 7637 | #!/usr/bin/env python
###############################################################################
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License... | gpl-3.0 | 5,477,598,902,526,678,000 | 46.949686 | 197 | 0.505434 | false |
Jamlum/pytomo | pytomo/kaa_metadata/image/png.py | 3 | 4354 | # -*- coding: iso-8859-1 -*-
# -----------------------------------------------------------------------------
# png.py - png file parsing
# -----------------------------------------------------------------------------
# $Id: png.py 3079 2008-02-13 20:10:40Z dmeyer $
#
# --------------------------------------------------... | gpl-2.0 | -7,131,273,253,461,167,000 | 31.736842 | 81 | 0.551677 | false |
jjmleiro/hue | desktop/core/ext-py/lxml-3.3.6/src/lxml/tests/test_isoschematron.py | 17 | 34491 | # -*- coding: utf-8 -*-
"""
Test cases related to ISO-Schematron parsing and validation
"""
import unittest, sys, os.path
from lxml import isoschematron
this_dir = os.path.dirname(__file__)
if this_dir not in sys.path:
sys.path.insert(0, this_dir) # needed for Py3
from common_imports import etree, HelperTestCas... | apache-2.0 | 1,249,508,730,774,474,200 | 39.529965 | 252 | 0.627903 | false |
jwi078/incubator-airflow | airflow/operators/hive_to_mysql.py | 5 | 3572 | import logging
from airflow.hooks import HiveServer2Hook, MySqlHook
from airflow.models import BaseOperator
from airflow.utils.decorators import apply_defaults
from tempfile import NamedTemporaryFile
class HiveToMySqlTransfer(BaseOperator):
"""
Moves data from Hive to MySQL, note that for now the data is loa... | apache-2.0 | -9,177,363,190,988,359,000 | 37 | 80 | 0.654815 | false |
JackDandy/SickGear | lib/hachoir_py3/field/basic_field_set.py | 2 | 4812 | from hachoir_py3.field import Field, FieldError
from hachoir_py3.stream import InputStream
from hachoir_py3.core.endian import BIG_ENDIAN, LITTLE_ENDIAN, MIDDLE_ENDIAN
from hachoir_py3.core.event_handler import EventHandler
class ParserError(FieldError):
"""
Error raised by a field set.
@see: L{FieldErro... | gpl-3.0 | -4,532,525,435,629,385,700 | 29.846154 | 76 | 0.591646 | false |
leckman/exocode | src/array_processing.py | 1 | 2059 | '''
Copyright (c) 2015, Laura Eckman
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, distribute, ... | mit | 3,332,139,234,213,520,000 | 33.316667 | 77 | 0.6678 | false |
pbaesse/Sissens | lib/python2.7/site-packages/eventlet/greenio/base.py | 1 | 17913 | import errno
import os
import socket
import sys
import time
import warnings
import eventlet
from eventlet.hubs import trampoline, notify_opened, IOClosed
from eventlet.support import get_errno, six
__all__ = [
'GreenSocket', '_GLOBAL_DEFAULT_TIMEOUT', 'set_nonblocking',
'SOCKET_BLOCKING', 'SOCKET_CLOSED', 'CO... | gpl-3.0 | -3,966,929,460,356,206,000 | 34.612326 | 96 | 0.584938 | false |
EraYaN/CouchPotatoServer | couchpotato/core/notifications/core/main.py | 52 | 8645 | from operator import itemgetter
import threading
import time
import traceback
import uuid
from CodernityDB.database import RecordDeleted
from couchpotato import get_db
from couchpotato.api import addApiView, addNonBlockApiView
from couchpotato.core.event import addEvent, fireEvent
from couchpotato.core.helpers.encodin... | gpl-3.0 | 5,524,020,061,056,199,000 | 29.017361 | 131 | 0.541353 | false |
xingzhou/kubernetes | cluster/juju/layers/kubernetes-worker/reactive/kubernetes_worker.py | 7 | 36222 | #!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors.
#
# 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 appli... | apache-2.0 | 4,260,648,819,581,760,000 | 34.581532 | 101 | 0.66109 | false |
redhat-openstack/swift | swift/container/reconciler.py | 33 | 31483 | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | apache-2.0 | 8,451,890,736,651,694,000 | 41.25906 | 79 | 0.572214 | false |
Silmathoron/nest-simulator | extras/ConnPlotter/setup.py | 15 | 1286 | # -*- coding: utf-8 -*-
#
# setup.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST 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... | gpl-2.0 | -7,654,348,185,223,484,000 | 34.722222 | 70 | 0.699844 | false |
oihane/server-tools | __unported__/configuration_helper/config.py | 56 | 4901 | # -*- coding: utf-8 -*-
##############################################################################
#
# Author: David BEAL, Copyright 2014 Akretion
#
# 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 ... | agpl-3.0 | -4,567,926,975,541,877,000 | 41.991228 | 89 | 0.562334 | false |
ttakamura/chainer | chainer/cudnn/cudnn.py | 2 | 3385 | """Common routines to use CuDNN."""
import atexit, ctypes, os
import numpy
from chainer import cuda
import libcudnn
enabled = int(os.environ.get('CHAINER_CUDNN', '1')) != 0
available = True
def get_ptr(x):
return ctypes.c_void_p(x.ptr)
class Auto(object):
"""Object to be destoryed automatically."""
def... | mit | -4,613,047,267,890,643,000 | 30.342593 | 94 | 0.665583 | false |
philanthropy-u/edx-platform | common/djangoapps/track/backends/tests/test_mongodb.py | 172 | 1092 | from __future__ import absolute_import
from mock import patch
from django.test import TestCase
from track.backends.mongodb import MongoBackend
class TestMongoBackend(TestCase):
def setUp(self):
super(TestMongoBackend, self).setUp()
self.mongo_patcher = patch('track.backends.mongodb.MongoClient'... | agpl-3.0 | -4,091,233,602,140,797,000 | 27 | 72 | 0.648352 | false |
chokribr/invenio | invenio/modules/jsonalchemy/errors.py | 17 | 1260 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2013, 2014 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... | gpl-2.0 | -60,217,590,463,736,776 | 25.25 | 74 | 0.735714 | false |
thom-at-redhat/cfme_tests | sprout/appliances/views.py | 1 | 22371 | # -*- coding: utf-8 -*-
import json
from celery import chain
from celery.result import AsyncResult
from dateutil import parser
from django.contrib import messages
from django.core.exceptions import ObjectDoesNotExist, PermissionDenied
from django.db import transaction
from django.http import HttpResponse, Http404
from... | gpl-2.0 | 5,183,465,459,786,464,000 | 39.527174 | 98 | 0.628716 | false |
paulsmith/geodjango | django/contrib/sessions/models.py | 11 | 2618 | import base64
import md5
import cPickle as pickle
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.conf import settings
class SessionManager(models.Manager):
def encode(self, session_dict):
"""
Returns the given session dictionary pickled and encode... | bsd-3-clause | -1,452,284,407,039,529,700 | 38.074627 | 78 | 0.670359 | false |
beni55/networkx | networkx/algorithms/flow/capacityscaling.py | 9 | 14582 | # -*- coding: utf-8 -*-
"""
Capacity scaling minimum cost flow algorithm.
"""
__author__ = """ysitu <ysitu@users.noreply.github.com>"""
# Copyright (C) 2014 ysitu <ysitu@users.noreply.github.com>
# All rights reserved.
# BSD license.
__all__ = ['capacity_scaling']
from itertools import chain
from math import log
imp... | bsd-3-clause | -2,207,491,535,436,145,700 | 37.05483 | 104 | 0.516981 | false |
lowks/simoorg | src/simoorg/plugins/healthcheck/HealthCheck.py | 8 | 1122 | #
# Copyright 2015 LinkedIn Corp. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | apache-2.0 | -5,903,269,389,463,565,000 | 25.714286 | 74 | 0.608734 | false |
appleseedhq/blenderseed | operators/texture_ops.py | 2 | 5174 | #
# This source file is part of appleseed.
# Visit https://appleseedhq.net/ for additional information and resources.
#
# This software is released under the MIT license.
#
# Copyright (c) 2019 Jonathan Dent, The appleseedhq Organization
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
#... | mit | 6,958,384,288,765,109,000 | 30.357576 | 88 | 0.633359 | false |
thomasalrin/Ghost | node_modules/grunt-docker/node_modules/docker/node_modules/pygmentize-bundled/vendor/pygments/pygments/lexer.py | 265 | 26921 | # -*- coding: utf-8 -*-
"""
pygments.lexer
~~~~~~~~~~~~~~
Base lexer classes.
:copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re, itertools
from pygments.filter import apply_filters, Filter
from pygments.filters import get_filt... | mit | 1,303,328,562,497,271,800 | 34.19085 | 81 | 0.512462 | false |
sudosurootdev/external_chromium_org | native_client_sdk/src/build_tools/tests/easy_template_test.py | 53 | 3559 | #!/usr/bin/env python
# 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.
import cStringIO
import difflib
import os
import sys
import unittest
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
BUILD... | bsd-3-clause | 8,142,177,666,924,940,000 | 28.413223 | 79 | 0.59202 | false |
radiasoft/sirepo | sirepo/template/opal.py | 2 | 34879 | # -*- coding: utf-8 -*-
u"""OPAL execution template.
:copyright: Copyright (c) 2019 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
"""
from __future__ import absolute_import, division, print_function
from pykern import pkcompat
from pykern import pkio
from pykern import ... | apache-2.0 | -1,004,422,479,561,435,300 | 33.161606 | 121 | 0.536397 | false |
aeklant/scipy | benchmarks/benchmarks/go_benchmark_functions/go_funcs_P.py | 21 | 20990 | # -*- coding: utf-8 -*-
from numpy import (abs, sum, sin, cos, sqrt, log, prod, where, pi, exp, arange,
floor, log10, atleast_2d, zeros)
from .go_benchmark import Benchmark
class Parsopoulos(Benchmark):
r"""
Parsopoulos objective function.
This class defines the Parsopoulos [1]_ globa... | bsd-3-clause | 1,214,445,231,099,716,900 | 27.911846 | 84 | 0.524726 | false |
electrical/jenkins-job-builder | jenkins_jobs/modules/hipchat_notif.py | 20 | 7674 | # Copyright 2012 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 applicable law... | apache-2.0 | 8,329,134,488,140,141,000 | 43.616279 | 79 | 0.641256 | false |
QGuLL/samba | third_party/pep8/testsuite/E50.py | 44 | 2846 | #: E501
a = '12345678901234567890123456789012345678901234567890123456789012345678901234567890'
#: E501
a = '1234567890123456789012345678901234567890123456789012345678901234567890' or \
6
#: E501
a = 7 or \
'1234567890123456789012345678901234567890123456789012345678901234567890' or \
6
#: E501 E501
a = 7 or ... | gpl-3.0 | -4,260,322,042,312,573,400 | 23.118644 | 99 | 0.639845 | false |
heli522/scikit-learn | examples/linear_model/plot_robust_fit.py | 238 | 2414 | """
Robust linear estimator fitting
===============================
Here a sine function is fit with a polynomial of order 3, for values
close to zero.
Robust fitting is demoed in different situations:
- No measurement errors, only modelling errors (fitting a sine with a
polynomial)
- Measurement errors in X
- M... | bsd-3-clause | 2,924,535,665,432,824,300 | 26.747126 | 77 | 0.651201 | false |
SimVascular/VTK | ThirdParty/Twisted/twisted/web/soap.py | 60 | 5179 | # -*- test-case-name: twisted.web.test.test_soap -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
SOAP support for twisted.web.
Requires SOAPpy 0.10.1 or later.
Maintainer: Itamar Shtull-Trauring
Future plans:
SOAPContext support of some kind.
Pluggable method lookup policies.
"""
#... | bsd-3-clause | -1,009,310,809,154,086,300 | 32.62987 | 80 | 0.609384 | false |
jlegendary/orange | Orange/orng/orngProjectionPursuit.py | 6 | 7987 | import orange
import numpy
import scipy.special
import scipy.optimize
import scipy.stats
from pylab import *
def sqrtm(mat):
""" Retruns the square root of the matrix mat """
U, S, V = numpy.linalg.svd(mat)
D = numpy.diag(numpy.sqrt(S))
return numpy.dot(numpy.dot(U,D),V)
def standardize(mat):
""... | gpl-3.0 | -5,142,976,063,425,057,000 | 34.340708 | 107 | 0.594341 | false |
evansd/django | tests/generic_views/test_dates.py | 5 | 35337 | import datetime
from django.core.exceptions import ImproperlyConfigured
from django.test import TestCase, override_settings, skipUnlessDBFeature
from django.test.utils import requires_tz_support
from django.utils import timezone
from .models import Artist, Author, Book, BookSigning, Page
def _make_books(n, base_dat... | bsd-3-clause | -6,207,267,697,278,586,000 | 48.077778 | 112 | 0.647866 | false |
shlee322/opencampus | cron/lecturerecommend.py | 2 | 2815 | # -*- coding: utf-8 -*-
# Copyright (C) 2015 opencampus.kr
#
# 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 License, or
# (at your option) any later version.
#
# ... | agpl-3.0 | 2,980,649,262,084,054,000 | 28.322917 | 91 | 0.654352 | false |
gylian/sickbeard | lib/requests/packages/chardet2/euctwfreq.py | 323 | 34864 | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights R... | gpl-3.0 | -210,574,281,004,952,320 | 80.840376 | 87 | 0.737265 | false |
tomtor/QGIS | python/plugins/processing/algs/gdal/GdalAlgorithmProvider.py | 14 | 7128 | # -*- coding: utf-8 -*-
"""
***************************************************************************
GdalAlgorithmProvider.py
---------------------
Date : August 2012
Copyright : (C) 2012 by Victor Olaya
Email : volayaf at gmail dot com
*****************... | gpl-2.0 | -3,942,863,663,523,862,500 | 30.964126 | 115 | 0.609287 | false |
xsynergy510x/android_external_chromium_org | tools/telemetry/telemetry/core/backends/chrome/inspector_timeline_unittest.py | 47 | 1636 | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry.core import util
from telemetry.core.backends.chrome import inspector_timeline
from telemetry.unittest import tab_test_case
class InspectorT... | bsd-3-clause | -3,446,414,899,982,070,300 | 38.902439 | 80 | 0.684597 | false |
lidiamcfreitas/FenixScheduleMaker | ScheduleMaker/brython/www/src/Lib/test/test_ipaddress.py | 29 | 72749 | # Copyright 2007 Google Inc.
# Licensed to PSF under a Contributor Agreement.
"""Unittest for ipaddress module."""
import unittest
import re
import contextlib
import operator
import ipaddress
class BaseTestCase(unittest.TestCase):
# One big change in ipaddress over the original ipaddr module is
# error rep... | bsd-2-clause | 135,478,695,425,451,260 | 43.117041 | 79 | 0.593823 | false |
Pulgama/supriya | supriya/realtime/BusGroup.py | 1 | 13504 | import supriya.exceptions
from supriya import CalculationRate
from supriya.realtime.ServerObject import ServerObject
class BusGroup(ServerObject):
"""
A bus group.
::
>>> server = supriya.Server.default().boot()
>>> bus_group = supriya.BusGroup(bus_count=4)
>>> bus_group
... | mit | -1,562,553,412,371,472,100 | 26.391481 | 84 | 0.484967 | false |
nilmini20s/gem5-2016-08-13 | src/arch/x86/isa/insts/x87/compare_and_test/classify.py | 91 | 2149 | # Copyright (c) 2007 The Hewlett-Packard Development Company
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implemen... | bsd-3-clause | 5,906,289,704,111,430,000 | 52.725 | 72 | 0.793858 | false |
Liuer/three.js | utils/exporters/blender/addons/io_three/exporter/api/camera.py | 125 | 1823 | from bpy import data, types, context
from .. import logger
def _camera(func):
"""
:param func:
"""
def inner(name, *args, **kwargs):
"""
:param name:
:param *args:
:param **kwargs:
"""
if isinstance(name, types.Camera):
camera = name
... | mit | -587,885,990,814,124,700 | 13.584 | 50 | 0.560066 | false |
ccellis/WHACK2016 | flask/lib/python2.7/site-packages/whoosh/query/ranges.py | 92 | 13420 | # Copyright 2007 Matt Chaput. 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. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the... | bsd-3-clause | 8,848,559,620,818,140,000 | 37.674352 | 79 | 0.586215 | false |
sysadminmatmoz/OCB | addons/sale/sale.py | 2 | 43709 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from datetime import datetime, timedelta
from openerp import SUPERUSER_ID
from openerp import api, fields, models, _
import openerp.addons.decimal_precision as dp
from openerp.exceptions import UserError
from openerp.too... | agpl-3.0 | 1,356,441,803,119,160,300 | 46.717249 | 276 | 0.60722 | false |
protoplanet/raytracing | ray_main.py | 1 | 8253 | # ------------------------------------------------------------------------------------------ #
# Description : Python implementation of ray tracing equations stated in PhD thesis of Rice (1997)
# Electron/proton stratification according to Yabroff (1961) + IRI model available
# Geometry... | gpl-3.0 | -1,826,581,614,486,203,400 | 29.026316 | 120 | 0.540531 | false |
PeterWangIntel/chromium-crosswalk | tools/telemetry/telemetry/core/platform/win_platform_backend.py | 5 | 14006 | # Copyright 2013 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.
import atexit
import collections
import contextlib
import ctypes
import logging
import os
import platform
import re
import socket
import struct
import subpro... | bsd-3-clause | -2,344,911,813,588,239,000 | 33.497537 | 80 | 0.663858 | false |
yencarnacion/jaikuengine | .google_appengine/lib/django-1.4/tests/regressiontests/i18n/contenttypes/tests.py | 26 | 1080 | # coding: utf-8
from __future__ import with_statement
import os
from django.contrib.contenttypes.models import ContentType
from django.test import TestCase
from django.test.utils import override_settings
from django.utils import translation
class ContentTypeTests(TestCase):
def test_verbose_name(self):
... | apache-2.0 | 5,289,385,271,714,857,000 | 29.8 | 81 | 0.667904 | false |
mzszym/oedes | oedes/tests/test_poisson.py | 1 | 2032 | # -*- coding: utf-8; -*-
#
# oedes - organic electronic device simulator
# Copyright (C) 2017-2018 Marek Zdzislaw Szymanski (marek@marekszymanski.com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License, version 3,
# as published by the ... | agpl-3.0 | 5,374,294,031,110,780,000 | 32.866667 | 92 | 0.676673 | false |
quizlet/grpc | tools/run_tests/python_utils/filter_pull_request_tests.py | 1 | 7545 | #!/usr/bin/env python
# Copyright 2015 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | apache-2.0 | -2,996,128,661,999,145,000 | 37.106061 | 97 | 0.683234 | false |
WSDC-NITWarangal/django | django/core/serializers/base.py | 273 | 7678 | """
Module for abstract serializer/unserializer base classes.
"""
from django.db import models
from django.utils import six
class SerializerDoesNotExist(KeyError):
"""The requested serializer was not found."""
pass
class SerializationError(Exception):
"""Something bad happened during serialization."""
... | bsd-3-clause | 907,925,418,921,862,500 | 32.973451 | 105 | 0.605626 | false |
denmojo/pygrow | grow/server/main_test.py | 1 | 3238 | from grow.pods import pods
from grow.server import main
from grow.testing import testing
import unittest
import webapp2
class PodHandlerTestCase(unittest.TestCase):
def test_request(self):
self.dir_path = testing.create_test_pod_dir()
pod = pods.Pod(self.dir_path)
# When serving a pod, s... | mit | -8,474,674,012,896,385,000 | 37.094118 | 77 | 0.641137 | false |
wrouesnel/ansible | lib/ansible/playbook/role/__init__.py | 26 | 19263 | # (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 | 1,250,600,359,375,481,000 | 37.449102 | 156 | 0.59892 | false |
shangwuhencc/pcl | geometry/include/pcl/geometry/mesh_indices.py | 67 | 11907 | ##
# Software License Agreement (BSD License)
#
# Point Cloud Library (PCL) - www.pointclouds.org
# Copyright (c) 2009-2012, Willow Garage, Inc.
# Copyright (c) 2012-, Open Perception, Inc.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitt... | bsd-3-clause | 652,783,471,604,981,800 | 43.932075 | 161 | 0.541614 | false |
sajeeshcs/nested_quota_final | nova/tests/unit/api/openstack/common.py | 63 | 1685 | # Copyright 2011 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | apache-2.0 | 5,889,512,570,541,016,000 | 29.636364 | 78 | 0.661128 | false |
Davidjohnwilson/sympy | sympy/logic/algorithms/dpll.py | 58 | 9316 | """Implementation of DPLL algorithm
Further improvements: eliminate calls to pl_true, implement branching rules,
efficient unit propagation.
References:
- http://en.wikipedia.org/wiki/DPLL_algorithm
- http://bioinformatics.louisville.edu/ouyang/MingOuyangThesis.pdf
"""
from __future__ import print_function, divis... | bsd-3-clause | 1,714,448,179,366,527,700 | 29.148867 | 98 | 0.591563 | false |
rgeleta/odoo | addons/hr_recruitment/wizard/hr_recruitment_create_partner_job.py | 337 | 3434 | # -*- coding: 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 | -1,698,936,066,852,471,600 | 40.878049 | 118 | 0.5629 | false |
liutc10/digit_recog | code/vlfeat-0.9.20/docsrc/webdoc.py | 34 | 44995 | #!/usr/bin/python
# file: webdoc.py
# author: Andrea Vedaldi
# description: A website formatter utility
# Copyright (C) 2007-13 Andrea Vedaldi and Brian Fulkerson.
# All rights reserved.
#
# This file is part of the VLFeat library and is made available under
# the terms of the BSD license (see the COPYING file).
impo... | gpl-3.0 | -5,732,971,795,176,198,000 | 32.932881 | 125 | 0.502811 | false |
threatstream/mnemosyne | normalizer/modules/dionaea_capture.py | 1 | 2498 | # Copyright (C) 2012 Johnny Vestergaard <jkv@unixcluster.dk>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This ... | gpl-3.0 | -1,723,234,233,610,893,800 | 36.848485 | 85 | 0.571257 | false |
quexxon/lamprey | setup.py | 1 | 1225 | from __future__ import absolute_import
from __future__ import unicode_literals
from setuptools import setup, find_packages
setup(
name="lamprey",
version="0.1.0a1",
description='Lamprey is a Yesql-inspired wrapper around mysqlclient',
license='MIT',
keywords='lamprey mysql mysqlclient mariadb datab... | mit | -1,390,769,276,353,917,400 | 32.108108 | 73 | 0.627755 | false |
rosswhitfield/mantid | Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/DirectILLIntegrateVanadium.py | 3 | 7262 | # -*- coding: utf-8 -*-# Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source,
# Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Ident... | gpl-3.0 | -2,270,386,639,780,784,600 | 46.464052 | 131 | 0.581796 | false |
vrenaville/OCB | addons/crm_claim/__openerp__.py | 52 | 2067 | # -*- 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 | -319,673,575,167,737,700 | 32.885246 | 84 | 0.595549 | false |
Summonee/pelican | pelican/tests/default_conf.py | 24 | 1364 | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
AUTHOR = 'Alexis Métaireau'
SITENAME = "Alexis' log"
SITEURL = 'http://blog.notmyidea.org'
TIMEZONE = 'UTC'
GITHUB_URL = 'http://github.com/ametaireau/'
DISQUS_SITENAME = "blog-notmyidea"
PDF_GENERATOR = False
REVERSE_CATEGORY_ORDER = True... | agpl-3.0 | 6,083,512,296,119,548,000 | 28.608696 | 75 | 0.646109 | false |
wmfs/chimp | src/load/Loader.py | 1 | 37771 | import psycopg2
import os
import imp
import chimpExternalLoader
from load.Stager import Stager
import cs
class Loader:
def __init__(self, supportConnection, supportCursor, settings, queue):
self.supportConnection = supportConnection
self.supportCursor = supportCursor
self.queue = ... | gpl-3.0 | 8,225,251,972,172,026,000 | 42.414943 | 291 | 0.537238 | false |
Evervolv/android_external_chromium_org | native_client_sdk/src/build_tools/tests/test_server.py | 170 | 2165 | # 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.
import multiprocessing
import os
import SimpleHTTPServer
class LocalHTTPServer(object):
"""Class to start a local HTTP server as a child process."""
... | bsd-3-clause | 324,699,938,742,023,400 | 30.376812 | 75 | 0.678522 | false |
hemmerling/codingdojo | src/game_of_life/python_coderetreat_socramob/cr_socrakassel01/gol01_test.py | 1 | 1891 | #This file was originally generated by PyScripter's unitest wizard
import unittest
from gol01 import Gol01
def dummy():
""" Dummy function for comparison of the return values """
return
# tdd = test first
# input -> output
# Ich moechte testen, ob ein Feld 0 Nachbarn hat
# Ich teste die Nachbarn ... | apache-2.0 | -3,575,967,432,375,436,300 | 30.603448 | 77 | 0.527234 | false |
DirtyUnicorns/android_external_chromium_org | mojo/python/tests/messaging_unittest.py | 25 | 7317 | # 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.
import unittest
# pylint: disable=F0401
import mojo.embedder
from mojo.bindings import messaging
from mojo import system
class _ForwardingConnectionErrorH... | bsd-3-clause | 8,353,308,989,138,510,000 | 34.347826 | 77 | 0.717781 | false |
Djlavoy/scrapy | scrapy/spiderloader.py | 117 | 1622 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from zope.interface import implementer
from scrapy.interfaces import ISpiderLoader
from scrapy.utils.misc import walk_modules
from scrapy.utils.spider import iter_spider_classes
@implementer(ISpiderLoader)
class SpiderLoader(object):
"""
SpiderL... | bsd-3-clause | 1,562,686,837,861,477,400 | 29.603774 | 77 | 0.623921 | false |
kittiu/odoo | addons/point_of_sale/report/pos_details.py | 99 | 9400 | # -*- 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,220,028,368,406,920,000 | 46.236181 | 265 | 0.555106 | false |
gion86/awlsim | awlsimhw_debug/main.py | 1 | 2532 | # -*- coding: utf-8 -*-
#
# AWL simulator - Debug hardware interface
#
# Copyright 2013-2014 Michael Buesch <m@bues.ch>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the ... | gpl-2.0 | 8,051,155,005,280,046,000 | 31.050633 | 82 | 0.713665 | false |
rajashreer7/autotest-client-tests | linux-tools/perl_XML_RegExp/perl_XML_RegExp.py | 4 | 1286 | #!/bin/python
import os, subprocess
import logging
from autotest.client import test
from autotest.client.shared import error
class perl_XML_RegExp(test.test):
"""
Autotest module for testing basic functionality
of perl_XML_RegExp
@author Ramya BS <ramyabs1@in.ibm.com> ... | gpl-2.0 | -2,089,636,518,589,838,300 | 25.791667 | 103 | 0.539658 | false |
40223117cda/w16cdaa | static/Brython3.1.1-20150328-091302/Lib/_testcapi.py | 742 | 4231 |
CHAR_MAX = 127
CHAR_MIN = -128
DBL_MAX = 1.7976931348623157e+308
DBL_MIN = 2.2250738585072014e-308
FLT_MAX = 3.4028234663852886e+38
FLT_MIN = 1.1754943508222875e-38
INT_MAX = 2147483647
INT_MIN = -2147483648
LLONG_MAX = 9223372036854775807
LLONG_MIN = -9223372036854775808
LONG_MAX = 2147483647
LONG_MIN = -2... | gpl-3.0 | 4,982,303,234,412,845,000 | 13.589655 | 75 | 0.637674 | 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.