gt
stringclasses
1 value
context
stringlengths
2.49k
119k
# Copyright 2010-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 required by ap...
# Copyright Hybrid Logic Ltd. See LICENSE file for details. """ Tests for :module:`flocker.docs.version`. """ from twisted.trial.unittest import SynchronousTestCase try: from packaging.version import Version as PEP440Version PACKAGING_INSTALLED = True except ImportError: PACKAGING_INSTALLED = False fr...
#!/usr/bin/env python # encoding: 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...
# Authors: Marijn van Vliet <w.m.vanvliet@gmail.com> # Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Teon Brooks <teon.brooks@gmail.com> # # License: BSD (3-clause) import warnings import os.path as op import numpy as np from nose.tools import assert_true, assert_equal, assert_raise...
#!/usr/bin/env python import argparse import atexit import configparser import getpass import hashlib import logging import logging.handlers import math import multiprocessing import os import requests import re import sys from collections import defaultdict try: from json.decoder import JSONDecodeError except Imp...
"""Computes saliency map for each storm object and each CNN component. CNN = convolutional neural network """ import copy import os os.environ['CUDA_VISIBLE_DEVICES'] = '-1' import argparse import numpy import keras.models from keras import backend as K from gewittergefahr.gg_io import storm_tracking_io as tracking_i...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import codecs import os import sys import json import re import tarfile from datetime import datetime from collections import defaultdict class Log(object): log_file_opened = False log_level_file = 1 log_level_console = 1 log_levels = ["DEBUG", "INFO", ...
# coding=utf8 # -*- coding: utf8 -*- # vim: set fileencoding=utf8 : from __future__ import unicode_literals from django.conf import settings from django.utils.timezone import now from rest_framework import mixins, permissions, status, viewsets from rest_framework.decorators import detail_route, list_route from rest_f...
import os, sys, re import util, compression, text, ilp from globals import * import nltk class SummaryProblem: """ A class for representing elements of a summary problem self.id 'D0701' self.title 'Southern Poverty Law Center' self.narr 'Describe the activit...
#!/usr/bin/env python import subprocess import praw from hashlib import sha1 from flask import Flask from flask import Response from flask import request from cStringIO import StringIO from base64 import b64encode from base64 import b64decode from ConfigParser import ConfigParser import OAuth2Util import os import mar...
# msp430 emulator import utils import msp_base as base import msp_fr5969_model as model import msp_peripheral_timer as peripheral_timer import msp_reference_timing as reference_timing import msp_elftools as elftools import smt from msp_isa import isa class Emulator(object): def __init__(self, tracing = False, tin...
""" Extensible validation for Python dictionaries. This module implements Cerberus Validator class :copyright: 2012-2015 by Nicola Iarocci. :license: ISC, see LICENSE for more details. Full documentation is available at http://cerberus.readthedocs.org/ """ import sys import re import copy from da...
from __future__ import absolute_import, division, unicode_literals import os import re import urlparse import logging from collections import defaultdict from datetime import datetime import jsonschema from jsonschema.compat import str_types, int_types from flexget.event import fire_event from flexget.utils import q...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2010 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...
##for Raleigh & Grant ##who contributed more than they know ################################################################################ ############################## WHEEL OF FORTUNE ################################ ################################################################################ import random im...
# coding=utf-8 # Copyright 2018 Google LLC & Hwalsuk Lee. # # 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 ...
# # 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 # ...
###################################################################### # CliNER - model.py # # # # Willie Boag # # ...
import operator # Used to sort by an element of a class import collections # Used to get a dictionary with .append() try: from enum import Enum # Used to make algorithma bit more readable class PointType(Enum): Nothing = -1 Peak = 0 Valley = 1 except ImportError: class PointType(o...
# stdlib from nose.plugins.attrib import attr # project from checks import AgentCheck from utils.platform import Platform from tests.checks.common import AgentCheckTest @attr(requires='mysql') class TestMySql(AgentCheckTest): CHECK_NAME = 'mysql' METRIC_TAGS = ['tag1', 'tag2'] SC_TAGS = ['server:localho...
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
"""BST data structure.""" import timeit class Node(object): """Node class used for the bst.""" def __init__(self, data=None): """Init node.""" self.data = data self.left = None self.right = None self.parent = None self.depth = 1 def _set_child(self, child)...
# Copyright (c) 2018 PaddlePaddle 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 app...
from __future__ import print_function import numpy as np import matplotlib.pyplot as plt class TwoLayerNet(object): """ A two-layer fully-connected neural network. The net has an input dimension of N, a hidden layer dimension of H, and performs classification over C classes. We train the network with...
"""Tests for HTMLParser.py.""" import html.parser import pprint import unittest from test import support class EventCollector(html.parser.HTMLParser): def __init__(self, *args, **kw): self.events = [] self.append = self.events.append html.parser.HTMLParser.__init__(self, *args, **kw) ...
import unittest import unishark import os import shutil from unishark.util import get_interpreter class TestProgramTestCase(unittest.TestCase): def setUp(self): super(TestProgramTestCase, self).setUp() self.dest = 'results' if os.path.exists(self.dest): shutil.rmtree(self.dest)...
import sys import platform from decimal import Decimal import numpy as np from numpy.core import * from numpy.random import rand, randint, randn from numpy.testing import * from numpy.testing.utils import WarningManager from numpy.core.multiarray import dot as dot_ import warnings class Vec: def __init__(self,seq...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from hwt.code import If, Switch, SwitchLogic from hwt.hdl.types.bits import Bits from hwt.hdl.types.stream import HStream from hwt.hdl.types.struct import HStruct from hwt.hdl.value import HValue from hwt.interfaces.std import Signal, HandshakeSync, VectSignal from hwt.in...
from __future__ import division, absolute_import import importlib import PyDSTool as dst import math, numpy, scipy # for convenience and compatibility import numpy as np import scipy as sp class workspace(dst.args): # override to ensure name and simpler repr def __init__(self, name, **kw): self.__dict...
########################################################################## # # Copyright (c) 2019, Image Engine Design 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: # # * Redistrib...
# -*- coding: utf-8 -*- # Author: Tommy Clausner <Tommy.Clausner@gmail.com> # # License: BSD (3-clause) import os.path as op import pytest import numpy as np from numpy.testing import (assert_array_less, assert_allclose, assert_array_equal) from scipy.spatial.distance import cdist import mn...
# Copyright (c) 2011-2014 Greg Holt # Copyright (c) 2012-2013 John Dickinson # Copyright (c) 2012 Felipe Reyes # Copyright (c) 2012 Peter Portante # Copyright (c) 2012 Victor Rodionov # Copyright (c) 2013-2014 Samuel Merritt # Copyright (c) 2013 Chuck Thier # Copyright (c) 2013 David Goetz # Copyright (c) 2013 Dirk Mue...
# 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...
# 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 itertools import chain import torch from fairseq import optim, utils from .dynamic_loss_scaler import DynamicLossScaler class _FP16O...
# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php # (c) 2005 Clark C. Evans # This module is part of the Python Paste Project and is released under # the MIT License: http://www.opensource.org/licenses...
#!/usr/bin/env python import numpy as np import cv2 import rospy import tf from std_msgs.msg import Header from sensor_msgs.msg import CameraInfo, PointCloud from geometry_msgs.msg import PoseStamped, Pose, Point, Quaternion from geometry_msgs.msg import Point32 from ocular.msg import KeypointMotion def make_empt...
import hashlib import io import json import os import zipfile from base64 import b64decode, b64encode from django.db import transaction from django.conf import settings from django.core.files.storage import default_storage as storage from django.utils.encoding import force_bytes, force_str import requests import waf...
from clue.game.character import Colonel, Scarlet, Professor, Green, White, Peacock from clue.game.location import Study, Hall, Lounge, Library, BilliardRoom, DiningRoom, Conservatory, Ballroom, Kitchen, HallwayStudyToHall, HallwayHallToLounge, HallwayStudyToLibrary, HallwayHallToBilliardRoom, HallwayLoungeToDiningRoom,...
from __future__ import absolute_import from typing import Any, List, Dict, Optional, Callable, Tuple from django.utils.translation import ugettext as _ from django.conf import settings from django.contrib.auth import authenticate, login, get_backends from django.core.urlresolvers import reverse from django.http import...
""" GPU op for Stochastic max pooling as defined in: Stochastic Pooling for Regularization of Deep Convolutional Neural Networks Matthew D. Zeiler, Rob Fergus, ICLR 2013 The code is written around Alex Krizhevsky's cuda-convnet """ __authors__ = "Mehdi Mirza" __copyright__ = "Copyright 2010-2013, Universite de Montr...
# Copyright (C) 2016 Antoine Carme <Antoine.Carme@Laposte.net> # All rights reserved. # This file is part of the Python Automatic Forecasting (PyAF) library and is made available under # the terms of the 3 Clause BSD license import pandas as pd import numpy as np from . import Time as tsti from . import DateTime_Fun...
"""Config flow to configure Xiaomi Miio.""" import logging from re import search from micloud import MiCloud from micloud.micloudexception import MiCloudAccessDenied import voluptuous as vol from homeassistant import config_entries from homeassistant.config_entries import SOURCE_REAUTH from homeassistant.const import...
# -*- coding: utf-8 -*- """ @file @brief Classes which defines column for class @see cl IterRow """ from inspect import isfunction from .iter_exceptions import IterException, NotAllowedOperation from .others_types import long, NA, EmptyGroup, GroupByContainer from .column_operator import OperatorId, OperatorMul, Colum...
from vt_manager.communication.utils.XmlHelper import XmlHelper from vt_manager.models.Action import Action from vt_manager.models.VirtualMachine import VirtualMachine from vt_manager.controller.drivers.VTDriver import VTDriver from vt_manager.communication.XmlRpcClient import XmlRpcClient from vt_manager.controller.act...
import datetime import logging import os import ujson import shutil from boto.s3.connection import S3Connection from boto.s3.key import Key from bs4 import BeautifulSoup from django.conf import settings from django.db import connection from django.db.models import Max from django.utils.timezone import utc as timezone_...
import sys import os sys.path.insert(0, '.') sys.path.extend(os.environ.get('PYTHONPATH','').split(os.pathsep)) import imp import traceback __name__ = '__main__' mainmodule = type(sys)('__main__') sys.modules['__main__'] = mainmodule import cffi # this is a list holding object we do not want to be freed (like callb...
""" Unit tests for the Three Open311 API wrapper. """ import os import json import unittest from datetime import date from mock import Mock, MagicMock, patch import three import responses from three import core, Three, CityNotFound from three.core import requests as req class ThreeInit(unittest.TestCase): def ...
# -*- coding: utf-8 -*- """ Sahana Eden Assessments Model @copyright: 2012-2015 (c) Sahana Software Foundation @license: MIT 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 w...
import datetime from collections import defaultdict import maya import requests from lxml import html from fuzzywuzzy import process from Database import Database class Almanac(Database): def __init__(self): super().__init__() self.validate_database() def update(self, marketdata): ...
# $Id$ # # Copyright (C) 2007-2008 Greg Landrum # @@ 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 rdkit import Chem from rdkit.Chem import AllCh...
# Copyright (c) 2015 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
'''Testing numerical differentiation Still some problems, with API (args tuple versus *args) finite difference Hessian has some problems that I did not look at yet Should Hessian also work per observation, if fun returns 2d ''' import numpy as np from numpy.testing import assert_allclose, assert_almost_equal import...
import os import numpy as np from moviepy.audio.io.ffmpeg_audiowriter import ffmpeg_audiowrite from moviepy.decorators import requires_duration from moviepy.tools import (deprecated_version_of, extensions_dict) from moviepy.Clip import Clip from tqdm import tqdm class AudioClip(Clip): "...
# -*- coding: utf-8 -*- # # Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
from django.db.models import Q from django.db import models from django.contrib.contenttypes.models import ContentType try: from django.contrib.contenttypes.fields import GenericForeignKey except ImportError: from django.contrib.contenttypes.generic import GenericForeignKey from .generic import GFKOptimizedQue...
""" pygments.util ~~~~~~~~~~~~~ Utility functions. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from io import TextIOWrapper split_path_re = re.compile(r'[/\\ ]') doctype_lookup_re = re.compile(r''' <!DOCTYPE\s+( ...
from .. project import data_maker, project from .. util import data_file, deprecated, log, pid_context """Common command line arguments for run and demo.""" COMPONENTS = 'driver', 'layout', 'animation' PRESET_LIBRARY_DEFAULT = '~/.bibliopixel' ENABLE_PRESETS = False NUMBER_TYPES = ('python',) + data_maker.NUMPY_TYPES...
from __future__ import division from itertools import * import math import operator import re import xml.dom import weakref from xpath.exceptions import * import xpath # # Data model functions. # def string_value(node): """Compute the string-value of a node.""" if (node.nodeType == node.DOCUMENT_NODE or ...
"""Support for AdGuard Home.""" from __future__ import annotations import logging from adguardhome import AdGuardHome, AdGuardHomeConnectionError, AdGuardHomeError import voluptuous as vol from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_HOST, CONF_NAME, CONF_PA...
from __future__ import absolute_import import bisect import functools import itertools import logging import math import operator import zlib from calendar import Calendar from collections import OrderedDict, namedtuple from datetime import datetime, timedelta import pytz from django.utils import dateformat, timezone...
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Copyright 2011-2014, Nigel Small # # 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 # # Unle...
# Copyright (C) 2012 Nippon Telegraph and Telephone 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 by appli...
# Copyright 2010 OpenStack Foundation # Copyright 2011 Piston Cloud Computing, 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.apach...
import base64 import logging import re import time from html import unescape as html_unescape from Crypto.Cipher import PKCS1_v1_5 from Crypto.PublicKey import RSA import streamlink from streamlink.exceptions import FatalPluginError from streamlink.plugin import Plugin, PluginArgument, PluginArguments from streamlink...
# Copyright David Abrahams 2004. # Copyright Daniel Wallin 2006. # Distributed under the Boost # Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) import os import tempfile import litre import re import sys import traceback # Thanks to Jean Brouw...
#!/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. from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * def ge...
import json from nose.tools import eq_ from lib.sellers.constants import (ACCESS_PURCHASE, ACCESS_SIMULATE, EXTERNAL_PRODUCT_ID_IS_NOT_UNIQUE) from lib.sellers.models import Seller, SellerProduct, SellerPaypal from solitude.base import APITest uuid = 'sample:uid' class TestSeller...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Numba documentation build configuration file, created by # sphinx-quickstart on Tue Dec 30 11:55:40 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # auto...
############################################################################### ## ## Copyright (C) 2011-2014, NYU-Poly. ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## "Redistribution and use in source and binary for...
"""celery.log""" import os import sys import time import logging import traceback from celery import conf from celery.utils import noop from celery.utils.patch import ensure_process_aware_logger from celery.utils.compat import LoggerAdapter _hijacked = False _monkeypatched = False BLACK, RED, GREEN, YELLOW, BLUE, MA...
# Copyright 2014 Donald Stufft # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
################################################################# # seSelection.py # Originally from DirectSelection.py # Altered by Yi-Hong Lin, yihhongl@andrew.cmu.edu, 2004 # # We didn't change anything essential. # Just because we customized the seSession from DirectSession, # So we need related files can follow th...
# Copyright 2016 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 by applicable law or ag...
#!/usr/bin/env python """ Copyright (c) 2015-2016 Alex Forencich 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,...
#========================================================================= # Mesh Unit Test #========================================================================= import random from math import sqrt from pclib.ifcs import NetMsg #------------------------------------------------------------------------- #...
import colorama from colorama import Style import dbt.events.functions as this # don't worry I hate it too. from dbt.events.base_types import NoStdOut, Event, NoFile, ShowException, Cache from dbt.events.types import EventBufferFull, T_Event, MainReportVersion, EmptyLine import dbt.flags as flags # TODO this will need...
#!/Users/will/anaconda3/bin/python from elasticsearch import Elasticsearch, TransportError from elasticsearch.helpers import scan from elasticsearch_xpack import XPackClient import requests import pandas as pd import numpy as np import re from ipaddress import IPv4Address as ipv4, AddressValueError import time from bo...
#!/usr/bin/env python # # Copyright 2007 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...
from __future__ import unicode_literals import difflib import json import posixpath import sys import threading import unittest import warnings from collections import Counter from contextlib import contextmanager from copy import copy from functools import wraps from unittest.util import safe_repr from django.apps i...
#!/env/bin/python import hashlib import json import random import string import sys import time import zmq from termcolor import colored import fnode # def check_files_node(node, my_id): # files_my_id = {} # delete = {} # for i in node['file']: # print i[0:7] + '-->>' + node['lower_bound'] # ...
import copy import pickle import warnings import sys from sympy.utilities.pytest import XFAIL from sympy.core.basic import Atom, Basic from sympy.core.core import BasicMeta, BasicType, ClassRegistry from sympy.core.singleton import SingletonRegistry from sympy.core.symbol import Dummy, Symbol, Wild from sympy.core.num...
"""Support for sensors through the SmartThings cloud API.""" from __future__ import annotations from collections import namedtuple from collections.abc import Sequence from pysmartthings import Attribute, Capability from pysmartthings.device import DeviceEntity from homeassistant.components.sensor import ( Senso...
"""A cog that requires server users to feed the bot in return for benefits.""" import os import random import asyncio import copy import datetime import discord from discord.ext import commands from __main__ import send_cmd_help from .utils import checks from .utils.dataIO import dataIO SAVE_FILEPATH = "data/KeaneCo...
from __future__ import unicode_literals from django.contrib.auth.models import AnonymousUser from django.contrib.contenttypes.models import ContentType from django.db.models.query import QuerySet from django.test import TestCase from guardian.shortcuts import get_perms_for_model from guardian.core import ObjectPermis...
#!/usr/bin/python # Copyright 2020 Makani Technologies 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 applicabl...
"""Here is defined the AttributeSet class.""" import re import sys import warnings import pickle import numpy as np from . import hdf5extension from .utils import SizeType from .registry import class_name_dict from .exceptions import ClosedNodeError, PerformanceWarning from .path import check_attribute_name from .und...
from __future__ import absolute_import import pytest import os.path from subprocess import check_call, check_output from changes.testutils import TestCase from changes.vcs.base import ( ContentReadError, MissingFileError, UnknownChildRevision, UnknownParentRevision, UnknownRevision, ) from changes.vcs.git im...
#!/usr/bin/env python # # Copyright 2016 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 requir...
import copy import pandas as pd from threeML.plugins.SpectrumLike import SpectrumLike from threeML.utils.OGIP.response import InstrumentResponse from threeML.utils.spectrum.binned_spectrum import ( BinnedSpectrumWithDispersion, ChannelSet, ) __instrument_name = "General binned spectral data with energy dispe...
# 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 ...
# -*- coding: utf-8 -*- # # Copyright 2019 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
"""SCons.Job This module defines the Serial and Parallel classes that execute tasks to complete a build. The Jobs class provides a higher level interface to start, stop, and wait on jobs. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 The SCons Foundation # # Permi...
# Copyright (c) 2018 PaddlePaddle 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 app...
"""The Hyperion component.""" from __future__ import annotations import asyncio from collections.abc import Callable from contextlib import suppress import logging from typing import Any, cast from awesomeversion import AwesomeVersion from hyperion import client, const as hyperion_const from homeassistant.components...
from __future__ import print_function, division from sympy.core.basic import C from sympy.core.expr import Expr from sympy.core.relational import Eq from sympy.core.sets import Interval from sympy.core.singleton import S from sympy.core.symbol import (Dummy, Wild, Symbol) from sympy.core.sympify import sympify from sy...
#! /usr/bin/env python # $Id: test_inline_markup.py 5642 2008-09-05 18:18:28Z goodger $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ Tests for inline markup in docutils/parsers/rst/states.py. Interpreted text tests are in a separate module, test_inter...
""" Pure Python GeoIP API. The API is based off of U{MaxMind's C-based Python API<http://www.maxmind.com/app/python>}, but the code itself is based on the U{pure PHP5 API<http://pear.php.net/package/Net_GeoIP/>} by Jim Winstead and Hans Lellelid. It is mostly a drop-in replacement, except the C{new} and C{open} method...
# Copyright 2011 OpenStack Foundation # 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/l...
# Copyright 2011 Justin Santa Barbara # 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/l...
# -*- coding: utf-8 -*- # # Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...