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 |
|---|---|---|---|---|---|---|---|---|---|---|
sriki18/scipy | scipy/sparse/linalg/_onenormest.py | 96 | 15138 | """Sparse block 1-norm estimator.
"""
from __future__ import division, print_function, absolute_import
import numpy as np
from scipy.sparse.linalg import aslinearoperator
__all__ = ['onenormest']
def onenormest(A, t=2, itmax=5, compute_v=False, compute_w=False):
"""
Compute a lower bound of the 1-norm of ... | bsd-3-clause | -1,855,589,016,059,843,300 | 32.27033 | 79 | 0.586009 | false |
fighterCui/L4ReFiascoOC | l4/pkg/python/contrib/Demo/tkinter/matt/dialog-box.py | 47 | 2440 | from Tkinter import *
from Dialog import Dialog
# this shows how to create a new window with a button in it
# that can create new windows
class Test(Frame):
def printit(self):
print "hi"
def makeWindow(self):
"""Create a top-level dialog with some buttons.
This uses the Dialog class,... | gpl-2.0 | 9,126,449,565,774,107,000 | 37.125 | 79 | 0.496311 | false |
JacobJacob/pyew | pymsasid/inst.py | 16 | 5413 | from operand import O_NONE, P_none
import syn_intel as intel
#hack MK
from syn_intel import intel_operand_syntax
#from syn_att import *
operator_list_invalid = [ 'invalid']
operator_list_call = ['syscall',
'call',
'vmcall',
'vmmcall']
operator_list... | gpl-2.0 | -1,828,253,973,830,055,000 | 26.758974 | 93 | 0.457233 | false |
arpitparmar5739/youtube-dl | youtube_dl/extractor/pornovoisines.py | 113 | 3388 | # coding: utf-8
from __future__ import unicode_literals
import re
import random
from .common import InfoExtractor
from ..utils import (
int_or_none,
float_or_none,
unified_strdate,
)
class PornoVoisinesIE(InfoExtractor):
_VALID_URL = r'http://(?:www\.)?pornovoisines\.com/showvideo/(?P<id>\d+)/(?P<di... | unlicense | 482,959,195,497,267,260 | 34.25 | 99 | 0.552305 | false |
ansible/ansible | lib/ansible/modules/import_role.py | 15 | 3445 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: 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 = r'''
---
author: Ansible Core Team (@ansible)
modul... | gpl-3.0 | -3,256,956,347,243,720,000 | 27.471074 | 129 | 0.678084 | false |
anmolonruby/mongo-connector | mongo_connector/connector.py | 1 | 41715 | # Copyright 2013-2014 MongoDB, 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 writing... | apache-2.0 | -1,058,628,492,018,720,400 | 39.110577 | 91 | 0.571425 | false |
maohongyuan/kbengine | kbe/res/scripts/common/Lib/asyncio/queues.py | 63 | 9019 | """Queues"""
__all__ = ['Queue', 'PriorityQueue', 'LifoQueue', 'JoinableQueue',
'QueueFull', 'QueueEmpty']
import collections
import heapq
from . import events
from . import futures
from . import locks
from .tasks import coroutine
class QueueEmpty(Exception):
'Exception raised by Queue.get(block=0)/... | lgpl-3.0 | 6,359,050,319,699,617,000 | 30.315972 | 79 | 0.587427 | false |
priyankadeswal/network-address-translator | src/fd-net-device/bindings/modulegen_customizations.py | 128 | 1118 | import os
def post_register_types(root_module):
enabled_features = os.environ['NS3_ENABLED_FEATURES'].split(',')
if 'EmuFdNetDevice' not in enabled_features:
if 'ns3::EmuFdNetDeviceHelper'in root_module:
root_module.classes.remove(root_module['ns3::EmuFdNetDeviceHelper'])
if 'TapFdNet... | gpl-2.0 | 3,677,463,507,767,869,400 | 45.583333 | 94 | 0.68873 | false |
tomchristie/django | tests/forms_tests/widget_tests/test_splithiddendatetimewidget.py | 45 | 2390 | from datetime import datetime
from django.forms import SplitHiddenDateTimeWidget
from django.test import override_settings
from django.utils import translation
from .base import WidgetTest
class SplitHiddenDateTimeWidgetTest(WidgetTest):
widget = SplitHiddenDateTimeWidget()
def test_render_empty(self):
... | bsd-3-clause | -7,063,624,504,827,261,000 | 43.259259 | 100 | 0.582008 | false |
mezz64/home-assistant | homeassistant/components/deconz/cover.py | 5 | 3276 | """Support for deCONZ covers."""
from homeassistant.components.cover import (
ATTR_POSITION,
DEVICE_CLASS_WINDOW,
DOMAIN,
SUPPORT_CLOSE,
SUPPORT_OPEN,
SUPPORT_SET_POSITION,
SUPPORT_STOP,
CoverEntity,
)
from homeassistant.core import callback
from homeassistant.helpers.dispatcher import a... | apache-2.0 | -6,904,845,156,815,118,000 | 27.99115 | 77 | 0.614164 | false |
p0nce/tofbot | plugins/lis.py | 2 | 4512 | # Lispy: Scheme Interpreter in Python
# (c) Peter Norvig, 2010-16; See http://norvig.com/lispy.html
from __future__ import division
import math
import operator as op
# Types
Symbol = str # A Lisp Symbol is implemented as a Python str
List = list # A Lisp List is implemented as a Python list
Numb... | bsd-2-clause | -2,001,820,791,099,102,000 | 27.024845 | 78 | 0.537234 | false |
EDUlib/edx-platform | openedx/core/djangoapps/content/block_structure/tests/helpers.py | 4 | 10731 | """
Common utilities for tests in block_structure module
"""
from contextlib import contextmanager
from uuid import uuid4
from unittest.mock import patch
from opaque_keys.edx.locator import BlockUsageLocator, CourseLocator
from xmodule.modulestore.exceptions import ItemNotFoundError
from ..api import get_cache
fro... | agpl-3.0 | 5,292,480,777,940,191,000 | 30.84273 | 153 | 0.630789 | false |
rdelval/gorealis | vendor/git.apache.org/thrift.git/test/py/RunClientServer.py | 14 | 12502 | #!/usr/bin/env python
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "L... | apache-2.0 | 3,355,525,761,540,314,000 | 37.94704 | 140 | 0.581507 | false |
ahuarte47/QGIS | python/plugins/processing/preconfigured/NewPreconfiguredAlgorithmAction.py | 15 | 1871 | # -*- coding: utf-8 -*-
"""
***************************************************************************
NewPreconfiguredAlgorithmAction.py
---------------------
Date : April 2016
Copyright : (C) 2016 by Victor Olaya
Email : volayaf at gmail dot com
********... | gpl-2.0 | 8,637,583,106,124,704,000 | 40.533333 | 116 | 0.538256 | false |
Ffreasy/crazyflie-clients-python | lib/cflib/crazyflie/toccache.py | 31 | 4215 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# || ____ _ __
# +------+ / __ )(_) /_______________ _____ ___
# | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \
# +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/
# || || /_____/_/\__/\___/_/ \__,_/ /___/\___/
#
# Copyright (C) 20... | gpl-2.0 | -5,876,656,982,296,195,000 | 32.452381 | 73 | 0.517912 | false |
eecsu/BET | bet/postProcess/postTools.py | 2 | 12305 | # Copyright (C) 2014-2016 The BET Development Team
"""
This module provides methods for postprocessing probabilities and data.
"""
import logging
import numpy as np
import bet.sample as sample
class dim_not_matching(Exception):
"""
Exception for when the dimension is inconsistent.
"""
class bad_object(E... | gpl-3.0 | -573,817,645,803,026,240 | 38.187898 | 79 | 0.666802 | false |
stackforge/monasca-api | monasca_api/common/policy/policy_engine.py | 1 | 8717 | # Copyright 2017 OP5 AB
# Copyright 2017 FUJITSU LIMITED
# 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
#
# ... | apache-2.0 | 4,959,844,794,876,556,000 | 34.149194 | 79 | 0.63336 | false |
jstoxrocky/statsmodels | statsmodels/regression/tests/test_regression.py | 6 | 37622 | """
Test functions for models.regression
"""
# TODO: Test for LM
from statsmodels.compat.python import long, lrange
import warnings
import pandas
import numpy as np
from numpy.testing import (assert_almost_equal, assert_approx_equal,
assert_raises, assert_equal, assert_allclose)
from scipy.l... | bsd-3-clause | 4,867,643,556,276,461,000 | 33.80296 | 131 | 0.590452 | false |
splav/servo | tests/wpt/web-platform-tests/common/security-features/subresource/font.py | 16 | 4580 | import os, sys, base64
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
import subresource
def generate_payload(request, server_data):
data = ('{"headers": %(headers)s}') % server_data
if "id" in request.GET:
request.server.stash.put(request.GET["id"], data)
# Simple base64 encoded .t... | mpl-2.0 | -2,519,275,568,950,266,400 | 62.611111 | 79 | 0.586463 | false |
ryfeus/lambda-packs | Keras_tensorflow_nightly/source2.7/tensorflow/contrib/factorization/python/ops/gen_factorization_ops.py | 1 | 11829 | """Python wrappers around TensorFlow ops.
This file is MACHINE GENERATED! Do not edit.
Original C++ source file: gen_factorization_ops.cc
"""
import collections as _collections
import six as _six
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
from tensorflow.python.eager import context as _con... | mit | 2,590,565,299,051,894,300 | 39.372014 | 616 | 0.679263 | false |
rmboggs/django | tests/forms_tests/widget_tests/test_splitdatetimewidget.py | 202 | 1943 | from datetime import date, datetime, time
from django.forms import SplitDateTimeWidget
from .base import WidgetTest
class SplitDateTimeWidgetTest(WidgetTest):
widget = SplitDateTimeWidget()
def test_render_empty(self):
self.check_html(self.widget, 'date', '', html=(
'<input type="text" ... | bsd-3-clause | -1,318,895,577,394,594,000 | 37.098039 | 85 | 0.559444 | false |
DIYgod/python | DIYgod/0006/important_word.py | 1 | 1368 | # -*- coding: utf-8 -*-
# 第 0006 题:你有一个目录,放了你一个月的日记,都是 txt,为了避免分词的问题,假设内容都是英文,请统计出你认为每篇日记最重要的词。
import re
import os
# Get all files in designated path
def get_files(path):
filepath = os.listdir(path)
files = []
for fp in filepath:
fppath = path + '/' + fp
if(os.path.isfile(fppath)):
... | mit | 9,018,017,784,309,201,000 | 26.818182 | 74 | 0.575163 | false |
ropable/resource_tracking | tracking/migrations/0006_auto_20200213_1716.py | 1 | 1161 | # Generated by Django 2.1.11 on 2020-02-13 09:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tracking', '0005_device_hidden'),
]
operations = [
migrations.AlterField(
model_name='device',
name='hidden',
... | bsd-3-clause | -1,708,325,020,738,498,800 | 40.464286 | 253 | 0.569337 | false |
chiamingyen/pygroup | wsgi/static/Brython2.1.4-20140810-083054/Lib/functools.py | 730 | 13596 | """functools.py - Tools for working with functions and callable objects
"""
# Python module wrapper for _functools C module
# to allow utilities written in Python to be added
# to the functools module.
# Written by Nick Coghlan <ncoghlan at gmail.com>
# and Raymond Hettinger <python at rcn.com>
# Copyright (C) 2006-2... | gpl-2.0 | -8,797,689,499,681,836,000 | 40.075529 | 93 | 0.528391 | false |
fitermay/intellij-community | python/helpers/py2only/docutils/io.py | 104 | 17048 | # $Id: io.py 7596 2013-01-25 13:42:17Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
I/O classes provide a uniform API for low-level input and output. Subclasses
exist for a variety of input/output mechanisms.
"""
__docformat__ = 'reStructured... | apache-2.0 | 8,932,914,518,473,063,000 | 34.442827 | 84 | 0.554435 | false |
zubron/servo | tests/wpt/harness/wptrunner/wptrunner.py | 50 | 9660 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from __future__ import unicode_literals
import json
import os
import sys
import environment as env
import products
imp... | mpl-2.0 | -3,684,081,465,269,544,000 | 38.109312 | 114 | 0.521222 | false |
hschovanec-usgs/magpy | magpy/lib/format_autodif_fread.py | 2 | 3452 | """
MagPy
Auxiliary input filter - Write AUTODIF read-in data for F (also read)
Written by Rachel Bailey
- contains test and read function, toDo: write function
"""
from magpy.stream import *
def isAUTODIF_FREAD(filename):
"""
Checks whether a file is text POS-1 file format.
"""
try:
line = op... | gpl-3.0 | -7,470,526,449,428,472,000 | 28.254237 | 144 | 0.565469 | false |
neteler/QGIS | python/plugins/processing/algs/qgis/DeleteDuplicateGeometries.py | 6 | 2947 | # -*- coding: utf-8 -*-
"""
***************************************************************************
DeleteDuplicateGeometries.py
---------------------
Date : May 2010
Copyright : (C) 2010 by Michael Minn
Email : pyqgis at michaelminn dot com
***********... | gpl-2.0 | 1,474,510,051,428,170,000 | 35.382716 | 76 | 0.536817 | false |
felixonmars/babel | tests/test_plural.py | 11 | 8301 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2008-2011 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://babel.edgewall.org/wiki/License.
#
# This software consists... | bsd-3-clause | 8,445,123,276,048,686,000 | 31.552941 | 77 | 0.540055 | false |
bxlab/bx-python | lib/bx/cookbook/doc_optparse.py | 1 | 2840 | """
:Author: M. Simionato
:Date: April 2004
:Title: A much simplified interface to optparse.
You should use optionparse in your scripts as follows.
First, write a module level docstring containing something like this
(this is just an example)::
'''usage: %prog files [options]
-d, --delete: delete all files... | mit | -8,315,270,348,796,834,000 | 28.583333 | 80 | 0.627817 | false |
suryaambrose/code_bits | decompose_number_on_base.py | 1 | 1690 |
# Standard library
import unittest
def decompose_number_on_base(number, base):
"""
Returns a number's decomposition on a defined base
:param number: The number to decompose
:param base: list representing the base. It must be sorted and
each element must be a multiple of its predecessor. First element
must be 1... | mit | -830,798,061,533,962,200 | 27.183333 | 81 | 0.670414 | false |
SOKP/kernel_cyanogen_msm8916 | scripts/build-all.py | 704 | 14699 | #! /usr/bin/env python
# Copyright (c) 2009-2014, The Linux Foundation. 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
# ... | gpl-2.0 | 6,500,356,498,737,040,000 | 33.183721 | 86 | 0.580312 | false |
ivaano/zato | code/zato-server/src/zato/server/service/internal/outgoing/odoo.py | 6 | 2708 | # -*- coding: utf-8 -*-
"""
Copyright (C) 2014 Dariusz Suchojad <dsuch at zato.io>
Licensed under LGPLv3, see LICENSE.txt for terms and conditions.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
# stdlib
from contextlib import closing
from time import time
from uuid import uu... | gpl-3.0 | -791,674,962,149,542,800 | 30.126437 | 109 | 0.694978 | false |
WadeYuChen/django-oscar | src/oscar/apps/dashboard/partners/views.py | 8 | 10728 | from django.contrib import messages
from django.contrib.auth.models import Permission
from django.core.urlresolvers import reverse_lazy, reverse
from django.shortcuts import get_object_or_404, redirect
from django.utils.translation import ugettext_lazy as _
from django.template.loader import render_to_string
from djang... | bsd-3-clause | -8,535,434,178,053,574,000 | 35.243243 | 79 | 0.618848 | false |
hmoco/osf.io | scripts/migration/migrate_meetings_preprints_to_preprintservices.py | 9 | 58159 | from datetime import timedelta
import json
import logging
import re
import sys
from modularodm import Q
from modularodm.storage.base import KeyExistsException
from modularodm.exceptions import NoResultsFound
from framework.mongo import database
from framework.transactions.context import TokuTransaction
from scripts i... | apache-2.0 | -5,792,235,606,305,090,000 | 41.826951 | 402 | 0.51722 | false |
fly19890211/edx-platform | common/lib/xmodule/xmodule/modulestore/inheritance.py | 52 | 13259 | """
Support for inheritance of fields down an XBlock hierarchy.
"""
from __future__ import absolute_import
from datetime import datetime
from pytz import UTC
from xmodule.partitions.partitions import UserPartition
from xblock.fields import Scope, Boolean, String, Float, XBlockMixin, Dict, Integer, List
from xblock.run... | agpl-3.0 | 208,249,426,258,677,340 | 40.564263 | 407 | 0.648993 | false |
tellybug/dynamodb-mock | tests/functional/boto/test_query.py | 2 | 8037 | # -*- coding: utf-8 -*-
import unittest
import boto
TABLE_NAME = 'Table-HR'
TABLE_NAME_404 = 'Waldo'
TABLE_RT = 45
TABLE_WT = 123
TABLE_RT2 = 10
TABLE_WT2 = 10
TABLE_HK_NAME = u'hash_key'
TABLE_HK_TYPE = u'N'
TABLE_RK_NAME = u'range_key'
TABLE_RK_TYPE = u'S'
HK_VALUE = u'123'
HK_VALUE_404 = u'404'
RK_VALUE1 = u'Wald... | lgpl-3.0 | -509,470,251,985,386,500 | 29.328302 | 103 | 0.55792 | false |
cezary12/blaze | blaze/io/scidb/query.py | 13 | 3519 | """
SciDB query generation and execution. The query building themselves are
fairly low-level, since their only concern is whether to generate temporary
arrays or not.
"""
from __future__ import absolute_import, division, print_function
import uuid
from itertools import chain
#----------------------------------------... | bsd-3-clause | 5,839,656,666,500,585,000 | 29.608696 | 79 | 0.521171 | false |
jumpojoy/neutron | neutron/common/utils.py | 2 | 17935 | # Copyright 2011, 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 | -6,411,567,067,371,682,000 | 33.096958 | 79 | 0.603067 | false |
sajeeshcs/nested_quota | doc/source/conf.py | 18 | 9425 | # -*- coding: utf-8 -*-
#
# nova documentation build configuration file, created by
# sphinx-quickstart on Sat May 1 15:17:47 2010.
#
# 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 | -9,079,635,192,354,095,000 | 33.650735 | 84 | 0.681167 | false |
cherusk/ansible | lib/ansible/plugins/lookup/inventory_hostnames.py | 117 | 1942 | # (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# (c) 2013, Steven Dossett <sdossett@panath.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 versio... | gpl-3.0 | 2,472,174,354,347,261,000 | 33.070175 | 83 | 0.623069 | false |
luiseduardohdbackup/odoo | addons/website_gengo/controllers/main.py | 350 | 1799 | # -*- coding: utf-8 -*-
import openerp
from openerp import http, SUPERUSER_ID
from openerp.http import request
import time
GENGO_DEFAULT_LIMIT = 20
class website_gengo(http.Controller):
@http.route('/website/get_translated_length', type='json', auth='user', website=True)
def get_translated_length(self, tran... | agpl-3.0 | -3,846,516,236,858,520,600 | 45.128205 | 146 | 0.670928 | false |
fcolamar/AliPhysics | PWGJE/EMCALJetTasks/Tracks/analysis/ext/__init__.py | 369 | 1063 | #**************************************************************************
#* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
#* *
#* Author: The ALICE Off-line Project. *
#* Contributors ... | bsd-3-clause | -2,974,482,915,423,181,000 | 75 | 75 | 0.482596 | false |
HPNetworking/HP-Intelligent-Management-Center | build/lib/pyhpimc/plat/groups.py | 3 | 4490 | '''Copyright 2015 Chris Young
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
dis... | apache-2.0 | -8,054,688,239,667,306,000 | 40.583333 | 134 | 0.678619 | false |
ArcherCraftStore/ArcherVMPeridot | Python/Lib/encodings/big5hkscs.py | 816 | 1039 | #
# big5hkscs.py: Python Unicode Codec for BIG5HKSCS
#
# Written by Hye-Shik Chang <perky@FreeBSD.org>
#
import _codecs_hk, codecs
import _multibytecodec as mbc
codec = _codecs_hk.getcodec('big5hkscs')
class Codec(codecs.Codec):
encode = codec.encode
decode = codec.decode
class IncrementalEncoder(mbc.Multib... | apache-2.0 | 8,997,595,608,263,025,000 | 25.641026 | 74 | 0.703561 | false |
Cheppers/zulip | zerver/management/commands/add_users_to_streams.py | 113 | 2394 | from __future__ import absolute_import
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 Realm, UserProfile, get_user_profile_by_email
class Command(BaseCommand):
help = """Ad... | apache-2.0 | 6,632,769,799,165,786,000 | 41.75 | 93 | 0.553049 | false |
c0defreak/python-for-android | python3-alpha/python3-src/Lib/idlelib/UndoDelegator.py | 67 | 10305 | import string
from tkinter import *
from idlelib.Delegator import Delegator
#$ event <<redo>>
#$ win <Control-y>
#$ unix <Alt-z>
#$ event <<undo>>
#$ win <Control-z>
#$ unix <Control-z>
#$ event <<dump-undo-state>>
#$ win <Control-backslash>
#$ unix <Control-backslash>
class UndoDelegator(Delegator):
max_und... | apache-2.0 | 8,614,393,566,248,164,000 | 28.275568 | 75 | 0.554876 | false |
mahmoud/hematite | hematite/tests/test_url.py | 1 | 4540 | # -*- coding: utf-8 -*-
#from compat import unicode, bytes
# TODO: round-tripping tests
import pytest
from hematite.url import URL, _URL_RE, parse_authority
TEST_URLS = [
'*', # e.g., OPTIONS *
'http://googlewebsite.com/e-shops.aspx',
'http://example.com:8080/search?q=123&business=Nothing%20Special',... | bsd-3-clause | 7,513,489,347,499,159,000 | 28.763158 | 77 | 0.635279 | false |
matmutant/sl4a | python/src/Lib/test/test_threaded_import.py | 77 | 2535 | # This is a variant of the very old (early 90's) file
# Demo/threads/bug.py. It simply provokes a number of threads into
# trying to import the same module "at the same time".
# There are no pleasant failure modes -- most likely is that Python
# complains several times about module random having no attribute
# randran... | apache-2.0 | -7,247,927,586,235,504,000 | 32.8 | 73 | 0.669428 | false |
foundit/Piped | doc/tutorials/twitter/1_basic/twitter_tutorial/provider.py | 2 | 1500 | import tweepy
from zope import interface
from twisted.application import service
from twisted.internet import defer, threads, reactor
from piped import exceptions, log, resource, util
class MyTwitterProvider(object):
# state that we are a resource provider, so that the piped plugin system finds us
interface.... | mit | -8,478,760,929,149,595,000 | 41.857143 | 112 | 0.706667 | false |
jiemakel/omorfi | src/python/omorfi/apertium_formatter.py | 1 | 14261 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Functions to format apertium style analyses from omorfi data."""
# Author: Omorfi contributors <omorfi-devel@groups.google.com> 2015
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as pu... | gpl-3.0 | -961,318,677,182,429,800 | 27.763636 | 80 | 0.421478 | false |
ojii/django-cms | cms/tests/navextender.py | 27 | 3475 | # -*- coding: utf-8 -*-
from __future__ import with_statement
from cms.models import Page
from cms.test_utils.fixtures.navextenders import NavextendersFixture
from cms.test_utils.testcases import SettingsOverrideTestCase
from cms.test_utils.util.menu_extender import TestMenu
from django.conf import settings
from django... | bsd-3-clause | 546,447,794,242,377,400 | 36.365591 | 85 | 0.610072 | false |
kow3ns/contrib | rescheduler/vendor/github.com/ugorji/go/codec/test.py | 1516 | 4019 | #!/usr/bin/env python
# This will create golden files in a directory passed to it.
# A Test calls this internally to create the golden files
# So it can process them (so we don't have to checkin the files).
# Ensure msgpack-python and cbor are installed first, using:
# sudo apt-get install python-dev
# sudo apt-g... | apache-2.0 | 8,253,453,196,340,918,000 | 30.896825 | 96 | 0.569545 | false |
CSC301H-Fall2013/JuakStore | site-packages/tests/regressiontests/managers_regress/tests.py | 46 | 7920 | from __future__ import absolute_import
import copy
from django.conf import settings
from django.db import models
from django.db.models.loading import cache
from django.test import TestCase
from django.test.utils import override_settings
from .models import (
Child1,
Child2,
Child3,
Child4,
Child5,... | mit | 1,195,267,344,263,632,000 | 39.824742 | 130 | 0.609722 | false |
Epirex/android_external_chromium_org | tools/perf/metrics/media.py | 23 | 2791 | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
import os
from metrics import Metric
class MediaMetric(Metric):
"""MediaMetric class injects and calls JS responsible for recording metric... | bsd-3-clause | 3,301,479,785,618,899,500 | 32.22619 | 80 | 0.647796 | false |
bbrezillon/linux-sunxi | tools/perf/scripts/python/export-to-postgresql.py | 293 | 26298 | # export-to-postgresql.py: export perf data to a postgresql database
# Copyright (c) 2014, Intel Corporation.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# Thi... | gpl-2.0 | 1,330,984,015,306,651,000 | 35.323204 | 360 | 0.674462 | false |
provaleks/o8 | addons/website_certification/controllers/main.py | 373 | 2149 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-TODAY OpenERP S.A. <http://www.openerp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms... | agpl-3.0 | -1,575,957,588,092,809,500 | 42.857143 | 114 | 0.629595 | false |
apagac/cfme_tests | cfme/tests/cloud_infra_common/test_retirement_manual.py | 2 | 3580 | # -*- coding: utf-8 -*-
# pylint: skip-file
"""Manual tests"""
import pytest
from cfme import test_requirements
pytestmark = [
pytest.mark.ignore_stream('upstream'),
pytest.mark.manual,
test_requirements.retirement
]
@pytest.mark.tier(2)
def test_retire_infra_vms_folder():
"""
test the retire fu... | gpl-2.0 | -8,732,525,682,461,570,000 | 23.520548 | 74 | 0.663687 | false |
svirusxxx/cjdns | node_build/dependencies/libuv/build/gyp/test/gyp-defines/gyptest-multiple-values.py | 47 | 1314 | #!/usr/bin/env python
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Verifies that when multiple values are supplied for a gyp define, the last one
is used.
"""
import os
import TestGyp
test = TestGyp.Te... | gpl-3.0 | 464,753,058,703,018,200 | 30.285714 | 78 | 0.733638 | false |
yf2009017/huhamhire-hosts | _build.py | 24 | 11102 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# _build.py : Tools to make packages for different platforms
#
# Copyleft (C) 2014 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
... | gpl-3.0 | -4,614,772,202,932,472,000 | 31.273256 | 78 | 0.558998 | false |
KellyChan/Python | javascript/backbone/backbone-templates/backbone-fileupload/venvs/lib/python2.7/site-packages/django/contrib/admin/templatetags/admin_modify.py | 98 | 2293 | from django import template
register = template.Library()
@register.inclusion_tag('admin/prepopulated_fields_js.html', takes_context=True)
def prepopulated_fields_js(context):
"""
Creates a list of prepopulated_fields that should render Javascript for
the prepopulated fields for both the admin form and in... | mit | 1,659,611,317,826,097,400 | 39.946429 | 85 | 0.635848 | false |
ndp-systemes/odoo-addons | stock_account_improved/stock_account_improved.py | 1 | 1355 | # -*- coding: utf8 -*-
#
# Copyright (C) 2017 NDP Systèmes (<http://www.ndp-systemes.fr>).
#
# 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
# Licen... | agpl-3.0 | 2,104,406,411,903,891,000 | 38.823529 | 99 | 0.691285 | false |
rghe/ansible | lib/ansible/modules/cloud/amazon/aws_sgw_facts.py | 20 | 11531 | #!/usr/bin/python
# Copyright (c) 2018 Loic BLOT <loic.blot@unix-experience.fr>
# This module is sponsored by E.T.A.I. (www.etai.fr)
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | gpl-3.0 | 3,598,023,190,552,389,600 | 31.573446 | 112 | 0.591709 | false |
yakky/django | django/contrib/gis/gdal/raster/source.py | 17 | 13572 | import json
import os
from ctypes import addressof, byref, c_double, c_void_p
from django.contrib.gis.gdal.base import GDALBase
from django.contrib.gis.gdal.driver import Driver
from django.contrib.gis.gdal.error import GDALException
from django.contrib.gis.gdal.prototypes import raster as capi
from django.contrib.gis... | bsd-3-clause | -3,694,522,684,417,132,000 | 32.761194 | 112 | 0.585396 | false |
AOSPU/external_chromium_org | build/android/pylib/utils/flakiness_dashboard_results_uploader.py | 11 | 7863 | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Uploads the results to the flakiness dashboard server."""
# pylint: disable=E1002,R0201
import logging
import os
import shutil
import sys
import temp... | bsd-3-clause | 3,862,580,606,380,291,600 | 36.802885 | 80 | 0.667048 | false |
AltarBeastiful/qt-creator | tests/system/suite_SCOM/tst_SCOM04/test.py | 4 | 3506 | #############################################################################
##
## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
## Contact: http://www.qt-project.org/legal
##
## This file is part of Qt Creator.
##
## Commercial License Usage
## Licensees holding valid commercial Qt licenses may use this f... | lgpl-2.1 | -5,114,908,739,355,210,000 | 49.085714 | 132 | 0.678551 | false |
astrorafael/ema | ema/mqttclient.py | 1 | 13699 | # ----------------------------------------------------------------------
# Copyright (c) 2015 Rafael Gonzalez.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including... | mit | 1,719,672,702,868,759,800 | 33.681013 | 120 | 0.591795 | false |
Jorl17/jar2app | jar2app.py | 1 | 25831 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
##
## Copyright (C) 2015-2018 João Ricardo Lourenço <jorl17.8@gmail.com>
##
## Github: https://github.com/Jorl17
##
## Project main repository: https://github.com/Jorl17/jar2app
##
## This file is part of jar2app.
##
## jar2app is free software: you can redistribute it and/... | gpl-2.0 | 722,115,594,481,827,200 | 48.382409 | 249 | 0.589306 | false |
rahuldhote/odoo | addons/website_quote/controllers/main.py | 83 | 8996 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013-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 | -4,916,520,339,369,498,000 | 51.302326 | 162 | 0.615385 | false |
francof2a/APC | sources/dataset.py | 1 | 4426 | # Module related with dataset
import os
import urllib
import zipfile
import numpy as np
def download(dataset_name = 'UCI HAR'):
""""Download database to local folder
"""
# Init
dataset_valid = False
dataset_folder = "./"
download_folder = os.path.abspath("../dataset/donwload/") + "... | gpl-3.0 | -8,843,835,220,582,871,000 | 28.317881 | 119 | 0.548577 | false |
kamcpp/tensorflow | tensorflow/python/framework/contrib_test.py | 23 | 1521 | # Copyright 2015 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 | -652,221,414,502,769,800 | 33.568182 | 80 | 0.701512 | false |
google/rysim | python/results_analyzer/Main.py | 1 | 119456 | # Copyright 2014 The RySim 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 law o... | apache-2.0 | -456,720,360,468,172,540 | 55.938036 | 120 | 0.525164 | false |
Peddle/hue | desktop/core/src/desktop/migrations/0012_auto__chg_field_documentpermission_perms.py | 30 | 8715 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'DocumentPermission.perms'
db.alter_column(u'desktop_do... | apache-2.0 | 7,916,051,459,008,315,000 | 74.791304 | 195 | 0.559266 | false |
MonicaHsu/truvaluation | venv/lib/python2.7/site-packages/flask/templating.py | 783 | 4707 | # -*- coding: utf-8 -*-
"""
flask.templating
~~~~~~~~~~~~~~~~
Implements the bridge to Jinja2.
:copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
import posixpath
from jinja2 import BaseLoader, Environment as BaseEnvironment, \
TemplateNotFound
from .glo... | mit | 2,457,897,741,085,516,000 | 31.916084 | 83 | 0.612492 | false |
mmottahedi/neuralnilm_prototype | scripts/e349.py | 2 | 6140 | from __future__ import print_function, division
import matplotlib
import logging
from sys import stdout
matplotlib.use('Agg') # Must be before importing matplotlib.pyplot or pylab!
from neuralnilm import (Net, RealApplianceSource,
BLSTMLayer, DimshuffleLayer,
Bidirectio... | mit | 4,608,381,862,903,523,000 | 30.167513 | 86 | 0.580619 | false |
lionloveqin/gstreamill | test/m3u8client.py | 3 | 1581 |
"""
pip install m3u8 first, please
"""
import sys
import m3u8
import time
import urllib2
import os
url = "http://localhost:20119/cctv21/encoder/0/playlist.m3u8"
media_sequence = 0
playlist = m3u8.load(url)
while playlist.is_variant:
url = playlist.base_uri + "/" + playlist.playlists[0].uri
playlist = m3u8.l... | gpl-3.0 | 5,587,781,003,607,756,000 | 27.232143 | 96 | 0.616698 | false |
hgonzale/hssim | polyped/util.py | 1 | 1885 | import copy
class Lambda(object):
"""
Lambda lambda-like class
Acts like a lambda function, but its string representation
is Python code that yields the object when executed.
>>> f = Lambda('x : x**2')
>>> f(1.41)
1.9880999999999998
>>> g = eval(str(f))
>>> g(2.82)
7.95239999... | bsd-2-clause | 1,351,704,746,592,097,300 | 25.180556 | 70 | 0.522546 | false |
mfeurer/liac-arff | tests/test_data.py | 1 | 9741 | import types
import unittest
import arff
class ConversorStub(object):
def __init__(self, r_value):
self.r_value = r_value
def __call__(self, value):
return self.r_value(value)
class COOStub(object):
def __init__(self, data, row, col):
self.data = data
self.row = row
... | mit | -1,370,606,490,509,260,000 | 36.183206 | 80 | 0.520994 | false |
clips-tk/gradefisl | sample-settings.py | 1 | 5008 | # Django settings for minha_grade_fisl project.
import os
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
... | mit | -5,491,289,979,042,328,000 | 30.898089 | 79 | 0.699081 | false |
liu602348184/django | tests/utils_tests/test_dateformat.py | 265 | 6177 | from __future__ import unicode_literals
from datetime import date, datetime
from django.test import SimpleTestCase, override_settings
from django.test.utils import TZ_SUPPORT, requires_tz_support
from django.utils import dateformat, translation
from django.utils.dateformat import format
from django.utils.timezone imp... | bsd-3-clause | 1,270,093,093,130,593,500 | 44.755556 | 111 | 0.640926 | false |
zjuwangg/scrapy | scrapy/spidermiddlewares/urllength.py | 152 | 1059 | """
Url Length Spider Middleware
See documentation in docs/topics/spider-middleware.rst
"""
import logging
from scrapy.http import Request
from scrapy.exceptions import NotConfigured
logger = logging.getLogger(__name__)
class UrlLengthMiddleware(object):
def __init__(self, maxlength):
self.maxlength ... | bsd-3-clause | -127,814,537,147,781,490 | 27.621622 | 84 | 0.607177 | false |
jerrylei98/Dailydos | venv/lib/python2.7/site-packages/jinja2/runtime.py | 335 | 22530 | # -*- coding: utf-8 -*-
"""
jinja2.runtime
~~~~~~~~~~~~~~
Runtime helpers.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD.
"""
import sys
from itertools import chain
from jinja2.nodes import EvalContext, _context_function_types
from jinja2.utils import Markup, soft_unicode, escape, missing... | mit | 8,344,343,672,676,308,000 | 32.778111 | 96 | 0.566001 | false |
i386x/doit | doit/support/app/errors.py | 1 | 2027 | # -*- coding: utf-8 -*-
#! \file ./doit/support/app/errors.py
#! \author Jiří Kučera, <sanczes@gmail.com>
#! \stamp 2016-09-03 14:38:52 (UTC+01:00, DST+01:00)
#! \project DoIt!: Tools and Libraries for Building DSLs
#! \license MIT
#! \version 0.0.0
#! \fdes... | mit | 3,798,925,105,162,348,500 | 29.621212 | 79 | 0.670955 | false |
Tilo15/PhotoFiddle2 | PF2/Tools/Denoise.py | 1 | 1956 | import cv2
import Tool
from scipy import ndimage
class Denoise(Tool.Tool):
def on_init(self):
self.id = "denoise"
self.name = "Denoise"
self.icon_path = "ui/PF2_Icons/Denoise.png"
self.properties = [
# Detailer
Tool.Property("enabled", "Denoise", "Header", F... | gpl-3.0 | -9,079,458,874,268,996,000 | 37.352941 | 100 | 0.514826 | false |
dahlstrom-g/intellij-community | python/helpers/py3only/docutils/readers/__init__.py | 170 | 3465 | # $Id: __init__.py 7648 2013-04-18 07:36:22Z milde $
# Authors: David Goodger <goodger@python.org>; Ueli Schlaepfer
# Copyright: This module has been placed in the public domain.
"""
This package contains Docutils Reader modules.
"""
__docformat__ = 'reStructuredText'
import sys
from docutils import utils, parsers,... | apache-2.0 | -3,942,269,144,584,981,000 | 29.663717 | 78 | 0.644156 | false |
peterlauri/django | django/templatetags/static.py | 91 | 4391 | from django import template
from django.apps import apps
from django.utils.encoding import iri_to_uri
from django.utils.six.moves.urllib.parse import urljoin
register = template.Library()
class PrefixNode(template.Node):
def __repr__(self):
return "<PrefixNode for %r>" % self.name
def __init__(self... | bsd-3-clause | 5,384,387,752,229,967,000 | 25.93865 | 116 | 0.591893 | false |
yencarnacion/jaikuengine | .google_appengine/lib/django-1.5/django/utils/tzinfo.py | 110 | 3247 | "Implementation of tzinfo classes for use with datetime.datetime."
from __future__ import unicode_literals
import time
from datetime import timedelta, tzinfo
from django.utils.encoding import force_str, force_text, DEFAULT_LOCALE_ENCODING
# Python's doc say: "A tzinfo subclass must have an __init__() method that ca... | apache-2.0 | 2,230,284,132,824,383,000 | 31.47 | 87 | 0.587927 | false |
eg-zhang/scikit-learn | benchmarks/bench_mnist.py | 76 | 6136 | """
=======================
MNIST dataset benchmark
=======================
Benchmark on the MNIST dataset. The dataset comprises 70,000 samples
and 784 features. Here, we consider the task of predicting
10 classes - digits from 0 to 9 from their raw images. By contrast to the
covertype dataset, the feature space is... | bsd-3-clause | 662,011,068,475,212,700 | 35.963855 | 80 | 0.569915 | false |
andris210296/andris-projeto | backend/venv/lib/python2.7/site-packages/pip/_vendor/html5lib/trie/py.py | 1323 | 1775 | from __future__ import absolute_import, division, unicode_literals
from pip._vendor.six import text_type
from bisect import bisect_left
from ._base import Trie as ABCTrie
class Trie(ABCTrie):
def __init__(self, data):
if not all(isinstance(x, text_type) for x in data.keys()):
raise TypeError... | mit | -3,805,703,339,996,145,700 | 25.492537 | 66 | 0.552676 | false |
ciarams87/PyU4V | docs/source/programmers_guide_src/code/performance-diagnostic_calls.py | 2 | 2738 | # Copyright (c) 2020 Dell Inc. or its subsidiaries.
#
# 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... | mit | -3,690,300,471,233,520,000 | 41.78125 | 76 | 0.735939 | false |
ESS-LLP/erpnext-healthcare | erpnext/hr/report/department_analytics/department_analytics.py | 11 | 1903 | # Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
def execute(filters=None):
if not filters: filters = {}
columns = get_columns()
employees = get_employees(filters)
depar... | gpl-3.0 | 8,818,555,275,118,910,000 | 30.716667 | 102 | 0.68103 | false |
ujjwalsharma045/Angular2-Creative-Tim-Admin-Theme-With-Code- | node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py | 1812 | 9537 | # Copyright (c) 2013 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Utility functions shared amongst the Windows generators."""
import copy
import os
# A dictionary mapping supported target types to extensions.
TARGET_TYPE_EX... | mit | -9,221,370,984,675,481,000 | 34.322222 | 80 | 0.66761 | false |
swift-lang/swift-e-lab | parsl/addresses.py | 1 | 1381 | import logging
import os
import platform
import requests
import socket
import fcntl
import struct
logger = logging.getLogger(__name__)
def address_by_route():
logger.debug("Finding address by querying local routing table")
addr = os.popen("/sbin/ip route get 8.8.8.8 | awk '{print $NF;exit}'").read().strip()
... | apache-2.0 | -4,019,134,570,393,182,700 | 27.770833 | 143 | 0.673425 | false |
Dobatymo/livestreamer | src/livestreamer/plugins/livestation.py | 34 | 2666 | import re
from livestreamer.plugin import Plugin, PluginError, PluginOptions
from livestreamer.plugin.api import http, validate
from livestreamer.stream import HLSStream
LOGIN_PAGE_URL = "http://www.livestation.com/en/users/new"
LOGIN_POST_URL = "http://www.livestation.com/en/sessions.json"
_csrf_token_re = re.compi... | bsd-2-clause | -4,288,592,926,004,190,000 | 29.295455 | 89 | 0.599775 | false |
SnoringFrog/retain | retain/__init__.py | 1 | 9569 | #!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
'''
retain - Command-line utility that removes all files except the ones
specified on the command line.
Usage:
------
retain [-fnrsv] [-d directory] filename [...]
Options:
--------
--directory <dir> The directory to operate on. Defaults to the current
... | bsd-3-clause | 5,046,276,541,689,229,000 | 29.571885 | 116 | 0.514474 | false |
byterom/android_external_chromium_org | third_party/cython/src/Cython/Plex/Traditional.py | 102 | 3502 | #=======================================================================
#
# Python Lexical Analyser
#
# Traditional Regular Expression Syntax
#
#=======================================================================
from Regexps import Alt, Seq, Rep, Rep1, Opt, Any, AnyBut, Bol, Eol, Char
from Errors import Plex... | bsd-3-clause | -2,021,016,205,671,642,400 | 21.74026 | 78 | 0.506568 | false |
Spiderlover/Toontown | toontown/toon/DistributedNPCBankerAI.py | 3 | 3381 | from otp.ai.AIBaseGlobal import *
from direct.task.Task import Task
from pandac.PandaModules import *
from DistributedNPCToonBaseAI import *
from toontown.estate import BankGlobals
class DistributedNPCBankerAI(DistributedNPCToonBaseAI):
FourthGagVelvetRopeBan = config.GetBool('want-ban-fourth-gag-velvet-rope', 0)
... | mit | -847,188,060,848,581,900 | 30.598131 | 81 | 0.628217 | false |
Azure/azure-sdk-for-python | sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/_configuration.py | 1 | 3355 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | -802,870,887,900,001,000 | 46.253521 | 173 | 0.677496 | false |
anaruse/chainer | tests/chainer_tests/functions_tests/math_tests/test_trigonometric.py | 2 | 6481 | import unittest
import numpy
import chainer
from chainer.backends import cuda
import chainer.functions as F
from chainer import gradient_check
from chainer import testing
from chainer.testing import attr
@testing.parameterize(*testing.product({
'func_name': ['cos', 'sin', 'tan'],
'shape': [(3, 2), ()],
... | mit | -6,865,400,044,098,279,000 | 32.407216 | 77 | 0.590495 | false |
nburn42/tensorflow | tensorflow/python/pywrap_tensorflow.py | 33 | 3219 | # 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 | 4,763,410,037,395,336,000 | 41.355263 | 85 | 0.742467 | 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.