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 |
|---|---|---|---|---|---|---|---|---|---|---|
v-iam/azure-sdk-for-python | azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/patch_route_filter_rule.py | 2 | 2974 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | -2,235,292,810,136,055,600 | 38.653333 | 91 | 0.601547 | false |
sysown/proxysql-0.2 | docker/scenarios/repl1/test1_.py | 6 | 1806 | #!/usr/bin/env python
import MySQLdb
import os
import sys
import thread
import time
import signal
import threading
qcounter = 0
qcounter_lock = threading.Lock()
qOK = 0
qOK_lock = threading.Lock()
qERR = 0
qERR_lock = threading.Lock()
# config
mysqluser = os.getenv('MYSQL_USER')
mysqlpass = os.getenv('MYSQL_PASS')
... | gpl-3.0 | 5,936,771,669,012,207,000 | 19.292135 | 91 | 0.661683 | false |
redhat-cip/hardware | hardware/diskinfo.py | 2 | 5601 | # Copyright (C) 2013-2014 eNovance SAS <licensing@enovance.com>
#
# 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 appl... | apache-2.0 | -6,860,660,782,328,157,000 | 33.361963 | 76 | 0.560436 | false |
eonpatapon/neutron | neutron/plugins/embrane/common/constants.py | 47 | 2749 | # Copyright 2013 Embrane, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | apache-2.0 | -8,579,062,419,240,772,000 | 39.426471 | 78 | 0.656602 | false |
binghongcha08/pyQMD | GWP/2D/1.1.0/harm2.py | 5 | 1458 | ##!/usr/bin/python
import numpy as np
import pylab as plt
import subprocess
import seaborn as sns
#sns.set_context('poster')
plt.subplot(1,1,1)
t,dat0,dat1 = np.genfromtxt(fname='cor2.dat',usecols=(0,1,2),unpack=True)
#for x in range(1,data.shape[-1]):
#plt.plot(data[:,0],data[:,1],lw=2,label='Re')
#plt.pl... | gpl-3.0 | 7,410,507,648,625,719,000 | 26 | 74 | 0.579561 | false |
artwr/airflow | tests/sensors/test_s3_prefix_sensor.py | 7 | 1532 | # -*- 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 | 5,546,866,808,866,343,000 | 34.627907 | 68 | 0.70235 | false |
jayvdb/coala | tests/coalaDebugTest.py | 4 | 4372 | import os
import sys
import unittest
from unittest.mock import patch
from coalib.coala_main import run_coala
from coalib.output.printers.LogPrinter import LogPrinter
from coalib import coala
from pyprint.ConsolePrinter import ConsolePrinter
from coala_utils.ContextManagers import prepare_file
from coalib.output.Loggi... | agpl-3.0 | 2,853,897,202,652,480,000 | 41.038462 | 80 | 0.442818 | false |
googlefonts/TachyFont | run_time/src/gae_server/third_party/fonttools/Lib/fontTools/ttLib/tables/_g_a_s_p.py | 11 | 1689 | from __future__ import print_function, division, absolute_import
from fontTools.misc.py23 import *
from fontTools.misc.textTools import safeEval
from . import DefaultTable
import struct
GASP_SYMMETRIC_GRIDFIT = 0x0004
GASP_SYMMETRIC_SMOOTHING = 0x0008
GASP_DOGRAY = 0x0002
GASP_GRIDFIT = 0x0001
class table__g_a_s_p(D... | apache-2.0 | 7,639,828,070,683,123,000 | 31.480769 | 88 | 0.708703 | false |
qilicun/python | python2/PyMOTW-1.132/PyMOTW/BaseHTTPServer/BaseHTTPServer_errors.py | 1 | 1531 | #!/usr/bin/env python
#
# Copyright 2007 Doug Hellmann.
#
#
# All Rights Reserved
#
# Permission to use, copy, modify, and distribute this software and
# its documentation for any purpose and without fee is hereby
# granted, provided that the above copyright notice appear in all
# copies and tha... | gpl-3.0 | 3,415,180,245,810,100,000 | 32.282609 | 70 | 0.743958 | false |
sileht/deb-openstack-quantum | quantum/tests/unit/test_flags.py | 3 | 7245 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
# Copyright 2011 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not... | apache-2.0 | -629,454,031,431,070,500 | 35.77665 | 79 | 0.621394 | false |
Yukarumya/Yukarum-Redfoxes | testing/mozharness/configs/single_locale/linux.py | 2 | 5605 | import os
config = {
"platform": "linux",
"stage_product": "firefox",
"update_platform": "Linux_x86-gcc3",
"mozconfig": "%(branch)s/browser/config/mozconfigs/linux32/l10n-mozconfig",
"bootstrap_env": {
"MOZ_OBJDIR": "obj-l10n",
"EN_US_BINARY_URL": "%(en_us_binary_url)s",
"LO... | mpl-2.0 | -5,740,142,525,272,263,000 | 44.201613 | 107 | 0.603568 | false |
jeremiahyan/odoo | addons/website_event_track/controllers/event_track.py | 1 | 25617 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from ast import literal_eval
from datetime import timedelta
from pytz import timezone, utc
from werkzeug.exceptions import Forbidden, NotFound
import babel
import babel.dates
import base64
import pytz
from odoo import ... | gpl-3.0 | 7,416,369,309,159,150,000 | 47.98088 | 168 | 0.591482 | false |
moijes12/oh-mainline | vendor/packages/scrapy/scrapy/contrib/downloadermiddleware/stats.py | 19 | 1370 | from scrapy.exceptions import NotConfigured
from scrapy.utils.request import request_httprepr
from scrapy.utils.response import response_httprepr
from scrapy.stats import stats
from scrapy.conf import settings
class DownloaderStats(object):
def __init__(self):
if not settings.getbool('DOWNLOADER_STATS'):
... | agpl-3.0 | 1,570,326,803,235,319,800 | 46.241379 | 95 | 0.705109 | false |
berquist/cclib | cclib/method/fragments.py | 4 | 5452 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2017, the cclib development team
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
"""Fragment analysis based on parsed ADF data."""
import logging
import random
import numpy
numpy.inv = numpy.linalg.inv... | bsd-3-clause | -975,815,224,822,829,200 | 36.088435 | 85 | 0.569516 | false |
vikas1885/test1 | lms/djangoapps/certificates/migrations/0024_auto__add_certificatetemplate__add_unique_certificatetemplate_organiza.py | 52 | 15622 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'CertificateTemplate'
db.create_table('certificates_certi... | agpl-3.0 | -5,492,538,675,353,509,000 | 78.304569 | 182 | 0.580207 | false |
minhphung171093/GreenERP_V9 | openerp/addons/gamification/__openerp__.py | 36 | 1512 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Gamification',
'version': '1.0',
'sequence': 160,
'category': 'Human Resources',
'website' : 'https://www.odoo.com/page/gamification',
'depends': ['mail', 'web_kanban_gauge'],
'descr... | gpl-3.0 | -6,531,797,504,724,503,000 | 38.789474 | 214 | 0.666667 | false |
ramaxlo/cerbero | cerbero/packages/wix.py | 23 | 22025 | # cerbero - a multi-platform build system for Open Source software
# Copyright (C) 2012 Andoni Morales Alastruey <ylatuya@gmail.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; eit... | lgpl-2.1 | -8,070,839,893,560,263,000 | 38.26025 | 87 | 0.595823 | false |
sigma-geosistemas/django-tenants | django_tenants/routers.py | 1 | 1528 | from django.conf import settings
from django.apps import apps as django_apps
class TenantSyncRouter(object):
"""
A router to control which applications will be synced,
depending if we are syncing the shared apps or the tenant apps.
"""
def app_in_list(self, app_label, apps_list):
"""
... | mit | -3,270,951,564,121,082,400 | 37.2 | 88 | 0.640052 | false |
Beit-Hatfutsot/dbs-back | bhs_api/models.py | 1 | 4042 | import hashlib
from bson.objectid import ObjectId
from mongoengine import (ListField, StringField, EmbeddedDocumentField,
EmbeddedDocumentListField, EmbeddedDocument,
GenericEmbeddedDocumentField, BooleanField,
DateTimeField, ReferenceField)
from ... | agpl-3.0 | 7,560,715,236,348,787,000 | 32.131148 | 98 | 0.586838 | false |
palisadoes/switchmap-ng | switchmap/test/test_mib_ciscovtp.py | 2 | 9795 | #!/usr/bin/env python3
"""Test the mib_if module."""
import os
import sys
import binascii
import unittest
from mock import Mock
# Try to create a working PYTHONPATH
TEST_DIRECTORY = os.path.dirname(os.path.realpath(__file__))
SWITCHMAP_DIRECTORY = os.path.abspath(os.path.join(TEST_DIRECTORY, os.pardir))
ROOT_DIRECTOR... | apache-2.0 | -9,014,452,226,342,369,000 | 31.220395 | 78 | 0.61511 | false |
cpennington/edx-platform | cms/djangoapps/contentstore/views/tests/test_library.py | 3 | 15032 | """
Unit tests for contentstore.views.library
More important high-level tests are in contentstore/tests/test_libraries.py
"""
import ddt
import mock
from django.conf import settings
from mock import patch
from opaque_keys.edx.locator import CourseKey, LibraryLocator
from six import binary_type, text_type
from six.mo... | agpl-3.0 | 6,763,238,492,196,737,000 | 42.697674 | 131 | 0.645756 | false |
dchirikov/luna | luna/switch.py | 1 | 5119 | '''
Written by Dmitry Chirikov <dmitry@chirikov.ru>
This file is part of Luna, cluster provisioning tool
https://github.com/dchirikov/luna
This file is part of Luna.
Luna 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 Foun... | gpl-3.0 | -2,030,051,419,974,347,000 | 28.589595 | 79 | 0.549131 | false |
IntelLabs/hpat | examples/series/series_ge.py | 1 | 1747 | # *****************************************************************************
# Copyright (c) 2020, Intel Corporation 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 sou... | bsd-2-clause | 856,753,110,064,090,800 | 43.794872 | 79 | 0.685747 | false |
sedders123/phial | docs/source/conf.py | 1 | 5027 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# phial documentation build configuration file, created by
# sphinx-quickstart on Sat Jul 1 21:23:47 2017.
#
# 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
# auto... | mit | -5,040,459,451,588,161,000 | 29.840491 | 83 | 0.671176 | false |
partofthething/home-assistant | tests/components/risco/test_config_flow.py | 6 | 7254 | """Test the Risco config flow."""
from unittest.mock import PropertyMock, patch
import pytest
import voluptuous as vol
from homeassistant import config_entries, data_entry_flow
from homeassistant.components.risco.config_flow import (
CannotConnectError,
UnauthorizedError,
)
from homeassistant.components.risco... | mit | 8,848,748,024,369,649,000 | 29.737288 | 88 | 0.641301 | false |
heran7/edx-platform | lms/djangoapps/verify_student/views.py | 2 | 10546 | """
Views for the verification flow
"""
import json
import logging
import decimal
from mitxmako.shortcuts import render_to_response
from django.conf import settings
from django.core.urlresolvers import reverse
from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseRedirect
from django.shortcuts im... | agpl-3.0 | -3,901,589,151,012,413,000 | 39.40613 | 108 | 0.66556 | false |
LeMaker/LNcommon | setup.py | 1 | 1227 | import sys
import errno
import subprocess
from distutils.core import setup
VERSION_FILE = 'LNcommon/version.py'
PY3 = sys.version_info[0] >= 3
def get_version():
if PY3:
version_vars = {}
with open(VERSION_FILE) as f:
code = compile(f.read(), VERSION_FILE, 'exec')
exec(co... | gpl-3.0 | 1,538,194,309,092,823,800 | 27.534884 | 77 | 0.618582 | false |
iriark01/greentea | mbed_greentea/cmake_handlers.py | 1 | 3571 | """
mbed SDK
Copyright (c) 2011-2015 ARM Limited
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 wr... | apache-2.0 | -5,794,636,865,098,836,000 | 42.54878 | 110 | 0.626435 | false |
edmond-chhung/linkchecker | tests/test_linkchecker.py | 9 | 1301 | # -*- coding: utf-8 -*-
# Copyright (C) 2014 Bastian Kleineidam
#
# 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 your option) any later version.
#
# Th... | gpl-2.0 | 3,650,746,558,767,632,400 | 37.264706 | 85 | 0.704842 | false |
Weihonghao/ECM | Vpy34/lib/python3.5/site-packages/tensorflow/python/debug/__init__.py | 11 | 1519 | # 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... | agpl-3.0 | -5,599,582,004,262,932,000 | 46.46875 | 90 | 0.760369 | false |
carlos-jenkins/presentations | themes/hauntr/minify.py | 1 | 1465 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Carlos Jenkins <carlos@jenkins.co.cr>
#
# 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 | -5,711,047,150,555,947,000 | 21.890625 | 66 | 0.648464 | false |
BahtiyarB/the-backdoor-factory | intel/LinuxIntelELF32.py | 2 | 5647 | '''
Copyright (c) 2013-2014, Joshua Pitts
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and t... | bsd-3-clause | 4,344,884,307,893,095,400 | 39.335714 | 90 | 0.632548 | false |
eayunstack/neutron | neutron/plugins/ml2/drivers/openvswitch/agent/common/constants.py | 1 | 4236 | # Copyright (c) 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 agreed to... | apache-2.0 | -3,984,599,570,439,235,600 | 25.810127 | 77 | 0.695231 | false |
c72578/poedit | deps/boost/tools/build/test/explicit.py | 7 | 1284 | #!/usr/bin/python
# Copyright 2003 Vladimir Prus
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
import BoostBuild
t = BoostBuild.Tester(use_test_config=False)
t.write("jamroot.jam", """\
exe hello : hello.cpp ;
exe hello... | mit | 296,002,761,922,972,600 | 21.137931 | 81 | 0.661994 | false |
NcLang/vimrc | sources_non_forked/YouCompleteMe/third_party/ycmd/third_party/python-future/discover_tests.py | 10 | 1696 | """
Simple auto test discovery.
From http://stackoverflow.com/a/17004409
"""
import os
import sys
import unittest
if not hasattr(unittest.defaultTestLoader, 'discover'):
try:
import unittest2 as unittest
except ImportError:
raise ImportError('The unittest2 module is required to run tests on Py... | mit | -3,249,484,671,108,228,600 | 28.241379 | 88 | 0.602594 | false |
wesleykerr/scrapy-games | scrapy_games/spiders/metacritic.py | 1 | 3606 | # -*- coding: utf-8 -*-
import scrapy
from scrapy_games import items
from scrapy_games.models import models
MAX_URLS = -1
BASE_URL = 'http://www.metacritic.com'
class MetacriticSpider(scrapy.Spider):
name = "metacritic"
pipelines = [
'ReviewsPipeline'
]
def __init__(self, *args, **kwargs):
... | apache-2.0 | -3,815,290,967,755,813,400 | 38.626374 | 102 | 0.587354 | false |
zstackio/zstack-woodpecker | integrationtest/vm/multihosts/vm_snapshots/paths/xc_path7.py | 1 | 1707 | import zstackwoodpecker.test_state as ts_header
import os
TestAction = ts_header.TestAction
def path():
return dict(initial_formation="template5", checking_point=8, path_list=[
[TestAction.create_vm, 'vm1', 'flag=ceph'],
[TestAction.create_volume, 'volume1', 'flag=ceph,scsi'],
[TestAction.attach_volume, 'vm1... | apache-2.0 | -8,237,004,725,984,210,000 | 40.634146 | 183 | 0.70826 | false |
lgeiger/ide-python | dist/debugger/VendorLib/vs-py-debugger/pythonFiles/experimental/ptvsd/ptvsd/_vendored/pydevd/pydev_ipython/qt_loaders.py | 28 | 7837 | """
This module contains factory functions that attempt
to return Qt submodules from the various python Qt bindings.
It also protects against double-importing Qt with different
bindings, which is unstable and likely to crash
This is used primarily by qt and qt_for_kernel, and shouldn't
be accessed directly from the o... | mit | 7,256,599,512,802,346,000 | 26.88968 | 78 | 0.61031 | false |
mcauser/micropython | tests/basics/string_compare.py | 9 | 1156 | print("" == "")
print("" > "")
print("" < "")
print("" == "1")
print("1" == "")
print("" > "1")
print("1" > "")
print("" < "1")
print("1" < "")
print("" >= "1")
print("1" >= "")
print("" <= "1")
print("1" <= "")
print("1" == "1")
print("1" != "1")
print("1" == "2")
print("1" == "10")
print("1" > "1")
print("1" > "2")... | mit | 2,133,074,550,128,650,500 | 17.95082 | 73 | 0.486159 | false |
peak6/st2 | st2common/st2common/util/misc.py | 3 | 4027 | # Licensed to the StackStorm, Inc ('StackStorm') 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 th... | apache-2.0 | -4,933,971,602,678,351,000 | 25.846667 | 97 | 0.634964 | false |
xxshutong/openerp-7.0 | openerp/addons/portal_project/project.py | 50 | 1747 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013-TODAY OpenERP S.A (<http://www.openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms... | agpl-3.0 | 8,331,608,704,605,739,000 | 44.973684 | 99 | 0.602175 | false |
google/trax | trax/models/research/terraformer_memory_test.py | 1 | 1081 | # coding=utf-8
# Copyright 2021 The Trax 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 applicable law or a... | apache-2.0 | 5,308,801,968,719,479,000 | 28.216216 | 80 | 0.746531 | false |
gioman/QGIS | tests/src/python/test_qgsserver_accesscontrol.py | 1 | 67142 | # -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsServer.
.. note:: 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.
"""
__autho... | gpl-2.0 | -1,303,083,176,948,137,200 | 41.87484 | 193 | 0.565667 | false |
PMBio/gptwosample | gptwosample/twosample/twosample_base.py | 1 | 20377 | '''
Classes to apply GPTwoSample to data
====================================
All classes handling TwoSampleBase tasks should extend this class.
Created on Mar 18, 2011
@author: Max Zwiessele, Oliver Stegle
'''
from gptwosample.data.data_base import input_id, output_id, individual_id, \
common_id, has_model_stru... | apache-2.0 | -1,284,699,057,646,585,900 | 43.394336 | 240 | 0.559356 | false |
sgammon/libcloud | libcloud/test/compute/test_ktucloud.py | 7 | 4609 | # 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 | -7,609,938,295,606,295,000 | 33.654135 | 77 | 0.653938 | false |
krafczyk/spack | var/spack/repos/builtin/packages/krb5/package.py | 4 | 1806 | ##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | lgpl-2.1 | -4,382,937,387,186,588,000 | 38.26087 | 78 | 0.647841 | false |
nafitzgerald/allennlp | tests/commands/main_test.py | 1 | 2414 | from unittest import TestCase
import logging
import sys
from allennlp.commands import main
from allennlp.commands.subcommand import Subcommand
class TestMain(TestCase):
def test_fails_on_unknown_command(self):
sys.argv = ["bogus", # command
"unknown_model", # model_name
... | apache-2.0 | -6,127,869,298,480,993,000 | 35.575758 | 105 | 0.55551 | false |
deklungel/iRulez | src/output_status/domain.py | 1 | 4151 | from enum import IntEnum
import src.irulez.util as util
from abc import ABC
import src.irulez.log as log
import src.irulez.constants as constants
from typing import List, Optional, Dict
logger = log.get_logger('domain')
class ArduinoPinType(IntEnum):
"""Represents the purpose of a pin on an arduino"""
BUTTON... | mit | -7,455,802,873,022,522,000 | 28.027972 | 79 | 0.613105 | false |
pipermerriam/flex | tests/validation/schema/test_enum_validation.py | 1 | 1596 | import six
import pytest
from flex.exceptions import ValidationError
from flex.constants import EMPTY
from flex.error_messages import MESSAGES
from tests.utils import (
generate_validator_from_schema,
assert_error_message_equal,
)
#
# minLength validation tests
#
@pytest.mark.parametrize(
'letters',
... | mit | -4,946,300,484,205,600,000 | 20.567568 | 61 | 0.614035 | false |
kuipertan/vitess | py/checkers/checker.py | 22 | 24151 | #!/usr/bin/env python
import collections
import datetime
import difflib
import heapq
import itertools
import json
import logging
import optparse
import os
import cPickle as pickle
import pprint
import Queue
import re
import sys
import tempfile
import threading
import time
import urlparse
import MySQLdb
import MySQLdb... | bsd-3-clause | 7,338,149,038,301,776,000 | 34.726331 | 219 | 0.620388 | false |
maggrey/cherrymusic | cherrymusicserver/api/v1/__init__.py | 7 | 4107 | #!/usr/bin/env python3
#
# CherryMusic - a standalone music server
# Copyright (c) 2012 Tom Wallroth & Tilman Boerner
#
# Project page:
# http://fomori.org/cherrymusic/
# Sources on github:
# http://github.com/devsnd/cherrymusic/
#
# CherryMusic is based on
# jPlayer (GPL/MIT license) http://www.jplayer.org/
# ... | gpl-3.0 | 5,374,324,591,684,315,000 | 34.713043 | 80 | 0.513514 | false |
fusionbox/django_polymorphic | setup.py | 1 | 1727 | #!/usr/bin/env python
from setuptools import setup, find_packages
from os import path
import codecs
import os
import re
import sys
def read(*parts):
file_path = path.join(path.dirname(__file__), *parts)
return codecs.open(file_path, encoding='utf-8').read()
def find_version(*parts):
version_file = read(... | bsd-3-clause | 4,490,042,891,271,522,300 | 27.783333 | 88 | 0.62073 | false |
Uname-a/pythonstuff | test.py | 2 | 1713 | from tkinter import *
import pygame
import time
fields = ('hours', 'mins', 'sec')
def timer(ti):
ch = ""
if (ch == ""):#default sound
wtime(ti,"/home/laptop/git/pythonstuff/sounds/bird.ogg")
else:#sets the sound to what the user whants
os.chdir("/home/laptop/git/pythonstuff/sounds/")
wtime(ti,ch)
def wtime(... | mit | -6,086,804,060,909,318,000 | 24.58209 | 72 | 0.597198 | false |
kalaidin/luigi | test/contrib/hive_test.py | 14 | 14233 | # -*- coding: utf-8 -*-
#
# Copyright 2012-2015 Spotify AB
#
# 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... | apache-2.0 | -5,052,190,599,578,711,000 | 43.339564 | 119 | 0.550762 | false |
fabsx00/chucky-old | mlutils/factorization/MatrixFactorizer.py | 1 | 3163 | import scipy
import sparsesvd
import nimfa
import pymf
import pickle
class MatrixFactorizer():
def __init__(self):
self._registerAlgorithms()
def factorize(self, X, nBases=None, algo = 'SVD'):
self.algorithm = algo
"""
Returns the factorization of the sparse matrix X into
... | gpl-3.0 | 2,138,477,852,618,782,200 | 28.296296 | 85 | 0.50901 | false |
dmsovetov/pygling | Pygling/Platform/Platform.py | 1 | 6185 | #################################################################################
#
# The MIT License (MIT)
#
# Copyright (c) 2015 Dmitry Sovetov
#
# https://github.com/dmsovetov
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "... | mit | -1,484,484,770,988,454,100 | 34.348571 | 158 | 0.681487 | false |
neilhan/tensorflow | tensorflow/contrib/factorization/python/ops/gmm_ops.py | 10 | 18611 | # 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... | apache-2.0 | 2,467,029,705,887,266,300 | 39.370933 | 80 | 0.637741 | false |
knoguchi/kenix-scm | server/lib/boto/manage/cmdshell.py | 17 | 8585 | # Copyright (c) 2006-2009 Mitch Garnaat http://garnaat.org/
#
# 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, modi... | apache-2.0 | 3,240,464,399,704,323,000 | 34.329218 | 105 | 0.592895 | false |
synhershko/swift-middleware-grok | setup.py | 1 | 1607 | # Copyright (c) 2010-2015 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 | 2,412,861,579,786,681,300 | 33.212766 | 69 | 0.679527 | false |
elliotthill/django-oscar | oscar/core/loading.py | 1 | 5946 | import sys
import traceback
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.db.models import get_model
class AppNotFoundError(Exception):
pass
class ClassNotFoundError(Exception):
pass
def get_class(module_label, classname):
"""
Dynamically imp... | bsd-3-clause | -6,922,422,192,606,424,000 | 33.569767 | 79 | 0.645644 | false |
jswope00/griffinx | lms/djangoapps/courseware/features/lti.py | 6 | 13981 | # pylint: disable=missing-docstring
import datetime
import os
import pytz
from django.conf import settings
from mock import patch
from pytz import UTC
from splinter.exceptions import ElementDoesNotExist
from selenium.common.exceptions import NoAlertPresentException
from nose.tools import assert_true, assert_equal, asse... | agpl-3.0 | 8,610,674,534,692,384,000 | 33.520988 | 111 | 0.653959 | false |
pegasus-isi/pegasus | packages/pegasus-python/src/Pegasus/monitoring/job.py | 1 | 39726 | """
This file implements the Job class for pegasus-monitord.
"""
##
# Copyright 2007-2012 University Of Southern California
#
# 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://ww... | apache-2.0 | 6,193,976,388,861,813,000 | 39.086781 | 123 | 0.53801 | false |
mwallraf/pingthis.net | app/public/decorators.py | 1 | 1294 | from flask import current_app, request, Response
from functools import wraps
"""
Decorator to validate the streaming endpoints, see if a cookie exists.
This is not really secure and should be changed by a real authentication method.
"""
def validate_cookie(f):
cookie = "pingthis"
@wraps(f)
def decorated(*a... | mit | 5,942,527,575,446,030,000 | 29.809524 | 80 | 0.633694 | false |
fujunwei/chromium-crosswalk | tools/profile_chrome/main.py | 4 | 10498 | #!/usr/bin/env python
#
# 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.
import logging
import optparse
import os
import sys
import webbrowser
from profile_chrome import chrome_controller
from profile_chro... | bsd-3-clause | -5,159,660,991,637,396,000 | 40.168627 | 80 | 0.632882 | false |
srware/upm | examples/python/bma220.py | 9 | 2002 | #!/usr/bin/python
# Author: Jon Trulson <jtrulson@ics.com>
# Copyright (c) 2015 Intel Corporation.
#
# 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 l... | mit | 2,388,247,993,003,881,500 | 35.4 | 78 | 0.748252 | false |
alokotosh/mm-master | test/unit/project/project_create_tests.py | 3 | 10406 | import os
import unittest
import shutil
import mock
import test.lib.test_helper as test_helper
import test.lib.mock_helper as mock_helper
from test.lib.test_helper import MavensMateTest
from test.lib.fixtures.retrieve import MockRetrieveResponse
from mm.sfdc_client import MavensMateClient
base_test_directory = os.path... | gpl-2.0 | 4,593,049,106,448,929,300 | 54.951613 | 180 | 0.665385 | false |
ChimeraCoder/lobbyistsfromlastnight | server.py | 1 | 15761 | #! /usr/bin/env python
from __future__ import division, print_function
from flask import Flask
from flask import request, redirect, url_for
from flask import Response
from flask import render_template
from flask import flash
from flask import jsonify
from flask.ext.login import LoginManager, login_required, UserMixin,... | gpl-3.0 | 2,965,796,678,822,659,600 | 33.114719 | 166 | 0.613603 | false |
DXCanas/kolibri | kolibri/core/exams/migrations/0001_initial.py | 6 | 2967 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-05-16 22:34
from __future__ import unicode_literals
import django.db.models.deletion
import jsonfield.fields
import morango.utils.uuids
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [... | mit | 4,497,115,348,556,410,400 | 50.155172 | 158 | 0.60937 | false |
shaftoe/home-assistant | tests/components/test_plant.py | 2 | 2499 | """Unit tests for platform/plant.py."""
import unittest
from tests.common import get_test_home_assistant
import homeassistant.components.plant as plant
class TestPlant(unittest.TestCase):
"""test the processing of data."""
GOOD_DATA = {
'moisture': 50,
'battery': 90,
'temperature': ... | apache-2.0 | 8,137,944,999,598,630,000 | 33.232877 | 73 | 0.579832 | false |
devdattakulkarni/test-solum | solum/tests/api/handlers/test_extension.py | 1 | 2858 | # -*- 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, soft... | apache-2.0 | 5,688,577,803,210,274,000 | 40.42029 | 78 | 0.654654 | false |
kevin-coder/tensorflow-fork | tensorflow/tools/pip_package/setup.py | 1 | 10540 | # 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 | 5,861,947,977,951,402,000 | 34.250836 | 80 | 0.669355 | false |
StackPointCloud/libcloud | libcloud/test/file_fixtures.py | 7 | 3514 | # 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 | 8,873,299,008,145,987,000 | 34.857143 | 78 | 0.600455 | false |
baylee-d/osf.io | api/requests/permissions.py | 11 | 4589 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from rest_framework import permissions as drf_permissions
from api.base.utils import get_user_auth
from osf.models.action import NodeRequestAction, PreprintRequestAction
from osf.models.mixins import NodeRequestableMixin, PreprintRequestableMixin
from os... | apache-2.0 | 1,315,313,926,301,481,200 | 44.435644 | 143 | 0.659403 | false |
cyli/volatility | volatility/plugins/linux/netfilter.py | 1 | 3055 | # Volatility
# Copyright (C) 2007-2013 Volatility Foundation
#
# This file is part of Volatility.
#
# Volatility is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License Version 2 as
# published by the Free Software Foundation. You may not use, modify or
# distribu... | gpl-2.0 | 8,085,362,096,401,136,000 | 36.256098 | 114 | 0.613421 | false |
vicky2135/lucious | oscar/lib/python2.7/site-packages/phonenumbers/phonemetadata.py | 1 | 34018 | """PhoneMetadata object definitions"""
# Based on original Java code and protocol buffer:
# resources/phonemetadata.proto
# java/src/com/google/i18n/phonenumbers/Phonemetadata.java
# Copyright (C) 2010-2011 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you m... | bsd-3-clause | -115,852,506,862,116,930 | 52.656151 | 131 | 0.646834 | false |
marinkaz/orange3 | Orange/canvas/help/manager.py | 4 | 11423 | """
"""
import sys
import os
import string
import itertools
import logging
import email
from distutils.version import StrictVersion
from operator import itemgetter
import pkg_resources
from . import provider
from PyQt4.QtCore import QObject, QUrl, QDir
log = logging.getLogger(__name__)
class HelpManager(QObjec... | bsd-2-clause | 6,094,168,143,269,389,000 | 27.204938 | 76 | 0.592401 | false |
MalloyPower/parsing-python | front-end/testsuite-python-lib/Python-2.1/Lib/encodings/__init__.py | 4 | 2512 | """ Standard "encodings" Package
Standard Python encoding modules are stored in this package
directory.
Codec modules must have names corresponding to standard lower-case
encoding names with hyphens mapped to underscores, e.g. 'utf-8' is
implemented by the module 'utf_8.py'.
Each codec module... | mit | -7,532,348,157,153,434,000 | 28.209302 | 73 | 0.647293 | false |
johnttaylor/Outcast | bin/scm/none/sync.py | 1 | 1120 | """
Script that sync's the current workspace with the SCM Repository
===============================================================================
usage: evie [common-opts] sync [options]
evie [common-opts] sync [options] <label>
Arguments:
<label> SCM Label to use as the source of the Sync... | bsd-3-clause | 1,294,512,981,065,959,700 | 28.473684 | 106 | 0.464286 | false |
jseabold/scipy | benchmarks/benchmarks/interpolate.py | 37 | 6314 | from __future__ import division, absolute_import, print_function
import numpy as np
from .common import run_monitored, set_mem_rlimit, Benchmark
try:
from scipy.stats import spearmanr
except ImportError:
pass
try:
import scipy.interpolate as interpolate
except ImportError:
pass
class Leaks(Benchma... | bsd-3-clause | -2,782,780,859,870,846,500 | 27.7 | 98 | 0.56446 | false |
chipaca/snapcraft | tests/unit/commands/__init__.py | 2 | 16188 | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright (C) 2015-2021 Canonical Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in ... | gpl-3.0 | -7,026,892,609,570,802,000 | 36.472222 | 135 | 0.452866 | false |
TheGU/deep_trading_notebook | omstang_lib/gym2.py | 1 | 6392 | from random import random
import numpy as np
import math
import gym
from gym import spaces
class MarketEnv(gym.Env):
PENALTY = 1 # 0.999756079
def __init__(self, dir_path, target_codes, input_codes, start_date, end_date,
scope=60, sudden_death=-1., cumulative_reward=False):
self.st... | mit | -8,782,043,516,984,602,000 | 33.187166 | 117 | 0.482478 | false |
hcrlab/access_teleop | limb_manipulation/src/limb_ar_demo.py | 1 | 1647 | #! /usr/bin/env python
from ar_track_alvar_msgs.msg import AlvarMarkers
from geometry_msgs.msg import PoseStamped
import fetch_api
import rospy
def wait_for_time():
"""Wait for simulated time to begin.
"""
while rospy.Time().now().to_sec() == 0:
pass
class ArTagReader(object):
def __init__(... | mit | 2,230,747,371,148,255,000 | 24.338462 | 80 | 0.571949 | false |
alxgu/ansible | lib/ansible/executor/module_common.py | 3 | 49181 | # (c) 2013-2014, Michael DeHaan <michael.dehaan@gmail.com>
# (c) 2015 Toshio Kuratomi <tkuratomi@ansible.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either... | gpl-3.0 | -6,045,728,623,201,084,000 | 45.705603 | 157 | 0.619142 | false |
ianmiell/OLD-shutitdist | icu/icu.py | 1 | 1189 | """ShutIt module. See http://shutit.tk
"""
from shutit_module import ShutItModule
class icu(ShutItModule):
def is_installed(self, shutit):
return shutit.file_exists('/root/shutit_build/module_record/' + self.module_id + '/built')
def build(self, shutit):
shutit.send('mkdir -p /tmp/build/icu')
shutit.send(... | gpl-2.0 | 1,729,111,919,955,782,100 | 21.018519 | 105 | 0.675357 | false |
Trust-Code/trust-addons | payment_cielo/__init__.py | 1 | 1595 | # -*- encoding: utf-8 -*-
###############################################################################
# #
# Copyright (C) 2015 Trustcode - www.trustcode.com.br #
# Danimar Ribeiro <danimaribeiro@gmail.co... | agpl-3.0 | 1,203,072,121,613,529,600 | 65.458333 | 79 | 0.386207 | false |
mrphlip/lrrbot | common/pubsub.py | 2 | 5758 | import aiohttp
import asyncio
import blinker
import uuid
import logging
import sqlalchemy
import json
import random
from common import http
from common import utils
from common.config import config
__all__ = ["PubSub", "signals"]
signals = blinker.Namespace()
log = logging.getLogger('common.pubsub')
class Topic:
d... | apache-2.0 | -4,721,509,091,613,444,000 | 28.377551 | 100 | 0.657867 | false |
yugangw-msft/azure-cli | src/azure-cli/azure/cli/command_modules/keyvault/security_domain/byte_shares.py | 3 | 2245 | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | mit | 4,014,143,641,700,083,000 | 31.536232 | 94 | 0.53853 | false |
tersmitten/ansible | test/units/modules/network/f5/test_bigip_device_sshd.py | 16 | 3767 | # -*- 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
import os
import json
import pytest
import sys
if sys.version_info < (2, ... | gpl-3.0 | 3,368,598,239,624,918,500 | 27.976923 | 91 | 0.62729 | false |
lukeiwanski/tensorflow-opencl | tensorflow/python/kernel_tests/scalar_strict_test.py | 23 | 4922 | # 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 | -5,330,028,995,674,322,000 | 36.861538 | 80 | 0.617838 | false |
drpeteb/scipy | scipy/io/tests/test_mmio.py | 29 | 14542 | #!/usr/bin/env python
from __future__ import division, print_function, absolute_import
from tempfile import mkdtemp, mktemp
import os
import shutil
from numpy import array,transpose, pi
from numpy.testing import (TestCase, run_module_suite, assert_equal,
assert_array_equal, assert_array_alm... | bsd-3-clause | -1,825,421,499,409,047,800 | 32.353211 | 82 | 0.46933 | false |
saghul/erequests | erequests.py | 1 | 5386 | # -*- coding: utf-8 -*-
"""
erequests
~~~~~~~~~
This module contains an asynchronous replica of ``requests.api``, powered
by eventlet.
"""
__version__ = '0.4.1'
import eventlet
# Monkey-patch.
requests = eventlet.patcher.import_patched('requests.__init__')
__all__ = ['__version__', 'map', 'imap', 'get', 'options'... | bsd-2-clause | -6,429,521,311,120,439,000 | 27.347368 | 161 | 0.644449 | false |
humangeo/preflyt | preflyt/checkers/environment.py | 1 | 1105 | """Checks for environment variables"""
import os
from preflyt.base import BaseChecker
class EnvironmentChecker(BaseChecker):
"""Verify that an environment variable is present and, if so, it has a specific value."""
checker_name = "env"
def __init__(self, name, value=None):
"""Initialize the che... | mit | 498,212,279,542,649,500 | 34.645161 | 114 | 0.625339 | false |
ChyauAng/DNN-Composer | src/Preprocess/filesProcessor.py | 1 | 1170 | from Preprocess import dataPreprocess
class FilesProcess:
"""
Gather all ABC files to dataset.dat
Properties
----------
dir_path
The path of the directory.
data
The ABC files information.
"""
def __init__(self, dir_path, data = []):
... | mit | 3,828,874,354,370,804,000 | 25.209302 | 69 | 0.450427 | false |
sylnsfar/qrcode | amzqr/terminal.py | 1 | 2551 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from amzqr.amzqr import run
import os
def main():
import argparse
argparser = argparse.ArgumentParser()
argparser.add_argument('Words', help = 'The words to produce you QR-code picture, like a URL or a sentence. Please read the README file for the supported c... | gpl-3.0 | -5,886,211,228,467,910,000 | 66.157895 | 348 | 0.649549 | false |
frigg/frigg-hq | frigg/builds/migrations/0004_auto_20141114_1336.py | 1 | 2251 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import basis.models
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('builds', '0003_auto_20141029_2158'),
]
operations = [
migrations.AddFie... | mit | -5,956,405,167,287,960,000 | 31.157143 | 82 | 0.552643 | false |
girving/tensorflow | tensorflow/contrib/checkpoint/python/split_dependency.py | 28 | 5773 | """Utility for creating multiple dependencies with synchronized save/restore."""
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
... | apache-2.0 | -5,282,227,811,205,066,000 | 41.448529 | 80 | 0.690282 | false |
developerworks/horizon | horizon/forms/views.py | 2 | 2715 | # 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 | 4,181,724,044,338,363,400 | 35.2 | 79 | 0.60884 | false |
paulmadore/Eric-IDE | 6-6.0.9/eric/Network/IRC/IrcIdentitiesEditDialog.py | 2 | 17535 | # -*- coding: utf-8 -*-
# Copyright (c) 2012 - 2015 Detlev Offenbach <detlev@die-offenbachs.de>
#
"""
Module implementing the identities management dialog.
"""
from __future__ import unicode_literals
import copy
from PyQt5.QtCore import pyqtSlot, Qt, QEvent, QItemSelectionModel
from PyQt5.QtWidgets import QDialog,... | gpl-3.0 | -3,774,107,163,037,571,000 | 36.628755 | 79 | 0.570117 | false |
attente/snapcraft | snapcraft/tests/test_commands_push.py | 2 | 7654 | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright (C) 2016 Canonical Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in the h... | gpl-3.0 | -626,307,768,006,419,300 | 33.169643 | 76 | 0.573687 | false |
gvilardo/parser | parser_v2.py | 1 | 2112 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
parser.py - Copyright (C) 2015 - Giorgio Vilardo
parser.py 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
... | gpl-2.0 | 5,031,054,356,693,498,000 | 28.333333 | 74 | 0.693182 | 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.