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 |
|---|---|---|---|---|---|---|---|---|---|---|
charlesvdv/servo | tests/wpt/css-tests/tools/py/testing/path/test_local.py | 160 | 29652 | # -*- coding: utf-8 -*-
from __future__ import with_statement
import py
import pytest
import os, sys
from py.path import local
import common
failsonjython = py.test.mark.xfail("sys.platform.startswith('java')")
failsonjywin32 = py.test.mark.xfail("sys.platform.startswith('java') "
"and getattr(os, '_name', No... | mpl-2.0 | -4,556,045,634,379,983,000 | 33.473256 | 80 | 0.577765 | false |
TieWei/nova | nova/compute/flavors.py | 8 | 10001 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
# Copyright (c) 2010 Citrix Systems, Inc.
# Copyright 2011 Ken Pepple
#
# Licensed under the Apache License, Versio... | apache-2.0 | 1,777,863,129,705,207,600 | 30.850318 | 79 | 0.643436 | false |
melizeche/get-shorty | tests_shorty.py | 1 | 2998 | import os
import json
import getshorty
import unittest
import tempfile
URL = 'http://google.com'
URL_MOBILE = 'http://facebook.com'
URL_TABLET = 'https://yahoo.com'
BAD_URL = 'http//google.com'
UA = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36'
UA_MOBILE = ... | mit | 4,664,044,785,348,690,000 | 38.447368 | 160 | 0.603402 | false |
zenna/dreal3 | benchmarks/network/battery/gen.py | 55 | 1248 |
flow_var = {}
flow_dec = {}
state_dec = {}
state_val = {}
cont_cond = {}
jump_cond = {}
def getHdr(n):
res = []
for i in range(n):
getHdr.counter += 1
res.append(getHdr.counter)
return res
getHdr.counter = 0
######################
# Formula generation #
######################
def pri... | gpl-3.0 | -1,015,289,758,801,481,500 | 23.96 | 60 | 0.504006 | false |
kimiyoung/transformer-xl | pytorch/utils/proj_adaptive_softmax.py | 1 | 5692 | from collections import defaultdict
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
CUDA_MAJOR = int(torch.version.cuda.split('.')[0])
CUDA_MINOR = int(torch.version.cuda.split('.')[1])
class ProjectedAdaptiveLogSoftmax(nn.Module):
def __init__(self, n_token, d_embed, d_pro... | apache-2.0 | -5,192,517,481,478,873,000 | 36.695364 | 90 | 0.504743 | false |
EchO-KID/google-breakpad | src/tools/gyp/test/mac/gyptest-strip.py | 80 | 1538 | #!/usr/bin/env python
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Verifies that stripping works.
"""
import TestGyp
import re
import subprocess
import sys
import time
if sys.platform == 'darwin':
t... | bsd-3-clause | 984,818,837,701,188,700 | 28.018868 | 79 | 0.676203 | false |
hirofumi0810/tensorflow_end2end_speech_recognition | utils/io/labels/character.py | 1 | 3892 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
class Char2idx(object):
"""Convert from character to index.
Args:
map_file_path (string): path to the mapping file
do... | mit | -4,686,986,644,259,010,000 | 31.433333 | 76 | 0.513104 | false |
mishravikas/geonode-permissions | geonode/people/forms.py | 35 | 2900 | # -*- coding: utf-8 -*-
#########################################################################
#
# Copyright (C) 2012 OpenPlans
#
# 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 versio... | gpl-3.0 | 5,674,781,078,391,950,000 | 29.208333 | 78 | 0.598966 | false |
oscarolar/odoo | addons/mail/mail_alias.py | 16 | 15252 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Business Applications
# Copyright (C) 2012 OpenERP S.A. (<http://openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the... | agpl-3.0 | -1,334,361,332,948,049,000 | 54.26087 | 155 | 0.594742 | false |
ryfeus/lambda-packs | Tensorflow_LightGBM_Scipy_nightly/source/tensorflow/contrib/training/python/training/training.py | 50 | 19844 | # 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 applicable ... | mit | 280,576,836,825,772,000 | 36.370998 | 80 | 0.683733 | false |
CamelBackNotation/CarnotKE | jyhton/lib-python/2.7/test/test_largefile.py | 129 | 7642 | """Test largefile support on system where this makes sense.
"""
from __future__ import print_function
import os
import stat
import sys
import unittest
from test.test_support import run_unittest, TESTFN, verbose, requires, \
unlink
import io # C implementation of io
import _pyio as pyio ... | apache-2.0 | -8,284,272,979,144,931,000 | 37.21 | 89 | 0.558623 | false |
hsaputra/tensorflow | tensorflow/examples/adding_an_op/cuda_op.py | 192 | 1062 | # 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 | 6,809,994,555,210,123,000 | 38.333333 | 80 | 0.687382 | false |
liuqr/edx-xiaodun | cms/djangoapps/contentstore/management/commands/import.py | 16 | 2180 | """
Script for importing courseware from XML format
"""
from django.core.management.base import BaseCommand, CommandError, make_option
from django_comment_common.utils import (seed_permissions_roles,
are_permissions_roles_seeded)
from xmodule.modulestore.xml_importer import imp... | agpl-3.0 | 837,257,414,517,795,600 | 37.245614 | 120 | 0.607798 | false |
gangadhar-kadam/verve_frappe | frappe/templates/pages/website_theme.py | 4 | 1677 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import re
import frappe
from frappe.website.utils import get_shade
from frappe.website.doctype.website_theme.website_theme import get_active_theme
no_sitemap = 1
base_template_pa... | mit | 5,766,902,185,890,052,000 | 30.641509 | 151 | 0.698271 | false |
dh1tw/pyhamtools | pyhamtools/locator.py | 1 | 10878 | from __future__ import division
from math import pi, sin, cos, atan2, sqrt, radians, log, tan, degrees
from datetime import datetime
import pytz
import ephem
UTC = pytz.UTC
def latlong_to_locator (latitude, longitude):
"""converts WGS84 coordinates into the corresponding Maidenhead Locator
Args:
... | mit | -2,666,361,899,620,486,000 | 29.216667 | 111 | 0.598364 | false |
jnerin/ansible | lib/ansible/modules/network/netvisor/pn_vrouterlbif.py | 43 | 10150 | #!/usr/bin/python
""" PN CLI vrouter-loopback-interface-add/remove """
#
# 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 yo... | gpl-3.0 | -6,675,488,767,660,201,000 | 29.945122 | 80 | 0.622463 | false |
pcm17/tensorflow | tensorflow/contrib/training/python/training/bucket_ops.py | 22 | 17043 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 2,933,186,792,579,580,400 | 42.588235 | 80 | 0.666549 | false |
kalkun/segmentor | preprocessing.py | 1 | 18286 | """
Example run
```
python3 preprocessing.py
```
"""
from PIL import Image
from scipy import ndimage
from skimage.filters import rank
from skimage.morphology import square
from skimage.morphology import disk
from skimage.morphology import white_tophat
import numpy
import cv2
import matplotlib.pypl... | bsd-3-clause | -7,225,066,028,691,857,000 | 38.158458 | 84 | 0.533632 | false |
rfinn/LCS | paper1code/LCSReadmasterBase.py | 1 | 17709 | #!/usr/bin/env python
import pyfits
from LCScommon import *
from pylab import *
import os
import mystuff as my
class baseCluster:
def __init__(self,clustername):
#Get current path so program can tell if this is being run on Becky or Rose's computer
self.prefix=clustername
self.cra=clusterRA[self.prefix]
... | gpl-3.0 | 1,216,295,134,726,919,200 | 44.641753 | 163 | 0.661189 | false |
dfang/odoo | addons/payment_authorize/tests/test_authorize.py | 12 | 10493 | # -*- coding: utf-8 -*-
import hashlib
import hmac
import time
import urlparse
import unittest
from lxml import objectify
import odoo
from odoo.addons.payment.models.payment_acquirer import ValidationError
from odoo.addons.payment.tests.common import PaymentAcquirerCommon
from odoo.addons.payment_authorize.controller... | agpl-3.0 | 8,277,170,013,214,056,000 | 40.474308 | 135 | 0.56085 | false |
metaRx/scripts | backups/sync2S3.py | 2 | 7146 | #!/usr/bin/env python
__author__ = 'Mitch Anderson'
__date__ = '08-14-2011'
__version__ = '1.0'
"""
Releasing Under the New BSD License same as where I got some of the code from.
Most of the S3 directory sync code came from the django-command-extensions project
on Google Code: http://code.google.com/p/django-command... | mit | 6,662,063,637,448,436,000 | 26.805447 | 144 | 0.644556 | false |
eunchong/build | third_party/twisted_10_2/twisted/protocols/wire.py | 62 | 2369 | # Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.
"""Implement standard (and unused) TCP protocols.
These protocols are either provided by inetd, or are not provided at all.
"""
# system imports
import time, struct
from zope.interface import implements
# twisted import
from twisted.i... | bsd-3-clause | -203,208,390,977,057,900 | 25.322222 | 86 | 0.660616 | false |
vlinhd11/vlinhd11-android-scripting | python/src/Lib/bsddb/test/test_early_close.py | 34 | 6695 | """TestCases for checking that it does not segfault when a DBEnv object
is closed before its DB objects.
"""
import os
import unittest
from test_all import db, test_support, verbose, get_new_environment_path, get_new_database_path
# We're going to get warnings in this module about trying to close the db when
# its e... | apache-2.0 | -8,111,500,223,893,239,000 | 33.333333 | 95 | 0.560119 | false |
sebastien-forestier/pydmps | pydmps/dmp.py | 3 | 7418 | '''
Copyright (C) 2013 Travis DeWolf
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 distributed in the hope t... | gpl-3.0 | -1,493,910,235,892,369,700 | 33.342593 | 81 | 0.559046 | false |
monapasan/bachelor-thesis | tests/test_GroupDataset.py | 1 | 2419 | """Test GroupDataset module."""
from .context import GroupDataset
from .context import IndexGenerator
# from nose.tools import raises
from tensorflow.examples.tutorials.mnist import input_data
mnist_raw = input_data.read_data_sets('../data/MNIST_data', one_hot=True)
MNIST_size = 28
images_per_sample = 5
amount_of_cla... | mit | -6,043,038,951,278,542,000 | 30.828947 | 79 | 0.674659 | false |
StackStorm/st2contrib | archive/packs/smartthings/actions/lib/action.py | 10 | 1350 | from st2actions.runners.pythonrunner import Action
import requests
class BaseAction(Action):
def __init__(self, config):
super(BaseAction, self).__init__(config)
self.url = None
self.headers = None
def _headers(self):
if not self.headers:
api_token = self.config.ge... | apache-2.0 | 8,870,985,991,811,607,000 | 27.125 | 72 | 0.536296 | false |
ahmedaljazzar/edx-platform | lms/djangoapps/commerce/utils.py | 2 | 15675 | """Utilities to assist with commerce tasks."""
import json
import logging
from urllib import urlencode
from urlparse import urljoin
import requests
import waffle
from django.conf import settings
from django.contrib.auth import get_user_model
from django.urls import reverse
from django.utils.translation import ugettext... | agpl-3.0 | 955,632,356,381,948,800 | 37.325183 | 119 | 0.646699 | false |
NMGRL/pychron | pychron/hardware/core/motion/motion_designer.py | 2 | 6691 | # ===============================================================================
# Copyright 2011 Jake Ross
#
# 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/licens... | apache-2.0 | 6,180,976,575,400,701,000 | 30.7109 | 123 | 0.526977 | false |
mgaffney/avro | lang/c/jansson/doc/ext/refcounting.py | 4 | 1706 | """
refcounting
~~~~~~~~~~~
Reference count annotations for C API functions. Has the same
result as the sphinx.ext.refcounting extension but works for all
functions regardless of the signature, and the reference counting
information is written inline with the documentation instead of a
sepa... | apache-2.0 | 5,280,399,991,557,610,000 | 27.915254 | 73 | 0.655334 | false |
OpenSourcePolicyCenter/webapp-public | webapp/apps/dynamic/models.py | 2 | 1792 | import datetime
from django.db import models
from django.core.urlresolvers import reverse
from ..core.models import CoreRun
from django.utils.timezone import make_aware
from ..taxbrain.models import TaxBrainRun
from ..taxbrain.behaviors import DataSourceable
class DynamicElasticitySaveInputs(DataSourceable, models.... | mit | 3,980,101,170,416,021,000 | 29.372881 | 72 | 0.632813 | false |
jeffkit/goldencage | goldencage/tests.py | 1 | 31570 | # encoding=utf-8
from django.test import TestCase
from django.test import Client
from django.core.urlresolvers import reverse
from django.conf import settings
from django.core.cache import cache
from django.contrib.auth.tests.utils import skipIfCustomUser
from django.contrib.auth.models import User
from django.test.ut... | bsd-3-clause | 6,305,920,115,629,519,000 | 37.72271 | 439 | 0.577636 | false |
wetneb/django | django/template/backends/jinja2.py | 14 | 2120 | # Since this package contains a "django" module, this is required on Python 2.
from __future__ import absolute_import
import sys
import jinja2
from django.conf import settings
from django.template import TemplateDoesNotExist, TemplateSyntaxError
from django.utils import six
from django.utils.module_loading import im... | bsd-3-clause | 902,336,168,377,069,200 | 32.650794 | 89 | 0.657547 | false |
buckinha/gravity | SWMv2_1.py | 1 | 17498 | """SWM, A Simple Wildfire-inspired MDP model. Version 2.1"""
"""
SWMv2.1
New Features:
-An additional weather variable ("moisture") which works against the spread of large fires and which has
a separate threshold.
-The policy function now includes the current state variables "timber" and "vulnerability" as parame... | mpl-2.0 | -5,505,139,251,751,124,000 | 39.411085 | 166 | 0.607441 | false |
thdtjsdn/geonode | geonode/documents/forms.py | 17 | 5716 | import json
import os
import re
from django import forms
from django.utils.translation import ugettext_lazy as _
from django.contrib.contenttypes.models import ContentType
from django.conf import settings
from django.forms import HiddenInput, TextInput
from modeltranslation.forms import TranslationModelForm
from geon... | gpl-3.0 | 9,145,228,034,221,948,000 | 30.932961 | 79 | 0.587474 | false |
sprockets/sprockets.handlers.status | sprockets/handlers/status/__init__.py | 1 | 2601 | """
sprockets.handlers.status
A small handler for reporting application status
"""
import pkg_resources
from tornado import web
__version__ = '0.1.2'
UNKNOWN = 'unknown'
MAINTENANCE = 'maintenance'
OK = 'ok'
APPLICATION = UNKNOWN
def set_application(name):
"""Set the application name that is reported in th... | bsd-3-clause | 5,592,555,814,124,909,000 | 23.771429 | 78 | 0.603998 | false |
greatyao/dumputils | dumputils/theserver.py | 1 | 4166 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2015
from __future__ import absolute_import, division, print_function, with_statement
import logging
import sqlite3
import os
import sys
from gevent.server import StreamServer
from dumputils import common
from .common import send_data_safe, recv_data_safe, da... | apache-2.0 | -7,265,595,891,265,840,000 | 30.089552 | 107 | 0.580893 | false |
dochang/ansible | test/units/errors/test_errors.py | 62 | 4015 | # (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 | -7,699,041,145,366,866,000 | 47.373494 | 324 | 0.684184 | false |
ryandougherty/mwa-capstone | MWA_Tools/build/matplotlib/doc/mpl_examples/api/patch_collection.py | 3 | 1229 | import matplotlib
from matplotlib.patches import Circle, Wedge, Polygon
from matplotlib.collections import PatchCollection
import pylab
fig=pylab.figure()
ax=fig.add_subplot(111)
resolution = 50 # the number of vertices
N = 3
x = pylab.rand(N)
y = pylab.rand(N)
radii = 0.1*pylab.rand(N)
patches = []
for... | gpl-2.0 | -7,577,837,439,719,994,000 | 25.717391 | 63 | 0.631408 | false |
darolt/ndnSIMQoS | bindings/python/ns3modulegen_core_customizations.py | 53 | 19290 | import re
from pybindgen.typehandlers import base as typehandlers
from pybindgen import ReturnValue, Parameter
from pybindgen.cppmethod import CustomCppMethodWrapper, CustomCppConstructorWrapper
from pybindgen.typehandlers.codesink import MemoryCodeSink
from pybindgen.typehandlers import ctypeparser
from pybindgen imp... | gpl-2.0 | 5,365,345,700,085,573,000 | 42.251121 | 119 | 0.584396 | false |
pudo/aleph | aleph/migrate/versions/d17d4d4fd1ee_add_event_log.py | 4 | 1225 | """Add event log.
Revision ID: d17d4d4fd1ee
Revises: 95779b509fe4
Create Date: 2016-07-22 12:21:14.296489
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = 'd17d4d4fd1ee'
down_revision = '95779b509fe4'
def upgrade():
... | mit | -7,103,205,565,923,469,000 | 33.027778 | 87 | 0.657959 | false |
j00bar/ansible | lib/ansible/modules/windows/win_chocolatey.py | 60 | 3973 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2014, Trond Hindenes <trond@hindenes.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 L... | gpl-3.0 | 7,322,939,943,993,829,000 | 28 | 140 | 0.678329 | false |
blois/AndroidSDKCloneMin | ndk/prebuilt/linux-x86_64/lib/python2.7/test/test_descrtut.py | 75 | 12052 | # This contains most of the executable examples from Guido's descr
# tutorial, once at
#
# http://www.python.org/2.2/descrintro.html
#
# A few examples left implicit in the writeup were fleshed out, a few were
# skipped due to lack of interest (e.g., faking super() by hand isn't
# of much interest anymore), and a f... | apache-2.0 | -5,921,801,682,107,192,000 | 23.249497 | 105 | 0.526966 | false |
doduytrung/odoo-8.0 | addons/hr_holidays/wizard/__init__.py | 442 | 1122 | # -*- 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,752,442,153,205,467,000 | 42.153846 | 78 | 0.627451 | false |
CatsAndDogsbvba/odoo | addons/account_payment/wizard/account_payment_pay.py | 382 | 2448 | # -*- 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 | 1,574,956,114,382,458,000 | 41.206897 | 81 | 0.598448 | false |
rcharp/Simple | app/pages/calc.py | 1 | 7278 | from date import one_month_ago, now, two_months_ago, get_datetime_string, get_datetime, get_date_string, get_short_date_string, \
datetime_to_int, \
yesterday, jsonify
from flask_cache import Cache
from flask import session
from app.app_and_db import app
from... | bsd-2-clause | -2,697,605,199,847,172,000 | 43.378049 | 247 | 0.63108 | false |
GutenkunstLab/SloppyCell | Example/Robertson/generate_ensembles_predictions.py | 1 | 3417 | from numpy import *
import scipy.stats
from SloppyCell.ReactionNetworks import *
import example_net, example_model
#
# Calculate an ensemble
#
# Step scale = 3 gives faster convergence for this problem.
print("Generating ensemble")
ens_data, costs, ratio = Ensembles.ensemble_log_params(example_model.m,
... | bsd-3-clause | -6,652,191,250,126,719,000 | 34.226804 | 106 | 0.642669 | false |
yitian134/chromium | tools/isolate/isolate_test.py | 5 | 2915 | #!/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 json
import logging
import os
import sys
import tempfile
import unittest
import isolate
ROOT_DIR = os.path.dirname(os.path... | bsd-3-clause | -6,558,084,587,907,490,000 | 28.744898 | 79 | 0.624357 | false |
crazy-canux/django | tests/project_template/test_settings.py | 274 | 1083 | import unittest
from django.test import TestCase
from django.utils import six
@unittest.skipIf(six.PY2,
'Python 2 cannot import the project template because '
'django/conf/project_template doesn\'t have an __init__.py file.')
class TestStartProjectSettings(TestCase):
def test_middleware_classes_headers(... | bsd-3-clause | -8,247,148,164,800,454,000 | 36.344828 | 89 | 0.648199 | false |
VahidGh/ChannelWorm | channelworm/fitter/examples/EGL-36.py | 4 | 7717 | """
Example of using cwFitter to generate a HH model for EGL-36 ion channel
Based on experimental data from doi:10.1016/S0896-6273(00)80355-4
"""
import os.path
import sys
import time
import numpy as np
import matplotlib.pyplot as plt
sys.path.append('../../..')
from channelworm.fitter import *
if __name__ == '__mai... | mit | 4,199,480,081,071,612,400 | 37.974747 | 120 | 0.599197 | false |
dd00/commandergenius | project/jni/python/src/Lib/dis.py | 166 | 6484 | """Disassembler of Python byte code into mnemonics."""
import sys
import types
from opcode import *
from opcode import __all__ as _opcodes_all
__all__ = ["dis","disassemble","distb","disco"] + _opcodes_all
del _opcodes_all
def dis(x=None):
"""Disassemble classes, methods, functions, or code.
With no argume... | lgpl-2.1 | -1,674,867,440,717,415,000 | 28.076233 | 78 | 0.471006 | false |
Y3K/django | tests/forms_tests/widget_tests/test_datetimeinput.py | 247 | 2367 | from datetime import datetime
from django.forms import DateTimeInput
from django.test import override_settings
from django.utils import translation
from .base import WidgetTest
class DateTimeInputTest(WidgetTest):
widget = DateTimeInput()
def test_render_none(self):
self.check_html(self.widget, 'da... | bsd-3-clause | 7,163,894,286,018,744,000 | 36.571429 | 113 | 0.564005 | false |
KrbAlmryde/Utilities | WordBoundary/HighPredictability.py | 1 | 6889 | dset = [(1,'L','Cerebellum-vermis',None,True,None),
(1,'R','Cerebellum-VI',None,True,True),
(1,'L','Cingulate-posterior',None,None,True),
(1,'R','Cingulate-posterior',None,None,True),
(1,'R','IFG-pars opercularis',None,None,True),
(1,'R','IFG-pars triangularis',None,None,True),
... | mit | -6,126,242,951,410,812,000 | 49.284672 | 64 | 0.555233 | false |
NickPresta/sentry | src/sentry/utils/safe.py | 3 | 2330 | """
sentry.utils.safe
~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2013 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
import logging
from django.db import transaction
from sentry.constants import MAX_VARIABLE_SIZE, MAX_DICTIONARY_ITEMS
from sentry.utils.strings import ... | bsd-3-clause | -5,983,528,276,838,122,000 | 26.411765 | 93 | 0.553219 | false |
sdvillal/manysources | manysources/analyses/substructures.py | 1 | 31188 | from collections import defaultdict
import os.path as op
from itertools import izip
import warnings
import cPickle as pickle
import glob
import math
import os
import h5py
import pandas as pd
import numpy as np
from rdkit import Chem
import matplotlib.pyplot as plt
from manysources import MANYSOURCES_ROOT
from manysou... | bsd-3-clause | 6,548,961,856,122,881,000 | 50.211823 | 162 | 0.663268 | false |
imsparsh/python-for-android | python3-alpha/python3-src/Lib/test/test_complex.py | 61 | 27765 | import unittest
from test import support
from random import random
from math import atan2, isnan, copysign
import operator
INF = float("inf")
NAN = float("nan")
# These tests ensure that complex math does the right thing
class ComplexTest(unittest.TestCase):
def assertAlmostEqual(self, a, b):
if isinsta... | apache-2.0 | 2,793,832,254,094,489,600 | 42.65566 | 100 | 0.566937 | false |
MazamaScience/ispaq | ispaq/concierge.py | 1 | 32479 | """
ISPAQ Data Access Expediter.
:copyright:
Mazama Science
:license:
GNU Lesser General Public License, Version 3
(http://www.gnu.org/copyleft/lesser.html)
"""
from __future__ import (absolute_import, division, print_function)
import os
import re
import glob
import pandas as pd
import obspy
from obspy... | gpl-3.0 | -7,639,373,099,384,793,000 | 46.763235 | 189 | 0.529265 | false |
moosemaniam/eye_detect | eye_detect.py | 1 | 2293 | #!/usr/bin/env python
import cv
import cv2
def face_detect(imcolor):
# imcolor = cv.LoadImage('anush2.jpg') # input image
haarFace = cv.Load('haarcascade_frontalface_default.xml')
haarEyes = cv.Load('haarcascade_eye.xml')
# running the classifiers
storage = cv.CreateMemStorage()
detectedFace =... | gpl-2.0 | 2,793,266,007,146,006,000 | 30.410959 | 71 | 0.561273 | false |
derekbrameyer/white-elephant | main.py | 1 | 8365 | __author__ = 'derekbrameyer'
import random
import json
import datetime
def main():
maxstealcount = 2
currentturn=1
boolines = json.loads(open("boo_lines.json").read())
reportlines = json.loads(open("report_lines.json").read())
print greenify("\nWelcome to White Elephant! Please input names line b... | apache-2.0 | 1,541,951,332,234,385,200 | 38.276995 | 161 | 0.588285 | false |
Nesiehr/osf.io | scripts/tests/test_migrate_profile_websites.py | 40 | 3131 | from tests.factories import UserFactory
from nose.tools import *
from tests.base import OsfTestCase
from scripts.migration.migrate_personal_to_profile_websites import main, get_users_with_social_field
class TestMigrateProfileWebsites(OsfTestCase):
def setUp(self):
super(TestMigrateProfileWebsites, self).... | apache-2.0 | -3,038,261,776,762,410,000 | 41.310811 | 100 | 0.620569 | false |
Tejal011089/trufil-erpnext | erpnext/accounts/doctype/bank_reconciliation/bank_reconciliation.py | 23 | 2290 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils import flt, getdate, nowdate
from frappe import msgprint, _
from frappe.model.document import Document
class BankReconc... | agpl-3.0 | 7,052,980,307,272,037,000 | 35.935484 | 96 | 0.681223 | false |
patriciolobos/desa8 | openerp/report/render/makohtml2html/__init__.py | 381 | 1084 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | -346,760,380,794,986,750 | 40.692308 | 78 | 0.619004 | false |
algolia/mongo-connector | setup.py | 3 | 4391 | # Copyright 2013-2014 MongoDB, 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 or agreed to in writin... | apache-2.0 | 8,510,391,908,480,751,000 | 30.589928 | 80 | 0.629242 | false |
piotroxp/scibibscan | scib/lib/python3.5/site-packages/astropy/constants/si.py | 1 | 5527 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Astronomical and physics constants in SI units. See :mod:`astropy.constants`
for a complete listing of constants defined in Astropy.
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
impo... | mit | 2,654,513,882,713,797,600 | 34.88961 | 80 | 0.606658 | false |
akaminsky/ghost_blog | node_modules/grunt-docker/node_modules/docker/node_modules/pygmentize-bundled/vendor/pygments/build-2.7/pygments/styles/monokai.py | 364 | 5080 | # -*- coding: utf-8 -*-
"""
pygments.styles.monokai
~~~~~~~~~~~~~~~~~~~~~~~
Mimic the Monokai color scheme. Based on tango.py.
http://www.monokai.nl/blog/2006/07/15/textmate-color-theme/
:copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.... | mit | -2,626,948,379,608,969,700 | 46.924528 | 76 | 0.400984 | false |
maellak/invenio | modules/miscutil/lib/textutils_unit_tests.py | 8 | 30192 | # -*- coding: utf-8 -*-
##
## This file is part of Invenio.
## Copyright (C) 2008, 2009, 2010, 2011, 2013 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
## Licens... | gpl-2.0 | -1,855,405,347,006,381,300 | 44.494898 | 847 | 0.60865 | false |
duyet-website/api.duyet.net | lib/requests/packages/urllib3/contrib/socks.py | 218 | 6195 | # -*- coding: utf-8 -*-
"""
This module contains provisional support for SOCKS proxies from within
urllib3. This module supports SOCKS4 (specifically the SOCKS4A variant) and
SOCKS5. To enable its functionality, either install PySocks or install this
module with the ``socks`` extra.
The SOCKS implementation supports t... | mit | -5,014,719,223,976,898,000 | 31.952128 | 79 | 0.615012 | false |
tgstation/tgstation | tools/discordRoleScript/Script.py | 18 | 2007 | # Script to role discord members who have already associated their BYOND account
# Author: AffectedArc07
# From Discord API:
# Clients are allowed 120 events every 60 seconds, meaning you can send on average at a rate of up to 2 events per second.
# So lets send every 0.6 seconds to ensure we arent rate capped
#####... | agpl-3.0 | -8,623,414,163,530,710,000 | 33.016949 | 122 | 0.697559 | false |
Intel-Corporation/tensorflow | tensorflow/python/data/experimental/kernel_tests/wrap_unwrap_test.py | 8 | 2744 | # Copyright 2018 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 | -8,032,202,816,856,610,000 | 39.352941 | 80 | 0.69898 | false |
sagark/tsdb-perf-test | readingdb/readingdb_unit.py | 1 | 3340 | #!/usr/bin/jython
"""Unit tests for the readingdb interface"""
import unittest
from t_readingdb import *
class TestSequenceFunctions(unittest.TestCase):
def setUp(self):
"""Runs before every test"""
self.db = ReadingDBAccess()
print('\n')
def gen_to_list(self, gen):
return ge... | bsd-2-clause | -6,445,014,015,496,707,000 | 32.4 | 77 | 0.586228 | false |
tswsl1989/Minecraft-Overviewer | test/test_rendertileset.py | 4 | 6912 | import unittest
from itertools import chain
from overviewer_core.tileset import iterate_base4, RendertileSet
from overviewer_core.util import roundrobin
class RendertileSetTest(unittest.TestCase):
# If you change this definition, you must also change the hard-coded
# results list in test_posttraverse()
t... | gpl-3.0 | 7,548,327,393,719,252,000 | 29.449339 | 92 | 0.512297 | false |
jreback/pandas | pandas/tests/frame/constructors/test_from_records.py | 2 | 16550 | from datetime import datetime
from decimal import Decimal
import numpy as np
import pytest
import pytz
from pandas.compat import is_platform_little_endian
from pandas import CategoricalIndex, DataFrame, Index, Interval, RangeIndex, Series
import pandas._testing as tm
class TestFromRecords:
def test_from_record... | bsd-3-clause | 989,459,643,581,536,400 | 36.613636 | 88 | 0.558369 | false |
hjanime/VisTrails | vistrails/core/interpreter/default.py | 1 | 3689 | ###############################################################################
##
## Copyright (C) 2014-2015, New York University.
## Copyright (C) 2011-2014, NYU-Poly.
## Copyright (C) 2006-2011, University of Utah.
## All rights reserved.
## Contact: contact@vistrails.org
##
## This file is part of VisTrails.
##
## ... | bsd-3-clause | -1,790,427,406,539,100,400 | 42.4 | 79 | 0.664408 | false |
Boussadia/weboob | modules/weather/test.py | 4 | 1444 | # -*- coding: utf-8 -*-
# Copyright(C) 2012 Arno Renevier
#
# This file is part of weboob.
#
# weboob 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 opti... | agpl-3.0 | -7,304,671,822,544,592,000 | 34.219512 | 81 | 0.704294 | false |
emersonsoftware/ansiblefork | lib/ansible/modules/source_control/gitlab_user.py | 10 | 12548 | #!/usr/bin/python
# (c) 2015, Werner Dijkerman (ikben@werner-dijkerman.nl)
#
# 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... | gpl-3.0 | -8,968,527,584,400,640,000 | 34.050279 | 150 | 0.614122 | false |
lalinsky/acoustid-server | alembic/versions/661fce6a2f64_more_fields_in_submission.py | 1 | 2671 | """more fields in submission
Revision ID: 661fce6a2f64
Revises: 0c79593066ed
Create Date: 2019-11-14 12:02:55.010214
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '661fce6a2f64'
down_revision = '0c79593066ed'
branch_... | mit | 6,389,633,550,401,673,000 | 31.975309 | 106 | 0.66155 | false |
bmya/odoo_addons | smile_access_control/tests/test_users.py | 5 | 4010 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2011 Smile (<http://www.smile.fr>). All Rights Reserved
#
# This program is free software: you can redistribute it and/or modify
# it under th... | agpl-3.0 | 1,693,573,114,263,169,500 | 37.932039 | 114 | 0.55985 | false |
ptchankue/youtube-dl | youtube_dl/extractor/googleplus.py | 129 | 2568 | # coding: utf-8
from __future__ import unicode_literals
import re
import codecs
from .common import InfoExtractor
from ..utils import unified_strdate
class GooglePlusIE(InfoExtractor):
IE_DESC = 'Google Plus'
_VALID_URL = r'https://plus\.google\.com/(?:[^/]+/)*?posts/(?P<id>\w+)'
IE_NAME = 'plus.google'... | unlicense | -1,410,863,483,357,019,000 | 33.821918 | 88 | 0.530685 | false |
OpenTreeOfLife/peyotl | peyotl/evaluate_tree.py | 2 | 10490 | #!/usr/bin/env python
from peyotl.ott import create_pruned_and_taxonomy_for_tip_ott_ids
from peyotl.phylo.compat import compare_bits_as_splits, SplitComparison
from peyotl.utility import any_early_exit, get_logger
_LOG = get_logger(__name__)
def evaluate_tree_rooting(nexson, ott, tree_proxy):
"""
Returns Non... | bsd-2-clause | 6,375,547,457,118,197,000 | 47.119266 | 112 | 0.610105 | false |
leifos/ifind | ifind/seeker/list_reader.py | 1 | 2413 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# seekiir Framework - Indexing
# ListReader class
#
import string
from os import linesep
from ifind.seeker.common_helpers import file_exists
class ListReader(list):
'''
A simple class which extends the Python list object. Reads in the input file list and stores... | mit | 2,087,042,563,295,153,400 | 38.57377 | 316 | 0.634894 | false |
cougar-enigma/Enigma2PC | lib/python/Plugins/Extensions/DVDBurn/TitleList.py | 4 | 17772 | import DVDProject, TitleList, TitleCutter, TitleProperties, ProjectSettings, DVDToolbox, Process
from Screens.Screen import Screen
from Screens.ChoiceBox import ChoiceBox
from Screens.InputBox import InputBox
from Screens.MessageBox import MessageBox
from Screens.HelpMenu import HelpableScreen
from Screens.TaskView imp... | gpl-2.0 | 4,595,152,960,574,877,700 | 45.648294 | 271 | 0.695476 | false |
arrabito/DIRAC | TransformationSystem/test/Test_replicationTransformation.py | 1 | 9922 | """Test the dirac-transformation-replication script and helper"""
import unittest
from mock import MagicMock as Mock, patch
from DIRAC import S_OK, S_ERROR
from DIRAC.TransformationSystem.Utilities.ReplicationTransformation import createDataTransformation
from DIRAC.TransformationSystem.Utilities.ReplicationCLIPara... | gpl-3.0 | 7,712,222,351,853,710,000 | 45.58216 | 119 | 0.682121 | false |
rotofly/odoo | addons/project_timesheet/report/task_report.py | 336 | 4030 | # -*- 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,858,844,706,062,680,000 | 47.554217 | 192 | 0.572705 | false |
abaditsegay/arangodb | 3rdParty/V8-4.3.61/third_party/python_26/Lib/test/test_pwd.py | 58 | 3352 | import unittest
from test import test_support
import pwd
class PwdTest(unittest.TestCase):
def test_values(self):
entries = pwd.getpwall()
entriesbyname = {}
entriesbyuid = {}
for e in entries:
self.assertEqual(len(e), 7)
self.assertEqual(e[0], e.pw_name)
... | apache-2.0 | -640,050,456,827,040,100 | 33.556701 | 77 | 0.531026 | false |
pedrohml/smartbot | setup.py | 1 | 1729 | import os
from setuptools import setup, find_packages
def read(*paths):
with open(os.path.join(*paths), 'r') as f:
return f.read()
def requirements():
requirements_list = []
with open('requirements.txt') as requirements:
for install in requirements:
requirements_list.append(i... | mit | 7,714,619,825,591,139,000 | 35.787234 | 93 | 0.580104 | false |
xeBuz/Flask-Validator | setup.py | 1 | 1530 | import re
import os
from setuptools import setup, find_packages
try:
import pypandoc
LONG_DESCRIPTION = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
LONG_DESCRIPTION = ''
setup(
name='Flask-Validator',
version='1.4.2',
license='Mozilla Public License',
author='Jesus ... | mpl-2.0 | 2,950,908,315,179,942,400 | 31.553191 | 99 | 0.607843 | false |
DarkArtek/FFXIVITAFC | allauth/socialaccount/providers/eveonline/provider.py | 10 | 1461 | from allauth.socialaccount.app_settings import STORE_TOKENS
from allauth.socialaccount.providers.base import ProviderAccount
from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider
class EveOnlineAccount(ProviderAccount):
def get_profile_url(self):
return 'https://gate.eveonline.com/Pro... | unlicense | -7,027,040,710,619,864,000 | 30.085106 | 74 | 0.629706 | false |
jjmleiro/hue | desktop/core/ext-py/pycrypto-2.6.1/lib/Crypto/Cipher/PKCS1_OAEP.py | 123 | 9373 | # -*- coding: utf-8 -*-
#
# Cipher/PKCS1_OAEP.py : PKCS#1 OAEP
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the extent that dedication to the public domain is not available,
# everyone is granted a worldwide, perpetual, ro... | apache-2.0 | -7,528,212,980,327,898,000 | 35.756863 | 114 | 0.597781 | false |
PaulSchrum/CogoPy | BestFit/CogoPointAnalyst.py | 1 | 12847 | # Paul Schrum Unity ID: ptschrum
# Course Project for GIS 540
"""
Given one or more input files (required to be Polylines),
an output file, an optional LoadCheck boolean, and an optional
spatial reference, generate one or more csv files showing the
radius (and other attributes) of each point triplet in the
polylines... | lgpl-3.0 | -2,242,172,927,148,787,200 | 37.930303 | 121 | 0.645209 | false |
jdubs/cloud-custodian | c7n/resources/sns.py | 1 | 1600 | # Copyright 2016-2017 Capital One Services, LLC
#
# 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 ... | apache-2.0 | 3,694,938,533,234,545,700 | 33.042553 | 82 | 0.684375 | false |
zeroc0d3/docker-lab | application/rootfs/usr/lib/python2.7/dist-packages/powerline/lint/markedjson/error.py | 33 | 6948 | # vim:fileencoding=utf-8:noet
from __future__ import (unicode_literals, division, absolute_import, print_function)
import sys
import re
from powerline.lib.encoding import get_preferred_output_encoding
NON_PRINTABLE_STR = (
'[^'
# ASCII control characters: 0x00-0x19
+ '\t\n' # Tab, newline: allowed ASCI... | mit | -3,809,367,681,481,574,000 | 27.829876 | 112 | 0.653857 | false |
bthirion/scikit-learn | sklearn/manifold/setup.py | 43 | 1283 | import os
from os.path import join
import numpy
from numpy.distutils.misc_util import Configuration
from sklearn._build_utils import get_blas_info
def configuration(parent_package="", top_path=None):
config = Configuration("manifold", parent_package, top_path)
libraries = []
if os.name == 'posix':
... | bsd-3-clause | -62,995,880,333,701,864 | 34.638889 | 74 | 0.528449 | false |
sungkim11/mhargadh | django/contrib/gis/sitemaps/views.py | 250 | 4342 | from django.http import HttpResponse, Http404
from django.template import loader
from django.contrib.sites.models import get_current_site
from django.core import urlresolvers
from django.core.paginator import EmptyPage, PageNotAnInteger
from django.contrib.gis.db.models.fields import GeometryField
from django.db import... | bsd-3-clause | 5,505,075,665,005,950,000 | 38.117117 | 116 | 0.648319 | false |
HWal/paparazzi | sw/ground_segment/python/real_time_plot/plotframe.py | 95 | 11217 | #Boa:Frame:PlotFrame
from __future__ import division
import wx
import plotpanel
_INITIAL_TIME_VALUE_ = 0.2 # initial refresh rate in seconds
def create(parent):
return PlotFrame(parent)
[wxID_PLOTFRAME, wxID_PLOTFRAMECHECKAUTOSCALE, wxID_PLOTFRAMEEDITMAX, wxID_PLOTFRAMEEDITMIN, wxID_PLOTFRAMEEDITTIME, wxID_P... | gpl-2.0 | -5,423,467,179,561,589,000 | 42.988235 | 289 | 0.659802 | false |
noba3/KoTos | addons/script.module.youtube.dl/lib/youtube_dl/extractor/prosiebensat1.py | 16 | 13998 | # encoding: utf-8
from __future__ import unicode_literals
import re
from hashlib import sha1
from .common import InfoExtractor
from ..compat import (
compat_urllib_parse,
)
from ..utils import (
ExtractorError,
determine_ext,
float_or_none,
int_or_none,
unified_strdate,
)
class ProSiebenSat1... | gpl-2.0 | -7,293,907,230,398,159,000 | 38.525424 | 187 | 0.493282 | false |
chokribr/invenioold | modules/miscutil/lib/sequtils_texkey.py | 13 | 12225 | # -*- coding: utf-8 -*-
##
## This file is part of Invenio.
## Copyright (C) 2012, 2013 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 opt... | gpl-2.0 | 276,682,223,860,831,140 | 34.12931 | 96 | 0.549448 | false |
ksrajkumar/openerp-6.1 | openerp/addons/base_module_quality/workflow_test/__init__.py | 63 | 1055 | # -*- 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 | -1,608,045,832,641,791,000 | 44.869565 | 79 | 0.605687 | false |
procangroup/edx-platform | common/lib/xmodule/xmodule/poll_module.py | 17 | 7885 | """Poll module is ungraded xmodule used by students to
to do set of polls.
On the client side we show:
If student does not yet anwered - Question with set of choices.
If student have answered - Question with statistics for each answers.
"""
import cgi
import json
import logging
from collections import OrderedDict
fro... | agpl-3.0 | -809,048,461,062,455,700 | 32.841202 | 87 | 0.569182 | false |
anzev/mingus | unittest/test_NoteContainers.py | 1 | 6071 | import sys
sys.path += ["../"]
from mingus.containers.NoteContainer import NoteContainer
from mingus.containers.Note import Note
import unittest
class test_NoteContainers(unittest.TestCase):
def setUp(self):
self.n1 = NoteContainer()
self.n2 = NoteContainer("A")
self.n3 = NoteContainer(["A", "C", "E"])
sel... | gpl-3.0 | -866,387,983,110,793,900 | 43.313869 | 121 | 0.600231 | false |
qk4l/Flexget | flexget/tests/test_digest.py | 9 | 2954 | from __future__ import unicode_literals, division, absolute_import
from builtins import * # noqa pylint: disable=unused-import, redefined-builtin
class TestDigest(object):
config = """
tasks:
digest 1:
mock:
- title: entry 1
accept_all: yes
dige... | mit | 5,112,858,967,629,420,000 | 29.453608 | 107 | 0.514218 | false |
ahmedaljazzar/edx-platform | common/djangoapps/third_party_auth/migrations/0009_auto_20170415_1144.py | 25 | 1933 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('third_party_auth', '0008_auto_20170413_1455'),
]
operations = [
migrations.AddField(
model_name='ltiproviderconf... | agpl-3.0 | -8,262,511,308,095,896,000 | 65.655172 | 433 | 0.703052 | 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.