gt
stringclasses
1 value
context
stringlengths
2.49k
119k
# # MythBox for XBMC - http://mythbox.googlecode.com # Copyright (C) 2011 analogue@yahoo.com # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at you...
from cStringIO import StringIO import contextlib import copy import logging import time import os import requests import subprocess from teuthology.config import config as teuth_config from teuthology import misc as teuthology from teuthology import contextutil, packaging from teuthology.exceptions import VersionNotF...
# Copyright 2012 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
# Quick and dirty milling code to drill some holes in a panel from __future__ import print_function import serial import time class RouterControl: def __init__(self): self.serialPort = None def Open(self, serialPortName): # Serial port for robot comms if serialPortName is not "": ...
"""Parse tree transformation module. Transforms Python source code into an abstract syntax tree (AST) defined in the ast module. The simplest ways to invoke this module are via parse and parseFile. parse(buf) -> AST parseFile(path) -> AST """ # Original version written by Greg Stein (gstein@lyra.org) # ...
############################# ## Import required modules ## ############################# """ - argparse, collections, csv, and sys are part of the standard Python library - numpy, sympy, and cyvcf are easily installed via conda and pip """ import argparse import collections import csv import sys import numpy as np ...
import os import sys, logging import pywikibot import csv import MySQLdb as mdb from MySQLdb import cursors import traceback import re import time from datetime import datetime, timedelta import argparse import pdb ''' Create the logger ''' NOW = time.strftime("%Y_%m_%d_%H_%M") OUT_DIR_LOGS = os.path.expanduser('~/log...
from threading import Event, Thread from Queue import Queue, Empty from serial import Serial from time import sleep import logging import string import shlex def has_nonascii(s): ascii_chars = string.ascii_letters+string.digits+"!@#$%^&*()_+\|{}[]-_=+'\",.<>?:; " return any([char for char in ascii_chars if cha...
#!/usr/bin/python -u # Copyright (c) 2010-2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
import time from datetime import datetime, timedelta from StringIO import StringIO from django.core.handlers.modpython import ModPythonRequest from django.core.handlers.wsgi import WSGIRequest, LimitedStream from django.http import HttpRequest, HttpResponse, parse_cookie, build_request_repr from django.utils import un...
# Lint as: python3 # Copyright 2020 DeepMind Technologies 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php """ Routines for testing WSGI applications. Most interesting is TestApp """ import sys import random import urllib import urlparse import mimetypes i...
# -*- coding: utf-8 -*- # # 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 ...
#!/usr/bin/python import socket import select import errno import logging import socks import os from prober_utils import * settings = { # Note that changing these will invalidate many of the fingerprints 'default_hello_version': TLSRecord.TLS1_0, 'default_record_version': TLSRecord.TLS1_0, 'socket_t...
# 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 u...
#!/usr/bin/env python # # ROS node to interface with Naoqi speech recognition and text-to-speech modules # Tested with NaoQI: 1.12 # # Copyright (c) 2012, 2013, Miguel Sarabia # Imperial College London # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that th...
# 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...
# Copyright 2018 Google LLC All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
""" Function: Process data for sweep frequency mode. Authors: Cassio Amador (cassioamador at yahoo.com.br) Gilson Ronchi (gronchi at if.usp.br) TODO: zero padding in filter should check first the size of the signal, so it could could choose best value depending on signal size. Maybe the same for padding in spec...
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for Deferred handling by L{twisted.trial.unittest.TestCase}. """ from __future__ import division, absolute_import from twisted.trial import unittest from twisted.internet import defer, threads, reactor class DeferredSetUpOK(unittest....
# -*- coding: utf-8 -*- """ Created on Fri Mar 01 14:56:56 2013 Author: Josef Perktold """ import numpy as np from numpy.testing import assert_almost_equal, assert_equal, assert_array_less from statsmodels.stats.proportion import proportion_confint import statsmodels.stats.proportion as smprop class Holder(object)...
######## # Copyright (c) 2018 Cloudify Platform 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 # # Unless requi...
from __future__ import unicode_literals from django.db import models from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.utils.encoding import python_2_unicode_compatible from taggit.models import TaggedItemBase from modelcluster.fields import ParentalKey from modelcluster.tags impor...
""" SoftLayer.vs ~~~~~~~~~~~~ VS Manager/helpers :license: MIT, see LICENSE for more details. """ import datetime import logging import socket import time import warnings from SoftLayer.decoration import retry from SoftLayer import exceptions from SoftLayer.managers import ordering from SoftLayer impo...
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICEN...
import logging import asyncio import pickle import ssl from message_types import measurement_msg _logger = logging.getLogger(__name__) def create_ssl_context(ssl_dict): """ loads the ssl certificate for secure communication :param ssl_dict: dictionary consisting of certification file, key ...
# Copyright 2014 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 required by applicable ...
# 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 ...
# Convert piecewise cubic into piecewise clothoid representation. from math import * import clothoid import pcorn import tocubic import offset def read_bz(f): result = [] for l in f.xreadlines(): s = l.split() if len(s) > 0: cmd = s[-1] #print s[:-1], cmd ...
# encoding: utf-8 """ operational/__init__.py Created by Thomas Mangin on 2013-09-01. Copyright (c) 2009-2013 Exa Networks. All rights reserved. """ from struct import pack from struct import unpack from exabgp.protocol.family import AFI from exabgp.protocol.family import SAFI from exabgp.bgp.message.open.routerid i...
from ..Base import Display from ..Base.Display import DisplayBase from tornado.web import Application import tornado from IPython.core.display import Javascript as JS from IPython.core.display import display from time import sleep import os import threading import tempfile import tornado.testing from ..Base import Line...
# -*- coding: utf-8 -*- from __future__ import division import re import copy import math import logging import unicodedata import six from elasticsearch import ( Elasticsearch, RequestError, NotFoundError, ConnectionError, helpers, ) from framework import sentry from website import settings f...
#!/usr/bin/env python # # Use the raw transactions API to spend surcoins received on particular addresses, # and send any change back to that same address. # # Example usage: # spendfrom.py # Lists available funds # spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00 # # Assumes it will talk to a surcoind or Sur...
""" @package mi.instrument.kml.cam.camds.driver @file marine-integrations/mi/instrument/kml/cam/camds/test/test_driver.py @author Sung Ahn @brief Test Driver for CAMDS Release notes: """ __author__ = 'Sung Ahn' __license__ = 'Apache 2.0' import copy import time from nose.plugins.attrib import attr from mock import ...
# Copyright Hybrid Logic Ltd. See LICENSE file for details. """ Tests for ``admin.packaging``. """ from glob import glob from subprocess import check_output from textwrap import dedent from unittest import skipIf from StringIO import StringIO from twisted.python.filepath import FilePath from twisted.python.procutil...
# # Copyright Ericsson AB 2013. All rights reserved # # Authors: Ildiko Vancsa <ildiko.vancsa@ericsson.com> # Balazs Gibizer <balazs.gibizer@ericsson.com> # # 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 co...
from __future__ import division from itertools import chain from operator import itemgetter, attrgetter from collections import defaultdict import math from django.db import connection from django.db import models from django.db.models import Sum, Q, Count, F from django.utils.translation import ugettext_lazy as _ fro...
"""Miscellaneous utility functions and classes. This module is used internally by Tornado. It is not necessarily expected that the functions and classes defined here will be useful to other applications, but they are documented here in case they are. The one public-facing part of this module is the `Configurable` cl...
#!/usr/bin/env python3 import matplotlib #matplotlib.use("Agg") import subprocess #import check_output import operator from os import mkdir from shutil import rmtree from networkit import * from pylab import * import matplotlib.pyplot as plt from scipy.stats import spearmanr import os.path import sys, traceback impor...
# 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 agreed to in writ...
import time import pytest import uqbar.strings import supriya.assets.synthdefs import supriya.nonrealtime import supriya.patterns pmono_01 = supriya.patterns.Pmono( amplitude=1.0, duration=supriya.patterns.Pseq([1.0, 2.0, 3.0], 1), frequency=supriya.patterns.Pseq([440, 660, 880], 1), ) pmono_02 = supri...
from __future__ import division, absolute_import from __future__ import print_function, unicode_literals import nose.tools as nt import numpy as np import theano import theano.tensor as T import treeano import treeano.nodes as tn fX = theano.config.floatX def test_pool_output_shape_2d(): def test_same(input_sh...
# $Id: TestFileCIFSwriteHTTPread.py 1047 2009-01-15 14:48:58Z graham $ # # Unit testing for TestFileCIFSwriteHTTPread module # import os import sys import httplib import urllib2 import unittest import subprocess sys.path.append("../..") from TestConfig import TestConfig import TestHttpUtils class TestFileCIFSwrite...
#!/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. """Snapshot Build Bisect Tool This script bisects a snapshot archive using binary search. It starts at a bad revision (it will try...
from __future__ import division import numpy as np __author__ = 'Jakob Abesser' class Transformer: """ Class implements different time-frequency transformations """ def __init__(self): pass @staticmethod def stft(samples, blocksize, hopsize, n_fft=None...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2013 OpenStack Foundation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www....
#/usr/bin/python from __future__ import print_function import os from os.path import * import subprocess import pygst import gst # Local imports from musicservice import ServiceException ''' playback.py Python class that controls playback Uses GStreamer w/ Python Bindings (gstreamer.freedesktop.org) @author: Schuy...
import numpy as np from numpy import sin, cos, tan, degrees, radians, arctan, arcsin # Slip projections ## To/From offset def offset_from_vert_sep(vert_sep, dip, rake=90.): dip_slip = dip_slip_from_vert_sep(vert_sep, dip, rake) return offset_from_dip_slip(dip_slip, dip, rake) def vert_sep_from_offset(offset,...
# -*- test-case-name: wokkel.test.test_pubsub -*- # # Copyright (c) 2003-2009 Ralph Meijer # See LICENSE for details. """ XMPP publish-subscribe protocol. This protocol is specified in U{XEP-0060<http://www.xmpp.org/extensions/xep-0060.html>}. """ from zope.interface import implements from twisted.internet import d...
from mock import Mock from placidity.interpreter import Context, Commands, Interpreter from py.test import raises # TODO: convert execute asserts to assert_called_with and handle # return with return_value. Note that it's possible to mock the # signatures in Mock 0.7 (fix after release or include svn version in # /lib...
''' read & write (:mod:`calour.io`) =============================== .. currentmodule:: calour.io Functions ^^^^^^^^^ .. autosummary:: :toctree: generated read read_amplicon read_qiime2 read_ms save save_fasta save_biom ''' # ------------------------------------------------------------------...
#!/usr/bin/env python # Copyright 2018 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. """Removes code coverage flags from invocations of the Clang C/C++ compiler. If the GN arg `use_clang_coverage=true`, this script will ...
# -*- coding: utf-8 -*- """ Created on Tue Nov 22 14:44:00 2016 @author: belinkov """ from matplotlib import pyplot as plt import numpy as np ### effect of representation ### # ar-he, uni, 2lstm500, after layer 2 # accuracies: unseen, seen, all labels = ['Unseen', 'Seen', 'All'] groups = ['POS', 'Morphology'] sets...
"""Support for Voice mailboxes.""" from __future__ import annotations import asyncio from contextlib import suppress from datetime import timedelta from http import HTTPStatus import logging from aiohttp import web from aiohttp.web_exceptions import HTTPNotFound import async_timeout from homeassistant.components imp...
""" ----- Permission to use, modify, and distribute this software is given under the terms of the NumPy License. See http://scipy.org. NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. Author: Pearu Peterson <pearu@cens.ioc.ee> Created: May 2006 ----- """ __all__ = ['Statement','BeginStatement','EndStatemen...
### # Copyright (c) 2002-2005, Jeremiah Fincher # Copyright (c) 2009-2010, James Vega # 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 c...
""" This is a Python library that handles calling CryptoPhoto API. - Main Page http://cryptophoto.com/ - About Cryptophoto http://cryptophoto.com/about - Register to CryptoPhoto http://cryptophoto.com/demo/register/ Copyright(c) 2016 CryptoPhoto -- http://cryptophoto.com/...
# 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 os from malwareconfig import fileparser from malwareconfig.modules import __decoders__ def test_decoders_import(): assert 'AAR' in __decoders__.keys() assert 'AdWind' in __decoders__.keys() assert 'Adzok' in __decoders__.keys() assert 'AlienSpy' in __decoders__.keys() assert 'Alina' in __dec...
#---------------------------------------------------------------------- # Copyright (c) 2008 Board of Trustees, Princeton University # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and/or hardware specification (the "Work") to # deal in the Work without restriction, i...
""" sphinx.util.osutil ~~~~~~~~~~~~~~~~~~ Operating system-related utility functions for Sphinx. :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import contextlib import errno import filecmp import os import re import shutil import sys ...
# Copyright 2007 Matt Chaput. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the...
import numpy as np class MonomerType(object): """docstring for MonomerType""" def __init__(self, name, parameters): super(MonomerType, self).__init__() self.Id = None self.name = name self.particles = parameters['Part'] self.bonds = parameters['Bonds'] self.angle...
# -*- coding: utf-8 -*- # # Copyright (C) 2004-2009 Edgewall Software # Copyright (C) 2004-2005 Christopher Lenz <cmlenz@gmx.de> # Copyright (C) 2006-2007 Christian Boos <cboos@edgewall.org> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part o...
from builtins import zip from builtins import str import logging from airflow.exceptions import AirflowException from airflow.hooks import BaseHook from airflow.models import BaseOperator from airflow.utils.decorators import apply_defaults class CheckOperator(BaseOperator): """ Performs checks against a db. ...
#!/usr/bin/env python # 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 "Lice...
#!/usr/bin/env python # Copyright 2013 Hewlett-Packard Development Company, L.P. # 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.or...
# -*- coding: utf-8 -*- """Defines a number of functions to test interactions between various forms data types. """ from __future__ import absolute_import, division, print_function import math import numpy as np from . import rectangle, vector, vector3 from .utils import all_parameters_as_numpy_arrays, parameters_as_nu...
from decimal import Decimal as D from django.core import exceptions from django.test import TestCase import mock from oscar.apps.offer import models from oscar.apps.offer.utils import Applicator from oscar.test.basket import add_product, add_products from oscar.test import factories class TestAnAbsoluteDiscountAppl...
import os import re import shutil from zlib import crc32 from collections import defaultdict from .parser import SourceBuilder, TLParser class TLGenerator: def __init__(self, output_dir): self.output_dir = output_dir def _get_file(self, *paths): return os.path.join(self.output_dir, *paths) ...
# 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...
import re import os from itertools import izip_longest import arcpy from ..exceptions import MapLayerError, DataSourceUpdateError, UnmappedDataSourceError, UnsupportedLayerError, \ ChangeDataSourcesError, MapDataSourcesBrokenError, ServDefDraftCreateError from _sddraft import SDDraft def change_data_sources(map...
import test_support import os class IncludeStyleRuleTest(test_support.TestBase): def setUp(self): self.set_default_rules_selection(['IncludeStyleRule']) self.set_default_error_id('include style') self.set_default_error_severity('style') def assert_colobot_lint_result_with_project_heade...
# Copyright (c) 2004 Gavin E. Crooks <gec@compbio.berkeley.edu> # # This software is distributed under the MIT Open Source License. # <http://www.opensource.org/licenses/mit-license.html> # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentati...
# Copyright 2014 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Module that helps to triage Commit Queue failures.""" from __future__ import print_function import ConfigParser import glob import os import pprint ...
# coding: utf-8 from datetime import date, datetime from typing import List, Dict, Type from openapi_server.models.base_model_ import Model from openapi_server import util class MultibranchPipeline(Model): """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). Do not ...
# Copyright (c) 2018 PaddlePaddle 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 app...
from cloudify import ctx from cloudify.exceptions import NonRecoverableError from cloudify.state import ctx_parameters as inputs import subprocess import os import re import sys import time import threading import platform from StringIO import StringIO from cloudify_rest_client import CloudifyClient from cloudify im...
#!/bin/env python """ The MIT License Copyright (c) 2010 The Chicago Tribune & Contributors 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 ...
# # 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...
import collections from ..error import Error from ..language import ast def is_input_type(type): named_type = get_named_type(type) return isinstance(named_type, ( GraphQLScalarType, GraphQLEnumType, GraphQLInputObjectType, )) def is_composite_type(type): named_type = get_name...
"""Shared utilities for different supported platforms.""" import asyncio from datetime import datetime, timedelta from http import HTTPStatus import logging import aiohttp import async_timeout from buienradar.buienradar import parse_data from buienradar.constants import ( ATTRIBUTION, CONDITION, CONTENT, ...
########################################################################## # # Copyright (c) 2013-2015, Image Engine Design 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: # # * Redi...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Nicira Networks, 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.apach...
import requests import urllib3 import logging import pprint from enum import Enum from datetime import datetime from abc import ABCMeta from .utils import ( underscore_to_camelcase, camelcase_to_underscore, dic_to_json, response_to_dic ) from .exception import ( raise_from_response, Authentica...
""" Test functions for multivariate normal distributions. """ from __future__ import division, print_function, absolute_import from numpy.testing import (assert_allclose, assert_almost_equal, assert_array_almost_equal, assert_equal, assert_raises, run_module_suite...
# api wrapper for three.js __pragma__ ('noanno') def _ctor(obj): def _c_(*args): return __new__(obj (*args)) return _c_ api = __pragma__ ('js', '{}', 'THREE' ) WebGLRenderTargetCube = _ctor(api.WebGLRenderTargetCube) WebGLRenderTarget = _ctor(api.WebGLRenderTarget) WebGLRenderer = _ctor(api.W...
# Copyright 2011-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...
#!/usr/bin/python2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # IMPORTANT NOTE: If you make local mods to this file, you must run: # % pnacl/build.sh driver # in order for them to take ef...
# -*- coding: utf-8 -*- import copy import functools import httplib as http import json import logging import os from flask import request, make_response import lxml.html from mako.lookup import TemplateLookup from mako.template import Template import markupsafe from werkzeug.exceptions import NotFound import werkzeu...
######################################### #----------------PyPath-----------------# #Simple Path Tracer Programmed in Python# #----------By: Julian Villella----------# #------Start Date: August 17, 2011------# ######################################### #Modules from math import sqrt, cos, sin from random import random,...
#!/usr/bin/env python #============================================================================== # Copyright 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Amazon Software License (the "License"). You may not use # this file except in compliance with the License. A copy of the...
from apps.projects.models import Project, ProjectPhases from apps.sepa.sepa import SepaDocument, SepaAccount from django.conf import settings from django.utils import timezone from django.db import models from django.utils.translation import ugettext as _ from django_extensions.db.fields import ModificationDateTimeFiel...
"""Support for displaying the minimal and the maximal value.""" import logging import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import ( ATTR_UNIT_OF_MEASUREMENT, CONF_NAME, CONF_TYPE, STATE_UNAVAILABLE, STATE_UNKNOWN, ) from homeassista...
# -*- coding: utf-8 -*- import vim from orgmode._vim import echo, echom, echoe, ORGMODE, apply_count, repeat, insert_at_cursor, indent_orgmode from orgmode.menu import Submenu, Separator, ActionEntry, add_cmd_mapping_menu from orgmode.keybinding import Keybinding, Plug, Command from orgmode.liborgmode.checkboxes impor...
from __future__ import absolute_import, division import logging from lxml import etree from changes.config import db, statsreporter from changes.constants import Result from changes.db.utils import try_create from changes.models import TestResult, TestResultManager, FailureReason from changes.utils.agg import aggreg...
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright 2013 Kitware 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 cop...
#!/usr/bin/env python # # # Copyright (c) 2011 OpenStack, LLC. # 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/LICEN...
# Copyright 2020 DeepMind Technologies 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
# 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...