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 |
|---|---|---|---|---|---|---|---|---|---|---|
KAsante95/osf.io | framework/auth/utils.py | 32 | 2156 | import re
from nameparser.parser import HumanName
from modularodm.exceptions import ValidationError
# email verification adopted from django. For licence information, see NOTICE
USER_REGEX = re.compile(
r"(^[-!#$%&'*+/=?^_`{}|~0-9A-Z]+(\.[-!#$%&'*+/=?^_`{}|~0-9A-Z]+)*$" # dot-atom
# quoted-string
r'|^"([\... | apache-2.0 | -3,784,843,651,314,846,700 | 27 | 83 | 0.579314 | false |
tacaswell/bokeh | bokeh/models/ranges.py | 10 | 3886 | """ Models for describing different kinds of ranges of values
in different kinds of spaces (e.g., continuous or categorical)
and with options for "auto sizing".
"""
from __future__ import absolute_import
from ..plot_object import PlotObject
from ..properties import abstract
from ..properties import Int, Float, String... | bsd-3-clause | -4,578,640,048,189,054,500 | 29.598425 | 99 | 0.64771 | false |
CCLab/Raw-Salad | scripts/autoupload/schema_modifier.py | 1 | 9770 | # -*- coding: utf-8 -*-
'''
Created on 30-08-2011
'''
import simplejson as json
from django.template.defaultfilters import slugify
from string import ascii_lowercase
def remove_diacritics(name):
"""Returns name without diacritics and inserted latin letters.
Arguments:
name -- word to have diacriti... | bsd-3-clause | -1,703,946,927,037,977,600 | 33.701068 | 108 | 0.529641 | false |
idan/oauthlib | oauthlib/uri_validate.py | 1 | 7570 | """
Regex for URIs
These regex are directly derived from the collected ABNF in RFC3986
(except for DIGIT, ALPHA and HEXDIG, defined by RFC2234).
They should be processed with re.VERBOSE.
Thanks Mark Nottingham for this code - https://gist.github.com/138549
"""
import re
# basics
DIGIT = r"[\x30-\x39]"
ALPHA = r"[... | bsd-3-clause | 1,597,236,451,372,848,600 | 34.373832 | 96 | 0.414531 | false |
hmcmooc/muddx-platform | common/djangoapps/terrain/steps.py | 3 | 6853 | # pylint: disable=C0111
# pylint: disable=W0621
# Disable the "wildcard import" warning so we can bring in all methods from
# course helpers and ui helpers
# pylint: disable=W0401
# Disable the "Unused import %s from wildcard import" warning
# pylint: disable=W0614
# Disable the "unused argument" warning because let... | agpl-3.0 | -5,741,739,564,179,757,000 | 28.925764 | 115 | 0.681016 | false |
2014c2g12/c2g12 | c2wp/wsgi/programs/c2g30/__init__.py | 10 | 13378 | import cherrypy
# 這是 C2G30 類別的定義
class C2G30(object):
# 各組利用 index 引導隨後的程式執行
@cherrypy.expose
def index(self, *args, **kwargs):
outstring = '''
這是 2014C2 協同專案下的 c2g30 分組程式開發網頁, 以下為 W12 的任務執行內容.<br />
<!-- 這裡採用相對連結, 而非網址的絕對連結 (這一段為 html 註解) -->
<a href="fillpoly">c2g30 fillpoly 繪圖</a><br />
<a href=... | gpl-2.0 | 1,659,936,041,346,532,900 | 27.424528 | 98 | 0.549369 | false |
papallas/baxter_cashier | scripts/baxter_cashier_perception/src/camera_calibration.py | 1 | 11217 | #!/usr/bin/python
"""
Image Calibrator tool.
This script implements the Camera Calibrator tool. The purpose of this tool
is to align the camera view relative to Baxter's base.
Since Baxter will be far away from the RGB-D camera, this script will allow the
user through a User Interface to aligh the two.
Copyright... | gpl-3.0 | -2,389,012,720,843,534,300 | 34.384858 | 79 | 0.602924 | false |
CCrypto/ccvpn3 | lambdainst/management/commands/expire_notify.py | 1 | 2208 | from django.core.management.base import BaseCommand
from datetime import timedelta
from django.db.models import Q, F
from django.conf import settings
from django.utils import timezone
from django.template.loader import get_template
from django.core.mail import send_mass_mail
from constance import config as site_confi... | mit | 3,720,305,249,847,602,700 | 35.8 | 90 | 0.636322 | false |
zsiciarz/django-markitup | markitup/templatetags/markitup_tags.py | 3 | 2073 | from __future__ import unicode_literals
from django import template
from django.core.urlresolvers import reverse, NoReverseMatch
from markitup import settings
from markitup.util import absolute_url
from markitup.fields import render_func
register = template.Library()
@register.filter
def render_markup(content):
... | bsd-3-clause | -7,835,216,432,872,737,000 | 29.485294 | 76 | 0.712012 | false |
Dhivyap/ansible | lib/ansible/plugins/inventory/hcloud.py | 12 | 8464 | # Copyright (c) 2019 Hetzner Cloud GmbH <info@hetzner-cloud.de>
# 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"""
name: hcloud
plugin_type: inventory
aut... | gpl-3.0 | 7,025,890,395,361,384,000 | 38.004608 | 117 | 0.626772 | false |
jmchilton/galaxy-central | tools/emboss/emboss_format_corrector.py | 1 | 1696 | #EMBOSS format corrector
import operator
from galaxy import datatypes
#Properly set file formats after job run
def exec_after_process( app, inp_data, out_data, param_dict,tool, stdout, stderr):
#Properly set file formats before job run
#def exec_before_job(trans, inp_data, out_data, param_dict,tool):
#why isn't i... | mit | 4,169,446,580,304,199,000 | 32.92 | 82 | 0.590802 | false |
fzimmermann89/pyload | module/plugins/accounts/MegaRapidoNet.py | 1 | 5619 | # -*- coding: utf-8 -*-
import re
import time
from module.plugins.internal.MultiAccount import MultiAccount
class MegaRapidoNet(MultiAccount):
__name__ = "MegaRapidoNet"
__type__ = "account"
__version__ = "0.07"
__status__ = "testing"
__config__ = [("mh_mode" , "all;listed;unlisted", ... | gpl-3.0 | 3,575,877,202,620,310,000 | 44.666667 | 235 | 0.445434 | false |
CingHu/neutron-ustack | neutron/tests/unit/vmware/nsxlib/test_router.py | 21 | 46835 | # Copyright (c) 2014 VMware, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | apache-2.0 | 4,142,239,347,746,218,500 | 48.404008 | 79 | 0.50221 | false |
pombredanne/rekall | rekall-core/rekall/plugins/common/entity/efilter_protocols.py | 4 | 5229 | # Rekall Memory Forensics
#
# Copyright 2014 Google Inc. All Rights Reserved.
#
# 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 v... | gpl-2.0 | -8,311,667,224,154,146,000 | 29.225434 | 77 | 0.673551 | false |
pycket/pycket | pycket/ast_vs_sexp.py | 1 | 35364 | from pycket import interpreter as interp
from pycket import values, values_string, vector, util, values_regex
from pycket.prims.correlated import W_Correlated
from pycket.error import SchemeException
from pycket.hash import simple, equal, base
from pycket.assign_convert import assign_convert
from pycket.util import Per... | mit | 2,687,355,948,987,064,000 | 41.865455 | 153 | 0.585002 | false |
0x08e/SENginx | 3rd-party/naxsi/nx_util/nx_lib/nx_imports.py | 3 | 20172 | import urlparse
import string
import itertools
import datetime
import time
import pprint
import gzip
import bz2
import glob
import logging
import sys
from select import select
import re
class NxImportFilter():
""" Used to handle user supplied input filters on data acquisition """
def __init__(self, filters):
... | bsd-3-clause | -1,315,556,397,614,317,800 | 37.643678 | 206 | 0.473776 | false |
utkbansal/kuma | kuma/wiki/tests/test_tasks.py | 3 | 4056 | from __future__ import with_statement
import os
from django.conf import settings
from django.test import override_settings
import bitly_api
import mock
from nose.tools import eq_, ok_
from kuma.core.cache import memcache
from kuma.users.tests import UserTestCase, user
from . import revision, document
from ..tasks ... | mpl-2.0 | -3,020,199,949,217,570,000 | 34.893805 | 75 | 0.623274 | false |
bpshetty/erpnext | erpnext/stock/doctype/batch/test_batch.py | 3 | 4238 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.exceptions import ValidationError
import unittest
from erpnext.stock.doctype.batch.batch import get_batch_qty, UnableToSelect... | gpl-3.0 | 6,169,295,907,783,267,000 | 26.699346 | 103 | 0.676498 | false |
rpufky/trafficserver | tests/tools/traffic-replay/Config.py | 2 | 1044 | #!/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 ... | apache-2.0 | 3,079,210,067,174,813,700 | 29.705882 | 75 | 0.743295 | false |
usc-isi/extra-specs | nova/tests/scheduler/test_chance_scheduler.py | 2 | 9861 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack LLC.
# 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/... | apache-2.0 | -1,759,562,343,065,463,300 | 41.321888 | 78 | 0.610486 | false |
tquilian/exeNext | exe/engine/quiztestidevice.py | 10 | 16960 | # ===========================================================================
# eXe
# Copyright 2004-2006, University of Auckland
# Copyright 2004-2008 eXe Project, http://eXeLearning.org/
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as... | gpl-2.0 | 377,215,837,858,042,940 | 37.721461 | 124 | 0.591627 | false |
murrown/cyder | cyder/cydhcp/network/forms.py | 2 | 4382 | from django import forms
from django.core.exceptions import ValidationError
import ipaddr
from cyder.base.constants import IP_TYPES, IP_TYPE_4, IP_TYPE_6
from cyder.base.eav.forms import get_eav_form
from cyder.base.mixins import UsabilityFormMixin
from cyder.cydhcp.network.models import Network, NetworkAV
from cyder... | bsd-3-clause | -1,959,771,949,257,195,500 | 36.135593 | 77 | 0.607485 | false |
Pakoach/Sick-Beard | lib/tvdb_api/tests/test_tvdb_api.py | 26 | 15937 | #!/usr/bin/env python
#encoding:utf-8
#author:dbr/Ben
#project:tvdb_api
#repository:http://github.com/dbr/tvdb_api
#license:unlicense (http://unlicense.org/)
"""Unittests for tvdb_api
"""
import os
import sys
import datetime
import unittest
# Force parent directory onto path
sys.path.insert(0, os.path.dirname(os.pat... | gpl-3.0 | 8,590,117,882,473,875,000 | 30.24902 | 123 | 0.554935 | false |
orion/swift-config | swift/common/ring/builder.py | 4 | 45916 | # Copyright (c) 2010-2012 OpenStack, 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 to ... | apache-2.0 | 6,192,969,205,520,987,000 | 42.89675 | 79 | 0.560001 | false |
nzavagli/UnrealPy | UnrealPyEmbed/Development/Python/2015.08.07-Python2710-x64-Source-vs2015/Python27/Source/PyChart-1.39/demos/rangetest.py | 6 | 1404 | #
# Copyright (C) 2000-2005 by Yasushi Saito (yasushi.saito@gmail.com)
#
# Pychart is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any
# later version.
#
# Pychart is dist... | mit | 2,242,719,558,959,210,200 | 41.545455 | 76 | 0.646011 | false |
bcl/anaconda | pyanaconda/iutil.py | 1 | 47063 | #
# iutil.py - generic install utility functions
#
# Copyright (C) 1999-2014
# Red Hat, Inc. All rights reserved.
#
# 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 Licen... | gpl-2.0 | 4,872,098,951,905,588,000 | 34.0693 | 104 | 0.62308 | false |
rackerlabs/osrc | osrc/index.py | 4 | 4841 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import (division, print_function, absolute_import,
unicode_literals)
__all__ = ["rebuild_index", "get_neighbors"]
import os
import h5py
import flask
import shutil
import pyflann
import numpy as np
from .database import get_pipelin... | mit | -1,321,124,036,556,423,700 | 26.505682 | 78 | 0.602355 | false |
gnieboer/tensorflow | tensorflow/python/kernel_tests/tensor_array_ops_test.py | 10 | 48213 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 3,521,932,278,056,882,700 | 35.469743 | 80 | 0.606849 | false |
ikeikeikeike/tastypie-queryset-client | docs/source/conf.py | 2 | 8389 | # -*- coding: utf-8 -*-
#
# Tastypie QuerySet Client documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 29 01:25:30 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenera... | mit | -2,716,296,258,463,638,500 | 32.158103 | 170 | 0.709381 | false |
mylons/incubator-airflow | airflow/__init__.py | 5 | 2610 | # -*- 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 | -9,065,169,097,647,636,000 | 29.705882 | 87 | 0.718774 | false |
hefen1/chromium | PRESUBMIT_test.py | 2 | 30203 | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import glob
import json
import os
import re
import subprocess
import sys
import unittest
import PRESUBMIT
from PRESUBMIT_test_mock... | bsd-3-clause | 4,928,798,008,609,115,000 | 37.377382 | 80 | 0.55521 | false |
NINAnor/QGIS | python/plugins/GdalTools/tools/doSieve.py | 12 | 4153 | # -*- coding: utf-8 -*-
"""
***************************************************************************
doSieve.py
---------------------
Date : June 2010
Copyright : (C) 2010 by Giuseppe Sucameli
Email : brush dot tyler at gmail dot com
********************... | gpl-2.0 | 4,575,895,126,424,551,000 | 40.53 | 171 | 0.610643 | false |
azumimuo/family-xbmc-addon | plugin.video.dragon.sports/lib/utils/github/AuthenticatedUser.py | 7 | 27215 | # -*- coding: utf-8 -*-
# Copyright 2012 Vincent Jacques
# vincent@vincent-jacques.net
# This file is part of PyGithub. http://vincent-jacques.net/PyGithub
# PyGithub 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 Softwar... | gpl-2.0 | -1,894,709,387,845,097,700 | 38.846266 | 292 | 0.620393 | false |
xenserver/xscontainer | src/xscontainer/docker_monitor/api.py | 3 | 1360 | """
API Entry points for interacting with the DockerMonitor service.
"""
from xscontainer import docker
from xscontainer import docker_monitor
from xscontainer.api_helper import VM
from xscontainer.api_helper import XenAPIClient
from xscontainer.util import log
def register_vm(vm_uuid, session):
log.info("registe... | bsd-2-clause | 65,622,347,360,845,940 | 34.789474 | 76 | 0.691176 | false |
Neohapsis/mptcp-abuse | tests/join/none-before-subflow-4th-ack.py | 1 | 1997 | #!/usr/bin/env python2
# Client part of the scenario
from tests.mptcptestlib import *
def main():
conf = {"printanswer":False, "debug":4, "check": False}
t = ProtoTester(conf)
s = MPTCPState()
m = MPTCPTest(tester=t, initstate=s)
# Client IPs
A1 = "10.1.1.2"
A2 = "10.1.2.2"
# Server IP... | gpl-2.0 | 2,926,188,541,421,442,600 | 27.126761 | 78 | 0.590886 | false |
ferewuz/libcloud | libcloud/storage/drivers/google_storage.py | 28 | 5031 | # 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 use ... | apache-2.0 | -813,955,614,884,171,400 | 35.722628 | 79 | 0.604254 | false |
mdworks2016/work_development | Python/20_Third_Certification/venv/lib/python3.7/site-packages/django/contrib/gis/db/backends/oracle/schema.py | 102 | 3916 | from django.contrib.gis.db.models.fields import GeometryField
from django.db.backends.oracle.schema import DatabaseSchemaEditor
from django.db.backends.utils import strip_quotes, truncate_name
class OracleGISSchemaEditor(DatabaseSchemaEditor):
sql_add_geometry_metadata = ("""
INSERT INTO USER_SDO_GEOM_MET... | apache-2.0 | -4,419,039,309,304,658,000 | 40.659574 | 110 | 0.561032 | false |
iafan/zing | pootle/apps/pootle_comment/forms.py | 2 | 2237 | # -*- 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 datetime import datetime
from django i... | gpl-3.0 | -6,611,040,397,666,857,000 | 30.507042 | 77 | 0.641037 | false |
jonathanslenders/python-prompt-toolkit | tests/test_inputstream.py | 1 | 4032 | import pytest
from prompt_toolkit.input.vt100_parser import Vt100Parser
from prompt_toolkit.keys import Keys
class _ProcessorMock(object):
def __init__(self):
self.keys = []
def feed_key(self, key_press):
self.keys.append(key_press)
@pytest.fixture
def processor():
return _ProcessorMoc... | bsd-3-clause | 7,922,073,704,762,516,000 | 28.007194 | 73 | 0.660466 | false |
camptocamp/c2c-rd-addons | account_financial_report_chricar/report/general_ledger_landscape.py | 5 | 18269 | # -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2005-2006 CamptoCamp
# Copyright (c) 2009 Zikzakmedia S.L. (http://zikzakmedia.com) All Rights Reserved.
# Jordi Esteve <jesteve@zikzakmedia.com>
#
# WARNING: This progr... | agpl-3.0 | 6,291,520,179,597,972,000 | 43.128019 | 220 | 0.53183 | false |
dcoles/ivle | ivle/webapp/security/__init__.py | 1 | 1754 | # IVLE - Informatics Virtual Learning Environment
# Copyright (C) 2007-2009 The University of Melbourne
#
# 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
# (a... | gpl-2.0 | 7,306,604,468,488,788,000 | 34.795918 | 76 | 0.721209 | false |
Twangist/log_calls | tests/test_record_history_log_methods.py | 1 | 8533 | __author__ = 'brianoneill'
from log_calls import record_history
#-----------------------------------------------------
# record_history.print, record_history.print_exprs
# Test in methods, in functions
#-----------------------------------------------------
def test_rh_log_message__output_expected():
"""
-----... | mit | -5,525,261,937,872,755,000 | 27.538462 | 80 | 0.452244 | false |
shahar-stratoscale/nova | nova/image/s3.py | 16 | 17627 | # 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 compliance with the License. You may obtain
# a ... | apache-2.0 | -7,729,528,344,108,920,000 | 39.428899 | 79 | 0.539343 | false |
angelapper/odoo | addons/report/models/abstract_report.py | 47 | 2092 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from openerp.osv import osv
class AbstractReport(osv.AbstractModel):
"""Model used to embed old style reports"""
_name = 'report.abstract_report'
_template = None
_wrapped_report_class = None
def r... | agpl-3.0 | 286,134,075,678,085,900 | 42.583333 | 96 | 0.630019 | false |
IntelLabs/numba | numba/cuda/api.py | 3 | 17872 | """
API that are reported to numba.cuda
"""
import contextlib
import os
import numpy as np
from .cudadrv import devicearray, devices, driver
from numba.core import config
# NDarray device helper
require_context = devices.require_context
current_context = devices.get_context
gpus = devices.gpus
@require_context... | bsd-2-clause | 926,152,474,975,385,100 | 32.219331 | 80 | 0.630651 | false |
spjmurray/openstack-sentinel | sentinel/api/controllers/image/v2/schemas.py | 1 | 1399 | # Copyright 2017 DataCentred Ltd
#
# 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 | 4,468,057,246,812,892,700 | 33.975 | 78 | 0.711937 | false |
Lektorium-LLC/edx-platform | lms/djangoapps/certificates/tests/test_cert_management.py | 5 | 10678 | """Tests for the resubmit_error_certificates management command. """
import ddt
from django.core.management.base import CommandError
from django.test.utils import override_settings
from mock import patch
from nose.plugins.attrib import attr
from opaque_keys.edx.locator import CourseLocator
from badges.events.course_co... | agpl-3.0 | -184,744,424,829,223,230 | 40.227799 | 108 | 0.678498 | false |
alkyl1978/gnuradio | gr-fec/python/fec/extended_tagged_encoder.py | 23 | 3264 | #!/usr/bin/env python
#
# Copyright 2014 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# ... | gpl-3.0 | 2,625,645,992,004,734,500 | 38.804878 | 87 | 0.584865 | false |
ArseniyK/Sunflower | application/gui/preferences/toolbar.py | 9 | 7705 | import gtk
from widgets.settings_page import SettingsPage
class Column:
NAME = 0
DESCRIPTION = 1
TYPE = 2
ICON = 3
class ToolbarOptions(SettingsPage):
"""Toolbar options extension class"""
def __init__(self, parent, application):
SettingsPage.__init__(self, parent, application, 'toolbar', _('Toolbar'))
... | gpl-3.0 | 5,710,118,001,502,252,000 | 31.37395 | 92 | 0.678131 | false |
simobasso/ansible | lib/ansible/parsing/splitter.py | 9 | 10866 | # (c) 2014 James Cammarata, <jcammarata@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 your option) any late... | gpl-3.0 | -4,722,345,781,369,629,000 | 39.849624 | 120 | 0.597368 | false |
Crypto-Expert/Electrum-obsolete | lib/verifier.py | 4 | 5843 | #!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2012 thomasv@ecdsa.org
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at... | gpl-3.0 | 2,701,930,159,249,060,000 | 33.779762 | 140 | 0.571624 | false |
beiko-lab/gengis | bin/Lib/distutils/sysconfig.py | 3 | 22882 | """Provide access to Python's configuration information. The specific
configuration variables available depend heavily on the platform and
configuration. The values may be retrieved using
get_config_var(name), and the list of variables is available via
get_config_vars().keys(). Additional convenience functions a... | gpl-3.0 | -8,925,784,584,515,524,000 | 36.457143 | 79 | 0.53636 | false |
mindprince/test-infra | gubernator/testgrid.py | 19 | 4097 | #!/usr/bin/env python
# Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | apache-2.0 | -695,466,601,918,399,600 | 30.037879 | 80 | 0.568221 | false |
evidens/json2csv | json2csv.py | 2 | 4981 | #!/usr/bin/env python
try:
import unicodecsv as csv
except ImportError:
import csv
import json
import operator
import os
from collections import OrderedDict
import logging
logging.basicConfig(level=logging.DEBUG)
class Json2Csv(object):
"""Process a JSON object to a CSV file"""
collection = None
... | mit | -6,921,815,868,965,170,000 | 31.135484 | 158 | 0.586027 | false |
jcpowermac/ansible | lib/ansible/module_utils/network/f5/common.py | 4 | 8051 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2017 F5 Networks 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
from ansible.module_utils._text import to_text
from ansible.module_utils.bas... | gpl-3.0 | 4,251,562,229,103,793,700 | 29.612167 | 94 | 0.602037 | false |
liukaijv/XlsxWriter | xlsxwriter/test/workbook/test_check_sheetname.py | 8 | 1669 | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...workbook import Workbook
class TestCheckSheetname(unittest.TestCase):
"""
Test the Workbook _check_sheetname() me... | bsd-2-clause | -9,026,266,447,833,554,000 | 27.775862 | 79 | 0.612942 | false |
victorzhao/miniblink49 | v8_4_5/build/landmines.py | 35 | 8385 | #!/usr/bin/env python
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
This script runs every build as the first hook (See DEPS). If it detects that
the build should be clobbered, it will delete the c... | gpl-3.0 | 1,074,439,803,792,460,900 | 33.22449 | 80 | 0.672033 | false |
tomashaber/raiden | raiden/network/discovery.py | 1 | 3394 | # -*- coding: utf-8 -*-
import socket
from ethereum import slogging
from raiden.exceptions import UnknownAddress
from raiden.utils import (
host_port_to_endpoint,
isaddress,
pex,
split_endpoint,
)
from raiden.exceptions import InvalidAddress
log = slogging.getLogger(__name__)
class Discovery(object... | mit | -5,565,086,129,687,018,000 | 29.576577 | 80 | 0.603712 | false |
access-missouri/am-django-project | am/finance/migrations/0001_initial.py | 1 | 3804 | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-12-18 21:21
from __future__ import unicode_literals
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
... | bsd-2-clause | -8,058,657,331,822,270,000 | 62.4 | 197 | 0.615668 | false |
joelthompson/ansible-modules-core | cloud/amazon/iam_cert.py | 17 | 11715 | #!/usr/bin/python
# 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.
#
# Ansible is distributed... | gpl-3.0 | -1,320,375,280,987,984,100 | 38.444444 | 172 | 0.56927 | false |
baylee-d/osf.io | admin_tests/spam/test_extras.py | 13 | 1190 | import pytest
from nose import tools as nt
from admin.spam.templatetags import spam_extras
@pytest.mark.django_db
class TestReverseTags:
@pytest.fixture(autouse=True)
def override_urlconf(self, settings):
settings.ROOT_URLCONF = 'admin.base.urls'
def test_reverse_spam_detail(self):
res ... | apache-2.0 | 8,431,833,047,182,561,000 | 34 | 76 | 0.604202 | false |
artwr/airflow | tests/contrib/operators/test_mongo_to_s3_operator.py | 4 | 4092 | # -*- 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 | 933,954,973,534,528,100 | 32.268293 | 87 | 0.662268 | false |
stackforge/watcher | watcher/tests/policy_fixture.py | 1 | 1607 | # Copyright 2012 Hewlett-Packard Development Company, L.P.
#
# 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 | 4,579,654,776,968,350,700 | 35.522727 | 78 | 0.688861 | false |
Seagate/swift | swift/container/backend.py | 11 | 37210 | # Copyright (c) 2010-2012 OpenStack Foundation
#
# 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 | -1,712,850,593,186,095,000 | 40.025358 | 79 | 0.531524 | false |
dongguangming/pexpect | tests/test_winsize.py | 6 | 2568 | #!/usr/bin/env python
'''
PEXPECT LICENSE
This license is approved by the OSI and FSF as GPL-compatible.
http://opensource.org/licenses/isc-license.txt
Copyright (c) 2012, Noah Spurrier <noah@noah.org>
PERMISSION TO USE, COPY, MODIFY, AND/OR DISTRIBUTE THIS SOFTWARE FOR ANY
PURPOSE WITH OR WIT... | isc | -798,408,546,997,018,500 | 37.328358 | 97 | 0.633956 | false |
scriptnull/coala | bears/tests/c_languages/codeclone_detection/ClangCloneDetectionBearTest.py | 2 | 3681 | import os
import unittest
from queue import Queue
from bears.tests.BearTestHelper import generate_skip_decorator
from bears.c_languages.codeclone_detection.ClangFunctionDifferenceBear import (
ClangFunctionDifferenceBear)
from bears.c_languages.codeclone_detection.ClangCloneDetectionBear import (
ClangCloneDet... | agpl-3.0 | 5,606,790,069,334,038,000 | 41.310345 | 79 | 0.564521 | false |
ecdavis/pants | pants/test/core/test_echo_to_all.py | 1 | 2960 | ###############################################################################
#
# Copyright 2012 Pants Developers (see AUTHORS.txt)
#
# 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
#
# h... | apache-2.0 | 6,850,289,465,869,795,000 | 32.258427 | 89 | 0.606757 | false |
UCHIC/WaterMonitor | Previous_Designs/Residential_Prototype/Firmware/first_version/filenamer.py | 1 | 1229 | import re
from os.path import exists, join, isdir
class Filenamer(object):
def __init__(self, filename_format='%08d.dat'):
self._format = filename_format
self._directories_dict = {} # starts out empty
self._next_number = -1 # self.next() will change this to zero
def next_filename(self)... | bsd-3-clause | -4,510,054,833,404,321,000 | 27.581395 | 70 | 0.558177 | false |
mffiedler/svt | applications_scalability/websockets_perf/test_scripts/v_user_builds.py | 3 | 1554 | from websocket import create_connection
from ConfigParser import SafeConfigParser
import ssl
import gevent
import time
import json
class Transaction(object):
... | apache-2.0 | 5,527,815,583,500,081,000 | 28.320755 | 180 | 0.515444 | false |
sridevikoushik31/nova | nova/tests/compute/test_claims.py | 5 | 4761 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2012 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.a... | apache-2.0 | -4,474,864,012,096,952,300 | 28.943396 | 78 | 0.605755 | false |
goliveirab/odoo | openerp/fields.py | 60 | 74988 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013-2014 OpenERP (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | agpl-3.0 | -9,165,879,571,625,793,000 | 38.950986 | 114 | 0.585547 | false |
akampjes/p0rk-crackling | p0rk/porkweb/migrations/0008_auto__add_field_attackcharset_name.py | 1 | 6836 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'AttackCharset.name'
db.add_column(u'porkweb_attackcharset', 'name',
se... | bsd-3-clause | -5,450,891,694,230,060,000 | 61.154545 | 153 | 0.535547 | false |
FreakofKnuth/Nanoinformatics | LSI/ScratchModelRunners/LsiEnvironmentvsNanoMedicine.py | 2 | 4387 | from sys import argv
import numpy
from gensim import corpora, models, similarities
from gensim.corpora import MmCorpus
from nltk.corpus import stopwords
import os
from pprint import pprint
from numpy import median
# Enables ease of recall in the future
modelFile = '.' + os.sep + 'EnvironmentModel'
os.makedirs(modelFi... | apache-2.0 | -4,175,512,434,440,232,000 | 41.192308 | 136 | 0.703214 | false |
Revolution1/ohei | ohei/utils/hwinfo/pci/tests/test_lspci.py | 2 | 11805 | """Unit tests for the lspci module"""
import unittest
from hwinfo.pci.lspci import *
DATA_DIR = 'hwinfo/pci/tests/data'
class TestSingleDeviceVVParse(unittest.TestCase):
SAMPLE_DEVICE_FILE = "%s/single_network_device_lspci_vv" % DATA_DIR
DEVICE_DATA = ""
DEVICE_REC = {
'pci_device_string': 'Bro... | mit | -4,691,712,977,889,901,000 | 34.664653 | 238 | 0.613045 | false |
superdesk/superdesk-core | superdesk/storage/desk_media_storage.py | 1 | 6398 | # -*- coding: utf-8; -*-
#
# This file is part of Superdesk.
#
# Copyright 2013, 2014 Sourcefabric z.u. and contributors.
#
# For the full copyright and license information, please see the
# AUTHORS and LICENSE files distributed with this source code, or
# at https://www.sourcefabric.org/superdesk/license
import loggi... | agpl-3.0 | -8,318,082,459,960,763,000 | 34.743017 | 114 | 0.587215 | false |
pkuong/garcon | tests/test_decider.py | 1 | 9081 | from __future__ import absolute_import
try:
from unittest.mock import MagicMock
except:
from mock import MagicMock
import boto.swf.layer2 as swf
import json
import pytest
from garcon import decider
from garcon import activity
from tests.fixtures import decider as decider_events
def mock(monkeypatch):
for... | mit | 1,234,588,957,725,519,400 | 29.169435 | 78 | 0.695078 | false |
seikichi/tuitwi | tuitwi/updater.py | 1 | 10173 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import curses
import tweepy
import tweepy.parsers
import threading
import string
import re
import locale
import const
# 更新処理のスレッドと、一定の間隔でそれに更新を命じるスレッド
# queueへ入れる命令形式は
# 更新: ('GetFriendsTimeline',)
# 投稿: ('PostUpdate', text, reply_id)
# のように, [0]がpython-twitterのメソッド名
# 以降がa... | mit | -8,544,426,428,183,973,000 | 29.363934 | 89 | 0.527157 | false |
chromium/chromium | third_party/blink/tools/blinkpy/common/system/log_utils_unittest.py | 7 | 4838 | # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org)
#
# 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... | bsd-3-clause | 5,451,139,174,148,286,000 | 36.796875 | 79 | 0.684787 | false |
bfelbo/deepmoji | scripts/analyze_all_results.py | 2 | 1221 | from __future__ import print_function
# allow us to import the codebase/keras directory
import sys
import glob
import numpy as np
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))
DATASETS = ['SE0714', 'Olympic', 'PsychExp', 'SS-Twitter', 'SS-Youtube',
'SCv1', 'S... | mit | 7,870,647,236,632,249,000 | 28.071429 | 88 | 0.611794 | false |
loop1024/pymo-global | android/pgs4a-0.9.6/python-install/lib/python2.7/test/test_marshal.py | 29 | 10569 | #!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
from test import test_support
import marshal
import sys
import unittest
import os
class IntTestCase(unittest.TestCase):
def test_ints(self):
# Test the full range of Python ints.
n = sys.maxint
while n:
for expected in (-n, n):... | mit | 3,207,952,097,580,844,000 | 36.34629 | 86 | 0.554357 | false |
jainayush975/zulip | zerver/views/realm.py | 1 | 7084 | from __future__ import absolute_import
from typing import Any, Dict, Optional
from django.http import HttpRequest, HttpResponse
from django.utils.translation import ugettext as _
from zerver.decorator import require_realm_admin, to_non_negative_int
from zerver.lib.actions import (
do_set_realm_message_editing,
... | apache-2.0 | 7,669,482,938,933,022,000 | 68.45098 | 305 | 0.704263 | false |
Brett55/moto | docs/conf.py | 12 | 9155 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Moto documentation build configuration file, created by
# sphinx-quickstart on Sun Jul 26 22:16:23 2015.
#
# 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
# autog... | apache-2.0 | -6,769,149,620,291,133,000 | 31.122807 | 79 | 0.705844 | false |
AICP/external_chromium_org | tools/memory_inspector/memory_inspector/core/native_heap.py | 17 | 1798 | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from memory_inspector.core import stacktrace
from memory_inspector.core import symbol
class NativeHeap(object):
"""A snapshot of outstanding (i.e. not fr... | bsd-3-clause | 4,053,535,745,794,699,000 | 30.54386 | 80 | 0.703003 | false |
ghjm/ansible | lib/ansible/vars/clean.py | 29 | 6423 | # Copyright (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import os
import re
from ansible import constants as C
from ansible.... | gpl-3.0 | 6,687,968,816,079,650,000 | 35.494318 | 134 | 0.649074 | false |
DimStar77/osc | tests/test_deletefiles.py | 15 | 8629 | import osc.core
import osc.oscerr
import os
from common import OscTestCase
FIXTURES_DIR = os.path.join(os.getcwd(), 'deletefile_fixtures')
def suite():
import unittest
return unittest.makeSuite(TestDeleteFiles)
class TestDeleteFiles(OscTestCase):
def _get_fixtures_dir(self):
return FIXTURES_DIR
... | gpl-2.0 | -981,554,177,680,868,900 | 40.68599 | 85 | 0.588365 | false |
aferr/TemporalPartitioningMemCtl | src/cpu/testers/memtest/MemTest.py | 15 | 2921 | # Copyright (c) 2005-2007 The Regents of The University of Michigan
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met: redistributions of source code must retain the above copyright
# notice, this ... | bsd-3-clause | 3,171,767,599,402,096,000 | 50.245614 | 83 | 0.74632 | false |
chuckcoughlin/sarah-bella | robot/src/gpio_msgs/src/GPIOConfiguration.py | 1 | 5812 | #!/usr/bin/env python
#
# Configure the GPIO ports as IN or OUT appropriately.
# This should be called on startup.
#
import rospy
import RPi.GPIO as GPIO
from gpio_msgs.msg import GPIOState, GPIOPin
GPIO.setmode(GPIO.BOARD)
GPIO.setwarnings(False)
# Get warning if pins are set as outputs, but they are not.
def config... | mit | 3,764,982,497,583,951,400 | 17.931596 | 70 | 0.668273 | false |
image72/browserscope | static_mode/richtext_2.py | 9 | 58326 | (dp0
VOpera 9.7
p1
(dp2
S'summary_display'
p3
S'0/149'
p4
sS'total_runs'
p5
L2L
sS'summary_score'
p6
I0
sS'results'
p7
(dp8
S'unapply'
p9
(dp10
S'score'
p11
I0
sS'raw_score'
p12
I0
sS'display'
p13
S'0/26'
p14
ssS'apply'
p15
(dp16
g11
I0
sg12
I0
sg13
S'0/41'
p17
ssS'change'
p18
(dp19
g11
I0
sg12
I0
sg13
S'0/17'
p20
ssS'... | apache-2.0 | -4,245,356,437,274,673,000 | 6.484537 | 28 | 0.754963 | false |
techdragon/django | tests/distinct_on_fields/tests.py | 34 | 5957 | from __future__ import unicode_literals
from django.db.models import Max
from django.test import TestCase, skipUnlessDBFeature
from django.test.utils import str_prefix
from .models import Celebrity, Fan, Staff, StaffTag, Tag
@skipUnlessDBFeature('can_distinct_on_fields')
@skipUnlessDBFeature('supports_nullable_uniq... | bsd-3-clause | 3,620,798,036,416,413,000 | 42.801471 | 118 | 0.55716 | false |
Ladeia/pingo-py | pingo/parts/spi/mcp3008.py | 7 | 1982 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Object interface for MCP3008 A/D converter using bit-banged SPI
"""
import time
import atexit
import RPi.GPIO as GPIO
# make sure GPIO.cleanup will be called when script exits
atexit.register(GPIO.cleanup)
class Mcp3008(object):
def __init__(self, spi_clock, sp... | mit | -989,090,346,551,082,900 | 26.527778 | 63 | 0.545913 | false |
windskyer/nova | nova/cells/weights/ram_by_instance_type.py | 63 | 1971 | # Copyright (c) 2012-2013 Rackspace Hosting
# 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
#
# Unles... | gpl-2.0 | 4,823,621,280,956,539,000 | 36.188679 | 78 | 0.672755 | false |
alexbrasetvik/Piped | doc/tutorials/twitter/2_oauth/twitter_tutorial/test_processors.py | 2 | 3364 | import os
import subprocess
from zope import interface
from twisted.internet import defer, utils
from twisted.web import client
from piped.plugins.status_testing import statustest, processors
from piped import processing
class TestTwitterProcessor(processors.StatusTestProcessor):
interface.classProvides(process... | mit | 7,468,604,758,833,249,000 | 43.866667 | 206 | 0.600476 | false |
MinnowBoard/max-opencv-demos | screens/mazegame/gameplay.py | 2 | 7574 | from .include import *
import random
# The maze generation is an implementation of the unmodified randomized Prim's
# algorithm from http://en.wikipedia.org/wiki/Maze_generation_algorithm
class Maze:
def __init__ (self, w, h, seed = None):
self.w, self.h = w, h
self.area = w * h
... | mit | 4,967,479,147,143,890,000 | 35.239234 | 204 | 0.522445 | false |
LS1qJ/IP-Updater-For-Heroku | mail/simple_mail.py | 1 | 1480 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import smtplib
from email.MIMEText import MIMEText
from email.Utils import formatdate
from email.Header import Header
from dozens_ip_updater.config import Config
class SimpleMail():
fromAddress = Config.FROM_ADDRESS
smtpServer = Config.SMTP
mailAccount = Con... | mit | 7,714,643,754,657,493,000 | 27.461538 | 71 | 0.597973 | false |
mezz64/home-assistant | homeassistant/components/bitcoin/sensor.py | 16 | 6294 | """Bitcoin information service that uses blockchain.com."""
from datetime import timedelta
import logging
from blockchain import exchangerates, statistics
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import (
ATTR_ATTRIBUTION,
CONF_CURRENCY,
... | apache-2.0 | -7,446,982,100,493,062,000 | 33.966667 | 76 | 0.606927 | false |
jkklapp/paintshop | tester_test.py | 1 | 4056 | # Author: jkk.lapp@gmail.com, 2015
import unittest
from tester import Tester
class TestTester(unittest.TestCase):
def setUp(self):
self.tester = Tester()
self.customers1 = [['1 0', '2 0'], ['1 1'], ['3 0']]
self.customers2 = [['1 0', '2 1'], ['1 1'], ['3 1']]
self.customers3 = [['2 0', '1 0'], ['2 1', '1 0'... | apache-2.0 | 5,770,888,673,481,632,000 | 31.717742 | 69 | 0.56213 | false |
saneyuki/servo | tests/wpt/update/upstream.py | 10 | 13838 | from __future__ import print_function
import os
import re
import subprocess
import sys
import six.moves.urllib as urllib
from six.moves import input
from six import iteritems
from wptrunner.update.sync import UpdateCheckout
from wptrunner.update.tree import get_unique_name
from wptrunner.update.base import Step, Step... | mpl-2.0 | 58,273,125,150,154,430 | 34.573265 | 130 | 0.581731 | false |
wonjohnchoi/EE122-Project3 | pox/messenger/mux.py | 1 | 4521 | # Copyright 2011 James McCauley
#
# This file is part of POX.
#
# POX 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.
#
# POX is distri... | gpl-3.0 | 4,525,929,168,765,370,400 | 30.615385 | 97 | 0.669542 | false |
defionscode/ansible | test/units/utils/test_encrypt.py | 51 | 5692 | # (c) 2018, Matthias Fuchs <matthias.s.fuchs@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any l... | gpl-3.0 | -396,668,443,596,897,700 | 41.796992 | 141 | 0.712755 | false |
theatrus/eve-central.com | lib/evecentral/suggest.py | 1 | 1535 | # EVE-Central.com Codebase
# Copyright (C) 2006-2012 StackFoundry LLC and Yann Ramin
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
#... | agpl-3.0 | -3,251,484,328,430,344,000 | 38.358974 | 379 | 0.665147 | 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.