gt
stringclasses
1 value
context
stringlengths
2.49k
119k
# -*- coding: utf-8 -*- """ eve.utils ~~~~~~~~~ Utility functions and classes. :copyright: (c) 2013 by Nicola Iarocci. :license: BSD, see LICENSE for more details. """ import eve import hashlib from flask import request from flask import current_app as app from datetime import datetime, timedelt...
# -*- coding: utf-8 -*- import bpy from bpy.types import PropertyGroup from bpy.props import StringProperty from bpy.props import IntProperty from bpy.props import FloatVectorProperty from bpy.props import FloatProperty from bpy.props import CollectionProperty from bpy.props import EnumProperty from mmd_tools.core.mo...
#!/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 "Lic...
import time import RPi.GPIO as GPIO GND_PIN = 6 # not used by program but needs to be connected! LED_PIN = 12 SWITCH_PIN = 18 def test_output(): print('OUTPUT test') for i in range(10): time.sleep(0.1) GPIO.output(LED_PIN, GPIO.HIGH) if GPIO.input(LED_PIN) != GPIO.HIGH: ...
#!/usr/bin/env python '''USAGE: bigsmall.py KO_expressionfile --name organism_name --iters 1000 The function of this script is to convert lists of genes to unweighted, directed graphs and compute importance of each compound to metabolism based on the expression of adjacent enzyme nodes. ''' # Written by Matthew Jeni...
# Copyright 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
""" LICENCE ------- Copyright 2013 by Kitware, Inc. All Rights Reserved. Please refer to KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. """ __author__ = 'paul.tunison' import abc import cPickle import logging import numpy as np im...
# -*- coding: utf8 -*- import time from nose.tools import eq_ import amo import amo.tests from editors.models import RereviewQueue, ReviewerScore from users.models import UserProfile class TestReviewerScore(amo.tests.TestCase): fixtures = ['base/users'] def setUp(self): self.addon = amo.tests.addon...
from __future__ import unicode_literals import logging import pykka import pyconnman import dbus, gobject from mopidy import service from mopidy.utils.jsonrpc import private_method logger = logging.getLogger(__name__) CONNMAN_SERVICE_NAME = 'connman' dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) gobject.th...
# -*- coding: utf-8 -*- """Views tests for the Box addon.""" import unittest from django.utils import timezone from nose.tools import * # noqa (PEP8 asserts) import mock import httplib from datetime import datetime from framework.auth import Auth from website.util import api_url_for from urllib3.exceptions import Ma...
# file openpyxl/tests/test_write.py # Copyright (c) 2010-2011 openpyxl # # 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...
# Bundles for JS/CSS Minification PIPELINE_CSS = { 'common': { 'source_filenames': ( 'normalize-css/normalize.css', 'sumo/less/main.less', 'sumo/less/search.less', ), 'output_filename': 'build/common-min.css' }, 'community': { 'source_file...
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
# -*- coding: utf-8 -*- import json import logging import vobject from datetime import datetime from contextlib import contextmanager from radicale import ical from yats.shortcuts import get_ticket_model, build_ticket_search_ext, touch_ticket, remember_changes, mail_ticket, jabber_ticket, check_references, add_histo...
#!/usr/bin/python # -*- coding: utf-8 -*- # thumbor imaging service # https://github.com/thumbor/thumbor/wiki # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 globo.com thumbor@googlegroups.com from preggy import expect from tornado.testing import gen_test from...
import docker import os import shlex from datetime import datetime from os import chdir from subprocess import check_output, STDOUT from vent.api.actions import Action from vent.api.plugin_helpers import PluginHelper from vent.api.templates import Template from vent.helpers.logs import Logger from vent.helpers.meta i...
""" This module contains functions to assist in the construction of URIs for views. """ from __future__ import unicode_literals from __future__ import absolute_import, division, print_function __author__ = "Graham Klyne (GK@ACM.ORG)" __copyright__ = "Copyright 2014, G. Klyne" __license__ = "MIT (http://ope...
#!/opt/datadog-agent/embedded/bin/python ''' Datadog www.datadoghq.com ---- Make sense of your IT Data Licensed under Simplified BSD License (see LICENSE) (C) Boxed Ice 2010 all rights reserved (C) Datadog, Inc. 2010-2016 all rights reserved ''' # set up logging before importing any other c...
import tensorflow as tf import numpy as np import pylab as plt from dopamine.utils import * from dopamine.values import * from keras.models import Sequential, model_from_json, load_model from keras.layers import Dense from keras import backend import logging from mathtools.utils import Vessel logging.basicConfig(level=...
""" General tests for all estimators in sklearn. """ # Authors: Andreas Mueller <amueller@ais.uni-bonn.de> # Gael Varoquaux gael.varoquaux@normalesup.org # License: BSD 3 clause from __future__ import print_function import os import warnings import sys import pkgutil from sklearn.externals.six import PY3 fr...
# coding: utf-8 # # Copyright 2014 The Oppia 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 requi...
# coding=utf-8 # # Copyright 2014-2016 F5 Networks Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
"""Undocumented Module""" __all__ = ['BufferViewer'] from panda3d.core import * from direct.task import Task from direct.directnotify.DirectNotifyGlobal import * from direct.showbase.DirectObject import DirectObject import math class BufferViewer(DirectObject): notify = directNotify.newCategory('BufferViewer') ...
from collections import OrderedDict from itertools import chain import time from django.conf import settings from pandas.core.frame import DataFrame # an immediate fix to an error with the installation of pandas v0.15 try: from pandas.io.parsers import ExcelWriter except ImportError, e: from pandas import Exc...
# coding: utf-8 """ Wavefront REST API Documentation <p>The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.</p><p>When you make REST API calls outside the W...
from sympy import (pi, sin, cos, Symbol, Integral, summation, sqrt, log, oo, LambertW, I, meijerg, exp_polar, Max) from sympy.plotting import (plot, plot_parametric, plot3d_parametric_line, plot3d, plot3d_parametric_surface) from sympy.plotting.plot import unset_show from ...
# -*- coding: utf_8 -*- # author www.chedanji.com from xml.etree import ElementTree as etree from xml.etree.ElementTree import Element, SubElement, ElementTree import subprocess from xml.dom import minidom import os import time import io import json import getopt import datetime import urllib2 import re alfred_workfl...
################################################################## # Code for testing the variational Multi-Stage Generative Model. # ################################################################## # basic python import numpy as np import numpy.random as npr import cPickle # theano business import theano import th...
"""redirect tests""" import copy import os import re import sys import time import numpy as np import pytest import tqdm import wandb from wandb.cli import cli impls = [wandb.wandb_sdk.lib.redirect.StreamWrapper] console_modes = ["wrap"] if os.name != "nt": impls.append(wandb.wandb_sdk.lib.redirect.Redirect) ...
# -*- coding: utf-8 -*- """Import NeuroElectrics DataFormat (NEDF) files.""" from copy import deepcopy from datetime import datetime, timezone from xml.etree import ElementTree import numpy as np from ..base import BaseRaw from ..meas_info import create_info from ..utils import _mult_cal_one from ...utils import war...
""" Base_Map.py Created by amounra on 2014-7-26. This file allows the reassignment of the controls from their default arrangement. The order is from left to right; Buttons are Note #'s and Faders/Rotaries are Controller #'s """ USER_OFFSET = 10 OSC_TRANSMIT = False OSC_OUTPORT = 7400 SHIFT_LATCHING = False CAP...
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest import os from pathlib import Path import json import gzip import numpy as np import warnings from shutil import copyfile, copyfileobj from monty.tempfile import ScratchDir import xml.etree.c...
#! /usr/bin/env python """ Protein-Ligand Interaction Profiler - Analyze and visualize protein-ligand interactions in PDB files. plipcmd - Main script for PLIP command line execution. Copyright 2014-2015 Sebastian Salentin Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except...
#!/usr/bin/env python """Semantic protocol buffers can be created from proto2 .proto files. For maintaining inter-operatibility with primitive protocol buffer implementations, we can parse the field descriptors created by the standard Google proto implementation, and generate Semantic proto descriptors. This file con...
import copy from hearthbreaker.cards.base import SpellCard from hearthbreaker.tags.action import AddCard from hearthbreaker.tags.base import Effect, BuffUntil, Buff, AuraUntil, ActionTag from hearthbreaker.tags.condition import IsSpell from hearthbreaker.tags.event import TurnStarted, TurnEnded, SpellCast from hearthbr...
"""Unit tests for evaluators.""" import deepchem as dc import numpy as np import unittest import sklearn from deepchem.utils.evaluate import Evaluator from deepchem.utils.evaluate import GeneratorEvaluator def test_multiclass_threshold_predictions(): """Check prediction thresholding works correctly.""" # Construc...
from twocode.utils.node import Node, range_call, l import textwrap from twocode.utils.code import format_exception_only from twocode import utils import twocode.utils.string LOG = set() #LOG.add("PERF") stmt_symbol = "stmt" delims = ['EOL', "';'"] ws = "WS EOL ENTER LEAVE".split() class IndentParser: def __init_...
# -*- coding: utf-8 -*- from . import multielementbase from . import element from . import interaction from . import types from . import stoichiometry from ..utils import listtools from ..utils import instance import numpy as np import fisx class Compound(multielementbase.MultiElementBase): """Interface to a co...
# Copyright (c) 2010-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 agree...
"""The Elexa Guardian integration.""" import asyncio from typing import Dict from aioguardian import Client from homeassistant.config_entries import ConfigEntry from homeassistant.const import ATTR_ATTRIBUTION, CONF_IP_ADDRESS, CONF_PORT from homeassistant.core import HomeAssistant, callback from homeassistant.helper...
from __future__ import unicode_literals import hashlib import json import os import posixpath import re from collections import OrderedDict from django.conf import settings from django.contrib.staticfiles.utils import check_settings, matches_patterns from django.core.cache import ( InvalidCacheBackendError, cache...
from jsonrpc import ServiceProxy import sys import string import getpass # ===== 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:7332") e...
# Lint as: python2, python3 # Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # ...
import configparser import itertools import logging import os import pathlib import re from collections.abc import Mapping from mopidy.config import keyring from mopidy.config.schemas import ConfigSchema, MapConfigSchema from mopidy.config.types import ( Boolean, ConfigValue, Deprecated, DeprecatedValu...
import warnings import numpy as np import numpy.linalg as la from scipy import sparse from distutils.version import LooseVersion from sklearn.utils.testing import assert_almost_equal, clean_warning_registry from sklearn.utils.testing import assert_array_almost_equal from sklearn.utils.testing import assert_array_equal...
# Copyright (C) 2013 eNovance SAS <licensing@enovance.com> # # Author: Artom Lifshitz <artom.lifshitz@enovance.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache....
from jinja2 import Template from kvmagent import kvmagent from zstacklib.utils import http from zstacklib.utils import jsonobject from zstacklib.utils import lock from zstacklib.utils import log from zstacklib.utils import shell from zstacklib.utils import ebtables from zstacklib.utils.bash import * from prometheus_cl...
import json import uuid from django.core.urlresolvers import reverse from models import CrowdModelSpecification # Required implementation for a new crowd type class CrowdInterface(object): def __init__(self, crowd_name): self.crowd_name = crowd_name @staticmethod def validate_configuration(conf...
# Copyright 2013 Novo Nordisk Foundation Center for Biosustainability, # Technical University of Denmark. # # 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/LI...
import asyncio from contextlib import AsyncExitStack, ExitStack import random import string import aiobotocore.session from aiobotocore.config import AioConfig from unittest.mock import patch from itertools import chain import tempfile import os # Third Party import pytest import aiohttp host = '127.0.0.1' _PYCHARM...
# Copyright 2014 Hewlett-Packard Development Company, L.P. # 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...
from generator.actions import Actions import random import re import struct def random_alpha(): alphabet = list(set([chr(x) for x in xrange(256)]) - set(['\0'])) length = random.randint(10, 50) return ''.join([random.choice(alphabet) for x in xrange(length)]) def random_number(): return random.randint...
import math import bitify.python.utils.i2cutils as I2CUtils class MPU6050(object): ''' Simple MPU-6050 implementation ''' PWR_MGMT_1 = 0x6b FS_SEL = 0x1b FS_250 = 0 FS_500 = 1 FS_1000 = 2 FS_2000 = 3 AFS_SEL = 0x1c AFS_2g = 0 AFS_4g = 1 AFS_8g = 2 AFS_16g = 3...
""" Player.py - File for defining a Player class. """ import logging import numpy as np from monopoly.Constants import CARD_WIDTH, MAX_LEVEL, MAX_HOUSE_LEVEL, MAX_DOUBLES, JAIL_COST, NUM_PROPERTIES, INIT_CASH from monopoly.Constants import COLOR_COUNTS, COLOR_PROPERTIES, PROPERTY_PRICES, PROPERTY_NAMES, SPACE from mo...
"""NRF24L01 driver for MicroPython """ from micropython import const import utime # nRF24L01+ registers CONFIG = const(0x00) EN_RXADDR = const(0x02) SETUP_AW = const(0x03) SETUP_RETR = const(0x04) RF_CH = const(0x05) RF_SETUP = const(0x06) STATUS = const(0x07) RX_ADDR_P0 = const(0x0A) TX_ADDR = const(0x10) RX_PW_P0 =...
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################## # Copyright Kitware 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 t...
#!/usr/bin/env python """Classes to produce videos from igraph plots. """ from __future__ import with_statement from contextlib import contextmanager from igraph.drawing import BoundingBox, Plot from shutil import rmtree from tempfile import mkdtemp, mkstemp import os import subprocess __all__ = ["MEncoderVideoEnc...
""" Low-level functions for complex arithmetic. """ from backend import MPZ, MPZ_ZERO, MPZ_ONE, MPZ_TWO from libmpf import (\ round_floor, round_ceiling, round_down, round_up, round_nearest, round_fast, bitcount, bctable, normalize, normalize1, reciprocal_rnd, rshift, lshift, giant_steps, negative_rnd...
import sys, time sys.path.append("../../") sys.path.append("../") import numpy as np import pylab as p import scipy.stats.distributions as s #Display from tikz_graphs import StateGraphParams, StateGraph from utils import Utils, PhraseUtils """ * Nog uitstaande vir Grid2: * Make seker Gaussian offset is reg en alle ...
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: components/auth/proto/delegation.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _refle...
"""Config flow for Netatmo.""" from __future__ import annotations import logging import uuid import voluptuous as vol from homeassistant import config_entries from homeassistant.const import CONF_SHOW_ON_MAP from homeassistant.core import callback from homeassistant.data_entry_flow import FlowResult from homeassista...
# 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, print_function, unicode_literals import atexit import errno import os import shutil import stat import tempfile import thr...
import numpy as np import inspect from copy import copy, deepcopy from itertools import chain from scipy.optimize import newton, root from .exceptions import OverDefinedSystem, UnderDefinedSystem from warnings import warn from .impeller import Impeller from .point import Point from .state import State __all__ = ['Stre...
import logging import math import requests import json import traceback from idigbio import util try: # Python 2 from urllib import urlencode except: # Python 3 from urllib.parse import urlencode global_disable_images = False try: import PIL.Image as Image except: global_disable_images = True...
import io import os import unittest import warnings import xml.etree.ElementTree as etree import pronto class TestRdfXMLParser(unittest.TestCase): @staticmethod def get_ontology(content): xml = f""" <rdf:RDF xmlns="http://purl.obolibrary.org/obo/TEMP#" xml:base="http://purl.obo...
#!/usr/bin/env python2 __author__ = 'Marcel Hellkamp' __version__ = 'Templating-0.1-VanDrunen' __license__ = 'MIT' import functools, os, re # Some helpers for string/byte handling def tob(s, enc='utf8'): return s.encode(enc) if isinstance(s, unicode) else bytes(s) def touni(s, enc='utf8', err='strict'): retu...
from __future__ import unicode_literals import base64 import json import datetime import mock from django.test import TestCase, RequestFactory from django.core.urlresolvers import reverse from django.utils import timezone from ..compat import urlparse, parse_qs, urlencode, get_user_model from ..models import get_app...
import logging from datetime import timedelta import random from pajbot import utils from pajbot.managers.db import DBManager from pajbot.managers.handler import HandlerManager from pajbot.managers.schedule import ScheduleManager from pajbot.models.command import Command from pajbot.models.command import CommandExam...
from nltk.featurestructure import * from nltk.cfg import Nonterminal, CFGProduction import string class Category(FeatureStructure, Nonterminal): """ A C{Category} is a specialized feature structure, intended for use in parsing. It can act as a C{Nonterminal}. A C{Category} differs from a C{FeatureStr...
# # SPDX-License-Identifier: MIT # Copyright wtfsckgh@gmail.com # Copyright iced contributors # import pytest from iced_x86 import * def test_register_ext(): assert RegisterExt.base(Register.DL) == Register.AL assert RegisterExt.base(Register.R8W) == Register.AX assert RegisterExt.base(Register.R15D) == Register.E...
import re import platform from decimal import Decimal from urllib import quote from PyQt4.QtGui import * from PyQt4.QtCore import * import PyQt4.QtCore as QtCore import PyQt4.QtGui as QtGui from electrum_cesc_gui.qt.qrcodewidget import QRCodeWidget from electrum_cesc import bmp, pyqrnative, BasePlugin from electrum_...
from functools import partial import threading from PyQt5.Qt import Qt from PyQt5.Qt import QGridLayout, QInputDialog, QPushButton from PyQt5.Qt import QVBoxLayout, QLabel from electrum.gui.qt.util import * from electrum.i18n import _ from electrum.plugin import hook, DeviceMgr from electrum.util import PrintError, U...
import datetime from unittest import mock, skipIf from django.core.exceptions import FieldError from django.db import NotSupportedError, connection from django.db.models import ( Avg, BooleanField, Case, F, Func, Max, Min, OuterRef, Q, RowRange, Subquery, Sum, Value, ValueRange, When, Window, WindowFrame, ) fr...
"""DBF record definition. """ """History (most recent first): 11-feb-2007 [als] __repr__: added special case for invalid field values 10-feb-2007 [als] added .rawFromStream() 30-oct-2006 [als] fix record length in .fromStream() 04-jul-2006 [als] added export declaration 20-dec-2005 [yc] DbfRecord.write() ->...
# Copyright (C) 2016 EMC 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 requ...
import os import re import sys import datetime from django.conf import settings from django.template import Template, Context, TemplateDoesNotExist from django.utils.html import escape from django.http import HttpResponse, HttpResponseServerError, HttpResponseNotFound from django.utils.encoding import smart_unicode H...
from __future__ import unicode_literals import datetime import json import re import sys import time from email.header import Header from django.conf import settings from django.core import signals, signing from django.core.exceptions import DisallowedRedirect from django.core.serializers.json import DjangoJSONEncode...
#!/usr/bin/env python # # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD # SPDX-License-Identifier: Apache-2.0 # import collections import fnmatch import os import sys import tempfile import unittest from io import StringIO try: from ldgen.entity import Entity, EntityDB from ldgen.fragm...
#!/usr/bin/env python """Renderers that render RDFValues into JSON compatible data structures.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import base64 import inspect import logging import numbers from future.builtins import str from future.utils...
#!/usr/bin/env python from __future__ import absolute_import import locale import logging import os import optparse import warnings import sys import re # 2016-06-17 barry@debian.org: urllib3 1.14 added optional support for socks, # but if invoked (i.e. imported), it will issue a warning to stderr if socks # isn't a...
#-*-coding: utf-8 -*- ''' Given a dataset of movies and their ratings by different users, how can we compute the similarity between pairs of movies? This module computes similarities between movies by representing each movie as a vector of ratings and computing similarity scores over these vectors. Copied from...
import os from sys import argv from json import load, dump, JSONEncoder from shutil import disk_usage, copy2, copytree, rmtree j = os.path.join # Logging file name LOGFILE = "backupbuffet.json" # Source & Destination directories SRC = os.path.abspath(argv[1]) DEST = os.path.abspath(argv[2]) # Max free space to leave...
from builtins import str, isinstance import pytest from tests import mock import time from pyglet.media.sources.procedural import Silence try: from pyglet.media.drivers import openal import pyglet.media.drivers.openal.adaptation except ImportError: openal = None pytestmark = pytest.mark.skipif(openal is...
""" Starts a service to scan in intervals for new devices. Will emit EVENT_PLATFORM_DISCOVERED whenever a new service has been discovered. Knows which components handle certain types, will make sure they are loaded before the EVENT_PLATFORM_DISCOVERED is fired. """ import json from datetime import timedelta import lo...
# Copyright 2010-present Basho Technologies, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
""" Swaggy Jenkins Jenkins API clients generated from Swagger / Open API specification # noqa: E501 The version of the OpenAPI document: 1.1.2-pre.0 Contact: blah@cliffano.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from swaggyjenkins.m...
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.23 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
import os import fileinput import distutils.core from markup_formatter import * from javadoc_parser import * import markup_formatter from xml.dom import HierarchyRequestErr ''' Class to create and customize the Wiki ''' class Wiki: ''' Initialize wiki with working directory and call create ''' def __i...
# Copyright 2020 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...
#!/usr/bin/env python # # Copyright 2012 Dominic Rout # # 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 ...
# -*- encoding: utf-8 -*- # Copyright (c) 2015 b<>com # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
# Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the...
# Author: Eric Larson <larson.eric.d@gmail.com> # # License: BSD (3-clause) import os.path as op import numpy as np from numpy.testing import (assert_allclose, assert_array_less, assert_array_equal) from scipy.interpolate import interp1d from scipy.spatial.distance import cdist import pytes...
from libsbml import * from peitho.errors_and_parsers.abc_sysbio.abcsysbio.relations import * import os import re from peitho.errors_and_parsers.abc_sysbio.abcsysbio_parser.Writer import Writer class OdeCUDAWriter(Writer): def __init__(self, sbmlFileName, modelName="", inputPath="", outputPath=""): Writer._...
#! /usr/bin/env python ################################################################################################################## # attention.py # # Jackie Lee # jackylee@media.mit.edu # # Affective Computing Group, MIT Media Laboratory # Special Thanks to Heymian Wong, Jon Wetzel # Last modified on Aug. 9, 20...
# Copyright 2012 IBM Corp. # 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 app...
# 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 score_trees_devel import svg_basic import numpy as np import util import html_colors import scipy.stats import copy import random from operator import add import tcr_sampler #from mannwhitneyu import mannwhitneyu as mannwhitneyu_exact #too slow with Parser(locals()) as p: p.str('clones_...
## ## ODB2 - Pure Python object database ## Copyright (C) 2004 Sami Hangaslammi (shang@jyu.fi) ## import weakref import gc import time import copy import cPickle import filestr class ODBError(Exception): pass class NotInitialised(ODBError): pass class AlreadyInitialised(ODBError): pass class NoSuchRoot(ODBError): pa...
# Copyright 2013: Mirantis 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 b...