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 |
|---|---|---|---|---|---|---|---|---|---|---|
Rotendahl/DormitoryLife | DormitoryDollars/DormitoryDollars/settings.py | 1 | 3717 | """
Django settings for DormitoryDollars project.
Generated by 'django-admin startproject' using Django 1.10.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
... | gpl-3.0 | -2,950,938,890,999,165,400 | 25.934783 | 91 | 0.699489 | false |
ozgurturkiye/istihzapython | 24.Sayilar/sayilar.py | 1 | 2190 | #Python’da üç tür sayı olduğunu biliyoruz:
#1.Tam Sayılar (integers)
#2.Kayan Noktalı Sayılar (floating point numbers veya kısaca floats)
#3.Karmaşık Sayılar (complex numbers)
"""
Fonksiyon Görevi Örnek
int() Bir veriyi tam sayıya dönüştürür int('2')
fl... | gpl-3.0 | -9,210,819,391,998,454,000 | 44.266667 | 118 | 0.73245 | false |
vasekhodina/blivet_gv_visualization | actionsProcessor.py | 1 | 2727 | import emoji
import pallete
import node
import gvInput
class ActionsProcessor():
""" Class containing neccessary methods for putting actions scheduled by blivet into graph"""
def __init__(self, actions_list, node_list, edge_list, path_to_pallete):
self.actions = actions_list
self.node_list = no... | gpl-2.0 | -2,745,088,409,339,983,400 | 47.696429 | 140 | 0.623396 | false |
mduggan/toumeika | shikin/pdf/tmpdir.py | 1 | 3164 | """
A backport of the Python 3.2 TemporaryDirectory object.
From:
https://stackoverflow.com/questions/19296146/tempfile-temporarydirectory-context-manager-in-python-2-7
"""
from __future__ import print_function
import warnings as _warnings
import os as _os
import sys as _sys
from tempfile import mkdtemp
class Res... | bsd-2-clause | -8,551,097,888,931,761,000 | 30.64 | 102 | 0.578698 | false |
tailhook/aio-hs2 | thrift/TTornado.py | 1 | 5558 | #
# 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 | 938,367,796,010,596,400 | 35.565789 | 80 | 0.638719 | false |
iksaif/lugdulov | python/cyclocity.py | 1 | 11439 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
cyclocity.py
Copyright (C) 2010 Patrick Installé <PatrickInstalle@P-Installe.be>
Copyright (C) 2010-2011 Corentin Chary <corentincj@iksaif.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public ... | gpl-2.0 | -1,974,099,777,166,409,200 | 29.96748 | 104 | 0.465914 | false |
suutari-ai/shoop | shuup_tests/browser/front/test_search_view.py | 3 | 5711 | # -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2017, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
import os
import pytest
from django.core.urlresolvers import rev... | agpl-3.0 | 7,045,612,738,670,257,000 | 38.116438 | 114 | 0.667484 | false |
geminy/aidear | oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/third_party/skia/infra/bots/assets/win_toolchain/create.py | 2 | 4349 | #!/usr/bin/env python
#
# Copyright 2016 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Download an updated VS toolchain"""
import argparse
import common
import json
import os
import shlex
import shutil
import subprocess
import sys
import utils... | gpl-3.0 | 1,715,652,742,450,703,400 | 32.976563 | 80 | 0.650954 | false |
jpirko/lnst | lnst/Common/LoggingHandler.py | 1 | 2216 | """
Custom logging handlers we use.
LogBuffer
Handler used solely for temporarily storing messages so that they can be
retrieved later.
Copyright 2012 Red Hat, Inc.
Licensed under the GNU General Public License, version 2 as
published by the Free Software Foundation; see COPYING for details.
"""
__author__ = """
oli... | gpl-2.0 | 2,165,201,360,103,899,000 | 24.471264 | 78 | 0.607852 | false |
SmartElect/SmartElect | rollgen/tests/test_generate_pdf_ed.py | 1 | 25258 | # 3rd party imports
from bidi.algorithm import get_display as apply_bidi
# Django imports
from django.conf import settings
# Project imports
from .factories import create_voters, generate_arabic_place_name
from .base import TestGeneratePdfBase
from .utils_for_tests import NBSP, extract_pdf_page, extract_textlines, cl... | apache-2.0 | -3,944,757,570,715,039,000 | 40.74876 | 100 | 0.633067 | false |
junhe1026/blog-related-codes | PythonTipChallenge/gcd_lcm_reverse.py | 1 | 1197 | # -*- coding: utf-8 -*-
"""
我们经常遇到的问题是给你两个数,要你求最大公约数和最小公倍数。
今天我们反其道而行之,给你两个数a和b,计算出它们分别是哪两个数的最大公约数和最小公倍数。
输出这两个数,小的在前,大的在后,以空格隔开。若有多组解,输出它们之和最小的那组。
注:所给数据都有解,不用考虑无解的情况。
a = gcd(x,y)
b = lcm(x,y) = x*y/gcd(x,y) = x*y/a
-> x*y = a*b
"""
import math
def find_x_y(a,b):
product = a*b
match_num = []
for i in ... | mit | 7,017,591,944,112,823,000 | 17.829787 | 50 | 0.517514 | false |
radamizell/WallApp | location/views.py | 1 | 2728 | from django.shortcuts import render, get_object_or_404,redirect
from django.views import View, generic
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib import messages
from django.contrib.auth import authenticate, login
from django.contrib.auth.decorators import login_required
from star_ra... | mit | 881,329,425,679,484,500 | 20.650794 | 94 | 0.732038 | false |
jad-b/Crank | crank/core/tests/test_workouts.py | 1 | 1048 | import json
import os
from crank.core.workouts import (Workouts, WorkoutsJSONEncoder,
WorkoutsJSONDecoder)
parent = os.path.dirname(os.path.abspath(__file__))
TEST_WKT_FILE = os.path.join(parent, 'fixtures', 'squat.wkt')
def test_workouts_storage():
"""Parse, save, and load wor... | mit | -806,672,521,524,367,100 | 29.823529 | 63 | 0.681298 | false |
richbrowne/f5-openstack-agent | test/functional/neutronless/esd/test_esd_pools.py | 1 | 9812 | # coding=utf-8
# Copyright 2017 F5 Networks Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | apache-2.0 | 8,795,121,001,418,996,000 | 34.550725 | 82 | 0.685691 | false |
VictorLowther/swift | swift/obj/auditor.py | 1 | 10106 | # Copyright (c) 2010-2012 OpenStack, LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | apache-2.0 | -6,427,883,266,433,169,000 | 42.93913 | 79 | 0.517613 | false |
centaurialpha/pireal | pireal/core/interpreter/exceptions.py | 1 | 2326 | # -*- coding: utf-8 -*-
#
# Copyright 2015-2017 - Gabriel Acosta <acostadariogabriel@gmail.com>
#
# This file is part of Pireal.
#
# Pireal 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 t... | gpl-3.0 | 8,379,900,348,257,351,000 | 33.58209 | 79 | 0.672421 | false |
ghetzel/webfriend | webfriend/rpc/network.py | 1 | 5261 | from __future__ import absolute_import
from webfriend.rpc import Base
from datetime import datetime
from base64 import b64decode
class Cookie(object):
def __init__(self, rpc, definition):
self._rpc = rpc
self._definition = definition
self.name = definition['name']
... | bsd-2-clause | -5,181,091,513,582,721,000 | 28.55618 | 99 | 0.578787 | false |
SmartDataAnalytics/LC-QuAD | utils/natural_language_utilities.py | 1 | 7104 | """
@TODO: major rewrite here!
"""
import re
import html
import string
import os.path
import inflect
import warnings
import validators
from urllib.parse import urlparse
# SOME MACROS
STOPWORDLIST = 'resources/stopwords.txt'
KNOWN_SHORTHANDS = ['dbo', 'dbp', 'rdf', 'rdfs', 'dbr', 'foaf', 'geo', 'res', 'dct']
DBP_SHORT... | gpl-3.0 | -3,210,064,065,391,750,700 | 27.190476 | 118 | 0.574324 | false |
zozo123/buildbot | master/buildbot/data/root.py | 1 | 1704 | # This file is part of Buildbot. Buildbot 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, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without eve... | gpl-3.0 | 673,381,087,221,038,600 | 28.894737 | 79 | 0.714202 | false |
osroom/osroom | apps/modules/user/process/avatar_upload.py | 1 | 3766 | #!/usr/bin/env python
# -*-coding:utf-8-*-
# @Time : 2017/11/1 ~ 2019/9/1
# @Author : Allen Woo
import base64
import json
import os
from flask import request
from flask_babel import gettext
from flask_login import current_user
from apps.configs.sys_config import APPS_PATH
from apps.modules.user.process.get_or_update_... | bsd-2-clause | 848,355,737,162,953,000 | 33.679245 | 86 | 0.515234 | false |
antoniodemora/python-telegram-bot | docs/source/conf.py | 1 | 9334 | # -*- coding: utf-8 -*-
#
# Python Telegram Bot documentation build configuration file, created by
# sphinx-quickstart on Mon Aug 10 22:25:07 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
# autogenerated... | gpl-3.0 | 4,470,365,260,915,227,600 | 31.522648 | 79 | 0.709128 | false |
WebCampZg/conference-web | workshops/models.py | 1 | 2590 | from django.contrib.staticfiles.templatetags.staticfiles import static
from django.db import models
from django.db.models.deletion import PROTECT
from django_extensions.db.fields import AutoSlugField
class Workshop(models.Model):
event = models.ForeignKey('events.Event', on_delete=PROTECT, related_name='workshops... | bsd-3-clause | 810,368,390,674,918,300 | 37.656716 | 91 | 0.688031 | false |
MattDevo/edk2 | BaseTools/Source/Python/CommonDataClass/CommonClass.py | 1 | 4241 | ## @file
# This file is used to define common items of class object
#
# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. ... | bsd-2-clause | 895,875,367,268,498,000 | 41.721649 | 143 | 0.620844 | false |
juliancantillo/royal-films | royalfilms/cinemas/migrations/0011_auto_20160311_0105.py | 1 | 1251 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-03-11 06:05
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cinemas', '0010_cinema_city'),
]
operations = [
... | mit | 1,754,208,661,855,668,500 | 30.275 | 133 | 0.590727 | false |
boegel/easybuild-framework | test/framework/include.py | 1 | 12673 | # #
# Copyright 2013-2020 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
# Flemish Research Foundation (... | gpl-2.0 | 2,562,027,152,621,121 | 46.287313 | 120 | 0.657145 | false |
feist/pcs | pcs/lib/booth/test/test_resource.py | 1 | 7364 | from unittest import mock, TestCase
from lxml import etree
import pcs.lib.booth.resource as booth_resource
def fixture_resources_with_booth(booth_config_file_path):
return etree.fromstring('''
<resources>
<primitive type="booth-site">
<instance_attributes>
... | gpl-2.0 | 6,868,946,752,976,943,000 | 33.092593 | 74 | 0.519283 | false |
marcharper/stationary | stationary/utils/math_helpers.py | 1 | 5555 | import numpy
from numpy import log
try:
from scipy.misc import logsumexp
except ImportError:
from numpy import logaddexp
logsumexp = logaddexp.reduce
def slice_dictionary(d, N, slice_index=0, slice_value=0):
"""
Take a three dimensional slice from a four dimensional
dictionary.
"""
s... | mit | -3,417,794,059,619,520,500 | 20.614786 | 80 | 0.514131 | false |
nbstrauli/influenza_vaccination_project | scripts/pipeline/get_gene_usage_time_progression.py | 1 | 14047 | #!/usr/bin/python
#$ -S /usr/bin/python
#$ -e error
#$ -cwd
#$ -r y
#$ -j y
#$ -l mem_free=2G
#$ -l arch=linux-x64
#$ -l netapp=1G,scratch=180G
#$ -l h_rt=336:00:00
import sys
import os
import itertools
def make_dic_of_all_gene_names(gene_name_input_filepaths, evalue_input_filepaths, evalue_cutoff, drop_allele_info):... | cc0-1.0 | -8,732,614,653,426,692,000 | 50.643382 | 750 | 0.635865 | false |
yastrov/py-txt2fb2 | txt2fb2lib/bookcreator.py | 1 | 4706 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Convert plain txt file to FB2 (FictionBook) format.
Include devision by paragraph and include image files.
Very Simple Finity State Machine here.
Required Python 3.4 or higher.
"""
__author__ = 'Yuri Astrov <yuriastrov@gmail.com>'
__copyright__ = "Copyright 2014, Tx... | mit | -1,994,880,033,976,461,300 | 32.382979 | 91 | 0.514237 | false |
google/python-spanner-orm | spanner_orm/metadata.py | 1 | 4669 | # python3
# 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
#
# python3
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"... | apache-2.0 | 2,871,411,075,835,277,300 | 38.235294 | 80 | 0.701649 | false |
del680202/MachineLearning-memo | src/tensorflow/autocoder.py | 1 | 6809 | # View more python learning tutorial on my Youtube and Youku channel!!!
# My tutorial website: https://morvanzhou.github.io/tutorials/
from __future__ import division, print_function, absolute_import
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
# Import MNIST data
from tensorflow.examp... | apache-2.0 | -2,241,710,524,108,010,000 | 36.005435 | 93 | 0.622705 | false |
Donkyhotay/MoonPy | zope/server/http/httptask.py | 1 | 7688 | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# T... | gpl-3.0 | 1,702,733,660,290,183,000 | 31.714894 | 79 | 0.561655 | false |
bunyk/pyrrd | monitor_sources.py | 1 | 1431 | from decimal import Decimal
import requests
from tabulate import tabulate
import json
def yahoo_finance_query(**params):
''' Return the text of the request to the Yahoo finance API
s - ids of entities we wnant to receive. Every stock, index or currency has their own ID.
If you want to get values of mo... | mit | 8,548,422,122,788,347,000 | 32.27907 | 93 | 0.606569 | false |
HansGR/ggPlayer | ggplayer/ggPlayer.py | 1 | 12818 | ## Copyright 2013 Hans Rinderknecht
## This file is part of ggPlayer.
## ggPlayer 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.
... | gpl-3.0 | 9,143,978,955,762,802,000 | 35.414773 | 103 | 0.62342 | false |
veprbl/root | tutorials/pyroot/hsimple.py | 1 | 2699 | ## \file
## \ingroup tutorial_pyroot
## \notebook -js
## This program creates :
## - a one dimensional histogram
## - a two dimensional histogram
## - a profile histogram
## - a memory-resident ntuple
##
## These objects are filled with some random numbers and saved on a file.
##
## \macro_image
## \macro... | lgpl-2.1 | -3,326,936,367,549,896,000 | 26.540816 | 80 | 0.674324 | false |
941design/ptTools | ptTools/misc/attributes.py | 1 | 2701 | #!/usr/bin/env python3
"""Module providing the AttributesMixIn class."""
class AttributesMixIn(object):
"""Mix-in, providing an attributes collection of variable type.
Collection type may be list, set or dict. Getters and setters are
polymorphic.
To return a node's inherited attributes, access
... | gpl-3.0 | -5,291,276,212,073,134,000 | 34.539474 | 73 | 0.593854 | false |
Eric89GXL/scikit-learn | doc/sphinxext/gen_rst.py | 1 | 39133 | """
Example generation for the scikit learn
Generate the rst files for the examples by iterating over the python
example files.
Files that generate images should start with 'plot'
"""
from time import time
import os
import re
import shutil
import traceback
import glob
import sys
from StringIO import StringIO
import ... | bsd-3-clause | -8,002,446,403,779,385,000 | 35.33519 | 160 | 0.523727 | false |
binji/naclports | build_tools/naclports.py | 1 | 23393 | #!/usr/bin/env python
# Copyright (c) 2013 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Tool for manipulating naclports packages in python.
This tool can be used to for working with naclports packages.
It can al... | bsd-3-clause | -9,160,051,275,839,171,000 | 29.499348 | 80 | 0.624418 | false |
BillGuard/cabot | cabot/rest_urls.py | 1 | 3991 | from django.db import models as model_fields
from django.conf.urls import url, include
from django.contrib.auth import models as django_models
from polymorphic import PolymorphicModel
from cabot.cabotapp import models
from rest_framework import routers, serializers, viewsets, mixins
import logging
logger = logging.get... | mit | 5,411,351,808,016,618,000 | 23.635802 | 84 | 0.609121 | false |
CymaticLabs/Unity3D.Amqp | lib/rabbitmq-dotnet-client-rabbitmq_v3_4_4/docs/pyle2-fcfcf7e/sublanguages/include.py | 1 | 1284 | import Core
import re
info = {
"friendly_name": "Include Page",
"example_spacing": " PageTitle",
"example_template": "",
"summary": "Transcludes the contents of another page into the current page.",
"details": """
<p>If the included page has section (sub-)headings, they will be
included as... | mit | -4,046,064,245,910,437,400 | 26.913043 | 81 | 0.625389 | false |
headstrongsolutions/Jarvis_Screen | gettime.py | 1 | 1266 | from datetime import datetime
def convert_daynum_to_friendly(day_num):
friendly_string = ""
lastdigit = int(str(day_num[-1]))
if lastdigit == 1 and day_num != 11:
friendly_string = "st"
if lastdigit == 2 and day_num != 12:
friendly_string = "nd"
if lastdigit == 3 and day... | mit | 8,256,574,304,943,224,000 | 25.957447 | 78 | 0.597946 | false |
maferelo/saleor | saleor/discount/migrations/0002_voucher.py | 2 | 3498 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-02-04 17:07
from __future__ import unicode_literals
import datetime
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("product", ... | bsd-3-clause | 39,567,817,853,150,090 | 33.294118 | 86 | 0.368782 | false |
Dturati/projetoUFMT | estagio/estagio/base/urls.py | 1 | 2567 | from django.conf.urls import url,include
from estagio.base.views import home,\
contatos,\
lista_em_arvore,\
download,\
view_compacta_pesquisa_selecionada,\
baixar_pesquisa,\
exemplo,\
view_compacta_toda_pesquisa,\
exemplo_assinc,\
get_resultado,\
define_sessao,\
requisicao_en... | mit | 4,855,286,763,664,258,000 | 49.333333 | 138 | 0.698091 | false |
mdavidsaver/pyDevSup | archApp/bplreport.py | 1 | 4059 | # -*- coding: utf-8 -*-
import time, sched, urllib2, json
from devsup.db import IOScanListBlock
from devsup.hooks import initHook
from devsup.util import StoppableThread
class BPLReport(object):
reports = {}
def __init__(self, name, url, period):
self.name = name
self.url, self.period = url, ... | gpl-2.0 | 2,099,237,936,138,473,700 | 25.880795 | 82 | 0.539295 | false |
icisneros/uav_landing | OtherssCode/Precland-master_moreRecent/PrecisionLand.py | 1 | 8500 | #!/usr/bin/python
#SYSTEM IMPORTS
import math
import time
import cv2
import Queue
import os
import inspect
import sys
import numpy as np
from copy import copy
#Add script directory to path
script_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) # script directory
sys.path.append(script_... | mit | -4,166,947,670,528,823,300 | 33.274194 | 164 | 0.593176 | false |
FATSLiM/fatslim | docs/sphinx-src/conf.py | 1 | 8359 | # -*- coding: utf-8 -*-
#
# FATSLiM documentation build configuration file, created by
# sphinx-quickstart on Mon May 9 17:28:42 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# A... | gpl-3.0 | 8,787,420,351,984,867,000 | 30.424812 | 79 | 0.706783 | false |
alt-core/sheetbot | tests/plugin/test_twilio.py | 1 | 9414 | # coding: utf-8
from __future__ import absolute_import
import unittest
from webtest import TestApp
import os, sys, subprocess, json
gcloud_info = json.loads(subprocess.check_output(['gcloud', 'info', '--format=json']))
sdk_path = os.path.join(gcloud_info["installation"]["sdk_root"], 'platform', 'google_appengine')
sy... | mit | 8,377,975,937,539,998,000 | 41.900474 | 214 | 0.590035 | false |
m3z/HT | openstack_dashboard/dashboards/project/images_and_snapshots/images/tests.py | 1 | 4704 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# no... | apache-2.0 | -8,853,933,789,205,918,000 | 38.864407 | 79 | 0.590136 | false |
dims/cinder | cinder/tests/unit/volume/drivers/netapp/dataontap/test_block_base.py | 1 | 46513 | # Copyright (c) 2014 Alex Meade. All rights reserved.
# Copyright (c) 2014 Clinton Knight. All rights reserved.
# Copyright (c) 2014 Andrew Kerr. All rights reserved.
# Copyright (c) 2015 Tom Barron. All rights reserved.
# Copyright (c) 2015 Goutham Pacha Ravi. All rights reserved.
# All Rights Reserved.
#
# Lic... | apache-2.0 | -7,212,369,763,697,224,000 | 45.513 | 79 | 0.608884 | false |
Konubinix/weboob | modules/boursorama/pages/accounts_list.py | 1 | 4273 | # -*- coding: utf-8 -*-
# Copyright(C) 2011 Gabriel Kerneis
# Copyright(C) 2010-2011 Jocelyn Jaubert
#
# This file is part of weboob.
#
# weboob 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, eit... | agpl-3.0 | 8,497,556,090,955,697,000 | 42.161616 | 103 | 0.478352 | false |
escattone/kuma | kuma/core/utils.py | 1 | 8709 | import logging
import os
from smtplib import SMTPConnectError, SMTPServerDisconnected
from urllib.parse import parse_qsl, ParseResult, urlparse, urlsplit, urlunsplit
import requests
from django.conf import settings
from django.core.mail import EmailMultiAlternatives, get_connection
from django.http import QueryDict
fr... | mpl-2.0 | -7,837,640,281,456,378,000 | 32.114068 | 103 | 0.663452 | false |
obulpathi/poppy | tests/endtoend/test_ssl_enabled.py | 1 | 2565 | # coding= utf-8
# Copyright (c) 2015 Rackspace, 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 o... | apache-2.0 | 8,846,897,874,403,534,000 | 34.136986 | 78 | 0.640936 | false |
Alignak-monitoring-contrib/alignak-module-nsca | test/test_module.py | 1 | 19503 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015-2016: Alignak team, see AUTHORS.txt file for contributors
#
# This file is part of Alignak.
#
# Alignak 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 So... | agpl-3.0 | -3,633,992,653,995,104,000 | 35.798113 | 132 | 0.584372 | false |
cycladesnz/chambersAndCreatures | src/effects/av_effects.py | 1 | 3684 | from pdcglobal import *
from .effect import Effect
from .dv_effects import DazzleEffect
class StunEffect(Effect):
def __init__(self, host, owner):
dur = d(3)
Effect.__init__(self, dur, host, owner)
weaponinfotext = 'Stuns the enemy'
def tick(self):
self.host.timer += se... | gpl-2.0 | 3,554,105,722,189,327,400 | 33.754717 | 85 | 0.551031 | false |
jusjusjus/Motiftoolbox | Leech_3-cell/network.py | 1 | 1647 | #!/usr/bin/env python
import time
import sys
sys.path.insert(0, '../Tools')
import network3N as netw
import tools as tl
import numpy as np
class network(netw.network):
title = "Neural Network Motif"
def __init__(self, g_inh=0.01, info=None, position=None):
netw.network.__init__(self, g_inh, info, position... | gpl-2.0 | -6,949,641,564,638,452,000 | 19.085366 | 89 | 0.657559 | false |
tensorflow/federated | tensorflow_federated/python/simulation/datasets/emnist.py | 1 | 23967 | # Copyright 2019, The TensorFlow Federated 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 o... | apache-2.0 | 1,330,929,605,957,779,200 | 52.737668 | 90 | 0.518213 | false |
pcolmant/repanier | repanier_v2/models/notification.py | 1 | 2466 | from django.db import models
from django.utils.html import escape, format_html
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext_lazy as _
from djangocms_text_ckeditor.fields import HTMLField
from repanier_v2.const import *
from repanier_v2.tools import cap
class Notificatio... | gpl-3.0 | -5,168,390,665,867,534,000 | 34.228571 | 106 | 0.452555 | false |
kbase/genome_annotation_api | lib/GenomeAnnotationAPI/utils.py | 1 | 6580 | import logging
from collections import Counter
class Utils:
def __init__(self, workspace_client):
self.ws = workspace_client
@staticmethod
def validate_params(params, expected, opt_param=set()):
"""Validates that required parameters are present. Warns if unexpected parameters appear"""
... | mit | -594,657,575,675,096,000 | 44.694444 | 99 | 0.539666 | false |
lmazuel/azure-sdk-for-python | azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine.py | 1 | 7652 | # 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 | -6,652,145,812,120,035,000 | 51.054422 | 170 | 0.674726 | false |
sjkingo/fantail | fantail/cli.py | 1 | 2628 | """
Command-line interface to the fantail site generator.
setuptools will create a console script pointing to cli:main
"""
import argparse
import logging
from fantail.staticsite import StaticSite
def cmd_init_site(args):
"""
Creates a new site with default templates.
"""
site = StaticSite(args.site_d... | bsd-2-clause | 4,335,352,993,930,072,600 | 31.444444 | 104 | 0.644977 | false |
matroid/matroid-python | matroid/src/video_summary.py | 1 | 4766 | import requests
from matroid import error
from matroid.src.helpers import api_call
# https://staging.dev.matroid.com/docs/api/index.html#api-Video_Summary-PostSummarize
@api_call(error.InvalidQueryError)
def create_video_summary(self, url=None, videoId=None, file=None):
"""Create an video summary with provided url ... | mit | 2,356,276,802,457,178,000 | 35.661538 | 102 | 0.722619 | false |
kennedyshead/home-assistant | homeassistant/components/analytics/const.py | 1 | 1442 | """Constants for the analytics integration."""
from datetime import timedelta
import logging
import voluptuous as vol
ANALYTICS_ENDPOINT_URL = "https://analytics-api.home-assistant.io/v1"
ANALYTICS_ENDPOINT_URL_DEV = "https://analytics-api-dev.home-assistant.io/v1"
DOMAIN = "analytics"
INTERVAL = timedelta(days=1)
ST... | apache-2.0 | -1,498,860,972,275,028,000 | 26.730769 | 77 | 0.730929 | false |
drayanaindra/monit-isp | monit_my_isp.py | 1 | 1933 | import os
import re
import smtplib
from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIMEText
from email.MIMEBase import MIMEBase
from email import encoders
# set your directory for log or anything when you wanna say fuck
SET_DIR = os.path.dirname(os.path.abspath(' '))
NAME_FILE = 'log-myisp.txt... | gpl-3.0 | -6,799,284,218,235,311,000 | 28.287879 | 93 | 0.700466 | false |
C2SM/hymet_idealized | runsims_user.py | 1 | 1464 | # This program 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
# (at your option) any later version.
# This program is distributed in the hope that it will be useful... | lgpl-3.0 | -2,831,505,908,376,665,600 | 33.857143 | 77 | 0.696721 | false |
aequitas/home-assistant | homeassistant/components/locative/device_tracker.py | 1 | 2692 | """Support for the Locative platform."""
import logging
from homeassistant.core import callback
from homeassistant.components.device_tracker import SOURCE_TYPE_GPS
from homeassistant.components.device_tracker.config_entry import (
DeviceTrackerEntity
)
from homeassistant.helpers.dispatcher import async_dispatcher_... | apache-2.0 | 2,563,296,989,840,998,400 | 28.911111 | 76 | 0.647103 | false |
baifendian/harpc | admin/manage/customdecorators.py | 1 | 1412 | # -*- coding: utf-8 -*-
"""
Copyright (C) 2015 Baifendian 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 ... | apache-2.0 | 2,894,816,251,340,241,400 | 25.403846 | 72 | 0.680758 | false |
opena11y/fae2 | fae2/fae2/context_processors.py | 1 | 2101 | """
Copyright 2014-2016 University of Illinois
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 writ... | apache-2.0 | 8,637,134,552,017,623,000 | 23.717647 | 72 | 0.729177 | false |
lifemapper/LmQGIS | lifemapperTools/tools/ui_listExperimentDialog.py | 1 | 7554 | # -*- coding: utf-8 -*-
"""
@license: gpl2
@copyright: Copyright (C) 2014, University of Kansas Center for Research
Lifemapper Project, lifemapper [at] ku [dot] edu,
Biodiversity Institute,
1345 Jayhawk Boulevard, Lawrence, Kansas, 66045, USA
This program is free software; ... | gpl-2.0 | 2,559,751,720,454,974,000 | 41.438202 | 107 | 0.658459 | false |
rsennrich/nematus | nematus/theano_tf_convert.py | 1 | 11403 | #!/usr/bin/env python3
import argparse
import logging
import os
import sys
import numpy as np
import tensorflow as tf
from config import load_config_from_json_file
import model_loader
import rnn_model
def construct_parameter_map(config):
def drt_tag(i):
return "" if i == 0 else "_drt_{0}".format(i)
... | bsd-3-clause | 7,879,858,053,954,814,000 | 45.925926 | 98 | 0.565553 | false |
tensorflow/tfx | tfx/experimental/templates/taxi/e2e_tests/local_e2e_test.py | 1 | 3196 | # Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | apache-2.0 | 4,898,479,839,400,769,000 | 28.321101 | 84 | 0.624531 | false |
ocadotechnology/gcp-census | tests/bigquery_table_metadata_test.py | 1 | 4286 | import unittest
from gcp_census.bigquery.bigquery_table_metadata import BigQueryTableMetadata
class TestBigQueryTableMetadata(unittest.TestCase):
def test_is_daily_partitioned_should_return_False_if_is_a_partition(self):
# given
big_query_table_metadata = BigQueryTableMetadata(
{"tab... | apache-2.0 | 8,976,545,287,990,609,000 | 31.225564 | 100 | 0.54923 | false |
isaacj87/unity | tests/autopilot/autopilot/tests/test_ibus.py | 1 | 7160 | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
# Copyright 2012 Canonical
# Author: Thomi Richards, Martin Mrazik
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 3, as published
# by the Free Software Fou... | gpl-3.0 | 1,277,520,508,238,889,500 | 34.270936 | 120 | 0.639385 | false |
knightdf/tiantian | application/log/logger.py | 1 | 1198 | # coding=utf-8
import logging
from logging.handlers import SMTPHandler
from handlers import MultiProcessTimedRotatingFileHandler
from application import config
_Levels = {
'DEBUG': logging.DEBUG,
'INFO': logging.INFO,
'WARN': logging.WARN,
'WARNING': logging.WARNING,
'ERROR': logging.ERROR,
'... | gpl-2.0 | -4,613,170,647,903,772,000 | 26.860465 | 93 | 0.691987 | false |
lgunsch/django-vmail | vmail/tests/command_tests.py | 1 | 7582 | """
Test the virtual mail management commands.
"""
import sys
import StringIO
from django.core.management import call_command
from django.core.management.base import CommandError
from django.test import TestCase
from ..models import MailUser, Domain, Alias
class BaseCommandTestCase(object):
fixtures = ['vmail_... | mit | -8,373,753,192,189,958,000 | 33 | 88 | 0.628726 | false |
lcy-seso/Paddle | python/paddle/dataset/uci_housing.py | 1 | 3748 | # Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | apache-2.0 | 941,708,143,566,697,000 | 28.984 | 91 | 0.670491 | false |
obdg/plda | testdata/format.py | 1 | 1245 | #!/usr/bin/env python
import io
import sys
def parseLine(line):
l = line.strip().split()
return int(l[0]), int(l[1]), int(l[2])
def convert(dataName, f):
with open("docword." + dataName + ".txt", 'r') as doc, open("vocab." + dataName + ".txt", 'r') as voc:
vocList = []
for w in voc:
... | apache-2.0 | -9,169,616,368,775,824,000 | 22.942308 | 106 | 0.481124 | false |
buzztroll/staccato | staccato/openstack/common/sslutils.py | 1 | 2482 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 IBM Corp.
#
# 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 | -8,596,725,972,665,908,000 | 30.025 | 78 | 0.617647 | false |
SynAckPwn23/SCTF | SCTF/tests.py | 1 | 1987 | from itertools import chain, repeat
from cities_light.models import Country
from django.contrib.auth import get_user_model
from django.test import TestCase
from accounts.models import Team, UserProfile
from challenges.models import Category, Challenge, ChallengeSolved
class UserScoreTest(TestCase):
def setUp(se... | gpl-3.0 | -6,817,270,044,321,183,000 | 35.796296 | 110 | 0.613488 | false |
bdang2012/taiga-back-casting | taiga/export_import/tasks.py | 1 | 3191 | # Copyright (C) 2014-2015 Andrey Antukh <niwi@niwi.be>
# Copyright (C) 2014-2015 Jesús Espino <jespinog@gmail.com>
# Copyright (C) 2014-2015 David Barragán <bameda@dbarragan.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
# pub... | agpl-3.0 | -436,636,526,584,997,570 | 32.568421 | 101 | 0.67482 | false |
zqfan/leetcode | algorithms/304. Range Sum Query 2D - Immutable/solution.py | 1 | 1184 | class NumMatrix(object):
def __init__(self, matrix):
"""
:type matrix: List[List[int]]
"""
m, n = len(matrix), len(matrix[0] if matrix else [])
self._sum = [[0] * n for i in xrange(m)]
col_sum = [0] * n
for i in xrange(m):
s = 0
for j ... | gpl-3.0 | -5,383,911,250,569,336,000 | 28.6 | 69 | 0.460304 | false |
dgoodwin/wuja | test/configTests.py | 1 | 5142 | # Wuja - Google Calendar (tm) notifications for the GNOME desktop.
#
# Copyright (C) 2006 Devan Goodwin <dgoodwin@dangerouslyinc.com>
# Copyright (C) 2006 James Bowes <jbowes@dangerouslyinc.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Pu... | gpl-2.0 | -486,767,916,604,198,300 | 34.462069 | 79 | 0.648969 | false |
Atihinen/ProjectUnchained | project_unchained/project_unchained/settings.py | 1 | 2005 | """
Django settings for project_unchained project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DI... | mit | -2,116,393,972,507,239,200 | 23.45122 | 71 | 0.723691 | false |
googleapis/python-spanner-django | tests/unit/django_spanner/test_compiler.py | 1 | 6961 | # Copyright 2021 Google LLC
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
from django.core.exceptions import EmptyResultSet
from django.db.utils import DatabaseError
from django_spanner.compiler impo... | bsd-3-clause | 754,637,484,480,902,400 | 39.236994 | 79 | 0.596322 | false |
Proactuary/ChessLearner | sunfish.py | 1 | 19713 | #!/usr/bin/env pypy
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
import random
from itertools import count
from collections import Counter, OrderedDict, namedtuple
ARG_OUTPUTFILE = 2
GAMES_PLAYED = 10
# The table size is the maximum number of elements in the transposition table.
TABLE_SI... | gpl-3.0 | -5,456,293,336,961,989,000 | 37.203488 | 103 | 0.505504 | false |
subodhchhabra/glances | glances/globals.py | 1 | 1502 | # -*- coding: utf-8 -*-
#
# This file is part of Glances.
#
# Copyright (C) 2015 Nicolargo <nicolas@nicolargo.com>
#
# Glances 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 Lic... | lgpl-3.0 | -4,663,706,417,952,134,000 | 34.761905 | 77 | 0.740346 | false |
macleinn/heimdall | uploader/drive_uploader.py | 1 | 6245 | import logging
import os
import time
from configparser import ConfigParser
import httplib2
from apiclient import discovery
from apiclient.http import MediaFileUpload
from oauth2client import client
from oauth2client.file import Storage
try:
import argparse
media_types = ["photo", "video"]
parser = argpar... | gpl-3.0 | -1,443,827,264,816,349,700 | 34.282486 | 111 | 0.643555 | false |
fusioneng/gif2html5-app | tests/test_server.py | 1 | 4198 | import server
import unittest
import requests
from unittest.mock import MagicMock, ANY, patch
from flask import json
from gif2html5.config_parser import get_config
from gif2html5.s3_manager import S3Manager
from tests.test_context import TestContext
class JsonPayloadAttachmentIdMatcher(object):
def __init__(sel... | mit | -7,445,330,195,105,273,000 | 40.564356 | 146 | 0.656503 | false |
pmaxit/DJANGO_IOT | django_iot/settings/common.py | 1 | 5065 | """
Django settings for Django for IoT project on Heroku. For more info, see:
https://github.com/aschn/cookiecutter-django-iot
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/set... | mit | -8,899,186,612,826,330,000 | 29.14881 | 114 | 0.697137 | false |
our-city-app/oca-backend | src/solutions/common/to/payments.py | 1 | 1721 | # -*- coding: utf-8 -*-
# Copyright 2020 Green Valley Belgium NV
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | apache-2.0 | -8,937,112,238,007,400,000 | 33.42 | 89 | 0.674608 | false |
schleichdi2/OPENNFR-6.1-CORE | opennfr-openembedded-core/meta/lib/oe/package_manager.py | 1 | 65050 | from abc import ABCMeta, abstractmethod
import os
import glob
import subprocess
import shutil
import multiprocessing
import re
import collections
import bb
import tempfile
import oe.utils
import oe.path
import string
from oe.gpg_sign import get_signer
# this can be used by all PM backends to create the index files in ... | gpl-2.0 | -3,319,517,105,666,360,300 | 40.249207 | 217 | 0.545288 | false |
crlane/helga-xkcd | tests/test_command.py | 1 | 1204 | import mock
import pytest
from functools import partial
from helga_xkcd import command
MOCK_CLIENT = 'irc'
MOCK_CHANNEL = 'bots'
MOCK_NICK = 'crlane'
MOCK_MESSAGE = 'foobar'
MOCK_CMD = '!xkcd'
MOCK_ARGS = [
MOCK_CLIENT,
MOCK_CHANNEL,
MOCK_NICK,
MOCK_MESSAGE,
MOCK_CMD
]
@pytest.fixture
def moc... | mit | -3,742,131,429,410,104,000 | 24.617021 | 119 | 0.669435 | false |
pity7736/olimpiadas | tasks/mutations.py | 1 | 1169 | from graphene import InputObjectType, String, Int, Mutation, Boolean, Field
from graphene.types.datetime import DateTime
from tasks.models import Task, Category
from tasks.schemas import TaskNode, CategoryNode
class NameInput(InputObjectType):
name = String(required=True)
description = String()
class Creat... | gpl-3.0 | -1,950,752,744,791,763,700 | 24.413043 | 75 | 0.711719 | false |
hes19073/hesweewx | bin/weecfg/database.py | 1 | 26730 | #
# Copyright (c) 2009-2019 Tom Keffer <tkeffer@gmail.com> and
# Gary Roderick <gjroderick@gmail.com>
#
# See the file LICENSE.txt for your full rights.
#
"""Classes to support fixes or other bulk corrections of weewx data."""
from __future__ import with_statement
from __future__ impor... | gpl-3.0 | -292,630,650,972,100,030 | 44.770548 | 120 | 0.557651 | false |
nfletton/bvspca | bvspca/animals/petpoint.py | 1 | 4840 | import datetime
import html
import io
import logging
from lxml import etree
logger = logging.getLogger('bvspca.animals.petpoint')
error_logger = logging.getLogger('bvspca.animals.petpoint.errors')
def extract_animal_ids(animal_summary_etree):
animal_ids = []
for animal in animal_summary_etree.findall('.//ad... | mit | -7,226,197,578,575,516,000 | 32.846154 | 120 | 0.597727 | false |
tboyce1/home-assistant | homeassistant/components/panel_iframe.py | 2 | 1256 | """
Register an iFrame front end panel.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/panel_iframe/
"""
import asyncio
import voluptuous as vol
from homeassistant.const import (CONF_ICON, CONF_URL)
import homeassistant.helpers.config_validation as cv... | apache-2.0 | -8,715,024,929,982,392,000 | 27.545455 | 77 | 0.640924 | false |
yarikoptic/NiPy-OLD | nipy/neurospin/register/realign4d.py | 1 | 10220 | from routines import cspline_transform, cspline_sample4d, slice_time
from transform import Affine, apply_affine, BRAIN_RADIUS_MM
import numpy as np
from scipy import optimize
DEFAULT_SPEEDUP = 4
DEFAULT_OPTIMIZER = 'powell'
DEFAULT_WITHIN_LOOPS = 2
DEFAULT_BETWEEN_LOOPS = 5
def grid_coords(xyz, affine, fro... | bsd-3-clause | -338,591,949,903,743,800 | 32.074434 | 110 | 0.57593 | false |
brene/slide-transition-detector | mediaoutput.py | 1 | 6077 | from abc import ABCMeta, abstractmethod
import datetime
import cv2
import math
import os
import errno
class MediaWriter(object):
"""
Abstract class for all media outputs. Forcing each inheritance
to have a write class.
"""
__metaclass__ = ABCMeta
@abstractmethod
def write(self, content, *... | mit | 3,480,623,246,772,520,000 | 30.005102 | 101 | 0.61165 | false |
vesellov/bitdust.devel | transport/http/http_node.py | 1 | 13830 | #!/usr/bin/python
# http_node.py
#
#
# Copyright (C) 2008-2018 Veselin Penev, https://bitdust.io
#
# This file (http_node.py) is part of BitDust Software.
#
# BitDust 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... | agpl-3.0 | -5,036,903,023,932,048,000 | 31.088167 | 132 | 0.542878 | false |
SteveDiamond/cvxpy | cvxpy/atoms/min.py | 2 | 2912 | """
Copyright 2013 Steven Diamond
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... | gpl-3.0 | -3,086,104,830,396,706,000 | 26.733333 | 78 | 0.603365 | false |
lidavidm/mathics-heroku | venv/lib/python2.7/site-packages/sympy/core/tests/test_numbers.py | 1 | 44922 | from __future__ import with_statement
import decimal
from sympy import (Rational, Symbol, Float, I, sqrt, oo, nan, pi, E, Integer,
S, factorial, Catalan, EulerGamma, GoldenRatio, cos, exp,
Number, zoo, log, Mul, Pow, Tuple)
from sympy.core.basic import _aresame
from sympy.core.powe... | gpl-3.0 | -749,902,200,067,874,200 | 31.528602 | 91 | 0.548729 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.