gt
stringclasses
1 value
context
stringlengths
2.49k
119k
#!/usr/bin/env python ''' Application manager. Responsible for starting the service, performing db migrations, testing. ''' import os basedir = os.path.abspath(os.path.dirname(__file__)) COV = None if os.environ.get('FLASK_COVERAGE'): import coverage COV = coverage.coverage(branch=True,include=basedir + '/app...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals from unittest import TestCase try: import numpy as np from scipy.sparse import csr_matrix except ImportError: pass from jubakit.classifier import Schema, Dataset, Classifier, Config from jubakit.compat i...
# Copyright (c) 2011 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
#! /usr/bin/python3 __author__ = 'huanpc' import asyncio import http.client from aiohttp import web import logging import sys import cloudAMPQclient import influxdb_client from prometheus_export import PrometheusClient import os PROTOCOL = 'http' HOST = '0.0.0.0' PORT = 9090 M2M_HOST = '127.0.0.1' if os.enviro...
import pymongo from . import _connector class Connector( _connector.Connector, ): name = 'mongo' def __init__( self, mongodb_uri, ): super().__init__() self.mongodb_uri = mongodb_uri self.connection = pymongo.MongoClient( host=mongodb_uri, ...
from browser import document, html, window import markdown import highlight def escape(html): html = html.replace('<', '&lt;') html = html.replace('>', '&gt;') return html def _keydown(ev, path, zone, page): if ev.keyCode in [39, 40]: # key right or down : next page show(path, zone, pag...
""" Helper methods for generating k8s API objects. """ from kubernetes.client.models.v1_pod import V1Pod from kubernetes.client.models.v1_pod_spec import V1PodSpec from kubernetes.client.models.v1_object_meta import V1ObjectMeta from kubernetes.client.models.v1_pod_security_context import V1PodSecurityContext from kub...
# -*- coding: utf-8 -*- from tests.unit.twiml import TwilioTest from twilio.twiml.voice_response import VoiceResponse, Dial, Enqueue, Gather class TestResponse(TwilioTest): def test_empty_response(self): r = VoiceResponse() assert (self.strip(r) == '<?xml version="1.0" encoding="UTF-8"?><Response...
import random import unittest from approvaltests.approvals import verify from Infrastructure.MobberManager import MobberManager class TestsMobberManager(unittest.TestCase): def test_empty_mobber_manager_has_no_items(self): mobber_manager = MobberManager() self.assertEqual(mobber_manager.mobber_cou...
#!/usr/bin/env python EMC_VERSION = '1.51py' STENCIL = 3 # or 5 # ################################################################################################### # # STENCILS for finite difference # # three-point stencil st3 = [] st3.append([0.0, 0.0, 0.0]); # 0 st3.append([-1.0, 0.0, 0.0]); st3.append([1.0, ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Calibrate camera using checkerboard pattern @author: Kevin Middleton Based on: https://github.com/ying17zi/gopro-undistort and Off-line camera calibration Author: Leow Wee Kheng Department of Computer Science, National University of Singapore ...
#!/usr/bin/env python # Copyright 2016 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. """A script to keep track of devices across builds and report state.""" import argparse import json import logging import os import re...
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import errno import ...
# -*- coding: utf-8 -*- import os from babelfish import Language, language_converters import pytest from vcr import VCR from subliminal.providers.tvsubtitles import TVsubtitlesProvider, TVsubtitlesSubtitle vcr = VCR(path_transformer=lambda path: path + '.yaml', record_mode=os.environ.get('VCR_RECORD_MODE'...
import base64 import random import os import errno # Empire imports from lib.common import helpers from lib.common import agents from lib.common import encryption from lib.common import packets from lib.common import messages class Listener: def __init__(self, mainMenu, params=[]): self.info = { ...
# vi: ts=4 sw=4 ''' :mod:`ophyd.controls.cas.motor` - CAS motors ================================================== .. module:: ophyd.controls.cas.motor :synopsis: Epics motor-record simulation using the ophyd Channel Access Server ''' from __future__ import print_function from .pv import CasRecord ...
# -*- coding: utf-8 -*- from urlparse import urlparse, parse_qsl import gmusicapi from gmusicapi.clients.shared import _Base from gmusicapi.protocol import webclient from gmusicapi.utils import utils import gmusicapi.session class Webclient(_Base): """Allows library management and streaming by posing as the ...
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
from __future__ import print_function, division, absolute_import import io import os from toolz import merge from warnings import warn from .compression import seekable_files, files as compress_files from .utils import SeekableFile from ..compatibility import PY2, unicode from ..base import tokenize from ..delayed i...
import socket import os import threading import ssl import OpenSSL import pytest from unittest import mock from mitmproxy import connections from mitmproxy import exceptions from mitmproxy.net import tcp from mitmproxy.net.http import http1 from mitmproxy.test import tflow from mitmproxy.test import tutils from .net i...
# -*- coding: UTF-8 -*- import magento from collections import defaultdict import logbook from trytond.model import ModelSQL, ModelView, fields from trytond.transaction import Transaction from trytond.pool import PoolMeta, Pool from trytond.pyson import Eval from decimal import Decimal __all__ = [ 'Category', 'M...
# Python Imports import threading import Queue import sys import optparse import struct import socket import os # Project Imports import messages import proto.messages_robocup_ssl_wrapper_pb2 as ssl_wrapper # Library Imports import pyinotify X_SHIFT = 121.92; Y_SHIFT = 121.92/2.0; SCALE = 0.1; class FieldUpdateCon...
#!/usr/bin/python # # Copyright (c) 2011 The Bitcoin developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # import time import json import pprint import hashlib import struct import re import base64 import httplib import...
#!/usr/bin/env python ################ # @file maskBadOverscans.py # @author Douglas Applegate # @date 2/14/07 (Vday - what a lame day) # # @brief Checks the overscan region of an image # for electron bleedthrough from an image obj (ie star) # near the edge. Creates a mask with the appropriate row elim...
""" Test fixture for hybrid recommendations. """ import datetime as dt import nose.tools import barbante.context as ctx import barbante.maintenance.product_templates as pt import barbante.maintenance.product_templates_tfidf as pt_tfidf import barbante.maintenance.user_templates as ut from barbante.recommendation.test...
# 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 ...
# coding: utf-8 # Copyright (c) 2013 Jorge Javier Araya Navarro <jorgean@lavabit.org> # # This file is free software: you may copy, redistribute 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...
""" PureMVC Python Port by Toby de Havilland <toby.de.havilland@puremvc.org> PureMVC - Copyright(c) 2006-08 Futurescale, Inc., Some rights reserved. Your reuse is governed by the Creative Commons Attribution 3.0 License """ import puremvc.core import puremvc.interfaces import puremvc.patterns.observer class Fac...
"""Prepares a distribution for installation """ # The following comment should be removed at some point in the future. # mypy: strict-optional=False import logging import mimetypes import os import shutil from typing import Dict, Iterable, List, Optional from pip._vendor.packaging.utils import canonicalize_name fro...
#!/usr/bin/env python2 # -*- coding: utf-8 -*- ################################################## # GNU Radio Python Flow Graph # Title: Tx Scram Sock # Generated: Wed May 24 01:08:49 2017 ################################################## from gnuradio import blocks from gnuradio import digital from gnuradio import e...
"""Test pi_hole component.""" import logging from hole.exceptions import HoleError from homeassistant.components import pi_hole, switch from homeassistant.components.pi_hole.const import ( CONF_LOCATION, DEFAULT_LOCATION, DEFAULT_NAME, DEFAULT_SSL, DEFAULT_VERIFY_SSL, SERVICE_DISABLE, SERV...
# 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 ...
#!/usr/bin/python # Copyright (c) 2009, Purdue University # 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 ...
# Copyright 2015 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 or agreed to in writing, ...
import django from django.db import transaction as django_transaction from django.db import connection try: from django.db import DEFAULT_DB_ALIAS except: DEFUALT_DB_ALIAS = None from johnny.decorators import wraps, available_attrs class TransactionManager(object): """ TransactionManager is a wrapper...
# 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...
# 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 th...
import json import logging import time from threading import Event, Lock, Thread import os import re import cook class ProgressUpdater(object): """This class is responsible for sending progress updates to the scheduler. It throttles the rate at which progress updates are sent. """ def __init__(self...
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
# Copyright 2010-2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
#!/usr/bin/env python # coding=utf-8 import re import inspect import types import log # key: function, value: boolean -- has return statement? __has_return_statement = {} def __function_has_return_statement(function): """Helper function, checks if a function given as a parameter has a return statement. Ret...
"""Test config validators.""" from collections import OrderedDict from datetime import timedelta, datetime, date import enum import os from socket import _GLOBAL_DEFAULT_TIMEOUT from unittest.mock import Mock, patch import pytest import voluptuous as vol import homeassistant.helpers.config_validation as cv from test...
# # 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 # ...
# pylint: disable=no-member, invalid-name, redefined-outer-name, too-many-function-args import importlib from collections import OrderedDict import numpy as np import pytest from ... import from_pystan from ...data.io_pystan import get_draws, get_draws_stan3 # pylint: disable=unused-import from ..helpers import ( ...
#------------------------------------------------------------------------------- # Name: dkutils.py #------------------------------------------------------------------------------- from __future__ import with_statement __author__ = "Travis Goldie" __email__ = "test_automation@us.sios.com" __date__ = "11/14/12...
#!/usr/bin/python # Copyright 2014 Brno University of Technology (author: Karel Vesely) # 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 # # TH...
from os.path import basename from django import forms from django.conf import settings from django.utils.translation import ugettext_lazy as _ from djangopypi.settings import settings from djangopypi.models import Package, Classifier, Release, Distribution class SimplePackageSearchForm(forms.Form): query = for...
import ast import sys import csv import datetime import os import unittest import subprocess import pandas as pd import numpy as np import h5py from pymongo import MongoClient from fluxpy import __path__ as fluxpy_module_path from fluxpy import DB from fluxpy.models import KrigedXCO2Matrix, SpatioTemporalMatrix, XCO2Ma...
# Copyright 2011 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
# # Copyright (c) 2008-2015 Citrix Systems, 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 l...
""" Generic MDP Pathway Module """ import numpy, math, scipy.stats class MDP_Pathway: def __init__(self, policy_length): self.policy_length = policy_length self.events = [] self.metadata = {} self.ID_number = 0 #information on the policy which was used when this pathway w...
#!/usr/bin/env python import os import re import sys import time import subprocess import os import yaml import sys, time import operator import random from collections import defaultdict from operator import itemgetter def parse_entry(e): return {'id': e[0], 'address':e[1], 'flags':e[2].split(','), 'slaveof':e[3],...
# 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...
''' experiment.py: part of expfactory package Functions to work with javascript experiments ''' from expfactory.utils import find_directories, remove_unicode_dict from glob import glob import filecmp import numpy import json import re import os def get_validation_fields(): '''get_validation_fields Returns a...
#!/usr/bin/env python """This program is a five in row game, which is used for the coding camp 2015 in WindRiver.com""" import os import sys, getopt import pygame as pg import threading import json from toolbox import button from toolbox import tools # Cloud API from CloudAPI.node import Node from CloudAPI.config im...
import json import time from collections import namedtuple from typing import Callable, Dict, Iterator, List import requests from decorator import decorator from requests.exceptions import ConnectionError from logger import logger from perfrunner.helpers.misc import pretty_dict from perfrunner.settings import BucketS...
# -*- test-case-name: twisted.test.test_modules -*- # Copyright (c) 2006-2009 Twisted Matrix Laboratories. # See LICENSE for details. """ This module aims to provide a unified, object-oriented view of Python's runtime hierarchy. Python is a very dynamic language with wide variety of introspection utilities. However, ...
from networktables import NetworkTable from networktables2.type import ArrayData, BooleanArray, NumberArray, StringArray import asyncio import json import math from aiohttp import web, errors as weberrors from threading import RLock from copy import deepcopy ip_address = "127.0.0.1" initialized_networktables = False ...
# -*- coding: iso-8859-1 -*- """ Test script for the Unicode implementation. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" import sys, struct, codecs from test import test_support, string_tests # Error handling (bad decoder return) def search_function(e...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from collections import OrderedDict import gdb import pwndbg.events import pwndbg.typeinfo from pwndbg.color import bold f...
""" Unit tests for `GPGCloud` project. """ import os import tempfile import unittest from cloud import Cloud, amazon, sftp from config import Config, ConfigError from database import MetaDataDB from lib import random_string, checksum_file, checksum_data class TestUtils(unittest.TestCase): """ Test cases for ...
#!/usr/bin/env python # Copyright (c) 2014-2017 Max Beloborodko. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
"""Tests for tensorflow.ops.data_flow_ops.Queue.""" import random import re import time import tensorflow.python.platform import numpy as np import tensorflow as tf class RandomShuffleQueueTest(tf.test.TestCase): def setUp(self): # Useful for debugging when a test times out. super(RandomShuffleQueueTest,...
import logging import math import random import sys import vector3 log = logging.getLogger("solver") max_single_solve_size = 12 cluster_size_max = 8 cluster_size_min = 1 cluster_divisor = 10 cluster_iteration_limit = 50 cluster_repeat_limit = 100 cluster_route_search_limit = 4 supercluster_size_max = 8 CLUSTERED ...
""" Folder tree and messagelist widgets definitions. """ # pylint: disable=too-many-arguments,bad-super-call # pylint: disable=attribute-defined-outside-init from cgi import escape from PyQt4 import QtCore, QtGui from bmconfigparser import BMConfigParser from helper_sql import sqlExecute, sqlQuery from settingsmixin...
from tgbot.entities import * from tgbot.entities.files import * from tgbot.entities.location import * class Chat(RequestingEntity): def __init__(self, api): RequestingEntity.__init__(self, { "id": ("id", None), "type": ("type", None), "title": ("...
# -*- coding: utf-8 -*- # # Copyright 2018 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...
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
# tests for the config reader module import os from attr import validate import pytest import pandas as pd from numpy.testing import assert_almost_equal from jsonschema.exceptions import ValidationError from tardis.io import config_reader from tardis.io.config_reader import Configuration def data_path(filename): ...
# Copyright 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
#!/bin/python import sys; import random; import os; def menu(): print "Welcome to PyCal"; print "==========================================================="; print "Author : Abel Gancsos"; print "Version : 1.0.1"; print "Description: This application will generate an ASCII"; print " calendar ...
''' Created on 2013-12-22 @author: Wei ''' import utils.serialize from utils.rst_lib import * class CRFTreeFeatureWriter: def __init__(self, verbose): self.features = set() self.verbose = verbose self.cue_phrases = utils.serialize.loadData('cue_phrases') if self.v...
#!/usr/bin/python3 # -*- coding: utf-8 -*- import os import sys import re from base64 import b64encode import subprocess as sp import urllib3 from ply import lex, yacc # Retain a copy so we don't unneccessarily waste time recreating them http = urllib3.PoolManager() global_lexer = None global_parser = None tokens...
import demistomock as demisto import json import RedCanary last_run_dict = {"time": "2019-12-13T17:23:22Z", "last_event_ids": []} latest_time_of_occurrence_of_incidents1 = "2019-12-30T22:00:50Z" latest_time_of_occurrence_of_incidents2 = "2020-12-25T02:07:37Z" number_of_incidents = 3 class Mocker: # this mocker w...
# License models from le_utils.constants import licenses from .. import config from ..exceptions import UnknownLicenseError def get_license(license_id, copyright_holder=None, description=None): if license_id == licenses.CC_BY: return CC_BYLicense(copyright_holder=copyright_holder) elif license_id == ...
import os import unittest try: import unittest.mock as mock except ImportError: import mock from requests.exceptions import RequestException from conda_forge_webservices.commands import ( pr_detailed_comment as _pr_detailed_comment, issue_comment as _issue_comment) def pr_detailed_comment(comment, ...
""" Build swig, f2py, pyrex sources. """ import os import re import sys import shlex import copy from distutils.command import build_ext from distutils.dep_util import newer_group, newer from distutils.util import get_platform from distutils.errors import DistutilsError, DistutilsSetupError def have_pyrex(): try...
import os import click from urllib.parse import urlparse import json import urllib.request import configparser import subprocess from butterknife.pool import LocalPool from butterknife.subvol import Subvol def pool_factory(url): o = urlparse(url) if o.scheme == "file": from butterknife.pool import Loc...
# encoding: utf-8 # Copyright 2013 maker # License import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'OrderedProduct.quantity' db.alter_column('sales_ordere...
import sublime import sublime_plugin from Vintageous.state import IrreversibleTextCommand from Vintageous.state import VintageState from Vintageous.vi import utils from Vintageous.vi.constants import _MODE_INTERNAL_NORMAL from Vintageous.vi.constants import MODE_INSERT from Vintageous.vi.constants import MODE_NORMAL f...
# Copyright (c) 2007-2009, Linden Research, Inc. # Copyright (c) 2007, IBM Corp. # # 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...
import pytest from api.base.settings.defaults import API_BASE from framework.auth.core import Auth from osf.models import AbstractNode, NodeLog from osf_tests.factories import ( NodeFactory, ProjectFactory, RegistrationFactory, AuthUserFactory, ) from tests.base import fake from website.util import per...
# 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 ...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # 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 # # h...
# -*- coding:utf-8 -*- # # 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 # # Unl...
from blaze.expr import * from blaze.expr.split import * from datashape import dshape from datashape.predicates import isscalar, isrecord, iscollection t = symbol('t', 'var * {name: string, amount: int32, id: int32}') a = symbol('a', '1000 * 2000 * {x: float32, y: float32}') def test_path_split(): expr = t.amount...
"""Setup script for Bokeh.""" #----------------------------------------------------------------------------- # Copyright (c) 2012 - 2014, Continuum Analytics, Inc. All rights reserved. # # Powered by the Bokeh Development Team. # # The full license is in the file LICENCE.txt, distributed with this software. #---------...
''' Created on Oct 5, 2010 @author: Mark V Systems Limited (c) Copyright 2010 Mark V Systems Limited, All rights reserved. ''' import os, threading, time, logging from tkinter import Menu, BooleanVar, font as tkFont from arelle import (ViewWinTkTable, ModelDocument, ModelDtsObject, ModelInstanceObject, XbrlConst, ...
#!/usr/bin/env python2 # transpiled with BefunCompile v1.3.0 (c) 2017 import sys import zlib, base64 _g = ("AR+LCAAAAAAABADdVMGO4yAM/RW3yV5AbDGQNkEIjfYDttfOKEr3xpUTp+6/r03SadrRaKRqTmspNQXbvPfspLy+vgJb82DwpJ1+nU7fWe/t7e1b8f1+NvETOx6P1X8X" + "vqv9R/UKDN5nJ4cxdZKXyEtDSwjP1Ityn8ZBdtmjGjdFw6rMM/VmjIu1Z+8HiXyBzn76Iq0mnkuj...
from __future__ import print_function from future import standard_library standard_library.install_aliases() from builtins import str from datetime import datetime import logging from urllib.parse import urlparse from time import sleep from airflow import hooks, settings from airflow.models import BaseOperator from ai...
#!/usr/bin/env python # Copyright (C) 2010-2013 Claudio Guarnieri. # Copyright (C) 2014-2016 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # See the file 'docs/LICENSE' for copying permission. import os import sys import socket import tarfile import argparse from datetime impo...
import os import traceback from time import time, gmtime, strftime from datetime import date from commands import getstatusoutput, getoutput from shutil import copy2 from PilotErrors import PilotErrors from pUtil import tolog, readpar, timeStamp, getBatchSystemJobID, getCPUmodel, PFCxml, updateMetadata, addSkippedToPF...
#!/usr/bin/env python2 """ mbed SDK Copyright (c) 2011-2014 ARM Limited Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicabl...
import sys import os, socket, threading import datetime, random, math import thread from functools import wraps import dogslow from celery import shared_task from django.utils import timezone from django.conf import settings from django.db import models from django.http import HttpResponse try: SETTINGS = settings...
#!/usr/bin/env python # encoding: utf-8 """ wpython.py ========== __ __ .--.--.--.-----.--.--| |_| |--.-----.-----. | | | | _ | | | _| | _ | | |________| __|___ |____|__|__|_____|__|__| |__| ...
# Copyright 2014 IBM Corp. # # 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 t...
#!/usr/bin/env python # Copyright (c) 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved # # 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 ...
## @package schema # Module caffe2.python.schema """ Defines a minimal set of data types that allow to represent datasets with arbitrary nested structure, including objects of variable length, such as maps and lists. This defines a columnar storage format for such datasets on top of caffe2 tensors. In terms of capacit...