gt
stringclasses
1 value
context
stringlengths
2.49k
119k
# python3 # Copyright 2018 DeepMind Technologies Limited. 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 re...
# -*- coding: utf-8 -*- { '!langcode!': 'id', '!langname!': 'Indonesian', '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN', '%d days ago':...
# 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 # d...
#! /usr/bin/env python import numpy import random import copy from itertools import permutations class graph: '''A graph data structure. The data structure consists of a dictionary for which each element is a node. Each node stores a dictionary of all other nodes to which the node is connected along wit...
#!/usr/bin/env python # -*- coding: utf-8 -*- # ############################################################################## import scapy.config import scapy.fields import scapy.layers.dot11 import scapy.packet import scapy.utils ############################################################################## from pcap...
# -*- coding: utf-8 -*- """ @author: Hagen Telg """ import datetime import pandas as pd import numpy as _np import os # import pylab as plt # from atmPy.tools import conversion_tools as ct from atmPy.general import timeseries from atmPy.atmosphere import standards as atm_std import pathlib def read_file(path, ...
#!/usr/bin/python # -*- coding: utf-8 -*- """ MIT License Copyright (c) 2013-2016 Frantisek Uhrecky 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, includ...
"""Test the Google Nest Device Access config flow.""" import copy from unittest.mock import patch from google_nest_sdm.exceptions import ( AuthException, ConfigurationException, SubscriberException, ) import pytest from homeassistant import config_entries, setup from homeassistant.components.nest.const i...
# Copyright 2010-2011 OpenStack Foundation # Copyright 2012-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 License. You may obtain # a copy of the License at # # http://www.apache.org/li...
import unittest from datetime import ( date, datetime, ) from pypika import ( Criterion, EmptyCriterion, Field, Table, functions as fn, ) from pypika.queries import QueryBuilder from pypika.terms import ExistsCriterion, Mod __author__ = "Timothy Heys" __email__ = "theys@kayak.com" class ...
import os from . import helpers def input_block(config, section): """Return the input block as a string.""" block = '' if section not in config: return '' for key in config[section]: value = config[section][key].strip() if value: block += '{} {}\n'.format(key, va...
# Copyright (c) 2015 Russell Sim <russell.sim@gmail.com> # # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
# -*- coding: utf-8 -*- import functools import time import datetime import mock from factory import SubFactory from factory.fuzzy import FuzzyDateTime, FuzzyAttribute, FuzzyChoice from mock import patch, Mock import factory import pytz from factory.django import DjangoModelFactory from django.utils import timezone f...
# 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 datetime from django.contrib.admin.util import (lookup_field, display_for_field, display_for_value, label_for_field) from django.contrib.admin.views.main import (ALL_VAR, EMPTY_CHANGELIST_VALUE, ORDER_VAR, PAGE_VAR, SEARCH_VAR) from django.contrib.admin.templatetags.admin_static import static from djang...
from .academicearth import AcademicEarthCourseIE from .addanime import AddAnimeIE from .aftonbladet import AftonbladetIE from .anitube import AnitubeIE from .aol import AolIE from .aparat import AparatIE from .appletrailers import AppleTrailersIE from .archiveorg import ArchiveOrgIE from .ard import ARDIE from .arte im...
# Copyright (c) 2013 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 writi...
"""Python wrappers around Brain. This file is MACHINE GENERATED! Do not edit. """ from google.protobuf import text_format from tensorflow.core.framework import op_def_pb2 from tensorflow.python.framework import op_def_registry from tensorflow.python.framework import ops from tensorflow.python.ops import op_def_libra...
# Copyright 2010 Jacob Kaplan-Moss # Copyright 2011 OpenStack Foundation # Copyright 2017 AT&T Intellectual Property. # 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 Lice...
# Compatibility with Python 2 from __future__ import print_function from scipy import sparse import numpy as np def write_int(f, x, name, *args): if any(args): for arg in args: f.write("%s->" % arg) f.write("%s = %i;\n" % (name, x)) else: f.write("c_int %s = %i;\n" % (name...
# (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 """Routines to generate WSGI responses""" ############################################################ ## Headers ####################################...
# # # Copyright (C) 2006, 2007, 2008, 2010, 2011, 2012 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: # # 1. Redistributions of source code must retain the above copyright notice, ...
from __future__ import absolute_import, division, print_function import os import re import sys from os.path import isdir, isfile, join from conda.compat import iteritems, PY3, text_type from conda.utils import memoized, md5_file import conda.config as cc from conda.resolve import MatchSpec from conda.cli.common impo...
"""SCons.Scanner The Scanner package for the SCons software construction utility. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the...
''' Provide a functions and classes to implement a custom JSON encoder for serializing objects for BokehJS. The primary interface is provided by the |serialize_json| function, which uses the custom |BokehJSONEncoder| to produce JSON output. In general, functions in this module convert values in the following way: * ...
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Base class for RPC testing.""" import configparser from enum import Enum import logging import argpars...
# (C) Copyright 2017, 2019-2020 by Rocky Bernstein # # 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 License, or (at your option) any later version. # # This progr...
# Copyright (C) 2012, Christof Buchbender # BSD Licencse import math import astrolyze.functions.constants as const # Constant conversion factors. #==============> Approved !!! <========================== WattToErgs = 1e7 # 1W = 1e7 erg/s ErgsToWatt = 1e-7 # 1W = 1e-7 erg/s JanskyToWatt = 1e-26 # 1Jy = 1e-26...
from __future__ import unicode_literals import csv import pytz from furl import furl from datetime import datetime, timedelta from django.db.models import Q from django.views.defaults import page_not_found from django.views.generic import FormView, DeleteView, ListView, TemplateView from django.contrib.auth.mixins imp...
"""Tests for dense recursive polynomials' arithmetics. """ from sympy.polys.densebasic import ( dup_normal, dmp_normal, ) from sympy.polys.densearith import ( dup_add_term, dmp_add_term, dup_sub_term, dmp_sub_term, dup_mul_term, dmp_mul_term, dup_mul_ground, dmp_mul_ground, dup_quo_ground, dmp...
"""Event parser and human readable log generator.""" from datetime import timedelta from itertools import groupby import json import logging import sqlalchemy from sqlalchemy.orm import aliased import voluptuous as vol from homeassistant.components import sun from homeassistant.components.history import sqlalchemy_fi...
# Pansharpened Image Process using Rasterio # Landsat Util # License: CC0 1.0 Universal import warnings import sys from os.path import join, isdir import tarfile import glob import subprocess import numpy import rasterio from rasterio.warp import reproject, RESAMPLING, transform from skimage import transform as sktr...
#system import json #sbaas from .stage01_resequencing_analysis_query import stage01_resequencing_analysis_query from .stage01_resequencing_coverage_query import stage01_resequencing_coverage_query from .stage01_resequencing_coverage_dependencies import stage01_resequencing_coverage_dependencies #sbaas models from .stag...
# No cancel button. from pywin.mfc import dialog from pywin.mfc.thread import WinThread import threading import win32ui import win32con import win32api import time def MakeProgressDlgTemplate(caption, staticText = ""): style = (win32con.DS_MODALFRAME | win32con.WS_POPUP | win32con.WS_VISIBLE | w...
# Copyright 2014: 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...
# 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 # d...
import warnings from itertools import product import numpy as np import pandas as pd import pytest from pandas.errors import OutOfBoundsDatetime from xarray import DataArray, Dataset, Variable, coding, decode_cf from xarray.coding.times import ( _import_cftime, cftime_to_nptime, decode_cf_datetime, en...
# Copyright (c) 2009-2012, Geoffrey Biggs # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright # notice, this list of condit...
# Copyright (c) 2012-2014 The GPy authors (see AUTHORS.txt) # Licensed under the BSD 3-clause license (see LICENSE.txt) #TODO """ A lot of this code assumes that the link function is the identity. I think laplace code is okay, but I'm quite sure that the EP moments will only work if the link is identity. Furthermore,...
""" charger ===== Simulates a charging system (e.g. EV-charging, battery charging) Configurable parameters:: { <TODO> } Device properties created:: { pilot : A|B|C|F # Pilot signal indicates charging state (A=Available, B=Blocking, C=Charging, F=Fault) energy: ...
# Copyright (c) 2010-2012 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 law or agree...
# None of this is django-specific. Don't import from django. import os import sys import contextlib import subprocess import getpass import logging import urllib from os.path import commonprefix from . import environment from .utils import get_next_available_port _SCRIPT_NAME = 'dev_appserver.py' _API_SERVER = Non...
# Copyright 2020 The AutoKeras 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 i...
# -*- coding: utf-8 -*- # # Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia # 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 copyrigh...
from datetime import datetime from collections import OrderedDict from django.conf import settings from django.http import Http404 from django.utils import timezone as tz from django.contrib.auth.models import User from rest_framework.decorators import api_view from rest_framework.response import Response from rest_f...
# Copyright 2012-2017 The Meson development team # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agree...
# Copyright (C) 2015 ycmd contributors # # This file is part of ycmd. # # ycmd is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # ycmd...
"""Copyright 2009 Chris Davis 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...
from datetime import datetime import re from itertools import * from django.shortcuts import render_to_response, get_object_or_404 from models import Article, Version import models import json from django.http import HttpResponse, Http404 import django.db from django.db.models import Count from twitter import * from dj...
# coding: utf-8 # In[178]: import pandas as pd import numpy as np import json import urllib2 import requests request='myrequest' data = requests.get(request) json = data.json() df = pd.DataFrame(json) df = df.values import sys data_ser = np.array(sys.argv) #data['sex'] = sys.argv[1] #data['address'] = sys.argv[2]...
# 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 2014 Rackspace, 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 writin...
# Copyright (c) 2013 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 writi...
# -*- coding: ascii -*- r""" :Copyright: Copyright 2006 - 2015 Andr\xe9 Malo or his licensors, as applicable :License: 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....
"""Caching loader for the 20 newsgroups text classification dataset The description of the dataset is available on the official website at: http://people.csail.mit.edu/jrennie/20Newsgroups/ Quoting the introduction: The 20 Newsgroups data set is a collection of approximately 20,000 newsgroup documents,...
# global variables and functions for graphic display management # to be imported with #import graphicDisplayGlobalVarAndFunctions as gvf # useful links #labels and colors in networkX # https://networkx.github.io/documentation/latest/examples/drawing/labels_and_colors.html # look also at # https://www.wakari.io/shari...
from __future__ import print_function, division import numpy as np from timeit import default_timer as timer from pyscf.nao import tddft_iter class tddft_tem(tddft_iter): def __init__(self, **kw): """ Iterative TDDFT using the electostatic potential of a moving charge as perturbation. The...
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import asyncio import functools import logging import json from azure.core.exceptions import ResourceExistsError, ResourceNotFoundError from azure.core.pipeline.policie...
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals try: from itertools import zip_longest except ImportError: from itertools import izip_longest as zip_longest import django from django.db.models.sql import compiler import re NEEDS_AGGREGATES_FIX = django.VERSION[:2] < (1, 7) ...
# -*- coding: utf-8 -*- """ pygments.lexers.fortran ~~~~~~~~~~~~~~~~~~~~~~~ Lexers for Fortran languages. :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import RegexLexer, bygroups, include, words, usin...
"""Encoder for sentences withou explicit segmentation.""" from typing import Tuple, List import tensorflow as tf from typeguard import check_argument_types from neuralmonkey.encoders.recurrent import RNNCellTuple from neuralmonkey.model.parameterized import InitializerSpecs from neuralmonkey.model.model_part import ...
import oculusvr as ovr import numpy as np import pygame import pygame.locals as pgl from OpenGL.GL import * from cgkit.cgtypes import mat4, vec3, quat from ctypes import * from oculusvr import Hmd, ovrGLTexture, ovrPosef, ovrVector3f class RiftApp(): def __init__(self): ovr.Hmd.initialize() self.hmd = ovr.H...
from __future__ import absolute_import, unicode_literals from django.contrib.auth import get_user_model from django.contrib.auth.models import Permission from django.core.exceptions import ImproperlyConfigured from django.core.urlresolvers import reverse from django.test import TestCase from django.test.utils import o...
# Copyright 2012, Nachi Ueno, NTT MCL, 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 # # Unles...
""" This module provides resource management helper functions for lda server implementations. Before importing this module, several environment variables must first be set to configure the database for storing resources. The default storage implementation uses MongoDB, but this can be changed by setting the OPERATION_...
#!/usr/bin/env python # encoding: utf-8 """ Author(s): Matthew Loper See LICENCE.txt for licensing and contact information. """ __all__ = ['ProjectPoints3D', 'ProjectPoints', 'RigidTransform'] import chumpy as ch from chumpy import depends_on, Ch from cvwrap import cv2 import numpy as np import scipy.sparse as sp f...
import warnings from typing import Union, List, Iterable, Iterator, TYPE_CHECKING, Callable from typing import Optional from pathlib import Path import srsly from .. import util from .augment import dont_augment from .example import Example from ..errors import Warnings, Errors from ..tokens import DocBin, Doc from .....
#!/usr/bin/env python # # Copyright (C) 2014 Narf Industries <info@narfindustries.com> # # 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 # th...
# # Module which supports allocation of ctypes objects from shared memory # # multiprocessing/sharedctypes.py # # Copyright (c) 2007-2008, R Oudkerk --- see COPYING.txt # import sys import ctypes import weakref from multiprocessing import heap, RLock from multiprocessing.forking import assert_spawning, ForkingPickler...
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import sys import os im...
# coding: utf-8 """ DocuSign REST API The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. # noqa: E501 OpenAPI spec version: v2.1 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.gi...
# 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 2022 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 ...
# Copyright (c) 2008 Divmod. See LICENSE for details. """ Tests for the Axiom upgrade system. """ import sys, io from zope.interface import Interface from zope.interface.verify import verifyObject from twisted.trial import unittest from twisted.python import filepath from twisted.application.service import IServic...
import itertools from collections import defaultdict import numpy as np from accumulate import models class Trials(): """ Simulate and analyze 2 category accumulation designs. """ def __init__(self, l): if (l % 2) == 0: self.l = float(l) else: raise ValueError('l m...
import errno import io import os import shutil from django.core.cache import cache as default_cache, caches from django.core.cache.backends.base import InvalidCacheBackendError from django.core.files import File from django.core.urlresolvers import reverse from django.db import models from django.dispatch import recei...
"""Provide support for MuTect and other paired analysis tools.""" from distutils.version import LooseVersion import os import toolz as tz from bcbio import bam, broad, utils from bcbio.utils import file_exists, get_in, open_gzipsafe from bcbio.distributed.transaction import file_transaction from bcbio.heterogeneity ...
# 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...
"""hug/interface.py Defines the various interface hug provides to expose routes to functions Copyright (C) 2016 Timothy Edmund Crosley 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 re...
# -*- coding: utf-8 -*- """ Exception and warning classes used throughout the framework. Error: Base class, all exceptions should the subclass of this class. - NoUsername: Username is not in user-config.py, or it is invalid. - UserBlocked: Username or IP has been blocked - AutoblockUser: requested action on a ...
"""Test cases for the hosting service client support.""" from kgb import SpyAgency from reviewboard.hostingsvcs.models import HostingServiceAccount from reviewboard.hostingsvcs.service import (HostingService, HostingServiceClient, ...
# coding=utf-8 # Copyright 2022 Meta Platforms Inc. and The HuggingFace Inc. team. 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/...
from jsonrpc import ServiceProxy import sys import string # ===== BEGIN USER SETTINGS ===== # if you do not set these you will be prompted for a password for every command rpcuser = "" rpcpass = "" # ====== END USER SETTINGS ====== if rpcpass == "": access = ServiceProxy("http://127.0.0.1:8332") else: access = Ser...
#!/usr/bin/env python """ Differential evolution test program. Usage: de.py [options] Options: -h, --help Show this message and exit. -n N Number of generations in DE. [default: 20] --print-level LEVEL Print verbose level. [default: 1] """ from __future__ import print_function import os...
import re from .constants import OPERATORS, INDENT from .element import HTMLElement from . import utils class StripOuter(Exception): def __init__(self, html, *args, **kwargs): super(StripOuter, self).__init__(*args, **kwargs) self.html = html class Node(object): PARSE = True @staticmethod...
# -*- coding: utf-8 -*- """ sphinx.builders.epub ~~~~~~~~~~~~~~~~~~~~ Build epub files. Originally derived from qthelp.py. :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import os import re import time import codecs import zipfile ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # This file is part of Pysilhouette. # # Copyright (c) 2009-2010 HDE, Inc. # # 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 restrictio...
# =============================================================================== # Copyright 2014 Jake Ross # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses...
#!/usr/bin/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 required by applicable l...
#!/usr/bin/python # # Copyright 2018-2021 Polyaxon, 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 ...
# -*- coding: utf-8 -*- """ sale """ from trytond.model import fields from trytond.transaction import Transaction from trytond.pool import Pool, PoolMeta from trytond.pyson import Eval, Or, Bool __all__ = ['Sale'] __metaclass__ = PoolMeta class Sale: __name__ = 'sale.sale' channel = fields.Many2One( ...
import demistomock as demisto from CommonServerPython import * # noqa: E402 lgtm [py/polluting-import] from CommonServerUserPython import * # noqa: E402 lgtm [py/polluting-import] import requests from typing import Dict, Tuple, List, Union # Disable insecure warnings requests.packages.urllib3.disable_warnings() # ...
# Copyright (c) 2013 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 writi...
import os import sys import time import unittest from amfast.remoting.connection_manager import NotConnectedError, \ SessionAttrError, MemoryConnectionManager class ConnectionTestCase(unittest.TestCase): class TestChannel(object): def __init__(self): self.name = 'test' def setUp(self...
import yaml import os import re import shutil import subprocess from copy import deepcopy import CreateSectionTable TEST_CASE_PATTERN = { "initial condition": "UTINIT1", "SDK": "ESP32_IDF", "level": "Unit", "execution time": 0, "Test App": "UT", "auto test": "Yes", "category": "Function",...
#!/usr/bin/env python # # Copyright 2008, 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...
"""Undocumented Module""" __all__ = ['DirectGuiBase', 'DirectGuiWidget'] from panda3d.core import * from panda3d.direct import get_config_showbase from . import DirectGuiGlobals as DGG from .OnscreenText import * from .OnscreenGeom import * from .OnscreenImage import * from direct.directtools.DirectUtil import ROUND...
#!/usr/bin/env python """ sentry.utils.runner ~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import, print_function from logan.runner import run_app, configure_app import base64 import os impo...
#!/usr/bin/env python # Copyright 2015 Mirantis, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...