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 |
|---|---|---|---|---|---|---|---|---|---|---|
axbaretto/beam | sdks/python/.tox/lint/lib/python2.7/site-packages/pylint/test/functional/init_not_called.py | 7 | 1443 | # pylint: disable=R0903,import-error,missing-docstring,wrong-import-position
"""test for __init__ not called
"""
from __future__ import print_function
class AAAA: # <3.0:[old-style-class]
"""ancestor 1"""
def __init__(self):
print('init', self)
class BBBB: # <3.0:[old-style-class]
"""ancestor 2... | apache-2.0 | -5,226,937,147,729,600,000 | 21.546875 | 76 | 0.581428 | false |
kopchik/qtile | libqtile/widget/sensors.py | 7 | 4737 | # -*- coding:utf-8 -*-
# Copyright (c) 2012 TiN
# Copyright (c) 2012, 2014 Tycho Andersen
# Copyright (c) 2013 Tao Sauvage
# Copyright (c) 2014-2015 Sean Vig
# Copyright (c) 2014 Adi Sieker
# Copyright (c) 2014 Foster McLane
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this soft... | mit | -4,162,040,955,152,966,700 | 38.466667 | 85 | 0.627534 | false |
jck/myhdl | myhdl/test/core/test_Simulation.py | 4 | 24746 | # This file is part of the myhdl library, a Python package for using
# Python as a Hardware Description Language.
#
# Copyright (C) 2003-2008 Jan Decaluwe
#
# The myhdl library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License as
# published by t... | lgpl-2.1 | -7,527,635,209,544,915,000 | 27.18451 | 78 | 0.520286 | false |
Molecular-Image-Recognition/Molecular-Image-Recognition | code/rmgpy/pdep/draw.py | 2 | 19054 | #!/usr/bin/env python
# encoding: utf-8
################################################################################
#
# RMG - Reaction Mechanism Generator
#
# Copyright (c) 2002-2017 Prof. William H. Green (whgreen@mit.edu),
# Prof. Richard H. West (r.west@neu.edu) and the RMG Team (rmg_dev@mit.edu)
#
# ... | mit | 6,278,887,971,954,168,000 | 38.367769 | 125 | 0.514223 | false |
theflofly/tensorflow | tensorflow/python/kernel_tests/transpose_op_test.py | 11 | 19816 | # 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,516,664,797,517,688,000 | 38.632 | 80 | 0.571457 | false |
jackxiang/google-app-engine-django | appengine_django/management/commands/console.py | 49 | 1564 | #!/usr/bin/python2.4
#
# Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | 7,015,716,380,063,928,000 | 30.918367 | 79 | 0.642583 | false |
davidjb/sqlalchemy | test/sql/test_cte.py | 23 | 18962 | from sqlalchemy.testing import fixtures
from sqlalchemy.testing import AssertsCompiledSQL, assert_raises_message
from sqlalchemy.sql import table, column, select, func, literal
from sqlalchemy.dialects import mssql
from sqlalchemy.engine import default
from sqlalchemy.exc import CompileError
class CTETest(fixtures.Te... | mit | 4,803,992,220,273,365,000 | 37.384615 | 80 | 0.487923 | false |
paul-rs/amaas-core-sdk-python | amaascore/csv_upload/csv_uploader.py | 1 | 4993 | import logging.config
import csv
import json
from amaascore.tools.csv_tools import csv_stream_to_objects
from amaasutils.logging_utils import DEFAULT_LOGGING
from amaascore.csv_upload.utils import process_normal, interface_direct_class, interface_direct_csvpath
from amaascore.assets.asset import Asset
from amaascore.... | apache-2.0 | 5,323,224,746,094,649,000 | 42.426087 | 107 | 0.775486 | false |
jonyroda97/redbot-amigosprovaveis | lib/numpy/lib/tests/test_arraypad.py | 6 | 43701 | """Tests for the array padding functions.
"""
from __future__ import division, absolute_import, print_function
import numpy as np
from numpy.testing import (assert_array_equal, assert_raises, assert_allclose,
TestCase)
from numpy.lib import pad
class TestConditionalShortcuts(TestCase):
... | gpl-3.0 | -4,079,673,579,535,790,600 | 38.836828 | 78 | 0.373836 | false |
danakj/chromium | build/android/gyp/java_cpp_enum_tests.py | 1 | 16358 | #!/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.
"""Tests for enum_preprocess.py.
This test suite containss various tests for the C++ -> Java enum generator.
"""
import collections
f... | bsd-3-clause | 2,689,006,067,536,789,000 | 33.804255 | 80 | 0.585341 | false |
hortonworks/hortonworks-sandbox | desktop/core/ext-py/Twisted/twisted/internet/win32eventreactor.py | 12 | 7652 | # Copyright (c) 2001-2007 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
A win32event based implementation of the Twisted main loop.
This requires win32all or ActivePython to be installed.
Maintainer: Itamar Shtull-Trauring
LIMITATIONS:
1. WaitForMultipleObjects and thus the event loop can only hand... | apache-2.0 | 1,281,924,427,443,840,800 | 30.360656 | 129 | 0.632384 | false |
zhenzhai/edx-platform | openedx/core/djangoapps/bookmarks/tests/test_api.py | 14 | 10243 | """
Tests for bookmarks api.
"""
import ddt
from mock import patch
from nose.plugins.attrib import attr
from unittest import skipUnless
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from opaque_keys.edx.keys import UsageKey
from xmodule.modulestore.exceptions import ItemNotFo... | agpl-3.0 | 8,275,253,265,509,828,000 | 41.502075 | 120 | 0.664649 | false |
openstack/glance | glance/tests/functional/serial/test_scrubber.py | 1 | 16902 | # Copyright 2011-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.apache.org/licenses/LICENSE-2.0
#
# Unless... | apache-2.0 | -8,988,473,799,641,938,000 | 40.22439 | 79 | 0.591528 | false |
songrun/HighResWeights-2016 | py-tools/make_cylinder_2D.py | 1 | 9630 | #!/usr/bin/env python
from __future__ import print_function, division
from numpy import *
def make_cylinder( num_slices, num_stacks = 2, cap_uv_distance = 0.1, height = 1. ):
'''
Make a cylinder whose axis is (0,0,-0) to (0,0,1) and radius is 1. This includes the top cap.
The parameters are:
... | mit | 1,311,845,705,405,727,700 | 40.688312 | 205 | 0.562513 | false |
iains/darwin-gcc-5 | gcc/jit/docs/conf.py | 46 | 8361 | # -*- coding: utf-8 -*-
#
# libgccjit documentation build configuration file, created by
# sphinx-quickstart on Wed Jul 30 13:39:01 2014.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# A... | gpl-2.0 | -959,297,436,546,340,600 | 31.406977 | 80 | 0.698481 | false |
cmoutard/mne-python | mne/time_frequency/tfr.py | 3 | 54818 | """A module which implements the time frequency estimation.
Morlet code inspired by Matlab code from Sheraz Khan & Brainstorm & SPM
"""
# Authors : Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Hari Bharadwaj <hari@nmr.mgh.harvard.edu>
#
# License : BSD (3-clause)
import warnings
from math ... | bsd-3-clause | 7,254,544,774,290,642,000 | 37.280726 | 79 | 0.574501 | false |
ojengwa/oh-mainline | mysite/profile/migrations/0026_asheesh_profile_missing_fields.py | 17 | 8009 | # This file is part of OpenHatch.
# Copyright (C) 2009 OpenHatch, Inc.
#
# 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
# (at your option) any later v... | agpl-3.0 | -1,550,465,198,877,533,000 | 56.207143 | 163 | 0.561119 | false |
slashk/goldstone-server | goldstone/nova/urls.py | 1 | 2240 | """Nova app URLconf."""
# Copyright 2015 Solinea, 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... | apache-2.0 | 2,796,624,525,026,355,000 | 41.264151 | 78 | 0.705804 | false |
akretion/odoo | addons/product_margin/tests/test_product_margin.py | 17 | 2867 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import tools
from odoo.tests import common, Form
from odoo.modules.module import get_resource_path
class TestProductMargin(common.TransactionCase):
def create_account_invoice(self, invoice_type, partner, ... | agpl-3.0 | -5,859,089,607,675,463,000 | 43.107692 | 103 | 0.640042 | false |
ptisserand/ansible | lib/ansible/plugins/terminal/eos.py | 24 | 3304 | #
# (c) 2016 Red Hat Inc.
#
# 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 d... | gpl-3.0 | -7,687,931,931,815,183,000 | 36.545455 | 141 | 0.609262 | false |
837278709/metro-openerp | metro_purchase/wizard/__init__.py | 2 | 1172 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the... | agpl-3.0 | 8,202,400,713,391,251,000 | 39.413793 | 79 | 0.627986 | false |
nuanri/hiblog | src/database.py | 1 | 2672 | from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker, scoped_session
from sqlalchemy.ext.declarative import declarative_base
ORMBase = declarative_base()
# DB_URI = 'sqlite:///:memory:'
DB_URI = 'sqlite:///auth.db'
def get_db_session():
dbengine = create_engine(DB_URI, echo=False)
s... | mit | -3,953,856,435,796,165,000 | 26.154639 | 80 | 0.659074 | false |
mancoast/CPythonPyc_test | fail/330_test_calendar.py | 3 | 37965 | import calendar
import unittest
from test import support
from test.script_helper import assert_python_ok
import time
import locale
import sys
result_2004_01_text = """
January 2004
Mo Tu We Th Fr Sa Su
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
"""
resul... | gpl-3.0 | 9,221,925,756,879,070,000 | 55.078287 | 206 | 0.577716 | false |
cmbclh/vnpy1.7 | build/lib/vnpy/trader/app/riskManager/rmEngine.py | 1 | 9304 | # encoding: UTF-8
'''
本文件中实现了风控引擎,用于提供一系列常用的风控功能:
1. 委托流控(单位时间内最大允许发出的委托数量)
2. 总成交限制(每日总成交数量限制)
3. 单笔委托的委托数量控制
'''
import json
import platform
from vnpy.event import Event
from vnpy.trader.vtEvent import *
from vnpy.trader.vtFunction import getJsonPath
from vnpy.trader.vtGateway import VtLogData
from vnpy.trader.vtC... | mit | -7,094,344,327,007,677,000 | 30.79845 | 118 | 0.469405 | false |
ijat/Hotspot-PUTRA-Auto-login | PyInstaller-3.2/PyInstaller/config.py | 1 | 1630 | #-----------------------------------------------------------------------------
# Copyright (c) 2005-2016, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed with this s... | gpl-3.0 | 8,850,864,767,512,552,000 | 27.596491 | 81 | 0.684049 | false |
xurantju/angr | tests/test_veritesting.py | 9 | 2565 | import nose
import angr
import logging
l = logging.getLogger('angr_tests.veritesting')
import os
location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries/tests'))
addresses_veritesting_a = {
'x86_64': 0x400674
}
addresses_veritesting_b = {
'x86_64': 0x4006af
}
def run_verite... | bsd-2-clause | -1,652,851,049,905,606,000 | 35.126761 | 102 | 0.630409 | false |
joachimmetz/plaso | plaso/parsers/winprefetch.py | 4 | 7030 | # -*- coding: utf-8 -*-
"""Parser for Windows Prefetch files."""
import pyscca
from dfdatetime import filetime as dfdatetime_filetime
from dfdatetime import semantic_time as dfdatetime_semantic_time
from plaso.containers import events
from plaso.containers import time_events
from plaso.containers import windows_even... | apache-2.0 | 1,235,760,220,335,901,000 | 34.15 | 79 | 0.696159 | false |
luotao1/Paddle | python/paddle/fluid/tests/unittests/test_squeeze2_op.py | 2 | 2178 | # Copyright (c) 2019 PaddlePaddle 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 app... | apache-2.0 | -133,971,170,509,584,770 | 26.923077 | 79 | 0.629936 | false |
kiith-sa/QGIS | python/plugins/processing/taudem/slopearea.py | 4 | 4036 | # -*- coding: utf-8 -*-
"""
***************************************************************************
slopearea.py
---------------------
Date : October 2012
Copyright : (C) 2012 by Alexander Bruy
Email : alexander dot bruy at gmail dot com
***************... | gpl-2.0 | 6,994,056,990,638,089,000 | 37.807692 | 79 | 0.59886 | false |
demikl/freeboxv5-status | setup.py | 1 | 1180 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup
from setuptools.command.install import install
VERSION = "1.1.1"
def readme():
"""print long description"""
with open('README.md') as f:
return f.read()
class VerifyVersionCommand(install):
"""Custom... | mit | -3,860,262,843,807,350,000 | 24.652174 | 85 | 0.630508 | false |
Duoxilian/home-assistant | homeassistant/components/zwave/workaround.py | 4 | 2913 | """Zwave workarounds."""
from . import const
# Manufacturers
FIBARO = 0x010f
PHILIO = 0x013c
WENZHOU = 0x0118
SOMFY = 0x47
# Product IDs
PHILIO_SLIM_SENSOR = 0x0002
PHILIO_3_IN_1_SENSOR_GEN_4 = 0x000d
# Product Types
FGFS101_FLOOD_SENSOR_TYPE = 0x0b00
FGRM222_SHUTTER2 = 0x0301
PHILIO_SENSOR = 0x0002
SOMFY_ZRTSI = 0x... | mit | 5,112,011,688,955,108,000 | 31.366667 | 79 | 0.708205 | false |
justiniso/cmsbase | quokka/ext/commands_collector.py | 11 | 1760 | import sys
import os
import click
import importlib
class CommandsCollector(click.MultiCommand):
"""A MultiCommand to collect all click commands from a given
modules path and base name for the module.
The commands functions needs to be in a module inside commands
folder and the name of the file will be... | mit | 7,906,761,460,361,110,000 | 34.918367 | 74 | 0.550568 | false |
Cadene/keras | keras/layers/embeddings.py | 5 | 4851 | from __future__ import absolute_import
import theano
import theano.tensor as T
from .. import activations, initializations, regularizers, constraints
from ..layers.core import Layer, MaskedLayer
from ..utils.theano_utils import sharedX
from ..constraints import unitnorm
class Embedding(Layer):
'''
Turn ... | mit | 4,487,056,170,492,720,000 | 35.473684 | 118 | 0.604824 | false |
hiaselhans/OpenGlider | tests/test_patterns.py | 2 | 1407 | import unittest
import tempfile
import os
import openglider
import openglider.plots
import openglider.plots.glider
from common import TestCase
TEMPDIR = tempfile.gettempdir()
class TestPlots(TestCase):
def setUp(self, complete=True):
self.glider_2d = self.import_glider_2d()
self.glider_3d = sel... | gpl-3.0 | 336,995,790,583,398,340 | 32.52381 | 105 | 0.678038 | false |
redbox-mint/redbox | config/src/main/config/home/lib/jython/alertlib/NewAlerts.py | 1 | 2631 | import shutil
import sys
import os
from com.googlecode.fascinator import HarvestClient
from com.googlecode.fascinator.common import FascinatorHome
from com.googlecode.fascinator.common import JsonObject
from com.googlecode.fascinator.common import JsonSimple
from java.io import File
from java.io import FileInputStrea... | gpl-2.0 | 5,667,524,529,944,497,000 | 35.041096 | 186 | 0.657925 | false |
outofmem0ry/incubator-hawq | tools/bin/lib/gpcheckdb.py | 12 | 7952 | #!/usr/bin/env python
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "L... | apache-2.0 | -5,511,619,666,447,308,000 | 25.684564 | 113 | 0.554452 | false |
8l/beri | cheritest/trunk/tests/cp2/test_cp2_csdr_unpriv.py | 2 | 2103 | #-
# Copyright (c) 2011 Robert N. M. Watson
# All rights reserved.
#
# This software was developed by SRI International and the University of
# Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237
# ("CTSRD"), as part of the DARPA CRASH research programme.
#
# @BERI_LICENSE_HEADER_START@
#
# License... | apache-2.0 | 387,148,937,092,373,300 | 41.06 | 127 | 0.748455 | false |
PearsonIOKI/compose-forum | askbot/tests/email_parsing_tests.py | 3 | 3845 | # -*- coding: utf-8 -*-
from django.conf import settings as django_settings
from django.template import Context
from django.template.loader import get_template
from askbot import mail
from askbot import models
from askbot.tests import utils
from askbot.utils.html import get_text_from_html
class EmailParsingTests(utils... | gpl-3.0 | -2,865,255,889,403,725,000 | 43.183908 | 390 | 0.654787 | false |
mihaic/brainiak | brainiak/funcalign/sssrm.py | 1 | 29553 | # Copyright 2016 Intel Corporation
#
# 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 | -7,022,321,390,158,036,000 | 34.77845 | 79 | 0.571854 | false |
Khan/tinyquery | tinyquery/compiler.py | 1 | 29283 | """The compiler step turns an AST into a planned query.
This step has a number of responsibilities:
-Validate that the expression is well-typed.
-Resolve all select fields to their aliases and types.
"""
from __future__ import absolute_import
import collections
import itertools
from tinyquery import exceptions
from ... | mit | -3,294,859,790,084,400,000 | 44.826291 | 79 | 0.58464 | false |
Lynx187/script.module.urlresolver | lib/urlresolver/plugins/promptfile.py | 3 | 2319 | '''
urlresolver XBMC Addon
Copyright (C) 2013 Bstrdsmkr
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.
This program is distri... | gpl-2.0 | 4,043,755,656,440,541,700 | 36.403226 | 97 | 0.65718 | false |
msifuentes/pynet_ansible | test_python/netmiko_wk4_ex7.py | 2 | 1955 | #!/usr/bin/env python
#Import libraries
from netmiko import ConnectHandler
from getpass import getpass
#define variables for the connection to network devices
ip_addr = '50.76.53.27'
username = 'pyclass'
password = getpass()
portpy2 = 8022
portsrx = 9822
cisco = 'cisco_ios'
juniper = 'juniper'
#create a dictionary ... | apache-2.0 | -7,625,436,891,656,848,000 | 24.38961 | 119 | 0.717136 | false |
AsimmHirani/ISpyPi | tensorflow/contrib/tensorflow-master/tensorflow/contrib/learn/python/learn/learn_io/pandas_io.py | 4 | 6562 | # 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 | -4,111,842,622,375,606,300 | 31.646766 | 84 | 0.631667 | false |
mikalstill/nova | nova/tests/unit/scheduler/filters/test_affinity_filters.py | 6 | 10892 | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | apache-2.0 | 2,362,458,746,925,816,300 | 42.394422 | 78 | 0.628994 | false |
wanderine/BROCCOLI | code/Python_Wrapper/nipype/interfaces/broccoli/firstlevel.py | 2 | 5550 | from nipype.interfaces.base import TraitedSpec, BaseInterface, BaseInterfaceInputSpec, File, Directory, isdefined, traits
from nipype.utils.filemanip import split_filename
import scipy.io
import scipy.signal
import os
import os.path as op
import nibabel as nb
import numpy as np
import broccoli
from base import Brocco... | gpl-3.0 | 2,255,084,076,372,702,700 | 45.25 | 168 | 0.651171 | false |
H-uru/pyprp2 | addons/PyPRP2/object.py | 1 | 2319 | #
# Copyright (C) 2010 PyPRP2 Project Team
# See the file AUTHORS for more info about the team.
#
# PyPRP2 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 L... | gpl-3.0 | -3,589,153,594,675,264,500 | 37.305085 | 123 | 0.695558 | false |
AOSPU/external_chromium_org | tools/perf/benchmarks/spaceport.py | 8 | 2444 | # Copyright 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.
"""Runs spaceport.io's PerfMarks benchmark."""
import logging
import os
from telemetry import test
from telemetry.core import util
from telemetry.page impo... | bsd-3-clause | 7,945,202,486,372,402,000 | 34.42029 | 79 | 0.658756 | false |
byt3bl33d3r/Empire | lib/modules/python/persistence/osx/loginhook.py | 10 | 4626 | class Module:
def __init__(self, mainMenu, params=[]):
# metadata info about the module, not modified during runtime
self.info = {
# name for the module that will appear in module menus
'Name': 'LoginHook',
# list of one or more authors for the module
... | bsd-3-clause | -6,961,776,777,605,648,000 | 36.918033 | 143 | 0.561608 | false |
PLyczkowski/Sticky-Keymap | 2.74/scripts/addons/io_scene_fbx/fbx2json.py | 3 | 9356 | #!/usr/bin/env python3
# ##### BEGIN GPL LICENSE BLOCK #####
#
# 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.
#
# ... | gpl-2.0 | -8,405,879,069,700,308,000 | 27.351515 | 79 | 0.575246 | false |
precedenceguo/mxnet | python/mxnet/_ctypes/symbol.py | 28 | 4282 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | -5,679,928,344,425,097,000 | 30.028986 | 87 | 0.606959 | false |
punchagan/zulip | zerver/openapi/python_examples.py | 1 | 48058 | # Zulip's OpenAPI-based API documentation system is documented at
# https://zulip.readthedocs.io/en/latest/documentation/api.html
#
# This file defines the Python code examples that appears in Zulip's
# REST API documentation, and also contains a system for running the
# example code as part of the `tools/test-api` t... | apache-2.0 | 6,032,945,492,935,285,000 | 29.945267 | 100 | 0.642058 | false |
beeftornado/sentry | src/sentry/integrations/vsts/webhooks.py | 1 | 7161 | from __future__ import absolute_import
from .client import VstsApiClient
import logging
import six
from sentry.models import (
Identity,
Integration,
OrganizationIntegration,
sync_group_assignee_inbound,
)
from sentry.models.apitoken import generate_token
from sentry.api.base import Endpoint
from dja... | bsd-3-clause | -2,832,467,956,054,932,500 | 37.294118 | 111 | 0.569055 | false |
foreveremain/common-workflow-language | reference/cwltool/process.py | 1 | 3893 | import avro.schema
import os
import json
import avro_ld.validate as validate
import copy
import yaml
import copy
import logging
import pprint
from aslist import aslist
import avro_ld.schema
import urlparse
import pprint
from pkg_resources import resource_stream
_logger = logging.getLogger("cwltool")
class WorkflowExc... | apache-2.0 | -9,149,455,562,665,673,000 | 34.715596 | 147 | 0.571025 | false |
staslev/incubator-beam | sdks/python/apache_beam/runners/portability/universal_local_runner.py | 4 | 14119 | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | apache-2.0 | -2,771,854,493,337,775,600 | 33.520782 | 80 | 0.675331 | false |
dstoe/vigra | vigranumpy/lib/pyqt/viewer2svg.py | 6 | 5276 | from __future__ import print_function
import os
from PyQt4 import QtCore, QtGui
def viewer2svg(viewer, basepath, onlyVisible = False, moveBy = QtCore.QPointF(0.5, 0.5)):
outvec=[]
outvec.append('<?xml version="1.0" standalone="no"?>\n')
outvec.append('<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"\n')
... | mit | -1,960,437,019,781,107,500 | 46.963636 | 140 | 0.540182 | false |
jabesq/home-assistant | homeassistant/components/verisure/binary_sensor.py | 8 | 1701 | """Support for Verisure binary sensors."""
import logging
from homeassistant.components.binary_sensor import BinarySensorDevice
from . import CONF_DOOR_WINDOW, HUB as hub
_LOGGER = logging.getLogger(__name__)
def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the Verisure binary sen... | apache-2.0 | 2,645,123,012,917,404,700 | 29.927273 | 74 | 0.621399 | false |
andymcbride/SensorMonitor | test_storage.py | 1 | 2017 | import unittest
from storage import Storage
from sensor import SensorData
from pathlib2 import Path
from sqlite3 import IntegrityError
class MyTestCase(unittest.TestCase):
def setUp(self):
self.filename = 'test.db'
self.storage = Storage(self.filename)
def tearDown(self):
path = Path... | gpl-3.0 | -6,787,078,605,793,974,000 | 32.065574 | 76 | 0.654437 | false |
kbase/KBaseSearchEngine | docsource/conf.py | 2 | 5238 | # -*- coding: utf-8 -*-
#
# KBaseSearchEngine documentation build configuration file, created by
# sphinx-quickstart on Wed Dec 6 20:18:36 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
# autogenerated f... | mit | -4,442,942,069,847,366,700 | 29.453488 | 79 | 0.682321 | false |
ofer43211/unisubs | utils/html.py | 6 | 1024 | # Amara, universalsubtitles.org
#
# Copyright (C) 2013 Participatory Culture Foundation
#
# 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 (at your op... | agpl-3.0 | 5,050,333,931,074,619,000 | 35.571429 | 74 | 0.740234 | false |
brunosmmm/hdltools | hdltools/vcd/trigger/event.py | 1 | 1166 | """Trigger event."""
from typing import Optional
from hdltools.vcd import VCDObject
from hdltools.vcd.trigger import VCDTriggerDescriptor
class VCDTriggerEvent(VCDObject):
"""VCD trigger event."""
EVENT_TYPES = ("condition", "trigger")
def __init__(
self,
evt_type: str,
time: in... | mit | -8,231,810,253,720,325,000 | 23.808511 | 72 | 0.577187 | false |
meshulam/chicago-justice | cjp/crimedata/models.py | 1 | 6764 | from django.db import models
from django.db import connection
import datetime
class CrimeReport(models.Model):
orig_ward = models.CharField(max_length=5, db_index=True) # character varying(5) NOT NULL,
orig_rd = models.CharField(max_length=20, db_index=True) # character varying(20) NOT NULL,
orig_beat_n... | gpl-3.0 | 917,793,423,594,398,500 | 49.111111 | 110 | 0.648137 | false |
huyphan/pyyawhois | yawhois/parser/base_shared2.py | 1 | 3211 | from .base_scannable import ScannableParserBase
from ..scanner.base_shared2 import BaseShared2Scanner
from ..utils import array_wrapper
from ..record import Nameserver
from ..record import Contact
from ..record import Registrar
from dateutil import parser as time_parser
class BaseShared2Parser(ScannableParserBase):
... | mit | 9,131,807,655,424,589,000 | 34.688889 | 118 | 0.58611 | false |
azumimuo/family-xbmc-addon | script.module.youtube.dl/lib/youtube_dl/extractor/egghead.py | 7 | 1342 | # coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
class EggheadCourseIE(InfoExtractor):
IE_DESC = 'egghead.io course'
IE_NAME = 'egghead:course'
_VALID_URL = r'https://egghead\.io/courses/(?P<id>[^/?#&]+)'
_TEST = {
'url': 'https://egghead.io/courses/pr... | gpl-2.0 | -3,845,287,956,764,960,000 | 37.342857 | 132 | 0.607303 | false |
pashinin-com/pashinin.com | src/core/migrations/0001_initial.py | 1 | 2313 | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-30 11:13
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '__first__'),
]
operations = [
migrations.Create... | gpl-3.0 | -2,121,084,785,230,692,900 | 54.071429 | 266 | 0.607869 | false |
pidah/st2contrib | packs/openhab/actions/lib/action.py | 10 | 1686 | import requests
import base64
from st2actions.runners.pythonrunner import Action
class BaseAction(Action):
def __init__(self, config):
super(BaseAction, self).__init__(config)
self.auth = None
self.username = self.config.get('username', None)
self.password = self.config.get('passw... | apache-2.0 | -2,299,476,187,434,650,600 | 32.058824 | 75 | 0.568802 | false |
DXCanas/kolibri | kolibri/core/discovery/serializers.py | 1 | 1028 | from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from rest_framework import serializers
from rest_framework.serializers import ValidationError
from .models import NetworkLocation
from .utils.network import errors
from .utils.network.client import Net... | mit | 8,020,563,567,040,571,000 | 40.12 | 158 | 0.702335 | false |
fuzeman/Catalytic | deluge/ui/gtkui/new_release_dialog.py | 4 | 3566 | #
# new_release_dialog.py
#
# Copyright (C) 2008 Andrew Resch <andrewresch@gmail.com>
#
# Deluge is free software.
#
# You may 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 ... | gpl-3.0 | -7,677,925,521,064,300,000 | 40.952941 | 99 | 0.675547 | false |
tqchen/tvm | python/tvm/relay/quantize/_partition_conversions.py | 1 | 13074 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | -4,459,951,679,981,442,000 | 37.910714 | 100 | 0.614043 | false |
pyoseo/django-oseoserver | oseoserver/serializers.py | 1 | 2314 | import dateutil.parser
import pytz
from rest_framework import serializers
from rest_framework.exceptions import ValidationError
from . import models
from . import settings
class SubscriptionOrderSerializer(serializers.ModelSerializer):
class Meta:
model = models.Order
fields = (
"id"... | apache-2.0 | -7,736,547,799,650,802,000 | 28.291139 | 79 | 0.564823 | false |
dbrattli/OSlash | oslash/typing/functor.py | 1 | 1141 | from abc import abstractmethod
from typing import TypeVar, Protocol, Callable
from typing_extensions import runtime_checkable
TSource = TypeVar('TSource', covariant=True)
TResult = TypeVar('TResult')
@runtime_checkable
class Functor(Protocol[TSource]):
"""The Functor class is used for types that can be mapped ov... | apache-2.0 | 3,561,620,570,025,413,600 | 23.804348 | 74 | 0.606486 | false |
Tima-Is-My-Association/TIMA | association/migrations/0002_word.py | 1 | 1066 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import association.models
class Migration(migrations.Migration):
dependencies = [
('association', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Word',
... | lgpl-3.0 | 4,240,898,878,019,281,400 | 31.30303 | 114 | 0.547842 | false |
aewallin/openvoronoi | python_examples/issues/polygon_2015-02-19.py | 1 | 4928 | import openvoronoi as ovd
import ovdvtk
import time
import vtk
import datetime
import math
import random
import os
import sys
import pickle
import gzip
import ovdgenerators as gens
def drawLine(myscreen, pt1, pt2, lineColor):
myscreen.addActor(ovdvtk.Line(p1=(pt1.x, pt1.y, 0), p2=(pt2.x, pt2.y, 0), color=lineColo... | lgpl-2.1 | 3,184,200,570,010,201,600 | 27.321839 | 184 | 0.559253 | false |
altGrey/TrueOpenIso | SOURCE/CODE/cssh/public_html/js/three/mrdoob-three.js-d3cb4e7/utils/exporters/blender/2.65/scripts/addons/io_mesh_threejs/export_threejs.py | 9 | 85025 | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | mit | 1,092,684,765,250,428,200 | 30.502408 | 165 | 0.52047 | false |
Intel-Corp/CPU-Manager-for-Kubernetes | tests/unit/test_isolate.py | 1 | 11645 | from intel import isolate, config
from unittest.mock import patch, MagicMock
import pytest
import os
EXCL_ONE = [
{
"pool": "exclusive",
"socket": "0",
"cl": "0,11",
"tasks": ["123"]
}
]
SHAR_ONE = [
{
"pool": "shared",
"socket": "0",
"cl": "4,15,5... | apache-2.0 | -5,756,347,737,831,524,000 | 32.271429 | 77 | 0.576986 | false |
ondoheer/GOT-english | libraries/jsonDict.py | 4 | 1934 | __author__ = 'ondoheer'
class JSONDictionary(object):
"""Creates an dictionary Object that works with JSON structured
dictionaries it takes one such argument as an inialization parameter.
It adds extra dictionary functionalities like key seaching and
specific key value retrieval (no matters how neste... | gpl-2.0 | -4,777,922,465,718,618,000 | 31.779661 | 73 | 0.574457 | false |
detrout/debian-statsmodels | statsmodels/robust/robust_linear_model.py | 27 | 25571 | """
Robust linear models with support for the M-estimators listed under
:ref:`norms <norms>`.
References
----------
PJ Huber. 'Robust Statistics' John Wiley and Sons, Inc., New York. 1981.
PJ Huber. 1973, 'The 1972 Wald Memorial Lectures: Robust Regression:
Asymptotics, Conjectures, and Monte Carlo.' The An... | bsd-3-clause | -7,524,098,930,800,713,000 | 36.494135 | 137 | 0.583865 | false |
mithrandi/txaws | txaws/s3/client.py | 1 | 32831 | # Copyright (C) 2008 Tristan Seligmann <mithrandi@mithrandi.net>
# Copyright (C) 2009 Canonical Ltd
# Copyright (C) 2009 Duncan McGreggor <oubiwann@adytum.us>
# Copyright (C) 2012 New Dream Network (DreamHost)
# Licenced under the txaws licence available at /LICENSE in the txaws source.
"""
Client wrapper for Amazon's... | mit | 3,476,167,274,423,799,300 | 34.880874 | 96 | 0.591788 | false |
sourcefabric/Airtime | python_apps/media-monitor/mm2/media/monitor/watchersyncer.py | 10 | 6311 | # -*- coding: utf-8 -*-
import time
import copy
from handler import ReportHandler
from log import Loggable
from exceptions import BadSongFile
from eventcontractor import EventContractor
from events import EventProxy
from request import ThreadedRequestSync, RequestSync
from ..s... | agpl-3.0 | -980,464,874,824,078,600 | 37.018072 | 79 | 0.590081 | false |
danbryce/dreal | benchmarks/network/thermostat/thermostat-triple-i-p-sat.py | 2 | 4655 |
from gen import *
##########
# shared #
##########
flow_var[0] = """
(declare-fun tau () Real)
"""
flow_dec[0] = """
(define-ode flow_1 ((= d/dt[tau] 1)))
"""
state_dec[0] = """
(declare-fun time_{0} () Real)
(declare-fun tau_{0}_0 () Real)
(declare-fun tau_{0}_t () Real)
"""
state_val[0] = """
(assert (<= 0 ... | gpl-2.0 | 4,517,924,462,000,548,000 | 25.907514 | 98 | 0.441461 | false |
allianceauth/allianceauth | allianceauth/thirdparty/navhelper/templatetags/navactive.py | 5 | 2726 | """
The MIT License (MIT)
Copyright (c) 2013 Guillaume Luchet
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, modify, me... | gpl-2.0 | -3,972,329,846,212,784,600 | 42.269841 | 132 | 0.724872 | false |
shrtCKT/simple-dnn | simple_dnn/generative/generator.py | 1 | 5736 | """ The generator network of a GAN.
"""
import tensorflow as tf
import tensorflow.contrib.slim as slim
class GeneratorDC(object):
""" Deep Convolutional Generator.
"""
def __init__(self, x_dims, x_ch, g_conv_units,
g_kernel_sizes=[5,5], g_strides=[2, 2], g_paddings='SAME',
... | gpl-3.0 | -7,486,515,944,308,775,000 | 40.273381 | 112 | 0.55666 | false |
Yellowen/vanda | vanda/auth/views.py | 1 | 6259 | # -----------------------------------------------------------------------------
# Vanda - Web development platform
# Copyright (C) 2011 Some Hackers In Town
#
# 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
# th... | gpl-2.0 | 67,268,331,838,765,720 | 34.361582 | 79 | 0.579006 | false |
akretion/odoo | addons/stock/wizard/stock_rules_report.py | 13 | 2224 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models
class StockRulesReport(models.TransientModel):
_name = 'stock.rules.report'
_description = 'Stock Rules report'
product_id = fields.Many2one('product.product', string='... | agpl-3.0 | 5,978,778,199,090,360,000 | 44.387755 | 114 | 0.623201 | false |
LabAdvComp/tukey_middleware | tukey_middleware/modules/instance_metadata/user_info.py | 1 | 3366 | # Copyright 2013 Open Cloud Consortium
#
# 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 | 4,318,000,108,861,852,700 | 26.365854 | 76 | 0.690434 | false |
hemmerling/python-coursera2012 | src/week8/week8_test.py | 1 | 7877 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
# @package coursera2012
# @author Rolf Hemmerling <hemmerling@gmx.net>
# @version 1.00
# @date 2015-01-01
# @copyright Apache License, Version 2.0
#
# Implementation of the game
# "Asteroids"
# for the Coursera course
# "An Introductio... | apache-2.0 | 4,969,938,699,966,351,000 | 28.296154 | 133 | 0.610258 | false |
person142/scipy | scipy/ndimage/tests/test_regression.py | 5 | 1286 | import numpy as np
from numpy.testing import assert_array_almost_equal
import scipy.ndimage as ndimage
def test_byte_order_median():
"""Regression test for #413: median_filter does not handle bytes orders."""
a = np.arange(9, dtype='<f4').reshape(3, 3)
ref = ndimage.filters.median_filter(a,(3, 3))
b ... | bsd-3-clause | 2,966,640,725,355,072,500 | 27.577778 | 79 | 0.578538 | false |
mne-tools/mne-tools.github.io | 0.14/_downloads/plot_evoked_delayed_ssp.py | 22 | 3873 | """
=========================================
Create evoked objects in delayed SSP mode
=========================================
This script shows how to apply SSP projectors delayed, that is,
at the evoked stage. This is particularly useful to support decisions
related to the trade-off between denoising and preservi... | bsd-3-clause | 9,072,494,202,869,819,000 | 39.768421 | 79 | 0.695068 | false |
LumaPictures/rez | src/rezplugins/shell/cmd.py | 3 | 8202 | """
Windows Command Prompt (DOS) shell.
"""
from rez.config import config
from rez.rex import RexExecutor, literal
from rez.shells import Shell
from rez.system import system
from rez.utils.platform_ import platform_
from rez.util import shlex_join
import os
import re
import subprocess
class CMD(Shell):
# For refe... | lgpl-3.0 | 6,841,379,534,693,779,000 | 33.607595 | 171 | 0.570105 | false |
disqus/Diamond | src/collectors/mysql/test/testmysql.py | 6 | 4231 | #!/usr/bin/python
# coding=utf-8
################################################################################
from test import CollectorTestCase
from test import get_collector_config
from test import unittest
from test import run_only
from mock import Mock
from mock import patch
from diamond.collector import Coll... | mit | 3,490,338,835,165,256,700 | 32.314961 | 80 | 0.552352 | false |
GenericStudent/home-assistant | homeassistant/components/arduino/sensor.py | 9 | 1619 | """Support for getting information from Arduino pins."""
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import CONF_NAME
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity
from . import DOMAIN
CONF_PINS =... | apache-2.0 | -3,335,557,974,952,929,000 | 26.440678 | 83 | 0.652872 | false |
JioCloud/nova_test_latest | nova/tests/unit/db/test_db_api.py | 5 | 388540 | # encoding=UTF8
# 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 m... | apache-2.0 | 926,845,915,533,690,500 | 43.990505 | 79 | 0.567316 | false |
anisku11/sublimeku | Packages/CodeComplice/libs/codeintel2/lang_xbl.py | 10 | 3211 | #!/usr/bin/env python
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License
# Version 1.1 (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.mozil... | mit | 4,609,207,670,450,474,000 | 35.488636 | 84 | 0.680162 | false |
handroissuazo/tensorflow | tensorflow/contrib/learn/python/learn/dataframe/queues/feeding_queue_runner.py | 37 | 6897 | # 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 | 4,977,298,174,269,079,000 | 37.316667 | 80 | 0.641438 | false |
waveform80/compoundpi | compoundpi/exc.py | 1 | 7202 | # vim: set et sw=4 sts=4 fileencoding=utf-8:
# Copyright 2014 Dave Jones <dave@waveform.org.uk>.
#
# This file is part of compoundpi.
#
# compoundpi 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 vers... | gpl-2.0 | -8,593,408,775,321,409,000 | 32.497674 | 84 | 0.693557 | false |
xbash/LabUNAB | 11_diccionarios/01_diccionario.py | 1 | 1078 | #-------------------------------------------------------------------------------
# Name: 01_diccionario
# Purpose:
#
# Author: jsepulveda
#
# Created: 18-10-2016
# Copyright: (c) jsepulveda 2016
# Licence: <your licence>
#-------------------------------------------------------------------... | gpl-3.0 | 4,461,117,359,344,268,300 | 28 | 80 | 0.447124 | false |
jawrainey/sris | sris/manager.py | 1 | 7789 | from sris import db, models
from messenger import Messenger
from service import SMSService
from datetime import datetime
class Manager:
"""
The middle-man of interaction between messenger and the SMS service.
"""
def __init__(self):
self.config = self.__load_config_file()
self.messenge... | mit | -7,210,275,371,339,341,000 | 40.430851 | 80 | 0.594813 | false |
johnmee/plugin.video.catchuptv.au.ten | resources/lib/pyamf/tests/test_adapters.py | 32 | 1661 | # Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Tests for the adapters module.
@since: 0.3.1
"""
import os
import sys
from pyamf import adapters
from pyamf.tests import util
from pyamf.tests.test_imports import ImportsTestCase
class AdapterHelperTestCase(ImportsTestCase):
def setUp(self)... | mit | 404,746,451,271,306,700 | 24.166667 | 78 | 0.624323 | false |
peerdrive/peerdrive | client/peerdrive/gui/utils.py | 1 | 1601 | # vim: set fileencoding=utf-8 :
#
# PeerDrive
# Copyright (C) 2011 Jan Klötzke <jan DOT kloetzke AT freenet DOT de>
#
# 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 Lic... | gpl-3.0 | -305,702,415,117,508,350 | 29.769231 | 71 | 0.72625 | false |
Acehaidrey/incubator-airflow | airflow/providers/google/cloud/example_dags/example_automl_nl_text_classification.py | 7 | 3351 | #
# 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... | apache-2.0 | -797,317,752,486,780,700 | 32.848485 | 110 | 0.716801 | false |
gnu3ra/SCC15HPCRepast | INSTALLATION/boost_1_54_0/libs/geometry/doc/make_qbk.py | 3 | 5284 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# ===========================================================================
# Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
# Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
# Copyright (c) 2009-2012 Mateusz Loskot (mateusz@loskot.net), Lon... | bsd-3-clause | -2,682,349,740,340,878,000 | 32.232704 | 98 | 0.631529 | 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.