gt
stringclasses
1 value
context
stringlengths
2.49k
119k
from . import tasks, util from .extensions import db, login_mgr, micropub from .models import Feed, Entry, User, Subscription import flask.ext.login as flask_login import binascii import bs4 import datetime import feedparser import flask import mf2py import mf2util import requests import re import urllib import cgi imp...
## # Copyright (c) 2012-2017 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
from falcon.http_error import HTTPError from apiRequests.RequestCodes import Code, HTTP_809 class Error(Exception): def __init__(self, code, message): super(Error, self).__init__({'code': code, 'message': message}) # Mongodb's errors 1 - 999 class MongodbConnectionFail(Error): _CODE = 1 _DEFAUL...
from __future__ import absolute_import, print_function import collections import logging import six from django.conf import settings from django.db import transaction from django.utils.encoding import force_text from sentry.utils import json from sentry.utils.strings import truncatechars from sentry.utils.compat imp...
# Copyright 2013 Donald Stufft # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
import time import socket import gevent import numpy as np import sys import cv2 from mabopy.config.load_config import LoadConfig import cvlib conf = LoadConfig("config.toml").config """ def match(): img = cv2.imread("box_in_scene2.png")#sys.argv[1]) temp = cv2.imread("box4.png")#sys.argv[2]) try...
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ The rapidart module provides routines for artifact detection and region of interest analysis. These functions include: * SpecifyModel: allows specification of sparse and non-sparse models """ impor...
"""Ensembler module for homolog structures""" __author__ = "Jens Thomas, and Felix Simkovic" __date__ = "17 Nov 2016" __version__ = "1.0" import logging import os import shutil import sys from ample.ensembler import _ensembler from ample.ensembler import truncation_util from ample.ensembler.constants import SIDE_CHA...
# Copyright 2016 Twitter. 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 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 applicab...
# 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...
#!/usr/bin/env python # # Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import base64 import gzip import logging import optparse import os import re import select import shutil import sys import threading ...
import errno import logging import socket import sys import unittest import time import warnings import mock try: from urllib.parse import urlencode except: from urllib import urlencode from .. import ( requires_network, onlyPy3, onlyPy26OrOlder, TARPIT_HOST, VALID_SOURCE_ADDRESSES, INVALID_SOURCE_AD...
#!/usr/bin/python # Copyright (C) 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
from django.http import HttpResponse, JsonResponse from django.views import generic from django.conf.urls.static import static from requests import * import json import datetime class IndexView(generic.TemplateView): # Main index.html. template_name = 'animals/index.html' def EOLforId(request, taxa_name): '''...
""" 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 ...
# engine/default.py # Copyright (C) 2005-2014 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 """Default implementations of per-dialect sqlalchemy.engine classes. These are semi...
# Copyright (C) 2012-2014 The python-bitcoinlib developers # # This file is part of python-bitcoinlib. # # It is subject to the license terms in the LICENSE file found in the top-level # directory of this distribution. # # No part of python-bitcoinlib, including this file, may be copied, modified, # propagated, or dist...
#!/usr/bin/env python #Parallel JTAG programmer for the MSP430 embedded proccessor. # #(C) 2002 Chris Liechti <[email protected]> #this is distributed under a free software license, see license.txt # #Requires Python 2+ and the binary extension _parjtag. import sys import _parjtag VERSION = "1.3" DEBUG = 0 ...
#!/usr/bin/env python # # Copyright 2017 Vitalii Kulanov # # 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...
# 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...
# -*- coding: utf-8 -*- from __future__ import unicode_literals """ Holds all the information relevant to the client (addresses for instance) """ from six import with_metaclass from django.db import models from django.template import Context from django.template.loader import select_template from django.utils.translat...
# -*- coding: utf-8 -*- # Copyright (c) 2012-2015, Ben Lopatin and contributors # 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 ...
""" Atom-based Bootstrap Embedding """ import os import time import numpy as np import multiprocessing as mtproc import itertools as its from frankenstein.be import BE from frankenstein.pyscf_be.pysd_atom import pySDATOM from frankenstein.tools.io_utils import prtvar """ Methods for setting up fragments/getting in...
""" websocket - WebSocket client library for Python Copyright (C) 2010 Hiroki Ohtani(liris) 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 License, ...
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: eval.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message a...
# Copyright 2010 Google Inc. # # 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, publish, dis- # trib...
import numpy as np import scipy.stats as ss import scipy.special as sp from .family import Family from .flat import Flat from .gas_recursions import gas_recursion_normal_orderone, gas_recursion_normal_ordertwo from .gas_recursions import gasx_recursion_normal_orderone, gasx_recursion_normal_ordertwo from .gas_recursi...
""" sentry.testutils.cases ~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import __all__ = ( 'TestCase', 'TransactionTestCase', 'APITestCase', 'AuthProviderTestCase', 'RuleTest...
import concurrent.futures import configparser import logging import multiprocessing import os import shutil import signal import sys import tabpy from tabpy.tabpy import __version__ from tabpy.tabpy_server.app.app_parameters import ConfigParameters, SettingsParameters from tabpy.tabpy_server.app.util import parse_pwd_f...
""" Utilities and glue code for providing a command-line interface to module functions. """ import sys import argparse def add_cmdline_args(group_name, parser): """ All module-specific command-line arguments are specified here, split into groups by functionality. Any command-line interfacing function ...
from __future__ import unicode_literals, print_function import pytest from oar.lib import db from oar.kao.job import insert_job from oar.kao.meta_sched import meta_schedule import oar.lib.tools # for monkeypatching from oar.lib.tools import get_date @pytest.yield_fixture(scope='function', autouse=True) def minimal...
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:10011") else: access = Se...
# Copyright 2019 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 __future__ import absolute_import, division, print_function import pytest pytest.importorskip('dill') from toolz import (merge, join, pipe, filter, identity, merge_with, take, partial) import math from dask.bag.core import (Bag, lazify, lazify_task, fuse, map, collect, reduceby, bz2_stream, strea...
# -*- encoding: utf-8 -*- # ------------------------------------------------------------------------------- # Copyright (c) 2014 Vincent Gauthier Telecom SudParis. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), ...
# Copyright 2016 NeuroData (http://neurodata.io) # # 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 ag...
""" Commands that are available from the connect screen. """ import re import traceback import time from collections import defaultdict from random import getrandbits from django.conf import settings from evennia.players.models import PlayerDB from evennia.objects.models import ObjectDB from evennia.server.models impor...
# -*- coding: utf-8 -*- """ Created on Tue Nov 15 12:05:40 2016 @author: sjjoo """ import sys import mne import matplotlib.pyplot as plt from mne.utils import run_subprocess, logger import os from os import path as op import copy import shutil import numpy as np from numpy.random import randn from scipy import stats ...
<<<<<<< HEAD <<<<<<< HEAD """Pseudo terminal utilities.""" # Bugs: No signal handling. Doesn't set slave termios and window size. # Only tested on Linux. # See: W. Richard Stevens. 1992. Advanced Programming in the # UNIX Environment. Chapter 19. # Author: Steen Lumholt -- with additions by Guido. fro...
################################################################################ # 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...
import operator import random from functools import reduce import numpy as np import itertools import math import acpc_python_client as acpc from tools.constants import NUM_ACTIONS from tools.game_tree.builder import GameTreeBuilder from tools.game_tree.node_provider import NodeProvider from tools.game_tree.nodes imp...
"""Support for computing limited differences needed in reconstruction of slopes in constructing interface states.""" import numpy as np import sys def limit(data, myg, idir, limiter): """ a single driver that calls the different limiters based on the value of the limiter input variable.""" if limiter == 0...
# -*- coding: utf-8 -*- from __future__ import absolute_import import mock from exam import fixture from sentry.interfaces.stacktrace import ( Frame, Stacktrace, get_context, slim_frame_data ) from sentry.models import Event from sentry.testutils import TestCase class GetContextTest(TestCase): def test_wo...
from django.test import TestCase from django.db.utils import IntegrityError from pyday_social_network.models import PyDayUser, FollowingRelation from pyday_social_network.views import * from django.test import Client from django.core.urlresolvers import reverse # from django.core.files.uploadedfile import SimpleUploade...
""" Test of the classical LM model for language modelling """ from groundhog.datasets import LMIterator from groundhog.trainer.SGD_momentum import SGD as SGD_m from groundhog.trainer.SGD import SGD from groundhog.mainLoop import MainLoop from groundhog.layers import MultiLayer, \ RecurrentMultiLayer, \ Re...
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import logging import os import subprocess from telemetry.core import util from telemetry.core.chrome import browser_backend from telemetry.core.chrome i...
"""Testing utilities.""" # Copyright (c) 2011, 2012 # Authors: Pietro Berkes, # Andreas Muller # Mathieu Blondel # Olivier Grisel # Arnaud Joly # Denis Engemann # License: BSD 3 clause import os import inspect import pkgutil import warnings import sys import re import platf...
# coding=utf-8 # # Copyright 2010 Brave Labs sp. z o.o. # All rights reserved. # # This source code and all resulting intermediate files are CONFIDENTIAL and # PROPRIETY TRADE SECRETS of Brave Labs sp. z o.o. # Use is subject to license terms. See NOTICE file of this project for details. import logging import sys fro...
"""This file contains tests for individual management commands These commands are run via `./manage.py command`.""" from datetime import date, datetime, time from io import StringIO import unittest from unittest.mock import MagicMock from django.core.management import call_command from django.test import TestCase im...
# coding: utf-8 import os import time import csv import tempfile from django.urls import reverse from django.core.files.storage import get_storage_class, FileSystemStorage from django.utils import timezone from xlrd import open_workbook from onadata.apps.viewer.models.export import Export from onadata.apps.viewer.vie...
"""The tests for the InfluxDB component.""" import unittest from unittest import mock import influxdb as influx_client from homeassistant.setup import setup_component import homeassistant.components.influxdb as influxdb from homeassistant.const import EVENT_STATE_CHANGED, STATE_OFF, STATE_ON from tests.common import...
#!/usr/bin/env python """ NumPy is the fundamental package for array computing with Python. It provides: - a powerful N-dimensional array object - sophisticated (broadcasting) functions - tools for integrating C/C++ and Fortran code - useful linear algebra, Fourier transform, and random number capabilities - and much...
# Copyright (c) 2011 Gennadiy Shafranovich # Licensed under the MIT license # see LICENSE file for copying permission. import json from datetime import date from datetime import datetime from datetime import timedelta from urllib import quote_plus from urllib import urlopen from django.db import models #-----------...
# ============================================================================= # pre_migrate.py - plugin for preparing for migrating classic XR to eXR/fleXR # # Copyright (c) 2013, Cisco Systems # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted...
# Copyright 2017 The UAI-SDK 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 applicabl...
import os import py, pytest from _pytest.mark import MarkGenerator as Mark class TestMark: def test_markinfo_repr(self): from _pytest.mark import MarkInfo m = MarkInfo("hello", (1,2), {}) repr(m) def test_pytest_exists_in_namespace_all(self): assert 'mark' in py.test.__all__ ...
# -*- coding: utf-8 -*- """ Django settings for To-Do-List project. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings/ """ import environ import os ROOT_DIR = environ.P...
#!/usr/bin/env python from nose.tools import assert_equal import networkx as nx from networkx.algorithms import bipartite from networkx.testing import assert_edges_equal, assert_nodes_equal class TestBipartiteProject: def test_path_projected_graph(self): G=nx.path_graph(4) P=bipartite.projected_gr...
#!/usr/bin/env python from light_classification.tl_classifier import TLClassifier from styx_msgs.msg import TrafficLightArray, TrafficLight from geometry_msgs.msg import PoseStamped, Pose from sensor_msgs.msg import Image from scipy.spatial import KDTree from std_msgs.msg import Int32 from styx_msgs.msg import Lane fro...
# -*- coding: utf-8 -*- """ This module defines an image-level classification application that maps from images to scalar, multi-class labels. This class is instantiated and initalized by the application_driver. """ import os import tensorflow as tf from niftynet.application.base_application import BaseApplication ...
import re from utils import Bunch #TODO: consider adding "* * last 11 4 *" style strings (last thursday of november) class InvalidFieldError(Exception): pass class InvalidCronStringError(Exception): pass class BasicCronRule(object): start_year = 2000 stop_year = 2025 holiday_re = "[\*]\s[\*]\...
# # 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 ...
"""RFC 6962 client API.""" import base64 import json from ct.client.db import database from ct.crypto import verify from ct.proto import client_pb2 import gflags import logging import random import requests from twisted.internet import defer from twisted.internet import error from twisted.internet import protocol fro...
""" ============================================================= Online Latent Dirichlet Allocation with variational inference ============================================================= This implementation is modified from Matthew D. Hoffman's onlineldavb code Link: http://www.cs.princeton.edu/~mdhoffma/code/onli...
# Copyright 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 or ...
#! /usr/bin/env python # Immunity libdisassemble # # Most of the functions are ported from the great libdisassm since we # we are using their opcode map. # TODO: # - Fix the getSize(), doesn't work well with all the opcodes # - Enhance the metadata info with more information on opcode. # i.e. we need a ...
# Copyright 2021, The TensorFlow Federated Authors. # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Post.is_sticky' db.add_column('blogs_post', 'is_sticky', self.gf('djan...
import datetime import unittest import uuid from copy import deepcopy from django.core.exceptions import FieldError from django.db import DatabaseError, connection, models, transaction from django.db.models import CharField, Q, TimeField, UUIDField from django.db.models.aggregates import ( Avg, Count, Max, Min, St...
#!/usr/bin/env python """Microbenchmark for Python's sequence unpacking.""" # Python imports import optparse import time # Local imports import util def do_unpacking(iterations, to_unpack): times = [] for _ in xrange(iterations): t0 = time.time() # 400 unpackings a, b, c, d, e, f, g...
from __future__ import print_function, division from sympy.core import C, Add, Mul, Pow, S from sympy.core.compatibility import default_sort_key, string_types from sympy.core.mul import _keep_coeff from sympy.printing.str import StrPrinter from sympy.printing.precedence import precedence from sympy.core.sympify import...
""" This is originally from: https://github.com/mahendra/kafka-python/blob/zookeeper/kafka/zookeeper.py It is modified in a few places to work with more recent KafkaClient. Also, multiprocess is substituted for threading. Since threading is gevent friendly, where multiprocess is not. """ import logging import thread...
import os, sys, unittest import setup_path from lib.asmlib.linker import * from lib.asmlib.assembler import * from lib.asmlib.asm_common_types import * from lib.commonlib.utils import * from lib.commonlib.luz_defs import ( USER_MEMORY_START, USER_MEMORY_SIZE) # Initial offset IOF = 0x100000 op_call = 0x1D op_lui...
#! /usr/bin/env python ################################################################################################################## # attention.py # # Jackie Lee # [email protected] # # Affective Computing Group, MIT Media Laboratory # Special Thanks to Heymian Wong, Jon Wetzel # Last modified on Aug. 9, 20...
from __future__ import unicode_literals import os.path import optparse import sys from .downloader.external import list_external_downloaders from .compat import ( compat_expanduser, compat_get_terminal_size, compat_getenv, compat_kwargs, compat_shlex_split, ) from .utils import ( preferredenco...
#!/usr/bin/env python # Runtime (690, 130, 128, 128): 1.5 hours from __future__ import print_function from __future__ import absolute_import import numpy import h5py import gc from .cloud_objects import Cloudlet, Cluster from .utility_functions import index_to_zyx, zyx_to_index saveit = True #----------------------...
"""Support for the Xiaomi vacuum cleaner robot.""" import asyncio from functools import partial import logging from miio import DeviceException, Vacuum # pylint: disable=import-error import voluptuous as vol from homeassistant.components.vacuum import ( ATTR_CLEANED_AREA, DOMAIN, PLATFORM_SCHEMA, STA...
# 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...
from __future__ import print_function import threading import unittest import mock import numpy import six import chainer from chainer.backends import cuda from chainer import testing from chainer.testing import attr from chainer.utils import type_check def make_array(start, shape, dtype): size = numpy.product(...
from __future__ import unicode_literals import django.forms.models as model_forms import json import six from django import forms from django.conf import settings from django.conf.urls import patterns, url from django.contrib import messages from django.contrib.auth import REDIRECT_FIELD_NAME, get_user_model from dja...
# Copyright (c) 2006-2007 The Regents of The University of Michigan # Copyright (c) 2009 Advanced Micro Devices, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source co...
# Copyright (c) 2014 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 or...
# # 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 # ...
""" The MIT License Copyright (c) 2008 Gilad Raphaelli <[email protected]> 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, c...
# The MIT License # # 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, publish, distribute, sublicense...
# Copyright 2016 Nexenta Systems, 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 requi...
import itertools, json, string, sys, math from functools import wraps, partial from contextlib import suppress from collections import deque, defaultdict import operator from base64 import b16encode, b32encode, b64encode, b64encode, a85encode from generators import G, chain, window, first eprint = partial(print, file...
from wagtail.wagtailcore import blocks from wagtail.wagtailimages import blocks as images_blocks from wagtail.wagtailsnippets.blocks import SnippetChooserBlock from . import atoms, molecules from ..util import ref from ..models.snippets import Contact as ContactSnippetClass class Well(blocks.StructBlock): conten...
# -*- encoding: utf-8 -*- # # Copyright 2013 Hewlett-Packard Development Company, L.P. # Copyright 2014 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.apach...
#!/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 "Lice...
""" State Space Representation, Kalman Filter, Smoother, and Simulation Smoother Author: Chad Fulton License: Simplified-BSD """ from __future__ import division, absolute_import, print_function import numpy as np from .kalman_smoother import KalmanSmoother from .tools import prefix_simulation_smoother_map SIMULATION...
# 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...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on 05/04/17 at 2:48 PM @author: neil Program description here Version 0.0.0 """ import numpy as np from astropy.io import fits from astropy.table import Table from astropy import units as u from tqdm import tqdm import os try: import periodogram_functio...
# 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...
import json import pytest from django.urls import reverse from ..models import Integration users = ( ('owner', 'owner'), ('manager', 'manager'), ('author', 'author'), ('guest', 'guest'), ('api', 'api'), ('user', 'user'), ('site', 'site'), ('anonymous', None), ) view_integration_permi...
# Copyright 2012 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 agre...
# Copyright (c) 2014 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 ...
"""Actors communicate with each other by sending and receiving messages. The :mod:`pulsar.async.mailbox` module implements the message passing layer via a bidirectional socket connections between the :class:`.Arbiter` and any :class:`.Actor`. Message sending is asynchronous and safe, the message is guaranteed to event...
# Copyright 2019 Mycroft AI Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...