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 |
|---|---|---|---|---|---|---|---|---|---|---|
googleads/google-ads-python | google/ads/googleads/v6/enums/types/matching_function_context_type.py | 1 | 1242 | # -*- coding: utf-8 -*-
# Copyright 2020 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 o... | apache-2.0 | 1,692,842,941,226,915,300 | 28.571429 | 76 | 0.699678 | false |
grouan/udata | udata/tests/site/test_site_api.py | 1 | 3123 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from datetime import date
from flask import url_for
from udata.core.site.models import Site
from udata.core.site.metrics import SiteMetric
from udata.core.site.views import current_site
from udata.models import db, WithMetrics
from udata.tests.api impo... | agpl-3.0 | 5,911,655,990,735,081,000 | 29.320388 | 78 | 0.651937 | false |
Azure/azure-sdk-for-python | sdk/storage/azure-storage-file-share/azure/storage/fileshare/_generated/models/_models_py3.py | 1 | 39940 | # 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 | 229,342,826,065,661,280 | 32.647852 | 364 | 0.611017 | false |
maikito26/script.foscam | resources/lib/utils.py | 1 | 6718 | import os
import time
import glob
import xbmc
import xbmcaddon
import xbmcgui
import requests
__addon__ = xbmcaddon.Addon()
__id__ = __addon__.getAddonInfo('id')
__icon__ = __addon__.getAddonInfo('icon').decode("utf-8")
__version__ = __addon__.getAddonInfo('version')
addon_name = __addon__.getLocalizedString(320... | gpl-3.0 | 8,232,375,941,994,584,000 | 28.991071 | 91 | 0.591694 | false |
sahiljain/catapult | dashboard/dashboard/pinpoint/models/quest/run_test_test.py | 1 | 7300 | # Copyright 2016 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 unittest
import mock
from dashboard.pinpoint.models.quest import run_test
_SWARMING_TASK_EXTRA_ARGS = [
'test_suite', '--story-filter', 'test'... | bsd-3-clause | 8,147,936,623,772,982,000 | 33.433962 | 78 | 0.643836 | false |
AndiDog/git-cola | cola/widgets/main.py | 1 | 40624 | """This view provides the main git-cola user interface.
"""
from __future__ import division, absolute_import, unicode_literals
import os
from functools import partial
from qtpy import QtCore
from qtpy import QtGui
from qtpy import QtWidgets
from qtpy.QtCore import Qt
from qtpy.QtCore import Signal
from ..compat impor... | gpl-2.0 | 5,640,615,500,585,334,000 | 37.288407 | 79 | 0.611954 | false |
sid5432/pyOTDR | pyotdr/main.py | 1 | 1399 | import os
import logging
import argparse
from pyotdr.dump import tofile, ExportDataType
from pyotdr.read import sorparse
logging.basicConfig(format="%(message)s")
logger = logging.getLogger(__name__)
LOG_LEVEL = os.getenv("LOG_LEVEL", "DEBUG")
logger.setLevel(LOG_LEVEL)
def main():
parser = argparse.ArgumentPars... | gpl-3.0 | -2,556,162,915,401,240,000 | 28.145833 | 87 | 0.664046 | false |
zhouyao1994/incubator-superset | superset/utils/dashboard_import_export.py | 1 | 1863 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 | 5,545,386,890,963,763,000 | 37.8125 | 72 | 0.741278 | false |
RobbieNor/note-extractor | settings.py | 1 | 9569 | #!/usr/bin/python
import ConfigParser, inspect, os, importlib
import stringbar
#Settings
args = {'arg_backuppath' : None, 'arg_show' : None, 'arg_sideratio' : None, 'arg_bordersize' : None, 'arg_osn' : None, 'arg_workspacepath' : None, 'arg_rotateleft' : None, 'arg_rotateright' : None, 'arg_pageheight' : None, 'arg_ba... | gpl-2.0 | 5,031,598,925,003,352,000 | 45.906863 | 621 | 0.685965 | false |
inorton/junit2html | junit2htmlreport/matrix.py | 1 | 7952 | """
Handle multiple parsed junit reports
"""
from __future__ import unicode_literals
import os
from . import parser
from .common import ReportContainer
from .parser import SKIPPED, FAILED, PASSED, ABSENT
from .render import HTMLMatrix, HTMLReport
UNTESTED = "untested"
PARTIAL_PASS = "partial pass"
PARTIAL_FAIL = "part... | mit | -5,829,537,178,853,907,000 | 30.43083 | 83 | 0.522384 | false |
Andy-hpliu/AirtestX | atx/__init__.py | 1 | 1668 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""This module is to make mobile test more easily
"""
from __future__ import absolute_import
import os
import sys
import signal
import pkg_resources
try:
version = pkg_resources.get_distribution("atx").version
except pkg_resources.DistributionNotFound:
version =... | apache-2.0 | -3,891,371,900,709,590,500 | 26.344262 | 80 | 0.641487 | false |
Azure/azure-sdk-for-python | sdk/maintenance/azure-mgmt-maintenance/azure/mgmt/maintenance/operations/_configuration_assignments_operations.py | 1 | 28766 | # 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 | -2,900,234,072,373,119,500 | 50.551971 | 316 | 0.651846 | false |
aburnap/JMD2015-When-Crowdsourcing-Fails | human_crowds/model.py | 1 | 4057 | #-----------------------------------------------------------------------------
#
# Paper: When Crowdsourcing Fails: A Study of Expertise on Crowdsourced
# Design Evaluation
# Author: Alex Burnap - aburnap@umich.edu
# Date: October 10, 2014
# License: Apache v2
# Descrip... | mit | 5,495,789,919,888,849,000 | 41.705263 | 106 | 0.597486 | false |
prosodylab/Prosodylab-Aligner | aligner/__main__.py | 1 | 6425 | # Copyright (c) 2011-2014 Kyle Gorman and Michael Wagner
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify,... | mit | -8,438,024,029,651,108,000 | 39.408805 | 102 | 0.674241 | false |
PaloAltoNetworks/minemeld-core | minemeld/chassis.py | 1 | 6761 | # Copyright 2015-2016 Palo Alto 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... | apache-2.0 | 8,715,804,090,073,838,000 | 28.017167 | 77 | 0.580388 | false |
myDevicesIoT/Cayenne-Agent | myDevices/devices/digital/__init__.py | 1 | 4181 | # Copyright 2012-2013 Eric Ptak - trouch.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | mit | -4,353,876,563,491,724,300 | 29.97037 | 132 | 0.60177 | false |
palful/yambopy | yambopy/dbs/wfdb.py | 1 | 3127 | from yambopy import *
import numpy as np
import shutil
import os
from netCDF4 import Dataset
def abs2(x):
return x.real**2 + x.imag**2
class YamboWFDB():
def __init__(self,savedb,path=None,save='SAVE',filename='ns.wf'):
"""
load wavefunction from yambo
"""
if path is None:
... | bsd-3-clause | -842,594,899,618,820,100 | 29.656863 | 93 | 0.521906 | false |
josdaza/deep-toolbox | PyTorch/Seq2Seq/evaluator.py | 1 | 2200 | import torch
import torch.nn as nn
from torch.autograd import Variable
from torch import optim
use_cuda = torch.cuda.is_available()
def evaluate(config_params, encoder, decoder, sentence):
SOS_TOKEN = int(config_params["RNN"]["sos_token"])
EOS_TOKEN = int(config_params["RNN"]["eos_token"])
max_length = int... | mit | 5,671,654,910,903,290,000 | 37.596491 | 85 | 0.644545 | false |
fffonion/xeHentai | xeHentai/i18n/zh_hans.py | 1 | 7970 | # coding:utf-8
from ..const import *
err_msg = {
ERR_URL_NOT_RECOGNIZED: "网址不够绅士",
ERR_CANT_DOWNLOAD_EXH: "需要登录后才能下载里站",
ERR_ONLY_VISIBLE_EXH: "这个本子只有里站能看到",
ERR_MALFORMED_HATHDL: "hathdl文件有猫饼,解析失败",
ERR_GALLERY_REMOVED: "这个本子被移除了,大概里站能看到",
ERR_KEY_EXPIRED: "下载链接不太正常",
ERR_NO_PAGEURL_FOUND... | gpl-3.0 | -7,945,369,684,443,056,000 | 36.082192 | 103 | 0.668452 | false |
collective/fourdigits.portlet.keywordrelated | bootstrap.py | 1 | 10500 | ##############################################################################
#
# Copyright (c) 2006 Zope Foundation 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.
# THIS SOFT... | gpl-2.0 | -5,138,904,244,975,088,000 | 36.909747 | 78 | 0.626476 | false |
jath03/projects | local/Python server-client/MyServer.py | 1 | 2622 | from http.server import BaseHTTPRequestHandler, HTTPServer
import threading, pickle, re, subprocess
class MyHandler(BaseHTTPRequestHandler):
def do_GET(self):
f_type_map = {'.html': 'text/html', '.css': 'text/css', '.ico': 'image/x-icon', '.jpg': 'image/jpeg', '.png': 'image/png', '.gif': 'image/gif', ... | mit | 8,561,099,485,359,479,000 | 47.555556 | 199 | 0.553776 | false |
alirizakeles/zato | code/zato-web-admin/src/zato/admin/web/views/channel/amqp.py | 1 | 3812 | # -*- coding: utf-8 -*-
"""
Copyright (C) 2011 Dariusz Suchojad <dsuch at zato.io>
Licensed under LGPLv3, see LICENSE.txt for terms and conditions.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
# stdlib
import logging
from traceback import format_exc
# Django
from django.ht... | gpl-3.0 | 1,374,120,287,783,542,800 | 34.626168 | 105 | 0.633788 | false |
brunobord/critica | apps/archives/views.py | 1 | 2991 | # -*- coding: utf-8 -*-
"""
Views of ``critica.apps.archives`` application.
"""
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.core.exceptions import ObjectDoesNotExist
from django.core.paginator import Paginator
from django.core.paginator import InvalidPage
fro... | gpl-3.0 | 3,696,300,011,208,231,400 | 25.945946 | 89 | 0.684721 | false |
aequitas/home-assistant | homeassistant/components/zwave/__init__.py | 1 | 43527 | """Support for Z-Wave."""
import asyncio
import copy
from importlib import import_module
import logging
from pprint import pprint
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.core import callback, CoreState
from homeassistant.helpers import discovery
from homeassistant.helpers.... | apache-2.0 | -1,543,759,490,632,505,300 | 38.39095 | 79 | 0.59099 | false |
Luindil/Glassure | glassure/gui/widgets/control/transfer.py | 1 | 3814 | # -*- coding: utf-8 -*-
from ...qt import QtWidgets, QtCore
from ..custom import FlatButton, HorizontalLine, LabelAlignRight
class TransferFunctionWidget(QtWidgets.QWidget):
def __init__(self, *args):
super(TransferFunctionWidget, self).__init__(*args)
self.create_widgets()
self.create_... | mit | 7,296,712,362,812,249,000 | 41.377778 | 103 | 0.667016 | false |
Samsung/skia | bench/gen_bench_expectations.py | 2 | 5049 | #!/usr/bin/env python
# Copyright (c) 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
""" Generate bench_expectations file from a given set of bench data files. """
import argparse
import bench_util
import os
import ... | bsd-3-clause | -3,046,671,847,493,979,000 | 35.323741 | 80 | 0.653001 | false |
alexgorban/models | official/recommendation/ncf_input_pipeline.py | 1 | 7065 | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 7,662,879,708,559,198,000 | 37.396739 | 80 | 0.675442 | false |
protwis/protwis | construct/tool.py | 1 | 81937 | from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.db.models import Min, Count, Max
from django.conf import settings
from django.views.decorators.cache import cache_page
from django import forms
from construct.models import *
from structure.models import Structure
from prote... | apache-2.0 | -2,259,260,584,328,600,800 | 43.386241 | 381 | 0.556964 | false |
sangeethah/validation-tests | tests/v3_validation/cattlevalidationtest/core/test_rancher_compose_commands.py | 1 | 20881 | from common_fixtures import * # NOQA
RCCOMMANDS_SUBDIR = os.path.join(os.path.dirname(os.path.realpath(__file__)),
'resources/rccmds')
logger = logging.getLogger(__name__)
start_project_str = "Starting"
if_compose_data_files = pytest.mark.skipif(
not os.path.isdir(RCCOMMANDS_SUBD... | apache-2.0 | 6,931,296,060,093,040,000 | 38.92543 | 79 | 0.640774 | false |
devilry/devilry-django | devilry/devilry_group/tests/test_feedbackfeed/examiner/test_feedbackfeed_examiner_discuss.py | 1 | 50866 | # -*- coding: utf-8 -*-
from datetime import timedelta
from django.core import mail
from django.core.files.uploadedfile import SimpleUploadedFile
from django.test import TestCase
from django.utils import timezone
from django.conf import settings
from model_bakery import baker
from devilry.devilry_comment import mod... | bsd-3-clause | 61,710,043,098,759,816 | 54.652079 | 131 | 0.657728 | false |
milliman/spark | python/pyspark/sql/tests.py | 1 | 107755 | # -*- encoding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the ... | apache-2.0 | 1,648,245,848,236,969,200 | 42.07517 | 100 | 0.58984 | false |
sideeffects/pycparser | pycparser/c_parser.py | 1 | 60688 | #------------------------------------------------------------------------------
# pycparser: c_parser.py
#
# CParser class: Parser and AST builder for the C language
#
# Copyright (C) 2008-2013, Eli Bendersky
# License: BSD
#------------------------------------------------------------------------------
import re
from ... | bsd-3-clause | -4,062,740,907,788,481,500 | 35.515042 | 122 | 0.525145 | false |
cdoremus/udacity-python_web_development-cs253 | src/unit2/rot13/rot13_main.py | 1 | 2113 | '''
In order to be graded correctly for this homework, there are a few things
to keep in mind. We'll be grading your web app by POSTing to your form and
retrieving the text that has been encoded with ROT13. There are a few main
issues you need to keep in mind in order for this to work:
1. The textarea form element... | apache-2.0 | 8,370,183,515,845,830,000 | 38.148148 | 104 | 0.723616 | false |
amd77/parker | inventario/migrations/0007_auto_20171014_1756.py | 1 | 1706 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inventario', '0006_auto_20170930_1629'),
]
operations = [
migrations.CreateModel(
name='ComandoRemoto',
... | gpl-2.0 | -877,057,221,647,865,600 | 37.772727 | 123 | 0.552755 | false |
magus424/powerline | powerline/lint/markedjson/reader.py | 1 | 3808 | # vim:fileencoding=utf-8:noet
from __future__ import (unicode_literals, division, absolute_import, print_function)
import codecs
from powerline.lint.markedjson.error import MarkedError, Mark, NON_PRINTABLE
from powerline.lib.unicode import unicode
# This module contains abstractions for the input stream. You don't ... | mit | 8,412,327,568,441,967,000 | 27 | 86 | 0.676996 | false |
lidavidm/sympy | sympy/liealgebras/type_f.py | 1 | 4555 | from sympy.core import Set, Dict, Tuple, Rational
from .cartan_type import Standard_Cartan
from sympy.matrices import Matrix
class TypeF(Standard_Cartan):
def __init__(self, n):
assert n == 4
Standard_Cartan.__init__(self, "F", 4)
def dimension(self):
"""
Returns the dimensio... | bsd-3-clause | -5,288,564,138,958,715,000 | 27.117284 | 91 | 0.478156 | false |
flailingsquirrel/asciimapper | OSMTileLoader.py | 1 | 3184 | #!/usr/bin/python
######################################################################
# Ascii TMS Viewer
#
#--------------------------------------------------------------------
# Brian Hone | Initial Release
#--------------------------------------------------------------------
# ... | bsd-3-clause | -7,132,981,872,047,901,000 | 39.820513 | 125 | 0.605842 | false |
texttochange/vusion-backend | vusion/persist/content_variable/content_variable_table.py | 1 | 4240 | from vusion.persist import Model
class ContentVariableTable(Model):
MODEL_TYPE = 'content_variable_table'
MODEL_VERSION = '2'
fields= {
'name': {
'required': True
},
'columns': {
'required': True
},
'column-key-selection': {... | bsd-3-clause | -1,479,600,885,574,234,400 | 33.471545 | 79 | 0.519811 | false |
cfe-lab/MiCall | micall/tests/test_trim_fastqs.py | 1 | 17740 | import csv
import os
from io import BytesIO
from io import StringIO
import unittest
from pathlib import Path
import pytest
from micall.core.trim_fastqs import censor, trim, cut_all
from micall.utils.translation import reverse_and_complement
class CensorTest(unittest.TestCase):
def setUp(self):
self.addT... | agpl-3.0 | -4,264,283,094,671,327,700 | 32.471698 | 104 | 0.603439 | false |
phantomii/restalchemy | examples/migrations/8d3025-2st-migration.py | 1 | 1163 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2016 Eugene Frolov <eugene@frolov.net.ru>
#
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# ... | apache-2.0 | -8,124,373,744,143,169,000 | 28.075 | 78 | 0.706793 | false |
brendangregg/bcc | tools/exitsnoop.py | 1 | 10349 | #!/usr/bin/python
# @lint-avoid-python-3-compatibility-imports
from __future__ import print_function
import argparse
import ctypes as ct
import os
import platform
import re
import signal
import sys
from bcc import BPF
from datetime import datetime
from time import strftime
#
# exitsnoop Trace all process termination... | apache-2.0 | -4,594,911,471,573,904,400 | 36.361011 | 101 | 0.574935 | false |
airanmehr/Utils | Simulation.py | 1 | 40529 | '''
Copyleft Oct 10, 2015 Arya Iranmehr, PhD Student, Bafna's Lab, UC San Diego, Email: airanmehr@gmail.com
'''
from __future__ import division
import numpy as np;
import pandas as pd;
np.set_printoptions(linewidth=140, precision=5, suppress=True)
import subprocess, uuid, os,sys
import pylab as plt
import UTILS.Util... | mit | 8,298,902,231,767,576,000 | 46.236597 | 304 | 0.578031 | false |
turdusmerula/kipartman | test/TESTpluginImportCSV.py | 1 | 1083 | import sys, os
#TODO: LOOK UP CURRENT DIRECTORY
# sys.argv[0] <fulldirectory>\\<this filename> in ipython does not describe this filename
# so use os.getcwd
# For this TEST just add both possible paths to the necessary imports
#
#
sys.path.append(
os.path.join(os.path.split(os.path.dirname(sys.argv[0]))[0],'kipa... | gpl-3.0 | 13,814,710,417,899,064 | 22.06383 | 140 | 0.713758 | false |
setsulla/owanimo | script/battle_arena.py | 1 | 1283 | import os
import sys
import time
from owanimo.app.error import ERROR as e
from owanimo.script import allegory_special
from owanimo.util import define
from owanimo.util.log import LOG as L
class Allegory(allegory_special.Allegory):
def __init__(self, runner, profile, player):
allegory_special.Allegory.__in... | mit | -2,368,284,761,337,164,300 | 29.547619 | 95 | 0.605612 | false |
mallconnectionorg/openerp | logistica/stock_posiciones_por_ubicacion/__openerp__.py | 1 | 1871 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | agpl-3.0 | 156,399,566,055,900,960 | 38.787234 | 102 | 0.632086 | false |
ericholscher/django | django/views/i18n.py | 1 | 10581 | import importlib
import json
import os
import gettext as gettext_module
from django import http
from django.conf import settings
from django.template import Context, Template
from django.utils.translation import check_for_language, to_locale, get_language
from django.utils.encoding import smart_text
from django.utils.... | bsd-3-clause | 7,840,672,329,311,219,000 | 33.691803 | 124 | 0.617049 | false |
Alir3z4/django-databrowse | django_databrowse/datastructures.py | 1 | 11642 | """
These classes are light wrappers around Django's database API that provide
convenience functionality and permalink functions for the databrowse app.
"""
from django.db import models
from django.utils import formats
from django.utils.text import capfirst
from django.utils.encoding import smart_text, smart_text, iri... | bsd-3-clause | 8,765,281,568,235,199,000 | 39.423611 | 85 | 0.519155 | false |
SelvorWhim/competitive | Codewars/LinkedListsAlternatingSplit.py | 1 | 1195 | # this solution preserves original list structure, but new nodes shallow copy old data, so if the data is a reference type, changing it in one list will affect one of the others
class Node(object):
def __init__(self, data=None):
self.data = data
self.next = None
# shallow copy of the data,... | unlicense | 2,663,904,410,082,395,600 | 38.833333 | 177 | 0.632636 | false |
OpusVL/odoo | openerp/cli/scaffold.py | 1 | 4096 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import os
import re
import sys
import jinja2
from . import Command
from openerp.modules.module import (get_module_root, MANIFEST, load_information_from_description_file as load_manifest)
class Scaffold(Command):
""" Generates an Odoo module skeleton... | agpl-3.0 | 5,110,078,230,369,223,000 | 29.567164 | 119 | 0.561768 | false |
tensorflow/lingvo | lingvo/tasks/asr/tools/simple_wer.py | 1 | 9729 | # Lint as: python3
# Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | apache-2.0 | -7,434,293,313,371,145,000 | 27.614706 | 80 | 0.617638 | false |
ActiveState/code | recipes/Python/576696_OrderedSet_with_Weakrefs/recipe-576696.py | 1 | 2863 | import collections
from weakref import proxy
class Link(object):
__slots__ = 'prev', 'next', 'key', '__weakref__'
class OrderedSet(collections.MutableSet):
'Set the remembers the order elements were added'
# Big-O running times for all methods are the same as for regular sets.
# The internal self.__ma... | mit | -5,884,483,915,631,324,000 | 35.705128 | 87 | 0.575969 | false |
nvbn/django-discover-jenkins | tests/tests/test_runner.py | 1 | 2207 | from mock import MagicMock, patch
from django.test import TestCase
from discover_jenkins import runner, tasks
class FakeTestRunner(object):
"""
A fake object to stub out the base methods that the mixin's super() calls
require.
"""
def setup_test_environment(self):
pass
def teardown_... | bsd-3-clause | 4,994,888,553,036,383,000 | 28.426667 | 79 | 0.593113 | false |
Tocknicsu/nctuoj_contest | test/api/submission/submission.py | 1 | 3212 | def set_contest():
import datetime
start = datetime.datetime.now() + datetime.timedelta(hours=-1)
end = datetime.datetime.now() + datetime.timedelta(hours=1)
start = str(start)[:-7]
end = str(end)[:-7]
return [{
"name": "adjust to now is in contest",
"url": "/api/contest/",
... | apache-2.0 | -1,998,208,727,368,725,200 | 27.936937 | 90 | 0.382005 | false |
will-hart/blitz | blitz/data/__init__.py | 1 | 8432 | import sys
__author__ = 'Will Hart'
from collections import OrderedDict
class DataContainer(object):
"""
A class for saving and managing data that can be used in the interface. It
also provides an interface for adding DataTransform objects which can be used
to apply filters (i.e. moving average, mu... | agpl-3.0 | -6,738,503,005,614,650,000 | 32.066667 | 120 | 0.591437 | false |
SvichkarevAnatoly/Course-Python-Bioinformatics | semester1/bioseq8/example8.py | 1 | 1082 | import rpy2.robjects as R
def binomialTailTest(count, nTrials, pEvent, oneSided=True):
alt = 'greater' if oneSided else 'two.sided'
func = R.r['binom.test']
result = func(x=count, n=nTrials, p=pEvent, alternative=alt)
return result[2][0]
count = 530
nTrials = 1000
pEvent = 0.5
result = binomialTa... | gpl-2.0 | 5,413,816,223,328,314,000 | 25.390244 | 80 | 0.687616 | false |
cldavid/aquacc | temp_client.py | 1 | 1340 | #!/usr/bin/python
import socket
import re
import subprocess
sensors_db = {
"2857993450082": "in_temp",
"2866BC3C5006E": "out_temp"
}
ALERT_TEMP_IN_MIN = 27.5
ALERT_TEMP_IN_MAX = 29.5
print "Sensor DB"
for i in sensors_db:
print i, sensors_db[i]
print
s = socket.socket()
host = "localhost"
por... | gpl-3.0 | 3,318,766,553,013,326,300 | 24.283019 | 185 | 0.627612 | false |
DG-i/openshift-ansible | roles/lib_openshift/library/oc_serviceaccount_secret.py | 1 | 58441 | #!/usr/bin/env python
# pylint: disable=missing-docstring
# flake8: noqa: T001
# ___ ___ _ _ ___ ___ _ _____ ___ ___
# / __| __| \| | __| _ \ /_\_ _| __| \
# | (_ | _|| .` | _|| / / _ \| | | _|| |) |
# \___|___|_|\_|___|_|_\/_/_\_\_|_|___|___/_ _____
# | \ / _ \ | \| |/ _ \_ _| | __| \_ ... | apache-2.0 | -6,776,691,593,204,628,000 | 33.076385 | 301 | 0.535104 | false |
atamazian/traffic-proc-tools | gg1_function.py | 1 | 2914 | #Simulate queuing system G/G/1
#@Author: Nguyen Duc Viet
import random as rd
import numpy as np
import simpy
#Function for epirical data --------------------------------------------------------------------------------------------
data_wt = []
def arrival(env, number,counter,interval,time_service):
for i in range(... | mit | 5,512,354,887,458,386,000 | 32.494253 | 128 | 0.46431 | false |
myarjunar/QGIS | python/plugins/processing/algs/grass7/Grass7Utils.py | 1 | 18151 | # -*- coding: utf-8 -*-
"""
***************************************************************************
GrassUtils.py
---------------------
Date : February 2015
Copyright : (C) 2014-2015 by Victor Olaya
Email : volayaf at gmail dot com
*********************... | gpl-2.0 | -5,151,247,994,440,638,000 | 39.515625 | 132 | 0.552311 | false |
yuma-m/pychord | pychord/progression.py | 1 | 3153 | # -*- coding: utf-8 -*-
from .chord import as_chord, Chord
class ChordProgression(object):
""" Class to handle chord progressions.
:param list[pychord.Chord] _chords: component chords of chord progression.
"""
def __init__(self, initial_chords=None):
""" Constructor of ChordProgression inst... | mit | 278,924,370,740,419,650 | 28.745283 | 119 | 0.582937 | false |
Kobzol/debug-visualizer | debugger/pycgdb/programinfo.py | 1 | 2577 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2015-2016 Jakub Beranek
#
# This file is part of Devi.
#
# Devi 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 3 of the License, or
# (at yo... | gpl-3.0 | 6,166,318,167,629,636,000 | 29.317647 | 78 | 0.589445 | false |
MicrosoftGenomics/FaST-LMM | fastlmm/util/runner/examples.py | 1 | 2867 | import math
from fastlmm.util.mapreduce import map_reduce
from fastlmm.util.runner import Local, LocalMultiProc, HPC, LocalMultiThread
import os
def is_prime(n):
assert n == int(n) and n>1, "Expect integers greater than 1"
for j in xrange(2,int(math.sqrt(n))+1):
if n % j == 0:
return False
... | apache-2.0 | -1,530,155,641,020,250,400 | 39.394366 | 172 | 0.55354 | false |
electronic-library/electronic-library-core | tests/library_test.py | 1 | 5083 | """
Unit tests for class Library.
"""
from library.bookmark import Bookmark
from library.book import Book
from library.library import Library
lib = Library()
book1_refs = {
'Authors': ['OS guy', 'Some guy'],
'Publisher': 'Forgot publisher',
'Edition': 9,
'Chapters': 18,
'Pages': 900
}
book... | gpl-3.0 | 215,717,537,777,519,400 | 31.793548 | 70 | 0.598465 | false |
jeamland/wsproto | test/test_upgrade.py | 1 | 5508 | # -*- coding: utf-8 -*-
"""
Test the HTTP upgrade phase of connection
"""
import base64
import email
import random
import sys
from wsproto.connection import WSConnection, CLIENT, SERVER
from wsproto.events import (
ConnectionEstablished, ConnectionFailed, ConnectionRequested
)
IS_PYTHON3 = sys.version_info >= (... | mit | -7,825,416,513,577,806,000 | 31.4 | 78 | 0.604757 | false |
ansobolev/regCMPostProc | src/plot.py | 1 | 2816 | #!/usr/bin/env python
# RegCM postprocessing tool
# Copyright (C) 2014 Aliou, Addisu, Kanhu, Andrey
# 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 Licens... | gpl-3.0 | -1,203,394,349,944,687,000 | 34.2125 | 123 | 0.604759 | false |
Bismarrck/tensorflow | tensorflow/python/saved_model/function_serialization.py | 1 | 4869 | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | 3,175,076,075,852,673,500 | 43.669725 | 112 | 0.720476 | false |
robotican/ric | ric_board/scripts/RiCConfigurator/BAL/Devices/PPMReader.py | 1 | 2203 | __author__ = 'tom1231'
from PyQt4.QtCore import QUrl
from PyQt4.QtGui import *
from BAL.Interface.DeviceFrame import DeviceFrame, EX_DEV, PPMReader
from lxml.etree import Element, SubElement, XML
class PPMReader(DeviceFrame):
def __init__(self, frame, data):
DeviceFrame.__init__(self, EX_DEV, frame, data)... | bsd-3-clause | 7,213,415,209,181,855,000 | 30.028169 | 98 | 0.574671 | false |
bokeh/bokeh | examples/integration/glyphs/categorical_multi_glyphs.py | 1 | 1210 | from bokeh.io import show
from bokeh.layouts import gridplot
from bokeh.plotting import figure
x_range = ['a', 'b', 'c', 'd']
y_values = [1., 2., 3., 4.]
y_errors = [.1, .2, .3, .4]
err_xs = []
err_ys = []
for x, y, yerr in zip(x_range, y_values, y_errors):
err_xs.append((x, x))
err_ys.append((y - yerr, y + ... | bsd-3-clause | -1,479,721,902,649,406,000 | 27.139535 | 99 | 0.621488 | false |
awslabs/chalice | tests/codelinter.py | 1 | 2180 | # These are linting checks used in the chalice codebase itself.
# These are used to enforce specific coding standards and constraints.
from pylint.checkers import BaseChecker
from pylint.interfaces import IAstroidChecker
from astroid.exceptions import InferenceError
import astroid
def register(linter):
linter.reg... | apache-2.0 | -3,445,982,109,611,971,000 | 40.923077 | 75 | 0.638532 | false |
smarkets/marge-bot | tests/git_repo_mock.py | 1 | 8075 | import logging as log
from collections import defaultdict
from datetime import timedelta
import functools
import shlex
import marge.git as git
class RepoMock(git.Repo):
@classmethod
def init_for_merge_request(cls, merge_request, initial_target_sha, project, forked_project=None):
assert bool(forked_p... | bsd-3-clause | -5,253,496,412,043,105,000 | 32.367769 | 101 | 0.560991 | false |
seporaitis/mysqlparse | tests/grammar/test_sql_file.py | 1 | 1373 | # -*- encoding:utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import unittest
from mysqlparse.grammar.sql_file import sql_file_syntax
class SqlFileSyntaxTest(unittest.TestCase):
def test_multiple_statements(self):
sql_file = sql_file_syntax.parseString("""
... | mit | -2,081,226,468,887,657,500 | 35.131579 | 82 | 0.641661 | false |
ph1l/halo_radio | WebRoot/Preferences.py | 1 | 2083 | import HaloRadio.TopWeb as TopWeb
import HaloRadio.StyleListMaker as StyleListMaker
import HaloRadio.Style as Style
class plugin(TopWeb.TopWeb):
def GetReqs(self):
return "amv"
def handler(self, context):
import HaloRadio.UserSongStatsListMaker as UserSongStatsListMaker
import HaloRadio.Use... | gpl-2.0 | -5,218,146,967,847,114,000 | 26.773333 | 67 | 0.68555 | false |
CommonsDev/dataserver | commons/migrations/0006_auto__chg_field_pertinence_comment.py | 1 | 7545 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'Pertinence.comment'
db.alter_column(u'commons_pertinen... | agpl-3.0 | 8,106,612,999,738,941,000 | 70.188679 | 219 | 0.557323 | false |
edubecks/vaidecaronaorg | caronasbrasilapp/djangoapp/apps/caronasbrasil/migrations/0009_auto__del_field_caronamodel_date__add_field_caronamodel_from_datetime_.py | 1 | 3750 | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'CaronaModel.date'
db.delete_column(u'caronasbrasil_caronamodel', 'date')
# Adding... | mit | 5,747,936,618,193,574,000 | 51.097222 | 118 | 0.574667 | false |
hveto/hveto | hveto/tests/test_triggers.py | 1 | 1896 | # -*- coding: utf-8 -*-
# Copyright (C) Joshua Smith (2016-)
#
# This file is part of the hveto python package.
#
# hveto 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
# (... | gpl-3.0 | 4,191,869,665,966,519,000 | 32.263158 | 76 | 0.687236 | false |
davidecaminati/Handcart-lift-rotary | Python/facedetect_mio.py | 1 | 3991 | #!/usr/bin/env python
import numpy as np
import cv2
import cv2.cv as cv
from multiprocessing.pool import ThreadPool
from video import create_capture
from common import clock, draw_str
from pyfirmata import Arduino, util
ArduinoPresent = False
if ArduinoPresent :
board = Arduino('/dev/ttyACM0')
#board.digital[2... | gpl-2.0 | -5,949,255,796,883,102,000 | 29.7 | 146 | 0.560261 | false |
peoplepower/composer-sdk-python | com.ppc.Microservices/intelligence/data_request/tools/download_data.py | 1 | 5155 | #!/usr/bin/env python
# encoding: utf-8
'''
Created on January 4, 2019
@author: David Moss
'''
# Data Stream Address
DATASTREAM_ADDRESS = "download_data"
# Data Stream Content
DATASTREAM_CONTENT = {
"force": True
}
# input function behaves differently in Python 2.x and 3.x. And there is no raw_input in 3.x... | apache-2.0 | -2,137,572,307,962,109,000 | 26.275132 | 117 | 0.60582 | false |
eonpatapon/lollypop | src/database_upgrade.py | 1 | 1934 | #!/usr/bin/python
# Copyright (c) 2014-2015 Cedric Bellegarde <cedric.bellegarde@adishatz.org>
# 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 opti... | gpl-3.0 | 8,553,216,954,296,847,000 | 33.535714 | 76 | 0.61272 | false |
Linaro/squad | squad/frontend/comparison.py | 1 | 4547 | from functools import reduce
from django.shortcuts import render, get_object_or_404
from django.core.paginator import Paginator
from django.db.models import Q, Prefetch
from squad.core.models import Project, Group, Build
from squad.core.comparison import TestComparison, MetricComparison
from squad.frontend.utils impo... | agpl-3.0 | -3,463,290,576,986,732,000 | 32.932836 | 98 | 0.635144 | false |
harshavardhana/minio-py | tests/unit/minio_test.py | 1 | 3865 | # -*- coding: utf-8 -*-
# Minio Python Library for Amazon S3 Compatible Cloud Storage, (C) 2015 Minio, 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/licen... | apache-2.0 | -1,125,535,915,757,430,300 | 36.892157 | 83 | 0.62458 | false |
EnviroCentre/jython-upgrade | jython/lib/site-packages/pip/download.py | 1 | 26290 | import cgi
import email.utils
import hashlib
import getpass
import mimetypes
import os
import platform
import re
import shutil
import sys
import tempfile
import pip
from pip.backwardcompat import urllib, urlparse, raw_input
from pip.exceptions import InstallationError, HashMismatch
from pip.util import (splitext, rmt... | mit | -5,345,007,701,288,024,000 | 35.0631 | 79 | 0.568581 | false |
cartologic/cartoview | cartoview/apps_handler/config.py | 1 | 4552 | # -*- coding: utf-8 -*-
import json
import os
from collections import Mapping
import portalocker
class AppsDict(Mapping):
def __init__(self, *args, **kw):
self._app_data = dict(*args, **kw)
def __setitem__(self, key, item):
self._app_data[key] = item
self.__sort_apps()
def __geti... | bsd-2-clause | -8,725,916,909,306,204,000 | 26.92638 | 75 | 0.541301 | false |
sevenian3/ChromaStarPy | solartest.py | 1 | 6462 | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 30 10:54:21 2017
@author: ishort
"""
#plotting:
import matplotlib
import matplotlib.pyplot as plt
#%matplotlib inline
import pylab
#General file for printing ad hoc quantities
#dbgHandle = open("debug.out", 'w')
#Get the data
dataPath = "SolFluxAtlas20... | mit | 3,639,136,743,345,214,000 | 28.780952 | 106 | 0.604302 | false |
lunixbochs/uberserver | server.py | 1 | 4578 | #!/usr/bin/env python
# coding=utf-8
import thread, traceback, signal, socket, sys
from urllib import urlopen
from DataHandler import DataHandler
from Client import Client
from NATServer import NATServer
from Dispatcher import Dispatcher
import ip2country # just to make sure it's downloaded
import ChanSe... | mit | -7,224,281,884,972,797,000 | 24.783626 | 107 | 0.669506 | false |
zooko/egtp_new | egtp/CommHints.py | 1 | 2565 | # Copyright (c) 2001 Autonomous Zone Industries
# This file is licensed under the
# GNU Lesser General Public License v2.1.
# See the file COPYING or visit http://www.gnu.org/ for details.
__revision__ = "$Id: CommHints.py,v 1.2 2002/12/02 19:58:44 myers_carpenter Exp $"
### standard modules
import types
# T... | lgpl-2.1 | 629,575,291,455,173,500 | 46.5 | 95 | 0.759454 | false |
SatAgro/ecoclima | ecoclima_parser/init_all.py | 1 | 2540 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import psycopg2
import sys
def init_all(db_name, user, host, password):
try:
conn = psycopg2.connect("dbname='" + db_name + "' user='" + user +
"' host='" + host + "' password='" + password +
"'")
... | lgpl-3.0 | -574,160,321,714,270,700 | 34.774648 | 83 | 0.385827 | false |
ferdisdot/elbe | elbepack/pkgutils.py | 1 | 7605 | # ELBE - Debian Based Embedded Rootfilesystem Builder
# Copyright (C) 2013 Linutronix GmbH
#
# This file is part of ELBE.
#
# ELBE 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 | 6,152,932,937,203,005,000 | 32.650442 | 154 | 0.575016 | false |
popgengui/negui | agestrucne/pgchromlocifilemanager.py | 1 | 9254 | '''
Description
This class wraps defs to validate a chromosome
loci table file used by LDNe2 to filter out loci
pairs that share a chromosome.
'''
__filename__ = "pgchromlocifilemanager.py"
__date__ = "20180502"
__author__ = "Ted Cosart<ted.cosart@umontana.edu>"
'''
This string designates that
there is no chrom loci f... | agpl-3.0 | -9,070,952,403,891,394,000 | 25.515759 | 96 | 0.654636 | false |
IQSS/miniverse | dv_apps/slackbot/starterbot.py | 1 | 2042 | import os
import time
from slackclient import SlackClient
# starterbot's ID as an environment variable
BOT_ID = os.environ.get("BOT_ID")
# constants
AT_BOT = "<@" + BOT_ID + ">"
EXAMPLE_COMMAND = "gofish"
# instantiate Slack & Twilio clients
slack_client = SlackClient(os.environ.get('SLACK_BOT_TOKEN'))
def handle_c... | mit | -338,846,921,837,846,000 | 36.814815 | 75 | 0.633203 | false |
bhell/jimi | jimi/jimi/settings_orig.py | 1 | 5206 | # Django settings for jimi project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', ... | bsd-3-clause | -6,768,545,711,191,450,000 | 33.476821 | 101 | 0.680369 | false |
mattduan/proof | driver/test/testMySQLConnection.py | 1 | 1469 | """
A testcase for MySQLConnection.
"""
import proof.driver.MySQLConnection as MySQLConnection
import proof.driver.MySQLCursor as MySQLCursor
import proof.driver.MySQLDictCursor as MySQLDictCursor
import unittest
class testMySQLConnection(unittest.TestCase):
def setUp(self):
self.__host = 'localh... | bsd-3-clause | 1,739,310,116,739,996,700 | 27.803922 | 77 | 0.554118 | false |
globocom/database-as-a-service | dbaas/physical/migrations/0112_auto__add_ip.py | 1 | 36235 | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Ip'
db.create_table(u'physical_ip', (
(u'id',... | bsd-3-clause | 7,484,833,559,263,377,000 | 92.391753 | 239 | 0.560977 | false |
vlegoff/tsunami | src/primaires/scripting/extensions/selection.py | 1 | 8145 | # -*-coding:Utf-8 -*
# Copyright (c) 2010-2017 LE GOFF Vincent
# 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, this
# ... | bsd-3-clause | 178,633,146,605,590,900 | 45.732558 | 80 | 0.663971 | false |
johnkeates/statsite | sinks/graphite.py | 1 | 5895 | """
Supports flushing metrics to graphite
"""
import re
import sys
import socket
import logging
import pickle
import struct
# Initialize the logger
logging.basicConfig()
SPACES = re.compile(r"\s+")
SLASHES = re.compile(r"\/+")
NON_ALNUM = re.compile(r"[^a-zA-Z_\-0-9\.]")
class GraphiteStore(object):
def __init... | bsd-3-clause | -8,307,928,939,181,115,000 | 31.39011 | 98 | 0.575403 | false |
itielshwartz/BackendApi | lib/googleapiclient/schema.py | 1 | 10198 | # Copyright 2014 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 required by applicable law or agree... | apache-2.0 | -364,215,873,647,700,700 | 31.58147 | 96 | 0.581683 | false |
macourteau/scripts | chromium/sublime/find_owners.py | 1 | 2139 | """Sublime Text plugin to find the Chromium OWNERS for the current file.
In a Chromium checkout, this will search for the closest OWNERS file and list
its contents. Select an entry to copy to the clipboard. You can also open the
displayed OWNERS file, or walk up the directory tree to the next OWNERS file.
"""
import ... | mit | -6,741,106,143,749,502,000 | 38.611111 | 77 | 0.636746 | false |
toidi/hadoop-yarn-api-python-client | tests/test_history_server.py | 1 | 3978 | # -*- coding: utf-8 -*-
from mock import patch
from tests import TestCase
from yarn_api_client.history_server import HistoryServer
from yarn_api_client.errors import IllegalArgumentError
@patch('yarn_api_client.history_server.HistoryServer.request')
class HistoryServerTestCase(TestCase):
def setUp(self):
... | bsd-3-clause | 2,893,879,876,168,801,000 | 44.204545 | 119 | 0.602815 | false |
kannon92/psi4 | psi4/share/psi4/scripts/vmd_cube.py | 1 | 12482 | #!/usr/bin/env python
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2016 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This program is free software; you can redistribute it and/or modify
#... | gpl-2.0 | 6,798,562,547,059,358,000 | 34.971182 | 130 | 0.608476 | false |
gstarnberger/paasta | paasta_tools/check_marathon_services_replication.py | 1 | 17359 | #!/usr/bin/env python
# Copyright 2015-2016 Yelp 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 | -9,141,361,211,709,925,000 | 41.23601 | 118 | 0.656029 | false |
kacozg/Alice | core.py | 1 | 1695 | """
How to run scrapers programmatically from a script
"""
import sys
#ubuntu sys.path.insert(0, '/home/kaco/Desktop/alice')
#windows sys.path.insert(0, 'C:/Users/Carlos/Google Drive/ZetUp/Buscato/alice')
sys.path.insert(0, 'C:/alice')
from spiders.abcdin_spider import AbcdinSpider
from spiders.casaximena_spider impo... | apache-2.0 | 3,368,816,912,896,692,000 | 31.596154 | 80 | 0.830088 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.