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 |
|---|---|---|---|---|---|---|---|---|---|---|
jbrowne/UCSBsketch | pyjamas/Utils/Template.py | 2 | 5084 | """
filename: Template.py
description:
Doctest Examples:
"""
#-------------------------------------
import itertools #for permutations
import math
from Utils import GeomUtils
from Utils import Logger
from SketchFramework import Point
from SketchFramework import Stroke
from SketchFramework impo... | bsd-3-clause | -8,871,102,440,902,222,000 | 33.305556 | 107 | 0.526357 | false |
stevelle/os-ansible-deployment | scripts/pw-token-gen.py | 2 | 7050 | #!/usr/bin/env python
# Copyright 2014, Rackspace US, 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... | apache-2.0 | 4,502,494,662,195,940,400 | 33.729064 | 78 | 0.629504 | false |
Simran-B/arangodb | 3rdParty/V8-4.3.61/third_party/python_26/Lib/test/seq_tests.py | 59 | 13662 | """
Tests common to tuple, list and UserList.UserList
"""
import unittest
import sys
# Various iterables
# This is used for checking the constructor (here and in test_deque.py)
def iterfunc(seqn):
'Regular generator'
for i in seqn:
yield i
class Sequence:
'Sequence using __getitem__'
def __in... | apache-2.0 | 7,460,349,895,794,361,000 | 33.852041 | 85 | 0.559289 | false |
brylie/oppia | core/controllers/galleries_test.py | 15 | 8918 | # 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 required by applicable ... | apache-2.0 | 1,292,235,393,917,010,400 | 38.460177 | 79 | 0.615497 | false |
AlienCowEatCake/ImageViewer | src/ThirdParty/OpenJPEG/openjpeg-2.3.1/tests/performance/perf_test.py | 4 | 5102 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017, IntoPIX SA
# Contact: support@intopix.com
# Author: Even Rouault
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source cod... | gpl-3.0 | -5,836,373,128,956,697,000 | 35.442857 | 79 | 0.575461 | false |
henderb/openshift-ansible | roles/lib_zabbix/library/zbx_usergroup.py | 14 | 7025 | #!/usr/bin/env python
'''
zabbix ansible module for usergroups
'''
# vim: expandtab:tabstop=4:shiftwidth=4
#
# Zabbix usergroup ansible module
#
#
# Copyright 2015 Red Hat Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
... | apache-2.0 | -6,332,257,477,182,223,000 | 32.774038 | 106 | 0.579786 | false |
ZHAW-INES/rioxo-uClinux-dist | user/python/python-2.4.4/Doc/lib/email-unpack.py | 4 | 1989 | #!/usr/bin/env python
"""Unpack a MIME message into a directory of files.
Usage: unpackmail [options] msgfile
Options:
-h / --help
Print this message and exit.
-d directory
--directory=directory
Unpack the MIME message into the named directory, which will be
created if it doesn't... | gpl-2.0 | 1,227,787,178,730,597,000 | 22.963855 | 79 | 0.57265 | false |
gappleto97/Senior-Project | common/call.py | 1 | 2209 | def call(mod, cmd, *args, **kargs):
"""Calls arbitrary python code
Arguments:
mod - The module from which you are calling
cmd - The command in said module
*args - Any arguments you need to give to it
index=0 - A specific index at which to return
end=0 - An en... | mit | 4,952,760,062,362,646,000 | 30.112676 | 77 | 0.525124 | false |
obulpathi/cloud | dataflow/cookbook/group_with_coder.py | 1 | 4067 | # Copyright 2016 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 ... | apache-2.0 | -8,671,146,784,769,584,000 | 35.63964 | 80 | 0.711827 | false |
TryChimas/chimas | chimas/__main__.py | 1 | 1873 | import os
from flask import request, jsonify
from ariadne import load_schema_from_path, make_executable_schema, \
graphql_sync, snake_case_fallback_resolvers, ObjectType
from ariadne.constants import PLAYGROUND_HTML
from . import app
from . import db
from . import models
from . import CHIMAS_PATH
from .queries ... | gpl-3.0 | -5,929,298,065,435,068,000 | 24.310811 | 73 | 0.726642 | false |
mozilla/bedrock | tests/redirects/base.py | 9 | 7061 | import re
from urllib.parse import urlparse, parse_qs
from braceexpand import braceexpand
import requests
def get_abs_url(url, base_url):
try:
if url.pattern.startswith('/'):
# url is a compiled regular expression pattern
return re.compile(''.join([re.escape(base_url), url.pattern... | mpl-2.0 | -6,025,329,388,879,996,000 | 40.535294 | 126 | 0.638295 | false |
northern-bites/nao-man | motion/gaits/SlowGait.py | 1 | 2395 | import man.motion as motion
import GaitConstants as constants
ODO_CONFIG = constants.ODO_CONFIG
ARM_CONFIG = constants.ARM_CONFIG
WALKING = constants.WALKING
NON_WALKING = constants.NON_WALKING
MARVIN_STANCE_CONFIG = (31.00, # CoM height
1.45, # Forward displacement of CoM
... | gpl-3.0 | 6,093,383,796,567,436,000 | 37.015873 | 72 | 0.480585 | false |
Venturi/oldcms | env/lib/python2.7/site-packages/easy_thumbnails/south_migrations/0010_rename_storage.py | 16 | 4046 | # encoding: utf-8
import sys
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
using_mysql = db.backend_name == 'mysql'
db.rename_table('easy_thumbnails_storagenew', 'easy_thumbnails_... | apache-2.0 | -1,654,315,601,404,752,400 | 50.871795 | 146 | 0.563767 | false |
hsorby/mapclient | src/mapclient/view/workflow/workflowgraphicsview.py | 1 | 10523 | """
MAP Client, a program to generate detailed musculoskeletal models for OpenSim.
Copyright (C) 2012 University of Auckland
This file is part of MAP Client. (http://launchpad.net/mapclient)
MAP Client is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public Li... | gpl-3.0 | -7,901,915,770,272,762,000 | 38.411985 | 109 | 0.630904 | false |
ThiefMaster/indico | indico/modules/events/abstracts/controllers/abstract_list.py | 3 | 11419 | # This file is part of Indico.
# Copyright (C) 2002 - 2021 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from collections import defaultdict
from operator import attrgetter
from flask import flash, jsonify, req... | mit | 2,733,117,170,343,947,000 | 47.591489 | 120 | 0.660478 | false |
billwanjohi/ansible-modules-core | packaging/apt.py | 8 | 20940 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2012, Flowroute LLC
# Written by Matthew Williams <matthew@flowroute.com>
# Based on yum module written by Seth Vidal <skvidal at fedoraproject.org>
#
# This module is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Lic... | gpl-3.0 | 7,485,450,253,744,677,000 | 36.259786 | 218 | 0.599284 | false |
geertj/draco2 | draco2/core/change.py | 1 | 4754 | # vi: ts=8 sts=4 sw=4 et
#
# change.py: change management
#
# This file is part of Draco2. Draco2 is free software and is made available
# under the MIT license. Consult the file "LICENSE" that is distributed
# together with this file for the exact licensing terms.
#
# Draco2 is copyright (c) 1999-2007 by the Draco2 au... | mit | 7,790,050,440,762,397,000 | 32.013889 | 77 | 0.569205 | false |
AloneRoad/Inforlearn | .google_appengine/google/appengine/datastore/datastore_index.py | 5 | 16161 | #!/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... | apache-2.0 | -1,370,765,520,245,683,200 | 29.435028 | 79 | 0.688819 | false |
ryfeus/lambda-packs | Sklearn_scipy_numpy/source/scipy/stats/mstats_basic.py | 31 | 84684 | """
An extension of scipy.stats.stats to support masked arrays
"""
# Original author (2007): Pierre GF Gerard-Marchant
# TODO : f_value_wilks_lambda looks botched... what are dfnum & dfden for ?
# TODO : ttest_rel looks botched: what are x1,x2,v1,v2 for ?
# TODO : reimplement ksonesamp
from __future__ import divisi... | mit | 136,144,548,764,639,820 | 30.516189 | 103 | 0.582932 | false |
skosukhin/spack | var/spack/repos/builtin/packages/py-bsddb3/package.py | 1 | 1912 | ##############################################################################
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | lgpl-2.1 | -7,842,485,565,303,463,000 | 46.8 | 173 | 0.692469 | false |
cecep-edu/edx-platform | common/lib/xmodule/xmodule/modulestore/inheritance.py | 14 | 14148 | """
Support for inheritance of fields down an XBlock hierarchy.
"""
from __future__ import absolute_import
from django.conf import settings
from xmodule.partitions.partitions import UserPartition
from xblock.fields import Scope, Boolean, String, Float, XBlockMixin, Dict, Integer, List
from xblock.runtime import KeyVa... | agpl-3.0 | 7,462,671,568,840,393,000 | 40.127907 | 407 | 0.644755 | false |
lino-framework/book | lino_book/projects/nomti/fixtures/demo.py | 3 | 1107 | from lino.api import rt
from lino.utils.cycler import Cycler
# thanks to http://fantasynamegenerators.com/restaurant-names.php#.VM1yRWNgtx0
RESTAURANT_NAMES = """
The Chopping Shack
The Abacus Well
The Olive Lounge
The Autumn Bite
The Private Mission
Nova
Babylon
Blossoms
Whisperwind
Catch
"""
def objects():
Per... | bsd-2-clause | -618,332,450,537,459,200 | 18.767857 | 78 | 0.652213 | false |
mistio/mist.client | src/mistcommand/helpers/providers.py | 1 | 1169 | import sys
from prettytable import PrettyTable
from mistcommand.helpers.login import authenticate
def list_providers(client, pretty):
providers = client.supported_providers
if pretty:
x = PrettyTable(["Provider", "Provider ID", "Region", "Region ID"])
for provider in providers:
i... | gpl-3.0 | -4,650,162,203,784,455,000 | 31.472222 | 106 | 0.559453 | false |
DistrictDataLabs/yellowbrick | yellowbrick/target/__init__.py | 1 | 1091 | # yellowbrick.target
# Implements visualizers related to the dependent (target) variable, y.
#
# Author: Benjamin Bengfort <benjamin@bengfort.com>
# Created: Thu Jul 19 08:57:05 2018 -0400
#
# ID: __init__.py [d742c57] benjamin@bengfort.com $
"""
Implements visualizers related to the dependent (target) variable, y. F... | apache-2.0 | -8,849,488,445,827,913,000 | 39.407407 | 77 | 0.692942 | false |
B-MOOC/edx-platform | common/djangoapps/enrollment/tests/test_api.py | 72 | 8408 | """
Tests for student enrollment.
"""
import ddt
from django.core.cache import cache
from nose.tools import raises
import unittest
from django.test import TestCase
from django.test.utils import override_settings
from django.conf import settings
from enrollment import api
from enrollment.errors import EnrollmentApiLoadE... | agpl-3.0 | -5,500,320,217,556,513,000 | 42.117949 | 110 | 0.647716 | false |
looooo/pivy | scons/scons-local-1.2.0.d20090919/SCons/Tool/mwld.py | 1 | 3624 | """SCons.Tool.mwld
Tool-specific initialization for the Metrowerks CodeWarrior linker.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Th... | isc | -6,826,426,212,615,075,000 | 32.869159 | 135 | 0.687914 | false |
jdm/gemrb | gemrb/GUIScripts/iwd/CharGen.py | 3 | 93490 | # -*-python-*-
# GemRB - Infinity Engine Emulator
# Copyright (C) 2003-2005 The GemRB Project
#
# 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 opt... | gpl-2.0 | -5,080,170,531,943,467,000 | 32.714389 | 157 | 0.775666 | false |
navodissa/python-flask | flask/lib/python2.7/site-packages/sqlalchemy/engine/url.py | 23 | 7870 | # engine/url.py
# Copyright (C) 2005-2014 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Provides the :class:`~sqlalchemy.engine.url.URL` class which encapsulates
informati... | bsd-3-clause | 3,368,796,267,928,229,000 | 31.386831 | 78 | 0.564803 | false |
caioserra/apiAdwords | examples/adspygoogle/dfa/v1_19/authenticate.py | 3 | 1932 | #!/usr/bin/python
#
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | apache-2.0 | 3,818,320,239,687,513,600 | 32.310345 | 78 | 0.6853 | false |
abrahamnunes/fitr | fitr/stats/__init__.py | 2 | 1156 | # -*- coding: utf-8 -*-
from fitr.stats import cluster
from fitr.stats.descriptive import mean_ci
from fitr.stats.model_evaluation import aic
from fitr.stats.model_evaluation import bic
from fitr.stats.model_evaluation import lme
from fitr.stats.distance import distance
from fitr.stats.correlations import pearson_rh... | gpl-3.0 | -8,340,834,645,107,808,000 | 28.641026 | 58 | 0.695502 | false |
SteveXiSong/UW-Madison-ECE757-S15-MulticastSnooping | tests/configs/o3-timing-checker.py | 56 | 2341 | # Copyright (c) 2013 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation of the functionality ... | bsd-3-clause | -4,105,121,958,735,582,700 | 53.44186 | 75 | 0.773601 | false |
drawks/ansible | lib/ansible/plugins/callback/foreman.py | 33 | 9067 | # -*- coding: utf-8 -*-
# (c) 2015, 2016 Daniel Lobato <elobatocs@gmail.com>
# (c) 2016 Guido Günther <agx@sigxcpu.org>
# (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_... | gpl-3.0 | 4,770,157,240,024,822,000 | 34.414063 | 145 | 0.553607 | false |
santisiri/popego | envs/ALPHA-POPEGO/lib/python2.5/site-packages/PasteDeploy-1.3.1-py2.5.egg/paste/deploy/interfaces.py | 2 | 5813 | # (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org)
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
############################################################
## Functions
############################################################
def loadapp(uri... | bsd-3-clause | -5,641,171,497,307,935,000 | 27.777228 | 84 | 0.579563 | false |
Metaswitch/calico-neutron | neutron/plugins/nuage/nuagedb.py | 15 | 9940 | # Copyright 2014 Alcatel-Lucent USA Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | apache-2.0 | -586,884,566,954,944,500 | 33.158076 | 78 | 0.632193 | false |
prasannav7/ggrc-core | src/ggrc/migrations/versions/20160304124523_50c374901d42_add_assignable_notification_types.py | 1 | 3058 | # Copyright (C) 2016 Google Inc., authors, and contributors <see AUTHORS file>
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
# Created By: miha@reciprocitylabs.com
# Maintained By: miha@reciprocitylabs.com
"""Add assignable notification types
Create Date: 2016-03-04 12:45:23.024224
""... | apache-2.0 | 545,878,466,202,852,300 | 28.68932 | 79 | 0.659908 | false |
dhalperi/beam | sdks/python/apache_beam/io/gcp/internal/clients/bigquery/bigquery_v2_messages.py | 20 | 81881 | #
# 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 us... | apache-2.0 | -783,702,464,249,806,800 | 41.869634 | 105 | 0.736361 | false |
axiom-data-science/django-celery | djcelery/tests/test_commands.py | 4 | 1376 | # coding: utf-8
from django import VERSION
from django.core.management import execute_from_command_line
from ._compat import patch
CELERYD_COMMAND = 'djcelery.management.commands.celeryd.Command.handle'
def test_celeryd_command():
if VERSION >= (1, 10):
traceback = False
else:
traceback = N... | bsd-3-clause | -266,300,428,772,603,170 | 42 | 77 | 0.638808 | false |
pafcu/ConfigObj-GUI | examples/example.py | 1 | 1133 | from __future__ import print_function
import sys
import os
import sip
sip.setapi('QString', 1)
from PyQt4 import QtGui
import configobj
import configobj_gui
import validate
def main():
datadir = os.path.dirname(__file__)
specfile = os.path.join(datadir,'spec.txt')
conffile = os.path.join(datadir,'config.txt')
... | isc | 4,238,015,028,468,424,700 | 27.325 | 178 | 0.756399 | false |
humno/gene-panel-creator | gtf_to_genes/intervals_from_gtf.py | 2 | 27706 | #!/usr/bin/env python
"""
intervals_from_gtf.py
[--log_file PATH]
[--verbose]
"""
################################################################################
#
# intervals_from_gtf
#
#
# Copyright (c) 03 December 2014 Leo Goodstadt
#
##############################################################... | gpl-2.0 | 2,452,448,002,341,576,700 | 43.3296 | 145 | 0.512741 | false |
TinnedTuna/monte-fishing | monte_fishing/tests/deck_tests.py | 1 | 1515 | import unittest
from monte_fishing.deck import (
Deck,
Card,
DeckEmptyError,
)
class DeckTests(unittest.TestCase):
def setUp(self):
self.d = Deck()
def tearDown(self):
pass
def testDeckCreation(self):
self.assertEqual(len(self.d.deck), 52)
def... | bsd-2-clause | 8,904,138,301,968,421,000 | 24.25 | 61 | 0.588119 | false |
uclouvain/osis | education_group/tests/views/general_information/test_common_master.py | 1 | 4899 | ##############################################################################
#
# OSIS stands for Open Student Information System. It's an application
# designed to manage the core business of higher education institutions,
# such as universities, faculties, institutes and professional schools.
# The core ... | agpl-3.0 | 6,433,654,481,516,169,000 | 46.553398 | 112 | 0.706207 | false |
vbannai/neutron | neutron/tests/unit/test_l3_agent.py | 4 | 59598 | # Copyright 2012 VMware, 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 ... | apache-2.0 | -7,281,439,269,072,384,000 | 42.218274 | 79 | 0.559113 | false |
Karlson2k/xbmc | tools/EventClients/lib/python/ps3/sixpair.py | 21 | 2908 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import usb
vendor = 0x054c
product = 0x0268
timeout = 5000
passed_value = 0x03f5
def find_sixaxes():
res = []
for bus in usb.busses():
for dev in bus.devices:
if dev.idVendor == vendor and dev.idProduct == product:
res.append(dev)
ret... | gpl-2.0 | -7,489,375,191,441,912,000 | 24.508772 | 97 | 0.595254 | false |
Jamlum/pytomo | pytomo/dns/rdtypes/ANY/SSHFP.py | 2 | 2970 | # Copyright (C) 2005-2007, 2009, 2010 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and this permission notice
# appear in all copies.
#
# THE SOFTWARE IS PROVIDED ... | gpl-2.0 | 1,865,519,592,210,370,800 | 36.594937 | 79 | 0.640741 | false |
facelessuser/sublime-markdown-popups | st3/mdpopups/pymdownx/progressbar.py | 1 | 7612 | """
Progress Bar.
pymdownx.progressbar
Simple plugin to add support for progress bars
```
/* No label */
[==30%]
/* Label */
[==30% MyLabel]
/* works with attr_list inline style */
[==50/200 MyLabel]{: .additional-class }
```
New line is not required before the progress bar but suggested unless in a table.
Can t... | mit | -4,550,906,753,975,812,000 | 29.206349 | 111 | 0.58815 | false |
kaichogami/sympy | sympy/conftest.py | 89 | 2318 | from __future__ import print_function, division
import sys
sys._running_pytest = True
from distutils.version import LooseVersion as V
import pytest
from sympy.core.cache import clear_cache
import re
sp = re.compile(r'([0-9]+)/([1-9][0-9]*)')
def process_split(session, config, items):
split = config.getoption("-... | bsd-3-clause | -611,921,814,176,123,100 | 29.103896 | 75 | 0.620794 | false |
MaximNevrov/neutron | neutron/tests/unit/api/test_extensions.py | 3 | 41259 | # Copyright (c) 2011 OpenStack Foundation.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | apache-2.0 | 6,879,593,480,811,466,000 | 40.929878 | 79 | 0.620374 | false |
emk/pyjamas | pygtkweb/library/platform/browserhulahop.py | 6 | 4434 | def mash_attrib(name, joiner='-'):
res = ''
for c in name:
if c.isupper():
res += joiner + c.lower()
else:
res += c
return res
def round_val(val, digits):
return round(val, digits)
def get_listener(eventtype, item):
#print "get_listener", eventtype, item
... | apache-2.0 | -1,856,297,319,493,834,800 | 28.171053 | 75 | 0.601488 | false |
cryptonomex/graphene | programs/build_helpers/check_reflect.py | 12 | 3825 | #!/usr/bin/env python3
import json
import os
import re
import xml.etree.ElementTree as etree
def process_node(path, node):
"""
if node.tag == "TestCase":
if node.attrib.get("result", "UNKNOWN") != "passed":
failset.add(node)
return
if node.tag in ["TestResult", "TestSuite"]:
... | mit | 2,388,700,554,659,577,300 | 27.544776 | 91 | 0.558431 | false |
indictranstech/tele-frappe | frappe/handler.py | 11 | 2850 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
import frappe.utils
import frappe.sessions
import frappe.utils.file_manager
import frappe.desk.form.run_method
from frappe.utils.response import... | mit | -74,932,961,249,741,180 | 26.142857 | 108 | 0.709825 | false |
jawilson/Flexget | flexget/api/plugins/movie_list.py | 5 | 11715 | from __future__ import unicode_literals, division, absolute_import
from builtins import * # noqa pylint: disable=unused-import, redefined-builtin
import copy
import logging
from math import ceil
from flask import jsonify
from flask import request
from sqlalchemy.orm.exc import NoResultFound
from flexget.api import ... | mit | 1,347,075,735,079,427,000 | 36.790323 | 120 | 0.623816 | false |
Microvellum/Fluid-Designer | win64-vc/2.78/python/lib/test/test_super.py | 7 | 4457 | """Unit tests for new super() implementation."""
import sys
import unittest
class A:
def f(self):
return 'A'
@classmethod
def cm(cls):
return (cls, 'A')
class B(A):
def f(self):
return super().f() + 'B'
@classmethod
def cm(cls):
return (cls, super().cm(), 'B')... | gpl-3.0 | -7,928,786,502,284,938,000 | 24.323864 | 77 | 0.465111 | false |
justathoughtor2/atomicApe | cygwin/lib/python2.7/site-packages/pylint/test/unittest_reporters_json.py | 3 | 2083 | # Copyright (c) 2003-2015 LOGILAB S.A. (Paris, FRANCE).
# 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... | gpl-3.0 | -8,999,900,350,111,729,000 | 32.596774 | 80 | 0.642823 | false |
gojira/tensorflow | tensorflow/contrib/eager/python/examples/revnet/cifar_input.py | 3 | 3625 | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 324,328,322,283,541,760 | 33.52381 | 80 | 0.619586 | false |
EmreAtes/spack | var/spack/repos/builtin/packages/r-pls/package.py | 5 | 1743 | ##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | lgpl-2.1 | 5,814,875,114,922,474,000 | 43.692308 | 79 | 0.678141 | false |
openai/cleverhans | tutorials/future/jax/datasets.py | 1 | 3100 | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | mit | 1,889,369,632,985,478,700 | 34.227273 | 80 | 0.70129 | false |
MarcusChang/Repo-FoxRUN | FoxRUN/fabric-task-runner/env-config-task/setup_platform.py | 1 | 2082 |
'''
Instead of the avetest/bin/setup-platform bash
This script is used for download isolate app for test.
For phone, need to install app by firerfox app manager. For browser, directly use dowloaded file.
Use git clone due to wget need to input username and password in command line
'''
import os
import subprocess
impo... | mpl-2.0 | -1,192,879,494,542,898,000 | 45.266667 | 163 | 0.629203 | false |
joernhees/scikit-learn | sklearn/neural_network/_base.py | 45 | 6856 | """Utilities for the neural network modules
"""
# Author: Issam H. Laradji <issam.laradji@gmail.com>
# License: BSD 3 clause
import numpy as np
from ..utils.fixes import expit as logistic_sigmoid
def identity(X):
"""Simply return the input array.
Parameters
----------
X : {array-like, sparse matri... | bsd-3-clause | 7,531,909,089,420,041,000 | 26.206349 | 79 | 0.618436 | false |
TomasTomecek/alot | alot/foreign/urwidtrees/nested.py | 3 | 15867 | # Copyright (C) 2013 Patrick Totzke <patricktotzke@gmail.com>
# This file is released under the GNU GPL, version 3 or a later revision.
from tree import Tree
from decoration import DecoratedTree, CollapseMixin
class NestedTree(Tree):
"""
A Tree that wraps around Trees that may contain list walkers or other
... | gpl-3.0 | 3,229,377,389,557,875,000 | 42.352459 | 84 | 0.56898 | false |
major/monitorstack | tests/test_plugin_uptime.py | 1 | 1171 | # Copyright 2017, Major Hayden <major@mhtx.net>
#
# 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 agr... | apache-2.0 | -6,047,488,135,073,252,000 | 33.441176 | 74 | 0.69257 | false |
4Catalyzer/flask-resty | flask_resty/fields.py | 3 | 2715 | import marshmallow.utils
from marshmallow import fields
# -----------------------------------------------------------------------------
class RelatedItem(fields.Nested):
"""A nested object field that only requires the ID on load.
This class is a wrapper around :py:class:`marshmallow.fields.Nested` that
... | mit | 5,435,271,662,656,714,000 | 36.708333 | 119 | 0.646409 | false |
coleifer/walrus | walrus/tests/autocomplete.py | 1 | 11243 | import random
from walrus.tests.base import WalrusTestCase
from walrus.tests.base import db
class TestAutocomplete(WalrusTestCase):
test_data = (
(1, 'testing python'),
(2, 'testing python code'),
(3, 'web testing python code'),
(4, 'unit tests with python'))
def setUp(self):... | mit | -2,080,179,097,150,622,700 | 33.916149 | 79 | 0.540603 | false |
infoxchange/lettuce | lettuce/exceptions.py | 7 | 2194 | # -*- coding: utf-8 -*-
# <Lettuce - Behaviour Driven Development for python>
# Copyright (C) <2010-2012> Gabriel Falcão <gabriel@nacaolivre.org>
#
# 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 Foundatio... | gpl-3.0 | -3,277,362,010,329,400,300 | 34.370968 | 71 | 0.684451 | false |
miltonsarria/dsp-python | filters/FIR/fourierFunc.py | 4 | 1197 | #Milton Orlando Sarria Paja
#USC 2017
#analisis de fourier para datos de ondas entregados por argumentos
import numpy as np
from scipy.fftpack import fft
import math
##################################################################################
#######################################################################... | mit | 4,303,874,186,392,433,700 | 41.75 | 142 | 0.507937 | false |
andyliuliming/WALinuxAgent | tests/test_import.py | 2 | 1155 | from tests.tools import *
import azurelinuxagent.common.osutil as osutil
import azurelinuxagent.common.dhcp as dhcp
import azurelinuxagent.common.protocol as protocol
import azurelinuxagent.pa.provision as provision
import azurelinuxagent.pa.deprovision as deprovision
import azurelinuxagent.daemon as daemon
import azur... | apache-2.0 | 5,035,072,449,603,042,000 | 38.827586 | 58 | 0.772294 | false |
shub0/algorithm-data-structure | python/TargetSum.py | 1 | 1989 | """
You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols + and -. For each integer, you should choose one from + and - as its new symbol.
Find out how many ways to assign symbols to make sum of integers equal to target S.
Example 1:
Input: nums is [1, 1, 1, 1, 1], S ... | bsd-3-clause | -5,710,911,037,597,567,000 | 30.078125 | 184 | 0.574661 | false |
pirata-cat/agora-ciudadana | agora_site/agora_core/management/commands/exportusers.py | 4 | 1410 | # Copyright (C) 2014 Eduardo Robles Elvira <edulix AT wadobo DOT com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ve... | agpl-3.0 | -5,793,491,055,158,146,000 | 37.135135 | 77 | 0.683688 | false |
sestrella/ansible | test/units/modules/network/netscaler/test_netscaler_cs_vserver.py | 68 | 29077 |
# Copyright (c) 2017 Citrix Systems
#
# 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) any later version.
#
# ... | gpl-3.0 | 5,709,965,905,078,997,000 | 37.00915 | 133 | 0.595247 | false |
SanchayanMaity/gem5 | src/mem/ruby/network/simple/SimpleNetwork.py | 16 | 3868 | # Copyright (c) 2009 Advanced Micro Devices, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met: redistributions of source code must retain the above copyright
# notice, this list of conditions... | bsd-3-clause | 6,081,288,059,187,938,000 | 47.962025 | 78 | 0.703723 | false |
cgstudiomap/cgstudiomap | main/eggs/passlib-1.6.5-py2.7.egg/passlib/tests/test_context_deprecated.py | 6 | 29539 | """tests for passlib.context
this file is a clone of the 1.5 test_context.py,
containing the tests using the legacy CryptPolicy api.
it's being preserved here to ensure the old api doesn't break
(until Passlib 1.8, when this and the legacy api will be removed).
"""
#====================================================... | agpl-3.0 | -4,718,669,971,834,335,000 | 38.280585 | 125 | 0.560581 | false |
bmentges/brainiak_api | src/brainiak/type_mapper.py | 1 | 2245 | # -*- coding: utf-8 -*-
"This module helps mapping semantic types to our approach of rendering types in json-schema"
from brainiak.prefixes import expand_uri
OBJECT_PROPERTY = "http://www.w3.org/2002/07/owl#ObjectProperty"
DATATYPE_PROPERTY = "http://www.w3.org/2002/07/owl#DatatypeProperty"
_MAP_XSD_TO_JSON_TYPE = {... | gpl-2.0 | 9,060,775,060,236,304,000 | 28.155844 | 95 | 0.620045 | false |
initialkommit/kookmin | source/problem/function_state_capital.py | 2 | 1565 | # coding: UTF-8
# 미국의 주의 수도를 찾는 함수를 만드세요.
STATES_CAPITALS = {
'Alabama': 'Montgomery',
'Alaska': 'Juneau',
'Arizona': 'Phoenix',
'Arkansas': 'Little Rock',
'California': 'Sacramento',
'Colorado': 'Denver',
'Connecticut': 'Hartford',
'Delaware': 'Dover',
'Florida': 'Tallahassee',
... | mit | -8,677,033,420,458,939,000 | 25.877193 | 34 | 0.574788 | false |
Julius2342/pyvlx | pyvlx/api/frames/frame.py | 1 | 1699 | """Module for Frames."""
import struct
from pyvlx.exception import PyVLXException
from .frame_helper import calc_crc
class FrameBase:
"""Class for Base Frame."""
def __init__(self, command):
"""Initialize Base Frame."""
self.command = command
def __bytes__(self):
"""Get raw byt... | lgpl-3.0 | 7,602,826,605,997,801,000 | 28.807018 | 77 | 0.567393 | false |
eklitzke/mapserv | mapserv/lyric/sqlite.py | 1 | 3876 | import sqlite3
from mapserv.query.util import make_val
from mapserv.lyric.render import *
from mapserv.interfaces.query import ttypes
from mapserv.lyric.table import Table
class SqliteContext(object):
def __init__(self, conn, rollback=False, cursor_cls=None):
self.conn = conn
self.rollback_first =... | isc | 5,002,873,626,394,301,000 | 31.847458 | 97 | 0.593653 | false |
catapult-project/catapult | dashboard/dashboard/layered_cache_delete_expired_test.py | 3 | 2054 | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import unittest
import webapp2
import webtest
... | bsd-3-clause | 4,474,818,373,515,047,400 | 37.754717 | 72 | 0.725414 | false |
yotchang4s/cafebabepy | src/main/python/test/test_stat.py | 2 | 8589 | import unittest
import os
import sys
from test.support import TESTFN, import_fresh_module, android_not_root, check_impl_detail
c_stat = import_fresh_module('stat', fresh=['_stat'])
py_stat = import_fresh_module('stat', blocked=['_stat'])
class TestFilemode:
statmod = None
file_flags = {'SF_APPEND', 'SF_ARCHI... | bsd-3-clause | 4,948,673,717,581,392,000 | 35.088235 | 89 | 0.548609 | false |
jonathancrabtree/biocode | lib/bioannotation.py | 1 | 7135 | '''
Warning: this module requires Python 3.2 or higher
This is a set of classes to represent what I have most commonly needed when working on
dozens (eukaryotic) or hundreds (prokaryotic) of annotation projects. If you have
other attributes that you'd like to see supported, please add an 'issue' on the
biocode GitHub... | gpl-3.0 | 604,439,000,297,230,100 | 36.952128 | 164 | 0.623546 | false |
c-matthews/usample | gaussian_mpi.py | 1 | 1453 | #
# Samples a 2d Gaussian using Umbrella sampling in the temperature (parallel version)
#
# Usage:
# > mpirun -np N python gaussian.py
# where "N" is the number of cores to run on, e.g. 4
#
import usample.usample
import numpy as np
import emcee
#
# Sample a 2D Gaussian
#
# Define the log probability function:
#
de... | gpl-3.0 | 5,528,486,023,048,263,000 | 18.373333 | 103 | 0.651755 | false |
halolimat/twester | tf.py | 1 | 3991 | #!/usr/bin/env python
################################################################################
# File name: tf.py #
# Description: This module return all terms frequences in a given wikipage #
#-----------------------------------------------------... | gpl-3.0 | 4,042,651,982,054,023,700 | 36.299065 | 83 | 0.490353 | false |
HyperloopTeam/FullOpenMDAO | lib/python2.7/site-packages/openmdao.main-0.13.0-py2.7.egg/openmdao/main/docs/_downloads/doe.py | 2 | 1400 | import time
from openmdao.main.api import Assembly, Component
from openmdao.lib.drivers.api import DOEdriver
from openmdao.lib.doegenerators.api import FullFactorial, Uniform
from openmdao.examples.simple.paraboloid import Paraboloid
from openmdao.lib.casehandlers.api import JSONCaseRecorder, BSONCaseRecorder
class... | gpl-2.0 | 7,329,888,817,906,396,000 | 28.808511 | 106 | 0.705 | false |
simonolander/euler | euler-329-prime-frog.py | 1 | 1162 | from sympy import isprime, Rational
from Primer import average
"""
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
P P P P N N P P P N P P N P N
"""
length = 500
correct_croaks = ['P', 'P', 'P', 'P', 'N', 'N', 'P', 'P', 'P', 'N', 'P', 'P', 'N', 'P', 'N']
def neighbor_positions(position):
if p... | mit | -6,825,410,458,175,203,000 | 22.714286 | 133 | 0.542169 | false |
Enlik/entropy | client/solo/main.py | 5 | 10668 | # -*- coding: utf-8 -*-
"""
@author: Fabio Erculiani <lxnay@sabayon.org>
@contact: lxnay@sabayon.org
@copyright: Fabio Erculiani
@license: GPL-2
B{Entropy Command Line Client}.
"""
import os
import sys
import errno
import pdb
from entropy.i18n import _
from entropy.output import print_error, pri... | gpl-2.0 | -7,368,033,454,389,261,000 | 29.655172 | 77 | 0.548744 | false |
CDE-UNIBE/qcat | apps/configuration/tests/test_editions.py | 1 | 20913 | from unittest import mock
import pytest
from django.core.exceptions import ObjectDoesNotExist
from qcat.tests import TestCase
from configuration.models import Configuration, Key, Value, Translation, \
Questiongroup, Category
from ..editions.base import Edition, Operation
from ..editions.technologies_2018 import Te... | apache-2.0 | 5,856,779,723,573,640,000 | 34.030151 | 95 | 0.451155 | false |
dsanders11/django-autocomplete-light | autocomplete_light/tests/autocomplete/test_choice_list.py | 3 | 3322 | from __future__ import unicode_literals
from .case import *
class AutocompleteChoiceListMock(
autocomplete_light.AutocompleteChoiceListBase):
limit_choices = 2
choices = (
(0, 'Zero'),
(1, 'One'),
(2, 'Two'),
(3, 'Three'),
(4, 'Four'),
(10, 'Ten'),
)
... | mit | 3,155,479,910,773,984,000 | 25.365079 | 77 | 0.396749 | false |
pombredanne/pyjs | pyjswidgets/pyjamas/chart/GChart.py | 7 | 140409 | """
* Copyright 2007,2008,2009 John C. Gunther
* Copyright (C) 2009 Luke Kenneth Casson Leighton <lkcl@lkcl.net>
*
* 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/lic... | apache-2.0 | 2,531,713,031,180,867,600 | 35.328331 | 195 | 0.647893 | false |
zhangguiyu/django-parler | runtests.py | 6 | 2345 | #!/usr/bin/env python
import sys
import django
from django.conf import settings, global_settings as default_settings
from django.core.management import execute_from_command_line
from os import path
if not settings.configured:
module_root = path.dirname(path.realpath(__file__))
sys.path.insert(0, path.join(mod... | apache-2.0 | 8,126,103,430,128,618,000 | 32.5 | 132 | 0.560341 | false |
cigroup-ol/metaopt | metaopt/tests/integration/invoker/stoppable.py | 1 | 1659 | # -*- coding: utf-8 -*-
"""
Tests for the pluggable invoker.
"""
# Future
from __future__ import absolute_import, division, print_function, \
unicode_literals, with_statement
# Third Party
import nose
from nose.tools.nontrivial import raises
from nose.tools.trivial import eq_
# First Party
from metaopt.concurren... | bsd-3-clause | 5,957,614,345,384,026,000 | 28.105263 | 67 | 0.685353 | false |
okfish/django-oscar-news | oscar_news/cms_toolbars.py | 1 | 2791 | from django.conf import settings
from django.utils.translation import override, ugettext_lazy as _
from cms.toolbar_pool import toolbar_pool
from cms.toolbar_base import CMSToolbar
from cms.toolbar.items import Break
from cms.cms_toolbars import ADMIN_MENU_IDENTIFIER, ADMINISTRATION_BREAK
from cms.utils.urlutils import... | bsd-3-clause | 6,632,153,290,278,175,000 | 47.12069 | 109 | 0.658904 | false |
marwahaha/python-fundamentals | challenges/02-Strings/A_defining_strings.py | 3 | 1028 | # Here we'll just set up some basic strings
# Strings go in quotes, but be careful about quotes in strings!
## You can see that you can create problems when you use a quote character in the
## string. There are a couple ways around this, including putting a backslash
## before the problematic quote, or using a differe... | apache-2.0 | 3,690,921,332,000,683,000 | 33.266667 | 81 | 0.65856 | false |
balloob/home-assistant | homeassistant/components/braviatv/media_player.py | 17 | 11084 | """Support for interface with a Bravia TV."""
import asyncio
import logging
from bravia_tv.braviarc import NoIPControl
import voluptuous as vol
from homeassistant.components.media_player import (
DEVICE_CLASS_TV,
PLATFORM_SCHEMA,
MediaPlayerEntity,
)
from homeassistant.components.media_player.const import... | apache-2.0 | 2,771,387,351,060,543,500 | 29.284153 | 99 | 0.586341 | false |
praekelt/vumi-message-store | vumi_message_store/api/tests/test_message_export_formatters.py | 1 | 5039 | # -*- coding: utf-8 -*-
from twisted.web.test.test_web import DummyRequest
from zope.interface.verify import verifyObject
from vumi_message_store.api.message_export_formatters import (
IMessageExportFormatter, JsonFormatter, CsvFormatter)
from vumi.tests.helpers import VumiTestCase, MessageHelper
class TestJs... | bsd-3-clause | -1,439,515,913,607,114,200 | 34.20979 | 79 | 0.608739 | false |
dman777/image_share | subparsers/parser_setup.py | 1 | 1401 | import argparse
import textwrap
from argparse import RawDescriptionHelpFormatter
import help_text
from subparsers.share_image import share_image_subparser
from subparsers.consumer_set_status import consumer_set_status_subparser
from subparsers.list_custom_images import list_custom_images_subparser
from subparsers.list_... | mit | 421,776,923,276,964,540 | 39.028571 | 72 | 0.73162 | false |
thonkify/thonkify | src/lib/telegram/vendor/ptb_urllib3/urllib3/contrib/ntlmpool.py | 2 | 4477 | """
NTLM authenticating pool, contributed by erikcederstran
Issue #10, see: http://code.google.com/p/urllib3/issues/detail?id=10
"""
from __future__ import absolute_import
from logging import getLogger
from ntlm import ntlm
from .. import HTTPSConnectionPool
from ..packages.six.moves.http_client import HTTPSConnecti... | mit | 583,252,152,338,950,800 | 39.333333 | 77 | 0.553272 | false |
iguzu/gae-django | django/contrib/gis/tests/geoapp/tests_mysql.py | 9 | 8105 | """
A limited test module is used for a limited spatial database.
"""
import os, unittest
from models import Country, City, State, Feature
from django.contrib.gis import gdal
from django.contrib.gis.geos import *
from django.core.exceptions import ImproperlyConfigured
class GeoModelTest(unittest.TestCase):
def t... | bsd-3-clause | 7,902,775,950,816,299,000 | 42.575269 | 116 | 0.625787 | false |
sassoftware/mint | mint/django_rest/rbuilder/platforms/image_type_descriptors/updateIsoImage.py | 1 | 5410 | #
# Copyright (c) SAS Institute Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | apache-2.0 | 1,323,260,371,590,847,000 | 33.903226 | 214 | 0.504251 | false |
laijingtao/landlab | landlab/components/stream_power/tests/test_voronoi_sp.py | 6 | 3536 | """Test the Voronoi compatibility of the grid."""
import os
from six.moves import range
import numpy as np
from numpy.testing import assert_array_equal, assert_array_almost_equal
from landlab import VoronoiDelaunayGrid
from landlab.components.flow_routing import FlowRouter
from landlab.components.stream_power import... | mit | 4,419,020,493,794,689,500 | 46.146667 | 76 | 0.542421 | false |
TaliesinSkye/evennia | contrib/menusystem.py | 2 | 17516 | """
Evennia menu system.
Contribution - Griatch 2011
This module offers the ability for admins to let their game be fully
or partly menu-driven. Menu choices can be numbered or use arbitrary
keys. There are also some formatting options, such a putting options
in one or more collumns.
The menu system consists of a Me... | bsd-3-clause | 4,794,999,498,640,449,000 | 37.838137 | 213 | 0.598767 | false |
qcapen/mpf | tools/config_migrator.py | 2 | 8914 | """Migrates YAML configuration files for MPF from one version to another."""
# config_migrator.py
# Mission Pinball Framework
# Written by Brian Madden & Gabe Knuth
# Released under the MIT License. (See license info at the end of this file.)
import optparse
import os
import shutil
import sys
import time
import dateti... | mit | -5,430,616,331,524,609,000 | 29.844291 | 94 | 0.634059 | false |
ajpina/uffema | uffema/machines/rotating_machine.py | 1 | 3664 | #!/usr/bin/python
# -*- coding: iso-8859-15 -*-
# ==========================================================================
# Copyright (C) 2016 Dr. Alejandro Pina Ortega
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may ob... | apache-2.0 | -5,343,801,695,289,851,000 | 27.850394 | 102 | 0.601801 | false |
valexandersaulys/airbnb_kaggle_contest | venv/lib/python3.4/site-packages/sklearn/feature_selection/from_model.py | 6 | 9561 | # Authors: Gilles Louppe, Mathieu Blondel, Maheshakya Wijewardena
# License: BSD 3 clause
import numpy as np
from .base import SelectorMixin
from ..base import (TransformerMixin, BaseEstimator, clone,
MetaEstimatorMixin)
from ..externals import six
from ..utils import safe_mask, check_array, depr... | gpl-2.0 | -4,840,662,026,222,228,000 | 36.05814 | 79 | 0.608305 | 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.