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 |
|---|---|---|---|---|---|---|---|---|---|---|
yanheven/nova | nova/tests/functional/v3/test_shelve.py | 8 | 1879 | # Copyright 2012 Nebula, Inc.
# Copyright 2013 IBM Corp.
#
# 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... | apache-2.0 | -4,104,897,709,540,883,500 | 36.58 | 78 | 0.667376 | false |
personalrobotics/wampy | src/wampy/wamrobot.py | 1 | 7097 | PACKAGE = 'wampy'
import logging
import openravepy
import prpy
import prpy.rave
import prpy.util
from prpy.base.barretthand import BarrettHand
from prpy.base.wam import WAM
from prpy.base.robot import Robot
from prpy.exceptions import PrPyException
from prpy.planning.base import UnsupportedPlanningError
from wambase i... | bsd-3-clause | -4,938,100,176,471,372,000 | 34.485 | 100 | 0.615894 | false |
eunchong/build | third_party/buildbot_8_4p1/buildbot/test/unit/test_clients_sendchange.py | 4 | 9246 | # This file is part of Buildbot. Buildbot is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | bsd-3-clause | 145,109,744,512,179,840 | 41.412844 | 79 | 0.533744 | false |
klmitch/neutron | neutron/objects/subnetpool.py | 3 | 6292 | # Copyright (c) 2015 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 | -5,165,461,933,519,429,000 | 36.452381 | 78 | 0.610458 | false |
SanketDG/networkx | networkx/algorithms/connectivity/connectivity.py | 17 | 29240 | # -*- coding: utf-8 -*-
"""
Flow based connectivity algorithms
"""
from __future__ import division
import itertools
from operator import itemgetter
import networkx as nx
# Define the default maximum flow function to use in all flow based
# connectivity algorithms.
from networkx.algorithms.flow import edmonds_karp, sh... | bsd-3-clause | 275,774,600,505,305,660 | 36.059569 | 88 | 0.658892 | false |
plecto/motorway | motorway/ramp.py | 1 | 6608 | import logging
import multiprocessing
from setproctitle import setproctitle
import datetime
from threading import Thread
import uuid
from motorway.grouping import GroupingValueMissing
from motorway.messages import Message
from motorway.mixins import GrouperMixin, SendMessageMixin, ConnectionMixin
from motorway.utils im... | apache-2.0 | 1,548,838,244,974,499,300 | 37.643275 | 147 | 0.608051 | false |
CruiseDevice/coala | coalib/results/LineDiff.py | 35 | 2418 | import collections
from coala_utils.decorators import generate_repr
class ConflictError(Exception):
pass
@generate_repr('change', 'delete', 'add_after')
class LineDiff:
"""
A LineDiff holds the difference between two strings.
"""
def __init__(self, change=False, delete=False, add_after=False):... | agpl-3.0 | -835,854,551,128,579,300 | 30.402597 | 79 | 0.597601 | false |
TeamEOS/external_chromium_org | tools/perf/measurements/thread_times.py | 10 | 2096 | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from measurements import timeline_controller
from metrics import timeline
from telemetry.core.backends.chrome import tracing_backend
from telemetry.page impor... | bsd-3-clause | -8,521,822,936,113,499,000 | 40.098039 | 74 | 0.719943 | false |
dsg-bielefeld/mumodo | packages/mumodo/plotting.py | 1 | 18597 | # The MIT License (MIT)
#
# Copyright (c) 2015 Dialogue Systems Group, University of Bielefeld
#
# 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 limitat... | mit | -1,922,745,222,189,142,300 | 37.108607 | 80 | 0.577674 | false |
cloudflare/bpftools | bpftools/gen_tcpdump.py | 1 | 2625 | import argparse
import os
import re
import subprocess
import sys
from . import linktypes
FAKE_PCAP="d4 c3 b2 a1 02 00 04 00 00 00 00 00 00 00 00 00 00 00 01 00 %02x 00 00 00".replace(' ','')
def bpf_from_expr(expr, linktype):
fake_pcap = (FAKE_PCAP % (linktype,)).decode('hex')
for path in ['/bin', '/sbin... | bsd-3-clause | 6,457,785,382,725,177,000 | 30.25 | 125 | 0.565333 | false |
googlearchive/big-rig | app/src/thirdparty/telemetry/internal/backends/chrome/tab_list_backend_unittest.py | 13 | 1364 | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry.core import exceptions
from telemetry import decorators
from telemetry.testing import tab_test_case
class TabListBackendTest(tab_test_case.T... | apache-2.0 | 2,224,321,335,150,862,800 | 33.974359 | 77 | 0.714076 | false |
joachimmetz/dfwinreg | tests/glob2regex.py | 2 | 1922 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for the Windows Registry searcher."""
import fnmatch
import unittest
from dfwinreg import glob2regex
from tests import test_lib
class Glob2RegexTest(test_lib.BaseTestCase):
"""Tests for the glob to regular expression conversion function."""
_TEST_PATTERNS... | apache-2.0 | 8,535,706,932,067,679,000 | 30 | 75 | 0.633715 | false |
danielluker/ShoppingList | webapp/shoppinglist/shoppinglist/urls.py | 1 | 1606 | """shoppinglist URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Clas... | mit | -459,443,759,860,277,570 | 40.179487 | 77 | 0.666874 | false |
matthijsvk/multimodalSR | code/Experiments/neon-master/examples/char_rnn.py | 2 | 2551 | #!/usr/bin/env python
# ----------------------------------------------------------------------------
# Copyright 2015-2016 Nervana Systems 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
#... | mit | 9,182,318,724,445,776,000 | 31.291139 | 92 | 0.713446 | false |
evereux/flicket | scripts/email_batch_notifications.py | 1 | 1233 | #! usr/bin/python3
# -*- coding: utf-8 -*-
#
# Flicket - copyright Paul Bourne: evereux@gmail.com
import time
from flask_script import Command
from sqlalchemy import or_
from application.flicket.models.flicket_models import FlicketTicket
from application.flicket.models.flicket_user import FlicketUser
from applicatio... | mit | 7,945,449,939,529,119,000 | 32.324324 | 117 | 0.652879 | false |
sigma-random/pyelftools | elftools/construct/__init__.py | 25 | 4610 | """
#### ####
## #### ## ## #### ###### ##### ## ## #### ###### ## ##
## ## ## ### ## ## ## ## ## ## ## ## ## #### ##
## ## ## ###### ### ## ##### ## ## ## ## ##
## ##... | unlicense | -1,848,342,136,415,974,400 | 40.909091 | 80 | 0.495879 | false |
PECOS-KNL/kernels | src/gp/results/plot_omp_scaling.py | 1 | 1163 | import numpy as np
import matplotlib
matplotlib.use('pdf')
from matplotlib import pyplot as plt
from matplotlib import rcParams
rcParams['font.family'] = 'serif'
rcParams['font.serif'] = 'Computer Modern Roman'
rcParams['text.usetex'] = True
from matplotlib.ticker import LogLocator, NullLocator
from matplotlib.ticker... | lgpl-2.1 | 1,462,994,955,519,293,700 | 26.690476 | 87 | 0.716251 | false |
shashank971/edx-platform | common/djangoapps/third_party_auth/tests/test_views.py | 42 | 5678 | """
Test the views served by third_party_auth.
"""
# pylint: disable=no-member
import ddt
from lxml import etree
from onelogin.saml2.errors import OneLogin_Saml2_Error
import unittest
from .testutil import AUTH_FEATURE_ENABLED, SAMLTestCase
# Define some XML namespaces:
from third_party_auth.tasks import SAML_XML_NS
X... | agpl-3.0 | 4,487,708,583,159,961,000 | 42.343511 | 118 | 0.63156 | false |
John-Lin/pyew | envi/bits.py | 16 | 5880 | """
A file full of bit twidling helpers
"""
import struct
MAX_WORD = 8 # Dont have any more than 64 bit archs
# Masks to use for unsigned anding to size
u_maxes = [ (2 ** (8*i)) - 1 for i in range(MAX_WORD+1) ]
u_maxes[0] = 0 # powers of 0 are 1, but we need 0
# Masks of just the sign bit for different sizes
sign_b... | gpl-2.0 | 7,704,865,028,898,605,000 | 21.615385 | 76 | 0.554082 | false |
yaojingwu1992/XlsxWriter | xlsxwriter/test/worksheet/test_write_sheet_pr.py | 8 | 1524 | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ...worksheet import Worksheet
class TestWriteSheetPr(unittest.TestCase):
"""
T... | bsd-2-clause | -264,698,672,828,963,620 | 26.214286 | 93 | 0.575459 | false |
abaheti/rabbitvcs | rabbitvcs/ui/changes.py | 3 | 19490 | #
# This is an extension to the Nautilus file manager to allow better
# integration with the Subversion source control system.
#
# Copyright (C) 2006-2008 by Jason Field <jason@jasonfield.com>
# Copyright (C) 2007-2008 by Bruce van der Kooij <brucevdkooij@gmail.com>
# Copyright (C) 2008-2010 by Adam Plumb <adamplumb@... | gpl-2.0 | 5,937,524,008,970,343,000 | 31.701342 | 104 | 0.585326 | false |
cyberark-bizdev/ansible | lib/ansible/modules/packaging/os/yum.py | 2 | 54277 | #!/usr/bin/python -tt
# -*- coding: utf-8 -*-
# Copyright: (c) 2012, Red Hat, Inc
# Written by Seth Vidal <skvidal at fedoraproject.org>
# Copyright: (c) 2014, Epic Games, Inc.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, divisio... | gpl-3.0 | -5,308,054,179,855,474,000 | 37.411182 | 156 | 0.583915 | false |
soarpenguin/ansible | lib/ansible/modules/storage/purestorage/purefa_hg.py | 7 | 5209 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2017, Simon Dodsley (simon@purestorage.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... | gpl-3.0 | -3,106,317,457,866,757,000 | 26.560847 | 88 | 0.650989 | false |
szha/mxnet | tests/python/unittest/test_test_utils.py | 9 | 1254 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | -2,911,214,963,598,764,500 | 35.882353 | 103 | 0.73764 | false |
snowdream1314/scrapy | tests/test_utils_reqser.py | 6 | 2723 | # -*- coding: utf-8 -*-
import unittest
from scrapy.http import Request
from scrapy.spiders import Spider
from scrapy.utils.reqser import request_to_dict, request_from_dict
class RequestSerializationTest(unittest.TestCase):
def setUp(self):
self.spider = TestSpider()
def test_basic(self):
r... | bsd-3-clause | -4,854,840,572,898,323,000 | 33.43038 | 78 | 0.630147 | false |
dougthor42/TPEdit | tpedit/__init__.py | 1 | 6303 | # -*- coding: utf-8 -*-s
"""
TPEdit
======
TPEdit is a XML diff program specifically for the Test Program (TP) files
created by FTIStudio (by Focused Test, Inc.).
TPEdit is, at the core, an XML diff tool. It can read the XML files generated
by Focused Test, Inc's FTIStudio program.
Any number of files can... | gpl-3.0 | -6,608,479,523,523,635,000 | 31.526596 | 79 | 0.529906 | false |
lmazuel/azure-sdk-for-python | azure-mgmt-scheduler/tests/test_mgmt_scheduler.py | 2 | 3532 | # coding: utf-8
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#---------------------------------------------------------------------... | mit | 7,058,373,198,330,537,000 | 33.950495 | 94 | 0.52068 | false |
csdms/coupling | tests/component/test_recursive.py | 2 | 1473 | import os
from pymt.component.component import Component
from pymt.framework.services import del_component_instances
def test_no_events(with_no_components):
del_component_instances(["air_port", "earth_port"])
air = Component("AirPort", name="air_port", uses=[], provides=[], events=[])
earth = Component(... | mit | 8,478,950,451,719,353,000 | 26.792453 | 81 | 0.623897 | false |
adamgreen/mbed | tools/export/sw4stm32/__init__.py | 9 | 6977 | """
mbed SDK
Copyright (c) 2011-2016 ARM Limited
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 | -1,836,186,862,491,448,300 | 56.188525 | 103 | 0.53877 | false |
ntts-clo/mld-ryu | ryu/tests/unit/lib/test_hub.py | 34 | 6871 | # Copyright (C) 2013 Nippon Telegraph and Telephone Corporation.
# Copyright (C) 2013 YAMAMOTO Takashi <yamamoto at valinux co jp>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:... | apache-2.0 | 2,399,355,565,273,414,000 | 27.748954 | 75 | 0.547373 | false |
jayinton/FlaskDemo | simple/sessionTest.py | 1 | 1407 | #!/usr/bin/env python
# coding=utf-8
__author__ = 'Jayin Ton'
from flask import Flask, request, session, redirect, url_for
app = Flask(__name__)
host = '127.0.0.1'
port = 8000
# 使用session 必须设置secret_key
# set the secret key. keep this really secret:
app.secret_key = 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT'
@app.route('/... | mit | 5,959,142,121,089,057,000 | 22.644068 | 61 | 0.579928 | false |
bgaunt/openEcslent | engine/ent.py | 2 | 2949 | #---------------------------------------------------------------------------
# Copyright 2010, 2011 Sushil J. Louis and Christopher E. Miles,
# Evolutionary Computing Systems Laboratory, Department of Computer Science
# and Engineering, University of Nevada, Reno.
#
# This file is part of OpenECSLENT
#
# OpenECS... | gpl-3.0 | -7,644,481,098,046,289,000 | 34.53012 | 83 | 0.596473 | false |
Eric89GXL/scikit-learn | examples/cluster/plot_kmeans_stability_low_dim_dense.py | 8 | 4308 | """
============================================================
Empirical evaluation of the impact of k-means initialization
============================================================
Evaluate the ability of k-means initializations strategies to make
the algorithm convergence robust as measured by the relative stan... | bsd-3-clause | -2,138,713,607,742,359,600 | 35.201681 | 79 | 0.660167 | false |
davidzchen/tensorflow | tensorflow/python/data/experimental/benchmarks/choose_fastest_benchmark.py | 16 | 4022 | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 4,727,532,685,120,353,000 | 37.304762 | 91 | 0.68548 | false |
cimatosa/cplxfnc | tests/test_cplxfnc.py | 1 | 5311 | import mpmath as mp
import cplxfnc as cf
import numpy as np
import os
import sys
from contextlib import contextmanager
@contextmanager
def stdouterr_redirected(to=os.devnull):
'''
taken from
https://stackoverflow.com/questions/5081657/how-do-i-prevent-a-c-shared-library-to-print-on-stdout-in-python
i... | mit | 8,307,775,867,021,095,000 | 28.675978 | 112 | 0.516099 | false |
wincent/ultisnips | test/test_ContextSnippets.py | 4 | 2661 | from test.vim_test_case import VimTestCase as _VimTest
from test.constant import *
class ContextSnippets_SimpleSnippet(_VimTest):
files = { 'us/all.snippets': r"""
snippet a "desc" "True" e
abc
endsnippet
"""}
keys = 'a' + EX
wanted = 'abc'
class ContextSnippets_ExpandOnT... | gpl-3.0 | 1,790,786,468,391,290,400 | 19.952756 | 64 | 0.490793 | false |
edmorley/django | django/contrib/gis/db/models/fields.py | 8 | 13509 | from collections import defaultdict, namedtuple
from django.contrib.gis import forms, gdal
from django.contrib.gis.db.models.proxy import SpatialProxy
from django.contrib.gis.gdal.error import GDALException
from django.contrib.gis.geos import (
GeometryCollection, GEOSException, GEOSGeometry, LineString,
Multi... | bsd-3-clause | 1,580,004,429,863,225,600 | 34.928191 | 119 | 0.642461 | false |
ruchee/vimrc | vimfiles/bundle/vim-python/submodules/pylama/pylama/lint/pylama_pycodestyle.py | 2 | 2038 | """pycodestyle support."""
from pycodestyle import BaseReport, StyleGuide, get_parser, _parse_multi_options
from pylama.lint import Linter as Abstract
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
class Linter(Abstract):
"""pycodestyle runner."""
@staticmethod
... | mit | -4,727,640,563,195,026,000 | 28.114286 | 80 | 0.581452 | false |
danielballan/scikit-xray | skbeam/io/binary.py | 7 | 4212 | # ######################################################################
# Copyright (c) 2014, Brookhaven Science Associates, Brookhaven #
# National Laboratory. All rights reserved. #
# #
# Redistribution and use in ... | bsd-3-clause | 4,960,817,424,620,324,000 | 44.290323 | 77 | 0.555081 | false |
mattcaldwell/pip | pip/cmdoptions.py | 3 | 11321 | """
shared options and groups
The principle here is to define options once, but *not* instantiate them
globally. One reason being that options with action='append' can carry state
between parses. pip parse's general options twice internally, and shouldn't
pass on state. To be consistent, all options will follow this d... | mit | -1,936,787,103,293,568,800 | 24.326622 | 79 | 0.623178 | false |
alexgorban/models | official/nlp/xlnet/common_flags.py | 2 | 5605 | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 1,689,320,576,307,714,600 | 37.390411 | 80 | 0.700981 | false |
RobertABT/heightmap | build/scipy/scipy/sparse/linalg/eigen/lobpcg/tests/test_lobpcg.py | 5 | 2015 | #!/usr/bin/env python
""" Test functions for the sparse.linalg.eigen.lobpcg module
"""
from __future__ import division, print_function, absolute_import
import numpy
from numpy.testing import assert_almost_equal, run_module_suite
from scipy import arange, ones, rand, r_, diag, linalg, eye
from scipy.linalg import eig
... | mit | -6,331,969,978,394,321,000 | 21.388889 | 76 | 0.593052 | false |
Tan0/ironic | ironic/tests/drivers/msftocs/test_common.py | 4 | 5358 | # Copyright 2015 Cloudbase Solutions Srl
# 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 r... | apache-2.0 | 8,674,020,930,564,259,000 | 47.709091 | 79 | 0.620194 | false |
aio-libs/aiodocker | aiodocker/nodes.py | 1 | 2276 | from typing import Any, List, Mapping
from .utils import clean_filters
class DockerSwarmNodes(object):
def __init__(self, docker):
self.docker = docker
async def list(self, *, filters: Mapping = None) -> List[Mapping]:
"""
Return a list of swarm's nodes.
Args:
fi... | apache-2.0 | -1,283,974,964,253,777,700 | 25.776471 | 86 | 0.534271 | false |
caisq/tensorflow | tensorflow/contrib/autograph/converters/name_scopes.py | 11 | 2473 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -5,894,981,435,756,957,000 | 32.418919 | 80 | 0.665993 | false |
antmont/wmda-stuff | wmdadict/migrations/0017_auto_20170830_1920.py | 1 | 1334 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-30 09:20
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wmdadict', '0016_auto_20170827_2234'),
]
operation... | bsd-3-clause | -7,168,801,606,759,051,000 | 33.205128 | 161 | 0.569715 | false |
dcloud/django-postgres-copy | postgres_copy/__init__.py | 1 | 7167 | import os
import sys
import csv
from django.db import connections, router
from django.contrib.humanize.templatetags.humanize import intcomma
class CopyMapping(object):
"""
Maps comma-delimited data file to a Django model
and loads it into PostgreSQL databases using its
COPY command.
"""
def __... | mit | -3,419,623,046,833,963,500 | 33.128571 | 79 | 0.55044 | false |
iwob/evoplotter | app/phd/cdgp/simplify_solutions.py | 1 | 6325 | import os
import re
import subprocess
from subprocess import PIPE, STDOUT
from evoplotter import utils
def str_to_wlist(s, par_open = '(', par_close = ')'):
"""Converts a string to a list of words, where words are delimited by whitespaces."""
return s.replace(par_open, ' '+par_open+' ').replace(par_close, ' ... | mit | -5,862,803,866,650,978,000 | 30.949495 | 135 | 0.571225 | false |
svirt/virt-test | virttest/libvirt_storage_unittest.py | 10 | 4701 | #!/usr/bin/python
import unittest
import common
from autotest.client.utils import CmdResult
import libvirt_storage
from virsh_unittest import FakeVirshFactory
# The output of virsh.pool_list with only default pool
_DEFAULT_POOL = ("Name State Autostart\n"
"-----------------------... | gpl-2.0 | -5,929,491,341,626,515,000 | 33.566176 | 80 | 0.594342 | false |
bird-house/emu | emu/processes/wps_error.py | 1 | 2148 | from pywps import Process, LiteralInput
from pywps.app.Common import Metadata
from pywps.ext_autodoc import MetadataUrl
from pywps.app.exceptions import ProcessError
import logging
LOGGER = logging.getLogger("PYWPS")
class ShowError(Process):
"""Show a user friendly error message using :class:`ProcessError`.
... | apache-2.0 | -3,081,562,939,199,865,300 | 34.8 | 95 | 0.552142 | false |
tiagormk/gem5-hmp | configs/ruby/MI_example.py | 3 | 6817 | # Copyright (c) 2006-2007 The Regents of The University of Michigan
# Copyright (c) 2009 Advanced Micro Devices, 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 co... | bsd-3-clause | 3,516,129,325,730,363,400 | 38.865497 | 82 | 0.577087 | false |
macarthur-lab/xbrowse | seqr/management/commands/run_postgres_database_backup.py | 1 | 1896 | import os
from django.core.management.base import BaseCommand
import datetime
def run(cmd):
print(cmd)
os.system(cmd)
class Command(BaseCommand):
help = 'Run database backups.'
def add_arguments(self, parser):
parser.add_argument('--bucket', default=os.environ.get('DATABASE_BACKUP_BUCKET', '... | agpl-3.0 | 4,715,835,162,017,627,000 | 45.243902 | 152 | 0.590717 | false |
benfinke/ns_python | build/lib/nssrc/com/citrix/netscaler/nitro/resource/config/system/systemdatasource_args.py | 3 | 1188 | #
# Copyright (c) 2008-2015 Citrix Systems, 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 l... | apache-2.0 | 4,096,566,719,138,105,000 | 27.97561 | 89 | 0.72138 | false |
SUSE-Cloud/glance | glance/api/v1/upload_utils.py | 3 | 9866 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 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.apach... | apache-2.0 | 2,731,823,767,153,420,300 | 39.105691 | 79 | 0.562842 | false |
magopian/olympia | apps/translations/tests/test_util.py | 15 | 1892 | import pytest
from nose.tools import eq_
from translations.models import Translation
from translations.utils import transfield_changed, truncate, truncate_text
pytestmark = pytest.mark.django_db
def test_truncate_text():
eq_(truncate_text('foobar', 5), ('...', 0))
eq_(truncate_text('foobar', 5, True), ('fo... | bsd-3-clause | 3,419,879,003,472,991,000 | 32.785714 | 77 | 0.57611 | false |
bricef/metrics-demo | tools/client.py | 1 | 2198 | #! /usr/bin/env python3
import argparse
import asyncio
import functools
import requests
import random
import signal
import json
import sys
catalogue = json.load(open("./catalogue.json"))
def subscribe(endpoint):
url = "http://"+endpoint+"/mighty-fine/api/subscribe"
return requests.post(url, headers={"Content... | mit | 2,540,658,192,229,521,000 | 31.820896 | 106 | 0.66606 | false |
njcuk9999/neil_functions | neil_stats_functions.py | 1 | 4576 | import numpy as np
from scipy.special import erf, erfinv
# =============================================================================
# Define variables
# =============================================================================
sqrt2 = np.sqrt(2)
sqrt2pi = np.sqrt(2 * np.pi)
# ==============================... | mit | 5,883,696,746,129,724,000 | 31.685714 | 80 | 0.52229 | false |
Hasimir/pyjs | pyjs/runners/mshtml.py | 6 | 14021 | # MSHTML implementation of pyjd runtime. Uses ctypes and comtypes to
# create a Win32 GDI window, embed an IWebBrowser2 OCX and allow access
# to the DOM functions using Python-DCOM.
#
# Copyright (C) 2009, 2010 Luke Kenneth Casson Leighton <lkcl@lkcl.net>
#
# get_xml_doc added 2010-09-08,
# copyright (C) Phil Charles... | apache-2.0 | 385,177,213,496,286,340 | 27.909278 | 106 | 0.58769 | false |
theanalyst/cinder | cinder/volume/drivers/huawei/__init__.py | 1 | 4075 | # Copyright (c) 2013 Huawei Technologies Co., Ltd.
# 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:/... | apache-2.0 | 3,173,511,161,419,288,000 | 38.563107 | 78 | 0.629693 | false |
karanisverma/feature_langpop | librarian/plugins/__init__.py | 2 | 5147 | """
plugins: code related to plugins and plugin loaders
Copyright 2014-2015, Outernet Inc.
Some rights reserved.
This software is free software licensed under the terms of GPLv3. See COPYING
file that comes with the source code, or http://www.gnu.org/licenses/gpl.txt.
"""
import os
import logging
import bottle
from... | gpl-3.0 | 1,108,981,760,919,462,100 | 31.16875 | 79 | 0.601515 | false |
Varriount/Colliberation | libs/twisted/mail/test/test_imap.py | 2 | 160311 | # -*- test-case-name: twisted.mail.test.test_imap -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Test case for twisted.mail.imap4
"""
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
import codecs
import locale
import os
import types
fro... | mit | 6,065,765,561,441,688,000 | 34.711963 | 123 | 0.579205 | false |
kuiwei/edx-platform | common/test/acceptance/pages/studio/component_editor.py | 28 | 3473 | from bok_choy.page_object import PageObject
from selenium.webdriver.common.keys import Keys
from utils import click_css
from selenium.webdriver.support.ui import Select
class ComponentEditorView(PageObject):
"""
A :class:`.PageObject` representing the rendered view of a component editor.
This class assum... | agpl-3.0 | -1,430,835,875,365,099,500 | 34.080808 | 122 | 0.612439 | false |
ilastikdev/ilastik | ilastik/utility/gui/thunkEvent.py | 4 | 3797 | ###############################################################################
# ilastik: interactive learning and segmentation toolkit
#
# Copyright (C) 2011-2014, the ilastik developers
# <team@ilastik.org>
#
# This program is free software; you can redistribute it and/or
# mod... | gpl-3.0 | 9,037,009,405,752,584,000 | 36.98 | 119 | 0.616276 | false |
Sazzadmasud/Keystone_hash_token | keystone/policy/core.py | 5 | 3609 | # Copyright 2012 OpenStack Foundation
#
# 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... | apache-2.0 | 5,853,004,264,861,732,000 | 28.104839 | 77 | 0.672763 | false |
mshunshin/SegNetCMR | pydicom/filereader.py | 1 | 34258 | # filereader.py
"""Read a dicom media file"""
# Copyright (c) 2008-2012 Darcy Mason
# This file is part of pydicom, released under a modified MIT license.
# See the file license.txt included with this distribution, also
# available at https://github.com/darcymason/pydicom
from __future__ import absolute_import
# ... | mit | 7,332,512,142,893,312,000 | 39.734839 | 111 | 0.592621 | false |
rooprob/pyacter | setup.py | 1 | 1814 | #!/usr/bin/env python
#
# Copyright (C) 2012 Robert Fielding
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and this permission notice
# appear in all copies.
#
# THE SOFTWARE IS ... | bsd-2-clause | -7,686,759,814,392,278,000 | 34.568627 | 76 | 0.674752 | false |
yinzishao/NewsScrapy | thepaper/thepaper/spiders/cyzone_spider.py | 2 | 6723 | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from thepaper.util import judge_news_crawl
__author__ = 'yinzishao'
import re
import scrapy
from bs4 import BeautifulSoup
import logging
from thepaper.items import NewsItem
import json
logger = logging.getLogger("CyzoneSpider")
from thepaper.settings import *
class CyzoneSp... | lgpl-3.0 | 1,099,373,758,535,069,600 | 43.197279 | 132 | 0.571956 | false |
dcowden/cadquery-freecad-module | CadQuery/Libs/pygments/lexers/console.py | 29 | 4119 | # -*- coding: utf-8 -*-
"""
pygments.lexers.console
~~~~~~~~~~~~~~~~~~~~~~~
Lexers for misc console output.
:copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.lexer import RegexLexer, include, bygroups
from pygments.token i... | lgpl-3.0 | -5,718,263,066,052,726,000 | 35.131579 | 80 | 0.519058 | false |
trwhitcomb/cylc | cylc/flow/dump.py | 3 | 1573 | #!/usr/bin/env python3
# THIS FILE IS PART OF THE CYLC SUITE ENGINE.
# Copyright (C) 2008-2019 NIWA & British Crown (Met Office) & Contributors.
#
# 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... | gpl-3.0 | 4,718,293,818,173,063,000 | 32.468085 | 75 | 0.617928 | false |
jacksarick/My-Code | Python/college HW/graphics.py | 1 | 27958 | # graphics.py
# (c) 2013 by Rance Necaise
# http://graphics.necaiseweb.org
#
# 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 t... | mit | 5,205,741,342,886,996,000 | 38.544554 | 90 | 0.650762 | false |
xiaojunwu/crosswalk-test-suite | webdriver/webdriver-w3c-tests/element_state/method_test.py | 5 | 3589 | # -*- mode: python; fill-column: 100; comment-column: 100; -*-
import os
import sys
import unittest
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir)))
import base_test
class GetElementAttributeTest(base_test.WebDriverBaseTest):
def test_get_element_attribute(self):
... | bsd-3-clause | 563,958,266,330,901,900 | 48.847222 | 109 | 0.67484 | false |
lamby/pkg-python-django-extensions | django_extensions/db/models.py | 4 | 2496 | """
Django Extensions abstract base model classes.
"""
import datetime
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django_extensions.db.fields import (ModificationDateTimeField,
CreationDateTimeField, AutoSlugField)
class TimeStamp... | mit | -9,018,966,030,541,277,000 | 34.15493 | 91 | 0.679888 | false |
leelouch/dupphoto | computePhotosSum.py | 1 | 2374 | #!/bin/python3
import psycopg2
import pickle
import sys, os
import exiftool
import hashlib
def hash_bytestr_iter(bytesiter, hasher, ashexstr=False):
for block in bytesiter:
hasher.update(block)
return (hasher.hexdigest() if ashexstr else hasher.digest())
def file_as_blockiter(afile, blocksize=65536):
with afil... | mit | -379,182,699,406,343,940 | 21.396226 | 137 | 0.629318 | false |
josecanciani/pyparser | navigator/extensionfinder.py | 1 | 2337 | from pyparser.file.finder import Finder
from pyparser.file.pfile import fromFile
from pyparser.common.dto import Dto
class ExtensionFinder(object):
def __init__(self, config, pclass, options, callback, errorCallback):
self.config = config
self.pclass = pclass
self.callback = callback
... | gpl-3.0 | -1,425,189,420,740,662,800 | 39.293103 | 137 | 0.616602 | false |
jeremiahyan/odoo | addons/stock_account/wizard/stock_picking_return.py | 13 | 1293 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models
class StockReturnPicking(models.TransientModel):
_inherit = "stock.return.picking"
@api.model
def default_get(self, default_fields):
res = super(StockReturnPick... | gpl-3.0 | -4,308,546,637,609,969,000 | 40.709677 | 121 | 0.679814 | false |
Titan-C/sympy | sympy/ntheory/tests/test_factor_.py | 1 | 17138 | from sympy import (Sieve, binomial_coefficients, binomial_coefficients_list,
Mul, S, Pow, sieve, Symbol, summation, Dummy,
factorial as fac)
from sympy.core.numbers import Integer, Rational
from sympy.core.compatibility import long, range
from sympy.ntheory import (isprime, n_order, is_primitive_root,
is_q... | bsd-3-clause | -3,219,941,821,151,648,000 | 35.619658 | 77 | 0.590501 | false |
andrewsmedina/horizon | horizon/horizon/dashboards/nova/instances_and_volumes/instances/forms.py | 3 | 1753 | # 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 | 5,438,645,829,975,304,000 | 34.06 | 78 | 0.687393 | false |
austinhartzheim/logify | webhooks/models.py | 1 | 7005 | from django.db import models
# class Order(models.Model):
# pass
#
#
# class Product(models.Model):
# pass
#
#
# class Cart(models.Model):
# pass
#
#
# class Collection(models.Model):
# pass
class Customer(models.Model):
DIRECT_COPY_FIELDS = [
'accepts_marketing',
# created_at
... | gpl-3.0 | -6,193,299,875,565,771,000 | 28.935897 | 86 | 0.637545 | false |
mozeal/SDL_gui | SDL2_ttf_HarfBuzz/external/harfbuzz-emcc/harfbuzz-1.7.5/test/shaping/run-tests.py | 1 | 2526 | #!/usr/bin/env python
from __future__ import print_function
import sys, os, subprocess
def cmd(command):
p = subprocess.Popen (
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
p.wait ()
print (p.stderr.read (), end="") # file=sys.stderr
return p.stdout.read ().decode ("utf-8").strip (), p.returncode
... | mit | 4,208,604,104,959,909,400 | 24.77551 | 86 | 0.634996 | false |
Kovak/KivyNBT | uix/itemslotwidget.py | 1 | 4309 | from kivy.uix.stacklayout import StackLayout
from kivy.properties import StringProperty, ObjectProperty
from kivy.clock import Clock
from flat_kivy.uix.flatbutton import FlatButton
from flat_kivy.uix.flatlabel import FlatLabel
from plyer import filechooser
from kivy.metrics import dp
from uix.sliderwithvalues import Sl... | mit | 6,838,922,329,300,620,000 | 36.146552 | 78 | 0.580877 | false |
shsingh/ansible | test/units/module_utils/docker/test_common.py | 23 | 10128 | from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import pytest
from ansible.module_utils.docker.common import (
compare_dict_allow_more_present,
compare_generic,
convert_duration_to_nanosecond,
parse_healthcheck
)
DICT_ALLOW_MORE_PRESENT = (
{
'av': ... | gpl-3.0 | -3,298,861,033,640,268,000 | 18.552124 | 101 | 0.295814 | false |
mbalasso/mynumpy | numpy/lib/twodim_base.py | 10 | 23635 | """ Basic functions for manipulating 2d arrays
"""
__all__ = ['diag','diagflat','eye','fliplr','flipud','rot90','tri','triu',
'tril','vander','histogram2d','mask_indices',
'tril_indices','tril_indices_from','triu_indices','triu_indices_from',
]
from numpy.core.numeric import asanyarr... | bsd-3-clause | 4,777,729,560,100,929,000 | 25.55618 | 89 | 0.535519 | false |
dimkal/mne-python | mne/datasets/testing/_testing.py | 21 | 1643 | # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Eric Larson <larson.eric.d@gmail.com>
# License: BSD Style.
import numpy as np
from ...utils import verbose, get_config
from ...fixes import partial
from ..utils import (has_datase... | bsd-3-clause | -2,106,032,237,700,286,500 | 33.957447 | 76 | 0.625076 | false |
ericfourrier/decam | decam/feature_importance.py | 1 | 5164 | # -*- coding: utf-8 -*-
"""
@author: kevin olivier
"""
import pandas as pd
import numpy as np
from sklearn.feature_selection import SelectKBest, f_classif
from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier
class FeatureImportance:
def __init__(self, df, resp):
self.dataframe = df... | mit | 4,147,037,191,902,190,000 | 38.723077 | 189 | 0.717661 | false |
smiller171/ansible-modules-core | network/basics/get_url.py | 3 | 11307 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2012, Jan-Piet Mens <jpmens () 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 L... | gpl-3.0 | 5,040,699,941,659,878,000 | 34.006192 | 142 | 0.649067 | false |
AngryBork/apex-sigma-plugins | utilities/mathematics/wolframalpha.py | 2 | 1512 | import discord
import wolframalpha as wa_wrapper
from sigma.plugins.minigames.quiz.mathgame import ongoing_list as math_chs
async def wolframalpha(cmd, message, args):
if message.channel.id not in math_chs:
if 'app_id' in cmd.cfg:
if not args:
response = discord.Embed(color=0... | gpl-3.0 | 6,556,181,592,370,433,000 | 45.875 | 111 | 0.533333 | false |
Zardinality/TF_Deformable_Net | lib/psroi_pooling_layer/psroi_pooling_op_grad.py | 1 | 1470 | import tensorflow as tf
from tensorflow.python.framework import ops
from . import psroi_pooling_op
import pdb
@tf.RegisterShape("PSROIPool")
def _psroi_pool_shape(op):
"""Shape function for the PSROIPool op.
"""
dims_data = op.inputs[0].get_shape().as_list()
channels = dims_data[3]
dims_rois = op.inputs[1]... | mit | 7,590,227,914,181,682,000 | 31.666667 | 117 | 0.697959 | false |
kokoko3k/xt7-player-mpv | Hash.py | 2 | 1372 | import struct, os, sys
name = sys.argv[1]
def hashFile(name):
try:
longlongformat = 'q' # long long
bytesize = struct.calcsize(longlongformat)
f = open(name, "rb")
filesize = os.path.... | gpl-3.0 | 9,114,848,876,035,716,000 | 34.205128 | 85 | 0.396501 | false |
rhattersley/iris | lib/iris/tests/experimental/regrid/test_regrid_conservative_via_esmpy.py | 5 | 30989 | # (C) British Crown Copyright 2013 - 2016, Met Office
#
# This file is part of Iris.
#
# Iris is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option) any l... | lgpl-3.0 | 512,185,329,413,157,250 | 39.297789 | 79 | 0.546065 | false |
shenlong3030/asv-django-guestbook | django/core/files/uploadhandler.py | 12 | 7412 | """
Base file upload handler classes, and the built-in concrete subclasses
"""
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.core.files.uploadedfile import Te... | bsd-3-clause | 8,237,500,659,218,201,000 | 31.844749 | 135 | 0.604155 | false |
divio/askbot-devel | askbot/migrations/0004_install_full_text_indexes_for_mysql.py | 1 | 63625 | # encoding: utf-8
import os
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import connection
from django.db import models
Q_INDEX_NAME = 'askbot_question_full_text_index'
A_INDEX_NAME = 'askbot_answer_full_text_index'
SUPPORTS_FTS = None
NO_FTS_WARNING = """
!!!!!!!!!!!!!!!!... | gpl-3.0 | 2,468,735,888,916,457,000 | 84.517473 | 189 | 0.523505 | false |
BIT-SYS/gem5-spm-module | src/mem/slicc/ast/CopyHeadStatementAST.py | 29 | 2531 | # Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
# Copyright (c) 2009 The Hewlett-Packard Development Company
# 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 co... | bsd-3-clause | 5,028,305,388,081,194,000 | 47.673077 | 72 | 0.723429 | false |
Microvellum/Fluid-Designer | win64-vc/2.78/python/lib/fractions.py | 11 | 24390 | # Originally contributed by Sjoerd Mullender.
# Significantly modified by Jeffrey Yasskin <jyasskin at gmail.com>.
"""Fraction, infinite-precision, real numbers."""
from decimal import Decimal
import math
import numbers
import operator
import re
import sys
__all__ = ['Fraction', 'gcd']
def gcd(a, b):
"""Calcu... | gpl-3.0 | -3,550,259,970,850,708,500 | 35.78733 | 81 | 0.534235 | false |
frankmaina/HMS-Appointments | web/hms/hms/settings.py | 1 | 2668 | """
Django settings for hms project.
Generated by 'django-admin startproject' using Django 1.8.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths in... | gpl-3.0 | -5,093,328,796,728,007,000 | 24.409524 | 71 | 0.682909 | false |
dufresnedavid/hr | __unported__/hr_policy_accrual/hr_policy_accrual.py | 27 | 21107 | # -*- coding:utf-8 -*-
#
#
# Copyright (C) 2013 Michael Telahun Makonnen <mmakonnen@gmail.com>.
# All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, eit... | agpl-3.0 | -8,733,874,672,727,370,000 | 36.758497 | 79 | 0.496755 | false |
GREO/GNU-Radio | gr-pager/python/flex_demod.py | 18 | 2198 | #
# Copyright 2006,2007 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later versi... | gpl-3.0 | -8,105,376,095,060,945,000 | 33.359375 | 101 | 0.689263 | false |
okor/thumbor | tests/engines/test_pil.py | 3 | 7511 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# thumbor imaging service
# https://github.com/thumbor/thumbor/wiki
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 globo.com thumbor@googlegroups.com
from __future__ import unicode_literals, absolute_import
from io im... | mit | -4,784,102,639,928,563,000 | 34.098131 | 120 | 0.608974 | false |
lixt/lily2-gem5 | src/mem/Bus.py | 4 | 3684 | # Copyright (c) 2012 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation of the functionality ... | bsd-3-clause | 6,919,144,338,935,218,000 | 46.230769 | 77 | 0.745385 | false |
BradleyCai/ucr-schedule-visualizer | scripts/do_target/dependencies.py | 3 | 4336 | # Copyright (C) 2015-2016 Ammon Smith and Bradley Cai
# Available for use under the terms of the MIT License.
__all__ = [
'resolve_full_build_order',
'resolve_build_order',
'load_module_recursively',
'print_full_dependency_chain',
]
from .static import PROGRAM_NAME
from .tree import Tree
from . import... | mit | 4,862,610,556,713,753,000 | 26.27044 | 87 | 0.583718 | false |
wilvk/ansible | lib/ansible/modules/cloud/azure/azure_rm_loadbalancer_facts.py | 44 | 4560 | #!/usr/bin/python
#
# Copyright (c) 2016 Thomas Stringer, <tomstr@microsoft.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... | gpl-3.0 | -1,966,513,335,820,888,600 | 24.333333 | 93 | 0.616447 | 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.