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 |
|---|---|---|---|---|---|---|---|---|---|---|
vinoth3v/In | In/html/object_lister.py | 1 | 5992 |
class ObjectLister(HTMLObject):
'''List objects'''
# value from this argument will be used to identify the current page index
current_arg = 'page'
# default object view mode
view_mode = 'default'
# if set this query will be used to load entities
entity_load_query = None
entity_type = None
limit = 1
... | apache-2.0 | 8,786,976,584,150,277,000 | 23.357724 | 85 | 0.613151 | false |
godfather1103/WeiboRobot | python27/1.0/lib/ctypes/test/test_pointers.py | 11 | 6550 | import unittest, sys
from ctypes import *
import _ctypes_test
ctype_types = [c_byte, c_ubyte, c_short, c_ushort, c_int, c_uint,
c_long, c_ulong, c_longlong, c_ulonglong, c_double, c_float]
python_types = [int, int, int, int, int, long,
int, long, long, long, float, float]
class Point... | gpl-3.0 | 4,798,600,423,060,353,000 | 31.75 | 92 | 0.549313 | false |
bennibaermann/maximetro | config.py | 1 | 2649 | # -*- coding: utf-8 -*-
# set which part of the game you want to debug, set all for maximum output
# DEBUG = ('init', 'font', 'track', 'path', 'station', 'passenger', 'random' )
DEBUG = ('init','font' )
# these basic gamemodes change the gameplay drastical
ANIMALS = False # an alternative animals graphic set from erl... | agpl-3.0 | 1,604,158,864,433,164,500 | 30.176471 | 86 | 0.705172 | false |
bhavishyagopesh/hyper-h2 | examples/asyncio/wsgi-server.py | 1 | 31076 | # -*- coding: utf-8 -*-
"""
asyncio-server.py
~~~~~~~~~~~~~~~~~
A fully-functional WSGI server, written using hyper-h2. Requires asyncio.
To test it, try installing httpin from pip (``pip install httpbin``) and then
running the server (``python asyncio-server.py httpbin:app``).
This server does not support HTTP/1.1:... | mit | 4,342,187,864,877,386,000 | 40.050198 | 79 | 0.639517 | false |
YYWen0o0/python-frame-django | django/contrib/postgres/fields/array.py | 10 | 8527 | import json
from django.contrib.postgres.forms import SimpleArrayField
from django.contrib.postgres.validators import ArrayMaxLengthValidator
from django.core import checks, exceptions
from django.db.models import Field, Lookup, Transform, IntegerField
from django.utils import six
from django.utils.translation import ... | bsd-3-clause | 6,668,538,543,405,886,000 | 31.422053 | 100 | 0.588249 | false |
lorenzogil/mandelbrot | python/mandelbrot.py | 1 | 4044 | from math import floor, log, sqrt
import sdl2
import sdl2.ext
SCREEN_WIDTH = 600
SCREEN_HEIGHT = 600
MAX_ITERATIONS = 16
def gradient(pos):
if (pos < 0.16):
ratio = (pos - 0.0) / (0.16 - 0.0)
red = 0 + ratio * (32 - 0)
green = 7 + ratio * (107 - 7)
blue = 100 + ratio * (203 - 1... | gpl-3.0 | -7,877,150,443,130,833,000 | 27.27972 | 77 | 0.465875 | false |
gauravbose/digital-menu | digimenu2/tests/cache/tests.py | 12 | 84938 | # -*- coding: utf-8 -*-
# Unit tests for cache framework
# Uses whatever cache backend is set in the test settings file.
from __future__ import unicode_literals
import copy
import os
import re
import shutil
import tempfile
import threading
import time
import unittest
import warnings
from django.conf import settings
... | bsd-3-clause | 2,151,760,029,988,173,000 | 38.614559 | 121 | 0.62664 | false |
LabConnect/Signalgenerator | firmware/HostTestApp/test_generic_hid_libusb.py | 1 | 3211 | #!/usr/bin/env python
"""
LUFA Library
Copyright (C) Dean Camera, 2014.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
"""
"""
LUFA Generic HID device demo host test script. This script will send a
continuous stream of generic reports to the device, to show a variable L... | gpl-2.0 | 9,159,657,997,410,438,000 | 31.765306 | 85 | 0.621925 | false |
bilabon/django-s3direct | runtests.py | 5 | 2028 | import sys
import os
from os import environ
import django
from django.conf import settings
settings.configure(DEBUG=True,
DATABASES={
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
},
... | mit | 2,137,180,755,506,505,700 | 40.387755 | 99 | 0.498521 | false |
on-c-e/oncepy | caltext.py | 1 | 37073 | #! python
import codecs
import datetime
import sys
import os
import pprint as ppr
from numpy import *
import numpy.linalg as LA
from sympy import *
from sympy import var as varsym
from sympy import printing
from once.calunit import *
from once.calcheck import ModCheck
from once import config as cfg
__ve... | mit | -1,956,707,070,761,840,000 | 37.565635 | 100 | 0.402827 | false |
data-exp-lab/girder | test/test_cache.py | 4 | 2574 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# Copyright 2014 Kitware 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 cop... | apache-2.0 | -3,508,126,955,801,532,400 | 31.582278 | 79 | 0.672494 | false |
tomwire/AutobahnPython | autobahn/websocket/test/test_websocket_url.py | 11 | 5487 | ###############################################################################
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
#
# 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 with... | mit | 4,034,182,700,942,526,000 | 42.204724 | 181 | 0.647348 | false |
Theer108/invenio | invenio/legacy/weblinkback/db_layer.py | 13 | 13392 | # -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2011, 2012 CERN.
#
# Invenio is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any... | gpl-2.0 | 6,760,731,266,523,626,000 | 30.961814 | 128 | 0.51822 | false |
petervanderdoes/wger | wger/nutrition/tests/test_ingredient_overview.py | 1 | 4670 | # This file is part of wger Workout Manager.
#
# wger Workout Manager 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 version.
#
# wger W... | agpl-3.0 | -658,755,332,976,260,400 | 35.484375 | 96 | 0.648822 | false |
catapult-project/catapult | telemetry/telemetry/internal/backends/browser_backend.py | 3 | 16982 | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import division
from __future__ import absolute_import
import logging
import os
import posixpath
import uuid
import sys
import tempfile
impor... | bsd-3-clause | 9,061,864,184,293,802,000 | 35.055202 | 80 | 0.704216 | false |
ClovisIRex/Snake-django | env/lib/python3.6/site-packages/pylint/test/functional/redefine_in_handler.py | 6 | 1585 | """Test for W0623, overwriting names in exception handlers."""
# pylint: disable=broad-except,bare-except,print-statement,no-absolute-import,duplicate-except
# pylint: disable=invalid-name, unused-variable
import exceptions
__revision__ = ''
class MyError(Exception):
"""Special exception class."""
pass
def ... | mit | -2,941,373,177,925,864,400 | 22.308824 | 94 | 0.666246 | false |
nwjs/chromium.src | chrome/test/chromedriver/server/server.py | 2 | 3626 | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import atexit
import os
import socket
import subprocess
import threading
import time
import urllib2
def terminate_process(proc):
"""Terminates the process... | bsd-3-clause | -6,857,719,779,066,672,000 | 28.966942 | 79 | 0.646167 | false |
cherokee/webserver | qa/112-NiceError-CGI.py | 8 | 1832 | from base import *
ERROR = 403
ERROR_MSG = """<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Permission Denied - Cherokee Web Server</title>
</head>
<body>
<!-- Poe... | gpl-2.0 | -2,774,066,265,116,544,000 | 27.625 | 124 | 0.656659 | false |
Teamxrtc/webrtc-streaming-node | third_party/webrtc/src/chromium/src/third_party/webdriver/pylib/test/selenium/webdriver/common/webdriverwait_tests.py | 17 | 15629 | #!/usr/bin/python
# Copyright 2011 WebDriver committers
#
# 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 l... | mit | -8,254,959,777,622,366,000 | 47.237654 | 201 | 0.673428 | false |
EthanBlackburn/sync-engine | migrations/versions/115_eas_twodevices_turn.py | 1 | 3173 | """EAS two-devices turn
Revision ID: 17dc9c049f8b
Revises: ad7b856bcc0
Create Date: 2014-10-21 20:38:14.311747
"""
# revision identifiers, used by Alembic.
revision = '17dc9c049f8b'
down_revision = 'ad7b856bcc0'
from datetime import datetime
from alembic import op
import sqlalchemy as sa
from sqlalchemy.sql import... | agpl-3.0 | -1,912,877,296,050,088,000 | 31.71134 | 88 | 0.566341 | false |
danieljaouen/ansible | lib/ansible/modules/cloud/amazon/aws_waf_condition.py | 31 | 27277 | #!/usr/bin/python
# Copyright (c) 2017 Will Thames
# Copyright (c) 2015 Mike Mochan
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}
DO... | gpl-3.0 | -4,156,373,584,535,031,000 | 40.391502 | 139 | 0.609268 | false |
Azure/azure-sdk-for-python | sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2020_11_01_preview/aio/operations/_export_pipelines_operations.py | 1 | 22808 | # 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 may ... | mit | 4,316,208,419,973,742,000 | 51.796296 | 225 | 0.652973 | false |
fatzebra/fatzebra-python | fatzebra/data.py | 1 | 1346 | class Purchase(object):
def __init__(self, data):
self.id = data["id"]
self.authorization = data["authorization"]
self.successful = data["successful"]
self.card_holder = data["card_holder"]
self.card_number = data["card_number"]
self.c... | mit | -7,850,893,359,303,738,000 | 38.588235 | 56 | 0.536404 | false |
Rastii/pydev_docker | pydev_docker/cli/parser.py | 1 | 12905 | from typing import Optional, Sequence, Mapping, List, NamedTuple
import enum
import argparse
import yaml
from pydev_docker import utils
from pydev_docker import options
from pydev_docker import models
from pydev_docker import container
class ParseError(Exception):
"""
Generic exception related to parsing op... | mit | -7,013,473,686,265,655,000 | 35.148459 | 99 | 0.620767 | false |
dermoth/gramps | gramps/gui/widgets/grampletbar.py | 2 | 27421 | #
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2007 Donald N. Allingham
# Copyright (C) 2011 Nick Hall
# Copyright (C) 2011 Gary Burton
#
# 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
#... | gpl-2.0 | 7,874,076,515,296,342,000 | 34.657997 | 105 | 0.51559 | false |
vfulco/scalpel | lib/gravity/tae/stemmer/stemmer.py | 2 | 1299 | # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in ... | lgpl-3.0 | 9,037,986,856,933,213,000 | 37.235294 | 103 | 0.685912 | false |
mcgachey/edx-platform | pavelib/docs.py | 10 | 1942 | """
Open edX Documentation Builder
Ties into Sphinx to generate files at the specified location(s)
"""
from __future__ import print_function
import sys
from paver.easy import *
DOC_PATHS = {
"dev": "docs/en_us/developers",
"author": "docs/en_us/course_authors",
"data": "docs/en_us/data",
"default": "d... | agpl-3.0 | 5,751,067,414,969,878,000 | 24.220779 | 73 | 0.593718 | false |
ktan2020/legacy-automation | win/Lib/site-packages/wx-3.0-msw/wx/lib/plot.py | 1 | 98831 | #-----------------------------------------------------------------------------
# Name: wx.lib.plot.py
# Purpose: Line, Bar and Scatter Graphs
#
# Author: Gordon Williams
#
# Created: 2003/11/03
# RCS-ID: $Id$
# Copyright: (c) 2002
# Licence: Use as you wish.
#-------------------... | mit | 3,829,642,802,606,390,000 | 38.771865 | 143 | 0.566765 | false |
supriyantomaftuh/python_api | python_api/marklogic/connection.py | 1 | 7675 | #
# Copyright 2015 MarkLogic 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 in... | apache-2.0 | 8,772,053,235,185,808,000 | 35.374408 | 84 | 0.569251 | false |
Juanvulcano/zulip | zerver/tests/test_realm_filters.py | 3 | 3104 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from zerver.lib.actions import get_realm_by_string_id, do_add_realm_filter
from zerver.lib.test_classes import ZulipTestCase
from zerver.models import RealmFilter
import ujson
class RealmFilterTest(ZulipTestCase):
def test_list(self):
# type... | apache-2.0 | 8,295,215,289,874,825,000 | 42.111111 | 125 | 0.615979 | false |
scampion/pimpy | pimpy/video/__init__.py | 1 | 5165 | """
pimpy.video : video objects class
.. module:: video
:synopsis: Tools for video
:platform: Unix, Mac, Windows
.. moduleauthor:: Sebastien Campion <sebastien.campion@inria.fr>
"""
# pimpy
# Copyright (C) 2010 Sebastien Campion <sebastien.campion@inria.fr>
#
# pimpy is free software; you can redistribute i... | agpl-3.0 | 6,681,638,386,241,560,000 | 27.535912 | 94 | 0.598064 | false |
dmohankudo/APIFuzzing | FuzzAPI_git.py | 1 | 4405 | # -*- coding: utf-8 -*-
'''
Set Up:
::python 3(preferred) flavor of (miniconda) installed
Usage:
::mal_file -> a file name containing malicious strings: 'xss.txt'
OR
-> a list of values haing malicious strings : ["alert}>'><script>alert(<fin2000>)</script>", "<script>ale... | apache-2.0 | -7,637,848,054,684,910,000 | 35.649573 | 149 | 0.503065 | false |
dsemi/Flexget | flexget/plugins/metainfo/trakt_lookup.py | 1 | 16011 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, division, absolute_import, print_function
from builtins import * # pylint: disable=unused-import, redefined-builtin
import logging
import functools
from flexget import plugin
from flexget.event import event
from flexget.manager import Session
try:
... | mit | -4,050,092,070,684,412,000 | 39.948849 | 112 | 0.564112 | false |
tonyseek/rsocks | rsocks/server.py | 1 | 3849 | from __future__ import unicode_literals
from .green import socket, socks, listen, serve, wrap_ssl, GreenPool
from .utils import parse_proxy_uri, printable_uri, get_logger
__all__ = ['ReverseProxyServer']
class Server(object):
"""The template class for writting custom server."""
def __init__(self, concurre... | mit | -2,348,855,042,301,571,000 | 30.040323 | 70 | 0.58171 | false |
arista-eosplus/ansible | lib/ansible/playbook/play.py | 7 | 12269 | # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | gpl-3.0 | -8,869,523,384,699,161,000 | 35.843844 | 137 | 0.610645 | false |
vbannai/neutron | neutron/openstack/common/rpc/service.py | 5 | 2774 | # 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 use this file except in compliance with the ... | apache-2.0 | 3,255,709,238,133,598,700 | 35.986667 | 78 | 0.663302 | false |
eneldoserrata/marcos_openerp | addons/report_geraldo/lib/geraldo/site/newsite/django_1_0/tests/regressiontests/model_regress/models.py | 12 | 2290 | # coding: utf-8
from django.db import models
CHOICES = (
(1, 'first'),
(2, 'second'),
)
class Article(models.Model):
headline = models.CharField(max_length=100, default='Default headline')
pub_date = models.DateTimeField()
status = models.IntegerField(blank=True, null=True, choices=CHOICES)
mi... | agpl-3.0 | 7,384,850,044,108,882,000 | 30.777778 | 76 | 0.675699 | false |
tfrayner/vcf_walker | utils/extract_sample_loci.py | 1 | 2225 | #!/usr/bin/env python
'''
Script to extract variant loci known to be mutated in one of the
indicated samples, and omit all other loci.
'''
import re
import vcf
from vcf_walker.vcf_meta import VcfMeta, LOGGER
class SampleExtractor(VcfMeta):
def filter(self, outfile, samppatt):
sampre = re.compile(samppatt)
... | gpl-3.0 | 851,339,215,786,639,200 | 32.208955 | 88 | 0.602247 | false |
alexhayes/python-eway | eway/managed_service_types.py | 1 | 35109 | import ZSI
import ZSI.TCcompound
from ZSI.schema import LocalElementDeclaration, ElementDeclaration, TypeDefinition, GTD, GED
################################################
# targetNamespace
# https://www.eway.com.au/gateway/managedpayment
################################################
class Eway:
targetNames... | apache-2.0 | -963,339,123,505,914,900 | 67.305447 | 271 | 0.587485 | false |
Shougo/python-client | pynvim/msgpack_rpc/msgpack_stream.py | 2 | 2006 | """Msgpack handling in the event loop pipeline."""
import logging
from msgpack import Packer, Unpacker
from pynvim.compat import unicode_errors_default
logger = logging.getLogger(__name__)
debug, info, warn = (logger.debug, logger.info, logger.warning,)
class MsgpackStream(object):
"""Two-way msgpack stream t... | apache-2.0 | -4,655,828,085,260,947,000 | 30.34375 | 77 | 0.608175 | false |
bobsummerwill/solidity | docs/conf.py | 2 | 8535 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Solidity documentation build configuration file, created by
# sphinx-quickstart on Mon Dec 7 12:32:57 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# a... | gpl-3.0 | -8,138,761,273,294,447,000 | 30.847015 | 92 | 0.705917 | false |
jonnylamb/debexpo | debexpo/tests/functional/test_login.py | 3 | 2526 | from debexpo.tests import *
from pylons import session
class TestLoginController(TestController):
def setUp(self):
self._setup_models()
self._setup_example_user()
def tearDown(self):
self._remove_example_user()
def test_index(self):
response = self.app.get(url(controller='... | mit | -4,887,738,753,579,944,000 | 45.777778 | 92 | 0.600554 | false |
MechCoder/sympy | sympy/concrete/tests/test_gosper.py | 100 | 7423 | """Tests for Gosper's algorithm for hypergeometric summation. """
from sympy import binomial, factorial, gamma, Poly, S, simplify, sqrt, exp, log, Symbol, pi
from sympy.abc import a, b, j, k, m, n, r, x
from sympy.concrete.gosper import gosper_normal, gosper_sum, gosper_term
def test_gosper_normal():
assert gosp... | bsd-3-clause | 2,186,736,378,180,230,000 | 37.661458 | 121 | 0.494813 | false |
muk-it/muk_dms | muk_dms_thumbnails/__manifest__.py | 1 | 1714 | ###################################################################################
#
# Copyright (c) 2017-2019 MuK IT GmbH.
#
# This file is part of MuK Documents Thumbnails
# (see https://mukit.at).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GN... | lgpl-3.0 | 124,497,207,057,240,900 | 31.339623 | 83 | 0.553676 | false |
tectronics/arsenalsuite | python/pythondotnet/pythonnet/src/tests/test_constructors.py | 10 | 2189 | # ===========================================================================
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE D... | gpl-2.0 | 7,870,192,741,875,254,000 | 29.724638 | 77 | 0.612152 | false |
dbbhattacharya/kitsune | kitsune/offline/tests/test__utils.py | 1 | 9768 | # -*- coding: utf-8 -*-
import time
from nose.tools import eq_
from kitsune.offline import utils
from kitsune.products.tests import product, topic
from kitsune.sumo.tests import TestCase
from kitsune.wiki.tests import document, revision
def _create_doc(title='', product=None, topic=None, is_archived=False):
tit... | bsd-3-clause | -2,715,970,311,140,869,600 | 31.751678 | 78 | 0.55543 | false |
anotherjesse/nova | nova/objectstore/stored.py | 1 | 1869 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compli... | apache-2.0 | -4,742,385,313,724,289,000 | 28.666667 | 78 | 0.644195 | false |
NathanW2/QGIS | tests/src/python/test_qgscoordinateformatter.py | 8 | 32256 | # -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsCoordinateFormatter.
.. 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... | gpl-2.0 | 2,592,582,362,035,366,000 | 88.818697 | 178 | 0.77099 | false |
mooncoindev/mooncoin | share/seeds/generate-seeds.py | 1 | 4298 | #!/usr/bin/python
# Copyright (c) 2014 Wladmir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Script to generate list of seed nodes for chainparams.cpp.
This script expects two text files in the directory that... | mit | 4,856,943,736,252,471,000 | 30.837037 | 98 | 0.576082 | false |
kubostech/kubos-cli | kubos/utils/status_spinner.py | 1 | 2295 | # Kubos SDK
# Copyright (C) 2016 Kubos 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 ... | apache-2.0 | -2,279,987,537,932,540,400 | 29.197368 | 77 | 0.664052 | false |
andrei-karalionak/ggrc-core | test/selenium/src/lib/constants/element.py | 1 | 4723 | # Copyright (C) 2016 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""Module containing element labels or properties e.g. date formatting"""
# pylint: disable=too-few-public-methods
from lib.constants import objects
# size of the header in px
SIZE_HEADER = 50
class Lan... | apache-2.0 | -2,136,699,178,413,161,200 | 27.97546 | 78 | 0.638154 | false |
aio-libs/aiohttp-debugtoolbar | aiohttp_debugtoolbar/panels/traceback.py | 1 | 2027 | import re
from .base import DebugPanel
from ..tbtools.tbtools import Traceback
from ..utils import escape, APP_KEY, STATIC_ROUTE_NAME
from ..utils import ROOT_ROUTE_NAME
__all__ = ['TracebackPanel']
class TracebackPanel(DebugPanel):
name = 'Traceback'
template = 'traceback.jinja2'
title = 'Traceback'
... | apache-2.0 | -2,017,070,609,646,823,700 | 30.184615 | 72 | 0.568821 | false |
n0trax/ansible | lib/ansible/plugins/action/win_copy.py | 10 | 21791 | # This file is part of Ansible
# Copyright (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import base64
import json
import os
i... | gpl-3.0 | 147,487,347,866,603,360 | 42.84507 | 115 | 0.558258 | false |
hagabbar/pycbc_copy | pycbc/events/stat.py | 1 | 19147 | # Copyright (C) 2016 Alex Nitz
#
# 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 distributed in the ... | gpl-3.0 | -6,008,263,459,739,687,000 | 33.876138 | 89 | 0.604429 | false |
brad-kaiser/spark | python/pyspark/sql/context.py | 10 | 21640 | #
# 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,975,415,205,048,406,000 | 38.345455 | 100 | 0.629852 | false |
DraXus/andaluciapeople | tracking/models.py | 1 | 2276 | from django.db import models
from django.contrib.auth.models import User
from tracking import utils
from datetime import datetime, timedelta
class VisitorManager(models.Manager):
def active(self, timeout=None):
if not timeout:
timeout = utils.get_timeout()
now = datetime.now()
... | agpl-3.0 | 5,725,694,590,756,589,000 | 32.985075 | 256 | 0.650264 | false |
iproduct/course-social-robotics | 11-dnn-keras/venv/Lib/site-packages/IPython/core/tests/test_pylabtools.py | 2 | 7728 | """Tests for pylab tools module.
"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from io import UnsupportedOperation, BytesIO
import matplotlib
matplotlib.use('Agg')
from matplotlib.figure import Figure
from nose import SkipTest
import nose.tools as nt
from... | gpl-2.0 | 3,916,106,620,152,399,000 | 29.1875 | 82 | 0.608178 | false |
wido/cloudstack | test/integration/smoke/test_certauthority_root.py | 2 | 9341 | # 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 | -6,341,699,366,786,309,000 | 39.790393 | 492 | 0.675302 | false |
hannesstockner/samza | samza-test/src/main/python/samza_job_yarn_deployer.py | 15 | 12921 | # 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 | 690,226,025,822,370,300 | 41.643564 | 164 | 0.688337 | false |
AnotherIvan/calibre | src/calibre/ebooks/epub/periodical.py | 14 | 6111 | #!/usr/bin/env python2
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
__license__ = 'GPL v3'
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
from uuid import uuid4
import time
from calibre.constants import __appname__, __version__
from calibre import strftime, p... | gpl-3.0 | 6,889,401,046,172,105,000 | 31.333333 | 101 | 0.585829 | false |
ksachs/invenio | modules/bibsort/lib/bibsort_washer.py | 6 | 4744 | ## -*- mode: python; coding: utf-8; -*-
##
## This file is part of Invenio.
## Copyright (C) 2010, 2011, 2012 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## Li... | gpl-2.0 | 6,214,775,736,165,882,000 | 32.408451 | 101 | 0.58769 | false |
Hitechverma/zamboni | mkt/feed/views.py | 2 | 39503 | from django.conf import settings
from django.core.files.storage import default_storage as storage
from django.db.models import Q
from django.db.transaction import non_atomic_requests
from django.utils.datastructures import MultiValueDictKeyError
from django.http import Http404
from django.views.decorators.cache import ... | bsd-3-clause | 2,247,102,181,119,732,500 | 38.503 | 79 | 0.602435 | false |
sirchia/CouchPotatoServer | libs/guessit/guess.py | 4 | 10337 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# GuessIt - A library for guessing information from filenames
# Copyright (c) 2011 Nicolas Wack <wackou@gmail.com>
#
# GuessIt is free software; you can redistribute it and/or modify it under
# the terms of the Lesser GNU General Public License as published by
# the Free ... | gpl-3.0 | 6,297,461,750,012,670,000 | 30.135542 | 94 | 0.591177 | false |
SeattleTestbed/repy_v2 | repy.py | 1 | 13432 | """
<Author>
Justin Cappos
Ivan Beschastnikh (12/24/08) -- added usage
Brent Couvrette (2/27/09) -- added servicelog commandline option
Conrad Meyer (5/22/09) -- switch option parsing to getopt
Moshe Kaplan (8/15/12) -- switched option parsing to optparse
<Start Date>
June 26th, 2008
<Description>
Re... | mit | 9,118,748,605,965,150,000 | 33.005063 | 124 | 0.681581 | false |
wavicles/pycode-browser | Code/Maths/julia.py | 8 | 1094 | '''
Region of a complex plane ranging from -1 to +1 in both real
and imaginary axes is rpresented using a 2 dimensional matrix
having X x Y elements.For X and Y equal to 200, the stepsize
in the complex plane is 2.0/200 = 0.01.
The nature of the pattern depends very much on the value of c.
'''
from pylab import *
X =... | gpl-3.0 | -2,232,362,152,945,310,500 | 26.05 | 62 | 0.609689 | false |
coteyr/home-assistant | tests/components/automation/test_sun.py | 2 | 13076 | """
tests.components.automation.test_sun
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests sun automation.
"""
from datetime import datetime
import unittest
from unittest.mock import patch
from homeassistant.components import sun
import homeassistant.components.automation as automation
import homeassistant.util.dt as dt_uti... | mit | 8,928,940,585,674,092,000 | 34.824658 | 76 | 0.4948 | false |
xuwei95/shadowsocksr | shadowsocks/obfsplugin/verify.py | 13 | 4374 | #!/usr/bin/env python
#
# Copyright 2015-2015 breakwa11
#
# 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 la... | apache-2.0 | 5,763,225,900,761,875,000 | 27.402597 | 77 | 0.585277 | false |
FInAT/FInAT | finat/quadrature.py | 1 | 3725 | from abc import ABCMeta, abstractproperty
from functools import reduce
import numpy
import gem
from gem.utils import cached_property
from FIAT.reference_element import LINE, QUADRILATERAL, TENSORPRODUCT
from FIAT.quadrature import GaussLegendreQuadratureLineRule
from FIAT.quadrature_schemes import create_quadrature ... | mit | -827,749,074,207,715,800 | 34.141509 | 84 | 0.69047 | false |
sekikn/incubator-airflow | airflow/providers/amazon/aws/hooks/batch_client.py | 3 | 18330 | #
# 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 | 2,077,799,243,754,084,900 | 33.197761 | 103 | 0.604201 | false |
foobarbazblarg/stayclean | stayclean-2016/serve-posts-and-comments-from-interesting-users.py | 1 | 4227 | #!/usr/bin/python
import subprocess
import time
import praw
from hashlib import sha1
from flask import Flask
from flask import Response
from flask import request
from cStringIO import StringIO
from base64 import b64encode
from base64 import b64decode
from ConfigParser import ConfigParser
import OAuth2Util
import os
im... | mit | -8,780,181,807,481,865,000 | 36.741071 | 131 | 0.673764 | false |
marinkaz/orange3 | Orange/classification/simple_tree.py | 5 | 10627 | import ctypes as ct
import numpy as np
from Orange.base import Learner, Model
__all__ = ['SimpleTreeLearner']
from . import _simple_tree
_tree = ct.pydll.LoadLibrary(_simple_tree.__file__)
DiscreteNode = 0
ContinuousNode = 1
PredictorNode = 2
Classification = 0
Regression = 1
IntVar = 0
FloatVar = 1
c_int_p = ct.P... | bsd-2-clause | -2,589,193,165,253,487,000 | 33.615635 | 79 | 0.53684 | false |
carmine/open-kilda | services/traffexam/kilda/traffexam/context.py | 2 | 3104 | # Copyright 2017 Telstra Open Source
#
# 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 agre... | apache-2.0 | 1,999,451,595,794,261,500 | 28.846154 | 79 | 0.642397 | false |
saurabh6790/trufil_app | selling/report/sales_person_target_variance_item_group_wise/sales_person_target_variance_item_group_wise.py | 30 | 5091 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import webnotes
from webnotes import _, msgprint
from webnotes.utils import flt
import time
from accounts.utils import get_fiscal_year
from controlle... | agpl-3.0 | -7,279,310,025,965,091,000 | 36.718519 | 101 | 0.687488 | false |
skoslowski/gnuradio | gr-filter/python/filter/design/api_object.py | 3 | 2038 | from __future__ import unicode_literals
# Copyright 2012 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
#
class ApiObject(object):
'''
Filter count variable if the filter design tool has to
return multiple filter parameters in futur... | gpl-3.0 | 3,837,973,088,949,248,000 | 28.970588 | 64 | 0.592247 | false |
evgeni/cfgdiff | test/test_cfgdiff.py | 1 | 4680 | import unittest
import cfgdiff
class CfgDiffTestCase(unittest.TestCase):
def _test_same(self, cls, filea, fileb, parser=None):
a = cls(filea, ordered=False, parser=parser)
b = cls(fileb, ordered=False, parser=parser)
self.assertIsNone(a.error)
self.assertIsNone(b.error)
... | mit | 1,457,297,573,597,181,200 | 33.925373 | 79 | 0.576923 | false |
HiSPARC/station-software | user/python/Lib/site-packages/win32comext/axdebug/adb.py | 18 | 17292 | """The glue between the Python debugger interface and the Active Debugger interface
"""
from win32com.axdebug.util import trace, _wrap, _wrap_remove
from win32com.server.util import unwrap
import win32com.client.connect
import gateways
import sys, bdb, traceback
import axdebug, stackframe
import win32api, pythoncom
imp... | gpl-3.0 | -2,416,130,532,915,679,700 | 40.567308 | 167 | 0.636537 | false |
numenta/nupic.research | projects/transformers/experiments/hpsearch.py | 2 | 1819 | # Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2021, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions apply:
#
# This program is free software you can redistribute it and/or modify
# it under... | agpl-3.0 | 6,478,573,843,356,277,000 | 24.985714 | 73 | 0.709731 | false |
rCorvidae/OrionPI | src/tests/Updater/TestUpdaterTransmissionNegotiation.py | 1 | 5052 | from bin.Updater.UpdaterTransmissionNegotiation import NegotiationResult, TransmissionNegotiation
import unittest
import json
class TestTransmissionResult(unittest.TestCase):
def setUp(self):
self.positive_ack_dict = {
"ACK": {
"filename": "update.zip",
"filesiz... | mit | -1,533,825,401,147,790,800 | 40.073171 | 97 | 0.653009 | false |
d-grossman/magichour | deprecated/LogSig/multi/LogSigMulti2.py | 2 | 7941 | from collections import Counter
from itertools import combinations
from collections import namedtuple
from functools import partial
import multiprocessing
import datetime
import hashlib
import sys
import time
import signal
import gzip
'''
name some intermediate data structures
'''
LogLine = namedtuple('LogLine', ['ts'... | apache-2.0 | 3,701,406,154,012,823,600 | 21.950867 | 79 | 0.570205 | false |
RobertHilbrich/assist | ch.hilbri.assist.mapping.benchmarking/resources/generate-plots.py | 2 | 5839 | import numpy as np
import matplotlib.pyplot as plt
examples = np.arange(20)
width = 0.25
constraints_full = []
variables_full = []
fails_full = []
backtracks_full = []
resolution_full = []
constraints_inst_only = []
variables_inst_only = []
fails_inst_only = []
backtracks_inst_only = []
resolution_inst_only = []
c... | gpl-2.0 | -5,068,243,061,225,530,000 | 39.548611 | 139 | 0.639151 | false |
M4rtinK/tsubame | tests/account_test.py | 1 | 1853 | import unittest
import tempfile
import os
import sys
import blitzdb
from core.account import TwitterAccount
from core.db import CustomFileBackend
class TwitterAccountClassTest(unittest.TestCase):
def account_test(self):
"""Check if twitter_accounts can be properly instantiated"""
with tempfile.Te... | gpl-3.0 | -7,980,700,245,270,876,000 | 40.177778 | 78 | 0.640583 | false |
jbenet/mongo-python-driver | test/test_grid_file.py | 1 | 15832 | # -*- coding: utf-8 -*-
#
# Copyright 2009-2010 10gen, 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 la... | apache-2.0 | -142,685,238,877,963,420 | 31.109533 | 77 | 0.575111 | false |
asciimoo/searx | searx/engines/searchcode_code.py | 5 | 1746 | """
Searchcode (It)
@website https://searchcode.com/
@provide-api yes (https://searchcode.com/api/)
@using-api yes
@results JSON
@stable yes
@parse url, title, content
"""
from json import loads
from searx.url_utils import urlencode
# engine dependent config
categories = ['it']
paging =... | agpl-3.0 | 6,675,887,752,398,029,000 | 24.304348 | 97 | 0.537801 | false |
kubernetes-client/python | kubernetes/client/models/v1alpha1_policy_rules_with_subjects.py | 1 | 7071 | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: release-1.18
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import si... | apache-2.0 | 5,400,181,612,892,856,000 | 38.502793 | 284 | 0.653797 | false |
OpenNFT/OpenNFT | opennft/mapimagewidget.py | 1 | 7463 | # -*- coding: utf-8 -*-
import collections
import typing as t
from loguru import logger
import numpy as np
from matplotlib import cm
from matplotlib import colors
import pyqtgraph as pg
from PyQt5 import QtWidgets
from PyQt5 import QtCore
from opennft import pgext
from copy import copy
ColormapType = t.Union[st... | gpl-3.0 | 756,554,017,271,098,900 | 31.732456 | 93 | 0.656572 | false |
fighter2011/ssbc | workers/simdht_worker.py | 25 | 15321 | #!/usr/bin/env python
# encoding: utf-8
"""
磁力搜索meta信息入库程序
xiaoxia@xiaoxia.org
2015.6 Forked CreateChen's Project: https://github.com/CreateChen/simDownloader
"""
import hashlib
import os
import time
import datetime
import traceback
import sys
import json
import socket
import threading
from hashlib import sha1
from ra... | gpl-2.0 | -7,332,594,788,571,477,000 | 30.960251 | 165 | 0.514303 | false |
jcpowermac/ansible | lib/ansible/modules/network/avi/avi_gslb.py | 15 | 6640 | #!/usr/bin/python
#
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 17.1.1
#
# Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses... | gpl-3.0 | -7,390,903,138,975,387,000 | 36.514124 | 157 | 0.619729 | false |
emonty/pyos | samples/cloud_blockstorage/delete_volume.py | 1 | 1371 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c)2012 Rackspace US, 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.ap... | apache-2.0 | 4,018,381,447,292,380,000 | 31.642857 | 78 | 0.691466 | false |
aleontiev/django-cli | djay/test.py | 2 | 1776 | import shutil
import os
from djay.commands.dj import execute
from djay.application import set_current_application, Application
from tempfile import mkdtemp
import multiprocessing
class TemporaryApplication(object):
DEFAULT_INIT_PARAMS = {
"app": "dummy",
"description": "dummy",
"author": ... | mit | -6,532,576,825,306,070,000 | 29.101695 | 75 | 0.569257 | false |
stargaser/astropy | astropy/table/pprint.py | 4 | 27490 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
import os
import sys
import re
import numpy as np
from astropy import log
from astropy.utils.console import Getch, color_print, terminal_size, conf
from astropy.utils.data_info import dtype_info_name
__all__ = []
def default_format_func(format_, val)... | bsd-3-clause | 8,854,321,154,389,072,000 | 37.233658 | 92 | 0.527246 | false |
axbaretto/beam | sdks/python/apache_beam/examples/cookbook/bigquery_side_input.py | 5 | 4340 | #
# 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 | -6,556,777,141,261,816,000 | 35.166667 | 80 | 0.711751 | false |
MyAOSP/external_chromium_org | build/android/gyp/create_device_library_links.py | 29 | 3556 | #!/usr/bin/env python
#
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Creates symlinks to native libraries for an APK.
The native libraries should have previously been pushed to the device (in
option... | bsd-3-clause | -4,259,378,947,479,805,000 | 30.192982 | 79 | 0.689258 | false |
adrianholovaty/django | django/template/defaulttags.py | 3 | 46745 | """Default tags used by the template system, available to all templates."""
import sys
import re
from datetime import datetime
from itertools import groupby, cycle as itertools_cycle
from django.conf import settings
from django.template.base import (Node, NodeList, Template, Library,
TemplateSyntaxError, Variable... | bsd-3-clause | -4,195,996,000,484,717,600 | 34.146617 | 171 | 0.575313 | false |
NoMoKeTo/choo | src/tests/models/test_base.py | 2 | 3111 | import pytest
from choo.apis import vrr
from choo.models import City, Stop
from choo.models.sourced import SourcedModelMixin
class TestModel:
def test_init(self):
assert Stop(name='Essen Hbf').name == 'Essen Hbf'
assert Stop(city__name='Essen').city__name == 'Essen'
with pytest.raises(Att... | apache-2.0 | -521,428,045,872,590,200 | 27.027027 | 85 | 0.534233 | false |
GoogleCloudPlatform/training-data-analyst | courses/machine_learning/deepdive/08_image/labs/flowersmodel/model.py | 2 | 10620 | #!/usr/bin/env python
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | apache-2.0 | 133,952,494,193,072,830 | 42.88843 | 163 | 0.629002 | false |
srcLurker/home-assistant | homeassistant/bootstrap.py | 3 | 21328 | """Provides methods to bootstrap a home assistant instance."""
import asyncio
import logging
import logging.handlers
import os
import sys
from collections import defaultdict
from types import ModuleType
from typing import Any, Optional, Dict
import voluptuous as vol
from voluptuous.humanize import humanize_error
imp... | mit | 9,182,423,502,761,517,000 | 34.194719 | 79 | 0.615294 | false |
tmxdyf/CouchPotatoServer | couchpotato/core/providers/torrent/sceneaccess/main.py | 5 | 3494 | from bs4 import BeautifulSoup
from couchpotato.core.helpers.encoding import tryUrlencode, toUnicode
from couchpotato.core.helpers.variable import tryInt
from couchpotato.core.logger import CPLog
from couchpotato.core.providers.torrent.base import TorrentProvider
import traceback
log = CPLog(__name__)
class SceneAcce... | gpl-3.0 | -8,374,766,890,605,706,000 | 34.292929 | 117 | 0.523183 | false |
umlaeute/pyjack | setup.py | 1 | 1659 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Distutils installer for PyJack
# Test for Jack2
#---------------------------------------------------#
import os
if os.path.exists("/usr/local/include/jack/jack.h"):
path = "/usr/local/include/jack/jack.h"
elif os.path.exists("/usr/include/jack/jack.h"):
path = "/usr/incl... | lgpl-2.1 | -3,156,911,221,869,027,000 | 32.16 | 95 | 0.585645 | false |
adaptivethreat/EmPyre | lib/modules/collection/linux/sniffer.py | 2 | 10971 | 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': 'PcapSniffer',
# list of one or more authors for the module
... | bsd-3-clause | 3,695,886,570,560,215,000 | 39.040146 | 127 | 0.567587 | false |
F5Networks/f5-ansible | ansible_collections/f5networks/f5_modules/tests/unit/modules/network/f5/test_bigiq_regkey_license_assignment.py | 2 | 4065 | # -*- 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 | -4,771,582,864,722,391,000 | 29.795455 | 130 | 0.6123 | 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.