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 |
|---|---|---|---|---|---|---|---|---|---|---|
wschenck/nest-simulator | pynest/nest/tests/test_rate_copy_model.py | 20 | 3362 | # -*- coding: utf-8 -*-
#
# test_rate_copy_model.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the Li... | gpl-2.0 | 8,033,044,470,457,018,000 | 29.288288 | 78 | 0.605592 | false |
jcftang/ansible | lib/ansible/modules/network/panos/panos_admpwd.py | 32 | 5961 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Ansible module to manage PaloAltoNetworks Firewall
# (c) 2016, techbizdev <techbizdev@paloaltonetworks.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 publish... | gpl-3.0 | -299,684,662,473,639,600 | 27.936893 | 108 | 0.653917 | false |
asnir/airflow | airflow/example_dags/example_latest_only_with_trigger.py | 44 | 1446 | # -*- coding: utf-8 -*-
#
# 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
... | apache-2.0 | 648,635,217,387,981,000 | 32.627907 | 74 | 0.75242 | false |
himleyb85/django | django/test/client.py | 8 | 26705 | from __future__ import unicode_literals
import json
import mimetypes
import os
import re
import sys
from copy import copy
from importlib import import_module
from io import BytesIO
from django.apps import apps
from django.conf import settings
from django.core.handlers.base import BaseHandler
from django.core.handlers... | bsd-3-clause | -4,250,220,115,435,878,400 | 37.369253 | 112 | 0.591125 | false |
yongshengwang/hue | desktop/core/ext-py/Django-1.6.10/django/conf/locale/hu/formats.py | 118 | 1118 | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'Y. F j.'
TIME_FORMAT = 'G.i.s'
DA... | apache-2.0 | -808,495,836,342,198,900 | 31.852941 | 77 | 0.606983 | false |
tovrstra/horton | horton/io/molekel.py | 4 | 8305 | # -*- coding: utf-8 -*-
# HORTON: Helpful Open-source Research TOol for N-fermion systems.
# Copyright (C) 2011-2017 The HORTON Development Team
#
# This file is part of HORTON.
#
# HORTON is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by th... | gpl-3.0 | -5,183,237,664,077,448,000 | 32.22 | 108 | 0.535099 | false |
BorisJeremic/Real-ESSI-Examples | education_examples/_Chapter_Modeling_and_Simulation_Examples_Static_Examples/Contact_Normal_Interface_Behaviour_HardContact_Nonlinear_Hardening_Softening_Shear_Model/plot.py | 8 | 1187 | #!/usr/bin/python
import h5py
import matplotlib.pylab as plt
import sys
import numpy as np;
# Go over each feioutput and plot each one.
thefile = "Monotonic_Contact_Behaviour_Adding_Normal_Load.h5.feioutput";
finput = h5py.File(thefile)
# Read the time and displacement
times = finput["time"][:]
shear_strain_x = fi... | cc0-1.0 | -8,122,532,802,774,383,000 | 32.942857 | 74 | 0.686605 | false |
diagramsoftware/account-financial-tools | account_default_draft_move/res_config.py | 17 | 2334 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
#
# Copyright (c) 2014 ACSONE SA/NV (http://acsone.eu).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the G... | agpl-3.0 | 6,264,493,307,492,042,000 | 41.436364 | 78 | 0.56641 | false |
coursemdetw/2014c2 | wsgi/static/reeborg/src/libraries/brython/Lib/unittest/result.py | 15 | 6282 | """Test result object"""
import io
import sys
import traceback
from . import util
from functools import wraps
__unittest = True
def failfast(method):
@wraps(method)
def inner(self, *args, **kw):
if getattr(self, 'failfast', False):
self.stop()
return method(self, *args, **kw)
... | gpl-2.0 | 6,421,161,665,900,696,000 | 31.890052 | 79 | 0.582935 | false |
nkgilley/home-assistant | homeassistant/components/cert_expiry/__init__.py | 5 | 2696 | """The cert_expiry component."""
from datetime import timedelta
import logging
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_HOST, CONF_PORT
from homeassistant.exceptions import ConfigEntryNotReady
from homeassistant.helpers.typing import HomeAssistantType
from homeassistant... | apache-2.0 | 7,163,497,100,004,197,000 | 31.095238 | 88 | 0.682122 | false |
Pelagicore/qface | tests/test_validation.py | 2 | 1722 | import logging
import logging.config
from path import Path
from qface.generator import FileSystem
# logging.config.fileConfig('logging.ini')
logging.basicConfig()
log = logging.getLogger(__name__)
inputPath = Path('tests/in')
log.debug('input path folder: {0}'.format(inputPath.abspath()))
def load_one():
path... | mit | 4,788,320,107,383,999,000 | 26.774194 | 63 | 0.722416 | false |
all-of-us/raw-data-repository | rdr_service/lib_fhir/fhirclient_4_0_0/models/insuranceplan.py | 1 | 19453 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/InsurancePlan) on 2019-05-07.
# 2019, SMART Health IT.
from . import domainresource
class InsurancePlan(domainresource.DomainResource):
""" Details of a Health Insurance product/plan ... | bsd-3-clause | -7,928,531,786,064,046,000 | 36.699612 | 110 | 0.616974 | false |
damoti/pyjx-gwt | gwt/pyjamas/ui/TextBox.py | 7 | 3097 | # Copyright 2006 James Tauber and contributors
# Copyright (C) 2009 Luke Kenneth Casson Leighton <lkcl@lkcl.net>
# Copyright (C) 2012 Vsevolod Fedorov <vsevolod.fedorov@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You... | apache-2.0 | 8,918,047,098,968,396,000 | 30.282828 | 74 | 0.648369 | false |
vipul-sharma20/oh-mainline | vendor/packages/django-celery/contrib/release/sphinx-to-rst.py | 31 | 1854 | #!/usr/bin/even/python
import os
import re
import sys
dirname = ""
RE_CODE_BLOCK = re.compile(r'.. code-block:: (.+?)\s*$')
RE_INCLUDE = re.compile(r'.. include:: (.+?)\s*$')
RE_REFERENCE = re.compile(r':(.+?):`(.+?)`')
def include_file(lines, pos, match):
global dirname
orig_filename = match.groups()[0]
... | agpl-3.0 | -273,105,848,910,392,540 | 24.054054 | 66 | 0.53452 | false |
tscohen/chainer | chainer/functions/array/reshape.py | 12 | 1546 | from chainer import function
from chainer.utils import type_check
def _count_unknown_dims(shape):
cnt = 0
for dim in shape:
cnt += dim < 0
return cnt
class Reshape(function.Function):
"""Reshapes an input array without copy."""
def __init__(self, shape):
cnt = _count_unknown_di... | mit | -7,977,276,387,600,331,000 | 23.935484 | 78 | 0.535576 | false |
sonelu/pypot | pypot/sensor/kinect/sensor.py | 2 | 3763 | """
This code has been developed by Baptiste Busch: https://github.com/buschbapti
This module allows you to retrieve Skeleton information from a Kinect device.
It is only the client side of a zmq client/server application.
The server part can be found at: https://bitbucket.org/buschbapti/kinectserver/src
It us... | gpl-3.0 | 2,978,085,166,159,653,400 | 32.209091 | 104 | 0.577996 | false |
epssy/hue | apps/pig/src/pig/migrations/0001_initial.py | 37 | 5331 | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
needed_by = (
("desktop", "0007_auto__add_documentpermission__add_documenttag__add_document"),
)
def forwards(self, orm):
# Adding ... | apache-2.0 | -8,322,978,608,478,576,000 | 58.898876 | 178 | 0.555806 | false |
timesong/pycha | chavier/gui.py | 1 | 19596 | # Copyright(c) 2007-2010 by Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com>
#
# This file is part of Chavier.
#
# Chavier is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the Lice... | lgpl-3.0 | -2,853,579,805,880,578,600 | 34.308108 | 80 | 0.57624 | false |
collinjackson/mojo | third_party/cython/src/Cython/Compiler/ParseTreeTransforms.py | 86 | 115877 | import cython
cython.declare(PyrexTypes=object, Naming=object, ExprNodes=object, Nodes=object,
Options=object, UtilNodes=object, LetNode=object,
LetRefNode=object, TreeFragment=object, EncodedString=object,
error=object, warning=object, copy=object)
import PyrexTypes
import... | bsd-3-clause | 7,520,269,349,848,223,000 | 37.561398 | 148 | 0.587243 | false |
dhutty/ansible | v1/ansible/cache/base.py | 159 | 1241 | # (c) 2014, Brian Coca, Josh Drake, et al
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
... | gpl-3.0 | 2,160,482,077,932,574,700 | 29.268293 | 70 | 0.727639 | false |
gfrd/gfrd | samples/pushpull/pushpull.py | 1 | 4698 | #!/usr/bin/env python
from egfrd import *
from logger import *
import sys
import os
from fractionS import *
# Args:
# Keq
# koff_ratio
# N_K
# N_P
# V (liter)
# mode: 'normal' 'immobile' 'localized' 'single' 'clustered'
# T
Keq_str = sys.argv[1]
koff_ratio_str = sys.argv[2]
N_S_total = int( sys.argv[3] )
N_K = i... | gpl-2.0 | 5,662,310,379,607,453,000 | 19.88 | 72 | 0.554491 | false |
douglaskastle/mezzanine | mezzanine/bin/runtests.py | 34 | 2233 | from __future__ import unicode_literals
import atexit
import os
import shutil
import sys
import django
def main(package="mezzanine"):
"""
This is the main test function called via ``python setup.py test``.
It's responsible for hacking the ``project_template`` dir into
an actual project to test again... | bsd-2-clause | -5,977,011,195,592,670,000 | 30.9 | 79 | 0.663233 | false |
KanoComputing/terminal-quest | linux_story/story/playground/terminals.py | 1 | 5414 | # Terminals.py
#
# Copyright (C) 2014-2016 Kano Computing Ltd.
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPL v2
#
# The main terminal class.
import os
import sys
terminal_path = os.path.abspath(__file__)
dir_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
if __name__ == '__main__'... | gpl-2.0 | -7,148,220,051,102,708,000 | 32.012195 | 77 | 0.62874 | false |
DarthMaulware/EquationGroupLeaks | Leak #5 - Lost In Translation/windows/Resources/Python/Core/Lib/bsddb/dbrecio.py | 1 | 4354 | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: dbrecio.py
"""
File-like objects that read from or write to a bsddb record.
This implements (nearly) all stdio methods.
f = DBRecIO(db, key, txn=No... | unlicense | 6,247,976,856,687,974,000 | 36.222222 | 943 | 0.558337 | false |
Havate/havate-openstack | proto-build/gui/horizon/Horizon_GUI/horizon/workflows/views.py | 1 | 8095 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | apache-2.0 | -9,051,763,483,320,454,000 | 37.547619 | 79 | 0.603088 | false |
jlowin/airflow | airflow/operators/s3_to_hive_operator.py | 21 | 10268 | # -*- coding: utf-8 -*-
#
# 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
... | apache-2.0 | -6,758,015,653,352,635,000 | 40.910204 | 80 | 0.56603 | false |
wndhydrnt/airflow | tests/sensors/test_http_sensor.py | 14 | 6591 | # -*- coding: utf-8 -*-
#
# 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
#... | apache-2.0 | 2,148,219,457,375,096,800 | 31.955 | 88 | 0.605371 | false |
piffey/ansible | lib/ansible/modules/network/ironware/ironware_command.py | 15 | 5154 | #!/usr/bin/python
#
# 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
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],... | gpl-3.0 | 9,108,476,005,681,670,000 | 28.965116 | 93 | 0.652891 | false |
davidbrazdil/nacl | src/trusted/validator_ragel/spec_val.py | 13 | 4965 | # Copyright (c) 2013 The Native Client 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 spec
class Validator(object):
BITNESS = None
MAX_SUPERINSTRUCTION_LENGTH = None
def ValidateSuperinstruction(self, superinstruction... | bsd-3-clause | -8,247,784,434,621,184,000 | 32.1 | 80 | 0.636858 | false |
chhao91/QGIS | python/plugins/fTools/tools/doGeometry.py | 11 | 49678 | # -*- coding: utf-8 -*-
#-----------------------------------------------------------
#
# fTools
# Copyright (C) 2008-2011 Carson Farmer
# EMAIL: carson.farmer (at) gmail.com
# WEB : http://www.ftools.ca/fTools.html
#
# A collection of data management and analysis tools for vector data
#
#-----------------------------... | gpl-2.0 | -7,343,106,521,312,424,000 | 41.936906 | 165 | 0.539374 | false |
fabada/pootle | pootle/apps/pootle_store/urls.py | 4 | 1777 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL3
# or later license. See the LICENSE file for a copy of the license and the
# AUTHORS file for copyright and authorship information.
from django.conf.urls ... | gpl-3.0 | 8,860,984,189,882,899,000 | 30.732143 | 77 | 0.568374 | false |
encbladexp/ansible | lib/ansible/modules/set_stats.py | 15 | 1940 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2016, Ansible RedHat, Inc
# 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'''
---
module: set_stats
short_des... | gpl-3.0 | 1,829,434,339,161,331,200 | 30.290323 | 125 | 0.687629 | false |
brenton/openshift-ansible | roles/lib_openshift/src/lib/deploymentconfig.py | 58 | 10726 | # pylint: skip-file
# flake8: noqa
# pylint: disable=too-many-public-methods
class DeploymentConfig(Yedit):
''' Class to model an openshift DeploymentConfig'''
default_deployment_config = '''
apiVersion: v1
kind: DeploymentConfig
metadata:
name: default_dc
namespace: default
spec:
replicas: 0
selector... | apache-2.0 | 5,759,965,805,291,478,000 | 29.645714 | 98 | 0.568618 | false |
henriquejensen/CheckIO | Home/Speech_Module.py | 1 | 1721 | FIRST_TEN = ["one", "two", "three", "four", "five", "six", "seven",
"eight", "nine"]
SECOND_TEN = ["ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen",
"sixteen", "seventeen", "eighteen", "nineteen"]
OTHER_TENS = ["twenty", "thirty", "forty", "fifty", "sixty", "seventy",
... | mit | 3,764,413,822,683,647,500 | 34.791667 | 101 | 0.558789 | false |
tsotetsi/django-seed | src/project/settings.py | 1 | 3192 | """
Django settings for project project.
Generated by 'django-admin startproject' using Django 1.8.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build path... | mit | 3,846,531,614,578,518,500 | 24.536 | 71 | 0.696742 | false |
molobrakos/home-assistant | tests/components/config/test_zwave.py | 12 | 16965 | """Test Z-Wave config panel."""
import asyncio
import json
from unittest.mock import MagicMock, patch
import pytest
from homeassistant.bootstrap import async_setup_component
from homeassistant.components import config
from homeassistant.components.zwave import DATA_NETWORK, const
from tests.mock.zwave import MockNod... | apache-2.0 | -7,745,799,237,504,550,000 | 29.403226 | 75 | 0.623755 | false |
zlfben/gem5 | util/decode_inst_trace.py | 28 | 5386 | #!/usr/bin/env python
# Copyright (c) 2013-2014 ARM Limited
# All rights reserved
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implement... | bsd-3-clause | -1,679,036,789,890,500,400 | 34.668874 | 97 | 0.672113 | false |
marqh/cartopy | lib/cartopy/gshhs.py | 1 | 6450 | # (C) British Crown Copyright 2011 - 2012, Met Office
#
# This file is part of cartopy.
#
# cartopy is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option)... | gpl-3.0 | 6,360,813,470,303,825,000 | 34.054348 | 148 | 0.54062 | false |
kapilt/cloud-custodian | tools/sandbox/c7n_index/setup.py | 5 | 1168 | # Copyright 2015-2017 Capital One Services, 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 agreed ... | apache-2.0 | 6,837,470,273,399,331,000 | 35.5 | 74 | 0.700342 | false |
javierparis/mediawiki | maintenance/language/zhtable/Makefile.py | 37 | 14682 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @author Philip
import tarfile as tf
import zipfile as zf
import os, re, shutil, sys, platform
pyversion = platform.python_version()
islinux = platform.system().lower() == 'linux'
if pyversion[:3] in ['2.6', '2.7']:
import urllib as urllib_request
import codecs
... | gpl-2.0 | 1,177,529,140,816,583,400 | 33.957143 | 126 | 0.554216 | false |
wangjun/kivy | kivy/uix/vkeyboard.py | 4 | 28046 | '''
VKeyboard
=========
.. image:: images/vkeyboard.jpg
:align: right
.. versionadded:: 1.0.8
.. warning::
This is experimental and subject to change as long as this warning notice is
present.
VKeyboard is an onscreen keyboard for Kivy. Its operation is intended to be
transparent to the user. Using the... | mit | 1,148,496,694,346,668,500 | 33.926526 | 80 | 0.59841 | false |
fkorotkov/pants | src/python/pants/bin/repro.py | 16 | 3955 | # 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 logging
impor... | apache-2.0 | -5,852,118,745,757,148,000 | 38.949495 | 94 | 0.676359 | false |
0x90sled/catapult | perf_insights/perf_insights/value/value_unittest.py | 6 | 1314 | # Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from perf_insights import value as value_module
from perf_insights.value import run_info as run_info_module
class ValueTests(unittest.Te... | bsd-3-clause | 5,194,554,052,194,863,000 | 29.581395 | 72 | 0.590563 | false |
bitmovin/bitmovin-python | bitmovin/resources/models/encodings/encoding_status.py | 1 | 1597 | from bitmovin.resources import AbstractIdResource
class EncodingStatus(AbstractIdResource):
def __init__(self, status, number_of_segments=None, id_=None, messages=None, subtasks=None,
created_at=None, queued_at=None, finished_at=None, error_at=None, progress=None):
super().__init__(id_=i... | unlicense | 3,825,157,493,611,355,600 | 42.162162 | 105 | 0.606763 | false |
cloudbase/cinder | cinder/volume/drivers/dell/dell_storagecenter_api.py | 3 | 137316 | # Copyright 2016 Dell 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 agree... | apache-2.0 | 4,754,891,574,953,821,000 | 41.134397 | 79 | 0.554968 | false |
Dapid/numpy | numpy/core/tests/test_shape_base.py | 25 | 11503 | from __future__ import division, absolute_import, print_function
import numpy as np
from numpy.compat import long
from numpy.core import (array, arange, atleast_1d, atleast_2d, atleast_3d,
vstack, hstack, newaxis, concatenate, stack)
from numpy.testing import (TestCase, assert_, assert_raises, ... | bsd-3-clause | -5,054,543,924,475,303,000 | 35.059561 | 84 | 0.519691 | false |
alaunay/bigtop | bigtop-packages/src/charm/hadoop/layer-hadoop-namenode/tests/01-basic-deployment.py | 12 | 1353 | #!/usr/bin/env python3
# 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 "Lic... | apache-2.0 | 326,781,199,391,440,450 | 33.692308 | 74 | 0.72136 | false |
howels/pi-tank | node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py | 379 | 42639 | # 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.
"""
This module helps emulate Visual Studio 2008 behavior on top of other
build systems, primarily ninja.
"""
import os
import re
import subprocess
import sys
im... | gpl-3.0 | 6,404,399,148,235,053,000 | 43.46194 | 80 | 0.659138 | false |
epiphone/tiea207_c2264 | web/form.py | 53 | 13440 | """
HTML forms
(part of web.py)
"""
import copy, re
import webapi as web
import utils, net
def attrget(obj, attr, value=None):
try:
if hasattr(obj, 'has_key') and obj.has_key(attr):
return obj[attr]
except TypeError:
# Handle the case where has_key takes different number of argume... | agpl-3.0 | -3,706,829,782,048,638,000 | 31.780488 | 351 | 0.528571 | false |
UltrosBot/Ultros | system/metrics/public.py | 1 | 12528 | # coding=utf-8
import json
import platform
import psutil
import sys
import traceback
import urllib
import urllib2
from twisted.internet.task import LoopingCall
from system.constants import version_info
from system.decorators.threads import run_async_threadpool
from system.events.manager import EventManager
from syst... | artistic-2.0 | 2,627,261,049,174,263,300 | 33.8 | 78 | 0.427363 | false |
mrquim/mrquimrepo | repo/plugin.program.indigo/libs/requests/packages/urllib3/poolmanager.py | 86 | 13053 | from __future__ import absolute_import
import collections
import functools
import logging
from ._collections import RecentlyUsedContainer
from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool
from .connectionpool import port_by_scheme
from .exceptions import LocationValueError, MaxRetryError, ProxyScheme... | gpl-2.0 | 1,763,504,444,478,421,500 | 34.958678 | 86 | 0.626216 | false |
openpeer/webrtc-gyp | test/win/gyptest-cl-warning-level.py | 344 | 1394 | #!/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.
"""
Make sure warning level is extracted properly.
"""
import TestGyp
import sys
if sys.platform == 'win32':
test = TestGyp.TestGyp(for... | bsd-3-clause | 1,470,280,133,554,003,700 | 33 | 75 | 0.708034 | false |
klattimer/rtl_433 | examples/rtl_433_gps.py | 3 | 3467 | #!/usr/bin/env python
"""Read events from rtl_433 and gpsd and print out."""
# Needs gpsd (and the Python support from gpsd)
# Start gpsd and rtl_433 (rtl_433 -F syslog::1433), then this script
from __future__ import print_function
import socket
import json
import gps
import threading
# rtl_433 syslog address
UDP_... | gpl-2.0 | 5,664,873,681,767,443,000 | 25.875969 | 93 | 0.54687 | false |
Zanzibar82/plugin.video.pelisalacarta | servers/documentary.py | 40 | 2839 | # -*- coding: utf-8 -*-
#------------------------------------------------------------
# pelisalacarta - XBMC Plugin
# Conector para documentary.es
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
#------------------------------------------------------------
import urlparse,urllib2,urllib,re
import os
from cor... | gpl-3.0 | 3,748,100,999,538,666,000 | 37.364865 | 175 | 0.617689 | false |
KaranToor/MA450 | google-cloud-sdk/.install/.backup/lib/surface/debug/snapshots/describe.py | 6 | 1949 | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | apache-2.0 | -8,670,159,552,171,009,000 | 37.215686 | 77 | 0.710621 | false |
michiz05000/jna-symfony | vendor/imagine/imagine/docs/conf.py | 218 | 7135 | # -*- coding: utf-8 -*-
#
# Imagine documentation build configuration file, created by
# sphinx-quickstart on Wed Apr 6 00:20:22 2011.
#
# 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... | mit | 67,825,189,549,830,880 | 31.729358 | 80 | 0.708059 | false |
shakamunyi/nova | nova/virt/xenapi/firewall.py | 10 | 4668 | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
# Copyright (c) 2010 Citrix Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in complianc... | apache-2.0 | 2,054,311,055,981,439,500 | 39.947368 | 78 | 0.556769 | false |
caveman-dick/ansible | lib/ansible/modules/cloud/profitbricks/profitbricks_datacenter.py | 26 | 7540 | #!/usr/bin/python
# 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
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | gpl-3.0 | -1,214,280,716,573,551,400 | 28.568627 | 149 | 0.630902 | false |
mancoast/CPythonPyc_test | fail/332_test_modulefinder.py | 31 | 7869 | import os
import errno
import shutil
import unittest
import tempfile
from test import support
import modulefinder
TEST_DIR = tempfile.mkdtemp()
TEST_PATH = [TEST_DIR, os.path.dirname(tempfile.__file__)]
# Each test description is a list of 5 items:
#
# 1. a module name that will be imported by modulefinder
# 2. a l... | gpl-3.0 | 2,257,663,097,350,144,300 | 25.584459 | 83 | 0.460923 | false |
ryfeus/lambda-packs | Tensorflow_OpenCV_Nightly/source/tensorflow/contrib/keras/api/keras/preprocessing/sequence/__init__.py | 57 | 1172 | # 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 | -4,692,020,768,671,668,000 | 42.407407 | 92 | 0.738055 | false |
hsnr-gamera/gamera | gamera/pstat.py | 1 | 37622 | # Copyright (c) 1999-2007 Gary Strangman; All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, m... | gpl-2.0 | 4,260,239,416,494,531,000 | 34.292683 | 94 | 0.595822 | false |
mancoast/CPythonPyc_test | cpython/277_test_filecmp.py | 136 | 5396 |
import os, filecmp, shutil, tempfile
import unittest
from test import test_support
class FileCompareTestCase(unittest.TestCase):
def setUp(self):
self.name = test_support.TESTFN
self.name_same = test_support.TESTFN + '-same'
self.name_diff = test_support.TESTFN + '-diff'
data = 'Co... | gpl-3.0 | -6,964,135,870,125,757,000 | 39.268657 | 78 | 0.55745 | false |
scripnichenko/nova | nova/api/openstack/compute/legacy_v2/contrib/os_networks.py | 43 | 9162 | # Copyright 2011 Grid Dynamics
# 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... | apache-2.0 | 6,254,091,761,357,551,000 | 38.662338 | 78 | 0.606745 | false |
hlin117/statsmodels | statsmodels/sandbox/nonparametric/kernel_extras.py | 34 | 14055 | """
Multivariate Conditional and Unconditional Kernel Density Estimation
with Mixed Data Types
References
----------
[1] Racine, J., Li, Q. Nonparametric econometrics: theory and practice.
Princeton University Press. (2007)
[2] Racine, Jeff. "Nonparametric Econometrics: A Primer," Foundation
and Trends in Econ... | bsd-3-clause | -2,477,091,161,261,137,000 | 32.786058 | 90 | 0.559516 | false |
EricMuller/mywebmarks-backend | requirements/twisted/Twisted-17.1.0/docs/names/examples/gethostbyname.py | 2 | 1793 | #!/usr/bin/env python
# -*- test-case-name: twisted.names.test.test_examples -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Print the IP address for a given hostname. eg
python gethostbyname.py www.google.com
This script does a host lookup using the default Twisted Names
resolver, ... | mit | -8,491,724,258,567,012,000 | 22.592105 | 71 | 0.672058 | false |
jsqihui/reimplement-paper | facenet/tensorflow/prepare_data.py | 1 | 2456 | """download mscelebrities dataset"""
import os
import utils
import requests
import urllib
from tqdm import tqdm
def download_imdb(face_only=True, data_dir="./data"):
""" https://data.vision.ee.ethz.ch/cvl/rrothe/imdb-wiki/ """
full_urls = ["https://data.vision.ee.ethz.ch/cvl/rrothe/imdb-wiki/static/imdb_0.ta... | apache-2.0 | -5,441,007,651,075,209,000 | 40.627119 | 92 | 0.620521 | false |
AnhellO/DAS_Sistemas | Ago-Dic-2018/Daniel Enriquez/ExamenExtraordinario/facade.py | 1 | 3071 |
#Clases donde cada clase es un test diferente
class TestUnitario:
def run(self):
print("--- Test Unitario ---")
print("Realizando Test Unitario...")
print("Resultados: -53,15\n")
class TestRegresion:
def run(self):
print("---- Test De Regresion ---")
print("Realizando ... | mit | -6,680,511,073,090,297,000 | 37.3875 | 209 | 0.649626 | false |
pyconjp/pyconjp-website | localeurlcustom/templatetags/localeurl_tags.py | 1 | 2320 | from django import template
from django.template import Node, Token, TemplateSyntaxError
from django.template import resolve_variable
from django.template.defaultfilters import stringfilter
from django.templatetags import future
from localeurlcustom import utils
register = template.Library()
def chlocale(url, loca... | bsd-3-clause | 7,021,867,027,925,811,000 | 28.74359 | 79 | 0.659052 | false |
peterlauri/django | tests/generic_views/test_edit.py | 43 | 18189 | from __future__ import unicode_literals
from django import forms
from django.core.exceptions import ImproperlyConfigured
from django.test import SimpleTestCase, TestCase, override_settings
from django.test.client import RequestFactory
from django.urls import reverse
from django.views.generic.base import View
from djan... | bsd-3-clause | 2,378,120,337,415,159,000 | 43.148058 | 118 | 0.629226 | false |
ircwaves/gips | gips/version.py | 1 | 1039 | #!/usr/bin/env python
################################################################################
# GIPS: Geospatial Image Processing System
#
# AUTHOR: Matthew Hanson
# EMAIL: matt.a.hanson@gmail.com
#
# Copyright (C) 2014-2018 Applied Geosolutions
#
# This program is free software; you can redist... | gpl-2.0 | -1,507,500,141,011,129,600 | 42.291667 | 80 | 0.606352 | false |
usersource/tasks | tasks_phonegap/Tasks/plugins/io.usersource.anno/tools/copytool2/httplib2/socks.py | 811 | 18459 | """SocksiPy - Python SOCKS module.
Version 1.00
Copyright 2006 Dan-Haim. 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
... | mpl-2.0 | 3,269,008,638,510,513,700 | 41.143836 | 146 | 0.601387 | false |
FireWRT/OpenWrt-Firefly-Libraries | staging_dir/target-mipsel_1004kc+dsp_uClibc-0.9.33.2/usr/lib/python3.4/test/test_dict.py | 8 | 30334 | import unittest
from test import support
import collections, random, string
import collections.abc
import gc, weakref
import pickle
class DictTest(unittest.TestCase):
def test_invalid_keyword_arguments(self):
class Custom(dict):
pass
for invalid in {1 : 2}, Custom({1 : 2}):
... | gpl-2.0 | -7,188,754,869,657,322,000 | 30.597917 | 79 | 0.497462 | false |
switowski/invenio | invenio/modules/indexer/tokenizers/BibIndexFulltextTokenizer.py | 12 | 9806 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2010, 2011, 2012, 2014, 2015 CERN.
#
# Invenio is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (a... | gpl-2.0 | 8,192,055,523,663,279,000 | 49.546392 | 154 | 0.560881 | false |
0x7678/youtube-dl | youtube_dl/extractor/gorillavid.py | 29 | 3921 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..compat import (
compat_urllib_parse,
compat_urllib_request,
)
from ..utils import (
ExtractorError,
int_or_none,
)
class GorillaVidIE(InfoExtractor):
IE_DESC = 'GorillaVid.in, dacli... | unlicense | 8,787,547,310,582,332,000 | 32.228814 | 110 | 0.503698 | false |
jdemel/gnuradio | gr-blocks/python/blocks/qa_regenerate.py | 2 | 1902 | #!/usr/bin/env python
#
# Copyright 2007,2010,2013 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
#
from gnuradio import gr, gr_unittest, blocks
class test_regenerate(gr_unittest.TestCase):
def setUp(self):
self.tb = gr.top_block()
... | gpl-3.0 | -2,577,897,622,743,616,000 | 23.384615 | 89 | 0.504732 | false |
mindnervestech/mnrp | addons/base_report_designer/plugin/openerp_report_designer/bin/script/AddAttachment.py | 384 | 11148 | #########################################################################
#
# Copyright (c) 2003-2004 Danny Brewer d29583@groovegarden.com
# Copyright (C) 2004-2010 OpenERP SA (<http://openerp.com>).
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser Gene... | agpl-3.0 | -7,318,515,932,984,813,000 | 42.546875 | 162 | 0.612038 | false |
ionelmc/python-cogen | tests/test_socket.py | 4 | 8908 | __doc_all__ = []
import unittest
import random
import threading
import socket
import time
import sys
import errno
import exceptions
import datetime
import traceback
import thread
from cStringIO import StringIO
from cogen.common import *
from base import priorities, proactors_available
from cogen.co... | mit | 5,506,553,380,335,540,000 | 33.7751 | 130 | 0.507634 | false |
igavrilov/django-tastypie | tests/testcases.py | 13 | 3625 | import socket
import threading
from django.core.handlers.wsgi import WSGIHandler
from django.core.management import call_command
from django.core.servers import basehttp
from django.db import connections
from django.test.testcases import TransactionTestCase, TestCase
class StoppableWSGIServer(basehttp.WSGIServer):
... | bsd-3-clause | -6,885,310,986,520,120,000 | 33.52381 | 85 | 0.614345 | false |
CYBAI/servo | etc/crates-graph.py | 7 | 1751 | #!/usr/bin/env python3
# Copyright 2013 The Servo Project Developers. See the COPYRIGHT
# file at the top-level directory of this distribution.
#
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
# <LICENSE-MIT or http://opensource.org/... | mpl-2.0 | 6,595,794,766,584,604,000 | 33.333333 | 94 | 0.607653 | false |
chrisidefix/devide | modules/readers/resources/python/rawVolumeRDRViewFrame.py | 7 | 4028 | #!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
# generated by wxGlade 0.6.3 on Sat Feb 09 13:43:04 2008
import wx
# begin wxGlade: extracode
# end wxGlade
class rawVolumeRDRViewFrame(wx.Frame):
def __init__(self, *args, **kwds):
# begin wxGlade: rawVolumeRDRViewFrame.__init__
kwds["style"] ... | bsd-3-clause | -3,833,472,962,603,177,000 | 45.837209 | 203 | 0.640268 | false |
verdurin/bcbio-nextgen | bcbio/variation/ensemble.py | 4 | 9863 | """Ensemble methods that create consensus calls from multiple approaches.
This handles merging calls produced by multiple calling methods or
technologies into a single consolidated callset. Uses the bcbio.variation
toolkit: https://github.com/chapmanb/bcbio.variation and bcbio.variation.recall:
https://github.com/chap... | mit | -5,683,336,264,044,865,000 | 46.191388 | 116 | 0.623543 | false |
mooninite/cobbler | cobbler/modules/manage_in_tftpd.py | 14 | 6968 | """
This is some of the code behind 'cobbler sync'.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distribute... | gpl-2.0 | 3,748,188,687,247,831,600 | 34.55102 | 106 | 0.610218 | false |
aiyyoi/DevFest-MaxBond | MaxBond/env/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.py | 33 | 32975 | # ext/associationproxy.py
# Copyright (C) 2005-2014 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Contain the ``AssociationProxy`` class.
The ``AssociationProxy`` is a Py... | mit | -1,123,833,519,017,627,400 | 30.285579 | 79 | 0.583169 | false |
kevinpanaro/esp8266_micropython | umqtt/simple.py | 2 | 6136 | import usocket as socket
import ustruct as struct
from ubinascii import hexlify
class MQTTException(Exception):
pass
class MQTTClient:
def __init__(self, client_id, server, port=0, user=None, password=None, keepalive=0,
ssl=False, ssl_params={}):
if port == 0:
port = 8883... | mit | 2,339,468,008,493,562,400 | 31.125654 | 88 | 0.488755 | false |
borosnborea/SwordGO_app | example/gps/main.py | 2 | 1650 | from kivy.lang import Builder
from plyer import gps
from kivy.app import App
from kivy.properties import StringProperty
from kivy.clock import Clock, mainthread
kv = '''
BoxLayout:
orientation: 'vertical'
Label:
text: app.gps_location
Label:
text: app.gps_status
BoxLayout:
size_... | gpl-3.0 | 4,786,853,839,254,401,000 | 24 | 74 | 0.573333 | false |
vinodpanicker/scancode-toolkit | tests/cluecode/data/copyrights/copyright_psf_in_python-BitVector_py.py | 48 | 86557 | #!/usr/bin/env python
__version__ = '1.5.1'
__author__ = "Avinash Kak (kak@purdue.edu)"
__date__ = '2008-September-4'
__url__ = 'http://RVL4.ecn.purdue.edu/~kak/dist/BitVector-1.5.1.html'
__copyright__ = "(C) 2008 Avinash Kak. Python Software Foundation."
__doc__ = '''
BitVector.py
Versi... | apache-2.0 | -1,430,159,320,741,009,700 | 45.663546 | 124 | 0.463845 | false |
CoherentLabs/depot_tools | third_party/pylint/pyreverse/utils.py | 1 | 3711 | # Copyright (c) 2002-2013 LOGILAB S.A. (Paris, FRANCE).
# http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, o... | bsd-3-clause | 2,182,224,738,156,549,400 | 27.328244 | 80 | 0.601994 | false |
wangyum/beam | sdks/python/apache_beam/runners/worker/log_handler.py | 6 | 3855 | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | apache-2.0 | 1,367,148,105,726,193,200 | 35.714286 | 80 | 0.705577 | false |
atodorov/lorax | src/composer/cli/status.py | 5 | 1972 | #
# Copyright (C) 2018 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed ... | gpl-2.0 | 3,230,143,259,067,427,300 | 34.214286 | 71 | 0.644523 | false |
psi4/psi4 | tests/pytests/test_aaa_profiling.py | 12 | 1796 | import time
import pytest
import numpy as np
import multiprocessing
import psi4
# Test below is fine on its own but erratic through pytest. Most likely
# to succeed as first test collected, so here it lies.
@pytest.mark.xfail(True, reason='threading treatment suspect', run=True)
def disabled_test_threaded_blas():
... | lgpl-3.0 | 6,675,593,251,874,158,000 | 33.538462 | 105 | 0.542316 | false |
mayankcu/Django-social | venv/Lib/site-packages/django/contrib/gis/db/backends/postgis/adapter.py | 94 | 1501 | """
This object provides quoting for GEOS geometries into PostgreSQL/PostGIS.
"""
from psycopg2 import Binary
from psycopg2.extensions import ISQLQuote
class PostGISAdapter(object):
def __init__(self, geom):
"Initializes on the geometry."
# Getting the WKB (in string form, to allow easy pickling ... | bsd-3-clause | -4,608,196,774,979,288,000 | 32.355556 | 91 | 0.632911 | false |
zevnux/pep8 | testsuite/E12.py | 9 | 6781 | #: E121
print "E121", (
"dent")
#: E122
print "E122", (
"dent")
#: E123
my_list = [
1, 2, 3,
4, 5, 6,
]
#: E124
print "E124", ("visual",
"indent_two"
)
#: E124
print "E124", ("visual",
"indent_five"
)
#: E124
a = (123,
)
#: E129
if (row < 0 or self.moduleCount <... | mit | -5,707,114,845,600,852,000 | 17.034574 | 73 | 0.482967 | false |
szaghi/MaTiSSe | release/MaTiSSe-v0.0.2/matisse/presentation/subsection.py | 10 | 4076 | #!/usr/bin/env python
"""
subsection.py, module definition of Subsection class.
This defines a subsection of the presentation.
"""
# modules loading
# standard library modules: these should be present in any recent python distribution
from collections import OrderedDict
import re
# MaTiSSe.py modules
from ..config impo... | gpl-3.0 | -137,038,116,430,340,770 | 31.608 | 122 | 0.64475 | false |
jmesteve/asterisk | openerp/addons/account/project/report/quantity_cost_ledger.py | 56 | 6166 | # -*- 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 | 8,806,768,235,669,770,000 | 48.328 | 99 | 0.533247 | false |
amolkahat/pandas | pandas/core/computation/ops.py | 7 | 15907 | """Operator classes for eval.
"""
import operator as op
from functools import partial
from datetime import datetime
import numpy as np
from pandas.core.dtypes.common import is_list_like, is_scalar
import pandas as pd
from pandas.compat import PY3, string_types, text_type
import pandas.core.common as com
from pandas.... | bsd-3-clause | 418,354,933,645,797,060 | 27.974499 | 79 | 0.547432 | false |
mclois/iteexe | exe/webui/hangmanblock.py | 4 | 20194 | # ===========================================================================
# eXe
# Copyright 2004-2005, University of Auckland
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either versio... | gpl-2.0 | -6,191,318,856,809,462,000 | 44.176734 | 242 | 0.603149 | false |
ansible/ansible | test/support/network-integration/collections/ansible_collections/cisco/ios/plugins/doc_fragments/ios.py | 47 | 3576 | # -*- coding: utf-8 -*-
# Copyright: (c) 2015, Peter Sprygada <psprygada@ansible.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
class ModuleDocFragment(object):
# Standard files documentation fragment
DOCUMENTATION = r"""options:
provider:
description... | gpl-3.0 | -6,105,285,223,030,984,000 | 43.148148 | 113 | 0.672539 | false |
harisibrahimkv/django | tests/migrations/test_loader.py | 23 | 19149 | from django.db import connection, connections
from django.db.migrations.exceptions import (
AmbiguityError, InconsistentMigrationHistory, NodeNotFoundError,
)
from django.db.migrations.loader import MigrationLoader
from django.db.migrations.recorder import MigrationRecorder
from django.test import TestCase, modify_... | bsd-3-clause | 8,898,655,474,986,397,000 | 38.89375 | 107 | 0.603739 | false |
tkfu/sublimetext-asciidoc | Keymaps/Default.sublime-keymap.py | 2 | 7396 | #!/usr/bin/env python3
# -*- encoding: utf-8 -*-
import re
from sublimedsl.keymap import *
def asciidoc_macro(name):
return "res://Packages/Asciidoctor/Macros/%s.sublime-macro" % name
def builtin_macro(name):
return "res://Packages/Default/%s.sublime-macro" % name
def escape(string):
""" Escape regex ... | mit | 45,377,514,683,484,504 | 37.4375 | 94 | 0.572493 | false |
suutari-ai/shoop | shuup/notify/enums.py | 3 | 1586 | # -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2017, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from django.utils.translation import ugettext_lazy as _
from enum... | agpl-3.0 | 7,891,383,859,955,382,000 | 19.868421 | 69 | 0.592686 | 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.