gt
stringclasses
1 value
context
stringlengths
2.49k
119k
#!/usr/bin/env python """Functions for generating Python object interfaces from object definitions""" __author__ = 'Adam R. Smith, Thomas Lennan, Stephen Henrie, Dave Foster, Seman Said' from collections import OrderedDict import csv import os import re import string import yaml import cgi from pyon.core.path impo...
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from __future__ import annotations import abc import importlib import pkgutil from typing import Optional, Iterable, T...
import subprocess as sub # -----> * Filing * <----- # ask the user the name of the game to create a .txt file print("Enter game's name:") name_file = input("") name_file_string = str(name_file) file_name = name_file_string + ".txt" # create a writable .txt file safile = open(file_name, "w") safile.write("This game's...
# # Copyright (c) 2008-2015 Citrix 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.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
from __future__ import unicode_literals from __future__ import print_function from __future__ import division from __future__ import absolute_import # This test is for the pipeline reset code from future import standard_library standard_library.install_aliases() from builtins import zip from builtins import * import u...
"""The tests for the REST sensor platform.""" import unittest from pytest import raises from unittest.mock import patch, Mock import requests from requests.exceptions import Timeout, MissingSchema, RequestException import requests_mock from homeassistant.exceptions import PlatformNotReady from homeassistant.setup imp...
"""Posterior/Prior predictive plot.""" import logging import warnings from numbers import Integral import numpy as np from ..labels import BaseLabeller from ..sel_utils import xarray_var_iter from ..rcparams import rcParams from ..utils import _var_names from .plot_utils import default_grid, filter_plotters_list, get...
# -*- 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...
from baselines.common import Dataset, explained_variance, fmt_row, zipsame from baselines import logger import baselines.common.tf_util as U import tensorflow as tf, numpy as np import time from baselines.common.mpi_adam import MpiAdam from baselines.common.mpi_moments import mpi_moments from mpi4py import MPI from col...
#========================================================================= # pisa_beq_test.py #========================================================================= import pytest import random import pisa_encoding from pymtl import Bits from PisaSim import PisaSim from pisa_inst_test_utils import * #---------...
import copy from CellData import CellData __author__ = 'Sergey' class Sudoku(object): def __init__(self, int_input_array): self.solved = [[0 for i in range(0, 9)] for i in range(0, 9)] for i in range(9): for j in range(9): self.solved[i][j] = CellData(int_input_array[i...
from couchbase.exceptions import CouchbaseError from couchbase.views.iterator import AlreadyQueriedError from couchbase import _to_json from couchbase._pyport import unicode def _genprop(converter, *apipaths): def fget(self): d = self._json_ try: for x in apipaths: d = ...
import geopandas as gpd import numpy as np import pandas as pd import pytest from packaging.version import Version folium = pytest.importorskip("folium") branca = pytest.importorskip("branca") matplotlib = pytest.importorskip("matplotlib") mapclassify = pytest.importorskip("mapclassify") import matplotlib.cm as cm #...
#!/usr/bin/env python __author__ = 'Thomas R. Lennan, Michael Meisinger' __license__ = 'Apache 2.0' from nose.plugins.attrib import attr import gevent from pyon.util.unit_test import IonUnitTestCase from pyon.core.bootstrap import CFG from pyon.core.exception import BadRequest, NotFound from pyon.datastore.datastore...
from __future__ import print_function, unicode_literals import importlib import os import sys from django.apps import apps from django.db.models.fields import NOT_PROVIDED from django.utils import datetime_safe, six, timezone from django.utils.six.moves import input from .loader import MigrationLoader class Migrat...
#!/usr/bin/env python # # Copyright 2013, Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can # be found in the LICENSE file. """This test covers a resharding scenario of an already sharded keyspace. We start with shards -80 and 80-. We then split 80- into 80-c0 and ...
# Copyright 2017 The Kubernetes 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 ...
import time import pytest import uqbar.strings import supriya.assets.synthdefs import supriya.nonrealtime import supriya.patterns import supriya.ugens from supriya import Parameter, SynthDefBuilder pbus_01 = supriya.patterns.Pbus( pattern=supriya.patterns.Pbind( amplitude=1.0, duration=supriya.pa...
""" Serve web page and handle web sockets using Tornado. """ import json import time import asyncio import socket import mimetypes import traceback import threading from urllib.parse import urlparse # from concurrent.futures import ThreadPoolExecutor import tornado from tornado import gen, netutil from tornado.web im...
# Copyright (C) Ivan Kravets <me@ikravets.com> # See LICENSE for details. from datetime import datetime from hashlib import sha1 from os import getcwd, makedirs, walk from os.path import getmtime, isdir, isfile, join from shutil import rmtree from time import time import click from platformio import app, exception, ...
# encoding: UTF-8 import sys from time import sleep from vnib import IbApi ######################################################################## class TestApi(IbApi): print sys._getframe().f_code.co_name #---------------------------------------------------------------------- def __init__(self): ...
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals """ Transactions are defined as collection of classes, a Bean represents collection of Document objects for a transaction with main and children. Group actions like save, etc...
# -*- coding: utf-8 -*- from __future__ import print_function, division import ctypes from inspect import signature import PyDAQmx import numpy as np import six dataTypeConversions = { '<f8': 'F64', '<i2': 'I16', '<i4': 'I32', '<u2': 'U16', '<u4': 'U32', '|u1': 'U8', } def init(): globa...
# # Copyright (c) 2008-2015 Citrix 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.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2011 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://babel.edgewall.org/wiki/License. # # This software consists...
"""ParametricJobs Table.""" import os import re import time import json import logging import calendar from datetime import datetime import cherrypy from sqlalchemy import Column, SmallInteger, Integer, Boolean, String, PickleType, TIMESTAMP, ForeignKey, Enum, CheckConstraint from sqlalchemy.ext.hybrid import hybrid_p...
# 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 ...
from itertools import chain from django.contrib.auth import get_user_model from django.contrib.auth.models import Permission from django.db.models.query import QuerySet from django.utils.encoding import force_str from guardian.conf import settings as guardian_settings from guardian.ctypes import get_content_type from...
from django.contrib.gis.geos import Polygon import os from osgeo import osr, gdal from . import Driver, RASTER from pandas import DataFrame, Panel class GeotiffDriver(Driver): @classmethod def datatype(cls): return RASTER @classmethod def supports_related(cls): return False def r...
# -*- coding: utf-8 -*- # # Copyright (c) 2018, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """Test logfiles with vibration output in cclib""" import os import unittest from skip import skipForParser, skipForLogf...
#!/usr/bin/env python # -*- coding: utf-8 -*- r""" Fama-McBeth regressions ======================= This module provides two estimators of risk premia in Fama-McBeth regressions: 2-step OLS and GMM. The inspiration for this code comes from Chapters 27.2-3 of Kevin Sheppard's book "Python for Econometrics": <http://www...
""" Tests for pika.channel.ContentFrameDispatcher """ import collections import logging try: import mock except ImportError: from unittest import mock try: import unittest2 as unittest except ImportError: import unittest import warnings from pika import channel from pika import exceptions from pika ...
"""The dct module provide helpers functions to work with experimental diffraction contrast tomography data. """ import os import h5py import numpy as np from scipy import ndimage from matplotlib import pyplot as plt, cm from pymicro.xray.experiment import ForwardSimulation from pymicro.crystal.lattice import HklPlane f...
# -*- coding: utf-8 -*- """`PEP 3101`_ introduced the :meth:`str.format` method, and what would later be called "new-style" string formatting. For the sake of explicit correctness, it is probably best to refer to Python's dual string formatting capabilities as *bracket-style* and *percent-style*. There is overlap, but ...
import fileinput from typing import Union from dataclasses import dataclass from copy import deepcopy @dataclass class Pair: left: Union['Pair', int] = None right: Union['Pair', int] = None parent: 'Pair' = None def __str__(self) -> str: l = 'node' if type(self.left) is Pair else str(self.lef...
""" Search indexing classes to index into Elasticsearch. Django settings that should be defined: `ES_HOSTS`: A list of hosts where Elasticsearch lives. E.g. ['192.168.1.1:9200', '192.168.2.1:9200'] `ES_DEFAULT_NUM_REPLICAS`: An integer of the number of replicas. `ES_DEFAULT_NUM_SHARDS`: ...
""" This module presents an interface to use the glm implemented in nistats.regression. It contains the GLM and contrast classes that are meant to be the main objects of fMRI data analyses. Author: Bertrand Thirion, Martin Perez-Guevara, 2016 """ import glob import json import os import sys import time from warnings...
from __future__ import unicode_literals from moto.core import BaseBackend from .utils import random_job_id, random_instance_group_id DEFAULT_JOB_FLOW_ROLE = 'EMRJobflowDefault' class FakeInstanceGroup(object): def __init__(self, id, instance_count, instance_role, instance_type, market, name, bid_price=None): ...
# Copyright 2016 Infoblox 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...
from magma import * from parts.lattice.ice40.primitives.PLB import * from mantle.lattice.mantle40.LUT import LUT2, LUT3 from mantle.lattice.mantle40.logic import Not __all__ = ['DFF', 'SRFF', 'RSFF', 'JKFF', 'TFF'] __all__ += ['FF', 'FFs'] # # TODO: add async=True, edge=True (also negedge) # def DFF(init=0, ce=Fal...
# -*- coding: utf-8 -*- import json import base64 import binascii import re import abc try: from functools import singledispatch except ImportError: # pragma: nocover # future: remove when dropping support for Python 3.3 # compat: backport of singledispatch module introduced in Python 3.4 from singled...
import sys import os import string import appdirs import tempfile import random import sqlite3 import datetime import logging import platform from pathlib import Path from functools import lru_cache import json from configVar import config_vars from pybatch import PythonBatchRuntime from pyinstl.cmdOptions import Comma...
from jsonrpc import ServiceProxy import sys import string # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:9332") else: access = Ser...
# Copyright 2011 Andrew Bogott for the Wikimedia Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
""" Wrappers for events around gtk.TreeView objects """ import baseevents, gtk, logging from .. import treeviewextract from storytext.definitions import UseCaseScriptError class TreeColumnHelper: @classmethod def findColumn(cls, treeView, columnName): for column in treeView.get_columns(): ...
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
"""Grover's algorithm and helper functions. Todo: * W gate construction (or perhaps -W gate based on Mermin's book) * Generalize the algorithm for an unknown function that returns 1 on multiple qubit states, not just one. * Implement _represent_ZGate in OracleGate """ from __future__ import print_function, divisio...
# # This file is part of pySMT. # # Copyright 2014 Andrea Micheli and Marco Gario # # 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 ...
# -*- coding: utf-8 -*- import numpy as np from cea.demand import control_ventilation_systems, constants, control_heating_cooling_systems from cea.utilities import physics from cea.constants import HOURS_IN_YEAR __author__ = "Gabriel Happle" __copyright__ = "Copyright 2016, Architecture and Building Systems - ETH...
# coding: utf-8 """ mana ~~~~ the missing startproject command for flask Usage: mana init <project_name> mana startproject <project_name> mana blueprint <blueprint_name> mana version show version Options: mana --help: help information Install: $ pip install mana (--upgrade) """ ...
# Copyright (c) 2014-2020 Cloudify Platform Ltd. All rights reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
#!/usr/bin/env python # -*- encoding: utf-8 -*- # 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...
# Copyright 2015 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...
""" Core components for fio-buffer """ import copy import logging from multiprocessing import cpu_count, Pool import click import fiona as fio from fiona.transform import transform_geom from shapely.geometry import CAP_STYLE from shapely.geometry import JOIN_STYLE from shapely.geometry import mapping from shapely....
# 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 2016-2017 Capital One Services, LLC # Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 import datetime from dateutil.parser import parse as date_parse from .common import BaseTest from .test_offhours import mock_datetime_now from time import sleep class ElasticBeanstalkEnviron...
import unittest from learners import * import model kt_vals = {i: log(i+.5) - log(i+1) for i in range(32)} def test_partition_bounds(): p = PTW(KT, depth=4) assert p.get_child_string() == "" p.update(0) assert p.get_child_string() == "PTW^0" assert p.log_prob == log(0.5) p.update(0) ass...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'bitmessageui.ui' # # Created: Mon Mar 23 22:18:07 2015 # by: PyQt4 UI code generator 4.10.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui from bmconfigparser import BMConfigParser from foldert...
# -*- coding: utf-8 -*- """ pygments.lexers.jvm ~~~~~~~~~~~~~~~~~~~ Pygments lexers for JVM languages. :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import Lexer, RegexLexer, include, bygroups, using, ...
# 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 t...
import svmc from svmc import C_SVC, NU_SVC, ONE_CLASS, EPSILON_SVR, NU_SVR from svmc import LINEAR, POLY, RBF, SIGMOID, PRECOMPUTED from math import exp, fabs def _int_array(seq): size = len(seq) array = svmc.new_int(size) i = 0 for item in seq: svmc.int_setitem(array,i,item) i = i + 1 return array def _doub...
# -*- coding: utf-8 -*- """ Script for paradigm descriptors' extraction on the Mental-Time-Travel protocol for both models author: Ana Luisa Pinho e-mail: ana.pinho@inria.fr Last update: November 2019 Compatibility: Python 3.5 """ import os import glob import csv import numpy as np # %% # =========================...
import logging from logging import handlers from xml.dom.minidom import Document import traceback import xml.dom import xml.sax.saxutils import sys import re import time import os import hashlib import json from urlparse import urlparse from splunk.appserver.mrsparkle.lib.util import make_splunkhome_path def setup_lo...
#!/usr/bin/env python import numpy as np import scipy.special from multiprocessing import Pool _POISSON = .25 _N_PROCS = 4 def get_flexure_parameter(h, E, n_dim, gamma_mantle=33000.): """ Calculate the flexure parameter based on some physical constants. *h* is the Effective elastic thickness of Earth's...
# # Copyright (c) 2008-2015 Citrix 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.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
import Priors class Parameter(object): def __init__(self,name,initValue,minValue,maxValue,delta,**kwargs): self.name = str(name) self.value = initValue self.minValue = minValue self.maxValue = maxValue self.delta = delta se...
"""Custom widgets composed from standard tkinter widgets""" from tkinter import * class EntryFrame(Frame): """ A tkinter Frame that holds a labeled entry widget with added behavior. EntryFrame will call the function (provided as 'model' in the arguments) when a change in the entry's value is committed...
"""Test the Volumio config flow.""" from unittest.mock import patch from homeassistant import config_entries from homeassistant.components.volumio.config_flow import CannotConnectError from homeassistant.components.volumio.const import DOMAIN from tests.common import MockConfigEntry TEST_SYSTEM_INFO = {"id": "1111-1...
from time import time import argparse import os from pprint import pprint import numpy as np from threadpoolctl import threadpool_limits import sklearn from sklearn.model_selection import train_test_split from sklearn.ensemble import HistGradientBoostingRegressor from sklearn.ensemble import HistGradientBoostingClassi...
""" Core functions and classes for FS Nav """ import getpass import os from os.path import expanduser from os.path import join import re import sys __all__ = ['Aliases', 'CONFIGFILE', 'DEFAULT_ALIASES'] class Aliases(dict): def __init__(self, *args, **kwargs): """ Reference specific director...
from braces.views import LoginRequiredMixin, GroupRequiredMixin from django.contrib import messages from django.core.urlresolvers import reverse from django.db.models import Q from django.http import Http404 from django.shortcuts import get_object_or_404, redirect from django.views.generic import ListView, DetailView, ...
# Copyright (c) 2015 Pixomondo # # CONFIDENTIAL AND PROPRIETARY # # This work is provided "AS IS" and subject to the MIT License included in this # distribution package. See LICENSE. # By accessing, using, copying or modifying this work you indicate your # agreement to the MIT License. All rights # not expressly grante...
from django import template from django.contrib.auth.models import User, AnonymousUser, Group from django.core.urlresolvers import reverse from django.test import TestCase from follow import signals, utils from .models import Follow from .utils import register register(User) register(Group) class FollowTest(TestCase)...
# pyOCD debugger # Copyright (c) 2017-2020 Arm Limited # Copyright (c) 2021 Chris Reed # SPDX-License-Identifier: Apache-2.0 # # 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...
import os from datetime import timedelta from django.conf import settings from django.test.utils import override_settings from django.urls import reverse from freezegun import freeze_time from olympia import amo from olympia.amo.tests import ( APITestClientWebToken, APITestClientJWT, get_random_ip, r...
#!/usr/bin/env python # 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 # # Authors: # - Tobias Wegner, tobias.wegner@cern.ch, 2017-2018 # - Paul Nils...
#!/usr/bin/env python # # 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 ...
#!/usr/bin/env python # # Use the raw transactions API to spend bitcoins received on particular addresses, # and send any change back to that same address. # # Example usage: # spendfrom.py # Lists available funds # spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00 # # Assumes it will talk to a bitcoind or Bit...
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # 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...
import datetime import mongoengine as mongo import httplib2 import pickle import base64 from StringIO import StringIO from oauth2client.client import Error as OAuthError from xml.etree.ElementTree import Element, SubElement, Comment, tostring from lxml import etree from django.db import models from django.contrib.auth....
""" Example generation for the scikit learn Generate the rst files for the examples by iterating over the python example files. Files that generate images should start with 'plot' """ from __future__ import division from time import time import os import re import shutil import traceback import glob import sys impor...
# Copyright (c) 2015 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 agreed to in writ...
from django.conf import settings from django.core import validators from django.db import models from django.template.defaultfilters import slugify from django.urls import reverse from django.utils.functional import lazy from django.utils.text import format_lazy from django.utils.translation import ugettext, ugettext_l...
""" 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 ...
from django.db import connection, transaction from django.db.backends import util from django.db.models import signals, get_model from django.db.models.fields import AutoField, Field, IntegerField, PositiveIntegerField, PositiveSmallIntegerField, FieldDoesNotExist from django.db.models.related import RelatedObject from...
# 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...
# -*- coding: utf-8 -*- """ werkzeug.debug.tbtools ~~~~~~~~~~~~~~~~~~~~~~ This module provides various traceback related utility functions. :copyright: (c) 2014 by the Werkzeug Team, see AUTHORS for more details. :license: BSD. """ import re import os import sys import json import inspect import ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """Pynliner : Convert CSS to inline styles Python CSS-to-inline-styles conversion tool for HTML using BeautifulSoup and cssutils Copyright (c) 2011-2013 Tanner Netterville Permission is hereby granted, free of charge, to any person obtaining a copy of this software and a...
""" mbed SDK Copyright (c) 2011-2017 ARM Limited 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 wr...
# 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 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. """A class to keep track of devices across builds and report state.""" import logging import optparse import os import psutil import ...
# Licensed under the MIT license # http://opensource.org/licenses/mit-license.php # Copyright 2007, Frank Scholz <coherence@beebits.net> # Copyright 2008, Jean-Michel Sizun <jm.sizun@free.fr> from twisted.internet import defer from coherence.upnp.core import utils from coherence.upnp.core.utils import ReverseProxyUr...
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Classes for collecting results of our BuildStages as they run.""" import datetime import math import os from chromite.lib import cros_build_lib ...
# -*- 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...
""" A collection of functions to find the weights and abscissas for Gaussian Quadrature. These calculations are done by finding the eigenvalues of a tridiagonal matrix whose entries are dependent on the coefficients in the recursion formula for the orthogonal polynomials with the corresponding weighting function over ...
from __future__ import print_function import os import re import sys from talib import abstract # FIXME: initialize once, then shutdown at the end, rather than each call? # FIXME: should we pass startIdx and endIdx into function? # FIXME: don't return number of elements since it always equals allocation? functions ...
""" Matplotlib Exporter =================== This submodule contains tools for crawling a matplotlib figure and exporting relevant pieces to a renderer. """ import warnings import io from . import utils import matplotlib from matplotlib import transforms from matplotlib.backends.backend_agg import FigureCanvasAgg clas...
# 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 ...
""" MagPy LaTeX Table output filter Written by Roman Leonhardt December 2012 - contains write function for hour data ToDo: use longer files (anaylsze full year data if only monthly files are available ToDo: add table footer """ from __future__ import print_function from magpy.stream import * from magpy.opt.Table imp...
# -*- 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...