gt
stringclasses
1 value
context
stringlengths
2.49k
119k
# -*- coding: utf-8 -*- # Licensed under the MIT license # http://opensource.org/licenses/mit-license.php # Copyright 2009 - Frank Scholz <coherence@beebits.net> # Copyright 2014 - Hartmut Goebel <h.goebel@crazy-compilers.com> import time import pygtk pygtk.require("2.0") import gtk from twisted.internet import re...
# -*- coding: utf-8 -*- """ Do HTTP API requests easily using Gherkin language. """ import json from behave import given, when from sdklib.http import HttpRequestContext, HttpSdk from sdklib.http.authorization import BasicAuthentication, X11PathsAuthentication from sdklib.http.renderers import FormRenderer, JSONRen...
""" Abiword to HTML Converter for PubTal Copyright (c) 2003 Colin Stewart (http://www.owlfish.com/) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain ...
<<<<<<< HEAD <<<<<<< HEAD import unittest import os from test.support import TESTFN, import_fresh_module c_stat = import_fresh_module('stat', fresh=['_stat']) py_stat = import_fresh_module('stat', blocked=['_stat']) class TestFilemode: statmod = None file_flags = {'SF_APPEND', 'SF_ARCHIVED', 'SF_IMMUTABLE', ...
# Copyright (c) 2012 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. """ TestGyp.py: a testing framework for GYP integration tests. """ import collections from contextlib import contextmanager import itertools import os import re ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_pddb ---------------------------------- Tests for all the database engine methods from `pddb` module. """ import os import re import sys import time import json from shutil import rmtree import unittest2 from pddb import PandasDatabase # TODO: delete performanc...
"""passlib.handlers.misc - misc generic handlers """ #============================================================================= # imports #============================================================================= # core import sys import logging; log = logging.getLogger(__name__) from warnings import warn # sit...
# 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...
# # Proximate - Peer-to-peer social networking # # Copyright (c) 2008-2011 Nokia Corporation # # All rights reserved. # # This software is licensed under The Clear BSD license. # See the LICENSE file for more details. # from gobject import io_add_watch, timeout_add, source_remove, IO_IN, IO_OUT, \ PRIORITY_LOW fro...
from __future__ import unicode_literals import threading import time from multiple_database.routers import TestRouter from django.db import DatabaseError, connection, router, transaction from django.test import ( TransactionTestCase, override_settings, skipIfDBFeature, skipUnlessDBFeature, ) from .models im...
"""The tests for the emulated Hue component.""" import asyncio import json from unittest.mock import patch import pytest from homeassistant import setup, const, core import homeassistant.components as core_components from homeassistant.components import ( emulated_hue, http, light, script, media_player, fan ) fro...
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2015-2017 Rapptz 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 u...
# coding: utf-8 """ ORCID Member No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: Latest Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import si...
''' graph_blast2pairs.py - ====================================================== :Author: Andreas Heger :Release: $Id$ :Date: |today| :Tags: Python Purpose ------- .. todo:: describe purpose of the script. Usage ----- Example:: python graph_blast2pairs.py --help Type:: python graph_blast2pairs.py...
from __future__ import division, absolute_import from fontTools.ttLib import TTFont, newTable from fontTools.cffLib import TopDictIndex, TopDict, CharStrings, SubrsIndex, GlobalSubrsIndex, PrivateDict, IndexedStrings from fontTools.ttLib.tables.O_S_2f_2 import Panose from fontTools.ttLib.tables._h_e_a_d import mac_epo...
# # 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...
#!/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...
#!/usr/bin/env python3 # 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...
''' convenience functions for ANOVA type analysis with OLS Note: statistical results of ANOVA are not checked, OLS is checked but not whether the reported results are the ones used in ANOVA includes form2design for creating dummy variables TODO: * ... * ''' import numpy as np #from scipy import stats import sci...
import logging import os import collections import operator import copy from functools import cmp_to_key from future.utils import viewitems class NullHandler(logging.Handler): """ For backward-compatibility with Python 2.6, a local class definition is used instead of logging.NullHandler """ def emi...
def mark_descendants(nodes): for node in nodes: node.descendant = True mark_descendants(node.childrens) def make_tree(request, items, levels, url, ancestors, descendants=False, current_level=0, to_levels=100, active_levels=0): from cms.models import Page """ builds the tree of all the...
# -*- coding: utf8 -*- from __future__ import absolute_import import logging import os import scandir import subprocess from six import text_type from django.conf import settings log = logging.getLogger(__name__) class PullFromRepositoryException(Exception): pass class PullFromRepository(object): def ...
# PyAlgoTrade # # Copyright 2011-2015 Gabriel Martin Becedillas Ruiz # # 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 Insight Software Consortium # # 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...
#Radio Control #Martin O'Hanlon #stuffaboutcode.com #imports import RPi.GPIO as GPIO import mpd import socket from time import sleep from Queue import Queue from threading import Timer from event import Event from onoffswitch import OnOffSwitch from playlistselector import PlaylistSelector from volumecontrol import ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals, division, absolute_import, print_function import logging from builtins import * # noqa pylint: disable=unused-import, redefined-builtin from flexget import plugin from flexget.event import event from flexget.manager import Session from . import api_tr...
import pprint import test.test_support import unittest try: uni = unicode except NameError: def uni(x): return x # list, tuple and dict subclasses that do or don't overwrite __repr__ class list2(list): pass class list3(list): def __repr__(self): return list.__repr__(self) class tuple...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals import utool as ut import numpy as np import sklearn import sklearn.datasets import sklearn.svm import sklearn.metrics from sklearn import preprocessing try: from ibeis_cnn.models import abstract_models Ab...
import datetime import re from typing import Any, Dict, List, Mapping from unittest import mock import orjson from django.conf import settings from confirmation.models import Confirmation, create_confirmation_link from zerver.lib.actions import ( do_change_plan_type, do_change_realm_subdomain, do_create_r...
# Copyright 2009 by Tiago Antao <tiagoantao@gmail.com>. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """ This module allows to control GenePop. """ import os import re im...
import re import string from PyQt5 import QtGui, QtCore class CTextDecorator: redPen = QtGui.QPen(QtGui.QColor(255, 0, 0)) greenPen = QtGui.QPen(QtGui.QColor(255, 255, 0)) whitePen = QtGui.QPen(QtGui.QColor(255, 255, 255)) normalPen = QtGui.QPen(QtGui.QColor(192, 192, 192), 1, QtCore.Qt.SolidLine) ...
# Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/ # # 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, modi...
import sys from sklearn.externals.six.moves import cStringIO as StringIO import numpy as np import scipy.sparse as sp from sklearn.neighbors import BallTree from sklearn.utils.testing import assert_less_equal from sklearn.utils.testing import assert_equal from sklearn.utils.testing import assert_almost_equal from skle...
# 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...
import os from pprint import pformat from django import http from django.core import signals from django.core.handlers.base import BaseHandler from django.core.urlresolvers import set_script_prefix from django.utils import datastructures from django.utils.encoding import force_unicode, smart_str # NOTE: do *not* impo...
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'ProjectKey.user_added' db.add_column('sentry_projectkey', 'user_added', ...
# 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 th...
import arrow import json import os import sys from paramiko import SSHClient from sh import ssh, rsync, Command, \ ErrorReturnCode_1, ErrorReturnCode_255, ErrorReturnCode from slugify import slugify from subprocess32 import call, Popen from .config import expose_username, expose_url, data_dir, verbosity from .exp...
#!/usr/bin/env vpython3 # 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. """Usage: %prog [options] [<commitref>]* If no <commitref>'s are supplied, it defaults to HEAD. Calculates the generation number fo...
# -*- coding: utf-8 -*- # # 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 ...
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import random import sys from ray.rllib.optimizers.segment_tree import SumSegmentTree, MinSegmentTree from ray.rllib.utils.annotations import DeveloperAPI from ray.rllib.utils.compression im...
#!/usr/bin/env python3 ''' Class to handle ISC bind nameserver If hostname is specified, manage a bind instance over ssh, otherwise manage a local bind It is assumed SSH is configured for passwordless login. Note: To update SOA serial, the serial number should be on its own line, and have a comment "; Serial"...
#!/usr/bin/env python # Copyright (c) 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import ntpath import posixpath import sys import collections import unittest SCRIPT_DIR = os.path.dirname(os.path.abspat...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
# # 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 # # Unless required by applic...
# Copyright 2019,2020,2021 Sony 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 applicable law or agreed...
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
""" Testing module for Virtual Watershed Data adaptor. """ from ..watershed import make_watershed_metadata, make_fgdc_metadata, \ VWClient, default_vw_client, _get_config, metadata_from_file import datetime import json import pandas as pd import os import requests import time import unittest from uuid import uuid...
from __future__ import unicode_literals import os import base64 import datetime import hashlib import copy import itertools import codecs import random import string import six from bisect import insort from moto.core import BaseBackend, BaseModel from moto.core.utils import iso_8601_datetime_with_milliseconds, rfc_1...
# Copyright 2011 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
# Licensed under a 3-clause BSD style license - see LICENSE.rst import warnings import re import time from math import cos, radians import requests from bs4 import BeautifulSoup from io import BytesIO, StringIO import astropy.units as u import astropy.coordinates as coord import astropy.io.votable as votable from ....
from __future__ import absolute_import import logging import datetime from sentry_sdk.hub import Hub from sentry_sdk.utils import ( to_string, event_from_exception, current_stacktrace, capture_internal_exceptions, ) from sentry_sdk.integrations import Integration from sentry_sdk._compat import iterite...
#!/usr/bin/env python # -*- coding: utf-8 -*- """The Official CONLL 2016 Shared Task Scorer """ import argparse import json from confusion_matrix import ConfusionMatrix, Alphabet from conn_head_mapper import ConnHeadMapper import validator CONN_HEAD_MAPPER = ConnHeadMapper() def evaluate(gold_list, predicted_list):...
"""Simple watchdog system. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import errno import io import logging import os import re import stat # pylint: disable=wrong-import-order import time from treadmill im...
import discord import asyncio from twitch.api import v3 as twitch from twitch.exceptions import ResourceUnavailableException from random import randint import argparse import os import requests import json import random from bs4 import BeautifulSoup import urllib.request import urllib.parse import youtube_dl from disco...
# Copyright 2019 The Magenta 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 ...
# -*- coding: utf-8 -*- # # REST Unit Tests # # To run this script use: # python web2py.py -S eden -M -R applications/eden/modules/unit_tests/s3/s3rest.py # import unittest from gluon import * from gluon.storage import Storage from s3.s3rest import S3Request try: from cStringIO import StringIO except ImportError: ...
""" OMEGA iTHX Series Temperature and Humidity Chart Recorder. This class is compatible with the following model numbers: * iTHX-W3 * iTHX-D3 * iTHX-SD * iTHX-M * iTHX-W * iTHX-2 """ import os import re import time import socket import sqlite3 from datetime import datetime try: ConnectionResetError except NameErr...
from os import urandom from Queue import Queue from os.path import abspath from random import randrange from cPickle import dumps, loads from sys import _getframe, modules from exceptions import BaseException from stackless import channel, schedule from _weakref import proxy, ref as weakref from copy import deepcopy, e...
import os import time import pickle import rsa import socket import random import win32api import ctypes import win32com import urllib2 from config import * from core import * from models import * from rsa.bigfile import * class Dreamr(): clientID = "" crypt = None store = None keystore = None unseen = None exi...
# Copyright 2016 United States Government as represented by the Administrator # of the National Aeronautics and Space Administration. All Rights Reserved. # # Portion of this code is Copyright Geoscience Australia, Licensed under the # Apache License, Version 2.0 (the "License"); you may not use this file # except in c...
# Copyright 2014 Red Hat Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
""" Copyright 2015 Paul T. Grogan, Massachusetts Institute of Technology 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...
# 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 agreed to in...
# -*- coding: utf-8 -*- import os import base64 import hashlib import hmac import logging from multiprocessing.pool import ThreadPool from multiprocessing import TimeoutError import json import requests import time from file_crypto import FileCrypto import model from exception import BridgeError, FarmerError, Supp...
#!/usr/bin/env python # coding=utf-8 import datetime import os.path import sys import traceback as tb from sacred import metrics_logger from sacred.metrics_logger import linearize_metrics from sacred.randomness import set_global_seed from sacred.utils import SacredInterrupt, join_paths, IntervalTimer from sacred.stdo...
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Bitsend Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test processing of unrequested blocks. Setup: two nodes, node0+node1, not connected to each other. Nod...
# Copyright 2015, Google 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 conditions and the f...
# jsb/socklib/irc/irc.py # # """ an Irc object handles the connection to the irc server .. receiving, sending, connect and reconnect code. """ ## jsb imports from jsb.utils.exception import handle_exception from jsb.utils.generic import toenc, fromenc from jsb.utils.generic import getrandomnick, strippedtx...
# -*- coding: utf-8 -*- """ This module provides helpers for C++11+ projects using pybind11. LICENSE: Copyright (c) 2016 Wenzel Jakob <wenzel.jakob@epfl.ch>, All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are...
"""The tests for the demo climate component.""" import unittest from homeassistant.util.unit_system import ( METRIC_SYSTEM ) from homeassistant.bootstrap import setup_component from homeassistant.components import climate from tests.common import get_test_home_assistant ENTITY_CLIMATE = 'climate.hvac' ENTITY_EC...
"""Test the onboarding views.""" import asyncio import os from unittest.mock import patch import pytest from homeassistant.components import onboarding from homeassistant.components.onboarding import const, views from homeassistant.const import HTTP_FORBIDDEN from homeassistant.helpers import area_registry as ar from...
"""This is the Bokeh charts interface. It gives you a high level API to build complex plot is a simple way. This is the Histogram class which lets you build your histograms just passing the arguments to the Chart class and calling the proper functions. """ #-------------------------------------------------------------...
# 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 a...
########################################################################## # # Copyright (c) 2016, 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...
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the listtransactions API.""" from test_framework.test_framework import BitcoinTestFramework from ...
""" These test the method maybe_promote from core/dtypes/cast.py """ import datetime import numpy as np import pytest from pandas._libs.tslibs import NaT from pandas.core.dtypes.cast import maybe_promote from pandas.core.dtypes.common import ( is_complex_dtype, is_datetime64_dtype, is_datetime_or_timede...
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
# # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2013 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 Li...
""" nav.py Icons used in this script were created by oxygenicons (http://www.oxygen-icons.org/) and distributed at the IconArchive (http://www.iconarchive.com) under the GNU Lesser General Public License. """ from __future__ import print_function # Load the needed packages from functools import partial import os, glo...
#!/usr/bin/env vpython # # Copyright (c) 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. """Provisions Android devices with settings required for bots. Usage: ./provision_devices.py [-d <device serial number>] """ ...
# Copyright (C) 2011 - Soren Hansen # Copyright (C) 2013 - 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 requir...
""" Convenience functions for creating a context and evaluating nodes for a range of dates and collecting the results. """ from .context import MDFContext, NodeOrBuilderTimer, _profiling_is_enabled from .nodes import MDFNode from datetime import datetime import numpy as np import pandas as pa import logging import insp...
#!/usr/bin/env python """A keyword index of client machines. An index of client machines, associating likely identifiers to client IDs. """ import functools import operator from typing import Mapping, Iterable, Sequence from grr_response_core.lib import rdfvalue from grr_response_core.lib.util import precondition fr...
#!/usr/bin/env python """Command-line interface to gen_client.""" import contextlib import json import logging import os import pkgutil import sys from google.apputils import appcommands import gflags as flags from apitools.base.py import exceptions from apitools.gen import gen_client_lib from apitools.gen import ut...
from builtins import str from builtins import range import calendar import json import re import traceback from collections import Iterable from datetime import datetime import six from jsonpath_rw import parse from .exceptions import FuncException, StopCCEIteration, QuitJobError from .pipemgr import PipeManager from ...
#! /usr/bin/pythonw # The Keccak sponge function, designed by Guido Bertoni, Joan Daemen, # questions, please refer to our website: http://keccak.noekeon.org/ # # Implementation by Renaud Bauvin, # hereby denoted as "the implementer". # # To the extent possible under law, the implementer has waived all copyright # and ...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # coding=utf-8 # Copyright (c) 2011-2013 University of Southern California / ISI # 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 ...
#--------------------------------------------------------------------------- # Copyright 2013 PwC # # 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/LICENS...
# Copyright 2015 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Generation of OAuth2 token for a service account. Supports three ways to generate OAuth2 tokens: * app_identity.get_access_token(...) to use...
# Licensed under a 3-clause BSD style license - see LICENSE.rst import pytest from numpy.testing import assert_equal, assert_allclose from astropy import units as u from astropy.time import Time, TimeDelta from astropy.utils.data import get_pkg_data_filename from astropy.timeseries.periodograms import BoxLeastSquare...
# -*- coding: utf-8 -*- ########################################################################## # Copyright 2018 Aerospike, 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 # # htt...
# -*- 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...
# -*- coding: utf-8 -*- # --------------------------------------------------------------------------- # Name: finance # Purpose: International identifiers for tradable financial assets # # Author: Michael Amrhein (mamrhein@users.sourceforge.net) # # Copyright: (c) 2016 Michael Amrhein # License: T...
#!/usr/bin/env python # # Copyright (c) 2013 Intel Corporation. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # pylint: disable=F0401 import distutils.dir_util import optparse import os import shutil import sys import zipfile from common_func...
"""Numerically integrate the dynamics of a hierarchical triple.""" import json import time from math import sqrt, cos, sin, pi, acos import numpy as np from scipy.integrate import ode from ._kozai_constants import au from ._kozai_constants import c from ._kozai_constants import G from ._kozai_constants import M_sun ...
# -*- coding: utf-8 -*- # Copyright (c) 2015, Vispy Development Team. # Distributed under the (new) BSD License. See LICENSE.txt for more info. """ About this technique -------------------- In Python, we define the six faces of a cuboid to draw, as well as texture cooridnates corresponding with the vertices of the cu...
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base...
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...