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 |
|---|---|---|---|---|---|---|---|---|---|---|
lucastan/django-starter-box | djcdn/filters/__init__.py | 1 | 3858 | from __future__ import unicode_literals
import re
import os.path
import subprocess
import shutil
import tempfile
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
import cssmin as cssmin_mod
import slimit as slimit_mod
from django.conf import settings
from django.core.fi... | mit | 3,051,242,461,680,098,300 | 25.424658 | 88 | 0.614308 | false |
wallnerryan/quantum_migrate | quantum/tests/unit/test_routerserviceinsertion.py | 2 | 18424 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 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/lice... | apache-2.0 | -1,378,042,565,265,026,300 | 36.220202 | 79 | 0.580113 | false |
rahushen/ansible | lib/ansible/modules/database/misc/riak.py | 20 | 7457 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2013, James Martin <jmartin@basho.com>, Drew Kerrigan <dkerrigan@basho.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METAD... | gpl-3.0 | 2,830,179,194,964,987,000 | 30.070833 | 100 | 0.586295 | false |
ad-m/petycja-faoo | docs/conf.py | 2 | 7782 | # -*- coding: utf-8 -*-
#
# ankieta documentation build configuration file, created by
# sphinx-quickstart.
#
# 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.
#
# All configuration values have a... | bsd-3-clause | -951,954,446,005,789,800 | 30.755102 | 80 | 0.696144 | false |
chenyyx/scikit-learn-doc-zh | examples/en/neighbors/plot_digits_kde_sampling.py | 108 | 2026 | """
=========================
Kernel Density Estimation
=========================
This example shows how kernel density estimation (KDE), a powerful
non-parametric density estimation technique, can be used to learn
a generative model for a dataset. With this generative model in place,
new samples can be drawn. These... | gpl-3.0 | -8,678,496,040,893,842,000 | 31.677419 | 77 | 0.681639 | false |
RobinD42/pyside | tests/QtGui/qpainter_test.py | 6 | 3431 | import unittest
from PySide.QtGui import QPainter, QLinearGradient
from PySide.QtCore import QLine, QLineF, QPoint, QPointF, QRect, QRectF, Qt
class QPainterDrawText(unittest.TestCase):
def setUp(self):
self.painter = QPainter()
self.text = 'teste!'
def tearDown(self):
del self.text
... | lgpl-2.1 | 3,816,025,778,035,310,600 | 40.337349 | 79 | 0.490236 | false |
oxford-pcs/zemax_controller | MeritFunction.py | 1 | 6082 | class MeritFunctionError(Exception):
def __init__(self, message, error):
super(Exception, self).__init__(message)
self.errors = error
class MeritFunction():
'''
This class provides functionality to create a merit function
using Zemax's command DEFAULTMERIT.
To create a merit fnction, a bl... | mit | -4,948,104,580,924,317,000 | 40.944828 | 78 | 0.573989 | false |
dcroc16/skunk_works | google_appengine/lib/django-1.4/django/utils/dateparse.py | 96 | 2896 | """Functions to parse datetime objects."""
# We're using regular expressions rather than time.strptime because:
# - They provide both validation and parsing.
# - They're more flexible for datetimes.
# - The date/datetime/time constructors produce friendlier error messages.
import datetime
import re
from django.utils.... | mit | 8,292,126,634,953,930,000 | 33.070588 | 78 | 0.611878 | false |
windofthesky/thrift | test/crossrunner/util.py | 55 | 1057 | #
# 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 | 2,000,881,095,513,302,300 | 33.096774 | 61 | 0.734153 | false |
cloudtools/troposphere | troposphere/emr.py | 1 | 15025 | # Copyright (c) 2012-2013, Antonio Alonso Dominguez <alonso.domin@gmail.com>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSHelperFn, AWSObject, AWSProperty, Tags
from .validators import boolean, defer, double, integer, positive_integer
CHANGE_IN_CAPACITY = "CHANGE_IN_CAPACITY"
PERCENT... | bsd-2-clause | 7,658,516,070,814,352,000 | 29.538618 | 88 | 0.609651 | false |
codefisher/mozbutton_sdk | builder/web_extension.py | 1 | 10238 | import os
import json
import re
from builder.ext_button import Button, get_image, ExtensionConfigError, bytes_string
from builder.locales import WebExtensionLocal, message_name
class WebExtensionButton(Button):
def __init__(self, folders, buttons, settings, applications):
super(WebExtensionButton, self)... | mit | 4,046,920,285,330,585,000 | 43.517391 | 118 | 0.547959 | false |
glaubitz/fs-uae-debian | launcher/fsgs/SignalContext.py | 2 | 1928 | import weakref
from fsbc.signal import Signal
from .contextaware import ContextAware
class SignalBehavior:
def __init__(self, context, parent, names):
parent.__signal_enable_behavior = self
self._context = context
self._parent = weakref.ref(parent)
self._names = set(names)
... | gpl-2.0 | -4,414,286,885,599,210,500 | 31.133333 | 78 | 0.612033 | false |
openplans/streetscore | street_score/project/migrations/0008_auto__add_userinfo.py | 1 | 4037 | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'UserInfo'
db.create_table('project_userinfo', (
('id', self.gf('django.db.mode... | mit | 6,096,652,749,824,241,000 | 55.069444 | 141 | 0.560812 | false |
ejpbruel/servo | components/style/properties/build.py | 17 | 2862 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import json
import os.path
import sys
BASE = os.path.dirname(__file__.replace('\\', '/'))
sys.path.insert(0, os.path.jo... | mpl-2.0 | 5,004,427,569,039,865,000 | 33.071429 | 94 | 0.612159 | false |
mapr/hue | desktop/core/ext-py/Django-1.6.10/django/contrib/gis/db/backends/mysql/compiler.py | 120 | 1089 | from django.contrib.gis.db.models.sql.compiler import GeoSQLCompiler as BaseGeoSQLCompiler
from django.db.backends.mysql import compiler
SQLCompiler = compiler.SQLCompiler
class GeoSQLCompiler(BaseGeoSQLCompiler, SQLCompiler):
def resolve_columns(self, row, fields=()):
"""
Integrate the cases hand... | apache-2.0 | -3,991,029,386,003,621,400 | 30.114286 | 90 | 0.767677 | false |
JayKickliter/gr-ieee802-15-4 | python/qa_deinterleaver_ff.py | 2 | 2345 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2015 Felix Wunsch, Communications Engineering Lab (CEL) / Karlsruhe Institute of Technology (KIT) <wunsch.felix@googlemail.com>.
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publis... | gpl-3.0 | -7,506,267,640,021,701,000 | 33.485294 | 140 | 0.676759 | false |
enthought/traitsgui | enthought/pyface/image_button.py | 1 | 10217 | #------------------------------------------------------------------------------
#
# Copyright (c) 2005, Enthought, Inc.
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in enthought/LICENSE.txt and may be redistributed only
# under the conditions d... | bsd-3-clause | 8,925,302,404,660,955,000 | 36.288321 | 80 | 0.460605 | false |
drmrd/ansible | lib/ansible/plugins/action/patch.py | 107 | 2644 | # (c) 2015, Brian Coca <briancoca+dev@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later v... | gpl-3.0 | -5,221,499,544,707,785,000 | 35.722222 | 110 | 0.647504 | false |
yanchen036/tensorflow | tensorflow/python/kernel_tests/identity_n_op_py_test.py | 58 | 2742 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -3,380,054,429,973,307,000 | 38.171429 | 80 | 0.610139 | false |
mbkumar/pymatgen | setup.py | 1 | 9254 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""Setup.py for pymatgen."""
import sys
import platform
from setuptools import setup, find_packages, Extension
from setuptools.command.build_ext import build_ext as _build_ext
class build_ext(_build_ext):
... | mit | 1,911,614,734,960,182,000 | 47.203125 | 113 | 0.648909 | false |
hfp/tensorflow-xsmm | tensorflow/python/util/tf_stack.py | 25 | 3807 | # 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,521,067,529,048,017,000 | 35.961165 | 80 | 0.694773 | false |
spallavolu/scikit-learn | sklearn/utils/sparsefuncs.py | 220 | 11424 | # Authors: Manoj Kumar
# Thomas Unterthiner
# License: BSD 3 clause
import scipy.sparse as sp
import numpy as np
from .fixes import sparse_min_max, bincount
from .sparsefuncs_fast import csr_mean_variance_axis0 as _csr_mean_var_axis0
from .sparsefuncs_fast import csc_mean_variance_axis0 as _csc_mean_var_axis... | bsd-3-clause | -6,075,114,900,915,401,000 | 27.277228 | 79 | 0.587798 | false |
rklabs/scrapy | scrapy/downloadermiddlewares/cookies.py | 128 | 3330 | import os
import six
import logging
from collections import defaultdict
from scrapy.exceptions import NotConfigured
from scrapy.http import Response
from scrapy.http.cookies import CookieJar
from scrapy.utils.python import to_native_str
logger = logging.getLogger(__name__)
class CookiesMiddleware(object):
"""Th... | bsd-3-clause | -6,992,714,417,798,575,000 | 34.425532 | 79 | 0.603904 | false |
VikingDen/jira | docs/conf.py | 8 | 7887 | # -*- coding: utf-8 -*-
#
# JIRA Python Client documentation build configuration file, created by
# sphinx-quickstart on Thu May 3 17:01:50 2012.
#
# 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 fi... | bsd-2-clause | 2,177,525,144,185,185,300 | 31.32377 | 80 | 0.705084 | false |
beck/django | tests/template_tests/filter_tests/test_slugify.py | 324 | 1430 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.template.defaultfilters import slugify
from django.test import SimpleTestCase
from django.utils.safestring import mark_safe
from ..utils import setup
class SlugifyTests(SimpleTestCase):
"""
Running slugify on a pre-escaped string le... | bsd-3-clause | 8,574,211,201,884,774,000 | 32.255814 | 103 | 0.617483 | false |
andrius-preimantas/odoo | addons/website_forum/models/forum.py | 6 | 32098 | # -*- coding: utf-8 -*-
from datetime import datetime
import openerp
from openerp import tools
from openerp import SUPERUSER_ID
from openerp.addons.website.models.website import slug
from openerp.osv import osv, fields
from openerp.tools import html2plaintext
from openerp.tools.translate import _
class KarmaError(V... | agpl-3.0 | -294,145,011,868,912,800 | 53.681431 | 182 | 0.608138 | false |
MichSchli/QuestionAnsweringGCN | models/tensorflow_components/graph/assignment_view.py | 1 | 1394 | import tensorflow as tf
class AssignmentView:
def __init__(self):
self.variables = {}
self.variables["total_vertex_count"] = tf.placeholder(tf.int32)
self.variables["vertex_indices"] = tf.placeholder(tf.int32)
self.variables["from_range"] = tf.placeholder(tf.int32)
def get_al... | mit | -746,560,960,091,777,800 | 36.702703 | 83 | 0.662841 | false |
Habatchii/PTVS | Python/Tests/TestData/VirtualEnv/env/Lib/encodings/cp1254.py | 93 | 14065 | """ Python Character Mapping Codec cp1254 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1254.TXT' with gencodec.py.
"""#"
import codecs
### Codec APIs
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
return codecs.charmap_encode(input,errors,encoding_table)
def d... | apache-2.0 | -1,269,278,266,740,425,000 | 43.814332 | 119 | 0.530537 | false |
oihane/odoomrp-wip | mrp_operations_start_without_material/__openerp__.py | 6 | 1441 | # -*- coding: utf-8 -*-
##############################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the L... | agpl-3.0 | 1,057,261,153,074,887,700 | 41.382353 | 78 | 0.580153 | false |
ronojoy/BDA_py_demos | demos_ch5/demo5_2.py | 19 | 3326 | """Bayesian Data Analysis, 3rd ed
Chapter 5, demo 2
Hierarchical model for SAT-example data (BDA3, p. 102)
"""
from __future__ import division
import numpy as np
from scipy.stats import norm
import scipy.io # For importing a matlab file
import matplotlib.pyplot as plt
# Edit default plot settings (colours from colo... | gpl-3.0 | -6,402,668,295,586,645,000 | 29.796296 | 80 | 0.621768 | false |
Tangxuguo/Django_SNS | osf/restapi/serializers.py | 1 | 1410 | from django.contrib.auth.models import User, Group
from rest_framework import serializers
from accounts.models import *
from album.models import *
from comment.models import *
from notification.models import *
from post.models import *
from tag.models import *
# accout
class UserSerializer(serializers.HyperlinkedMode... | gpl-3.0 | 5,710,475,254,197,816,000 | 29 | 85 | 0.68156 | false |
myang321/django | tests/generic_views/test_detail.py | 284 | 8387 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import datetime
from django.core.exceptions import ImproperlyConfigured, ObjectDoesNotExist
from django.test import TestCase, override_settings
from django.test.client import RequestFactory
from django.views.generic.base import View
from django.views.gen... | bsd-3-clause | 346,526,713,830,317,400 | 48.040936 | 112 | 0.680897 | false |
lokeshh/stem | test/unit/descriptor/export.py | 8 | 3212 | """
Unit tests for stem.descriptor.export.
"""
import unittest
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
import stem.prereq
import test.runner
from stem.descriptor.export import export_csv, export_csv_file
from test.mocking import (
get_relay_server_descriptor,
get_brid... | lgpl-3.0 | -830,947,499,963,016,300 | 27.678571 | 104 | 0.672478 | false |
amitdeutsch/oppia | extensions/rules/real.py | 7 | 1336 | # coding: utf-8
#
# Copyright 2014 The Oppia 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 requi... | apache-2.0 | 5,404,328,140,452,912,000 | 27.425532 | 74 | 0.723054 | false |
siddhika1889/Pydev-Dependencies | pysrc/pydev_ipython/version.py | 142 | 1227 | # encoding: utf-8
"""
Utilities for version comparison
It is a bit ridiculous that we need these.
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2013 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the f... | epl-1.0 | -1,244,585,559,011,090,400 | 33.083333 | 84 | 0.439283 | false |
Dahlgren/HTPC-Manager | libs/concurrent/futures/thread.py | 104 | 4605 | # Copyright 2009 Brian Quinlan. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
"""Implements ThreadPoolExecutor."""
from __future__ import with_statement
import atexit
import threading
import weakref
import sys
from concurrent.futures import _base
try:
import queue
except ImportError:
... | mit | -7,291,074,688,194,508,000 | 32.369565 | 80 | 0.601954 | false |
twobraids/configman | configman/converters.py | 2 | 18916 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from __future__ import absolute_import, division, print_function
import sys
import re
import datetime
import types
impor... | mpl-2.0 | 6,187,991,155,994,165,000 | 37.683027 | 79 | 0.55239 | false |
raoulbq/scipy | scipy/_lib/_numpy_compat.py | 71 | 1488 | """Functions copypasted from newer versions of numpy.
"""
from __future__ import division, print_function, absolute_import
import warnings
import numpy as np
from scipy._lib._version import NumpyVersion
if NumpyVersion(np.__version__) > '1.7.0.dev':
_assert_warns = np.testing.assert_warns
else:
def _assert... | bsd-3-clause | -6,048,154,407,946,600,000 | 30.659574 | 76 | 0.571237 | false |
yohanko88/gem5-DC | util/batch/batch.py | 90 | 7895 | # Copyright (c) 2006 The Regents of The University of Michigan
# 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 ... | bsd-3-clause | 6,045,540,813,674,110,000 | 30.706827 | 90 | 0.550095 | false |
vmarkovtsev/django | tests/view_tests/tests/test_csrf.py | 253 | 3203 | from django.test import Client, SimpleTestCase, override_settings
from django.utils.translation import override
@override_settings(ROOT_URLCONF="view_tests.urls")
class CsrfViewTests(SimpleTestCase):
def setUp(self):
super(CsrfViewTests, self).setUp()
self.client = Client(enforce_csrf_checks=True... | bsd-3-clause | -3,414,355,512,613,547,000 | 41.144737 | 80 | 0.580393 | false |
simod/geonode | geonode/services/enumerations.py | 7 | 1968 | # -*- coding: utf-8 -*-
#########################################################################
#
# Copyright (C) 2017 OSGeo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 ... | gpl-3.0 | -6,065,265,642,711,118,000 | 26.333333 | 73 | 0.60061 | false |
jeffery-do/Vizdoombot | doom/lib/python3.5/site-packages/scipy/ndimage/io.py | 47 | 1096 | from __future__ import division, print_function, absolute_import
_have_pil = True
try:
from scipy.misc.pilutil import imread as _imread
except ImportError:
_have_pil = False
__all__ = ['imread']
# Use the implementation of `imread` in `scipy.misc.pilutil.imread`.
# If it weren't for the different names of... | mit | 7,995,285,023,647,528,000 | 34.354839 | 82 | 0.676095 | false |
keedio/hue | desktop/core/ext-py/Django-1.6.10/tests/model_inheritance/tests.py | 40 | 13501 | from __future__ import absolute_import, unicode_literals
from operator import attrgetter
from django.core.exceptions import FieldError
from django.db import connection
from django.test import TestCase
from django.test.utils import CaptureQueriesContext
from django.utils import six
from .models import (Chef, CommonIn... | apache-2.0 | 24,582,578,400,375,956 | 36.817927 | 140 | 0.594697 | false |
CVL-dev/cvl-fabric-launcher | pyinstaller-2.1/PyInstaller/bindepend.py | 9 | 27811 | #-----------------------------------------------------------------------------
# Copyright (c) 2013, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed with this softwa... | gpl-3.0 | -1,781,233,792,439,208,200 | 36.130841 | 101 | 0.567222 | false |
bdupharm/sqlalchemy | test/orm/test_deferred.py | 2 | 29273 | import sqlalchemy as sa
from sqlalchemy import testing, util
from sqlalchemy.orm import mapper, deferred, defer, undefer, Load, \
load_only, undefer_group, create_session, synonym, relationship, Session,\
joinedload, defaultload, aliased, contains_eager, with_polymorphic
from sqlalchemy.testing import eq_, Asse... | mit | -8,243,662,691,780,330,000 | 35.139506 | 92 | 0.564787 | false |
Medium/phantomjs-1 | src/qt/qtwebkit/Tools/Scripts/webkitpy/common/system/logtesting.py | 124 | 9435 | # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org)
#
# 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... | bsd-3-clause | 8,120,143,862,459,598,000 | 35.569767 | 79 | 0.661049 | false |
bblacey/FreeCAD-MacOS-CI | src/Mod/Import/App/SCL/AggregationDataTypes.py | 29 | 27474 | # Copyright (c) 2011, Thomas Paviot (tpaviot@gmail.com)
# All rights reserved.
# This file is part of the StepClassLibrary (SCL).
#
# 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 mus... | lgpl-2.1 | -7,348,007,568,203,611,000 | 44.637874 | 145 | 0.63187 | false |
CSC301H-Fall2013/JuakStore | site-packages/build/lib/django/core/management/__init__.py | 99 | 18224 | import collections
import os
import sys
from optparse import OptionParser, NO_DEFAULT
import imp
import warnings
from django.core.exceptions import ImproperlyConfigured
from django.core.management.base import BaseCommand, CommandError, handle_default_options
from django.core.management.color import color_style
from dj... | mit | -6,562,748,126,169,845,000 | 37.857143 | 98 | 0.609252 | false |
credativ/pulp | server/pulp/server/db/model/criteria.py | 7 | 15518 | from types import NoneType
import copy
import re
import sys
import pymongo
from pulp.common.dateutils import parse_iso8601_datetime
from pulp.server import exceptions as pulp_exceptions
from pulp.server.db.model.base import Model
class Criteria(Model):
def __init__(self, filters=None, sort=None, limit=None, ski... | gpl-2.0 | 8,061,979,739,426,544,000 | 33.638393 | 100 | 0.587382 | false |
fairwaves/umtrx_scripts | python_lib/umtrx_lms.py | 1 | 40513 | #!/usr/bin/env python
#
# Copyright 2012 Fairwaves
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is... | bsd-3-clause | 4,775,116,616,666,886,000 | 45.459862 | 272 | 0.616839 | false |
GabrielNicolasAvellaneda/dd-agent | agent.py | 22 | 11230 | #!/opt/datadog-agent/embedded/bin/python
'''
Datadog
www.datadoghq.com
----
Make sense of your IT Data
Licensed under Simplified BSD License (see LICENSE)
(C) Boxed Ice 2010 all rights reserved
(C) Datadog, Inc. 2010-2014 all rights reserved
'''
# set up logging before importing any other c... | bsd-3-clause | 6,766,129,702,287,918,000 | 30.723164 | 103 | 0.589849 | false |
Jandersoft/openshift-ansible | roles/lib_zabbix/library/zbx_mediatype.py | 19 | 5963 | #!/usr/bin/env python
'''
Ansible module for mediatype
'''
# vim: expandtab:tabstop=4:shiftwidth=4
#
# Zabbix mediatype ansible module
#
#
# Copyright 2015 Red Hat Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You... | apache-2.0 | -3,642,282,934,663,429,000 | 34.494048 | 103 | 0.598021 | false |
bytedance/fedlearner | web_console_v2/api/test/fedlearner_webconsole/job/yaml_formatter_test.py | 1 | 6423 | # Copyright 2021 The FedLearner 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 | -2,321,744,233,601,949,700 | 41.256579 | 111 | 0.433754 | false |
emory-libraries/findingaids | findingaids/fa/tests/models.py | 1 | 16453 | # file findingaids/fa/tests/models.py
#
# Copyright 2012 Emory University Library
#
# 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
... | apache-2.0 | 4,244,901,699,292,511,700 | 50.099379 | 246 | 0.658603 | false |
koldunovn/folium | docs/conf.py | 9 | 7719 | # -*- coding: utf-8 -*-
#
# Folium documentation build configuration file, created by
# sphinx-quickstart on Sun May 19 19:39:34 2013.
#
# 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.
#
# All ... | mit | 1,973,911,723,702,190,300 | 30.896694 | 80 | 0.702423 | false |
abridgett/boto | tests/integration/redshift/test_layer1.py | 133 | 5384 | # Copyright (c) 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved
#
# 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 ... | mit | 8,430,363,428,401,420,000 | 39.179104 | 77 | 0.65026 | false |
kinnou02/navitia | source/sql/alembic/versions/538bc4ea9cd1_multiple_comments.py | 4 | 2894 | """multiple comments
Remove all comment column and add 2 new tables:
* one comment table
* one table to make the link between pt object and the comments
Revision ID: 538bc4ea9cd1
Revises: 29fc422c56cb
Create Date: 2015-05-05 11:03:45.982893
"""
# revision identifiers, used by Alembic.
revision = '538bc4ea9cd... | agpl-3.0 | 7,907,076,407,283,787,000 | 43.523077 | 108 | 0.661714 | false |
currychou/1 | static/Brython3.1.3-20150514-095342/Lib/bisect.py | 1261 | 2595 | """Bisection algorithms."""
def insort_right(a, x, lo=0, hi=None):
"""Insert item x in list a, and keep it sorted assuming a is sorted.
If x is already in a, insert it to the right of the rightmost x.
Optional args lo (default 0) and hi (default len(a)) bound the
slice of a to be searched.
"""
... | gpl-3.0 | 1,471,073,728,502,297,300 | 27.206522 | 79 | 0.591908 | false |
trdean/grEME | gr-blocks/python/blocks/qa_ctrlport_probes.py | 8 | 7371 | #!/usr/bin/env python
#
# 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)
# ... | gpl-3.0 | -9,063,256,345,855,157,000 | 31.187773 | 70 | 0.576177 | false |
citassa1985/youtube-dl | youtube_dl/extractor/musicplayon.py | 150 | 2670 | # encoding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import int_or_none
class MusicPlayOnIE(InfoExtractor):
_VALID_URL = r'https?://(?:.+?\.)?musicplayon\.com/play(?:-touch)?\?(?:v|pl=100&play)=(?P<id>\d+)'
_TEST = {
'url': 'http://en.mu... | unlicense | 116,988,243,016,919,500 | 34.6 | 108 | 0.502996 | false |
nanuxbe/django-modeltranslation | modeltranslation/utils.py | 7 | 5531 | # -*- coding: utf-8 -*-
from contextlib import contextmanager
from django.utils import six
from django.utils.encoding import force_text
from django.utils.translation import get_language as _get_language
from django.utils.translation import get_language_info
from django.utils.functional import lazy
from modeltranslati... | bsd-3-clause | -6,994,220,949,268,251,000 | 30.248588 | 88 | 0.640391 | false |
aristanetworks/arista-ovs-nova | nova/tests/xenapi/test_vm_utils.py | 1 | 6730 | import mox
from nova import context
from nova import db
from nova import exception
from nova.tests.xenapi import stubs
from nova.virt.xenapi import driver as xenapi_conn
from nova.virt.xenapi import fake
from nova.virt.xenapi import vm_utils
from nova.virt.xenapi import volume_utils
import unittest
class GetInstanceF... | apache-2.0 | 8,974,138,715,760,973,000 | 34.797872 | 79 | 0.571025 | false |
pmeier82/SpikePlot | spikeplot/plot_xvf_tensor.py | 1 | 3432 | # -*- coding: utf-8 -*-
#
# spikeplot - plot_xvf_tensor.py
#
# Philipp Meier <pmeier82 at googlemail dot com>
# 2011-09-29
#
"""plot the xi vs f tensor in a grid"""
__docformat__ = 'restructuredtext'
__all__ = ['xvf_tensor']
##---IMPORTS
from .common import save_figure, check_plotting_handle, plt
##---FUNCTION
... | mit | -9,096,551,761,291,160,000 | 29.371681 | 78 | 0.569347 | false |
dursk/django | django/core/serializers/xml_serializer.py | 184 | 15662 | """
XML serializer.
"""
from __future__ import unicode_literals
from collections import OrderedDict
from xml.dom import pulldom
from xml.sax import handler
from xml.sax.expatreader import ExpatParser as _ExpatParser
from django.apps import apps
from django.conf import settings
from django.core.serializers import bas... | bsd-3-clause | -2,767,154,588,508,310,000 | 38.351759 | 111 | 0.589388 | false |
songmonit/CTTMSONLINE_V8 | addons/crm_profiling/__init__.py | 438 | 1089 | # -*- 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... | agpl-3.0 | 7,481,408,263,594,006,000 | 44.375 | 79 | 0.614325 | false |
thresholdsoftware/asylum-v2.0 | openerp/addons/point_of_sale/wizard/pos_open_statement.py | 48 | 4238 | # -*- 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,697,870,216,556,036,000 | 45.571429 | 439 | 0.588957 | false |
soarpenguin/ansible | test/runner/lib/config.py | 43 | 7640 | """Configuration classes."""
from __future__ import absolute_import, print_function
import os
import sys
from lib.util import (
CommonConfig,
is_shippable,
docker_qualify_image,
)
from lib.metadata import (
Metadata,
)
class EnvironmentConfig(CommonConfig):
"""Configuration common to all comma... | gpl-3.0 | -5,767,145,833,485,103,000 | 31.649573 | 124 | 0.601702 | false |
photoninger/ansible | test/units/modules/network/aireos/aireos_module.py | 73 | 2510 | # (c) 2016 Red Hat Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is dis... | gpl-3.0 | -6,073,365,825,364,110,000 | 27.850575 | 100 | 0.660159 | false |
PaulWay/insights-core | insights/tools/perf.py | 2 | 5493 | #!/usr/bin/env python
import argparse
import json
import logging
import multiprocessing as mp
import os
import signal
import time
from collections import defaultdict
from random import sample
from insights.core import archives
from insights.core import load_package
from insights.core.evaluators import MultiEvaluator,... | apache-2.0 | -1,104,767,682,246,000,400 | 28.853261 | 153 | 0.626616 | false |
johnkeepmoving/oss-ftp | python27/win32/Lib/site-packages/setuptools/tests/test_packageindex.py | 377 | 7625 | """Package Index Tests
"""
import sys
import os
import unittest
import pkg_resources
from setuptools.compat import urllib2, httplib, HTTPError, unicode, pathname2url
import distutils.errors
import setuptools.package_index
from setuptools.tests.server import IndexServer
class TestPackageIndex(unittest.TestCase):
d... | mit | -1,697,622,576,105,995,500 | 36.561576 | 112 | 0.608 | false |
devs1991/test_edx_docmode | venv/lib/python2.7/site-packages/scipy/sparse/linalg/eigen/arpack/setup.py | 6 | 1388 | #!/usr/bin/env python
from __future__ import division, print_function, absolute_import
from os.path import join
def configuration(parent_package='',top_path=None):
from numpy.distutils.system_info import get_info, NotFoundError
from numpy.distutils.misc_util import Configuration
from scipy._build_utils i... | agpl-3.0 | -3,644,373,364,729,329,000 | 32.047619 | 67 | 0.615994 | false |
konstruktoid/ansible-upstream | lib/ansible/modules/network/aruba/aruba_config.py | 50 | 15163 | #!/usr/bin/python
#
# Copyright: Ansible Team
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | gpl-3.0 | 4,470,929,039,961,670,700 | 37.780051 | 96 | 0.651322 | false |
jamesblunt/edx-platform | openedx/core/djangoapps/content/course_structures/tests.py | 54 | 8934 | import json
from xmodule_django.models import UsageKey
from xmodule.modulestore.django import SignalHandler
from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase
from xmodule.modulestore.tests.factories import CourseFactory, ItemFactory
from openedx.core.djangoapps.content.course_structures.models imp... | agpl-3.0 | -6,564,560,253,113,337,000 | 38.184211 | 120 | 0.595478 | false |
nevercast/home-assistant | homeassistant/components/device_tracker/owntracks.py | 3 | 3174 | """
homeassistant.components.device_tracker.owntracks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
OwnTracks platform for the device tracker.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/device_tracker.owntracks/
"""
import json
import logging
im... | mit | 3,997,379,123,431,782,000 | 28.943396 | 75 | 0.542218 | false |
hastexo/edx-platform | lms/djangoapps/course_goals/views.py | 2 | 4467 | """
Course Goals Views - includes REST API
"""
import analytics
from django.contrib.auth import get_user_model
from django.conf import settings
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.http import JsonResponse
from edx_rest_framework_extensions.authentication impo... | agpl-3.0 | 5,666,673,971,835,390,000 | 33.627907 | 107 | 0.636893 | false |
zhDai/CToFun | 简单购物模式/pb_.py | 1 | 8322 | #_*_ coding:utf-8 _*_
import sys,os,getpass
#######################################################################
def start_screen():
print ('''
*****************************************************************************
If you have one account,then choose "登录(L)";if none, please choose "注册(R)"
... | gpl-2.0 | 8,125,918,728,703,120,000 | 39.788889 | 133 | 0.320485 | false |
dsnopek/anki-sync-server | AnkiServer/__init__.py | 1 | 1558 |
# AnkiServer - A personal Anki sync server
# Copyright (C) 2013 David Snopek
#
# 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... | agpl-3.0 | 3,867,358,010,697,866,000 | 37 | 92 | 0.720796 | false |
gqwest-erp/server | openerp/addons/account_sequence/__init__.py | 433 | 1104 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | -5,097,301,467,750,938,000 | 43.16 | 78 | 0.625 | false |
SAM-IT-SA/odoo | addons/im_livechat/im_livechat.py | 239 | 12432 | # -*- 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 | -6,238,217,412,614,760,000 | 48.52988 | 178 | 0.61028 | false |
mtr/ttpd | lib/TTP/PayExMessage.py | 1 | 5449 | #! /usr/bin/python
# -*- coding: latin-1 -*-
# $Id: Message.py 662 2007-02-06 13:59:26Z mtr $
"""
An implementation of the TUC Transfer Protocol.
This module contains a TTP message class and an XML parser that
transforms XML into a TTP message.
Copyright (C) 2004, 2007 by Lingit AS
Modified 25-may-2007, Kristian Ska... | gpl-3.0 | -5,679,720,786,599,906,000 | 29.104972 | 77 | 0.595155 | false |
scs/uclinux | user/python/python-2.4.4/Lib/test/list_tests.py | 12 | 15389 | """
Tests common to list and UserList.UserList
"""
import sys
import os
import unittest
from test import test_support, seq_tests
class CommonTest(seq_tests.CommonTest):
def test_init(self):
# Iterable arg is optional
self.assertEqual(self.type2test([]), self.type2test())
# Init clears p... | gpl-2.0 | -7,195,493,433,187,287,000 | 29.473267 | 81 | 0.506401 | false |
Tatsh-ansible/ansible | test/units/executor/test_task_result.py | 45 | 5605 | # (c) 2016, James Cammarata <jimi@sngx.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 License, or
# (at your option) any later version... | gpl-3.0 | -2,827,986,006,665,086,000 | 39.035714 | 132 | 0.64942 | false |
pepetreshere/odoo | addons/product_margin/tests/test_product_margin.py | 2 | 2591 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.addons.account.tests.common import AccountTestInvoicingCommon
from odoo.tests import tagged
@tagged('post_install', '-at_install')
class TestProductMargin(AccountTestInvoicingCommon):
def test_product_mar... | agpl-3.0 | 4,163,921,782,696,744,400 | 38.257576 | 109 | 0.546507 | false |
eenchev/idea-note-taking-app | env/lib/python2.7/site-packages/psycopg2/tz.py | 23 | 4424 | """tzinfo implementations for psycopg2
This module holds two different tzinfo implementations that can be used as
the 'tzinfo' argument to datetime constructors, directly passed to psycopg
functions or used to set the .tzinfo_factory attribute in cursors.
"""
# psycopg/tz.py - tzinfo implementation
#
# Copyright (C) 2... | mit | 3,574,910,366,894,397,400 | 31.291971 | 78 | 0.647152 | false |
freyes/flask-hello-world | alembic/env.py | 1 | 2048 | from __future__ import with_statement
import os
from alembic import context
from sqlalchemy import engine_from_config, pool
from logging.config import fileConfig
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interpret the config file ... | apache-2.0 | -6,676,072,697,519,764,000 | 27.444444 | 80 | 0.689453 | false |
rjshade/grpc | src/python/grpcio_health_checking/grpc_version.py | 5 | 1658 | # Copyright 2016, 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 f... | bsd-3-clause | -774,913,844,629,898,900 | 50.8125 | 106 | 0.780458 | false |
chris-hudson/impromptica | impromptica/probdata.py | 1 | 7390 | """Probability data from various sources.
In this module, the "Essen corpus" refers to a corpus of 6,217 European folk
songs from the Essen Folksong Collection. The songs are available at
http://kern.ccarh.org/cgi-bin/ksbrowse?l=/essen and the list of songs used to
train the monophonic key and meter programs is publis... | mit | -222,571,958,470,071,170 | 34.873786 | 79 | 0.701624 | false |
adw0rd/lettuce | tests/integration/lib/Django-1.2.5/django/core/serializers/pyyaml.py | 204 | 1948 | """
YAML serializer.
Requires PyYaml (http://pyyaml.org/), but that's checked for in __init__.
"""
from StringIO import StringIO
import decimal
import yaml
from django.db import models
from django.core.serializers.python import Serializer as PythonSerializer
from django.core.serializers.python import Deserializer as... | gpl-3.0 | -2,333,068,744,778,059,000 | 33.785714 | 88 | 0.698152 | false |
Tejas-Subramanya/RYU_MEC | ryu/services/protocols/bgp/operator/commands/show/rib.py | 17 | 2482 | from route_formatter_mixin import RouteFormatterMixin
from ryu.services.protocols.bgp.operator.command import Command
from ryu.services.protocols.bgp.operator.command import CommandsResponse
from ryu.services.protocols.bgp.operator.command import STATUS_ERROR
from ryu.services.protocols.bgp.operator.command import STA... | apache-2.0 | 963,170,159,624,062,600 | 34.971014 | 75 | 0.615633 | false |
HwisooSo/gemV-update | tests/testing/results.py | 7 | 9555 | #!/usr/bin/env python2
#
# Copyright (c) 2016 ARM Limited
# 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 implementati... | bsd-3-clause | -9,193,615,771,554,954,000 | 31.171717 | 77 | 0.605128 | false |
Avira/pootle | pootle/apps/contact/views.py | 6 | 3679 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from django.core.urlre... | gpl-3.0 | 6,417,142,335,982,322,000 | 31.557522 | 77 | 0.551237 | false |
fkorotkov/pants | tests/python/pants_test/base/test_build_root.py | 11 | 2183 | # coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import os
import uni... | apache-2.0 | 1,309,303,881,651,891,000 | 31.102941 | 93 | 0.688502 | false |
with-git/tensorflow | tensorflow/contrib/layers/python/layers/summaries_test.py | 112 | 3834 | # 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 | 7,229,125,876,568,941,000 | 39.787234 | 80 | 0.697183 | false |
iAmMrinal0/reddit | MessageArchiveSimple/messagearchivesimple.py | 2 | 1943 | #/u/Goldensights
import praw
import time
import datetime
'''USER CONFIG'''
USERNAME = ""
#This is the bot's Username. In order to send mail, he must have some amount of Karma.
PASSWORD = ""
#This is the bot's Password.
USERAGENT = ""
#This is a short description of what the bot does. For example "/u/GoldenSights'... | mit | 8,620,479,400,699,801,000 | 28.454545 | 149 | 0.699434 | false |
softlayer/softlayer-python | SoftLayer/CLI/order/item_list.py | 2 | 5699 | """List package items."""
# :license: MIT, see LICENSE for more details.
import click
from SoftLayer.CLI import environment
from SoftLayer.CLI import formatting
from SoftLayer.managers import ordering
from SoftLayer.utils import lookup
COLUMNS = ['category', 'keyName', 'description', 'priceId']
COLUMNS_ITEM_PRICES = ... | mit | -3,457,726,086,084,161,500 | 40.59854 | 114 | 0.634497 | false |
kdwink/intellij-community | python/lib/Lib/site-packages/django/core/management/commands/makemessages.py | 73 | 15487 | import fnmatch
import glob
import os
import re
import sys
from itertools import dropwhile
from optparse import make_option
from subprocess import PIPE, Popen
from django.core.management.base import CommandError, BaseCommand
from django.utils.text import get_text_list
pythonize_re = re.compile(r'(?:^|\n)\s*//')
plural... | apache-2.0 | -3,852,476,137,319,074,300 | 44.151603 | 426 | 0.555563 | false |
CydarLtd/ansible | lib/ansible/modules/system/lvol.py | 63 | 17123 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2013, Jeroen Hoekx <jeroen.hoekx@dsquare.be>, Alexander Bulimov <lazywolf0@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 So... | gpl-3.0 | -8,654,675,776,870,199,000 | 33.246 | 160 | 0.560124 | false |
PetrDlouhy/django | tests/m2m_intermediary/models.py | 128 | 1260 | """
Many-to-many relationships via an intermediary table
For many-to-many relationships that need extra fields on the intermediary
table, use an intermediary model.
In this example, an ``Article`` can have multiple ``Reporter`` objects, and
each ``Article``-``Reporter`` combination (a ``Writer``) has a ``position``
f... | bsd-3-clause | -6,306,020,740,124,706,000 | 28.302326 | 75 | 0.70873 | false |
murfz/Sick-Beard | lib/hachoir_parser/audio/8svx.py | 90 | 3949 | """
Audio Interchange File Format (AIFF) parser.
Author: Victor Stinner
Creation: 27 december 2006
"""
from lib.hachoir_parser import Parser
from lib.hachoir_core.field import (FieldSet,
UInt16, UInt32, Float80, TimestampMac32,
RawBytes, NullBytes,
String, Enum, PascalString32)
from lib.hachoir_core.endia... | gpl-3.0 | -9,120,154,091,047,325,000 | 30.34127 | 82 | 0.592302 | false |
SOKP/external_chromium_org | third_party/cython/src/Cython/Compiler/Builtin.py | 90 | 20358 | #
# Builtin Definitions
#
from Symtab import BuiltinScope, StructOrUnionScope
from Code import UtilityCode
from TypeSlots import Signature
import PyrexTypes
import Options
# C-level implementations of builtin types, functions and methods
iter_next_utility_code = UtilityCode.load("IterNext", "ObjectHandling.c")
ge... | bsd-3-clause | 7,975,316,671,926,908,000 | 49.391089 | 117 | 0.505944 | 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.