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 |
|---|---|---|---|---|---|---|---|---|---|---|
LockScreen/Backend | venv/lib/python2.7/site-packages/awscli/customizations/codedeploy/utils.py | 2 | 4595 | # Copyright 2015 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | mit | -1,091,031,132,716,025,600 | 33.291045 | 82 | 0.588248 | false |
jdahlin/stoq-wubi | src/winui/defs.py | 5 | 126308 | #
# Copyright (c) 2007, 2008 Agostino Russo
#
# Written by Agostino Russo <agostino.russo@gmail.com>
# Mostly copied from win32con.py
#
# winui 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 ... | gpl-2.0 | 595,423,973,199,668,400 | 23.155288 | 112 | 0.723723 | false |
ric2b/Vivaldi-browser | chromium/build/android/gyp/find_sun_tools_jar.py | 10 | 1568 | #!/usr/bin/env python
#
# 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.
"""This finds the java distribution's tools.jar and copies it somewhere.
"""
import argparse
import os
import re
import shutil
impor... | bsd-3-clause | -1,896,300,772,895,182,600 | 28.037037 | 77 | 0.678571 | false |
saycel/saycel | documentation/resources/setup.py | 1 | 1956 | #!/usr/bin/fab -f
"""
Rhizomatica BTS Toolkit
Automate maintenance on the BTS
"""
import sys
from fabric.api import env, run, task
def ssh():
env.user = 'root'
env.password = ''
@task
def setup():
ssh()
run('sbts2050-util sbts2050-pwr-enable 1 1 0')
run('sed -i s/NO_START=0/NO_START=1/ /etc/de... | agpl-3.0 | 3,793,276,768,294,078,000 | 20.977528 | 94 | 0.630879 | false |
jldodds/s2n | tests/integration/s2n_handshake_test_gnutls.py | 1 | 8844 | #
# Copyright 2016 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0
#
# or in the "license" file accom... | apache-2.0 | 4,389,911,156,309,983,000 | 38.837838 | 179 | 0.633424 | false |
pli1988/onsets | scripts/onsetGround_final.py | 1 | 3738 | from __future__ import division
import glob
import os
import librosa
import medleydb as mdb
import numpy as np
import scipy
import itertools
import jams
from onset.util import *
from onset.onsets import *
def main():
# get list of files on medleyDB path and load them
trackList = os.listdir(mdb.AUDIO_PATH... | gpl-3.0 | 5,322,627,742,839,144,000 | 31.789474 | 113 | 0.540128 | false |
person142/scipy | scipy/io/matlab/tests/test_pathological.py | 21 | 1059 | """ Test reading of files not conforming to matlab specification
We try and read any file that matlab reads, these files included
"""
from os.path import dirname, join as pjoin
from numpy.testing import assert_
from pytest import raises as assert_raises
from scipy.io.matlab.mio import loadmat
TEST_DATA_PATH = pjoin... | bsd-3-clause | 3,660,350,532,388,704,000 | 31.090909 | 73 | 0.693107 | false |
RondaStrauch/landlab | landlab/components/stream_power/examples/perturb_sed_flux_dep.py | 6 | 4719 | # -*- coding: utf-8 -*-
from __future__ import print_function
from six.moves import range
from landlab.components.flow_routing import FlowRouter
from landlab.components.stream_power import SedDepEroder
from landlab import ModelParameterDictionary
from landlab.plot import imshow
from landlab.plot.video_out import Vide... | mit | 1,896,255,785,487,342,600 | 33.955556 | 103 | 0.663064 | false |
Salat-Cx65/python-for-android | python3-alpha/python3-src/Lib/test/test_marshal.py | 48 | 8676 | #!/usr/bin/env python3
from test import support
import marshal
import sys
import unittest
import os
class HelperMixin:
def helper(self, sample, *extra):
new = marshal.loads(marshal.dumps(sample, *extra))
self.assertEqual(sample, new)
try:
with open(support.TESTFN, "wb") as f:
... | apache-2.0 | -534,061,942,868,352,000 | 33.843373 | 79 | 0.547372 | false |
CallaJun/hackprince | indico/matplotlib/tests/test_backend_ps.py | 10 | 2166 | # -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import io
import re
import six
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.testing.decorators import cleanup, knownfailureif
needs_ghostscript = knownfailureif... | lgpl-3.0 | -1,819,465,758,615,359,000 | 22.78022 | 66 | 0.647874 | false |
gnulinooks/sympy | sympy/printing/tests/test_python.py | 7 | 5924 | # -*- coding: utf-8 -*-
from sympy import Symbol, symbols, oo, limit, Rational, Integral, Derivative
from sympy import log, exp, sqrt, pi, Function, sin, Eq, Le, Gt, Ne
from sympy.printing.python import python
x, y = symbols('xy')
th = Symbol('theta')
ph = Symbol('phi')
def test_python_basic():
# Simple numbe... | bsd-3-clause | -2,367,982,053,965,023,700 | 39.575342 | 96 | 0.478393 | false |
gsnbng/erpnext | erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py | 1 | 18013 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe, erpnext
import frappe.defaults
from frappe import msgprint, _
from frappe.utils import cstr, flt, cint
from erpnext.controllers.stock_con... | agpl-3.0 | 1,155,120,755,609,143,600 | 34.183594 | 226 | 0.689058 | false |
matthew-morrison/discord-bot | bot.py | 1 | 5032 | import discord
import asyncio
import os
import json
import sqlite3
import urllib.parse
import psycopg2
import sys
from discord.ext import commands
import sys # used to inspect function calls
# relevent libraries and commands are listed in the README.md
#sys.stdout = open('botlog.txt', 'w') #redirect stdout to file
bot... | mit | 4,504,220,183,950,953,000 | 31.25641 | 144 | 0.633943 | false |
VisualComputingInstitute/TrackR-CNN | datasets/MOT/MOT17.py | 1 | 2964 | import numpy as np
from datasets.MOT.MOT_common import MOTDetectionDataset, MOTDataset
from datasets.Loader import register_dataset
from datasets.util.Util import username
# MOT17 is the same sequences as MOT16 with better ground truth annotations
NAME = "MOT17"
NAME_DETECTION = "MOT17_detection"
DEFAULT_PATH = "/fas... | mit | -7,313,223,581,082,771,000 | 36.531646 | 108 | 0.650135 | false |
gammu/python-gammu | gammu/asyncworker.py | 1 | 5280 | """Async extensions for gammu."""
import asyncio
import gammu
import gammu.worker
class GammuAsyncThread(gammu.worker.GammuThread):
"""Thread for phone communication."""
def __init__(self, queue, config, callback):
"""Initialize thread."""
super().__init__(queue, config, callback)
def _do... | gpl-2.0 | 8,637,560,298,412,838,000 | 35.413793 | 82 | 0.596023 | false |
ya7lelkom/googleads-python-lib | examples/adwords/v201506/campaign_management/set_ad_parameters.py | 3 | 3468 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2015 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... | apache-2.0 | 8,112,226,728,531,167,000 | 31.401869 | 80 | 0.61321 | false |
EvanK/ansible | lib/ansible/cli/inventory.py | 14 | 15431 | # Copyright: (c) 2017, Brian Coca <bcoca@ansible.com>
# Copyright: (c) 2018, Ansible Project
# 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
import optparse
from operator import attrget... | gpl-3.0 | 7,486,966,400,832,373,000 | 37.385572 | 153 | 0.555181 | false |
dennisss/sympy | sympy/solvers/inequalities.py | 1 | 14981 | """Tools for solving inequalities and systems of inequalities. """
from __future__ import print_function, division
from sympy.core import Symbol
from sympy.sets import Interval
from sympy.core.relational import Relational, Eq, Ge, Lt
from sympy.sets.sets import FiniteSet, Union
from sympy.core.singleton import S
fro... | bsd-3-clause | 6,071,974,645,913,519,000 | 27.699234 | 82 | 0.544289 | false |
rwl/PyCIM | CIM15/CDPSM/Connectivity/IEC61970/Wires/Jumper.py | 1 | 1708 | # Copyright (C) 2010-2011 Richard Lincoln
#
# 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... | mit | -2,513,537,015,504,231,000 | 42.794872 | 242 | 0.730679 | false |
DataONEorg/d1_python | lib_scimeta/src/d1_scimeta/schema_prepare.py | 1 | 14551 | #!/usr/bin/env python
# This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2019 DataONE
#
# Licensed under the Apache License, Version 2.0 (t... | apache-2.0 | -5,827,841,012,437,342,000 | 31.407572 | 117 | 0.672462 | false |
CodeNameGhost/shiva | thirdparty/scapy/contrib/tacacs.py | 1 | 14481 | #!/usr/bin/env python
'''
Copyright (C) 2017 Francois Contat <francois.contat@ssi.gouv.fr>
This program is published under a GPLv2 license
Based on tacacs+ v6 draft https://tools.ietf.org/html/draft-ietf-opsawg-tacacs-06
'''
import struct
import hashlib
from scapy.packet import Packet, bind_layers
from scapy.fields... | mit | -7,428,636,829,584,146,000 | 32.520833 | 94 | 0.551965 | false |
saimn/glue | glue/viewers/common/qt/mpl_toolbar.py | 2 | 5119 | from __future__ import absolute_import, division, print_function
from qtpy import QtCore
from qtpy import PYQT5
from glue.icons.qt import get_icon
from glue.utils import nonpartial
from glue.viewers.common.qt.tool import CheckableTool, Tool
from glue.viewers.common.qt.mouse_mode import MouseMode
from glue.viewers.com... | bsd-3-clause | -5,870,537,988,625,900,000 | 29.470238 | 99 | 0.632155 | false |
khardix/udiskie | udiskie/automount.py | 2 | 1590 | """
Automount utility.
"""
__all__ = ['AutoMounter']
class AutoMounter(object):
"""
Automount utility.
Being connected to the udiskie daemon, this component automatically
mounts newly discovered external devices. Instances are constructed with
a Mounter object, like so:
>>> AutoMounter(Mou... | mit | -2,716,067,139,691,777,000 | 26.413793 | 78 | 0.613208 | false |
dianchen96/gym | gym/envs/__init__.py | 1 | 19225 | from gym.envs.registration import registry, register, make, spec
# Algorithmic
# ----------------------------------------
register(
id='Copy-v0',
entry_point='gym.envs.algorithmic:CopyEnv',
max_episode_steps=200,
reward_threshold=25.0,
)
register(
id='RepeatCopy-v0',
entry_point='gym.envs.alg... | mit | 3,449,843,786,167,522,300 | 23.870634 | 151 | 0.654616 | false |
robotcator/gensim | gensim/test/test_ldavowpalwabbit_wrapper.py | 4 | 8833 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010 Radim Rehurek <radimrehurek@seznam.cz>
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
"""
Tests for Vowpal Wabbit LDA wrapper.
Will not be run unless the environment variable 'VOWPAL_WABBIT_PATH' is set
and points to the ... | lgpl-2.1 | -6,241,659,100,305,212,000 | 36.909871 | 110 | 0.540926 | false |
jrbourbeau/cr-composition | processing/legacy/anisotropy/ks_test_multipart/save_teststat.py | 1 | 2766 | #!/usr/bin/env python
import os
import argparse
import numpy as np
import healpy as hp
from scipy.stats import ks_2samp
import pandas as pd
import comptools as comp
import comptools.anisotropy.anisotropy as anisotropy
if __name__ == "__main__":
p = argparse.ArgumentParser(
description='Extracts and sav... | mit | 6,565,205,285,209,626,000 | 40.283582 | 95 | 0.624006 | false |
GaussDing/django | tests/annotations/models.py | 33 | 2630 | # coding: utf-8
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class Author(models.Model):
name = models.CharField(max_length=100)
age = models.IntegerField()
friends = models.ManyToManyField('self', blank=True)
def __str__(self... | bsd-3-clause | 2,172,695,178,926,418,200 | 29.581395 | 76 | 0.690114 | false |
rebeling/spaCy | tests/parser/test_base_nps.py | 4 | 1273 | from __future__ import unicode_literals
import pytest
@pytest.mark.models
def test_nsubj(EN):
sent = EN(u'A base phrase should be recognized.')
base_nps = list(sent.noun_chunks)
assert len(base_nps) == 1
assert base_nps[0].string == 'A base phrase '
@pytest.mark.models
def test_coord(EN):
sent =... | mit | -2,201,390,057,216,463,400 | 30.04878 | 104 | 0.64022 | false |
ZenithDK/mopidy | mopidy/models/fields.py | 5 | 5166 | from __future__ import absolute_import, unicode_literals
from mopidy import compat
class Field(object):
"""
Base field for use in
:class:`~mopidy.models.immutable.ValidatedImmutableObject`. These fields
are responsible for type checking and other data sanitation in our models.
For simplicity fi... | apache-2.0 | 8,499,307,627,970,788,000 | 31.904459 | 79 | 0.60782 | false |
jookies/jasmin-api | jasmin_api/rest_api/views/filters.py | 1 | 5880 | from collections import OrderedDict
from django.conf import settings
from django.http import JsonResponse
from django.utils.datastructures import MultiValueDictKeyError
from rest_framework.viewsets import ViewSet
from rest_framework.decorators import list_route
from rest_api.tools import set_ikeys, split_cols
from r... | apache-2.0 | 8,424,079,596,901,886,000 | 36.692308 | 215 | 0.558673 | false |
odoousers2014/LibrERP | c2c_sequence_fy/__init__.py | 2 | 1255 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2010-2012 Camptocamp (<http://www.camptocamp.at>)
#
# This program is free software:... | agpl-3.0 | 3,776,277,859,974,741,500 | 43.821429 | 79 | 0.63745 | false |
dingliumath/quant-econ | examples/clt3d.py | 7 | 2222 | """
Origin: QE by John Stachurski and Thomas J. Sargent
Filename: clt3d.py
Visual illustration of the central limit theorem. Produces a 3D figure
showing the density of the scaled sample mean \sqrt{n} \bar X_n plotted
against n.
"""
import numpy as np
from scipy.stats import beta, gaussian_kde
from mpl_toolkits.mpl... | bsd-3-clause | 3,552,866,793,791,686,700 | 26.775 | 78 | 0.638614 | false |
alex-dow/pybuilder | src/integrationtest/python/should_write_manifest_file_tests.py | 7 | 2264 | # -*- coding: utf-8 -*-
#
# This file is part of PyBuilder
#
# Copyright 2011-2015 PyBuilder Team
#
# 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 | -3,180,325,561,569,549,000 | 30.887324 | 76 | 0.670936 | false |
Edraak/edraak-platform | lms/lib/utils.py | 32 | 1410 | """
Helper methods for the LMS.
"""
def get_parent_unit(xblock):
"""
Finds xblock's parent unit if it exists.
To find an xblock's parent unit, we traverse up the xblock's
family tree until we find an xblock whose parent is a
sequential xblock, which guarantees that the xblock is a unit.
The `... | agpl-3.0 | -5,053,668,647,061,971,000 | 29.652174 | 82 | 0.655319 | false |
martinschaef/coinstuff | historic.py | 1 | 5454 | import pandas as pd
import pandas_datareader as pdr
import datetime
import matplotlib.pyplot as plt
import pylab
"""
This one looks like a more reasonable tutorial using Yahoo data and pandas.
https://ntguardian.wordpress.com/2016/09/19/introduction-stock-market-data-python-1/
"""
from matplotlib.dates import DateFo... | mit | 8,654,233,575,508,818,000 | 48.581818 | 260 | 0.605977 | false |
RussTedrake/director | src/python/ddapp/camerabookmarks.py | 6 | 3149 | from ddapp import applogic
from ddapp import cameracontrol
from PythonQt import QtCore, QtGui
class CameraBookmarks(object):
def __init__(self, view):
self.bookmarks = {}
self.view = view
self.flyer = cameracontrol.Flyer(view)
self.flyer.flyTime = 1.0
def storeCameraBookmark... | bsd-3-clause | -7,772,769,358,616,111,000 | 32.5 | 72 | 0.646554 | false |
geodynamics/gale | Underworld/config/SConfig/Project.py | 6 | 2508 | import os
import SCons.Script
import SConfig
class Project(SConfig.Node):
def __init__(self, scons_env, scons_opts, required=False):
SConfig.Node.__init__(self, scons_env, scons_opts, required)
self.checks += [self.check_libs, self.print_results]
def setup_options(self):
self.opts.AddO... | gpl-2.0 | -2,416,433,304,155,444,700 | 38.809524 | 94 | 0.580941 | false |
cmos3511/cmos_linux | python/pj/misc/stp_gen/stp_gen.py | 1 | 2974 | #! /usr/bin/env python3
### used to generate stp from text files provided
import argparse
import os
import re
import collections
import datetime as dt
import jinja2
class REOpter(object):
def __init__(self, re_str):
self.re_str = re_str
def match(self, re_rs):
self.re_result = re.match(re_rs, ... | gpl-3.0 | -5,299,927,862,998,110,000 | 36.175 | 107 | 0.573974 | false |
pancentric/django-cms | cms/management/commands/subcommands/delete_orphaned_plugins.py | 9 | 2268 | from django.core.management.base import NoArgsCommand
from cms.management.commands.subcommands.list import plugin_report
from cms.utils.compat.input import raw_input
class DeleteOrphanedPluginsCommand(NoArgsCommand):
help = "Delete plugins from the CMSPlugins table that should have instances but don't, and ones f... | bsd-3-clause | 7,033,483,344,696,063,000 | 44.36 | 182 | 0.66358 | false |
bgris/ODL_bgris | lib/python3.5/site-packages/spyder/app/mainwindow.py | 1 | 128756 | # -*- coding: utf-8 -*-
#
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
"""
Spyder, the Scientific PYthon Development EnviRonment
=====================================================
Developped and maintained by the Spyder Pro... | gpl-3.0 | -2,276,537,805,049,350,000 | 40.605559 | 84 | 0.534298 | false |
haowu4682/gem5 | src/sim/Process.py | 15 | 2870 | # Copyright (c) 2005-2008 The Regents of The University of Michigan
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met: redistributions of source code must retain the above copyright
# notice, this ... | bsd-3-clause | -4,299,719,036,758,281,000 | 46.833333 | 79 | 0.738328 | false |
ashleysommer/sanic-dispatcher | setup.py | 1 | 1832 | # -*- coding: utf-8 -*-
"""
setup
~~~~
A Dispatcher extension for Sanic which also acts as a Sanic-to-WSGI adapter
:copyright: (c) 2017-2021 by Ashley Sommer (based on DispatcherMiddleware in Workzeug).
:license: MIT, see LICENSE for more details.
"""
from setuptools import setup
from os.path impo... | mit | 5,688,819,853,862,774,000 | 33.566038 | 104 | 0.641376 | false |
ardi69/pyload-0.4.10 | pyload/plugin/hoster/UpstoreNet.py | 1 | 2409 | # -*- coding: utf-8 -*-
import re
from pyload.plugin.captcha.ReCaptcha import ReCaptcha
from pyload.plugin.internal.SimpleHoster import SimpleHoster
class UpstoreNet(SimpleHoster):
__name = "UpstoreNet"
__type = "hoster"
__version = "0.05"
__pattern = r'https?://(?:www\.)?upstore\.net/'
_... | gpl-3.0 | -3,414,625,318,480,715,000 | 33.414286 | 156 | 0.558323 | false |
zigama/rapidsms-rwanda | apps/poll/models.py | 8 | 5052 | #!/usr/bin/env python
# vim: noet
from django.db import models
from django.contrib.auth import models as auth_models
from django.core.exceptions import ObjectDoesNotExist
from datetime import date
class Respondant(models.Model):
connection = models.CharField(max_length=100, blank=True, null=True)
is_active = model... | lgpl-3.0 | -7,681,831,240,798,307,000 | 28.893491 | 93 | 0.700713 | false |
Ameriks/velo.lv | velo/payment/tasks.py | 1 | 2664 | import celery
import datetime
import os
from celery.schedules import crontab
from celery.task import periodic_task
from django.conf import settings
from django.utils import timezone
from velo.payment.bank import close_business_day
from velo.payment.models import Transaction, Payment
from velo.core.utils import log_m... | gpl-3.0 | -749,400,339,838,037,600 | 31.876543 | 124 | 0.666917 | false |
prathamtandon/g4gproblems | Data Structures/longest_balanced_parantheses.py | 1 | 1265 | import unittest
"""
Given a string consisting of opening and closing parenthesis, find length of longest valid
parenthesis substring.
Input: ((()
Output: 2
Input: )()())
Output: 4
"""
"""
Approach:
1. Maintain a stack of indexes.
2. Scan the string from left to right.
3. If current character is '(' push it on top of s... | mit | -6,308,702,715,183,830,000 | 26.5 | 117 | 0.601581 | false |
xuegang/gpdb | src/test/tinc/tincrepo/mpp/gpdb/tests/dispatch/interconnect/udp/test_gp_interconnect_ard_regression.py | 6 | 6832 | """
Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved.
This program and the accompanying materials are made available under
the terms of the 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 | -1,435,075,005,109,995,800 | 39.426036 | 192 | 0.623683 | false |
nonZero/OpenCommunity | src/issues/south_migrations/0002_auto__add_field_issuecomment_uid__add_field_issue_uid__add_field_propo.py | 3 | 15836 | # -*- coding: utf-8 -*-
from django.db import models
from ocd.migration_utils import create_uids
from south.db import db
from south.v2 import SchemaMigration
import datetime
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'IssueComment.uid'
db.add_column(u'issues_issueco... | bsd-3-clause | 2,559,060,409,468,201,500 | 79.80102 | 235 | 0.561569 | false |
martin-ejdestig/sork | sork/checks/license_header.py | 1 | 14055 | # This file is part of Sork.
#
# Copyright (C) 2016-2019 Martin Ejdestig <marejde@gmail.com>
#
# Sork 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 ... | gpl-3.0 | -6,359,019,093,589,417,000 | 39.504323 | 95 | 0.563501 | false |
carwyn/veillance | bot.py | 1 | 1205 | import time
import functools
import httplib
import urllib2
import argparse
# GREEN = "10.42.0.104"
# PURPLE = "10.42.0.188"
class BoundHTTPHandler(urllib2.HTTPHandler):
def __init__(self, source_address=None, debuglevel=0):
urllib2.HTTPHandler.__init__(self, debuglevel)
self.http_class = functool... | bsd-3-clause | 1,782,617,800,748,849,700 | 26.386364 | 67 | 0.642324 | false |
CERNDocumentServer/cds | tests/unit/test_deposit_search.py | 3 | 2580 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2017 CERN.
#
# Invenio is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later... | gpl-2.0 | -1,761,711,066,843,644,700 | 38.692308 | 76 | 0.676357 | false |
Intel-EPID-SDK/epid-sdk | parts-site/configurations/release/clang_posix-any.py | 1 | 2481 | ############################################################################
# Copyright 2018 Intel Corporation
#
# 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 | 8,704,135,361,121,457,000 | 42.526316 | 76 | 0.425635 | false |
jmankoff/data | Assignments/jmankoff-explore/main.py | 1 | 3253 | """`main` is the top level module for your Flask application."""
# Data Exploration Byte Version 1
#
# Copyright 1/2016 Jennifer Mankoff
#
# Licensed under GPL v3 (http://www.gnu.org/licenses/gpl.html)
#
# Imports
import os
import jinja2
import webapp2
import logging
import json
import urllib
# this is used for con... | gpl-3.0 | 5,943,271,027,229,840,000 | 28.572727 | 106 | 0.687058 | false |
kosgroup/odoo | addons/google_account/models/google_service.py | 12 | 9469 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from datetime import datetime
import json
import logging
import urllib2
import werkzeug.urls
from odoo import api, fields, models, registry, _
from odoo.http import request
_logger = logging.getLogger(__name__)
TIMEO... | gpl-3.0 | 3,410,827,654,959,012,400 | 46.582915 | 156 | 0.605977 | false |
loli/sklearn-ensembletrees | sklearn/cluster/_feature_agglomeration.py | 1 | 2656 | """
Feature agglomeration. Base classes and functions for performing feature
agglomeration.
"""
# Author: V. Michel, A. Gramfort
# License: BSD 3 clause
import numpy as np
from ..base import TransformerMixin
from ..utils import array2d
###############################################################################
... | bsd-3-clause | 1,009,311,063,967,769,600 | 33.493506 | 92 | 0.583961 | false |
atalax/wytch | wytch/event.py | 1 | 11509 | # The MIT License (MIT)
#
# Copyright (c) 2016 Josef Gajdusek
#
# 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, ... | mit | -3,843,865,033,580,623,400 | 31.603399 | 102 | 0.517856 | false |
VenturaDelMonte/staticwebanalyzer | SDK/mechanize-0.2.5/test/test_cookies.py | 22 | 76923 | """Tests for _clientcookie."""
import StringIO
import errno
import inspect
import mimetools
import os
import re
import sys
import tempfile
import time
import unittest
import mechanize
from mechanize._util import hide_experimental_warnings, \
reset_experimental_warnings
from mechanize import Request
class FakeRe... | mit | 3,186,641,744,499,388,000 | 39.656977 | 145 | 0.554542 | false |
newemailjdm/scipy | scipy/optimize/setup.py | 45 | 3158 | #!/usr/bin/env python
from __future__ import division, print_function, absolute_import
from os.path import join
from scipy._build_utils import numpy_nodepr_api
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
from numpy.distutils.system_info import get_... | bsd-3-clause | -5,902,669,916,625,253,000 | 38.974684 | 81 | 0.4962 | false |
malaterre/ITK | Modules/Filtering/Smoothing/wrapping/test/PythonAutoPipelineTest.py | 2 | 1371 | #==========================================================================
#
# Copyright NumFOCUS
#
# 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 | 6,751,332,355,130,213,000 | 34.153846 | 77 | 0.665208 | false |
lotooo/AlJazeera.bundle | Contents/Code/__init__.py | 1 | 4092 | VIDEO_PREFIX = "/video/aljazeera"
NAME = L('Title')
# make sure to replace artwork with what you want
# these filenames reference the example files in
# the Contents/Resources/ folder in the bundle
ART = 'art-default.jpg'
ICON = 'icon-default.png'
##########################################################... | gpl-3.0 | -106,976,280,067,141,390 | 33.275862 | 288 | 0.5826 | false |
randomtask1155/gpdb | gpMgmt/bin/gppylib/system/ComputeCatalogUpdate.py | 26 | 19491 | #!/usr/bin/env python
# Line too long - pylint: disable=C0301
# Invalid name - pylint: disable=C0103
"""
ComputeCatalogUpdate.py
Copyright (c) EMC/Greenplum Inc 2011. All Rights Reserved.
Used by updateSystemConfig() to compare the db state and
goal state of a gpArray containing the Greenplum segment
co... | apache-2.0 | -2,496,157,834,579,271,700 | 45.407143 | 135 | 0.595146 | false |
quarckster/cfme_tests | scripts/template_upload_rhevm_qcow2.py | 4 | 25584 | #!/usr/bin/env python2
"""This script takes various parameters specified in
cfme_data['template_upload']['template_upload_rhevm'] and/or by command-line arguments.
Parameters specified by command-line have higher priority, and override data in cfme_data.
This script is designed to run either as a standalone rhevm tem... | gpl-2.0 | 2,697,047,169,316,477,400 | 39.037559 | 100 | 0.616635 | false |
sebastiandres/mat281 | clases/Unidad3-ModelamientoyError/Clase01-TrainingTestError/mat281_code/data_analysis.py | 2 | 1944 | import numpy as np
from matplotlib import pyplot as plt
# Define error function
def error(vector_e):
return abs(vector_e).mean()
# Load the data
N = 200
data = np.loadtxt("dataN%d.txt"%N)
sorted = True
s = "sorted" if sorted else ""
nmax = 71
# Some properties
color_t = "b"
color_p = "g"
# Sort or keep it unsorte... | cc0-1.0 | 6,435,367,202,859,878,000 | 28.454545 | 86 | 0.658951 | false |
yugangw-msft/azure-cli | src/azure-cli/azure/cli/command_modules/ams/operations/account.py | 2 | 4506 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | mit | 8,153,248,803,653,017,000 | 42.747573 | 110 | 0.633378 | false |
FibercorpLabs/FibercorpDevops | vmware/vcenter/rebootVM.py | 1 | 3239 | #rebootVM.py
from VMWConfigFile import *
from pyVim import connect
from pyVim.connect import SmartConnect, Disconnect
from pyVmomi import vim, vmodl
import atexit
import os
import sys
import ssl
import requests
import argparse
import time
import getpass
# Disabling urllib3 ssl warnings
requests.packages.urllib3.dis... | gpl-3.0 | -5,401,962,250,236,540,000 | 24.304688 | 90 | 0.582587 | false |
jiegec/gnuradio | grc/gui/MainWindow.py | 14 | 13437 | """
Copyright 2008, 2009, 2011 Free Software Foundation, Inc.
This file is part of GNU Radio
GNU Radio Companion is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option... | gpl-3.0 | 5,718,824,262,487,318,000 | 34.736702 | 104 | 0.573342 | false |
ngonzalvez/sentry | tests/sentry/api/endpoints/test_group_notes.py | 24 | 1679 | from django.core.urlresolvers import reverse
from sentry.models import Activity
from sentry.testutils import APITestCase
class GroupNoteTest(APITestCase):
def test_simple(self):
group = self.group
activity = Activity.objects.create(
group=group,
project=group.project,
... | bsd-3-clause | -7,394,578,444,712,941,000 | 29.527273 | 63 | 0.593806 | false |
mikewiebe-ansible/ansible | lib/ansible/modules/cloud/docker/docker_swarm_info.py | 14 | 13683 | #!/usr/bin/python
#
# (c) 2019 Piotr Wojciechowski <piotr@it-playground.pl>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | gpl-3.0 | 1,616,440,225,463,591,000 | 34.265464 | 159 | 0.646788 | false |
fibbo/DIRAC | Workflow/Modules/ModuleBase.py | 1 | 21520 | """ ModuleBase - contains the base class for workflow modules. Defines several common utility methods.
The modules defined within this package are developed in a way to be executed by a DIRAC.Core.Worfklow.Worfklow.
In particular, a DIRAC.Core.Workflow.Worfklow object will only call the "execute" function, tha... | gpl-3.0 | -2,820,127,240,254,847,500 | 36.29636 | 120 | 0.595864 | false |
PaloAltoNetworks/terraform-templates | pan_guard_duty/lambda_code/pan/wfapi.py | 2 | 28343 | #
# Copyright (c) 2013-2017 Kevin Steves <kevin.steves@pobox.com>
#
# Permission to use, copy, modify, and distribute this software 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 PROVIDED "AS IS" AN... | apache-2.0 | -3,523,264,815,343,682,000 | 30.810325 | 79 | 0.579896 | false |
fusionbox/django_polymorphic | example/pexp/management/commands/pcmd.py | 4 | 1110 | # -*- coding: utf-8 -*-
"""
This module is a scratchpad for general development, testing & debugging.
"""
from django.core.management.base import NoArgsCommand
from django.db.models import connection
from pprint import pprint
from pexp.models import *
def reset_queries():
connection.queries=[]
def show_queries(... | bsd-3-clause | 3,803,204,990,946,562,000 | 30.714286 | 109 | 0.676577 | false |
halfwit/qutebrowser | tests/end2end/features/test_editor_bdd.py | 8 | 2227 | # vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:
# Copyright 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 Softwa... | gpl-3.0 | 5,305,178,909,674,312,000 | 36.745763 | 78 | 0.663673 | false |
crunchr/silk | silk/views/profiling.py | 4 | 5330 | from django.template.context_processors import csrf
from django.db.models import Count, Sum
from django.shortcuts import render
from django.utils.decorators import method_decorator
from django.views.generic import View
from silk.auth import login_possibly_required, permissions_possibly_required
from silk.models import... | mit | -987,536,538,163,589,600 | 39.687023 | 113 | 0.581051 | false |
csmengwan/autorest | AutoRest/Generators/Python/Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/operations/datetimerfc1123.py | 5 | 14823 | # 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.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | -2,344,175,173,345,570,000 | 33.795775 | 84 | 0.626729 | false |
fsantini/rasPyCNCController | gcode/gcodeconv.py | 1 | 2866 | # rasPyCNCController
# Copyright 2016 Francesco Santini <francesco.santini@gmail.com>
#
# This file is part of rasPyCNCController.
#
# rasPyCNCController 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 ... | gpl-3.0 | 4,997,108,930,499,210,000 | 31.942529 | 98 | 0.544313 | false |
Heaven91/Robotics-AI | Chapter4-Search/path_search.py | 1 | 2671 | # ----------
# User Instructions:
#
# Define a function, search() that returns a list
# in the form of [optimal path length, row, col]. For
# the grid shown below, your function should output
# [11, 4, 5].
#
# If there is no valid path from the start point
# to the goal, your function should return the string... | agpl-3.0 | 8,629,244,642,511,873,000 | 32.688312 | 130 | 0.466866 | false |
webu/django-categories | categories/admin.py | 10 | 3089 | from django.contrib import admin
from django import forms
from django.utils.translation import ugettext_lazy as _
from .genericcollection import GenericCollectionTabularInline
from .settings import RELATION_MODELS, JAVASCRIPT_URL, REGISTER_ADMIN
from .models import Category
from .base import CategoryBaseAdminForm, Cat... | apache-2.0 | -3,075,587,696,611,963,400 | 34.505747 | 94 | 0.608287 | false |
capstone-rust/capstone-rs | capstone-sys/capstone/suite/synctools/strinforeduce/instrinfo2.py | 2 | 1105 | #!/usr/bin/python
# convert LLVM GenInstrInfo.inc for Capstone disassembler.
# by Nguyen Anh Quynh, 2019
import sys
if len(sys.argv) == 1:
print("Syntax: %s <GenInstrInfo.inc>" %sys.argv[0])
sys.exit(1)
count = 0
last_line = None
f = open(sys.argv[1])
lines = f.readlines()
f.close()
# 1st enum is register... | mit | 6,670,256,145,928,131,000 | 19.090909 | 58 | 0.59095 | false |
yarbelk/django-admin2 | djadmin2/tests/test_auth_admin.py | 2 | 2224 | from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.test.client import RequestFactory
import floppyforms
import djadmin2
from ..admin2 import UserAdmin2
class UserAdminTest(TestCase):
def setUp(self):
self.factory = Reques... | bsd-3-clause | 366,867,051,360,102,600 | 35.459016 | 70 | 0.61196 | false |
alexdzul/Pyclue | pyclue/apps/main/ui/ui_sizes.py | 1 | 1073 | # -*- coding: utf-8 -*-
__author__ = 'alex'
from PyQt5 import QtCore
from pyclue.appSettings import OS_RUNING
def get_launch_size(self):
if OS_RUNING == "linux2":
self.resize(300, 316)
self.setMinimumSize(QtCore.QSize(300, 316))
self.setMaximumSize(QtCore.QSize(300, 316))
if OS_RUNING ... | gpl-2.0 | -6,266,093,616,980,740,000 | 31.545455 | 51 | 0.624418 | false |
Havate/havate-openstack | proto-build/gui/horizon/Horizon_GUI/openstack_dashboard/dashboards/project/volumes/urls.py | 11 | 1364 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 Nebula, 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
#
# ... | apache-2.0 | 722,085,455,465,868,700 | 37.971429 | 78 | 0.681085 | false |
ar4k/RAM | OctoPrint/src/octoprint/plugins/cura/__init__.py | 2 | 14719 | # coding=utf-8
from __future__ import absolute_import
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
import logging
import loggin... | agpl-3.0 | 8,456,527,211,300,981,000 | 34.62954 | 172 | 0.671696 | false |
home-assistant/home-assistant | homeassistant/components/qwikswitch/sensor.py | 5 | 2121 | """Support for Qwikswitch Sensors."""
import logging
from pyqwikswitch.qwikswitch import SENSORS
from homeassistant.components.sensor import SensorEntity
from homeassistant.core import callback
from . import DOMAIN as QWIKSWITCH, QSEntity
_LOGGER = logging.getLogger(__name__)
async def async_setup_platform(hass, ... | apache-2.0 | 5,524,854,079,138,561,000 | 28.458333 | 107 | 0.61669 | false |
gemmellr/qpid-proton-j | tests/python/proton_tests/sasl.py | 2 | 7495 | #
# 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 | 555,442,843,219,407,360 | 31.306034 | 123 | 0.656037 | false |
nicozhang/startUp | d3status/mail.py | 4 | 4253 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2012 feilong.me. All rights reserved.
#
# @author: Felinx Lee <felinx.lee@gmail.com>
# Created on Jun 30, 2012
#
import re
import logging
import smtplib
import time
from datetime import datetime, timedelta
from email import encoders
from email.mime.multipart import MIMEMultip... | apache-2.0 | -2,992,475,760,051,103,000 | 27.931973 | 101 | 0.567364 | false |
rajul/tvb-framework | tvb/adapters/uploaders/abcuploader.py | 1 | 5652 | # -*- coding: utf-8 -*-
#
#
# TheVirtualBrain-Framework Package. This package holds all Data Management, and
# Web-UI helpful to run brain-simulations. To use it, you also need do download
# TheVirtualBrain-Scientific Package (for simulators). See content of the
# documentation-folder for more details. See also http:/... | gpl-2.0 | 1,824,912,816,090,967,300 | 35.701299 | 117 | 0.643135 | false |
wasit7/tutorials | randomforest/dataset.py | 1 | 7748 | """
GNU GENERAL PUBLIC LICENSE Version 2
Created on Tue Oct 14 18:52:01 2014
@author: Wasit
"""
import numpy as np
import os
try:
import json
except ImportError:
import simplejson as json
class dataset:
def __init__(self,index=0):
'''
To create and initialise
self.dimthet... | mit | -3,365,483,726,966,565,400 | 33.287611 | 133 | 0.527749 | false |
KaranToor/MA450 | google-cloud-sdk/lib/surface/compute/url_maps/remove_host_rule.py | 6 | 4341 | # Copyright 2014 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 by applicable law or ag... | apache-2.0 | -7,240,817,619,046,039,000 | 32.651163 | 79 | 0.655379 | false |
tammoippen/nest-simulator | pynest/nest/tests/test_events.py | 11 | 2374 | # -*- coding: utf-8 -*-
#
# test_events.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or... | gpl-2.0 | 4,608,285,133,973,120,500 | 23.729167 | 76 | 0.613732 | false |
davecranwell/wagtail | wagtail/wagtailcore/migrations/0014_add_verbose_name.py | 2 | 4662 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0013_update_golive_expire_help_text'),
]
operations = [
migrations.AlterField(
model_name='groupp... | bsd-3-clause | -8,437,711,458,458,802,000 | 36.596774 | 145 | 0.534106 | false |
nevir/plexability | extern/depot_tools/presubmit_canned_checks.py | 1 | 38666 | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Generic presubmit checks that can be reused by other presubmit checks."""
import os as _os
_HERE = _os.path.dirname(_os.path.abspath(__file__))
###... | gpl-2.0 | 659,827,465,840,699,800 | 36.759766 | 80 | 0.66583 | false |
mscuthbert/abjad | abjad/tools/labeltools/test/test_labeltools_color_contents_of_container.py | 2 | 1445 | # -*- encoding: utf-8 -*-
from abjad import *
def test_labeltools_color_contents_of_container_01():
staff = Staff()
staff.append(Measure((2, 8), "c'8 d'8"))
staff.append(Measure((2, 8), "e'8 f'8"))
staff.append(Measure((2, 8), "g'8 a'8"))
labeltools.color_contents_of_container(staff[1], 'blue')
... | gpl-3.0 | -2,890,309,610,952,873,500 | 27.92 | 60 | 0.439446 | false |
Esser420/EvilTwinFramework | core/AuxiliaryModules/dnsmasqhandler.py | 1 | 3694 | """
This class is responsible for configuring all pages to spoof,
adding them to the hosts file and setting them up in apache
with help of the httpserver class as well as configuring dnsmasq
"""
import os
from utils.utils import FileHandler
from textwrap import dedent
class DNSMasqHandler(object):
def __init__(s... | gpl-2.0 | 4,458,079,139,631,978,000 | 45.175 | 146 | 0.490796 | false |
IlyaSukhanov/moto | moto/swf/responses.py | 7 | 20587 | import json
import six
from moto.core.responses import BaseResponse
from .exceptions import SWFSerializationException, SWFValidationException
from .models import swf_backends
class SWFResponse(BaseResponse):
@property
def swf_backend(self):
return swf_backends[self.region]
# SWF parameters are... | apache-2.0 | 4,522,801,220,733,088,000 | 40.843496 | 106 | 0.6235 | false |
sebgoa/client-python | kubernetes/client/models/v1_label_selector.py | 2 | 4636 | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.7.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | apache-2.0 | 8,237,589,894,733,720,000 | 31.41958 | 269 | 0.586497 | false |
sprax/python | kwargs.py | 1 | 3390 |
#!/usr/bin/env python3
#
# # -*- coding: utf-8 -*-
'''Example classes with args and kwargs in __init__'''
import sys
from pdb import set_trace
class CopyCtor:
''' init can be used as a simple copy-constructor.
When args[0] is an instance, it is copied and kwargs are ignored.
Otherwise, the kwarg... | lgpl-3.0 | -2,787,854,587,606,249,500 | 34.684211 | 97 | 0.533038 | false |
aaron-fz/neutron_full_sync | neutron/db/migration/alembic_migrations/versions/3d6fae8b70b0_nvp_lbaas_plugin.py | 8 | 2863 | # Copyright 2013 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 ... | apache-2.0 | 1,234,670,035,684,456,700 | 34.7875 | 78 | 0.660845 | false |
lowitty/server | libsLinux/twisted/web/_flatten.py | 5 | 16371 | # -*- test-case-name: twisted.web.test.test_flatten -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Context-free flattener/serializer for rendering Python objects, possibly
complex or arbitrarily nested, as strings.
"""
from __future__ import division, absolute_import
from io import B... | mit | 1,089,659,628,398,338,000 | 37.52 | 79 | 0.652556 | false |
syhpoon/xyzcmd | libxyz/core/plugins/virtual.py | 1 | 1038 | #-*- coding: utf8 -*
#
# Max E. Kuznecov ~syhpoon <syhpoon@syhpoon.name> 2008
#
# This file is part of XYZCommander.
# XYZCommander is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
# the Free Software Foundation, either version 3 of the Licens... | gpl-3.0 | -8,681,466,543,642,965,000 | 33.6 | 70 | 0.72736 | false |
lpramuk/robottelo | robottelo/rhsso_utils.py | 2 | 4102 | """Utility module to handle the rhsso-satellite configure UI/CLI/API testing"""
import json
import random
from fauxfactory import gen_string
from robottelo import ssh
from robottelo.cli.base import CLIReturnCodeError
from robottelo.config import settings
from robottelo.constants import KEY_CLOAK_CLI
from robottelo.co... | gpl-3.0 | -5,934,376,025,130,462,000 | 33.183333 | 97 | 0.651146 | 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.