repo_name stringlengths 5 92 | path stringlengths 4 232 | copies stringclasses 19
values | size stringlengths 4 7 | content stringlengths 721 1.04M | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 15 997 | alpha_frac float64 0.25 0.97 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
cloudera/hue | desktop/libs/librdbms/java/query.py | 2 | 1577 | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | apache-2.0 | -8,428,450,868,111,065,000 | 29.326923 | 83 | 0.717185 | false |
adongy/spreads | spreads/util.py | 1 | 14770 | # -*- coding: utf-8 -*-
# Copyright (C) 2014 Johannes Baiter <johannes.baiter@gmail.com>
#
# 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 ... | agpl-3.0 | 8,165,834,610,917,695,000 | 31.178649 | 79 | 0.599323 | false |
rjspiers/qgis-batch-save-layers | __init__.py | 1 | 1551 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
BatchSaveLayers
A QGIS plugin
Save open vector layers to one directory as shapefile
-------------------
begin : 2016-02-19
... | gpl-2.0 | 343,507,283,972,816,960 | 43.314286 | 77 | 0.407479 | false |
lumidify/fahrenheit451 | Engine.py | 1 | 9955 | import os
import sys
import pygame
pygame.init()
import importlib
from loader import *
from QuadTree import QuadTree
from Montag import *
from Obstacles import *
from Floor import Floor
from pygame.locals import *
from CONSTANTS import *
"""
This code is extremely bad, use at your own risk.
"""
TILEWIDTH = 128
TILEHEIG... | gpl-2.0 | 768,760,483,214,125,200 | 48.527363 | 240 | 0.599799 | false |
uw-it-cte/uw-restclients | restclients/views.py | 1 | 6990 | try:
from importlib import import_module
except:
# python 2.6
from django.utils.importlib import import_module
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.views.decorators.csrf import csrf_protect
from django.http import HttpResponseNotFound, HttpRe... | apache-2.0 | 8,306,111,691,793,203,000 | 32.605769 | 79 | 0.580973 | false |
dersphere/plugin.programm.xbmcmail | addon.py | 1 | 9677 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2013 Tristan Fischer (sphere@dersphere.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 ... | gpl-2.0 | -2,259,042,183,702,010,400 | 27.800595 | 73 | 0.512969 | false |
fjfnaranjo/fjfnaranjo-bot | tests/components/sorry/test_info.py | 1 | 2251 | from telegram.messageentity import MessageEntity
from fjfnaranjobot.components.sorry.info import (
logger,
sorry_group_handler,
sorry_handler,
)
from tests.base import CallWithMarkup
from ...base import BOT_USERNAME, BotHandlerTestCase
class SorryHandlersTests(BotHandlerTestCase):
def _fake_user_men... | gpl-3.0 | -8,333,526,967,482,194,000 | 34.730159 | 88 | 0.566859 | false |
Scille/parsec-cloud | tests/monitor.py | 1 | 13104 | # Parsec Cloud (https://parsec.cloud) Copyright (c) AGPLv3 2016-2021 Scille SAS
# Monitor POC, shamelessly taken from curio
import os
import signal
import socket
import traceback
import threading
import telnetlib
import argparse
import logging
import trio
from trio.abc import Instrument
from trio.lowlevel import cur... | agpl-3.0 | -6,085,939,352,050,087,000 | 32.403061 | 99 | 0.530548 | false |
michael-ball/mach2 | tests/models/album_test.py | 1 | 1742 | from models.album import Album
def test_instance(database):
album = Album(database, 1)
assert album.id == 1
assert album.name == "Album 1"
assert album.date == "1999-02-04"
def test_artists(database):
album = Album(database, 1)
assert len(album.artists) == 1
assert album.artists[0].name ... | mit | -5,306,340,825,651,702,000 | 26.650794 | 75 | 0.619977 | false |
Ecotrust/hnfp | hnfp/migrations/0011_auto_20171025_0852.py | 1 | 3297 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-10-25 15:52
from __future__ import unicode_literals
import django.contrib.gis.db.models.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hnfp', '0010_auto_20171024_1648'),
]
ope... | isc | -4,770,443,177,926,591,000 | 52.177419 | 158 | 0.584471 | false |
alisa-ipn/writing-composition-crawler | src/crawl.py | 1 | 2670 | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 19 21:49:22 2015
@author: Alisa
"""
import os
import utils, urlutils
URL1 = "http://abc-english-grammar.com/1/sochinenia_po_angliiskomu_yaziku.htm"
str_to_look = "<a href=\"http://abc-english-grammar.com/1/sochinenia_po_angliiskomu_yaziku"
URL2 = "http://en365.ru/topic... | mit | 1,130,901,153,823,493,900 | 24.673077 | 91 | 0.582397 | false |
alexschiller/osf.io | api/logs/serializers.py | 1 | 7104 | from rest_framework import serializers as ser
from api.base.serializers import (
JSONAPISerializer,
RelationshipField,
RestrictedDictSerializer,
LinksField,
is_anonymized,
DateByVersion,
)
from website.project.model import Node
from website.util import permissions as osf_permissions
from framew... | apache-2.0 | -8,319,683,326,383,449,000 | 36.193717 | 132 | 0.652168 | false |
brainstorm/bcbio-nextgen | bcbio/variation/vardict.py | 1 | 15794 | """Sensitive variant calling using VarDict.
Defaults to using the faster, equally sensitive Java port:
https://github.com/AstraZeneca-NGS/VarDictJava
if 'vardict' or 'vardict-java' is specified in the configuration. To use the
VarDict perl version:
https://github.com/AstraZeneca-NGS/VarDict
specify 'vardict-perl'.... | mit | -344,859,998,789,796,800 | 48.510972 | 126 | 0.542801 | false |
classcat/cctf | cctf/initializations.py | 1 | 10251 | from __future__ import division, print_function, absolute_import
import math
import tensorflow as tf
try:
from tensorflow.contrib.layers.python.layers.initializers import \
xavier_initializer
except Exception:
xavier_initializer = None
try:
from tensorflow.contrib.layers.python.layers.initializers ... | agpl-3.0 | -1,623,474,419,808,075,000 | 37.537594 | 82 | 0.651546 | false |
AlexOugh/horizon | openstack_dashboard/dashboards/nikolaboard/usagepanel/tabs.py | 1 | 1155 | from django.utils.translation import ugettext_lazy as _
from horizon import exceptions
from horizon import tabs
from openstack_dashboard import api
from openstack_dashboard.dashboards.nikolaboard.usagepanel import tables
class UsageTab(tabs.TableTab):
name = _("List")
slug = "usage_tab"
table_classes = ... | apache-2.0 | 1,395,974,317,262,188,300 | 28.615385 | 81 | 0.62684 | false |
dunkhong/grr | grr/server/grr_response_server/file_store_test.py | 1 | 25513 | #!/usr/bin/env python
"""Tests for REL_DB-based file store."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
import itertools
from absl import app
from future.builtins import range
from future.builtins import str
import mock
from grr_response_core.lib... | apache-2.0 | 759,679,221,018,685,600 | 38.801872 | 80 | 0.677106 | false |
JoelBender/bacpypes | sandbox/local_schedule_object_t2.py | 1 | 26204 | #!/usr/bin/env python
"""
Local Schedule Object Test
"""
import sys
import calendar
from time import mktime as _mktime, localtime as _localtime
from bacpypes.debugging import bacpypes_debugging, ModuleLogger, xtob
from bacpypes.consolelogging import ConfigArgumentParser
from bacpypes.consolecmd import ConsoleCmd
fr... | mit | 1,479,491,013,076,970,800 | 34.994505 | 130 | 0.580522 | false |
twitter/pants | contrib/go/tests/python/pants_test/contrib/go/tasks/test_go_fetch.py | 1 | 8293 | # coding=utf-8
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import, division, print_function, unicode_literals
import os
import shutil
from collections import defaultdict
from pants.build_graph.addre... | apache-2.0 | 3,214,416,682,235,323,000 | 36.355856 | 105 | 0.636561 | false |
eaudeweb/lcc-toolkit | lcc/views/legislation.py | 1 | 24257 | import json
import operator
from functools import reduce
from django import views
from django.conf import settings
from django.contrib.auth import mixins
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.db.models import Q as DjQ, IntegerField
from django.db.models.functions import ... | gpl-3.0 | 4,738,806,645,539,076,000 | 38.3047 | 108 | 0.474207 | false |
leakim/svtplay-dl | lib/svtplay_dl/service/tv4play.py | 1 | 7249 | # ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
from __future__ import absolute_import
import re
import os
import xml.etree.ElementTree as ET
import json
import copy
from svtplay_dl.utils.urllib import urlparse, parse_qs, quote_plus
from svtplay_dl.service import Service, OpenG... | mit | 4,481,248,987,106,100,000 | 39.730337 | 165 | 0.531522 | false |
Lorquas/subscription-manager | test/test_cache.py | 1 | 45245 | # -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import
#
# Copyright (c) 2011 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public
# License as published by the Free Software Foundation; either version
# 2 of the License (GPLv2) or (at your option) any late... | gpl-2.0 | -9,068,067,173,417,491,000 | 39.500448 | 124 | 0.626627 | false |
Stratoscale/upseto | upseto/gitwrapper.py | 1 | 3364 | import urlparse
import os
import re
from upseto import run
from upseto import gitconfigparser
def originURLBasename(originURL):
originURLBasename = urlparse.urlparse(originURL).path.split("/")[-1]
if originURLBasename.endswith(".git"):
originURLBasename = originURLBasename[: - len(".git")] # pragma: ... | apache-2.0 | -6,241,408,017,556,831,000 | 35.172043 | 93 | 0.603448 | false |
JohnLZeller/dd-agent | tests/test_win32.py | 1 | 1616 | # stdlib
import unittest
import logging
import gc
import sys
# 3p
#from nose.plugins.attrib import attr
# project
import checks.system.win32 as w32
logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__file__)
AGENT_CONFIG = {} # None of the windows checks use this.
class TestWin32(unittest.TestCase)... | bsd-3-clause | -6,161,906,718,949,827,000 | 25.491803 | 79 | 0.627475 | false |
gilesp/quickdrawmcgraw | pythagoras_test.py | 1 | 1110 | import unittest
from math import degrees
from pythagoras import cosineRule, angleA
class TestPythagoras(unittest.TestCase):
def setUp(self):
pass
def test_cosineRule_2_3_4(self):
angle = cosineRule(2, 3, 4)
angle_as_string = "{0:.2f}".format(angle)
self.assertEqual(angle_as_st... | mit | 8,295,286,597,199,625,000 | 27.461538 | 63 | 0.582883 | false |
mildass/tlsfuzzer | scripts/test-dhe-rsa-key-exchange-with-bad-messages.py | 1 | 13139 | # Author: Hubert Kario, (c) 2015
# Released under Gnu GPL v2.0, see LICENSE file for details
"""Test for DHE_RSA key exchange error handling"""
from __future__ import print_function
import traceback
import sys
import getopt
import re
from itertools import chain
from tlsfuzzer.runner import Runner
from tlsfuzzer.mess... | gpl-2.0 | 9,218,553,081,500,835,000 | 41.937908 | 83 | 0.593729 | false |
hgwood/codingame | shadows_of_the_knight/part_two.py | 1 | 1627 | import sys
import random
import math
w, h = map(int, input().split())
jumps = int(input())
x, y = map(int, input().split())
px, py = x, y
search_zone = [(x, y) for x in range(w) for y in range(h)]
def distance(ax, ay, bx, by):
return math.sqrt((bx - ax)**2 + (by - ay)**2)
def around(zone, x, y):
return [(x, ... | gpl-3.0 | 9,150,318,430,111,574,000 | 32.895833 | 122 | 0.540873 | false |
rosenbrockc/aflow | tests/test_entries.py | 1 | 4263 | """Tests that :class:`aflow.entries.Entry` objects have the correct
attributes and that lazy fetching works correctly.
"""
import pytest
def test_eq_hash(paper):
"""Tests equality and hashing of database entries.
"""
paper.reset_iter()
a = paper[0]
assert a == a
assert hash(a) == hash(a.auid)
... | mit | 6,268,098,524,630,799,000 | 28.811189 | 80 | 0.60943 | false |
ntoll/yotta | yotta/init.py | 1 | 4970 | # Copyright 2014 ARM Limited
#
# Licensed under the Apache License, Version 2.0
# See LICENSE file for details.
# standard library modules, , ,
from __future__ import print_function
import os
import logging
import re
# Component, , represents an installed component, internal
from .lib import component
# version, , re... | apache-2.0 | -5,474,865,060,728,439,000 | 32.809524 | 114 | 0.617505 | false |
dkopecek/amplify | third-party/quex-0.65.2/quex/engine/analyzer/optimizer.py | 1 | 1847 | """TODO:
NOTE: Acceptance Pruning of 'Pre-Contexts', 'Non-Ambigous Post Context'
and 'Backward Input Position Detectors' happens with the original
state machines: Module 'state_machine/acceptance_pruning.py'
(*) Post-pone acceptance storage and position storage as much as
possible... | gpl-2.0 | -4,873,876,987,642,983,000 | 40.044444 | 86 | 0.696806 | false |
lmazuel/azure-sdk-for-python | azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_circuit_sku.py | 1 | 1581 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | -8,774,509,893,830,967,000 | 38.525 | 79 | 0.602783 | false |
hjoliver/cylc | tests/unit/test_indep_task_queues.py | 1 | 3273 | # THIS FILE IS PART OF THE CYLC WORKFLOW ENGINE.
# Copyright (C) NIWA & British Crown (Met Office) & Contributors.
#
# 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 Licen... | gpl-3.0 | -3,384,419,531,014,326,300 | 29.588785 | 79 | 0.605866 | false |
ros2/launch | launch/launch/substitutions/command.py | 1 | 5080 | # Copyright 2020 Open Source Robotics Foundation, 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 | -927,587,593,320,410,900 | 38.379845 | 95 | 0.638976 | false |
cherrygirl/micronaet7 | pickin_import/importation.py | 1 | 6137 | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP module
# Copyright (C) 2010 Micronaet srl (<http://www.micronaet.it>)
#
# Italian OpenERP Community (<http://www.openerp-italia.com>)
#
#####################################################... | agpl-3.0 | 859,732,967,655,162,200 | 42.211268 | 172 | 0.5559 | false |
lukas-ke/faint-graphics-editor | build-sys/code_utils/find_defs.py | 1 | 3953 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2014 Lukas Kemmer
#
# 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
#
# Unl... | apache-2.0 | 6,920,618,032,387,999,000 | 29.373016 | 78 | 0.521882 | false |
davandev/davanserver | davan/http/ServiceInvoker.py | 1 | 4860 | '''
@author: davandev
'''
import os
import logging
import imp
import time
import re
import davan.config.config_creator as app_config
import davan.util.application_logger as app_logger
import davan.util.constants as constants
class ServiceInvoker(object):
'''
Service Handler module, scanning fo... | mit | 1,827,155,184,925,920,300 | 36.007813 | 123 | 0.563374 | false |
vitorfs/bootcamp | bootcamp/articles/tests/test_views.py | 1 | 4751 | import tempfile
from PIL import Image
from django.test import Client, override_settings
from django.urls import reverse
from test_plus.test import TestCase
from bootcamp.articles.models import Article
def get_temp_img():
size = (200, 200)
color = (255, 0, 0, 0)
with tempfile.NamedTemporaryFile(suffix=... | mit | 4,451,839,674,186,486,000 | 34.721805 | 86 | 0.55904 | false |
xletmjm416/space-trader-galaxy | main.py | 1 | 2578 | # -*- coding: utf-8 -*-
"""
Main Space Trader Galaxy class.
Created on Thu Jul 6 01:59:38 2017
@author: mjm
"""
import logging
import logging.config
import character as char
import good as good
def trade(seller, buyer, commodity, pay):
"""
Seller sells commodity to the buyer who pays with pay.
Argument... | mit | 8,642,490,935,781,050,000 | 22.66055 | 76 | 0.588441 | false |
craffel/mir_eval | mir_eval/sonify.py | 1 | 10893 | '''
Methods which sonify annotations for "evaluation by ear".
All functions return a raw signal at the specified sampling rate.
'''
import numpy as np
from numpy.lib.stride_tricks import as_strided
from scipy.interpolate import interp1d
from . import util
from . import chord
def clicks(times, fs, click=None, length... | mit | 147,390,526,746,069,660 | 32.109422 | 78 | 0.615074 | false |
google/tink | python/tink/aead/__init__.py | 1 | 1093 | # Copyright 2019 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | apache-2.0 | 318,504,748,433,194,100 | 35.433333 | 74 | 0.772187 | false |
quattor/aquilon | lib/aquilon/worker/commands/add_network_device.py | 1 | 6514 | # -*- cpy-indent-level: 4; indent-tabs-mode: nil -*-
# ex: set expandtab softtabstop=4 shiftwidth=4:
#
# Copyright (C) 2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018 Contributor
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License... | apache-2.0 | -409,722,923,466,763,400 | 45.863309 | 102 | 0.602241 | false |
Eksmo/calibre | src/calibre/ebooks/mobi/writer2/resources.py | 1 | 5456 | #!/usr/bin/env python
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
from __future__ import (unicode_literals, division, absolute_import,
print_function)
__license__ = 'GPL v3'
__copyright__ = '2012, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import imghdr
... | gpl-3.0 | -8,675,809,270,525,001,000 | 37.971429 | 156 | 0.552786 | false |
beniwohli/apm-agent-python | elasticapm/contrib/aiohttp/__init__.py | 1 | 2338 | # BSD 3-Clause License
#
# Copyright (c) 2019, Elasticsearch BV
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, t... | bsd-3-clause | -6,316,243,842,223,861,000 | 43.113208 | 81 | 0.733105 | false |
openstack/octavia | octavia/db/migration/alembic_migrations/versions/0fd2c131923f_add_timeout_fields_to_listener.py | 1 | 1794 | # Copyright 2018 GoDaddy
#
# 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 | -9,021,182,196,373,340,000 | 34.88 | 78 | 0.622074 | false |
Endika/OpenUpgrade | openerp/addons/openupgrade_records/model/openupgrade_record.py | 1 | 3901 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# This module Copyright (C) 2012-2014 OpenUpgrade community
# https://launchpad.net/~openupgrade-committers
#
# Contributors:
# Therp BV <http://therp.nl>
#
... | agpl-3.0 | 9,089,793,331,484,869,000 | 30.97541 | 78 | 0.530377 | false |
blythemusic/ClyphX | ClyphXControlSurfaceActions.py | 1 | 18706 | """
# Copyright (C) 2013-2016 Stray <stray411@hotmail.com>
#
# This 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 the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
... | lgpl-2.1 | 3,540,569,321,692,649,500 | 37.809129 | 147 | 0.655512 | false |
OCA/event | partner_event/models/event_registration.py | 1 | 2816 | # Copyright 2014 Tecnativa S.L. - Pedro M. Baeza
# Copyright 2015 Tecnativa S.L. - Javier Iniesta
# Copyright 2016 Tecnativa S.L. - Antonio Espinosa
# Copyright 2016 Tecnativa S.L. - Vicent Cubells
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class EventRe... | agpl-3.0 | -2,625,753,482,065,121,300 | 38.111111 | 77 | 0.572798 | false |
Jonathan-Livingston-Seagull/cerebro-dl | cerebro/models/hidden_layer_model.py | 1 | 2771 | import theano
import theano.tensor as T
import numpy
class HiddenLayerModel(object):
def __init__(self, rng, input, n_in, n_out, W=None, b=None,
activation=T.tanh):
"""
Typical hidden layer of a MLP: units are fully-connected and have
sigmoidal activation function. Weight ... | bsd-3-clause | 6,810,689,489,409,649,000 | 34.525641 | 79 | 0.562252 | false |
tqchen/tvm | tutorials/frontend/from_onnx.py | 1 | 3929 | # 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 | -3,683,840,951,492,471,000 | 36.419048 | 89 | 0.614915 | false |
kgeorge/kgeorge-cv | samples/skindetect/authoring/python/checkImages.py | 1 | 1352 | __author__ = 'kgeorge'
from optparse import OptionParser
from PIL import Image
import os
def main():
parser = OptionParser()
parser.add_option("-f", "--file", dest="filename",
help="imagefilename", metavar="FILE")
(options, args) = parser.parse_args()
print options.filename
src... | bsd-3-clause | 8,474,431,141,774,026,000 | 29.727273 | 100 | 0.617604 | false |
rollbar/pyrollbar | rollbar/examples/fastapi/app_logger.py | 1 | 1747 | #!/usr/bin/env python
# This example uses Uvicorn package that must be installed. However, it can be
# replaced with any other ASGI-compliant server.
#
# NOTE: Python 3.6 requires aiocontextvars package to be installed.
# Optional asynchronous reporting requires HTTPX package to be installed.
#
# Run: python app... | mit | 5,014,467,864,173,894,000 | 28.116667 | 79 | 0.746422 | false |
Nitrokey/libnitrokey | python3_bindings_example.py | 1 | 5532 | #!/usr/bin/env python3
"""
Copyright (c) 2015-2018 Nitrokey UG
This file is part of libnitrokey.
libnitrokey is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later v... | lgpl-3.0 | 5,766,300,729,958,608,000 | 34.235669 | 143 | 0.667932 | false |
lorensen/VTKExamples | src/Python/Filtering/ConnectivityFilter.py | 1 | 1442 | #!/usr/bin/env python
import vtk
def main():
sphereSource1 = vtk.vtkSphereSource()
sphereSource1.Update()
delaunay1 = vtk.vtkDelaunay3D()
delaunay1.SetInputConnection(sphereSource1.GetOutputPort())
delaunay1.Update()
sphereSource2 = vtk.vtkSphereSource()
sphereSource2.SetCenter(5... | apache-2.0 | -5,614,666,063,002,479,000 | 27.27451 | 71 | 0.715673 | false |
frontendphil/analyzr | analyzr/settings.py | 1 | 6077 | from os.path import abspath, dirname
# Django settings for analyzr project.
DEBUG = False
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
PROJECT_PATH = abspath('%s/..' % dirname(abspath(__file__)))
CHECKOUT_PATH = '%s/repos' % PROJECT_PATH
RESULT_PATH = '%s/resu... | mit | -6,614,729,428,346,790,000 | 30.487047 | 127 | 0.682245 | false |
bhautikj/vrProjector | vrProjectorWrapper.py | 1 | 3828 | # Copyright 2016 Bhautik J Joshi
# 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, so... | apache-2.0 | 3,129,478,283,443,361,000 | 47.468354 | 183 | 0.738506 | false |
Urinx/SomeCodes | Bioinformatics/other_code/Traindata.py | 1 | 2902 | #!/usr/bin/env python
# coding: utf-8
from time import time
import random
class Traindata():
"""docstring for Traindata"""
posi = []
nega = []
cv = []
k = 3
def __init__(self):
pass
def load_intm(self, filename, isPosi):
startTime = time()
dataset = self.posi if isPosi else self.nega
state = 'Positiv... | gpl-2.0 | -9,218,771,574,054,769,000 | 26.121495 | 95 | 0.601309 | false |
galad-loth/LearnDescriptor | patchmatch/train_matchnet.py | 1 | 1806 | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 25 11:28:35 2018
@author: galad-loth
"""
import mxnet as mx
import logging
import sys
from metric_net import match_net
from data import get_UBC_patch_dataiter
logging.basicConfig(level=logging.INFO)
root_logger = logging.getLogger()
stdout_handler = loggi... | apache-2.0 | -2,724,554,486,041,508,400 | 32.075472 | 92 | 0.566445 | false |
nmayorov/scipy | scipy/integrate/_quad_vec.py | 3 | 20742 | import sys
import copy
import heapq
import collections
import functools
import numpy as np
from scipy._lib._util import MapWrapper
class LRUDict(collections.OrderedDict):
def __init__(self, max_size):
self.__max_size = max_size
def __setitem__(self, key, value):
existing_key = (key in self)... | bsd-3-clause | -1,173,841,174,148,520,200 | 31.460094 | 102 | 0.584177 | false |
marcelocure/octopusapi | octopusapi/middleware.py | 1 | 1905 | import json
import logging
import falcon
class StorageError(Exception):
@staticmethod
def handle(ex, req, resp, params):
description = ('Sorry, could not store the message, it worked on my machine')
raise falcon.HTTPError(falcon.HTTP_725, 'Database Error', description)
class AuthMiddleware(o... | mit | -8,678,748,957,230,808,000 | 33.017857 | 155 | 0.651969 | false |
scheibler/serieSandSubs | src/main.py | 1 | 19793 | #!/usr/bin/env python
import subprocess
import os
import sys
import time
import thread
import argparse # parse the command line parameters
import string
import re # regex
import select
import logging
# non standard librarys
from subtitle_manager import SubtitleManager
from series_manager import SeriesManager
fr... | gpl-3.0 | 1,359,142,456,822,473,200 | 46.465228 | 159 | 0.609711 | false |
myarjunar/QGIS | python/plugins/processing/gui/GetScriptsAndModels.py | 1 | 15404 | # -*- coding: utf-8 -*-
"""
***************************************************************************
GetScriptsAndModels.py
---------------------
Date : June 2014
Copyright : (C) 2014 by Victor Olaya
Email : volayaf at gmail dot com
*********************... | gpl-2.0 | 6,125,041,364,056,533,000 | 40.520216 | 150 | 0.592249 | false |
samuelclay/NewsBlur | vendor/cjson/jsontest.py | 1 | 14597 | #!/usr/bin/python
# -*- coding: latin2 -*-
## this test suite is an almost verbatim copy of the jsontest.py test suite
## found in json-py available from http://sourceforge.net/projects/json-py/
## Copyright (C) 2005 Patrick D. Logan
## 2007-03-15 - Viktor Ferenczi (python@cx.hu)
## Added unit tests for encoder/deco... | mit | 3,022,765,328,907,766,000 | 33.921053 | 150 | 0.601356 | false |
sio2project/oioioi | oioioi/exportszu/views.py | 1 | 1862 | import os
import tempfile
from django.http import FileResponse
from django.template.response import TemplateResponse
from oioioi.base.permissions import enforce_condition
from oioioi.contests.utils import contest_exists, is_contest_admin
from oioioi.exportszu.forms import ExportSubmissionsForm
from oioioi.exportszu.u... | gpl-3.0 | -8,733,963,170,835,522,000 | 40.377778 | 77 | 0.659506 | false |
deepmind/slim-dataset | reader.py | 1 | 10070 | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | 6,471,769,179,025,854,000 | 36.022059 | 80 | 0.697319 | false |
mhils/mitmproxy | mitmproxy/proxy2/layers/http/_http1.py | 1 | 17108 | import abc
from typing import Union, Optional, Callable, Type
import h11
from h11._readers import ChunkedReader, ContentLengthReader, Http10Reader
from h11._receivebuffer import ReceiveBuffer
from mitmproxy import exceptions, http
from mitmproxy.net import http as net_http
from mitmproxy.net.http import http1, status... | mit | 300,163,260,257,517,600 | 45.113208 | 119 | 0.613573 | false |
delph-in/pydelphin | delphin/eds/_operations.py | 1 | 9714 |
"""
Operations on EDS
"""
import warnings
from itertools import count
from delphin import variable
from delphin import scope
from delphin import eds
from delphin import util
def from_mrs(m, predicate_modifiers=True, unique_ids=True,
representative_priority=None):
"""
Create an EDS by convertin... | mit | 6,722,001,387,782,816,000 | 34.323636 | 74 | 0.574532 | false |
jrecuero/jc2li | jc2li/base.py | 1 | 26215 | __docformat__ = 'restructuredtext en'
# -----------------------------------------------------------------------------
# _ _
# (_)_ __ ___ _ __ ___ _ __| |_ ___
# | | '_ ` _ \| '_ \ / _ \| '__| __/ __|
# | | | | | | | |_) | (_) | | | |_\__ \
# |_|_| |_| |_| .__/ \___/|_| \__|___/
# ... | mit | 9,156,060,067,053,533,000 | 36.131728 | 117 | 0.529239 | false |
cdeboever3/WASP | mapping/test_find_intersecting_snps.py | 1 | 14776 | import glob
import gzip
import os
import subprocess
from find_intersecting_snps import *
def read_bam(bam):
"""
Read a bam file into a list where each element of the list is a line from
the bam file (with the newline stripped). The header is discarded.
"""
res = subprocess.check_output('samtools v... | apache-2.0 | 3,816,620,245,912,030,000 | 42.587021 | 80 | 0.597455 | false |
ProjectQ-Framework/ProjectQ | projectq/setups/decompositions/cnot2cz.py | 1 | 1282 | # -*- coding: utf-8 -*-
# Copyright 2018 ProjectQ-Framework (www.projectq.ch)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | apache-2.0 | 4,183,703,901,696,003,600 | 31.871795 | 100 | 0.711388 | false |
htmue/python-wishes | vows/test_feature.py | 1 | 15120 | # -*- coding:utf-8 -*-
# Created by Hans-Thomas on 2011-05-15.
#=============================================================================
# test_feature.py --- Wishes feature vows
#=============================================================================
from __future__ import unicode_literals
import mock
im... | unlicense | 552,839,859,071,830,500 | 33.599542 | 88 | 0.539881 | false |
haphaeu/yoshimi | EulerProject/061.py | 1 | 5270 | '''
THIS CODE IS WRONG - LOOK TO THE .C ONE
Problem 61
16 January 2004
Triangle, square, pentagonal, hexagonal, heptagonal, and octagonal numbers are
all figurate (polygonal) numbers and are generated by the following formulae:
Triangle P3,n = n(n+1)/2 1, 3, 6, 10, 15, ...
Square P4,n = n^2 ... | lgpl-3.0 | -4,745,148,190,800,327,000 | 34.85034 | 93 | 0.624288 | false |
rolandgeider/OpenSlides | openslides/utils/views.py | 1 | 4506 | from io import BytesIO
from django.core.exceptions import PermissionDenied
from django.http import HttpResponse
from django.utils.translation import ugettext_lazy
from django.views import generic as django_views
from django.views.decorators.csrf import ensure_csrf_cookie
from reportlab.lib.units import cm
from reportl... | mit | -4,697,838,992,160,653,000 | 28.644737 | 93 | 0.628051 | false |
Bfstepha/testrepo | html/apacheadmin.com/doc/conf.py | 1 | 9189 | # -*- coding: utf-8 -*-
#
# phpMyAdmin documentation build configuration file, created by
# sphinx-quickstart on Wed Sep 26 14:04:48 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... | gpl-2.0 | -5,887,918,677,440,202,000 | 31.129371 | 82 | 0.705191 | false |
probcomp/bdbcontrib | src/parallel.py | 1 | 8878 | # -*- coding: utf-8 -*-
# Copyright (c) 2010-2016, MIT Probabilistic Computing Project
#
# 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/LICENS... | apache-2.0 | -2,968,221,592,813,170,700 | 34.654618 | 108 | 0.669633 | false |
brianwc/courtlistener | cl/users/management/commands/cl_account_management.py | 1 | 4884 | import datetime
import hashlib
import random
from cl.users.models import UserProfile
from cl.users.utils import emails
from django.contrib.sites.models import Site
from django.core.mail import send_mail
from django.core.management import BaseCommand
from django.utils.timezone import now
class Command(BaseCommand):
... | agpl-3.0 | 8,706,912,930,454,461,000 | 37.456693 | 80 | 0.558149 | false |
jiaphuan/models | research/astronet/light_curve_util/util.py | 1 | 7461 | # Copyright 2018 The TensorFlow Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | apache-2.0 | 6,828,795,574,697,506,000 | 34.193396 | 118 | 0.68275 | false |
jean/sentry | tests/sentry/api/endpoints/test_organization_repositories.py | 1 | 1493 | from __future__ import absolute_import
import six
from django.core.urlresolvers import reverse
from sentry.models import Repository
from sentry.testutils import APITestCase
class OrganizationRepositoriesListTest(APITestCase):
def test_simple(self):
self.login_as(user=self.user)
org = self.crea... | bsd-3-clause | -1,317,995,337,978,983,400 | 30.104167 | 84 | 0.636303 | false |
davidbgk/udata | udata/core/discussions/api.py | 1 | 6414 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from datetime import datetime
from flask_security import current_user
from flask_restplus.inputs import boolean
from udata.auth import admin_permission
from udata.api import api, API, fields
from udata.core.user.api_fields import user_ref_fields
from .... | agpl-3.0 | -1,390,360,502,718,842,000 | 36.508772 | 79 | 0.651232 | false |
prakashpp/trytond-magento | channel.py | 1 | 27247 | # -*- coding: utf-8 -*-
from datetime import datetime
import magento
import logging
import xmlrpclib
import socket
from trytond.pool import PoolMeta, Pool
from trytond.transaction import Transaction
from trytond.pyson import Eval
from trytond.model import ModelView, ModelSQL, fields
from .api import OrderConfig
__met... | bsd-3-clause | 55,168,798,315,536,190 | 34.021851 | 80 | 0.539362 | false |
mwhite/JSONAlchemy | setup.py | 1 | 1208 | from setuptools.command.test import test as TestCommand
import setuptools
import io
import sys
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
#import here, cause outside th... | mit | -6,740,419,446,265,977,000 | 29.2 | 76 | 0.638245 | false |
log2timeline/dftimewolf | tests/lib/collectors/grr_base.py | 1 | 5042 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests the GRR base collector."""
import unittest
import mock
from grr_api_client import errors as grr_errors
from dftimewolf.lib import state
from dftimewolf.lib import errors
from dftimewolf.lib.collectors import grr_base
from dftimewolf import config
ACCESS_FORBI... | apache-2.0 | -2,875,692,896,729,224,700 | 33.534247 | 80 | 0.678104 | false |
tobias-lang/crawl | src/old/collection_parser.py | 1 | 2434 | import traceback
import codecs
import src.parse.article_parser
class CollectionParser():
def __init__(self, article_parser=src.parse.article_parser.ArticleParser()):
self.article_parser = src.parse.article_parser
def get_filelist(self, dir, maxNumber=None):
from os import listdir
f... | gpl-3.0 | 3,377,325,573,410,735,000 | 29.810127 | 80 | 0.569433 | false |
AravindK95/ee106b | project4/src/grasper_plan/src/transformations.py | 2 | 66033 | # -*- coding: utf-8 -*-
# transformations.py
# Copyright (c) 2006-2015, Christoph Gohlke
# Copyright (c) 2006-2015, The Regents of the University of California
# Produced at the Laboratory for Fluorescence Dynamics
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modifica... | mit | -8,569,947,633,209,522,000 | 33.410109 | 79 | 0.579559 | false |
drivnal/drivnal | drivnal/handlers/task.py | 1 | 1800 | from drivnal.constants import *
from drivnal.client import Client
from drivnal.task import Task
from drivnal.event import Event
import drivnal.utils as utils
from drivnal import server
import os
import flask
import time
@server.app.route('/task/<volume_id>', methods=['GET'])
def task_get(volume_id):
client = Clien... | agpl-3.0 | 4,385,070,478,506,404,400 | 24.714286 | 69 | 0.583889 | false |
coll-gate/collgate | server/settings/staging.py | 1 | 4562 | # -*- coding: utf-8; -*-
#
# @file staging.py
# @brief Staging specific settings.
# @author Frédéric SCHERMA (INRA UMR1095)
# @date 2016-09-01
# @copyright Copyright (c) 2016 INRA/CIRAD
# @license MIT (see LICENSE file)
# @details
import os
from .base import *
DEBUG = False
ADMINS = (
('admin_fscherma', 'frede... | mit | 8,841,889,773,940,665,000 | 24.47486 | 83 | 0.555702 | false |
katacarbix/pyhp | resources/filebrowser.py | 1 | 1330 | <?py
import os
from datetime import datetime
path = postvars['path']
dir = postvars['dir']
def fsize(num, suffix='B'):
for unit in ['','K','M','G','T','P','E','Z']:
if abs(num) < 1024.0:
return "%3.0f %s%s" % (num, unit, suffix)
num /= 1024.0
return "%.1f%s%s" % (num, 'Y', suffix)
?... | gpl-2.0 | 1,932,784,922,014,772,200 | 22.350877 | 98 | 0.558647 | false |
MediaKraken/MediaKraken_Deployment | docker/alpine/ComposeMediaKrakenLDAP/root/app/nginx-ldap-auth-daemon.py | 1 | 12042 | #!/bin/sh
''''[ -z $LOG ] && export LOG=/dev/stdout # '''
''''which python2 >/dev/null && exec python2 -u "$0" "$@" >> $LOG 2>&1 # '''
''''which python >/dev/null && exec python -u "$0" "$@" >> $LOG 2>&1 # '''
# Copyright (C) 2014-2015 Nginx, Inc.
# Copyright (C) 2018 LinuxServer.io
import sys, os, signal, base64, ... | gpl-3.0 | -7,031,179,566,730,927,000 | 35.93865 | 92 | 0.546836 | false |
wisechengyi/pants | contrib/go/src/python/pants/contrib/go/register.py | 1 | 2555 | # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from pants.build_graph.build_file_aliases import BuildFileAliases, TargetMacro
from pants.goal.task_registrar import TaskRegistrar as task
from pants.contrib.go.targets.go_binary import G... | apache-2.0 | 1,653,328,518,813,307,600 | 46.314815 | 85 | 0.735029 | false |
LolexInc/Lolex-Tools | ci/build/update/CIRepoAutoUpdate.py | 1 | 1054 | #! python3
# 0
# 0 000000 0 000000 0 0 000000000 00000000 00000000 0 000000
# 0 00 0 0 0 00 00 0 0 0 0 0 0
# 0 00 0 0 00000 00 000000 00 0 ... | lgpl-3.0 | 3,172,713,795,305,767,000 | 49.190476 | 115 | 0.486717 | false |
SKIRT/PTS | core/prep/dustgrids.py | 1 | 23186 | #!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | agpl-3.0 | 7,276,239,575,000,865,000 | 29.913333 | 224 | 0.528575 | false |
ticosax/django-fsm-log | setup.py | 1 | 1452 | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-fsm-log',
version='1.7.0dev',
description='Logging for django-fsm',
author='Gizmag',
author_email='tech@gizmag.com',
url='https://github.com/gizmag/django-fsm-log',
license='MIT',
packages=find_packag... | mit | 2,992,084,338,474,701,300 | 32 | 72 | 0.554408 | false |
Microsoft/PTVS-Samples | PollsDjango/PollsDjango/urls.py | 1 | 1210 | """
Definition of urls for $safeprojectname$.
"""
from datetime import datetime
from django.conf.urls import url, include
from django.contrib import admin
import django.contrib.auth.views
import app.forms
import app.views
admin.autodiscover()
urlpatterns = [
url(r'^', include('app.urls', namespac... | apache-2.0 | 3,477,789,548,203,435,000 | 26.139535 | 73 | 0.561983 | false |
VirusTotal/msticpy | msticpy/nbtools/security_event.py | 1 | 3507 | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
"""Module ... | mit | -7,031,642,204,383,718,000 | 33.722772 | 85 | 0.551468 | false |
frollo/EquationReader | equationReader.py | 1 | 3520 | #!/usr/bin/python
import sys
import re
import string
variables = {}
outs = {}
monomial = "([a-zA-z]+\d+)"
mn = re.compile(monomial)
def extractValues(strin):
xAddr1 = strin[2].strip()
xAddr2 = strin[4].strip()
if xAddr1 in variables:
x1 = variables[xAddr1]
else:
... | gpl-3.0 | 5,119,402,926,935,882,000 | 31 | 103 | 0.509091 | false |
DavideCanton/Python3 | concur/AABABB.py | 1 | 1342 | import contextlib
import threading
import io
from concur import KamiSemaphore
class A(threading.Thread):
def __init__(self, semA, semB, mutex):
threading.Thread.__init__(self)
self.setName("A")
self.semA = semA
self.semB = semB
self.mutex = mutex
def run(self):
... | gpl-3.0 | 6,614,634,021,793,715,000 | 23.851852 | 77 | 0.544709 | false |
Talvalin/server-client-python | tableauserverclient/models/project_item.py | 1 | 2738 | import xml.etree.ElementTree as ET
from .property_decorators import property_is_enum, property_not_empty
from .. import NAMESPACE
class ProjectItem(object):
class ContentPermissions:
LockedToProject = 'LockedToProject'
ManagedByOwner = 'ManagedByOwner'
def __init__(self, name, description=Non... | mit | 9,043,964,154,326,998,000 | 32.390244 | 95 | 0.642805 | false |
AlanWarren/dotfiles | .weechat/python/lnotify.py | 1 | 3800 | # Project: lnotify
# Description: A libnotify script for weechat. Uses
# subprocess.call to execute notify-send with arguments.
# Author: kevr <kevr@nixcode.us>
# License: GPL3
#
# 0.1.2
# added option to display weechat's icon by tomboy64
#
# 0.1.3
# changed the way that icon to WeeChat notification is specified.... | gpl-2.0 | 296,881,346,025,027,200 | 31.478632 | 81 | 0.644211 | false |
rgommers/numpy | runtests.py | 1 | 25169 | #!/usr/bin/env python3
"""
runtests.py [OPTIONS] [-- ARGS]
Run tests, building the project first.
Examples::
$ python runtests.py
$ python runtests.py -s {SAMPLE_SUBMODULE}
$ python runtests.py -t {SAMPLE_TEST}
$ python runtests.py --ipython
$ python runtests.py --python somescript.py
$ pytho... | bsd-3-clause | -8,328,558,529,596,377,000 | 35.958884 | 97 | 0.54579 | false |
cmuphyscomp/hmv-s16 | Grasshopper/MocapDemo/GestureLogic.py | 1 | 19991 | # GestureLogic - state machine for interface logic for the gesture-based editing.
#
# This encompasses all the logic for the editor which is easier to write in
# Python than Grasshopper objects. Only one GestureLogic instance is expected to
# exist since it holds and tracks user inputs.
#
# Objectives for this ... | bsd-3-clause | -4,635,597,503,302,952,000 | 40.170886 | 144 | 0.573615 | false |
marianotepper/nmu_rfit | rnmu/pme/sampling.py | 1 | 2096 | from __future__ import absolute_import
import numpy as np
import collections
try:
from itertools import imap
except ImportError:
imap = map
try:
from functools import reduce
except ImportError:
pass
class SampleSet(collections.MutableSet):
def __init__(self):
self._dict = {}
self._... | bsd-3-clause | -3,478,362,334,029,783,600 | 25.2 | 76 | 0.537214 | false |
wimberosa/samba | source4/scripting/python/samba/netcmd/common.py | 1 | 2466 | #!/usr/bin/env python
#
# common functions for samba-tool python commands
#
# Copyright Andrew Tridgell 2010
# Copyright Giampaolo Lauria 2011 <lauria2@yahoo.com>
#
# 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 So... | gpl-3.0 | 3,366,601,980,079,461,000 | 32.780822 | 88 | 0.663017 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.