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 |
|---|---|---|---|---|---|---|---|---|---|---|
aliyun/aliyun-oss-python-sdk | tests/test_bucket_worm.py | 1 | 2199 | from .common import *
class TestBucketWorm(OssTestCase):
def test_bucke_worm_normal(self):
init_result = self.bucket.init_bucket_worm(1)
worm_id = init_result.worm_id
self.assertIsNotNone(init_result.request_id)
get_result = self.bucket.get_bucket_worm()
self.assertIsNotNon... | mit | -6,984,264,657,638,178,000 | 39.722222 | 111 | 0.686221 | false |
9seconds/streams | streams/executors/executors.py | 1 | 1711 | # -*- coding: utf-8 -*-
"""
This module has implementation of executors wrapped by
:py:class:`streams.executors.mixins.PoolOfPoolsMixin` and applicable to work
with :py:class:`streams.poolofpools.PoolOfPools`.
Basically all of them are thin extensions of classes from
:py:mod:`concurrent.futures`.
"""
###############... | mit | -2,665,244,102,855,407,600 | 28 | 79 | 0.630041 | false |
docmeth02/CouchPotatoServer | libs/rtorrent/lib/xmlrpc/basic_auth.py | 83 | 3291 | #
# Copyright (c) 2013 Dean Gardiner, <gardiner91@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, mod... | gpl-3.0 | -2,555,419,410,897,884,000 | 33.642105 | 93 | 0.64175 | false |
mhugent/Quantum-GIS | python/plugins/processing/algs/qgis/Polygonize.py | 2 | 4932 | # -*- coding: utf-8 -*-
"""
***************************************************************************
Polygonize.py
---------------------
Date : March 2013
Copyright : (C) 2013 by Piotr Pociask
Email : ppociask at o2 dot pl
*******************************... | gpl-2.0 | 1,521,028,042,596,485,000 | 40.79661 | 78 | 0.569343 | false |
ramanajee/phantomjs | src/qt/qtwebkit/Tools/Scripts/webkitpy/common/system/profiler_unittest.py | 124 | 5111 | # Copyright (C) 2012 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | bsd-3-clause | -6,338,322,550,823,810,000 | 48.621359 | 107 | 0.654275 | false |
wiltonlazary/arangodb | 3rdParty/V8/V8-5.0.71.39/tools/swarming_client/swarming.py | 4 | 49821 | #!/usr/bin/env python
# Copyright 2013 The Swarming Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0 that
# can be found in the LICENSE file.
"""Client tool to trigger tasks or retrieve results from a Swarming server."""
__version__ = '0.8.4'
import collection... | apache-2.0 | 4,930,416,379,992,762,000 | 32.125665 | 80 | 0.640272 | false |
Ali-aqrabawi/ezclinic | lib/django/middleware/common.py | 39 | 7843 | import logging
import re
from django import http
from django.conf import settings
from django.core.exceptions import PermissionDenied
from django.core.mail import mail_managers
from django.urls import is_valid_path
from django.utils.cache import get_conditional_response, set_response_etag
from django.utils.deprecation... | mit | 7,563,688,845,073,268,000 | 40.497354 | 96 | 0.614178 | false |
Eric-Zhong/odoo | addons/l10n_bo/__openerp__.py | 259 | 1698 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2012 Cubic ERP - Teradata SAC (<http://cubicerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the... | agpl-3.0 | -1,501,651,276,036,674,000 | 32.294118 | 78 | 0.594817 | false |
btallman/incubator-airflow | tests/ti_deps/deps/dag_ti_slots_available_dep.py | 20 | 1458 | # -*- coding: utf-8 -*-
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
... | apache-2.0 | 8,014,650,312,974,675,000 | 34.560976 | 82 | 0.701646 | false |
bank-netforce/netforce | netforce_hr/netforce_hr/models/hr_department.py | 4 | 1500 | # Copyright (c) 2012-2015 Netforce Co. Ltd.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publ... | mit | 804,413,903,270,836,400 | 41.857143 | 80 | 0.73 | false |
RaghavPro/Runescape-Hiscores | hiscores/templatetags/hiscores_tags.py | 1 | 1077 | from django import template
register = template.Library()
@register.filter
def get_rank(page, loop_counter):
"""
Calculates the player rank from current page and loop index.
:param page: Current page number
:param loop_counter: Loop index
:return: rank
"""
rank = page.start_index() + loop... | gpl-2.0 | 3,746,209,754,372,066,300 | 21 | 64 | 0.631383 | false |
lukaspetr/FEniCSopt | fenicsopt/exports/gnuplot.py | 1 | 1501 | from __future__ import division
from dolfin import *
import numpy
import pprint
# Gnuplot related functions
################################################################################
# discontinuous piecewise linear output
def gnuplot_dg1(file, mesh, fun):
file = open(file, 'w+')
i = 0
for myCell in cells(m... | mit | 8,669,523,056,949,258,000 | 28.431373 | 82 | 0.459694 | false |
macobo/python-grader | tasks/MTAT.03.100/2013/Midterm_1/KT2_R8_mood_tester.py | 1 | 1312 | """
Task description (in Estonian):
3. Arvude mood (5p)
Kirjuta funktsioon mood, mis võtab argumendiks täisarvujärjendi ja tagastab arvu,
mida leidub järjendis kõige rohkem (ehk moodi). Kui selliseid arve on mitu, siis
tuleb tagastada neist vähim.
Näide: mood([-10, 17, 13, 17, -10, 21]) peab tagastama -10.
"""
fr... | mit | -6,235,041,246,223,998,000 | 27.304348 | 108 | 0.620292 | false |
donkirkby/django | tests/select_related/models.py | 276 | 3480 | """
Tests for select_related()
``select_related()`` follows all relationships and pre-caches any foreign key
values so that complex trees can be fetched in a single query. However, this
isn't always a good idea, so the ``depth`` argument control how many "levels"
the select-related behavior will traverse.
"""
from dj... | bsd-3-clause | -2,237,320,953,492,527,600 | 24.035971 | 109 | 0.70546 | false |
PaulKinlan/cli-caniuse | site/app/scripts/bower_components/jsrepl-build/extern/python/reloop-closured/lib/python2.7/distutils/cygwinccompiler.py | 132 | 17270 | """distutils.cygwinccompiler
Provides the CygwinCCompiler class, a subclass of UnixCCompiler that
handles the Cygwin port of the GNU C compiler to Windows. It also contains
the Mingw32CCompiler class which handles the mingw32 port of GCC (same as
cygwin in no-cygwin mode).
"""
# problems:
#
# * if you use a msvc com... | apache-2.0 | 8,135,514,040,425,359,000 | 37.463252 | 79 | 0.557267 | false |
lseyesl/phantomjs | src/qt/qtwebkit/Tools/QueueStatusServer/model/queues.py | 120 | 3658 | # Copyright (C) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the... | bsd-3-clause | 7,550,555,497,073,756,000 | 38.333333 | 83 | 0.693275 | false |
gtlzxt/synergy | ext/toolchain/generators.py | 33 | 2582 | # synergy -- mouse and keyboard sharing utility
# Copyright (C) 2012 Synergy Si Ltd.
# Copyright (C) 2009 Nick Bolton
#
# This package is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# found in the file LICENSE that should have accompanied this file.
#
# ... | gpl-2.0 | -8,262,608,071,379,534,000 | 29.738095 | 81 | 0.71495 | false |
pombredanne/logbook | tests/test_logging_api.py | 6 | 2823 | import pickle
import sys
import logbook
from logbook.helpers import iteritems, xrange, u
import pytest
def test_basic_logging(active_handler, logger):
logger.warn('This is a warning. Nice hah?')
assert active_handler.has_warning('This is a warning. Nice hah?')
assert active_handler.formatted_records ... | bsd-3-clause | 8,424,146,303,829,561,000 | 29.031915 | 77 | 0.618491 | false |
google-code-export/django-hotclub | libs/external_libs/dateutil/dateutil/parser.py | 13 | 32492 | # -*- coding:iso-8859-1 -*-
"""
Copyright (c) 2003-2005 Gustavo Niemeyer <gustavo@niemeyer.net>
This module offers extensions to the standard python 2.3+
datetime module.
"""
__author__ = "Gustavo Niemeyer <gustavo@niemeyer.net>"
__license__ = "PSF License"
import os.path
import string
import sys
import time
import... | mit | -9,197,935,670,924,959,000 | 36.133714 | 81 | 0.356088 | false |
F483/ngcccbase | ngcccbase/tests/test_wallet_model.py | 5 | 4256 | #!/usr/bin/env python
import unittest
from coloredcoinlib import (ColorSet, ColorDataBuilderManager,
AidedColorDataBuilder, ThinColorData)
from ngcccbase.deterministic import DWalletAddressManager
from ngcccbase.pwallet import PersistentWallet
from ngcccbase.txcons import BasicTxSpec, Inv... | mit | -2,543,721,033,331,689,500 | 39.533333 | 147 | 0.641917 | false |
marketdial/helloworld | accounts/forms.py | 2 | 5965 | # -*- coding: utf-8 -*-
from flask import render_template, current_app
from wtforms import *
from flask.ext.wtf import Form
from flask_mail import Message
from application import mail
from common.utils import get_signer
from accounts.models import User
class LoginForm(Form):
user = None
username = TextFiel... | mit | -3,401,161,158,409,010,700 | 23.854167 | 81 | 0.553562 | false |
daniaki/Enrich2 | enrich2/gui/seqlib_apply_dialog.py | 1 | 3571 | # Copyright 2016 Alan F Rubin
#
# This file is part of Enrich2.
#
# Enrich2 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,738,175,926,527,774,000 | 36.197917 | 78 | 0.596752 | false |
shinexwang/Classy | Testing/TestMain/profParser.py | 1 | 4044 | """
Copyright 2013 Shine Wang
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distrib... | apache-2.0 | 4,193,864,331,926,947,300 | 34.165217 | 75 | 0.566024 | false |
luhanhan/horizon | openstack_dashboard/test/test_data/heat_data.py | 50 | 11072 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | apache-2.0 | 8,469,637,906,561,849,000 | 22.913607 | 79 | 0.585621 | false |
detiber/lib_openshift | test/test_wrapper.py | 2 | 3097 | # coding: utf-8
"""
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | apache-2.0 | 3,484,075,424,574,969,000 | 33.411111 | 86 | 0.694866 | false |
cybertk/depot_tools | third_party/pylint/checkers/classes.py | 19 | 23939 | # Copyright (c) 2003-2011 LOGILAB S.A. (Paris, FRANCE).
# http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, o... | bsd-3-clause | -1,408,638,957,608,805,400 | 42.289331 | 127 | 0.55867 | false |
Lukc/ospace-lukc | client-pygame/lib/osci/dialog/NewMessageDlg.py | 1 | 7294 | #
# Copyright 2001 - 2006 Ludek Smid [http://www.ospace.net/]
#
# This file is part of IGE - Outer Space.
#
# IGE - Outer Space 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 Lice... | gpl-2.0 | 9,155,487,491,296,367,000 | 31.86036 | 102 | 0.643543 | false |
thinkopensolutions/server-tools | module_prototyper/tests/test_prototype_module_export.py | 2 | 3093 | # -*- coding: utf-8 -*-
# #############################################################################
#
# OpenERP, Open Source Management Solution
# This module copyright (C) 2010 - 2014 Savoir-faire Linux
# (<http://www.savoirfairelinux.com>).
#
# This program is free software: you can redistribute it and/or modify
... | agpl-3.0 | 8,163,227,980,017,495,000 | 37.6625 | 79 | 0.602651 | false |
datapythonista/pandas | pandas/tests/io/test_compression.py | 3 | 8199 | import io
import os
from pathlib import Path
import subprocess
import sys
import textwrap
import time
import pytest
import pandas as pd
import pandas._testing as tm
import pandas.io.common as icom
@pytest.mark.parametrize(
"obj",
[
pd.DataFrame(
100 * [[0.123456, 0.234567, 0.567567], [1... | bsd-3-clause | 6,395,101,653,837,909,000 | 31.796 | 86 | 0.620807 | false |
veblush/PyPhabricatorDb | sample/create-task-summary.py | 1 | 1927 | import sys
import codecs
import datetime
from pyphabricatordb import *
from sqlalchemy.orm import sessionmaker
def create_session():
DBSession = sessionmaker()
return DBSession()
def get_user(session, phid):
return session.query(user.User).filter(user.User.phid == phid).first()
def create_task_range_summ... | mit | -207,738,207,165,663,500 | 38.326531 | 130 | 0.641412 | false |
wecatch/app-turbo | turbo/mongo_model.py | 1 | 10225 | # -*- coding:utf-8 -*-
from __future__ import (
absolute_import,
division,
print_function,
with_statement,
)
from collections import defaultdict
from datetime import datetime
import functools
import time
from bson.objectid import ObjectId
from turbo.log import model_log
from turbo.util import escape a... | apache-2.0 | 3,731,095,449,400,572,000 | 25.697128 | 108 | 0.551589 | false |
jeremiahyan/odoo | odoo/addons/base/models/ir_qweb.py | 1 | 19636 | # -*- coding: utf-8 -*-
from __future__ import print_function
import ast
import copy
import logging
from collections import OrderedDict
from time import time
from lxml import html
from lxml import etree
from odoo import api, models, tools
from odoo.tools.safe_eval import assert_valid_codeobj, _BUILTINS, _SAFE_OPCODES... | gpl-3.0 | 7,832,907,001,631,781,000 | 43.425339 | 165 | 0.532644 | false |
Thraxis/pymedusa | lib/sqlalchemy/orm/persistence.py | 34 | 51028 | # orm/persistence.py
# Copyright (C) 2005-2016 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""private module containing functions used to emit INSERT, UPDATE
and DELETE sta... | gpl-3.0 | -7,167,322,708,506,918,000 | 35.241477 | 80 | 0.556302 | false |
ahmetcemturan/SFACT | fabmetheus_utilities/geometry/creation/linear_bearing_cage.py | 12 | 12862 | """
Linear bearing cage.
"""
from __future__ import absolute_import
#Init has to be imported first because it has code to workaround the python bug where relative imports don't work if the module is imported as a main module.
import __init__
from fabmetheus_utilities.geometry.creation import extrude
from fabmetheus_... | agpl-3.0 | 5,960,471,037,751,927,000 | 51.072874 | 157 | 0.806251 | false |
apache/airflow | tests/providers/amazon/aws/hooks/test_kinesis.py | 3 | 2515 | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | apache-2.0 | -6,371,513,636,730,374,000 | 37.692308 | 98 | 0.681511 | false |
sbalde/edx-platform | common/lib/xmodule/xmodule/tests/test_stringify.py | 187 | 1256 | """
Tests stringify functions used in xmodule html
"""
from nose.tools import assert_equals # pylint: disable=no-name-in-module
from lxml import etree
from xmodule.stringify import stringify_children
def test_stringify():
text = 'Hi <div x="foo">there <span>Bruce</span><b>!</b></div>'
html = '''<html a="b" f... | agpl-3.0 | -4,546,936,460,027,800,600 | 27.545455 | 82 | 0.663217 | false |
interedition/collatex | collatex-pythonport/docs/conf.py | 4 | 8473 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# complexity documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 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
# ... | gpl-3.0 | -4,680,962,521,294,584,000 | 29.814545 | 76 | 0.706243 | false |
Learning-from-our-past/Kaira | books/karelians/extraction/extractors/weddingextractor.py | 2 | 1845 | # -*- coding: utf-8 -*-
import re
from books.karelians.extraction.extractors.baseExtractor import BaseExtractor
from books.karelians.extraction.extractionExceptions import *
from books.karelians.extraction.extractors.dateExtractor import DateExtractor
from shared import textUtils
from books.karelians.extractionkeys im... | gpl-2.0 | -8,257,079,874,267,493,000 | 35.176471 | 95 | 0.698645 | false |
psiorx/drake | drake/thirdParty/xacro.py | 19 | 18904 | #! /usr/bin/env python
# Copyright (c) 2008, Willow Garage, 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
# no... | bsd-3-clause | 1,156,979,970,147,458,300 | 31.991274 | 123 | 0.545863 | false |
toshywoshy/ansible | lib/ansible/modules/network/fortios/fortios_firewall_ldb_monitor.py | 7 | 12613 | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019 Fortinet, Inc.
#
# 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 Lic... | gpl-3.0 | 7,255,643,223,289,773,000 | 31.507732 | 153 | 0.572901 | false |
wfxiang08/django190 | django/contrib/gis/gdal/__init__.py | 130 | 2610 | """
This module houses ctypes interfaces for GDAL objects. The following GDAL
objects are supported:
CoordTransform: Used for coordinate transformations from one spatial
reference system to another.
Driver: Wraps an OGR data source driver.
DataSource: Wrapper for the OGR data source object, supports
OGR-su... | bsd-3-clause | -4,136,187,003,226,447,000 | 38.545455 | 101 | 0.744828 | false |
double-y/django | django/conf/locale/mk/formats.py | 504 | 1742 | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'd F Y'
TIME_FORMAT = 'H:i'
DATETI... | bsd-3-clause | 6,987,838,347,134,050,000 | 37.711111 | 77 | 0.493685 | false |
pombredanne/python-ptrace | examples/itrace.py | 1 | 1770 | #!/usr/bin/env python
"""
Here is a tool which I have been using to debug libc startup code where I
didn't find gdb very helpful. It single steps the process and prints each
instruction pointer address. To go faster, it allows a number of syscalls to
run before starting single-stepping.
It's possible to pipe the addre... | gpl-2.0 | 4,968,696,768,076,982,000 | 32.396226 | 76 | 0.626554 | false |
maaaks/andreas | andreas/commands/dbcommands.py | 1 | 1291 | from typing import List, Type
from andreas.db.database import db
from andreas.db.model import Model
from andreas.models.event import Event
from andreas.models.keypair import KeyPair
from andreas.models.post import Post
from andreas.models.relations import PostPostRelation, UserPostRelation
from andreas.models.server i... | mit | 4,788,224,980,873,828,000 | 22.071429 | 71 | 0.670798 | false |
aliyun/oss-ftp | python27/win32/Lib/distutils/tests/test_register.py | 39 | 8839 | # -*- encoding: utf8 -*-
"""Tests for distutils.command.register."""
import os
import unittest
import getpass
import urllib2
import warnings
from test.test_support import check_warnings, run_unittest
from distutils.command import register as register_module
from distutils.command.register import register
from distuti... | mit | 2,733,337,625,858,231,300 | 29.468966 | 75 | 0.574581 | false |
Adriwr/Clinica | vendor/doctrine/orm/docs/en/_exts/configurationblock.py | 2577 | 3506 | #Copyright (c) 2010 Fabien Potencier
#
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software without restriction, including without limitation the rights
#to use, copy, modify, merge, publish, distrib... | mit | 8,855,156,550,038,624,000 | 36.698925 | 108 | 0.650029 | false |
laborautonomo/opps | opps/views/generic/json_views.py | 1 | 2941 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from django.http import HttpResponse
from django.views.generic import TemplateView
from django.views.generic.detail import BaseDetailView
from django.views.generic.detail import SingleObjectTemplateResponseMixin
def response_mimetype(request):
if "applicat... | mit | 7,314,731,393,627,772,000 | 34.865854 | 78 | 0.639918 | false |
AntonioJBT/CGATPipeline_core | CGATPipelines/Pipeline/Utils.py | 2 | 2223 | """Utils.py - Utilities for ruffus pipelines
============================================
Reference
---------
"""
import inspect
import sys
def isTest():
"""return True if the pipeline is run in a "testing" mode.
This method checks if ``-is-test`` has been given as a
command line option.
"""
re... | mit | 911,938,815,966,374,100 | 22.903226 | 83 | 0.545659 | false |
joshmoore/zeroc-ice | java/test/Ice/operations/run.py | 1 | 1403 | #!/usr/bin/env python
# **********************************************************************
#
# Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# *************************************... | gpl-2.0 | 7,911,121,298,220,474,000 | 36.918919 | 122 | 0.642195 | false |
EliteTK/qutebrowser | qutebrowser/browser/webelem.py | 2 | 12858 | # vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:
# Copyright 2014-2016 Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# This file is part of qutebrowser.
#
# qutebrowser 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 S... | gpl-3.0 | -7,513,154,092,897,436,000 | 32.926121 | 79 | 0.586405 | false |
mdavid/horizon | openstack_dashboard/dashboards/project/stacks/api.py | 95 | 2863 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | apache-2.0 | -2,374,737,551,438,899,700 | 33.493976 | 78 | 0.574572 | false |
huziyizero/godot | platform/osx/detect.py | 12 | 3271 |
import os
import sys
def is_active():
return True
def get_name():
return "OSX"
def can_build():
if (sys.platform == "darwin" or os.environ.has_key("OSXCROSS_ROOT")):
return True
return False
def get_opts():
return [
('force_64_bits','Force 64 bits binary','no'),
('osxcross_sdk','OSXCross SDK ... | mit | -8,455,481,845,154,642,000 | 28.205357 | 163 | 0.628248 | false |
dmoliveira/networkx | networkx/algorithms/tree/tests/test_recognition.py | 54 | 4061 |
from nose.tools import *
import networkx as nx
class TestTreeRecognition(object):
graph = nx.Graph
multigraph = nx.MultiGraph
def setUp(self):
self.T1 = self.graph()
self.T2 = self.graph()
self.T2.add_node(1)
self.T3 = self.graph()
self.T3.add_nodes_from(range... | bsd-3-clause | -7,915,539,460,904,078,000 | 26.62585 | 55 | 0.602561 | false |
vivekanand1101/neutron | neutron/agent/rpc.py | 22 | 8851 | # Copyright (c) 2012 OpenStack Foundation.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | apache-2.0 | -8,646,328,556,412,745,000 | 42.600985 | 79 | 0.609875 | false |
gbosh/mezzanine | mezzanine/urls.py | 1 | 3462 | """
This is the main ``urlconf`` for Mezzanine - it sets up patterns for
all the various Mezzanine apps, third-party apps like Grappelli and
filebrowser.
"""
from django.conf.urls.defaults import patterns, include
from django.contrib import admin
from django.contrib.admin.sites import NotRegistered
from django.http im... | bsd-2-clause | -1,704,780,481,293,052,700 | 34.326531 | 78 | 0.656268 | false |
bgxavier/nova | nova/virt/ironic/ironic_states.py | 36 | 4259 | # Copyright (c) 2012 NTT DOCOMO, INC.
# Copyright 2010 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/l... | apache-2.0 | -5,459,125,732,780,691,000 | 29.421429 | 79 | 0.73374 | false |
great-expectations/great_expectations | tests/test_ge_utils.py | 1 | 11911 | import copy
import os
import pytest
import great_expectations as ge
from great_expectations.core.util import nested_update
from great_expectations.dataset.util import check_sql_engine_dialect
from great_expectations.util import (
filter_properties_dict,
get_currently_executing_function_call_arguments,
lin... | apache-2.0 | -8,535,863,983,150,321,000 | 32.086111 | 119 | 0.616741 | false |
lgeiger/ide-python | dist/debugger/VendorLib/vs-py-debugger/pythonFiles/experimental/ptvsd/ptvsd/_vendored/pydevd/pydev_ipython/inputhookqt5.py | 7 | 7286 | # -*- coding: utf-8 -*-
"""
Qt5's inputhook support function
Author: Christian Boos
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2011 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, d... | mit | -2,663,700,316,365,340,700 | 35.984772 | 84 | 0.549822 | false |
kalefranz/auxlib | tests/test_path.py | 1 | 2148 | # # -*- coding: utf-8 -*-
# import logging
# from unittest import TestCase
#
# from auxlib import logz
# from auxlib.path import PackageFile, find_file_in_site_packages, open_package_file
#
# log = logging.getLogger(__name__)
#
#
# class PackageFileTests(TestCase):
#
# @classmethod
# def setUpClass(cls):
# ... | isc | -4,274,642,817,118,182,000 | 38.054545 | 94 | 0.619181 | false |
cwelton/incubator-hawq | tools/bin/lib/gpgetconfig.py | 12 | 3572 | #!/usr/bin/env python
# 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
# "L... | apache-2.0 | 4,923,039,520,281,521,000 | 25.459259 | 148 | 0.62318 | false |
marco-lancini/Showcase | django/db/models/loading.py | 308 | 8745 | "Utilities for loading models and the modules that contain them."
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.utils.datastructures import SortedDict
from django.utils.importlib import import_module
from django.utils.module_loading import module_has_submodule
im... | mit | -4,780,139,768,806,437,000 | 37.524229 | 97 | 0.590166 | false |
AMOSus/amos-ss16-proj6 | DataProcessing/test_dataProcessing.py | 1 | 3169 | #!/usr/bin/env python
# This file is part of Rogue Vision.
#
# Copyright (C) 2016 Daniel Reischl, Rene Rathmann, Peter Tan,
# Tobias Dorsch, Shefali Shukla, Vignesh Govindarajulu,
# Aleksander Penew, Abhinav Puri
#
# Rogue Vision is free software: you can redistribute it and/or modify
# it under th... | agpl-3.0 | 2,673,997,930,981,394,400 | 35.022727 | 98 | 0.714421 | false |
1844144/django-blog-zinnia | zinnia/migrations/0009_change_mptt_field.py | 4 | 8003 | from south.db import db
from south.v2 import SchemaMigration
from zinnia.migrations import user_name
from zinnia.migrations import user_table
from zinnia.migrations import user_orm_label
from zinnia.migrations import user_model_label
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing ... | bsd-3-clause | -5,560,119,401,173,851,000 | 77.460784 | 202 | 0.565538 | false |
Lezval/horizon | django-openstack/django_openstack/tests/view_tests/dash/security_groups_tests.py | 5 | 13975 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2011 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# no... | apache-2.0 | -6,839,621,232,211,050,000 | 36.567204 | 79 | 0.550698 | false |
listamilton/supermilton.repository | plugin.video.traquinas/resources/lib/libraries/f4mproxy/utils/openssl_tripledes.py | 202 | 1788 | # Author: Trevor Perrin
# See the LICENSE file for legal information regarding use of this file.
"""OpenSSL/M2Crypto 3DES implementation."""
from .cryptomath import *
from .tripledes import *
if m2cryptoLoaded:
def new(key, mode, IV):
return OpenSSL_TripleDES(key, mode, IV)
class OpenSSL_TripleDES(... | gpl-2.0 | -4,782,939,536,038,871,000 | 37.06383 | 98 | 0.611298 | false |
zooniverse/aggregation | experimental/penguins/newCluster.py | 2 | 11987 | #!/usr/bin/env python
__author__ = 'greg'
from sklearn.cluster import DBSCAN
from sklearn.cluster import AffinityPropagation
import numpy as np
import matplotlib.pyplot as plt
import csv
import sys
import os
import pymongo
import matplotlib.cbook as cbook
import cPickle as pickle
import shutil
import urllib
import math... | apache-2.0 | 7,761,811,715,038,455,000 | 31.053476 | 179 | 0.546342 | false |
stadtgestalten/stadtgestalten | docs/deployment/settings.py | 1 | 2052 | # grouprise settings file
# see https://docs.djangoproject.com/en/2.1/ref/settings/
import os
import subprocess
from stadt.settings.default import *
from grouprise.core.assets import add_javascript_reference, add_javascript_inline, add_csp_directive, add_meta
# see https://www.miniwebtool.com/django-secret-key-genera... | agpl-3.0 | 515,369,064,642,529,200 | 27.5 | 191 | 0.695419 | false |
shl198/Pipeline | Modules/PacBioEDA/PacBio_Productivity.py | 3 | 2900 | #!/usr/bin/env python
# Copyright (C) 2011 Genome Research Limited -- See full notice at end
# of module.
# Create a plot of ZMW productivity by x/y position on the
# SMRTcell. First parameter is input .bas.h5 file. Output png file is
# optional command line parameter, defaulting to productivity.png.
import sys
impo... | mit | 7,556,700,988,126,529,000 | 29.526316 | 77 | 0.657586 | false |
chbrown/pi | pi/commands/publish.py | 1 | 1402 | import os
from subprocess import check_call
from pi.dist import read_script
def publish(execute=True, verbose=False, script_name='setup.py'):
dist = read_script(script_name)
name = dist.get_name()
version = dist.get_version()
if os.path.exists('README.md'):
print 'Converting README.md to reSt... | mit | 34,353,667,107,204,910 | 33.195122 | 110 | 0.64622 | false |
zfrenchee/pandas | doc/sphinxext/ipython_sphinxext/ipython_directive.py | 1 | 37812 | # -*- coding: utf-8 -*-
"""
Sphinx directive to support embedded IPython code.
This directive allows pasting of entire interactive IPython sessions, prompts
and all, and their code will actually get re-executed at doc build time, with
all prompts renumbered sequentially. It also allows you to input code as a pure
pyth... | bsd-3-clause | 2,839,080,831,233,573,400 | 33.656279 | 124 | 0.570246 | false |
Alwnikrotikz/jythonconsole | tip.py | 9 | 1701 | from java.awt import Color, Dimension
from javax.swing import JWindow, JTextArea, JScrollPane
__author__ = "Don Coleman <dcoleman@chariotsolutions.com>"
__cvsid__ = "$Id: tip.py,v 1.3 2003/05/01 03:43:53 dcoleman Exp $"
class Tip(JWindow):
"""
Window which provides the user with information about the method.
... | lgpl-2.1 | 3,005,137,792,569,444,000 | 35.191489 | 80 | 0.648442 | false |
sdague/home-assistant | homeassistant/components/scsgate/light.py | 12 | 3131 | """Support for SCSGate lights."""
import logging
from scsgate.tasks import ToggleStatusTask
import voluptuous as vol
from homeassistant.components.light import PLATFORM_SCHEMA, LightEntity
from homeassistant.const import ATTR_ENTITY_ID, ATTR_STATE, CONF_DEVICES, CONF_NAME
import homeassistant.helpers.config_validatio... | apache-2.0 | -1,859,846,476,552,103,000 | 27.207207 | 87 | 0.603002 | false |
amanikamail/flexx | docs/scripts/genexamples.py | 19 | 3162 | """ Generate docs for examples.
"""
import os
from types import ModuleType
from flexx import ui, app
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
DOC_DIR = os.path.abspath(os.path.join(THIS_DIR, '..'))
EXAMPLES_DIR = os.path.abspath(os.path.join(DOC_DIR, '..', 'examples'))
OUTPUT_DIR = os.path.join(DOC_DIR,... | bsd-2-clause | -125,045,003,337,830,060 | 34.931818 | 83 | 0.533839 | false |
tengqm/senlin-container | senlin/tests/unit/api/common/test_util.py | 1 | 3858 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed unde... | apache-2.0 | -8,149,454,512,689,554,000 | 35.056075 | 75 | 0.644635 | false |
TeslaProject/external_chromium_org | tools/telemetry/telemetry/core/backends/chrome/tab_list_backend.py | 46 | 2790 | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import urllib2
from telemetry.core import tab
from telemetry.core import util
from telemetry.core.backends.chrome import inspector_backend_list
class TabL... | bsd-3-clause | 652,955,964,871,653,800 | 39.434783 | 80 | 0.653047 | false |
jgsogo/neutron | webapp/synthetic/forms.py | 1 | 1384 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django import forms
from neutron.models import Word
from .models import AlternateData
class AlternateDataForm(forms.ModelForm):
word = forms.CharField()
class Meta:
model = AlternateData
fields = '__all__'
def __init__(self, *args, **... | gpl-2.0 | 5,299,506,953,935,165,000 | 27.833333 | 87 | 0.611272 | false |
shurihell/testasia | lms/djangoapps/certificates/tests/factories.py | 16 | 3695 | # Factories are self documenting
# pylint: disable=missing-docstring
import factory
from uuid import uuid4
from django.core.files.base import ContentFile
from factory.django import DjangoModelFactory, ImageField
from student.models import LinkedInAddToProfileConfiguration
from certificates.models import (
Generat... | agpl-3.0 | 7,506,985,517,506,218,000 | 31.699115 | 118 | 0.615968 | false |
viz-dev/viz | qa/rpc-tests/importprunedfunds.py | 55 | 5061 | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
class ... | mit | 6,640,988,969,223,507,000 | 36.768657 | 107 | 0.626556 | false |
nadley/Sick-Beard | sickbeard/search_queue.py | 29 | 9175 | # Author: Nic Wolfe <nic@wolfeden.ca>
# URL: http://code.google.com/p/sickbeard/
#
# This file is part of Sick Beard.
#
# Sick Beard 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 t... | gpl-3.0 | -682,730,083,608,517,800 | 37.042553 | 181 | 0.619183 | false |
bihealth/vcfpy | tests/test_header.py | 1 | 13943 | # -*- coding: utf-8 -*-
"""Tests for vcfpy.header
"""
import sys
import vcfpy
from vcfpy import header
import pytest
def test_header_field_info():
"""Test the builtin functions of the FieldInfo class"""
info1 = header.FieldInfo("Integer", 1, "Some description")
info2 = header.FieldInfo("Integer", 1, "S... | mit | -5,204,236,028,401,062,000 | 38.837143 | 109 | 0.571828 | false |
Tehsmash/ironic | ironic/drivers/modules/snmp.py | 2 | 24149 | # Copyright 2013,2014 Cray Inc
#
# Authors: David Hewson <dhewson@cray.com>
# Stig Telfer <stelfer@cray.com>
# Mark Goddard <mgoddard@cray.com>
#
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the L... | apache-2.0 | -8,906,259,176,969,156,000 | 33.847042 | 79 | 0.616216 | false |
lamby/pkg-rst2pdf | rst2pdf/tests/input/sphinx-issue172/conf.py | 9 | 7199 | # -*- coding: utf-8 -*-
#
# Sphinx markup documentation build configuration file, created by
# sphinx-quickstart on Tue Aug 18 22:54:33 2009.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#... | mit | 7,448,587,530,387,755,000 | 30.3 | 80 | 0.708154 | false |
brainelectronics/towerdefense | tests/text/EMPTY.py | 28 | 1136 | #!/usr/bin/env python
'''Test that an empty document doesn't break.
'''
__docformat__ = 'restructuredtext'
__noninteractive = True
import unittest
from pyglet import gl
from pyglet import graphics
from pyglet.text import document
from pyglet.text import layout
from pyglet import window
class TestWindow(window.Win... | bsd-3-clause | -3,185,301,283,785,553,000 | 24.818182 | 65 | 0.661092 | false |
benesch/adspygoogle.dfp | adspygoogle/common/Client.py | 3 | 10125 | #!/usr/bin/python
#
# Copyright 2010 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | apache-2.0 | -7,514,757,267,147,323,000 | 28.347826 | 80 | 0.666568 | false |
mszewczy/odoo | addons/portal/tests/test_portal.py | 198 | 14169 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Business Applications
# Copyright (c) 2012-TODAY OpenERP S.A. <http://openerp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of ... | agpl-3.0 | -6,518,190,989,426,405,000 | 59.551282 | 163 | 0.639636 | false |
hackerkid/zulip | zerver/management/commands/merge_streams.py | 3 | 3556 | from argparse import ArgumentParser
from typing import Any, List
from zerver.lib.actions import (
bulk_add_subscriptions,
bulk_remove_subscriptions,
do_deactivate_stream,
)
from zerver.lib.cache import cache_delete_many, to_dict_cache_key_id
from zerver.lib.management import ZulipBaseCommand
from zerver.mo... | apache-2.0 | 5,758,618,571,192,968,000 | 40.835294 | 96 | 0.652418 | false |
QianBIG/odoo | openerp/addons/base/tests/test_ir_values.py | 462 | 6705 | import unittest2
import openerp.tests.common as common
class test_ir_values(common.TransactionCase):
def test_00(self):
# Create some default value for some (non-existing) model, for all users.
ir_values = self.registry('ir.values')
# use the old API
ir_values.set(self.cr, self.u... | agpl-3.0 | -4,269,493,996,034,565,000 | 61.663551 | 168 | 0.642953 | false |
orezpraw/partycrasher | partycrasher/more_like_this_response.py | 2 | 5735 | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Copyright (C) 2016, 2017 Joshua Charles Campbell
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at ... | gpl-3.0 | 4,864,964,501,320,618,000 | 34.184049 | 98 | 0.578553 | false |
tareqalayan/ansible | lib/ansible/modules/network/cumulus/_cl_img_install.py | 25 | 3558 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2016, Cumulus Networks <ce-ceng@cumulusnetworks.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_METADATA = {'metadata_versio... | gpl-3.0 | -5,251,614,560,960,120,000 | 31.944444 | 100 | 0.671726 | false |
rdeheele/odoo | addons/event/wizard/event_confirm.py | 339 | 1387 | # -*- 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 | -2,053,449,945,955,956,200 | 38.628571 | 83 | 0.617159 | false |
dorileo/soletta | data/scripts/template.py | 9 | 5158 | #!/usr/bin/env python3
# This file is part of the Soletta (TM) Project
#
# Copyright (C) 2015 Intel Corporation. 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
#
# ... | apache-2.0 | 8,964,335,338,637,362,000 | 30.839506 | 92 | 0.565529 | false |
calfonso/ansible | lib/ansible/modules/cloud/amazon/ec2_elb_facts.py | 24 | 8629 | #!/usr/bin/python
#
# This is a 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 Ansible library is distributed in the hope that i... | gpl-3.0 | -539,068,063,283,125,200 | 31.685606 | 136 | 0.594623 | false |
xuewei4d/scikit-learn | asv_benchmarks/benchmarks/decomposition.py | 12 | 2754 | from sklearn.decomposition import (PCA, DictionaryLearning,
MiniBatchDictionaryLearning)
from .common import Benchmark, Estimator, Transformer
from .datasets import _olivetti_faces_dataset, _mnist_dataset
from .utils import make_pca_scorers, make_dict_learning_scorers
class PCABenc... | bsd-3-clause | 4,591,949,816,198,792,700 | 28.297872 | 78 | 0.531227 | false |
DeltaEpsilon-HackFMI2/FMICalendar-REST | venv/lib/python2.7/site-packages/rest_framework/tests/test_relations_pk.py | 21 | 22294 | from __future__ import unicode_literals
from django.db import models
from django.test import TestCase
from rest_framework import serializers
from rest_framework.tests.models import (
BlogPost, ManyToManyTarget, ManyToManySource, ForeignKeyTarget, ForeignKeySource,
NullableForeignKeySource, OneToOneTarget, Nulla... | mit | -5,196,732,579,960,990,000 | 39.46098 | 134 | 0.606531 | false |
lbdreyer/iris | lib/iris/tests/unit/aux_factory/test_AuxCoordFactory.py | 5 | 6412 | # Copyright Iris contributors
#
# This file is part of Iris and is released under the LGPL license.
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.
"""
Unit tests for `iris.aux_factory.AuxCoordFactory`.
"""
# Import iris.tests first so that some things can be initialised b... | lgpl-3.0 | -5,600,862,077,784,357,000 | 37.626506 | 76 | 0.636307 | false |
gymnasium/edx-platform | openedx/core/djangoapps/catalog/management/commands/tests/test_create_catalog_integrations.py | 13 | 4190 | """
Test cases for catalog_integrations command.
"""
from django.test import TestCase
from django.core.management import call_command, CommandError
from openedx.core.djangoapps.catalog.models import CatalogIntegration
from openedx.core.djangoapps.catalog.tests.mixins import CatalogIntegrationMixin
class TestCreateCa... | agpl-3.0 | 8,953,776,738,526,257,000 | 28.097222 | 92 | 0.577327 | false |
Seklfreak/Robyul-Red-DiscordBot | cogs/mirror.py | 2 | 6343 | import discord
from discord.ext import commands
from __main__ import send_cmd_help
import os
from .utils.dataIO import dataIO
from .utils import checks
import re
import aiohttp
import json
from .utils.chat_formatting import pagify
import asyncio
__author__ = "Sebastian Winkler <sekl@slmn.de>"
__version__ = "1.0"
clas... | gpl-3.0 | 32,658,877,504,135,616 | 42.452055 | 169 | 0.566136 | false |
ZhangXinNan/tensorflow | tensorflow/contrib/kfac/examples/convnet_mnist_multi_tower_main.py | 15 | 1573 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -2,450,845,588,777,690,600 | 31.770833 | 80 | 0.684043 | false |
maximus0/thrift | test/py/TestSyntax.py | 99 | 1318 | #!/usr/bin/env python
#
# 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
# "L... | apache-2.0 | 708,962,482,295,138,300 | 38.939394 | 81 | 0.766313 | false |
neumerance/cloudloon2 | openstack_dashboard/dashboards/admin/images/forms.py | 10 | 1025 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# no... | apache-2.0 | 1,242,934,383,963,419,000 | 33.166667 | 78 | 0.754146 | 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.