gt
stringclasses
1 value
context
stringlengths
2.49k
119k
# -*- coding: utf-8 -*- ######################################################################## # # License: BSD # Created: March 4, 2003 # Author: Francesc Alted - faltet@pytables.com # # $Id$ # ######################################################################## """Utility functions"""...
#!/usr/bin/env python # Copyright (C) 2014 Yahoo! 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...
""" ============================ ``ctypes`` Utility Functions ============================ See Also --------- load_library : Load a C library. ndpointer : Array restype/argtype with verification. as_ctypes : Create a ctypes array from an ndarray. as_array : Create an ndarray from a ctypes array. References ----------...
import logging from allauth.socialaccount.models import SocialToken from django.conf import settings from requests_oauthlib import OAuth1Session, OAuth2Session from .models import GithubProject, GithubOrganization, BitbucketProject, BitbucketTeam from tastyapi import apiv2 log = logging.getLogger(__name__) def ge...
import os import time import numpy as np import asap3 from asap3.mpi import world from asap3.io.trajectory import _GetAtoms try: from ase.io.bundletrajectory import BundleTrajectory as _BundleTrajectory from ase.io.bundletrajectory import PickleBundleBackend except ImportError: class _BundleTrajectory: ...
# Copyright (c) 2011-2016 Rackspace US, 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 ...
#!/usr/bin/env python # # Copyright 2015 The AMP HTML 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 # # Unl...
# Copyright 2014, 2017 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 require...
# -*- coding: utf-8 -*- import httplib as http import logging from bs4 import BeautifulSoup from flask import request from framework.mongo.utils import to_mongo_key from framework.exceptions import HTTPError from framework.auth.utils import privacy_info_handle from framework.auth.decorators import must_be_logged_in ...
"""The tests for the IMAP email content sensor platform.""" from collections import deque import email from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import datetime from threading import Event import unittest from homeassistant.helpers.template import Template from homeassistant.h...
#! /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 # "...
# coding: utf-8 import matplotlib matplotlib.use('Agg') # Must be before importing matplotlib.pyplot or pylab! import matplotlib.pylab as plt import scipy as sp import pandas as pd import rost import os import pymc import shutil import multiprocessing import datetime # In[8]: print os.getcwd() cell_number_data_file = ...
""" Internal tasks are tasks that are started from the teuthology infrastructure. Note that there is no corresponding task defined for this module. All of the calls are made from other modules, most notably teuthology/run.py """ from cStringIO import StringIO import contextlib import logging import os import time impo...
""" SALTS XBMC Addon Copyright (C) 2014 tknorris This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. T...
#!/usr/bin/env python # TAMP-Project: pep.lib # Version: 0.02 # Date: 2016-01-29 # Description: This module manage and manipulate the data get by mwcs. Store data as array. # Function available are: min, max, std, spatial average, temporal average, # unit co...
# Copyright 2012 Viewfinder Inc. All Rights Reserved. """Accounting table. Stores aggregated usage metrics. The keys are prefixed with the type of aggregation and metric stored: - Per viewpoint: hash_key='vs:<vp_id>' Aggregate sizes/counts per viewpoint, keyed by the viewpoint id. Sort keys fall into three categor...
""" Cisco_IOS_XR_infra_infra_locale_cfg This module contains a collection of YANG definitions for Cisco IOS\-XR infra\-infra\-locale package configuration. This module contains definitions for the following management objects\: locale\: Define the geographical locale Copyright (c) 2013\-2015 by Cisco Systems, Inc...
# pylint: disable-msg=E1101,W0613,W0603 from __future__ import unicode_literals from __future__ import division import os import sys import requests import pandas from pandas.compat import StringIO, bytes_to_str, binary_type from pandas.util.decorators import Appender from pyopendata.util import network _shared_do...
# # Copyright (c) 2014, Arista Networks, 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 copyright notice, # this list of condit...
# -*- coding: utf-8 -*- import md5 import re from StringIO import StringIO import mimetypes import dateutil.parser import time import os import tempfile from oauth2client.client import AccessTokenRefreshError import client as client_module from utils import * from apiclient.errors import HttpError from configuration...
class ChangeParser(): """ Provides many different notification change parsers and utility methods. """ @staticmethod def get_changed_field_handler(top_level_type, field): """ Returns a change handler for the field and top level object type. If not found then None is return...
import asyncio import datetime import importlib import logging import os import platform import signal import sys import time from typing import Any, Dict, List, Optional, Set, Union, cast import tomodachi.__version__ import tomodachi.container import tomodachi.importer import tomodachi.invoker from tomodachi.containe...
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import os import re import shutil import sys import time from datetime import datetime import requests import types import ebstall.errors as errors import ebstall.osutil as osutil import ebstall.util as util import letsencrypt from ebstall.audit import Aud...
#!/usr/bin/env python ''' The MIT License (MIT) Copyright (c) <2016> <Mathias Lesche> 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 ...
"""Test the Plugwise config flow.""" from unittest.mock import AsyncMock, MagicMock, patch from plugwise.exceptions import ( ConnectionFailedError, InvalidAuthentication, PlugwiseException, ) import pytest from homeassistant.components.plugwise.const import ( API, DEFAULT_PORT, DEFAULT_SCAN_IN...
''' Created by: Juan Sarria March 15, 2016 ''' import pandas as pd, numpy as np, fiona, timeit from geopy.distance import vincenty from shapely import geometry from utilities import utm_to_latlong, latlong_to_utm from __builtin__ import False from pandas.core.frame import DataFrame PROJECT_ROOT = '../' def main()...
#!/usr/bin/env python # # Copyright 2015 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 o...
# Copyright (c) 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # 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 ...
# -*- coding: UTF-8 -*- # extended_widgets.py # Moved albow related stuff from mceutils. import resource_packs from controls import ValueDisplay from dialogs import alert, ask, Dialog from controls import Button, Label, ValueButton, CheckBox, AttrRef from widget import Widget import root from layout import Column, Row ...
# Copyright (c) OpenMMLab. All rights reserved. import bisect import collections import copy import math from collections import defaultdict import numpy as np from mmcv.utils import build_from_cfg, print_log from torch.utils.data.dataset import ConcatDataset as _ConcatDataset from .builder import DATASETS, PIPELINES...
import logging import re from collections import defaultdict from . import Analysis, register_analysis from ..knowledge_base import KnowledgeBase from .. import SIM_PROCEDURES from ..codenode import HookNode from ..sim_variable import SimConstantVariable, SimRegisterVariable, SimMemoryVariable, SimStackVariable l =...
import numpy as np from menpo.base import Targetable, Vectorizable from menpo.model.pdm import PDM, GlobalPDM, OrthoPDM from .base import Transform, VComposable, VInvertible class ModelDrivenTransform(Transform, Targetable, Vectorizable, VComposable, VInvertible): r""" A transform...
# -*- coding: utf-8 -*- ############################################################################### from collections import defaultdict from functools import partial from multiprocessing import cpu_count from threading import RLock from six import iteritems, iterkeys, itervalues from .executors import Paralle...
import numpy import theano import theano.tensor as tt import Mariana.settings as MSET import Mariana.abstraction as MABS import Mariana.initializations as MI import Mariana.useful as MUSE import Mariana.custom_types as MTYPES __all__= ["Decorator_ABC", "BatchNormalization", "Center", "Normalize", "Mask", "RandomMask",...
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright 2013 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 cop...
# Copyright (c) 2011 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
# -*- coding: ISO-8859-15 -*- # ============================================================================= # Copyright (c) 2021 Tom Kralidis # # Authors : Tom Kralidis <tomkralidis@gmail.com> # # Contact email: tomkralidis@gmail.com # ============================================================================= """...
#!/usr/bin/env python # encoding: utf-8 # Carlos Rafael Giani, 2006 (dv) # Tamas Pal, 2007 (folti) # Nicolas Mercier, 2009 # Microsoft Visual C++/Intel C++ compiler support - beta, needs more testing # usage: # # conf.env['MSVC_VERSIONS'] = ['msvc 9.0', 'msvc 8.0', 'wsdk 7.0', 'intel 11', 'PocketPC 9.0', 'Smartphone 8...
# Space Rocks! (asteroids) # KidsCanCode 2016, 2017 import pygame as pg import sys from os import path from random import choice, randrange from itertools import repeat from sprites import * from settings import * img_dir = path.join(path.dirname(__file__), 'img') snd_dir = path.join(path.dirname(__file__), 'snd') cl...
from __future__ import print_function, division from sympy.core import S, sympify, Dummy from sympy.core.function import Function, ArgumentIndexError from sympy.core.logic import fuzzy_and from sympy.core.numbers import Integer from sympy.ntheory import sieve from math import sqrt as _sqrt from sympy.core.compatibili...
# 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...
#!/usr/bin/env python3 #-------------------------------------------------------------------------- # SBXScan - Sequenced Box container Scanner # # Created: 06/03/2017 # # Copyright (C) 2017 Marco Pontello - http://mark0.net/ # # Licence: # This program is free software: you can redistribute it and/or modify # it under...
# 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 ...
# -*- coding: utf-8 -*- import os from babelfish import Language import pytest from vcr import VCR from subliminal.exceptions import ConfigurationError from subliminal.providers.opensubtitles import OpenSubtitlesProvider, OpenSubtitlesSubtitle, Unauthorized vcr = VCR(path_transformer=lambda path: path + '.yaml', ...
from __future__ import unicode_literals # Ensure 'assert_raises' context manager support for Python 2.6 import tests.backport_assert_raises from nose.tools import assert_raises import boto3 import boto from boto.exception import EC2ResponseError import sure # noqa from moto import mock_ec2, mock_ec2_deprecated SAM...
#!/usr/bin/env python # coding: utf-8 from datetime import datetime from distutils import spawn import argparse import json import os import platform import shutil import socket import sys import urllib import main ############################################################################### # Options ###########...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
#!/usr/bin/env python # 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. '''python %prog [options] platform chromium_os_flag template platform specifies which platform source is being generated for and...
import os import pytz import tempfile from mock import patch from datetime import datetime from django.test import TestCase from django.core import mail from django.conf import settings from django.utils.six import StringIO from dbbackup import utils, settings as dbbackup_settings from dbbackup.tests.utils import (EN...
from __future__ import absolute_import import contextlib import locale import logging import re import os import posixpath import shutil import stat import subprocess import sys import tarfile import zipfile from pip.exceptions import InstallationError, BadCommand from pip.compat import console_to_str, stdlib_pkgs fr...
"""Support for MQTT message handling.""" import asyncio from functools import partial, wraps import inspect from itertools import groupby import json import logging from operator import attrgetter import os import ssl from typing import Any, Callable, List, Optional, Union import attr import certifi import voluptuous ...
"""Certbot client crypto utility functions. .. todo:: Make the transition to use PSS rather than PKCS1_v1_5 when the server is capable of handling the signatures. """ import hashlib import logging import re from typing import List from typing import Set import warnings from cryptography import x509 from cryptogr...
#!/usr/bin/env python2 # # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # from test_framework.mininode import * from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * import time '''...
# encoding: utf-8 # --------------------------------------------------------------------------- # Copyright (C) 2008-2014, IPython Development Team and Enthought, Inc. # Distributed under the terms of the BSD License. See COPYING.rst. # --------------------------------------------------------------------------- imp...
# 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. from core import perf_benchmark from benchmarks import silk_flags from measurements import smoothness import page_sets import page_sets.key_silk_cases from ...
import argparse from collections import defaultdict import glob import logging import subprocess import pkg_resources from imhotep.repomanagers import ShallowRepoManager, RepoManager from .reporters.printing import PrintingReporter from .reporters.github import CommitReporter, PRReporter from .diff_parser import Diff...
import argparse import json import logging import sys import time from textwrap import dedent from ceph_deploy import conf, exc, hosts from ceph_deploy.util import system, packages from ceph_deploy.cliutil import priority from ceph_deploy.lib import remoto LOG = logging.getLogger(__name__) def get_bootstrap_osd_ke...
""" Performs an end-to-end test where we verify that the data output by the client command line interface is equal to the values we expect using the test dataset. """ from __future__ import division from __future__ import print_function from __future__ import unicode_literals import datetime import json import unittes...
# Copyright [2015] 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...
# 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 (t...
import sys import time import socket import json from EventRegistry import EventRegistry, QueryArticles, RequestArticlesInfo from EventRegistry import QueryEvent, RequestEventArticles from EventRegistry import RequestArticlesIdList, RequestEventArticleUris from datetime import date from tweet_common import url_fix fr...
# -*- coding: utf-8 -*- # TODO(colin): fix these lint errors (http://pep8.readthedocs.io/en/release-1.7.x/intro.html#error-codes) # pep8-disable:E127,E128,E501 """ gitbigfile command module This module defines git-bigfile commands. """ import os import sys import hashlib import tempfile import re import errno import ...
from __future__ import absolute_import from __future__ import division from __future__ import print_function #import abc from tensorflow.contrib.rnn.ops import gen_lstm_ops from tensorflow.contrib.util import loader from tensorflow.python.framework import dtypes from tensorflow.python.framework import ops from tensor...
''' Class for reading from Brainware DAM files DAM files are binary files for holding raw data. They are broken up into sequence of Segments, each containing a single raw trace and parameters. The DAM file does NOT contain a sampling rate, nor can it be reliably calculated from any of the parameters. You can calcul...
#!/usr/bin/env python import base64 import binascii import boto.dynamodb from boto.dynamodb.condition import * from boto.exception import DynamoDBResponseError import boto.kms from Crypto.Cipher import AES from Crypto import Random import json import time # http://stackoverflow.com/questions/12524994/encrypt-decrypt-...
# -*- test-case-name: vumi.transports.irc.tests.test_irc -*- """IRC transport.""" from twisted.words.protocols import irc from twisted.internet import protocol from twisted.internet.defer import inlineCallbacks from twisted.python import log from vumi.config import ( ConfigClientEndpoint, ConfigText, ConfigList,...
# Copyright 2016 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. """Controller objects that control the context in which chrome runs. This is responsible for the setup necessary for launching chrome, and for creating a De...
import json from math import ceil from twilio.base import values from twilio.base.exceptions import TwilioRestException class Version(object): """ Represents an API version. """ def __init__(self, domain): """ :param Domain domain: :return: """ self.domain = d...
from __future__ import unicode_literals import datetime from decimal import Decimal from django.core.exceptions import FieldError from django.db.models import ( Sum, Count, F, Value, Func, IntegerField, BooleanField, CharField) from django.db.models.fields import FieldDoesNotExist from django.test import T...
# -*- coding: utf-8 -*- """ tests/tests.py ====================== This is a testing file for Flask-Webhelpers. :copyright: 2015 Sudheer Satyanarayana :license: BSD, see LICENSE for details """ from __future__ import with_statement import os import flask import unittest from flask_webhelpers import ObjectGrid cla...
# -*- coding: utf-8 -*- """unittest-xml-reporting is a PyUnit-based TestRunner that can export test results to XML files that can be consumed by a wide range of tools, such as build systems, IDEs and Continuous Integration servers. This module provides the XMLTestRunner class, which is heavily based on the default Te...
import h2o import math from h2o.estimators import H2OXGBoostEstimator class H2OTree(): """ Represents a model of a Tree built by one of H2O's algorithms (GBM, Random Forest). """ def __init__(self, model, tree_number, tree_class=None): params = {"model": model.model_id, "tree...
from functools import partial import math import actions from actions import _get_as_str import call_definitions from call_definitions import xpcom_constructor as xpcom_const, python_wrap from entity_values import entity import instanceactions from jstypes import JSWrapper from validator.compat import FX47_DEFINITION ...
import json import os from cStringIO import StringIO from nose.tools import assert_raises, assert_equal from datetime import datetime, timedelta import Image from tg import config from nose.tools import assert_equal from ming.orm.ormsession import ThreadLocalORMSession from paste.httpexceptions import HTTPFound impor...
from __future__ import absolute_import import os import sys import re import textwrap import site import scripttest import virtualenv from tests.lib.path import Path, curdir, u DATA_DIR = Path(__file__).folder.folder.join("data").abspath SRC_DIR = Path(__file__).abspath.folder.folder.folder pyversion = sys.version...
"""Viewfinder production scripts Cookbook: * Launch new instances: specify NodeType,Name,Zone $ fab create_instance:STAGING,STAGING_003,us-east-1c * Resume installation of failed instance creation (eg: stuck in state 'pending' or not ssh-able): $ fab create_instance:STAGING,STAGING_003,us-east-1c,i-9a0cdbe9 * Sto...
# Copyright 2013 IBM Corp. # # 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 2014-2015 The Alive 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 or agreed to ...
""" Widgets for interacting with ImageViewer. These widgets should be added to a Plugin subclass using its `add_widget` method or calling:: plugin += Widget(...) on a Plugin instance. The Plugin will delegate action based on the widget's parameter type specified by its `ptype` attribute, which can be: 'arg'...
# coding=utf-8 # Copyright 2018 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 os from pants.backend.native.config.environment import Linker, LLVMCppToolchain, ...
VERSION = '3.15' LICENSES = { '0bsd': {'id': '0BSD', 'deprecated': False}, 'aal': {'id': 'AAL', 'deprecated': False}, 'abstyles': {'id': 'Abstyles', 'deprecated': False}, 'adobe-2006': {'id': 'Adobe-2006', 'deprecated': False}, 'adobe-glyph': {'id': 'Adobe-Glyph', 'deprecated': False}, 'adsl': ...
"""WSGI App Creator This module is responsible for creating the basic Pylons WSGI application (PylonsApp). It's generally assumed that it will be called by Paste, though any WSGI server could create and call the WSGI app as well. """ import logging import sys import paste.registry from routes import request_config f...
# Copyright 2013 New Dream Network, LLC (DreamHost) # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
"""The tests for the Owntracks device tracker.""" import asyncio import json import os from collections import defaultdict import unittest from unittest.mock import patch from tests.common import (assert_setup_component, fire_mqtt_message, get_test_home_assistant, mock_mqtt_component) import...
# Copyright 2012 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 requ...
""" MIT License Copyright (c) 2017 Code Society 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, ...
try: from pandas.plotting._converter import DatetimeConverter except ImportError: from pandas.tseries.converter import DatetimeConverter import pandas as pd from pandas import to_datetime, date_range, Series, DataFrame, period_range import datetime as dt from pandas.tseries.frequencies import infer_freq impor...
#!/usr/bin/env python """camqadm .. program:: camqadm """ import cmd import sys import shlex import pprint from itertools import count from amqplib import client_0_8 as amqp from celery.app import app_or_default from celery.bin.base import Command from celery.utils import padlist # Valid string -> bool coercions....
# Copyright (c) 2012 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...
""" This module provides convenient functions to transform sympy expressions to lambda functions which can be used to calculate numerical values very fast. """ from __future__ import division from sympy.core.sympify import sympify # These are the namespaces the lambda functions will use. MATH = {} MPMATH = {} NUMPY =...
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import from copy import deepcopy import inspect import itertools from types import FunctionType from .common import * # pylint: disable=redefined-builtin from .datastructures import OrderedDict, Context from .exceptions import * from .transfor...
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: sw=4:ts=4:expandtab # pylint: disable=no-self-use """ csv2ofx.ofx ~~~~~~~~~~~ Provides methods for generating OFX content Examples: literal blocks:: python example_google.py Attributes: ENCODING (str): Default file encoding. """ from datetime imp...
""" Query specifications. This file is part of the everest project. See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information. The central idea of a Specification is to separate the statement of how to match a candidate from the candidate object that it is matched against. Read http://en.wikipedia....
# -*- coding: utf-8 -*- # # 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 #...
""" A plot to visualize trees """ from __future__ import absolute_import, division, print_function import numpy as np from glue.core.edit_subset_mode import EditSubsetMode from glue.core.state import lookup_class_with_patches from glue.core.subset import CategorySubsetState from glue.core.roi import PointROI from gl...
#!/usr/bin/env python # 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. """A simple project generator for Native Client projects written in C or C++. This script accepts a few argument which it uses as ...
import os.path from typing import Dict, List, Optional, TypeVar, Any, Text from django.conf import settings from django.conf.urls import url from django.core.urlresolvers import LocaleRegexProvider from django.utils.module_loading import import_string from django.utils.safestring import mark_safe from django.template ...
# Copyright 2019, OpenCensus 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 or agreed to in w...
# -*- coding: utf-8 -*- # Copyright (c) 2015, Vispy Development Team. # Distributed under the (new) BSD License. See LICENSE.txt for more info. from __future__ import division import numpy as np from ..node import Node from ...visuals.mesh import MeshVisual from ...visuals.transforms import STTransform from ...util....
# =============================================================================== # Copyright 2015 Jake Ross # # 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...