gt
stringclasses
1 value
context
stringlengths
2.49k
119k
import unittest import numpy as np from sympy import Function, Matrix, symbols from CompartmentalSystems.smooth_reservoir_model import SmoothReservoirModel from CompartmentalSystems.smooth_model_run import SmoothModelRun from CompartmentalSystems.pwc_model_run_fd import PWCModelRunFD import os.path THIS_DIR = os.pat...
import openpyxl from openpyxl import load_workbook from Bio import SeqIO import FastNW import random import numpy import math import collections def localblast(sequence1, sequence2, locationarray, changearray): seq1len = len(sequence1) seq2len = len(sequence2) line = "" changes = [] if seq1len > se...
# specialactions01.py # # David J. Lampert (djlampert@gmail.com) # # Last updated: 09/20/2014 # # This is essentially a repeat of example01.py, but illustrates how to add # special actions. the src/core/specialactions.py file contains the built-in # special actions (should be easy to append this to meet other needs). ...
""" Support for user- and CDC-based flu info sensors from Flu Near You. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.flunearyou/ """ import logging from datetime import timedelta import voluptuous as vol import homeassistant.helpers.config_val...
__author__ = 'max' import numpy as np import theano import theano.tensor as T from .nlinalg import theano_logsumexp, logabsdet __all__ = [ "chain_crf_loss", "chain_crf_accuracy", "tree_crf_loss", ] def chain_crf_loss(energies, targets, masks): """ compute minus log likelihood of chain crf as cha...
# Copyright 2015 Christian Kramer # # 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...
# http://www.songho.ca/opengl/gl_vbo.html : OpenGL Vertex Buffer Object (VBO) # http://www.slideshare.net/Mark_Kilgard/using-vertex-bufferobjectswell #include "coordinate_system_t.h" #include "cube_template.h" from OpenGL.GL import * from ctypes import Structure, sizeof, pointer, c_uint32, c_void_p import vector i...
""" This file contains test cases to verify the correct implementation of the functions required for this project including minimax, alphabeta, and iterative deepening. The heuristic function is tested for conformance to the expected interface, but cannot be automatically assessed for correctness. STUDENTS SHOULD NOT...
# -*- coding: utf-8 -*- """ ** OBS - this is not a normal command module! ** ** You cannot import anything in this module as a command! ** This is part of the Evennia unittest framework, for testing the stability and integrity of the codebase during updates. This module test the default command set. It is instantiat...
# coding: utf-8 """pypel.cli, CLI interface for pypel. THIS SOFTWARE IS UNDER BSD LICENSE. Copyright (c) 2012-2015 Daniele Tricoli <eriol@mornie.org> Read LICENSE for more informations. """ import argparse import time import os import warnings from datetime import datetime try: from pygments.console import ans...
# Copyright (c) 2015 SONATA-NFV and Paderborn University # 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 re...
"""{ "title": "devices <argument> <name>", "text": "You can get more info about your devices using arguments like `find`, `value`, `available` or `list`. To get more help about each argument, type `sdbot devices help`", "mrkdwn_in": ["text"], "color": "#E83880" }""" import re import json from datetime i...
# 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...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # 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 f...
# 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 ...
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Execute a Fast ACUTE run. """ import datetime import json import os import random import time from dataclasses impor...
# coding:utf-8 import hashlib import inspect import logging import numpy as np import pandas as pd from scipy.sparse import csr_matrix, csc_matrix from sklearn.model_selection import train_test_split, StratifiedKFold, KFold from .cache import Cache, numpy_buffer from .utils.main import idx, concat logger = logging.g...
# THIS SCRIPT WILL convert the point csv-like file from the CRU CL2.0 and will interpolate it to # a worldwide grid at 10' resolution along with an akcan grid (matching SNAP baseline) at 2km resolution. # # written by: Michael Lindgren (malindgren@alaska.edu) # The MIT License (MIT) # # # # # # # Copyright (c) 2015 ...
import larv import pygame import helper from ..Components import MenuButtonComponent from ..Components import StateComponent from ..Components import RenderComponent from ..Components import PositionComponent from ..Components import OnPressComponent from pygame.locals import * from Globals import * class FoundExcep...
# Copyright (c) 2013 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 ...
from __future__ import division import unittest import numpy as np from wyrm.types import Data from wyrm.processing import segment_dat from wyrm.processing import swapaxes class TestSegmentDat(unittest.TestCase): def setUp(self): # create 100 samples and tree channels data ones = np.ones((100,...
# # 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 # ...
# -*- coding: utf-8 -*- ''' Control the state system on the minion ''' # Import python libs import os import json import copy import shutil import time import logging import tarfile import datetime import tempfile # Import salt libs import salt.utils import salt.state import salt.payload from salt._compat import stri...
#!/usr/bin/python # gtkGfx - Implementation of the Gfx.Driver Interface with gtk """Implementes Gfx.Driver gtk. """ import math import gtk, pango from gtk import gdk try: import Gfx except ImportError: from . import Gfx try: from Compatibility import * except ImportError: from . import Compatibli...
import six import warnings from datetime import datetime from .. import errors from .. import utils from ..types import ( ContainerConfig, EndpointConfig, HostConfig, NetworkingConfig ) class ContainerApiMixin(object): @utils.check_resource def attach(self, container, stdout=True, stderr=True, ...
""" SoftLayer.dedicatedhost ~~~~~~~~~~~~~~~~~~~~~~~ DH Manager/helpers :license: MIT, see License for more details. """ import logging from SoftLayer.exceptions import SoftLayerAPIError from SoftLayer.exceptions import SoftLayerError from SoftLayer.managers import ordering from SoftLayer import utils ...
import sys, json from collections import namedtuple from datetime import datetime, time import time as time_mod from enum import Enum from six.moves.html_parser import HTMLParser # ============================================================================= # compensate for long disappearing in py3 if sys.version_i...
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt """ record of files naming for same name files: file.gif, file-1.gif, file-2.gif etc """ from __future__ import unicode_literals import base64 import hashlib import imghdr import io import json import mimetypes impor...
# Copyright 2017 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 applicab...
# -*- coding: utf-8 -*- # # Copyright (C) 2013 Vinay Sajip. # Licensed to the Python Software Foundation under a contributor agreement. # See LICENSE.txt and CONTRIBUTORS.txt. # from __future__ import unicode_literals import base64 import codecs import datetime import distutils.util from email import message_from_file...
from flask import Flask, render_template, request, redirect, make_response import astrodbkit from astrodbkit import astrodb import os import sys from cStringIO import StringIO from bokeh.plotting import figure from bokeh.embed import components from bokeh.models import ColumnDataSource, HoverTool, OpenURL, TapTool from...
from collections import defaultdict from django.template.base import ( Library, Node, Template, TemplateSyntaxError, TextNode, Variable, token_kwargs, ) from django.utils import six from django.utils.safestring import mark_safe register = Library() BLOCK_CONTEXT_KEY = 'block_context' class ExtendsError(Exc...
#!/usr/bin/env python3 import argparse import re class Record: tiers = [] emptyLines = {} def __init__(self, t = []): self.tiers = t self.emptyLines = {} def getTier(self, name): for v in self.tiers: if v[0] == name: return v return None ...
# Copyright 2011 Andrew Bogott for the Wikimedia 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-...
#!/usr/bin/python # # Copyright: Ansible Project # 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 ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Bitsend Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Perform basic ELF security checks on a series of executables. Exit status will be 0 if successful, and...
""" Object-related Core templatetags """ from coffin import template from django.template import RequestContext from jinja2 import contextfunction, Markup from anaf.core.models import Object, Comment, Tag, UpdateRecord, Attachment from anaf.core.forms import PermissionForm, ObjectLinksForm, SubscribeForm, TagsForm from...
# Copyright 2016 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...
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework 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 ...
# -------------------------------------------------------- # Deformable Convolutional Networks # Copyright (c) 2016 by Contributors # Copyright (c) 2017 Microsoft # Licensed under The Apache-2.0 License [see LICENSE for details] # Written by Zheng Zhang # -------------------------------------------------------- import...
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
""" Generalized Linear models. """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Fabian Pedregosa <fabian.pedregosa@inria.fr> # Olivier Grisel <olivier.grisel@ensta.org> # Vincent Michel <vincent.michel@inria.fr> # Peter Prettenhofer <peter.prettenhofer@gmail.com> # ...
# Copyright (c) 2018-2019, NVIDIA CORPORATION. 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 a...
# Copyright 2013 Josh Durgin # 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 a...
#!/usr/bin/env python from nose.tools import * from miniprobe.sensors import adns,apt,cpuload,cputemp,diskspace,ds18b20,externalip,http,memory,nmap,ping,port,portrange,probehealth,snmpcustom,snmptraffic import multiprocessing class TestSensors: @classmethod def setup_class(cls): cls.test_nmap = nmap.N...
# 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 ...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 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.apach...
"""Constants for AccuWeather integration.""" from homeassistant.components.weather import ( ATTR_CONDITION_CLEAR_NIGHT, ATTR_CONDITION_CLOUDY, ATTR_CONDITION_EXCEPTIONAL, ATTR_CONDITION_FOG, ATTR_CONDITION_HAIL, ATTR_CONDITION_LIGHTNING, ATTR_CONDITION_LIGHTNING_RAINY, ATTR_CONDITION_PAR...
import collections import os import sys import warnings import PIL from . import Image modules = { "pil": ("PIL._imaging", "PILLOW_VERSION"), "tkinter": ("PIL._tkinter_finder", None), "freetype2": ("PIL._imagingft", "freetype2_version"), "littlecms2": ("PIL._imagingcms", "littlecms_version"), "we...
from collections import defaultdict, MutableSequence, Iterable import io import numpy as np from numpy.polynomial import Polynomial import pandas as pd from .endf import get_head_record, get_cont_record, get_tab1_record, get_list_record try: from .reconstruct import wave_number, penetration_shift, reconstruct_mlb...
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import sys from .TProtocol import * from struct import pack, unpack __all__ = ['TCompactProtocol', 'TCompactProtocolFactory'] CLEAR = 0 FIELD_WRITE = 1 VALUE_WRITE = 2 ...
from __future__ import absolute_import, unicode_literals from django.core.exceptions import ValidationError from django.forms import Form from django.forms.fields import IntegerField, BooleanField from django.forms.util import ErrorList from django.forms.widgets import Media, HiddenInput from django.utils.encoding imp...
from StringIO import StringIO import string class SessionData: PS_DELIMITER = "|" PS_UNDEF_MARKER = "!" def __init__(self, data): self.data = data self.length = len(data) def values(self): i = 0 while i < self.length: delim = self.data.find(self.PS_DELIMIT...
# ---------------------------------------------------------------------------- # Copyright (c) 2016-2022, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
#!/usr/bin/env python # # Use the raw transactions API to spend bitcoins received on particular addresses, # and send any change back to that same address. # # Example usage: # spendfrom.py # Lists available funds # spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00 # # Assumes it will talk to a bitcoind or Bit...
# encoding: utf-8 """ ImagePart and related objects. """ import hashlib import os try: from PIL import Image as PIL_Image except ImportError: import Image as PIL_Image from ..compat import BytesIO, is_string from ..opc.package import Part from ..opc.spec import image_content_types from ..util import lazypro...
""" Interface to Constrained Optimization By Linear Approximation Functions --------- .. autosummary:: :toctree: generated/ fmin_cobyla """ import functools from threading import RLock import numpy as np from scipy.optimize import _cobyla from .optimize import OptimizeResult, _check_unknown_options try: ...
# Copyright 2017 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...
""" Module which plotting functions to visualise adjacency matrices """ import copy import matplotlib.pyplot as plt import matplotlib.ticker as ticker import numpy as np from maybrain import brain as mbt from maybrain import resources as rr from maybrain import constants as ct def _get_ordered_array_and_labels(matr...
""" Band-averaged spectral estimation for use in tidal error analysis. There is only one function in this module that is imported by other modules: `band_psd` (``ut_pdgm`` in the Matlab version), which uses the residuals from the tidal fit to calculate power spectral density averaged in bands near the constituent clus...
from django.conf.urls import include, url from django.urls import reverse from django.conf.urls.static import static from django.conf import settings from django.http import HttpResponseRedirect from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.contrib.sitemaps import views as sitemaps_vie...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ Provides basic functionality for all pyamf.amf?.[De|E]ncoder classes. """ import types import datetime import pyamf from pyamf import util, python, xml __all__ = [ 'IndexedCollection', 'Context', 'Decoder', 'Encoder' ] try: u...
#=============================================================================== # Copyright 2009 Matt Chaput # # 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/li...
# # 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...
import logging import optparse import os import re import sys import configparser from optparse import OptionParser from nose.util import absdir, tolist from nose.plugins.manager import NoPlugins from warnings import warn, filterwarnings log = logging.getLogger(__name__) # not allowed in config files option_blacklist...
# Generated by h2py from /usr/include/netinet/in.h # Included from sys/cdefs.h __GNUCLIKE_ASM = 3 __GNUCLIKE_ASM = 2 __GNUCLIKE___TYPEOF = 1 __GNUCLIKE___OFFSETOF = 1 __GNUCLIKE___SECTION = 1 __GNUCLIKE_ATTRIBUTE_MODE_DI = 1 __GNUCLIKE_CTOR_SECTION_HANDLING = 1 __GNUCLIKE_BUILTIN_CONSTANT_P = 1 __GNUCLIKE_BUILTIN_VARA...
# Copyright (C) 2015 Nippon Telegraph and Telephone 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 appli...
# Author: Daniel G Wakeman <dwakeman@nmr.mgh.harvard.edu> # Denis A. Engemann <denis.engemann@gmail.com> # # License: BSD-3-Clause import os.path as op from copy import deepcopy from functools import partial import pytest import numpy as np from scipy.io import savemat from numpy.testing import assert_array_...
# 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...
"""Barebones Python API Wrapper implementation around RCSB Search API. This file contains Python dataclasses that formalize the API within native Python objects. This aims to completely implement the Search API in Python. For RCSB API docs, see: https://search.rcsb.org/index.html """ # TODO(lacoperon): Implement req...
#!/usr/bin/env python ''' from acoular import __file__ as bpath, WNoiseGenerator, PointSource,\ Mixer, WriteH5, TimeSamples, PowerSpectra from acoular import L_p, Calib, MicGeom, PowerSpectra, EigSpectra, \ RectGrid, BeamformerBase, BeamformerEig, BeamformerOrth, BeamformerCleansc, \ TimeSamples, MaskedTimeSa...
# coding=utf-8 # Copyright 2022 The Uncertainty Baselines 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 ap...
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Classes for reading/manipulating/writing QChem input files. """ import logging from monty.io import zopen from monty.json import MSONable from pymatgen.core import Molecule from .utils import lower_and_...
#!/usr/bin/env python #title :gas.py #description :The script is for generating fake gas meters data #author :Ajay Krishna Teja Kavuri #date :02122017 #version :0.1 #============================================================================== # Libraries import datetime impor...
# # 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 copy import sys import unittest from unittest.test.testmock.support import is_instance from unittest import mock from unittest.mock import ( call, DEFAULT, patch, sentinel, MagicMock, Mock, NonCallableMock, NonCallableMagicMock, _CallList, create_autospec ) class Iter(object): def __init__...
# # Copyright 2012 New Dream Network, LLC (DreamHost) # # 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...
# Author: Samuel Genheden samuel.genheden@gmail.com """ Routines to geometrical calculations """ import math import numpy as np def sphere_surf_rand(): u1 = 100 u2 = 1000 while u1*u1 + u2*u2 >= 1 : u1 = np.random.uniform(low=-1,high=1) u2 = np.random.uniform(low=-1,high=1) x = 2*u1*np.sqrt(1-u1*u1-...
from datetime import date, datetime, time from decimal import Decimal import re from django.db import models from django.db.models import Q from django.core.mail import EmailMessage, EmailMultiAlternatives from django.template.loader import render_to_string from django_conference import settings def meeting_stat(st...
# subprocess - Subprocesses with accessible I/O streams # # For more information about this module, see PEP 324. # # This module should remain compatible with Python 2.2, see PEP 291. # # Copyright (c) 2003-2005 by Peter Astrand <astrand@lysator.liu.se> # # Licensed to PSF under a Contributor Agreement. # See http://ww...
# Copyright (c) 2014 Quobyte Inc. # Copyright (c) 2013 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...
""" Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the 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 ...
#!/usr/bin/env python # # Test cases for tournament.py import tournament import names import datetime import random import time def testDeleteMatches(): swiss_trnmnt.conn_trnmt_db.deleteMatches() print "1. Old matches can be deleted." def testDelete(): swiss_trnmnt.conn_trnmt_db.deleteMatches() swis...
import EncoderFactory from DatasetManager import DatasetManager import BucketFactory import pandas as pd import numpy as np from sklearn.metrics import roc_auc_score from sklearn.pipeline import FeatureUnion, Pipeline from sklearn.neighbors import NearestNeighbors from sklearn.preprocessing import StandardScaler im...
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: tensorflow_serving/apis/predict.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf imp...
from jsonrpc import ServiceProxy import sys import string # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:9332") else: access = Ser...
""" sphinxcontrib.httpdomain ~~~~~~~~~~~~~~~~~~~~~~~~ The HTTP domain for documenting RESTful HTTP APIs. :copyright: Copyright 2011 by Hong Minhee :license: BSD, see LICENSE for details. """ import re from docutils import nodes from docutils.parsers.rst.roles import set_classes from pygments.l...
from collections import OrderedDict from collections.abc import Mapping import pprint from hail.utils.misc import get_nice_attr_error, get_nice_field_error from hail.typecheck import typecheck, typecheck_method, anytype class Struct(Mapping): """ Nested annotation structure. >>> bar = hl.Struct(**{'foo'...
#!/usr/bin/python """ Copyright (c) 2009 Barry Schwartz 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, merge, p...
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file has been modified to remove some dependencies and functionality # ######################################################################### # Copyright (c) 2015-2019, UChicago Argonne, LLC. All rights reserved. # # ...
# sql/visitors.py # Copyright (C) 2005-2015 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Visitor/traversal interface and library functions. SQLAlchemy schema and express...
# rgToolFactory.py # see https://bitbucket.org/fubar/galaxytoolfactory/wiki/Home # # copyright ross lazarus (ross stop lazarus at gmail stop com) May 2012 # # all rights reserved # Licensed under the LGPL # suggestions for improvement and bug fixes welcome at https://bitbucket.org/fubar/galaxytoolfactory/wiki/Home # # ...
from mongrel2 import config from mongrel2.config import args import mongrel2.config.commands from uuid import uuid4 from mongrel2.config import model import getpass import sys import os import signal from sqlite3 import OperationalError def try_reading(reader): try: cmd = reader.readline() return ...
# Copyright 2018 The Forseti Security 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 ap...
# -*- coding: utf-8 -*- from __future__ import unicode_literals ''' Cellaret v0.1.3 Markdown Browser & Editor lexer.py ''' ''' Copyright 2014 Roman Verin 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 Lice...
"""The test the Honeywell thermostat module.""" import socket import unittest from unittest import mock import somecomfort from homeassistant.const import (CONF_USERNAME, CONF_PASSWORD, TEMP_CELCIUS, TEMP_FAHRENHEIT) import homeassistant.components.thermostat.honeywell as honeywell ...
# -*- coding: utf-8 -*- """ Event Module - Controllers http://eden.sahanafoundation.org/wiki/BluePrintScenario """ module = request.controller resourcename = request.function if not settings.has_module(module): raise HTTP(404, body="Module disabled: %s" % module) # -------------------------------------...
# -*- coding: utf-8 -*- # Copyright 2022 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 or...
# Copyright 2017 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...
from basic import * import util import logo_tools with Parser(locals()) as p: #p.str('args').unspecified_default().multiple().required() p.str('organism') p.str('infile') p.str('outfile') #p.int('min_mice').default(2) p.float('none_score_for_averaging').shorthand('none_score') # --float_arg...