gt
stringclasses
1 value
context
stringlengths
2.49k
119k
# Copyright (c) 2014 NetApp, 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...
""" Classes of equations composed of terms. """ from __future__ import absolute_import from copy import copy import numpy as nm import scipy.sparse as sp from sfepy.base.base import output, assert_, get_default, iter_dict_of_lists from sfepy.base.base import OneTypeList, Container, Struct from sfepy.base.timing impor...
# # This source file is part of the EdgeDB open source project. # # Copyright 2016-present MagicStack Inc. and the EdgeDB 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...
# 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 ...
import warnings import random import json import jinja2 import re import os from ._server import serve_and_open from .utils import deprecated, get_id, write_ipynb_local_js from .mplexporter import Exporter from .mpld3renderer import MPLD3Renderer from . import urls __all__ = ["fig_to_html", "fig_to_dict", "fig_to_d3",...
# coding=utf-8 # pylint: disable-msg=E1101,W0612 import pytest import numpy as np import pandas as pd import pandas._libs.lib as lib import pandas.util.testing as tm from .common import TestData class TestSeriesReplace(TestData): def test_replace(self): N = 100 ser = pd.Series(np.random.randn(N...
""" Provide user facing operators for doing the split part of the split-apply-combine paradigm. """ import warnings import numpy as np from pandas.util._decorators import cache_readonly from pandas import compat from pandas.compat import zip, callable from pandas.core.dtypes.generic import ABCSeries from pandas.cor...
#### Bejeweled -- By Neil Barot """ Things I can add on: # -- Need to do butterfly mode counter # -- Need to add music # -- Need to do reverse animation # -- Need to do drop animation # -- Need to do high scores -> sql database # -- Need to do profile --> Text Field to enter name' """ ## --> Good for now, I'll study i...
from mpf.tests.MpfMachineTestCase import MpfMachineTestCase class TestTafMansionAwards(MpfMachineTestCase): def _start_single_player_game(self, secs_since_plunge): self.hit_and_release_switch('start') # game should be running self.assertIsNotNone(self.machine.game) self.assertEqu...
import random import typing from discord.ext import commands import discord from .models import (Fighter, FakeFighter, Game, EndReason, arena_id, MODES, inject_help_modes, SmashError, FighterMenu, FighterPageSource) from utils import ...
# Copyright 2016 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 applicable ...
"""Support for Dutch Smart Meter (also known as Smartmeter or P1 port).""" import asyncio from datetime import timedelta from functools import partial import logging import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import ( CONF_HOST, CONF_PORT, EVENT_H...
# -*- coding:utf-8 -*- import abc import sys import inspect import types import itertools import networkx as nx from pandaspipe.util import patch_list, isSubset from pandaspipe.base import PipelineEntity import logging _log = logging.getLogger(__name__) _log.addHandler(logging.StreamHandler(stream=sys.stdout)) class...
#! /usr/bin/env python # $Header$ '''Faults. ''' from pysphere.ZSI import _get_idstr, _seqtypes, SoapWriter, ZSIException from pysphere.ZSI.TCcompound import Struct from pysphere.ZSI.TC import QName, URI, String, AnyElement, UNBOUNDED from pysphere.ZSI.wstools.Namespaces import SOAP, ZSI_SCHEMA_URI from pysphere.ZSI...
import datetime import dateutil import numpy as np import pytest import pandas as pd from pandas import ( DataFrame, Series, ) import pandas._testing as tm class TestDataFrameMissingData: def test_dropEmptyRows(self, float_frame): N = len(float_frame.index) mat = np.random.randn(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 ...
import functools import json import urllib from django import http from django.conf import settings from django.contrib import messages from django.core.urlresolvers import reverse from django.shortcuts import get_object_or_404, redirect, render from django.views.decorators.http import require_POST import commonware ...
# Copyright 2012 VMware, 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 a...
# Copyright 2020 The TensorFlow 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
""" #Train a simple deep CNN on the CIFAR10 small images dataset. It gets to 75% validation accuracy in 25 epochs, and 79% after 50 epochs. (it"s still underfitting at that point, though). """ import argparse import time from tensorflow.keras.datasets import cifar10 from tensorflow.keras.preprocessing.image import Im...
# -*- 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 model 'Property_fee' db.create_table(u'SmartDataApp_property_fee', ( (u'id', self.gf('d...
from __future__ import unicode_literals from moto.core.responses import BaseResponse from .models import iam_backend class IamResponse(BaseResponse): def create_role(self): role_name = self._get_param('RoleName') path = self._get_param('Path') assume_role_policy_document = self._get_para...
#!/usr/bin/env python # Copyright 2013 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 ...
from datetime import date from django import forms from django.contrib.admin.models import ADDITION, CHANGE, DELETION, LogEntry from django.contrib.admin.options import ( HORIZONTAL, VERTICAL, ModelAdmin, TabularInline, get_content_type_for_model, ) from django.contrib.admin.sites import AdminSite from django....
from decimal import Decimal from distutils.version import LooseVersion from django.core.management.base import NoArgsCommand from django.core import urlresolvers from django.utils.importlib import import_module import django import imp import logging import re import sys import types errors = [] logged_more = False ap...
from __future__ import print_function from __future__ import absolute_import # # This file is part of khmer, https://github.com/dib-lab/khmer/, and is # Copyright (C) Michigan State University, 2009-2015. It is licensed under # the three-clause BSD license; see LICENSE. # Contact: khmer-project@idyll.org # # pylint: di...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 The FATE 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/lic...
# Tkinter font wrapper # # written by Fredrik Lundh, February 1998 # # FIXME: should add 'displayof' option where relevant (actual, families, # measure, and metrics) # __version__ = "0.9" import tkinter # weight/slant NORMAL = "normal" ROMAN = "roman" BOLD = "bold" ITALIC = "italic" def nametofont(name): ...
""" django-helpdesk - A Django powered ticket tracker for small enterprise. (c) Copyright 2008 Jutda. All Rights Reserved. See LICENSE for details. views/staff.py - The bulk of the application - provides most business logic and renders all staff-facing views. """ from datetime import datetime, timed...
#!/usr/bin/env python3 # Copyright (c) 2014-2020 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the fundrawtransaction RPC.""" from decimal import Decimal from test_framework.test_framework imp...
# Copyright 2015-2016 Palo Alto 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 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 # distributed under the Li...
from __future__ import division, print_function import os import numpy as np from scipy import einsum from scipy.sparse import csr_matrix import scipy.signal as dsp import utils melody_dir = '' chroma_dir = '' def compute_and_write(data_dir, track_list=None, features=None): """Compute frame-based features fo...
#!/usr/bin/python -u # Copyright (c) 2010-2016 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 ap...
from __main__ import settings, botdata from PIL import Image, ImageDraw, ImageFont from .imagetools import * import math table_font = settings.resource("images/arial_unicode_bold.ttf") # cache of table_font based on size table_font_cache = {} def get_table_font(size): if size not in table_font_cache: table_font_c...
# -*- 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...
# Techniques to smooth jumps in location tracking. Each of these returns a # boolean mask of inliers and outliers. We assume that the incoming dataframe # has a column called "speed" that represents the speed at each point. The # speed of the first point is zero. # The result is in the inlier_mask field of the appropri...
################################ # EvoMan FrameWork - V1.0 2016 # # Author: Karine Miras # # karine.smiras@gmail.com # ################################ import sys import numpy import random import Base from Base.SpriteConstants import * from Base.SpriteDefinition import * from sensors import Sensors til...
# -*- encoding: utf-8 -*- from __future__ import unicode_literals from django.core.checks import Error from django.db import models from django.test.utils import override_settings from .base import IsolatedModelsTestCase class IndexTogetherTests(IsolatedModelsTestCase): def test_non_iterable(self): cla...
# #------------------------------------------------------------------------------ # Copyright (c) 2013-2014, Christian Therien # # 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://ww...
import MySQLdb as mysql import logging import sys import argparse import collections from functools import lru_cache from datetime import datetime, timezone, timedelta # Logger object logger = logging.getLogger("calculate-paths") # Database sql = mysql.connect( host='localhost', database='atlas', ...
# # Copyright (c) 2016 Juniper Networks, Inc. All rights reserved. # """ This file contains implementation of data model for kube manager """ import json from pysandesh.gen_py.sandesh.ttypes import SandeshLevel from cfgm_common.vnc_db import DBBase from bitstring import BitArray from vnc_kubernetes_config import VncK...
# Copyright 2017 - Nokia # # 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...
#!/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 # "L...
#!/usr/bin/env python # Copyright (C) 2013 Hewlett-Packard. # # 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...
import time import sys import os import shutil import matplotlib import valid_tool as vt import tester from func import * matplotlib.use('Agg') import matplotlib.pyplot as plt plt.ion() class ProgressWriter: def __init__(self, total, width=80): self.total = total self.counter = 0 self.progr...
# ---------------------------------------------------------------------------- # Copyright 2014 Nervana Systems 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.o...
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the pruning code. WARNING: This test uses 4GB of disk space. This test takes 30 mins or more (up ...
## @package convnet_benchmarks # Module caffe2.python.convnet_benchmarks """ Benchmark for common convnets. Speed on Titan X, with 10 warmup steps and 10 main steps and with different versions of cudnn, are as follows (time reported below is per-batch time, forward / forward+backward): CuDNN V3 ...
<<<<<<< HEAD <<<<<<< HEAD import io import os import sys import pickle import subprocess import unittest from unittest.case import _Outcome from unittest.test.support import (LoggingResult, ResultWithNoStartTestRunStopTestRun) class TestCleanUp(unittest.TestCase): def testCle...
""" The default styling. """ from __future__ import unicode_literals, absolute_import from .style import Style, merge_styles from .base import ANSI_COLOR_NAMES from .named_colors import NAMED_COLORS from prompt_toolkit.cache import memoized __all__ = [ 'default_ui_style', 'default_pygments_style', ] #: Defaul...
"""Attribute/instance expiration, deferral of attributes, etc.""" import sqlalchemy as sa from sqlalchemy import exc as sa_exc from sqlalchemy import FetchedValue from sqlalchemy import ForeignKey from sqlalchemy import Integer from sqlalchemy import String from sqlalchemy import testing from sqlalchemy.orm import att...
#!/usr/bin/env python """Distutils based setup script for SymPy. This uses Distutils (http://python.org/sigs/distutils-sig/) the standard python mechanism for installing packages. For the easiest installation just type the command (you'll probably need root privileges for that): python setup.py install This will...
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import, division, print_function import re from decimal import Decimal import pytz from ..handhistory import _Player, _SplittableHandHistory, _BaseFlop from ..card import Card from ..hand import Combo from ..constants import Limit, Game, GameTyp...
# -*- coding: utf-8 -*- """ MicroPython PCD8544 driver (for Nokia 5110 displays) """ __author__ = "Markus Birth" __copyright__ = "Copyright 2015, Markus Birth" __credits__ = ["Markus Birth"] __license__ = "MIT" __version__ = "1.0" __maintainer__ = "Markus Birth" __email__ = "markus@birth-online.de"...
import re from typing import Pattern, Callable from atcodertools.codegen.code_generators import cpp, java, rust, python, nim, d, cs, swift, go, julia from atcodertools.codegen.models.code_gen_args import CodeGenArgs from atcodertools.tools.templates import get_default_template_path from atcodertools.codegen.code_style...
"""The tests for the InfluxDB component.""" import copy import unittest from unittest import mock import influxdb as influx_client import homeassistant.components.influxdb as influxdb from homeassistant.const import EVENT_STATE_CHANGED, STATE_OFF, STATE_ON @mock.patch('influxdb.InfluxDBClient') class TestInfluxDB(u...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
# Copyright 2011 Justin Santa Barbara # 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...
# Copyright 2016 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 .SDM import * from tqdm import tqdm from sys import getsizeof from tempfile import TemporaryFile import os import shutil import time import pickle import math from warnings import warn """ PVS (Pulsating Variable Star)- Class Description: Class to generate, load, acess, store, and do very basic analysis ...
# 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...
#!/usr/bin/python # -*- coding: utf-8 -*- ''' Manipulate a text and array board of Go. ''' __author__ = 'Ethan Kennerly' # doctest abhors '...' empty = ',' empty_black = ',' empty_white = ',' question_black = '%' question_hide_black = ']' empty_characters = empty + '.+' \ + empty_black + empty_white \ ...
import collections import functools import json import os import sys import time import traceback import uuid from django import forms as django_forms from django import http from django.conf import settings from django.core.exceptions import PermissionDenied from django.core.files.storage import default_storage as st...
# $Id$ # # Copyright (c) 2003-2010 Greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # from __future__ impor...
from django.test import TestCase from dcim.models import Device, DeviceRole, DeviceType, Interface, Manufacturer, Region, Site from ipam.choices import * from ipam.filters import * from ipam.models import Aggregate, IPAddress, Prefix, RIR, Role, RouteTarget, Service, VLAN, VLANGroup, VRF from virtualization.models imp...
# Copyright 2018 OpenStack Foundation # Copyright 2017 Letv Cloud Computing # 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/l...
# Copyright (c) 2013 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.apache.org/licenses/LICENSE-2.0 # # Unless ...
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
# Copyright 2013 Metacloud, Inc. # Copyright 2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
# Copyright (c) 2006-2012 Mitch Garnaat http://garnaat.org/ # Copyright (c) 2012 Amazon.com, Inc. or its affiliates. # Copyright (c) 2010 Google # Copyright (c) 2008 rPath, Inc. # Copyright (c) 2009 The Echo Nest Corporation # Copyright (c) 2010, Eucalyptus Systems, Inc. # Copyright (c) 2011, Nexenta Systems Inc. # All...
import os import subprocess import sys from functools import lru_cache from io import BytesIO from typing import Generator import pytest from click.testing import CliRunner as __CliRunner from platformdirs import user_cache_dir, user_data_dir from hatch.config.constants import AppEnvVars, ConfigEnvVars, PublishEnvVar...
# 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...
import warnings import sys import codecs import numpy import argparse import theano import json import pickle from rep_reader import RepReader from util import read_passages, evaluate, make_folds from keras.models import Sequential, Graph, model_from_json from keras.layers.core import TimeDistributedDense, Dropout fr...
#!/usr/bin/env python3 # # 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. """Instruments classes and jar files. This script corresponds to the 'jacoco_instr' action in the Java build process. Depending on ...
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import os import datetime import json import logging import mock import six import zlib from django.conf import settings from django.core.urlresolvers import reverse from django.test.utils import override_settings from django.utils import...
""" Model construction utilities based on keras """ from distutils.version import LooseVersion import keras from keras.models import Sequential from keras.layers import Dense, Activation, Flatten from .model import Model, NoSuchLayerError if LooseVersion(keras.__version__) >= LooseVersion('2.0.0'): from keras.layer...
# Copyright 2016 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...
# Copyright 2012-2013 OpenStack, LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base.list_resource import ListResource f...
"""Template helper methods for rendering strings with Home Assistant data.""" import base64 import json import logging import math import random import re from datetime import datetime from functools import wraps from typing import Iterable import jinja2 from jinja2 import contextfilter, contextfunction from jinja2.sa...
""" Batch processors These commands implements the 'batch-command' and 'batch-code' processors, using the functionality in evennia.utils.batchprocessors. They allow for offline world-building. Batch-command is the simpler system. This reads a file (*.ev) containing a list of in-game commands and executes them in sequ...
# pipelines.py # functions to transform nbacom list of dict # for insertion into database, use in optimizer, etc. import logging from nba.dates import add_days_to_datestr, strtodate, today from nba.position import guess_position logging.getLogger(__name__).addHandler(logging.NullHandler()) def games_table(games): ...
# Microsoft Azure Linux Agent # # Copyright 2018 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
# pylint: disable=line-too-long # pylint: disable=bad-whitespace # I just like to watch the world burn: # pylint: disable=mixed-indentation # pylint: disable=invalid-name """This should be a comprehensive testsuite for Pymarquise's functionality.""" import sys import os import pytest from marquise import Marquise # ...
from cement.core import backend, foundation, controller, handler import requests from requests.auth import HTTPBasicAuth from jinja2 import Environment, FileSystemLoader, Template import codecs import sys, os from os.path import expanduser from template import DEFAULT_TEMPLATE APP_NAME = 'jira-cards' BOARD_API = '/re...
# Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # # 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...
import sys, os, glob, string import numpy as np import astropy as ast import matplotlib.pyplot as plt from pyraf import iraf import odi_config as odi import pandas as pd from astropy.coordinates import SkyCoord from astropy import units as u from collections import OrderedDict def find_sources_full(img,fwhm,bg_std,thr...
import re import io import logging import copy try: from configparser import RawConfigParser, NoOptionError, NoSectionError except ImportError: from ConfigParser import RawConfigParser, NoOptionError, NoSectionError from canopen import objectdictionary from canopen.sdo import SdoClient logger = logging.getLogg...
# Copyright Hybrid Logic Ltd. See LICENSE file for details. # -*- test-case-name: flocker.control.test.test_model -*- """ Record types for representing deployment models. **IMPORTANT:** If you change classes in this module that get serialized as part of the cluster configuration file you need to write upgrade code t...
from tests.app.helpers import BaseApplicationTest from datetime import datetime from flask import json import mock from sqlalchemy.exc import IntegrityError from app.models import Supplier, ContactInformation, Service, Framework, \ DraftService from app import db from nose.tools import assert_equal, assert_in, ass...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np import gdspy import picwriter.toolkit as tk from picwriter.components.waveguide import Waveguide class DirectionalCoupler(tk.Component): """Directional Coupler Cell class. Args: ...
from direct.distributed.DistributedObject import DistributedObject from direct.distributed.DistributedObjectGlobal import DistributedObjectGlobal from toontown.chat.ChatGlobals import * from toontown.parties import PartyGlobals from toontown.toon import ToonDNA from toontown.toonbase import TTLocalizer from toontown.t...
# 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...
# Copyright 2010 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 l...
from psycopg2 import DataError, ProgrammingError import pytest import datetime from drunken_boat.db.exceptions import NotFoundError from drunken_boat.db.postgresql.tests import projections_fixtures from drunken_boat.db.postgresql.projections import DataBaseObject from drunken_boat.db.postgresql.query import Query, Whe...
# Software License Agreement (BSD License) # # Copyright (c) 2009, Willow Garage, 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 code must retain the above...
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """An example functional test The module-level docstring should include a high-level description of what the t...
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance wi...
#!/usr/bin/env python from ..surveyor import Surveyor import simuvex import collections import networkx import logging l = logging.getLogger("angr.surveyors.explorer") class Explorer(Surveyor): """ Explorer implements a symbolic exploration engine! found - paths where the target addresses have been foun...