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 |
|---|---|---|---|---|---|---|---|---|---|---|
nachtmaar/androlyze | androlyze/util/Util.py | 1 | 8887 |
# encoding: utf-8
__author__ = "Nils Tobias Schmidt"
__email__ = "schmidt89 at informatik.uni-marburg.de"
'''
Utility module
'''
from Queue import Empty
import itertools
from os.path import splitext
import re
import sys
import time
import traceback
from androlyze.log.Log import log
def sha256(data):
'''
... | mit | -6,679,354,277,092,820,000 | 24.17847 | 114 | 0.542365 | false |
mottosso/mindbender-setup | bin/windows/python36/Lib/os.py | 22 | 37442 | r"""OS routines for NT or Posix depending on what system we're on.
This exports:
- all functions from posix or nt, e.g. unlink, stat, etc.
- os.path is either posixpath or ntpath
- os.name is either 'posix' or 'nt'
- os.curdir is a string representing the current directory (always '.')
- os.pardir is a strin... | mit | 1,276,755,066,181,899,000 | 34.090909 | 95 | 0.609503 | false |
chrischabot/opensocial-python-client | tests/opensocial_tests/oauth_test.py | 4 | 1242 | #!/usr/bin/python
#
# Copyright (C) 2007, 2008 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 applicabl... | apache-2.0 | -262,515,503,489,492,100 | 27.883721 | 74 | 0.728663 | false |
spreg-git/pysal | pysal/spreg/error_sp_hom_regimes.py | 4 | 70548 | '''
Hom family of models with regimes.
'''
__author__ = "Luc Anselin luc.anselin@asu.edu, Pedro V. Amaral pedro.amaral@asu.edu, Daniel Arribas-Bel darribas@asu.edu"
from scipy import sparse as SP
import numpy as np
import multiprocessing as mp
from numpy import linalg as la
from pysal import lag_spatial
from utils i... | bsd-3-clause | 4,613,037,802,844,222,000 | 46.157754 | 206 | 0.559874 | false |
fxia22/ASM_xf | PythonD/lib/python2.4/distutils/log.py | 7 | 1424 | """A simple log mechanism styled after PEP 282."""
# This module should be kept compatible with Python 2.1.
# The class here is styled after PEP 282 so that it could later be
# replaced with a standard Python logging implementation.
DEBUG = 1
INFO = 2
WARN = 3
ERROR = 4
FATAL = 5
import sys
class Log:
def __i... | gpl-2.0 | -6,631,127,891,789,820,000 | 21.25 | 66 | 0.613062 | false |
manikTharaka/al-go-rithms | cryptography/ElGamal/Python/ElGamal.py | 2 | 1960 | from algo import mod_inv
from random import randrange, randint
from ecurves import *
def elgalmal_encrypt(M,k,a,p):
'''
Input:
M - menssage
k - recipient private key
a - generator
p - prime
Output (c1,c2) [Encrypted]
'''
s = randrange... | mit | 7,395,037,752,120,106,000 | 22.614458 | 75 | 0.583163 | false |
dongguangming/youtube-dl | youtube_dl/extractor/kuwo.py | 22 | 11149 | # coding: utf-8
from __future__ import unicode_literals
import re
import itertools
from .common import InfoExtractor
from ..utils import (
get_element_by_id,
clean_html,
ExtractorError,
remove_start,
)
class KuwoBaseIE(InfoExtractor):
_FORMATS = [
{'format': 'ape', 'ext': 'ape', 'prefere... | unlicense | 2,424,230,698,813,052,400 | 33.726984 | 111 | 0.502514 | false |
ericzundel/pants | tests/python/pants_test/base/test_worker_pool.py | 33 | 1085 | # coding=utf-8
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import threading
imp... | apache-2.0 | -7,519,050,871,970,575,000 | 29.138889 | 93 | 0.710599 | false |
jjas0nn/solvem | tensorflow/lib/python2.7/site-packages/tensorflow/contrib/distributions/python/ops/laplace.py | 11 | 6785 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | mit | -1,253,398,606,477,927,000 | 33.794872 | 92 | 0.645099 | false |
pravsripad/mne-python | mne/__init__.py | 4 | 5932 | """MNE software for MEG and EEG data analysis."""
# PEP0440 compatible formatted version, see:
# https://www.python.org/dev/peps/pep-0440/
#
# Generic release markers:
# X.Y
# X.Y.Z # For bugfix releases
#
# Admissible pre-release markers:
# X.YaN # Alpha release
# X.YbN # Beta release
# X.YrcN # Rele... | bsd-3-clause | -5,113,474,264,765,741,000 | 44.282443 | 84 | 0.634019 | false |
Radium-Devices/Radium_shamu | scripts/build-all.py | 236 | 11419 | #! /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 | -1,536,280,697,704,248,300 | 34.908805 | 83 | 0.568876 | false |
jeroenseegers/git-history | setup.py | 1 | 1125 | import os
from setuptools import setup
def read(*paths):
"""Build a file path from *paths* and return the contents."""
with open(os.path.join(*paths), 'r') as f:
return f.read()
setup(
name='git-history',
version='0.0.1',
description='Keep a history of all your git commands.',
long_... | mit | -5,938,612,303,095,144,000 | 27.846154 | 65 | 0.6 | false |
jelugbo/tundex | lms/djangoapps/courseware/features/problems.py | 6 | 5985 | '''
Steps for problem.feature lettuce tests
'''
# pylint: disable=C0111
# pylint: disable=W0621
from lettuce import world, step
from common import i_am_registered_for_the_course, visit_scenario_item
from problems_setup import PROBLEM_DICT, answer_problem, problem_has_answer, add_problem_to_course
def _view_problem(... | agpl-3.0 | 1,144,244,063,656,523,400 | 33.796512 | 98 | 0.673517 | false |
codeforamerica/Change-By-Us | framework/page.py | 4 | 3570 | """
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""
import cgi, os
import framework.filters as filters
from lib import jinja2
from framework.config import *
from framework.log import log
log.info("_________________________________________... | agpl-3.0 | 3,560,958,502,247,359,500 | 33.009524 | 110 | 0.57451 | false |
googleads/google-ads-python | google/ads/googleads/v8/errors/types/reach_plan_error.py | 1 | 1178 | # -*- coding: utf-8 -*-
# Copyright 2020 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | -2,605,695,528,942,905,300 | 30 | 74 | 0.708829 | false |
zengenti/ansible | lib/ansible/modules/network/cumulus/_cl_license.py | 11 | 4949 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2016, Cumulus Networks <ce-ceng@cumulusnetworks.com>
#
# This file is part of Ansible
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3... | gpl-3.0 | 103,910,984,927,906,340 | 32.214765 | 82 | 0.662356 | false |
NirBenTalLab/proorigami-cde-package | cde-root/usr/lib64/python2.4/site-packages/numpy/ctypeslib.py | 2 | 12373 | """
============================
``ctypes`` Utility Functions
============================
See Also
---------
load_library : Load a C library.
ndpointer : Array restype/argtype with verification.
as_ctypes : Create a ctypes array from an ndarray.
as_array : Create an ndarray from a ctypes array.
References
----------... | mit | 568,327,309,877,161,900 | 30.324051 | 80 | 0.532288 | false |
jackjennings/Mechanic | src/lib/site-packages/requests/packages/urllib3/util/ssl_.py | 4 | 12101 | from __future__ import absolute_import
import errno
import warnings
import hmac
from binascii import hexlify, unhexlify
from hashlib import md5, sha1, sha256
from ..exceptions import SSLError, InsecurePlatformWarning, SNIMissingWarning
SSLContext = None
HAS_SNI = False
IS_PYOPENSSL = False
# Maps the length of a d... | mit | -1,500,701,249,122,732,500 | 34.908012 | 93 | 0.634658 | false |
3dfxsoftware/cbss-addons | account_analytic_analysis/account_analytic_analysis.py | 1 | 46100 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | gpl-2.0 | -1,044,246,062,175,141,000 | 51.927669 | 324 | 0.552017 | false |
mhrivnak/pulp | server/test/unit/plugins/test_loader.py | 15 | 11811 | import atexit
import os
import shutil
import string
import sys
import tempfile
import traceback
import mock
from .. import base
from pulp.plugins.cataloger import Cataloger
from pulp.plugins.distributor import Distributor
from pulp.plugins.importer import Importer
from pulp.plugins.loader import exceptions, loading, ... | gpl-2.0 | 8,318,960,613,711,929,000 | 31.270492 | 85 | 0.620608 | false |
jeffrey4l/nova | nova/tests/unit/fake_volume.py | 9 | 10049 | # 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
# d... | apache-2.0 | 7,327,349,062,066,503,000 | 34.259649 | 79 | 0.555578 | false |
FNST-OpenStack/horizon | openstack_dashboard/api/glance.py | 15 | 12358 | # Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the... | apache-2.0 | 1,494,672,561,058,413,000 | 34.409742 | 79 | 0.622107 | false |
troyleak/youtube-dl | youtube_dl/compat.py | 39 | 15655 | from __future__ import unicode_literals
import collections
import getpass
import optparse
import os
import re
import shutil
import socket
import subprocess
import sys
import itertools
try:
import urllib.request as compat_urllib_request
except ImportError: # Python 2
import urllib2 as compat_urllib_request
... | unlicense | -1,556,435,199,629,073,400 | 31.682672 | 90 | 0.595592 | false |
rprata/boost | tools/build/test/copy_time.py | 44 | 1949 | #!/usr/bin/python
#
# Copyright (c) 2008 Steven Watanabe
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
# Test that the common.copy rule set the modification date of the new file to
# the current time.
import B... | gpl-2.0 | 5,520,346,072,038,486,000 | 27.246377 | 77 | 0.706003 | false |
arasdar/DL | uri-dl/uri-dl-hw-2/assignment2/cs231n/data_utils.py | 18 | 9178 | from __future__ import print_function
from builtins import range
from six.moves import cPickle as pickle
import numpy as np
import os
from scipy.misc import imread
import platform
def load_pickle(f):
version = platform.python_version_tuple()
if version[0] == '2':
return pickle.load(f)
elif versio... | unlicense | 3,043,864,531,050,842,600 | 34.030534 | 79 | 0.587165 | false |
aldariz/Sick-Beard | lib/hachoir_core/field/timestamp.py | 90 | 2941 | from lib.hachoir_core.tools import (humanDatetime, humanDuration,
timestampUNIX, timestampMac32, timestampUUID60,
timestampWin64, durationWin64)
from lib.hachoir_core.field import Bits, FieldSet
from datetime import datetime
class GenericTimestamp(Bits):
def __init__(self, parent, name, size, description=N... | gpl-3.0 | 6,109,059,666,245,580,000 | 33.197674 | 77 | 0.655559 | false |
yasoob/PythonRSSReader | venv/lib/python2.7/dist-packages/duplicity/backend.py | 1 | 24196 | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright 2002 Ben Escoto <ben@emerose.org>
# Copyright 2007 Kenneth Loafman <kenneth@loafman.com>
#
# This file is part of duplicity.
#
# Duplicity is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License... | mit | -432,635,071,253,751,740 | 35.384962 | 175 | 0.594809 | false |
mdaniel/intellij-community | python/testData/inspections/PyDataclassInspection/mutatingFrozenInInheritance.py | 14 | 1404 | import attr
import dataclasses
@dataclasses.dataclass(frozen=True)
class A1:
a: int = 1
@dataclasses.dataclass(frozen=True)
class B1(A1):
b: str = "1"
<error descr="'A1' object attribute 'a' is read-only">A1().a</error> = 2
<error descr="'B1' object attribute 'a' is read-only">B1().a</error> = 2
<error desc... | apache-2.0 | -3,940,689,593,427,319,300 | 25.018519 | 136 | 0.62963 | false |
alexcuellar/odoo | addons/crm/report/crm_opportunity_report.py | 309 | 4879 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | -2,624,043,458,657,157,000 | 47.306931 | 144 | 0.574708 | false |
ayushin78/coala | coalib/bearlib/aspects/docs.py | 31 | 1522 | from inspect import cleandoc
from coala_utils.decorators import (
enforce_signature, generate_consistency_check)
@generate_consistency_check('definition', 'example', 'example_language',
'importance_reason', 'fix_suggestions')
class Documentation:
"""
This class contains docume... | agpl-3.0 | 6,549,351,395,309,943,000 | 38.025641 | 72 | 0.630092 | false |
arbn/pysaml2 | tests/idp_conf_mdb.py | 3 | 3899 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from saml2 import BINDING_SOAP, BINDING_URI
from saml2 import BINDING_HTTP_REDIRECT
from saml2 import BINDING_HTTP_POST
from saml2 import BINDING_HTTP_ARTIFACT
from saml2.saml import NAMEID_FORMAT_PERSISTENT
from saml2.saml import NAME_FORMAT_URI
from pathutils import full... | bsd-2-clause | 3,490,385,800,082,632,000 | 34.436364 | 71 | 0.430221 | false |
wisechengyi/pants | tests/python/pants_test/backend/codegen/ragel/java/test_ragel_gen.py | 2 | 2409 | # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import os
from textwrap import dedent
from pants.backend.codegen.ragel.java.java_ragel_library import JavaRagelLibrary
from pants.backend.codegen.ragel.java.ragel_gen import RagelGen, cal... | apache-2.0 | -7,481,150,647,443,094,000 | 28.024096 | 89 | 0.603155 | false |
PrashntS/scikit-learn | sklearn/linear_model/ridge.py | 60 | 44642 | """
Ridge regression
"""
# Author: Mathieu Blondel <mathieu@mblondel.org>
# Reuben Fletcher-Costin <reuben.fletchercostin@gmail.com>
# Fabian Pedregosa <fabian@fseoane.net>
# Michael Eickenberg <michael.eickenberg@nsup.org>
# License: BSD 3 clause
from abc import ABCMeta, abstractmethod
impor... | bsd-3-clause | -4,575,997,763,715,151,400 | 36.016584 | 79 | 0.59509 | false |
vijayendrabvs/hap | neutron/plugins/ml2/drivers/cisco/nexus/exceptions.py | 36 | 3102 | # Copyright (c) 2013 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | apache-2.0 | 3,533,248,817,677,379,600 | 35.928571 | 78 | 0.708575 | false |
vasyarv/edx-platform | common/djangoapps/third_party_auth/tests/testutil.py | 17 | 7453 | """
Utilities for writing third_party_auth tests.
Used by Django and non-Django tests; must not have Django deps.
"""
from contextlib import contextmanager
from django.conf import settings
import django.test
import mock
import os.path
from third_party_auth.models import OAuth2ProviderConfig, SAMLProviderConfig, SAML... | agpl-3.0 | -6,780,939,318,317,353,000 | 35.89604 | 120 | 0.660137 | false |
maxis1314/pyutils | blog/views/base.py | 2 | 1087 | # coding: utf-8
from flask import Flask, session, redirect, url_for, request,abort
import config
config = config.rec()
def on_finish():
None
def currentUserGet():
if 'user' in session:
user = session['user']
return user['username']
else:
return None
def currentUserSet(username):... | apache-2.0 | 6,815,221,441,141,459,000 | 20.74 | 84 | 0.623735 | false |
Peddle/hue | desktop/core/ext-py/Django-1.6.10/tests/utils_tests/test_termcolors.py | 60 | 7696 | from django.utils import unittest
from django.utils.termcolors import (parse_color_setting, PALETTES,
DEFAULT_PALETTE, LIGHT_PALETTE, DARK_PALETTE, NOCOLOR_PALETTE, colorize)
class TermColorTests(unittest.TestCase):
def test_empty_string(self):
self.assertEqual(parse_color_setting(''), PALETTES[DEFAU... | apache-2.0 | 7,110,370,803,064,340,000 | 48.019108 | 91 | 0.533914 | false |
craigcitro/protorpc | demos/appstats/protorpc_appstats/main.py | 20 | 3270 | #!/usr/bin/env python
#
# Copyright 2010 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 | 2,987,758,520,858,370,600 | 35.333333 | 77 | 0.727217 | false |
jdar/phantomjs-modified | src/qt/qtwebkit/Tools/Scripts/webkitpy/style/checkers/jsonchecker.py | 182 | 2132 | # Copyright (C) 2011 Apple 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:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | bsd-3-clause | 3,691,510,236,669,900,000 | 42.510204 | 103 | 0.714353 | false |
Rudloff/youtube-dl | youtube_dl/extractor/allocine.py | 21 | 3546 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import re
import json
from .common import InfoExtractor
from ..compat import compat_str
from ..utils import (
qualities,
unescapeHTML,
xpath_element,
)
class AllocineIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?allocine\.fr/(?P<... | unlicense | 3,614,015,720,762,582,500 | 36.315789 | 180 | 0.535966 | false |
redhat-openstack/nova | nova/tests/api/openstack/compute/contrib/test_extended_availability_zone.py | 7 | 6694 | # Copyright 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 requ... | apache-2.0 | -16,829,308,605,551,572 | 34.989247 | 78 | 0.644607 | false |
nirmeshk/oh-mainline | vendor/packages/south/south/tests/__init__.py | 93 | 3189 | from __future__ import print_function
#import unittest
import os
import sys
from functools import wraps
from django.conf import settings
from south.hacks import hacks
# Make sure skipping tests is available.
try:
# easiest and best is unittest included in Django>=1.3
from django.utils import unittest
except I... | agpl-3.0 | 6,185,286,365,284,806,000 | 28.256881 | 86 | 0.606773 | false |
anpingli/openshift-ansible | roles/openshift_health_checker/library/search_journalctl.py | 56 | 4436 | #!/usr/bin/python
"""Interface to journalctl."""
from time import time
import json
import re
import subprocess
from ansible.module_utils.basic import AnsibleModule
class InvalidMatcherRegexp(Exception):
"""Exception class for invalid matcher regexp."""
pass
class InvalidLogEntry(Exception):
"""Excepti... | apache-2.0 | -2,719,664,802,033,326,000 | 28.573333 | 100 | 0.621731 | false |
ppapadeas/wprevents | vendor-local/lib/python/unidecode/x050.py | 252 | 4682 | data = (
'Chang ', # 0x00
'Chi ', # 0x01
'Bing ', # 0x02
'Zan ', # 0x03
'Yao ', # 0x04
'Cui ', # 0x05
'Lia ', # 0x06
'Wan ', # 0x07
'Lai ', # 0x08
'Cang ', # 0x09
'Zong ', # 0x0a
'Ge ', # 0x0b
'Guan ', # 0x0c
'Bei ', # 0x0d
'Tian ', # 0x0e
'Shu ', # 0x0f
'Shu ', # 0x10... | bsd-3-clause | -6,067,571,697,287,429,000 | 17.147287 | 19 | 0.39513 | false |
cedk/odoo | openerp/addons/base/ir/ir_ui_menu.py | 316 | 20548 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2010-2012 OpenERP SA (<http://openerp.com>).
#
# This program is free software: you can ... | agpl-3.0 | -3,880,435,122,470,774,300 | 42.626327 | 199 | 0.554896 | false |
armageddion/Alfr3d-MKIV | run/waterFlowers.py | 1 | 3775 | #!/usr/bin/python
"""
This is the utility for watering flowers
"""
# Copyright (c) 2010-2016 LiTtl3.1 Industries (LiTtl3.1).
# All rights reserved.
# This source code and any compilation or derivative thereof is the
# proprietary information of LiTtl3.1 Industries and is
# confidential in nature.
# Use of this source... | gpl-2.0 | -4,248,100,419,893,980,700 | 35.660194 | 111 | 0.740132 | false |
jcmarks/jcmarks-mobile | lib/jinja2/filters.py | 329 | 30115 | # -*- coding: utf-8 -*-
"""
jinja2.filters
~~~~~~~~~~~~~~
Bundled jinja filters.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
import re
import math
from random import choice
from operator import itemgetter
from itertools import groupby
from jinja2.utils... | apache-2.0 | 7,271,134,668,471,209,000 | 29.235944 | 82 | 0.595451 | false |
tucbill/manila | manila/tests/test_api.py | 9 | 2659 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compli... | apache-2.0 | 4,004,715,844,913,548,300 | 34.453333 | 78 | 0.679203 | false |
pombreda/rst2pdf | rst2pdf/tests/input/sphinx-issue158/conf.py | 9 | 7188 | # -*- coding: utf-8 -*-
#
# issue158 documentation build configuration file, created by
# sphinx-quickstart on Tue Aug 18 22:54:33 2009.
#
# 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.
#
# Al... | mit | -4,818,252,068,606,316,000 | 30.526316 | 80 | 0.708681 | false |
yutiansut/QUANTAXIS | config/update_all.py | 4 | 2795 | #!/usr/local/bin/python
#coding :utf-8
#
# The MIT License (MIT)
#
# Copyright (c) 2016-2021 yutiansut/QUANTAXIS
#
# 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, includ... | mit | 6,271,633,280,721,689,000 | 46.271186 | 80 | 0.593044 | false |
UpYou/relay | receive_path.py | 1 | 5452 | #!/usr/bin/env python
#
# Copyright 2005,2006,2007 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at you... | gpl-3.0 | 2,922,051,650,021,240,000 | 36.6 | 103 | 0.5708 | false |
flavio-casacurta/Nat2Py | Adabas/demo/Emptel/EmptelFind.py | 1 | 4121 | """ Find in Demo Employees file by NAME, DEPTartment or MAKE
Adapt DBID, FNR and AUTOFNR
Note: when using FIND with MAKE and AUTOFNR != 12, file number in
search criterium must be changed in searchfield() parms
$Date: 2008-08-29 16:48:48 +0200 (Fri, 29 Aug 2008) $
$Rev: 68 $
"""
# Copyright 2004-20... | mit | 3,940,848,483,102,440,000 | 28.647482 | 85 | 0.604708 | false |
Safihre/cherrypy | cherrypy/lib/cpstats.py | 2 | 22854 | """CPStats, a package for collecting and reporting on program statistics.
Overview
========
Statistics about program operation are an invaluable monitoring and debugging
tool. Unfortunately, the gathering and reporting of these critical values is
usually ad-hoc. This package aims to add a centralized place for gather... | bsd-3-clause | -5,425,943,599,342,896,000 | 31.930836 | 79 | 0.568128 | false |
lukaasp/libs | aws_xray_sdk/ext/django/conf.py | 1 | 2042 | import os
from django.conf import settings as django_settings
from django.test.signals import setting_changed
DEFAULTS = {
'AWS_XRAY_DAEMON_ADDRESS': '127.0.0.1:2000',
'AUTO_INSTRUMENT': True,
'AWS_XRAY_CONTEXT_MISSING': 'RUNTIME_ERROR',
'PLUGINS': (),
'SAMPLING': True,
'SAMPLING_RULES': None,... | unlicense | 5,058,507,083,423,063,000 | 26.594595 | 78 | 0.62096 | false |
gsantovena/marathon | tools/github/github_pulls_stats.py | 2 | 2730 | #!/usr/bin/env python
import collections
import json
import os
import requests
from datetime import datetime
from tabulate import tabulate
IdleTimeRecord = collections.namedtuple('IdleTimeRecord', ['pull_request', 'idle_time'])
def created_at(pull_request):
# String format can parse: 2018-01-29T16:23:55Z, 2018-0... | apache-2.0 | 751,969,826,620,293,900 | 35.4 | 90 | 0.636996 | false |
broadcomCM/android_kernel_samsung_bcm21553-common | tools/perf/scripts/python/failed-syscalls-by-pid.py | 944 | 1869 | # failed system call counts, by pid
# (c) 2010, Tom Zanussi <tzanussi@gmail.com>
# Licensed under the terms of the GNU GPL License version 2
#
# Displays system-wide failed system call totals, broken down by pid.
# If a [comm] arg is specified, only syscalls called by [comm] are displayed.
import os
import sys
sys.pa... | gpl-2.0 | -127,183,060,118,104,370 | 26.485294 | 112 | 0.602996 | false |
Krossom/python-for-android | python3-alpha/python3-src/Lib/lib2to3/fixes/fix_dict.py | 140 | 3816 | # Copyright 2007 Google, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
"""Fixer for dict methods.
d.keys() -> list(d.keys())
d.items() -> list(d.items())
d.values() -> list(d.values())
d.iterkeys() -> iter(d.keys())
d.iteritems() -> iter(d.items())
d.itervalues() -> iter(d.values())
d.v... | apache-2.0 | 1,906,920,320,562,705,700 | 34.663551 | 78 | 0.562631 | false |
mercycorps/TolaActivity | indicators/queries/program_queries.py | 1 | 20199 | """Proxy models for Program annotations for Home Page and Program Page
ProgramMetrics - superset of classes for shared program annotation functions
ProgramForHomePage - classes to support the Country/Portfolio roll-up of Program metrics
ProgramForProgramPage - classes to support in depth single-program que... | apache-2.0 | -5,251,531,273,095,861,000 | 41.524211 | 119 | 0.612605 | false |
eckucukoglu/arm-linux-gnueabihf | arm-linux-gnueabihf/libc/usr/lib/python2.7/test/test_functools.py | 45 | 16981 | import functools
import sys
import unittest
from test import test_support
from weakref import proxy
import pickle
@staticmethod
def PythonPartial(func, *args, **keywords):
'Pure Python approximation of partial()'
def newfunc(*fargs, **fkeywords):
newkeywords = keywords.copy()
newkeywords.update... | gpl-2.0 | 1,637,960,011,509,534,500 | 33.167002 | 87 | 0.545315 | false |
petuum/public | app/NMF/script/run_local.py | 1 | 3310 | #!/usr/bin/env python
"""
This script starts a process locally, using <client-id> <hostfile> as inputs.
"""
import os
from os.path import dirname
import time
import sys
from optparse import OptionParser
if len(sys.argv) < 3:
print "usage: %s <client-id> <hostfile>" % sys.argv[0]
sys.exit(1)
# app_dir is 2 dirs... | bsd-3-clause | -8,515,363,189,647,316,000 | 27.050847 | 124 | 0.587915 | false |
argonemyth/sentry | src/sentry/db/models/manager.py | 15 | 8637 | """
sentry.db.models.manager
~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import, print_function
import hashlib
import logging
import threading
import weakref
from django.conf imp... | bsd-3-clause | 5,979,187,556,865,898,000 | 31.107807 | 117 | 0.581105 | false |
redhat-cip/horizon | openstack_dashboard/api/neutron.py | 1 | 48033 | # Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Cisco Systems, Inc.
# Copyright 2012 NEC Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use... | apache-2.0 | 2,755,887,638,100,689,000 | 36.761792 | 79 | 0.604626 | false |
2014c2g4/2015cda0623 | static/Brython3.1.3-20150514-095342/Lib/_dummy_thread.py | 742 | 4769 | """Drop-in replacement for the thread module.
Meant to be used as a brain-dead substitute so that threaded code does
not need to be rewritten for when the thread module is not present.
Suggested usage is::
try:
import _thread
except ImportError:
import _dummy_thread as _thread
"""
# Exports ... | gpl-3.0 | -3,815,332,764,260,425,000 | 30.582781 | 79 | 0.648144 | false |
lmr/autotest | cli/topic_common.py | 3 | 25562 | #
# Copyright 2008 Google Inc. All Rights Reserved.
#
"""
This module contains the generic CLI object
High Level Design:
The atest class contains attributes & method generic to all the CLI
operations.
The class inheritance is shown here using the command
'atest host create ...' as an example:
atest <-- host <-- hos... | gpl-2.0 | 6,864,950,777,202,237,000 | 37.730303 | 82 | 0.512401 | false |
servo/servo | tests/wpt/webgl/tests/deqp/functional/gles3/fbocolorbuffer/fbocolorbuffer_test_generator.py | 51 | 3673 | #!/usr/bin/env python
# Copyright (c) 2016 The Khronos Group Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and/or associated documentation files (the
# "Materials"), to deal in the Materials without restriction, including
# without limitation the rights to use... | mpl-2.0 | -9,055,669,294,739,835,000 | 26.616541 | 74 | 0.674653 | false |
eyeofhell/sigma | test.py | 2 | 1977 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# sigma tests.
# Copyright 2013 Grigory Petrov
# See LICENSE for details.
import sys
sys.dont_write_bytecode = True
import sigma
assert sigma.parse( """
#!/usr/bin/python
##{ print( "foo" )
##}
##@ This is TOC.
""".strip() ) == [
sigma.TagTxt( ... | gpl-3.0 | -1,013,862,573,115,387,100 | 12.753731 | 78 | 0.477491 | false |
Metaswitch/pjsip-upstream | pjsip-apps/src/py_pjsua/pjsua.py | 105 | 7589 | import py_pjsua
status = py_pjsua.create()
print "py status " + `status`
#
# Create configuration objects
#
ua_cfg = py_pjsua.config_default()
log_cfg = py_pjsua.logging_config_default()
media_cfg = py_pjsua.media_config_default()
#
# Logging callback.
#
def logging_cb1(level, str, len):
print str,
#
# Config... | gpl-2.0 | 5,292,219,524,154,563,000 | 27.746212 | 92 | 0.68059 | false |
carvalhomb/tsmells | guess/src/Lib/bisect.py | 4 | 2252 | """Bisection algorithms."""
def insort_right(a, x, lo=0, hi=None):
"""Insert item x in list a, and keep it sorted assuming a is sorted.
If x is already in a, insert it to the right of the rightmost x.
Optional args lo (default 0) and hi (default len(a)) bound the
slice of a to be searched.
... | gpl-2.0 | -6,914,174,608,691,478,000 | 26.871795 | 79 | 0.563943 | false |
amenonsen/ansible | test/units/test_constants.py | 187 | 3203 | # -*- coding: utf-8 -*-
# (c) 2017 Toshio Kuratomi <tkuratomi@ansible.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at... | gpl-3.0 | -2,145,646,365,307,594,500 | 25.254098 | 70 | 0.680924 | false |
tschaume/pymatgen | dev_scripts/chemenv/plane_multiplicity.py | 5 | 1764 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Development script to get the multiplicity of the separation facets for some model coordination environments
"""
__author__ = "David Waroquiers"
__copyright__ = "Copyright 2012, The Materials Project"
__ve... | mit | 8,154,615,066,369,502,000 | 32.283019 | 113 | 0.51644 | false |
pyblish/pyblish-win | lib/Python27/Lib/bsddb/test/test_compat.py | 111 | 4532 | """
Test cases adapted from the test_bsddb.py module in Python's
regression test suite.
"""
import os, string
import unittest
from test_all import db, hashopen, btopen, rnopen, verbose, \
get_new_database_path
class CompatibilityTestCase(unittest.TestCase):
def setUp(self):
self.filename = get_n... | lgpl-3.0 | 6,884,561,196,439,556,000 | 23.630435 | 84 | 0.475508 | false |
hortonworks/hortonworks-sandbox | desktop/core/ext-py/python-daemon/daemon/version/__init__.py | 42 | 1256 | # -*- coding: utf-8 -*-
# daemon/version/__init__.py
# Part of python-daemon, an implementation of PEP 3143.
#
# Copyright © 2008–2009 Ben Finney <ben+python@benfinney.id.au>
# This is free software: you may copy, modify, and/or distribute this work
# under the terms of the Python Software Foundation License, version ... | apache-2.0 | 1,987,658,327,115,914,000 | 33.722222 | 75 | 0.708 | false |
samuelhavron/heroku-buildpack-python | Python-3.4.3/Lib/site.py | 8 | 21164 | """Append module search paths for third-party packages to sys.path.
****************************************************************
* This module is automatically imported during initialization. *
****************************************************************
This will append site-specific paths to the module sear... | mit | 4,633,496,877,218,715,000 | 33.357143 | 84 | 0.613353 | false |
EDUlib/edx-platform | openedx/core/djangoapps/content_libraries/management/commands/reindex_content_library.py | 4 | 3499 | """ Management command to update content libraries' search index """ # lint-amnesty, pylint: disable=cyclic-import
import logging
from textwrap import dedent
from django.core.management import BaseCommand
from opaque_keys.edx.locator import LibraryLocatorV2
from openedx.core.djangoapps.content_libraries.api import... | agpl-3.0 | 1,741,878,494,917,661,200 | 42.197531 | 119 | 0.670191 | false |
bosstb/HaberPush | youtube_dl/extractor/ondemandkorea.py | 62 | 2036 | # coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
from ..utils import (
ExtractorError,
js_to_json,
)
class OnDemandKoreaIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?ondemandkorea\.com/(?P<id>[^/]+)\.html'
_GEO_COUNTRIES = ['US', 'CA']
_TEST = {
... | mit | 1,253,136,567,296,468,500 | 31.83871 | 88 | 0.532908 | false |
Bulochkin/tensorflow_pack | tensorflow/contrib/rnn/python/tools/checkpoint_convert_test.py | 30 | 4255 | # 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 | -1,814,900,558,853,768,400 | 38.398148 | 80 | 0.701293 | false |
gnuhub/intellij-community | python/testData/MockSdk3.4/python_stubs/_io.py | 41 | 52669 | # encoding: utf-8
# module _io calls itself io
# from (built-in)
# by generator 1.135
"""
The io module provides the Python interfaces to stream handling. The
builtin open function is defined in this module.
At the top of the I/O hierarchy is the abstract base class IOBase. It
defines the basic interface to a stream. ... | apache-2.0 | -7,779,025,505,302,887,000 | 33.719183 | 132 | 0.629478 | false |
elmerdpadilla/iv | addons/mrp/report/mrp_report.py | 341 | 3839 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the... | agpl-3.0 | 2,824,978,566,009,148,400 | 35.913462 | 89 | 0.506121 | false |
ModdedPA/android_external_chromium_org | tools/omahaproxy.py | 164 | 2466 | #!/usr/bin/env python
# Copyright (c) 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.
"""Chrome Version Tool
Scrapes Chrome channel information and prints out the requested nugget of
information.
"""
import json
imp... | bsd-3-clause | -5,455,409,133,794,074,000 | 26.4 | 73 | 0.581914 | false |
berfinsari/metricbeat | lsbeat/vendor/github.com/elastic/beats/packetbeat/tests/system/test_0052_amqp_emit_receive.py | 11 | 2789 | from packetbeat import BaseTest
class Test(BaseTest):
def test_amqp_emit_receive(self):
self.render_config_template(
amqp_ports=[5672],
)
self.run_packetbeat(pcap="amqp_emit_receive.pcap",
debug_selectors=["amqp,tcp,publish"])
o... | gpl-3.0 | -4,144,136,596,211,269,000 | 38.42029 | 65 | 0.529939 | false |
jpenney/pdar | pdar/archive.py | 1 | 10151 | # This file is part of pdar.
#
# Copyright 2011 Jason Penney
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | apache-2.0 | 6,831,840,336,974,220,000 | 35.912727 | 77 | 0.533839 | false |
IMIO/django-fixmystreet | django_fixmystreet/fixmystreet/feeds.py | 1 | 2830 | from django.contrib.syndication.views import Feed
from django.contrib.syndication.views import FeedDoesNotExist
from django.core.exceptions import ObjectDoesNotExist
from django_fixmystreet.fixmystreet.models import Report
class LatestReports(Feed):
title = "All FixMyStreet Reports"
link = "/reports/"
des... | agpl-3.0 | -1,325,856,526,504,878,800 | 30.444444 | 84 | 0.616254 | false |
3dfxsoftware/cbss-addons | ir_actions_report_xml_multicompany/model/__init__.py | 1 | 1267 | #!/usr/bin/python
# -*- encoding: utf-8 -*-
###########################################################################
# Module Writen to OpenERP, Open Source Management Solution
# Copyright (C) Vauxoo (<http://vauxoo.com>).
# All Rights Reserved
###############Credits#########################################... | gpl-2.0 | -2,827,298,124,673,048,600 | 54.043478 | 80 | 0.549763 | false |
navrasio/mxnet | example/gluon/embedding_learning/data.py | 30 | 6391 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | -7,899,283,061,462,222,000 | 39.449367 | 97 | 0.592865 | false |
hale36/SRTV | sickbeard/scheduler.py | 12 | 4632 | # Author: Nic Wolfe <nic@wolfeden.ca>
# URL: https://sickrage.tv
# Git: https://github.com/SiCKRAGETV/SickRage.git
#
# This file is part of SickRage.
#
# SickRage is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation... | gpl-3.0 | 9,180,514,272,747,459,000 | 39.278261 | 142 | 0.564119 | false |
un33k/CouchPotatoServer | libs/ndg/httpsclient/utils.py | 71 | 15736 | """Utilities using NDG HTTPS Client, including a main module that can be used to
fetch from a URL.
"""
__author__ = "R B Wilkinson"
__date__ = "09/12/11"
__copyright__ = "(C) 2011 Science and Technology Facilities Council"
__license__ = "BSD - see LICENSE file in top-level directory"
__contact__ = "Philip.Kershaw@stfc.... | gpl-3.0 | 4,965,221,719,609,393,000 | 37.009662 | 82 | 0.59939 | false |
mavit/ansible | test/sanity/yamllint/yamllinter.py | 39 | 5698 | #!/usr/bin/env python
"""Wrapper around yamllint that supports YAML embedded in Ansible modules."""
from __future__ import absolute_import, print_function
import ast
import json
import os
import sys
from yamllint import linter
from yamllint.config import YamlLintConfig
def main():
"""Main program body."""
... | gpl-3.0 | -3,546,828,024,776,720,400 | 28.677083 | 100 | 0.527554 | false |
MapLarge/flat-file-feeds | feed_def_reader.py | 1 | 1420 | """
Module: feed_def_reader
Description: Reads in fed def file and controls the feed construction process
Authored by: MapLarge, Inc. (Scott Rowles)
Change Log:
"""
"""
Define all the imports for the feed_def_reader module
"""
import json
import sys
from website_feed_constructor import WebsiteFeedConstructor
from d... | mit | -4,128,621,227,156,504,600 | 23.912281 | 112 | 0.674648 | false |
waseem18/oh-mainline | vendor/packages/python-social-auth/social/pipeline/utils.py | 76 | 2057 | import six
SERIALIZABLE_TYPES = (dict, list, tuple, set, bool, type(None)) + \
six.integer_types + six.string_types + \
(six.text_type, six.binary_type,)
def partial_to_session(strategy, next, backend, request=None, *args, **kwargs):
user = kwargs.get('user')
social... | agpl-3.0 | 5,262,478,204,523,762,000 | 32.721311 | 79 | 0.578999 | false |
brunotougeiro/python | venv/Lib/encodings/idna.py | 215 | 9170 | # This module implements the RFCs 3490 (IDNA) and 3491 (Nameprep)
import stringprep, re, codecs
from unicodedata import ucd_3_2_0 as unicodedata
# IDNA section 3.1
dots = re.compile("[\u002E\u3002\uFF0E\uFF61]")
# IDNA section 5
ace_prefix = b"xn--"
sace_prefix = "xn--"
# This assumes query strings, so AllowUnassig... | gpl-2.0 | 8,384,089,949,522,888,000 | 28.676375 | 73 | 0.556598 | false |
LeartS/odoo | addons/l10n_hr/__init__.py | 432 | 1164 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Module: l10n_hr
# Author: Goran Kliska
# mail: goran.kliska(AT)slobodni-programi.hr
# Copyright (C) 2011- Slobodni programi d.o.o., Zagreb
# Contrib... | agpl-3.0 | 5,229,425,030,514,505,000 | 42.111111 | 78 | 0.619416 | false |
timvideos/flumotion | flumotion/service/main.py | 3 | 3576 | # -*- Mode: Python -*-
# vi:si:et:sw=4:sts=4:ts=4
# Flumotion - a streaming media server
# Copyright (C) 2004,2005,2006,2007,2008,2009 Fluendo, S.L.
# Copyright (C) 2010,2011 Flumotion Services, S.A.
# All rights reserved.
#
# This file may be distributed and/or modified under the terms of
# the GNU Lesser General Pub... | lgpl-2.1 | 6,168,717,586,900,403,000 | 34.76 | 78 | 0.600391 | false |
efiring/scipy | scipy/fftpack/realtransforms.py | 5 | 14362 | """
Real spectrum tranforms (DCT, DST, MDCT)
"""
from __future__ import division, print_function, absolute_import
__all__ = ['dct', 'idct', 'dst', 'idst']
import numpy as np
from scipy.fftpack import _fftpack
from scipy.fftpack.basic import _datacopied
import atexit
atexit.register(_fftpack.destroy_ddct1_cache)
ate... | bsd-3-clause | -9,141,666,843,267,562,000 | 28.858628 | 79 | 0.572274 | false |
earthreader/libearth-dropbox | libearth_dropbox/__init__.py | 1 | 4610 | import os
from contextlib import closing
from StringIO import StringIO
try:
from urllib import parse as urlparse
except ImportError:
import urlparse
import dropbox
from libearth.repository import (FileNotFoundError, NotADirectoryError,
Repository, RepositoryKeyError)
__all__ =... | gpl-2.0 | 2,653,025,767,280,896,000 | 33.661654 | 78 | 0.568764 | false |
ampax/edx-platform | common/lib/capa/capa/inputtypes.py | 20 | 64985 | #
# File: courseware/capa/inputtypes.py
#
"""
Module containing the problem elements which render into input objects
- textline
- textbox (aka codeinput)
- schematic
- choicegroup (aka radiogroup, checkboxgroup)
- javascriptinput
- imageinput (for clickable image)
- optioninput (for option list)
- filesubmission (... | agpl-3.0 | 8,008,947,316,742,463,000 | 34.510929 | 136 | 0.562499 | false |
Plantain/sms-mailinglist | lib/googlecloudapis/bigquery/v2/bigquery_v2_messages.py | 5 | 57651 | """Generated message classes for bigquery version v2.
A data platform for customers to create, manage, share and query data.
"""
from protorpc import messages
from googlecloudapis.apitools.base.py import encoding
from googlecloudapis.apitools.base.py import extra_types
package = 'bigquery'
class BigqueryDatasets... | apache-2.0 | 4,818,244,651,040,276,000 | 39.063238 | 86 | 0.738409 | false |
ShineFan/odoo | openerp/tools/view_validation.py | 367 | 2303 | """ View validation code (using assertions, not the RNG schema). """
import logging
_logger = logging.getLogger(__name__)
def valid_page_in_book(arch):
"""A `page` node must be below a `book` node."""
return not arch.xpath('//page[not(ancestor::notebook)]')
def valid_field_in_graph(arch):
""" Children... | agpl-3.0 | 1,991,635,284,390,820,600 | 27.7875 | 82 | 0.557099 | false |
behzadnouri/scipy | scipy/optimize/tests/test_nonlin.py | 41 | 15160 | """ Unit tests for nonlinear solvers
Author: Ondrej Certik
May 2007
"""
from __future__ import division, print_function, absolute_import
from numpy.testing import assert_, dec, TestCase, run_module_suite
from scipy._lib.six import xrange
from scipy.optimize import nonlin, root
from numpy import matrix, diag, dot
from... | bsd-3-clause | -2,615,952,387,594,749,400 | 33.770642 | 88 | 0.538259 | false |
pistoolero/KFSE-Training-Service | application/vendor/guzzle/guzzle/docs/conf.py | 469 | 3047 | import sys, os
from sphinx.highlighting import lexers
from pygments.lexers.web import PhpLexer
lexers['php'] = PhpLexer(startinline=True, linenos=1)
lexers['php-annotations'] = PhpLexer(startinline=True, linenos=1)
primary_domain = 'php'
# -- General configuration -----------------------------------------------------... | mit | 4,609,753,764,233,084,400 | 31.414894 | 80 | 0.641287 | false |
credativUK/account-financial-tools | account_credit_control_dunning_fees/model/dunning.py | 31 | 4221 | # -*- coding: utf-8 -*-
##############################################################################
#
# Author: Nicolas Bessi
# Copyright 2014 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# publi... | agpl-3.0 | 4,962,349,882,541,235,000 | 33.598361 | 79 | 0.602464 | 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.