gt
stringclasses
1 value
context
stringlengths
2.49k
119k
import itertools from numba.core import types from numba.core.typeconv.typeconv import TypeManager, TypeCastingRules from numba.core.typeconv import rules from numba.core.typeconv import castgraph, Conversion import unittest class CompatibilityTestMixin(unittest.TestCase): def check_number_compatibility(self, c...
# -*- coding: utf-8 -*- from flask import abort, url_for, flash, redirect, g, session, render_template, request from coaster.utils import valid_username from coaster.views import get_next_url from baseframe import _, csrf from baseframe.signals import exception_catchall from lastuser_core import login_registry from la...
import os import random import pickle import math import tensorflow as tf import cv2 import numpy as np import matplotlib.pyplot as plt def random_crop(src, size): height = src.shape[0] width = src.shape[1] max_right = width - size[0] - 1 max_bottom = height - size[1] - 1 x = random.randint(0, ...
# 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 urllib from urlparse import urlparse, urlunparse, urlsplit import sys import os import re import mimetypes import warnings try: from cStringIO import StringIO except ImportError: from StringIO import StringIO from django.conf import settings from django.contrib.auth import authenticate, login from djang...
# Copyright 2013-2015 MongoDB, 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...
import six import logging from .base import AbstractCombinedNode from datetime import timedelta, datetime from ebu_tt_live.bindings._ebuttdt import LimitedClockTimingType, FullClockTimingType from ebu_tt_live.bindings import _ebuttm as metadata from ebu_tt_live.documents import EBUTT3Document from ebu_tt_live.bindings...
"""Basic feedforward networks. """ from functools import partial, wraps; import yaml; import numpy as np; import tensorflow as tf; from .utils import get_randn_variable, get_zeros_variable, init_uninit; __all__ = ['FullyConnectedModel', 'Model'] _IDENT_NAMES = set(['ident', 'identity', 'linear']); def get_activat...
""" Match segments -------------- Performs a diffs using a tree of matchable segments in order to remain robust to content moves. This module supports the use of a custom :class:`~deltas.segmenters.Segmenter`. .. automethod:: deltas.algorithms.segment_matcher.diff .. automethod:: deltas.algorithms.segment_matcher.d...
#!/usr/bin/env python # # Copyright (c) 2012 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. """Provides a convenient wrapper for spawning a test lighttpd instance. Usage: lighttpd_server PATH_TO_DOC_ROOT """ import co...
import os; import time; import zipfile import shutil import traceback Dev = r"..\dev" #relative to build.py Release = r"..\release" #relative to build.py PathToMonk = r"Jagent\Monk.jar" #relative to build.py Readme = "readme.txt" #relative to dev Versionfile = "version.txt" #relative to build.py FileTyp...
""" Copyright (c) 2009, Horst Gutmann 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 following...
# 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...
# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2015, ARM Limited and contributors. # # 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 # # ...
from ruamel import yaml import great_expectations as ge from great_expectations.core.batch import BatchRequest context = ge.get_context() # YAML datasource_yaml = r""" name: taxi_datasource class_name: Datasource module_name: great_expectations.datasource execution_engine: module_name: great_expectations.execution...
"""Function signature objects for callables Back port of Python 3.3's function signature tools from the inspect module, modified to be compatible with Python 2.6, 2.7 and 3.2+. """ #----------------------------------------------------------------------------- # Python 3.3 stdlib inspect.py is public domain # # Bac...
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin from future.moves.urllib.parse import urljoin, urlparse import logging import os import posixpath import time from functools import partial from collections import namedtuple fr...
""" Class to set-up the configuration used throughout Drupdates """ import os, yaml, sys, json, copy from os.path import expanduser try: import argparse ARG_LOADED = True except ImportError: # Python 2.6 from optparse import OptionParser ARG_LOADED = False class DrupdatesError(Exception): """ P...
""" Manage pushing and pulling files from an object store like Amazon Web Services S3. """ # pylint: disable=redefined-builtin import abc import collections import os import re import subprocess import sys import time import zlib try: import azure from azure import storage as azure_storage except ImportError:...
from os.path import join import tensorflow_hub as hub import tensorflow as tf import numpy as np import pytest from os import environ from pliers.tests.utils import get_test_data_path from pliers import config from pliers.extractors import (TensorFlowKerasApplicationExtractor, TFHubExtrac...
#!/usr/bin/env python from groupflow_shared import * from mininet.net import * from mininet.node import OVSSwitch, UserSwitch from mininet.link import TCLink from mininet.log import setLogLevel from mininet.cli import CLI from mininet.node import Node, RemoteController from scipy.stats import truncnorm from numpy.rando...
import collections import os import os.path import random import re import shlex import subprocess import sys import tempfile import time import traceback import pipes import pexpect print_log_names = False real_stdout = sys.stdout # Note that gdb comes with its own testsuite. I was unable to figure out how to # run...
# -*- coding: utf-8 -*- """ Asynchronous Task Execution - falls back to Synchronous if no workers are alive Worker nodes won't run on Win32 yet. To run a worker node: python web2py.py -K eden NB Need WEB2PY_PATH environment variable to be defined (e.g. /etc/profile) Tasks need to...
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains t...
# -*- coding: utf-8 -*- """This file contains a basic Skype SQLite parser.""" import logging from plaso.events import time_events from plaso.parsers import sqlite from plaso.parsers.sqlite_plugins import interface __author__ = 'Joaquin Moreno Garijo (bastionado@gmail.com)' class SkypeChatEvent(time_events.PosixTi...
## @file # This file is used to define common items of class object # # Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR> # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The f...
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
#! /usr/bin/env python """ Logfile tailer for rotated log files. Supports 2 operating modes: classic, rotated. Assumes that: . All log files reside in the same directory. . We can find last log file by sorting the file list alphabetically. In classic mode: . When log is switched, the tailer continues tailing from th...
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from django.views.generic import ListView, TemplateView, FormView, View from django.views.generic.edit import CreateView, UpdateView, DeleteView from django.views.generic.detail import DetailView from django.contrib.auth.deco...
# This code was mostly based on ipaddr-py # Copyright 2007 Google Inc. http://code.google.com/p/ipaddr-py/ # Licensed under the Apache License, Version 2.0 (the "License"). from django.core.exceptions import ValidationError from django.utils.six.moves import xrange def clean_ipv6_address(ip_str, unpack_ipv4=False, ...
#Minecraft Ordance Survey Sat Nav #www.stuffaboutcode.com #Martin O'Hanlon import urllib, urllib2 import json import mcpi.minecraft as minecraft import mcpi.block as block import mcpi.minecraftstuff as minecraftstuff import time import cmd from math import floor from OSConversion import * #MapQuest API Key MAPQUESTAP...
# python 3 headers, required if submitting to Ansible from __future__ import (absolute_import, division, print_function) import os __metaclass__ = type DOCUMENTATION = """ lookup: sas_license author: Chris Lyunch <Chris.Lynch@sas.com> version_added: "2.4.2" short_description: read a Viy...
from __future__ import division from struct import unpack from datetime import datetime from niprov.basefile import BaseFile class NeuroscanFile(BaseFile): """ Support for the Neuroscan .cnt format. """ _datatypes = {'char':1, 'uchar':1, 'long':4,'ulong':4,'short':2,'ushort':2, 'float':4, 'double...
# Copyright 2018 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 sys import numpy as np from scipy import stats #from scikits.statsmodels.iolib.table import SimpleTable from scikits.statsmodels.iolib.table import SimpleTable def _kurtosis(a): '''wrapper for scipy.stats.kurtosis that returns nan instead of raising Error missing options ''' try: res =...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from textwrap import dedent import unittest as ut import hoep as h class _IgnoreParagraph(h.Hoep): def paragraph(self, text): return text class BlockRenderer(h.Hoep): def block_code(self, text, language): return '[BLOCK_CODE ...
# Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org) # # 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, this list of conditions and...
from configuration.cache import get_configuration from django.core.exceptions import PermissionDenied from django.core.urlresolvers import reverse from django.test.client import RequestFactory from unittest.mock import patch from accounts.tests.test_models import create_new_user from configuration.configuration import...
# -*- coding: utf-8 -*- from south.utils import datetime_utils as 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 'GroupResolution.status' db.add_column( 'sentry...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ client.py --------- TxTrader Client module - Expose class API as user interface. Copyright (c) 2015 Reliance Systems Inc. <mkrueger@rstms.net> Licensed under the MIT license. See LICENSE for details. """ import os import sys import requests from types imp...
from psycopg2.extras import Inet from django.conf import settings from django.db.backends.base.operations import BaseDatabaseOperations class DatabaseOperations(BaseDatabaseOperations): def unification_cast_sql(self, output_field): internal_type = output_field.get_internal_type() if internal_type...
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
import logging import claripy import archinfo from .sim_type import SimTypeChar from .sim_type import SimTypePointer from .sim_type import SimTypeFixedSizeArray from .sim_type import SimTypeArray from .sim_type import SimTypeString from .sim_type import SimTypeFunction from .sim_type import SimTypeFloat from .sim_typ...
"""The tests for the group cover platform.""" from datetime import timedelta import pytest from homeassistant.components.cover import ( ATTR_CURRENT_POSITION, ATTR_CURRENT_TILT_POSITION, ATTR_POSITION, ATTR_TILT_POSITION, DOMAIN, ) from homeassistant.components.group.cover import DEFAULT_NAME from...
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
#!/usr/bin/env python # # Copyright 2014 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
# Human friendly input/output in Python. # # Author: Peter Odding <peter@peterodding.com> # Last Change: December 1, 2020 # URL: https://humanfriendly.readthedocs.io """ Simple text manipulation functions. The :mod:`~humanfriendly.text` module contains simple functions to manipulate text: - The :func:`concatenate()`...
#solve sokoban import sys, time import SokoMap, HashTable import os # Manhattan Distance between two points def manDistance(a, b): return abs(a[0]-b[0]) + abs(a[1]-b[1]) def precomputeDistances(sm): """Distances from any square to any other square. Used for minmatching""" imap = sm.getMap() d...
from setup.linux.installer import Installer from setup.linux import setup_util from benchmark import framework_test from benchmark.test_types import * from utils import header from utils import gather_tests from utils import gather_frameworks from utils import verify_database_connections import os import shutil impor...
# # Copyright 2017 CNIT - Consorzio Nazionale Interuniversitario per le Telecomunicazioni # # 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/LICE...
#!/usr/bin/python """ Copyright 2017-2018 University of Cincinnati All rights reserved. See LICENSE file at: https://github.com/AS4SR/website Additional copyright may be held by others, as reflected in the commit history. """ import os import sys import shutil # # create "verticalmenubar.part" as verticalmenubar_str ...
# -*- coding: utf-8 -*- from django.db import models from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ from permabots.models.base import PermabotsModel from permabots.models import Bot, Response from jinja2 import Environment import requests from djang...
#!/usr/bin/env python """ #!/usr/bin/env python Created on Fri Sep 16 23:28:53 2016 @author: dennis """ import rospy from mavros_msgs.msg import State, AttitudeTarget, PositionTarget, AvoidanceTriplet from nav_msgs.msg import Odometry from geometry_msgs.msg import PoseStamped, TwistStamped, Vector3Stamped, Quaternion...
import os from collections import OrderedDict from corpustools.acousticsim.io import load_path_mapping from corpustools.exceptions import PCTPythonError try: real_acousticsim = True from acousticsim.main import(acoustic_similarity_mapping, acoustic_similarity_directories, ...
import json import logging import re import threading import time from urllib.parse import unquote_plus, urlparse import websocket from streamlink.plugin import Plugin, PluginArgument, PluginArguments from streamlink.plugin.api import useragents from streamlink.stream import HLSStream _log = logging.getLogger(__name...
import yaml import subprocess import argparse import os vm_host = os.environ.get('VM_HOST') vm_key = os.environ.get('VM_KEY') esxi_datastore_folder = "/vmfs/volumes/datastore1" parser = argparse.ArgumentParser(description='ESXi automation.') parser.add_argument('-v', '--verbose', action="store_true", help='show prog...
from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import ( compat_HTTPError, compat_urllib_request, compat_urlparse, ) from ..utils import ( determine_ext, extract_attributes, ExtractorError, float_or_none, int_or_none, sanitized_Requ...
import configparser import os import shutil import stat from binascii import unhexlify from collections import namedtuple import msgpack from .logger import create_logger logger = create_logger() from .constants import CACHE_README from .hashindex import ChunkIndex, ChunkIndexEntry from .helpers import Location fro...
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
# -*- coding: utf-8 -*- """Forms related to accounts management.""" from __future__ import unicode_literals from collections import OrderedDict from functools import reduce from django import forms from django.conf import settings from django.contrib.auth import password_validation from django.http import QueryDict...
#!/usr/bin/env python """A deserializer that decodes EE object trees from JSON DAGs.""" # Using lowercase function naming to match the JavaScript names. # pylint: disable=g-bad-name # pylint: disable=g-bad-import-order import json import numbers import six from . import apifunction from . import computedobject fro...
# 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 the...
# Copyright 2016 Huawei Technologies India Pvt. Ltd. # All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
import datetime from dateutil.relativedelta import relativedelta from six.moves.urllib.parse import urlencode from django.contrib.auth.models import Permission from django.core.urlresolvers import reverse from django.test import TestCase from timepiece import utils from timepiece.tests.base import ViewTestMixin from...
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # this file is part of 'RAX-AutoScaler' # # Copyright 2014 Rackspace US, 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 obta...
import mock import pytest from urlparse import urlparse from addons.wiki.tests.factories import NodeWikiFactory 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...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2003-2010 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://trac.edgewall.org/wiki/TracLicense. #...
# # test_multibytecodec.py # Unit test for multibytecodec itself # from test import support from test.support import TESTFN import unittest, io, codecs, sys, os import _multibytecodec ALL_CJKENCODINGS = [ # _codecs_cn 'gb2312', 'gbk', 'gb18030', 'hz', # _codecs_hk 'big5hkscs', # _codecs_jp 'cp932', 'shi...
from __future__ import absolute_import, division, unicode_literals from pip._vendor.six import text_type from ..constants import scopingElements, tableInsertModeElements, namespaces # The scope markers are inserted when entering object elements, # marquees, table cells, and table captions, and are used to prevent for...
""" Tools for visualizing dependencies between Terms. """ from __future__ import unicode_literals from contextlib import contextmanager import errno from functools import partial from io import BytesIO from subprocess import Popen, PIPE from networkx import topological_sort from six import iteritems from zipline.pip...
import numpy import numpy.ma import cpgReport from CGATReport.odict import OrderedDict as odict ########################################################################## class Annotations(cpgReport.cpgTracker): """Base class for trackers getting info from the annotations tables. Derived Trackers should de...
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2016 Red Hat, Inc. # # This file is part of Ansible # # Ansible 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 #...
# -*- coding: utf-8 -*- # Copyright 2020 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...
#!/usr/bin/env python """ Copyright 2009 Richard Quirk 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...
import http.server import os import re import config as cfg from sequencePlaylist import SequencePlaylist if not cfg.NO_PI: from neopixelSequencePlayer import NeopixelSequencePlayer from sequence import Sequence from sequencePlayerWindow import SequencePlayerWindow if cfg.REQUIRES_AUTH or cfg.USE_ADMIN_AUTH: ...
# 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...
from __future__ import print_function import matplotlib.pyplot as plt import numpy as np import os import sys import tarfile import tensorflow as tf from IPython.display import display, Image from scipy import ndimage from sklearn.linear_model import LogisticRegression from six.moves.urllib.request import urlretrieve f...
# coding: utf-8 from __future__ import unicode_literals import itertools import re import random from .common import InfoExtractor from ..compat import ( compat_parse_qs, compat_str, compat_urllib_parse_urlencode, compat_urllib_parse_urlparse, compat_urlparse, ) from ..utils import ( Extractor...
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
"""Utility functions for working with great_expectations within jupyter notebooks or jupyter lab. """ import logging import sys from datetime import datetime import pandas as pd import tzlocal from IPython.core.display import HTML, display from packaging import version pd.set_option("display.max_rows", None) pd.set_...
#!/usr/bin/env python3 """ @name: Pyhouse.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2010-2020 by D. Brian Kimmel @note: Created on Mar 1, 2014 @license: MIT License @summary: This is the core of the PyHouse daemon. Permission is hereby granted, free of charge,...
# -*- coding: utf-8 -*- ''' Payment Gateway Transaction :copyright: (c) 2013-2014 by Openlabs Technologies & Consulting (P) Ltd. :license: BSD, see LICENSE for more details ''' from trytond.pool import PoolMeta, Pool from trytond.pyson import Eval from trytond.model import fields from .beanstream_api im...
from django.core.management.base import BaseCommand, CommandError import sys import logging import signal from collect.models import Collection, Tweet from django.conf import settings import operator import json from nltk import bigrams from collections import Counter import re from collections import defaultdict from...
""" Over the application Model, queries to the database """ import datetime import logging from sqlalchemy.orm import Session, joinedload import tools from model import MachineInterface, Machine, MachineDisk, \ Schedule, ScheduleRoles, LifecycleIgnition, LifecycleCoreosInstall, LifecycleRolling from smartdb impo...
# Copyright 2011 OpenStack Foundation # Copyright 2012 Justin Santa Barbara # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #...
# -*- coding: utf-8 -*- # Copyright (C) Vincent BESANCON <besancon.vincent@gmail.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 # the...
#!/usr/bin/env python """ @package mi.dataset.parser.test.test_phsen @file marine-integrations/mi/dataset/parser/test/test_phsen.py @author Emily Hahn @brief Test code for a Phsen data parser """ import os from nose.plugins.attrib import attr from mi.core.log import get_logger ; log = get_logger() from mi.dataset.te...
# tr_mongo_search.py chromatic universe 2018 william k. johnson import datetime from datetime import datetime , timedelta from io import StringIO import sys import time import json import os import pprint import sys from time import sleep , strptime import tornado.websocket import tornado.httpserver import coll...
""" Printing tools. """ import sys from typing import ( Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Sized, Tuple, TypeVar, Union, ) from pandas._config import get_option from pandas.core.dtypes.inference import is_sequence EscapeChars = Union[Map...
# -*- 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 """ Copyright 2015 SmartBear Software 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...
''' pydevd - a debugging daemon This is the daemon you launch for python remote debugging. Protocol: each command has a format: id\tsequence-num\ttext id: protocol command number sequence-num: each request has a sequence number. Sequence numbers originating at the debugger are odd, sequence numbers ori...
#!/usr/bin/env python # PythonJS to Dart Translator # by Brett Hartshorn - copyright 2013 # License: "New BSD" import sys import ast import pythonjs class TransformSuperCalls( ast.NodeVisitor ): def __init__(self, node, class_names): self._class_names = class_names self.visit(node) def visit_Call(self, node): ...
# coding: utf-8 # # Copyright 2015 The Oppia 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 requi...
from functools import wraps from contextlib import AbstractContextManager, ExitStack, contextmanager from abc import ABC, abstractmethod from enum import Enum from operator import * from funklib.core.prelude import flip, const from functools import wraps,partial from collections import namedtuple def from_context(cm)...
from base64 import b64encode import json import logging import os import re import shutil import sys import requests from requests.compat import urljoin import wandb try: from IPython.core.getipython import get_ipython from IPython.core.magic import line_cell_magic, Magics, magics_class from IPython.core....
from __future__ import division, print_function, absolute_import import time import numpy as np from scipy.sparse.linalg import LinearOperator from .._differentiable_functions import VectorFunction from .._constraints import ( NonlinearConstraint, LinearConstraint, PreparedConstraint, strict_bounds) from .._hessian...
"""Support for Z-Wave door locks.""" import logging import voluptuous as vol from homeassistant.core import callback from homeassistant.components.lock import DOMAIN, LockDevice from homeassistant.components import zwave from homeassistant.helpers.dispatcher import async_dispatcher_connect import homeassistant.helper...
""" Base class for Level Editor You should write your own LevelEditor class inheriting this. Refer LevelEditor.py for example. """ from direct.showbase.DirectObject import * from direct.directtools.DirectUtil import * from direct.gui.DirectGui import * from .CurveEditor import * from .FileMgr import * from .ActionMg...