gt
stringclasses
1 value
context
stringlengths
2.49k
119k
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # The MIT License # # Copyright (c) 2016 Grigory Chernyshev # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation file...
# -*- test-case-name: twisted.test.test_plugin -*- # Copyright (c) 2005 Divmod, Inc. # See LICENSE for details. """ Plugin system for Twisted. @author: U{Jp Calderone<mailto:exarkun@twistedmatrix.com>} @author: U{Glyph Lefkowitz<mailto:glyph@twistedmatrix.com>} """ from __future__ import generators import os, errno...
# Copyright (c) 2011 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
"""Dataset layout and data preparation. Currently the following layouts are supported: - standard The training, validation and development data are in train.txt, valid.txt and test.txt. All files are read sequentially. - lambada Like standard, but the training data is stored in an HDF5 file "train...
import urllib.parse import urllib.error import time import warnings import pprint from unittest import mock import io from openid.message import Message, OPENID_NS, OPENID2_NS, IDENTIFIER_SELECT, \ OPENID1_NS, BARE_NS from openid import cryptutil, oidutil, kvform from openid.store.nonce import mkNonce, split as s...
# 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 agree...
#Created on 12 Aug 2014 #@author: neil.butcher import sqlite3 from .MeasurementDatabase import filename from .CurrentUnitSetter import setter from PySide2 import QtCore class UnitMeasurementException(Exception): def __init__(self, value): self.value = value def __str__(self): return rep...
# # Copyright (c) SAS Institute 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 w...
################################################################## # BrundleFuzzClient.py # The core (Python) reads the feedback information from # the PinTool (C++) from the shared memory ################################################################## import sys import os import mmap import subprocess from array ...
#!/bin/env python2 import os import WikiwhoRelationships from copy import deepcopy import operator from sys import argv,exit import getopt from wmf import dump from structures.Revision import Revision import re import datetime #from django.utils import simplejson def getStatsOfFile(revisions, order, relations, tags):...
# # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicen...
# -*- coding: utf-8 -*- import itertools import json import os import six import ntpath import warnings from pysnow.query_builder import QueryBuilder from .legacy_exceptions import ( NoRequestExecuted, MultipleResults, NoResults, InvalidUsage, UnexpectedResponse, MissingResult, ) class Lega...
import os from stone.backend import CodeBackend from stone.ir import ( is_void_type, is_struct_type ) from go_helpers import ( HEADER, fmt_type, fmt_var, generate_doc, ) class GoClientBackend(CodeBackend): def generate(self, api): for namespace in api.namespaces.values(): ...
# Copyright (c) 2016 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...
# # 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 # ...
# -*- test-case-name: twisted.conch.test.test_telnet -*- # Copyright (c) 2001-2010 Twisted Matrix Laboratories. # See LICENSE for details. """ Telnet protocol implementation. @author: Jean-Paul Calderone """ import struct from zope.interface import implements from twisted.internet import protocol, interfaces as ii...
# -*- coding: utf-8 -*- """ Created on oct 20 23:15:24 2015 @author: marios Script that makes Xgboost scikit-like. The initial version of the script came from Guido Tapia (or such is his kaggle name!). I have modified it quite a bit though. the github from where this was retrieved was : https://github.com/gatapia/p...
# 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...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # Copyright (c) 2015--, The Horizomer Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ----------------------...
# # epydoc package file # # A python documentation Module # Edward Loper # # $Id: __init__.py,v 1.10 2004/03/09 05:02:50 edloper Exp $ # """ Markup language support for docstrings. Each submodule defines a parser for a single markup language. These parsers convert an object's docstring to a L{ParsedDocstring}, a sta...
# encoding=utf8 import sys reload(sys) sys.setdefaultencoding('utf8') import requests import json import time from random import randint import pandas as pd import os.path import sys import codecs import numpy as np import re import urllib2 print sys.stdout.encoding class GoogleTrendCrawler: def __init__(...
"""Classes for representing a Collection+JSON document.""" from __future__ import absolute_import, unicode_literals import json __version__ = '0.1.1' class ArrayProperty(object): """A descriptor that converts from any enumerable to a typed Array.""" def __init__(self, cls, name): """Constructs typ...
from __future__ import unicode_literals import uuid from jinja2 import Template from moto.core import BaseBackend from moto.core.utils import get_random_hex class HealthCheck(object): def __init__(self, health_check_id, health_check_args): self.id = health_check_id self.ip_address = health_check...
"""Stuff to parse WAVE files. Usage. Reading WAVE files: f = wave.open(file, 'r') where file is either the name of a file or an open file pointer. The open file pointer must have methods read(), seek(), and close(). When the setpos() and rewind() methods are not used, the seek() method is not necessary. This ...
"""Metadata Parsers. This module contains metadata parsers, that is, parsers that pull out the metadata and add it to a TarsqiDocument. The only requirements on each parser is that it defines an __init__() method that takes a dictionary of options and a parse() method that takes a TarsqiDocument instance. Current par...
# -*- coding: utf-8 -*- # Copyright 2016 Yelp 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 ...
import os import shutil import sqlite3 import tempfile import urlparse import urllib2 import subprocess import logging import argparse import csv import sys this_dir = os.path.realpath(os.path.dirname(__file__)) sys.path.append(os.path.realpath(os.path.join(os.pardir, os.pardir))) from geodata.encoding import saf...
import os from urllib.parse import urljoin, urlparse import click import requests from . import messages from .utils import create_temp_dir, get_user_agent class SingleHostSession(requests.Session): def __init__(self, host, **kwargs): super(SingleHostSession, self).__init__() self.debug = kwargs...
import re class Assembler: def inst_CALL(self, m): self.checkInCode() opcode = self.OPCODES['CALL'] r_src = 'A' r_dest = 'A' r_op = 'A' if re.match(self.HEX, m.group(2)): addr = m.group(2) elif re.match("\(" + self.ALPHANUMERIC + "\)", m.group(2)): self.enqueuelabel(m.group(2).strip("()"), se...
# Copyright 2013 OpenStack Foundation # Copyright 2013 Red Hat, 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...
""" managers.py .. moduleauthor:: Ulrich Felzmann <ulrich.felzmann@versi.edu.au> """ from datetime import datetime from django.db import models from django.db.models import Q from django.core.exceptions import PermissionDenied from django.contrib.auth.models import User, Group from tardis.tardis_portal.auth.local...
import numpy as np import galsim import galsim.config.input as gsinput import ngmix import os import copy from numpy.lib.recfunctions import append_fields # Balrog files import mathutil as util import grid # TODO: Implement as needed class BalObject(object): ''' ''' def __init__(self): pass clas...
# -*- coding: utf-8 -*- # # wxcast: A Python API and cli to collect weather information. # # Copyright (c) 2021 Sean Marlow # # 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 restricti...
import getpass import sys import shelve import time import logging import os from urlparse import urljoin import json import requests import Tkinter as tk import tkFileDialog as tfile from watchdog.observers import Observer from watchdog.events import LoggingEventHandler from sqlalchemy import create_engine from sq...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright 2011 - 2012, Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may ...
# Copyright 2015 Jarrod N. Bakker # # 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...
"""The tests for the heat control thermostat.""" import unittest from blumate.bootstrap import _setup_component from blumate.const import ( ATTR_UNIT_OF_MEASUREMENT, SERVICE_TURN_OFF, SERVICE_TURN_ON, STATE_ON, STATE_OFF, TEMP_CELSIUS, ) from blumate.components import thermostat from tests.com...
# 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...
import timeit import numpy as np from ..image_util import gaussian_blur_gray_image_nz from .prob_abs_r import ProbAbsoluteReflectance from .prob_abs_s import ProbAbsoluteShading class IntrinsicEnergy(object): def __init__(self, input, params): self.input = input self.params = params # se...
"""Classes to help gather user submissions.""" import logging from typing import Dict, Any, Callable, Hashable, List, Optional # noqa pylint: disable=unused-import import uuid import voluptuous as vol from .core import callback, HomeAssistant from .exceptions import HomeAssistantError _LOGGER = logging.getLogger(__na...
# Copyright 2013: Mirantis 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 b...
from __future__ import division from pygame.rect import Rect from thorpy.elements._sliderutils._dragger import DraggerX, DraggerY from thorpy.elements.ghost import Ghost from thorpy.elements.element import Element from thorpy.elements._sliderutils._shifters import Plus, Minus from thorpy.miscgui.reaction import React...
# -*- test-case-name: sine.test -*- from xshtoom.sdp import SDP from xshtoom.rtp.protocol import RTPProtocol from xshtoom.audio.converters import Codecker, PT_PCMU from xshtoom.rtp.formats import PT_NTE from xshtoom.audio.aufile import WavReader, GSMReader, WavWriter from sine.sip import responseFromRequest, parseAddr...
#!/usr/bin/env python -tt # # 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 #...
# session.py -- Session, SessionCallbacks classes # # Copyright (C) 2003 Manish Jethani (manish_jethani AT yahoo.com) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the Li...
import sys sys.path.insert(0,".") import unittest import neuroml import neuroml.writers as writers import PyOpenWorm from PyOpenWorm import * import networkx import rdflib import rdflib as R import pint as Q import os import subprocess as SP import subprocess import tempfile import doctest from glob import glob USE_B...
## # Copyright (c) 2010-2017 Apple 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 l...
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for the Redis storage.""" import unittest import fakeredis import redis from plaso.containers import events from plaso.containers import sessions from plaso.containers import tasks from plaso.storage.redis import redis_store from tests.containers import test_li...
""" Testing the file wrapping utilities. """ import os import unittest from numpy import array, isnan, isinf from openmdao.util.filewrap import InputFileGenerator, FileParser class TestCase(unittest.TestCase): """ Test namelist writer functions. """ def setUp(self): self.templatename = 'template.da...
""" Base classes for writing management commands (named commands which can be executed through ``django-admin.py`` or ``manage.py``). """ from __future__ import unicode_literals import os import sys from optparse import make_option, OptionParser import django from django.core.exceptions import ImproperlyConfigured ...
"""Support for MQTT sensors.""" from __future__ import annotations from datetime import timedelta import functools import logging import voluptuous as vol from homeassistant.components import sensor from homeassistant.components.sensor import ( CONF_STATE_CLASS, DEVICE_CLASSES_SCHEMA, STATE_CLASSES_SCHEM...
# 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 # dist...
# Copyright (c) 2014 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. """A simple shell that uses the IPython messaging system.""" # Override platform information. import platform platform.system = lambda: "pnacl" platform.release =...
#!/usr/bin/env python """ md5s3stash content addressable storage in AWS S3 """ import sys import os import argparse import tempfile import urllib.request, urllib.error, urllib.parse import urllib.request, urllib.parse, urllib.error import urllib.parse import base64 import logging import hashlib import basin import...
"""AVL Binary Search Tree module.""" import math import shutil class BinaryTree(object): """ AVL Binary search tree. """ def __init__(self, iterable=None, autobalance=True): """Initialize bst with root and size.""" self.root = None self._size = 0 self.autobalance = au...
# Copyright 2013-2016 DataStax, 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 writi...
# coding: utf-8 from __future__ import unicode_literals import json from .base_object import BaseObject from boxsdk.config import API from boxsdk.exception import BoxAPIException class Item(BaseObject): """Box API endpoint for interacting with files and folders.""" def _get_accelerator_upload_url(self, fi...
# Copyright 2014 # The Cloudscaling Group, 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...
from __future__ import absolute_import import re from functools import partial from inspect import getargspec from django.conf import settings from django.template.context import (Context, RequestContext, ContextPopException) from django.utils.importlib import import_module from django.utils.itercompat import is_...
# coding=utf-8 import unittest import sys import os import json import re import time from StringIO import StringIO sys.path.append( os.path.join("..", "src", "bin") ) from send_insteon_command import InsteonCommandField, SendInsteonCommandAlert, InsteonDeviceField, InsteonMultipleDeviceField, InsteonExtendedDataFie...
import json import re import errno from os.path import getmtime, join, exists from urllib import urlencode from ConfigParser import ConfigParser from django.shortcuts import render_to_response from django.http import QueryDict from django.conf import settings from django.contrib.auth import login, authenticate, logout...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
from __future__ import absolute_import import logging from typing import Any, Dict, List, Set, Tuple, Optional, Text from django.contrib.auth.backends import RemoteUserBackend from django.conf import settings from django.http import HttpResponse import django.contrib.auth from django_auth_ldap.backend import LDAPBac...
from collections import defaultdict from typing import Any, Callable, Dict, List, Mapping, Optional, Sequence, Set, Union import orjson from django.conf import settings from django.contrib.auth.models import AnonymousUser from django.core.exceptions import ValidationError from django.db import transaction from django....
#!/usr/bin/env python from __future__ import print_function import os import sys import requests from openbabel import pybel from openbabel import openbabel as ob # TODO: process Open Babel resdata.txt # if we can find certain non-standard residues mdLigands = [ "ASH", # Neutral ASP "CYX", # SS-bonded CYS "CYM",...
from decimal import Decimal as D from django.test import TestCase from django.test.utils import override_settings from oscar.apps.catalogue.models import ProductClass, Product from oscar.apps.checkout import calculators from oscar.apps.offer.utils import Applicator from oscar.apps.order.models import Order from oscar...
# Copyright (c) 2016, Daniele Venzano # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
# ====================================================================== """ Functions for reading and writing sets of fits files, including header information. """ # ====================================================================== # Globally useful modules: import numpy,os import astropy.io.fits as pyfits fro...
# Copyright (c) 2009-2021 The Regents of the University of Michigan # This file is part of the HOOMD-blue project, released under the BSD 3-Clause # License. """Implement type conversion helpers.""" import numpy as np from itertools import repeat, cycle from abc import ABC, abstractmethod from collections.abc import ...
# Copyright 2018-2019 The Kubeflow 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 ...
# # Bindings.py -- Bindings classes for Ginga FITS viewer. # # Eric Jeschke (eric@naoj.org) # # Copyright (c) Eric R. Jeschke. All rights reserved. # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. import math from ginga.misc import Bunch, Settings, Callback ...
import argparse import os import shlex import sys import lit.util def parse_args(): parser = argparse.ArgumentParser() parser.add_argument('test_paths', nargs='+', metavar="TEST_PATH", help='File or path to include in the test suite') parser.add_argument("--version", ...
from __future__ import unicode_literals from django.contrib.auth import authenticate, get_user_model from django.contrib.auth.tokens import default_token_generator from django.db.models import Q from django.db.models.manager import Manager from django import forms from django.utils.http import int_to_base36 from djang...
import urlparse from django.conf import settings from django.contrib import messages from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.core.urlresolvers import reverse from django.db.models import Q from django.http import Http404 from django.shortcuts im...
"""The tests for the device tracker component.""" # pylint: disable=protected-access,too-many-public-methods import unittest from unittest.mock import patch from datetime import datetime, timedelta import os from blumate.loader import get_component import blumate.util.dt as dt_util from blumate.const import ( ATTR...
#!/usr/bin/env python # # Use the raw transactions API to spend PIVs 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 pivxd or pivx-Qt ru...
"""Script to check the configuration file.""" import argparse import logging import os from collections import OrderedDict, namedtuple from glob import glob from typing import Dict, List, Sequence from unittest.mock import patch import attr import voluptuous as vol from homeassistant import bootstrap, core, loader f...
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import serialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import...
# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # # 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 re...
from __future__ import division, print_function from functools import partial from itertools import product import numpy as np import scipy.sparse as sp from sklearn.datasets import make_multilabel_classification from sklearn.preprocessing import LabelBinarizer from sklearn.utils.multiclass import type_of_target fro...
import re from typing import Dict, List, Optional from django.db.models import BooleanField, Case, IntegerField, Q, Value, When from django.shortcuts import reverse from drf_yasg import openapi from drf_yasg.utils import swagger_auto_schema from rest_framework import exceptions, permissions, throttling, viewsets from ...
import os import sublime from sublime_plugin import WindowCommand, TextCommand from ..git_command import GitCommand from ...common import util COMMIT_HELP_TEXT_EXTRA = """## ## You may also reference or close a GitHub issue with this commit. To do so, ## type `#` followed by the `tab` key. You will be shown a lis...
import sys sys.path = ['.'] + sys.path from test.test_support import verbose, run_unittest import re from re import Scanner import sys, os, traceback from weakref import proxy # Misc tests from Tim Peters' re.doc # WARNING: Don't change details in these tests if you don't know # what you're doing. Some of these test...
# Copyright 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 requ...
# -*- coding: utf-8 -*- """ Created on Thu Jul 16 15:42:56 2015 @author: ibackus """ import warnings import pynbody as pb SimArray = pb.array.SimArray import numpy as np from diskpy.utils import match_units from diskpy.pdmath import binned_mean def Q(snapshot, molecular_mass = 2.0, bins=100, use_velocity=False, \ us...
from graphserver.core import Graph, TripBoard, HeadwayBoard, HeadwayAlight, Crossing, TripAlight, Timezone, Street, Link, ElapseTime from optparse import OptionParser from graphserver.graphdb import GraphDatabase from graphserver.ext.gtfs.gtfsdb import GTFSDatabase, parse_gtfs_date import sys import pytz from tools imp...
import base64 import datetime import decimal try: import simplejson as json except ImportError: import json # noqa import wsme.tests.protocol from wsme.utils import parse_isodatetime, parse_isodate, parse_isotime from wsme.types import isarray, isdict, isusertype import six if six.PY3: from urllib.pars...
""" Wrappers for result objects and iterators """ from abc import ABC, abstractmethod, abstractproperty from typing import ( TYPE_CHECKING, Any, Callable, Dict, ItemsView, Iterable, Iterator, KeysView, List, Optional, Tuple, Union, ValuesView, overload, ) from .c...
#!/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...
# 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...
#!/usr/bin/env python from __future__ import absolute_import, division, print_function, with_statement import base64 import binascii from contextlib import closing import copy import functools import sys import threading import datetime from io import BytesIO from tornado.escape import utf8 from tornado import gen f...
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Lighting(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "mesh3d" _path_str = "mesh3d.lighting" _valid_props = { "ambient", "diffuse...
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/vision_v1p2beta1/proto/geometry.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2010-2011 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 # # Unl...
# -*- coding: utf-8 -*- from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListTy...
#!/usr/bin/python import math from collections import defaultdict from olypy.oid import to_oid from olypy.oid import to_int import olymap.utilities as u from olymap.utilities import get_oid, get_name, get_subkind, get_who_has import olymap.maps as maps import pathlib from olypy.db import loop_here from jinja2 import E...
# Copyright (c) 2020 Dell Inc. or its subsidiaries. # # 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...
# Copyright 2013 OpenStack Foundation # All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
import mock import pytest from urlparse import urlparse from addons.wiki.tests.factories import WikiFactory from api.base.settings.defaults import API_BASE from api.base.settings import osf_settings from api_tests import utils as test_utils from framework.auth import core from osf.models import Guid from osf_tests.fac...