gt
stringclasses
1 value
context
stringlengths
2.49k
119k
# -*- coding: utf-8 -*- # Copyright (c) Vispy Development Team. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. """ This module provides a (functional) API to OpenGL ES 2.0. There are multiple backend implementations of this API, available as submodules of this module. O...
import unittest from robot.utils.asserts import assert_equal from robot.model.statistics import Statistics from robot.result import TestCase, TestSuite def verify_stat(stat, name, passed, failed, skipped, critical=None, combined=None, id=None, elapsed=0): assert_equal(stat.name, name, 'stat.name'...
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # Copyright (c) 2012 VMware, Inc. # Copyright (c) 2011 Citrix Systems, Inc. # Copyright 2011 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. Yo...
# -*- coding: utf-8 -*- """Test object privileges The majority of other tests exclude access privileges. These explicitly request it. In addition, the roles 'user1' and 'user2' are created if they don't exist. """ from pyrseas.testutils import DatabaseToMapTestCase from pyrseas.testutils import InputMapToSqlTestCas...
#!/usr/bin/env python import sys import math barwidth=15 barchars=" -=#" class StatusWrapper: def __init__(self, fd): self.displayed="" self.fd = fd def write(self, s): if self.displayed== "": self.fd.write(s) else: old=self.displayed self.status("") self.write(s) se...
# Authors: Mainak Jas <mainak@neuro.hut.fi> # Teon Brooks <teon.brooks@gmail.com> # # License: BSD (3-clause) import os import os.path as op import glob import warnings import shutil from nose.tools import assert_true, assert_equal, assert_raises from mne import Epochs, read_events, pick_types, read_evokeds ...
# Copyright 2015 gRPC 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 writing...
import re import sys import time import datetime import random from six import iteritems try: from urllib.parse import urlencode except ImportError: from urllib import urlencode from .PostProcessorBase import PostProcessorBase from pandajedi.jedirefine import RefinerUtils from pandaserver.taskbuffer import E...
## # Copyright (c) 2010-2014 Apple 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 l...
import sys import warnings try: import itertools.izip as zip except ImportError: pass from itertools import product import numpy as np from .. import util from ..dimension import dimension_name from ..element import Element from ..ndmapping import NdMapping, item_check, sorted_context from .interface import...
#!/usr/bin/env python """ Tkinter GUI for editing Compass projects. """ try: # Python 3 from tkinter import * import tkinter.ttk as ttk import tkinter.filedialog as tkFileDialog except ImportError as e: # Python 2 from Tkinter import * import ttk import tkFileDialog import sys import l...
import datetime import math import os from functools import partial import numpy import pyproj import rasterio from django.conf import settings from ncdjango.models import Service from netCDF4 import Dataset from rasterio.crs import CRS from rasterio.enums import Resampling from rasterio.features import rasterize from...
# This file contains various useful constants for py3status GENERAL_DEFAULTS = { "color_bad": "#FF0000", "color_degraded": "#FFFF00", "color_good": "#00FF00", "color_separator": "#333333", "colors": True, "interval": 5, "output_format": "i3bar", } MAX_NESTING_LEVELS = 4 TIME_FORMAT = "%Y-...
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
""" =================================== The :mod:`mpi_array.globale` Module =================================== Defines :obj:`gndarray` class and factory functions for creating multi-dimensional distributed arrays (Partitioned Global Address Space). Classes ======= .. autosummary:: :toctree: generated/ gndarr...
# -*- coding: utf-8 -*- from nose.tools import * # flake8: noqa from urlparse import urlparse from framework.auth.core import Auth from website.models import NodeLog from api.base.settings.defaults import API_BASE from tests.base import ApiTestCase from tests.factories import ( ProjectFactory, RegistrationF...
from planar import Vec2 from typing import List class UnknownPlayerIdException(Exception): def __init__(self, player_id): super().__init__("Unknown Player ID %d" % player_id) class Game: RANKED_GAME_ID = -1 def __init__(self, id_: int, tick: int, time_left: float, player_id: int, players: List[...
# cython: infer_types=True # # Tree visitor and transform framework # import cython import inspect import Nodes import ExprNodes import Naming import Errors import DebugFlags class TreeVisitor(object): """ Base class for writing visitors for a Cython tree, contains utilities for recursing such trees usi...
#!/usr/bin/env python """ 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");...
# Copyright (c) The Johns Hopkins University/Applied Physics Laboratory # 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/licen...
"""Utilities for parsing content from MWS responses. XML to Dict code Borrowed from https://github.com/timotheus/ebaysdk-python """ from io import BytesIO from zipfile import ZipFile import re import warnings import xml.etree.ElementTree as ET # Removed top-level import to correct circular imports # (we're in backpor...
# ============================================================================= # Copyright (c) 2016, Cisco Systems, Inc # 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 sour...
# Copyright 2012 OpenStack Foundation # # 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...
"""Contains wrappers to quickly work with bioinformatics tools """ import re import os import glob import h5py import numpy as np import pandas as pd from ggr.util.utils import run_shell_cmd def run_homer( bed_file, background_bed_file, out_dir, mknown=None, parallel=24): ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: ai ts=4 sts=4 et sw=4 """ BlueButtonFHIR_API FILE: views Created: 3/8/16 1:45 AM """ __author__ = 'Mark Scrimshire:@ekivemark' import datetime import json import random import requests import string from collections import OrderedDict from django.conf import set...
# 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 # distribu...
# 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 ...
# Copyright 2019 DeepMind Technologies Limited. 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 ...
import os import json import numpy as np import pandas as pd import matplotlib.pyplot as plt from matplotlib2tikz import save as tikz_save from matplotlib2tikz import get_tikz_code from .. import tensorflow class Analyzer: """DeepOBS analyzer class to generate result plots or get other summaries. Args: ...
#!/usr/bin/env python # # Copyright 2007 The Closure Linter 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 #...
""" homeassistant.components.light ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Provides functionality to interact with lights. It offers the following services: TURN_OFF - Turns one or multiple lights off. Supports following parameters: - transition Integer that represents the time the light should take to transition to th...
# Copyright 2017 The Sonnet 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 applicable l...
from __future__ import unicode_literals import pytest import boto import sure # noqa from boto.exception import EC2ResponseError from moto import mock_ec2_deprecated from .helpers import rsa_check_private_key RSA_PUBLIC_KEY_OPENSSH = b"""\ ssh-rsa \ AAAAB3NzaC1yc2EAAAADAQABAAABAQDusXfgTE4eBP50NglSzCSEGnIL6+cr6m3...
# Copyright 2017, Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
"""The test for the Template sensor platform.""" from datetime import timedelta from os import path from unittest.mock import patch from homeassistant import config from homeassistant.components.template import DOMAIN from homeassistant.helpers.reload import SERVICE_RELOAD from homeassistant.setup import async_setup_c...
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest from mock import patch from mock import MagicMock as Mock from pyos.clouddatabases import CloudDatabaseBackupManager from pyos.clouddatabases import CloudDatabaseDatabase from pyos.clouddatabases import CloudDatabaseFlavor from pyos.clouddatabases import ...
from __future__ import print_function from __future__ import absolute_import from __future__ import division from compas.topology import breadth_first_traverse __all__ = [ 'mesh_face_adjacency', 'mesh_unify_cycles', 'mesh_flip_cycles', ] def _mesh_face_adjacency(mesh, nmax=10, radius=10.0): fkey_in...
<<<<<<< HEAD <<<<<<< HEAD """ dropbox.session.DropboxSession is responsible for holding OAuth authentication info (app key/secret, request key/secret, access key/secret). It knows how to use all of this information to craft properly constructed requests to Dropbox. A DropboxSession object must be passed to a dropbox.c...
from __future__ import print_function import os, sys import re import webbrowser import datetime import logging from storage import RemoteStorage import flickr_api from flickr_api.api import flickr from file_info import FileInfo from folder_info import FolderInfo from local_storage import mkdirp from config import __pa...
from __future__ import division import csv from django.shortcuts import render_to_response from django.template import RequestContext from django.db.models import Q from django.http import HttpResponse from django.utils.encoding import smart_str from django.views.decorators.csrf import csrf_exempt from django.core imp...
# Copyright (C) 2016 Antoine Carme <Antoine.Carme@Laposte.net> # All rights reserved. # This file is part of the Python Automatic Forecasting (PyAF) library and is made available under # the terms of the 3 Clause BSD license import pandas as pd import numpy as np from enum import IntEnum from . import Utils as tsuti...
# Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University # Copyright (c) 2011, 2012 Open Networking Foundation # Copyright (c) 2012, 2013 Big Switch Networks, Inc. # See the file LICENSE.pyloxi which should have been included in the source distribution # Automatically generated by LOXI from ...
""" Copyright 2010 Rusty Klophaus <rusty@basho.com> Copyright 2010 Justin Sheehy <justin@basho.com> Copyright 2009 Jay Baird <jay@mochimedia.com> This file is provided to you 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 o...
import unittest from unittest.mock import patch, call from mistletoe import block_token, span_token from mistletoe.block_tokenizer import FileWrapper class TestToken(unittest.TestCase): def setUp(self): self.addCleanup(lambda: span_token._token_types.__setitem__(-1, span_token.RawText)) patcher = ...
""" Support for MQTT Template lights. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/light.mqtt_template/ """ import logging import voluptuous as vol from homeassistant.core import callback from homeassistant.components import mqtt from homeassistant.co...
# Copyright The PyTorch Lightning team. # # 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 i...
# 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...
# Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from grit.format.policy_templates.writers import template_writer NEWLINE = '\r\n' def GetWriter(config): '''Factory method for creating AdmWriter ...
# Copyright 2019 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
""" Testing for grid search module (sklearn.grid_search) """ from collections import Iterable, Sized from sklearn.externals.six.moves import cStringIO as StringIO from sklearn.externals.six.moves import xrange from itertools import chain, product import pickle import sys import warnings import numpy as np import sci...
''' *File: domain_restriction.py *Author: Nicholas Mattei (nicholas.mattei@nicta.com.au) *Date: March 18, 2014 * * Copyright (c) 2014, Nicholas Mattei and NICTA * All rights reserved. * * Developed by: Nicholas Mattei * NICTA * http://www.nickmattei.net * ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from flask import url_for from freezegun import freeze_time from CTFd.cache import clear_pages from CTFd.utils import set_config from CTFd.utils.config.pages import get_pages from CTFd.utils.encoding import hexencode from tests.helpers import ( create_ctfd,...
"""Manage Treadmill allocations. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging import click import six from treadmill import cli from treadmill import restclient from treadmill import context fr...
from django import forms from django.core.exceptions import ImproperlyConfigured from django.forms.models import ModelForm from django.template import TemplateSyntaxError from django.test.utils import override_settings from django.urls import reverse from django.utils.encoding import smart_str from django.utils.transl...
from __future__ import (absolute_import, division, print_function, unicode_literals) #from future.builtins import * import os import re class Block(object): _highest_id = 0 def __init__(self, selector, shape, parts_or_spec, is_blocking=False, help_text="", defaults=[]): ...
# Licensed to the Software Freedom Conservancy (SFC) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The SFC licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
#!/usr/bin/env python __author__ = 'Stephen P. Henrie' from os import path from StringIO import StringIO from ndg.xacml.parsers.etree.factory import ReaderFactory from ndg.xacml.core import Identifiers, XACML_1_0_PREFIX from ndg.xacml.core.attribute import Attribute from ndg.xacml.core.attributevalue import Attribut...
from numpy import array, mean, median, std, size, arange, percentile,\ asarray, zeros, corrcoef, where, unique, array_equal, delete, \ ravel, logical_not, unravel_index, prod, random, shape, \ dot, outer, expand_dims, ScalarType, ndarray, sqrt, pi, angle, fft, \ roll, polyfit, polyval, ceil, float64, fi...
# coding=utf-8 from contextlib import contextmanager import datetime from django.test import TestCase from django.utils import timezone import mock from cla_common.constants import CASE_SOURCE from cla_common import call_centre_availability from core.tests.mommy_utils import make_recipe, make_user from cla_eventlog i...
# ***** BEGIN LICENSE BLOCK ***** # Version: MPL 1.1/GPL 2.0/LGPL 2.1 # # The contents of this file are subject to the Mozilla Public License Version # 1.1 (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.mozilla.org/MPL/ # # Softwa...
from decimal import Decimal from functools import partial import pytz import unittest from mock import Mock from flask_restful.fields import MarshallingException from flask_restful.utils import OrderedDict from flask_restful import fields from datetime import datetime, timedelta, tzinfo from flask import Flask, Bluepri...
import os import re import codecs import numpy as np import theano models_path = "./models" eval_path = "./evaluation" eval_temp = os.path.join(eval_path, "temp") eval_script = os.path.join(eval_path, "conlleval") def get_name(parameters): """ Generate a model name from its parameters. """ l = [] ...
from TimelineView import * from random import random from PyQt4 import QtOpenGL from time import time _keyid = 1 class TestKey(): def __init__( self, track ): global _keyid _keyid += 1 self.name = 'key - %d' % _keyid # self.length = random()*500/1000.0 self.length = 1 self.pos = ( random()*1000 + 50 ) ...
"""Functions that select points from a point cloud and put them in a new point cloud.""" import math import os import shapefile import shapely import sys from shapely.geometry import Point from shapely.errors import WKTReadingError from shapely.wkt import loads from shapely.geometry import box from shapely.vectorized ...
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os import sub...
""" A fast implementation of the Voigt function. """ # p2.6+ compatibility from __future__ import division, print_function, unicode_literals import numpy as np from math import sqrt, pi sqrtpi = sqrt(pi) # u values corresponding to H table values below U = np.arange(0, 20, 0.01) # Table of h1 and h3 for use in Voi...
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
# This is a variant of the very old (early 90's) file # Demo/threads/bug.py. It simply provokes a number of threads into # trying to import the same module "at the same time". # There are no pleasant failure modes -- most likely is that Python # complains several times about module random having no attribute # randran...
#!/usr/bin/env python2 import os import sys import socket import select import enum import time import threading import pprint; pp = pprint.pprint import socks5 # ---------------------------------------------------------------------- def shuffle(src, dst): try: data = src.recv(2**16) if not data: return 0 ...
# # Copyright (C) 2014 Tommy Winther # http://tommy.winther.nu # # This Program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # Thi...
# -*- coding: utf-8 -*- """Parser for Windows EventLog (EVT) files.""" import pyevt from dfdatetime import posix_time as dfdatetime_posix_time from dfdatetime import semantic_time as dfdatetime_semantic_time from plaso.containers import events from plaso.containers import time_events from plaso.lib import definition...
from collections import OrderedDict from qnet import ( One, Zero, ZeroOperator, IdentityOperator, ZeroSuperOperator, IdentitySuperOperator, ZeroKet, TrivialKet, FullSpace, TrivialSpace, CIdentity, CircuitZero, IdxSym, BasisKet, OperatorSymbol, FockIndex, KetIndexedSum, OperatorIndexedSum, StrLabel, Loca...
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
""" Implements a special view to visualize and stage pieces of a project's current diff. """ from collections import namedtuple from contextlib import contextmanager import os import sublime from sublime_plugin import WindowCommand, TextCommand, EventListener from . import intra_line_colorizer from .navigate import ...
from .td import Connection from .td import QueryEngine from .td import ResultProxy from .td import StreamingUploader from .td import _convert_time_column from .td import _convert_index_column from .td import _convert_date_format from pandas_td import connect from pandas_td import read_td from pandas_td import read_td_...
# coding: utf-8 """ Cloudbreak API Cloudbreak is a powerful left surf that breaks over a coral reef, a mile off southwest the island of Tavarua, Fiji. Cloudbreak is a cloud agnostic Hadoop as a Service API. Abstracts the provisioning and ease management and monitoring of on-demand clusters. SequenceIQ's Cloud...
# Copyright (c) 2014 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
#!/usr/bin/env python """Common utilities to parse external input, e.g. for preload and service gateway""" __author__ = 'Michael Meisinger, Ian Katz' import ast from pyon.public import BadRequest, IonObject, log from interface import objects def get_typed_value(value, schema_entry=None, targettype=None, strict=F...
#!/usr/bin/env python # Copyright 2013 Brett Slatkin # # 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...
# # ElementTree # $Id: ElementTree.py 2326 2005-03-17 07:45:21Z fredrik $ # # light-weight XML support for Python 1.5.2 and later. # # history: # 2001-10-20 fl created (from various sources) # 2001-11-01 fl return root from parse method # 2002-02-16 fl sort attributes in lexical order # 2002-04-06 fl TreeBuilde...
#!/usr/bin/env python # Copyright 2011 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 ...
#!/usr/bin/env python3 import time import json import os import re from scanner import downloader, imageboard_info from scanner.config import DB_FILE, currently_downloading import sqlite3 import subprocess import urllib.request import threading import http.client class thread_scanner: def __init__(self, keywords_...
from __future__ import absolute_import import pytest from sentry.utils.compat.mock import patch from sentry.tasks.relay import schedule_update_config_cache from sentry.relay.projectconfig_cache.redis import RedisProjectConfigCache from sentry.relay.projectconfig_debounce_cache.redis import RedisProjectConfigDebounce...
"""init Revision ID: 184ed1055383 Revises: None Create Date: 2013-04-20 10:15:06.179822 """ # revision identifiers, used by Alembic. revision = '184ed1055383' down_revision = None from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - please adjust! ### op.c...
# # Copyright 2017 CNIT - Consorzio Nazionale Interuniversitario per le Telecomunicazioni # # 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/LICE...
# -*- coding: utf-8 -*- # uft.py --- Unitary fourier transform # Taken from skimage.restoration and converted for use with pyfftw # b72a960 on Dec 16, 2014 """Function of unitary fourier transform and utilities This module implements the unitary fourier transform, also known as the ortho-normal transform. It is esp...
# (C) Copyright 2017 Inova Development 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 appl...
# Tests of streamgapdf implementation, impulse tests moved to # test_streamgapdf_impulse.py import numpy from scipy import integrate import pytest sdf_sanders15= None #so we can set this up and then use in other tests sdf_sanders15_unp= None #so we can set this up and then use in other tests sdfl_sanders15= None #so we...
"""Convert H.264 mkv files to mp4 files playable on the PS3, and "correct" the MPEG4/ISO/AVC profile for use on the PS3.""" try: from .version import __version__ except ImportError: __version__ = 'unknown' from . import info import sys import os import re import getopt import subprocess as sp import struct im...
# Copyright 2014 Intel 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 # # Unless required by applicable law or agreed to in writing, soft...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # fsfs-reshard.py REPOS_PATH MAX_FILES_PER_SHARD # # Perform an offline conversion of an FSFS repository between linear (format # 2, usable by Subversion 1.4+) and sharded (format 3, usable by Subversion # 1.5+) layouts. # # The MAX_FILES_PER_SHARD argument specifies the...
from __future__ import absolute_import, division, print_function, with_statement import contextlib import datetime import functools import sys import textwrap import time import weakref from tornado.concurrent import return_future, Future from tornado.escape import url_escape from tornado.httpclient import AsyncHTTPC...
# Copyright 2019 DeepMind Technologies Limited. 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 ...
# Copyright (c) 2015, Malte Schwarzkopf # 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 # list of conditions and...
#!/usr/bin/env python # 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...
# Django settings import os import json from boto.s3.connection import S3Connection, Key PROJECT_PATH = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) # read secrets from json print "PROJECT_PATH: " + str(PROJECT_PATH) SECRETS_PATH = os.path.join(PROJECT_PATH, "secret.json") LOCAL = os.environ.get("LOCAL"...
"""Sensitive variant calling using VarDict. Defaults to using the faster, equally sensitive Java port: https://github.com/AstraZeneca-NGS/VarDictJava if 'vardict' or 'vardict-java' is specified in the configuration. To use the VarDict perl version: https://github.com/AstraZeneca-NGS/VarDict specify 'vardict-perl'....
from django.views.generic import CreateView, DetailView, UpdateView from django import http from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.shortcuts import redirect from django.core.exceptions import PermissionDenied from rest_framework.renderers import JSONRenderer from message_...
import argparse import os import sys import warnings from gettext import gettext from typing import Any from typing import Callable from typing import cast from typing import Dict from typing import List from typing import Mapping from typing import Optional from typing import Sequence from typing import Tuple from typ...
from __future__ import unicode_literals import re import tempfile from django.contrib.gis import gdal from django.contrib.gis.geos import HAS_GEOS from django.core.management import call_command from django.db import connection from django.test import TestCase, ignore_warnings, skipUnlessDBFeature from django.utils i...