text
stringlengths
17
737k
""" Unit or integration tests for gpustat """ # flake8: ignore=E501 from __future__ import print_function from __future__ import absolute_import import unittest import sys import os import shlex from collections import namedtuple import psutil import pynvml from six.moves import cStringIO as StringIO import gpustat...
import os import csv import glob import json from sqlalchemy.orm.exc import NoResultFound, MultipleResultsFound class BaseIngest(object): def __init__(self, session): self.session = session def get_id(self, model, **conditions): try: record_id = self.session.query(model).filter...
#!/usr/bin/python #-*-coding:utf-8-*- import pymongo import random import urllib import urllib2 import json from bson import Binary, Code from bson import json_util from bson.json_util import dumps from bson.json_util import loads from bson.objectid import ObjectId from datetime import date, datetime def post(url, da...
#!/usr/bin/python # -*- coding: utf-8 -*- #------------------------------------------------------------------------------- # Visualising the Segmented-CTE maze-solving in CS373 Unit6-6 # # Source : https://www.udacity.com/wiki/CS373%20Visualizing%20Maze%20Driving # # Custom modules: # vegesvgplot.py http://pas...
# Copyright 2009, Peter A. Bigot # # 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 ...
""" Ian Dansereau GroupMeReddit RedditBot.py 5/5/16 """ import mimetypes import random import time from enum import Enum from collections import OrderedDict from urllib.parse import urlparse from urllib.request import urlopen from groupy import Group, Bot, config from praw import Reddit, errors from ...
import sys, os if sys.platform != "darwin": print "GUI: your platform is probably not supported yet" from guiCocoaCommon import * from utils import * import Traits try: app except NameError: # only declare if not yet declared app = None def setupAppleMenu(): # http://www.cocoabuilder.com/archive/cocoa/192181-i...
#!/usr/bin/env python3 # # vdbtest.py - VDbench Test Script # # Author: Ramon A. Lovato (ramonalovato.com) # For: DeepStorage, LLC (deepstorage.net) # import argparse import os.path import os import re from vdbconfig import vdbconfig from NetJobs import NetJobs DEFAULT_RUNS = 5 DEFAULT_TIMEOUT = 0 ARCHIVE_DIR_FORMAT...
import time import uuid from collections import defaultdict from datetime import datetime from functools import reduce from importlib import import_module from itertools import chain from django.conf import settings from django.contrib.auth.models import AnonymousUser from django.db import models from django.db.models...
# Copyright 2018 The Bazel 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 la...
"""Impementation for print_rel_notes.""" def print_rel_notes( name, repo, version, artifact_name = None, outs = None, setup_file = "", deps_method = "", toolchains_method = "", org = "bazelbuild", changelog = None, mirror_host = No...
from som.interpreter.bytecodes import Bytecodes as BC class MethodGenerationContext(object): def __init__(self): self._holder_genc = None self._outer_genc = None self._block_method = None self._signature = None self._arguments = [] self._primitive = None ...
VERSION = (0, 2, 0) from tasks import *
# 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 # distributed under the...
# # The Qubes OS Project, https://www.qubes-os.org/ # # Copyright (C) 2018 Rusty Bird <rustybird@net-c.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the L...
# 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...
""" Example to move robot forward for 10 seconds Use "python3 run.py [--sim] example1" to execute """ class Run: def __init__(self, factory): """Constructor. Args: factory (factory.FactoryCreate) """ self.create = factory.create_create() self.time = factory.cre...
import logging import pendulum from django.db.models import Q, DateTimeField from share.util import DictHashingDict __all__ = ('GraphDisambiguator', ) logger = logging.getLogger(__name__) class GraphDisambiguator: def __init__(self): self._index = self.NodeIndex() def prune(self, change_graph): ...
# vim: set et ts=4 sw=4 fileencoding=utf-8: ''' yalp_grok.yalp_grok =================== ''' import os import copy from collections import namedtuple import regex as re DEFAULT_PATTERNS_DIRS = [ os.path.join(os.path.dirname(os.path.abspath(__file__)), 'patterns') ] # Attributes used to determine type on groupdict...
try: import simplejson as json except ImportError: import json import logging import string import autonetkit.anm import autonetkit.log as log import autonetkit.nidb import autonetkit.plugins import autonetkit.plugins.ipv4 import netaddr import networkx as nx from networkx.readwrite import json_graph from aut...
import logging # Django from django.contrib.auth.models import BaseUserManager from django.core.validators import validate_email from django.core.exceptions import ValidationError from django.db.models import Manager from django.db.models import Q from django.db import IntegrityError from django.apps import apps ...
# -*- coding: utf-8 -*- # # SIFRA documentation build configuration file, created by # sphinx-quickstart on Thu Feb 25 09:28:33 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All...
# -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2013 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pu...
from abc import abstractmethod, ABCMeta import socket import math import os import sys import time from jsonschema import ValidationError, Draft4Validator from fabric.api import run, env from fabric.context_managers import settings, hide from cosmo_cli import set_global_verbosity_level, init_logger lgr, flgr = init_...
import copy import functools from typing import List from typing import Tuple from typing import Union import torch from syft.frameworks.torch.tensors.interpreters.abstract import AbstractTensor from syft.generic import ObjectStorage from syft.codes import MSGTYPE import syft as sy from syft.workers import AbstractW...
# Copyright (c) 2013 Mirantis, 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...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import shutil import contextlib import tempfile from StringIO import StringIO import xml.etree.ElementTree as ET from PyQt4.QtCore import * from qgis.core import * def make_out_dir(dst_dirpath): """Функия берет путь и создаёт эту папку (если она не существу...
#!/usr/bin/python # -*- coding: utf-8 -*- ############################################################################### # # ODOO (ex OpenERP) # Open Source Management Solution # Copyright (C) 2001-2015 Micronaet S.r.l. (<https://micronaet.com>) # Developer: Nicola Riolini @thebrush (<https://it.linkedin.com/in/thebr...
import os import sys import shlex import subprocess import logging from collections import OrderedDict # TODO: Understand, vet this logging set-up logger = logging.getLogger() logger.setLevel(logging.INFO) try: logger.handlers[0].stream = sys.stdout # Enables logging on jupyter notebooks except: pass class ...
from collections import OrderedDict, defaultdict import warnings import copy import numpy as np from scale_factors import LinearScaleFactor from .utils import OrderedHashDict from . import utils class Project(object): """Class to simulate experiments with a given model Attributes ---------- model :...
''' -- imports from python libraries -- ''' from django.template.defaultfilters import slugify import hashlib # for calculating md5 # import os -- Keep such imports here ''' -- imports from installed packages -- ''' from django.http import HttpResponseRedirect from django.http import HttpResponse from django.shortcut...
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2017 SML 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...
# -*- coding: utf-8 -*- from .edge_predicates import edge_predicate from ...constants import ANNOTATIONS __all__ = [ 'build_annotation_dict_all_filter', 'build_annotation_dict_any_filter', ] def _annotation_dict_all_filter(data, query): """A filter that matches edges with the given dictionary as a sub-...
from urlparse import urlunsplit from django.conf import settings from django.utils.http import urlquote from popit_api import PopIt def create_popit_api_object(): api_properties = { 'instance': settings.POPIT_INSTANCE, 'hostname': settings.POPIT_HOSTNAME, 'port': settings.POPIT_PORT, ...
import os from serf_master import SerfHandler from utils import with_payload, truncated_stdout class BaseHandler(SerfHandler): def __init__(self, *args, **kwargs): super(BaseHandler, self).__init__(*args, **kwargs) self.setup() def setup(self): pass @truncated_stdout @with_...
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2017 SML 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...
# Copyright (c) 2014 AnsibleWorks, Inc. # All Rights Reserved. # Python import json import re import socket import urlparse import logging import os.path from dateutil import rrule # PyYAML import yaml # Django from django.conf import settings from django.contrib.auth import authenticate from django.contrib.auth.mod...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # MetPy documentation build configuration file, created by # sphinx-quickstart on Wed Apr 22 15:27:44 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # auto...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright (c) 2014,掌阅科技 All rights reserved. 摘 要: agent.py 创 建 者: zhuangshixiong 创建日期: 2015-08-26 """ import urllib import operator import json from difflib import Differ from tornado.web import authenticated from kazoo.exceptions import NoNodeError from handler.b...
"""RachioObject module containing a helper class for all API calls.""" import json from requests import Session _API_URL = "https://api.rach.io/1/public" _TIMEOUT = 25 class RachioObject: """The Rachio base object.""" def __init__(self, authtoken: str, http_session=None): """Rachioobject class init...
# Licensed under a 3-clause BSD style license - see LICENSE.rst """This module implements the combiner class.""" import numpy as np from numpy import ma try: import bottleneck as bn except ImportError: HAS_BOTTLENECK = False else: HAS_BOTTLENECK = True from .core import sigma_func from astropy.nddata i...
# -*- coding: utf-8 -*- # # biweeklybudget documentation build configuration file, created by # sphinx-quickstart on Sat Jun 6 16:12:56 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2015-2017: # Frédéric Mohier, frederic.mohier@alignak.net # """ Alignak - Receiver module for the Web services """ # Package name __pkg_name__ = u"alignak_module_ws" # Module type for PyPI keywords # Used for: # - PyPI keywords __module_types__ = u"...
# pylint: disable=too-many-lines import enum import os import random from collections import defaultdict import filelock import gevent import structlog from coincurve import PrivateKey from eth_utils import is_binary_address from gevent.event import AsyncResult, Event from gevent.lock import Semaphore from raiden imp...
""" inputlocator.py - locate input files by name based on the reference folder structure. """ import os import shutil import tempfile import cea.config __author__ = "Daren Thomas" __copyright__ = "Copyright 2017, Architecture and Building Systems - ETH Zurich" __credits__ = ["Daren Thomas", "Jimeno A. Fonseca", "Sree...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2015-2017: # David Durieux, david.durieux@alignak.net # """ Alignak - Arbiter, Scheduler and Broker modules for the Alignak backend """ # Package name __pkg_name__ = u"alignak_module_backend" # Module type for PyPI keywords # Used for: # - PyPI keyw...
import sqlite3 import threading from typing import Any, Optional, Tuple from raiden.constants import SQLITE_MIN_REQUIRED_VERSION from raiden.exceptions import InvalidDBData, InvalidNumberInput from raiden.storage.utils import DB_SCRIPT_CREATE_TABLES, TimestampedEvent from raiden.utils import typing # The latest DB ve...
# Copyright (C) 2015-2016 Regents of the University of California # # 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 app...
major = 0 minor=0 patch=21 branch="master" timestamp=1376526439.16
import os import io from datetime import datetime from decimal import Decimal import unittest import httpretty import requests import pytz from cryptex.exchange import Cryptsy import cryptex.trade test_dir = os.path.dirname(os.path.realpath(__file__)) mock_dir = os.path.join(test_dir, 'mocks') class CryptsyMock(): ...
# # Copyright (c) 2013 Yubico AB # All rights reserved. # # Redistribution and use in source and binary forms, with or # without modification, are permitted provided that the following # conditions are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of condi...
""" The Builder is responsible for finding and building docker images in the correct order Building an image requires building all dependent images, creating the necessary context, and actually building the current image. """ from harpoon.errors import NoSuchImage, BadCommand, FailedImage, UserQuit from harpoon.ship....
# Copyright (c) 2016, Michal Szymaniak # 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 an...
# -*- coding: utf-8 -*- """Runs the server in uwsgi or http modes. Also supports starting nginx proxy. :copyright: Copyright (c) 2015 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ from __future__ import absolute_import, division, print_function from pykern import p...
import discord from discord.ext import commands import time from random import SystemRandom random = SystemRandom() import sys import subprocess import importlib import copy import gc sys.path.append("..") import jauxiliar as jaux import josecommon as jcommon import joseerror as je DEFAULT_BLOCKS_JSON = '''{ "gu...
import logging import os import re import sys from rbtools.api.errors import APIError from rbtools.clients.errors import InvalidRevisionSpecError from rbtools.commands import Command, CommandError, Option, OptionGroup from rbtools.utils.console import confirm from rbtools.utils.match_score import Score from rbtools.ut...
import logging import asyncio import random import decimal import discord import wolframalpha import pyowm from discord.ext import commands from .common import Cog log = logging.getLogger(__name__) W_CLEAR_SKY = ':sunny:' W_FEW_CLOUDS = ':white_sun_small_cloud:' W_SCATTERED_CLOUDS = ':partly_sunny:' W_BROKEN_CLOUD...
import sys import unittest from datetime import date from dynd import nd, ndt class TestScalarConstructor(unittest.TestCase): def test_access_array(self): a = nd.array(1) self.assertEqual(a.access_flags, 'immutable') a = nd.array(1, access='rw') self.assertEqual(a.access_flags, 'rea...
# -*- coding: utf-8 -*- # # HPE OneView documentation build configuration file, created by # sphinx-quickstart on Wed Aug 10 09:44:28 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. #...
# Copyright (c) 2016 Ultimaker B.V. # Cura is released under the terms of the AGPLv3 or higher. from UM.Logger import Logger from UM.PluginRegistry import PluginRegistry # So MachineAction can be added as plugin type from UM.Settings.ContainerRegistry import ContainerRegistry from UM.Settings.DefinitionContainer impo...
import sublime, sublime_plugin import os.path # Normal: Motions apply to all the characters they select MOTION_MODE_NORMAL = 0 # Used in visual line mode: Motions are extended to BOL and EOL. MOTION_MODE_LINE = 2 # Registers are used for clipboards and macro storage g_registers = {} # Represents the current input st...
# Copyright (c) 2015 Nicolas JOUANIN # # See the file license.txt for copying permission. import logging import asyncio from hbmqtt.mqtt.packet import MQTTFixedHeader from hbmqtt.mqtt import packet_class from hbmqtt.errors import NoDataException from hbmqtt.mqtt.packet import PacketType from hbmqtt.mqtt.connect import ...
#!/usr/bin/env python # TODO: Needs tests # TODO: Needs performance improvements from __future__ import absolute_import, division from math import atan, tan import numpy as np from scipy.optimize import brentq from scipy.linalg import solve import matplotlib.pyplot as plt import properties.prandtl_meyer_functio...
#!/opt/epd/bin/python import os import matplotlib matplotlib.use('Agg') import pyfits import numpy, scipy, pylab, sys, math, logging,glob import string # New style plotting import plot_xmlguideinfo as plot_guideinfo from pyfits import open as popen from numpy import array,abs,where from datetime import datetime, time...
## # Copyright (c) 2008-2013 Sprymix Inc. # All rights reserved. # # See LICENSE for details. ## import collections import itertools import functools import re from metamagic.utils import ast, markup from metamagic.caos import caosql, tree from metamagic.caos import types as caos_types from metamagic.caos import nam...
from __future__ import unicode_literals import cgi import codecs import logging import sys import time import traceback from io import BytesIO from django import http from django.conf import settings from django.core import signals from django.core.handlers import base from django.http import FileResponse, HttpRespon...
#!/usr/bin/env python """ Given a number of BAM files, this script will merge them together, taking only the best matches. There can be any number of files, but the BAM header will be taken from the first one. The input files should be sorted by read name, or at least have reads in the same order. The first input ...
"""Tools for working with typed records.""" import datetime import itertools import logging import re from collections import OrderedDict import ciso8601 import pytz from edx.analytics.tasks.util.obfuscate_util import backslash_encode_value DEFAULT_NULL_VALUE = '\\N' # This is the default string used by Hive to re...
# coding: utf-8 from __future__ import unicode_literals, division from custodian.custodian import Validator from pymatgen.io.vasp import Vasprun, Incar, Outcar, Chgcar from collections import deque import os import logging class VasprunXMLValidator(Validator): """ Checks that a valid vasprun.xml was genera...
import json from .exceptions import * from .statuscodes import * class ModelBaseInterface: """ Model Interface for DataModels :method fetch: :method new: :method replace: :method drop: :method edit: """ def fetch(self, filter, **kwargs): """ To be implemented in ...
import numpy as np from golem import DataSet from golem.nodes import BaseNode from ..utils import sliding_window_indices class SlidingWindow(BaseNode): def __init__(self, win_size, win_step, ref_point=.5): BaseNode.__init__(self) self.win_size = win_size self.win_step = win_step self.ref_frame = int(...
#!/usr/bin/env python ''' todo * testing * check why top couple bins don't match in plot * check some unnormalized count rows * check some normalized count rows * check some summary table rows ''' from bamliquidator_internal.normalize_plot_and_summarize import normalize_plot_and_summarize from b...
""" Compare FiveThirtyEight's odds for each state with PredictIt prices for each. PI prices are grabbed from their API. FTE odds are from their "polls-only" forecast, grabbed from their API. Jack Enneking 2016-10-31 """ import sys import time import requests ############ State objects ############ # Create the m...
# # 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 # ...
import csv import io import logging import os import re import tempfile import zipfile from collections import namedtuple from datetime import date, datetime, timedelta from io import BytesIO, open from django.conf import settings from django.db import Error, IntegrityError, connections, transaction from django.db.mod...
#! /usr/bin/env python # # Copyright (C) 2015-2016 Rich Lewis <rl403@cam.ac.uk> # License: 3-clause BSD """ skchem.data Module for handling data. Data can be accessed using the resource function. """ import os import pandas as pd def resource(*args): """ passes a file path for a data resource specified """ ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # flow documentation build configuration file, created by # sphinx-quickstart on Sun Aug 27 17:07:23 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autog...
from sysadmintoolkit import plugin, command, utils global plugin_instance plugin_instance = None def get_plugin(config, logger): ''' ''' global plugin_instance if plugin_instance is None: plugin_instance = CommandPrompt(logger, config) return plugin_instance class CommandPrompt(plugi...
import threading import time import os import sys from . import part, multipart_collector, cookie, session, grpc_collector, ws_executor from . import wsgi_executor, xmlrpc_executor, grpc_executor, jsonrpc_executor from aquests.lib import producers, evbus from functools import wraps from importlib import reload from aq...
""" Spunky Bot - Automated game server bot http://urthub.github.io/spunky-bot Author: Alexander Kress This program is released under the MIT License. See LICENSE for more details. ## About ## Spunky Bot is a lightweight game server administration bot and RCON tool, inspired by the eb2k9 bot by Shawn Haggard. The purp...
# Module: http # Date: 13th September 2007 # Author: James Mills, prologic at shortcircuit dot net dot au """Hyper Text Transfer Protocol This module implements the Hyper Text Transfer Protocol or commonly known as HTTP. """ from io import BytesIO try: from urllib.parse import unquote from urllib.pa...
from django.db.models.query import QuerySet from django.db import models, connection from django.db.models.fields import FieldDoesNotExist from django.conf import settings from replay import Replay def _not_exists(fieldname): raise FieldDoesNotExist('"%s" is not a ManyToManyField or a reverse ForeignKey relation...
# -*- encoding: utf-8 -*- from django import forms from nexmo import NexmoMessage from django.core.mail import EmailMessage from django.core.mail import EmailMultiAlternatives #from django.forms import CharField,Form,PasswordInput from django.shortcuts import render_to_response from django.views.decorators.csrf import...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import subprocess import sys def _log(msg): print(msg, file=sys.stderr) def _run_subprocess(cmd_line, check=False): """Wrapper around subprocess.run that logs results on failure instead of aborting""" result = subprocess.run( cmd_line, st...
from .addict import Dict __title__ = 'addict' __version__ = '2.1.3' __author__ = 'Mats Julian Olsen' __license__ = 'MIT' __copyright__ = 'Copyright 2014, 2015, 2016 Mats Julian Olsen' __all__ = ['Dict']
from mailu.internal import internal from flask import current_app as app import flask import xmltodict @internal.route("/autoconfig/mozilla") def autoconfig_mozilla(): # https://wiki.mozilla.org/Thunderbird:Autoconfiguration:ConfigFileFormat hostname = app.config['HOSTNAME'] xml = f'''<?xml version=\"1.0\...
# -*- coding: utf-8 - # # Copyright (c) 2008, 2009 Benoit Chesneau <benoitc@e-engura.com> # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWA...
# Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. """Top-level presubmit script for Dart. See http://dev.chromium.org/developers/how-tos/depottools/presubm...
from __future__ import division from numpy.testing import assert_, assert_raises, dec from numpy.testing import run_module_suite # utilities for the tests from statsmodels.compatnp.collections import OrderedDict from statsmodels.api import datasets from collections import Counter import numpy as np from itertools im...
import os import platform import sys from methods import get_compiler_version, using_gcc, using_clang def is_active(): return True def get_name(): return "X11" def can_build(): if os.name != "posix" or sys.platform == "darwin": return False # Check the minimal dependencies x11_error =...
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") ENVOY_COMMIT = "d3a90127f8c408651e8ab44e961408ca1fd972b4" # July 07, 2021 ENVOY_SHA = "4aed1171848e1cf4f5309d918b384b9d34aa1e7f577398caeb1d4f32c8004ee4" HDR_HISTOGRAM_C_VERSION = "0.11.2" # October 12th, 2020 HDR_HISTOGRAM_C_SHA = "637f28b5f64de2e...
""" models.py Contains Tecan Cavro model-specific classes that inherit from the `Syringe` class in syringe.py. """ import time from math import sqrt from time import sleep from functools import wraps from contextlib import contextmanager try: from gevent import monkey; monkey.patch_all(thread=False) from ge...
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # 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 appli...
from __future__ import absolute_import from __future__ import unicode_literals from collections import OrderedDict from wsgiref.util import FileWrapper import requests from datetime import datetime, date from celery.result import AsyncResult from dateutil.relativedelta import relativedelta from django.conf import s...
from __future__ import absolute_import from __future__ import unicode_literals from collections import namedtuple from celery.schedules import crontab from celery.task import task from corehq.apps.case_importer.exceptions import ImporterError from corehq.apps.case_importer.tracking.analytics import \ get_case_uplo...
""" SEP: 0010 Title: Stellar Web Authentication Author: Sergey Nebolsin <sergey@mobius.network>, Tom Quisel <tom.quisel@gmail.com>, Leigh McCulloch <@leighmcculloch> Status: Active Created: 2018-07-31 Updated: 2019-12-04 Version 1.3.0 """ import base64 import os import time import warnings from typing import List, Tupl...
from data_collection.management.commands import BaseXpressWebLookupCsvImporter class Command(BaseXpressWebLookupCsvImporter): council_id = 'E07000228' addresses_name = 'MidSussexDemocracy Club Data-2017-04-10.TSV' stations_name = 'MidSussexDemocracy Club Data-2017-04-10.TSV' elections = ['local.west-su...
""" Wrapper for Salmon: https://github.com/COMBINE-lab/salmon http://biorxiv.org/content/early/2015/06/27/021592 """ import os import numpy as np from bcbio.rnaseq import sailfish import bcbio.pipeline.datadict as dd from bcbio.utils import (file_exists, safe_makedir, is_gzipped) import bcbio.utils as utils from bcbi...
""" PTFViewer is a Bokeh application for visualizing public light curve data from the Palomar Transient Factory written in Python. Learn more about it at https://github.com/keatonb/PTFViewer @author: keatonb """ from __future__ import absolute_import from __future__ import print_function from glob import glob import ...
# -*- coding: utf-8 -*- # Import Python libs from __future__ import absolute_import import copy import logging import os import dateutil.parser as dateutil_parser # Import Salt Testing libs from tests.support.case import ModuleCase from tests.support.mixins import SaltReturnAssertsMixin # Import Salt Testing Libs f...