gt
stringclasses
1 value
context
stringlengths
2.49k
119k
import logging from decimal import Decimal from typing import Optional, List, Tuple from waitlist.storage.database import Waitlist, ShipCheckCollection, ShipCheck,\ InvType, InvGroup, MarketGroup, WaitlistGroup from waitlist.base import db from waitlist.storage import modules from waitlist.utility.constants import ...
# # Module providing the `Pool` class for managing a process pool # # multiprocessing/pool.py # # Copyright (c) 2006-2008, R Oudkerk # Licensed to PSF under a Contributor Agreement. # __all__ = ['Pool'] # # Imports # import threading import queue import itertools import collections import time from multiprocessing ...
# -*- 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...
# Copyright 2012 OpenStack Foundation # Copyright (c) 2013 Zelin.io # Copyright (C) 2015 Nippon Telegraph and Telephone Corporation. # 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 obt...
#!/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...
# -*- coding: utf-8 -*- """ requests.utils ~~~~~~~~~~~~~~ This module provides utility functions that are used within Requests that are also useful for external consumption. """ import cgi import codecs import cookielib import os import random import re import zlib import urllib from urllib2 import parse_http_list...
# 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 (t...
#!/usr/bin/env python # Data manager for reference data for the QIIME Galaxy tools import argparse import ftplib import json import os import tarfile import zipfile import requests protocol = { "unite": "http", "greengenes": "ftp", "silva": "http", "img": "ftp" } baseUrl = { "unite": "http://uni...
# -*- coding: utf-8 -*- import logging from pathlib import Path from django.conf import settings from django.contrib.auth.models import User from django.contrib.contenttypes.models import ContentType from django.core.files.storage import FileSystemStorage from django.db import models from django.utils import timezone ...
#!/usr/bin/env python2 # -*- coding: utf-8 -*- ################################################## # GNU Radio Python Flow Graph # Title: Top Block # Generated: Tue May 3 20:25:51 2016 ################################################## if __name__ == '__main__': import ctypes import sys if sys.platform.sta...
""" $url play.afreecatv.com $type live """ import logging import re from streamlink.plugin import Plugin, PluginArgument, PluginArguments, pluginmatcher from streamlink.plugin.api import validate from streamlink.stream.hls import HLSStream from streamlink.stream.hls import HLSStreamReader, HLSStreamWriter log = logg...
from __future__ import division, print_function import numpy as np from .transform import Transform from .utils import prepare as prepare_dataset __all__ = ['Fourier', 'filter'] class Fourier(Transform): def __init__(self, kx, ky, S, cellsize=25, area=None): self.kx = kx self.ky = ky se...
# Copyright 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 agreed to in...
# 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 ...
#!/usr/bin/python import re import time,logging import argparse, string,datetime,sys import afs from afs.util.AfsConfig import parseDefaultConfig from afs.util.afsutil import parseHumanWriteableSize from afs.service.OSDVolService import OSDVolService from afs.service.OSDCellService import OSDCellService from afs.servi...
#!/usr/bin/env python # # hdfhelp.py # # This code makes using odb with Clearsilver as "easy as stealing candy # from a baby". - jeske # # How to use: # # rows = tbl.fetchAllRows() # rows.hdfExport("CGI.rows", hdf_dataset) # # row = tbl.fetchRow( ('primary_key', value) ) # row.hdfExport("CGI.row", hdf_dataset) # #...
#!/usr/bin/python # -*- coding: utf-8 -*- import httplib2 as http import httplib import re from urlparse import urlparse import pprint import urllib2 class streamscrobbler: def parse_headers(self, response): headers = {} int = 0 while True: line = response.readline() ...
# -*- coding: utf-8 -*- from datetime import datetime from pandas.compat import range, lrange import operator import pytest from warnings import catch_warnings import numpy as np from pandas.core.dtypes.common import is_float_dtype from pandas import Series, Index, isnull, notnull from pandas.core.panel import Panel f...
from otp.ai.AIBaseGlobal import * from pandac.PandaModules import * from direct.distributed.ClockDelta import * from otp.avatar import DistributedAvatarAI import SuitTimings from direct.task import Task import SuitPlannerBase import SuitBase import SuitDialog import SuitDNA from direct.directnotify import DirectNotifyG...
# # Copyright 2016 Import.io # # 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, ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """Brief Summary Attributes: Google Python Style Guide: http://google-styleguide.googlecode.com/svn/trunk/pyguide.html """ __copyright__ = "Zhaoyu Luo" import argparse import random import simpy from simpy.events import AllOf import node class HDFS(node.BaseSim): ...
import code import itertools import keyword import os import sys import unicodedata from Orange.widgets import widget, gui from Orange.widgets.settings import Setting from Orange.widgets.utils import itemmodels from PyQt4 import QtGui from PyQt4.QtCore import Qt, QRegExp, QByteArray from PyQt4.QtGui import ( QText...
#!/usr/bin/env python """Implementation of condition mechanism for client-side file-finder.""" import abc import re from typing import Iterator from typing import NamedTuple from typing import Optional from typing import Pattern from grr_response_client import streaming from grr_response_core.lib.rdfvalues import cli...
""" Support for interacting with Snapcast clients. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/media_player.snapcast/ """ import logging import socket import voluptuous as vol from homeassistant.components.media_player import ( MediaPlayerDevice...
# Copyright 2008 Peter Bulychev # # This file is part of Clone Digger. # # Clone Digger 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) ...
# 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 use ...
import subprocess import contextlib import resource import tempfile import logging import signal import socket import shutil import time import glob import os import re l = logging.getLogger("tracer.qemu_runner") import angr from .tracerpov import TracerPoV from .tinycore import TinyCore try: import shellphish_q...
# Copyright 2019 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 required by ...
from warnings import warn try: from collections import OrderedDict except ImportError: from ordereddict import OrderedDict from modeltree.tree import trees SORT_DIRECTIONS = ('asc', 'desc') class Node(object): def __init__(self, facets=None, **context): self.facets = facets or [] self.tr...
import hashlib import hmac import logging import re import struct import time import uuid from base64 import urlsafe_b64encode from binascii import unhexlify from Crypto.Cipher import AES from requests import Response from requests.adapters import BaseAdapter from streamlink.exceptions import NoStreamsError from stre...
import pytest import math import time import numpy as np import numpy.linalg as la from pyctrl.block.clock import Clock, TimerClock from pyctrl.block import Map, Constant, Logger from pyctrl.block.system import TimeVaryingSystem test_ode = True try: from pyctrl.system.ode import ODE, ODEINT except: test_ode ...
#! /usr/bin/env python3.7 import logging import queue import socket import ssl import threading import time from typing import Any, Dict, List, Set PASSTHROUGH_ACTIONS = ( "PRIVMSG", "NOTICE", "USERSTATE", "GLOBALUSERSTATE", "HOSTTARGET", "CLEARCHAT", "JOIN", "PART", "MODE", "R...
# -*- 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 # # Created by: Pearu Peterson, April 2002 # __usage__ = """ Build linalg: python setup.py build Run tests if scipy is installed: python -c 'import scipy;scipy.lib.blas.test()' """ import math from numpy import array from numpy.testing import assert_equal, assert_almost_equal, \ ass...
# Copyright 2010 OpenStack Foundation # Copyright 2012 University Of Minho # Copyright 2014-2015 Red Hat, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # htt...
"""tests basic polymorphic mapper loading/saving, minimal relationships""" from sqlalchemy.test.testing import eq_, assert_raises, assert_raises_message from sqlalchemy import * from sqlalchemy.orm import * from sqlalchemy.orm import exc as orm_exc from sqlalchemy.test import Column, testing from sqlalchemy.util impor...
from __future__ import unicode_literals from threading import Timer from datetime import datetime from rtmbot.core import Plugin from utils import word_checking as wc_utils from utils.db import update_user_counts, get_user_counts from utils.utils import load_json, write_json, add_plurals import threading OPT_IN_FIL...
#!/usr/bin/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. """Checks third-party licenses for the purposes of the Android WebView build. The Android tree includes a snapshot of Chromium in orde...
# -*- coding: utf-8 -*- """ sphinxjp.themes.revealjs.directives ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :author: tell-k <ffk2005@gmail.com> :copyright: tell-k. All Rights Reserved. """ from docutils import nodes from docutils.parsers.rst import directives from docutils.parsers.rst.roles import se...
""" The ``LineEdit`` and ``MultiLineEdit`` widgets provide a way for the user to input text. .. UIExample:: 100 from flexx import app, event, ui class Example(ui.Widget): def init(self): with ui.VBox(): self.line = ui.LineEdit(placeholder_text='type here') ...
# 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 ...
# Copyright (C) 2013 Nippon Telegraph and Telephone Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
import os from collections import defaultdict from configparser import ConfigParser, _UNSET, NoSectionError, NoOptionError from functools import partial MY_DIR = os.path.dirname(__file__) def absdir(path): return os.path.abspath(os.path.join(MY_DIR, path)) # ------------------------------------------- # Subclass ...
# Copyright 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
#!/var/www/django/crm/bin/python """PILdriver, an image-processing calculator using PIL. An instance of class PILDriver is essentially a software stack machine (Polish-notation interpreter) for sequencing PIL image transformations. The state of the instance is the interpreter stack. The only method one will normally...
"""The reconciler for autodeployments. The reconciler is responsible for launching K8s jobs to deploy Kubeflow as needed and garbage collecting old instances Thid is the legacy versions which: 1. Doesn't support blueprints (i.e. uses Deployment Manager) 2. Uses K8s jobs not Tekton PipelineRuns. """ import collect...
import json import requests import time import auth import util from instance import Instance from exceptions import AlaudaServerError MAX_RETRY_NUM = 10 INSTANCE_SIZES = ['XXS', 'XS', 'S', 'M', 'L', 'XL'] class Service(object): def __init__(self, name, image_name, image_tag, target_num_instances=1, instance_s...
from datetime import datetime from django.urls import reverse from workshops.models import Person, Award, Badge, TrainingProgress, \ TrainingRequirement from workshops.tests.base import TestBase class TestTraineeDashboard(TestBase): """Tests for trainee dashboard.""" def setUp(self): self.user =...
#-*- coding: utf-8 -*- import re from django.contrib.contenttypes.models import ContentType from django.template import (Library, Node, TemplateSyntaxError, Variable, loader, RequestContext) from django.utils.safestring import mark_safe from django_comments_xtd import get_model as get_co...
import unittest import sys from unittest.test.support import LoggingResult, TestEquality ### Support code for Test_TestSuite ################################################################ class Test(object): class Foo(unittest.TestCase): def test_1(self): pass def test_2(self): pass de...
from StringIO import StringIO import pickle import sys import gc import copy from os import path from numpy.testing import * from numpy.testing.utils import _assert_valid_refcount, WarningManager from numpy.compat import asbytes, asunicode, asbytes_nested import warnings import tempfile import numpy as np if sys.versi...
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10) # [GCC 6.2.0 20161005] # Embedded file name: pipes.py """Conversion pipeline templates. The problem: ------------ Suppose you have some data that you want to convert to another format, such as...
######################################################################## # Threes! is a game by by Asher Vollmer, Greg Wohlwend, Jimmy Hinson, # # and Hidden Variable. This is created so that AI/ML strategies for # # the game can be developed and tested easier, and is not intended as # # a replacement of the origi...
#!/usr/bin/python # # Copyright (c) 2016, The OpenThread Authors. # 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 # not...
# # Kivy - Crossplatform NUI toolkit # http://kivy.org/ # import sys from copy import deepcopy import os from os.path import join, dirname, sep, exists from os import walk, environ try: from setuptools import setup except ImportError: from distutils.core import setup from distutils.extension import Extension ...
# -*- coding: utf-8 -*- """ Created on Thu Jan 14 23:32:57 2021 Author: Josef Perktold License: BSD-3 """ from statsmodels.compat.pytest import pytest_warns from statsmodels.compat.scipy import SP_LT_15 import numpy as np from numpy.testing import assert_allclose, assert_array_almost_equal import pytest from scipy ...
"""Test harness for the zipapp module.""" import io import pathlib import stat import sys import tempfile import unittest import zipapp import zipfile from unittest.mock import patch class ZipAppTest(unittest.TestCase): """Test zipapp module functionality.""" def setUp(self): tmpdir = tempfile.Temp...
import csv import requests import re from sys import argv from bs4 import BeautifulSoup import dateutil.parser from os import system from pathlib import PurePosixPath import scrape_util default_sale, base_url, prefix = scrape_util.get_market(argv) report_path_1 = 'sale_results.asp' report_path_2 = 'sale%20results/' s...
# -*- coding: utf-8 -*- from __future__ import absolute_import from distutils.version import LooseVersion from typing import Any, Optional, List, Tuple import numpy as np import scipy.sparse as sp from sklearn.multiclass import OneVsRestClassifier from eli5.sklearn.unhashing import invert_hashing_and_fit, handle_hash...
import unittest import networkx as nx import pandas as pd import numpy as np import numpy.testing as np_test from pgmpy.models import BayesianModel import pgmpy.tests.help_functions as hf from pgmpy.factors import TabularCPD class TestBaseModelCreation(unittest.TestCase): def setUp(self): self.G = Bayesia...
'''Local.py - CGAT project specific functions ============================================= The :mod:`Local` module contains various utility functions for working on CGAT projects and are very specific to the CGAT directory layout. .. note:: Methods in this module need to made to work with arbitrary project la...
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import itertools import logging import os import sys from dataclasses import dataclass from pathlib import Path from typing import Dict, Iterable, List, Mapping, Optional, Sequence, Set, T...
#!/usr/bin/env python from argparse import ArgumentParser import logging import os import shutil import subprocess import sys import tempfile import warnings import django from django import contrib from django.apps import apps from django.conf import settings from django.db import connection from django.test import T...
from __future__ import unicode_literals from django.db import models from django.contrib.postgres.fields import ArrayField, JSONField from django.contrib.postgres.search import SearchVectorField from django.contrib.postgres.indexes import GinIndex from opencivicdata.core.models.base import ( OCDBase, LinkBase...
# 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 logging from playingfield import * from lobby import Lobby class ClientStatus(Enum): """ Encapsulates the different client statuses. Author: Maximilian Hess <mail@maximilianhess.com> """ NOTCONNECTED = "notconnected" NOGAMERUNNING = "nogamerunning" PREPARATIONS = "preparations" WAITINGFOROPPONENT =...
#!/usr/bin/env python from __future__ import print_function import itertools from collections import namedtuple from textwrap import dedent # https://xkcd.com/1319/ # https://xkcd.com/1205/ TestEnvBase = namedtuple('TestEnvBase', ['python_version', 'pytest_version', 'django_...
import json from ryu.base import app_manager from ryu.app.wsgi import ControllerBase, WSGIApplication, route from webob import Response from ryu.controller import ofp_event from ryu.controller.handler import CONFIG_DISPATCHER, MAIN_DISPATCHER from ryu.controller.handler import set_ev_cls from ryu.ofproto import ofprot...
from __future__ import unicode_literals import copy import warnings from collections import OrderedDict from contextlib import contextmanager from django.apps import AppConfig from django.apps.registry import Apps, apps as global_apps from django.conf import settings from django.db import models from django.db.models...
#!/usr/bin/env python import base64 import re import logging import urllib import time from hashlib import sha1 from urlparse import parse_qs from Cookie import SimpleCookie from saml2 import server from saml2 import BINDING_HTTP_ARTIFACT from saml2 import BINDING_URI from saml2 import BINDING_PAOS from saml2 import...
# -*- coding: utf-8 -*- # Copyright (C) 2012 Yahoo! Inc. All Rights Reserved. # Copyright (C) 2013 Rackspace Hosting 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 ...
""" The :mod:`sklearn.grid_search` includes utilities to fine-tune the parameters of an estimator. """ from __future__ import print_function # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>, # Gael Varoquaux <gael.varoquaux@normalesup.org> # Andreas Mueller <amueller@ais.uni-bonn.de> # ...
# Copyright (c) 2016 MetPy Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause """Create Station-model plots.""" from enum import Enum import numpy as np from .wx_symbols import (current_weather, high_clouds, low_clouds, mid_clouds, ...
""" Copyright 2015 Logvinenko Maksim 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, softw...
# Copyright (C) 2013 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 ...
#!/usr/bin/env python # Copyright 2015 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 ...
from __future__ import print_function, division from sympy.core import Add, S, sympify, oo, pi, Dummy from sympy.core.function import Function, ArgumentIndexError from sympy.core.numbers import Rational from sympy.core.power import Pow from sympy.core.compatibility import range from .zeta_functions import zeta from .e...
# Alpha O. Sall # 03/24/2014 from flask import Flask, request, Response, render_template app = Flask(__name__)#,template_folder='/var/www/inkscope/inkscopeAdm/') import requests from array import * import sys from urllib2 import HTTPError import json from bson.json_util import dumps import time import mongoJuiceCore ...
# Software License Agreement (BSD License) # # Copyright (c) 2008, Willow Garage, 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 2017 Google Inc. and Skytruth 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 agr...
#!/usr/bin/python # Copyright 2012 Red Hat # # 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...
""" Open compressed files transparently. """ __all__ = ["xopen", "PipedGzipWriter", "PipedGzipReader", "__version__"] import gzip import sys import io import os import bz2 import time import stat import signal import pathlib import subprocess import tempfile from abc import ABC, abstractmethod from subprocess import ...
"""The tests for the Rfxtrx sensor platform.""" import unittest import pytest from homeassistant.components import rfxtrx as rfxtrx_core from homeassistant.const import TEMP_CELSIUS from homeassistant.setup import setup_component from tests.common import get_test_home_assistant, mock_component @pytest.mark.skipif(...
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import absolute_import, division, print_function import os import copy import yaml import numpy as np from fermipy import utils def get_function_par_names(name): """Get the list of parameters associated with a function. Parameter...
import PDB, Common, string, sys, os def addResidueToResidueList(curr_residue_list, curr_res_num, curr_res_name, curr_atom_list): if Common.debug: print "Adding atoms to residue '%s' %s: %s" % ( \ curr_res_name, curr_res_num, map(lambda x: x.getName(), curr_atom_list)) ...
#!/usr/bin/env python """Demo of the most fundamental Tkinter and Pmw widgets""" from Tkinter import * import tkMessageBox, tkFileDialog, tkColorChooser import Pmw import string, sys, os class InputFields: """ Demonstrate typical widgets for input data: entry, slider, option menu, checkbutton, radiobuttons...
import time import datetime import re import urllib import subprocess import os import urlparse import random import pytz import requests from slugify import slugify from django.core.handlers.wsgi import WSGIRequest from django.conf import settings from django.core.paginator import Paginator, EmptyPage, PageNotAnInte...
#!/usr/bin/env python __description__ = 'Tool to test a PDF file' __author__ = 'Didier Stevens' __version__ = '0.2.4' __date__ = '2018/01/29' """ Tool to test a PDF file Source code put in public domain by Didier Stevens, no Copyright https://DidierStevens.com Use at your own risk History: 2009/03/27: start 200...
""" Ax_Metrics - Test io.emfetch 'http' plugin ------------------------------------------------------------------------------ Author: Dan Kamins <dos at axonchisel dot net> Copyright (c) 2014 Dan Kamins, AxonChisel.net """ # ---------------------------------------------------------------------------- import pytest...
# Copyright 2013 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
# These classes implement a doctest runner plugin for nose, a "known failure" # error class, and a customized TestProgram for NumPy. # Because this module imports nose directly, it should not # be used except by nosetester.py to avoid a general NumPy # dependency on nose. from __future__ import division, absolute_impo...
#! /usr/bin/env python # -*- coding: utf-8 -*- #///////////////////////////////////////////////////////////////////////////////////////// #///////////////////////////////////////////////////////////////////////////////////////// # Plex Server Manager by RogueProeliator <rp@rogueproeliator.com> # See plugin.py for more...
from sqlalchemy.testing import eq_, assert_raises, \ assert_raises_message, ne_ import sys import time import threading from sqlalchemy.testing.engines import testing_engine from sqlalchemy import create_engine, MetaData, INT, VARCHAR, Sequence, \ select, Integer, String, func, text, exc from sqlalchemy.testing...
import asyncio import http.cookies import io import json import mimetypes import os import sys import traceback import urllib.parse import warnings import chardet from aio2py.required import aiohttp from aio2py.required.aiohttp import hdrs, helpers, streams from .log import client_logger from .streams import EOF_MAR...
# 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 ...
"""The tests for the MQTT JSON light platform. Configuration with RGB, brightness, color temp, effect, white value and XY: light: platform: mqtt_json name: mqtt_json_light_1 state_topic: "home/rgb1" command_topic: "home/rgb1/set" brightness: true color_temp: true effect: true rgb: true white_value: ...
# coding: utf-8 """ jinja2schema.visitors.expr ~~~~~~~~~~~~~~~~~~~~~~~~~~ Expression is an instance of :class:`jinja2.nodes.Expr`. Expression visitors return a tuple which contains expression type and expression structure. """ import functools from jinja2 import nodes from ..model import Scalar, Dictionary, List, Un...
# Copyright 2016 Capital One Services, 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 agreed to in...
# Threshold functions import os import cv2 import math import numpy as np from matplotlib import pyplot as plt from plantcv.plantcv import fatal_error from plantcv.plantcv import params from skimage.feature import greycomatrix, greycoprops from scipy.ndimage import generic_filter from plantcv.plantcv._debug import _de...
import numpy as np from scipy.sparse import issparse from scipy.sparse import coo_matrix from scipy.sparse import csc_matrix from scipy.sparse import csr_matrix from scipy.sparse import dok_matrix from scipy.sparse import lil_matrix from sklearn.utils.multiclass import type_of_target from sklearn.utils.testing impor...