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 |
|---|---|---|---|---|---|---|---|---|---|---|
avdata99/medusapp | tests/testAll.py | 1 | 1122 | # test all
import unittest
from MedusAppWebsite import *
from MedusAppBackend import *
from MedusAppApi import *
print "****************************************"
print "****************************************"
print "Testing website"
print "****************************************"
print "***************************... | gpl-2.0 | -1,898,044,703,609,558,300 | 33.030303 | 68 | 0.44385 | false |
RasaHQ/rasa_core | setup.py | 1 | 3680 | import io
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
# Avoids IDE errors, but actual version is read from version.py
__version__ = None
with open("rasa/version.py") as f:
exec(f.read())
# Get the long description from the README file
with open(os.path... | apache-2.0 | 6,256,798,374,368,860,000 | 27.091603 | 74 | 0.59538 | false |
alem0lars/playbook-gentoo-install | commons/base_object.py | 3 | 3058 | # ------------------------------------------------------------------------------
# BaseObject -------------------------------------------------------------------
class BaseObject(object):
import syslog, os
'''Base class for all classes that use AnsibleModule.
Dependencies:
- `chrooted` function.
'... | apache-2.0 | 1,502,546,603,489,218,300 | 37.708861 | 80 | 0.508502 | false |
jorik041/CrackMapExec | cme/modules/lsassy.py | 1 | 10430 | # Author:
# Romain Bentz (pixis - @hackanddo)
# Website:
# https://beta.hackndo.com [FR]
# https://en.hackndo.com [EN]
import json
import sys
from lsassy import Lsassy, Logger, Dumper, Parser, Writer
class CMEModule:
name = 'lsassy'
description = "Dump lsass and parse the result remotely with lsassy"
... | bsd-2-clause | -9,218,790,468,015,445,000 | 40.062992 | 118 | 0.584564 | false |
scwuaptx/CTF | 2016-writeup/hitb-gsec/tplanner.py | 1 | 1932 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pwnpwnpwn import *
from pwn import *
#host = "10.211.55.28"
#port = 8888
host = "54.169.198.139"
port = 2305
r = remote(host,port)
def develop(i,j,choice,content,app= None):
r.recvuntil(">")
cmd = "develop " + str(i) + " " + str(j) + " " + choice
if app... | gpl-2.0 | -9,016,522,979,321,672,000 | 23.455696 | 82 | 0.6294 | false |
E3V3A/libqmi | utils/qmidb/utils.py | 4 | 3743 | #!/usr/bin/env python
# -*- Mode: python; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
#
# 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, version 2.
#
# This program is distributed ... | gpl-2.0 | 7,376,606,737,069,571,000 | 31.267241 | 119 | 0.549826 | false |
philotas/enigma2 | lib/python/Screens/PowerTimerEntry.py | 3 | 19838 | from Screens.Screen import Screen
from Screens.MessageBox import MessageBox
from Components.config import ConfigSelection, ConfigSelectionNumber, ConfigSubList, ConfigDateTime, ConfigClock, ConfigYesNo, ConfigInteger, getConfigListEntry, ConfigIP
from Components.ActionMap import NumberActionMap
from Components.ConfigLi... | gpl-2.0 | 5,298,587,715,250,900,000 | 40.502092 | 385 | 0.702944 | false |
GenosResearchGroup/ContourMetrics | lib/contour.py | 1 | 26956 | import cmath
import itertools
import numpy
import pandas
import scipy
from lib import similarity
# Auxiliar functions
from lib.utils import get_first
def cpoint_value_comparison(a, b):
if a < b:
return 2
if a > b:
return 0
return 1
def _is_maximum(cpoints_positions, positions):
val... | mit | -4,619,504,159,633,338,000 | 33.599487 | 118 | 0.557712 | false |
asgard-lab/neutron | neutron/tests/unit/agent/linux/test_utils.py | 13 | 16940 | # Copyright 2012, VMware, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | apache-2.0 | -2,137,694,179,085,091,000 | 39.333333 | 79 | 0.598583 | false |
on-three/weeabot | weeabot/whitelist.py | 1 | 2847 | # vim: set ts=2 expandtab:
# -*- coding: utf-8 -*-
"""
Module: whitelist.py
Desc: simple switchable whitelist
Author: on_three
Email: on.three.email@gmail.com
DATE: Sat, Oct 4th 2014
Two tiered whitelist.
Mod level restricts some commands to mods only
whitelist level restricts some commands to whitelisted use... | mit | 2,323,255,977,864,797,000 | 24.19469 | 118 | 0.668072 | false |
savioabuga/phoenix-template | phoenix/apps/utils/upload/response.py | 3 | 1173 | # encoding: utf-8
import json
from django.http import HttpResponse
MIMEANY = '*/*'
MIMEJSON = 'application/json'
MIMETEXT = 'text/plain'
def response_mimetype(request):
"""response_mimetype -- Return a proper response mimetype, accordingly to
what the client accepts, as available in the `HTTP_ACCEPT` header.... | bsd-3-clause | 6,473,912,202,829,602,000 | 29.868421 | 83 | 0.670077 | false |
socialwareinc/Diamond | src/collectors/hbase/hbase.py | 26 | 3375 | # coding=utf-8
"""
Diamond collector for HBase metrics, see:
"""
from diamond.metric import Metric
import diamond.collector
import glob
import re
import os
class HBaseCollector(diamond.collector.Collector):
re_log = re.compile(r'^(?P<timestamp>\d+) (?P<name>\S+): (?P<metrics>.*)$')
def get_default_config_... | mit | -2,736,977,969,771,478,500 | 30.839623 | 79 | 0.426074 | false |
Versent/ansible | lib/ansible/plugins/callback/__init__.py | 22 | 9893 | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | gpl-3.0 | 5,478,529,513,768,019,000 | 33.957597 | 179 | 0.617002 | false |
gautam1858/tensorflow | tensorflow/python/autograph/pyct/cfg.py | 11 | 27459 | # 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 | 7,577,112,799,913,249,000 | 32.405109 | 80 | 0.680688 | false |
commaai/openpilot | selfdrive/swaglog.py | 1 | 3592 | import logging
import os
import time
from pathlib import Path
from logging.handlers import BaseRotatingHandler
import zmq
from common.logging_extra import SwagLogger, SwagFormatter, SwagLogFileFormatter
from selfdrive.hardware import PC
if PC:
SWAGLOG_DIR = os.path.join(str(Path.home()), ".comma", "log")
else:
S... | mit | 6,886,313,867,505,206,000 | 31.071429 | 103 | 0.689866 | false |
Zren/gnome-shell-grid | gnome_shell_grid.py | 1 | 8954 | #!/usr/bin/env python
import logging
import re
import Xlib
import Xlib.display
from Xlib import X, XK, Xutil
import gtk
import wnck
class Opts(object):
""" Keyboard mapping """
keymap = {
'<Control><Alt>KP_5': 'put_center',
'<Control><Alt>KP_4': 'put_left',
'<Shift><Co... | gpl-3.0 | 8,324,259,019,454,712,000 | 26.98125 | 77 | 0.495421 | false |
nickmckay/LiPD-utilities | Python/lipd/bag.py | 1 | 2447 | import bagit
from .loggers import create_logger
logger_bagit = create_logger('bag')
def create_bag(dir_bag):
"""
Create a Bag out of given files.
:param str dir_bag: Directory that contains csv, jsonld, and changelog files.
:return obj: Bag
"""
logger_bagit.info("enter create_bag")
# if ... | gpl-2.0 | 4,731,521,243,711,662,000 | 26.494382 | 117 | 0.612587 | false |
jalexvig/tensorflow | tensorflow/contrib/estimator/python/estimator/dnn_linear_combined.py | 4 | 7855 | # 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 | 7,082,404,104,513,320,000 | 42.159341 | 103 | 0.676003 | false |
latincom2015/gr-baz | python/waterfall_window.py | 4 | 10486 | #
# Copyright 2008 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 version.
#
#... | gpl-3.0 | 7,943,101,653,330,962,000 | 32.288889 | 112 | 0.665745 | false |
Rentier/keras-autoencoder | autoencoder/conv_autoencoder.py | 1 | 2218 | from keras.layers import Input, Dense, Convolution2D, MaxPooling2D, UpSampling2D
from keras.models import Model
from autoencoder_base import AutoencoderBase
class ConvolutionalAutoencoder(AutoencoderBase):
def __init__(self, h_in, w_in, dims):
# Each MaxPooling2D (2,2) layer halves the image size
... | gpl-3.0 | -3,227,564,533,490,153,500 | 44.285714 | 130 | 0.645176 | false |
santhoshtr/ibus-sulekha | engine/factory.py | 1 | 2157 | # vim:set et sts=4 sw=4:
#
# ibus-tmpl - The Input Bus template project
#
# Copyright (c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either ... | gpl-2.0 | -7,691,927,715,902,469,000 | 34.95 | 84 | 0.723227 | false |
jonathf/chaospy | tests/test_stress.py | 1 | 2489 | import chaospy as cp
import numpy as np
from scipy import special
dim = 3 # <100
samples = 20 # <10**6
order = 2 # <20
size = 20 # <10**5
class normal(cp.SimpleDistribution):
"""stripped down normal distribution."""
def _cdf(self, x):
return special.ndtr(x)
def _lower(self):
return -7.5... | mit | -1,635,230,773,719,754,000 | 24.927083 | 66 | 0.611089 | false |
arubertoson/piemenu | piemenu/menusystem/json_minify.py | 5 | 4127 | '''
Created on 20/01/2011
v0.2 (C) Gerald Storer
MIT License
Based on JSON.minify.js:
https://github.com/getify/JSON.minify
Contributers:
- Pradyun S. Gedam (conditions and variable names changed)
'''
import re
def json_minify(string, strip_space=True):
tokenizer = re.compile('"|(/\*)|(\*/)|... | gpl-2.0 | 7,549,441,053,365,401,000 | 29.746154 | 83 | 0.43591 | false |
Dziolas/invenio | modules/bibcatalog/lib/bibcatalog_task.py | 17 | 16172 | # -*- coding: utf-8 -*-
##
## This file is part of Invenio.
## Copyright (C) 2013 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your option) a... | gpl-2.0 | 5,809,101,393,159,936,000 | 35.838269 | 95 | 0.567462 | false |
cypod/arsenalsuite | python/blur/psutil/_pslinux.py | 8 | 42627 | #!/usr/bin/env python
# Copyright (c) 2009, Giampaolo Rodola'. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Linux platform implementation."""
from __future__ import division
import base64
import errno
import functools
import os
import ... | gpl-2.0 | 9,192,893,229,636,638,000 | 36.099217 | 80 | 0.513993 | false |
dippatel1994/oppia | extensions/gadgets/base_test.py | 16 | 8690 | # coding: utf-8
#
# Copyright 2014 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | apache-2.0 | -4,616,468,311,139,284,000 | 37.451327 | 79 | 0.575029 | false |
iblstudios/OpenBadgesXBlock-v1 | badges/appmysqldb.py | 3 | 2006 | # -*- coding: utf-8 -*-#
#
import CommonFunc
import MySQLdb
#
# MySQL class
#
class mysql:
"""
MySQL class provides easy interaction with MySQL databases
Usage:
print appmysqldb.mysql.__doc__
db = appmysqldb.mysql('localhost', 3306, 'anunciandoorg', 'midget', '')
q = "SELECT category_id, category_id, name_es... | gpl-3.0 | -5,486,353,896,265,452,000 | 24.392405 | 105 | 0.662014 | false |
sadmansk/servo | tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/browsers/webkit.py | 1 | 3569 | from .base import Browser, ExecutorBrowser, require_arg
from ..executors import executor_kwargs as base_executor_kwargs
from ..executors.executorwebdriver import (WebDriverTestharnessExecutor, # noqa: F401
WebDriverRefTestExecutor) # noqa: F401
from ..executors.executorwebki... | mpl-2.0 | 813,253,466,941,404,700 | 33.650485 | 86 | 0.577192 | false |
kawamuray/ganeti | lib/jstore.py | 4 | 6224 | #
#
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Google Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later versi... | gpl-2.0 | 6,859,868,053,103,170,000 | 26.539823 | 79 | 0.664364 | false |
illicitonion/givabit | lib/sdks/google_appengine_1.7.1/google_appengine/lib/webob_1_1_1/tests/test_in_wsgiref.py | 5 | 4758 | from __future__ import with_statement
from webob import Request, Response
import sys, logging, threading, random, urllib2, socket, cgi
from contextlib import contextmanager
from nose.tools import assert_raises, eq_ as eq
from wsgiref.simple_server import make_server, WSGIRequestHandler, WSGIServer, ServerHandler
from Q... | apache-2.0 | -1,415,551,912,468,537,900 | 27.153846 | 92 | 0.613913 | false |
lthurlow/python-tcpsnoop | scapy/contrib/send.py | 7 | 2905 | #! /usr/bin/env python
## Copyright (C) 2009 Adline Stephane <adline.stephane@gmail.com>
##
## This program is published under a GPLv2 license
# Partial support of RFC3971
# scapy.contrib.description = SEND
# scapy.contrib.status = loads
from scapy.packet import *
from scapy.fields import *
from scapy.layers.inet6 i... | mit | -7,116,545,853,913,300,000 | 37.733333 | 107 | 0.575904 | false |
helena-project/tockloader | tockloader/openocd.py | 1 | 9524 | '''
Interface for boards using OpenOCD.
This interface has a special option called `openocd_options` which is just a
list of strings that are interpreted as flags to the OpenOCD class in this file.
These allow individual boards to have custom operations in a semi-reasonable
way. Note, I just made up the string (flag) ... | mit | 4,069,855,160,304,407,000 | 35.351145 | 105 | 0.709891 | false |
xavfernandez/pip | tests/unit/test_collector.py | 1 | 15948 | import logging
import os.path
from textwrap import dedent
import mock
import pretend
import pytest
from mock import Mock, patch
from pip._vendor import html5lib, requests
from pip._vendor.six.moves.urllib import request as urllib_request
from pip._internal.index.collector import (
HTMLPage,
_clean_link,
_... | mit | -1,946,037,641,901,051,000 | 31.950413 | 79 | 0.61086 | false |
catcosmo/newsdiffs | parsers/welt.py | 1 | 2336 | from baseparser import BaseParser
from BeautifulSoup import BeautifulSoup, Tag
class WeltParser(BaseParser):
domains = ['www.welt.de']
feeder_pat = '^http://www.welt.de/(politik|wirtschaft|finanzen|vermischtes|wissenschaft|regionales|debatte)/.*\.html$'
feeder_pages = ['http://www.welt.de/']
def ... | mit | -1,129,535,123,813,981,600 | 48.723404 | 130 | 0.586473 | false |
miipl-naveen/optibizz | addons/account_check_writing/report/check_print.py | 58 | 2954 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | -2,430,787,320,849,182,000 | 38.386667 | 131 | 0.565674 | false |
frnhr/django-cms | cms/views.py | 1 | 9710 | # -*- coding: utf-8 -*-
from __future__ import with_statement
from django.conf import settings
from django.contrib.auth.views import redirect_to_login
from django.core.urlresolvers import resolve, Resolver404, reverse
from django.http import Http404, HttpResponseRedirect, HttpResponse
from django.template.context impo... | bsd-3-clause | -8,404,083,877,159,118,000 | 44.586854 | 113 | 0.644696 | false |
krzyzacy/test-infra | experiment/parse_build_log.py | 1 | 4108 | #!/usr/bin/python3
# Copyright 2018 The Kubernetes Authors.
#
# 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 applicab... | apache-2.0 | -8,328,211,505,718,307,000 | 33.233333 | 95 | 0.574489 | false |
akretion/openerp-server | openerp/addons/base/module/wizard/base_module_upgrade.py | 31 | 4901 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Business Applications
# Copyright (C) 2004-2012 OpenERP SA (<http://openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of ... | agpl-3.0 | 3,644,561,074,686,401,000 | 44.37963 | 157 | 0.554989 | false |
mutirri/bokeh | bokeh/charts/builder/tests/test_scatter_builder.py | 33 | 2895 | """ This is the Bokeh charts testing interface.
"""
#-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2014, Continuum Analytics, Inc. All rights reserved.
#
# Powered by the Bokeh Development Team.
#
# The full license is in the file LICENSE.txt, distributed with thi... | bsd-3-clause | -3,058,387,231,910,055,000 | 40.956522 | 84 | 0.492573 | false |
esander91/zulip | zerver/management/commands/add_users_to_streams.py | 9 | 2422 | from __future__ import absolute_import
from __future__ import print_function
from optparse import make_option
from django.core.management.base import BaseCommand
from zerver.lib.actions import create_stream_if_needed, do_add_subscription
from zerver.models import UserProfile, get_realm, get_user_profile_by_email
cl... | apache-2.0 | 214,939,742,432,075,740 | 41.491228 | 93 | 0.5545 | false |
oberstet/autobahn-python | examples/twisted/websocket/auth_persona/server.py | 3 | 9114 | ###############################################################################
#
# The MIT License (MIT)
#
# Copyright (c) Crossbar.io Technologies GmbH
#
# 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 ... | mit | -1,768,853,535,651,844,900 | 35.60241 | 115 | 0.579438 | false |
dyoung418/tensorflow | tensorflow/contrib/framework/python/framework/tensor_util_test.py | 34 | 15291 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -2,544,536,406,296,850,000 | 39.885027 | 80 | 0.613629 | false |
jjx02230808/project0223 | examples/applications/plot_tomography_l1_reconstruction.py | 81 | 5461 | """
======================================================================
Compressive sensing: tomography reconstruction with L1 prior (Lasso)
======================================================================
This example shows the reconstruction of an image from a set of parallel
projections, acquired along dif... | bsd-3-clause | -3,033,646,471,593,836,000 | 35.651007 | 77 | 0.675517 | false |
RPI-OPENEDX/edx-platform | common/lib/chem/chem/tests.py | 44 | 21813 | import codecs
from fractions import Fraction
import unittest
from .chemcalc import (
compare_chemical_expression,
divide_chemical_expression,
render_to_html,
chemical_equations_equal,
)
import chem.miller
LOCAL_DEBUG = None
def log(msg, output_type=None):
"""Logging function for tests"""
if... | agpl-3.0 | -8,168,132,133,081,537,000 | 44.068182 | 161 | 0.536515 | false |
masia02/chainer | tests/cupy_tests/cuda_tests/test_memory.py | 4 | 3675 | import ctypes
import unittest
from cupy.cuda import memory
from cupy import testing
class MockMemory(object):
cur_ptr = 1
def __init__(self, size):
self.ptr = ctypes.c_void_p(MockMemory.cur_ptr)
MockMemory.cur_ptr += size
self.size = size
self._device = None
def __int__(... | mit | -5,063,447,900,619,586,000 | 26.840909 | 79 | 0.574694 | false |
hrashk/sympy | sympy/solvers/tests/test_recurr.py | 5 | 6985 | from sympy import Eq, factorial, Function, Lambda, rf, S, sqrt, symbols, I, expand_func, binomial, gamma
from sympy.solvers.recurr import rsolve, rsolve_hyper, rsolve_poly, rsolve_ratio
from sympy.utilities.pytest import raises
from sympy.abc import a, b, c
y = Function('y')
n, k = symbols('n,k', integer=True)
C0, C1,... | bsd-3-clause | 7,861,443,042,800,791,000 | 34.277778 | 104 | 0.45383 | false |
toomoresuch/pysonengine | parts/google_appengine/google/appengine/ext/webapp/mail_handlers.py | 9 | 2010 | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | mit | -7,245,262,825,480,334,000 | 24.769231 | 76 | 0.695025 | false |
ProjectSWGCore/NGECore2 | scripts/mobiles/naboo/irate_flewt_matriarch.py | 2 | 1646 | import sys
from services.spawn import MobileTemplate
from services.spawn import WeaponTemplate
from resources.datatables import WeaponType
from resources.datatables import Difficulty
from resources.datatables import Options
from java.util import Vector
def addTemplate(core):
mobileTemplate = MobileTemplate()
mobi... | lgpl-3.0 | -2,638,061,878,272,838,000 | 32.612245 | 129 | 0.827461 | false |
Clinical-Genomics/scout | tests/adapter/mongo/test_panel_handler.py | 1 | 12231 | from pprint import pprint as pp
import pytest
from scout.exceptions import IntegrityError
def test_add_panel(adapter, testpanel_obj):
## GIVEN a adapter with without panels
assert adapter.panel_collection.find_one() is None
## WHEN inserting a panel
adapter.add_gene_panel(testpanel_obj)
## THEN ... | bsd-3-clause | -7,314,340,812,761,773,000 | 31.967655 | 111 | 0.667893 | false |
Chipmaster/uctui | src/uctgui.py | 1 | 5249 | # This file is part of uctui.
# uctui is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# uctui is distributed in the hope that it will... | gpl-3.0 | -2,000,940,326,619,326,200 | 27.22043 | 96 | 0.597828 | false |
ehelms/tito | test/functional/release_yum_tests.py | 7 | 2260 |
# Copyright (c) 2008-2014 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should have received a cop... | gpl-2.0 | 4,652,570,809,633,318,000 | 29.133333 | 73 | 0.679204 | false |
srluge/SickRage | tests/helpers_tests.py | 1 | 4132 | #!/usr/bin/env python2.7
"""
Author: Dustyn Gibson <miigotu@gmail.com>
URL: http://github.com/SiCKRAGETV/SickRage
This file is part of SickRage.
SickRage 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 ve... | gpl-3.0 | 2,299,853,447,987,036,000 | 41.597938 | 86 | 0.659729 | false |
Shade5/coala-bears | tests/python/PyLintBearTest.py | 12 | 2118 | import os
import re
from queue import Queue
from shutil import which
from unittest.case import skipIf
from bears.python.PyLintBear import PyLintBear
from coalib.testing.LocalBearTestHelper import LocalBearTestHelper
from coalib.settings.Section import Section
from coalib.settings.Setting import Setting
@skipIf(which... | agpl-3.0 | -1,560,475,048,808,829,000 | 38.222222 | 78 | 0.617564 | false |
ahmadassaf/zulip | zerver/management/commands/email_mirror.py | 2 | 5793 | #!/usr/bin/env python
"""
Forward messages sent to the configured email gateway to Zulip.
For zulip.com, messages to that address go to the Inbox of emailgateway@zulip.com.
Zulip voyager configurations will differ.
Messages meant for Zulip have a special recipient form of
<stream name>+<regenerable stream token... | apache-2.0 | 2,172,808,908,983,981,300 | 38.678082 | 106 | 0.634386 | false |
shish/link | link.py | 1 | 21912 | #!/usr/bin/env python
import logging.handlers
import os
import random
import sys
from time import time
import json
import aiohttp_mako
from aiohttp import web
from aiohttp_session import get_session
from sqlalchemy import and_, func, not_, or_
import models as db
routes = web.RouteTableDef()
def if_logged_in(func... | gpl-3.0 | -4,152,388,419,346,267 | 30.573487 | 87 | 0.547052 | false |
txdywy/wiki20 | setup.py | 1 | 1736 | # -*- coding: utf-8 -*-
#quickstarted Options:
#
# sqlalchemy: True
# auth: sqlalchemy
# mako: False
#
#
#This is just a work-around for a Python2.7 issue causing
#interpreter crash at exit when trying to log an info message.
try:
import logging
import multiprocessing
except:
pass
import sys
p... | gpl-2.0 | -2,921,987,377,428,174,300 | 21.842105 | 62 | 0.543779 | false |
epa/sqlalchemy | test/dialect/test_sqlite.py | 2 | 54728 | #!coding: utf-8
"""SQLite-specific tests."""
import os
import datetime
from sqlalchemy.testing import eq_, assert_raises, \
assert_raises_message, is_
from sqlalchemy import Table, select, bindparam, Column,\
MetaData, func, extract, ForeignKey, text, DefaultClause, and_, \
create_engine, UniqueConstraint... | mit | 1,224,945,454,463,302,700 | 34.8389 | 81 | 0.517761 | false |
ZaraSeries/repo | script.module.urlresolver/lib/urlresolver/plugins/syfy.py | 2 | 2811 | '''
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT... | gpl-2.0 | -5,303,512,725,569,143,000 | 45.85 | 154 | 0.600854 | false |
charanpald/sandbox | sandbox/recommendation/NimfaFactorise.py | 1 | 2673 | """
A wrapper for the matrix factorisation in Nimfa.
"""
import nimfa
from sandbox.util.Parameter import Parameter
from apgl.util.MCEvaluator import MCEvaluator
from exp.sandbox.recommendation.AbstractMatrixCompleter import AbstractMatrixCompleter
class NimfaFactorise(AbstractMatrixCompleter):
def __init__(se... | gpl-3.0 | 971,300,006,109,322,500 | 32.425 | 107 | 0.575758 | false |
matteoferla/Geobacillus | broadname.py | 1 | 1927 | __author__ = 'Matteo'
__doc__ = ''''''
N = "\n"
T = "\t"
# N="<br/>"
from collections import OrderedDict
import csv
def make_symname(fp):
symball={}
for el in csv.reader(open(fp),delimiter=T):
if len(el)<7:
pass
elif el[2] not in symball:
symbal... | gpl-2.0 | 2,442,177,538,758,610,000 | 30.080645 | 79 | 0.358588 | false |
HaydenFaulkner/phd | graveyard/example_digit_class_latest.py | 1 | 8929 | #!/usr/bin/env python
# Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.
"""
Classify an image using individual model files
Use this script as an example to build your own tool
"""
import argparse
import math
import os
import time
import pickle
import PIL.Image
import numpy as np
import scipy.misc
impor... | mit | 5,117,219,604,261,240,000 | 31.003584 | 124 | 0.606003 | false |
jdmcbr/geopandas | geopandas/io/arrow.py | 2 | 14773 | from distutils.version import LooseVersion
import json
import warnings
from pandas import DataFrame
from geopandas._compat import import_optional_dependency
from geopandas.array import from_wkb
from geopandas import GeoDataFrame
import geopandas
METADATA_VERSION = "0.1.0"
# reference: https://github.com/geopandas/g... | bsd-3-clause | -3,959,952,346,437,914,600 | 31.539648 | 87 | 0.646111 | false |
kdart/pycopia3 | core/pycopia/benchmarks.py | 1 | 7477 | #!/usr/bin/python3.4
# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
# 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 app... | apache-2.0 | 1,376,247,095,272,809,000 | 31.090129 | 100 | 0.609335 | false |
openpgh/askpgh | askbot/setup_templates/tinymce_sample_config.py | 4 | 1199 | TINYMCE_COMPRESSOR = True
TINYMCE_SPELLCHECKER = False
TINYMCE_JS_ROOT = os.path.join(STATIC_ROOT, 'default/media/js/plugins/tinymce/')
TINYMCE_URL = STATIC_URL + 'default/media/js/plugins/tinymce/'
TINYMCE_DEFAULT_CONFIG = {
'convert_urls': False,
'plugins': 'askbot_imageuploader,askbot_attachment',
'theme... | gpl-3.0 | 3,381,760,395,151,806,500 | 43.407407 | 138 | 0.678899 | false |
caveman-dick/ansible | lib/ansible/modules/cloud/openstack/os_subnets_facts.py | 19 | 5059 | #!/usr/bin/python
# Copyright (c) 2015 Hewlett-Packard Development Company, L.P.
#
# This module 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 late... | gpl-3.0 | 8,266,191,286,912,890,000 | 28.242775 | 78 | 0.641036 | false |
ujvl/ray-ng | python/ray/tests/test_actor.py | 1 | 91577 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import collections
import json
import random
import numpy as np
import os
import pytest
try:
import pytest_timeout
except ImportError:
pytest_timeout = None
import signal
import sys
import time
import ... | apache-2.0 | 6,809,970,692,799,895,000 | 31.497161 | 79 | 0.609105 | false |
maco/yarncalc | yarn.py | 1 | 1532 | from flask import Flask
from flask import render_template
from flask import request
app = Flask(__name__)
@app.route('/calculate', methods=['GET'])
def calc():
length = request.args.get('length', '')
lunit = request.args.get('lengthunit', '')
weight = request.args.get('weight', '')
wunit = request.arg... | agpl-3.0 | -7,388,414,963,755,717,000 | 24.114754 | 62 | 0.574413 | false |
puneetgkaur/backup_sugar_sugartoolkit | examples/ticket2999.py | 10 | 1101 | # Copyright (C) 2007, One Laptop Per Child
#
# This library 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 2 of the License, or (at your option) any later version.
#
# This library is ... | lgpl-2.1 | -7,322,734,710,993,462,000 | 30.457143 | 69 | 0.736603 | false |
rosskarchner/django-sheerlike | sheerlike/query.py | 2 | 11196 | import os
import codecs
import logging
import json
from collections import namedtuple
from django.utils.datastructures import MultiValueDict as MultiDict
from django.conf import settings
from django.utils.http import urlencode
from django.core.urlresolvers import reverse
import dateutil.parser
from time import mkti... | cc0-1.0 | -7,677,643,873,723,715,000 | 34.097179 | 100 | 0.588782 | false |
MKTCloud/MKTCloud | openstack_dashboard/dashboards/admin/images_and_snapshots/volume_snapshots/tables.py | 8 | 3296 | # 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 | 587,581,317,181,087,500 | 34.06383 | 78 | 0.664442 | false |
broxtronix/thunder | python/doc/conf.py | 1 | 8754 | # -*- coding: utf-8 -*-
#
# Thunder documentation build configuration file, created by
# sphinx-quickstart on Wed Jul 16 17:00:45 2014.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All... | apache-2.0 | 4,425,294,208,686,001,000 | 30.376344 | 80 | 0.701622 | false |
bud4/samba | python/samba/tests/password_hash_ldap.py | 6 | 4971 | # Tests for Tests for source4/dsdb/samdb/ldb_modules/password_hash.c
#
# Copyright (C) Andrew Bartlett <abartlet@samba.org> 2017
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version ... | gpl-3.0 | -2,628,649,660,762,816,500 | 36.659091 | 80 | 0.631664 | false |
slozier/ironpython2 | Src/StdLib/Lib/site-packages/adodbapi/adodbapi.py | 2 | 59041 | """adodbapi v2.2.6 - A python DB API 2.0 interface to Microsoft ADO
Copyright (C) 2002 Henrik Ekelund
Email: <http://sourceforge.net/sendmessage.php?touser=618411>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License... | apache-2.0 | -913,958,709,527,903,100 | 44.138379 | 208 | 0.619688 | false |
mdeemer/XlsxWriter | xlsxwriter/test/comparison/test_utf8_09.py | 8 | 1166 | ###############################################################################
# _*_ coding: utf-8
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org
#
from __future__ import unicode_literals
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook... | bsd-2-clause | -6,545,882,927,100,238,000 | 26.093023 | 79 | 0.5897 | false |
darongliu/Lstm_Turing_LM_tf | LSTM/run.py | 1 | 12292 | import time
import argparse
import numpy as np
import tensorflow as tf
import reader
import model
import pickle
import os
def parsing_args():
parser = argparse.ArgumentParser()
parser.add_argument('--mode', type=str, default='train',
help='train or test')
parser.add_argument('--i... | mit | 3,335,331,495,153,692,000 | 39.701987 | 106 | 0.561992 | false |
jarrodmillman/stat133-fall2014 | _plugins/i18n_subsites/i18n_subsites.py | 5 | 7827 | """i18n_subsites plugin creates i18n-ized subsites of the default site"""
import os
import six
import logging
from itertools import chain
from collections import defaultdict, OrderedDict
import gettext
from pelican import signals
from pelican.contents import Page, Article
from pelican.settings import configure_set... | bsd-2-clause | -8,912,998,116,803,513,000 | 40.412698 | 165 | 0.672033 | false |
JoeyDeRosa/TrollPy | trollpy/views/default.py | 1 | 8669 | """Views."""
from pyramid.view import view_config
from pyramid.httpexceptions import HTTPFound
from pyramid.security import remember, forget
from ..models import User, KillScore, Audio
from ..security import check_credentials
from pyramid.response import Response
from passlib.apps import custom_app_context as pwd_co... | mit | 5,124,900,760,169,130,000 | 30.296029 | 78 | 0.625101 | false |
greenape/risky-aging-model | disclosuregame/Games/game.py | 1 | 11678 | from random import Random
from disclosuregame.Measures import measures_midwives, measures_women
from collections import OrderedDict
import abc
from itertools import count
from copy import deepcopy
try:
import scoop
scoop.worker
scoop_on = True
LOG = scoop.logger
except:
scoop_on = False
import ... | mpl-2.0 | 1,702,149,041,649,709,000 | 35.955696 | 131 | 0.594537 | false |
PySide/Shiboken | tests/samplebinding/addedfunction_test.py | 6 | 2381 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is part of the Shiboken Python Bindings Generator project.
#
# Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
#
# Contact: PySide team <contact@pyside.org>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms... | gpl-2.0 | -7,422,736,489,643,966,000 | 40.77193 | 94 | 0.713566 | false |
huncrys/mtasa-blue | vendor/freetype/builds/meson/extract_libtool_version.py | 12 | 2521 | #!/usr/bin/env python
"""Extract the libtool version from `configure.raw`.
This script parses the `configure.raw` file to extract the libtool version
number. By default, the full dotted version number is printed, but
`--major`, `--minor` or `--patch` can be used to only print one of these
values instead.
"""
from __... | gpl-3.0 | 6,434,915,107,369,874,000 | 23.009524 | 74 | 0.578739 | false |
mujiansu/arangodb | 3rdParty/V8-4.3.61/third_party/python_26/Lib/site-packages/pythonwin/pywin/framework/sgrepmdi.py | 17 | 18631 | #SGrepMDI is by Gordon McMillan (gmcm@hypernet.com)
#It does basically what Find In Files does in MSVC with a couple enhancements.
# - It saves any directories in the app's ini file (if you want to get rid
# of them you'll have to edit the file)
# - "Directories" can be directories,
# - semicolon separated lists of "... | apache-2.0 | 4,535,807,511,720,886,000 | 34.352941 | 195 | 0.671086 | false |
tjyang/psp | 9.1addon/sbutils-1.3.1/src/sbutils-1.3.1/lib/config.py | 4 | 2455 | # Configuration file parser
#
# Copyright (C) 2009-2010 The Written Word, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# Th... | gpl-2.0 | -7,087,726,411,774,907,000 | 32.630137 | 73 | 0.652138 | false |
faircloth-lab/conda-recipes | recipes/mrbayes/run_test.py | 2 | 1416 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
(c) 2013 Brant Faircloth || http://faircloth-lab.org/
All rights reserved.
This code is distributed under a 3-clause BSD license. Please see
LICENSE.txt for more information.
Created on 30 December 2013 16:33 PST (-0800)
"""
import unittest
import subprocess
class... | bsd-3-clause | -3,819,099,811,065,645,000 | 25.222222 | 72 | 0.54096 | false |
Cadasta/cadasta-qgis-plugin | test_suite.py | 1 | 1525 | # coding=utf-8
"""
Test Suite for Cadasta.
Contact : etienne at kartoza dot com
.. note:: This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your ... | gpl-3.0 | -1,876,943,031,943,529,700 | 27.240741 | 78 | 0.664918 | false |
pyjs/pyjs | examples/libtest/NoInlineCodeTest.py | 6 | 10053 | # Tests for the implementatuion of --no-inline-code
# Note that the use of int/float/lon as variable
# is not allowed with google closure compile
import sys
import UnitTest
import urllib
def test(a):
return None
class NoInlineCodeTest(UnitTest.UnitTest):
def test_bool(self):
i1 = bool(1)
def... | apache-2.0 | 247,405,469,343,270,400 | 26.694215 | 66 | 0.446732 | false |
sdia/tisane | multivariate.py | 1 | 21756 | #!/usr/bin/env python
#-*- coding:utf-8 -*-
'''
Multivariate time series
TISEAN's multivariate section is still growing - like the research body
in this area. As a convention, program names for ``cross-'' quantities
computed between two signals start with x. Those programs that can handle
scalar as well as mult... | gpl-3.0 | 355,981,190,947,364,000 | 34.203883 | 93 | 0.608522 | false |
slachiewicz/metrics | docs/source/conf.py | 3 | 9545 | # -*- coding: utf-8 -*-
#
# Dropwizard documentation build configuration file, created by
# sphinx-quickstart on Mon Feb 13 11:29:49 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... | apache-2.0 | -166,390,504,272,103,360 | 30.710963 | 80 | 0.698586 | false |
cnewcome/sos | sos/plugins/lstopo.py | 4 | 1581 | # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but... | gpl-2.0 | -7,032,947,519,924,956,000 | 40.605263 | 75 | 0.680582 | false |
PADAS/django-raster | raster/migrations/0022_auto_20151110_0810.py | 1 | 1376 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
def move_parse_log_to_parse_status_objects_forward(apps, schema_editor):
"""
Copy parse status data to new objects.
"""
RasterLayer = apps.get_model("raster", "RasterLayer")
RasterLayerParseStatus = a... | bsd-3-clause | 8,727,708,277,739,368,000 | 29.577778 | 87 | 0.640988 | false |
ccasotto/rmtk | rmtk/vulnerability/derivation_fragility/R_mu_T_no_dispersion/dolsek_fajfar/DF2004.py | 3 | 13465 | # -*- coding: utf-8 -*-
import numpy as np
import scipy.stats as stat
import os
from rmtk.vulnerability.common import utils
from rmtk.vulnerability.mdof_to_sdof import sdof_utils
pi = 3.141592653589793
from rmtk.vulnerability.derivation_fragility.R_mu_T_no_dispersion.dolsek_fajfar.get_spo2ida_parameters import get_spo... | agpl-3.0 | 1,996,638,092,771,680,500 | 42.29582 | 153 | 0.588786 | false |
Affirm/moto | moto/awslambda/models.py | 3 | 24271 | from __future__ import unicode_literals
import base64
from collections import defaultdict
import copy
import datetime
import docker.errors
import hashlib
import io
import logging
import os
import json
import re
import zipfile
import uuid
import functools
import tarfile
import calendar
import threading
import traceback... | apache-2.0 | 8,454,178,002,001,555,000 | 34.850812 | 141 | 0.558156 | false |
durandj/mymcadmin | tests/small/cli/commands/test_shutdown.py | 1 | 3380 | """
Tests for the shutdown command
"""
import unittest
import unittest.mock
from .... import utils
from mymcadmin.cli import mymcadmin as mma_command
class TestShutdown(utils.CliRunnerMixin, unittest.TestCase):
"""
Tests for the shutdown command
"""
@unittest.mock.patch('mymcadmin.config.Config')
... | mit | -7,457,202,246,423,850,000 | 25.825397 | 87 | 0.539349 | false |
tridesclous/tridesclous | tridesclous/export.py | 1 | 4852 | import os
from collections import OrderedDict
import numpy as np
import scipy.io
try:
import pandas as pd
HAS_PANDAS = True
except ImportError:
HAS_PANDAS = False
class GenericSpikeExporter:
def __call__(self,spikes, catalogue, seg_num, chan_grp, export_path,
split_by_cluster... | mit | 1,845,506,646,151,229,000 | 31.783784 | 99 | 0.589242 | false |
JelleZijlstra/cython | Cython/Compiler/Buffer.py | 7 | 29841 | from __future__ import absolute_import
from .Visitor import CythonTransform
from .ModuleNode import ModuleNode
from .Errors import CompileError
from .UtilityCode import CythonUtilityCode
from .Code import UtilityCode, TempitaUtilityCode
from . import Options
from . import Interpreter
from . import PyrexTypes
from . i... | apache-2.0 | -3,416,545,453,072,470,500 | 38.788 | 114 | 0.598606 | false |
kalxas/geonode | geonode/themes/migrations/0011_auto_20200727_1451.py | 6 | 1787 | # Generated by Django 2.2.13 on 2020-07-27 14:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('geonode_themes', '0010_auto_20200115_1121'),
]
operations = [
migrations.CreateModel(
name='JumbotronThemeSlide',
f... | gpl-3.0 | -655,790,520,208,506,900 | 51.558824 | 227 | 0.644656 | false |
mgit-at/ansible | lib/ansible/plugins/inventory/script.py | 17 | 8349 | # Copyright (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
# Copyright (c) 2017 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
DOCUMENTATION = '''
invento... | gpl-3.0 | 6,998,085,052,163,940,000 | 39.333333 | 146 | 0.579351 | false |
trabacus-softapps/openerp-8.0-cc | openerp/addons/website_blog/models/website_blog.py | 4 | 7962 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-Today OpenERP SA (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms ... | agpl-3.0 | -7,166,528,812,695,372,000 | 35.356164 | 108 | 0.546471 | false |
asanfilippo7/osf.io | tests/test_conferences.py | 1 | 23963 | # -*- coding: utf-8 -*-
import mock
from nose.tools import * # noqa (PEP8 asserts)
import hmac
import hashlib
from StringIO import StringIO
import furl
from modularodm import Q
from modularodm.exceptions import ValidationError
from framework.auth import get_or_create_user
from framework.auth.core import Auth
from ... | apache-2.0 | 6,147,095,476,277,865,000 | 34.700447 | 102 | 0.585097 | false |
xuweiliang/Codelibrary | openstack_dashboard/dashboards/admin/volumes_back/backups/tests.py | 1 | 6807 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | apache-2.0 | 2,732,866,959,827,502,600 | 40.506098 | 79 | 0.59571 | false |
Ramalus/kivy | examples/widgets/splitter.py | 67 | 2322 | from kivy.base import runTouchApp
from kivy.lang import Builder
bl = Builder.load_string('''
BoxLayout:
orientation: 'vertical'
BoxLayout:
size_hint_y: None
height: sp(60)
Label:
text: 'keep_within_parent?'
CheckBox:
id: in_parent_box
active: ... | mit | -6,551,753,755,934,132,000 | 30.378378 | 68 | 0.416451 | 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.